From de9e493fbb978d3671054ac3cb170b10fc132ce9 Mon Sep 17 00:00:00 2001 From: Sohaib Ahsan Date: Sat, 29 Jul 2023 01:31:59 +0500 Subject: [PATCH] text updated. --- storecloud-elements/storecloud-elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storecloud-elements/storecloud-elements.js b/storecloud-elements/storecloud-elements.js index beaa52c..10209bf 100644 --- a/storecloud-elements/storecloud-elements.js +++ b/storecloud-elements/storecloud-elements.js @@ -1,3 +1,3 @@ (()=>{"use strict";var e,_={},v={};function r(e){var a=v[e];if(void 0!==a)return a.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return _[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=_,r.amdO={},e=[],r.O=(a,t,i,f)=>{if(!t){var n=1/0;for(o=0;o=f)&&Object.keys(r.O).every(b=>r.O[b](t[s]))?t.splice(s--,1):(u=!1,f0&&e[o-1][2]>f;o--)e[o]=e[o-1];e[o]=[t,i,f]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},(()=>{var a,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,i){if(1&i&&(t=this(t)),8&i||"object"==typeof t&&t&&(4&i&&t.__esModule||16&i&&"function"==typeof t.then))return t;var f=Object.create(null);r.r(f);var o={};a=a||[null,e({}),e([]),e(e)];for(var n=2&i&&t;"object"==typeof n&&!~a.indexOf(n);n=e(n))Object.getOwnPropertyNames(n).forEach(u=>o[u]=()=>t[u]);return o.default=()=>t,r.d(f,o),f}})(),r.d=(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((a,t)=>(r.f[t](e,a),a),[])),r.u=e=>"lottie-web.js",r.miniCssF=e=>{},r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={},a="store-website-element:";r.l=(t,i,f,o)=>{if(e[t])e[t].push(i);else{var n,u;if(void 0!==f)for(var s=document.getElementsByTagName("script"),l=0;l{n.onerror=n.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),h&&h.forEach(m=>m(b)),g)return g(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=c.bind(null,n.onerror),n.onload=c.bind(null,n.onload),u&&document.head.appendChild(n)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:a=>a},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,f)=>{var o=r.o(e,i)?e[i]:void 0;if(0!==o)if(o)f.push(o[2]);else if(666!=i){var n=new Promise((d,c)=>o=e[i]=[d,c]);f.push(o[2]=n);var u=r.p+r.u(i),s=new Error;r.l(u,d=>{if(r.o(e,i)&&(0!==(o=e[i])&&(e[i]=void 0),o)){var c=d&&("load"===d.type?"missing":d.type),p=d&&d.target&&d.target.src;s.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",s.name="ChunkLoadError",s.type=c,s.request=p,o[1](s)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var a=(i,f)=>{var s,l,[o,n,u]=f,d=0;if(o.some(p=>0!==e[p])){for(s in n)r.o(n,s)&&(r.m[s]=n[s]);if(u)var c=u(r)}for(i&&i(f);d{const me=":";class Ye extends Error{constructor(e){super(`No translation found for ${Qe(e)}.`),this.parsedMessage=e,this.type="MissingTranslationError"}}const Ee=function(i,...e){if(Ee.translate){const n=Ee.translate(i,e);i=n[0],e=n[1]}let t=et(i[0],i.raw[0]);for(let n=1;ntypeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=Ee,Oe(583)},583:()=>{!function(e){const t=e.performance;function n(x){t&&t.mark&&t.mark(x)}function r(x,y){t&&t.measure&&t.measure(x,y)}n("Zone");const s=e.__Zone_symbol_prefix||"__zone_symbol__";function l(x){return s+x}const f=!0===e[l("forceDuplicateZoneCheck")];if(e.Zone){if(f||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let u=(()=>{class x{constructor(o,c){this._parent=o,this._name=c?c.name||"unnamed":"",this._properties=c&&c.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,c)}static assertZonePatched(){if(e.Promise!==fe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let o=x.current;for(;o.parent;)o=o.parent;return o}static get current(){return W.zone}static get currentTask(){return le}static __load_patch(o,c,b=!1){if(fe.hasOwnProperty(o)){if(!b&&f)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){const I="Zone:"+o;n(I),fe[o]=c(e,x,K),r(I,I)}}get parent(){return this._parent}get name(){return this._name}get(o){const c=this.getZoneWith(o);if(c)return c._properties[o]}getZoneWith(o){let c=this;for(;c;){if(c._properties.hasOwnProperty(o))return c;c=c._parent}return null}fork(o){if(!o)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,o)}wrap(o,c){if("function"!=typeof o)throw new Error("Expecting function got: "+o);const b=this._zoneDelegate.intercept(this,o,c),I=this;return function(){return I.runGuarded(b,this,arguments,c)}}run(o,c,b,I){W={parent:W,zone:this};try{return this._zoneDelegate.invoke(this,o,c,b,I)}finally{W=W.parent}}runGuarded(o,c=null,b,I){W={parent:W,zone:this};try{try{return this._zoneDelegate.invoke(this,o,c,b,I)}catch(J){if(this._zoneDelegate.handleError(this,J))throw J}}finally{W=W.parent}}runTask(o,c,b){if(o.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(o.zone||Q).name+"; Execution: "+this.name+")");if(o.state===B&&(o.type===ne||o.type===R))return;const I=o.state!=k;I&&o._transitionTo(k,$),o.runCount++;const J=le;le=o,W={parent:W,zone:this};try{o.type==R&&o.data&&!o.data.isPeriodic&&(o.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,o,c,b)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{o.state!==B&&o.state!==T&&(o.type==ne||o.data&&o.data.isPeriodic?I&&o._transitionTo($,k):(o.runCount=0,this._updateTaskCount(o,-1),I&&o._transitionTo(B,k,B))),W=W.parent,le=J}}scheduleTask(o){if(o.zone&&o.zone!==this){let b=this;for(;b;){if(b===o.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${o.zone.name}`);b=b.parent}}o._transitionTo(Y,B);const c=[];o._zoneDelegates=c,o._zone=this;try{o=this._zoneDelegate.scheduleTask(this,o)}catch(b){throw o._transitionTo(T,Y,B),this._zoneDelegate.handleError(this,b),b}return o._zoneDelegates===c&&this._updateTaskCount(o,1),o.state==Y&&o._transitionTo($,Y),o}scheduleMicroTask(o,c,b,I){return this.scheduleTask(new g(L,o,c,b,I,void 0))}scheduleMacroTask(o,c,b,I,J){return this.scheduleTask(new g(R,o,c,b,I,J))}scheduleEventTask(o,c,b,I,J){return this.scheduleTask(new g(ne,o,c,b,I,J))}cancelTask(o){if(o.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(o.zone||Q).name+"; Execution: "+this.name+")");o._transitionTo(U,$,k);try{this._zoneDelegate.cancelTask(this,o)}catch(c){throw o._transitionTo(T,U),this._zoneDelegate.handleError(this,c),c}return this._updateTaskCount(o,-1),o._transitionTo(B,U),o.runCount=0,o}_updateTaskCount(o,c){const b=o._zoneDelegates;-1==c&&(o._zoneDelegates=null);for(let I=0;Ix.hasTask(o,c),onScheduleTask:(x,y,o,c)=>x.scheduleTask(o,c),onInvokeTask:(x,y,o,c,b,I)=>x.invokeTask(o,c,b,I),onCancelTask:(x,y,o,c)=>x.cancelTask(o,c)};class v{constructor(y,o,c){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=y,this._parentDelegate=o,this._forkZS=c&&(c&&c.onFork?c:o._forkZS),this._forkDlgt=c&&(c.onFork?o:o._forkDlgt),this._forkCurrZone=c&&(c.onFork?this.zone:o._forkCurrZone),this._interceptZS=c&&(c.onIntercept?c:o._interceptZS),this._interceptDlgt=c&&(c.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=c&&(c.onIntercept?this.zone:o._interceptCurrZone),this._invokeZS=c&&(c.onInvoke?c:o._invokeZS),this._invokeDlgt=c&&(c.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=c&&(c.onInvoke?this.zone:o._invokeCurrZone),this._handleErrorZS=c&&(c.onHandleError?c:o._handleErrorZS),this._handleErrorDlgt=c&&(c.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=c&&(c.onHandleError?this.zone:o._handleErrorCurrZone),this._scheduleTaskZS=c&&(c.onScheduleTask?c:o._scheduleTaskZS),this._scheduleTaskDlgt=c&&(c.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=c&&(c.onScheduleTask?this.zone:o._scheduleTaskCurrZone),this._invokeTaskZS=c&&(c.onInvokeTask?c:o._invokeTaskZS),this._invokeTaskDlgt=c&&(c.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=c&&(c.onInvokeTask?this.zone:o._invokeTaskCurrZone),this._cancelTaskZS=c&&(c.onCancelTask?c:o._cancelTaskZS),this._cancelTaskDlgt=c&&(c.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=c&&(c.onCancelTask?this.zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const b=c&&c.onHasTask;(b||o&&o._hasTaskZS)&&(this._hasTaskZS=b?c:E,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=y,c.onScheduleTask||(this._scheduleTaskZS=E,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this.zone),c.onInvokeTask||(this._invokeTaskZS=E,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this.zone),c.onCancelTask||(this._cancelTaskZS=E,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this.zone))}fork(y,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,y,o):new u(y,o)}intercept(y,o,c){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,y,o,c):o}invoke(y,o,c,b,I){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,y,o,c,b,I):o.apply(c,b)}handleError(y,o){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,y,o)}scheduleTask(y,o){let c=o;if(this._scheduleTaskZS)this._hasTaskZS&&c._zoneDelegates.push(this._hasTaskDlgtOwner),c=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,y,o),c||(c=o);else if(o.scheduleFn)o.scheduleFn(o);else{if(o.type!=L)throw new Error("Task is missing scheduleFn.");C(o)}return c}invokeTask(y,o,c,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,y,o,c,b):o.callback.apply(c,b)}cancelTask(y,o){let c;if(this._cancelTaskZS)c=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,y,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");c=o.cancelFn(o)}return c}hasTask(y,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,y,o)}catch(c){this.handleError(y,c)}}_updateTaskCount(y,o){const c=this._taskCounts,b=c[y],I=c[y]=b+o;if(I<0)throw new Error("More tasks executed then were scheduled.");0!=b&&0!=I||this.hasTask(this.zone,{microTask:c.microTask>0,macroTask:c.macroTask>0,eventTask:c.eventTask>0,change:y})}}class g{constructor(y,o,c,b,I,J){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=y,this.source=o,this.data=b,this.scheduleFn=I,this.cancelFn=J,!c)throw new Error("callback is not defined");this.callback=c;const h=this;this.invoke=y===ne&&b&&b.useG?g.invokeTask:function(){return g.invokeTask.call(e,h,this,arguments)}}static invokeTask(y,o,c){y||(y=this),oe++;try{return y.runCount++,y.zone.runTask(y,o,c)}finally{1==oe&&p(),oe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,Y)}_transitionTo(y,o,c){if(this._state!==o&&this._state!==c)throw new Error(`${this.type} '${this.source}': can not transition to '${y}', expecting state '${o}'${c?" or '"+c+"'":""}, was '${this._state}'.`);this._state=y,y==B&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const A=l("setTimeout"),N=l("Promise"),P=l("then");let F,H=[],S=!1;function z(x){if(F||e[N]&&(F=e[N].resolve(0)),F){let y=F[P];y||(y=F.then),y.call(F,x)}else e[A](x,0)}function C(x){0===oe&&0===H.length&&z(p),x&&H.push(x)}function p(){if(!S){for(S=!0;H.length;){const x=H;H=[];for(let y=0;yW,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:C,showUncaughtError:()=>!u[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:z};let W={parent:null,zone:new u(null,null)},le=null,oe=0;function q(){}r("Zone","Zone"),e.Zone=u}(typeof window<"u"&&window||typeof self<"u"&&self||global);const de=Object.getOwnPropertyDescriptor,Se=Object.defineProperty,Oe=Object.getPrototypeOf,me=Object.create,nt=Array.prototype.slice,Re="addEventListener",Me="removeEventListener",ue=Zone.__symbol__(Re),Ce=Zone.__symbol__(Me),se="true",ee="false",Ne=Zone.__symbol__("");function Ae(e,t){return Zone.current.wrap(e,t)}function ze(e,t,n,r,s){return Zone.current.scheduleMacroTask(e,t,n,r,s)}const j=Zone.__symbol__,Ie=typeof window<"u",_e=Ie?window:void 0,X=Ie&&_e||"object"==typeof self&&self||global,rt="removeAttribute";function Le(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=Ae(e[n],t+"_"+n));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const xe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ve=!("nw"in X)&&typeof X.process<"u"&&"[object process]"==={}.toString.call(X.process),De=!ve&&!xe&&!(!Ie||!_e.HTMLElement),je=typeof X.process<"u"&&"[object process]"==={}.toString.call(X.process)&&!xe&&!(!Ie||!_e.HTMLElement),we={},ie=function(e){if(!(e=e||X.event))return;let t=we[e.type];t||(t=we[e.type]=j("ON_PROPERTY"+e.type));const n=this||e.target||X,r=n[t];let s;return De&&n===_e&&"error"===e.type?(s=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===s&&e.preventDefault()):(s=r&&r.apply(this,arguments),null!=s&&!s&&e.preventDefault()),s};function $e(e,t,n){let r=de(e,t);if(!r&&n&&de(n,t)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const s=j("on"+t+"patched");if(e.hasOwnProperty(s)&&e[s])return;delete r.writable,delete r.value;const l=r.get,f=r.set,u=t.slice(2);let E=we[u];E||(E=we[u]=j("ON_PROPERTY"+u)),r.set=function(v){let g=this;!g&&e===X&&(g=X),g&&("function"==typeof g[E]&&g.removeEventListener(u,ie),f&&f.call(g,null),g[E]=v,"function"==typeof v&&g.addEventListener(u,ie,!1))},r.get=function(){let v=this;if(!v&&e===X&&(v=X),!v)return null;const g=v[E];if(g)return g;if(l){let A=l.call(this);if(A)return r.set.call(this,A),"function"==typeof v[rt]&&v.removeAttribute(t),A}return null},Se(e,t,r),e[s]=!0}function We(e,t,n){if(t)for(let r=0;rfunction(f,u){const E=n(f,u);return E.cbIdx>=0&&"function"==typeof u[E.cbIdx]?ze(E.name,u[E.cbIdx],E,s):l.apply(f,u)})}function ae(e,t){e[j("OriginalDelegate")]=t}let He=!1,Be=!1;function st(){if(He)return Be;He=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Be=!0)}catch{}return Be}Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const r=Object.getOwnPropertyDescriptor,s=Object.defineProperty,f=n.symbol,u=[],E=!0===e[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=f("Promise"),g=f("then"),A="__creationTrace__";n.onUnhandledError=h=>{if(n.showUncaughtError()){const d=h&&h.rejection;d?console.error("Unhandled Promise rejection:",d instanceof Error?d.message:d,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",d,d instanceof Error?d.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;u.length;){const h=u.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(d){P(d)}}};const N=f("unhandledPromiseRejectionHandler");function P(h){n.onUnhandledError(h);try{const d=t[N];"function"==typeof d&&d.call(this,h)}catch{}}function H(h){return h&&h.then}function S(h){return h}function F(h){return o.reject(h)}const z=f("state"),C=f("value"),p=f("finally"),Q=f("parentPromiseValue"),B=f("parentPromiseState"),Y="Promise.then",$=null,k=!0,U=!1,T=0;function L(h,d){return a=>{try{K(h,d,a)}catch(_){K(h,!1,_)}}}const R=function(){let h=!1;return function(a){return function(){h||(h=!0,a.apply(null,arguments))}}},ne="Promise resolved with itself",fe=f("currentTaskTrace");function K(h,d,a){const _=R();if(h===a)throw new TypeError(ne);if(h[z]===$){let w=null;try{("object"==typeof a||"function"==typeof a)&&(w=a&&a.then)}catch(O){return _(()=>{K(h,!1,O)})(),h}if(d!==U&&a instanceof o&&a.hasOwnProperty(z)&&a.hasOwnProperty(C)&&a[z]!==$)le(a),K(h,a[z],a[C]);else if(d!==U&&"function"==typeof w)try{w.call(a,_(L(h,d)),_(L(h,!1)))}catch(O){_(()=>{K(h,!1,O)})()}else{h[z]=d;const O=h[C];if(h[C]=a,h[p]===p&&d===k&&(h[z]=h[B],h[C]=h[Q]),d===U&&a instanceof Error){const m=t.currentTask&&t.currentTask.data&&t.currentTask.data[A];m&&s(a,fe,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const D=h[C],Z=!!a&&p===a[p];Z&&(a[Q]=D,a[B]=O);const M=d.run(m,void 0,Z&&m!==F&&m!==S?[]:[D]);K(a,!0,M)}catch(D){K(a,!1,D)}},a)}const x=function(){},y=e.AggregateError;class o{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(d){return K(new this(null),k,d)}static reject(d){return K(new this(null),U,d)}static any(d){if(!d||"function"!=typeof d[Symbol.iterator])return Promise.reject(new y([],"All promises were rejected"));const a=[];let _=0;try{for(let m of d)_++,a.push(o.resolve(m))}catch{return Promise.reject(new y([],"All promises were rejected"))}if(0===_)return Promise.reject(new y([],"All promises were rejected"));let w=!1;const O=[];return new o((m,D)=>{for(let Z=0;Z{w||(w=!0,m(M))},M=>{O.push(M),_--,0===_&&(w=!0,D(new y(O,"All promises were rejected")))})})}static race(d){let a,_,w=new this((D,Z)=>{a=D,_=Z});function O(D){a(D)}function m(D){_(D)}for(let D of d)H(D)||(D=this.resolve(D)),D.then(O,m);return w}static all(d){return o.allWithCallback(d)}static allSettled(d){return(this&&this.prototype instanceof o?this:o).allWithCallback(d,{thenCallback:_=>({status:"fulfilled",value:_}),errorCallback:_=>({status:"rejected",reason:_})})}static allWithCallback(d,a){let _,w,O=new this((M,V)=>{_=M,w=V}),m=2,D=0;const Z=[];for(let M of d){H(M)||(M=this.resolve(M));const V=D;try{M.then(G=>{Z[V]=a?a.thenCallback(G):G,m--,0===m&&_(Z)},G=>{a?(Z[V]=a.errorCallback(G),m--,0===m&&_(Z)):w(G)})}catch(G){w(G)}m++,D++}return m-=2,0===m&&_(Z),O}constructor(d){const a=this;if(!(a instanceof o))throw new Error("Must be an instanceof Promise.");a[z]=$,a[C]=[];try{const _=R();d&&d(_(L(a,k)),_(L(a,U)))}catch(_){K(a,!1,_)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return o}then(d,a){var _;let w=null===(_=this.constructor)||void 0===_?void 0:_[Symbol.species];(!w||"function"!=typeof w)&&(w=this.constructor||o);const O=new w(x),m=t.current;return this[z]==$?this[C].push(m,O,d,a):oe(this,m,O,d,a),O}catch(d){return this.then(null,d)}finally(d){var a;let _=null===(a=this.constructor)||void 0===a?void 0:a[Symbol.species];(!_||"function"!=typeof _)&&(_=o);const w=new _(x);w[p]=p;const O=t.current;return this[z]==$?this[C].push(O,w,d,d):oe(this,O,w,d,d),w}}o.resolve=o.resolve,o.reject=o.reject,o.race=o.race,o.all=o.all;const c=e[v]=e.Promise;e.Promise=o;const b=f("thenPatched");function I(h){const d=h.prototype,a=r(d,"then");if(a&&(!1===a.writable||!a.configurable))return;const _=d.then;d[g]=_,h.prototype.then=function(w,O){return new o((D,Z)=>{_.call(this,D,Z)}).then(w,O)},h[b]=!0}return n.patchThen=I,c&&(I(c),ce(e,"fetch",h=>function J(h){return function(d,a){let _=h.apply(d,a);if(_ instanceof o)return _;let w=_.constructor;return w[b]||I(w),_}}(h))),Promise[t.__symbol__("uncaughtPromiseErrors")]=u,o}),Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=j("OriginalDelegate"),r=j("Promise"),s=j("Error"),l=function(){if("function"==typeof this){const v=this[n];if(v)return"function"==typeof v?t.call(v):Object.prototype.toString.call(v);if(this===Promise){const g=e[r];if(g)return t.call(g)}if(this===Error){const g=e[s];if(g)return t.call(g)}}return t.call(this)};l[n]=t,Function.prototype.toString=l;const f=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":f.call(this)}});let Te=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Te=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Te=!1}const Xe={useG:!0},re={},Ue={},Ye=new RegExp("^"+Ne+"(\\w+)(true|false)$"),it=j("propagationStopped");function Ke(e,t){const n=(t?t(e):e)+ee,r=(t?t(e):e)+se,s=Ne+n,l=Ne+r;re[e]={},re[e][ee]=s,re[e][se]=l}function ct(e,t,n,r){const s=r&&r.add||Re,l=r&&r.rm||Me,f=r&&r.listeners||"eventListeners",u=r&&r.rmAll||"removeAllListeners",E=j(s),v="."+s+":",g="prependListener",A="."+g+":",N=function(C,p,Q){if(C.isRemoved)return;const B=C.callback;let Y;"object"==typeof B&&B.handleEvent&&(C.callback=k=>B.handleEvent(k),C.originalDelegate=B);try{C.invoke(C,p,[Q])}catch(k){Y=k}const $=C.options;return $&&"object"==typeof $&&$.once&&p[l].call(p,Q.type,C.originalDelegate?C.originalDelegate:C.callback,$),Y};function P(C,p,Q){if(!(p=p||e.event))return;const B=C||p.target||e,Y=B[re[p.type][Q?se:ee]];if(Y){const $=[];if(1===Y.length){const k=N(Y[0],B,p);k&&$.push(k)}else{const k=Y.slice();for(let U=0;U{throw U})}}}const H=function(C){return P(this,C,!1)},S=function(C){return P(this,C,!0)};function F(C,p){if(!C)return!1;let Q=!0;p&&void 0!==p.useG&&(Q=p.useG);const B=p&&p.vh;let Y=!0;p&&void 0!==p.chkDup&&(Y=p.chkDup);let $=!1;p&&void 0!==p.rt&&($=p.rt);let k=C;for(;k&&!k.hasOwnProperty(s);)k=Oe(k);if(!k&&C[s]&&(k=C),!k||k[E])return!1;const U=p&&p.eventNameToString,T={},L=k[E]=k[s],R=k[j(l)]=k[l],ne=k[j(f)]=k[f],fe=k[j(u)]=k[u];let K;p&&p.prepend&&(K=k[j(p.prepend)]=k[p.prepend]);const o=Q?function(a){if(!T.isExisting)return L.call(T.target,T.eventName,T.capture?S:H,T.options)}:function(a){return L.call(T.target,T.eventName,a.invoke,T.options)},c=Q?function(a){if(!a.isRemoved){const _=re[a.eventName];let w;_&&(w=_[a.capture?se:ee]);const O=w&&a.target[w];if(O)for(let m=0;mfunction(s,l){s[it]=!0,r&&r.apply(s,l)})}function Qe(e,t,n,r,s){const l=Zone.__symbol__(r);if(t[l])return;const f=t[l]=t[r];t[r]=function(u,E,v){return E&&E.prototype&&s.forEach(function(g){const A=`${n}.${r}::`+g,N=E.prototype;try{if(N.hasOwnProperty(g)){const P=e.ObjectGetOwnPropertyDescriptor(N,g);P&&P.value?(P.value=e.wrapWithCurrentZone(P.value,A),e._redefineProperty(E.prototype,g,P)):N[g]&&(N[g]=e.wrapWithCurrentZone(N[g],A))}else N[g]&&(N[g]=e.wrapWithCurrentZone(N[g],A))}catch{}}),f.call(t,u,E,v)},e.attachOriginToPatched(t[r],f)}function lt(e,t,n){if(!n||0===n.length)return t;const r=n.filter(l=>l.target===e);if(!r||0===r.length)return t;const s=r[0].ignoreProperties;return t.filter(l=>-1===s.indexOf(l))}function ut(e,t,n,r){e&&We(e,lt(e,t,n),r)}function Ve(e){return Object.getOwnPropertyNames(e).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}Zone.__load_patch("util",(e,t,n)=>{const r=Ve(e);n.patchOnProperties=We,n.patchMethod=ce,n.bindArguments=Le,n.patchMacroTask=qe;const s=t.__symbol__("BLACK_LISTED_EVENTS"),l=t.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[s]=e[l]),e[s]&&(t[s]=t[l]=e[s]),n.patchEventPrototype=Je,n.patchEventTarget=ct,n.isIEOrEdge=st,n.ObjectDefineProperty=Se,n.ObjectGetOwnPropertyDescriptor=de,n.ObjectCreate=me,n.ArraySlice=nt,n.patchClass=be,n.wrapWithCurrentZone=Ae,n.filterProperties=lt,n.attachOriginToPatched=ae,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Qe,n.getGlobalObjects=()=>({globalSources:Ue,zoneSymbolEventNames:re,eventNames:r,isBrowser:De,isMix:je,isNode:ve,TRUE_STR:se,FALSE_STR:ee,ZONE_SYMBOL_PREFIX:Ne,ADD_EVENT_LISTENER_STR:Re,REMOVE_EVENT_LISTENER_STR:Me})});const Ee=j("zoneTask");function ge(e,t,n,r){let s=null,l=null;n+=r;const f={};function u(v){const g=v.data;return g.args[0]=function(){return v.invoke.apply(this,arguments)},g.handleId=s.apply(e,g.args),v}function E(v){return l.call(e,v.data.handleId)}s=ce(e,t+=r,v=>function(g,A){if("function"==typeof A[0]){const N={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?A[1]||0:void 0,args:A},P=A[0];A[0]=function(){try{return P.apply(this,arguments)}finally{N.isPeriodic||("number"==typeof N.handleId?delete f[N.handleId]:N.handleId&&(N.handleId[Ee]=null))}};const H=ze(t,A[0],N,u,E);if(!H)return H;const S=H.data.handleId;return"number"==typeof S?f[S]=H:S&&(S[Ee]=H),S&&S.ref&&S.unref&&"function"==typeof S.ref&&"function"==typeof S.unref&&(H.ref=S.ref.bind(S),H.unref=S.unref.bind(S)),"number"==typeof S||S?S:H}return v.apply(e,A)}),l=ce(e,n,v=>function(g,A){const N=A[0];let P;"number"==typeof N?P=f[N]:(P=N&&N[Ee],P||(P=N)),P&&"string"==typeof P.type?"notScheduled"!==P.state&&(P.cancelFn&&P.data.isPeriodic||0===P.runCount)&&("number"==typeof N?delete f[N]:N&&(N[Ee]=null),P.zone.cancelTask(P)):v.apply(e,A)})}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",(e,t,n)=>{n.patchMethod(e,"queueMicrotask",r=>function(s,l){t.current.scheduleMicroTask("queueMicrotask",l[0])})}),Zone.__load_patch("timers",e=>{const t="set",n="clear";ge(e,t,n,"Timeout"),ge(e,t,n,"Interval"),ge(e,t,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ge(e,"request","cancel","AnimationFrame"),ge(e,"mozRequest","mozCancel","AnimationFrame"),ge(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let r=0;rfunction(E,v){return t.current.run(l,e,v,u)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{(function i(e,t){t.patchEventPrototype(e,t)})(e,n),function _t(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:s,FALSE_STR:l,ZONE_SYMBOL_PREFIX:f}=t.getGlobalObjects();for(let E=0;E{be("MutationObserver"),be("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,t,n)=>{be("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,t,n)=>{be("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{!function ft(e,t){if(ve&&!je||Zone[e.symbol("patchEvents")])return;const n=t.__Zone_ignore_on_properties;let r=[];if(De){const s=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const l=function ot(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:s,ignoreProperties:["error"]}]:[];ut(s,Ve(s),n&&n.concat(l),Oe(s))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let s=0;s{!function et(e,t){const{isBrowser:n,isMix:r}=t.getGlobalObjects();(n||r)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function E(v){const g=v.XMLHttpRequest;if(!g)return;const A=g.prototype;let P=A[ue],H=A[Ce];if(!P){const T=v.XMLHttpRequestEventTarget;if(T){const L=T.prototype;P=L[ue],H=L[Ce]}}const S="readystatechange",F="scheduled";function z(T){const L=T.data,R=L.target;R[l]=!1,R[u]=!1;const ne=R[s];P||(P=R[ue],H=R[Ce]),ne&&H.call(R,S,ne);const fe=R[s]=()=>{if(R.readyState===R.DONE)if(!L.aborted&&R[l]&&T.state===F){const W=R[t.__symbol__("loadfalse")];if(0!==R.status&&W&&W.length>0){const le=T.invoke;T.invoke=function(){const oe=R[t.__symbol__("loadfalse")];for(let q=0;qfunction(T,L){return T[r]=0==L[2],T[f]=L[1],Q.apply(T,L)}),Y=j("fetchTaskAborting"),$=j("fetchTaskScheduling"),k=ce(A,"send",()=>function(T,L){if(!0===t.current[$]||T[r])return k.apply(T,L);{const R={target:T,url:T[f],isPeriodic:!1,args:L,aborted:!1},ne=ze("XMLHttpRequest.send",C,R,z,p);T&&!0===T[u]&&!R.aborted&&ne.state===F&&ne.invoke()}}),U=ce(A,"abort",()=>function(T,L){const R=function N(T){return T[n]}(T);if(R&&"string"==typeof R.type){if(null==R.cancelFn||R.data&&R.data.aborted)return;R.zone.cancelTask(R)}else if(!0===t.current[Y])return U.apply(T,L)})}(e);const n=j("xhrTask"),r=j("xhrSync"),s=j("xhrListener"),l=j("xhrScheduled"),f=j("xhrURL"),u=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function ke(e,t){const n=e.constructor.name;for(let r=0;r{const E=function(){return u.apply(this,Le(arguments,n+"."+s))};return ae(E,u),E})(l)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(r){return function(s){at(e,r).forEach(f=>{const u=e.PromiseRejectionEvent;if(u){const E=new u(r,{promise:s.promise,reason:s.rejection});f.invoke(E)}})}}e.PromiseRejectionEvent&&(t[j("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[j("rejectionHandledHandler")]=n("rejectionhandled"))})}},de=>{de(de.s=73)}]); -(self.webpackChunkstore_website_element=self.webpackChunkstore_website_element||[]).push([[179],{635:(an,Je,De)=>{"use strict";var Be={};function V(n){return"function"==typeof n}function Se(n){const e=n(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}De.r(Be),De.d(Be,{Arc:()=>zk,BezierCurve:()=>_j,BoundingRect:()=>ci,Circle:()=>Bk,CompoundPath:()=>Tge,Ellipse:()=>aj,Group:()=>Bs,Image:()=>Zg,IncrementalDisplayable:()=>Lge,Line:()=>s1,LinearGradient:()=>Cj,OrientedBoundingRect:()=>vO,Path:()=>Li,Point:()=>Dn,Polygon:()=>pj,Polyline:()=>pO,RadialGradient:()=>Ege,Rect:()=>ka,Ring:()=>dj,Sector:()=>$b,Text:()=>as,applyTransform:()=>Wk,clipPointsByRect:()=>Zge,clipRectByRect:()=>Yge,createIcon:()=>qk,extendPath:()=>Uge,extendShape:()=>Bge,getShapeClass:()=>Vge,getTransform:()=>Gge,groupTransition:()=>Dj,initProps:()=>ep,isElementRemoved:()=>Ub,lineLineIntersect:()=>Ij,linePolygonIntersect:()=>Xge,makeImage:()=>Oj,makePath:()=>Gk,mergePath:()=>zge,registerShape:()=>Au,removeElement:()=>_O,removeElementWithFadeOut:()=>Mj,resizePath:()=>Tj,setTooltipConfig:()=>Yk,subPixelOptimize:()=>jge,subPixelOptimizeLine:()=>Vb,subPixelOptimizeRect:()=>Hge,transformDirection:()=>Wge,traverseElements:()=>Xk,updateProps:()=>Od});const Pt=Se(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Y(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Ke{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(V(r))try{r()}catch(o){t=o instanceof Pt?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Zt(o)}catch(a){t=t??[],a instanceof Pt?t=[...t,...a.errors]:t.push(a)}}if(t)throw new Pt(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Zt(t);else{if(t instanceof Ke){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Y(e,t)}remove(t){const{_finalizers:e}=this;e&&Y(e,t),t instanceof Ke&&t._removeParent(this)}}Ke.EMPTY=(()=>{const n=new Ke;return n.closed=!0,n})();const rn=Ke.EMPTY;function mt(n){return n instanceof Ke||n&&"closed"in n&&V(n.remove)&&V(n.add)&&V(n.unsubscribe)}function Zt(n){V(n)?n():n.unsubscribe()}const Yt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wt={setTimeout(n,t,...e){const{delegate:r}=wt;return r?.setTimeout?r.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=wt;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Vn(n){wt.setTimeout(()=>{const{onUnhandledError:t}=Yt;if(!t)throw n;t(n)})}function qt(){}const ct=Dt("C",void 0,void 0);function Dt(n,t,e){return{kind:n,value:t,error:e}}let Xt=null;function Rt(n){if(Yt.useDeprecatedSynchronousErrorHandling){const t=!Xt;if(t&&(Xt={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:r}=Xt;if(Xt=null,e)throw r}}else n()}class Et extends Ke{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,mt(t)&&t.add(this)):this.destination=Ie}static create(t,e,r){return new Dr(t,e,r)}next(t){this.isStopped?Ln(function tt(n){return Dt("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ln(function pt(n){return Dt("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ln(ct,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Yn=Function.prototype.bind;function vn(n,t){return Yn.call(n,t)}class Zr{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(r){fi(r)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(r){fi(r)}else fi(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){fi(e)}}}class Dr extends Et{constructor(t,e,r){let i;if(super(),V(t)||!t)i={next:t??void 0,error:e??void 0,complete:r??void 0};else{let o;this&&Yt.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&vn(t.next,o),error:t.error&&vn(t.error,o),complete:t.complete&&vn(t.complete,o)}):i=t}this.destination=new Zr(i)}}function fi(n){Yt.useDeprecatedSynchronousErrorHandling?function sn(n){Yt.useDeprecatedSynchronousErrorHandling&&Xt&&(Xt.errorThrown=!0,Xt.error=n)}(n):Vn(n)}function Ln(n,t){const{onStoppedNotification:e}=Yt;e&&wt.setTimeout(()=>e(n,t))}const Ie={closed:!0,next:qt,error:function to(n){throw n},complete:qt},H="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(n){return n}function L(n){return 0===n.length?x:1===n.length?n[0]:function(e){return n.reduce((r,i)=>i(r),e)}}let F=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const r=new n;return r.source=this,r.operator=e,r}subscribe(e,r,i){const o=function de(n){return n&&n instanceof Et||function te(n){return n&&V(n.next)&&V(n.error)&&V(n.complete)}(n)&&mt(n)}(e)?e:new Dr(e,r,i);return Rt(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=G(r))((i,o)=>{const a=new Dr({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:i});this.subscribe(a)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[H](){return this}pipe(...e){return L(e)(this)}toPromise(e){return new(e=G(e))((r,i)=>{let o;this.subscribe(a=>o=a,a=>i(a),()=>r(o))})}}return n.create=t=>new n(t),n})();function G(n){var t;return null!==(t=n??Yt.Promise)&&void 0!==t?t:Promise}const K=Se(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let D=(()=>{class n extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new Q(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new K}next(e){Rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){Rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){Rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:r,isStopped:i,observers:o}=this;return r||i?rn:(this.currentObservers=null,o.push(e),new Ke(()=>{this.currentObservers=null,Y(o,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:i,isStopped:o}=this;r?e.error(i):o&&e.complete()}asObservable(){const e=new F;return e.source=this,e}}return n.create=(t,e)=>new Q(t,e),n})();class Q extends D{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)}error(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:rn}}function ut(n){return V(n?.lift)}function Xe(n){return t=>{if(ut(t))return t.lift(function(e){try{return n(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function B(n,t,e,r,i){return new Oe(n,t,e,r,i)}class Oe extends Et{constructor(t,e,r,i,o,a){super(t),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){t.error(l)}}:super._next,this._error=i?function(s){try{i(s)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function R(n,t){return Xe((e,r)=>{let i=0;e.subscribe(B(r,o=>{r.next(n.call(t,o,i++))}))})}function ke(n,t,e,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(t,e,o):a(t,e))||o);return i>3&&o&&Object.defineProperty(t,e,o),o}function rr(n){return this instanceof rr?(this.v=n,this):new rr(n)}function Fr(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Xn(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=n[o]&&function(a){return new Promise(function(s,l){!function i(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}(s,l,(a=n[o](a)).done,a.value)})}}}const Br=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function ti(n){return V(n?.then)}function rc(n){return V(n[H])}function ni(n){return Symbol.asyncIterator&&V(n?.[Symbol.asyncIterator])}function ri(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ii=function ic(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function oi(n){return V(n?.[ii])}function oc(n){return function Lr(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=e.apply(n,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(p){r[p]&&(i[p]=function(g){return new Promise(function(v,_){o.push([p,g,v,_])>1||s(p,g)})})}function s(p,g){try{!function l(p){p.value instanceof rr?Promise.resolve(p.value.v).then(c,u):d(o[0][2],p)}(r[p](g))}catch(v){d(o[0][3],v)}}function c(p){s("next",p)}function u(p){s("throw",p)}function d(p,g){p(g),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:r,done:i}=yield rr(e.read());if(i)return yield rr(void 0);yield yield rr(r)}}finally{e.releaseLock()}})}function $r(n){return V(n?.getReader)}function Mn(n){if(n instanceof F)return n;if(null!=n){if(rc(n))return function Tl(n){return new F(t=>{const e=n[H]();if(V(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Br(n))return function mi(n){return new F(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Vn)})}(n);if(ni(n))return ai(n);if(oi(n))return function iu(n){return new F(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if($r(n))return function _i(n){return ai(oc(n))}(n)}throw ri(n)}function ai(n){return new F(t=>{(function ou(n,t){var e,r,i,o;return function Fn(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Fr(n);!(r=yield e.next()).done;)if(t.next(r.value),t.closed)return}catch(a){i={error:a}}finally{try{r&&!r.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function dr(n,t,e,r=0,i=!1){const o=t.schedule(function(){e(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!i)return o}function Ur(n,t,e=1/0){return V(t)?Ur((r,i)=>R((o,a)=>t(r,o,i,a))(Mn(n(r,i))),e):("number"==typeof t&&(e=t),Xe((r,i)=>function yi(n,t,e,r,i,o,a,s){const l=[];let c=0,u=0,d=!1;const p=()=>{d&&!l.length&&!c&&t.complete()},g=_=>c{o&&t.next(_),c++;let y=!1;Mn(e(_,u++)).subscribe(B(t,b=>{i?.(b),o?g(b):t.next(b)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&cv(b)):v(b)}p()}catch(b){t.error(b)}}))};return n.subscribe(B(t,g,()=>{d=!0,p()})),()=>{s?.()}}(r,i,n,e)))}function Pr(n=1/0){return Ur(x,n)}const Jn=new F(n=>n.complete());function Al(n){return n&&V(n.schedule)}function Ys(n){return n[n.length-1]}function Ga(n){return V(Ys(n))?n.pop():void 0}function Wa(n){return Al(Ys(n))?n.pop():void 0}function Bd(n,t=0){return Xe((e,r)=>{e.subscribe(B(r,i=>dr(r,n,()=>r.next(i),t),()=>dr(r,n,()=>r.complete(),t),i=>dr(r,n,()=>r.error(i),t)))})}function Xh(n,t=0){return Xe((e,r)=>{r.add(n.schedule(()=>e.subscribe(r),t))})}function ef(n,t){if(!n)throw new Error("Iterable cannot be null");return new F(e=>{dr(e,t,()=>{const r=n[Symbol.asyncIterator]();dr(e,t,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function bi(n,t){return t?function Dp(n,t){if(null!=n){if(rc(n))return function Tp(n,t){return Mn(n).pipe(Xh(t),Bd(t))}(n,t);if(Br(n))return function Jh(n,t){return new F(e=>{let r=0;return t.schedule(function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())})})}(n,t);if(ti(n))return function Kh(n,t){return Mn(n).pipe(Xh(t),Bd(t))}(n,t);if(ni(n))return ef(n,t);if(oi(n))return function Qh(n,t){return new F(e=>{let r;return dr(e,t,()=>{r=n[ii](),dr(e,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(a){return void e.error(a)}o?e.complete():e.next(i)},0,!0)}),()=>V(r?.return)&&r.return()})}(n,t);if($r(n))return function Ap(n,t){return ef(oc(n),t)}(n,t)}throw ri(n)}(n,t):Mn(n)}function Dl(...n){const t=Wa(n),e=function ju(n,t){return"number"==typeof Ys(n)?n.pop():t}(n,1/0),r=n;return r.length?1===r.length?Mn(r[0]):Pr(e)(bi(r,t)):Jn}function $d(n={}){const{connector:t=(()=>new D),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return o=>{let a,s,l,c=0,u=!1,d=!1;const p=()=>{s?.unsubscribe(),s=void 0},g=()=>{p(),a=l=void 0,u=d=!1},v=()=>{const _=a;g(),_?.unsubscribe()};return Xe((_,y)=>{c++,!d&&!u&&p();const b=l=l??t();y.add(()=>{c--,0===c&&!d&&!u&&(s=im(v,i))}),b.subscribe(y),!a&&c>0&&(a=new Dr({next:w=>b.next(w),error:w=>{d=!0,p(),s=im(g,e,w),b.error(w)},complete:()=>{u=!0,p(),s=im(g,r),b.complete()}}),Mn(_).subscribe(a))})(o)}}function im(n,t,...e){if(!0===t)return void n();if(!1===t)return;const r=new Dr({next:()=>{r.unsubscribe(),n()}});return Mn(t(...e)).subscribe(r)}function Qr(n){for(let t in n)if(n[t]===Qr)return t;throw Error("Could not find renamed property on target object.")}function V2(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Ci(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ci).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function tf(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const v3=Qr({__forward_ref__:Qr});function wi(n){return n.__forward_ref__=wi,n.toString=function(){return Ci(this())},n}function on(n){return om(n)?n():n}function om(n){return"function"==typeof n&&n.hasOwnProperty(v3)&&n.__forward_ref__===wi}function Ip(n){return n&&!!n.\u0275providers}const Ep="https://g.co/ng/security#xss";class nt extends Error{constructor(t,e){super(nf(t,e)),this.code=t}}function nf(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}function dn(n){return"string"==typeof n?n:null==n?"":String(n)}function kp(n,t){throw new nt(-201,!1)}function Xs(n,t){null==n&&function Vr(n,t,e,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${e} ${r} ${t} <=Actual]`))}(t,n,null,"!=")}function We(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Yi(n){return{providers:n.providers||[],imports:n.imports||[]}}function am(n){return C3(n,Rp)||C3(n,z2)}function C3(n,t){return n.hasOwnProperty(t)?n[t]:null}function Ro(n){return n&&(n.hasOwnProperty(Ud)||n.hasOwnProperty(H2))?n[Ud]:null}const Rp=Qr({\u0275prov:Qr}),Ud=Qr({\u0275inj:Qr}),z2=Qr({ngInjectableDef:Qr}),H2=Qr({ngInjectorDef:Qr});var Bt=(()=>((Bt=Bt||{})[Bt.Default=0]="Default",Bt[Bt.Host=1]="Host",Bt[Bt.Self=2]="Self",Bt[Bt.SkipSelf=4]="SkipSelf",Bt[Bt.Optional=8]="Optional",Bt))();let sm;function Cs(n){const t=sm;return sm=n,t}function j2(n,t,e){const r=am(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&Bt.Optional?null:void 0!==t?t:void kp(Ci(n))}const si=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Np={},lm="__NG_DI_FLAG__",El="ngTempTokenPath",cm="ngTokenPath",G2=/\n/gm,$i="\u0275",su="__source";let Vd;function rf(n){const t=Vd;return Vd=n,t}function W2(n,t=Bt.Default){if(void 0===Vd)throw new nt(-203,!1);return null===Vd?j2(n,void 0,t):Vd.get(n,t&Bt.Optional?null:void 0,t)}function Pe(n,t=Bt.Default){return(function x3(){return sm}()||W2)(on(n),t)}function Lt(n,t=Bt.Default){return Pe(n,Lp(t))}function Lp(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function af(n){const t=[];for(let e=0;e((ws=ws||{})[ws.OnPush=0]="OnPush",ws[ws.Default=1]="Default",ws))(),Js=(()=>{return(n=Js||(Js={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Js;var n})();const kl={},Er=[],Fp=Qr({\u0275cmp:Qr}),Ma=Qr({\u0275dir:Qr}),sf=Qr({\u0275pipe:Qr}),lf=Qr({\u0275mod:Qr}),cc=Qr({\u0275fac:Qr}),cf=Qr({__NG_ELEMENT_ID__:Qr});let hA=0;function xt(n){return lc(()=>{const e=!0===n.standalone,r={},i={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:r,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===ws.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Er,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Js.Emulated,id:"c"+hA++,styles:n.styles||Er,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,a=n.features;return i.inputs=A3(n.inputs,r),i.outputs=A3(n.outputs),a&&a.forEach(s=>s(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(S3).filter(T3):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Pa).filter(T3):null,i})}function um(n,t,e){const r=n.\u0275cmp;r.directiveDefs=()=>("function"==typeof t?t():t).map(S3),r.pipeDefs=()=>("function"==typeof e?e():e).map(Pa)}function S3(n){return Qn(n)||So(n)}function T3(n){return null!==n}function xi(n){return lc(()=>({type:n.type,bootstrap:n.bootstrap||Er,declarations:n.declarations||Er,imports:n.imports||Er,exports:n.exports||Er,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function A3(n,t){if(null==n)return kl;const e={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),e[i]=r,t&&(t[i]=o)}return e}const Ht=xt;function bo(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Qn(n){return n[Fp]||null}function So(n){return n[Ma]||null}function Pa(n){return n[sf]||null}function xs(n,t){const e=n[lf]||null;if(!e&&!0===t)throw new Error(`Type ${Ci(n)} does not have '\u0275mod' property.`);return e}const Za=0,_t=1,On=2,no=3,Rl=4,zd=5,ua=6,df=7,Ui=8,pe=9,Re=10,me=11,It=12,gn=13,Or=14,Vi=15,Sn=16,Hd=17,hf=18,lo=19,Wu=20,D3=21,zr=22,ff=1,Hr=2,dm=7,Bp=8,lu=9,Oa=10;function Ms(n){return Array.isArray(n)&&"object"==typeof n[ff]}function Ya(n){return Array.isArray(n)&&!0===n[ff]}function uc(n){return 0!=(4&n.flags)}function qu(n){return n.componentOffset>-1}function $p(n){return 1==(1&n.flags)}function Xa(n){return null!==n.template}function I3(n){return 0!=(256&n[On])}function Zu(n,t){return n.hasOwnProperty(cc)?n[cc]:null}class N3{constructor(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function co(){return gf}function gf(n){return n.type.prototype.ngOnChanges&&(n.setInput=mf),K2}function K2(){const n=_f(this),t=n?.current;if(t){const e=n.previous;if(e===kl)n.previous=t;else for(let r in t)e[r]=t[r];n.current=null,this.ngOnChanges(t)}}function mf(n,t,e,r){const i=this.declaredInputs[e],o=_f(n)||function pm(n,t){return n[vf]=t}(n,{previous:kl,current:null}),a=o.current||(o.current={}),s=o.previous,l=s[i];a[i]=new N3(l&&l.currentValue,t,s===kl),n[r]=t}co.ngInherit=!0;const vf="__ngSimpleChanges__";function _f(n){return n[vf]||null}const Qs=function(n,t,e){},L3="svg";function Jo(n){for(;Array.isArray(n);)n=n[Za];return n}function Xu(n,t){return Jo(t[n])}function Ka(n,t){return Jo(t[n.index])}function jd(n,t){return n.data[t]}function cu(n,t){return n[t]}function zi(n,t){const e=t[n];return Ms(e)?e:e[Za]}function mm(n){return 64==(64&n[On])}function Ku(n,t){return null==t?null:n[t]}function Ju(n){n[hf]=0}function J2(n,t){n[zd]+=t;let e=n,r=n[no];for(;null!==r&&(1===t&&1===e[zd]||-1===t&&0===e[zd]);)r[zd]+=t,e=r,r=r[no]}const Pn={lFrame:j3(null),bindingsEnabled:!0};function $3(){return Pn.bindingsEnabled}function qe(){return Pn.lFrame.lView}function Tn(){return Pn.lFrame.tView}function hr(n){return Pn.lFrame.contextLView=n,n[Ui]}function fr(n){return Pn.lFrame.contextLView=null,n}function Qo(){let n=U3();for(;null!==n&&64===n.type;)n=n.parent;return n}function U3(){return Pn.lFrame.currentTNode}function da(n,t){const e=Pn.lFrame;e.currentTNode=n,e.isParent=t}function Q2(){return Pn.lFrame.isParent}function e_(){Pn.lFrame.isParent=!1}function Ta(){const n=Pn.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Gd(){return Pn.lFrame.bindingIndex++}function dc(n){const t=Pn.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function t_(n,t){const e=Pn.lFrame;e.bindingIndex=e.bindingRootIndex=n,yf(t)}function yf(n){Pn.lFrame.currentDirectiveIndex=n}function r_(){return Pn.lFrame.currentQueryIndex}function i_(n){Pn.lFrame.currentQueryIndex=n}function hu(n){const t=n[_t];return 2===t.type?t.declTNode:1===t.type?n[ua]:null}function vm(n,t,e){if(e&Bt.SkipSelf){let i=t,o=n;for(;!(i=i.parent,null!==i||e&Bt.Host||(i=hu(o),null===i||(o=o[Vi],10&i.type))););if(null===i)return!1;t=i,n=o}const r=Pn.lFrame=Ps();return r.currentTNode=t,r.lView=n,!0}function fu(n){const t=Ps(),e=n[_t];Pn.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Ps(){const n=Pn.lFrame,t=null===n?null:n.child;return null===t?j3(n):t}function j3(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function o_(){const n=Pn.lFrame;return Pn.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const a_=o_;function Wd(){const n=o_();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 Aa(){return Pn.lFrame.selectedIndex}function hc(n){Pn.lFrame.selectedIndex=n}function Xi(){const n=Pn.lFrame;return jd(n.tView,n.selectedIndex)}function Ll(){Pn.lFrame.currentNamespace=L3}function qd(){!function W3(){Pn.lFrame.currentNamespace=null}()}function Zd(n,t){for(let e=t.directiveStart,r=t.directiveEnd;e=r)break}else t[l]<0&&(n[hf]+=65536),(s>11>16&&(3&n[On])===t){n[On]+=2048,Qs(4,s,o);try{o.call(s)}finally{Qs(5,s,o)}}}else{Qs(4,s,o);try{o.call(s)}finally{Qs(5,s,o)}}}const bf=-1;class Hp{constructor(t,e,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function c_(n,t,e){let r=0;for(;rt){a=o-1;break}}}for(;o>16}(n),r=t;for(;e>0;)r=r[Vi],e--;return r}let Wp=!0;function qp(n){const t=Wp;return Wp=n,t}const h_=255,Zp=5;let TA=0;const Fl={};function wm(n,t){const e=X3(n,t);if(-1!==e)return e;const r=t[_t];r.firstCreatePass&&(n.injectorIndex=t.length,xm(r.data,n),xm(t,null),xm(r.blueprint,null));const i=Yp(n,t),o=n.injectorIndex;if(Z3(i)){const a=Gp(i),s=Cm(i,t),l=s[_t].data;for(let c=0;c<8;c++)t[o+c]=s[a+c]|l[a+c]}return t[o+8]=i,o}function xm(n,t){n.push(0,0,0,0,0,0,0,0,t)}function X3(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Yp(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,r=null,i=t;for(;null!==i;){if(r=Ja(i),null===r)return bf;if(e++,i=i[Vi],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return bf}function Mm(n,t,e){!function Y3(n,t,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(cf)&&(r=e[cf]),null==r&&(r=e[cf]=TA++);const i=r&h_;t.data[n+(i>>Zp)]|=1<=0?t&h_:Om:t}(e);if("function"==typeof o){if(!vm(t,n,r))return r&Bt.Host?K3(i,0,r):Pm(t,e,r,i);try{const a=o(r);if(null!=a||r&Bt.Optional)return a;kp()}finally{a_()}}else if("number"==typeof o){let a=null,s=X3(n,t),l=bf,c=r&Bt.Host?t[Sn][ua]:null;for((-1===s||r&Bt.SkipSelf)&&(l=-1===s?Yp(n,t):t[s+8],l!==bf&&Os(r,!1)?(a=t[_t],s=Gp(l),t=Cm(l,t)):s=-1);-1!==s;){const u=t[_t];if(Q3(o,s,u.data)){const d=AA(s,t,e,a,r,c);if(d!==Fl)return d}l=t[s+8],l!==bf&&Os(r,t[_t].data[s+8]===c)&&Q3(o,s,t)?(a=u,s=Gp(l),t=Cm(l,t)):s=-1}}return i}function AA(n,t,e,r,i,o){const a=t[_t],s=a.data[n+8],u=ed(s,a,e,null==r?qu(s)&&Wp:r!=a&&0!=(3&s.type),i&Bt.Host&&o===s);return null!==u?td(t,a,u,s):Fl}function ed(n,t,e,r,i){const o=n.providerIndexes,a=t.data,s=1048575&o,l=n.directiveStart,u=o>>20,p=i?s+u:n.directiveEnd;for(let g=r?s:s+u;g=l&&v.type===e)return g}if(i){const g=a[l];if(g&&Xa(g)&&g.type===e)return l}return null}function td(n,t,e,r){let i=n[e];const o=t.data;if(function l_(n){return n instanceof Hp}(i)){const a=i;a.resolving&&function _3(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new nt(-200,`Circular dependency in DI detected for ${n}${e}`)}(function Ir(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():dn(n)}(o[e]));const s=qp(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?Cs(a.injectImpl):null;vm(n,r,Bt.Default);try{i=n[e]=a.factory(void 0,o,n,r),t.firstCreatePass&&e>=r.directiveStart&&function s_(n,t,e){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const a=gf(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,a)}i&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,i),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Cs(l),qp(s),a.resolving=!1,a_()}}return i}function Q3(n,t,e){return!!(e[t+(n>>Zp)]&1<{const t=n.prototype.constructor,e=t[cc]||Sm(t),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const o=i[cc]||Sm(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Sm(n){return om(n)?()=>{const t=Sm(on(n));return t&&t()}:Zu(n)}function Ja(n){const t=n[_t],e=t.type;return 2===e?t.declTNode:1===e?n[ua]:null}const Xd="__parameters__",pu="__prop__metadata__";function Xp(n){return function(...e){if(n){const r=n(...e);for(const i in r)this[i]=r[i]}}}function Kd(n,t,e){return lc(()=>{const r=Xp(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const a=new i(...o);return s.annotation=a,s;function s(l,c,u){const d=l.hasOwnProperty(Xd)?l[Xd]:Object.defineProperty(l,Xd,{value:[]})[Xd];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),l}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}function Tm(n,t,e,r){return lc(()=>{const i=Xp(t);function o(...a){if(this instanceof o)return i.apply(this,a),this;const s=new o(...a);return function l(c,u){const d=c.constructor,p=d.hasOwnProperty(pu)?d[pu]:Object.defineProperty(d,pu,{value:{}})[pu];p[u]=p.hasOwnProperty(u)&&p[u]||[],p[u].unshift(s),r&&r(c,u,...a)}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}class Ct{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=We({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Qd(n,t){n.forEach(e=>Array.isArray(e)?Qd(e,t):t(e))}function nw(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function eh(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function gc(n,t){const e=[];for(let r=0;r=0?n[1|r]=e:(r=~r,function LA(n,t,e,r){let i=n.length;if(i==t)n.push(e,r);else if(1===i)n.push(r,n[0]),n[0]=e;else{for(i--,n.push(n[i-1],n[i]);i>t;)n[i]=n[i-2],i--;n[t]=e,n[t+1]=r}}(n,r,t,e)),r}function th(n,t){const e=xf(n,t);if(e>=0)return n[1|e]}function xf(n,t){return function m_(n,t,e){let r=0,i=n.length>>e;for(;i!==r;){const o=r+(i-r>>1),a=n[o<t?i=o:r=o+1}return~(i<({token:n})),-1),rd=sc(Kd("Optional"),8),Mf=sc(Kd("SkipSelf"),4);var ns=(()=>((ns=ns||{})[ns.Important=1]="Important",ns[ns.DashCase=2]="DashCase",ns))();const eg=new Map;let vw=0;function P_(n){return eg.get(n)||null}class $m{get lView(){return P_(this.lViewId)}constructor(t,e,r){this.lViewId=t,this.nodeIndex=e,this.native=r}}function ha(n){let t=ng(n);if(t){if(Ms(t)){const e=t;let r,i,o;if(bw(n)){if(r=function ww(n,t){const e=n[_t].components;if(e)for(let r=0;r=0){const s=Jo(o[a]),l=el(o,a,s);ra(s,l),t=l;break}}}}return t||null}function el(n,t,e){return new $m(n[Wu],t,e)}const O_="__ngContext__";function ra(n,t){Ms(t)?(n[O_]=t[Wu],function M_(n){eg.set(n[Wu],n)}(t)):n[O_]=t}function ng(n){const t=n[O_];return"number"==typeof t?P_(t):t||null}function bw(n){return n&&n.constructor&&n.constructor.\u0275cmp}function Cw(n,t){const e=n[_t];for(let r=zr;r0&&(n[e-1][Rl]=r[Rl]);const o=eh(n,Oa+t);!function e4(n,t){og(n,t,t[me],2,null,null),t[Za]=null,t[ua]=null}(r[_t],r);const a=o[lo];null!==a&&a.detachView(o[_t]),r[no]=null,r[Rl]=null,r[On]&=-65}return r}function Hm(n,t){if(!(128&t[On])){const e=t[me];e.destroyNode&&og(n,t,e,3,null,null),function Sw(n){let t=n[gn];if(!t)return D_(n[_t],n);for(;t;){let e=null;if(Ms(t))e=t[gn];else{const r=t[Oa];r&&(e=r)}if(!e){for(;t&&!t[Rl]&&t!==n;)Ms(t)&&D_(t[_t],t),t=t[no];null===t&&(t=n),Ms(t)&&D_(t[_t],t),e=t&&t[Rl]}t=e}}(t)}}function D_(n,t){if(!(128&t[On])){t[On]&=-65,t[On]|=128,function a4(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let r=0;r=0?r[i=a]():r[i=-a].unsubscribe(),o+=2}else{const a=r[i=e[o+1]];e[o].call(a)}if(null!==r){for(let o=i+1;o-1){const{encapsulation:o}=n.data[r.directiveStart+i];if(o===Js.None||o===Js.Emulated)return null}return Ka(r,e)}}(n,t.parent,e)}function oh(n,t,e,r,i){n.insertBefore(t,e,r,i)}function Iw(n,t,e){n.appendChild(t,e)}function Ew(n,t,e,r,i){null!==r?oh(n,t,e,r,i):Iw(n,t,e)}function jm(n,t){return n.parentNode(t)}function kw(n,t,e){return Nw(n,t,e)}let I_,Zm,R_,Ym,Nw=function Rw(n,t,e){return 40&n.type?Ka(n,e):null};function Gm(n,t,e,r){const i=Aw(n,r,t),o=t[me],s=kw(r.parent||t[ua],r,t);if(null!=i)if(Array.isArray(e))for(let l=0;ln,createScript:n=>n,createScriptURL:n=>n})}catch{}return Zm}()?.createHTML(n)||n}function N_(){if(void 0===Ym&&(Ym=null,si.trustedTypes))try{Ym=si.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Ym}function Vw(n){return N_()?.createHTML(n)||n}function Hw(n){return N_()?.createScriptURL(n)||n}class sh{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ep})`}}class v4 extends sh{getTypeName(){return"HTML"}}class _4 extends sh{getTypeName(){return"Style"}}class jw extends sh{getTypeName(){return"Script"}}class Gw extends sh{getTypeName(){return"URL"}}class y4 extends sh{getTypeName(){return"ResourceURL"}}function Ss(n){return n instanceof sh?n.changingThisBreaksApplicationSecurity:n}function mc(n,t){const e=function b4(n){return n instanceof sh&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Ep})`)}return e===t}class P4{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(ah(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class O4{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const r=this.inertDocument.createElement("body");e.appendChild(r)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=ah(t),e;const r=this.inertDocument.createElement("body");return r.innerHTML=ah(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0"),!0}endElement(t){const e=t.nodeName.toLowerCase();Jm.hasOwnProperty(e)&&!qw.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(nv(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const I4=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,E4=/([^\#-~ |!])/g;function nv(n){return n.replace(/&/g,"&").replace(I4,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(E4,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ag;function Xw(n,t){let e=null;try{ag=ag||function Ww(n){const t=new O4(n);return function S4(){try{return!!(new window.DOMParser).parseFromString(ah(""),"text/html")}catch{return!1}}()?new P4(t):t}(n);let r=t?String(t):"";e=ag.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=e.innerHTML,e=ag.getInertBodyElement(r)}while(r!==o);return ah((new tv).sanitizeChildren(B_(e)||e))}finally{if(e){const r=B_(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function B_(n){return"content"in n&&function k4(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Ai=(()=>((Ai=Ai||{})[Ai.NONE=0]="NONE",Ai[Ai.HTML=1]="HTML",Ai[Ai.STYLE=2]="STYLE",Ai[Ai.SCRIPT=3]="SCRIPT",Ai[Ai.URL=4]="URL",Ai[Ai.RESOURCE_URL=5]="RESOURCE_URL",Ai))();function rv(n){const t=Ul();return t?Vw(t.sanitize(Ai.HTML,n)||""):mc(n,"HTML")?Vw(Ss(n)):Xw(function Uw(){return void 0!==R_?R_:typeof document<"u"?document:void 0}(),dn(n))}function fa(n){const t=Ul();return t?t.sanitize(Ai.URL,n)||"":mc(n,"URL")?Ss(n):Km(dn(n))}function Kw(n){const t=Ul();if(t)return Hw(t.sanitize(Ai.RESOURCE_URL,n)||"");if(mc(n,"ResourceURL"))return Hw(Ss(n));throw new nt(904,!1)}function Ul(){const n=qe();return n&&n[It]}const Cn=new Ct("ENVIRONMENT_INITIALIZER"),Jw=new Ct("INJECTOR",-1),Da=new Ct("INJECTOR_DEF_TYPES");class ro{get(t,e=Np){if(e===Np){const r=new Error(`NullInjectorError: No provider for ${Ci(t)}!`);throw r.name="NullInjectorError",r}return e}}function ad(...n){return{\u0275providers:Qw(0,n),\u0275fromNgModule:!0}}function Qw(n,...t){const e=[],r=new Set;let i;return Qd(t,o=>{const a=o;$_(a,e,[],r)&&(i||(i=[]),i.push(a))}),void 0!==i&&ex(i,e),e}function ex(n,t){for(let e=0;e{t.push(o)})}}function $_(n,t,e,r){if(!(n=on(n)))return!1;let i=null,o=Ro(n);const a=!o&&Qn(n);if(o||a){if(a&&!a.standalone)return!1;i=n}else{const l=n.ngModule;if(o=Ro(l),!o)return!1;i=l}const s=r.has(i);if(a){if(s)return!1;if(r.add(i),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const c of l)$_(c,t,e,r)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let c;r.add(i);try{Qd(o.imports,u=>{$_(u,t,e,r)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&ex(c,t)}if(!s){const c=Zu(i)||(()=>new i);t.push({provide:i,useFactory:c,deps:Er},{provide:Da,useValue:i,multi:!0},{provide:Cn,useValue:()=>Pe(i),multi:!0})}const l=o.providers;null==l||s||U_(l,u=>{t.push(u)})}}return i!==n&&void 0!==n.providers}function U_(n,t){for(let e of n)Ip(e)&&(e=e.\u0275providers),Array.isArray(e)?U_(e,t):t(e)}const V_=Qr({provide:String,useValue:Qr});function z_(n){return null!==n&&"object"==typeof n&&V_ in n}function _c(n){return"function"==typeof n}const Hi=new Ct("Set Injector scope."),sg={},U4={};let j_;function iv(){return void 0===j_&&(j_=new ro),j_}class Vl{}class tx extends Vl{get destroyed(){return this._destroyed}constructor(t,e,r,i){super(),this.parent=e,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sd(t,a=>this.processProvider(a)),this.records.set(Jw,Df(void 0,this)),i.has("environment")&&this.records.set(Vl,Df(void 0,this));const o=this.records.get(Hi);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Da.multi,Er,Bt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=rf(this),r=Cs(void 0);try{return t()}finally{rf(e),Cs(r)}}get(t,e=Np,r=Bt.Default){this.assertNotDestroyed(),r=Lp(r);const i=rf(this),o=Cs(void 0);try{if(!(r&Bt.SkipSelf)){let s=this.records.get(t);if(void 0===s){const l=function Ts(n){return"function"==typeof n||"object"==typeof n&&n instanceof Ct}(t)&&am(t);s=l&&this.injectableDefInScope(l)?Df(G_(t),sg):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}return(r&Bt.Self?iv():this.parent).get(t,e=r&Bt.Optional&&e===Np?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[El]=a[El]||[]).unshift(Ci(t)),i)throw a;return function P3(n,t,e,r){const i=n[El];throw t[su]&&i.unshift(t[su]),n.message=function O3(n,t,e,r=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==$i?n.slice(2):n;let i=Ci(t);if(Array.isArray(t))i=t.map(Ci).join(" -> ");else if("object"==typeof t){let o=[];for(let a in t)if(t.hasOwnProperty(a)){let s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ci(s)))}i=`{${o.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${n.replace(G2,"\n ")}`}("\n"+n.message,i,e,r),n[cm]=i,n[El]=null,n}(a,t,"R3InjectorError",this.source)}throw a}finally{Cs(o),rf(i)}}resolveInjectorInitializers(){const t=rf(this),e=Cs(void 0);try{const r=this.get(Cn.multi,Er,Bt.Self);for(const i of r)i()}finally{rf(t),Cs(e)}}toString(){const t=[],e=this.records;for(const r of e.keys())t.push(Ci(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let e=_c(t=on(t))?t:on(t&&t.provide);const r=function lg(n){return z_(n)?Df(void 0,n.useValue):Df(ov(n),sg)}(t);if(_c(t)||!0!==t.multi)this.records.get(e);else{let i=this.records.get(e);i||(i=Df(void 0,sg,!0),i.factory=()=>af(i.multi),this.records.set(e,i)),e=t,i.multi.push(t)}this.records.set(e,r)}hydrate(t,e){return e.value===sg&&(e.value=U4,e.value=e.factory()),"object"==typeof e.value&&e.value&&function av(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=on(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function G_(n){const t=am(n),e=null!==t?t.factory:Zu(n);if(null!==e)return e;if(n instanceof Ct)throw new nt(204,!1);if(n instanceof Function)return function nx(n){const t=n.length;if(t>0)throw gc(t,"?"),new nt(204,!1);const e=function w3(n){const t=n&&(n[Rp]||n[z2]);if(t){const e=function lA(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new nt(204,!1)}function ov(n,t,e){let r;if(_c(n)){const i=on(n);return Zu(i)||G_(i)}if(z_(n))r=()=>on(n.useValue);else if(function H_(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...af(n.deps||[]));else if(function vc(n){return!(!n||!n.useExisting)}(n))r=()=>Pe(on(n.useExisting));else{const i=on(n&&(n.useClass||n.provide));if(!function rx(n){return!!n.deps}(n))return Zu(i)||G_(i);r=()=>new i(...af(n.deps))}return r}function Df(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function sd(n,t){for(const e of n)Array.isArray(e)?sd(e,t):e&&Ip(e)?sd(e.\u0275providers,t):t(e)}class V4{}class ix{}class ax{resolveComponentFactory(t){throw function z4(n){const t=Error(`No component factory found for ${Ci(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let pa=(()=>{class n{}return n.NULL=new ax,n})();function Bn(){return lh(Qo(),qe())}function lh(n,t){return new wr(Ka(n,t))}let wr=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=Bn,n})();function sx(n){return n instanceof wr?n.nativeElement:n}class W_{}let jn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function H4(){const n=qe(),e=zi(Qo().index,n);return(Ms(e)?e:n)[me]}(),n})(),lx=(()=>{class n{}return n.\u0275prov=We({token:n,providedIn:"root",factory:()=>null}),n})();class vu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const j4=new vu("15.1.5"),q_={},Z_="ngOriginalError";function Y_(n){return n[Z_]}class If{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Y_(t);for(;e&&Y_(e);)e=Y_(e);return e||null}}function _u(n){return n instanceof Function?n():n}function cx(n,t,e){let r=n.length;for(;;){const i=n.indexOf(t,e);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||n.charCodeAt(i+o)<=32)return i}e=i+1}}const ux="ng-template";function eD(n,t,e){let r=0;for(;ro?"":i[d+1].toLowerCase();const g=8&r?p:null;if(g&&-1!==cx(g,c,0)||2&r&&c!==p){if(zl(r))return!1;a=!0}}}}else{if(!a&&!zl(r)&&!zl(l))return!1;if(a&&zl(l))continue;a=!1,r=l|1&r}}return zl(r)||a}function zl(n){return 0==(1&n)}function dx(n,t,e,r){if(null===t)return-1;let i=0;if(r||!e){let o=!1;for(;i-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!zl(a)&&(t+=gx(o,i),i=""),r=a,o=o||!zl(r);e++}return""!==i&&(t+=gx(o,i)),t}const hn={};function A(n){mx(Tn(),qe(),Aa()+n,!1)}function mx(n,t,e,r){if(!r)if(3==(3&t[On])){const o=n.preOrderCheckHooks;null!==o&&pc(t,o,e)}else{const o=n.preOrderHooks;null!==o&&zp(t,o,0,e)}hc(e)}function bx(n,t=null,e=null,r){const i=Cx(n,t,e,r);return i.resolveInjectorInitializers(),i}function Cx(n,t=null,e=null,r,i=new Set){const o=[e||Er,ad(n)];return r=r||("object"==typeof n?void 0:Ci(n)),new tx(o,t||iv(),r||null,i)}let fo=(()=>{class n{static create(e,r){if(Array.isArray(e))return bx({name:""},r,e,"");{const i=e.name??"";return bx({name:i},e.parent,e.providers,i)}}}return n.THROW_IF_NOT_FOUND=Np,n.NULL=new ro,n.\u0275prov=We({token:n,providedIn:"any",factory:()=>Pe(Jw)}),n.__NG_ELEMENT_ID__=-1,n})();function ye(n,t=Bt.Default){const e=qe();return null===e?Pe(n,t):Hn(Qo(),e,on(n),t)}function cv(n,t){const e=n.contentQueries;if(null!==e)for(let r=0;rzr&&mx(n,t,zr,!1),Qs(a?2:0,i),e(r,i)}finally{hc(o),Qs(a?3:1,i)}}function ay(n,t,e){if(uc(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,r,o)}}(n,t,r,cg(n,e,i.hostVars,hn),i)}function le(n,t,e,r,i,o){const a=Ka(n,t);!function ve(n,t,e,r,i,o,a){if(null==o)n.removeAttribute(t,i,e);else{const s=null==a?dn(o):a(o,r||"",i);n.setAttribute(t,i,s,e)}}(t[me],a,o,n.value,e,r,i)}function He(n,t,e,r,i,o){const a=o[t];if(null!==a){const s=r.setInput;for(let l=0;l0&&An(e)}}function An(n){for(let r=zm(n);null!==r;r=S_(r))for(let i=Oa;i0&&An(o)}const e=n[_t].components;if(null!==e)for(let r=0;r0&&An(i)}}function un(n,t){const e=zi(t,n),r=e[_t];(function er(n,t){for(let e=t.length;e-1&&(A_(t,r),eh(e,r))}this._attachedToViewContainer=!1}Hm(this._lView[_t],this._lView)}onDestroy(t){kx(this._lView[_t],this._lView,null,t)}markForCheck(){Ia(this._cdRefInjectingView||this._lView)}detach(){this._lView[On]&=-65}reattach(){this._lView[On]|=64}detectChanges(){Lo(this._lView[_t],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function n4(n,t){og(n,t,t[me],2,null,null)}(this._lView[_t],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t}}class oee extends uy{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Lo(t[_t],t,t[Ui],!1)}checkNoChanges(){}get context(){return null}}class FF extends pa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Qn(t);return new dy(e,this.ngModule)}}function BF(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class see{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,r){r=Lp(r);const i=this.injector.get(t,q_,r);return i!==q_||e===q_?i:this.parentInjector.get(t,e,r)}}class dy extends ix{get inputs(){return BF(this.componentDef.inputs)}get outputs(){return BF(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function aD(n){return n.map(oD).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,r,i){let o=(i=i||this.ngModule)instanceof Vl?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new see(t,o):t,s=a.get(W_,null);if(null===s)throw new nt(407,!1);const l=a.get(lx,null),c=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=r?function MD(n,t,e){return n.selectRootElement(t,e===Js.ShadowDom)}(c,r,this.componentDef.encapsulation):rs(c,u,function aee(n){const t=n.toLowerCase();return"svg"===t?L3:"math"===t?"math":null}(u)),p=this.componentDef.onPush?288:272,g=sy(0,null,null,1,0,null,null,null,null,null),v=uv(null,g,null,p,null,null,s,c,l,a,null);let _,y;fu(v);try{const b=this.componentDef;let w,M=null;b.findHostDirectiveDefs?(w=[],M=new Map,b.findHostDirectiveDefs(b,w,M),w.push(b)):w=[b];const P=function cee(n,t){const e=n[_t],r=zr;return n[r]=t,kf(e,r,2,"#host",null)}(v,d),N=function uee(n,t,e,r,i,o,a,s){const l=i[_t];!function dee(n,t,e,r){for(const i of n)t.mergedAttrs=jp(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&($x(t,t.mergedAttrs,!0),null!==e&&k_(r,e,t))}(r,n,t,a);const c=o.createRenderer(t,e),u=uv(i,Ex(e),null,e.onPush?32:16,i[n.index],n,o,c,s||null,null,null);return l.firstCreatePass&&m(l,n,r.length-1),Kn(i,u),i[n.index]=u}(P,d,b,w,v,s,c);y=jd(g,zr),d&&function fee(n,t,e,r){if(r)c_(n,e,["ng-version",j4.full]);else{const{attrs:i,classes:o}=function sD(n){const t=[],e=[];let r=1,i=2;for(;r0&&$w(n,e,o.join(" "))}}(c,b,d,r),void 0!==e&&function pee(n,t,e){const r=n.projection=[];for(let i=0;i=0;r--){const i=n[r];i.hostVars=t+=i.hostVars,i.hostAttrs=jp(i.hostAttrs,e=jp(e,i.hostAttrs))}}(r)}function RD(n){return n===kl?{}:n===Er?[]:n}function vee(n,t){const e=n.viewQuery;n.viewQuery=e?(r,i)=>{t(r,i),e(r,i)}:t}function _ee(n,t){const e=n.contentQueries;n.contentQueries=e?(r,i,o)=>{t(r,i,o),e(r,i,o)}:t}function yee(n,t){const e=n.hostBindings;n.hostBindings=e?(r,i)=>{t(r,i),e(r,i)}:t}let Vx=null;function hg(){if(!Vx){const n=si.Symbol;if(n&&n.iterator)Vx=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Jo(P[r.index])):r.index;let M=null;if(!a&&s&&(M=function kee(n,t,e,r){const i=n.cleanup;if(null!=i)for(let o=0;ol?s[l]:null}"string"==typeof a&&(o+=2)}return null}(n,t,i,r.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=o,M.__ngLastListenerFn__=o,p=!1;else{o=n8(r,t,u,o,!1);const P=e.listen(y,i,o);d.push(o,P),c&&c.push(i,w,b,b+1)}}else o=n8(r,t,u,o,!1);const g=r.outputs;let v;if(p&&null!==g&&(v=g[i])){const _=v.length;if(_)for(let y=0;y<_;y+=2){const N=t[v[y]][v[y+1]].subscribe(o),k=d.length;d.push(o,N),c&&c.push(i,r.index,k,-(k+1))}}}(o,i,i[me],a,n,t,r),yt}function t8(n,t,e,r){try{return Qs(6,t,e),!1!==e(r)}catch(i){return LF(n,i),!1}finally{Qs(7,t,e)}}function n8(n,t,e,r,i){return function o(a){if(a===Function)return r;Ia(n.componentOffset>-1?zi(n.index,t):t);let l=t8(t,e,r,a),c=o.__ngNextListenerFn__;for(;c;)l=t8(t,e,c,a)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(a.preventDefault(),a.returnValue=!1),l}}function se(n=1){return function Qu(n){return(Pn.lFrame.contextLView=function G3(n,t){for(;n>0;)t=t[Vi],n--;return t}(n,Pn.lFrame.contextLView))[Ui]}(n)}function Ree(n,t){let e=null;const r=function rD(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let i=0;i>17&32767}function BD(n){return 2|n}function pg(n){return(131068&n)>>2}function $D(n,t){return-131069&n|t<<2}function UD(n){return 1|n}function f8(n,t,e,r,i){const o=n[e+1],a=null===t;let s=r?Rf(o):pg(o),l=!1;for(;0!==s&&(!1===l||a);){const u=n[s+1];Uee(n[s],t)&&(l=!0,n[s+1]=r?UD(u):BD(u)),s=r?Rf(u):pg(u)}l&&(n[e+1]=r?BD(o):UD(o))}function Uee(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&xf(n,t)>=0}const ia={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function p8(n){return n.substring(ia.key,ia.keyEnd)}function g8(n,t){const e=ia.textEnd;return e===t?-1:(t=ia.keyEnd=function jee(n,t,e){for(;t32;)t++;return t}(n,ia.key=t,e),wv(n,t,e))}function wv(n,t,e){for(;t=0;e=g8(t,e))No(n,p8(t),!0)}function yu(n,t,e,r){const i=qe(),o=Tn(),a=dc(2);o.firstUpdatePass&&C8(o,n,a,r),t!==hn&&is(i,a,t)&&x8(o,o.data[Aa()],i,i[me],n,i[a+1]=function ete(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Ci(Ss(n)))),n}(t,e),r,a)}function bu(n,t,e,r){const i=Tn(),o=dc(2);i.firstUpdatePass&&C8(i,null,o,r);const a=qe();if(e!==hn&&is(a,o,e)){const s=i.data[Aa()];if(P8(s,r)&&!b8(i,o)){let l=r?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=tf(l,e||"")),LD(i,s,a,e,r)}else!function Qee(n,t,e,r,i,o,a,s){i===hn&&(i=Er);let l=0,c=0,u=0=n.expandoStartIndex}function C8(n,t,e,r){const i=n.data;if(null===i[e+1]){const o=i[Aa()],a=b8(n,e);P8(o,r)&&null===t&&!a&&(t=!1),t=function Zee(n,t,e,r){const i=function n_(n){const t=Pn.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(e=py(e=VD(null,n,t,e,r),t.attrs,r),o=null);else{const a=t.directiveStylingLast;if(-1===a||n[a]!==i)if(e=VD(i,n,t,e,r),null===o){let l=function Yee(n,t,e){const r=e?t.classBindings:t.styleBindings;if(0!==pg(r))return n[Rf(r)]}(n,t,r);void 0!==l&&Array.isArray(l)&&(l=VD(null,n,t,l[1],r),l=py(l,t.attrs,r),function Xee(n,t,e,r){n[Rf(e?t.classBindings:t.styleBindings)]=r}(n,t,r,l))}else o=function Kee(n,t,e){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)):u=e,i)if(0!==l){const p=Rf(n[s+1]);n[r+1]=jx(p,s),0!==p&&(n[p+1]=$D(n[p+1],r)),n[s+1]=function Lee(n,t){return 131071&n|t<<17}(n[s+1],r)}else n[r+1]=jx(s,0),0!==s&&(n[s+1]=$D(n[s+1],r)),s=r;else n[r+1]=jx(l,0),0===s?s=r:n[l+1]=$D(n[l+1],r),l=r;c&&(n[r+1]=BD(n[r+1])),f8(n,u,r,!0),f8(n,u,r,!1),function $ee(n,t,e,r,i){const o=i?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&xf(o,t)>=0&&(e[r+1]=UD(e[r+1]))}(t,u,n,r,o),a=jx(s,l),o?t.classBindings=a:t.styleBindings=a}(i,o,t,e,a,r)}}function VD(n,t,e,r,i){let o=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=n[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let p=e[i+1];p===hn&&(p=d?Er:void 0);let g=d?th(p,r):u===r?p:void 0;if(c&&!Gx(g)&&(g=th(l,r)),Gx(g)&&(s=g,a))return s;const v=n[i+1];i=a?Rf(v):pg(v)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(s=th(l,r))}return s}function Gx(n){return void 0!==n}function P8(n,t){return 0!=(n.flags&(t?8:16))}function h(n,t=""){const e=qe(),r=Tn(),i=n+zr,o=r.firstCreatePass?kf(r,i,1,t,null):r.data[i],a=e[i]=function T_(n,t){return n.createText(t)}(e[me],t);Gm(r,e,a,o),da(o,!1)}function jt(n){return Jt("",n,""),jt}function Jt(n,t,e){const r=qe(),i=pv(r,n,t,e);return i!==hn&&ch(r,Aa(),i),Jt}function gy(n,t,e,r,i){const o=qe(),a=gv(o,n,t,e,r,i);return a!==hn&&ch(o,Aa(),a),gy}function Mi(n,t,e){bu(No,dd,pv(qe(),n,t,e),!0)}function xv(n,t,e,r,i){bu(No,dd,gv(qe(),n,t,e,r,i),!0)}const vg=void 0;var _te=["en",[["a","p"],["AM","PM"],vg],[["AM","PM"],vg,vg],[["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"]],vg,[["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"]],vg,[["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}",vg,"{1} 'at' {0}",vg],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function vte(n){const e=Math.floor(Math.abs(n)),r=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===r?1:5}];let Mv={};function Is(n){const t=function yte(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=G8(t);if(e)return e;const r=t.split("-")[0];if(e=G8(r),e)return e;if("en"===r)return _te;throw new nt(701,!1)}function G8(n){return n in Mv||(Mv[n]=si.ng&&si.ng.common&&si.ng.common.locales&&si.ng.common.locales[n]),Mv[n]}var At=(()=>((At=At||{})[At.LocaleId=0]="LocaleId",At[At.DayPeriodsFormat=1]="DayPeriodsFormat",At[At.DayPeriodsStandalone=2]="DayPeriodsStandalone",At[At.DaysFormat=3]="DaysFormat",At[At.DaysStandalone=4]="DaysStandalone",At[At.MonthsFormat=5]="MonthsFormat",At[At.MonthsStandalone=6]="MonthsStandalone",At[At.Eras=7]="Eras",At[At.FirstDayOfWeek=8]="FirstDayOfWeek",At[At.WeekendRange=9]="WeekendRange",At[At.DateFormat=10]="DateFormat",At[At.TimeFormat=11]="TimeFormat",At[At.DateTimeFormat=12]="DateTimeFormat",At[At.NumberSymbols=13]="NumberSymbols",At[At.NumberFormats=14]="NumberFormats",At[At.CurrencyCode=15]="CurrencyCode",At[At.CurrencySymbol=16]="CurrencySymbol",At[At.CurrencyName=17]="CurrencyName",At[At.Currencies=18]="Currencies",At[At.Directionality=19]="Directionality",At[At.PluralCase=20]="PluralCase",At[At.ExtraData=21]="ExtraData",At))();const Pv="en-US";let W8=Pv;function jD(n,t,e,r,i){if(n=on(n),Array.isArray(n))for(let o=0;o>20;if(_c(n)||!n.multi){const g=new Hp(l,i,ye),v=WD(s,t,i?u:u+p,d);-1===v?(Mm(wm(c,a),o,s),GD(o,n,t.length),t.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(g),a.push(g)):(e[v]=g,a[v]=g)}else{const g=WD(s,t,u+p,d),v=WD(s,t,u,u+p),y=v>=0&&e[v];if(i&&!y||!i&&!(g>=0&&e[g])){Mm(wm(c,a),o,s);const b=function mne(n,t,e,r,i){const o=new Hp(n,e,ye);return o.multi=[],o.index=t,o.componentProviders=0,vB(o,i,r&&!e),o}(i?gne:pne,e.length,i,r,l);!i&&y&&(e[v].providerFactory=b),GD(o,n,t.length,0),t.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(b),a.push(b)}else GD(o,n,g>-1?g:v,vB(e[i?v:g],l,!i&&r));!i&&r&&y&&e[v].componentProviders++}}}function GD(n,t,e,r){const i=_c(t),o=function Ki(n){return!!n.useClass}(t);if(i||o){const l=(o?on(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!i&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[r,l]):c[u+1].push(r,l)}else c.push(e,l)}}}function vB(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function WD(n,t,e,r){for(let i=e;i{e.providersResolver=(r,i)=>function fne(n,t,e){const r=Tn();if(r.firstCreatePass){const i=Xa(n);jD(e,r.data,r.blueprint,i,!0),jD(t,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,t)}}class Ov{}class _B{}class yB extends Ov{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new FF(this);const r=xs(t);this._bootstrapComponents=_u(r.bootstrap),this._r3Injector=Cx(t,e,[{provide:Ov,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],Ci(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ZD extends _B{constructor(t){super(),this.moduleType=t}create(t){return new yB(this.moduleType,t)}}class _ne extends Ov{constructor(t,e,r){super(),this.componentFactoryResolver=new FF(this),this.instance=null;const i=new tx([...t,{provide:Ov,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],e||iv(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Xx(n,t,e=null){return new _ne(n,t,e).injector}let yne=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const r=Qw(0,e.type),i=r.length>0?Xx([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,i)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=We({token:n,providedIn:"environment",factory:()=>new n(Pe(Vl))}),n})();function Do(n){n.getStandaloneInjector=t=>t.get(yne).getOrCreateStandaloneInjector(n)}function Wt(n,t,e){const r=Ta()+n,i=qe();return i[r]===hn?cd(i,r,e?t.call(e):t()):function hy(n,t){return n[t]}(i,r)}function Nt(n,t,e,r){return TB(qe(),Ta(),n,t,e,r)}function Nf(n,t,e,r,i){return AB(qe(),Ta(),n,t,e,r,i)}function Cy(n,t){const e=n[t];return e===hn?void 0:e}function TB(n,t,e,r,i,o){const a=t+e;return is(n,a,i)?cd(n,a+1,o?r.call(o,i):r(i)):Cy(n,a+1)}function AB(n,t,e,r,i,o,a){const s=t+e;return fg(n,s,i,o)?cd(n,s+2,a?r.call(a,i,o):r(i,o)):Cy(n,s+2)}function DB(n,t,e,r,i,o,a,s){const l=t+e;return function Hx(n,t,e,r,i){const o=fg(n,t,e,r);return is(n,t+2,i)||o}(n,l,i,o,a)?cd(n,l+3,s?r.call(s,i,o,a):r(i,o,a)):Cy(n,l+3)}function IB(n,t,e,r,i,o,a,s,l){const c=t+e;return function Cc(n,t,e,r,i,o){const a=fg(n,t,e,r);return fg(n,t+2,i,o)||a}(n,c,i,o,a,s)?cd(n,c+4,l?r.call(l,i,o,a,s):r(i,o,a,s)):Cy(n,c+4)}function Gt(n,t){const e=Tn();let r;const i=n+zr;e.firstCreatePass?(r=function kne(n,t){if(t)for(let e=t.length-1;e>=0;e--){const r=t[e];if(n===r.name)return r}}(t,e.pipeRegistry),e.data[i]=r,r.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(i,r.onDestroy)):r=e.data[i];const o=r.factory||(r.factory=Zu(r.type)),a=Cs(ye);try{const s=qp(!1),l=o();return qp(s),function Dee(n,t,e,r){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=r}(e,qe(),i,l),l}finally{Cs(a)}}function Gn(n,t,e){const r=n+zr,i=qe(),o=cu(i,r);return xy(i,r)?TB(i,Ta(),t,o.transform,e,o):o.transform(e)}function Hl(n,t,e,r){const i=n+zr,o=qe(),a=cu(o,i);return xy(o,i)?AB(o,Ta(),t,a.transform,e,r,a):a.transform(e,r)}function wy(n,t,e,r,i,o){const a=n+zr,s=qe(),l=cu(s,a);return xy(s,a)?IB(s,Ta(),t,l.transform,e,r,i,o,l):l.transform(e,r,i,o)}function xy(n,t){return n[_t].data[t].pure}function XD(n){return t=>{setTimeout(n,void 0,t)}}const _r=class Nne extends D{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,r){let i=t,o=e||(()=>null),a=r;if(t&&"object"==typeof t){const l=t;i=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=XD(o),i&&(i=XD(i)),a&&(a=XD(a)));const s=super.subscribe({next:i,error:o,complete:a});return t instanceof Ke&&t.add(s),s}};function Lne(){return this._results[hg()]()}class KD{get changes(){return this._changes||(this._changes=new _r)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=hg(),r=KD.prototype;r[e]||(r[e]=Lne)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const r=this;r.dirty=!1;const i=function ho(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Qa(n,t,e){if(n.length!==t.length)return!1;for(let r=0;r{class n{}return n.__NG_ELEMENT_ID__=$ne,n})();const Fne=xc,Bne=class extends Fne{constructor(t,e,r){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=r}createEmbeddedView(t,e){const r=this._declarationTContainer.tViews,i=uv(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,e||null);i[Hd]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[lo];return null!==a&&(i[lo]=a.createEmbeddedView(r)),dv(r,i,t),new uy(i)}};function $ne(){return Kx(Qo(),qe())}function Kx(n,t){return 4&n.type?new Bne(t,n,lh(n,t)):null}let jl=(()=>{class n{}return n.__NG_ELEMENT_ID__=Une,n})();function Une(){return LB(Qo(),qe())}const Vne=jl,RB=class extends Vne{constructor(t,e,r){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=r}get element(){return lh(this._hostTNode,this._hostLView)}get injector(){return new Cf(this._hostTNode,this._hostLView)}get parentInjector(){const t=Yp(this._hostTNode,this._hostLView);if(Z3(t)){const e=Cm(t,this._hostLView),r=Gp(t);return new Cf(e[_t].data[r+8],e)}return new Cf(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=NB(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Oa}createEmbeddedView(t,e,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=t.createEmbeddedView(e||{},o);return this.insert(a,i),a}createComponent(t,e,r,i,o){const a=t&&!function wf(n){return"function"==typeof n}(t);let s;if(a)s=e;else{const d=e||{};s=d.index,r=d.injector,i=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=a?t:new dy(Qn(t)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const p=(a?c:this.parentInjector).get(Vl,null);p&&(o=p)}const u=l.create(c,i,void 0,o);return this.insert(u.hostView,s),u}insert(t,e){const r=t._lView,i=r[_t];if(function vA(n){return Ya(n[no])}(r)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=r[no],p=new RB(d,d[ua],d[no]);p.detach(p.indexOf(t))}}const o=this._adjustIndex(e),a=this._lContainer;!function r4(n,t,e,r){const i=Oa+r,o=e.length;r>0&&(e[i-1][Rl]=t),r0)r.push(a[s/2]);else{const c=o[s+1],u=t[-l];for(let d=Oa;d({bindingPropertyName:n})),fre=Tm("HostListener",(n,t)=>({eventName:n,args:t}));function Qx(...n){}const eM=new Ct("Application Initializer");let tM=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Qx,this.reject=Qx,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const e=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:s,error:l})});e.push(a)}}Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),0===e.length&&r(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(Pe(eM,8))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Py=new Ct("AppId",{providedIn:"root",factory:function l7(){return`${lI()}${lI()}${lI()}`}});function lI(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const c7=new Ct("Platform Initializer"),_g=new Ct("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),u7=new Ct("appBootstrapListener");let pre=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const hh=new Ct("LocaleId",{providedIn:"root",factory:()=>Lt(hh,Bt.Optional|Bt.SkipSelf)||function gre(){return typeof $localize<"u"&&$localize.locale||Pv}()}),mre=new Ct("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class vre{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let d7=(()=>{class n{compileModuleSync(e){return new ZD(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const r=this.compileModuleSync(e),o=_u(xs(e).declarations).reduce((a,s)=>{const l=Qn(s);return l&&a.push(new dy(l)),a},[]);return new vre(r,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bre=(()=>Promise.resolve(0))();function cI(n){typeof Zone>"u"?bre.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Di{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _r(!1),this.onMicrotaskEmpty=new _r(!1),this.onStable=new _r(!1),this.onError=new _r(!1),typeof Zone>"u")throw new nt(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&e,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function Cre(){let n=si.requestAnimationFrame,t=si.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Mre(n){const t=()=>{!function xre(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(si,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,dI(n),n.isCheckStableRunning=!0,uI(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),dI(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,i,o,a,s)=>{try{return p7(n),e.invokeTask(i,o,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),g7(n)}},onInvoke:(e,r,i,o,a,s,l)=>{try{return p7(n),e.invoke(i,o,a,s,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),g7(n)}},onHasTask:(e,r,i,o)=>{e.hasTask(i,o),r===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,dI(n),uI(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,r,i,o)=>(e.handleError(i,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Di.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(Di.isInAngularZone())throw new nt(909,!1)}run(t,e,r){return this._inner.run(t,e,r)}runTask(t,e,r,i){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+i,t,wre,Qx,Qx);try{return o.runTask(a,e,r)}finally{o.cancelTask(a)}}runGuarded(t,e,r){return this._inner.runGuarded(t,e,r)}runOutsideAngular(t){return this._outer.run(t)}}const wre={};function uI(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 dI(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function p7(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function g7(n){n._nesting--,uI(n)}class Pre{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _r,this.onMicrotaskEmpty=new _r,this.onStable=new _r,this.onError=new _r}run(t,e,r){return t.apply(e,r)}runGuarded(t,e,r){return t.apply(e,r)}runOutsideAngular(t){return t()}runTask(t,e,r,i){return t.apply(e,r)}}const m7=new Ct(""),nM=new Ct("");let pI,hI=(()=>{class n{constructor(e,r,i){this._ngZone=e,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,pI||(function Ore(n){pI=n}(i),i.addToWindow(r)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Di.assertNotInAngularZone(),cI(()=>{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())cI(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,i){return[]}}return n.\u0275fac=function(e){return new(e||n)(Pe(Di),Pe(fI),Pe(nM))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})(),fI=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return pI?.findTestabilityInTree(this,e,r)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Lf=null;const v7=new Ct("AllowMultipleToken"),gI=new Ct("PlatformDestroyListeners"),fh=!1;class _7{constructor(t,e){this.name=t,this.token=e}}function b7(n,t,e=[]){const r=`Platform: ${t}`,i=new Ct(r);return(o=[])=>{let a=mI();if(!a||a.injector.get(v7,!1)){const s=[...e,...o,{provide:i,useValue:!0}];n?n(s):function Are(n){if(Lf&&!Lf.get(v7,!1))throw new nt(400,!1);Lf=n;const t=n.get(w7);(function y7(n){const t=n.get(c7,null);t&&t.forEach(e=>e())})(n)}(function C7(n=[],t){return fo.create({name:t,providers:[{provide:Hi,useValue:"platform"},{provide:gI,useValue:new Set([()=>Lf=null])},...n]})}(s,r))}return function Ire(n){const t=mI();if(!t)throw new nt(401,!1);return t}()}}function mI(){return Lf?.get(w7)??null}let w7=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const i=function M7(n,t){let e;return e="noop"===n?new Pre:("zone.js"===n?void 0:n)||new Di(t),e}(r?.ngZone,function x7(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Di,useValue:i}];return i.run(()=>{const a=fo.create({providers:o,parent:this.injector,name:e.moduleType.name}),s=e.create(a),l=s.injector.get(If,null);if(!l)throw new nt(402,!1);return i.runOutsideAngular(()=>{const c=i.onError.subscribe({next:u=>{l.handleError(u)}});s.onDestroy(()=>{rM(this._modules,s),c.unsubscribe()})}),function P7(n,t,e){try{const r=e();return fy(r)?r.catch(i=>{throw t.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>n.handleError(r)),r}}(l,i,()=>{const c=s.injector.get(tM);return c.runInitializers(),c.donePromise.then(()=>(function q8(n){Xs(n,"Expected localeId to be defined"),"string"==typeof n&&(W8=n.toLowerCase().replace(/_/g,"-"))}(s.injector.get(hh,Pv)||Pv),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,r=[]){const i=O7({},r);return function Sre(n,t,e){const r=new ZD(e);return Promise.resolve(r)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(e){const r=e.injector.get(yg);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new nt(-403,!1);e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new nt(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(gI,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(Pe(fo))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function O7(n,t){return Array.isArray(t)?t.reduce(O7,n):{...n,...t}}let yg=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,r,i){this._zone=e,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new F(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new F(s=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Di.assertNotInAngularZone(),cI(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Di.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Dl(o,a.pipe($d()))}bootstrap(e,r){const i=e instanceof ix;if(!this._injector.get(tM).done){!i&&function uf(n){const t=Qn(n)||So(n)||Pa(n);return null!==t&&t.standalone}(e);throw new nt(405,fh)}let a;a=i?e:this._injector.get(pa).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Tre(n){return n.isBoundToModule}(a)?void 0:this._injector.get(Ov),c=a.create(fo.NULL,[],r||a.selector,s),u=c.location.nativeElement,d=c.injector.get(m7,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),rM(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new nt(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;rM(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const r=this._injector.get(u7,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>rM(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new nt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(Pe(Di),Pe(Vl),Pe(If))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function rM(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let Mc=(()=>{class n{}return n.__NG_ELEMENT_ID__=kre,n})();function kre(n){return function Rre(n,t,e){if(qu(n)&&!e){const r=zi(n.index,t);return new uy(r,r)}return 47&n.type?new uy(t[Sn],t):null}(Qo(),qe(),16==(16&n))}class I7{constructor(){}supports(t){return zx(t)}create(t){return new Ure(t)}}const $re=(n,t)=>t;class Ure{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||$re}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){const a=!r||e&&e.currentIndex{a=this._trackByFn(i,s),null!==e&&Object.is(e.trackById,a)?(r&&(e=this._verifyReinsertion(e,s,a,i)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,i),r=!0),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,i)):t=this._addAfter(new Vre(e,r),o,i),t}_verifyReinsertion(t,e,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,e,r),this._addToMoves(t,r),t}_moveAfter(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t}_addAfter(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,r){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new E7),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E7),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Vre{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class zre{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class E7{constructor(){this.map=new Map}put(t){const e=t.trackById;let r=this.map.get(e);r||(r=new zre,this.map.set(e,r)),r.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function k7(n,t,e){const r=n.previousIndex;if(null===r)return r;let i=0;return e&&r{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;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(t,e){if(t){const r=t._prev;return e._next=t,e._prev=r,t._prev=e,r&&(r._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const o=i._prev,a=i._next;return o&&(o._next=a),a&&(a._prev=o),i._next=null,i._prev=null,i}const r=new jre(t);return this._records.set(t,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(r=>e(t[r],r))}}class jre{constructor(t){this.key=t,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 N7(){return new aM([new I7])}let aM=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(null!=r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||N7()),deps:[[n,new Mf,new rd]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(null!=r)return r;throw new nt(901,!1)}}return n.\u0275prov=We({token:n,providedIn:"root",factory:N7}),n})();function L7(){return new Oy([new R7])}let Oy=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||L7()),deps:[[n,new Mf,new rd]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(r)return r;throw new nt(901,!1)}}return n.\u0275prov=We({token:n,providedIn:"root",factory:L7}),n})();const qre=b7(null,"core",[]);let Zre=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(Pe(yg))},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({}),n})();function Av(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function F7(n,t){const e=Qn(n),r=t.elementInjector||iv();return new dy(e).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}let wI=null;function hd(){return wI}class Kre{}const Bo=new Ct("DocumentToken");let xI=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:function(){return function Jre(){return Pe(B7)}()},providedIn:"platform"}),n})();const Qre=new Ct("Location Initialized");let B7=(()=>{class n extends xI{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return hd().getBaseHref(this._doc)}onPopState(e){const r=hd().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=hd().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,r,i){$7()?this._history.pushState(e,r,i):this._location.hash=i}replaceState(e,r,i){$7()?this._history.replaceState(e,r,i):this._location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(Pe(Bo))},n.\u0275prov=We({token:n,factory:function(){return function eie(){return new B7(Pe(Bo))}()},providedIn:"platform"}),n})();function $7(){return!!window.history.pushState}function MI(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function U7(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function ph(n){return n&&"?"!==n[0]?"?"+n:n}let Cg=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:function(){return Lt(z7)},providedIn:"root"}),n})();const V7=new Ct("appBaseHref");let z7=(()=>{class n extends Cg{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Lt(Bo).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return MI(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+ph(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){const a=this.prepareExternalUrl(i+ph(o));this._platformLocation.pushState(e,r,a)}replaceState(e,r,i,o){const a=this.prepareExternalUrl(i+ph(o));this._platformLocation.replaceState(e,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(Pe(xI),Pe(V7,8))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tie=(()=>{class n extends Cg{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=MI(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,i,o){let a=this.prepareExternalUrl(i+ph(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,r,a)}replaceState(e,r,i,o){let a=this.prepareExternalUrl(i+ph(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(Pe(xI),Pe(V7,8))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})(),PI=(()=>{class n{constructor(e){this._subject=new _r,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const r=this._locationStrategy.getBaseHref();this._basePath=function iie(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(U7(H7(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+ph(r))}normalize(e){return n.stripTrailingSlash(function rie(n,t){return n&&new RegExp(`^${n}([/;?#]|$)`).test(t)?t.substring(n.length):t}(this._basePath,H7(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ph(r)),i)}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ph(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r,complete:i})}}return n.normalizeQueryParams=ph,n.joinWithSlash=MI,n.stripTrailingSlash=U7,n.\u0275fac=function(e){return new(e||n)(Pe(Cg))},n.\u0275prov=We({token:n,factory:function(){return function nie(){return new PI(Pe(Cg))}()},providedIn:"root"}),n})();function H7(n){return n.replace(/\/index.html$/,"")}const j7={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var il=(()=>((il=il||{})[il.Decimal=0]="Decimal",il[il.Percent=1]="Percent",il[il.Currency=2]="Currency",il[il.Scientific=3]="Scientific",il))(),Io=(()=>((Io=Io||{})[Io.Format=0]="Format",Io[Io.Standalone=1]="Standalone",Io))(),pr=(()=>((pr=pr||{})[pr.Narrow=0]="Narrow",pr[pr.Abbreviated=1]="Abbreviated",pr[pr.Wide=2]="Wide",pr[pr.Short=3]="Short",pr))(),po=(()=>((po=po||{})[po.Short=0]="Short",po[po.Medium=1]="Medium",po[po.Long=2]="Long",po[po.Full=3]="Full",po))(),fn=(()=>((fn=fn||{})[fn.Decimal=0]="Decimal",fn[fn.Group=1]="Group",fn[fn.List=2]="List",fn[fn.PercentSign=3]="PercentSign",fn[fn.PlusSign=4]="PlusSign",fn[fn.MinusSign=5]="MinusSign",fn[fn.Exponential=6]="Exponential",fn[fn.SuperscriptingExponent=7]="SuperscriptingExponent",fn[fn.PerMille=8]="PerMille",fn[fn.Infinity=9]="Infinity",fn[fn.NaN=10]="NaN",fn[fn.TimeSeparator=11]="TimeSeparator",fn[fn.CurrencyDecimal=12]="CurrencyDecimal",fn[fn.CurrencyGroup=13]="CurrencyGroup",fn))();function sM(n,t){return Oc(Is(n)[At.DateFormat],t)}function lM(n,t){return Oc(Is(n)[At.TimeFormat],t)}function cM(n,t){return Oc(Is(n)[At.DateTimeFormat],t)}function Pc(n,t){const e=Is(n),r=e[At.NumberSymbols][t];if(typeof r>"u"){if(t===fn.CurrencyDecimal)return e[At.NumberSymbols][fn.Decimal];if(t===fn.CurrencyGroup)return e[At.NumberSymbols][fn.Group]}return r}function OI(n,t){return Is(n)[At.NumberFormats][t]}function G7(n){if(!n[At.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[At.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Oc(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function SI(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const gie=2,vie=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Sy={},_ie=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var oa=(()=>((oa=oa||{})[oa.Short=0]="Short",oa[oa.ShortGMT=1]="ShortGMT",oa[oa.Long=2]="Long",oa[oa.Extended=3]="Extended",oa))(),_n=(()=>((_n=_n||{})[_n.FullYear=0]="FullYear",_n[_n.Month=1]="Month",_n[_n.Date=2]="Date",_n[_n.Hours=3]="Hours",_n[_n.Minutes=4]="Minutes",_n[_n.Seconds=5]="Seconds",_n[_n.FractionalSeconds=6]="FractionalSeconds",_n[_n.Day=7]="Day",_n))(),Wn=(()=>((Wn=Wn||{})[Wn.DayPeriods=0]="DayPeriods",Wn[Wn.Days=1]="Days",Wn[Wn.Months=2]="Months",Wn[Wn.Eras=3]="Eras",Wn))();function yie(n,t,e,r){let i=function Tie(n){if(Z7(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[i,o=1,a=1]=n.split("-").map(s=>+s);return uM(i,o-1,a)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let r;if(r=n.match(vie))return function Aie(n){const t=new Date(0);let e=0,r=0;const i=n[8]?t.setUTCFullYear:t.setFullYear,o=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),r=Number(n[9]+n[11])),i.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const a=Number(n[4]||0)-e,s=Number(n[5]||0)-r,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return o.call(t,a,s,l,c),t}(r)}const t=new Date(n);if(!Z7(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=gh(e,t)||t;let s,a=[];for(;t;){if(s=_ie.exec(t),!s){a.push(t);break}{a=a.concat(s.slice(1));const u=a.pop();if(!u)break;t=u}}let l=i.getTimezoneOffset();r&&(l=q7(r,l),i=function Sie(n,t,e){const r=e?-1:1,i=n.getTimezoneOffset();return function Oie(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,r*(q7(t,i)-i))}(i,r,!0));let c="";return a.forEach(u=>{const d=function Pie(n){if(AI[n])return AI[n];let t;switch(n){case"G":case"GG":case"GGG":t=ji(Wn.Eras,pr.Abbreviated);break;case"GGGG":t=ji(Wn.Eras,pr.Wide);break;case"GGGGG":t=ji(Wn.Eras,pr.Narrow);break;case"y":t=Uo(_n.FullYear,1,0,!1,!0);break;case"yy":t=Uo(_n.FullYear,2,0,!0,!0);break;case"yyy":t=Uo(_n.FullYear,3,0,!1,!0);break;case"yyyy":t=Uo(_n.FullYear,4,0,!1,!0);break;case"Y":t=pM(1);break;case"YY":t=pM(2,!0);break;case"YYY":t=pM(3);break;case"YYYY":t=pM(4);break;case"M":case"L":t=Uo(_n.Month,1,1);break;case"MM":case"LL":t=Uo(_n.Month,2,1);break;case"MMM":t=ji(Wn.Months,pr.Abbreviated);break;case"MMMM":t=ji(Wn.Months,pr.Wide);break;case"MMMMM":t=ji(Wn.Months,pr.Narrow);break;case"LLL":t=ji(Wn.Months,pr.Abbreviated,Io.Standalone);break;case"LLLL":t=ji(Wn.Months,pr.Wide,Io.Standalone);break;case"LLLLL":t=ji(Wn.Months,pr.Narrow,Io.Standalone);break;case"w":t=TI(1);break;case"ww":t=TI(2);break;case"W":t=TI(1,!0);break;case"d":t=Uo(_n.Date,1);break;case"dd":t=Uo(_n.Date,2);break;case"c":case"cc":t=Uo(_n.Day,1);break;case"ccc":t=ji(Wn.Days,pr.Abbreviated,Io.Standalone);break;case"cccc":t=ji(Wn.Days,pr.Wide,Io.Standalone);break;case"ccccc":t=ji(Wn.Days,pr.Narrow,Io.Standalone);break;case"cccccc":t=ji(Wn.Days,pr.Short,Io.Standalone);break;case"E":case"EE":case"EEE":t=ji(Wn.Days,pr.Abbreviated);break;case"EEEE":t=ji(Wn.Days,pr.Wide);break;case"EEEEE":t=ji(Wn.Days,pr.Narrow);break;case"EEEEEE":t=ji(Wn.Days,pr.Short);break;case"a":case"aa":case"aaa":t=ji(Wn.DayPeriods,pr.Abbreviated);break;case"aaaa":t=ji(Wn.DayPeriods,pr.Wide);break;case"aaaaa":t=ji(Wn.DayPeriods,pr.Narrow);break;case"b":case"bb":case"bbb":t=ji(Wn.DayPeriods,pr.Abbreviated,Io.Standalone,!0);break;case"bbbb":t=ji(Wn.DayPeriods,pr.Wide,Io.Standalone,!0);break;case"bbbbb":t=ji(Wn.DayPeriods,pr.Narrow,Io.Standalone,!0);break;case"B":case"BB":case"BBB":t=ji(Wn.DayPeriods,pr.Abbreviated,Io.Format,!0);break;case"BBBB":t=ji(Wn.DayPeriods,pr.Wide,Io.Format,!0);break;case"BBBBB":t=ji(Wn.DayPeriods,pr.Narrow,Io.Format,!0);break;case"h":t=Uo(_n.Hours,1,-12);break;case"hh":t=Uo(_n.Hours,2,-12);break;case"H":t=Uo(_n.Hours,1);break;case"HH":t=Uo(_n.Hours,2);break;case"m":t=Uo(_n.Minutes,1);break;case"mm":t=Uo(_n.Minutes,2);break;case"s":t=Uo(_n.Seconds,1);break;case"ss":t=Uo(_n.Seconds,2);break;case"S":t=Uo(_n.FractionalSeconds,1);break;case"SS":t=Uo(_n.FractionalSeconds,2);break;case"SSS":t=Uo(_n.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=hM(oa.Short);break;case"ZZZZZ":t=hM(oa.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=hM(oa.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=hM(oa.Long);break;default:return null}return AI[n]=t,t}(u);c+=d?d(i,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function uM(n,t,e){const r=new Date(0);return r.setFullYear(n,t,e),r.setHours(0,0,0),r}function gh(n,t){const e=function oie(n){return Is(n)[At.LocaleId]}(n);if(Sy[e]=Sy[e]||{},Sy[e][t])return Sy[e][t];let r="";switch(t){case"shortDate":r=sM(n,po.Short);break;case"mediumDate":r=sM(n,po.Medium);break;case"longDate":r=sM(n,po.Long);break;case"fullDate":r=sM(n,po.Full);break;case"shortTime":r=lM(n,po.Short);break;case"mediumTime":r=lM(n,po.Medium);break;case"longTime":r=lM(n,po.Long);break;case"fullTime":r=lM(n,po.Full);break;case"short":const i=gh(n,"shortTime"),o=gh(n,"shortDate");r=dM(cM(n,po.Short),[i,o]);break;case"medium":const a=gh(n,"mediumTime"),s=gh(n,"mediumDate");r=dM(cM(n,po.Medium),[a,s]);break;case"long":const l=gh(n,"longTime"),c=gh(n,"longDate");r=dM(cM(n,po.Long),[l,c]);break;case"full":const u=gh(n,"fullTime"),d=gh(n,"fullDate");r=dM(cM(n,po.Full),[u,d])}return r&&(Sy[e][t]=r),r}function dM(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,r){return null!=t&&r in t?t[r]:e})),n}function wu(n,t,e="-",r,i){let o="";(n<0||i&&n<=0)&&(i?n=1-n:(n=-n,o=e));let a=String(n);for(;a.length0||s>-e)&&(s+=e),n===_n.Hours)0===s&&-12===e&&(s=12);else if(n===_n.FractionalSeconds)return function bie(n,t){return wu(n,3).substring(0,t)}(s,t);const l=Pc(a,fn.MinusSign);return wu(s,t,l,r,i)}}function ji(n,t,e=Io.Format,r=!1){return function(i,o){return function wie(n,t,e,r,i,o){switch(e){case Wn.Months:return function lie(n,t,e){const r=Is(n),o=Oc([r[At.MonthsFormat],r[At.MonthsStandalone]],t);return Oc(o,e)}(t,i,r)[n.getMonth()];case Wn.Days:return function sie(n,t,e){const r=Is(n),o=Oc([r[At.DaysFormat],r[At.DaysStandalone]],t);return Oc(o,e)}(t,i,r)[n.getDay()];case Wn.DayPeriods:const a=n.getHours(),s=n.getMinutes();if(o){const c=function hie(n){const t=Is(n);return G7(t),(t[At.ExtraData][2]||[]).map(r=>"string"==typeof r?SI(r):[SI(r[0]),SI(r[1])])}(t),u=function fie(n,t,e){const r=Is(n);G7(r);const o=Oc([r[At.ExtraData][0],r[At.ExtraData][1]],t)||[];return Oc(o,e)||[]}(t,i,r),d=c.findIndex(p=>{if(Array.isArray(p)){const[g,v]=p,_=a>=g.hours&&s>=g.minutes,y=a0?Math.floor(i/60):Math.ceil(i/60);switch(n){case oa.Short:return(i>=0?"+":"")+wu(a,2,o)+wu(Math.abs(i%60),2,o);case oa.ShortGMT:return"GMT"+(i>=0?"+":"")+wu(a,1,o);case oa.Long:return"GMT"+(i>=0?"+":"")+wu(a,2,o)+":"+wu(Math.abs(i%60),2,o);case oa.Extended:return 0===r?"Z":(i>=0?"+":"")+wu(a,2,o)+":"+wu(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}const xie=0,fM=4;function W7(n){return uM(n.getFullYear(),n.getMonth(),n.getDate()+(fM-n.getDay()))}function TI(n,t=!1){return function(e,r){let i;if(t){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();i=1+Math.floor((a+o)/7)}else{const o=W7(e),a=function Mie(n){const t=uM(n,xie,1).getDay();return uM(n,0,1+(t<=fM?fM:fM+7)-t)}(o.getFullYear()),s=o.getTime()-a.getTime();i=1+Math.round(s/6048e5)}return wu(i,n,Pc(r,fn.MinusSign))}}function pM(n,t=!1){return function(e,r){return wu(W7(e).getFullYear(),n,Pc(r,fn.MinusSign),t)}}const AI={};function q7(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function Z7(n){return n instanceof Date&&!isNaN(n.valueOf())}const Die=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Y7=22,gM=".",Ty="0",Iie=";",Eie=",",DI="#",X7="\xa4";function II(n,t,e,r,i,o,a=!1){let s="",l=!1;if(isFinite(n)){let c=function Fie(n){let r,i,o,a,s,t=Math.abs(n)+"",e=0;for((i=t.indexOf(gM))>-1&&(t=t.replace(gM,"")),(o=t.search(/e/i))>0?(i<0&&(i=o),i+=+t.slice(o+1),t=t.substring(0,o)):i<0&&(i=t.length),o=0;t.charAt(o)===Ty;o++);if(o===(s=t.length))r=[0],i=1;else{for(s--;t.charAt(s)===Ty;)s--;for(i-=o,r=[],a=0;o<=s;o++,a++)r[a]=Number(t.charAt(o))}return i>Y7&&(r=r.splice(0,Y7-1),e=i-1,i=1),{digits:r,exponent:e,integerLen:i}}(n);a&&(c=function Lie(n){if(0===n.digits[0])return n;const t=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===t?n.digits.push(0,0):1===t&&n.digits.push(0),n.integerLen+=2),n}(c));let u=t.minInt,d=t.minFrac,p=t.maxFrac;if(o){const w=o.match(Die);if(null===w)throw new Error(`${o} is not a valid digit info`);const M=w[1],P=w[3],N=w[5];null!=M&&(u=kI(M)),null!=P&&(d=kI(P)),null!=N?p=kI(N):null!=P&&d>p&&(p=d)}!function Bie(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let r=n.digits,i=r.length-n.integerLen;const o=Math.min(Math.max(t,i),e);let a=o+n.integerLen,s=r[a];if(a>0){r.splice(Math.max(n.integerLen,a));for(let d=a;d=5)if(a-1<0){for(let d=0;d>a;d--)r.unshift(0),n.integerLen++;r.unshift(1),n.integerLen++}else r[a-1]++;for(;i=c?v.pop():l=!1),p>=10?1:0},0);u&&(r.unshift(u),n.integerLen++)}(c,d,p);let g=c.digits,v=c.integerLen;const _=c.exponent;let y=[];for(l=g.every(w=>!w);v0?y=g.splice(v,g.length):(y=g,g=[0]);const b=[];for(g.length>=t.lgSize&&b.unshift(g.splice(-t.lgSize,g.length).join(""));g.length>t.gSize;)b.unshift(g.splice(-t.gSize,g.length).join(""));g.length&&b.unshift(g.join("")),s=b.join(Pc(e,r)),y.length&&(s+=Pc(e,i)+y.join("")),_&&(s+=Pc(e,fn.Exponential)+"+"+_)}else s=Pc(e,fn.Infinity);return s=n<0&&!l?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf,s}function EI(n,t="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=n.split(Iie),i=r[0],o=r[1],a=-1!==i.indexOf(gM)?i.split(gM):[i.substring(0,i.lastIndexOf(Ty)+1),i.substring(i.lastIndexOf(Ty)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(DI));for(let u=0;u{class n{constructor(e,r,i,o){this._iterableDiffers=e,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this.initialClasses=e$,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(NI):e$}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(NI):e}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const r of e)this._updateState(r,!0);else if(null!=e)for(const r of Object.keys(e))this._updateState(r,Boolean(e[r]));this._applyStateDiff()}_updateState(e,r){const i=this.stateMap.get(e);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const r=e[0],i=e[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(e,r){(e=e.trim()).length>0&&e.split(NI).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return n.\u0275fac=function(e){return new(e||n)(ye(aM),ye(Oy),ye(wr),ye(jn))},n.\u0275dir=Ht({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class Vie{constructor(t,e,r,i){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ma=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((i,o,a)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new Vie(i.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===o?void 0:o);else if(null!==o){const s=r.get(o);r.move(s,a),r$(s,i)}});for(let i=0,o=r.length;i{r$(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(ye(jl),ye(xc),ye(aM))},n.\u0275dir=Ht({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function r$(n,t){n.context.$implicit=t.item}let tr=(()=>{class n{constructor(e,r){this._viewContainer=e,this._context=new Hie,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){i$("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){i$("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(ye(jl),ye(xc))},n.\u0275dir=Ht({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Hie{constructor(){this.$implicit=null,this.ngIf=null}}function i$(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Ci(t)}'.`)}class LI{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mM=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const r=e==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(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const r of this._defaultViews)r.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Ht({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),o$=(()=>{class n{constructor(e,r,i){this.ngSwitch=i,i._addCase(),this._view=new LI(e,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(ye(jl),ye(xc),ye(mM,9))},n.\u0275dir=Ht({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),Gi=(()=>{class n{constructor(e,r,i){this._ngEl=e,this._differs=r,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){const[i,o]=e.split("."),a=-1===i.indexOf("-")?void 0:ns.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(ye(wr),ye(Oy),ye(jn))},n.\u0275dir=Ht({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),aa=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:i,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=r.createEmbeddedView(i,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(ye(jl))},n.\u0275dir=Ht({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[co]}),n})();function xu(n,t){return new nt(2100,!1)}class Wie{createSubscription(t,e){return t.subscribe({next:e,error:r=>{throw r}})}dispose(t){t.unsubscribe()}}class qie{createSubscription(t,e){return t.then(e,r=>{throw r})}dispose(t){}}const Zie=new qie,Yie=new Wie;let ol=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r))}_selectStrategy(e){if(fy(e))return Zie;if(JF(e))return Yie;throw xu()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(ye(Mc,16))},n.\u0275pipe=bo({name:"async",type:n,pure:!1,standalone:!0}),n})();const Kie=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let vM=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw xu();return e.replace(Kie,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=bo({name:"titlecase",type:n,pure:!0,standalone:!0}),n})();const eoe=new Ct("DATE_PIPE_DEFAULT_TIMEZONE"),toe=new Ct("DATE_PIPE_DEFAULT_OPTIONS");let s$=(()=>{class n{constructor(e,r,i){this.locale=e,this.defaultTimezone=r,this.defaultOptions=i}transform(e,r,i,o){if(null==e||""===e||e!=e)return null;try{return yie(e,r??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,i??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw xu()}}}return n.\u0275fac=function(e){return new(e||n)(ye(hh,16),ye(eoe,24),ye(toe,24))},n.\u0275pipe=bo({name:"date",type:n,pure:!0,standalone:!0}),n})(),l$=(()=>{class n{transform(e){return JSON.stringify(e,null,2)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=bo({name:"json",type:n,pure:!1,standalone:!0}),n})(),wg=(()=>{class n{constructor(e){this._locale=e}transform(e,r,i){if(!FI(e))return null;i=i||this._locale;try{return function K7(n,t,e){return II(n,EI(OI(t,il.Decimal),Pc(t,fn.MinusSign)),t,fn.Group,fn.Decimal,e)}(BI(e),i,r)}catch(o){throw xu()}}}return n.\u0275fac=function(e){return new(e||n)(ye(hh,16))},n.\u0275pipe=bo({name:"number",type:n,pure:!0,standalone:!0}),n})(),u$=(()=>{class n{constructor(e){this._locale=e}transform(e,r,i){if(!FI(e))return null;i=i||this._locale;try{return function Nie(n,t,e){return II(n,EI(OI(t,il.Percent),Pc(t,fn.MinusSign)),t,fn.Group,fn.Decimal,e,!0).replace(new RegExp("%","g"),Pc(t,fn.PercentSign))}(BI(e),i,r)}catch(o){throw xu()}}}return n.\u0275fac=function(e){return new(e||n)(ye(hh,16))},n.\u0275pipe=bo({name:"percent",type:n,pure:!0,standalone:!0}),n})(),_M=(()=>{class n{constructor(e,r="USD"){this._locale=e,this._defaultCurrencyCode=r}transform(e,r=this._defaultCurrencyCode,i="symbol",o,a){if(!FI(e))return null;a=a||this._locale,"boolean"==typeof i&&(i=i?"symbol":"code");let s=r||this._defaultCurrencyCode;"code"!==i&&(s="symbol"===i||"symbol-narrow"===i?function pie(n,t,e="en"){const r=function uie(n){return Is(n)[At.Currencies]}(e)[n]||j7[n]||[],i=r[1];return"narrow"===t&&"string"==typeof i?i:r[0]||n}(s,"symbol"===i?"wide":"narrow",a):i);try{return function Rie(n,t,e,r,i){const a=EI(OI(t,il.Currency),Pc(t,fn.MinusSign));return a.minFrac=function mie(n){let t;const e=j7[n];return e&&(t=e[2]),"number"==typeof t?t:gie}(r),a.maxFrac=a.minFrac,II(n,a,t,fn.CurrencyGroup,fn.CurrencyDecimal,i).replace(X7,e).replace(X7,"").trim()}(BI(e),a,s,r,o)}catch(l){throw xu()}}}return n.\u0275fac=function(e){return new(e||n)(ye(hh,16),ye(mre,16))},n.\u0275pipe=bo({name:"currency",type:n,pure:!0,standalone:!0}),n})();function FI(n){return!(null==n||""===n||n!=n)}function BI(n){if("string"==typeof n&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if("number"!=typeof n)throw new Error(`${n} is not a number`);return n}let d$=(()=>{class n{transform(e,r,i){if(null==e)return null;if(!this.supports(e))throw xu();return e.slice(r,i)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=bo({name:"slice",type:n,pure:!1,standalone:!0}),n})(),Wi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({}),n})();const h$="browser",soe="server";function $I(n){return n===soe}let doe=(()=>{class n{}return n.\u0275prov=We({token:n,providedIn:"root",factory:()=>new hoe(Pe(Bo),window)}),n})();class hoe{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function foe(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const a=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(a)return a}i=r.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),r=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=f$(this.window.history)||f$(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function f$(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class p${}class Uoe extends Kre{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class HI extends Uoe{static makeCurrent(){!function Xre(n){wI||(wI=n)}(new HI)}onAndCancel(t,e,r){return t.addEventListener(e,r,!1),()=>{t.removeEventListener(e,r,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function Voe(){return Dy=Dy||document.querySelector("base"),Dy?Dy.getAttribute("href"):null}();return null==e?null:function zoe(n){bM=bM||document.createElement("a"),bM.setAttribute("href",n);const t=bM.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Dy=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Q7(document.cookie,t)}}let bM,Dy=null;const y$=new Ct("TRANSITION_ID"),joe=[{provide:eM,useFactory:function Hoe(n,t,e){return()=>{e.get(tM).donePromise.then(()=>{const r=hd(),i=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const CM=new Ct("EventManagerPlugins");let wM=(()=>{class n{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>i.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}addGlobalEventListener(e,r,i){return this._findPluginFor(r).addGlobalEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const i=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const r=new Set;e.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})(),Iy=(()=>{class n extends C${constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,i){e.forEach(o=>{const a=this._doc.createElement("style");a.textContent=o,i.push(r.appendChild(a))})}addHost(e){const r=[];this._addStylesToHost(this._stylesSet,e,r),this._hostNodes.set(e,r)}removeHost(e){const r=this._hostNodes.get(e);r&&r.forEach(w$),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(e,i,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(w$))}}return n.\u0275fac=function(e){return new(e||n)(Pe(Bo))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();function w$(n){hd().remove(n)}const jI={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},GI=/%COMP%/g;function WI(n,t){return t.flat(100).map(e=>e.replace(GI,n))}function P$(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let qI=(()=>{class n{constructor(e,r,i){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new ZI(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case Js.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new Joe(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(e),i}case Js.ShadowDom:return new Qoe(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const i=WI(r.id,r.styles);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(Pe(wM),Pe(Iy),Pe(Py))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();class ZI{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(jI[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(S$(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){t&&(S$(t)?t.content:t).insertBefore(e,r)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,i){if(i){e=i+":"+e;const o=jI[i];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const i=jI[r];i?t.removeAttributeNS(i,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,i){i&(ns.DashCase|ns.Important)?t.style.setProperty(e,r,i&ns.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&ns.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t[e]=r}setValue(t,e){t.nodeValue=e}listen(t,e,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,P$(r)):this.eventManager.addEventListener(t,e,P$(r))}}function S$(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class Joe extends ZI{constructor(t,e,r,i){super(t),this.component=r;const o=WI(i+"-"+r.id,r.styles);e.addStyles(o),this.contentAttr=function Yoe(n){return"_ngcontent-%COMP%".replace(GI,n)}(i+"-"+r.id),this.hostAttr=function Xoe(n){return"_nghost-%COMP%".replace(GI,n)}(i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}}class Qoe extends ZI{constructor(t,e,r,i){super(t),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=WI(i.id,i.styles);for(let a=0;a{class n extends b${constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}}return n.\u0275fac=function(e){return new(e||n)(Pe(Bo))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const T$=["alt","control","meta","shift"],tae={"\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"},nae={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let rae=(()=>{class n extends b${constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,r,i){const o=n.parseEventName(r),a=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hd().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const r=e.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=n._normalizeKey(r.pop());let a="",s=r.indexOf("code");if(s>-1&&(r.splice(s,1),a="code."),T$.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),a+=c+".")}),a+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=a,l}static matchEventFullKeyCode(e,r){let i=tae[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),T$.forEach(a=>{a!==i&&(0,nae[a])(e)&&(o+=a+".")}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{n.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(Pe(Bo))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const D$=[{provide:_g,useValue:h$},{provide:c7,useValue:function iae(){HI.makeCurrent()},multi:!0},{provide:Bo,useFactory:function aae(){return function m4(n){R_=n}(document),document},deps:[]}],sae=b7(qre,"browser",D$),I$=new Ct(""),E$=[{provide:nM,useClass:class Goe{addToWindow(t){si.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},si.getAllAngularTestabilities=()=>t.getAllTestabilities(),si.getAllAngularRootElements=()=>t.getAllRootElements(),si.frameworkStabilizers||(si.frameworkStabilizers=[]),si.frameworkStabilizers.push(r=>{const i=si.getAllAngularTestabilities();let o=i.length,a=!1;const s=function(l){a=a||l,o--,0==o&&r(a)};i.forEach(function(l){l.whenStable(s)})})}findTestabilityInTree(t,e,r){return null==e?null:t.getTestability(e)??(r?hd().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:m7,useClass:hI,deps:[Di,fI,nM]},{provide:hI,useClass:hI,deps:[Di,fI,nM]}],k$=[{provide:Hi,useValue:"root"},{provide:If,useFactory:function oae(){return new If},deps:[]},{provide:CM,useClass:eae,multi:!0,deps:[Bo,Di,_g]},{provide:CM,useClass:rae,multi:!0,deps:[Bo]},{provide:qI,useClass:qI,deps:[wM,Iy,Py]},{provide:W_,useExisting:qI},{provide:C$,useExisting:Iy},{provide:Iy,useClass:Iy,deps:[Bo]},{provide:wM,useClass:wM,deps:[CM,Di]},{provide:p$,useClass:Woe,deps:[]},[]];let lae=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:Py,useValue:e.appId},{provide:y$,useExisting:Py},joe]}}}return n.\u0275fac=function(e){return new(e||n)(Pe(I$,12))},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({providers:[...k$,...E$],imports:[Wi,Zre]}),n})(),R$=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(Pe(Bo))},n.\u0275prov=We({token:n,factory:function(e){let r=null;return r=e?new e:function uae(){return new R$(Pe(Bo))}(),r},providedIn:"root"}),n})();typeof window<"u"&&window;let Ey=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:function(e){let r=null;return r=e?new(e||n):Pe(F$),r},providedIn:"root"}),n})(),F$=(()=>{class n extends Ey{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case Ai.NONE:return r;case Ai.HTML:return mc(r,"HTML")?Ss(r):Xw(this._doc,String(r)).toString();case Ai.STYLE:return mc(r,"Style")?Ss(r):r;case Ai.SCRIPT:if(mc(r,"Script"))return Ss(r);throw new Error("unsafe value used in a script context");case Ai.URL:return mc(r,"URL")?Ss(r):Km(String(r));case Ai.RESOURCE_URL:if(mc(r,"ResourceURL"))return Ss(r);throw new Error(`unsafe value used in a resource URL context (see ${Ep})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Ep})`)}}bypassSecurityTrustHtml(e){return function Xm(n){return new v4(n)}(e)}bypassSecurityTrustStyle(e){return function C4(n){return new _4(n)}(e)}bypassSecurityTrustScript(e){return function w4(n){return new jw(n)}(e)}bypassSecurityTrustUrl(e){return function x4(n){return new Gw(n)}(e)}bypassSecurityTrustResourceUrl(e){return function M4(n){return new y4(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(Pe(Bo))},n.\u0275prov=We({token:n,factory:function(e){let r=null;return r=e?new e:function vae(n){return new F$(n.get(Bo))}(Pe(fo)),r},providedIn:"root"}),n})();function we(...n){return bi(n,Wa(n))}function Bf(n,t){return V(t)?Ur(n,t,1):Ur(n,1)}function Te(n,t){return Xe((e,r)=>{let i=0;e.subscribe(B(r,o=>n.call(t,o,i++)&&r.next(o)))})}class xM{}class KI{}class va{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const i=e.slice(0,r),o=i.toLowerCase(),a=e.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let r=t[e];const i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof va?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new va;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof va?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":const o=t.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===o.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class _ae{encodeKey(t){return B$(t)}encodeValue(t){return B$(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const bae=/%(\d[a-f0-9])/gi,Cae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function B$(n){return encodeURIComponent(n).replace(bae,(t,e)=>Cae[e]??t)}function MM(n){return`${n}`}class Sc{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new _ae,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function yae(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[a,s]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const r=t.fromObject[e],i=Array.isArray(r)?r.map(MM):[MM(r)];this.map.set(e,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Sc({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(MM(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(MM(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class wae{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function $$(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function U$(n){return typeof Blob<"u"&&n instanceof Blob}function V$(n){return typeof FormData<"u"&&n instanceof FormData}class mh{constructor(t,e,r,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function xae(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new va),this.context||(this.context=new wae),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(p,t.setHeaders[p]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,p)=>d.set(p,t.setParams[p]),c)),new mh(e,r,o,{params:c,headers:l,context:u,reportProgress:s,responseType:i,withCredentials:a})}}var Ho=(()=>((Ho=Ho||{})[Ho.Sent=0]="Sent",Ho[Ho.UploadProgress=1]="UploadProgress",Ho[Ho.ResponseHeader=2]="ResponseHeader",Ho[Ho.DownloadProgress=3]="DownloadProgress",Ho[Ho.Response=4]="Response",Ho[Ho.User=5]="User",Ho))();class JI{constructor(t,e=200,r="OK"){this.headers=t.headers||new va,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class QI extends JI{constructor(t={}){super(t),this.type=Ho.ResponseHeader}clone(t={}){return new QI({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Le extends JI{constructor(t={}){super(t),this.type=Ho.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Le({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class eE extends JI{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function tE(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let nr=(()=>{class n{constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof mh)o=e;else{let l,c;l=i.headers instanceof va?i.headers:new va(i.headers),i.params&&(c=i.params instanceof Sc?i.params:new Sc({fromObject:i.params})),o=new mh(e,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const a=we(o).pipe(Bf(l=>this.handler.handle(l)));if(e instanceof mh||"events"===i.observe)return a;const s=a.pipe(Te(l=>l instanceof Le));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(R(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(R(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(R(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(R(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new Sc).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,tE(i,r))}post(e,r,i={}){return this.request("POST",e,tE(i,r))}put(e,r,i={}){return this.request("PUT",e,tE(i,r))}}return n.\u0275fac=function(e){return new(e||n)(Pe(xM))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();function z$(n,t){return t(n)}function Pae(n,t){return(e,r)=>t.intercept(e,{handle:i=>n(i,r)})}const nE=new Ct("HTTP_INTERCEPTORS"),ky=new Ct("HTTP_INTERCEPTOR_FNS");function Sae(){let n=null;return(t,e)=>(null===n&&(n=(Lt(nE,{optional:!0})??[]).reduceRight(Pae,z$)),n(t,e))}let H$=(()=>{class n extends xM{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=Array.from(new Set(this.injector.get(ky)));this.chain=r.reduceRight((i,o)=>function Oae(n,t,e){return(r,i)=>e.runInContext(()=>t(r,o=>n(o,i)))}(i,o,this.injector),z$)}return this.chain(e,r=>this.backend.handle(r))}}return n.\u0275fac=function(e){return new(e||n)(Pe(KI),Pe(Vl))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const Iae=/^\)\]\}',?\n/;let G$=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F(r=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((g,v)=>i.setRequestHeader(g,v.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const g=e.detectContentTypeHeader();null!==g&&i.setRequestHeader("Content-Type",g)}if(e.responseType){const g=e.responseType.toLowerCase();i.responseType="json"!==g?g:"text"}const o=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const g=i.statusText||"OK",v=new va(i.getAllResponseHeaders()),_=function Eae(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(i)||e.url;return a=new QI({headers:v,status:i.status,statusText:g,url:_}),a},l=()=>{let{headers:g,status:v,statusText:_,url:y}=s(),b=null;204!==v&&(b=typeof i.response>"u"?i.responseText:i.response),0===v&&(v=b?200:0);let w=v>=200&&v<300;if("json"===e.responseType&&"string"==typeof b){const M=b;b=b.replace(Iae,"");try{b=""!==b?JSON.parse(b):null}catch(P){b=M,w&&(w=!1,b={error:P,text:b})}}w?(r.next(new Le({body:b,headers:g,status:v,statusText:_,url:y||void 0})),r.complete()):r.error(new eE({error:b,headers:g,status:v,statusText:_,url:y||void 0}))},c=g=>{const{url:v}=s(),_=new eE({error:g,status:i.status||0,statusText:i.statusText||"Unknown Error",url:v||void 0});r.error(_)};let u=!1;const d=g=>{u||(r.next(s()),u=!0);let v={type:Ho.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),"text"===e.responseType&&i.responseText&&(v.partialText=i.responseText),r.next(v)},p=g=>{let v={type:Ho.UploadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),r.next(v)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",p)),i.send(o),r.next({type:Ho.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(Pe(p$))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const rE=new Ct("XSRF_ENABLED"),W$="XSRF-TOKEN",q$=new Ct("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>W$}),Z$="X-XSRF-TOKEN",Y$=new Ct("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>Z$});class X${}let kae=(()=>{class n{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Q7(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(Pe(Bo),Pe(_g),Pe(q$))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();function Rae(n,t){const e=n.url.toLowerCase();if(!Lt(rE)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const r=Lt(X$).getToken(),i=Lt(Y$);return null!=r&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,r)})),t(n)}var Eo=(()=>((Eo=Eo||{})[Eo.Interceptors=0]="Interceptors",Eo[Eo.LegacyInterceptors=1]="LegacyInterceptors",Eo[Eo.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Eo[Eo.NoXsrfProtection=3]="NoXsrfProtection",Eo[Eo.JsonpSupport=4]="JsonpSupport",Eo[Eo.RequestsMadeViaParent=5]="RequestsMadeViaParent",Eo))();function Dv(n,t){return{\u0275kind:n,\u0275providers:t}}function Nae(...n){const t=[nr,G$,H$,{provide:xM,useExisting:H$},{provide:KI,useExisting:G$},{provide:ky,useValue:Rae,multi:!0},{provide:rE,useValue:!0},{provide:X$,useClass:kae}];for(const e of n)t.push(...e.\u0275providers);return function $4(n){return{\u0275providers:n}}(t)}const K$=new Ct("LEGACY_INTERCEPTOR_FN");function Fae({cookieName:n,headerName:t}){const e=[];return void 0!==n&&e.push({provide:q$,useValue:n}),void 0!==t&&e.push({provide:Y$,useValue:t}),Dv(Eo.CustomXsrfConfiguration,e)}let Bae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({providers:[Nae(Dv(Eo.LegacyInterceptors,[{provide:K$,useFactory:Sae},{provide:ky,useExisting:K$,multi:!0}]),Fae({cookieName:W$,headerName:Z$}))]}),n})();const iE={now:()=>(iE.delegate||Date).now(),delegate:void 0};class J$ extends D{constructor(t=1/0,e=1/0,r=iE){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:a}=this;e||(r.push(t),!i&&r.push(o.now()+a)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let a=0;a{let i=null,o=0,a=!1;const s=()=>a&&!i&&r.complete();e.subscribe(B(r,l=>{i?.unsubscribe();let c=0;const u=o++;Mn(n(l,u)).subscribe(i=B(r,d=>r.next(t?t(l,d,u,c++):d),()=>{i=null,s()}))},()=>{a=!0,s()}))})}const PM={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return PM.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return PM.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let oE;function qae(n,t,e){let r=e;return function Uae(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((i,o)=>!("*"===i||!function zae(n,t){if(!oE){const e=Element.prototype;oE=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&oE.call(n,t)}(n,i)||(r=o,0))),r}class Yae{constructor(t,e){this.componentFactory=e.get(pa).resolveComponentFactory(t)}create(t){return new Xae(this.componentFactory,t)}}class Xae{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new J$(1),this.events=this.eventEmitters.pipe(_a(r=>Dl(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(Di),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=PM.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function Hae(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=fo.create({providers:[],parent:this.injector}),r=function Wae(n,t){const e=n.childNodes,r=t.map(()=>[]);let i=-1;t.some((o,a)=>"*"===o&&(i=a,!0));for(let o=0,a=e.length;o{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:r,templateName:i})=>t.instance[r].pipe(R(a=>({name:i,value:a}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=PM.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[t];if(r)return void(r.currentValue=e);const i=this.unchangedInputs.has(t),o=i?void 0:this.getInputValue(t);this.inputChanges[t]=new N3(o,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Kae extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function aE(n,t){const e=function Gae(n,t){return t.get(pa).resolveComponentFactory(n).inputs}(n,t.injector),r=t.strategyFactory||new Yae(n,t.injector),i=function jae(n){const t={};return n.forEach(({propName:e,templateName:r})=>{t[function $ae(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=e}),t}(e);class o extends Kae{get ngElementStrategy(){if(!this._ngElementStrategy){const s=this._ngElementStrategy=r.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],s.setInputValue(l,c)})}return this._ngElementStrategy}constructor(s){super(),this.injector=s}attributeChangedCallback(s,l,c,u){this.ngElementStrategy.setInputValue(i[s],c)}connectedCallback(){let s=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),s=!0),this.ngElementStrategy.connect(this),s||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(s=>{const l=new CustomEvent(s.name,{detail:s.value});this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(i),e.forEach(({propName:a})=>{Object.defineProperty(o.prototype,a,{get(){return this.ngElementStrategy.getInputValue(a)},set(s){this.ngElementStrategy.setInputValue(a,s)},configurable:!0,enumerable:!0})}),o}class io extends D{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:r}=this;if(t)throw e;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}const Ry=Se(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:Jae}=Array,{getPrototypeOf:Qae,prototype:ese,keys:tse}=Object;function Q$(n){if(1===n.length){const t=n[0];if(Jae(t))return{args:t,keys:null};if(function nse(n){return n&&"object"==typeof n&&Qae(n)===ese}(t)){const e=tse(t);return{args:e.map(r=>t[r]),keys:e}}}return{args:n,keys:null}}const{isArray:rse}=Array;function sE(n){return R(t=>function ise(n,t){return rse(t)?n(...t):n(t)}(n,t))}function e9(n,t){return n.reduce((e,r,i)=>(e[r]=t[i],e),{})}function t9(...n){const t=Wa(n),e=Ga(n),{args:r,keys:i}=Q$(n);if(0===r.length)return bi([],t);const o=new F(function ose(n,t,e=x){return r=>{n9(t,()=>{const{length:i}=n,o=new Array(i);let a=i,s=i;for(let l=0;l{const c=bi(n[l],t);let u=!1;c.subscribe(B(r,d=>{o[l]=d,u||(u=!0,s--),s||r.next(e(o.slice()))},()=>{--a||r.complete()}))},r)},r)}}(r,t,i?a=>e9(i,a):x));return e?o.pipe(sE(e)):o}function n9(n,t,e){n?dr(e,n,t):t()}function OM(...n){return function ase(){return Pr(1)}()(bi(n,Wa(n)))}function SM(n){return new F(t=>{Mn(n()).subscribe(t)})}function Iv(n,t){const e=V(n)?n:()=>n,r=i=>i.error(e());return new F(t?i=>t.schedule(r,0,i):r)}function lE(){return Xe((n,t)=>{let e=null;n._refCount++;const r=B(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const i=n._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});n.subscribe(r),r.closed||(e=n.connect())})}class r9 extends F{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,ut(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Ke;const e=this.getSubject();t.add(this.source.subscribe(B(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Ke.EMPTY)}return t}refCount(){return lE()(this)}}function xg(n){return n<=0?()=>Jn:Xe((t,e)=>{let r=0;t.subscribe(B(e,i=>{++r<=n&&(e.next(i),n<=r&&e.complete())}))})}function Ny(n){return Xe((t,e)=>{let r=!1;t.subscribe(B(e,i=>{r=!0,e.next(i)},()=>{r||e.next(n),e.complete()}))})}function i9(n=lse){return Xe((t,e)=>{let r=!1;t.subscribe(B(e,i=>{r=!0,e.next(i)},()=>r?e.complete():e.error(n())))})}function lse(){return new Ry}function vh(n,t){const e=arguments.length>=2;return r=>r.pipe(n?Te((i,o)=>n(i,o,r)):x,xg(1),e?Ny(t):i9(()=>new Ry))}function xo(n,t,e){const r=V(n)||t||e?{next:n,error:t,complete:e}:n;return r?Xe((i,o)=>{var a;null===(a=r.subscribe)||void 0===a||a.call(r);let s=!0;i.subscribe(B(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;s=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;s=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.error(l)},()=>{var l,c;s&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):x}function _h(n){return Xe((t,e)=>{let o,r=null,i=!1;r=t.subscribe(B(e,void 0,void 0,a=>{o=Mn(n(a,_h(n)(t))),r?(r.unsubscribe(),r=null,o.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(e))})}function o9(n,t){return Xe(function cse(n,t,e,r,i){return(o,a)=>{let s=e,l=t,c=0;o.subscribe(B(a,u=>{const d=c++;l=s?n(l,u,d):(s=!0,u),r&&a.next(l)},i&&(()=>{s&&a.next(l),a.complete()})))}}(n,t,arguments.length>=2,!0))}function cE(n){return n<=0?()=>Jn:Xe((t,e)=>{let r=[];t.subscribe(B(e,i=>{r.push(i),n{for(const i of r)e.next(i);e.complete()},void 0,()=>{r=null}))})}function a9(n,t){const e=arguments.length>=2;return r=>r.pipe(n?Te((i,o)=>n(i,o,r)):x,cE(1),e?Ny(t):i9(()=>new Ry))}function s9(n){return R(()=>n)}function $f(n){return Xe((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const $n="primary",Ly=Symbol("RouteTitle");class dse{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ev(n){return new dse(n)}function hse(n,t,e){const r=e.path.split("/");if(r.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||r.lengthr[o]===i)}return n===t}function c9(n){return Array.prototype.concat.apply([],n)}function u9(n){return n.length>0?n[n.length-1]:null}function Ea(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Uf(n){return FD(n)?n:fy(n)?bi(Promise.resolve(n)):we(n)}const TM=!1,pse={exact:function f9(n,t,e){if(!Pg(n.segments,t.segments)||!AM(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!n.children[r]||!f9(n.children[r],t.children[r],e))return!1;return!0},subset:p9},d9={exact:function gse(n,t){return fd(n,t)},subset:function mse(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>l9(n[e],t[e]))},ignored:()=>!0};function h9(n,t,e){return pse[e.paths](n.root,t.root,e.matrixParams)&&d9[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function p9(n,t,e){return g9(n,t,t.segments,e)}function g9(n,t,e,r){if(n.segments.length>e.length){const i=n.segments.slice(0,e.length);return!(!Pg(i,e)||t.hasChildren()||!AM(i,e,r))}if(n.segments.length===e.length){if(!Pg(n.segments,e)||!AM(n.segments,e,r))return!1;for(const i in t.children)if(!n.children[i]||!p9(n.children[i],t.children[i],r))return!1;return!0}{const i=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Pg(n.segments,i)&&AM(n.segments,i,r)&&n.children[$n])&&g9(n.children[$n],t,o,r)}}function AM(n,t,e){return t.every((r,i)=>d9[e](n[i].parameters,r.parameters))}class Mg{constructor(t=new ar([],{}),e={},r=null){this.root=t,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ev(this.queryParams)),this._queryParamMap}toString(){return yse.serialize(this)}}class ar{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ea(e,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return DM(this)}}class Fy{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ev(this.parameters)),this._parameterMap}toString(){return _9(this)}}function Pg(n,t){return n.length===t.length&&n.every((e,r)=>e.path===t[r].path)}let By=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:function(){return new uE},providedIn:"root"}),n})();class uE{parse(t){const e=new Tse(t);return new Mg(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${$y(t.root,!0)}`,r=function wse(n){const t=Object.keys(n).map(e=>{const r=n[e];return Array.isArray(r)?r.map(i=>`${IM(e)}=${IM(i)}`).join("&"):`${IM(e)}=${IM(r)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${r}${"string"==typeof t.fragment?`#${function bse(n){return encodeURI(n)}(t.fragment)}`:""}`}}const yse=new uE;function DM(n){return n.segments.map(t=>_9(t)).join("/")}function $y(n,t){if(!n.hasChildren())return DM(n);if(t){const e=n.children[$n]?$y(n.children[$n],!1):"",r=[];return Ea(n.children,(i,o)=>{o!==$n&&r.push(`${o}:${$y(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function _se(n,t){let e=[];return Ea(n.children,(r,i)=>{i===$n&&(e=e.concat(t(r,i)))}),Ea(n.children,(r,i)=>{i!==$n&&(e=e.concat(t(r,i)))}),e}(n,(r,i)=>i===$n?[$y(n.children[$n],!1)]:[`${i}:${$y(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[$n]?`${DM(n)}/${e[0]}`:`${DM(n)}/(${e.join("//")})`}}function m9(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function IM(n){return m9(n).replace(/%3B/gi,";")}function dE(n){return m9(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function EM(n){return decodeURIComponent(n)}function v9(n){return EM(n.replace(/\+/g,"%20"))}function _9(n){return`${dE(n.path)}${function Cse(n){return Object.keys(n).map(t=>`;${dE(t)}=${dE(n[t])}`).join("")}(n.parameters)}`}const xse=/^[^\/()?;=#]+/;function kM(n){const t=n.match(xse);return t?t[0]:""}const Mse=/^[^=?&#]+/,Ose=/^[^&#]+/;class Tse{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ar([],{}):new ar([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[$n]=new ar(t,e)),r}parseSegment(){const t=kM(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new nt(4009,TM);return this.capture(t),new Fy(EM(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=kM(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const i=kM(this.remaining);i&&(r=i,this.capture(r))}t[EM(e)]=EM(r)}parseQueryParam(t){const e=function Pse(n){const t=n.match(Mse);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const a=function Sse(n){const t=n.match(Ose);return t?t[0]:""}(this.remaining);a&&(r=a,this.capture(r))}const i=v9(e),o=v9(r);if(t.hasOwnProperty(i)){let a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(o)}else t[i]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=kM(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new nt(4010,TM);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=$n);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[$n]:new ar([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new nt(4011,TM)}}function hE(n){return n.segments.length>0?new ar([],{[$n]:n}):n}function RM(n){const t={};for(const r of Object.keys(n.children)){const o=RM(n.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function Ase(n){if(1===n.numberOfChildren&&n.children[$n]){const t=n.children[$n];return new ar(n.segments.concat(t.segments),t.children)}return n}(new ar(n.segments,t))}function Og(n){return n instanceof Mg}const fE=!1;function Ese(n,t,e,r,i){if(0===e.length)return kv(t.root,t.root,t.root,r,i);const o=function C9(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new b9(!0,0,n);let t=0,e=!1;const r=n.reduce((i,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return Ea(o.outlets,(l,c)=>{s[c]="string"==typeof l?l.split("/"):l}),[...i,{outlets:s}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===a?(o.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?t++:""!=s&&i.push(s))}),i):[...i,o]},[]);return new b9(e,t,r)}(e);return o.toRoot()?kv(t.root,t.root,new ar([],{}),r,i):function a(l){const c=function Rse(n,t,e,r){if(n.isAbsolute)return new Rv(t.root,!0,0);if(-1===r)return new Rv(e,e===t.root,0);return function w9(n,t,e){let r=n,i=t,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new nt(4005,fE&&"Invalid number of '../'");i=r.segments.length}return new Rv(r,!1,i-o)}(e,r+(Uy(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Nv(c.segmentGroup,c.index,o.commands):pE(c.segmentGroup,c.index,o.commands);return kv(t.root,c.segmentGroup,u,r,i)}(n.snapshot?._lastPathIndex)}function Uy(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Vy(n){return"object"==typeof n&&null!=n&&n.outlets}function kv(n,t,e,r,i){let a,o={};r&&Ea(r,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),a=n===t?e:y9(n,t,e);const s=hE(RM(a));return new Mg(s,o,i)}function y9(n,t,e){const r={};return Ea(n.children,(i,o)=>{r[o]=i===t?e:y9(i,t,e)}),new ar(n.segments,r)}class b9{constructor(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&Uy(r[0]))throw new nt(4003,fE&&"Root segment cannot have matrix parameters");const i=r.find(Vy);if(i&&i!==u9(r))throw new nt(4004,fE&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rv{constructor(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}}function pE(n,t,e){if(n||(n=new ar([],{})),0===n.segments.length&&n.hasChildren())return Nv(n,t,e);const r=function Lse(n,t,e){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;const a=n.segments[i],s=e[r];if(Vy(s))break;const l=`${s}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!M9(l,c,a))return o;r+=2}else{if(!M9(l,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(n,t,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(i[a]=pE(n.children[a],t,o))}),Ea(n.children,(o,a)=>{void 0===r[a]&&(i[a]=o)}),new ar(n.segments,i))}}function gE(n,t,e){const r=n.segments.slice(0,t);let i=0;for(;i{"string"==typeof e&&(e=[e]),null!==e&&(t[r]=gE(new ar([],{}),0,e))}),t}function x9(n){const t={};return Ea(n,(e,r)=>t[r]=`${e}`),t}function M9(n,t,e){return n==e.path&&fd(t,e.parameters)}const zy="imperative";class pd{constructor(t,e){this.id=t,this.url=e}}class mE extends pd{constructor(t,e,r="imperative",i=null){super(t,e),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Sg extends pd{constructor(t,e,r){super(t,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class NM extends pd{constructor(t,e,r,i){super(t,e),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class P9 extends pd{constructor(t,e,r,i){super(t,e),this.reason=r,this.code=i,this.type=16}}class O9 extends pd{constructor(t,e,r,i){super(t,e),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bse extends pd{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $se extends pd{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Use extends pd{constructor(t,e,r,i,o){super(t,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Vse extends pd{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zse extends pd{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hse{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class jse{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Gse{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wse{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qse{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zse{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S9{constructor(t,e,r){this.routerEvent=t,this.position=e,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Xse=(()=>{class n{createUrlTree(e,r,i,o,a,s){return Ese(e||r.root,i,o,a,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})(),Kse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:function(t){return Xse.\u0275fac(t)},providedIn:"root"}),n})();class T9{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=vE(t,this._root);return e?e.children.map(r=>r.value):[]}firstChild(t){const e=vE(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=_E(t,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return _E(t,this._root).map(e=>e.value)}}function vE(n,t){if(n===t.value)return t;for(const e of t.children){const r=vE(n,e);if(r)return r}return null}function _E(n,t){if(n===t.value)return[t];for(const e of t.children){const r=_E(n,e);if(r.length)return r.unshift(t),r}return[]}class yh{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Lv(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class A9 extends T9{constructor(t,e){super(t),this.snapshot=e,yE(this,t)}toString(){return this.snapshot.toString()}}function D9(n,t){const e=function Jse(n,t){const a=new LM([],{},{},"",{},$n,t,null,n.root,-1,{});return new E9("",new yh(a,[]))}(n,t),r=new io([new Fy("",{})]),i=new io({}),o=new io({}),a=new io({}),s=new io(""),l=new Fv(r,i,a,s,o,$n,t,e.root);return l.snapshot=e.root,new A9(new yh(l,[]),e)}class Fv{constructor(t,e,r,i,o,a,s,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.pipe(R(c=>c[Ly]))??we(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(R(t=>Ev(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(R(t=>Ev(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function I9(n,t="emptyOnly"){const e=n.pathFromRoot;let r=0;if("always"!==t)for(r=e.length-1;r>=1;){const i=e[r],o=e[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function Qse(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(r))}class LM{get title(){return this.data?.[Ly]}constructor(t,e,r,i,o,a,s,l,c,u,d){this.url=t,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}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=Ev(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ev(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class E9 extends T9{constructor(t,e){super(e),this.url=t,yE(this,e)}toString(){return k9(this._root)}}function yE(n,t){t.value._routerState=n,t.children.forEach(e=>yE(n,e))}function k9(n){const t=n.children.length>0?` { ${n.children.map(k9).join(", ")} } `:"";return`${n.value}${t}`}function bE(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,fd(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),fd(t.params,e.params)||n.params.next(e.params),function fse(n,t){if(n.length!==t.length)return!1;for(let e=0;efd(e.parameters,t[r].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||CE(n.parent,t.parent))}function Hy(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=t.value;const i=function tle(n,t,e){return t.children.map(r=>{for(const i of e.children)if(n.shouldReuseRoute(r.value,i.value.snapshot))return Hy(n,r,i);return Hy(n,r)})}(n,t,e);return new yh(r,i)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>Hy(n,s)),a}}const r=function nle(n){return new Fv(new io(n.url),new io(n.params),new io(n.queryParams),new io(n.fragment),new io(n.data),n.outlet,n.component,n)}(t.value),i=t.children.map(o=>Hy(n,o));return new yh(r,i)}}const wE="ngNavigationCancelingError";function R9(n,t){const{redirectTo:e,navigationBehaviorOptions:r}=Og(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=N9(!1,0,t);return i.url=e,i.navigationBehaviorOptions=r,i}function N9(n,t,e){const r=new Error("NavigationCancelingError: "+(n||""));return r[wE]=!0,r.cancellationCode=t,e&&(r.url=e),r}function L9(n){return F9(n)&&Og(n.url)}function F9(n){return n&&n[wE]}class rle{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new jy,this.attachRef=null}}let jy=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){const i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){const r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new rle,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const FM=!1;let B9=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=$n,this.activateEvents=new _r,this.deactivateEvents=new _r,this.attachEvents=new _r,this.detachEvents=new _r,this.parentContexts=Lt(jy),this.location=Lt(jl),this.changeDetector=Lt(Mc),this.environmentInjector=Lt(Vl)}ngOnChanges(e){if(e.name){const{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new nt(4012,FM);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new nt(4012,FM);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new nt(4012,FM);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new nt(4013,FM);this._activatedRoute=e;const i=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new ile(e,s,i.injector);if(r&&function ole(n){return!!n.resolveComponentFactory}(r)){const c=r.resolveComponentFactory(a);this.activated=i.createComponent(c,i.length,l)}else this.activated=i.createComponent(a,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Ht({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[co]}),n})();class ile{constructor(t,e,r){this.route=t,this.childContexts=e,this.parent=r}get(t,e){return t===Fv?this.route:t===jy?this.childContexts:this.parent.get(t,e)}}let xE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=xt({type:n,selectors:[["ng-component"]],standalone:!0,features:[Do],decls:1,vars:0,template:function(e,r){1&e&&fe(0,"router-outlet")},dependencies:[B9],encapsulation:2}),n})();function $9(n,t){return n.providers&&!n._injector&&(n._injector=Xx(n.providers,t,`Route: ${n.path}`)),n._injector??t}function PE(n){const t=n.children&&n.children.map(PE),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==$n&&(e.component=xE),e}function Tc(n){return n.outlet||$n}function U9(n,t){const e=n.filter(r=>Tc(r)===t);return e.push(...n.filter(r=>Tc(r)!==t)),e}function Gy(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class ule{constructor(t,e,r,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=r,this.forwardEvent=i}activate(t){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),bE(this.futureState.root),this.activateChildRoutes(e,r,t)}deactivateChildRoutes(t,e,r){const i=Lv(e);t.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a]}),Ea(i,(o,a)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,e,r){const i=t.value,o=e?e.value:null;if(i===o)if(i.component){const a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(t,e,a.children)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const r=e.getContext(t.value.outlet),i=r&&t.value.component?r.children:e,o=Lv(t);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],i);if(r&&r.outlet){const a=r.outlet.detach(),s=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const r=e.getContext(t.value.outlet),i=r&&t.value.component?r.children:e,o=Lv(t);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,e,r){const i=Lv(e);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Zse(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Wse(t.value.snapshot))}activateRoutes(t,e,r){const i=t.value,o=e?e.value:null;if(bE(i),i===o)if(i.component){const a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,a.children)}else this.activateChildRoutes(t,e,r);else if(i.component){const a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),bE(s.route.value),this.activateChildRoutes(t,null,a.children)}else{const s=Gy(i.snapshot),l=s?.get(pa)??null;a.attachRef=null,a.route=i,a.resolver=l,a.injector=s,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,r)}}class V9{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class BM{constructor(t,e){this.component=t,this.route=e}}function dle(n,t,e){const r=n._root;return Wy(r,t?t._root:null,e,[r.value])}function Bv(n,t){const e=Symbol(),r=t.get(n,e);return r===e?"function"!=typeof n||function sA(n){return null!==am(n)}(n)?t.get(n):n:r}function Wy(n,t,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Lv(t);return n.children.forEach(a=>{(function fle(n,t,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,a=t?t.value:null,s=e?e.getContext(n.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function ple(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Pg(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Pg(n.url,t.url)||!fd(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!CE(n,t)||!fd(n.queryParams,t.queryParams);default:return!CE(n,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new V9(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Wy(n,t,o.component?s?s.children:null:e,r,i),l&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new BM(s.outlet.component,a))}else a&&qy(t,s,i),i.canActivateChecks.push(new V9(r)),Wy(n,null,o.component?s?s.children:null:e,r,i)})(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet]}),Ea(o,(a,s)=>qy(a,e.getContext(s),i)),i}function qy(n,t,e){const r=Lv(n),i=n.value;Ea(r,(o,a)=>{qy(o,i.component?t?t.children.getContext(a):null:t,e)}),e.canDeactivateChecks.push(new BM(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Zy(n){return"function"==typeof n}function OE(n){return n instanceof Ry||"EmptyError"===n?.name}const $M=Symbol("INITIAL_VALUE");function $v(){return _a(n=>t9(n.map(t=>t.pipe(xg(1),function sse(...n){const t=Wa(n);return Xe((e,r)=>{(t?OM(n,e,t):OM(n,e)).subscribe(r)})}($M)))).pipe(R(t=>{for(const e of t)if(!0!==e){if(e===$M)return $M;if(!1===e||e instanceof Mg)return e}return!0}),Te(t=>t!==$M),xg(1)))}function z9(n){return function I(...n){return L(n)}(xo(t=>{if(Og(t))throw R9(0,t)}),R(t=>!0===t))}const SE={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function H9(n,t,e,r,i){const o=TE(n,t,e);return o.matched?function Ile(n,t,e,r){const i=t.canMatch;return i&&0!==i.length?we(i.map(a=>{const s=Bv(a,n);return Uf(function ble(n){return n&&Zy(n.canMatch)}(s)?s.canMatch(t,e):n.runInContext(()=>s(t,e)))})).pipe($v(),z9()):we(!0)}(r=$9(t,r),t,e).pipe(R(a=>!0===a?o:{...SE})):we(o)}function TE(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...SE}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const i=(t.matcher||hse)(e,n,t);if(!i)return{...SE};const o={};Ea(i.posParams,(s,l)=>{o[l]=s.path});const a=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function UM(n,t,e,r){if(e.length>0&&function Rle(n,t,e){return e.some(r=>VM(n,t,r)&&Tc(r)!==$n)}(n,e,r)){const o=new ar(t,function kle(n,t,e,r){const i={};i[$n]=r,r._sourceSegment=n,r._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&Tc(o)!==$n){const a=new ar([],{});a._sourceSegment=n,a._segmentIndexShift=t.length,i[Tc(o)]=a}return i}(n,t,r,new ar(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function Nle(n,t,e){return e.some(r=>VM(n,t,r))}(n,e,r)){const o=new ar(n.segments,function Ele(n,t,e,r,i){const o={};for(const a of r)if(VM(n,e,a)&&!i[Tc(a)]){const s=new ar([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,o[Tc(a)]=s}return{...i,...o}}(n,t,e,r,n.children));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const i=new ar(n.segments,n.children);return i._sourceSegment=n,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:e}}function VM(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function j9(n,t,e,r){return!!(Tc(n)===r||r!==$n&&VM(t,e,n))&&("**"===n.path||TE(t,n,e).matched)}function G9(n,t,e){return 0===t.length&&!n.children[e]}const zM=!1;class HM{constructor(t){this.segmentGroup=t||null}}class W9{constructor(t){this.urlTree=t}}function Yy(n){return Iv(new HM(n))}function q9(n){return Iv(new W9(n))}class $le{constructor(t,e,r,i,o){this.injector=t,this.configLoader=e,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const t=UM(this.urlTree.root,[],[],this.config).segmentGroup,e=new ar(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,$n).pipe(R(o=>this.createUrlTree(RM(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(_h(o=>{if(o instanceof W9)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof HM?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,$n).pipe(R(i=>this.createUrlTree(RM(i),t.queryParams,t.fragment))).pipe(_h(i=>{throw i instanceof HM?this.noMatchError(i):i}))}noMatchError(t){return new nt(4002,zM)}createUrlTree(t,e,r){const i=hE(t);return new Mg(i,e,r)}expandSegmentGroup(t,e,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,e,r).pipe(R(o=>new ar([],o))):this.expandSegment(t,r,e,r.segments,i,!0)}expandChildren(t,e,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return bi(i).pipe(Bf(o=>{const a=r.children[o],s=U9(e,o);return this.expandSegmentGroup(t,s,a,o).pipe(R(l=>({segment:l,outlet:o})))}),o9((o,a)=>(o[a.outlet]=a.segment,o),{}),a9())}expandSegment(t,e,r,i,o,a){return bi(r).pipe(Bf(s=>this.expandSegmentAgainstRoute(t,e,r,s,i,o,a).pipe(_h(c=>{if(c instanceof HM)return we(null);throw c}))),vh(s=>!!s),_h((s,l)=>{if(OE(s))return G9(e,i,o)?we(new ar([],{})):Yy(e);throw s}))}expandSegmentAgainstRoute(t,e,r,i,o,a,s){return j9(i,e,o,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,o,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,i,o,a):Yy(e):Yy(e)}expandSegmentAgainstRouteUsingRedirect(t,e,r,i,o,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,i,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?q9(o):this.lineralizeSegments(r,o).pipe(Ur(a=>{const s=new ar(a,{});return this.expandSegment(t,s,e,a,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,i,o,a){const{matched:s,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=TE(e,i,o);if(!s)return Yy(e);const d=this.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?q9(d):this.lineralizeSegments(i,d).pipe(Ur(p=>this.expandSegment(t,e,r,p.concat(c),a,!1)))}matchSegmentAgainstRoute(t,e,r,i,o){return"**"===r.path?(t=$9(r,t),r.loadChildren?(r._loadedRoutes?we({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(R(s=>(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,new ar(i,{})))):we(new ar(i,{}))):H9(e,r,i,t).pipe(_a(({matched:a,consumedSegments:s,remainingSegments:l})=>a?this.getChildConfig(t=r._injector??t,r,i).pipe(Ur(u=>{const d=u.injector??t,p=u.routes,{segmentGroup:g,slicedSegments:v}=UM(e,s,l,p),_=new ar(g.segments,g.children);if(0===v.length&&_.hasChildren())return this.expandChildren(d,p,_).pipe(R(M=>new ar(s,M)));if(0===p.length&&0===v.length)return we(new ar(s,{}));const y=Tc(r)===o;return this.expandSegment(d,_,p,v,y?$n:o,!0).pipe(R(w=>new ar(s.concat(w.segments),w.children)))})):Yy(e)))}getChildConfig(t,e,r){return e.children?we({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?we({routes:e._loadedRoutes,injector:e._loadedInjector}):function Dle(n,t,e,r){const i=t.canLoad;return void 0===i||0===i.length?we(!0):we(i.map(a=>{const s=Bv(a,n);return Uf(function mle(n){return n&&Zy(n.canLoad)}(s)?s.canLoad(t,e):n.runInContext(()=>s(t,e)))})).pipe($v(),z9())}(t,e,r).pipe(Ur(i=>i?this.configLoader.loadChildren(t,e).pipe(xo(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Fle(n){return Iv(N9(zM,3))}())):we({routes:[],injector:t})}lineralizeSegments(t,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return we(r);if(i.numberOfChildren>1||!i.children[$n])return t.redirectTo,Iv(new nt(4e3,zM));i=i.children[$n]}}applyRedirectCommands(t,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,r)}applyRedirectCreateUrlTree(t,e,r,i){const o=this.createSegmentGroup(t,e.root,r,i);return new Mg(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const r={};return Ea(t,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const s=i.substring(1);r[o]=e[s]}else r[o]=i}),r}createSegmentGroup(t,e,r,i){const o=this.createSegments(t,e.segments,r,i);let a={};return Ea(e.children,(s,l)=>{a[l]=this.createSegmentGroup(t,s,r,i)}),new ar(o,a)}createSegments(t,e,r,i){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,e,r){const i=r[e.path.substring(1)];if(!i)throw new nt(4001,zM);return i}findOrReturn(t,e){let r=0;for(const i of e){if(i.path===t.path)return e.splice(r),i;r++}return t}}class Vle{}class jle{constructor(t,e,r,i,o,a,s){this.injector=t,this.rootComponentType=e,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s}recognize(){const t=UM(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,$n).pipe(R(e=>{if(null===e)return null;const r=new LM([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$n,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new yh(r,e),o=new E9(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,r=I9(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,e,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,e,r):this.processSegment(t,e,r,r.segments,i)}processChildren(t,e,r){return bi(Object.keys(r.children)).pipe(Bf(i=>{const o=r.children[i],a=U9(e,i);return this.processSegmentGroup(t,a,o,i)}),o9((i,o)=>i&&o?(i.push(...o),i):null),function use(n,t=!1){return Xe((e,r)=>{let i=0;e.subscribe(B(r,o=>{const a=n(o,i++);(a||t)&&r.next(o),!a&&r.complete()}))})}(i=>null!==i),Ny(null),a9(),R(i=>{if(null===i)return null;const o=Y9(i);return function Gle(n){n.sort((t,e)=>t.value.outlet===$n?-1:e.value.outlet===$n?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,r,i,o){return bi(e).pipe(Bf(a=>this.processSegmentAgainstRoute(a._injector??t,a,r,i,o)),vh(a=>!!a),_h(a=>{if(OE(a))return G9(r,i,o)?we([]):we(null);throw a}))}processSegmentAgainstRoute(t,e,r,i,o){if(e.redirectTo||!j9(e,r,i,o))return we(null);let a;if("**"===e.path){const s=i.length>0?u9(i).parameters:{},l=K9(r)+i.length;a=we({snapshot:new LM(i,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,J9(e),Tc(e),e.component??e._loadedComponent??null,e,X9(r),l,Q9(e)),consumedSegments:[],remainingSegments:[]})}else a=H9(r,e,i,t).pipe(R(({matched:s,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!s)return null;const d=K9(r)+l.length;return{snapshot:new LM(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,J9(e),Tc(e),e.component??e._loadedComponent??null,e,X9(r),d,Q9(e)),consumedSegments:l,remainingSegments:c}}));return a.pipe(_a(s=>{if(null===s)return we(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=s;t=e._injector??t;const d=e._loadedInjector??t,p=function Wle(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:g,slicedSegments:v}=UM(r,c,u,p.filter(y=>void 0===y.redirectTo));if(0===v.length&&g.hasChildren())return this.processChildren(d,p,g).pipe(R(y=>null===y?null:[new yh(l,y)]));if(0===p.length&&0===v.length)return we([new yh(l,[])]);const _=Tc(e)===o;return this.processSegment(d,p,g,v,_?$n:o).pipe(R(y=>null===y?null:[new yh(l,y)]))}))}}function qle(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function Y9(n){const t=[],e=new Set;for(const r of n){if(!qle(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),e.add(i)):t.push(r)}for(const r of e){const i=Y9(r.children);t.push(new yh(r.value,i))}return t.filter(r=>!e.has(r))}function X9(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function K9(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function J9(n){return n.data||{}}function Q9(n){return n.resolve||{}}function eU(n){return"string"==typeof n.title||null===n.title}function AE(n){return _a(t=>{const e=n(t);return e?bi(e).pipe(R(()=>t)):we(t)})}const Uv=new Ct("ROUTES");let DE=(()=>{class n{constructor(e,r){this.injector=e,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return we(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const r=Uf(e.loadComponent()).pipe(R(nU),xo(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),$f(()=>{this.componentLoaders.delete(e)})),i=new r9(r,()=>new D).pipe(lE());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return we({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(R(s=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,c,u=!1;Array.isArray(s)?c=s:(l=s.create(e).injector,c=c9(l.get(Uv,[],Bt.Self|Bt.Optional)));return{routes:c.map(PE),injector:l}}),$f(()=>{this.childrenLoaders.delete(r)})),a=new r9(o,()=>new D).pipe(lE());return this.childrenLoaders.set(r,a),a}loadModuleFactoryOrRoutes(e){return Uf(e()).pipe(R(nU),Ur(i=>i instanceof _B||Array.isArray(i)?we(i):bi(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(Pe(fo),Pe(d7))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nU(n){return function nce(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let GM=(()=>{class n{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new D,this.configLoader=Lt(DE),this.environmentInjector=Lt(Vl),this.urlSerializer=Lt(By),this.rootContexts=Lt(jy),this.navigationId=0,this.afterPreactivation=()=>we(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new jse(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new Hse(i))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:r})}setupNavigations(e){return this.transitions=new io({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:zy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Te(r=>0!==r.id),R(r=>({...r,extractedUrl:e.urlHandlingStrategy.extract(r.rawUrl)})),_a(r=>{let i=!1,o=!1;return we(r).pipe(xo(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),_a(a=>{const s=e.browserUrlTree.toString(),l=!e.navigated||a.extractedUrl.toString()!==s||s!==e.currentUrlTree.toString();if(!l&&"reload"!==(a.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new P9(a.id,e.serializeUrl(r.rawUrl),u,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),Jn}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return rU(a.source)&&(e.browserUrlTree=a.extractedUrl),we(a).pipe(_a(u=>{const d=this.transitions?.getValue();return this.events.next(new mE(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Jn:Promise.resolve(u)}),function Ule(n,t,e,r){return _a(i=>function Ble(n,t,e,r,i){return new $le(n,t,e,r,i).apply()}(n,t,e,i.extractedUrl,r).pipe(R(o=>({...i,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),xo(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},r.urlAfterRedirects=u.urlAfterRedirects}),function Yle(n,t,e,r,i){return Ur(o=>function Hle(n,t,e,r,i,o,a="emptyOnly"){return new jle(n,t,e,r,i,a,o).recognize().pipe(_a(s=>null===s?function zle(n){return new F(t=>t.error(n))}(new Vle):we(s)))}(n,t,e,o.urlAfterRedirects,r.serialize(o.urlAfterRedirects),r,i).pipe(R(a=>({...o,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),xo(u=>{if(r.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const p=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(p,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new Bse(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:p,restoredState:g,extras:v}=a,_=new mE(u,this.urlSerializer.serialize(d),p,g);this.events.next(_);const y=D9(d,this.rootComponentType).snapshot;return we(r={...a,targetSnapshot:y,urlAfterRedirects:d,extras:{...v,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new P9(a.id,e.serializeUrl(r.extractedUrl),u,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),Jn}}),xo(a=>{const s=new $se(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),R(a=>r={...a,guards:dle(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function wle(n,t){return Ur(e=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?we({...e,guardsResult:!0}):function xle(n,t,e,r){return bi(n).pipe(Ur(i=>function Ale(n,t,e,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?we(o.map(s=>{const l=Gy(t)??i,c=Bv(s,l);return Uf(function yle(n){return n&&Zy(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,r):l.runInContext(()=>c(n,t,e,r))).pipe(vh())})).pipe($v()):we(!0)}(i.component,i.route,e,t,r)),vh(i=>!0!==i,!0))}(a,r,i,n).pipe(Ur(s=>s&&function gle(n){return"boolean"==typeof n}(s)?function Mle(n,t,e,r){return bi(t).pipe(Bf(i=>OM(function Ole(n,t){return null!==n&&t&&t(new Gse(n)),we(!0)}(i.route.parent,r),function Ple(n,t){return null!==n&&t&&t(new qse(n)),we(!0)}(i.route,r),function Tle(n,t,e){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(a=>function hle(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(a)).filter(a=>null!==a).map(a=>SM(()=>we(a.guards.map(l=>{const c=Gy(a.node)??e,u=Bv(l,c);return Uf(function _le(n){return n&&Zy(n.canActivateChild)}(u)?u.canActivateChild(r,n):c.runInContext(()=>u(r,n))).pipe(vh())})).pipe($v())));return we(o).pipe($v())}(n,i.path,e),function Sle(n,t,e){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return we(!0);const i=r.map(o=>SM(()=>{const a=Gy(t)??e,s=Bv(o,a);return Uf(function vle(n){return n&&Zy(n.canActivate)}(s)?s.canActivate(t,n):a.runInContext(()=>s(t,n))).pipe(vh())}));return we(i).pipe($v())}(n,i.route,e))),vh(i=>!0!==i,!0))}(r,o,n,t):we(s)),R(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),xo(a=>{if(r.guardsResult=a.guardsResult,Og(a.guardsResult))throw R9(0,a.guardsResult);const s=new Use(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),Te(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),AE(a=>{if(a.guards.canActivateChecks.length)return we(a).pipe(xo(s=>{const l=new Vse(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l)}),_a(s=>{let l=!1;return we(s).pipe(function Xle(n,t){return Ur(e=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return we(e);let o=0;return bi(i).pipe(Bf(a=>function Kle(n,t,e,r){const i=n.routeConfig,o=n._resolve;return void 0!==i?.title&&!eU(i)&&(o[Ly]=i.title),function Jle(n,t,e,r){const i=function Qle(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===i.length)return we({});const o={};return bi(i).pipe(Ur(a=>function ece(n,t,e,r){const i=Gy(t)??r,o=Bv(n,i);return Uf(o.resolve?o.resolve(t,e):i.runInContext(()=>o(t,e)))}(n[a],t,e,r).pipe(vh(),xo(s=>{o[a]=s}))),cE(1),s9(o),_h(a=>OE(a)?Jn:Iv(a)))}(o,n,t,r).pipe(R(a=>(n._resolvedData=a,n.data=I9(n,e).resolve,i&&eU(i)&&(n.data[Ly]=i.title),null)))}(a.route,r,n,t)),xo(()=>o++),cE(1),Ur(a=>o===i.length?we(e):Jn))})}(e.paramsInheritanceStrategy,this.environmentInjector),xo({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),xo(s=>{const l=new zse(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l)}))}),AE(a=>{const s=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(xo(u=>{l.component=u}),R(()=>{})));for(const u of l.children)c.push(...s(u));return c};return t9(s(a.targetSnapshot.root)).pipe(Ny(),xg(1))}),AE(()=>this.afterPreactivation()),R(a=>{const s=function ele(n,t,e){const r=Hy(n,t._root,e?e._root:void 0);return new A9(r,t)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:s}}),xo(a=>{e.currentUrlTree=a.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),e.routerState=a.targetRouterState,"deferred"===e.urlUpdateStrategy&&(a.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,a),e.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>R(r=>(new ule(t,r.targetRouterState,r.currentRouterState,e).activate(n),r)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),xo({next:a=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Sg(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{i=!0}}),$f(()=>{i||o||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),_h(a=>{if(o=!0,F9(a)){L9(a)||(e.navigated=!0,e.restoreHistory(r,!0));const s=new NM(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),L9(a)){const l=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),c={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||rU(r.source)};e.scheduleNavigation(l,zy,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{e.restoreHistory(r,!0);const s=new O9(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);this.events.next(s);try{r.resolve(e.errorHandler(a))}catch(l){r.reject(l)}}return Jn}))}))}cancelNavigationTransition(e,r,i){const o=new NM(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function rU(n){return n!==zy}let iU=(()=>{class n{buildTitle(e){let r,i=e.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===$n);return r}getResolvedTitleForRoute(e){return e.data[Ly]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:function(){return Lt(rce)},providedIn:"root"}),n})(),rce=(()=>{class n extends iU{constructor(e){super(),this.title=e}updateTitle(e){const r=this.buildTitle(e);void 0!==r&&this.title.setTitle(r)}}return n.\u0275fac=function(e){return new(e||n)(Pe(R$))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),IE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:function(){return Lt(oce)},providedIn:"root"}),n})();class ice{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}let oce=(()=>{class n extends ice{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=uo(n)))(r||n)}}(),n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const WM=new Ct("",{providedIn:"root",factory:()=>({})});let sce=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:function(){return Lt(lce)},providedIn:"root"}),n})(),lce=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cce(n){throw n}function uce(n,t,e){return t.parse("/")}const dce={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hce={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let al=(()=>{class n{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Lt(pre),this.isNgZoneEnabled=!1,this.options=Lt(WM,{optional:!0})||{},this.errorHandler=this.options.errorHandler||cce,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||uce,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Lt(sce),this.routeReuseStrategy=Lt(IE),this.urlCreationStrategy=Lt(Kse),this.titleStrategy=Lt(iU),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=c9(Lt(Uv,{optional:!0})??[]),this.navigationTransitions=Lt(GM),this.urlSerializer=Lt(By),this.location=Lt(PI),this.isNgZoneEnabled=Lt(Di)instanceof Di&&Di.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Mg,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=D9(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),zy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,r,e.state)},0)}))}navigateToSyncWithBrowser(e,r,i){const o={replaceUrl:!0},a=i?.navigationId?i:null;if(i){const l={...i};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(PE),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,r={}){const{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:a;let u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(i,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){const i=Og(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,zy,null,r)}navigate(e,r={skipLocationChange:!1}){return function fce(n){for(let t=0;t{const o=e[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c,u;return a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,p)=>{s=d,l=p}),u="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,r){const i=this.urlSerializer.serialize(e),o={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(e,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===i?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vv=(()=>{class n{constructor(e,r,i,o,a,s){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new D;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Sg&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=Av(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Av(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Av(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,r,i,o,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||r||i||o||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function tl(n,t,e){return function B4(n,t){return"src"===t&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===t&&("base"===n||"link"===n)?Kw:fa}(t,e)(n)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(ye(al),ye(Fv),function Bl(n){return function f_(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const r=e.length;let i=0;for(;i{class n{get isActive(){return this._isActive}constructor(e,r,i,o,a){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new _r,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof Sg&&this.update()})}ngAfterContentInit(){we(this.links.changes,we(null)).pipe(Pr()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=bi(e).pipe(Pr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){const r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const r=function pce(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>!!i.urlTree&&e.isActive(i.urlTree,r)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return n.\u0275fac=function(e){return new(e||n)(ye(al),ye(wr),ye(jn),ye(Mc),ye(Vv,8))},n.\u0275dir=Ht({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,r,i){if(1&e&&function $B(n,t,e,r){const i=Tn();if(i.firstCreatePass){const o=Qo();VB(i,new FB(t,e,r),o.index),function qne(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(i,n),2==(2&e)&&(i.staticContentQueries=!0)}UB(i,qe(),e)}(i,Vv,5),2&e){let o;Es(o=ks())&&(r.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[co]}),n})();class aU{}let gce=(()=>{class n{constructor(e,r,i,o,a){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Te(e=>e instanceof Sg),Bf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=Xx(o.providers,e,`Route: ${o.path}`));const a=o._injector??e,s=o._loadedInjector??a;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?i.push(this.preloadConfig(a,o)):(o.children||o._loadedRoutes)&&i.push(this.processRoutes(s,o.children??o._loadedRoutes))}return bi(i).pipe(Pr())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(e,r):we(null);const o=i.pipe(Ur(a=>null===a?we(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return r.loadComponent&&!r._loadedComponent?bi([o,this.loader.loadComponent(r)]).pipe(Pr()):o})}}return n.\u0275fac=function(e){return new(e||n)(Pe(al),Pe(d7),Pe(Vl),Pe(aU),Pe(DE))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const EE=new Ct("");let sU=(()=>{class n{constructor(e,r,i,o,a={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof mE?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Sg&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof S9&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new S9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return n.\u0275fac=function(e){!function Dx(){throw new Error("invalid")}()},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const zv=!1;function Tg(n,t){return{\u0275kind:n,\u0275providers:t}}const kE=new Ct("",{providedIn:"root",factory:()=>!1});function cU(){const n=Lt(fo);return t=>{const e=n.get(yg);if(t!==e.components[0])return;const r=n.get(al),i=n.get(uU);1===n.get(RE)&&r.initialNavigation(),n.get(dU,null,Bt.Optional)?.setUpPreloading(),n.get(EE,null,Bt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.unsubscribe())}}const uU=new Ct(zv?"bootstrap done indicator":"",{factory:()=>new D}),RE=new Ct(zv?"initial navigation":"",{providedIn:"root",factory:()=>1});function yce(){let n=[];return n=zv?[{provide:Cn,multi:!0,useFactory:()=>{const t=Lt(al);return()=>t.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function Yse(n){if(!("type"in n))return`Unknown Router Event: ${n.constructor.name}`;switch(n.type){case 14:return`ActivationEnd(path: '${n.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${n.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${n.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${n.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state}, shouldActivate: ${n.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 2:return`NavigationCancel(id: ${n.id}, url: '${n.url}')`;case 16:return`NavigationSkipped(id: ${n.id}, url: '${n.url}')`;case 1:return`NavigationEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${n.id}, url: '${n.url}', error: ${n.error})`;case 0:return`NavigationStart(id: ${n.id}, url: '${n.url}')`;case 6:return`ResolveEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 5:return`ResolveStart(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 10:return`RouteConfigLoadEnd(path: ${n.route.path})`;case 9:return`RouteConfigLoadStart(path: ${n.route.path})`;case 4:return`RoutesRecognized(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 15:return`Scroll(anchor: '${n.anchor}', position: '${n.position?`${n.position[0]}, ${n.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Tg(1,n)}const dU=new Ct(zv?"router preloader":"");function bce(n){return Tg(0,[{provide:dU,useExisting:gce},{provide:aU,useExisting:n}])}const Xy=!1,hU=new Ct(Xy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Cce=[PI,{provide:By,useClass:uE},al,jy,{provide:Fv,useFactory:function lU(n){return n.routerState.root},deps:[al]},DE,Xy?{provide:kE,useValue:!0}:[]];function wce(){return new _7("Router",al)}let ZM=(()=>{class n{constructor(e){}static forRoot(e,r){return{ngModule:n,providers:[Cce,Xy&&r?.enableTracing?yce().\u0275providers:[],{provide:Uv,multi:!0,useValue:e},{provide:hU,useFactory:Oce,deps:[[al,new rd,new Mf]]},{provide:WM,useValue:r||{}},r?.useHash?{provide:Cg,useClass:tie}:{provide:Cg,useClass:z7},{provide:EE,useFactory:()=>{const n=Lt(doe),t=Lt(Di),e=Lt(WM),r=Lt(GM),i=Lt(By);return e.scrollOffset&&n.setOffset(e.scrollOffset),new sU(i,r,n,t,e)}},r?.preloadingStrategy?bce(r.preloadingStrategy).\u0275providers:[],{provide:_7,multi:!0,useFactory:wce},r?.initialNavigation?Sce(r):[],[{provide:fU,useFactory:cU},{provide:u7,multi:!0,useExisting:fU}]]}}static forChild(e){return{ngModule:n,providers:[{provide:Uv,multi:!0,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)(Pe(hU,8))},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({imports:[xE]}),n})();function Oce(n){if(Xy&&n)throw new nt(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Sce(n){return["disabled"===n.initialNavigation?Tg(3,[{provide:eM,multi:!0,useFactory:()=>{const t=Lt(al);return()=>{t.setUpLocationChangeListener()}}},{provide:RE,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?Tg(2,[{provide:RE,useValue:0},{provide:eM,multi:!0,deps:[fo],useFactory:t=>{const e=t.get(Qre,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=t.get(al),a=t.get(uU);(function r(i){t.get(al).events.pipe(Te(a=>a instanceof Sg||a instanceof NM||a instanceof O9),R(a=>a instanceof Sg||a instanceof NM&&(0===a.code||1===a.code)&&null),Te(a=>null!==a),xg(1)).subscribe(()=>{i()})})(()=>{i(!0)}),t.get(GM).afterPreactivation=()=>(i(!0),a.closed?we(void 0):a),o.initialNavigation()}))}}]).\u0275providers:[]]}const fU=new Ct(Xy?"Router Initializer":""),xe={production:!0,version:"alpha",nftLiveVersion:!1,consensusUrl:"https://api.chain.storecloud.org/api",assetAPIBaseUrl:"https://api.asset.storecloud.org/api/",vmStatsAPIBaseUrl:"https://api.vm.stats.storecloud.org/api/",oracleAPIBaseUrl:"https://api.dev.oracle.storecloud.org",computePricingAPIBaseUrl:"https://api.compute.pricing.storecloud.org",storePriceUSD:.039,one$STOREEqualToOneByte:125e5,one$STOREEqualsToOneBit:1e8,platformFee:.025,wallet:{chainId:5,magicPublicKey:"pk_live_0F0FCC1A56E1C5DE",magicTestMode:!1,etherscanAPIKey:"3EKGS2TU4WXRTBHKB3DQNFX87GIWXE5IHN",etherscanAPI_URL:"https://api-goerli.etherscan.io/api",cloudflareEthAPIURL:"https://ether.storecloud.org/v1/goerli",ehterscanURL:"https://goerli.etherscan.io/"},ipfs:{main_url:"https://ipfs.storecloud.org",astore_url:"https://astore.storecloud.org",bstore_url:"https://bstore.storecloud.org",cstore_url:"https://cstore.storecloud.org",dstore_url:"https://dstore.storecloud.org",estore_url:"https://estore.storecloud.org"},baserow:{key:"kFZpXCdyw66xw9brps8gcpiVZDrsMWfB",oracleKey:"pzk1QGB6XMpHKDQudeA3ffiXABwhNqKk",tableURL:"https://api.baserow.io/api/database/rows/table/96260/?user_field_names=true"},contract:JSON.parse('{"address":"0x7276596B06e5208a477f89567c63949335B93C00","abi":[{"type":"constructor","payable":false,"inputs":[]},{"type":"event","anonymous":false,"name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"approved","indexed":true},{"type":"uint256","name":"tokenId","indexed":true}]},{"type":"event","anonymous":false,"name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"operator","indexed":true},{"type":"bool","name":"approved","indexed":false}]},{"type":"event","anonymous":false,"name":"MintedNFTSuccess","inputs":[{"type":"uint256","name":"tokenId","indexed":true},{"type":"address","name":"owner","indexed":false},{"type":"string","name":"storeId","indexed":false},{"type":"string","name":"cloud","indexed":false},{"type":"string","name":"cost","indexed":false}]},{"type":"event","anonymous":false,"name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"tokenId","indexed":true}]},{"type":"function","name":"approve","constant":false,"payable":false,"inputs":[{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"}],"outputs":[]},{"type":"function","name":"balanceOf","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"owner"}],"outputs":[{"type":"uint256"}]},{"type":"function","name":"getAllMintedNFTs","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"tuple[]","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"storeId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"getApproved","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"address"}]},{"type":"function","name":"getCurrentNFT","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint256"}]},{"type":"function","name":"getLatestIdToMintedNFT","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"tuple","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"storeId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"getListedMintedNFTForId","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"tuple","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"storeId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"getMyMintedNFTs","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"tuple[]","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"storeId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"isApprovedForAll","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"owner"},{"type":"address","name":"operator"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"mintNFT","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"string","name":"CLOUD"},{"type":"string","name":"COST"},{"type":"string","name":"STOREID"}],"outputs":[{"type":"uint256"}]},{"type":"function","name":"name","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"string"}]},{"type":"function","name":"ownerOf","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"address"}]},{"type":"function","name":"safeTransferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"}],"outputs":[]},{"type":"function","name":"safeTransferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"},{"type":"bytes","name":"data"}],"outputs":[]},{"type":"function","name":"setApprovalForAll","constant":false,"payable":false,"inputs":[{"type":"address","name":"operator"},{"type":"bool","name":"approved"}],"outputs":[]},{"type":"function","name":"supportsInterface","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"bytes4","name":"interfaceId"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"symbol","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"string"}]},{"type":"function","name":"tokenURI","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"string"}]},{"type":"function","name":"transferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"}],"outputs":[]}]}'),externalURL:{website:"https://storecloud.org/",explorer_app:"https://explorer.storecloud.org/",oracle_app:"https://test.oracle.storecloud.org/",developer_app:"https://test.developer.storecloud.org/",governor_app:"https://test.governor.storecloud.org/",cloud_app:"https://test.cloud.storecloud.org/",research:"https://storecloud.org/research",monetary:"https://storecloud.org/treasury",cloud:"https://storecloud.org/research/store-cloud",governance:"https://storecloud.org/governance",twitter:"https://twitter.com/thestorecloud",telegram:"https://t.me/thestorecloud",requestToBuy:"https://storecloud.org/buystore",protocolPlan:"https://docsend.com/view/hqcw598kjqt62azz",commingSoon:"https://storecloud.org/coming-soon",blog:"https://storecloud.org/blog",brand:"https://storecloud.org/brand",analytics_app:"https://poweredby.storecloud.org",memes:"https://storecloud.org/memes"},analyticsKeys:{cloud:"",developer:"",explorer:"18a0be5e-d179-4c50-95da-76a9e18bac75",governor:"",oracle:"",website:"a81bd636-c124-4125-94fa-92459ab421e4"}};function sl(n){return Xe((t,e)=>{Mn(n).subscribe(B(e,()=>e.complete(),qt)),!e.closed&&t.subscribe(e)})}const Dce=sf,Ece=Symbol("__destroy"),pU=Symbol("__decoratorApplied");function gU(n){return"string"==typeof n?Symbol(`__destroy__${n}`):Ece}function mU(n,t){n[t]||(n[t]=new D)}function vU(n,t){n[t]&&(n[t].next(),n[t].complete(),n[t]=null)}function _U(n){n instanceof Ke&&n.unsubscribe()}function yU(n,t){return function(){if(n&&n.call(this),vU(this,gU()),t.arrayName&&function Rce(n){Array.isArray(n)&&n.forEach(_U)}(this[t.arrayName]),t.checkProperties)for(const e in this)t.blackList?.includes(e)||_U(this[e])}}function en(n={}){return t=>{!function Ice(n){return!!n[Dce]}(t)?function Nce(n,t){n.prototype.ngOnDestroy=yU(n.prototype.ngOnDestroy,t)}(t,n):function Lce(n,t){const e=n.\u0275pipe;e.onDestroy=yU(e.onDestroy,t)}(t,n),function kce(n){n.prototype[pU]=!0}(t)}}const bU=7,CU=Symbol("CheckerHasBeenSet");function wU(n){const t=si.Zone;return t&&"function"==typeof t.root?.run?t.root.run(n):n()}const NE=!1;function Qe(n,t){return e=>{const r=gU(t);"string"==typeof t?function Uce(n,t,e){const r=n[t];if(NE&&"function"!=typeof r)throw new Error(`${n.constructor.name} is using untilDestroyed but doesn't implement ${t}`);mU(n,e),n[t]=function(){r.apply(this,arguments),vU(this,e),n[t]=r}}(n,t,r):(NE&&function Vce(n){const t=Object.getPrototypeOf(n);if(!(pU in t))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(n),mU(n,r));const i=n[r];return NE&&function Fce(n,t){n[CU]||function Bce(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process)}()||(wU(()=>bi(Promise.resolve()).pipe(Ur(()=>{let e;try{e=ha(n)}catch{e=null}const r=e?.lView;if(null==r)return Jn;const i=r[bU]||(r[bU]=[]),o=new D;return i.push(function(){wU(()=>{o.next(),o.complete()})}),o}),Ur(()=>Promise.resolve())).subscribe(()=>{(t.observed??t.observers.length>0)&&console.warn(function $ce(n){return`\n The ${n.constructor.name} still has subscriptions that haven't been unsubscribed.\n This may happen if the class extends another class decorated with @UntilDestroy().\n The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy().\n Let's look at the following example:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {}\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n }\n }\n The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy()\n on the ConcreteComponent, but not on the BaseDirective.\n One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {\n ngOnDestroy(): void {}\n }\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n super.ngOnDestroy();\n }\n }\n `}(n))})),n[CU]=!0)}(n,i),e.pipe(sl(i))}}var gd=De(489);class zce extends Ke{constructor(t,e){super()}schedule(t,e=0){return this}}const YM={setInterval(n,t,...e){const{delegate:r}=YM;return r?.setInterval?r.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=YM;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class xU extends zce{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var r;if(this.closed)return this;this.state=t;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,r=0){return YM.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,e,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&YM.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,r=!1;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Y(r,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}class Ky{constructor(t,e=Ky.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,r){return new this.schedulerActionCtor(this,t).schedule(r,e)}}Ky.now=iE.now;class MU extends Ky{constructor(t,e=Ky.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}}const Jy=new MU(xU),Hce=Jy;function PU(n,t){return t?e=>OM(t.pipe(xg(1),function jce(){return Xe((n,t)=>{n.subscribe(B(t,qt))})}()),e.pipe(PU(n))):Ur((e,r)=>Mn(n(e,r)).pipe(xg(1),s9(e)))}function LE(n=0,t,e=Hce){let r=-1;return null!=t&&(Al(t)?e=t:r=t),new F(i=>{let o=function Gce(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let a=0;return e.schedule(function(){i.closed||(i.next(a++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function ya(n,t=Jy){const e=LE(n,t);return PU(()=>e)}var FE=function(n,t){return(FE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])})(n,t)};function qn(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}FE(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var n,t,BE=12,Ag=BE+"px sans-serif",Qce=function Jce(n){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=a*e.length;else for(var l=0;l"u"&&typeof self<"u"?Dg.worker=!0:typeof navigator>"u"?(Dg.node=!0,Dg.svgSupported=!0):function pue(n,t){var e=t.browser,r=n.match(/Firefox\/([\d.]+)/),i=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),o=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);r&&(e.firefox=!0,e.version=r[1]),i&&(e.ie=!0,e.version=i[1]),o&&(e.edge=!0,e.version=o[1],e.newEdge=+o[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}(navigator.userAgent,Dg);const lr=Dg;var gue=".",Ig="___EC__COMPONENT__CONTAINER___",BU="___EC__EXTENDED_CLASS___";function _d(n){var t={main:"",sub:""};if(n){var e=n.split(gue);t.main=e[0]||"",t.sub=e[1]||""}return t}function GE(n,t){n.$constructor=n,n.extend=function(e){var i,r=this;return function _ue(n){return Zn(n)&&/^class\s/.test(Function.prototype.toString.call(n))}(r)?i=function(o){function a(){return o.apply(this,arguments)||this}return qn(a,o),a}(r):(i=function(){(e.$constructor||r).apply(this,arguments)},function iue(n,t){var e=n.prototype;function r(){}for(var i in r.prototype=t.prototype,n.prototype=new r,e)e.hasOwnProperty(i)&&(n.prototype[i]=e[i]);n.prototype.constructor=n,n.superClass=t}(i,this)),dt(i.prototype,e),i[BU]=!0,i.extend=this.extend,i.superCall=Cue,i.superApply=wue,i.superClass=r,i}}function $U(n,t){n.extend=t.extend}var yue=Math.round(10*Math.random());function Cue(n,t){for(var e=[],r=2;r=0||o&&Ii(o,l)<0)){var c=r.getShallow(l,t);null!=c&&(a[n[s][0]]=c)}}return a}}var Mue=nb([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Pue=function(){function n(){}return n.prototype.getAreaStyle=function(t,e){return Mue(this,t,e)},n}(),WE=function(n,t){return(WE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])})(n,t)};function ki(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}WE(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var HU=function n(t){this.value=t},Tue=function(){function n(){this._len=0}return n.prototype.insert=function(t){var e=new HU(t);return this.insertEntry(e),e},n.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.prototype.remove=function(t){var e=t.prev,r=t.next;e?e.next=r:this.head=r,r?r.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),Aue=function(){function n(t){this._list=new Tue,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,e){var r=this._list,i=this._map,o=null;if(null==i[t]){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new HU(e),s.key=t,r.insertEntry(s),i[t]=s}return o},n.prototype.get=function(t){var e=this._map[t],r=this._list;if(null!=e)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const rb=Aue;var qE=new rb(50);function Due(n){if("string"==typeof n){var t=qE.get(n);return t&&t.image}return n}function jU(n,t,e,r,i){if(n){if("string"==typeof n){if(t&&t.__zrImageSrc===n||!e)return t;var o=qE.get(n),a={hostEl:e,cb:r,cbPayload:i};return o?!oP(t=o.image)&&o.pending.push(a):((t=bh.loadImage(n,GU,GU)).__zrImageSrc=n,qE.put(n,t.__cachedImgObj={image:t,pending:[a]})),t}return n}return t}function GU(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tv&&(v=M,Dn.set(ob,_v&&(v=P,Dn.set(ob,0,b=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return 0===this.width||0===this.height},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},n.applyTransform=function(t,e,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],s=r[5];return t.x=e.x*i+r[4],t.y=e.y*o+s,t.width=e.width*i,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Eg.x=Rg.x=e.x,Eg.y=Ng.y=e.y,kg.x=Ng.x=e.x+e.width,kg.y=Rg.y=e.y+e.height,Eg.transform(r),Ng.transform(r),kg.transform(r),Rg.transform(r),t.x=aP(Eg.x,kg.x,Rg.x,Ng.x),t.y=aP(Eg.y,kg.y,Rg.y,Ng.y);var l=sP(Eg.x,kg.x,Rg.x,Ng.x),c=sP(Eg.y,kg.y,Rg.y,Ng.y);t.width=l-t.x,t.height=c-t.y}else t!==e&&n.copy(t,e)},n}();const ci=kue;var qU={};function Wl(n,t){var e=qU[t=t||Ag];e||(e=qU[t]=new rb(500));var r=e.get(n);return null==r&&(r=bh.measureText(n,t).width,e.put(n,r)),r}function ZU(n,t,e,r){var i=Wl(n,t),o=QE(t),a=ab(0,i,e),s=qv(0,o,r);return new ci(a,s,i,o)}function JE(n,t,e,r){var i=((n||"")+"").split("\n");if(1===i.length)return ZU(i[0],t,e,r);for(var a=new ci(0,0,0,0),s=0;s=0?parseFloat(n)/100*t:parseFloat(n):n}function YU(n,t,e){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=e.height,a=e.width,s=o/2,l=e.x,c=e.y,u="left",d="top";if(r instanceof Array)l+=zf(r[0],e.width),c+=zf(r[1],e.height),u=null,d=null;else switch(r){case"left":l-=i,c+=s,u="right",d="middle";break;case"right":l+=i+a,c+=s,d="middle";break;case"top":l+=a/2,c-=i,u="center",d="bottom";break;case"bottom":l+=a/2,c+=o+i,u="center";break;case"inside":l+=a/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=i,c+=s,d="middle";break;case"insideRight":l+=a-i,c+=s,u="right",d="middle";break;case"insideTop":l+=a/2,c+=i,u="center";break;case"insideBottom":l+=a/2,c+=o-i,u="center",d="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,u="right",d="bottom"}return(n=n||{}).x=l,n.y=c,n.align=u,n.verticalAlign=d,n}var e5=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Rue(n,t,e,r,i){if(!t)return"";var o=(n+"").split("\n");i=XU(t,e,r,i);for(var a=0,s=o.length;a=a;l++)s-=a;var c=Wl(e,t);return c>s&&(e="",c=0),s=n-c,i.ellipsis=e,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=n,i}function KU(n,t){var e=t.containerWidth,r=t.font,i=t.contentWidth;if(!e)return"";var o=Wl(n,r);if(o<=e)return n;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){n+=t.ellipsis;break}var s=0===a?Nue(n,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(n.length*i/o):0;o=Wl(n=n.substr(0,s),r)}return""===n&&(n=t.placeholder),n}function Nue(n,t,e,r){for(var i=0,o=0,a=n.length;o0&&v+r.accumWidth>r.width&&(u=t.split("\n"),c=!0),r.accumWidth=v}else{var _=QU(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=_.accumWidth+g,d=_.linesWidths,u=_.lines}}else u=t.split("\n");for(var y=0;y=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(n)||!!Vue[n]}function QU(n,t,e,r,i){for(var o=[],a=[],s="",l="",c=0,u=0,d=0;de:i+u+g>e)?u?(s||l)&&(v?(s||(s=l,l="",u=c=0),o.push(s),a.push(u-c),l+=p,s="",u=c+=g):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=p,u=g)):v?(o.push(l),a.push(c),l=p,c=g):(o.push(p),a.push(g)):(u+=g,v?(l+=p,c+=g):(l&&(s+=l,l="",c=0),s+=p))}else l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0}return!o.length&&!s&&(s=n,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=i),{accumWidth:u,lines:o,linesWidths:a}}function Zv(n,t){return null==n&&(n=0),null==t&&(t=0),[n,t]}function Hue(n){return[n[0],n[1]]}function eV(n,t,e){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n}function jue(n,t,e){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}function n5(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n}function r5(n,t){return Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1]))}var i5=r5,Yv=function Zue(n,t){return(n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])};function o5(n,t,e,r){return n[0]=t[0]+r*(e[0]-t[0]),n[1]=t[1]+r*(e[1]-t[1]),n}function Ac(n,t,e){var r=t[0],i=t[1];return n[0]=e[0]*r+e[2]*i+e[4],n[1]=e[1]*r+e[3]*i+e[5],n}function Xv(n,t,e){return n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n}function Kv(n,t,e){return n[0]=Math.max(t[0],e[0]),n[1]=Math.max(t[1],e[1]),n}var tV=ZE,nV=5e-5;function Lg(n){return n>nV||n<-nV}var Fg=[],Jv=[],a5=[1,0,0,1,0,0],s5=Math.abs,Yue=function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},n.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},n.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},n.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},n.prototype.needLocalTransform=function(){return Lg(this.rotation)||Lg(this.x)||Lg(this.y)||Lg(this.scaleX-1)||Lg(this.scaleY-1)||Lg(this.skewX)||Lg(this.skewY)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),r=this.transform;e||t?(r=r||[1,0,0,1,0,0],e?this.getLocalTransform(r):tV(r),t&&(e?Wv(r,t,r):function WU(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)):r&&tV(r)},n.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Fg);var r=Fg[0]<0?-1:1,i=Fg[1]<0?-1:1,o=((Fg[0]-r)*e+r)/Fg[0]||0,a=((Fg[1]-i)*e+i)/Fg[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],KE(this.invTransform,t)},n.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},n.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),e=Math.sqrt(e),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Wv(Jv,t.invTransform,e),e=Jv);var r=this.originX,i=this.originY;(r||i)&&(a5[4]=r,a5[5]=i,Wv(Jv,e,a5),Jv[4]-=r,Jv[5]-=i,e=Jv),this.setLocalTransform(e)}},n.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},n.prototype.transformCoordToLocal=function(t,e){var r=[t,e],i=this.invTransform;return i&&Ac(r,r,i),r},n.prototype.transformCoordToGlobal=function(t,e){var r=[t,e],i=this.transform;return i&&Ac(r,r,i),r},n.prototype.getLineScale=function(){var t=this.transform;return t&&s5(t[0]-1)>1e-10&&s5(t[3]-1)>1e-10?Math.sqrt(s5(t[0]*t[3]-t[2]*t[1])):1},n.prototype.copyTransform=function(t){!function Xue(n,t){for(var e=0;e-uP&&nuP||n<-uP}function sa(n,t,e,r,i){var o=1-i;return o*o*(o*n+3*i*t)+i*i*(i*r+3*o*e)}function sV(n,t,e,r,i){var o=1-i;return 3*(((t-n)*o+2*(e-t)*i)*o+(r-e)*i*i)}function hP(n,t,e,r,i,o){var a=r+3*(t-e)-n,s=3*(e-2*t+n),l=3*(t-n),c=n-i,u=s*s-3*a*l,d=s*l-9*a*c,p=l*l-3*s*c,g=0;if(jf(u)&&jf(d))jf(s)?o[0]=0:(v=-l/s)>=0&&v<=1&&(o[g++]=v);else{var _=d*d-4*u*p;if(jf(_)){var y=d/u,b=-y/2;(v=-s/a+y)>=0&&v<=1&&(o[g++]=v),b>=0&&b<=1&&(o[g++]=b)}else if(_>0){var w=Hf(_),M=u*s+1.5*a*(-d+w),P=u*s+1.5*a*(-d-w);(v=(-s-((M=M<0?-cP(-M,dP):cP(M,dP))+(P=P<0?-cP(-P,dP):cP(P,dP))))/(3*a))>=0&&v<=1&&(o[g++]=v)}else{var N=(2*u*s-3*a*d)/(2*Hf(u*u*u)),k=Math.acos(N)/3,z=Hf(u),U=Math.cos(k),v=(-s-2*z*U)/(3*a),W=(b=(-s+z*(U+oV*Math.sin(k)))/(3*a),(-s+z*(U-oV*Math.sin(k)))/(3*a));v>=0&&v<=1&&(o[g++]=v),b>=0&&b<=1&&(o[g++]=b),W>=0&&W<=1&&(o[g++]=W)}}return g}function lV(n,t,e,r,i){var o=6*e-12*t+6*n,a=9*t+3*r-3*n-9*e,s=3*t-3*n,l=0;if(jf(a))aV(o)&&(c=-s/o)>=0&&c<=1&&(i[l++]=c);else{var u=o*o-4*a*s;if(jf(u))i[0]=-o/(2*a);else if(u>0){var c,d=Hf(u),p=(-o-d)/(2*a);(c=(-o+d)/(2*a))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function fP(n,t,e,r,i,o){var a=(t-n)*i+n,s=(e-t)*i+t,l=(r-e)*i+e,c=(s-a)*i+a,u=(l-s)*i+s,d=(u-c)*i+c;o[0]=n,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=r}function Jue(n,t,e,r,i,o,a,s,l){for(var c=n,u=t,d=0,p=1/l,g=1;g<=l;g++){var v=g*p,_=sa(n,e,i,a,v),y=sa(t,r,o,s,v),b=_-c,w=y-u;d+=Math.sqrt(b*b+w*w),c=_,u=y}return d}function os(n,t,e,r){var i=1-r;return i*(i*n+2*r*t)+r*r*e}function cV(n,t,e,r){return 2*((1-r)*(t-n)+r*(e-t))}function uV(n,t,e){var r=n+e-2*t;return 0===r?.5:(n-t)/r}function pP(n,t,e,r,i){var o=(t-n)*r+n,a=(e-t)*r+t,s=(a-o)*r+o;i[0]=n,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=e}function tde(n,t,e,r,i,o,a){for(var s=n,l=t,c=0,u=1/a,d=1;d<=a;d++){var p=d*u,g=os(n,e,i,p),v=os(t,r,o,p),_=g-s,y=v-l;c+=Math.sqrt(_*_+y*y),s=g,l=v}return c}var nde=/cubic-bezier\(([0-9,\.e ]+)\)/;function dV(n){var t=n&&nde.exec(n);if(t){var e=t[1].split(","),r=+vd(e[0]),i=+vd(e[1]),o=+vd(e[2]),a=+vd(e[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:hP(0,r,o,1,l,s)&&sa(0,i,a,1,s[0])}}}var rde=function(){function n(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||cl,this.ondestroy=t.ondestroy||cl,this.onrestart=t.onrestart||cl,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var r=this._life,i=t-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),1===o){if(!this.loop)return!0;this._startTime=t-i%r,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Zn(t)?t:rV[t]||dV(t)},n}();const ide=rde;var hV={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Mu(n){return(n=Math.round(n))<0?0:n>255?255:n}function lb(n){return n<0?0:n>1?1:n}function c5(n){var t=n;return t.length&&"%"===t.charAt(t.length-1)?Mu(parseFloat(t)/100*255):Mu(parseInt(t,10))}function Bg(n){var t=n;return t.length&&"%"===t.charAt(t.length-1)?lb(parseFloat(t)/100):lb(parseFloat(t))}function u5(n,t,e){return e<0?e+=1:e>1&&(e-=1),6*e<1?n+(t-n)*e*6:2*e<1?t:3*e<2?n+(t-n)*(2/3-e)*6:n}function Gf(n,t,e){return n+(t-n)*e}function Ic(n,t,e,r,i){return n[0]=t,n[1]=e,n[2]=r,n[3]=i,n}function d5(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var fV=new rb(20),gP=null;function e0(n,t){gP&&d5(gP,t),gP=fV.put(n,gP||t.slice())}function Ec(n,t){if(n){t=t||[];var e=fV.get(n);if(e)return d5(t,e);var r=(n+="").replace(/ /g,"").toLowerCase();if(r in hV)return d5(t,hV[r]),e0(n,t),t;var o,i=r.length;if("#"===r.charAt(0))return 4===i||5===i?(o=parseInt(r.slice(1,4),16))>=0&&o<=4095?(Ic(t,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(r.slice(4),16)/15:1),e0(n,t),t):void Ic(t,0,0,0,1):7===i||9===i?(o=parseInt(r.slice(1,7),16))>=0&&o<=16777215?(Ic(t,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(r.slice(7),16)/255:1),e0(n,t),t):void Ic(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===i){var l=r.substr(0,a),c=r.substr(a+1,s-(a+1)).split(","),u=1;switch(l){case"rgba":if(4!==c.length)return 3===c.length?Ic(t,+c[0],+c[1],+c[2],1):Ic(t,0,0,0,1);u=Bg(c.pop());case"rgb":return c.length>=3?(Ic(t,c5(c[0]),c5(c[1]),c5(c[2]),3===c.length?u:Bg(c[3])),e0(n,t),t):void Ic(t,0,0,0,1);case"hsla":return 4!==c.length?void Ic(t,0,0,0,1):(c[3]=Bg(c[3]),h5(c,t),e0(n,t),t);case"hsl":return 3!==c.length?void Ic(t,0,0,0,1):(h5(c,t),e0(n,t),t);default:return}}Ic(t,0,0,0,1)}}function h5(n,t){var e=(parseFloat(n[0])%360+360)%360/360,r=Bg(n[1]),i=Bg(n[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return Ic(t=t||[],Mu(255*u5(a,o,e+1/3)),Mu(255*u5(a,o,e)),Mu(255*u5(a,o,e-1/3)),1),4===n.length&&(t[3]=n[3]),t}function pV(n,t){var e=Ec(n);if(e){for(var r=0;r<3;r++)e[r]=t<0?e[r]*(1-t)|0:(255-e[r])*t+e[r]|0,e[r]>255?e[r]=255:e[r]<0&&(e[r]=0);return $g(e,4===e.length?"rgba":"rgb")}}function $g(n,t){if(n&&n.length){var e=n[0]+","+n[1]+","+n[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(e+=","+n[3]),t+"("+e+")"}}function mP(n,t){var e=Ec(n);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}Math,lr.hasGlobalWindow&&Zn(window.btoa);var f5=Array.prototype.slice;function wh(n,t,e){return(t-n)*e+n}function p5(n,t,e,r){for(var i=t.length,o=0;or?t:n,o=Math.min(e,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)r.length=a;else for(var l=o;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,e,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=6,l=e;if(ll(e)){var c=function gde(n){return ll(n&&n[0])?2:1}(e);s=c,(1===c&&!Ei(e[0])||2===c&&!Ei(e[0][0]))&&(a=!0)}else if(Ei(e)&&!tP(e))s=0;else if(Qt(e))if(isNaN(+e)){var u=Ec(e);u&&(l=u,s=3)}else s=0;else if(eP(e)){var d=dt({},l);d.colorStops=yn(e.colorStops,function(g){return{offset:g.offset,color:Ec(g.color)}}),function ude(n){return"linear"===n.type}(e)?s=g5:function dde(n){return"radial"===n.type}(e)&&(s=m5),l=d}0===o?this.valType=s:(s!==this.valType||6===s)&&(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:e,percent:0};return r&&(p.easing=r,p.easingFunc=Zn(r)?r:rV[r]||dV(r)),i.push(p),p},n.prototype.prepare=function(t,e){var r=this.keyframes;this._needsSort&&r.sort(function(_,y){return _.time-y.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=xP(i),c=bV(i),u=0;u=0&&!(a[u].percent<=e);u--);u=p(u,s-2)}else{for(u=d;ue);u++);u=p(u-1,s-2)}v=a[u+1],g=a[u]}if(g&&v){this._lastFr=u,this._lastFrP=e;var y=v.percent-g.percent,b=0===y?1:p((e-g.percent)/y,1);v.easingFunc&&(b=v.easingFunc(b));var w=r?this._additiveValue:c?db:t[l];if((xP(o)||c)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=b<1?g.rawValue:v.rawValue;else if(xP(o))o===wP?p5(w,g[i],v[i],b):function hde(n,t,e,r){for(var i=t.length,o=i&&t[0].length,a=0;a0&&l.addKeyframe(0,yP(c),i),this._trackKeys.push(s)}l.addKeyframe(t,yP(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,r=0;r0)){this._started=1;for(var e=this,r=[],i=this._maxTime||0,o=0;o1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},n}();const v5=vde;var _de=function(){function n(t){t&&(this._$eventProcessor=t)}return n.prototype.on=function(t,e,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(i=r,r=e,e=null),!r||!t)return this;var a=this._$eventProcessor;null!=e&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),o[t]||(o[t]=[]);for(var s=0;s=0:r.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,w=void 0,M=void 0;_&&this.canBeInsideText()?(w=r.insideStroke,(null==(b=r.insideFill)||"auto"===b)&&(b=this.getInsideTextFill()),(null==w||"auto"===w)&&(w=this.getInsideTextStroke(b),M=!0)):(w=r.outsideStroke,(null==(b=r.outsideFill)||"auto"===b)&&(b=this.getOutsideFill()),(null==w||"auto"===w)&&(w=this.getOutsideStroke(b),M=!0)),((b=b||"#000")!==y.fill||w!==y.stroke||M!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=b,y.stroke=w,y.autoStroke=M,y.align=a,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=ql,l&&e.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?b5:y5},n.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),r="string"==typeof e&&Ec(e);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,$g(r,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},dt(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(pn(t))for(var i=oo(t),o=0;o0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(C5,!1,t)},n.prototype.useState=function(t,e,r,i){var o=t===C5;if(this.hasState()||!o){var s=this.currentStates,l=this.stateTransition;if(!(Ii(s,t)>=0)||!e&&1!==s.length){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!o)return void VE("State "+t+" not exists.");o||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,e,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,p=this._textGuide;return d&&d.useState(t,e,r,u),p&&p.useState(t,e,r,u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ql),c}}},n.prototype.useStates=function(t,e,r){if(t.length){var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s)for(var l=0;l0,v);var _=this._textContent,y=this._textGuide;_&&_.useStates(t,e,p),y&&y.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ql)}else this.clearStates()},n.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(e,1),this.useStates(r)}},n.prototype.replaceState=function(t,e,r){var i=this.currentStates.slice(),o=Ii(i,t),a=Ii(i,e)>=0;o>=0?a?i.splice(o,1):i[o]=e:r&&!a&&i.push(e),this.useStates(i)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var r,e={},i=0;i=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var r=this.animators,i=r.length,o=[],a=0;a0&&e.during&&o[0].during(function(v,_){e.during(_)});for(var p=0;p0||i.force&&!a.length){var N,U=void 0,W=void 0,X=void 0;if(s)for(W={},p&&(U={}),P=0;P1e-4)return s[0]=n-e,s[1]=t-r,l[0]=n+e,void(l[1]=t+r);if(OP[0]=D5(i)*e+n,OP[1]=A5(i)*r+t,SP[0]=D5(o)*e+n,SP[1]=A5(o)*r+t,c(s,OP,SP),u(l,OP,SP),(i%=Vg)<0&&(i+=Vg),(o%=Vg)<0&&(o+=Vg),i>o&&!a?o+=Vg:ii&&(TP[0]=D5(g)*e+n,TP[1]=A5(g)*r+t,c(s,TP,s),u(l,TP,l))}var ui={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zg=[],Hg=[],Cd=[],Wf=[],wd=[],xd=[],I5=Math.min,E5=Math.max,jg=Math.cos,Gg=Math.sin,xh=Math.abs,k5=Math.PI,qf=2*k5,R5=typeof Float32Array<"u",pb=[];function N5(n){return Math.round(n/k5*1e8)/1e8%2*k5}var kde=function(){function n(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(t,e,r){(r=r||0)>0&&(this._ux=xh(r/MP/t)||0,this._uy=xh(r/MP/e)||0)},n.prototype.setDPR=function(t){this.dpr=t},n.prototype.setContext=function(t){this._ctx=t},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ui.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},n.prototype.lineTo=function(t,e){var r=xh(t-this._xi),i=xh(e-this._yi),o=r>this._ux||i>this._uy;if(this.addData(ui.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(t,e,r,i,o,a){return this._drawPendingPt(),this.addData(ui.C,t,e,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,e,r,i,o,a),this._xi=o,this._yi=a,this},n.prototype.quadraticCurveTo=function(t,e,r,i){return this._drawPendingPt(),this.addData(ui.Q,t,e,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,r,i),this._xi=r,this._yi=i,this},n.prototype.arc=function(t,e,r,i,o,a){return this._drawPendingPt(),pb[0]=i,pb[1]=o,function Ede(n,t){var e=N5(n[0]);e<0&&(e+=qf);var i=n[1];i+=e-n[0],!t&&i-e>=qf?i=e+qf:t&&e-i>=qf?i=e-qf:!t&&e>i?i=e+(qf-N5(e-i)):t&&eu.length&&(this._expandData(),u=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},n.prototype.getBoundingRect=function(){Cd[0]=Cd[1]=wd[0]=wd[1]=Number.MAX_VALUE,Wf[0]=Wf[1]=xd[0]=xd[1]=-Number.MAX_VALUE;var a,t=this.data,e=0,r=0,i=0,o=0;for(a=0;ar||xh(M)>i||p===e-1)&&(_=Math.sqrt(w*w+M*M),o=y,a=b);break;case ui.C:var P=t[p++],N=t[p++],b=(y=t[p++],t[p++]),k=t[p++],z=t[p++];_=Jue(o,a,P,N,y,b,k,z,10),o=k,a=z;break;case ui.Q:_=tde(o,a,P=t[p++],N=t[p++],y=t[p++],b=t[p++],10),o=y,a=b;break;case ui.A:var U=t[p++],W=t[p++],X=t[p++],J=t[p++],ne=t[p++],ce=t[p++],Me=ce+ne;p+=1,p++,v&&(s=jg(ne)*X+U,l=Gg(ne)*J+W),_=E5(X,J)*I5(qf,Math.abs(ce)),o=jg(Me)*X+U,a=Gg(Me)*J+W;break;case ui.R:s=o=t[p++],l=a=t[p++],_=2*t[p++]+2*t[p++];break;case ui.Z:var w=s-o;M=l-a,_=Math.sqrt(w*w+M*M),o=s,a=l}_>=0&&(c[d++]=_,u+=_)}return this._pathLen=u,u},n.prototype.rebuildPath=function(t,e){var s,l,c,u,d,p,v,w,P,N,r=this.data,i=this._ux,o=this._uy,a=this._len,g=e<1,y=0,b=0,M=0;if(!g||(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,w=e*this._pathLen))e:for(var k=0;k0&&(t.lineTo(P,N),M=0),z){case ui.M:s=c=r[k++],l=u=r[k++],t.moveTo(c,u);break;case ui.L:d=r[k++],p=r[k++];var W=xh(d-c),X=xh(p-u);if(W>i||X>o){if(g){if(y+(J=v[b++])>w){t.lineTo(c*(1-(ne=(w-y)/J))+d*ne,u*(1-ne)+p*ne);break e}y+=J}t.lineTo(d,p),c=d,u=p,M=0}else{var ce=W*W+X*X;ce>M&&(P=d,N=p,M=ce)}break;case ui.C:var Me=r[k++],Fe=r[k++],Ne=r[k++],bt=r[k++],ue=r[k++],_e=r[k++];if(g){if(y+(J=v[b++])>w){fP(c,Me,Ne,ue,ne=(w-y)/J,zg),fP(u,Fe,bt,_e,ne,Hg),t.bezierCurveTo(zg[1],Hg[1],zg[2],Hg[2],zg[3],Hg[3]);break e}y+=J}t.bezierCurveTo(Me,Fe,Ne,bt,ue,_e),c=ue,u=_e;break;case ui.Q:if(Me=r[k++],Fe=r[k++],Ne=r[k++],bt=r[k++],g){if(y+(J=v[b++])>w){pP(c,Me,Ne,ne=(w-y)/J,zg),pP(u,Fe,bt,ne,Hg),t.quadraticCurveTo(zg[1],Hg[1],zg[2],Hg[2]);break e}y+=J}t.quadraticCurveTo(Me,Fe,Ne,bt),c=Ne,u=bt;break;case ui.A:var Ae=r[k++],et=r[k++],Ze=r[k++],at=r[k++],Tt=r[k++],mn=r[k++],kn=r[k++],di=!r[k++],hi=Ze>at?Ze:at,Zi=xh(Ze-at)>.001,qr=Tt+mn,tn=!1;if(g&&(y+(J=v[b++])>w&&(qr=Tt+mn*(w-y)/J,tn=!0),y+=J),Zi&&t.ellipse?t.ellipse(Ae,et,Ze,at,kn,Tt,qr,di):t.arc(Ae,et,hi,Tt,qr,di),tn)break e;U&&(s=jg(Tt)*Ze+Ae,l=Gg(Tt)*at+et),c=jg(qr)*Ze+Ae,u=Gg(qr)*at+et;break;case ui.R:s=c=r[k],l=u=r[k+1],d=r[k++],p=r[k++];var Nn=r[k++],wa=r[k++];if(g){if(y+(J=v[b++])>w){var eo=w-y;t.moveTo(d,p),t.lineTo(d+I5(eo,Nn),p),(eo-=Nn)>0&&t.lineTo(d+Nn,p+I5(eo,wa)),(eo-=wa)>0&&t.lineTo(d+E5(Nn-eo,0),p+wa),(eo-=Nn)>0&&t.lineTo(d,p+E5(wa-eo,0));break e}y+=J}t.rect(d,p,Nn,wa);break;case ui.Z:if(g){var J;if(y+(J=v[b++])>w){var ne;t.lineTo(c*(1-(ne=(w-y)/J))+s*ne,u*(1-ne)+l*ne);break e}y+=J}t.closePath(),c=s,u=l}}},n.prototype.clone=function(){var t=new n,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},n.CMD=ui,n.initDefaultProps=function(){var t=n.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),n}();const Zf=kde;function r0(n,t,e,r,i,o,a){if(0===i)return!1;var l,s=i;if(a>t+s&&a>r+s||an+s&&o>e+s||ot+d&&u>r+d&&u>o+d&&u>s+d||un+d&&c>e+d&&c>i+d&&c>a+d||c=0&&yt+c&&l>r+c&&l>o+c||ln+c&&s>e+c&&s>i+c||s=0&&ge||u+ci&&(i+=gb);var p=Math.atan2(l,s);return p<0&&(p+=gb),p>=r&&p<=i||p+gb>=r&&p+gb<=i}function Wg(n,t,e,r,i,o){if(o>t&&o>r||oi?s:0}var Yf=Zf.CMD,qg=2*Math.PI,Fde=1e-4,Ls=[-1,-1,-1],kc=[-1,-1];function $de(){var n=kc[0];kc[0]=kc[1],kc[1]=n}function Ude(n,t,e,r,i,o,a,s,l,c){if(c>t&&c>r&&c>o&&c>s||c1&&$de(),g=sa(t,r,o,s,kc[0]),p>1&&(v=sa(t,r,o,s,kc[1]))),d+=2===p?yt&&s>r&&s>o||s=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(jf(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,d=Hf(u),p=(-a-d)/(2*o);(c=(-a+d)/(2*o))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}(t,r,o,s,Ls);if(0===l)return 0;var c=uV(t,r,o);if(c>=0&&c<=1){for(var u=0,d=os(t,r,o,c),p=0;pe||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Ls[0]=-l,Ls[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=qg-1e-4){r=0,i=qg;var u=o?1:-1;return a>=Ls[0]+n&&a<=Ls[1]+n?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=qg,i+=qg);for(var p=0,g=0;g<2;g++){var v=Ls[g];if(v+n>a){var _=Math.atan2(s,v);u=o?1:-1,_<0&&(_=qg+_),(_>=r&&_<=i||_+qg>=r&&_+qg<=i)&&(_>Math.PI/2&&_<1.5*Math.PI&&(u=-u),p+=u)}}return p}function AV(n,t,e,r,i){for(var p,g,o=n.data,a=n.len(),s=0,l=0,c=0,u=0,d=0,v=0;v1&&(e||(s+=Wg(l,c,u,d,r,i))),y&&(u=l=o[v],d=c=o[v+1]),_){case Yf.M:l=u=o[v++],c=d=o[v++];break;case Yf.L:if(e){if(r0(l,c,o[v],o[v+1],t,r,i))return!0}else s+=Wg(l,c,o[v],o[v+1],r,i)||0;l=o[v++],c=o[v++];break;case Yf.C:if(e){if(Rde(l,c,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=Ude(l,c,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],c=o[v++];break;case Yf.Q:if(e){if(Nde(l,c,o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=Vde(l,c,o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],c=o[v++];break;case Yf.A:var b=o[v++],w=o[v++],M=o[v++],P=o[v++],N=o[v++],k=o[v++];v+=1;var z=!!(1-o[v++]);p=Math.cos(N)*M+b,g=Math.sin(N)*P+w,y?(u=p,d=g):s+=Wg(l,c,p,g,r,i);var U=(r-b)*P/M+b;if(e){if(Lde(b,w,P,N,N+k,z,t,U,i))return!0}else s+=zde(b,w,P,N,N+k,z,U,i);l=Math.cos(N+k)*M+b,c=Math.sin(N+k)*P+w;break;case Yf.R:if(u=l=o[v++],d=c=o[v++],p=u+o[v++],g=d+o[v++],e){if(r0(u,d,p,d,t,r,i)||r0(p,d,p,g,t,r,i)||r0(p,g,u,g,t,r,i)||r0(u,g,u,d,t,r,i))return!0}else s+=Wg(p,d,p,g,r,i),s+=Wg(u,g,u,d,r,i);break;case Yf.Z:if(e){if(r0(l,c,u,d,t,r,i))return!0}else s+=Wg(l,c,u,d,r,i);l=u,c=d}}return!e&&!function Bde(n,t){return Math.abs(n-t).5?y5:r>.2?"#eee":b5}if(e)return b5}return y5},t.prototype.getInsideTextStroke=function(e){var r=this.style.fill;if(Qt(r)){var i=this.__zr;if(!(!i||!i.isDarkMode())==mP(e,0)<.4)return r}},t.prototype.buildPath=function(e,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=~t0},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Zf(!1)},t.prototype.hasStroke=function(){var e=this.style,r=e.stroke;return!(null==r||"none"===r||!(e.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style.fill;return null!=r&&"none"!==r},t.prototype.getBoundingRect=function(){var e=this._rect,r=this.style,i=!e;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&t0)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),e=a.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;this.hasFill()||(c=Math.max(c,this.strokeContainThreshold??4)),l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return e},t.prototype.contain=function(e,r){var i=this.transformCoordToLocal(e,r),o=this.getBoundingRect(),a=this.style;if(o.contain(e=i[0],r=i[1])){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,c=a.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),function jde(n,t,e,r){return AV(n,t,!0,e,r)}(s,l/c,e,r)))return!0}if(this.hasFill())return function Hde(n,t,e){return AV(n,0,!1,t,e)}(s,e,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=t0,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,r){"shape"===e?this.setShape(r):n.prototype.attrKV.call(this,e,r)},t.prototype.setShape=function(e,r){var i=this.shape;return i||(i=this.shape={}),"string"==typeof e?i[e]=r:dt(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&t0)},t.prototype.createStyle=function(e){return nP(DV,e)},t.prototype._innerSaveToNormal=function(e){n.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.shape&&!r.shape&&(r.shape=dt({},this.shape))},t.prototype._applyStateObj=function(e,r,i,o,a,s){n.prototype._applyStateObj.call(this,e,r,i,o,a,s);var c,l=!(r&&o);if(r&&r.shape?a?o?c=r.shape:(c=dt({},i.shape),dt(c,r.shape)):(c=dt({},o?this.shape:i.shape),dt(c,r.shape)):l&&(c=i.shape),c)if(a){this.shape=dt({},this.shape);for(var u={},d=oo(c),p=0;p0},t.prototype.hasFill=function(){var r=this.style.fill;return null!=r&&"none"!==r},t.prototype.createStyle=function(e){return nP(qde,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var r=e.text;null!=r?r+="":r="";var i=JE(r,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var o=e.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(fb);IV.prototype.type="tspan";const F5=IV;var Zde=li({x:0,y:0},Ug),Yde={style:li({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},PP.style)},EV=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ki(t,n),t.prototype.createStyle=function(e){return nP(Zde,e)},t.prototype._getSize=function(e){var r=this.style,i=r[e];if(null!=i)return i;var o=function Xde(n){return!!(n&&"string"!=typeof n&&n.width&&n.height)}(r.image)?r.image:this.__image;if(!o)return 0;var a="width"===e?"height":"width",s=r[a];return null==s?o[e]:o[e]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Yde},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ci(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(fb);EV.prototype.type="image";const Zg=EV;var o0=Math.round;function kV(n,t,e){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;n.x1=r,n.x2=i,n.y1=o,n.y2=a;var s=e&&e.lineWidth;return s&&(o0(2*r)===o0(2*i)&&(n.x1=n.x2=Yg(r,s,!0)),o0(2*o)===o0(2*a)&&(n.y1=n.y2=Yg(o,s,!0))),n}}function RV(n,t,e){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;n.x=r,n.y=i,n.width=o,n.height=a;var s=e&&e.lineWidth;return s&&(n.x=Yg(r,s,!0),n.y=Yg(i,s,!0),n.width=Math.max(Yg(r+o,s,!1)-n.x,0===o?0:1),n.height=Math.max(Yg(i+a,s,!1)-n.y,0===a?0:1)),n}}function Yg(n,t,e){if(!t)return n;var r=o0(2*n);return(r+o0(t))%2==0?r/2:(r+(e?1:-1))/2}var Jde=function n(){this.x=0,this.y=0,this.width=0,this.height=0},Qde={},NV=function(n){function t(e){return n.call(this,e)||this}return ki(t,n),t.prototype.getDefaultShape=function(){return new Jde},t.prototype.buildPath=function(e,r){var i,o,a,s;if(this.subPixelOptimize){var l=RV(Qde,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?function Kde(n,t){var s,l,c,u,d,e=t.x,r=t.y,i=t.width,o=t.height,a=t.r;i<0&&(e+=i,i=-i),o<0&&(r+=o,o=-o),"number"==typeof a?s=l=c=u=a:a instanceof Array?1===a.length?s=l=c=u=a[0]:2===a.length?(s=c=a[0],l=u=a[1]):3===a.length?(s=a[0],l=u=a[1],c=a[2]):(s=a[0],l=a[1],c=a[2],u=a[3]):s=l=c=u=0,s+l>i&&(s*=i/(d=s+l),l*=i/d),c+u>i&&(c*=i/(d=c+u),u*=i/d),l+c>o&&(l*=o/(d=l+c),c*=o/d),s+u>o&&(s*=o/(d=s+u),u*=o/d),n.moveTo(e+s,r),n.lineTo(e+i-l,r),0!==l&&n.arc(e+i-l,r+l,l,-Math.PI/2,0),n.lineTo(e+i,r+o-c),0!==c&&n.arc(e+i-c,r+o-c,c,0,Math.PI/2),n.lineTo(e+u,r+o),0!==u&&n.arc(e+u,r+o-u,u,Math.PI/2,Math.PI),n.lineTo(e,r+s),0!==s&&n.arc(e+s,r+s,s,Math.PI,1.5*Math.PI)}(e,r):e.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Li);NV.prototype.type="rect";const ka=NV;var LV={fill:"#000"},ehe={style:li({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},PP.style)},BV=function(n){function t(e){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=LV,r.attr(e),r}return ki(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;eg&&c){var v=Math.floor(g/s);d=d.slice(0,v)}if(n&&o&&null!=u)for(var _=XU(u,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y=0;y0,ne=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),ce=a.calculatedLineHeight,Me=0;Mes&&t5(e,n.substring(s,c),t,a),t5(e,l[2],t,a,l[1]),s=e5.lastIndex}si){N>0?(w.tokens=w.tokens.slice(0,N),y(w,P,M),e.lines=e.lines.slice(0,b+1)):e.lines=e.lines.slice(0,b);break e}var ne=z.width,ce=null==ne||"auto"===ne;if("string"==typeof ne&&"%"===ne.charAt(ne.length-1))k.percentWidth=ne,u.push(k),k.contentWidth=Wl(k.text,X);else{if(ce){var Me=z.backgroundColor,Fe=Me&&Me.image;Fe&&oP(Fe=Due(Fe))&&(k.width=Math.max(k.width,Fe.width*J/Fe.height))}var Ne=v&&null!=r?r-P:null;null!=Ne&&Ne=0&&"right"===(Me=k[ce]).align;)this._placeToken(Me,e,U,b,ne,"right",M),W-=Me.width,ne-=Me.width,ce--;for(J+=(o-(J-y)-(w-ne)-W)/2;X<=ce;)this._placeToken(Me=k[X],e,U,b,J+Me.width/2,"center",M),J+=Me.width,X++;b+=U}},t.prototype._placeToken=function(e,r,i,o,a,s,l){var c=r.rich[e.styleName]||{};c.text=e.text;var u=e.verticalAlign,d=o+i/2;"top"===u?d=o+e.height/2:"bottom"===u&&(d=o+i-e.height/2),!e.isLineHolder&&B5(c)&&this._renderBackground(c,r,"right"===s?a-e.width:"center"===s?a-e.width/2:a,d-e.height/2,e.width,e.height);var g=!!c.backgroundColor,v=e.textPadding;v&&(a=jV(a,s,v),d-=e.height/2-v[0]-e.innerHeight/2);var _=this._getOrCreateChild(F5),y=_.createStyle();_.useStyle(y);var b=this._defaultStyle,w=!1,M=0,P=HV("fill"in c?c.fill:"fill"in r?r.fill:(w=!0,b.fill)),N=zV("stroke"in c?c.stroke:"stroke"in r?r.stroke:g||l||b.autoStroke&&!w?null:(M=2,b.stroke)),k=c.textShadowBlur>0||r.textShadowBlur>0;y.text=e.text,y.x=a,y.y=d,k&&(y.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,y.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",y.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,y.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=e.font||Ag,y.opacity=eb(c.opacity,r.opacity,1),UV(y,c),N&&(y.lineWidth=eb(c.lineWidth,r.lineWidth,M),y.lineDash=Tr(c.lineDash,r.lineDash),y.lineDashOffset=r.lineDashOffset||0,y.stroke=N),P&&(y.fill=P);var z=e.contentWidth,U=e.contentHeight;_.setBoundingRect(new ci(ab(y.x,z,y.textAlign),qv(y.y,U,y.textBaseline),z,U))},t.prototype._renderBackground=function(e,r,i,o,a,s){var _,y,w,l=e.backgroundColor,c=e.borderWidth,u=e.borderColor,d=l&&l.image,p=l&&!d,g=e.borderRadius,v=this;if(p||e.lineHeight||c&&u){(_=this._getOrCreateChild(ka)).useStyle(_.createStyle()),_.style.fill=null;var b=_.shape;b.x=i,b.y=o,b.width=a,b.height=s,b.r=g,_.dirtyShape()}if(p)(w=_.style).fill=l||null,w.fillOpacity=Tr(e.fillOpacity,1);else if(d){(y=this._getOrCreateChild(Zg)).onload=function(){v.dirtyStyle()};var M=y.style;M.image=l.image,M.x=i,M.y=o,M.width=a,M.height=s}c&&u&&((w=_.style).lineWidth=c,w.stroke=u,w.strokeOpacity=Tr(e.strokeOpacity,1),w.lineDash=e.borderDash,w.lineDashOffset=e.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2));var P=(_||y).style;P.shadowBlur=e.shadowBlur||0,P.shadowColor=e.shadowColor||"transparent",P.shadowOffsetX=e.shadowOffsetX||0,P.shadowOffsetY=e.shadowOffsetY||0,P.opacity=eb(e.opacity,r.opacity,1)},t.makeFont=function(e){var r="";return function ihe(n){return null!=n.fontSize||n.fontFamily||n.fontWeight}(e)&&(r=[e.fontStyle,e.fontWeight,rhe(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),r&&vd(r)||e.textFont||e.font},t}(fb),the={left:!0,right:1,center:1},nhe={top:1,bottom:1,middle:1},$V=["fontStyle","fontWeight","fontSize","fontFamily"];function rhe(n){return"string"!=typeof n||-1===n.indexOf("px")&&-1===n.indexOf("rem")&&-1===n.indexOf("em")?isNaN(+n)?BE+"px":n+"px":n}function UV(n,t){for(var e=0;e<$V.length;e++){var r=$V[e],i=t[r];null!=i&&(n[r]=i)}}function VV(n){if(n){n.font=BV.makeFont(n);var t=n.align;"middle"===t&&(t="center"),n.align=null==t||the[t]?t:"left";var e=n.verticalAlign;"center"===e&&(e="middle"),n.verticalAlign=null==e||nhe[e]?e:"top",n.padding&&(n.padding=RU(n.padding))}}function zV(n,t){return null==n||t<=0||"transparent"===n||"none"===n?null:n.image||n.colorStops?"#000":n}function HV(n){return null==n||"none"===n?null:n.image||n.colorStops?"#000":n}function jV(n,t,e){return"right"===t?n-e[1]:"center"===t?n+e[3]/2-e[1]/2:n+e[3]}function GV(n){var t=n.text;return null!=t&&(t+=""),t}function B5(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const as=BV;var WV=1e-4,qV=20;function $5(n,t,e,r){var i=t[0],o=t[1],a=e[0],s=e[1],l=o-i,c=s-a;if(0===l)return 0===c?a:(a+s)/2;if(r)if(l>0){if(n<=i)return a;if(n>=o)return s}else{if(n>=i)return a;if(n<=o)return s}else{if(n===i)return a;if(n===o)return s}return(n-i)/l*c+a}function ao(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%"}return Qt(n)?function ahe(n){return n.replace(/^\s+|\s+$/g,"")}(n).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):null==n?NaN:+n}function Go(n,t,e){return null==t&&(t=10),t=Math.min(Math.max(0,t),qV),n=(+n).toFixed(t),e?n:+n}function Mh(n){if(n=+n,isNaN(n))return 0;if(n>1e-14)for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(n*t)/t===n)return e;return function she(n){var t=n.toString().toLowerCase(),e=t.indexOf("e"),r=e>0?+t.slice(e+1):0,i=e>0?e:t.length,o=t.indexOf(".");return Math.max(0,(o<0?0:i-1-o)-r)}(n)}function che(n,t){var e=Math.max(Mh(n),Mh(t)),r=n+t;return e>qV?r:Go(r,e)}function YV(n){var t=2*Math.PI;return(n%t+t)%t}function DP(n){return n>-WV&&n=10&&t++,t}function XV(n,t){var e=U5(n),r=Math.pow(10,e),i=n/r;return n=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,e>=-20?+n.toFixed(e<0?-e:0):n}function Xf(n){var t=parseFloat(n);return t==n&&(0!==t||!Qt(n)||n.indexOf("x")<=0)?t:NaN}function KV(){return Math.round(9*Math.random())}function JV(n,t){return 0===t?n:JV(t,n%t)}function QV(n,t){return null==n?t:null==t?n:n*t/JV(n,t)}function ez(n,t,e){return(t-n)*e+n}var tz="series\0",nz="\0_ec_\0";function ss(n){return n instanceof Array?n:null==n?[]:[n]}function V5(n,t,e){if(n){n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{};for(var r=0,i=e.length;r=0,o=!1;if(n instanceof Li){var a=lz(n),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(a0(s)||a0(l)){var c=(r=r||{}).style||{};"inherit"===c.fill?(o=!0,r=dt({},r),(c=dt({},c)).fill=s):!a0(c.fill)&&a0(s)?(o=!0,r=dt({},r),(c=dt({},c)).fill=uz(s)):!a0(c.stroke)&&a0(l)&&(o||(r=dt({},r),c=dt({},c)),c.stroke=uz(l)),r.style=c}}return r&&null==r.z2&&(o||(r=dt({},r)),r.z2=n.z2+(n.z2EmphasisLift??The)),r}(this,0,t,e);if("blur"===n)return function Nhe(n,t,e){var r=Ii(n.currentStates,t)>=0,i=n.style.opacity,o=r?null:function Ehe(n,t,e,r){for(var i=n.style,o={},a=0;a0){var l={dataIndex:s,seriesIndex:e.seriesIndex};null!=a&&(l.dataType=a),t.push(l)}})}),t}function J5(n,t,e){Pz(n,!0),Oh(n,Lhe),function jhe(n,t,e){var r=qi(n);null!=t?(r.focus=t,r.blurScope=e):r.focus&&(r.focus=null)}(n,t,e)}function $P(n,t,e,r){r?function Hhe(n){Pz(n,!1)}(n):J5(n,t,e)}var Mz=["emphasis","blur","select"],Ghe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Q5(n,t,e,r){e=e||"itemStyle";for(var i=0;i1){var u=l.shift();1===l.length&&(r[s]=l[0]),this._update&&this._update(u,a)}else 1===c?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},n.prototype._executeMultiple=function(){var e=this._new,r={},i={},o=[],a=[];this._initIndexMap(this._old,r,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var s=0;s1&&1===p)this._updateManyToOne&&this._updateManyToOne(u,c),i[l]=null;else if(1===d&&p>1)this._updateOneToMany&&this._updateOneToMany(u,c),i[l]=null;else if(1===d&&1===p)this._update&&this._update(u,c),i[l]=null;else if(d>1&&p>1)this._updateManyToMany&&this._updateManyToMany(u,c),i[l]=null;else if(d>1)for(var g=0;g1)for(var s=0;s_&&(_=M)}g[0]=v,g[1]=_}},i=function(){return this._data?this._data.length/this._dimSize:0};function o(a){for(var s=0;si?-this._resultLT:0},n}(),qP="undefined",Sfe=typeof Uint32Array===qP?Array:Uint32Array,Tfe=typeof Uint16Array===qP?Array:Uint16Array,tH=typeof Int32Array===qP?Array:Int32Array,nH=typeof Float64Array===qP?Array:Float64Array,rH={float:nH,int:tH,ordinal:Array,number:Array,time:nH};function xb(n){return n>65535?Sfe:Tfe}function Afe(n){var t=n.constructor;return t===Array?n.slice():new t(n)}function iH(n,t,e,r,i){var o=rH[e||"float"];if(i){var a=n[t],s=a&&a.length;if(s!==r){for(var l=new o(r),c=0;cy[1]&&(y[1]=_)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(t,e,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=yn(a,function(w){return w.property}),u=0;ub[1]&&(b[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,r=e[t];if(null!=r&&rt))return a;o=a-1}}return-1},n.prototype.indicesOfNearest=function(t,e,r){var o=this._chunks[t],a=[];if(!o)return a;null==r&&(r=1/0);for(var s=1/0,l=-1,c=0,u=0,d=this.count();u=0&&l<0)&&(s=v,l=g,c=0),g===l&&(a[c++]=u))}return a.length=c,a},n.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=this._count;if((r=e.constructor)===Array){t=new r(i);for(var o=0;o=d&&w<=p||isNaN(w))&&(l[c++]=_),_++;v=!0}else if(2===o){y=g[i[0]];var M=g[i[1]],P=t[i[1]][0],N=t[i[1]][1];for(b=0;b=d&&w<=p||isNaN(w))&&(k>=P&&k<=N||isNaN(k))&&(l[c++]=_),_++}v=!0}}if(!v)if(1===o)for(b=0;b=d&&w<=p||isNaN(w))&&(l[c++]=z)}else for(b=0;bt[X][1])&&(U=!1)}U&&(l[c++]=e.getRawIndex(b))}return cb[1]&&(b[1]=y)}}},n.prototype.lttbDownSample=function(t,e){var u,d,p,r=this.clone([t],!0),o=r._chunks[t],a=this.count(),s=0,l=Math.floor(1/e),c=this.getRawIndex(0),g=new(xb(this._rawCount))(Math.min(2*(Math.ceil(a/l)+2),a));g[s++]=c;for(var v=1;vu&&(u=d,p=P)}J>0&&Ju-v&&(s.length=l=u-v);for(var _=0;_d[1]&&(d[1]=b),p[g++]=w}return o._count=g,o._indices=p,o._updateGetRawIdx(),o},n.prototype.each=function(t,e){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();ol&&(l=d)}return this._extent[t]=a=[s,l],a},n.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var r=[],i=this._chunks,o=0;o=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function t(e,r,i,o){return WP(e[o],this._dimensions[o])}fk={arrayRows:t,objectRows:function(e,r,i,o){return WP(e[r],this._dimensions[o])},keyedColumns:t,original:function(e,r,i,o){var a=e&&(null==e.value?e:e.value);return WP(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(e,r,i,o){return e[o]}}}(),n}();const pk=Dfe;var Ife=Wo(),Efe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},oH=function(){function n(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=lH(this.source)))},n.prototype.getSourceDimensionIndex=function(t){return Tr(this._dimNameMap.get(t),-1)},n.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},n.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=jz(this.source),r=!cH(t),i="",o=[],a=0,s=0;a30}var dH,ZP,Pb,Ob,gk,YP,mk,Mb=pn,Jf=yn,kfe=typeof Int32Array>"u"?Array:Int32Array,Nfe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Lfe=["_approximateExtent"],Ffe=function(){function n(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;aH(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,c={},u=0;u=e)){var i=this._store.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList;if(i.getSource().sourceFormat===Nc&&!i.pure)for(var c=[],u=t;u0},n.prototype.ensureUniqueItemVisual=function(t,e){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[e];return null==o&&(Ft(o=this.getVisual(e))?o=o.slice():Mb(o)&&(o=dt({},o)),i[e]=o),o},n.prototype.setItemVisual=function(t,e,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Mb(e)?dt(i,e):i[e]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,e){Mb(t)?dt(this._layout,t):this._layout[t]=e},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,e,r){this._itemLayouts[t]=r?dt(this._itemLayouts[t]||{},e):e},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,e){(function(n,t,e,r){if(r){var i=qi(r);i.dataIndex=e,i.dataType=t,i.seriesIndex=n,"group"===r.type&&r.traverse(function(o){var a=qi(o);a.seriesIndex=n,a.dataIndex=e,a.dataType=t})}})(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,e){he(this._graphicEls,function(r,i){r&&t&&t.call(e,r,i)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:Jf(this.dimensions,this._getDimInfo,this),this.hostModel)),gk(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,e){var r=this[t];Zn(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return e.apply(this,[i].concat(HE(arguments)))})},n.internalField=(dH=function(t){var e=t._invertedIndicesMap;he(e,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=e[i]=new kfe(a.categories.length);for(var l=0;l1&&(l+="__ec__"+u),i[e]=l}})),n}();const hH=Ffe;function vk(n,t){ak(n)||(n=lk(n));var e=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||n.dimensionsDefine||[],i=sr(),o=[],a=function $fe(n,t,e,r){var i=Math.max(n.dimensionsDetectedCount||1,t.length,e.length,r||0);return he(t,function(o){var a;pn(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}(n,e,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&cH(a),l=r===n.dimensionsDefine,c=l?lH(n):sH(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(n,a));for(var d=sr(u),p=new tH(a),g=0;g0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(o),new oH({source:n,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Ufe(n,t,e){if(e||t.hasKey(n)){for(var r=0;t.hasKey(n+r);)r++;n+=r}return t.set(n,!0),n}var _k={},Vfe=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(t,e){var r=[];he(_k,function(i,o){var a=i.create(t,e);r=r.concat(a||[])}),this._coordinateSystems=r},n.prototype.update=function(t,e){he(this._coordinateSystems,function(r){r.update&&r.update(t,e)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(t,e){_k[t]=e},n.get=function(t){return _k[t]},n}();const yk=Vfe;var zfe=function n(t){this.coordSysDims=[],this.axisMap=sr(),this.categoryAxisMap=sr(),this.coordSysName=t},jfe={cartesian2d:function(n,t,e,r){var i=n.getReferringComponents("xAxis",Ou).models[0],o=n.getReferringComponents("yAxis",Ou).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",o),u0(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),u0(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,e,r){var i=n.getReferringComponents("singleAxis",Ou).models[0];t.coordSysDims=["single"],e.set("single",i),u0(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(n,t,e,r){var i=n.getReferringComponents("polar",Ou).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",o),e.set("angle",a),u0(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),u0(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(n,t,e,r){t.coordSysDims=["lng","lat"]},parallel:function(n,t,e,r){var i=n.ecModel,o=i.getComponent("parallel",n.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();he(o.parallelAxisIndex,function(s,l){var c=i.getComponent("parallelAxis",s),u=a[l];e.set(u,c),u0(c)&&(r.set(u,c),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=l))})}};function u0(n){return"category"===n.get("type")}function Sb(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}const Qfe=function Xfe(n,t,e){e=e||{};var i,r=t.getSourceManager(),o=!1;n?(o=!0,i=lk(n)):o=(i=r.getSource()).sourceFormat===Nc;var a=function Hfe(n){var t=n.get("coordinateSystem"),e=new zfe(t),r=jfe[t];if(r)return r(n,e,e.axisMap,e.categoryAxisMap),e}(t),s=function Zfe(n,t){var i,e=n.get("coordinateSystem"),r=yk.get(e);return t&&t.coordSysDims&&(i=yn(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=function _fe(n){return"category"===n?"ordinal":"time"===n?"time":"float"}(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}(t,a),l=e.useEncodeDefaulter,c=Zn(l)?l:l?jo(sfe,s,t):null,d=vk(i,{coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o}),p=function Yfe(n,t,e){var r,i;return e&&he(n,function(o,a){var l=e.categoryAxisMap.get(o.coordDim);l&&(null==r&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),null!=o.otherDims.itemName&&(i=!0)}),!i&&null!=r&&(n[r].otherDims.itemName=0),r}(d.dimensions,e.createInvertedIndices,a),g=o?null:r.getSharedDataStore(d),v=function Gfe(n,t,e){var o,a,s,r=(e=e||{}).byIndex,i=e.stackedCoordDimension;!function Wfe(n){return!aH(n.schema)}(t)?(o=(a=t.schema).dimensions,s=t.store):o=t;var c,u,d,p,l=!(!n||!n.get("stack"));if(he(o,function(w,M){Qt(w)&&(o[M]=w={name:w}),l&&!w.isExtraCoord&&(!r&&!c&&w.ordinalMeta&&(c=w),!u&&"ordinal"!==w.type&&"time"!==w.type&&(!i||i===w.coordDim)&&(u=w))}),u&&!r&&!c&&(r=!0),u){d="__\0ecstackresult_"+n.id,p="__\0ecstackedover_"+n.id,c&&(c.createInvertedIndices=!0);var g=u.coordDim,v=u.type,_=0;he(o,function(w){w.coordDim===g&&_++});var y={name:d,coordDim:g,coordDimIndex:_,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},b={name:p,coordDim:p,coordDimIndex:_+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,v),b.storeDimIndex=s.ensureCalculationDimension(d,v)),a.appendCalculationDimension(y),a.appendCalculationDimension(b)):(o.push(y),o.push(b))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:p,stackResultDimension:d}}(t,{schema:d,store:g}),_=new hH(d,t);_.setCalculationInfo(v);var y=null!=p&&function Kfe(n){if(n.sourceFormat===Nc){var t=function Jfe(n){for(var t=0;t>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),n.appendChild(a),e.push(a)}return e}(t,o),s=function spe(n,t,e){for(var r=e?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=n[c].getBoundingClientRect(),d=2*c,p=u.left,g=u.top;a.push(p,g),l=l&&o&&p===o[d]&&g===o[d+1],s.push(n[c].offsetLeft,n[c].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=e?fH(s,a):fH(a,s))}(a,o,i);if(s)return s(n,e,r),!0}return!1}function gH(n){return"CANVAS"===n.nodeName.toUpperCase()}var lpe=/([&<>"'])/g,cpe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Lc(n){return null==n?"":(n+"").replace(lpe,function(t,e){return cpe[e]})}var KP="ZH",xk="EN",Tb=xk,JP={},Mk={},mH=lr.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(KP)>-1?KP:Tb;function vH(n,t){n=n.toUpperCase(),Mk[n]=new ls(t),JP[n]=t}vH(xk,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),vH(KP,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var Pk=1e3,Ok=60*Pk,Ab=60*Ok,Fc=24*Ab,_H=365*Fc,Db={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},QP="{yyyy}-{MM}-{dd}",yH={year:"{yyyy}",month:"{yyyy}-{MM}",day:QP,hour:QP+" "+Db.hour,minute:QP+" "+Db.minute,second:QP+" "+Db.second,millisecond:Db.none},Sk=["year","month","day","hour","minute","second","millisecond"],bH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function n1(n,t){return"0000".substr(0,t-(n+="").length)+n}function d0(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function gpe(n){return n===d0(n)}function eO(n,t,e,r){var i=Ph(n),o=i[Tk(e)](),a=i[h0(e)]()+1,s=Math.floor((a-1)/3)+1,l=i[tO(e)](),c=i["get"+(e?"UTC":"")+"Day"](),u=i[Ib(e)](),d=(u-1)%12+1,p=i[nO(e)](),g=i[rO(e)](),v=i[iO(e)](),_=r instanceof ls?r:function fpe(n){return Mk[n]}(r||mH)||function ppe(){return Mk[Tb]}(),y=_.getModel("time"),b=y.get("month"),w=y.get("monthAbbr"),M=y.get("dayOfWeek"),P=y.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[a-1]).replace(/{MMM}/g,w[a-1]).replace(/{MM}/g,n1(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,n1(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,M[c]).replace(/{ee}/g,P[c]).replace(/{e}/g,c+"").replace(/{HH}/g,n1(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,n1(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,n1(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,n1(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,n1(v,3)).replace(/{S}/g,v+"")}function CH(n,t){var e=Ph(n),r=e[h0(t)]()+1,i=e[tO(t)](),o=e[Ib(t)](),a=e[nO(t)](),s=e[rO(t)](),c=0===e[iO(t)](),u=c&&0===s,d=u&&0===a,p=d&&0===o,g=p&&1===i;return g&&1===r?"year":g?"month":p?"day":d?"hour":u?"minute":c?"second":"millisecond"}function wH(n,t,e){var r=Ei(n)?Ph(n):n;switch(t=t||CH(n,e)){case"year":return r[Tk(e)]();case"half-year":return r[h0(e)]()>=6?1:0;case"quarter":return Math.floor((r[h0(e)]()+1)/4);case"month":return r[h0(e)]();case"day":return r[tO(e)]();case"half-day":return r[Ib(e)]()/24;case"hour":return r[Ib(e)]();case"minute":return r[nO(e)]();case"second":return r[rO(e)]();case"millisecond":return r[iO(e)]()}}function Tk(n){return n?"getUTCFullYear":"getFullYear"}function h0(n){return n?"getUTCMonth":"getMonth"}function tO(n){return n?"getUTCDate":"getDate"}function Ib(n){return n?"getUTCHours":"getHours"}function nO(n){return n?"getUTCMinutes":"getMinutes"}function rO(n){return n?"getUTCSeconds":"getSeconds"}function iO(n){return n?"getUTCMilliseconds":"getMilliseconds"}function _pe(n){return n?"setUTCFullYear":"setFullYear"}function xH(n){return n?"setUTCMonth":"setMonth"}function MH(n){return n?"setUTCDate":"setDate"}function PH(n){return n?"setUTCHours":"setHours"}function OH(n){return n?"setUTCMinutes":"setMinutes"}function SH(n){return n?"setUTCSeconds":"setSeconds"}function TH(n){return n?"setUTCMilliseconds":"setMilliseconds"}function AH(n){if(!function hhe(n){return!isNaN(Xf(n))}(n))return Qt(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function DH(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(e,r){return r.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var oO=RU;function Ak(n,t,e){function i(u){return u&&vd(u)?u:"-"}function o(u){return!(null==u||isNaN(u)||!isFinite(u))}var a="time"===t,s=n instanceof Date;if(a||s){var l=a?Ph(n):n;if(!isNaN(+l))return eO(l,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",e);if(s)return"-"}if("ordinal"===t)return zE(n)?i(n):Ei(n)&&o(n)?n+"":"-";var c=Xf(n);return o(c)?AH(c):zE(n)?i(n):"boolean"==typeof n?n+"":"-"}var IH=["a","b","c","d","e","f","g"],Dk=function(n,t){return"{"+n+(t??"")+"}"};function EH(n,t,e){Ft(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;or||l.newline?(o=0,g=_,a+=s+e,s=u.height):s=Math.max(s,u.height)}else{var y=u.height+(p?-p.y+u.y:0);(v=a+y)>i||l.newline?(o+=s+e,a=0,v=y,s=u.width):s=Math.max(s,u.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===n?o=g+e:a=v+e)})}var Eb=Ik;function a1(n,t,e){e=oO(e||0);var r=t.width,i=t.height,o=ao(n.left,r),a=ao(n.top,i),s=ao(n.right,r),l=ao(n.bottom,i),c=ao(n.width,r),u=ao(n.height,i),d=e[2]+e[0],p=e[1]+e[3],g=n.aspect;switch(isNaN(c)&&(c=r-s-p-o),isNaN(u)&&(u=i-l-d-a),null!=g&&(isNaN(c)&&isNaN(u)&&(g>r/i?c=.8*r:u=.8*i),isNaN(c)&&(c=g*u),isNaN(u)&&(u=c/g)),isNaN(o)&&(o=r-s-c-p),isNaN(a)&&(a=i-l-u-d),n.left||n.right){case"center":o=r/2-c/2-e[3];break;case"right":o=r-c-p}switch(n.top||n.bottom){case"middle":case"center":a=i/2-u/2-e[0];break;case"bottom":a=i-u-d}o=o||0,a=a||0,isNaN(c)&&(c=r-p-o-(s||0)),isNaN(u)&&(u=i-d-a-(l||0));var v=new ci(o+e[3],a+e[0],c,u);return v.margin=e,v}function kb(n){var t=n.layoutMode||n.constructor.layoutMode;return pn(t)?t:t?{type:t}:null}function f0(n,t,e){var r=e&&e.ignoreSize;!Ft(r)&&(r=[r,r]);var i=a(o1[0],0),o=a(o1[1],1);function a(u,d){var p={},g=0,v={},_=0;if(aO(u,function(M){v[M]=n[M]}),aO(u,function(M){s(t,M)&&(p[M]=v[M]=t[M]),l(p,M)&&g++,l(v,M)&&_++}),r[d])return l(t,u[1])?v[u[2]]=null:l(t,u[2])&&(v[u[1]]=null),v;if(2===_||!g)return v;if(g>=2)return p;for(var b=0;b=0;l--)s=ei(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(e,r){var o=e+"Id";return yb(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((e=t.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",void(e.componentIndex=0)),t;var e}(ls);$U(p0,ls),rP(p0),function tpe(n){var t={};n.registerSubTypeDefaulter=function(e,r){var i=_d(e);t[i.main]=r},n.determineSubType=function(e,r){var i=r.type;if(!i){var o=_d(e).main;n.hasSubTypes(e)&&t[o]&&(i=t[o](r))}return i}}(p0),function npe(n,t){function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}n.topologicalTravel=function(o,a,s,l){if(o.length){var c=function e(o){var a={},s=[];return he(o,function(l){var c=r(a,l),d=function i(o,a){var s=[];return he(o,function(l){Ii(a,l)>=0&&s.push(l)}),s}(c.originalDeps=t(l),o);c.entryCount=d.length,0===c.entryCount&&s.push(l),he(d,function(p){Ii(c.predecessor,p)<0&&c.predecessor.push(p);var g=r(a,p);Ii(g.successor,p)<0&&g.successor.push(l)})}),{graph:a,noEntryList:s}}(a),u=c.graph,d=c.noEntryList,p={};for(he(o,function(w){p[w]=!0});d.length;){var g=d.pop(),v=u[g],_=!!p[g];_&&(s.call(l,g,v.originalDeps.slice()),delete p[g]),he(v.successor,_?b:y)}he(p,function(){throw new Error("")})}function y(w){u[w].entryCount--,0===u[w].entryCount&&d.push(w)}function b(w){p[w]=!0,y(w)}}}(p0,function xpe(n){var t=[];return he(p0.getClassesByMainType(n),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=yn(t,function(e){return _d(e).main}),"dataset"!==n&&Ii(t,"dataset")<=0&&t.unshift("dataset"),t});const so=p0;var RH=Wo(),Ek=(Wo(),function(){function n(){}return n.prototype.getColorFromPalette=function(t,e,r){var i=ss(this.get("color",!0)),o=this.get("colorLayer",!0);return function NH(n,t,e,r,i,o,a){var s=t(o=o||n),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var u=null!=a&&r?function Ppe(n,t){for(var e=n.length,r=0;rt)return n[r];return n[e-1]}(r,a):e;if((u=u||e)&&u.length){var d=u[l];return i&&(c[i]=d),s.paletteIdx=(l+1)%u.length,d}}(this,RH,i,o,t,e,r)},n.prototype.clearColorPalette=function(){!function Ope(n,t){t(n).paletteIdx=0,t(n).paletteNameMap={}}(this,RH)},n}());var Spe=/\{@(.+?)\}/g,Tpe=function(){function n(){}return n.prototype.getDataParams=function(t,e){var r=this.getData(e),i=this.getRawValue(t,e),o=r.getRawIndex(t),a=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),c=l&&l[r.getItemVisual(t,"drawType")||"fill"],u=l&&l.stroke,d=this.mainType,p="series"===d,g=r.userOutput&&r.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:e,value:i,color:c,borderColor:u,dimensionNames:g?g.fullDimensions:null,encode:g?g.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(t,e,r,i,o,a){e=e||"normal";var s=this.getData(r),l=this.getDataParams(t,r);return a&&(l.value=a.interpolatedValue),null!=i&&Ft(l.value)&&(l.value=l.value[i]),o||(o=s.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),Zn(o)?(l.status=e,l.dimensionIndex=i,o(l)):Qt(o)?EH(o,l).replace(Spe,function(d,p){var g=p.length,v=p;"["===v.charAt(0)&&"]"===v.charAt(g-1)&&(v=+v.slice(1,g-1));var _=l0(s,t,v);if(a&&Ft(a.interpolatedValue)){var y=s.getDimensionIndex(v);y>=0&&(_=a.interpolatedValue[y])}return null!=_?_+"":""}):void 0},n.prototype.getRawValue=function(t,e){return l0(this.getData(e),t)},n.prototype.formatTooltip=function(t,e,r){},n}();function LH(n){var t,e;return pn(n)?n.type&&(e=n):t=n,{text:t,frag:e}}function Rb(n){return new Ape(n)}var Ape=function(){function n(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var o,e=this._upstream,r=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(o=this._plan(this.context));var d,a=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;function u(w){return!(w>=1)&&(w=1),w}(a!==l||s!==c)&&(o="reset"),(this._dirty||"reset"===o)&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=c;var p=t&&t.step;if(this._dueEnd=e?e._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,v=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(d||g1&&r>0?s:a}};return o;function a(){return t=n?null:l9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var i,o,t=this._sourceHost,e=this._getUpstreamSourceManagers(),r=!!e.length;if(lO(t)){var a=t,s=void 0,l=void 0,c=void 0;if(r){var u=e[0];u.prepareSource(),s=(c=u.getSource()).data,l=c.sourceFormat,o=[u._getVersionSign()]}else l=Gl(s=a.get("data",!0))?Sh:Nc,o=[];var d=this._getSourceMetaRawOption()||{},p=c&&c.metaRawOption||{},g=Tr(d.seriesLayoutBy,p.seriesLayoutBy)||null,v=Tr(d.sourceHeader,p.sourceHeader),_=Tr(d.dimensions,p.dimensions);i=g!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||_?[sk(s,{seriesLayoutBy:g,sourceHeader:v,dimensions:_},l)]:[]}else{var b=t;if(r){var w=this._applyTransform(e);i=w.sourceList,o=w.upstreamSignList}else i=[sk(b.get("source",!0),this._getSourceMetaRawOption(),null)],o=[]}this._setLocalSource(i,o)},n.prototype._applyTransform=function(t){var e=this._sourceHost,r=e.get("transform",!0),i=e.get("fromTransformResult",!0);null!=i&&1!==t.length&&$H("");var a,s=[],l=[];return he(t,function(c){c.prepareSource();var u=c.getSource(i||0);null!=i&&!u&&$H(""),s.push(u),l.push(c._getVersionSign())}),r?a=function Fpe(n,t,e){var r=ss(n),i=r.length;i||Fs("");for(var a=0,s=i;a1||e>0&&!n.noHeader;return he(n.blocks,function(i){var o=HH(i);o>=t&&(t=o+ +(r&&(!o||Rk(i)&&!i.noHeader)))}),t}return 0}function zpe(n,t,e,r){var i=t.noHeader,o=function jpe(n){return{html:Upe[n],richText:Vpe[n]}}(HH(t)),a=[],s=t.blocks||[];Ch(!s||Ft(s)),s=s||[];var l=n.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(jv(c,l)){var u=new Pfe(c[l],null);s.sort(function(v,_){return u.evaluate(v.sortParam,_.sortParam)})}else"seriesDesc"===l&&s.reverse()}he(s,function(v,_){var y=t.valueFormatter,b=zH(v)(y?dt(dt({},n),{valueFormatter:y}):n,v,_>0?o.html:0,r);null!=b&&a.push(b)});var d="richText"===n.renderMode?a.join(o.richText):Nk(a.join(""),i?e:o.html);if(i)return d;var p=Ak(t.header,"ordinal",n.useUTC),g=VH(r,n.renderMode).nameStyle;return"richText"===n.renderMode?GH(n,p,g)+o.richText+d:Nk('
'+Lc(p)+"
"+d,e)}function Hpe(n,t,e,r){var i=n.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=n.useUTC,u=t.valueFormatter||n.valueFormatter||function(P){return yn(P=Ft(P)?P:[P],function(N,k){return Ak(N,Ft(g)?g[k]:g,c)})};if(!o||!a){var d=s?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),p=o?"":Ak(l,"ordinal",c),g=t.valueType,v=a?[]:u(t.value),_=!s||!o,y=!s&&o,b=VH(r,i),w=b.nameStyle,M=b.valueStyle;return"richText"===i?(s?"":d)+(o?"":GH(n,p,w))+(a?"":function qpe(n,t,e,r,i){var o=[i];return e&&o.push({padding:[0,0,0,r?10:20],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(Ft(t)?t.join(" "):t,o)}(n,v,_,y,M)):Nk((s?"":d)+(o?"":function Gpe(n,t,e){return''+Lc(n)+""}(p,!s,w))+(a?"":function Wpe(n,t,e,r){return''+yn(n=Ft(n)?n:[n],function(a){return Lc(a)}).join("  ")+""}(v,_,y,M)),e)}}function jH(n,t,e,r,i,o){if(n)return zH(n)({useUTC:i,renderMode:e,orderMode:r,markupStyleCreator:t,valueFormatter:n.valueFormatter},n,0,o)}function Nk(n,t){return'
'+n+'
'}function GH(n,t,e){return n.markupStyleCreator.wrapRichTextStyle(t,e)}function WH(n,t){return n.get("padding")??("richText"===t?[8,10]:10)}var Lk=function(){function n(){this.richTextStyles={},this._nextStyleNameId=KV()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,e,r){var i="richText"===r?this._generateStyleName():null,o=function ype(n,t){var e=Qt(n)?{color:n,extraCssText:t}:n||{},r=e.color,i=e.type;t=e.extraCssText;var o=e.renderMode||"html";return r?"html"===o?"subItem"===i?'':'':{renderMode:o,content:"{"+(e.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:e,type:t,renderMode:r,markerId:i});return Qt(o)?o:(this.richTextStyles[i]=o.style,o.content)},n.prototype.wrapRichTextStyle=function(t,e){var r={};Ft(e)?he(e,function(o){return dt(r,o)}):dt(r,e);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},n}();var Qf=Wo();function cO(n,t){return n.getName(t)||n.getId(t)}var uO=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return qn(t,n),t.prototype.init=function(e,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Rb({count:Qpe,reset:ege}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i),(Qf(this).sourceManager=new $pe(this)).prepareSource();var a=this.getInitialData(e,i);ZH(a,this),this.dataTask.context.data=a,Qf(this).dataBeforeProcessed=a,qH(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(e,r){var i=kb(this),o=i?sO(e):{},a=this.subType;so.hasClass(a)&&(a+="Series"),ei(e,r.getTheme().get(this.subType)),ei(e,this.getDefaultOption()),V5(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&f0(e,o,i)},t.prototype.mergeOption=function(e,r){e=ei(this.option,e,!0),this.fillDataTextStyle(e.data);var i=kb(this);i&&f0(this.option,e,i);var o=Qf(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(e,r);ZH(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Qf(this).dataBeforeProcessed=a,qH(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!Gl(e))for(var r=["show"],i=0;i1||l&&!a){var v=function Xpe(n,t,e,r,i){var o=t.getData(),a=Vf(n,function(d,p,g){var v=o.getDimensionInfo(g);return d||v&&!1!==v.tooltip&&null!=v.displayName},!1),s=[],l=[],c=[];function u(d,p){var g=o.getDimensionInfo(p);!g||!1===g.otherDims.tooltip||(a?c.push(Nb("nameValue",{markerType:"subItem",markerColor:i,name:g.displayName,value:d,valueType:g.type})):(s.push(d),l.push(g.type)))}return r.length?he(r,function(d){u(l0(o,e,d),d)}):he(n,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}(s,t,e,o,c);u=v.inlineValues,d=v.inlineValueTypes,p=v.blocks,g=v.inlineValues[0]}else if(a){var _=i.getDimensionInfo(o[0]);g=u=l0(i,e,o[0]),d=_.type}else g=u=l?s[0]:s;var y=z5(t),b=y&&t.name||"",w=i.getName(e),M=r?b:w;return Nb("section",{header:b,noHeader:r||!y,sortParam:g,blocks:[Nb("nameValue",{markerType:"item",markerColor:c,name:M,noName:!vd(M),value:u,valueType:d})].concat(p||[])})}({series:this,dataIndex:e,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(lr.node&&(!e||!e.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,r,i){var o=this.ecModel,a=Ek.prototype.getColorFromPalette.call(this,e,r,i);return a||(a=o.getColorFromPalette(e,r,i)),a},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,r){this._innerSelect(this.getData(r),e)},t.prototype.unselect=function(e,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if("series"===o||"all"===i)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s=0&&i.push(a)}return i},t.prototype.isSelected=function(e,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return("all"===i||i[cO(o,e)])&&!o.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(s&&l)if("series"===s)a.selectedMap="all";else if("multiple"===s){pn(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,u=0;u0&&this._innerSelect(e,r)}},t.registerClass=function(e){return so.registerClass(e)},t.protoInitialize=((e=t.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",void(e.visualDrawType="fill")),t;var e}(so);function qH(n){var t=n.name;z5(n)||(n.name=function Jpe(n){var t=n.getRawData(),e=t.mapDimensionsAll("seriesName"),r=[];return he(e,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}(n)||t)}function Qpe(n){return n.model.getRawData().count()}function ege(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),tge}function tge(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ZH(n,t){he(function uue(n,t){for(var e=new n.constructor(n.length+t.length),r=0;r1&&(a*=$k(v),s*=$k(v));var _=(i===o?-1:1)*$k((a*a*(s*s)-a*a*(g*g)-s*s*(p*p))/(a*a*(g*g)+s*s*(p*p)))||0,y=_*a*g/s,b=_*-s*p/a,w=(n+e)/2+hO(d)*y-dO(d)*b,M=(t+r)/2+dO(d)*y+hO(d)*b,P=QH([1,0],[(p-y)/a,(g-b)/s]),N=[(p-y)/a,(g-b)/s],k=[(-1*p-y)/a,(-1*g-b)/s],z=QH(N,k);if(Uk(N,k)<=-1&&(z=Lb),Uk(N,k)>=1&&(z=0),z<0){var U=Math.round(z/Lb*1e6)/1e6;z=2*Lb+U%2*Lb}u.addData(c,w,M,a,s,P,z,d,o)}var cge=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,uge=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,tj=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return ki(t,n),t.prototype.applyTransform=function(e){},t}(Li);function nj(n){return null!=n.setData}function rj(n,t){var e=function dge(n){var t=new Zf;if(!n)return t;var a,e=0,r=0,i=e,o=r,s=Zf.CMD,l=n.match(cge);if(!l)return t;for(var c=0;c=0&&(i.splice(o,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,r){var i=Ii(this._children,e);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(e,r){var i=this._children,o=i[r];if(e&&e!==this&&e.parent!==this&&e!==o){i[r]=e,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var r=this.__zr;r&&r!==e.__zr&&e.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(e){var r=this.__zr,i=this._children,o=Ii(i,e);return o<0||(i.splice(o,1),e.parent=null,r&&e.removeSelfFromZr(r),r&&r.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,r=this.__zr,i=0;iMe*Me+Fe*Fe&&(U=X,W=J),{cx:U,cy:W,x0:-u,y0:-d,x1:U*(i/N-1),y1:W*(i/N-1)}}var bge=function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},cj=function(n){function t(e){return n.call(this,e)||this}return ki(t,n),t.prototype.getDefaultShape=function(){return new bge},t.prototype.buildPath=function(e,r){!function yge(n,t){var e,r=Bb(t.r,0),i=Bb(t.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,c=t.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=t.cx,d=t.cy,p=!!t.clockwise,g=lj(c-l),v=g>Vk&&g%Vk;if(v>Tu&&(g=v),r>Tu)if(g>Vk-Tu)n.moveTo(u+r*v0(l),d+r*l1(l)),n.arc(u,d,r,l,c,!p),i>Tu&&(n.moveTo(u+i*v0(c),d+i*l1(c)),n.arc(u,d,i,c,l,p));else{var _=void 0,y=void 0,b=void 0,w=void 0,M=void 0,P=void 0,N=void 0,k=void 0,z=void 0,U=void 0,W=void 0,X=void 0,J=void 0,ne=void 0,ce=void 0,Me=void 0,Fe=r*v0(l),Ne=r*l1(l),bt=i*v0(c),ue=i*l1(c),_e=g>Tu;if(_e){var Ae=t.cornerRadius;Ae&&(e=function _ge(n){var t;if(Ft(n)){var e=n.length;if(!e)return n;t=1===e?[n[0],n[0],0,0]:2===e?[n[0],n[0],n[1],n[1]]:3===e?n.concat(n[2]):n}else t=[n,n,n,n];return t}(Ae),_=e[0],y=e[1],b=e[2],w=e[3]);var et=lj(r-i)/2;if(M=Pd(et,b),P=Pd(et,w),N=Pd(et,_),k=Pd(et,y),W=z=Bb(M,P),X=U=Bb(N,k),(z>Tu||U>Tu)&&(J=r*v0(c),ne=r*l1(c),ce=i*v0(l),Me=i*l1(l),gTu){var Zi=Pd(b,W),qr=Pd(w,W),tn=fO(ce,Me,Fe,Ne,r,Zi,p),Nn=fO(J,ne,bt,ue,r,qr,p);n.moveTo(u+tn.cx+tn.x0,d+tn.cy+tn.y0),W0&&n.arc(u+tn.cx,d+tn.cy,Zi,cs(tn.y0,tn.x0),cs(tn.y1,tn.x1),!p),n.arc(u,d,r,cs(tn.cy+tn.y1,tn.cx+tn.x1),cs(Nn.cy+Nn.y1,Nn.cx+Nn.x1),!p),qr>0&&n.arc(u+Nn.cx,d+Nn.cy,qr,cs(Nn.y1,Nn.x1),cs(Nn.y0,Nn.x0),!p))}else n.moveTo(u+Fe,d+Ne),n.arc(u,d,r,l,c,!p);else n.moveTo(u+Fe,d+Ne);i>Tu&&_e?X>Tu?(Zi=Pd(_,X),tn=fO(bt,ue,J,ne,i,-(qr=Pd(y,X)),p),Nn=fO(Fe,Ne,ce,Me,i,-Zi,p),n.lineTo(u+tn.cx+tn.x0,d+tn.cy+tn.y0),X0&&n.arc(u+tn.cx,d+tn.cy,qr,cs(tn.y0,tn.x0),cs(tn.y1,tn.x1),!p),n.arc(u,d,i,cs(tn.cy+tn.y1,tn.cx+tn.x1),cs(Nn.cy+Nn.y1,Nn.cx+Nn.x1),p),Zi>0&&n.arc(u+Nn.cx,d+Nn.cy,Zi,cs(Nn.y1,Nn.x1),cs(Nn.y0,Nn.x0),!p))):(n.lineTo(u+bt,d+ue),n.arc(u,d,i,c,l,p)):n.lineTo(u+bt,d+ue)}else n.moveTo(u,d);n.closePath()}}}(e,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Li);cj.prototype.type="sector";const $b=cj;var Cge=function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0},uj=function(n){function t(e){return n.call(this,e)||this}return ki(t,n),t.prototype.getDefaultShape=function(){return new Cge},t.prototype.buildPath=function(e,r){var i=r.cx,o=r.cy,a=2*Math.PI;e.moveTo(i+r.r,o),e.arc(i,o,r.r,0,a,!1),e.moveTo(i+r.r0,o),e.arc(i,o,r.r0,0,a,!0)},t}(Li);uj.prototype.type="ring";const dj=uj;function hj(n,t,e){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=function wge(n,t,e,r){var l,c,u,d,i=[],o=[],a=[],s=[];if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var p=0,g=n.length;pu1[1]){if(s=!1,o)return s;var u=Math.abs(u1[0]-c1[1]),d=Math.abs(c1[0]-u1[1]);Math.min(u,d)>i.len()&&Dn.scale(i,c,u0){var v={duration:u.duration,delay:u.delay||0,easing:u.easing,done:o,force:!!o||!!a,setToFinal:!c,scope:n,during:a};s?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!s&&t.attr(e),a&&a(1),o&&o()}function Od(n,t,e,r,i,o){Hk("update",n,t,e,r,i,o)}function ep(n,t,e,r,i,o){Hk("enter",n,t,e,r,i,o)}function Ub(n){if(!n.__zr)return!0;for(var t=0;tMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Aj(n){return!n.isGroup}function Dj(n,t,e){if(n&&t){var o=function r(a){var s={};return a.traverse(function(l){Aj(l)&&l.anid&&(s[l.anid]=l)}),s}(n);t.traverse(function(a){if(Aj(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Od(a,l,e,qi(a).dataIndex)}}})}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return function qge(n){return null!=n.shape}(a)&&(s.shape=dt({},a.shape)),s}}function Zge(n,t){return yn(n,function(e){var r=e[0];r=yO(r,t.x),r=bO(r,t.x+t.width);var i=e[1];return i=yO(i,t.y),[r,i=bO(i,t.y+t.height)]})}function Yge(n,t){var e=yO(n.x,t.x),r=bO(n.x+n.width,t.x+t.width),i=yO(n.y,t.y),o=bO(n.y+n.height,t.y+t.height);if(r>=e&&o>=i)return{x:e,y:i,width:r-e,height:o-i}}function qk(n,t,e){var r=dt({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},n)return 0===n.indexOf("image://")?(i.image=n.slice(8),li(i,e),new Zg(r)):Gk(n.replace("path://",""),r,e,"center")}function Xge(n,t,e,r,i){for(var o=0,a=i[i.length-1];o=-1e-6}(p))return!1;var g=n-i,v=t-o,_=Zk(g,v,l,c)/p;if(_<0||_>1)return!1;var y=Zk(g,v,u,d)/p;return!(y<0||y>1)}function Zk(n,t,e,r){return n*r-e*t}function Yk(n){var t=n.itemTooltipOption,e=n.componentModel,r=n.itemName,i=Qt(t)?{formatter:t}:t,o=e.mainType,a=e.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=n.formatterParamsExtra;l&&he(oo(l),function(u){jv(s,u)||(s[u]=l[u],s.$vars.push(u))});var c=qi(n.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:li({content:r,formatterParams:s},i)}}function Ej(n,t){var e;n.isGroup&&(e=t(n)),e||n.traverse(t)}function Xk(n,t){if(n)if(Ft(n))for(var e=0;e-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(g0);const l1e=s1e;function Rj(n,t){var e=n.mapDimensionsAll("defaultedLabel"),r=e.length;if(1===r){var i=l0(n,t,e[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a0?+y:1;ce.scaleX=this._sizeX*Me,ce.scaleY=this._sizeY*Me,this.setSymbolScale(1),$P(this,p,g,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,r,i){var o=this.childAt(0),a=qi(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&_O(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();_O(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,r){return function a1e(n){return Ft(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}(e.getItemVisual(r,"symbolSize"))},t}(Bs);function d1e(n,t){this.parent.drift(n,t)}const Jk=u1e;function Qk(n,t,e,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(e))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==n.getItemVisual(e,"symbol")}function Nj(n){return null!=n&&!pn(n)&&(n={isIgnore:n}),n||{}}function Lj(n){var t=n.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:zP(t),cursorStyle:t.get("cursor")}}var h1e=function(){function n(t){this.group=new Bs,this._SymbolCtor=t||Jk}return n.prototype.updateData=function(t,e){this._progressiveEls=null,e=Nj(e);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=Lj(t),c={disableAnimation:s},u=e.getSymbolPoint||function(d){return t.getItemLayout(d)};o||r.removeAll(),t.diff(o).add(function(d){var p=u(d);if(Qk(t,p,d,e)){var g=new a(t,d,l,c);g.setPosition(p),t.setItemGraphicEl(d,g),r.add(g)}}).update(function(d,p){var g=o.getItemGraphicEl(p),v=u(d);if(Qk(t,v,d,e)){var _=t.getItemVisual(d,"symbol")||"circle",y=g&&g.getSymbolType&&g.getSymbolType();if(!g||y&&y!==_)r.remove(g),(g=new a(t,d,l,c)).setPosition(v);else{g.updateData(t,d,l,c);var b={x:v[0],y:v[1]};s?g.attr(b):Od(g,b,i)}r.add(g),t.setItemGraphicEl(d,g)}else r.remove(g)}).remove(function(d){var p=o.getItemGraphicEl(d);p&&p.fadeOut(function(){r.remove(p)},i)}).execute(),this._getSymbolPoint=u,this._data=t},n.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(r,i){var o=t._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Lj(t),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,r){function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],r=Nj(r);for(var o=t.start;o0?e=r[0]:r[1]<0&&(e=r[1]),e}(i,e),a=r.dim,s=i.dim,l=t.mapDimension(s),c=t.mapDimension(a),u="x"===s||"radius"===s?1:0,d=yn(n.dimensions,function(v){return t.mapDimension(v)}),p=!1,g=t.getCalculationInfo("stackResultDimension");return Sb(t,d[0])&&(p=!0,d[0]=g),Sb(t,d[1])&&(p=!0,d[1]=g),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Bj(n,t,e,r){var i=NaN;n.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=n.valueStart);var o=n.baseDataOffset,a=[];return a[o]=e.get(n.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var $j=typeof Float32Array<"u",g1e=$j?Float32Array:Array;function y0(n){return Ft(n)?$j?new Float32Array(n):n:new g1e(n)}var tp=Math.min,np=Math.max;function d1(n,t){return isNaN(n)||isNaN(t)}function eR(n,t,e,r,i,o,a,s,l){for(var c,u,d,p,g,v,_=e,y=0;y=i||_<0)break;if(d1(b,w)){if(l){_+=o;continue}break}if(_===e)n[o>0?"moveTo":"lineTo"](b,w),d=b,p=w;else{var M=b-c,P=w-u;if(M*M+P*P<.5){_+=o;continue}if(a>0){for(var N=_+o,k=t[2*N],z=t[2*N+1];k===b&&z===w&&y=r||d1(k,z))g=b,v=w;else{X=k-c,J=z-u;var Me=b-c,Fe=k-b,Ne=w-u,bt=z-w,ue=void 0,_e=void 0;if("x"===s){var Ae=X>0?1:-1;g=b-Ae*(ue=Math.abs(Me))*a,v=w,ne=b+Ae*(_e=Math.abs(Fe))*a,ce=w}else if("y"===s){var et=J>0?1:-1;g=b,v=w-et*(ue=Math.abs(Ne))*a,ne=b,ce=w+et*(_e=Math.abs(bt))*a}else ue=Math.sqrt(Me*Me+Ne*Ne),g=b-X*a*(1-(W=(_e=Math.sqrt(Fe*Fe+bt*bt))/(_e+ue))),v=w-J*a*(1-W),ce=w+J*a*W,ne=tp(ne=b+X*a*W,np(k,b)),ce=tp(ce,np(z,w)),ne=np(ne,tp(k,b)),v=w-(J=(ce=np(ce,tp(z,w)))-w)*ue/_e,g=tp(g=b-(X=ne-b)*ue/_e,np(c,b)),v=tp(v,np(u,w)),ne=b+(X=b-(g=np(g,tp(c,b))))*_e/ue,ce=w+(J=w-(v=np(v,tp(u,w))))*_e/ue}n.bezierCurveTo(d,p,g,v,b,w),d=ne,p=ce}else n.lineTo(b,w)}c=b,u=w,_+=o}return y}var Uj=function n(){this.smooth=0,this.smoothConstraint=!0},_1e=function(n){function t(e){var r=n.call(this,e)||this;return r.type="ec-polyline",r}return qn(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Uj},t.prototype.buildPath=function(e,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&d1(i[2*a-2],i[2*a-1]);a--);for(;o=0){var P=c?(v-l)*M+l:(g-s)*M+s;return c?[e,P]:[P,e]}s=g,l=v;break;case a.C:g=o[d++],v=o[d++],_=o[d++],y=o[d++],b=o[d++],w=o[d++];var N=c?hP(s,g,_,b,e,u):hP(l,v,y,w,e,u);if(N>0)for(var k=0;k=0)return P=c?sa(l,v,y,w,z):sa(s,g,_,b,z),c?[e,P]:[P,e]}s=b,l=w}}},t}(Li),y1e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return qn(t,n),t}(Uj),b1e=function(n){function t(e){var r=n.call(this,e)||this;return r.type="ec-polygon",r}return qn(t,n),t.prototype.getDefaultShape=function(){return new y1e},t.prototype.buildPath=function(e,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&d1(i[2*s-2],i[2*s-1]);s--);for(;ar)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return he(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}(e,l,a),X=this._data;X&&X.eachItemGraphicEl(function(kn,di){kn.__temp&&(s.remove(kn),X.setItemGraphicEl(di,null))}),z||v.remove(),s.add(b);var ne,J=!p&&e.get("step");a&&a.getArea&&e.get("clip",!0)&&(null!=(ne=a.getArea()).width?(ne.x-=.1,ne.y-=.1,ne.width+=.2,ne.height+=.2):ne.r0&&(ne.r0-=.5,ne.r+=.5)),this._clipShapeForSymbol=ne;var ce=function T1e(n,t,e){var r=n.getVisual("visualMeta");if(r&&r.length&&n.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=n.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),c=yn(o.stops,function(M){return{coord:l.toGlobalCoord(l.dataToCoord(M.value)),color:M.color}}),u=c.length,d=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var p=function S1e(n,t){var i,o,e=[],r=n.length;function a(u,d,p){var g=u.coord,_=function sde(n,t,e){if(t&&t.length&&n>=0&&n<=1){var r=n*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=Ec(t[i]),s=Ec(t[o]),l=r-i,c=$g([Mu(Gf(a[0],s[0],l)),Mu(Gf(a[1],s[1],l)),Mu(Gf(a[2],s[2],l)),lb(Gf(a[3],s[3],l))],"rgba");return e?{color:c,leftIndex:i,rightIndex:o,value:r}:c}}((p-g)/(d.coord-g),[u.color,d.color]);return{coord:p,color:_}}for(var s=0;st){o?e.push(a(o,l,t)):i&&e.push(a(i,l,0),a(i,l,t));break}i&&(e.push(a(i,l,0)),i=null),e.push(l),o=l}}return e}(c,"x"===i?e.getWidth():e.getHeight()),g=p.length;if(!g&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var _=p[0].coord-10,y=p[g-1].coord+10,b=y-_;if(b<.001)return"transparent";he(p,function(M){M.offset=(M.coord-_)/b}),p.push({offset:g?p[g-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:g?p[0].offset:.5,color:d[0]||"transparent"});var w=new Cj(0,0,0,0,p,!0);return w[i]=_,w[i+"2"]=y,w}}}(l,a,i)||l.getVisual("style")[l.getVisual("drawType")];if(_&&g.type===a.type&&J===this._step){M&&!y?y=this._newPolygon(d,k):y&&!M&&(b.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(e,a,r1(ce));var Me=b.getClipPath();Me?ep(Me,{shape:nR(this,a,!1,e).shape},e):b.setClipPath(nR(this,a,!0,e)),z&&v.updateData(l,{isIgnore:W,clipShape:ne,disableAnimation:!0,getSymbolPoint:function(kn){return[d[2*kn],d[2*kn+1]]}}),(!qj(this._stackedOnPoints,k)||!qj(this._points,d))&&(w?this._doUpdateAnimation(l,k,a,i,J,P,U):(J&&(d=rp(d,a,J,U),k&&(k=rp(k,a,J,U))),_.setShape({points:d}),y&&y.setShape({points:d,stackedOnPoints:k})))}else z&&v.updateData(l,{isIgnore:W,clipShape:ne,disableAnimation:!0,getSymbolPoint:function(kn){return[d[2*kn],d[2*kn+1]]}}),w&&this._initSymbolLabelAnimation(l,a,ne),J&&(d=rp(d,a,J,U),k&&(k=rp(k,a,J,U))),_=this._newPolyline(d),M?y=this._newPolygon(d,k):y&&(b.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(e,a,r1(ce)),b.setClipPath(nR(this,a,!0,e));var Ne=e.getModel("emphasis"),bt=Ne.get("focus"),ue=Ne.get("blurScope"),_e=Ne.get("disabled");_.useStyle(li(c.getLineStyle(),{fill:"none",stroke:ce,lineJoin:"bevel"})),Q5(_,e,"lineStyle"),_.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(_.getState("emphasis").style.lineWidth=+_.style.lineWidth+1),qi(_).seriesIndex=e.seriesIndex,$P(_,bt,ue,_e);var et=Xj(e.get("smooth")),Ze=e.get("smoothMonotone");if(_.setShape({smooth:et,smoothMonotone:Ze,connectNulls:U}),y){var at=l.getCalculationInfo("stackedOnSeries"),Tt=0;y.useStyle(li(u.getAreaStyle(),{fill:ce,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),at&&(Tt=Xj(at.get("smooth"))),y.setShape({smooth:et,stackedOnSmooth:Tt,smoothMonotone:Ze,connectNulls:U}),Q5(y,e,"areaStyle"),qi(y).seriesIndex=e.seriesIndex,$P(y,bt,ue,_e)}var mn=function(kn){o._changePolyState(kn)};l.eachItemGraphicEl(function(kn){kn&&(kn.onHoverStateChange=mn)}),this._polyline.onHoverStateChange=mn,this._data=l,this._coordSys=a,this._stackedOnPoints=k,this._points=d,this._step=J,this._valueOrigin=P,e.get("triggerLineEvent")&&(this.packEventData(e,_),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,r){qi(r).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,r,i,o){var a=e.getData(),s=Xg(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&null!=s&&s>=0){var l=a.getLayout("points"),c=a.getItemGraphicEl(s);if(!c){var u=l[2*s],d=l[2*s+1];if(isNaN(u)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,d))return;var p=e.get("zlevel")||0,g=e.get("z")||0;(c=new Jk(a,s)).x=u,c.y=d,c.setZ(p,g);var v=c.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=g,v.z2=this._polyline.z2+1),c.__temp=!0,a.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Ah.prototype.highlight.call(this,e,r,i,o)},t.prototype.downplay=function(e,r,i,o){var a=e.getData(),s=Xg(a,o);if(this._changePolyState("normal"),null!=s&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ah.prototype.downplay.call(this,e,r,i,o)},t.prototype._changePolyState=function(e){var r=this._polygon;gz(this._polyline,e),r&&gz(r,e)},t.prototype._newPolyline=function(e){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new _1e({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(e,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new b1e({shape:{points:e,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;"cartesian2d"===r.type?(o=s.isHorizontal(),a=!1):"polar"===r.type&&(o="angle"===s.dim,a=!0);var c=e.hostModel,u=c.get("animationDuration");Zn(u)&&(u=u(null));var d=c.get("animationDelay")||0,p=Zn(d)?d(null):d;e.eachItemGraphicEl(function(g,v){var _=g;if(_){var b=void 0,w=void 0,M=void 0;if(i)if(a){var P=i,N=r.pointToCoord([g.x,g.y]);o?(b=P.startAngle,w=P.endAngle,M=-N[1]/180*Math.PI):(b=P.r0,w=P.r,M=N[0])}else o?(b=i.x,w=i.x+i.width,M=g.x):(b=i.y+i.height,w=i.y,M=g.y);var z=w===b?0:(M-b)/(w-b);l&&(z=1-z);var U=Zn(d)?d(v):u*z+p,W=_.getSymbolPath(),X=W.getTextContent();_.attr({scaleX:0,scaleY:0}),_.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:U}),X&&X.animateFrom({style:{opacity:0}},{duration:300,delay:U}),W.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,r,i){var o=e.getModel("endLabel");if(Jj(e)){var a=e.getData(),s=this._polyline,l=a.getLayout("points");if(!l)return s.removeTextContent(),void(this._endLabel=null);var c=this._endLabel;c||((c=this._endLabel=new as({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=function E1e(n){for(var t=n.length/2;t>0&&I1e(n[2*t-2],n[2*t-1]);t--);return t-1}(l);u>=0&&(VP(s,zP(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:u,defaultText:function(d,p,g){return null!=g?function c1e(n,t){var e=n.mapDimensionsAll("defaultedLabel");if(!Ft(t))return t+"";for(var r=[],i=0;i=0&&r.push(t[o])}return r.join(" ")}(a,g):Rj(a,d)},enableTextSetter:!0},function R1e(n,t){var e=t.getBaseAxis(),r=e.isHorizontal(),i=e.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:n.get("align")||o,verticalAlign:n.get("verticalAlign")||a}}}(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,r,i,o,a,s,l){var c=this._endLabel,u=this._polyline;if(c){e<1&&null==o.originalX&&(o.originalX=c.x,o.originalY=c.y);var d=i.getLayout("points"),p=i.hostModel,g=p.get("connectNulls"),v=s.get("precision"),_=s.get("distance")||0,y=l.getBaseAxis(),b=y.isHorizontal(),w=y.inverse,M=r.shape,P=w?b?M.x:M.y+M.height:b?M.x+M.width:M.y,N=(b?_:0)*(w?-1:1),k=(b?0:-_)*(w?-1:1),z=b?"x":"y",U=function k1e(n,t,e){for(var o,a,r=n.length/2,i="x"===e?0:1,s=0,l=-1,c=0;c=t||o>=t&&a<=t){l=c;break}s=c,o=a}return{range:[s,l],t:(t-o)/(a-o)}}(d,P,z),W=U.range,X=W[1]-W[0],J=void 0;if(X>=1){if(X>1&&!g){var ne=Kj(d,W[0]);c.attr({x:ne[0]+N,y:ne[1]+k}),a&&(J=p.getRawValue(W[0]))}else{(ne=u.getPointOn(P,z))&&c.attr({x:ne[0]+N,y:ne[1]+k});var ce=p.getRawValue(W[0]),Me=p.getRawValue(W[1]);a&&(J=function Ohe(n,t,e,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(Ei(r))return Go(a=ez(e||0,r,i),o?Math.max(Mh(e||0),Mh(r)):t);if(Qt(r))return i<1?e:r;for(var s=[],l=e,c=r,u=Math.max(l?l.length:0,c.length),d=0;d0?W[0]:0;ne=Kj(d,Fe),a&&(J=p.getRawValue(Fe)),c.attr({x:ne[0]+N,y:ne[1]+k})}a&&HP(c).setLabelText(J)}},t.prototype._doUpdateAnimation=function(e,r,i,o,a,s,l){var c=this._polyline,u=this._polygon,d=e.hostModel,p=function v1e(n,t,e,r,i,o,a,s){for(var l=function m1e(n,t){var e=[];return t.diff(n).add(function(r){e.push({cmd:"+",idx:r})}).update(function(r,i){e.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){e.push({cmd:"-",idx:r})}).execute(),e}(n,t),c=[],u=[],d=[],p=[],g=[],v=[],_=[],y=Fj(i,t,a),b=n.getLayout("points")||[],w=t.getLayout("points")||[],M=0;M3e3||u&&Yj(v,y)>3e3)return c.stopAnimation(),c.setShape({points:_}),void(u&&(u.stopAnimation(),u.setShape({points:_,stackedOnPoints:y})));c.shape.__points=p.current,c.shape.points=g;var b={shape:{points:_}};p.current!==g&&(b.shape.__points=p.next),c.stopAnimation(),Od(c,b,d),u&&(u.setShape({points:g,stackedOnPoints:v}),u.stopAnimation(),Od(u,{shape:{stackedOnPoints:y}},d),c.shape.points!==u.shape.points&&(u.shape.points=c.shape.points));for(var w=[],M=p.status,P=0;Pt&&(t=n[e]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,e=0;e10&&"cartesian2d"===a.type&&o){var l=a.getBaseAxis(),c=a.getOtherAxis(l),u=l.getExtent(),d=r.getDevicePixelRatio(),p=Math.abs(u[1]-u[0])*(d||1),g=Math.round(s/p);if(isFinite(g)&&g>1){"lttb"===o&&t.setData(i.lttbDownSample(i.mapDimension(c.dim),1/g));var v=void 0;Qt(o)?v=B1e[o]:Zn(o)&&(v=o),v&&t.setData(i.downSample(i.mapDimension(c.dim),1/g,v,$1e))}}}}}("line"))}function rR(n,t){return"all"===n||Ft(n)&&Ii(n,t)>=0||n===t}function iR(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[zb(n)]}function oR(n){return!!n.get(["handle","show"])}function zb(n){return n.type+"||"+n.id}var aR=function(){function n(){this.group=new Bs,this.uid=XP("viewComponent")}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,r,i){},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,r,i){},n.prototype.updateLayout=function(t,e,r,i){},n.prototype.updateVisual=function(t,e,r,i){},n.prototype.toggleBlurSeries=function(t,e,r){},n.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},n}();GE(aR),rP(aR);const Dh=aR;var Qj={},Z1e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e}return qn(t,n),t.prototype.render=function(e,r,i,o){this.axisPointerClass&&function W1e(n){var t=iR(n);if(t){var e=t.axisPointerModel,r=t.axis.scale,i=e.option,o=e.get("status"),a=e.get("value");null!=a&&(a=r.parse(a));var s=oR(e);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a=0){var a="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];a&&lR(n,a,t,e)}else{lR(n,t,t,e);var o=function K1e(n){var t=n.wheelDelta;if(t)return t;var e=n.deltaX,r=n.deltaY;return null==e||null==r?t:3*Math.abs(0!==r?r:e)*(r>0?-1:r<0?1:e>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&Y1e.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function Q1e(n,t,e,r){n.removeEventListener(t,e,r)}var nG=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0},wO="\0__throttleOriginMethod",rG="\0__throttleRate",iG="\0__throttleType";function oG(n,t,e){var r,s,l,c,u,i=0,o=0,a=null;function d(){o=(new Date).getTime(),a=null,n.apply(l,c||[])}t=t||0;var p=function(){for(var g=[],v=0;v=0?d():a=setTimeout(d,-s),i=r};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(g){u=g},p}function aG(n,t,e,r){var i=n[t];if(i){var o=i[wO]||i;if(i[rG]!==e||i[iG]!==r){if(null==e||!r)return n[t]=o;(i=n[t]=oG(o,e,"debounce"===r))[wO]=o,i[iG]=r,i[rG]=e}return i}}function uR(n,t){var e=n[t];e&&e[wO]&&(e.clear&&e.clear(),n[t]=e[wO])}var h1=Wo(),sG=kr,dR=Qi,eme=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(t,e,r,i){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=r,i||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||"hide"===a)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var c={};this.makeElOption(c,o,t,e,r);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=u;var d=this._moveAnimation=this.determineAnimation(t,e);if(s){var p=jo(lG,e,d);this.updatePointerEl(s,c,p),this.updateLabelEl(s,c,p,e)}else s=this._group=new Bs,this.createPointerEl(s,c,t,e),this.createLabelEl(s,c,t,e),r.getZr().add(s);dG(s,e,!0),this._renderHandle(o)}},n.prototype.remove=function(t){this.clear(t)},n.prototype.dispose=function(t){this.clear(t)},n.prototype.determineAnimation=function(t,e){var r=e.get("animation"),i=t.axis,o="category"===i.type,a=e.get("snap");if(!a&&!o)return!1;if("auto"===r||null==r){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=iR(t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return!0===r},n.prototype.makeElOption=function(t,e,r,i,o){},n.prototype.createPointerEl=function(t,e,r,i){var o=e.pointer;if(o){var a=h1(t).pointerEl=new Be[o.type](sG(e.pointer));t.add(a)}},n.prototype.createLabelEl=function(t,e,r,i){if(e.label){var o=h1(t).labelEl=new as(sG(e.label));t.add(o),uG(o,i)}},n.prototype.updatePointerEl=function(t,e,r){var i=h1(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),r(i,{shape:e.pointer.shape}))},n.prototype.updateLabelEl=function(t,e,r,i){var o=h1(t).labelEl;o&&(o.setStyle(e.label.style),r(o,{x:e.label.x,y:e.label.y}),uG(o,i))},n.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var s,e=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(s=!0,i=this._handle=qk(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){nG(c.event)},onmousedown:dR(this._onHandleDragMove,this,0,0),drift:dR(this._onHandleDragMove,this),ondragend:dR(this._onHandleDragEnd,this)}),r.add(i)),dG(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");Ft(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,aG(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},n.prototype._moveHandleToValue=function(t,e){lG(this._axisPointerModel,!e&&this._moveAnimation,this._handle,hR(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,e){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(hR(r),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(hR(i)),h1(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),r=this._group,i=this._handle;e&&r&&(this._lastGraphicKey=null,r&&e.remove(r),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),uR(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,e,r){return{x:t[r=r||0],y:t[1-r],width:e[r],height:e[1-r]}},n}();function lG(n,t,e,r){cG(h1(e).lastProp,r)||(h1(e).lastProp=r,t?Od(e,r,n):(e.stopAnimation(),e.attr(r)))}function cG(n,t){if(pn(n)&&pn(t)){var e=!0;return he(t,function(r,i){e=e&&cG(n[i],r)}),!!e}return n===t}function uG(n,t){n[t.get(["label","show"])?"show":"hide"]()}function hR(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function dG(n,t,e){var r=t.get("z"),i=t.get("zlevel");n&&n.traverse(function(o){"group"!==o.type&&(null!=r&&(o.z=r),null!=i&&(o.zlevel=i),o.silent=e)})}const tme=eme;var hG=function(){function n(t){this._setting=t||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(t){return this._setting[t]},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(e)||(r[1]=e)},n.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n}();rP(hG);const Ih=hG;var nme=0,rme=function(){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++nme}return n.createByAxisModel=function(t){var e=t.option,r=e.data,i=r&&yn(r,ime);return new n({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})},n.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},n.prototype.parseAndCollect=function(t){var e,r=this._needCollect;if(!Qt(t)&&!r)return t;if(r&&!this._deduplication)return this.categories[e=this.categories.length]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(r?(this.categories[e=this.categories.length]=t,i.set(t,e)):e=NaN),e},n.prototype._getOrCreateMap=function(){return this._map||(this._map=sr(this.categories))},n}();function ime(n){return pn(n)&&null!=n.value?n.value:n+""}const fR=rme;function pR(n){return"interval"===n.type||"log"===n.type}function gR(n){var t=Math.pow(10,U5(n)),e=n/t;return e?2===e?e=3:3===e?e=5:e*=2:e=1,Go(e*t)}function fG(n){return Mh(n)+2}function pG(n,t,e){n[t]=Math.max(Math.min(n[t],e[1]),e[0])}function xO(n,t){return n>=t[0]&&n<=t[1]}function MO(n,t){return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])}function PO(n,t){return n*(t[1]-t[0])+t[0]}var gG=function(n){function t(e){var r=n.call(this,e)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new fR({})),Ft(i)&&(i=new fR({categories:yn(i,function(o){return pn(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return qn(t,n),t.prototype.parse=function(e){return null==e?NaN:Qt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return xO(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return MO(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(PO(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],r=this._extent,i=r[0];i<=r[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var r=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ih);Ih.registerClass(gG);const mG=gG;var f1=Go,vG=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return qn(t,n),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return xO(e,this._extent)},t.prototype.normalize=function(e){return MO(e,this._extent)},t.prototype.scale=function(e){return PO(e,this._extent)},t.prototype.setExtent=function(e,r){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(e){var r=this._extent;e[0]r[1]&&(r[1]=e[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=fG(e)},t.prototype.getTicks=function(e){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;i[0]1e4)return[];var u=s.length?s[s.length-1].value:o[1];return i[1]>u&&s.push(e?{value:f1(u+r,a)}:{value:i[1]}),s},t.prototype.getMinorTicks=function(e){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;ao[0]&&gr&&(a=i.interval=r);var s=i.intervalPrecision=fG(a);return function ame(n,t){!isFinite(n[0])&&(n[0]=t[0]),!isFinite(n[1])&&(n[1]=t[1]),pG(n,0,t),pG(n,1,t),n[0]>n[1]&&(n[0]=n[1])}(i.niceTickExtent=[Go(Math.ceil(n[0]/a)*a,s),Go(Math.floor(n[1]/a)*a,s)],n),i}(o,e,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var r=this._extent;if(r[0]===r[1])if(0!==r[0]){var i=Math.abs(r[0]);e.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;isFinite(r[1]-r[0])||(r[0]=0,r[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var a=this._interval;e.fixMin||(r[0]=f1(Math.floor(r[0]/a)*a)),e.fixMax||(r[1]=f1(Math.ceil(r[1]/a)*a))},t.prototype.setNiceExtent=function(e,r){this._niceExtent=[e,r]},t.type="interval",t}(Ih);Ih.registerClass(vG);const Hb=vG;var mR="__ec_stack_";function vR(n){return n.get("stack")||mR+n.seriesIndex}function _R(n){return n.dim+n.index}function yG(n){var t=function sme(n){var t={};he(n,function(l){var u=l.coordinateSystem.getBaseAxis();if("time"===u.type||"value"===u.type)for(var d=l.getData(),p=u.dim+"_"+u.index,g=d.getDimensionIndex(d.mapDimension(u.dim)),v=d.getStore(),_=0,y=v.count();_0&&(o=null===o?s:Math.min(o,s))}e[r]=o}}return e}(n),e=[];return he(n,function(r){var s,o=r.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)s=o.getBandWidth();else if("value"===o.type||"time"===o.type){var c=t[o.dim+"_"+o.index],u=Math.abs(a[1]-a[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);s=c?u/p*c:u}else{var g=r.getData();s=Math.abs(a[1]-a[0])/g.count()}var v=ao(r.get("barWidth"),s),_=ao(r.get("barMaxWidth"),s),y=ao(r.get("barMinWidth")||(function wG(n){return n.pipelineContext&&n.pipelineContext.large}(r)?.5:1),s),b=r.get("barGap"),w=r.get("barCategoryGap");e.push({bandWidth:s,barWidth:v,barMaxWidth:_,barMinWidth:y,barGap:b,barCategoryGap:w,axisKey:_R(o),stackId:vR(r)})}),function bG(n){var t={};he(n,function(r,i){var o=r.axisKey,a=r.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var c=r.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var u=r.barWidth;u&&!l[c].width&&(l[c].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var d=r.barMaxWidth;d&&(l[c].maxWidth=d);var p=r.barMinWidth;p&&(l[c].minWidth=p);var g=r.barGap;null!=g&&(s.gap=g);var v=r.barCategoryGap;null!=v&&(s.categoryGap=v)});var e={};return he(t,function(r,i){e[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(null==s){var l=oo(o).length;s=Math.max(35-4*l,15)+"%"}var c=ao(s,a),u=ao(r.gap,1),d=r.remainedWidth,p=r.autoWidthCount,g=(d-c)/(p+(p-1)*u);g=Math.max(g,0),he(o,function(b){var w=b.maxWidth,M=b.minWidth;if(b.width){var P=b.width;w&&(P=Math.min(P,w)),M&&(P=Math.max(P,M)),b.width=P,d-=P+u*P,p--}else P=g,w&&wP&&(P=M),P!==g&&(b.width=P,d-=P+u*P,p--)}),g=(d-c)/(p+(p-1)*u),g=Math.max(g,0);var _,v=0;he(o,function(b,w){b.width||(b.width=g),_=b,v+=b.width*(1+u)}),_&&(v-=_.width*u);var y=-v/2;he(o,function(b,w){e[i][w]=e[i][w]||{bandWidth:a,offset:y,width:b.width},y+=b.width*(1+u)})}),e}(e)}var xG=function(n){function t(e){var r=n.call(this,e)||this;return r.type="time",r}return qn(t,n),t.prototype.getLabel=function(e){var r=this.getSetting("useUTC");return eO(e.value,yH[function mpe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(d0(this._minLevelUnit))]||yH.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,r,i){var o=this.getSetting("useUTC");return function vpe(n,t,e,r,i){var o=null;if(Qt(e))o=e;else if(Zn(e))o=e(n.value,t,{level:n.level});else{var a=dt({},Db);if(n.level>0)for(var s=0;s=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(Ft(o)){var d=null==n.level?0:n.level>=0?n.level:o.length+n.level;o=o[d=Math.min(d,o.length-1)]}}return eO(new Date(n.value),o,i,r)}(e,r,i,this.getSetting("locale"),o)},t.prototype.getTicks=function(){var r=this._extent,i=[];if(!this._interval)return i;i.push({value:r[0],level:0});var o=this.getSetting("useUTC"),a=function vme(n,t,e,r){var o=bH,a=0;function s(X,J,ne,ce,Me,Fe,Ne){for(var bt=new Date(J),ue=J,_e=bt[ce]();ue1&&0===Fe&&ne.unshift({value:ne[0].value-ue})}}for(Fe=0;Fe=r[0]&&w<=r[1]&&d++)}var M=(r[1]-r[0])/t;if(d>1.5*M&&p>M/1.5||(c.push(y),d>M||n===o[g]))break}u=[]}}var P=Ns(yn(c,function(X){return Ns(X,function(J){return J.value>=r[0]&&J.value<=r[1]&&!J.notAdd})}),function(X){return X.length>0}),N=[],k=P.length-1;for(g=0;gi&&(this._approxInterval=i);var s=OO.length,l=Math.min(function(n,t,e,r){for(;e>>1;n[i][1]16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function fme(n){return(n/=30*Fc)>6?6:n>3?3:n>2?2:1}function pme(n){return(n/=Ab)>12?12:n>6?6:n>3.5?4:n>2?2:1}function MG(n,t){return(n/=t?Ok:Pk)>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function gme(n){return XV(n,!0)}function mme(n,t,e){var r=new Date(n);switch(d0(t)){case"year":case"month":r[xH(e)](0);case"day":r[MH(e)](1);case"hour":r[PH(e)](0);case"minute":r[OH(e)](0);case"second":r[SH(e)](0),r[TH(e)](0)}return r.getTime()}Ih.registerClass(xG);const _me=xG;var PG=Ih.prototype,jb=Hb.prototype,yme=Go,bme=Math.floor,Cme=Math.ceil,SO=Math.pow,Du=Math.log,yR=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Hb,e._interval=0,e}return qn(t,n),t.prototype.getTicks=function(e){var i=this._extent,o=this._originalScale.getExtent();return yn(jb.getTicks.call(this,e),function(s){var l=s.value,c=Go(SO(this.base,l));return c=l===i[0]&&this._fixMin?TO(c,o[0]):c,{value:c=l===i[1]&&this._fixMax?TO(c,o[1]):c}},this)},t.prototype.setExtent=function(e,r){var i=Du(this.base);e=Du(Math.max(0,e))/i,r=Du(Math.max(0,r))/i,jb.setExtent.call(this,e,r)},t.prototype.getExtent=function(){var e=this.base,r=PG.getExtent.call(this);r[0]=SO(e,r[0]),r[1]=SO(e,r[1]);var o=this._originalScale.getExtent();return this._fixMin&&(r[0]=TO(r[0],o[0])),this._fixMax&&(r[1]=TO(r[1],o[1])),r},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var r=this.base;e[0]=Du(e[0])/Du(r),e[1]=Du(e[1])/Du(r),PG.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(e){e=e||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=function dhe(n){return Math.pow(10,U5(n))}(i);for(e/i*o<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Go(Cme(r[0]/o)*o),Go(bme(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){jb.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return xO(e=Du(e)/Du(this.base),this._extent)},t.prototype.normalize=function(e){return MO(e=Du(e)/Du(this.base),this._extent)},t.prototype.scale=function(e){return e=PO(e,this._extent),SO(this.base,e)},t.type="log",t}(Ih),OG=yR.prototype;function TO(n,t){return yme(n,Mh(t))}OG.getMinorTicks=jb.getMinorTicks,OG.getLabel=jb.getLabel,Ih.registerClass(yR);const wme=yR;var xme=function(){function n(t,e,r){this._prepareParams(t,e,r)}return n.prototype._prepareParams=function(t,e,r){r[1]0&&l>0&&!c&&(s=0),s<0&&l<0&&!u&&(l=0));var p=this._determinedMin,g=this._determinedMax;return null!=p&&(s=p,c=!0),null!=g&&(l=g,u=!0),{min:s,max:l,minFixed:c,maxFixed:u,isBlank:d}},n.prototype.modifyDataMinMax=function(t,e){this[Pme[t]]=e},n.prototype.setDeterminedMinMax=function(t,e){this[Mme[t]]=e},n.prototype.freeze=function(){this.frozen=!0},n}(),Mme={min:"_determinedMin",max:"_determinedMax"},Pme={min:"_dataMin",max:"_dataMax"};function AO(n,t){return null==t?null:tP(t)?NaN:n.parse(t)}function SG(n,t){var e=n.type,r=function Ome(n,t,e){var r=n.rawExtentInfo;return r||(r=new xme(n,t,e),n.rawExtentInfo=r,r)}(n,t,n.getExtent()).calculate();n.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===e){var s=function _G(n,t){var e=[];return t.eachSeriesByType(n,function(r){(function CG(n){return n.coordinateSystem&&"cartesian2d"===n.coordinateSystem.type})(r)&&e.push(r)}),e}("bar",a),l=!1;if(he(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var c=yG(s),u=function Sme(n,t,e,r){var i=e.axis.getExtent(),o=i[1]-i[0],a=function lme(n,t,e){if(n&&t){var r=n[_R(t)];return null!=r&&null!=e?r[vR(e)]:r}}(r,e.axis);if(void 0===a)return{min:n,max:t};var s=1/0;he(a,function(g){s=Math.min(g.offset,s)});var l=-1/0;he(a,function(g){l=Math.max(g.offset+g.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-n,p=u/(1-(s+l)/o)-u;return{min:n-=p*(s/c),max:t+=p*(l/c)}}(i,o,t,c);i=u.min,o=u.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function TG(n,t){var e=t,r=SG(n,e),i=r.extent,o=e.get("splitNumber");n instanceof wme&&(n.base=e.get("logBase"));var a=n.type,s=e.get("interval"),l="interval"===a||"time"===a;n.setExtent(i[0],i[1]),n.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),null!=s&&n.setInterval&&n.setInterval(s)}function Gb(n){var r,t=n.getLabelModel().get("formatter"),e="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(r=t,function(i,o){return n.scale.getFormattedLabel(i,o,r)}):Qt(t)?function(r){return function(i){var o=n.scale.getLabel(i);return r.replace("{value}",o??"")}}(t):Zn(t)?function(r){return function(i,o){return null!=e&&(o=i.value-e),r(bR(n,i),o,null!=i.level?{level:i.level}:null)}}(t):function(r){return n.scale.getLabel(r)}}function bR(n,t){return"category"===n.type?n.scale.getLabel(t):t.value}function Ime(n,t){var e=t*Math.PI/180,r=n.width,i=n.height,o=r*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),a=r*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e));return new ci(n.x,n.y,o,a)}function CR(n){return n.get("interval")??"auto"}function AG(n){return"category"===n.type&&0===CR(n.getLabelModel())}var ip=Math.PI,p1=function(){function n(t,e){this.group=new Bs,this.opt=e,this.axisModel=t,li(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Bs({x:e.position[0],y:e.position[1],rotation:e.rotation});r.updateTransform(),this._transformGroup=r}return n.prototype.hasBuilder=function(t){return!!EG[t]},n.prototype.add=function(t){EG[t](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(t,e,r){var o,a,i=YV(e-t);return DP(i)?(a=r>0?"top":"bottom",o="center"):DP(i-ip)?(a=r>0?"bottom":"top",o="center"):(a="middle",o=i>0&&i0?"right":"left":r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},n.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},n.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},n}(),EG={axisLine:function(n,t,e,r){var i=t.get(["axisLine","show"]);if("auto"===i&&n.handleAutoShown&&(i=n.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(Ac(s,s,a),Ac(l,l,a));var u=dt({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new s1({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});Vb(d.shape,d.style.lineWidth),d.anid="line",e.add(d);var p=t.get(["axisLine","symbol"]);if(null!=p){var g=t.get(["axisLine","symbolSize"]);Qt(p)&&(p=[p,p]),(Qt(g)||Ei(g))&&(g=[g,g]);var v=kj(t.get(["axisLine","symbolOffset"])||0,g),_=g[0],y=g[1];he([{rotate:n.rotation+Math.PI/2,offset:v[0],r:0},{rotate:n.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(b,w){if("none"!==p[w]&&null!=p[w]){var M=_0(p[w],-_/2,-y/2,_,y,u.stroke,!0),P=b.r+b.offset,N=c?l:s;M.attr({rotation:b.rotate,x:N[0]+P*Math.cos(n.rotation),y:N[1]-P*Math.sin(n.rotation),silent:!0,z2:11}),e.add(M)}})}}},axisTickLabel:function(n,t,e,r){var i=function Fme(n,t,e,r){var i=e.axis,o=e.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=NG(i.getTicksCoords(),t.transform,l,li(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;dc[1]?-1:1,d=["start"===o?c[0]-u*l:"end"===o?c[1]+u*l:(c[0]+c[1])/2,RG(o)?n.labelOffset+a*l:0],g=t.get("nameRotate");null!=g&&(g=g*ip/180),RG(o)?p=p1.innerTextLayout(n.rotation,g??n.rotation,a):(p=function Nme(n,t,e,r){var o,a,i=YV(e-n),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return DP(i-ip/2)?(a=l?"bottom":"top",o="center"):DP(i-1.5*ip)?(a=l?"top":"bottom",o="center"):(a="middle",o=i<1.5*ip&&i>ip/2?l?"left":"right":l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}(n.rotation,o,g||0,c),null!=(v=n.axisNameAvailableWidth)&&(v=Math.abs(v/Math.sin(p.rotation)),!isFinite(v)&&(v=null)));var _=s.getFont(),y=t.get("nameTruncate",!0)||{},b=y.ellipsis,w=Qy(n.nameTruncateMaxWidth,y.maxWidth,v),M=new as({x:d[0],y:d[1],rotation:p.rotation,silent:p1.isLabelSilent(t),style:Kf(s,{text:i,font:_,overflow:"truncate",width:w,ellipsis:b,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(Yk({el:M,componentModel:t,itemName:i}),M.__fullText=i,M.anid="name",t.get("triggerEvent")){var P=p1.makeAxisEventDataBase(t);P.targetType="axisName",P.name=i,qi(M).eventData=P}r.add(M),M.updateTransform(),e.add(M),M.decomposeTransform()}}};function $c(n){n&&(n.ignore=!0)}function kG(n,t){var e=n&&n.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(e&&r){var i=ZE([]);return XE(i,i,-n.rotation),e.applyTransform(Wv([],i,n.getLocalTransform())),r.applyTransform(Wv([],i,t.getLocalTransform())),e.intersect(r)}}function RG(n){return"middle"===n||"center"===n}function NG(n,t,e,r,i){for(var o=[],a=[],s=[],l=0;l=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,r){xR("axisPointer",r)},t.prototype.dispose=function(e,r){xR("axisPointer",r)},t.type="axisPointer",t}(Dh);const rve=nve;function GG(n,t){var i,e=[],r=n.seriesIndex;if(null==r||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=Xg(o,n);if(null==a||a<0||Ft(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var c=l.getBaseAxis(),d=l.getOtherAxis(c).dim,g="x"===d||"radius"===d?1:0,v=o.mapDimension(c.dim),_=[];_[g]=o.get(v,a),_[1-g]=o.get(o.getCalculationInfo("stackResultDimension"),a),e=l.dataToPoint(_)||[]}else e=l.dataToPoint(o.getValues(yn(l.dimensions,function(b){return o.mapDimension(b)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),e=[y.x+y.width/2,y.y+y.height/2]}return{point:e,el:s}}var WG=Wo();function ive(n,t,e){var r=n.currTrigger,i=[n.x,n.y],o=n,a=n.dispatchAction||Qi(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){DO(i)&&(i=GG({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=DO(i),c=o.axesInfo,u=s.axesInfo,d="leave"===r||DO(i),p={},g={},v={list:[],map:{}},_={showPointer:jo(ave,g),showTooltip:jo(sve,v)};he(s.coordSysMap,function(b,w){var M=l||b.containPoint(i);he(s.coordSysAxesInfo[w],function(P,N){var k=P.axis,z=function dve(n,t){for(var e=0;e<(n||[]).length;e++){var r=n[e];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(c,P);if(!d&&M&&(!c||z)){var U=z&&z.value;null==U&&!l&&(U=k.pointToData(i)),null!=U&&qG(P,U,_,!1,p)}})});var y={};return he(u,function(b,w){var M=b.linkGroup;M&&!g[w]&&he(M.axesInfo,function(P,N){var k=g[N];if(P!==b&&k){var z=k.value;M.mapper&&(z=b.axis.scale.parse(M.mapper(z,ZG(P),ZG(b)))),y[b.key]=z}})}),he(y,function(b,w){qG(u[w],b,_,!0,p)}),function lve(n,t,e){var r=e.axesInfo=[];he(t,function(i,o){var a=i.axisPointerModel.option,s=n[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),"show"===a.status&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}(g,u,p),function cve(n,t,e,r){if(!DO(t)&&n.list.length){var i=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:n.list})}else r({type:"hideTip"})}(v,i,n,a),function uve(n,t,e){var r=e.getZr(),i="axisPointerLastHighlights",o=WG(r)[i]||{},a=WG(r)[i]={};he(n,function(c,u){var d=c.axisPointerModel.option;"show"===d.status&&he(d.seriesDataIndices,function(p){a[p.seriesIndex+" | "+p.dataIndex]=p})});var s=[],l=[];he(o,function(c,u){!a[u]&&l.push(c)}),he(a,function(c,u){!o[u]&&s.push(c)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(u,0,e),p}}function qG(n,t,e,r,i){var o=n.axis;if(!o.scale.isBlank()&&o.containData(t)){if(!n.involveSeries)return void e.showPointer(n,t);var a=function ove(n,t){var e=t.axis,r=e.dim,i=n,o=[],a=Number.MAX_VALUE,s=-1;return he(t.seriesModels,function(l,c){var d,p,u=l.getData().mapDimensionsAll(r);if(l.getAxisTooltipData){var g=l.getAxisTooltipData(u,n,e);p=g.dataIndices,d=g.nestestValue}else{if(!(p=l.getData().indicesOfNearest(u[0],n,"category"===e.type?.5:null)).length)return;d=l.getData().get(u[0],p[0])}if(null!=d&&isFinite(d)){var v=n-d,_=Math.abs(v);_<=a&&((_=0&&s<0)&&(a=_,s=v,i=d,o.length=0),he(p,function(y){o.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:o,snapToValue:i}}(t,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&dt(i,s[0]),!r&&n.snap&&o.containData(l)&&null!=l&&(t=l),e.showPointer(n,t,s),e.showTooltip(n,a,l)}}function ave(n,t,e,r){n[t.key]={value:e,payloadBatch:r}}function sve(n,t,e,r){var i=e.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,c=zb(l),u=n.map[c];u||(u=n.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function ZG(n){var t=n.axis.model,e={},r=e.axisDim=n.axis.dim;return e.axisIndex=e[r+"AxisIndex"]=t.componentIndex,e.axisName=e[r+"AxisName"]=t.name,e.axisId=e[r+"AxisId"]=t.id,e}function DO(n){return!n||null==n[0]||isNaN(n[0])||null==n[1]||isNaN(n[1])}function YG(n){eG.registerAxisPointerClass("CartesianAxisPointer",Zme),n.registerComponentModel(Xme),n.registerComponentView(rve),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Ft(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function V1e(n,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function z1e(n,t,e){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];he(e.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var l=zb(s.model),c=n.coordSysAxesInfo[l]={};n.coordSysMap[l]=s;var d=s.model.getModel("tooltip",r);if(he(s.getAxes(),jo(_,!1,null)),s.getTooltipAxes&&r&&d.get("show")){var p="axis"===d.get("trigger"),g="cross"===d.get(["axisPointer","type"]),v=s.getTooltipAxes(d.get(["axisPointer","axis"]));(p||g)&&he(v.baseAxes,jo(_,!g||"cross",p)),g&&he(v.otherAxes,jo(_,"cross",!1))}}function _(y,b,w){var M=w.model.getModel("axisPointer",i),P=M.get("show");if(P&&("auto"!==P||y||oR(M))){null==b&&(b=M.get("triggerTooltip")),M=y?function H1e(n,t,e,r,i,o){var a=t.getModel("axisPointer"),l={};he(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(p){l[p]=kr(a.get(p))}),l.snap="category"!==n.type&&!!o,"cross"===a.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===i){var u=a.get(["label","show"]);if(c.show=u??!0,!o){var d=l.lineStyle=a.get("crossStyle");d&&li(c,d.textStyle)}}return n.model.getModel("axisPointer",new ls(l,e,r))}(w,d,i,t,y,b):M;var N=M.get("snap"),k=zb(w.model),z=b||N||"category"===w.type,U=n.axesInfo[k]={key:k,axis:w,coordSys:s,axisPointerModel:M,triggerTooltip:b,involveSeries:z,snap:N,useHandle:oR(M),seriesModels:[],linkGroup:null};c[k]=U,n.seriesInvolved=n.seriesInvolved||z;var W=function G1e(n,t){for(var e=t.model,r=t.dim,i=0;i1&&r&&r.length>1){var o=XG(r)/XG(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=function gve(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:n[0].target,event:t}}}}},KG="silent";function vve(){nG(this.event)}var _ve=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.handler=null,e}return ki(t,n),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(bd),Wb=function n(t,e){this.x=t,this.y=e},yve=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],PR=new ci(0,0,0,0),JG=function(n){function t(e,r,i,o,a){var s=n.call(this)||this;return s._hovered=new Wb(0,0),s.storage=e,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new _ve,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new fve(s),s}return ki(t,n),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(he(yve,function(r){e.on&&e.on(r,this[r],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var r=e.zrX,i=e.zrY,o=eW(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(s=(a=this.findHover(a.x,a.y)).target);var l=this._hovered=o?new Wb(r,i):this.findHover(r,i),c=l.target,u=this.proxy;u.setCursor&&u.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(l,"mousemove",e),c&&c!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var r=e.zrEventControl;"only_globalout"!==r&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==r&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Wb(0,0)},t.prototype.dispatch=function(e,r){var i=this[e];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var r=this.proxy;r.setCursor&&r.setCursor(e)},t.prototype.dispatchToElement=function(e,r,i){var o=(e=e||{}).target;if(!o||!o.silent){for(var a="on"+r,s=function mve(n,t,e){return{type:n,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:vve}}(r,e,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){"function"==typeof l[a]&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(e,r,i){var o=this.storage.getDisplayList(),a=new Wb(e,r);if(QG(o,a,e,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,u=new ci(e-c,r-c,l,l),d=o.length-1;d>=0;d--){var p=o[d];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(PR.copy(p.getBoundingRect()),p.transform&&PR.applyTransform(p.transform),PR.intersect(u)&&s.push(p))}if(s.length)for(var v=Math.PI/12,_=2*Math.PI,y=0;y=0;o--){var a=n[o],s=void 0;if(a!==i&&!a.ignore&&(s=bve(a,e,r))&&(!t.topTarget&&(t.topTarget=a),s!==KG)){t.target=a;break}}}function eW(n,t,e){var r=n.painter;return t<0||t>r.getWidth()||e<0||e>r.getHeight()}he(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){JG.prototype[n]=function(t){var o,a,e=t.zrX,r=t.zrY,i=eW(this,e,r);if(("mouseup"!==n||!i)&&(a=(o=this.findHover(e,r)).target),"mousedown"===n)this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if("mouseup"===n)this._upEl=a;else if("click"===n){if(this._downEl!==this._upEl||!this._downPoint||i5(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,n,t)}});const Cve=JG;var tW=32,qb=7;function rW(n,t,e,r){var i=t+1;if(i===e)return 1;if(r(n[i++],n[t])<0){for(;i=0;)i++;return i-t}function iW(n,t,e,r,i){for(r===t&&r++;r>>1])<0?s=l:a=l+1;var c=r-a;switch(c){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;c>0;)n[a+c]=n[a+c-1],c--}n[a]=o}}function OR(n,t,e,r,i,o){var a=0,s=0,l=1;if(o(n,t[e+i])>0){for(s=r-i;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var c=a;a=i-l,l=i-c}for(a++;a>>1);o(n,t[e+u])>0?a=u+1:l=u}return l}function SR(n,t,e,r,i,o){var a=0,s=0,l=1;if(o(n,t[e+i])<0){for(s=i+1;ls&&(l=s);var c=a;a=i-l,l=i-c}else{for(s=r-i;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(n,t[e+u])<0?l=u:a=u+1}return l}function IO(n,t,e,r){e||(e=0),r||(r=n.length);var i=r-e;if(!(i<2)){var o=0;if(i=qb||X>=qb);if(J)break;U<0&&(U=0),U+=2}if((e=U)<1&&(e=1),1===b){for(P=0;P=0;P--)n[W+P]=n[U+P];if(0===b){ce=!0;break}}if(n[z--]=c[k--],1==--M){ce=!0;break}if(0!=(ne=M-OR(n[N],c,0,M,M-1,t))){for(M-=ne,W=1+(z-=ne),U=1+(k-=ne),P=0;P=qb||ne>=qb);if(ce)break;X<0&&(X=0),X+=2}if((e=X)<1&&(e=1),1===M){for(W=1+(z-=b),U=1+(N-=b),P=b-1;P>=0;P--)n[W+P]=n[U+P];n[z]=c[k]}else{if(0===M)throw new Error;for(U=z-(M-1),P=0;P=0;P--)n[W+P]=n[U+P];n[z]=c[k]}else for(U=z-(M-1),P=0;P1;){var y=l-2;if(y>=1&&s[y-1]<=s[y]+s[y+1]||y>=2&&s[y-2]<=s[y]+s[y-1])s[y-1]s[y+1])break;g(y)}},forceMergeRuns:function p(){for(;l>1;){var y=l-2;y>0&&s[y-1]=tW;)t|=1&n,n>>=1;return n+t}(i);do{if((o=rW(n,e,r,t))s&&(l=s),iW(n,e,e+l,e+o,t),o=l}a.pushRun(e,o),a.mergeRuns(),i-=o,e+=o}while(0!==i);a.forceMergeRuns()}}var oW=!1;function TR(){oW||(oW=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function aW(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var Pve=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=aW}return n.prototype.traverse=function(t,e){for(var r=0;r0&&(u.__clipPaths=[]),isNaN(u.z)&&(TR(),u.z=0),isNaN(u.z2)&&(TR(),u.z2=0),isNaN(u.zlevel)&&(TR(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,e,r);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,e,r);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,e,r)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,r=t.length;e=0&&this._roots.splice(i,1)}},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Ove=Pve;var sW;sW=lr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const AR=sW;function C0(){return(new Date).getTime()}var Sve=function(n){function t(e){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,r.stage=(e=e||{}).stage||{},r}return ki(t,n),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var r=e.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(e){if(e.animation){var r=e.prev,i=e.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var r=e.getClip();r&&this.removeClip(r),e.animation=null},t.prototype.update=function(e){for(var r=C0()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next;o.step(r,i)&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,AR(function r(){e._running&&(AR(r),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=C0(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=C0(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=C0()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var r=e.next;e.prev=e.next=e.animation=null,e=r}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,r){r=r||{},this.start();var i=new v5(e,r.loop);return this.addAnimator(i),i},t}(bd);const Tve=Sve;var DR=lr.domSupported,IR=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:yn(n,function(i){var o=i.replace("mouse","pointer");return e.hasOwnProperty(o)?o:i})}}(),lW={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},cW=!1;function ER(n){var t=n.pointerType;return"pen"===t||"touch"===t}function kR(n){n&&(n.zrByTouch=!0)}function uW(n,t){for(var e=t,r=!1;e&&9!==e.nodeType&&!(r=e.domBelongToZr||e!==t&&e===n.painterRoot);)e=e.parentNode;return r}var Eve=function n(t,e){this.stopPropagation=cl,this.stopImmediatePropagation=cl,this.preventDefault=cl,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Iu={mousedown:function(n){n=Bc(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Bc(this.dom,n);var t=this.__mayPointerCapture;t&&(n.zrX!==t[0]||n.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=Bc(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){uW(this,(n=Bc(this.dom,n)).toElement||n.relatedTarget)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){cW=!0,n=Bc(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){cW||(n=Bc(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){kR(n=Bc(this.dom,n)),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Iu.mousemove.call(this,n),Iu.mousedown.call(this,n)},touchmove:function(n){kR(n=Bc(this.dom,n)),this.handler.processGesture(n,"change"),Iu.mousemove.call(this,n)},touchend:function(n){kR(n=Bc(this.dom,n)),this.handler.processGesture(n,"end"),Iu.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<300&&Iu.click.call(this,n)},pointerdown:function(n){Iu.mousedown.call(this,n)},pointermove:function(n){ER(n)||Iu.mousemove.call(this,n)},pointerup:function(n){Iu.mouseup.call(this,n)},pointerout:function(n){ER(n)||Iu.mouseout.call(this,n)}};he(["click","dblclick","contextmenu"],function(n){Iu[n]=function(t){t=Bc(this.dom,t),this.trigger(n,t)}});var RR={pointermove:function(n){ER(n)||RR.mousemove.call(this,n)},pointerup:function(n){RR.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function EO(n,t,e,r){n.mounted[t]=e,n.listenerOpts[t]=r,function J1e(n,t,e,r){n.addEventListener(t,e,r)}(n.domTarget,t,e,r)}function NR(n){var t=n.mounted;for(var e in t)t.hasOwnProperty(e)&&Q1e(n.domTarget,e,t[e],n.listenerOpts[e]);n.mounted={}}var dW=function n(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Nve=function(n){function t(e,r){var i=n.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=r,i._localHandlerScope=new dW(e,Iu),DR&&(i._globalHandlerScope=new dW(document,RR)),function kve(n,t){var e=t.domHandlers;lr.pointerEventsSupported?he(IR.pointer,function(r){EO(t,r,function(i){e[r].call(n,i)})}):(lr.touchEventsSupported&&he(IR.touch,function(r){EO(t,r,function(i){e[r].call(n,i),function Dve(n){n.touching=!0,null!=n.touchTimer&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}(t)})}),he(IR.mouse,function(r){EO(t,r,function(i){i=cR(i),t.touching||e[r].call(n,i)})}))}(i,i._localHandlerScope),i}return ki(t,n),t.prototype.dispose=function(){NR(this._localHandlerScope),DR&&NR(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,DR&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var r=this._globalHandlerScope;e?function Rve(n,t){function e(r){EO(t,r,function i(o){o=cR(o),uW(n,o.target)||(o=function Ive(n,t){return Bc(n.dom,new Eve(n,t),!0)}(n,o),t.domHandlers[r].call(n,o))},{capture:!0})}lr.pointerEventsSupported?he(lW.pointer,e):lr.touchEventsSupported||he(lW.mouse,e)}(this,r):NR(r)}},t}(bd);const Lve=Nve;var kO={},g1={},$ve=function(){function n(t,e,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=e,this.id=t;var o=new Ove,a=r.renderer||"canvas";kO[a]||(a=oo(kO)[0]),r.useDirtyRect=null!=r.useDirtyRect&&r.useDirtyRect;var s=new kO[a](e,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var g,c=lr.node||lr.worker||l?null:new Lve(s.getViewportRoot(),s.root),u=r.useCoarsePointer;(null==u||"auto"===u?lr.touchEventsSupported:!!u)&&(g=Tr(r.pointerSize,44)),this.handler=new Cve(o,s,c,s.root,g),this.animation=new Tve({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},n.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},n.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function Bve(n){if(!n)return!1;if("string"==typeof n)return mP(n,1)<.4;if(n.colorStops){for(var t=n.colorStops,e=0,r=t.length,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},n.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},n.prototype.on=function(t,e,r){return this.handler.on(t,e,r),this},n.prototype.off=function(t,e){this.handler.off(t,e)},n.prototype.trigger=function(t,e){this.handler.trigger(t,e)},n.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e=0;l--)o[l]&&!_b(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,e[i]=o}}),delete e[gW],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,r){var i=this._componentsMap.get(e);if(i){var o=i[r||0];if(o)return o;if(null==r)for(var a=0;a=t:"max"===e?n<=t:n===t})(r[c],o,l)||(i=!1)}}),i}const t0e=Xve;var Eu=he,Yb=pn,xW=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function FR(n){var t=n&&n.itemStyle;if(t)for(var e=0,r=xW.length;e=0;y--){var b=n[y];if(s||(v=b.data.rawIndexOf(b.stackedByDimension,g)),v>=0){var w=b.data.getByRawIndex(b.stackResultDimension,v);if("all"===l||"positive"===l&&w>0||"negative"===l&&w<0||"samesign"===l&&p>=0&&w>0||"samesign"===l&&p<=0&&w<0){p=che(p,w),_=w;break}}}return r[0]=p,r[1]=_,r})})}var DW=Wo(),IW={itemStyle:nb(Rz,!0),lineStyle:nb(kz,!0)},d0e={lineStyle:"stroke",itemStyle:"fill"};function EW(n,t){return n.visualStyleMapper||IW[t]||(console.warn("Unknown style type '"+t+"'."),IW.itemStyle)}function kW(n,t){return n.visualDrawType||d0e[t]||(console.warn("Unknown style type '"+t+"'."),"fill")}var h0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=n.getModel(r),a=EW(n,r)(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=kW(n,r),c=a[l],u=Zn(c)?c:null;if(!a[l]||u||"auto"===a.fill||"auto"===a.stroke){var p=n.getColorFromPalette(n.name,null,t.getSeriesCount());a[l]||(a[l]=p,e.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Zn(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||Zn(a.stroke)?p:a.stroke}if(e.setVisual("style",a),e.setVisual("drawType",l),!t.isSeriesFiltered(n)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(g,v){var _=n.getDataParams(v),y=dt({},a);y[l]=u(_),g.setItemVisual(v,"style",y)}}}},Jb=new ls,f0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!n.ignoreStyleOnData&&!t.isSeriesFiltered(n)){var e=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=EW(n,r),o=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){Jb.option=l[r];var c=i(Jb);dt(a.ensureUniqueItemVisual(s,"style"),c),Jb.option.decal&&(a.setItemVisual(s,"decal",Jb.option.decal),Jb.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},p0e={performRawSeries:!0,overallReset:function(n){var t=sr();n.eachSeries(function(e){var r=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+r,o=t.get(i);o||t.set(i,o={}),DW(e).scope=o}}),n.eachSeries(function(e){if(!e.isColorBySeries()&&!n.isSeriesFiltered(e)){var r=e.getRawData(),i={},o=e.getData(),a=DW(e).scope,l=kW(e,e.visualStyleAccessPath||"itemStyle");o.each(function(c){var u=o.getRawIndex(c);i[u]=c}),r.each(function(c){var u=i[c];if(o.getItemVisual(u,"colorFromPalette")){var p=o.ensureUniqueItemVisual(u,"style"),g=r.getName(c)||c+"",v=r.count();p[l]=e.getColorFromPalette(g,a,v)}})}})}},NO=Math.PI,m0e=function(){function n(t,e,r,i){this._stageTaskMap=sr(),this.ecInstance=t,this.api=e,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return n.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},n.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,a=!e&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex?r.step:null,s=i&&i.modDataCount;return{step:a,modBy:null!=s?Math.ceil(s/a):null,modDataCount:s}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,e){var r=this._pipelineMap.get(t.uid),o=t.getData().count(),a=r.progressiveEnabled&&e.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l="mod"===t.get("progressiveChunkMode")?o:null;t.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},n.prototype.restorePipelines=function(t){var e=this,r=e._pipelineMap=sr();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),e._pipe(i,i.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),r=this.api;he(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{});Ch(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,r),i.overallReset&&this._createOverallStageTask(i,o,e,r)},this)},n.prototype.prepareView=function(t,e,r,i){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=r,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},n.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},n.prototype.performVisualTasks=function(t,e,r){this._performStageTasks(this._visualHandlers,t,e,r)},n.prototype._performStageTasks=function(t,e,r,i){i=i||{};var o=!1,a=this;function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}he(t,function(l,c){if(!i.visualType||i.visualType===l.visualType){var u=a._stageTaskMap.get(l.uid),d=u.seriesTaskMap,p=u.overallTask;if(p){var g,v=p.agentStubMap;v.each(function(y){s(i,y)&&(y.dirty(),g=!0)}),g&&p.dirty(),a.updatePayload(p,r);var _=a.getPerformArgs(p,i.block);v.each(function(y){y.perform(_)}),p.perform(_)&&(o=!0)}else d&&d.each(function(y,b){s(i,y)&&y.dirty();var w=a.getPerformArgs(y,i.block);w.skip=!l.performRawSeries&&e.isSeriesFiltered(y.context.model),a.updatePayload(y,r),y.perform(w)&&(o=!0)})}}),this.unfinished=o||this.unfinished},n.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(r){e=r.dataTask.perform()||e}),this.unfinished=e||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},n.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},n.prototype._createSeriesStageTask=function(t,e,r,i){var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=sr(),l=t.seriesType,c=t.getTargetSeries;function u(d){var p=d.uid,g=s.set(p,a&&a.get(p)||Rb({plan:C0e,reset:w0e,count:M0e}));g.context={model:d,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(d,g)}t.createOnAllSeries?r.eachRawSeries(u):l?r.eachRawSeriesByType(l,u):c&&c(r,i).each(u)},n.prototype._createOverallStageTask=function(t,e,r,i){var o=this,a=e.overallTask=e.overallTask||Rb({reset:v0e});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=sr(),c=t.seriesType,u=t.getTargetSeries,d=!0,p=!1;function v(_){var y=_.uid,b=l.set(y,s&&s.get(y)||(p=!0,Rb({reset:_0e,onDirty:b0e})));b.context={model:_,overallProgress:d},b.agent=a,b.__block=d,o._pipe(_,b)}Ch(!t.createOnAllSeries,""),c?r.eachRawSeriesByType(c,v):u?u(r,i).each(v):(d=!1,he(r.getSeries(),v)),p&&a.dirty()},n.prototype._pipe=function(t,e){var i=this._pipelineMap.get(t.uid);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},n.wrapStageHandler=function(t,e){return Zn(t)&&(t={overallReset:t,seriesType:P0e(t)}),t.uid=XP("stageHandler"),e&&(t.visualType=e),t},n}();function v0e(n){n.overallReset(n.ecModel,n.api,n.payload)}function _0e(n){return n.overallProgress&&y0e}function y0e(){this.agent.dirty(),this.getDownstream().dirty()}function b0e(){this.agent&&this.agent.dirty()}function C0e(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function w0e(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=ss(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?yn(t,function(e,r){return RW(r)}):x0e}var x0e=RW(0);function RW(n){return function(t,e){var r=e.data,i=e.resetDefines[n];if(i&&i.dataEach)for(var o=t.start;o0&&g===c.length-p.length){var v=c.slice(0,g);"data"!==v&&(e.mainType=v,e[p.toLowerCase()]=l,u=!0)}}s.hasOwnProperty(c)&&(r[c]=l,u=!0),u||(i[c]=l)})}return{cptQuery:e,dataQuery:r,otherQuery:i}},n.prototype.filter=function(t,e){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=e.cptQuery,c=e.dataQuery;return u(l,a,"mainType")&&u(l,a,"subType")&&u(l,a,"index","componentIndex")&&u(l,a,"name")&&u(l,a,"id")&&u(c,o,"name")&&u(c,o,"dataIndex")&&u(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,o));function u(d,p,g,v){return null==d[g]||p[v||g]===d[g]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),$R=["symbol","symbolSize","symbolRotate","symbolOffset"],zW=$R.concat(["symbolKeepAspect"]),A0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData();if(n.legendIcon&&e.setVisual("legendIcon",n.legendIcon),n.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<$R.length;a++){var s=$R[a],l=n.get(s);Zn(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||n.defaultSymbol,e.setVisual(dt({legendIcon:n.legendIcon||r.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(n)){var c=oo(i);return{dataEach:o?function u(d,p){for(var g=n.getRawValue(p),v=n.getDataParams(p),_=0;_=0&&m1(l)?l:.5,n.createRadialGradient(a,s,0,a,s,l)}(n,t,e):function $0e(n,t,e){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*e.width+e.x,i=i*e.width+e.x,o=o*e.height+e.y,a=a*e.height+e.y),r=m1(r)?r:0,i=m1(i)?i:1,o=m1(o)?o:0,a=m1(a)?a:0,n.createLinearGradient(r,o,i,a)}(n,t,e),i=t.colorStops,o=0;o0&&function z0e(n,t){return n&&"solid"!==n&&t>0?"dashed"===n?[4*t,2*t]:"dotted"===n?[t]:Ei(n)?[n]:Ft(n)?n:null:null}(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(e){var i=t.strokeNoScale&&n.getLineScale?n.getLineScale():1;i&&1!==i&&(e=yn(e,function(o){return o/i}),r/=i)}return[e,r]}var H0e=new Zf(!0);function UO(n){var t=n.stroke;return!(null==t||"none"===t||!(n.lineWidth>0))}function jW(n){return"string"==typeof n&&"none"!==n}function VO(n){var t=n.fill;return null!=t&&"none"!==t}function GW(n,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var e=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=e}else n.fill()}function WW(n,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var e=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=e}else n.stroke()}function VR(n,t,e){var r=jU(t.image,t.__image,e);if(oP(r)){var i=n.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*due),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var qW=["shadowBlur","shadowOffsetX","shadowOffsetY"],ZW=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function YW(n,t,e,r,i){var o=!1;if(!r&&t===(e=e||{}))return!1;if(r||t.opacity!==e.opacity){pl(n,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(a)?Ug.opacity:a}(r||t.blend!==e.blend)&&(o||(pl(n,i),o=!0),n.globalCompositeOperation=t.blend||Ug.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,r,i){if(!this[ds]){if(this._disposed)return;var o,a,s;if(pn(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[ds]=!0,!this._model||r){var l=new t0e(this._api),c=this._theme,u=this._model=new CW;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,c,this._locale,l)}this._model.setOption(e,{replaceMerge:a},eN);var d={seriesTransition:s,optionChanged:!0};if(i)this[gl]={silent:o,updateParams:d},this[ds]=!1,this.getZr().wakeUp();else{try{M0(this),op.update.call(this,null,d)}catch(p){throw this[gl]=null,this[ds]=!1,p}this._ssr||this._zr.flush(),this[gl]=null,this[ds]=!1,nC.call(this,o),rC.call(this,o)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||lr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return this._zr.painter.getRenderedCanvas({backgroundColor:(e=e||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return this._zr.painter.renderToString({useViewBox:(e=e||{}).useViewBox})},t.prototype.getSvgDataURL=function(){if(lr.svgSupported){var e=this._zr;return he(e.storage.getDisplayList(),function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var i=this._model,o=[],a=this;he((e=e||{}).excludeComponents,function(l){i.eachComponent({mainType:l},function(c){var u=a._componentsMap[c.__viewId];u.group.ignore||(o.push(u),u.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return he(o,function(l){l.group.ignore=!1}),s}},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var r="svg"===e.type,i=this.group,o=Math.min,a=Math.max,s=1/0;if(ZO[i]){var l=s,c=s,u=-s,d=-s,p=[],g=e&&e.pixelRatio||this.getDevicePixelRatio();he(_1,function(M,P){if(M.group===i){var N=r?M.getZr().painter.getSvgDom().innerHTML:M.renderToCanvas(kr(e)),k=M.getDom().getBoundingClientRect();l=o(k.left,l),c=o(k.top,c),u=a(k.right,u),d=a(k.bottom,d),p.push({dom:N,left:k.left,top:k.top})}});var v=(u*=g)-(l*=g),_=(d*=g)-(c*=g),y=bh.createCanvas(),b=hW(y,{renderer:r?"svg":"canvas"});if(b.resize({width:v,height:_}),r){var w="";return he(p,function(M){w+=''+M.dom+""}),b.painter.getSvgRoot().innerHTML=w,e.connectedBackgroundColor&&b.painter.setBackgroundColor(e.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}return e.connectedBackgroundColor&&b.add(new ka({shape:{x:0,y:0,width:v,height:_},style:{fill:e.connectedBackgroundColor}})),he(p,function(M){var P=new Zg({style:{x:M.left*g-l,y:M.top*g-c,image:M.dom}});b.add(P)}),b.refreshImmediately(),y.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,r){return ZR(this,"convertToPixel",e,r)},t.prototype.convertFromPixel=function(e,r){return ZR(this,"convertFromPixel",e,r)},t.prototype.containPixel=function(e,r){var o;if(!this._disposed)return he(H5(this._model,e),function(s,l){l.indexOf("Models")>=0&&he(s,function(c){var u=c.coordinateSystem;if(u&&u.containPoint)o=o||!!u.containPoint(r);else if("seriesModels"===l){var d=this._chartsMap[c.__viewId];d&&d.containPoint&&(o=o||d.containPoint(r,c))}},this)},this),!!o},t.prototype.getVisual=function(e,r){var o=H5(this._model,e,{defaultMainType:"series"}),s=o.seriesModel.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return null!=l?function I0e(n,t,e){switch(e){case"color":return n.getItemVisual(t,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(t,e)}}(s,l,r):function E0e(n,t){switch(t){case"color":return n.getVisual("style")[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(t)}}(s,r)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;he(_2e,function(r){var i=function(o){var l,a=e.getModel(),s=o.target;if("globalout"===r?l={}:s&&eC(s,function(v){var _=qi(v);if(_&&null!=_.dataIndex){var y=_.dataModel||a.getSeriesByIndex(_.seriesIndex);return l=y&&y.getDataParams(_.dataIndex,_.dataType)||{},!0}if(_.eventData)return l=dt({},_.eventData),!0},!0),l){var u=l.componentType,d=l.componentIndex;("markLine"===u||"markPoint"===u||"markArea"===u)&&(u="series",d=l.seriesIndex);var p=u&&null!=d&&a.getComponent(u,d),g=p&&e["series"===p.mainType?"_chartsMap":"_componentsMap"][p.__viewId];l.event=o,l.type=r,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:g},e.trigger(r,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(r,i,e)}),he(iC,function(r,i){e._messageCenter.on(i,function(o){this.trigger(i,o)},e)}),he(["selectchanged"],function(r){e._messageCenter.on(r,function(i){this.trigger(r,i)},e)}),function R0e(n,t,e){n.on("selectchanged",function(r){var i=e.getModel();r.isFromClick?(x0("map","selectchanged",t,i,r),x0("pie","selectchanged",t,i,r)):"select"===r.fromAction?(x0("map","selected",t,i,r),x0("pie","selected",t,i,r)):"unselect"===r.fromAction&&(x0("map","unselected",t,i,r),x0("pie","unselected",t,i,r))})}(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&oz(this.getDom(),nN,"");var r=this,i=r._api,o=r._model;he(r._componentsViews,function(a){a.dispose(o,i)}),he(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete _1[r.id]}},t.prototype.resize=function(e){if(!this[ds]){if(this._disposed)return;this._zr.resize(e);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),r){var i=r.resetOption("media"),o=e&&e.silent;this[gl]&&(null==o&&(o=this[gl].silent),i=!0,this[gl]=null),this[ds]=!0;try{i&&M0(this),op.update.call(this,{type:"resize",animation:dt({duration:0},e&&e.animation)})}catch(a){throw this[ds]=!1,a}this[ds]=!1,nC.call(this,o),rC.call(this,o)}}},t.prototype.showLoading=function(e,r){if(!this._disposed&&(pn(e)&&(r=e,e=""),e=e||"default",this.hideLoading(),tN[e])){var i=tN[e](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)}},t.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var r=dt({},e);return r.type=iC[e.type],r},t.prototype.dispatchAction=function(e,r){if(!this._disposed&&(pn(r)||(r={silent:!!r}),WO[e.type]&&this._model)){if(this[ds])return void this._pendingActions.push(e);var i=r.silent;XR.call(this,e,i);var o=r.flush;o?this._zr.flush():!1!==o&&lr.browser.weChat&&this._throttledZrFlush(),nC.call(this,i),rC.call(this,i)}},t.prototype.updateLabelLayout=function(){ku.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(!this._disposed){var r=e.seriesIndex;this.getModel().getSeriesByIndex(r).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(d){d.clearColorPalette(),d.eachSeries(function(p){p.clearColorPalette()})}function i(d){for(var p=[],g=d.currentStates,v=0;v0?{duration:_,delay:g.get("delay"),easing:g.get("easing")}:null;p.eachRendered(function(b){if(b.states&&b.states.emphasis){if(Ub(b))return;if(b instanceof Li&&function qhe(n){var t=lz(n);t.normalFill=n.style.fill,t.normalStroke=n.style.stroke;var e=n.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}(b),b.__dirty){var w=b.prevStates;w&&b.useStates(w)}if(v){b.stateTransition=y;var M=b.getTextContent(),P=b.getTextGuideLine();M&&(M.stateTransition=y),P&&(P.stateTransition=y)}b.__dirty&&i(b)}})}M0=function(d){var p=d._scheduler;p.restorePipelines(d._model),p.prepareStageTasks(),qR(d,!0),qR(d,!1),p.plan()},qR=function(d,p){for(var g=d._model,v=d._scheduler,_=p?d._componentsViews:d._chartsViews,y=p?d._componentsMap:d._chartsMap,b=d._zr,w=d._api,M=0;M<_.length;M++)_[M].__alive=!1;function P(k){var z=k.__requireNewView;k.__requireNewView=!1;var U="_ec_"+k.id+"_"+k.type,W=!z&&y[U];if(!W){var X=_d(k.type);(W=new(p?Dh.getClass(X.main,X.sub):Ah.getClass(X.sub))).init(g,w),y[U]=W,_.push(W),b.add(W.group)}k.__viewId=W.__id=U,W.__alive=!0,W.__model=k,W.group.__ecComponentInfo={mainType:k.mainType,index:k.componentIndex},!p&&v.prepareView(W,k,g,w)}for(p?g.eachComponent(function(k,z){"series"!==k&&P(z)}):g.eachSeries(P),M=0;M<_.length;){var N=_[M];N.__alive?M++:(!p&&N.renderTask.dispose(),b.remove(N.group),N.dispose(g,w),_.splice(M,1),y[N.__id]===N&&delete y[N.__id],N.__id=N.group.__ecComponentInfo=null)}},HO=function(d,p,g,v,_){var y=d._model;if(y.setUpdatePayload(g),v){var b={};b[v+"Id"]=g[v+"Id"],b[v+"Index"]=g[v+"Index"],b[v+"Name"]=g[v+"Name"];var w={mainType:v,query:b};_&&(w.subType=_);var P,M=g.excludeSeriesId;null!=M&&(P=sr(),he(ss(M),function(k){var z=Pu(k,null);null!=z&&P.set(z,!0)})),y&&y.eachComponent(w,function(k){if(!P||null==P.get(k.id))if(Oz(g))if(k instanceof g0)g.type===Kg&&!g.notBlur&&!k.get(["emphasis","disabled"])&&function Bhe(n,t,e){var r=n.seriesIndex,i=n.getData(t.dataType);if(i){var o=Xg(i,t);o=(Ft(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&lp.get("hoverLayerThreshold")&&!lr.node&&!lr.worker&&p.eachSeries(function(y){if(!y.preventUsingHoverLayer){var b=d._chartsMap[y.__viewId];b.__alive&&b.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}(d,p),ku.trigger("series:afterupdate",p,g,_)},Vc=function(d){d[GR]=!0,d.getZr().wakeUp()},Mq=function(d){d[GR]&&(d.getZr().storage.traverse(function(p){Ub(p)||i(p)}),d[GR]=!1)},wq=function(d){return new(function(p){function g(){return null!==p&&p.apply(this,arguments)||this}return qn(g,p),g.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(v){for(;v;){var _=v.__ecComponentInfo;if(null!=_)return d._model.getComponent(_.mainType,_.index);v=v.parent}},g.prototype.enterEmphasis=function(v,_){FP(v,_),Vc(d)},g.prototype.leaveEmphasis=function(v,_){BP(v,_),Vc(d)},g.prototype.enterBlur=function(v){(function Fhe(n){Oh(n,q5)})(v),Vc(d)},g.prototype.leaveBlur=function(v){_z(v),Vc(d)},g.prototype.enterSelect=function(v){yz(v),Vc(d)},g.prototype.leaveSelect=function(v){bz(v),Vc(d)},g.prototype.getModel=function(){return d.getModel()},g.prototype.getViewOfComponentModel=function(v){return d.getViewOfComponentModel(v)},g.prototype.getViewOfSeriesModel=function(v){return d.getViewOfSeriesModel(v)},g}(wW))(d)},xq=function(d){function p(g,v){for(var _=0;_=0)){Dq.push(e);var o=FW.wrapStageHandler(e,i);o.__prio=t,o.__raw=e,n.push(o)}}function Iq(n,t){tN[n]=t}y1(2e3,h0e),y1(4500,f0e),y1(4500,p0e),y1(2e3,A0e),y1(4500,D0e),y1(7e3,function e2e(n,t){n.eachRawSeries(function(e){if(!n.isSeriesFiltered(e)){var r=e.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");s&&(r.ensureUniqueItemVisual(a,"style").decal=HR(s,t))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=HR(i,t))}})}),Tq(AW),Aq(900,function c0e(n){var t=sr();n.eachSeries(function(e){var r=e.get("stack");if(r){var i=t.get(r)||t.set(r,[]),o=e.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(u0e)}),Iq("default",function g0e(n,t){li(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Bs,r=new ka({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(r);var a,i=new as({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new ka({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return e.add(o),t.showSpinner&&((a=new zk({shape:{startAngle:-NO/2,endAngle:-NO/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*NO/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*NO/2}).delay(300).start("circularInOut"),e.add(a)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(n.getWidth()-2*l-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),u=n.getHeight()/2;t.showSpinner&&a.setShape({cx:c,cy:u}),o.setShape({x:c-l,y:u-l,width:2*l,height:2*l}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}),P0({type:Kg,event:Kg,update:Kg},cl),P0({type:RP,event:RP,update:RP},cl),P0({type:bb,event:bb,update:bb},cl),P0({type:NP,event:NP,update:NP},cl),P0({type:Cb,event:Cb,update:Cb},cl),Sq("light",O0e),Sq("dark",S0e);var Eq=[],T2e={registerPreprocessor:Tq,registerProcessor:Aq,registerPostInit:function w2e(n){rN("afterinit",n)},registerPostUpdate:function x2e(n){rN("afterupdate",n)},registerUpdateLifecycle:rN,registerAction:P0,registerCoordinateSystem:function M2e(n,t){yk.register(n,t)},registerLayout:function P2e(n,t){iN(qO,n,t,1e3,"layout")},registerVisual:y1,registerTransform:function Lpe(n){var t=(n=kr(n)).type;t||Fs("");var r=t.split(":");2!==r.length&&Fs("");var i=!1;"echarts"===r[0]&&(t=r[1],i=!0),n.__isBuiltIn=i,BH.set(t,n)},registerLoading:Iq,registerMap:function O2e(n,t,e){var r=function r2e(n){return lq[n]}("registerMap");r&&r(n,t,e)},registerImpl:function n2e(n,t){lq[n]=t},PRIORITY:g2e,ComponentModel:so,ComponentView:Dh,SeriesModel:g0,ChartView:Ah,registerComponentModel:function(n){so.registerClass(n)},registerComponentView:function(n){Dh.registerClass(n)},registerSeriesModel:function(n){g0.registerClass(n)},registerChartView:function(n){Ah.registerClass(n)},registerSubTypeDefaulter:function(n,t){so.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){!function Uve(n,t){kO[n]=t}(n,t)}};function ap(n){Ft(n)?he(n,function(t){ap(t)}):Ii(Eq,n)>=0||(Eq.push(n),Zn(n)&&(n={install:n}),n.install(T2e))}var A2e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e}return qn(t,n),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(so);const D2e=A2e;function kq(n){var t=n.get("confine");return null!=t?!!t:"richText"===n.get("renderMode")}function Rq(n){if(lr.domSupported)for(var t=document.documentElement.style,e=0,r=n.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"===o?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"===o?225:45)+"deg)");var u=c*Math.PI/180,d=a+i,p=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),v=t+" solid "+i+"px;";return'
'}(r,i,o)),Qt(t))a.innerHTML=t+s;else if(t){a.innerHTML="",Ft(t)||(t=[t]);for(var l=0;l=0?this._tryShow(o,a):"leave"===i&&this._hide(a))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,r=this._ecModel,i=this._api,o=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(e,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,r,i,o){if(o.from!==this.uid&&!lr.node&&i.getDom()){var a=Vq(o,i);this._ticket="";var s=o.dataByCoordSys,l=function Y2e(n,t,e){var r=j5(n).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var l,a=yb(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(e.getViewOfComponentModel(a).group.traverse(function(c){var u=qi(c).tooltipConfig;if(u&&u.name===n.name)return l=c,!0}),l))return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}(o,r,i);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&null!=o.x&&null!=o.y){var u=j2e;u.x=o.x,u.y=o.y,u.update(),qi(u).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:u},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(null!=o.seriesIndex){if(this._manuallyAxisShowTip(e,r,i,o))return;var d=GG(o,r),p=d.point[0],g=d.point[1];null!=p&&null!=g&&this._tryShow({offsetX:p,offsetY:g,target:d.el,position:o.position,positionDefault:"bottom"},a)}else null!=o.x&&null!=o.y&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(e,r,i,o){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(Vq(o,i))},t.prototype._manuallyAxisShowTip=function(e,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=s&&null!=l){var c=r.getSeriesByIndex(a);if(c&&"axis"===oC([c.getData().getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}},t.prototype._tryShow=function(e,r){var i=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,e);else if(i){var s,l;this._lastDataByCoordSys=null,eC(i,function(c){return null!=qi(c).dataIndex?(s=c,!0):null!=qi(c).tooltipConfig?(l=c,!0):void 0},!0),s?this._showSeriesItemTooltip(e,s,r):l?this._showComponentItemTooltip(e,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(e,r){var i=e.get("showDelay");r=Qi(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(e,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=oC([r.tooltipOption],o),l=this._renderMode,c=[],u=Nb("section",{blocks:[],noHeader:!0}),d=[],p=new Lk;he(e,function(w){he(w.dataByAxis,function(M){var P=i.getComponent(M.axisDim+"Axis",M.axisIndex),N=M.value;if(P&&null!=N){var k=FG(N,P.axis,i,M.seriesDataIndices,M.valueLabelOpt),z=Nb("section",{header:k,noHeader:!vd(k),sortBlocks:!0,blocks:[]});u.blocks.push(z),he(M.seriesDataIndices,function(U){var W=i.getSeriesByIndex(U.seriesIndex),X=U.dataIndexInside,J=W.getDataParams(X);if(!(J.dataIndex<0)){J.axisDim=M.axisDim,J.axisIndex=M.axisIndex,J.axisType=M.axisType,J.axisId=M.axisId,J.axisValue=bR(P.axis,{value:N}),J.axisValueLabel=k,J.marker=p.makeTooltipMarker("item",r1(J.color),l);var ne=LH(W.formatTooltip(X,!0,null)),ce=ne.frag;if(ce){var Me=oC([W],o).get("valueFormatter");z.blocks.push(Me?dt({valueFormatter:Me},ce):ce)}ne.text&&d.push(ne.text),c.push(J)}})}})}),u.blocks.reverse(),d.reverse();var g=r.position,v=s.get("order"),_=jH(u,p,l,v,i.get("useUTC"),s.get("textStyle"));_&&d.unshift(_);var b=d.join("richText"===l?"\n\n":"
");this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,c)?this._updatePosition(s,g,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,b,c,Math.random()+"",a[0],a[1],g,null,p)})},t.prototype._showSeriesItemTooltip=function(e,r,i){var o=this._ecModel,a=qi(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,u=a.dataIndex,d=a.dataType,p=c.getData(d),g=this._renderMode,v=e.positionDefault,_=oC([p.getItemModel(u),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),y=_.get("trigger");if(null==y||"item"===y){var b=c.getDataParams(u,d),w=new Lk;b.marker=w.makeTooltipMarker("item",r1(b.color),g);var M=LH(c.formatTooltip(u,!1,d)),P=_.get("order"),N=_.get("valueFormatter"),k=M.frag,z=k?jH(N?dt({valueFormatter:N},k):k,w,g,P,o.get("useUTC"),_.get("textStyle")):M.text,U="item_"+c.name+"_"+u;this._showOrMove(_,function(){this._showTooltipContent(_,z,b,U,e.offsetX,e.offsetY,e.position,e.target,w)}),i({type:"showTip",dataIndexInside:u,dataIndex:p.getRawIndex(u),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,r,i){var o=qi(r),s=o.tooltipConfig.option||{};Qt(s)&&(s={content:s,formatter:s});var c=[s],u=this._ecModel.getComponent(o.componentMainType,o.componentIndex);u&&c.push(u),c.push({formatter:s.content});var d=e.positionDefault,p=oC(c,this._tooltipModel,d?{position:d}:null),g=p.get("content"),v=Math.random()+"",_=new Lk;this._showOrMove(p,function(){var y=kr(p.get("formatterParams")||{});this._showTooltipContent(p,g,y,v,e.offsetX,e.offsetY,e.position,r,_)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,r,i,o,a,s,l,c,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var d=this._tooltipContent;d.setEnterable(e.get("enterable"));var p=e.get("formatter");l=l||e.get("position");var g=r,_=this._getNearestPoint([a,s],i,e.get("trigger"),e.get("borderColor")).color;if(p)if(Qt(p)){var y=e.ecModel.get("useUTC"),b=Ft(i)?i[0]:i;g=p,b&&b.axisType&&b.axisType.indexOf("time")>=0&&(g=eO(b.axisValue,g,y)),g=EH(g,i,!0)}else if(Zn(p)){var M=Qi(function(P,N){P===this._ticket&&(d.setContent(N,u,e,_,l),this._updatePosition(e,l,a,s,d,i,c))},this);this._ticket=o,g=p(i,o,M)}else g=p;d.setContent(g,u,e,_,l),d.show(e,_),this._updatePosition(e,l,a,s,d,i,c)}},t.prototype._getNearestPoint=function(e,r,i,o){return"axis"===i||Ft(r)?{color:o||("html"===this._renderMode?"#fff":"none")}:Ft(r)?void 0:{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(e,r,i,o,a,s,l){var c=this._api.getWidth(),u=this._api.getHeight();r=r||e.get("position");var d=a.getSize(),p=e.get("align"),g=e.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Zn(r)&&(r=r([i,o],s,a.el,v,{viewSize:[c,u],contentSize:d.slice()})),Ft(r))i=ao(r[0],c),o=ao(r[1],u);else if(pn(r)){var _=r;_.width=d[0],_.height=d[1];var y=a1(_,{width:c,height:u});i=y.x,o=y.y,p=null,g=null}else if(Qt(r)&&l){var b=function Z2e(n,t,e,r){var i=e[0],o=e[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=t.width,u=t.height;switch(n){case"inside":s=t.x+c/2-i/2,l=t.y+u/2-o/2;break;case"top":s=t.x+c/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-i/2,l=t.y+u+a;break;case"left":s=t.x-i-a,l=t.y+u/2-o/2;break;case"right":s=t.x+c+a,l=t.y+u/2-o/2}return[s,l]}(r,v,d,e.get("borderWidth"));i=b[0],o=b[1]}else b=function W2e(n,t,e,r,i,o,a){var s=e.getSize(),l=s[0],c=s[1];return null!=o&&(n+l+o+2>r?n-=l+o:n+=o),null!=a&&(t+c+a>i?t-=c+a:t+=a),[n,t]}(i,o,a,c,u,p?null:20,g?null:20),i=b[0],o=b[1];p&&(i-=zq(p)?d[0]/2:"right"===p?d[0]:0),g&&(o-=zq(g)?d[1]/2:"bottom"===g?d[1]:0),kq(e)&&(b=function q2e(n,t,e,r,i){var o=e.getSize(),a=o[0],s=o[1];return n=Math.min(n+a,r)-a,t=Math.min(t+s,i)-s,[n=Math.max(n,0),t=Math.max(t,0)]}(i,o,a,c,u),i=b[0],o=b[1]),a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(e,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===e.length;return a&&he(i,function(s,l){var c=s.dataByAxis||[],d=(e[l]||{}).dataByAxis||[];(a=a&&c.length===d.length)&&he(c,function(p,g){var v=d[g]||{},_=p.seriesDataIndices||[],y=v.seriesDataIndices||[];(a=a&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&_.length===y.length)&&he(_,function(b,w){var M=y[w];a=a&&b.seriesIndex===M.seriesIndex&&b.dataIndex===M.dataIndex}),o&&he(p.seriesDataIndices,function(b){var w=b.seriesIndex,M=r[w],P=o[w];M&&P&&P.data!==M.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=r,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,r){lr.node||!r.getDom()||(uR(this,"_updatePosition"),this._tooltipContent.dispose(),xR("itemTooltip",r))},t.type="tooltip",t}(Dh);function oC(n,t,e){var i,r=t.ecModel;e?(i=new ls(e,r,r),i=new ls(t.option,i,r)):i=t;for(var o=n.length-1;o>=0;o--){var a=n[o];a&&(a instanceof ls&&(a=a.get("tooltip",!0)),Qt(a)&&(a={formatter:a}),a&&(i=new ls(a,i,r)))}return i}function Vq(n,t){return n.dispatchAction||Qi(t.dispatchAction,t)}function zq(n){return"center"===n||"middle"===n}const X2e=G2e;function aC(n){ap(YG),n.registerComponentModel(D2e),n.registerComponentView(X2e),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},cl),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},cl)}var K2e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return qn(t,n),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(so);const J2e=K2e;var Q2e=function(){function n(){}return n.prototype.getNeedCrossZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){},n}(),aN=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return qn(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ou).models[0]},t.type="cartesian2dAxis",t}(so);md(aN,Q2e);var Hq={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},e_e=ei({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Hq),sN=ei({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Hq);const r_e={category:e_e,value:sN,time:ei({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},sN),log:li({logBase:10},sN)};var i_e={value:1,category:1,time:1,log:1};function jq(n,t,e,r){he(i_e,function(i,o){var a=ei(ei({},r_e[o],!0),r,!0),s=function(l){function c(){var u=null!==l&&l.apply(this,arguments)||this;return u.type=t+"Axis."+o,u}return qn(c,l),c.prototype.mergeDefaultAndTheme=function(u,d){var p=kb(this),g=p?sO(u):{};ei(u,d.getTheme().get(o+"Axis")),ei(u,this.getDefaultOption()),u.type=Gq(u),p&&f0(u,g,p)},c.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=fR.createByAxisModel(this))},c.prototype.getCategories=function(u){var d=this.option;if("category"===d.type)return u?d.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=t+"Axis."+o,c.defaultOption=a,c}(e);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(t+"Axis",Gq)}function Gq(n){return n.type||(n.data?"category":"value")}var o_e=function(){function n(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return n.prototype.getAxis=function(t){return this._axes[t]},n.prototype.getAxes=function(){return yn(this._dimList,function(t){return this._axes[t]},this)},n.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ns(this.getAxes(),function(e){return e.scale.type===t})},n.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},n}(),lN=["x","y"];function Wq(n){return"interval"===n.type||"time"===n.type}var s_e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=lN,e}return qn(t,n),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,r=this.getAxis("y").scale;if(Wq(e)&&Wq(r)){var i=e.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],c=o[1]-o[0];if(l&&c){var u=(s[0]-a[0])/l,d=(s[1]-a[1])/c,v=this._transform=[u,0,0,d,a[0]-i[0]*u,a[1]-o[0]*d];this._invTransform=KE([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,r){var i=this.dataToPoint(e),o=this.dataToPoint(r),a=this.getArea(),s=new ci(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,r,i){i=i||[];var o=e[0],a=e[1];if(this._transform&&null!=o&&isFinite(o)&&null!=a&&isFinite(a))return Ac(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},t.prototype.clampData=function(e,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(e[0]),c=o.parse(e[1]);return(r=r||[])[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(e,r){var i=[];if(this._invTransform)return Ac(i,e,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(e[0]),r),i[1]=a.coordToData(a.toLocalCoord(e[1]),r),i},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),o=Math.min(r[0],r[1]),a=Math.max(e[0],e[1])-i,s=Math.max(r[0],r[1])-o;return new ci(i,o,a,s)},t}(o_e);const l_e=s_e;var sC=Wo();function qq(n,t){var o,a,e=Zq(n,"labels"),r=CR(t);return Yq(e,r)||(Zn(r)?o=Jq(n,r):(a="auto"===r?function p_e(n){return sC(n).autoInterval??(sC(n).autoInterval=n.calculateCategoryInterval())}(n):r,o=Kq(n,a)),Xq(e,r,{labels:o,labelCategoryInterval:a}))}function Zq(n,t){return sC(n)[t]||(sC(n)[t]=[])}function Yq(n,t){for(var e=0;e1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=AG(n),p=a.get("showMinLabel")||d,g=a.get("showMaxLabel")||d;p&&c!==o[0]&&_(o[0]);for(var v=c;v<=o[1];v+=l)_(v);function _(y){var b={value:y};s.push(e?y:{formattedLabel:r(b),rawLabel:i.getLabel(b),tickValue:y})}return g&&v-l!==o[1]&&_(o[1]),s}function Jq(n,t,e){var r=n.scale,i=Gb(n),o=[];return he(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;t(a.value,s)&&o.push(e?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var Qq=[0,1],v_e=function(){function n(t,e,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=r||[0,0]}return n.prototype.contain=function(t){var e=this._extent,r=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=r&&t<=i},n.prototype.containData=function(t){return this.scale.contain(t)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(t){return function lhe(n,t){var e=Math.log,r=Math.LN10,i=Math.floor(e(n[1]-n[0])/r),o=Math.round(e(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(t,e){var r=this._extent;r[0]=t,r[1]=e},n.prototype.dataToCoord=function(t,e){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&eZ(r=r.slice(),i.count()),$5(t,Qq,r,e)},n.prototype.coordToData=function(t,e){var r=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&eZ(r=r.slice(),i.count());var o=$5(t,r,Qq,e);return this.scale.scale(o)},n.prototype.pointToData=function(t,e){},n.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),o=yn(function u_e(n,t){return"category"===n.type?function h_e(n,t){var o,a,e=Zq(n,"ticks"),r=CR(t),i=Yq(e,r);if(i)return i;if((!t.get("show")||n.scale.isBlank())&&(o=[]),Zn(r))o=Jq(n,r,!0);else if("auto"===r){var s=qq(n,n.getLabelModel());a=s.labelCategoryInterval,o=yn(s.labels,function(l){return l.tickValue})}else o=Kq(n,a=r,!0);return Xq(e,r,{ticks:o,tickCategoryInterval:a})}(n,t):{ticks:yn(n.scale.getTicks(),function(e){return e.value})}}(this,e).ticks,function(s){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function __e(n,t,e,r){var i=t.length;if(n.onBand&&!e&&i){var a,o=n.getExtent();if(1===i)t[0].coord=o[0],a=t[1]={coord:o[0]};else{var c=(t[i-1].coord-t[0].coord)/(t[i-1].tickValue-t[0].tickValue);he(t,function(g){g.coord-=c/2});var u=n.scale.getExtent();t.push(a={coord:t[i-1].coord+c*(1+u[1]-t[i-1].tickValue)})}var d=o[0]>o[1];p(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&p(o[0],t[0].coord)&&t.unshift({coord:o[0]}),p(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&p(a.coord,o[1])&&t.push({coord:o[1]})}function p(g,v){return g=Go(g),v=Go(v),d?g>v:g0&&e<100||(e=5),yn(this.scale.getMinorTicks(e),function(o){return yn(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this)},n.prototype.getViewLabels=function(){return function c_e(n){return"category"===n.type?function d_e(n){var t=n.getLabelModel(),e=qq(n,t);return!t.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}(n):function f_e(n){var t=n.scale.getTicks(),e=Gb(n);return{labels:yn(t,function(r,i){return{level:r.level,formattedLabel:e(r,i),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}(n)}(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),r=e[1]-e[0]+(this.onBand?1:0);0===r&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},n.prototype.calculateCategoryInterval=function(){return function g_e(n){var t=function m_e(n){var t=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(n),e=Gb(n),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=n.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=n.dataToCoord(l+1)-n.dataToCoord(l),u=Math.abs(c*Math.cos(r)),d=Math.abs(c*Math.sin(r)),p=0,g=0;l<=o[1];l+=s){var _,y=JE(e({value:l}),t.font,"center","top");_=1.3*y.height,p=Math.max(p,1.3*y.width,7),g=Math.max(g,_,7)}var b=p/u,w=g/d;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var M=Math.max(0,Math.floor(Math.min(b,w))),P=sC(n.model),N=n.getExtent(),k=P.lastAutoInterval,z=P.lastTickCount;return null!=k&&null!=z&&Math.abs(k-M)<=1&&Math.abs(z-a)<=1&&k>M&&P.axisExtent0===N[0]&&P.axisExtent1===N[1]?M=k:(P.lastTickCount=a,P.lastAutoInterval=M,P.axisExtent0=N[0],P.axisExtent1=N[1]),M}(this)},n}();function eZ(n,t){var i=(n[1]-n[0])/t/2;n[0]+=i,n[1]-=i}var y_e=function(n){function t(e,r,i,o,a){var s=n.call(this,e,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return qn(t,n),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),e&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(e,r){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),r)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(v_e);const b_e=y_e;var cN=Math.log,w_e=function(){function n(t,e,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lN,this._initCartesian(t,e,r),this.model=t}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(t,e){var r=this._axesMap;function i(a){var s,l=oo(a),c=l.length;if(c){for(var u=[],d=c-1;d>=0;d--){var g=a[+l[d]],v=g.model,_=g.scale;pR(_)&&v.get("alignTicks")&&null==v.get("interval")?u.push(g):(TG(_,v),pR(_)&&(s=g))}u.length&&(s||TG((s=u.pop()).scale,s.model),he(u,function(y){!function C_e(n,t,e){var r=Hb.prototype,i=r.getTicks.call(e),o=r.getTicks.call(e,!0),a=i.length-1,s=r.getInterval.call(e),l=SG(n,t),c=l.extent,u=l.fixMin,d=l.fixMax;if("log"===n.type){var p=cN(n.base);c=[cN(c[0])/p,cN(c[1])/p]}n.setExtent(c[0],c[1]),n.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:d});var g=r.getExtent.call(n);u&&(c[0]=g[0]),d&&(c[1]=g[1]);var v=r.getInterval.call(n),_=c[0],y=c[1];if(u&&d)v=(y-_)/a;else if(u)for(y=c[0]+v*a;yc[0]&&isFinite(_)&&isFinite(c[0]);)v=gR(v),_=c[1]-v*a;else{n.getTicks().length-1>a&&(v=gR(v));var w=v*a;(_=Go((y=Math.ceil(c[1]/v)*v)-w))<0&&c[0]>=0?(_=0,y=Go(w)):y>0&&c[1]<=0&&(y=0,_=-Go(w))}var M=(i[0].value-o[0].value)/s,P=(i[a].value-o[a].value)/s;r.setExtent.call(n,_+v*M,y+v*P),r.setInterval.call(n,v),(M||P)&&r.setNiceExtent.call(n,_+v,y-v)}(y.scale,y.model,s.scale)}))}}this._updateScale(t,this.model),i(r.x),i(r.y);var o={};he(r.x,function(a){tZ(r,"y",a,o)}),he(r.y,function(a){tZ(r,"x",a,o)}),this.resize(this.model,e)},n.prototype.resize=function(t,e,r){var i=t.getBoxLayoutParams(),o=!r&&t.get("containLabel"),a=a1(i,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;function l(){he(s,function(c){var u=c.isHorizontal(),d=u?[0,a.width]:[0,a.height],p=c.inverse?1:0;c.setExtent(d[p],d[1-p]),function x_e(n,t){var e=n.getExtent(),r=e[0]+e[1];n.toGlobalCoord="x"===n.dim?function(i){return i+t}:function(i){return r-i+t},n.toLocalCoord="x"===n.dim?function(i){return i-t}:function(i){return r-i+t}}(c,u?a.x:a.y)})}l(),o&&(he(s,function(c){if(!c.model.get(["axisLabel","inside"])){var u=function Dme(n){var e=n.scale;if(n.model.get(["axisLabel","show"])&&!e.isBlank()){var r,i,o=e.getExtent();i=e instanceof mG?e.count():(r=e.getTicks()).length;var l,a=n.getLabelModel(),s=Gb(n),c=1;i>40&&(c=Math.ceil(i/40));for(var u=0;u0&&r>0||e<0&&r<0)}(n)}const M_e=w_e;var dN=Wo(),S_e=["axisLine","axisTickLabel","axisName"],T_e=["splitArea","splitLine","minorSplitLine"],rZ=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return qn(t,n),t.prototype.render=function(e,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Bs,this.group.add(this._axisGroup),e.get("show")){var s=e.getCoordSysModel(),l=wR(s,e),c=new LG(e,dt({handleAutoShown:function(d){for(var p=s.coordinateSystem.getCartesians(),g=0;gYO?performance.now():Date.now(),aZ=n=>{XO[n]=void 0,O0[n]&&(O0[n]=void 0),YO&&(hN||performance.clearMeasures(n),performance.clearMarks(n))},sZ=n=>{if(YO){if(hN&&k_e){const t=new PerformanceObserver(e=>{O0[n]=e.getEntries().find(r=>r.name===n),t.disconnect()});t.observe({entryTypes:["measure"]})}performance.mark(n)}XO[n]=fN()},lZ=(n,t)=>{try{const e=XO[n];return YO?(t||performance.mark(`${n}-end`),performance.measure(n,n,t||`${n}-end`),hN?O0[n]?O0[n]:e?{duration:fN()-e,startTime:e,entryType:"measure",name:n}:{}:performance.getEntriesByName(n).pop()||{}):e?{duration:fN()-e,startTime:e,entryType:"measure",name:n}:{}}catch{return{}}finally{aZ(n),aZ(t||`${n}-end`)}},R_e=function(n,t,e,r){return{circle:n,progress:t,"progress-dark":e,pulse:r}};function N_e(n,t){if(1&n&&fe(0,"span",1),2&n){const e=se();E("ngClass",function SB(n,t,e,r,i,o,a){return IB(qe(),Ta(),n,t,e,r,i,o,a)}(4,R_e,"circle"===e.appearance,"progress"===e.animation,"progress-dark"===e.animation,"pulse"===e.animation))("ngStyle",e.theme),wc("aria-label",e.ariaLabel)("aria-valuetext",e.loadingText)}}const cZ=new Ct("ngx-skeleton-loader.config");let ba=(()=>{class n{constructor(e){const{appearance:r="line",animation:i="progress",theme:o=null,loadingText:a="Loading...",count:s=1,ariaLabel:l="loading"}=e||{};this.appearance=r,this.animation=i,this.theme=o,this.loadingText=a,this.count=s,this.items=[],this.ariaLabel=l}ngOnInit(){sZ("NgxSkeletonLoader:Rendered"),sZ("NgxSkeletonLoader:Loaded"),this.validateInputValues()}validateInputValues(){/^\d+$/.test(`${this.count}`)||(this.count=1),this.items.length=this.count;-1===["progress","progress-dark","pulse","false"].indexOf(String(this.animation))&&(this.animation="progress"),-1===["circle","line",""].indexOf(String(this.appearance))&&(this.appearance="")}ngOnChanges(e){["count","animation","appearance"].find(r=>e[r]&&(e[r].isFirstChange()||e[r].previousValue===e[r].currentValue))||this.validateInputValues()}ngAfterViewInit(){lZ("NgxSkeletonLoader:Rendered")}ngOnDestroy(){lZ("NgxSkeletonLoader:Loaded")}}return n.\u0275fac=function(e){return new(e||n)(ye(cZ,8))},n.\u0275cmp=xt({type:n,selectors:[["ngx-skeleton-loader"]],inputs:{count:"count",loadingText:"loadingText",appearance:"appearance",animation:"animation",ariaLabel:"ariaLabel",theme:"theme"},features:[co],decls:1,vars:1,consts:[["class","skeleton-loader","aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],["aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",1,"skeleton-loader",3,"ngClass","ngStyle"]],template:function(e,r){1&e&&ee(0,N_e,1,9,"span",0),2&e&&E("ngForOf",r.items)},dependencies:[ma,Vo,Gi],styles:['.skeleton-loader[_ngcontent-%COMP%]{box-sizing:border-box;overflow:hidden;position:relative;background:#eff1f6 no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.skeleton-loader[_ngcontent-%COMP%]:after, .skeleton-loader[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.circle[_ngcontent-%COMP%]{width:40px;height:40px;margin:5px;border-radius:50%}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{transform:translate(0)}.skeleton-loader.progress[_ngcontent-%COMP%]:after, .skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:after, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{-webkit-animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.skeleton-loader.progress[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.skeleton-loader.pulse[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;-webkit-animation-delay:.5s;animation-delay:.5s}@media (prefers-reduced-motion: reduce){.skeleton-loader.pulse[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.progress[_ngcontent-%COMP%]{-webkit-animation:none;animation:none}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{background-image:none}}@-webkit-keyframes _ngcontent-%COMP%_progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@keyframes _ngcontent-%COMP%_progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@-webkit-keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}'],changeDetection:0}),n})(),lp=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:cZ,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({imports:[[Wi]]}),n})();function uZ(n,t,e){var r=bh.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",n)),r.width=i*e,r.height=o*e,r}var L_e=function(n){function t(e,r,i){var a,o=n.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||MP,"string"==typeof e?a=uZ(e,r,i):pn(e)&&(e=(a=e).id),o.id=e,o.dom=a;var s=a.style;return s&&(FU(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return ki(t,n),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=uZ("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var y,a=[],s=this.maxRepaintRectCount,l=!1,c=new ci(0,0,0,0);function u(w){if(w.isFinite()&&!w.isZero())if(0===a.length)(M=new ci(0,0,0,0)).copy(w),a.push(M);else{for(var P=!1,N=1/0,k=0,z=0;z=s)}}for(var d=this.__startIndex;d15)break}Me.prevElClipPaths&&b.restore()};if(w)if(0===w.length)U=y.__endIndex;else for(var X=g.dpr,J=0;J0&&t>i[0]){for(l=0;lt);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=e,!e.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(e.dom,c.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this}},n.prototype.eachLayer=function(t,e){for(var r=this._zlevelList,i=0;i0?.01:0),this._needsManuallyCompositing),u.__builtin__||VE("ZLevel "+c+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==l&&(u.__dirty=!0),u.__startIndex=l,u.__drawIndex=u.incremental?-1:l,e(l),o=u),i.__dirty&ql&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(d,p){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,he(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var r=this._layerConfig;r[t]?ei(r[t],e,!0):r[t]=e;for(var i=0;iMath.abs(r-t.clientWidth)>2&&(r=t.clientWidth,!0)),R(i=>t.clientWidth))}static getHeightSensor(t,e=2e3){let r=t.clientHeight;return hZ(e).pipe(Te(i=>Math.abs(r-t.clientHeight)>2&&(r=t.clientHeight,!0)),R(i=>t.clientWidth))}}let cC=(()=>{class n{constructor(e){this._el=e,this.extentions=[],this.isResizable=!0,this.defaultWidth=400,this.defaultHeight=400,this.periodicityInMiliSeconds=2e3,this.theme="",this.chartInit=new _r}ngOnInit(){ap([...this.extentions,z_e]),this._echartsInstance=function C2e(n,t,e){var r=!(e&&e.ssr);if(r){var i=function Oq(n){return _1[function Mhe(n,t){return n.getAttribute?n.getAttribute(t):n[t]}(n,nN)]}(n);if(i)return i}var o=new GO(n,t,e);return o.id="ec_"+y2e++,_1[o.id]=o,r&&oz(n,nN,o.id),xq(o),ku.trigger("afterinit",o),o}(this._el.nativeElement,this.theme,{width:this._el.nativeElement.clientWidth===this.defaultWidth?400:void 0,height:0===this._el.nativeElement.clientHeight?this.defaultHeight:void 0}),this.chartInit.emit(this._echartsInstance),this._setParams(),this.isResizable&&this._addResizbleFunctionality()}ngOnChanges(e){e.options&&!e.options.firstChange&&this._setParams(),e.isResizable&&!e.isResizable.firstChange&&(this.isResizable?this._addResizbleFunctionality():null!=this._subscription&&this._subscription.unsubscribe())}_addResizbleFunctionality(){null!=this._subscription&&this._subscription.unsubscribe(),this._subscription=H_e.getWidthSensor(this._el.nativeElement).subscribe(()=>{null!=this._echartsInstance&&this._echartsInstance.resize()})}_setParams(){null!=this._echartsInstance&&null!=this.options&&this._echartsInstance.setOption(this.options,!0)}ngOnDestroy(){null!=this._subscription&&this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(ye(wr))},n.\u0275dir=Ht({type:n,selectors:[["","echarts",""]],inputs:{options:"options",extentions:"extentions",isResizable:"isResizable",defaultWidth:"defaultWidth",defaultHeight:"defaultHeight",periodicityInMiliSeconds:"periodicityInMiliSeconds",theme:"theme"},outputs:{chartInit:"chartInit"},features:[co]}),n})(),j_e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({}),n})();var S0;function G_e(n,t){1&n&&(Ue(0),h(1," "),Ve())}const W_e=function(){return{display:"block",padding:"0"}},q_e=function(n){return{"margin-top":"0px","margin-bottom":"10px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":n}};function Z_e(n,t){if(1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",4),h(2,"\n")),2&n){const e=se();A(1),E("ngStyle",Wt(2,W_e))("theme",Nt(3,q_e,(null==e.chart?null:e.chart.height)>20?"10px":"5px"))}}const Y_e=function(n,t){return{"height.px":n,padding:t}},X_e=function(n,t){return{"height.px":n,opacity:t}};let uC=(S0=class{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.loading=!0,this._data=null,this.echartsExtentions=[CO,aC,lC]}onChartInit(t){this._chart=t}drawChart(t){this.chart?.dummy&&(t=this.fillDummyData(t)),this.chart?.sort&&(t=gd.orderBy(t,"x","asc"));const e=[{data:t?.map(r=>r.y),name:this.chart?.yAxisName,type:"line",smooth:!0,symbol:"none",lineStyle:{color:this.chart?.lineColor,width:this.chart?.lineWidth},areaStyle:this.chart?.areaStyleColor?{color:this.chart?.areaStyleColor,opacity:.3}:null}];this._chart&&this._chart?.destroy();try{this.options={textStyle:{color:"#888888",fontSize:12,fontFamily:'"Montserrat", sans-serif'},xAxis:{type:this.chart?.xType||"category",name:this.chart?.xAxisName,data:t?.map(r=>r.x),axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1}},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1},splitLine:{show:!1}},tooltip:{triggerOn:"mousemove",trigger:"axis",show:!0,appendToBody:!0,backgroundColor:"#fff",formatter:r=>this.formatTooltip(r),textStyle:{fontSize:11}},grid:{show:!1,left:0,right:0,top:0,bottom:0},series:e,animation:!0},we(!0).pipe(ya(600)).subscribe(()=>this.loading=!1)}catch(r){throw new Error(r)}}formatTooltip(t){let e="";for(let r=0;r${t[r]?.axisValue}\n
${t[r].seriesName}: ${this.chart?.yAxisTooltipSymbol??""}${t[r].value?.toLocaleString()}`;return e}subscribeToData(t){t?.pipe(Qe(this)).subscribe(e=>{this.drawChart(e)})}fillDummyData(t){const i=new Date;for(let o=0;o<14;o++){const a=new Date(i);a.setDate(a.getDate()-(o+1)),Math.floor(6*Math.random()),t.unshift({x:a?.toISOString()?.split("T")[0],y:0})}return t}get pChart(){return this._chart}},S0.\u0275fac=function(t){return new(t||S0)},S0.\u0275cmp=xt({type:S0,selectors:[["storecloud-shared-chart"]],inputs:{chart:"chart",data:"data"},decls:10,vars:18,consts:[[3,"ngStyle"],["echarts","",3,"id","options","extentions","isResizable","defaultHeight","ngStyle","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(O(0,"div",0),h(1,"\n "),O(2,"div",1),yt("chartinit",function(i){return e.onChartInit(i)}),S(),h(3,"\n "),ee(4,G_e,2,0,"ng-container",2),h(5,"\n"),S(),h(6,"\n\n"),ee(7,Z_e,3,5,"ng-template",null,3,zt),h(9,"\n")),2&t){const r=ht(8);let i;Mi("content pr-0 ",null!=e.chart&&e.chart.showYAxisLabel&&!e.loading?"pl-2":"",""),E("ngStyle",Nf(12,Y_e,e.loading?(null==e.chart?null:e.chart.loadingHeight)||(null==e.chart?null:e.chart.height):(null==e.chart?null:e.chart.height)||70,null==e.chart||null==e.chart.cssStyle?null:e.chart.cssStyle.padding)),A(2),Fo("id",null!==(i=null==e.chart?null:e.chart.id)&&void 0!==i?i:"chart_1"),E("options",e.options)("extentions",e.echartsExtentions)("isResizable",!0)("defaultHeight",(null==e.chart?null:e.chart.height)||70)("ngStyle",Nf(15,X_e,(null==e.chart?null:e.chart.height)||70,e.loading?0:1)),A(2),E("ngIf",!e.loading)("ngIfElse",r)}},dependencies:[tr,Gi,ba,cC],styles:["ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-50%;left:50%;transform:translate(-50%,-50%)}.content[_ngcontent-%COMP%]{padding:0}"]}),S0);uC=ke([en({checkProperties:!0})],uC);var JO=2*Math.PI,fZ=Math.PI/180;function pZ(n,t){return a1(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function gZ(n,t){var e=pZ(n,t),r=n.get("center"),i=n.get("radius");Ft(i)||(i=[0,i]);var u,d,o=ao(e.width,t.getWidth()),a=ao(e.height,t.getHeight()),s=Math.min(o,a),l=ao(i[0],s/2),c=ao(i[1],s/2),p=n.coordinateSystem;if(p){var g=p.dataToPoint(r);u=g[0]||0,d=g[1]||0}else Ft(r)||(r=[r,r]),u=ao(r[0],o)+e.x,d=ao(r[1],a)+e.y;return{cx:u,cy:d,r0:l,r:c}}function K_e(n,t,e){t.eachSeriesByType(n,function(r){var i=r.getData(),o=i.mapDimension("value"),a=pZ(r,e),s=gZ(r,e),l=s.cx,c=s.cy,u=s.r,d=s.r0,p=-r.get("startAngle")*fZ,g=r.get("minAngle")*fZ,v=0;i.each(o,function(X){!isNaN(X)&&v++});var _=i.getSum(o),y=Math.PI/(_||v)*2,b=r.get("clockwise"),w=r.get("roseType"),M=r.get("stillShowZeroSum"),P=i.getDataExtent(o);P[0]=0;var N=JO,k=0,z=p,U=b?1:-1;if(i.setLayout({viewRect:a,r:u}),i.each(o,function(X,J){var ne;if(isNaN(X))i.setItemLayout(J,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:l,cy:c,r0:d,r:w?NaN:u});else{(ne="area"!==w?0===_&&M?y:X*y:JO/v)0){t=t/180*Math.PI,Nu.fromArray(n[0]),Pi.fromArray(n[1]),Mo.fromArray(n[2]),Dn.sub(Sd,Nu,Pi),Dn.sub(Td,Mo,Pi);var e=Sd.len(),r=Td.len();if(!(e<.001||r<.001)){Sd.scale(1/e),Td.scale(1/r);var i=Sd.dot(Td);if(Math.cos(t)1&&Dn.copy(Us,Mo),Us.toArray(n[1])}}}}function iye(n,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Nu.fromArray(n[0]),Pi.fromArray(n[1]),Mo.fromArray(n[2]),Dn.sub(Sd,Pi,Nu),Dn.sub(Td,Mo,Pi);var r=Sd.len(),i=Td.len();if(!(r<.001||i<.001)&&(Sd.scale(1/r),Td.scale(1/i),Sd.dot(t)=l)Dn.copy(Us,Mo);else{Us.scaleAndAdd(Td,s/Math.tan(Math.PI/2-u));var d=Mo.x!==Pi.x?(Us.x-Pi.x)/(Mo.x-Pi.x):(Us.y-Pi.y)/(Mo.y-Pi.y);if(isNaN(d))return;d<0?Dn.copy(Us,Pi):d>1&&Dn.copy(Us,Mo)}Us.toArray(n[1])}}}function _Z(n,t,e,r){var i="normal"===e,o=i?n:n.ensureState(e);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?n.useStyle(s):o.style=s}function oye(n,t){var e=t.smooth,r=t.points;if(r)if(n.moveTo(r[0][0],r[0][1]),e>0&&r.length>=3){var i=i5(r[0],r[1]),o=i5(r[1],r[2]);if(!i||!o)return n.lineTo(r[1][0],r[1][1]),void n.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*e,s=o5([],r[1],r[0],a/i),l=o5([],r[1],r[2],a/o),c=o5([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var u=1;u0&&o&&k(-d/a,0,a);var w,M,y=n[0],b=n[a-1];return P(),w<0&&z(-w,.8),M<0&&z(M,.8),P(),N(w,M,1),N(M,w,-1),P(),w<0&&U(-w),M<0&&U(M),c}function P(){w=y.rect[t]-r,M=i-b.rect[t]-b.rect[e]}function N(W,X,J){if(W<0){var ne=Math.min(X,-W);if(ne>0){k(ne*J,0,a);var ce=ne+W;ce<0&&z(-ce*J,1)}else z(-W*J,1)}}function k(W,X,J){0!==W&&(c=!0);for(var ne=X;ne0)for(ce=0;ce0;ce--)k(-J[ce-1]*Ne,ce,a)}}function U(W){var X=W<0?-1:1;W=Math.abs(W);for(var J=Math.ceil(W/(a-1)),ne=0;ne0?k(J,0,ne+1):k(-J,a-ne-1,a),(W-=J)<=0)return}}(n,"y","height",t,e,r)})(n,l,l+a)&&function d(_){for(var y={list:[],maxY:0},b={list:[],maxY:0},w=0;w<_.length;w++)if("none"===_[w].labelAlignTo){var M=_[w],P=M.label.y>e?b:y,N=Math.abs(M.label.y-e);if(N>=P.maxY){var k=M.label.x-t-M.len2*i,z=r+M.len,U=Math.abs(k)n.unconstrainedWidth?null:g:null)}var _=r.getBoundingRect();o.width=_.width,o.height=_.height+((r.style.margin||0)+2.1),o.y-=(o.height-d)/2}}}function gN(n){return"center"===n.position}function tS(n,t,e){var r=n.get("borderRadius");if(null==r)return e?{cornerRadius:0}:null;Ft(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:yn(r,function(o){return zf(o,i)})}}var dye=function(n){function t(e,r,i){var o=n.call(this)||this;o.z2=2;var a=new as;return o.setTextContent(a),o.updateData(e,r,i,!0),o}return qn(t,n),t.prototype.updateData=function(e,r,i,o){var a=this,s=e.hostModel,l=e.getItemModel(r),c=l.getModel("emphasis"),u=e.getItemLayout(r),d=dt(tS(l.getModel("itemStyle"),u,!0),u);if(isNaN(d.startAngle))a.setShape(d);else{if(o){a.setShape(d);var p=s.getShallow("animationType");s.ecModel.ssr?(ep(a,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),a.originX=d.cx,a.originY=d.cy):"scale"===p?(a.shape.r=u.r0,ep(a,{shape:{r:u.r}},s,r)):null!=i?(a.setShape({startAngle:i,endAngle:i}),ep(a,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},s,r)):(a.shape.endAngle=u.startAngle,Od(a,{shape:{endAngle:u.endAngle}},s,r))}else Pj(a),Od(a,{shape:d},s,r);a.useStyle(e.getItemVisual(r,"style")),Q5(a,l);var g=(u.startAngle+u.endAngle)/2,v=s.get("selectedOffset"),_=Math.cos(g)*v,y=Math.sin(g)*v,b=l.getShallow("cursor");b&&a.attr("cursor",b),this._updateLabel(s,e,r),a.ensureState("emphasis").shape=dt({r:u.r+(c.get("scale")&&c.get("scaleSize")||0)},tS(c.getModel("itemStyle"),u)),dt(a.ensureState("select"),{x:_,y,shape:tS(l.getModel(["select","itemStyle"]),u)}),dt(a.ensureState("blur"),{shape:tS(l.getModel(["blur","itemStyle"]),u)});var w=a.getTextGuideLine(),M=a.getTextContent();w&&dt(w.ensureState("select"),{x:_,y}),dt(M.ensureState("select"),{x:_,y}),$P(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))}},t.prototype._updateLabel=function(e,r,i){var o=this,a=r.getItemModel(i),s=a.getModel("labelLine"),l=r.getItemVisual(i,"style"),c=l&&l.fill,u=l&&l.opacity;VP(o,zP(a),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:c,defaultOpacity:u,defaultText:e.getFormattedLabel(i,"normal")||r.getName(i)});var d=o.getTextContent();o.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var p=e.get(["label","position"]);if("outside"!==p&&"outer"!==p)o.removeTextGuideLine();else{var g=this.getTextGuideLine();g||(g=new pO,this.setTextGuideLine(g)),function aye(n,t,e){var r=n.getTextGuideLine(),i=n.getTextContent();if(i){for(var o=t.normal,a=o.get("show"),s=i.ignore,l=0;l0){for(var u=a.getItemLayout(0),d=1;isNaN(u&&u.startAngle)&&d0?"right":"left":Ze>0?"left":"right"}var Ws=Math.PI,Ha=0,tc=ne.get("rotate");if(Ei(tc))Ha=tc*(Ws/180);else if("center"===ce)Ha=0;else if("radial"===tc||!0===tc)Ha=Ze<0?-et+Ws:-et;else if("tangential"===tc&&"outside"!==ce&&"outer"!==ce){var nc=Math.atan2(Ze,at);nc<0&&(nc=2*Ws+nc),at>0&&(nc=Ws+nc),Ha=nc-Ws}if(o=!!Ha,W.x=Tt,W.y=mn,W.rotation=Ha,W.setStyle({verticalAlign:"middle"}),hi){W.setStyle({align:di});var Zs=W.states.select;Zs&&(Zs.x+=W.x,Zs.y+=W.y)}else{var la=W.getBoundingRect().clone();la.applyTransform(W.getComputedTransform());var eu=(W.style.margin||0)+2.1;la.y-=eu/2,la.height+=eu,e.push({label:W,labelLine:X,position:ce,len:_e,len2:Ae,minTurnAngle:ue.get("minTurnAngle"),maxSurfaceAngle:ue.get("maxSurfaceAngle"),surfaceNormal:new Dn(Ze,at),linePoints:kn,textAlign:di,labelDistance:Me,labelAlignTo:Fe,edgeDistance:Ne,bleedMargin:bt,rect:la,unconstrainedWidth:la.width,labelStyleWidth:W.style.width})}z.setTextConfig({inside:hi})}}),!o&&n.get("avoidLabelOverlap")&&function cye(n,t,e,r,i,o,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=0;p=o.r0}},t.type="pie",t}(Ah);const fye=hye;var gye=function(){function n(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},n.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},n.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},n}();const mye=gye;var vye=Wo(),_ye=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return qn(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new mye(Qi(this.getData,this),Qi(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return function pye(n,t,e){t=Ft(t)&&{coordDimensions:t}||dt({encodeDefine:n.getEncode()},t);var r=n.getSource(),i=vk(r,t).dimensions,o=new hH(i,n);return o.initData(r,e),o}(this,{coordDimensions:["value"],encodeDefaulter:jo(lfe,this)})},t.prototype.getDataParams=function(e){var r=this.getData(),i=vye(r),o=i.seats;if(!o){var a=[];r.each(r.mapDimension("value"),function(l){a.push(l)}),o=i.seats=function ZV(n,t){var e=Vf(n,function(g,v){return g+(isNaN(v)?0:v)},0);if(0===e)return[];for(var r=Math.pow(10,t),i=yn(n,function(g){return(isNaN(g)?0:g)/e*r*100}),o=100*r,a=yn(i,function(g){return Math.floor(g)}),s=Vf(a,function(g,v){return g+v},0),l=yn(i,function(g,v){return g-a[v]});sc&&(c=l[d],u=d);++a[u],l[u]=0,++s}return yn(a,function(g){return g/r})}(a,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,e);return s.percent=o[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){V5(e,"labelLine",["show"]);var r=e.labelLine,i=e.emphasis.labelLine;r.show=r.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(g0);const yye=_ye;function Cye(n){n.registerChartView(fye),n.registerSeriesModel(yye),function k0e(n,t){function e(r,i){var o=[];return r.eachComponent({mainType:"series",subType:n,query:i},function(a){o.push(a.seriesIndex)}),o}he([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(r){t(r[0],function(i,o,a){i=dt({},i),a.dispatchAction(dt(i,{type:r[1],seriesIndex:e(o,i)}))})})}("pie",n.registerAction),n.registerLayout(jo(K_e,"pie")),n.registerProcessor(function J_e(n){return{seriesType:n,reset:function(t,e){var r=e.findComponents({mainType:"legend"});if(r&&r.length){var i=t.getData();i.filterSelf(function(o){for(var a=i.getName(o),s=0;s=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(so);const mN=xye;var T0=jo,vN=he,nS=Bs,Pye=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return qn(t,n),t.prototype.init=function(){this.group.add(this._contentGroup=new nS),this.group.add(this._selectorGroup=new nS),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var a=e.get("align"),s=e.get("orient");(!a||"auto"===a)&&(a="right"===e.get("left")&&"vertical"===s?"right":"left");var l=e.get("selector",!0),c=e.get("selectorPosition",!0);l&&(!c||"auto"===c)&&(c="horizontal"===s?"end":"start"),this.renderInner(a,e,r,i,l,s,c);var u=e.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},p=e.get("padding"),g=a1(u,d,p),v=this.layoutInner(e,a,g,o,l,c),_=a1(li({width:v.width,height:v.height},u),d,p);this.group.x=_.x-v.x,this.group.y=_.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function Mye(n,t){var e=oO(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),new ka({shape:{x:n.x-e[3],y:n.y-e[0],width:n.width+e[1]+e[3],height:n.height+e[0]+e[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,r,i,o,a,s,l){var c=this.getContentGroup(),u=sr(),d=r.get("selectedMode"),p=[];i.eachRawSeries(function(g){!g.get("legendHoverLink")&&p.push(g.id)}),vN(r.getData(),function(g,v){var _=g.get("name");if(!this.newlineDisabled&&(""===_||"\n"===_)){var y=new nS;return y.newline=!0,void c.add(y)}var b=i.getSeriesByName(_)[0];if(!u.get(_))if(b){var w=b.getData(),M=w.getVisual("legendLineStyle")||{},P=w.getVisual("legendIcon"),N=w.getVisual("style");this._createItem(b,_,v,g,r,e,M,N,P,d,o).on("click",T0(CZ,_,null,o,p)).on("mouseover",T0(_N,b.name,null,o,p)).on("mouseout",T0(yN,b.name,null,o,p)),u.set(_,!0)}else i.eachRawSeries(function(z){if(!u.get(_)&&z.legendVisualProvider){var U=z.legendVisualProvider;if(!U.containName(_))return;var W=U.indexOfName(_),X=U.getItemVisual(W,"style"),J=U.getItemVisual(W,"legendIcon"),ne=Ec(X.fill);ne&&0===ne[3]&&(ne[3]=.2,X=dt(dt({},X),{fill:$g(ne,"rgba")})),this._createItem(z,_,v,g,r,e,{},X,J,d,o).on("click",T0(CZ,null,_,o,p)).on("mouseover",T0(_N,null,_,o,p)).on("mouseout",T0(yN,null,_,o,p)),u.set(_,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(e,r,i,o,a){var s=this.getSelectorGroup();vN(e,function(c){var u=c.type,d=new as({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===u?"legendAllSelect":"legendInverseSelect"})}});s.add(d),VP(d,{normal:r.getModel("selectorLabel"),emphasis:r.getModel(["emphasis","selectorLabel"])},{defaultText:c.title}),J5(d)})},t.prototype._createItem=function(e,r,i,o,a,s,l,c,u,d,p){var g=e.visualDrawType,v=a.get("itemWidth"),_=a.get("itemHeight"),y=a.isSelected(r),b=o.get("symbolRotate"),w=o.get("symbolKeepAspect"),M=o.get("icon"),P=function Oye(n,t,e,r,i,o,a){function s(y,b){"auto"===y.lineWidth&&(y.lineWidth=b.lineWidth>0?2:0),vN(y,function(w,M){"inherit"===y[M]&&(y[M]=b[M])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===n.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");c.decal=d&&"inherit"!==d?HR(d,a):r.decal,"inherit"===c.fill&&(c.fill=r[i]),"inherit"===c.stroke&&(c.stroke=r[u]),"inherit"===c.opacity&&(c.opacity=("fill"===i?r:e).opacity),s(c,r);var p=t.getModel("lineStyle"),g=p.getLineStyle();if(s(g,e),"auto"===c.fill&&(c.fill=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),"auto"===g.stroke&&(g.stroke=r.fill),!o){var v=t.get("inactiveBorderWidth");c.lineWidth="auto"===v?r.lineWidth>0&&c[u]?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),g.stroke=p.get("inactiveColor"),g.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:g}}(u=M||u||"roundRect",o,l,c,g,y,p),N=new nS,k=o.getModel("textStyle");if(!Zn(e.getLegendIcon)||M&&"inherit"!==M){var z="inherit"===M&&e.getData().getVisual("symbol")?"inherit"===b?e.getData().getVisual("symbolRotate"):b:0;N.add(function Sye(n){var t=n.icon||"roundRect",e=_0(t,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return e.setStyle(n.itemStyle),e.rotation=(n.iconRotate||0)*Math.PI/180,e.setOrigin([n.itemWidth/2,n.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}({itemWidth:v,itemHeight:_,icon:u,iconRotate:z,itemStyle:P.itemStyle,lineStyle:P.lineStyle,symbolKeepAspect:w}))}else N.add(e.getLegendIcon({itemWidth:v,itemHeight:_,icon:u,iconRotate:b,itemStyle:P.itemStyle,lineStyle:P.lineStyle,symbolKeepAspect:w}));var U="left"===s?v+5:-5,W=s,X=a.get("formatter"),J=r;Qt(X)&&X?J=X.replace("{name}",r??""):Zn(X)&&(J=X(r));var ne=o.get("inactiveColor");N.add(new as({style:Kf(k,{text:J,x:U,y:_/2,fill:y?k.getTextColor():ne,align:W,verticalAlign:"middle"})}));var ce=new ka({shape:N.getBoundingRect(),invisible:!0}),Me=o.getModel("tooltip");return Me.get("show")&&Yk({el:ce,componentModel:a,itemName:r,itemTooltipOption:Me.option}),N.add(ce),N.eachChild(function(Fe){Fe.silent=!0}),ce.silent=!d,this.getContentGroup().add(N),J5(N),N.__legendDataIndex=i,N},t.prototype.layoutInner=function(e,r,i,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();Eb(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var u=l.getBoundingRect(),d=[-u.x,-u.y];if(c.markRedraw(),l.markRedraw(),a){Eb("horizontal",c,e.get("selectorItemGap",!0));var p=c.getBoundingRect(),g=[-p.x,-p.y],v=e.get("selectorButtonGap",!0),_=e.getOrient().index,y=0===_?"width":"height",b=0===_?"height":"width",w=0===_?"y":"x";"end"===s?g[_]+=u[y]+v:d[_]+=p[y]+v,g[1-_]+=u[b]/2-p[b]/2,c.x=g[0],c.y=g[1],l.x=d[0],l.y=d[1];var M={x:0,y:0};return M[y]=u[y]+v+p[y],M[b]=Math.max(u[b],p[b]),M[w]=Math.min(0,p[w]+g[1-_]),M}return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Dh);function CZ(n,t,e,r){yN(n,t,e,r),e.dispatchAction({type:"legendToggleSelect",name:n??t}),_N(n,t,e,r)}function wZ(n){for(var e,t=n.getZr().storage.getDisplayList(),r=0,i=t.length;ri[a],y=[-g.x,-g.y];r||(y[o]=u[c]);var b=[0,0],w=[-v.x,-v.y],M=Tr(e.get("pageButtonGap",!0),e.get("itemGap",!0));_&&("end"===e.get("pageButtonPosition",!0)?w[o]+=i[a]-v[a]:b[o]+=v[a]+M),w[1-o]+=g[s]/2-v[s]/2,u.setPosition(y),d.setPosition(b),p.setPosition(w);var N={x:0,y:0};if(N[a]=_?i[a]:g[a],N[s]=Math.max(g[s],v[s]),N[l]=Math.min(0,v[l]+w[1-o]),d.__rectSize=i[a],_){var k={x:0,y:0};k[a]=Math.max(i[a]-v[a]-M,0),k[s]=N[s],d.setClipPath(new ka({shape:k})),d.__rectSize=k[a]}else p.eachChild(function(U){U.attr({invisible:!0,silent:!0})});var z=this._getPageInfo(e);return null!=z.pageIndex&&Od(u,{x:z.contentPosition[0],y:z.contentPosition[1]},_?e:null),this._updatePageInfoView(e,z),N},t.prototype._pageGo=function(e,r,i){var o=this._getPageInfo(r)[e];null!=o&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(e,r){var i=this._controllerGroup;he(["pagePrev","pageNext"],function(u){var p=null!=r[u+"DataIndex"],g=i.childOfName(u);g&&(g.setStyle("fill",e.get(p?"pageIconColor":"pageIconInactiveColor",!0)),g.cursor=p?"pointer":"default")});var o=i.childOfName("pageText"),a=e.get("pageFormatter"),s=r.pageIndex,l=null!=s?s+1:0,c=r.pageCount;o&&a&&o.setStyle("text",Qt(a)?a.replace("{current}",null==l?"":l+"").replace("{total}",null==c?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(e){var r=e.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=e.getOrient().index,s=bN[a],l=CN[a],c=this._findTargetItemIndex(r),u=i.children(),d=u[c],p=u.length,g=p?1:0,v={contentPosition:[i.x,i.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return v;var _=P(d);v.contentPosition[a]=-_.s;for(var y=c+1,b=_,w=_,M=null;y<=p;++y)(!(M=P(u[y]))&&w.e>b.s+o||M&&!N(M,b.s))&&(b=w.i>b.i?w:M)&&(null==v.pageNextDataIndex&&(v.pageNextDataIndex=b.i),++v.pageCount),w=M;for(y=c-1,b=_,w=_,M=null;y>=-1;--y)(!(M=P(u[y]))||!N(w,M.s))&&b.i=z&&k.s<=z+o}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(a,s){var l=a.__legendDataIndex;null==o&&null!=l&&(o=s),l===e&&(r=s)}),r??o):0;var r,o},t.type="legend.scroll",t}(xZ);const kye=Eye;function Nye(n){ap(MZ),n.registerComponentModel(Iye),n.registerComponentView(kye),function Rye(n){n.registerAction("legendScroll","legendscroll",function(t,e){var r=t.scrollDataIndex;null!=r&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}(n)}function rS(n){ap(MZ),ap(Nye)}var Lye=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return qn(t,n),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(so),Fye=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e}return qn(t,n),t.prototype.render=function(e,r,i){if(this.group.removeAll(),e.get("show")){var o=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),c=Tr(e.get("textBaseline"),e.get("textVerticalAlign")),u=new as({style:Kf(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),d=u.getBoundingRect(),p=e.get("subtext"),g=new as({style:Kf(s,{text:p,fill:s.getTextColor(),y:d.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),_=e.get("sublink"),y=e.get("triggerEvent",!0);u.silent=!v&&!y,g.silent=!_&&!y,v&&u.on("click",function(){kH(v,"_"+e.get("target"))}),_&&g.on("click",function(){kH(_,"_"+e.get("subtarget"))}),qi(u).eventData=qi(g).eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,o.add(u),p&&o.add(g);var b=o.getBoundingRect(),w=e.getBoxLayoutParams();w.width=b.width,w.height=b.height;var M=a1(w,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||("middle"===(l=e.get("left")||e.get("right"))&&(l="center"),"right"===l?M.x+=M.width:"center"===l&&(M.x+=M.width/2)),c||("center"===(c=e.get("top")||e.get("bottom"))&&(c="middle"),"bottom"===c?M.y+=M.height:"middle"===c&&(M.y+=M.height/2),c=c||"top"),o.x=M.x,o.y=M.y,o.markRedraw();var P={align:l,verticalAlign:c};u.setStyle(P),g.setStyle(P),b=o.getBoundingRect();var N=M.margin,k=e.getItemStyle(["color","opacity"]);k.fill=e.get("backgroundColor");var z=new ka({shape:{x:b.x-N[3],y:b.y-N[0],width:b.width+N[1]+N[3],height:b.height+N[0]+N[2],r:e.get("borderRadius")},style:k,subPixelOptimize:!0,silent:!0});o.add(z)}},t.type="title",t}(Dh);function SZ(n){n.registerComponentModel(Lye),n.registerComponentView(Fye)}var zc,D0,qo=(()=>(function(n){n.Requested="requested",n.Block_Created="block_created",n.Block_Sent="block_sent",n.Node_Validated="node_validated",n.Block_Added="block_added",n.Network_Updated="network_updated",n.Completed="completed"}(qo||(qo={})),qo))(),Zo=(()=>(function(n){n.AllTime="All-Time",n.YTD="YTD",n.D30="30D",n.D7="7D",n.D1="1D"}(Zo||(Zo={})),Zo))(),Vs=(()=>(function(n){n.STORE="store",n.Ethereum="ethereum",n.Solana="solana"}(Vs||(Vs={})),Vs))(),A0=(()=>(function(n){n[n.Explorer=0]="Explorer",n[n.Website=1]="Website",n[n.Oracle=2]="Oracle"}(A0||(A0={})),A0))(),iS=(()=>(function(n){n.Pending="pending",n.Completed="completed",n.Removed="removed"}(iS||(iS={})),iS))();!function(n){let t;var l;let e,r,i,o,a,s;(l=t=n.Type||(n.Type={})).Storage="storage",l.Compute="compute",l.Bandwidth="bandwidth",l.IP="ip",function(l){l.Disk="Disk",l.Instance="Instance",l.Network="Network"}(e=n.OrionType||(n.OrionType={})),function(l){l.SSD="SSD",l.Standard="Standard",l.HighCPU="High CPU",l.IPAddressPublicNetwork="IPAddress-Public Network",l.BandwidthPublicNetwork="Bandwidth-Public Network",l.IPAddressPrivateNetwork="IPAddress-Private Network",l.BandwidthPrivateNetwork="Bandwidth-Private Network"}(r=n.SubType||(n.SubType={})),function(l){l.Orion="Orion"}(i=n.Cloud||(n.Cloud={})),function(l){l.USD="usd",l.BITS="bits",l.ETH="eth",l.BTC="btc",l.STORE="store"}(o=n.Unit||(n.Unit={})),function(l){l.BUY="buy",l.SELL="sell",l.MARGIN="margin"}(a=n.Option||(n.Option={})),function(l){l.IPPerSec="ip/sec",l.IPPerHour="ip/hour",l.GB="gb",l.GBPerSec="gb/sec",l.GBPerHour="gb/hour",l.RamPerSec="ram/sec",l.Bytes="bytes",l.BytesPerSec="bytes/sec",l.BytesPerHour="bytes/hour"}(s=n.Measurement||(n.Measurement={}))}(zc||(zc={}));const Bye=function(n){return{"width.rem":n}};function $ye(n,t){if(1&n&&fe(0,"img",1),2&n){const e=se();Mi("icon icon-size-",e.size,""),uh("src","https://explorer.storecloud.org/assets/lucide_icon/",e.icon,".svg",fa),E("ngStyle",Nt(5,Bye,(e.size||10)/10))}}let hs=((D0=class{constructor(){this.icon=null,this.size=18}}).\u0275fac=function(t){return new(t||D0)},D0.\u0275cmp=xt({type:D0,selectors:[["storecloud-icon"]],inputs:{icon:"icon",size:"size"},standalone:!0,features:[Do],decls:2,vars:1,consts:[[3,"class","src","ngStyle",4,"ngIf"],[3,"src","ngStyle"]],template:function(t,e){1&t&&(ee(0,$ye,1,7,"img",0),h(1,"\n")),2&t&&E("ngIf",e.icon)},dependencies:[Wi,tr,Gi],styles:["img[_ngcontent-%COMP%]{display:block}"]}),D0);function Zl(n){if(null==n)return window;if("[object Window]"!==n.toString()){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function w1(n){return n instanceof Zl(n).Element||n instanceof Element}function Hc(n){return n instanceof Zl(n).HTMLElement||n instanceof HTMLElement}function wN(n){return!(typeof ShadowRoot>"u")&&(n instanceof Zl(n).ShadowRoot||n instanceof ShadowRoot)}hs=ke([en({checkProperties:!0})],hs);var x1=Math.max,oS=Math.min,I0=Math.round;function xN(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function TZ(){return!/^((?!chrome|android).)*safari/i.test(xN())}function E0(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var r=n.getBoundingClientRect(),i=1,o=1;t&&Hc(n)&&(i=n.offsetWidth>0&&I0(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&I0(r.height)/n.offsetHeight||1);var s=(w1(n)?Zl(n):window).visualViewport,l=!TZ()&&e,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function MN(n){var t=Zl(n);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ad(n){return n?(n.nodeName||"").toLowerCase():null}function cp(n){return((w1(n)?n.ownerDocument:n.document)||window.document).documentElement}function PN(n){return E0(cp(n)).left+MN(n).scrollLeft}function Rh(n){return Zl(n).getComputedStyle(n)}function ON(n){var t=Rh(n);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function Hye(n,t,e){void 0===e&&(e=!1);var r=Hc(t),i=Hc(t)&&function zye(n){var t=n.getBoundingClientRect(),e=I0(t.width)/n.offsetWidth||1,r=I0(t.height)/n.offsetHeight||1;return 1!==e||1!==r}(t),o=cp(t),a=E0(n,i,e),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!e)&&(("body"!==Ad(t)||ON(o))&&(s=function Vye(n){return n!==Zl(n)&&Hc(n)?function Uye(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):MN(n)}(t)),Hc(t)?((l=E0(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=PN(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function SN(n){var t=E0(n),e=n.offsetWidth,r=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:r}}function aS(n){return"html"===Ad(n)?n:n.assignedSlot||n.parentNode||(wN(n)?n.host:null)||cp(n)}function AZ(n){return["html","body","#document"].indexOf(Ad(n))>=0?n.ownerDocument.body:Hc(n)&&ON(n)?n:AZ(aS(n))}function fC(n,t){var e;void 0===t&&(t=[]);var r=AZ(n),i=r===(null==(e=n.ownerDocument)?void 0:e.body),o=Zl(r),a=i?[o].concat(o.visualViewport||[],ON(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(fC(aS(a)))}function jye(n){return["table","td","th"].indexOf(Ad(n))>=0}function DZ(n){return Hc(n)&&"fixed"!==Rh(n).position?n.offsetParent:null}function pC(n){for(var t=Zl(n),e=DZ(n);e&&jye(e)&&"static"===Rh(e).position;)e=DZ(e);return e&&("html"===Ad(e)||"body"===Ad(e)&&"static"===Rh(e).position)?t:e||function Gye(n){var t=/firefox/i.test(xN());if(/Trident/i.test(xN())&&Hc(n)&&"fixed"===Rh(n).position)return null;var i=aS(n);for(wN(i)&&(i=i.host);Hc(i)&&["html","body"].indexOf(Ad(i))<0;){var o=Rh(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}(n)||t}var ml="top",jc="bottom",Gc="right",vl="left",TN="auto",gC=[ml,jc,Gc,vl],k0="start",mC="end",Wye="clippingParents",IZ="viewport",vC="popper",qye="reference",EZ=gC.reduce(function(n,t){return n.concat([t+"-"+k0,t+"-"+mC])},[]),kZ=[].concat(gC,[TN]).reduce(function(n,t){return n.concat([t,t+"-"+k0,t+"-"+mC])},[]),rbe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ibe(n){var t=new Map,e=new Set,r=[];function i(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(s){if(!e.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return n.forEach(function(o){t.set(o.name,o)}),n.forEach(function(o){e.has(o.name)||i(o)}),r}function abe(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}var RZ={placement:"bottom",modifiers:[],strategy:"absolute"};function NZ(){for(var n=arguments.length,t=new Array(n),e=0;e=0?"x":"y"}function LZ(n){var l,t=n.reference,e=n.element,r=n.placement,i=r?Dd(r):null,o=r?R0(r):null,a=t.x+t.width/2-e.width/2,s=t.y+t.height/2-e.height/2;switch(i){case ml:l={x:a,y:t.y-e.height};break;case jc:l={x:a,y:t.y+t.height};break;case Gc:l={x:t.x+t.width,y:s};break;case vl:l={x:t.x-e.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?AN(i):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case k0:l[c]=l[c]-(t[u]/2-e[u]/2);break;case mC:l[c]=l[c]+(t[u]/2-e[u]/2)}}return l}const hbe={name:"popperOffsets",enabled:!0,phase:"read",fn:function dbe(n){var t=n.state;t.modifiersData[n.name]=LZ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var fbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function FZ(n){var t,e=n.popper,r=n.popperRect,i=n.placement,o=n.variation,a=n.offsets,s=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,p=a.x,g=void 0===p?0:p,v=a.y,_=void 0===v?0:v,y="function"==typeof u?u({x:g,y:_}):{x:g,y:_};g=y.x,_=y.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),M=vl,P=ml,N=window;if(c){var k=pC(e),z="clientHeight",U="clientWidth";k===Zl(e)&&"static"!==Rh(k=cp(e)).position&&"absolute"===s&&(z="scrollHeight",U="scrollWidth"),(i===ml||(i===vl||i===Gc)&&o===mC)&&(P=jc,_-=(d&&k===N&&N.visualViewport?N.visualViewport.height:k[z])-r.height,_*=l?1:-1),i!==vl&&(i!==ml&&i!==jc||o!==mC)||(M=Gc,g-=(d&&k===N&&N.visualViewport?N.visualViewport.width:k[U])-r.width,g*=l?1:-1)}var ce,J=Object.assign({position:s},c&&fbe),ne=!0===u?function pbe(n,t){var r=n.y,i=t.devicePixelRatio||1;return{x:I0(n.x*i)/i||0,y:I0(r*i)/i||0}}({x:g,y:_},Zl(e)):{x:g,y:_};return g=ne.x,_=ne.y,Object.assign({},J,l?((ce={})[P]=w?"0":"",ce[M]=b?"0":"",ce.transform=(N.devicePixelRatio||1)<=1?"translate("+g+"px, "+_+"px)":"translate3d("+g+"px, "+_+"px, 0)",ce):((t={})[P]=w?_+"px":"",t[M]=b?g+"px":"",t.transform="",t))}const mbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function gbe(n){var t=n.state,e=n.options,r=e.gpuAcceleration,i=void 0===r||r,o=e.adaptive,a=void 0===o||o,s=e.roundOffsets,l=void 0===s||s,u={placement:Dd(t.placement),variation:R0(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,FZ(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,FZ(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},BZ={name:"applyStyles",enabled:!0,phase:"write",fn:function vbe(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];!Hc(o)||!Ad(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];!1===s?o.removeAttribute(a):o.setAttribute(a,!0===s?"":s)}))})},effect:function _be(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:e[r]).reduce(function(l,c){return l[c]="",l},{});!Hc(i)||!Ad(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}},requires:["computeStyles"]},Cbe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function bbe(n){var t=n.state,r=n.name,i=n.options.offset,o=void 0===i?[0,0]:i,a=kZ.reduce(function(u,d){return u[d]=function ybe(n,t,e){var r=Dd(n),i=[vl,ml].indexOf(r)>=0?-1:1,o="function"==typeof e?e(Object.assign({},t,{placement:n})):e,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[vl,Gc].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(d,t.rects,o),u},{}),s=a[t.placement],c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s.x,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var wbe={left:"right",right:"left",bottom:"top",top:"bottom"};function lS(n){return n.replace(/left|right|bottom|top/g,function(t){return wbe[t]})}var xbe={start:"end",end:"start"};function $Z(n){return n.replace(/start|end/g,function(t){return xbe[t]})}function UZ(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&wN(e)){var r=t;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function DN(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function VZ(n,t,e){return t===IZ?DN(function Mbe(n,t){var e=Zl(n),r=cp(n),i=e.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=TZ();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+PN(n),y:l}}(n,e)):w1(t)?function Obe(n,t){var e=E0(n,!1,"fixed"===t);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}(t,e):DN(function Pbe(n){var t,e=cp(n),r=MN(n),i=null==(t=n.ownerDocument)?void 0:t.body,o=x1(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=x1(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+PN(n),l=-r.scrollTop;return"rtl"===Rh(i||e).direction&&(s+=x1(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(cp(n)))}function HZ(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function jZ(n,t){return t.reduce(function(e,r){return e[r]=n,e},{})}function _C(n,t){void 0===t&&(t={});var r=t.placement,i=void 0===r?n.placement:r,o=t.strategy,a=void 0===o?n.strategy:o,s=t.boundary,l=void 0===s?Wye:s,c=t.rootBoundary,u=void 0===c?IZ:c,d=t.elementContext,p=void 0===d?vC:d,g=t.altBoundary,v=void 0!==g&&g,_=t.padding,y=void 0===_?0:_,b=HZ("number"!=typeof y?y:jZ(y,gC)),M=n.rects.popper,P=n.elements[v?p===vC?qye:vC:p],N=function Tbe(n,t,e,r){var i="clippingParents"===t?function Sbe(n){var t=fC(aS(n)),r=["absolute","fixed"].indexOf(Rh(n).position)>=0&&Hc(n)?pC(n):n;return w1(r)?t.filter(function(i){return w1(i)&&UZ(i,r)&&"body"!==Ad(i)}):[]}(n):[].concat(t),o=[].concat(i,[e]),s=o.reduce(function(l,c){var u=VZ(n,c,r);return l.top=x1(u.top,l.top),l.right=oS(u.right,l.right),l.bottom=oS(u.bottom,l.bottom),l.left=x1(u.left,l.left),l},VZ(n,o[0],r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(w1(P)?P:P.contextElement||cp(n.elements.popper),l,u,a),k=E0(n.elements.reference),z=LZ({reference:k,element:M,strategy:"absolute",placement:i}),U=DN(Object.assign({},M,z)),W=p===vC?U:k,X={top:N.top-W.top+b.top,bottom:W.bottom-N.bottom+b.bottom,left:N.left-W.left+b.left,right:W.right-N.right+b.right},J=n.modifiersData.offset;if(p===vC&&J){var ne=J[i];Object.keys(X).forEach(function(ce){var Me=[Gc,jc].indexOf(ce)>=0?1:-1,Fe=[ml,jc].indexOf(ce)>=0?"y":"x";X[ce]+=ne[Fe]*Me})}return X}const Ebe={name:"flip",enabled:!0,phase:"main",fn:function Ibe(n){var t=n.state,e=n.options,r=n.name;if(!t.modifiersData[r]._skip){for(var i=e.mainAxis,o=void 0===i||i,a=e.altAxis,s=void 0===a||a,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,p=e.altBoundary,g=e.flipVariations,v=void 0===g||g,_=e.allowedAutoPlacements,y=t.options.placement,b=Dd(y),M=l||(b!==y&&v?function Dbe(n){if(Dd(n)===TN)return[];var t=lS(n);return[$Z(n),t,$Z(t)]}(y):[lS(y)]),P=[y].concat(M).reduce(function(Tt,mn){return Tt.concat(Dd(mn)===TN?function Abe(n,t){void 0===t&&(t={});var i=t.boundary,o=t.rootBoundary,a=t.padding,s=t.flipVariations,l=t.allowedAutoPlacements,c=void 0===l?kZ:l,u=R0(t.placement),d=u?s?EZ:EZ.filter(function(v){return R0(v)===u}):gC,p=d.filter(function(v){return c.indexOf(v)>=0});0===p.length&&(p=d);var g=p.reduce(function(v,_){return v[_]=_C(n,{placement:_,boundary:i,rootBoundary:o,padding:a})[Dd(_)],v},{});return Object.keys(g).sort(function(v,_){return g[v]-g[_]})}(t,{placement:mn,boundary:u,rootBoundary:d,padding:c,flipVariations:v,allowedAutoPlacements:_}):mn)},[]),N=t.rects.reference,k=t.rects.popper,z=new Map,U=!0,W=P[0],X=0;X=0,Fe=Me?"width":"height",Ne=_C(t,{placement:J,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),bt=Me?ce?Gc:vl:ce?jc:ml;N[Fe]>k[Fe]&&(bt=lS(bt));var ue=lS(bt),_e=[];if(o&&_e.push(Ne[ne]<=0),s&&_e.push(Ne[bt]<=0,Ne[ue]<=0),_e.every(function(Tt){return Tt})){W=J,U=!1;break}z.set(J,_e)}if(U)for(var et=function(mn){var kn=P.find(function(di){var hi=z.get(di);if(hi)return hi.slice(0,mn).every(function(Zi){return Zi})});if(kn)return W=kn,"break"},Ze=v?3:1;Ze>0&&"break"!==et(Ze);Ze--);t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yC(n,t,e){return x1(n,oS(t,e))}const Lbe={name:"preventOverflow",enabled:!0,phase:"main",fn:function Nbe(n){var t=n.state,e=n.options,r=n.name,i=e.mainAxis,o=void 0===i||i,a=e.altAxis,s=void 0!==a&&a,p=e.tether,g=void 0===p||p,v=e.tetherOffset,_=void 0===v?0:v,y=_C(t,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),b=Dd(t.placement),w=R0(t.placement),M=!w,P=AN(b),N=function kbe(n){return"x"===n?"y":"x"}(P),k=t.modifiersData.popperOffsets,z=t.rects.reference,U=t.rects.popper,W="function"==typeof _?_(Object.assign({},t.rects,{placement:t.placement})):_,X="number"==typeof W?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),J=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ne={x:0,y:0};if(k){if(o){var ce,Me="y"===P?ml:vl,Fe="y"===P?jc:Gc,Ne="y"===P?"height":"width",bt=k[P],ue=bt+y[Me],_e=bt-y[Fe],Ae=g?-U[Ne]/2:0,et=w===k0?z[Ne]:U[Ne],Ze=w===k0?-U[Ne]:-z[Ne],at=t.elements.arrow,Tt=g&&at?SN(at):{width:0,height:0},mn=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},kn=mn[Me],di=mn[Fe],hi=yC(0,z[Ne],Tt[Ne]),Zi=M?z[Ne]/2-Ae-hi-kn-X.mainAxis:et-hi-kn-X.mainAxis,qr=M?-z[Ne]/2+Ae+hi+di+X.mainAxis:Ze+hi+di+X.mainAxis,tn=t.elements.arrow&&pC(t.elements.arrow),wa=null!=(ce=J?.[P])?ce:0,Ws=bt+qr-wa,Ha=yC(g?oS(ue,bt+Zi-wa-(tn?"y"===P?tn.clientTop||0:tn.clientLeft||0:0)):ue,bt,g?x1(_e,Ws):_e);k[P]=Ha,ne[P]=Ha-bt}if(s){var tc,Ml=k[N],la="y"===N?"height":"width",eu=Ml+y["x"===P?ml:vl],Zs=Ml-y["x"===P?jc:Gc],qh=-1!==[ml,vl].indexOf(b),em=null!=(tc=J?.[N])?tc:0,tm=qh?eu:Ml-z[la]-U[la]-em+X.altAxis,nm=qh?Ml+z[la]+U[la]-em-X.altAxis:Zs,rm=g&&qh?function Rbe(n,t,e){var r=yC(n,t,e);return r>e?e:r}(tm,Ml,nm):yC(g?tm:eu,Ml,g?nm:Zs);k[N]=rm,ne[N]=rm-Ml}t.modifiersData[r]=ne}},requiresIfExists:["offset"]};const Ube={name:"arrow",enabled:!0,phase:"main",fn:function Bbe(n){var t,e=n.state,r=n.name,i=n.options,o=e.elements.arrow,a=e.modifiersData.popperOffsets,s=Dd(e.placement),l=AN(s),u=[vl,Gc].indexOf(s)>=0?"height":"width";if(o&&a){var d=function(t,e){return HZ("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:jZ(t,gC))}(i.padding,e),p=SN(o),g="y"===l?ml:vl,v="y"===l?jc:Gc,_=e.rects.reference[u]+e.rects.reference[l]-a[l]-e.rects.popper[u],y=a[l]-e.rects.reference[l],b=pC(o),w=b?"y"===l?b.clientHeight||0:b.clientWidth||0:0,k=w/2-p[u]/2+(_/2-y/2),z=yC(d[g],k,w-p[u]-d[v]);e.modifiersData[r]=((t={})[l]=z,t.centerOffset=z-k,t)}},effect:function $be(n){var t=n.state,r=n.options.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"==typeof i&&!(i=t.elements.popper.querySelector(i))||UZ(t.elements.popper,i)&&(t.elements.arrow=i))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function GZ(n,t,e){return void 0===e&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function WZ(n){return[ml,Gc,jc,vl].some(function(t){return n[t]>=0})}var zbe=[ube,hbe,mbe,BZ,Cbe,Ebe,Lbe,Ube,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function Vbe(n){var t=n.state,e=n.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=_C(t,{elementContext:"reference"}),s=_C(t,{altBoundary:!0}),l=GZ(a,r),c=GZ(s,i,o),u=WZ(l),d=WZ(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}],Hbe=lbe({defaultModifiers:zbe}),jbe="tippy-box",qZ="tippy-content",ZZ="tippy-backdrop",YZ="tippy-arrow",XZ="tippy-svg-arrow",up={passive:!0,capture:!0},KZ=function(){return document.body};function IN(n,t,e){return Array.isArray(n)?n[t]??(Array.isArray(e)?e[t]:e):n}function EN(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function JZ(n,t){return"function"==typeof n?n.apply(void 0,t):n}function QZ(n,t){return 0===t?n:function(r){clearTimeout(e),e=setTimeout(function(){n(r)},t)};var e}function dp(n){return[].concat(n)}function eY(n,t){-1===n.indexOf(t)&&n.push(t)}function N0(n){return[].slice.call(n)}function nY(n){return Object.keys(n).reduce(function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t},{})}function M1(){return document.createElement("div")}function cS(n){return["Element","Fragment"].some(function(t){return EN(n,t)})}function NN(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function bC(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function LN(n,t,e){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){n[r](i,e)})}function oY(n,t){for(var e=t;e;){var r;if(n.contains(e))return!0;e=null==e.getRootNode||null==(r=e.getRootNode())?void 0:r.host}return!1}var Id={isTouch:!1},aY=0;function Kbe(){Id.isTouch||(Id.isTouch=!0,window.performance&&document.addEventListener("mousemove",sY))}function sY(){var n=performance.now();n-aY<20&&(Id.isTouch=!1,document.removeEventListener("mousemove",sY)),aY=n}function Jbe(){var n=document.activeElement;(function rY(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var tCe=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,_l=Object.assign({appendTo:KZ,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),oCe=Object.keys(_l);function hY(n){var e=(n.plugins||[]).reduce(function(r,i){var s,o=i.name;return o&&(r[o]=void 0!==n[o]?n[o]:null!=(s=_l[o])?s:i.defaultValue),r},{});return Object.assign({},n,e)}function fY(n,t){var e=Object.assign({},t,{content:JZ(t.content,[n])},t.ignoreAttributes?{}:function sCe(n,t){return(t?Object.keys(hY(Object.assign({},_l,{plugins:t}))):oCe).reduce(function(i,o){var a=(n.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if("content"===o)i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{})}(n,t.plugins));return e.aria=Object.assign({},_l.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}var lCe=function(){return"innerHTML"};function FN(n,t){n[lCe()]=t}function pY(n){var t=M1();return!0===n?t.className=YZ:(t.className=XZ,cS(n)?t.appendChild(n):FN(t,n)),t}function gY(n,t){cS(t.content)?(FN(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?FN(n,t.content):n.textContent=t.content)}function uS(n){var t=n.firstElementChild,e=N0(t.children);return{box:t,content:e.find(function(r){return r.classList.contains(qZ)}),arrow:e.find(function(r){return r.classList.contains(YZ)||r.classList.contains(XZ)}),backdrop:e.find(function(r){return r.classList.contains(ZZ)})}}function mY(n){var t=M1(),e=M1();e.className=jbe,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var r=M1();function i(o,a){var s=uS(t),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),"string"==typeof a.animation?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof a.maxWidth?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&gY(c,n.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(pY(a.arrow))):l.appendChild(pY(a.arrow)):u&&l.removeChild(u)}return r.className=qZ,r.setAttribute("data-state","hidden"),gY(r,n.props),t.appendChild(e),e.appendChild(r),i(n.props,n.props),{popper:t,onUpdate:i}}mY.$$tippy=!0;var cCe=1,dS=[],hS=[];function uCe(n,t){var r,i,o,u,d,p,_,e=fY(n,Object.assign({},_l,hY(nY(t)))),a=!1,s=!1,l=!1,c=!1,g=[],v=QZ(eo,e.interactiveDebounce),y=cCe++,w=function qbe(n){return n.filter(function(t,e){return n.indexOf(t)===e})}(e.plugins),P={id:y,reference:n,popper:M1(),popperInstance:null,props:e,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:w,clearDelayTimeouts:function tm(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)},setProps:function nm($e){if(!P.state.isDestroyed){ue("onBeforeUpdate",[P,$e]),Nn();var Ut=P.props,bn=fY(n,Object.assign({},Ut,nY($e),{ignoreAttributes:!0}));P.props=bn,tn(),Ut.interactiveDebounce!==bn.interactiveDebounce&&(et(),v=QZ(eo,bn.interactiveDebounce)),Ut.triggerTarget&&!bn.triggerTarget?dp(Ut.triggerTarget).forEach(function(Rr){Rr.removeAttribute("aria-expanded")}):bn.triggerTarget&&n.removeAttribute("aria-expanded"),Ae(),bt(),z&&z(Ut,bn),P.popperInstance&&(qs(),la().forEach(function(Rr){requestAnimationFrame(Rr._tippy.popperInstance.forceUpdate)})),ue("onAfterUpdate",[P,$e])}},setContent:function rm($e){P.setProps({content:$e})},show:function YT(){var $e=P.state.isVisible,Ut=P.state.isDestroyed,bn=!P.state.isEnabled,Rr=Id.isTouch&&!P.props.touch,Mr=IN(P.props.duration,0,_l.duration);if(!($e||Ut||bn||Rr||ce().hasAttribute("disabled")||(ue("onShow",[P],!1),!1===P.props.onShow(P)))){if(P.state.isVisible=!0,ne()&&(k.style.visibility="visible"),bt(),mn(),P.state.isMounted||(k.style.transition="none"),ne()){var ja=Fe();NN([ja.box,ja.content],0)}p=function(){var bs;if(P.state.isVisible&&!c){if(c=!0,k.style.transition=P.props.moveTransition,ne()&&P.props.animation){var p3=Fe(),B2=p3.box,Yh=p3.content;NN([B2,Yh],Mr),bC([B2,Yh],"visible")}_e(),Ae(),eY(hS,P),null==(bs=P.popperInstance)||bs.forceUpdate(),ue("onMount",[P]),P.props.animation&&ne()&&function hi($e,Ut){Zi($e,Ut)}(Mr,function(){P.state.isShown=!0,ue("onShown",[P])})}},function Ml(){var Ut,$e=P.props.appendTo,bn=ce();(Ut=P.props.interactive&&$e===KZ||"parent"===$e?bn.parentNode:JZ($e,[bn])).contains(k)||Ut.appendChild(k),P.state.isMounted=!0,qs()}()}},hide:function XT(){var $e=!P.state.isVisible,Ut=P.state.isDestroyed,bn=!P.state.isEnabled,Rr=IN(P.props.duration,1,_l.duration);if(!($e||Ut||bn)&&(ue("onHide",[P],!1),!1!==P.props.onHide(P))){if(P.state.isVisible=!1,P.state.isShown=!1,c=!1,a=!1,ne()&&(k.style.visibility="hidden"),et(),kn(),bt(!0),ne()){var Mr=Fe(),ja=Mr.box,ys=Mr.content;P.props.animation&&(NN([ja,ys],Rr),bC([ja,ys],"hidden"))}_e(),Ae(),P.props.animation?ne()&&function di($e,Ut){Zi($e,function(){!P.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&Ut()})}(Rr,P.unmount):P.unmount()}},hideWithInteractivity:function KT($e){Me().addEventListener("mousemove",v),eY(dS,v),v($e)},enable:function qh(){P.state.isEnabled=!0},disable:function em(){P.hide(),P.state.isEnabled=!1},unmount:function JT(){P.state.isVisible&&P.hide(),P.state.isMounted&&(nc(),la().forEach(function($e){$e._tippy.unmount()}),k.parentNode&&k.parentNode.removeChild(k),hS=hS.filter(function($e){return $e!==P}),P.state.isMounted=!1,ue("onHidden",[P]))},destroy:function QT(){P.state.isDestroyed||(P.clearDelayTimeouts(),P.unmount(),Nn(),delete n._tippy,P.state.isDestroyed=!0,ue("onDestroy",[P]))}};if(!e.render)return P;var N=e.render(P),k=N.popper,z=N.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+P.id,P.popper=k,n._tippy=P,k._tippy=P;var U=w.map(function($e){return $e.fn(P)}),W=n.hasAttribute("aria-expanded");return tn(),Ae(),bt(),ue("onCreate",[P]),e.showOnCreate&&eu(),k.addEventListener("mouseenter",function(){P.props.interactive&&P.state.isVisible&&P.clearDelayTimeouts()}),k.addEventListener("mouseleave",function(){P.props.interactive&&P.props.trigger.indexOf("mouseenter")>=0&&Me().addEventListener("mousemove",v)}),P;function X(){var $e=P.props.touch;return Array.isArray($e)?$e:[$e,0]}function J(){return"hold"===X()[0]}function ne(){var $e;return!(null==($e=P.props.render)||!$e.$$tippy)}function ce(){return _||n}function Me(){var $e=ce().parentNode;return $e?function iY(n){var t,r=dp(n)[0];return null!=r&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}($e):document}function Fe(){return uS(k)}function Ne($e){return P.state.isMounted&&!P.state.isVisible||Id.isTouch||u&&"focus"===u.type?0:IN(P.props.delay,$e?0:1,_l.delay)}function bt($e){void 0===$e&&($e=!1),k.style.pointerEvents=P.props.interactive&&!$e?"":"none",k.style.zIndex=""+P.props.zIndex}function ue($e,Ut,bn){var Rr;void 0===bn&&(bn=!0),U.forEach(function(Mr){Mr[$e]&&Mr[$e].apply(Mr,Ut)}),bn&&(Rr=P.props)[$e].apply(Rr,Ut)}function _e(){var $e=P.props.aria;if($e.content){var Ut="aria-"+$e.content,bn=k.id;dp(P.props.triggerTarget||n).forEach(function(Mr){var ja=Mr.getAttribute(Ut);if(P.state.isVisible)Mr.setAttribute(Ut,ja?ja+" "+bn:bn);else{var ys=ja&&ja.replace(bn,"").trim();ys?Mr.setAttribute(Ut,ys):Mr.removeAttribute(Ut)}})}}function Ae(){!W&&P.props.aria.expanded&&dp(P.props.triggerTarget||n).forEach(function(Ut){P.props.interactive?Ut.setAttribute("aria-expanded",P.state.isVisible&&Ut===ce()?"true":"false"):Ut.removeAttribute("aria-expanded")})}function et(){Me().removeEventListener("mousemove",v),dS=dS.filter(function($e){return $e!==v})}function Ze($e){if(!Id.isTouch||!l&&"mousedown"!==$e.type){var Ut=$e.composedPath&&$e.composedPath()[0]||$e.target;if(!P.props.interactive||!oY(k,Ut)){if(dp(P.props.triggerTarget||n).some(function(bn){return oY(bn,Ut)})){if(Id.isTouch||P.state.isVisible&&P.props.trigger.indexOf("click")>=0)return}else ue("onClickOutside",[P,$e]);!0===P.props.hideOnClick&&(P.clearDelayTimeouts(),P.hide(),s=!0,setTimeout(function(){s=!1}),P.state.isMounted||kn())}}}function at(){l=!0}function Tt(){l=!1}function mn(){var $e=Me();$e.addEventListener("mousedown",Ze,!0),$e.addEventListener("touchend",Ze,up),$e.addEventListener("touchstart",Tt,up),$e.addEventListener("touchmove",at,up)}function kn(){var $e=Me();$e.removeEventListener("mousedown",Ze,!0),$e.removeEventListener("touchend",Ze,up),$e.removeEventListener("touchstart",Tt,up),$e.removeEventListener("touchmove",at,up)}function Zi($e,Ut){var bn=Fe().box;function Rr(Mr){Mr.target===bn&&(LN(bn,"remove",Rr),Ut())}if(0===$e)return Ut();LN(bn,"remove",d),LN(bn,"add",Rr),d=Rr}function qr($e,Ut,bn){void 0===bn&&(bn=!1),dp(P.props.triggerTarget||n).forEach(function(Mr){Mr.addEventListener($e,Ut,bn),g.push({node:Mr,eventType:$e,handler:Ut,options:bn})})}function tn(){J()&&(qr("touchstart",wa,{passive:!0}),qr("touchend",Ws,{passive:!0})),function Wbe(n){return n.split(/\s+/).filter(Boolean)}(P.props.trigger).forEach(function($e){if("manual"!==$e)switch(qr($e,wa),$e){case"mouseenter":qr("mouseleave",Ws);break;case"focus":qr(tCe?"focusout":"blur",Ha);break;case"focusin":qr("focusout",Ha)}})}function Nn(){g.forEach(function($e){$e.node.removeEventListener($e.eventType,$e.handler,$e.options)}),g=[]}function wa($e){var Ut,bn=!1;if(P.state.isEnabled&&!tc($e)&&!s){var Rr="focus"===(null==(Ut=u)?void 0:Ut.type);u=$e,_=$e.currentTarget,Ae(),!P.state.isVisible&&function RN(n){return EN(n,"MouseEvent")}($e)&&dS.forEach(function(Mr){return Mr($e)}),"click"===$e.type&&(P.props.trigger.indexOf("mouseenter")<0||a)&&!1!==P.props.hideOnClick&&P.state.isVisible?bn=!0:eu($e),"click"===$e.type&&(a=!bn),bn&&!Rr&&Zs($e)}}function eo($e){var Ut=$e.target,bn=ce().contains(Ut)||k.contains(Ut);"mousemove"===$e.type&&bn||function Xbe(n,t){var e=t.clientX,r=t.clientY;return n.every(function(i){var o=i.popperRect,a=i.popperState,l=i.props.interactiveBorder,c=function tY(n){return n.split("-")[0]}(a.placement),u=a.modifiersData.offset;return!u||o.top-r+("bottom"===c?u.top.y:0)>l||r-o.bottom-("top"===c?u.bottom.y:0)>l||o.left-e+("right"===c?u.left.x:0)>l||e-o.right-("left"===c?u.right.x:0)>l})}(la().concat(k).map(function(Mr){var ja,Zh=null==(ja=Mr._tippy.popperInstance)?void 0:ja.state;return Zh?{popperRect:Mr.getBoundingClientRect(),popperState:Zh,props:e}:null}).filter(Boolean),$e)&&(et(),Zs($e))}function Ws($e){if(!(tc($e)||P.props.trigger.indexOf("click")>=0&&a)){if(P.props.interactive)return void P.hideWithInteractivity($e);Zs($e)}}function Ha($e){P.props.trigger.indexOf("focusin")<0&&$e.target!==ce()||P.props.interactive&&$e.relatedTarget&&k.contains($e.relatedTarget)||Zs($e)}function tc($e){return!!Id.isTouch&&J()!==$e.type.indexOf("touch")>=0}function qs(){nc();var $e=P.props,Ut=$e.popperOptions,bn=$e.placement,Rr=$e.offset,Mr=$e.getReferenceClientRect,ja=$e.moveTransition,ys=ne()?uS(k).arrow:null,Zh=Mr?{getBoundingClientRect:Mr,contextElement:Mr.contextElement||ce()}:n,bs=[{name:"offset",options:{offset:Rr}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ja}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(B2){var Yh=B2.state;if(ne()){var g3=Fe().box;["placement","reference-hidden","escaped"].forEach(function($2){"placement"===$2?g3.setAttribute("data-placement",Yh.placement):Yh.attributes.popper["data-popper-"+$2]?g3.setAttribute("data-"+$2,""):g3.removeAttribute("data-"+$2)}),Yh.attributes.popper={}}}}];ne()&&ys&&bs.push({name:"arrow",options:{element:ys,padding:3}}),bs.push.apply(bs,Ut?.modifiers||[]),P.popperInstance=Hbe(Zh,k,Object.assign({},Ut,{placement:bn,onFirstUpdate:p,modifiers:bs}))}function nc(){P.popperInstance&&(P.popperInstance.destroy(),P.popperInstance=null)}function la(){return N0(k.querySelectorAll("[data-tippy-root]"))}function eu($e){P.clearDelayTimeouts(),$e&&ue("onTrigger",[P,$e]),mn();var Ut=Ne(!0),bn=X(),Mr=bn[1];Id.isTouch&&"hold"===bn[0]&&Mr&&(Ut=Mr),Ut?r=setTimeout(function(){P.show()},Ut):P.show()}function Zs($e){if(P.clearDelayTimeouts(),ue("onUntrigger",[P,$e]),P.state.isVisible){if(!(P.props.trigger.indexOf("mouseenter")>=0&&P.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf($e.type)>=0&&a)){var Ut=Ne(!1);Ut?i=setTimeout(function(){P.state.isVisible&&P.hide()},Ut):o=requestAnimationFrame(function(){P.hide()})}}else kn()}}function hp(n,t){void 0===t&&(t={});var e=_l.plugins.concat(t.plugins||[]);!function Qbe(){document.addEventListener("touchstart",Kbe,up),window.addEventListener("blur",Jbe)}();var r=Object.assign({},t,{plugins:e}),s=function Ybe(n){return cS(n)?[n]:function Zbe(n){return EN(n,"NodeList")}(n)?N0(n):Array.isArray(n)?n:N0(document.querySelectorAll(n))}(n).reduce(function(l,c){var u=c&&uCe(c,r);return u&&l.push(u),l},[]);return cS(n)?s[0]:s}hp.defaultProps=_l,hp.setDefaultProps=function(t){Object.keys(t).forEach(function(r){_l[r]=t[r]})},hp.currentInput=Id,Object.assign({},BZ,{effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow)}}),hp.setDefaultProps({render:mY});const _Ce=hp,yCe=["addListener","removeListener"],bCe=["addEventListener","removeEventListener"],CCe=["on","off"];function Nh(n,t,e,r){if(V(e)&&(r=e,e=void 0),r)return Nh(n,t,e).pipe(sE(r));const[i,o]=function MCe(n){return V(n.addEventListener)&&V(n.removeEventListener)}(n)?bCe.map(a=>s=>n[a](t,s,e)):function wCe(n){return V(n.addListener)&&V(n.removeListener)}(n)?yCe.map(yY(n,t)):function xCe(n){return V(n.on)&&V(n.off)}(n)?CCe.map(yY(n,t)):[];if(!i&&Br(n))return Ur(a=>Nh(a,t,e))(Mn(n));if(!i)throw new TypeError("Invalid event target");return new F(a=>{const s=(...l)=>a.next(1o(s)})}function yY(n,t){return e=>r=>n[e](t,r)}function pS(n){return n instanceof xc}function wC(n){return"function"==typeof n}function xC(n){return"string"==typeof n}let SCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=xt({type:n,selectors:[["dynamic-view"]],inputs:{content:"content"},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(e,r){1&e&&fe(0,"div",0),2&e&&E("innerHTML",r.content,rv)},encapsulation:2}),n})();class TCe{constructor(t){this.args=t,this.wrapper=null,this.args.vcr?(this.viewRef=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{}),this.viewRef.detectChanges()):(this.viewRef=this.args.tpl.createEmbeddedView(this.args.context||{}),this.viewRef.detectChanges(),this.args.appRef.attachView(this.viewRef))}detectChanges(){this.viewRef.detectChanges()}getElement(){const t=this.viewRef.rootNodes;return 1===t.length&&t[0]===Node.ELEMENT_NODE?this.element=t[0]:(this.element=document.createElement("div"),this.element.append(...t)),this.element}destroy(){1!==this.viewRef.rootNodes[0]&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.viewRef),this.viewRef.destroy(),this.viewRef=null}}class ACe{constructor(t){this.value=t}getElement(){return this.value}detectChanges(){}destroy(){}}class DCe{constructor(t){if(this.options=t,t.vcr)this.compRef=t.vcr.createComponent(t.component,{index:t.vcr.length,injector:t.injector||t.vcr.injector});else{const e=t.resolver.resolveComponentFactory(t.component);this.compRef=e.create(t.injector),t.appRef.attachView(this.compRef.hostView)}}get ref(){return this.compRef}setInput(t,e){return this.compRef.instance[t]=e,this}setInputs(t){return Object.keys(t).forEach(e=>{this.compRef.instance[e]=t[e]}),this}detectChanges(){return this.compRef.hostView.detectChanges(),this}appendTo(t){return t.appendChild(this.getElement()),this}removeFrom(t){return t.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.compRef.location.nativeElement}destroy(){this.compRef.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.compRef.hostView),this.compRef=null}}let $N=(()=>{class n{constructor(e,r,i){this.resolver=e,this.injector=r,this.appRef=i}createComponent(e,r={}){return new DCe({component:e,vcr:r.vcr,injector:r.injector||this.injector,appRef:this.appRef,resolver:this.resolver})}createTemplate(e,r={}){return new TCe({vcr:r.vcr,appRef:this.appRef,tpl:e,context:r.context})}createView(e,r={}){if(pS(e))return this.createTemplate(e,r);if(wC(e))return this.createComponent(e,r);if(xC(e))return new ACe(e);throw"Type of content is not supported"}}return n.\u0275fac=function(e){return new(e||n)(Pe(pa),Pe(fo),Pe(yg))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ICe=(()=>{class n{constructor(e,r,i){this.defaultTpl=e,this.vcr=r,this.viewService=i}ngOnInit(){this.resolveContentType()}ngOnChanges(e){e.view&&!e.view.isFirstChange()&&this.resolveContentType()}resolveContentType(){this.viewRef?.destroy(),xC(this.view)?(this.viewRef=this.viewService.createComponent(SCe,{vcr:this.vcr,injector:this.injector}),this.viewRef.setInput("content",this.view).detectChanges()):this.viewRef=this.viewService.createView(this.view||this.defaultTpl,{vcr:this.vcr,injector:this.injector??this.vcr.injector,context:this.context})}ngOnDestroy(){this.viewRef?.destroy()}}return n.\u0275fac=function(e){return new(e||n)(ye(xc),ye(jl),ye($N))},n.\u0275dir=Ht({type:n,selectors:[["","dynamicView",""]],inputs:{view:["dynamicView","view"],injector:["dynamicViewInjector","injector"],context:["dynamicViewContext","context"]},features:[co]}),n})(),bY=!1,CY=!1;function wY(n,t={root:null,threshold:.3}){const e=PY(n);return new F(r=>{if(!bY)return r.next(),void r.complete();const i=new IntersectionObserver(o=>{o[o.length-1].isIntersecting&&(r.next(),r.complete())},t);return i.observe(e),()=>i.disconnect()})}function xY(n){const t=PY(n);return MY(t).pipe(function OCe(n,t=Jy){return function PCe(n){return Xe((t,e)=>{let r=!1,i=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,r){r=!1;const c=i;i=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};t.subscribe(B(e,c=>{r=!0,i=c,o||Mn(n(c)).subscribe(o=B(e,s,l))},()=>{a=!0,(!r||!o||o.closed)&&e.complete()}))})}(()=>LE(n,t))}(150),R(()=>function ECe(n){const t=n.offsetWidth;return t>n.parentElement.offsetWidth||t{if(!CY)return t.next(),void t.complete();const e=new ResizeObserver(()=>t.next(!0));return e.observe(n),()=>e.disconnect()})}(n)}function UN(n){const t={},e=["useTextContent","variations","useHostWidth","defaultVariation","beforeRender","lazy","variation","isEnabled","className","onlyTextOverflow","data","content","context","hideOnEscape","customHost","injector","preserveView","vcr","popperWidth"],r=["onShow","onHidden","onCreate"];return Object.keys(n).forEach(i=>{!e.includes(i)&&!r.includes(i)&&(t[i]=n[i])}),t}function PY(n){return n instanceof wr?n.nativeElement:n}typeof window<"u"&&(bY="IntersectionObserver"in window,CY="ResizeObserver"in window);const OY=new Ct("Tippy config",{providedIn:"root",factory:()=>({})}),BCe=new Ct("TIPPY_REF");let Lh=(()=>{class n{constructor(e,r,i,o,a,s,l){this.platformId=e,this.globalConfig=r,this.injector=i,this.viewService=o,this.vcr=a,this.zone=s,this.hostRef=l,this.onlyTextOverflow=!1,this.useHostWidth=!1,this.hideOnEscape=!1,this.detectChangesComponent=!0,this.visible=new _r,this.isVisible=!1,this.destroyed=new D,this.enabled=!0,this.variationDefined=!1,this.visibleInternal=new D}ngOnChanges(e){if($I(this.platformId))return;let i,r=Object.keys(e).reduce((o,a)=>("isVisible"===a||(o[a]=e[a].currentValue),o),{});VN("variation",e)?(i=e.variation.currentValue,this.variationDefined=!0):this.variationDefined||(i=this.globalConfig.defaultVariation,this.variationDefined=!0),i&&(r={...this.globalConfig.variations[i],...r}),VN("isEnabled",e)&&(this.enabled=e.isEnabled.currentValue,this.setStatus()),VN("isVisible",e)&&(this.isVisible?this.show():this.hide()),this.setProps({...this.props,...r})}ngOnInit(){this.useHostWidth&&(this.props.maxWidth=this.hostWidth)}ngAfterViewInit(){$I(this.platformId)||this.zone.runOutsideAngular(()=>{this.lazy?this.onlyTextOverflow?wY(this.host).pipe(_a(()=>xY(this.host)),sl(this.destroyed)).subscribe(e=>{this.checkOverflow(e)}):wY(this.host).pipe(sl(this.destroyed)).subscribe(()=>{this.createInstance()}):this.onlyTextOverflow?xY(this.host).pipe(sl(this.destroyed)).subscribe(e=>{this.checkOverflow(e)}):this.createInstance()})}ngOnDestroy(){this.destroyed.next(),this.instance?.destroy(),this.destroyView()}destroyView(){this.viewOptions$=null,this.viewRef?.destroy(),this.viewRef=null}show(){this.instance?.show()}hide(){this.instance?.hide()}enable(){this.instance?.enable()}disable(){this.instance?.disable()}setProps(e){this.props=e,this.instance?.setProps(UN(e))}setStatus(){this.enabled?this.instance?.enable():this.instance?.disable()}get host(){return this.customHost||this.hostRef.nativeElement}get hostWidth(){return this.host.getBoundingClientRect().width}createInstance(){!this.content&&!SY(this.useTextContent)||this.zone.runOutsideAngular(()=>{this.instance=_Ce(this.host,{allowHTML:!0,appendTo:document.body,...UN(this.globalConfig),...UN(this.props),onMount:e=>{this.isVisible=!0,this.visibleInternal.next(this.isVisible),this.visible.observed&&this.zone.run(()=>this.visible.next(this.isVisible)),this.useHostWidth&&this.listenToHostResize(),this.globalConfig.onMount?.(e)},onCreate:e=>{if(e.popper.classList.add(`tippy-variation-${this.variation||this.globalConfig.defaultVariation}`),this.className)for(const r of function RCe(n){return(function LCe(n){return"string"==typeof n}(n)?n.split(" "):n).map(e=>e?.trim()).filter(Boolean)}(this.className))e.popper.classList.add(r);this.globalConfig.onCreate?.(e),!0===this.isVisible&&e.show()},onShow:e=>{e.reference.setAttribute("data-tippy-open",""),this.zone.run(()=>{const r=this.resolveContent(e);xC(r)&&(e.setProps({allowHTML:!1}),r?.trim()?this.enable():this.disable()),e.setContent(r),this.hideOnEscape&&this.handleEscapeButton()}),this.useHostWidth?this.setInstanceWidth(e,this.hostWidth):this.popperWidth&&this.setInstanceWidth(e,this.popperWidth),this.globalConfig.onShow?.(e)},onHide(e){e.reference.removeAttribute("data-tippy-open")},onHidden:e=>{this.destroyView(),this.isVisible=!1,this.visibleInternal.next(this.isVisible),this.visible.observed&&this.zone.run(()=>this.visible.next(this.isVisible)),this.globalConfig.onHidden?.(e)}}),this.setStatus(),this.setProps(this.props),"contextMenu"===this.variation&&this.handleContextMenu()})}resolveContent(e){!this.viewOptions$&&!xC(this.content)&&(wC(this.content)?(this.instance.data=this.data,this.viewOptions$={injector:fo.create({providers:[{provide:BCe,useValue:this.instance}],parent:this.injector})}):pS(this.content)&&(this.viewOptions$={context:{$implicit:this.hide.bind(this),data:this.data}})),this.viewRef=this.viewService.createView(this.content,{vcr:this.vcr,...this.viewOptions$}),this.detectChangesComponent&&wC(this.content)&&this.viewRef.detectChanges();let r=this.viewRef.getElement();return SY(this.useTextContent)&&(r=e.reference.textContent),xC(r)&&this.globalConfig.beforeRender&&(r=this.globalConfig.beforeRender(r)),r}handleContextMenu(){Nh(this.host,"contextmenu").pipe(sl(this.destroyed)).subscribe(e=>{e.preventDefault(),this.instance.setProps({getReferenceClientRect:()=>({width:0,height:0,top:e.clientY,bottom:e.clientY,left:e.clientX,right:e.clientX})}),this.instance.show()})}handleEscapeButton(){this.zone.runOutsideAngular(()=>{Nh(document.body,"keydown").pipe(Te(({code:e})=>"Escape"===e),sl(Dl(this.destroyed,this.visibleInternal.pipe(Te(e=>!e))))).subscribe(()=>this.hide())})}checkOverflow(e){e?this.instance?this.instance.enable():this.createInstance():this.instance?.disable()}listenToHostResize(){MY(this.host).pipe(sl(Dl(this.destroyed,this.visibleInternal))).subscribe(()=>{this.setInstanceWidth(this.instance,this.hostWidth)})}setInstanceWidth(e,r){const i=function NCe(n){return function FCe(n){return null==n}(n)?"":"string"==typeof n?n:`${n}px`}(r);e.popper.style.width=i,e.popper.style.maxWidth=i,e.popper.firstElementChild.style.maxWidth=i}}return n.\u0275fac=function(e){return new(e||n)(ye(_g),ye(OY),ye(fo),ye($N),ye(jl),ye(Di),ye(wr))},n.\u0275dir=Ht({type:n,selectors:[["","tippy",""]],inputs:{appendTo:"appendTo",delay:"delay",duration:"duration",hideOnClick:"hideOnClick",interactive:"interactive",interactiveBorder:"interactiveBorder",maxWidth:"maxWidth",offset:"offset",placement:"placement",popperOptions:"popperOptions",showOnCreate:"showOnCreate",trigger:"trigger",triggerTarget:"triggerTarget",zIndex:"zIndex",animation:"animation",useTextContent:"useTextContent",lazy:"lazy",variation:"variation",isEnabled:"isEnabled",className:"className",onlyTextOverflow:"onlyTextOverflow",data:"data",useHostWidth:"useHostWidth",hideOnEscape:"hideOnEscape",detectChangesComponent:"detectChangesComponent",popperWidth:"popperWidth",content:["tippy","content"],customHost:["tippyHost","customHost"],isVisible:"isVisible"},outputs:{visible:"visible"},exportAs:["tippy"],standalone:!0,features:[co]}),n})();function VN(n,t){return n in t}function SY(n){return null!=n&&"false"!=`${n}`}const gS={theme:null,arrow:!1,animation:"scale",trigger:"mouseenter",offset:[0,5]};function mS(n={}){return{provide:OY,useValue:n}}var L0;function $Ce(n,t){1&n&&(O(0,"storecloud-icon",3),h(1,"\n \n "),S()),2&n&&E("icon","help-circle")("size",12)}function UCe(n,t){if(1&n&&(Ue(0),h(1,"\n "),O(2,"span",1),h(3,"\n "),ee(4,$Ce,2,2,"storecloud-icon",2),h(5,"\n "),S(),h(6,"\n"),Ve()),2&n){const e=se();A(2),Fo("tippy",e.tooltip),E("placement",e.placement),A(2),E("ngIf",e.tooltip)}}let Wc=((L0=class{constructor(){this.tooltip=null,this.placement="auto"}}).\u0275fac=function(t){return new(t||L0)},L0.\u0275cmp=xt({type:L0,selectors:[["storecloud-tooltip"]],inputs:{tooltip:"tooltip",placement:"placement"},standalone:!0,features:[Gr([mS({defaultVariation:"tooltip",variations:{tooltip:{...gS,theme:"light",arrow:!0}}})]),Do],decls:2,vars:1,consts:[[4,"ngIf"],[3,"tippy","placement"],[3,"icon","size",4,"ngIf"],[3,"icon","size"]],template:function(t,e){1&t&&(ee(0,UCe,7,3,"ng-container",0),h(1,"\n")),2&t&&E("ngIf",e.tooltip)},dependencies:[Wi,tr,Lh,hs],styles:["app-icon[_ngcontent-%COMP%]{display:flex}"]}),L0);var F0;function VCe(n,t){if(1&n&&(O(0,"span",10),h(1),S()),2&n){const e=se();A(1),jt(null==e.chart?null:e.chart.subTitle)}}function zCe(n,t){1&n&&(Ue(0),h(1," "),Ve())}Wc=ke([en({checkProperties:!0})],Wc);const HCe=function(){return{display:"block",padding:"0px"}},jCe=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"10px","font-size":"8px"}};function GCe(n,t){1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",11),h(2,"\n")),2&n&&(A(1),E("ngStyle",Wt(2,HCe))("theme",Wt(3,jCe)))}const WCe=function(n){return{heading:!0,"has-subtitle":n}},qCe=function(n){return{opacity:n}};let vS=(F0=class{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.tabs=Object.values(Zo),this.loading=!0,this.color=["#06B1A9","#073433","#CAFFFF","#818181","#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],this.mediaQueryForChart=[{query:{maxWidth:500},option:{textStyle:{fontSize:10},tooltip:{textStyle:{fontSize:10}},series:{label:{fontSize:10}},legend:{textStyle:{fontSize:10}}}}],this._data=null,this.echartsExtentions=[Cye,aC,rS,SZ,lC]}drawChart(t){try{this.options={color:this.color,textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},title:[{text:t?.title?.subText,subtext:t?.title?.text,padding:0,left:"75%",top:"40%",itemGap:5,textAlign:"center",textStyle:{color:"#111111",fontFamily:"Montserrat",fontWeight:"bolder",fontSize:18},subtextStyle:{fontSize:10,color:"#888888"}},{text:t?.subTitle?.text,subtext:t?.subTitle?.subText,padding:[0,0,0,0],textAlign:"left",top:"5%",itemGap:5,textStyle:{fontWeight:"normal",fontSize:11,color:"#888888"},subtextStyle:{fontSize:16,color:"#111111",fontWeight:"bolder"}}],tooltip:{show:!0},legend:{orient:"vertical",top:"middle",textAlign:"left",left:"0",icon:"circle",itemGap:10,itemWidth:10,formatter:function(e){const r=t?.data?.find(i=>i.name===e)?.value;return`${e} (${r})`},textStyle:{fontSize:12,color:"#111111"}},series:[{type:"pie",radius:["70%","90%"],center:["75%","50%"],avoidLabelOverlap:!0,itemStyle:{borderWidth:2,borderColor:"#ffffff"},label:{show:!1},labelLine:{show:!1},data:t?.data}],media:this.mediaQueryForChart},we(!0).pipe(ya(300)).subscribe(()=>this.loading=!1)}catch(e){throw this.loading=!1,new Error(e)}}onChartInit(t){this._chart=t}get pChart(){return this._chart}formatTooltip(t){let e="";for(let r=0;r${i?.toDateString()}\n
${t[r].seriesName}: ${t[r].value?.[1]?.toLocaleString()}`}return e}subscribeToData(t){t?.pipe(Qe(this)).subscribe(e=>{if(e?.data?.length>3){const i=JSON.parse(JSON.stringify(e?.data?.slice(0,3))),o=JSON.parse(JSON.stringify(e?.data?.slice(3,e?.data?.length)));i.push({name:"Others",value:o?.map(a=>parseFloat(a.value?.toString()??"0")).reduce((a,s)=>a+s)}),e.data=i}this.drawChart(e)})}},F0.\u0275fac=function(t){return new(t||F0)},F0.\u0275cmp=xt({type:F0,selectors:[["storecloud-shared-chart-pie-doughnut"]],inputs:{chart:"chart",data:"data"},decls:26,vars:16,consts:[[1,"card","chart-card","pb-0"],[3,"ngClass"],[1,"heading-text"],[1,"d-flex"],[3,"tooltip"],["class","text-light",4,"ngIf"],[1,"content","pr-2","pl-2","pb-3","chart-pie-doughnut-container"],["echarts","",1,"chart-pie-doughnut",3,"id","options","ngStyle","defaultHeight","extentions","isResizable","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-light"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(O(0,"div",0),h(1,"\n "),O(2,"div",1),h(3,"\n "),O(4,"p",2),h(5,"\n "),O(6,"span",3),h(7),fe(8,"storecloud-tooltip",4),h(9,"\n "),S(),h(10,"\n "),ee(11,VCe,2,1,"span",5),h(12,"\n "),S(),h(13,"\n "),S(),h(14,"\n\n "),O(15,"div",6),h(16,"\n "),O(17,"div",7),yt("chartinit",function(i){return e.onChartInit(i)}),S(),h(18,"\n "),ee(19,zCe,2,0,"ng-container",8),h(20,"\n "),S(),h(21,"\n"),S(),h(22,"\n\n"),ee(23,GCe,3,4,"ng-template",null,9,zt),h(25,"\n")),2&t){const r=ht(24);let i;A(2),E("ngClass",Nt(12,WCe,null==e.chart?null:e.chart.showTabs)),A(5),Jt("\n ",null==e.chart?null:e.chart.title,"\n "),A(1),E("tooltip",null==e.chart?null:e.chart.tooltip),A(3),E("ngIf",null==e.chart?null:e.chart.subTitle),A(6),Fo("id",null!==(i=null==e.chart?null:e.chart.id)&&void 0!==i?i:"chart_pie-douhnut"),E("options",e.options)("ngStyle",Nt(14,qCe,e.loading?0:1))("defaultHeight",(null==e.chart?null:e.chart.height)||150)("extentions",e.echartsExtentions)("isResizable",!0),A(2),E("ngIf",!e.loading)("ngIfElse",r)}},dependencies:[Vo,tr,Gi,ba,cC,Wc],styles:[".heading-text[_ngcontent-%COMP%]{display:grid;gap:0}.heading-text[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}ngx-skeleton-loader[_ngcontent-%COMP%]{margin-top:10px;height:130px;position:relative;top:-55%;left:50%;transform:translate(-50%,-50%)}.chart-pie-doughnut-container[_ngcontent-%COMP%]{height:160px;margin-top:4px}@media screen and (max-width: 550px){.chart-pie-doughnut-container[_ngcontent-%COMP%]{height:150px}}.chart-pie-doughnut[_ngcontent-%COMP%]{height:140px}"]}),F0);var B0;function ZCe(n,t){if(1&n&&(O(0,"span",11),h(1),S()),2&n){const e=se();A(1),jt(null==e.chart?null:e.chart.subTitle)}}vS=ke([en({checkProperties:!0})],vS);const YCe=function(n){return{current:n}};function XCe(n,t){if(1&n){const e=jr();O(0,"li",14),yt("click",function(){const o=hr(e).$implicit,a=se(2);return a.activeTab=o,fr(a.tabChange(o))}),h(1),S()}if(2&n){const e=t.$implicit,r=se(2);E("ngClass",Nt(2,YCe,e===r.activeTab)),A(1),Jt("\n ",e,"\n ")}}function KCe(n,t){if(1&n&&(O(0,"ul",12),h(1,"\n "),ee(2,XCe,2,4,"li",13),h(3,"\n "),S()),2&n){const e=se();A(2),E("ngForOf",e.tabs)}}function JCe(n,t){1&n&&(Ue(0),h(1," "),Ve())}const QCe=function(){return{display:"block",padding:"0px"}},e3e=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"10px","font-size":"8px"}};function t3e(n,t){1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",15),h(2,"\n")),2&n&&(A(1),E("ngStyle",Wt(2,QCe))("theme",Wt(3,e3e)))}const n3e=function(n){return{heading:!0,"has-subtitle":n}},r3e=function(n){return{opacity:n}};let _S=(B0=class{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.tabEvent=new _r,this.tabs=Object.values(Zo),this.loading=!0,this.activeTab=Zo.D1,this.color=["#06B1A9","#073433","#CAFFFF","#818181","#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],this.mediaQueryForChart=[{query:{maxWidth:500},option:{textStyle:{fontSize:10},tooltip:{textStyle:{fontSize:10}},series:{label:{fontSize:10}},legend:{textStyle:{fontSize:10}}}}],this._data=null,this.echartsExtentions=[CO,SZ,aC,rS,lC]}ngAfterViewInit(){this.tabChange(this.activeTab)}tabChange(t){const e=new Date;let r=new Date;switch(t){case Zo.D1:r.setDate(e.getDate()-1);break;case Zo.D7:r.setDate(e.getDate()-7);break;case Zo.D30:r.setDate(e.getDate()-30);break;case Zo.YTD:r=new Date((new Date).getFullYear(),0,1)}this.tabEvent.emit({from:t===Zo.AllTime?void 0:r?.getTime(),till:t===Zo.AllTime?void 0:e?.getTime()})}drawChart(t){const e=[];t?.series?.forEach(i=>{e.push({name:i.name,type:"line",stack:"Total",symbol:"none",emphasis:{focus:"series"},areaStyle:{},data:i?.data?.map(o=>[new Date(o.date).valueOf(),parseFloat(o.value?.toString())])})});const r=t?.series?.[0]?.data.sort((i,o)=>new Date(o.date).getTime()-new Date(i.date).getTime())[0];try{this.options={color:this.color,textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},title:[{text:`Last updated: ${new Date(r?.date).toLocaleString()}`,top:"bottom",textStyle:{fontSize:10,fontWeight:"normal",color:"#707070"}}],tooltip:{trigger:"axis",triggerOn:"click|mousemove",hideDelay:500,axisPointer:{type:"line"},formatter:function(i){const o=i[0].value?.[0];let a="";for(let s=0;s',a+=""+i[s].seriesName+": "+i3e(i[s].value?.[1],2)+"
";return`Date: ${new Date(o)?.toLocaleString()}
${a}`}},legend:{show:!0,orient:"horizontal",x:"left",icon:"circle",itemGap:40,itemWidth:10,textStyle:{fontSize:12,color:"#707070",lineHeight:18,padding:[0,0,0,10]}},grid:{top:"20%",left:"0px",right:"0px",bottom:"20%"},xAxis:[{type:"time",boundaryGap:!1,axisLabel:{show:!1},axisLine:{show:!1,lineStyle:{color:"transparent"}},splitArea:{show:!1},splitLine:{show:!0,lineStyle:{color:"#111111",type:"dashed",opacity:.1}}}],yAxis:[{show:!1,type:"value"}],series:e,media:this.mediaQueryForChart},we(!0).pipe(ya(300)).subscribe(()=>this.loading=!1)}catch(i){throw this.loading=!1,new Error(i)}}onChartInit(t){this._chart=t}get pChart(){return this._chart}formatTooltip(t){let e="";for(let r=0;r${i?.toDateString()}\n
${t[r].seriesName}: ${t[r].value?.[1]?.toLocaleString()}`}return e}subscribeToData(t){t?.pipe(Qe(this)).subscribe(e=>{e?.series?.forEach(r=>{r.data=gd.orderBy(r.data,"date","asc")}),this.drawChart(e)})}},B0.\u0275fac=function(t){return new(t||B0)},B0.\u0275cmp=xt({type:B0,selectors:[["storecloud-shared-chart-area-line"]],inputs:{chart:"chart",data:"data"},outputs:{tabEvent:"tabEvent"},decls:28,vars:17,consts:[[1,"card","chart-card","pb-0"],[3,"ngClass"],[1,"heading-text"],[1,"d-flex"],[3,"tooltip"],["class","text-light",4,"ngIf"],["class","tabs-list",4,"ngIf"],[1,"content","pr-2","pl-2","pb-3","chart-area-line-container"],["echarts","",1,"chart-area-line",3,"id","options","extentions","defaultHeight","ngStyle","isResizable","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-light"],[1,"tabs-list"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(O(0,"div",0),h(1,"\n "),O(2,"div",1),h(3,"\n "),O(4,"p",2),h(5,"\n "),O(6,"span",3),h(7),fe(8,"storecloud-tooltip",4),h(9,"\n "),S(),h(10,"\n "),ee(11,ZCe,2,1,"span",5),h(12,"\n "),S(),h(13,"\n "),ee(14,KCe,4,1,"ul",6),h(15,"\n "),S(),h(16,"\n\n "),O(17,"div",7),h(18,"\n "),O(19,"div",8),yt("chartinit",function(i){return e.onChartInit(i)}),S(),h(20,"\n "),ee(21,JCe,2,0,"ng-container",9),h(22,"\n "),S(),h(23,"\n"),S(),h(24,"\n\n"),ee(25,t3e,3,4,"ng-template",null,10,zt),h(27,"\n")),2&t){const r=ht(26);let i;A(2),E("ngClass",Nt(13,n3e,null==e.chart?null:e.chart.showTabs)),A(5),Jt("\n ",null==e.chart?null:e.chart.title,"\n "),A(1),E("tooltip",null==e.chart?null:e.chart.tooltip),A(3),E("ngIf",null==e.chart?null:e.chart.subTitle),A(3),E("ngIf",null==e.chart?null:e.chart.showTabs),A(5),Fo("id",null!==(i=null==e.chart?null:e.chart.id)&&void 0!==i?i:"chart_area-line"),E("options",e.options)("extentions",e.echartsExtentions)("defaultHeight",(null==e.chart?null:e.chart.height)||150)("ngStyle",Nt(15,r3e,e.loading?0:1))("isResizable",!0),A(2),E("ngIf",!e.loading)("ngIfElse",r)}},dependencies:[Vo,ma,tr,Gi,ba,cC,Wc],styles:[".heading-text[_ngcontent-%COMP%]{display:grid;gap:0}.heading-text[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-55%;left:50%;transform:translate(-50%,-50%)}.chart-area-line-container[_ngcontent-%COMP%]{height:160px}.chart-area-line[_ngcontent-%COMP%]{height:150px}"]}),B0);function i3e(n,t=2){if(!+n)return"0 Bytes";const r=t<0?0:t,o=Math.floor(Math.log(n)/Math.log(1e3));return`${parseFloat((n/Math.pow(1e3,o)).toFixed(r))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o]}`}var $0;function o3e(n,t){1&n&&(Ue(0),h(1," "),Ve())}_S=ke([en({checkProperties:!0})],_S);const a3e=function(){return{display:"block",padding:"0"}},s3e=function(){return{"margin-top":"0px","margin-bottom":"10px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"8px"}};function l3e(n,t){1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",4),h(2,"\n")),2&n&&(A(1),E("ngStyle",Wt(2,a3e))("theme",Wt(3,s3e)))}const c3e=function(n){return{height:"100%",padding:n}},u3e=function(n){return{height:"100%",opacity:n}};let zN=($0=class{set data(t){this.drawChart(t)}constructor(){this.chart=null,this.loading=!0,this.__chart=null,this.echartsExtentions=[CO,aC,rS,lC]}onChartInit(t){this._chart=t}drawChart(t){this._chart&&this._chart.destroy();try{this.options=t,t&&we(!0).pipe(ya(600)).subscribe(()=>this.loading=!1)}catch(e){throw new Error(e)}}get pChart(){return this._chart}},$0.\u0275fac=function(t){return new(t||$0)},$0.\u0275cmp=xt({type:$0,selectors:[["storecloud-shared-chart-dynamic"]],inputs:{chart:"chart",data:"data"},decls:10,vars:14,consts:[[3,"ngStyle"],["id","dynamicChart","echarts","",3,"extentions","isResizable","options","ngStyle","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(O(0,"div",0),h(1,"\n "),O(2,"div",1),yt("chartinit",function(i){return e.onChartInit(i)}),S(),h(3,"\n "),ee(4,o3e,2,0,"ng-container",2),h(5,"\n"),S(),h(6,"\n\n"),ee(7,l3e,3,4,"ng-template",null,3,zt),h(9,"\n")),2&t){const r=ht(8);Mi("content p-0 pr-0 ",null!=e.chart&&e.chart.showYAxisLabel&&!e.loading?"pl-2":"",""),E("ngStyle",Nt(10,c3e,null==e.chart||null==e.chart.cssStyle?null:e.chart.cssStyle.padding)),A(2),E("extentions",e.echartsExtentions)("isResizable",!0)("options",e.options)("ngStyle",Nt(12,u3e,e.loading?0:1)),A(2),E("ngIf",!e.loading)("ngIfElse",r)}},dependencies:[tr,Gi,ba,cC],styles:["ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-50%;left:50%;transform:translate(-50%,-50%)}"]}),$0);function yS(n,t,e,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(t,e,o):a(t,e))||o);return i>3&&o&&Object.defineProperty(t,e,o),o}function AY(n,t){return function(e,r){t(e,r,n)}}zN=ke([en({checkProperties:!0})],zN);var h3e=De(93),f3e=De.n(h3e);const jN=new Ct("COPY_TO_CLIPBOARD_HANDLER");let GN=(()=>{let n=class{constructor(e){this.globalOnCopy=e,this.options={}}copy(){f3e()(this.text,Object.assign({onCopy:e=>{var r;null===(r=this.globalOnCopy)||void 0===r||r.call(this,this.text,e)}},this.options))}};return n.\u0275fac=function(e){return new(e||n)(ye(jN,8))},n.\u0275dir=Ht({type:n,selectors:[["","copyToClipboard",""]],hostBindings:function(e,r){1&e&&yt("click",function(){return r.copy()})},inputs:{options:["copyToClipboardOptions","options"],text:["copyToClipboard","text"]}}),yS([s7("copyToClipboard")],n.prototype,"text",void 0),yS([s7("copyToClipboardOptions")],n.prototype,"options",void 0),yS([fre("click")],n.prototype,"copy",null),n=yS([AY(0,rd()),AY(0,Jp(jN))],n),n})(),WN=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({}),n})();var U0;let CS=((U0=class{constructor(){this.item=null}}).\u0275fac=function(t){return new(t||U0)},U0.\u0275cmp=xt({type:U0,selectors:[["storecloud-shared-block-status"]],inputs:{item:"item",cssClass:"cssClass"},decls:10,vars:9,template:function(t,e){1&t&&(Ue(0),h(1,"\n "),O(2,"span"),h(3),Gt(4,"titlecase"),O(5,"span"),h(6),S(),h(7),S(),h(8,"\n"),Ve(),h(9,"\n")),2&t&&(A(2),Mi("",e.cssClass," text-light"),A(1),Jt("\n ",null!=e.item&&e.item.signedBlockMiners&&null!=e.item&&e.item.numOfBlockMiners&&null!=e.item&&e.item.signedBlockMiners&&null!=e.item&&e.item.numOfBlockMiners&&(null==e.item?null:e.item.signedBlockMiners)===(null==e.item?null:e.item.numOfBlockMiners)?"Finalized":Gn(4,7,"Confirmed"),"\n by\n "),A(3),Jt("\n ",null!=e.item&&e.item.signedBlockMiners&&null!=e.item&&e.item.numOfBlockMiners&&(null==e.item?null:e.item.signedBlockMiners)===(null==e.item?null:e.item.numOfBlockMiners)?null==e.item?null:e.item.signedBlockMiners:(null==e.item?null:e.item.signedCloudMiners)||0,"\n "),A(1),gy("\n of\n ",null!=e.item&&e.item.signedBlockMiners&&null!=e.item&&e.item.numOfBlockMiners&&(null==e.item?null:e.item.signedBlockMiners)===(null==e.item?null:e.item.numOfBlockMiners)?null==e.item?null:e.item.numOfBlockMiners:(null==e.item?null:e.item.numOfCloudMiners)||0,"\n ",null!=e.item&&e.item.signedBlockMiners&&null!=e.item&&e.item.numOfBlockMiners&&(null==e.item?null:e.item.signedBlockMiners)===(null==e.item?null:e.item.numOfBlockMiners)?"Block Miners":"Cloud Miners","\n "))},dependencies:[vM]}),U0);var V0;function p3e(n,t){if(1&n&&(Ue(0),h(1),Ve()),2&n){const e=se(2);A(1),Jt(" in ",null==e.item?null:e.item.blockTime," ")}}function g3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"timeAgo"),Ve()),2&n){const e=se(2);A(1),Jt("\n ",Gn(2,1,null==e.item?null:e.item.txnTime),"\n ")}}function m3e(n,t){if(1&n&&(Ue(0),h(1,"\n "),fe(2,"storecloud-shared-value-formatter",5),h(3,"\n "),Ve()),2&n){const e=se(2);A(2),E("item",e.item)}}function v3e(n,t){if(1&n&&(O(0,"p",3),h(1,"\n "),ee(2,p3e,2,1,"ng-container",4),h(3,"\n "),ee(4,g3e,3,3,"ng-container",4),h(5,"\n "),ee(6,m3e,4,1,"ng-container",4),h(7),S()),2&n){const e=se();A(2),E("ngIf",null==e.item?null:e.item.blockTime),A(2),E("ngIf",null==e.item?null:e.item.txnTime),A(2),E("ngIf",(null==e.item?null:e.item.link)&&(null==e.item?null:e.item.value)),A(1),Jt("\n ",null==e.item?null:e.item.symbol,"\n ")}}CS=ke([en({checkProperties:!0})],CS);let MC=((V0=class{constructor(){this.item=null}}).\u0275fac=function(t){return new(t||V0)},V0.\u0275cmp=xt({type:V0,selectors:[["storecloud-shared-block-status-with-time"]],inputs:{item:"item"},decls:8,vars:3,consts:[[1,"time-numbers"],[3,"size","icon"],["class","time",4,"ngIf"],[1,"time"],[4,"ngIf"],["cssClass","time",3,"item"]],template:function(t,e){1&t&&(O(0,"div",0),h(1,"\n "),O(2,"storecloud-icon",1),h(3,"\n "),S(),h(4,"\n "),ee(5,v3e,8,4,"p",2),h(6,"\n"),S(),h(7,"\n")),2&t&&(A(2),E("size",18)("icon",null!=e.item&&e.item.signedBlockMiners&&null!=e.item&&e.item.numOfBlockMiners&&(null==e.item?null:e.item.signedBlockMiners)===(null==e.item?null:e.item.numOfBlockMiners)?"check-circle":"box"),A(3),E("ngIf",(null==e.item?null:e.item.signedBlockMiners)&&(null==e.item?null:e.item.numOfBlockMiners)&&(null==e.item?null:e.item.signedBlockMiners)===(null==e.item?null:e.item.numOfBlockMiners)&&((null==e.item?null:e.item.value)||(null==e.item?null:e.item.blockTime)||(null==e.item?null:e.item.txnTime)||(null==e.item?null:e.item.txnLink))))}}),V0);MC=ke([en({checkProperties:!0})],MC);let qN=(()=>{class n{constructor(e,r){this.changeDetectorRef=e,this.ngZone=r,this.timer=null}transform(e){if(this.removeTimer(),!e)return null;let r;r=Math.abs(Date.now()-parseInt(e?.toString()))typeof window<"u"?window.setTimeout(()=>{this.ngZone.run(()=>this.changeDetectorRef.markForCheck())},a):null);const s=Math.round(Math.abs(o/60)),l=Math.round(Math.abs(s/60)),c=Math.round(Math.abs(l/24)),d=(Math.round(Math.abs(c/30.416)),Math.round(Math.abs(c/365)));return Number.isNaN(o)?"":o<=1?"1s":o<=59?o+"s":s<=1?"1min":s<=59?s+"min":l<=1?"1h":l<=24?l+"h":c<=1?"1d":c<=345?c+"d":c<=545?"1y":d+"y"}ngOnDestroy(){this.removeTimer()}removeTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=null)}getSecondsUntilUpdate(e){return e<60?2:e<3600?30:e<86400?300:3600}}return n.\u0275fac=function(e){return new(e||n)(ye(Mc,16),ye(Di,16))},n.\u0275pipe=bo({name:"timeAgo",type:n,pure:!1}),n})(),IY=(()=>{class n{transform(e,r){return r=r||32,e=e?.toString()?.replace("https://","")?.replace("http://","")?.replace("www",""),e&&e?.length>r?e?.slice(0,r)+"...":e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=bo({name:"trim",type:n,pure:!1}),n})(),EY=(()=>{class n{transform(e,r){let i;const o=["K","M","B","T","P","E"],a=e<0;return Number.isNaN(e)||e<1e3&&e>=0||!this.isNumeric(e)||e<0&&e>-1e3?(!r||this.isNumeric(e),this.toFixed(e,r)):a?(e*=-1,i=Math.floor(Math.log(e)/Math.log(1e3)),this.toFixed(-1*e/Math.pow(1e3,i),r)+o[i-1]):(i=Math.floor(Math.log(e)/Math.log(1e3)),this.toFixed(e/Math.pow(1e3,i),r)+o[i-1])}toFixed(e,r){try{return r?.force?e?.toFixed(r?.count):e?.toFixed(r?.count)?.replace(/[.,]00$/,"")}catch(i){return console.error(i),e}}isNumeric(e){return e<0&&(e*=-1),!!/^-{0,1}\d+$/.test(e)||!!/^\d+\.\d+$/.test(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=bo({name:"shortNumber",type:n,pure:!0}),n})(),kY=(()=>{class n{transform(e,r){e.value=r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=bo({name:"replaceValue",type:n,pure:!1}),n})();var z0;function _3e(n,t){if(1&n&&(Ue(0),O(1,"span"),h(2),S(),Ve()),2&n){const e=se(2);A(1),Mi("mr-minus-2 ",null==e.item?null:e.item.preSymbolCssClass,""),A(1),jt(null==e.item?null:e.item.preSymbol)}}function y3e(n,t){if(1&n&&fe(0,"storecloud-icon",9),2&n){const e=se(2);E("icon",null==e.item?null:e.item.valueIcon)("size",e.iconSize||16)}}function b3e(n,t){if(1&n&&(O(0,"span"),h(1),S()),2&n){const e=se(2);mg(null==e.item?null:e.item.symbolCssClass),A(1),Jt(" ",null==e.item?null:e.item.symbol,"")}}const RY=function(n){return{link:n}};function C3e(n,t){if(1&n&&(O(0,"a",10),h(1,"\n "),Ue(2,11),h(3," "),Ve(),h(4,"\n "),S()),2&n){const e=se(2),r=ht(9);E("routerLink",null==e.item?null:e.item.link)("ngClass",Nt(3,RY,null==e.item?null:e.item.link)),A(2),E("ngTemplateOutlet",r)}}function w3e(n,t){if(1&n&&(O(0,"a",12),h(1,"\n "),Ue(2,11),h(3," "),Ve(),h(4,"\n "),S()),2&n){const e=se(2),r=ht(9);E("ngClass",Nt(4,RY,null==e.item?null:e.item.link))("href",null==e.item?null:e.item.link,fa)("target",null!=e.item&&e.item.openInExistingTab?"_self":"_blank"),A(2),E("ngTemplateOutlet",r)}}function x3e(n,t){if(1&n&&(O(0,"span"),h(1),S()),2&n){const e=se(2);Mi("align-self-end ",null==e.item?null:e.item.symbolCssClass,""),A(1),jt(null==e.item?null:e.item.symbol)}}function M3e(n,t){if(1&n&&(O(0,"span",13),h(1,"\n "),fe(2,"storecloud-icon",14),h(3,"\n "),S()),2&n){const e=se(2);A(2),Fo("copyToClipboard",null==e.item?null:e.item.value),E("icon","copy")("size",14)}}function P3e(n,t){if(1&n&&(O(0,"span"),h(1,"\n "),ee(2,_3e,3,4,"ng-container",1),h(3,"\n "),ee(4,y3e,1,2,"storecloud-icon",5),h(5,"\n "),ee(6,b3e,2,4,"span",0),h(7,"\n "),ee(8,C3e,5,5,"a",6),h(9,"\n "),ee(10,w3e,5,6,"a",7),h(11,"\n "),ee(12,x3e,2,4,"span",0),h(13,"\n "),ee(14,M3e,4,3,"span",8),h(15,"\n"),S()),2&n){const e=se();Mi("d-flex-icon ",e.cssClass,""),A(2),E("ngIf",null==e.item?null:e.item.preSymbol),A(2),E("ngIf",null==e.item?null:e.item.valueIcon),A(2),E("ngIf","before"===(null==e.item?null:e.item.symbolPosition)),A(2),E("ngIf",!(null!=e.item&&e.item.externalLink)||!1===(null==e.item?null:e.item.externalLink)),A(2),E("ngIf",null==e.item?null:e.item.externalLink),A(2),E("ngIf","after"===(null==e.item?null:e.item.symbolPosition)),A(2),E("ngIf",null==e.item?null:e.item.copy)}}function O3e(n,t){if(1&n&&(Ue(0),h(1,"\n "),fe(2,"storecloud-shared-block-status-with-time",15),h(3,"\n"),Ve()),2&n){const e=se();A(2),E("item",null==e.item?null:e.item.value)}}function S3e(n,t){if(1&n&&(Ue(0),h(1,"\n "),fe(2,"storecloud-shared-block-status",16),h(3,"\n"),Ve()),2&n){const e=se();A(2),E("item",null==e.item?null:e.item.value)("cssClass",e.cssClass)}}function T3e(n,t){1&n&&(Ue(0),h(1,"\n "),O(2,"select"),h(3,"\n "),O(4,"option",17),h(5,"$0.00"),S(),h(6,"\n "),S(),h(7,"\n"),Ve())}const NY=function(n){return{valueItem:n}};function A3e(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,18),h(3,"\n "),Ve()),2&n){const e=se(2),r=ht(12);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,NY,e.item))}}function D3e(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,18),Gt(3,"replaceValue"),h(4,"\n "),Ve()),2&n){const e=t.ngIf,r=se(3),i=ht(12);A(2),E("ngTemplateOutlet",i)("ngTemplateOutletContext",Nt(5,NY,Hl(3,2,r.item,null==e?null:e.value)))}}function I3e(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,D3e,5,7,"ng-container",19),Gt(3,"async"),h(4,"\n "),Ve()),2&n){const e=se(2),r=ht(15);A(2),E("ngIf",Gn(3,2,null==e.item?null:e.item.value$))("ngIfElse",r)}}function E3e(n,t){if(1&n&&(h(0,"\n "),ee(1,A3e,4,4,"ng-container",1),h(2,"\n "),ee(3,I3e,5,4,"ng-container",1),h(4,"\n")),2&n){const e=se();A(1),E("ngIf",null!=(null==e.item?null:e.item.value)),A(2),E("ngIf",null!=(null==e.item?null:e.item.value$))}}function k3e(n,t){if(1&n&&(Ue(0),h(1),Ve()),2&n){const e=se().valueItem;A(1),jt(null==e?null:e.value)}}function R3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"number"),Ve()),2&n){const e=se().valueItem;A(1),jt(Gn(2,1,(null==e?null:e.value)||0))}}function N3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"shortNumber"),Ve()),2&n){const e=se().valueItem,r=se();A(1),jt(Hl(2,1,(null==e?null:e.value)||0,null==r.item?null:r.item.decimal))}}function L3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"currency"),Ve()),2&n){const e=se().valueItem;A(1),jt(wy(2,1,(null==e?null:e.value)||0,"USD","symbol","2.2-8"))}}function F3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"number"),Ve()),2&n){const e=se().valueItem;A(1),jt(Hl(2,1,(null==e?null:e.value)||0,"2.2-8"))}}function B3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"percent"),Ve()),2&n){const e=se().valueItem;A(1),jt(Hl(2,1,(null==e?null:e.value)||0,"1.1-2"))}}function $3e(n,t){if(1&n&&(Ue(0,21),h(1,"\n "),O(2,"div",22),h(3,"\n "),O(4,"span",23),h(5),Gt(6,"trim"),S(),h(7,"\n "),O(8,"span",24),h(9),Gt(10,"trim"),S(),h(11,"\n "),S(),h(12,"\n "),Ve()),2&n){const e=se().valueItem;Fo("copyToClipboard",null==e?null:e.value),A(4),E("tippy",null==e?null:e.value),A(1),Jt("\n ",Hl(6,4,null==e?null:e.value,null==e?null:e.trimSize),"\n "),A(4),Jt("\n ",Hl(10,7,null==e?null:e.value,(null==e?null:e.trimSizeMobile)||24),"\n ")}}function U3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"timeAgo"),Ve()),2&n){const e=se().valueItem;A(1),jt(Gn(2,1,null==e?null:e.value))}}function V3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"date"),Ve()),2&n){const e=se().valueItem;A(1),jt(Hl(2,1,null==e?null:e.value,"MMM-dd-yyyy h:mm:ss a z"))}}function z3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"date"),Ve()),2&n){const e=se().valueItem;A(1),jt(Hl(2,1,null==e?null:e.value,"MM/dd/yy"))}}function H3e(n,t){if(1&n&&(Ue(0),h(1),Gt(2,"date"),Ve()),2&n){const e=se().valueItem;A(1),jt(Hl(2,1,null==e?null:e.value,"MMMM y"))}}function j3e(n,t){if(1&n&&(Ue(0),h(1,"\n "),O(2,"span"),h(3),S(),h(4,"\n "),Ve()),2&n){const e=se(2);A(2),Mi("status ",null==e.item?null:e.item.value,""),A(1),jt(null==e.item?null:e.item.value)}}function G3e(n,t){if(1&n&&(h(0,"\n "),ee(1,k3e,2,1,"ng-container",1),h(2,"\n "),ee(3,R3e,3,3,"ng-container",1),h(4,"\n "),ee(5,N3e,3,4,"ng-container",1),h(6,"\n\n "),ee(7,L3e,3,6,"ng-container",1),h(8,"\n "),ee(9,F3e,3,4,"ng-container",1),h(10,"\n "),ee(11,B3e,3,4,"ng-container",1),h(12,"\n "),ee(13,$3e,13,10,"ng-container",20),h(14,"\n "),ee(15,U3e,3,3,"ng-container",1),h(16,"\n "),ee(17,V3e,3,4,"ng-container",1),h(18,"\n "),ee(19,z3e,3,4,"ng-container",1),h(20,"\n "),ee(21,H3e,3,4,"ng-container",1),h(22,"\n "),ee(23,j3e,5,4,"ng-container",1),h(24,"\n")),2&n){const e=t.valueItem,r=se();A(1),E("ngIf","string"===(null==e?null:e.type)),A(2),E("ngIf","number"===(null==e?null:e.type)),A(2),E("ngIf","short-number"===(null==e?null:e.type)),A(2),E("ngIf","currency"===(null==e?null:e.type)),A(2),E("ngIf","store-currency"===(null==e?null:e.type)),A(2),E("ngIf","percent"===(null==e?null:e.type)),A(2),E("ngIf","hash"===(null==e?null:e.type)),A(2),E("ngIf","time"===(null==e?null:e.type)),A(2),E("ngIf","date-time"===(null==e?null:e.type)),A(2),E("ngIf","short-date"===(null==e?null:e.type)),A(2),E("ngIf","long-date"===(null==e?null:e.type)),A(2),E("ngIf","status"===(null==r.item?null:r.item.type))}}const W3e=function(n){return{display:"flex",width:n}},q3e=function(n){return{"margin-top":"0px","margin-bottom":"0px",height:"16px",width:n}};function Z3e(n,t){if(1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",25),h(2,"\n")),2&n){const e=se();A(1),E("ngStyle",Nt(2,W3e,e.loadingWidth+"px"))("theme",Nt(4,q3e,e.loadingWidth+"px"))}}let Yl=(z0=class{set item(t){t&&!t?.symbolPosition&&(t.symbolPosition="after"),this._item=t,this.changeRef.detectChanges()}get item(){return this._item}constructor(t){this.changeRef=t,this.cssClass="text-black",this.loadingWidth=30,this.iconSize=8,this._item=null}ngAfterContentChecked(){this.changeRef.detectChanges()}},z0.\u0275fac=function(t){return new(t||z0)(ye(Mc))},z0.\u0275cmp=xt({type:z0,selectors:[["storecloud-shared-value-formatter"]],inputs:{item:"item",cssClass:"cssClass",loadingWidth:"loadingWidth",iconSize:"iconSize"},decls:17,vars:4,consts:[[3,"class",4,"ngIf"],[4,"ngIf"],["itemElement",""],["showValue",""],["loader1",""],["class","icon-burnt ",3,"icon","size",4,"ngIf"],["routerLinkActive","",3,"routerLink","ngClass",4,"ngIf"],[3,"ngClass","href","target",4,"ngIf"],["class","copy-button",4,"ngIf"],[1,"icon-burnt",3,"icon","size"],["routerLinkActive","",3,"routerLink","ngClass"],[3,"ngTemplateOutlet"],[3,"ngClass","href","target"],[1,"copy-button"],[3,"icon","size","copyToClipboard"],[3,"item"],[3,"item","cssClass"],["value","Select"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[3,"copyToClipboard",4,"ngIf"],[3,"copyToClipboard"],[1,"d-flex","g-1"],[1,"desktop-hash",3,"tippy"],[1,"mobile-hash"],["count","1","animation","progress",1,"value-loader",3,"ngStyle","theme"]],template:function(t,e){1&t&&(ee(0,P3e,16,10,"span",0),h(1,"\n\n"),ee(2,O3e,4,1,"ng-container",1),h(3,"\n"),ee(4,S3e,4,2,"ng-container",1),h(5,"\n"),ee(6,T3e,8,0,"ng-container",1),h(7,"\n\n"),ee(8,E3e,5,2,"ng-template",null,2,zt),h(10,"\n\n"),ee(11,G3e,25,12,"ng-template",null,3,zt),h(13,"\n\n"),ee(14,Z3e,3,6,"ng-template",null,4,zt),h(16,"\n")),2&t&&(E("ngIf","select"!==(null==e.item?null:e.item.type)&&"block-status"!==(null==e.item?null:e.item.type)&&"progress-status"!==(null==e.item?null:e.item.type)),A(2),E("ngIf","progress-status"===(null==e.item?null:e.item.type)),A(2),E("ngIf","block-status"===(null==e.item?null:e.item.type)),A(2),E("ngIf","select"===(null==e.item?null:e.item.type)))},dependencies:[Vo,tr,aa,Gi,ba,Lh,Vv,qM,GN,hs,CS,MC,ol,wg,u$,_M,s$,qN,IY,EY,kY],styles:["[_ngcontent-%COMP%]:export{bg-gradient:linear-gradient(to right,#275351,#2b3f4f);teal:#1db0a9;explorer-bg:linear-gradient(to right,#275351,#2b3f4f);explorer-teal:#1db0a9;developer-bg:linear-gradient(to top,#3375a7,#2b3a98);developer-teal:#1db0a9;governor-bg:linear-gradient(to top,#9d51b8,#4b2d83);governor-teal:#1db0a9;cloud-bg:linear-gradient(to top,#24272f,#222);cloud-teal:#1db0a9}span.burn-text-bold[_ngcontent-%COMP%]{font-size:3rem;font-weight:600;color:#111}.mobile-hash[_ngcontent-%COMP%]{display:none}.copy-button[_ngcontent-%COMP%]{border:none;background:none;cursor:pointer}.flex-usd[_ngcontent-%COMP%]{justify-content:flex-end}.mr-minus-2[_ngcontent-%COMP%]{margin-right:-2.5px}.mr-minus-2.mr-2[_ngcontent-%COMP%]{margin-right:5px}.mr-minus-2.mr-1[_ngcontent-%COMP%]{margin-right:2.5px}.mr-minus-0[_ngcontent-%COMP%]{margin-right:0}.ml-minus-2[_ngcontent-%COMP%]{margin-left:-2.5px}.align-self-end[_ngcontent-%COMP%]{align-self:flex-end}select[_ngcontent-%COMP%]{padding:5px 7.5px;color:#111;border-radius:7.5px;border:0;border:1px solid #cddcdc;font-weight:600;font-family:Montserrat,sans-serif;outline:none;width:22vw} .heading-text-black .value-loader .loader{height:2.6rem!important} .text-black .value-loader .loader{height:1.4rem!important}@media screen and (max-width: 1024px){ .heading-text-black .value-loader .loader{height:2.4rem!important}}@media screen and (max-width: 525px){ .heading-text-black .value-loader .loader{height:1.8rem!important}}@media screen and (max-width: 1420px) and (min-width: 1301px){ .icon-burnt .icon-size-14{width:1.2rem!important}}@media screen and (max-width: 1320px) and (min-width: 1201px){ .icon-burnt .icon-size-14{width:1rem!important}}@media screen and (max-width: 850px){.desktop-hash[_ngcontent-%COMP%]{display:none}.mobile-hash[_ngcontent-%COMP%]{display:contents}}@media screen and (max-width: 525px){select[_ngcontent-%COMP%]{width:40vw}}"]}),z0);var H0;function Y3e(n,t){if(1&n&&fe(0,"storecloud-tooltip",15),2&n){const e=se();E("tooltip",null==e.stats$?null:e.stats$.tooltip)}}function X3e(n,t){1&n&&(Ue(0),h(1,"\n "),Ve())}function K3e(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,X3e,2,0,"ng-container",4),h(3,"\n "),Ve()),2&n){const e=se(),r=ht(25),i=ht(28);A(2),E("ngIf",null!=(null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item$))("ngIfThen",r)("ngIfElse",i)}}function J3e(n,t){1&n&&(Ue(0),h(1,"\n "),Ve())}Yl=ke([en({checkProperties:!0})],Yl);const Q3e=function(n){return{items$:n}};function ewe(n,t){if(1&n&&(h(0,"\n "),O(1,"div"),h(2,"\n "),Ue(3,16),h(4,"\n "),Ve(),h(5,"\n "),S(),h(6,"\n")),2&n){const e=se(),r=ht(34);A(1),Mi("content grid-",(null==e.stats$||null==e.stats$.items$?null:e.stats$.items$.length)||e.loadingCount,""),A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(5,Q3e,null==e.stats$?null:e.stats$.items$))}}const twe=function(n){return{items:n}};function nwe(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,16),h(3,"\n "),Ve()),2&n){const e=t.ngIf;se(2);const r=ht(37);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,twe,e))}}function rwe(n,t){if(1&n&&(h(0,"\n "),O(1,"div"),h(2,"\n "),ee(3,nwe,4,4,"ng-container",17),h(4,"\n "),S(),h(5,"\n")),2&n){const e=se(),r=ht(43);A(1),Mi("content grid-",(null==e.stats$||null==e.stats$.items?null:e.stats$.items.length)||e.loadingCount,""),A(2),E("ngIf",null==e.stats$?null:e.stats$.items)("ngIfElse",r)}}const wS=function(n){return{item:n}};function iwe(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,16),h(3,"\n "),Ve()),2&n){const e=t.ngIf;se(2);const r=ht(31);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,wS,e))}}function owe(n,t){if(1&n&&(h(0,"\n "),ee(1,iwe,4,4,"ng-container",17),Gt(2,"async"),h(3,"\n")),2&n){const e=se(),r=ht(46);A(1),E("ngIf",Gn(2,2,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item$))("ngIfElse",r)}}function awe(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,16),h(3,"\n "),Ve()),2&n){const e=t.ngIf;se(2);const r=ht(31);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,wS,e))}}function swe(n,t){if(1&n&&(h(0,"\n "),ee(1,awe,4,4,"ng-container",17),h(2,"\n")),2&n){const e=se(),r=ht(46);A(1),E("ngIf",null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item)("ngIfElse",r)}}function lwe(n,t){if(1&n&&(h(0,"\n "),O(1,"p",18),h(2,"\n "),fe(3,"storecloud-shared-value-formatter",19),h(4,"\n "),S(),h(5,"\n")),2&n){const e=t.item;A(3),E("item",e)("cssClass","heading-text-black "+(null==e?null:e.cssClass))("loadingWidth",100)("iconSize",25)}}function cwe(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,16),h(3,"\n "),Ve()),2&n){const e=t.ngIf;se(3);const r=ht(40);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,wS,e))}}function uwe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,cwe,4,4,"ng-container",17),Gt(3,"async"),h(4,"\n "),Ve()),2&n){const e=t.$implicit;se(2);const r=ht(43);A(2),E("ngIf",Gn(3,2,e))("ngIfElse",r)}}function dwe(n,t){if(1&n&&(h(0,"\n "),ee(1,uwe,5,4,"ng-container",20),h(2,"\n")),2&n){const e=t.items$;A(1),E("ngForOf",e)}}function hwe(n,t){if(1&n&&(Ue(0),h(1,"\n\n "),or(2,16),h(3,"\n "),Ve()),2&n){const e=t.$implicit;se(2);const r=ht(40);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,wS,e))}}function fwe(n,t){if(1&n&&(h(0,"\n\n "),ee(1,hwe,4,4,"ng-container",20),h(2,"\n")),2&n){const e=t.items;A(1),E("ngForOf",e)}}function pwe(n,t){if(1&n&&fe(0,"storecloud-icon",26),2&n){const e=se().item;E("icon",null==e?null:e.icon)}}function gwe(n,t){if(1&n&&(h(0,"\n "),O(1,"div",21),h(2,"\n "),O(3,"div",22),h(4,"\n "),ee(5,pwe,1,1,"storecloud-icon",23),h(6,"\n "),fe(7,"storecloud-shared-value-formatter",24),h(8,"\n "),S(),h(9,"\n "),O(10,"p",25),h(11),S(),h(12,"\n "),S(),h(13,"\n")),2&n){const e=t.item;A(5),E("ngIf",null==e?null:e.icon),A(2),E("item",e),A(3),Mi("text-light d-flex ",null!=e&&e.inlineTooltip?"inlineTooltip":"",""),E("tippy",null!=e&&e.inlineTooltip?null==e?null:e.tooltip:null),A(1),Jt("\n ",null==e?null:e.label,"\n ")}}const mwe=function(){return{display:"contents"}},vwe=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"36px"}};function _we(n,t){if(1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",27),h(2,"\n")),2&n){const e=se();A(1),Fo("count",e.loadingCount),E("ngStyle",Wt(3,mwe))("theme",Wt(4,vwe))}}const ywe=function(){return{display:"flex",width:"100px","justify-self":"flex-end"}},bwe=function(){return{"margin-top":"0px","margin-bottom":"0px"}};function Cwe(n,t){1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",28),h(2,"\n")),2&n&&(A(1),E("ngStyle",Wt(2,ywe))("theme",Wt(3,bwe)))}const wwe=function(n){return{card:n}},xwe=function(n){return{heading:!0,"has-subtitle":n}};let xS=(H0=class{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3}trackByFuntion(t,e){return e?.blockId??e?.transactionId??t?.id}},H0.\u0275fac=function(t){return new(t||H0)},H0.\u0275cmp=xt({type:H0,selectors:[["storecloud-shared-stats-card-with-icon-number"]],inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount"},decls:48,vars:12,consts:[[3,"ngClass"],[1,"heading-text"],[3,"tooltip",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["items$Draw",""],["itemsDraw",""],["subTitleItem$",""],["subTitleItem",""],["subTitleValueFormatt",""],["itemTemp",""],["valueFormatt",""],["valueFormatTemp",""],["loader3",""],["loader1",""],[3,"tooltip"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[1,"heading-text-black"],[1,"d-flex-justify-end",3,"item","cssClass","loadingWidth","iconSize"],[4,"ngFor","ngForOf"],[1,"data-div"],[1,"icon-text"],["class","mb-minus-1 icon-16-size",3,"icon",4,"ngIf"],[3,"item"],["placement","bottom",3,"tippy"],[1,"mb-minus-1","icon-16-size",3,"icon"],["animation","progress",3,"count","ngStyle","theme"],["count","1","animation","progress",1,"value-loader-custom-height-black",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(O(0,"div",0),h(1,"\n "),Ue(2),h(3,"\n "),O(4,"div",0),h(5,"\n "),O(6,"p",1),h(7),ee(8,Y3e,1,1,"storecloud-tooltip",2),h(9,"\n "),S(),h(10,"\n "),ee(11,K3e,4,3,"ng-container",3),h(12,"\n "),S(),h(13,"\n "),ee(14,J3e,2,0,"ng-container",4),h(15,"\n "),Ve(),h(16,"\n"),S(),h(17,"\n\n"),ee(18,ewe,7,7,"ng-template",null,5,zt),h(20,"\n\n"),ee(21,rwe,6,5,"ng-template",null,6,zt),h(23,"\n\n"),ee(24,owe,4,4,"ng-template",null,7,zt),h(26,"\n"),ee(27,swe,3,2,"ng-template",null,8,zt),h(29,"\n\n"),ee(30,lwe,6,4,"ng-template",null,9,zt),h(32,"\n"),ee(33,dwe,3,1,"ng-template",null,10,zt),h(35,"\n"),ee(36,fwe,3,1,"ng-template",null,11,zt),h(38,"\n\n"),ee(39,gwe,14,7,"ng-template",null,12,zt),h(41,"\n\n"),ee(42,_we,3,5,"ng-template",null,13,zt),h(44,"\n\n"),ee(45,Cwe,3,4,"ng-template",null,14,zt),h(47,"\n")),2&t){const r=ht(19),i=ht(22);E("ngClass",Nt(8,wwe,!e.disableCardClass)),A(4),E("ngClass",Nt(10,xwe,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.enable)),A(3),Jt("\n ",null==e.stats$?null:e.stats$.title," "),A(1),E("ngIf",null==e.stats$?null:e.stats$.tooltip),A(3),E("ngIf",null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.enable),A(3),E("ngIf",null!=(null==e.stats$?null:e.stats$.items$))("ngIfThen",r)("ngIfElse",i)}},dependencies:[Vo,ma,tr,aa,Gi,ba,Lh,hs,Wc,Yl,ol],styles:[".card[_ngcontent-%COMP%]{display:grid} .value-loader-custom-height-black .loader{height:2.6rem!important}@media screen and (max-width: 1024px){ .value-loader-custom-height-black .loader{height:2.4rem!important}}@media screen and (max-width: 525px){ .value-loader-custom-height-black .loader{height:1.8rem!important}}"]}),H0);var j0;function Mwe(n,t){if(1&n&&(O(0,"span"),h(1),S()),2&n){const e=se(2);A(1),jt(null==e.number$?null:e.number$.symbol)}}function Pwe(n,t){if(1&n&&(Ue(0),h(1,"\n "),O(2,"p",5),h(3,"\n "),O(4,"span"),h(5),Gt(6,"number"),S(),h(7," "),ee(8,Mwe,2,1,"span",6),h(9,"\n "),S(),h(10,"\n "),Ve()),2&n){const e=t.ngIf,r=se();A(5),Jt(" ",Gn(6,2,e),""),A(3),E("ngIf",null==r.number$?null:r.number$.symbol)}}xS=ke([en({checkProperties:!0})],xS);const Owe=function(){return{display:"contents"}},Swe=function(){return{"margin-top":"10px","margin-bottom":"10px",height:"30px",width:"60px","margin-left":"auto","margin-right":"auto","border-radius":"10px"}};function Twe(n,t){1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",7),h(2,"\n")),2&n&&(A(1),E("ngStyle",Wt(2,Owe))("theme",Wt(3,Swe)))}let ZN=((j0=class{constructor(){this.disableCardClass=!1,this.number$=null}}).\u0275fac=function(t){return new(t||j0)},j0.\u0275cmp=xt({type:j0,selectors:[["storecloud-shared-number-card"]],inputs:{disableCardClass:"disableCardClass",number$:"number$"},decls:15,vars:5,consts:[[1,"card"],[1,"content","block-content"],[1,"text-light"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-teal-big"],[4,"ngIf"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(O(0,"div",0),h(1,"\n "),O(2,"div",1),h(3,"\n "),O(4,"p",2),h(5),S(),h(6,"\n "),ee(7,Pwe,11,4,"ng-container",3),Gt(8,"async"),h(9,"\n "),S(),h(10,"\n"),S(),h(11,"\n"),ee(12,Twe,3,4,"ng-template",null,4,zt),h(14,"\n")),2&t){const r=ht(13);A(5),jt(null==e.number$?null:e.number$.title),A(2),E("ngIf",Gn(8,3,null==e.number$?null:e.number$.value))("ngIfElse",r)}},dependencies:[tr,Gi,ba,ol,wg]}),j0);var G0;ZN=ke([en({checkProperties:!0})],ZN);const Awe=["scrollToSection"];function Dwe(n,t){if(1&n&&fe(0,"storecloud-tooltip",12),2&n){const e=se();E("tooltip",null==e.stats$?null:e.stats$.tooltip)}}function Iwe(n,t){if(1&n&&(Ue(0),h(1,"\n "),O(2,"p",14),h(3,"\n "),O(4,"span",15),h(5),S(),h(6,"\n "),fe(7,"storecloud-shared-value-formatter",16),h(8,"\n "),S(),h(9,"\n "),Ve()),2&n){const e=t.ngIf;A(5),Jt("",null==e?null:e.label," "),A(2),E("item",e)("cssClass","text-black")("iconSize",14)}}function Ewe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,Iwe,10,4,"ng-container",13),Gt(3,"async"),h(4,"\n "),Ve()),2&n){const e=se(),r=ht(32);A(2),E("ngIf",Gn(3,2,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item$))("ngIfElse",r)}}function kwe(n,t){1&n&&(Ue(0),h(1,"\n "),Ve())}const LY=function(n){return{item:n}};function Rwe(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,18),h(3,"\n "),Ve()),2&n){const e=t.ngIf;se(3);const r=ht(26);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,LY,e))}}function Nwe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,Rwe,4,4,"ng-container",13),Gt(3,"async"),h(4,"\n "),Ve()),2&n){const e=t.$implicit;se(2);const r=ht(35);A(2),E("ngIf",Gn(3,2,e))("ngIfElse",r)}}function Lwe(n,t){if(1&n&&(h(0,"\n "),O(1,"div"),h(2,"\n "),ee(3,Nwe,5,4,"ng-container",17),h(4,"\n "),S(),h(5,"\n")),2&n){const e=se();A(1),Mi("content grid-",(null==e.stats$||null==e.stats$.items$?null:e.stats$.items$.length)||e.loadingCount,""),A(2),E("ngForOf",null==e.stats$?null:e.stats$.items$)}}function Fwe(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,18),h(3,"\n "),Ve()),2&n){const e=t.$implicit;se(2);const r=ht(26);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,LY,e))}}function Bwe(n,t){if(1&n&&(h(0,"\n "),O(1,"div"),h(2,"\n "),ee(3,Fwe,4,4,"ng-container",17),h(4,"\n "),S(),h(5,"\n")),2&n){const e=se();A(1),Mi("content grid-",(null==e.stats$||null==e.stats$.items?null:e.stats$.items.length)||e.loadingCount,""),A(2),E("ngForOf",null==e.stats$?null:e.stats$.items)}}function $we(n,t){if(1&n&&fe(0,"storecloud-icon",23),2&n){const e=se(2).item;E("icon",null==e?null:e.icon)("size",14)}}function Uwe(n,t){if(1&n&&fe(0,"storecloud-tooltip",12),2&n){const e=se(2).item;E("tooltip",null==e?null:e.tooltip)}}function Vwe(n,t){if(1&n&&(O(0,"p",21),h(1,"\n "),ee(2,$we,1,2,"storecloud-icon",22),h(3),ee(4,Uwe,1,1,"storecloud-tooltip",3),h(5,"\n "),S()),2&n){const e=se().item;Mi("text-light d-flex g-2 ",null!=e&&e.inlineTooltip?"inlineTooltip":"",""),E("tippy",null!=e&&e.inlineTooltip?null==e?null:e.tooltip:null),A(2),E("ngIf",null==e?null:e.icon),A(1),Jt("\n ",null==e?null:e.label,"\n "),A(1),E("ngIf",(null==e?null:e.tooltip)&&!(null!=e&&e.inlineTooltip))}}function zwe(n,t){if(1&n&&fe(0,"storecloud-shared-value-formatter",24),2&n){const e=se().item;E("item",null==e?null:e.subItems)("cssClass",null==e||null==e.subItems?null:e.subItems.cssClass)}}function Hwe(n,t){if(1&n&&fe(0,"storecloud-shared-value-formatter",24),2&n){const e=se().item;E("item",null==e||null==e.subItems?null:e.subItems.subItems)("cssClass",null==e||null==e.subItems||null==e.subItems.subItems?null:e.subItems.subItems.cssClass)}}const jwe=function(n){return{"data-div":!0,"flex-column":n}},Gwe=function(n){return{"d-100":!0,"flex-col":n}};function Wwe(n,t){if(1&n&&(h(0,"\n "),O(1,"div",0),h(2,"\n "),ee(3,Vwe,6,7,"p",19),h(4,"\n "),O(5,"div",0),h(6,"\n "),fe(7,"storecloud-shared-value-formatter",16),h(8,"\n "),ee(9,zwe,1,2,"storecloud-shared-value-formatter",20),h(10,"\n "),ee(11,Hwe,1,2,"storecloud-shared-value-formatter",20),h(12,"\n "),S(),h(13,"\n "),S(),h(14,"\n")),2&n){const e=t.item;A(1),E("ngClass",Nt(8,jwe,"select"===(null==e?null:e.type))),A(2),E("ngIf",null==e?null:e.label),A(2),E("ngClass",Nt(10,Gwe,null==e?null:e.inlineSubItems)),A(2),E("item",e)("cssClass","text-black "+(null==e?null:e.cssClass))("iconSize",14),A(2),E("ngIf",null==e?null:e.subItems),A(2),E("ngIf",null==e||null==e.subItems?null:e.subItems.subItems)}}const YN=function(){return{display:"contents"}},qwe=function(){return{"margin-top":"10px","margin-bottom":"0px"}};function Zwe(n,t){if(1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",25),h(2,"\n")),2&n){const e=se();A(1),Fo("count",e.loadingCount),E("ngStyle",Wt(3,YN))("theme",Wt(4,qwe))}}const Ywe=function(){return{"margin-top":"0px","margin-bottom":"0px"}};function Xwe(n,t){1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",26),h(2,"\n")),2&n&&(A(1),E("ngStyle",Wt(2,YN))("theme",Wt(3,Ywe)))}const Kwe=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"30px"}};function Jwe(n,t){1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",26),h(2,"\n")),2&n&&(A(1),E("ngStyle",Wt(2,YN))("theme",Wt(3,Kwe)))}const Qwe=function(n,t){return{card:n,"flex-col-between":t}},exe=function(n){return{heading:!0,"has-subtitle":n}};let PC=((G0=class{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3,this.scrollToSection=void 0}}).\u0275fac=function(t){return new(t||G0)},G0.\u0275cmp=xt({type:G0,selectors:[["storecloud-shared-stats-card-normal"]],viewQuery:function(t,e){if(1&t&&rl(Awe,5),2&t){let r;Es(r=ks())&&(e.scrollToSection=r.first)}},inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount"},decls:37,vars:13,consts:[[3,"ngClass"],["scrollToSection",""],[1,"heading-text"],[3,"tooltip",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["items$Draw",""],["itemsDraw",""],["valueFormatt",""],["loader3",""],["loader1",""],["itemLoader",""],[3,"tooltip"],[4,"ngIf","ngIfElse"],[1,"d-flex"],[1,"text-light"],[3,"item","cssClass","iconSize"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","tippy",4,"ngIf"],[3,"item","cssClass",4,"ngIf"],[3,"tippy"],["class","mr-minus-10",3,"icon","size",4,"ngIf"],[1,"mr-minus-10",3,"icon","size"],[3,"item","cssClass"],["animation","progress",3,"count","ngStyle","theme"],["count","1","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(O(0,"div",0,1),h(2,"\n "),Ue(3),h(4,"\n "),O(5,"div",0),h(6,"\n "),O(7,"p",2),h(8),ee(9,Dwe,1,1,"storecloud-tooltip",3),h(10,"\n "),S(),h(11,"\n "),ee(12,Ewe,5,4,"ng-container",4),h(13,"\n "),S(),h(14,"\n "),ee(15,kwe,2,0,"ng-container",5),h(16,"\n "),Ve(),h(17,"\n"),S(),h(18,"\n"),ee(19,Lwe,6,4,"ng-template",null,6,zt),h(21,"\n\n"),ee(22,Bwe,6,4,"ng-template",null,7,zt),h(24,"\n\n"),ee(25,Wwe,15,12,"ng-template",null,8,zt),h(27,"\n"),ee(28,Zwe,3,5,"ng-template",null,9,zt),h(30,"\n\n"),ee(31,Xwe,3,4,"ng-template",null,10,zt),h(33,"\n\n"),ee(34,Jwe,3,4,"ng-template",null,11,zt),h(36,"\n")),2&t){const r=ht(20),i=ht(23);E("ngClass",Nf(8,Qwe,!e.disableCardClass,!e.disableCardClass)),A(5),E("ngClass",Nt(11,exe,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.enable)),A(3),Jt("\n ",null==e.stats$?null:e.stats$.title,"\n "),A(1),E("ngIf",null==e.stats$?null:e.stats$.tooltip),A(3),E("ngIf",null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.enable),A(3),E("ngIf",null!=(null==e.stats$?null:e.stats$.items$))("ngIfThen",r)("ngIfElse",i)}},dependencies:[Vo,ma,tr,aa,Gi,ba,Lh,hs,Wc,Yl,ol],styles:[".mr-minus-10[_ngcontent-%COMP%]{margin-right:-10px}"]}),G0);var W0;function txe(n,t){if(1&n&&(O(0,"span",11),h(1),S()),2&n){const e=se();A(1),jt(null==e.chart?null:e.chart.subTitle)}}PC=ke([en({checkProperties:!0})],PC);const nxe=function(n){return{current:n}};function rxe(n,t){if(1&n){const e=jr();O(0,"li",14),yt("click",function(){const o=hr(e).$implicit,a=se(2);return a.activeTab=o,fr(a.tabChange(o))}),h(1),S()}if(2&n){const e=t.$implicit,r=se(2);E("ngClass",Nt(2,nxe,e===r.activeTab)),A(1),Jt("\n ",e,"\n ")}}function ixe(n,t){if(1&n&&(O(0,"ul",12),h(1,"\n "),ee(2,rxe,2,4,"li",13),h(3,"\n "),S()),2&n){const e=se();A(2),E("ngForOf",e.tabs)}}function oxe(n,t){1&n&&(Ue(0),h(1," "),Ve())}const axe=function(){return{display:"block",padding:"0px"}},sxe=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"10px","font-size":"8px"}};function lxe(n,t){1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",15),h(2,"\n")),2&n&&(A(1),E("ngStyle",Wt(2,axe))("theme",Wt(3,sxe)))}const cxe=function(n){return{heading:!0,"has-subtitle":n}},uxe=function(n){return{opacity:n}};let MS=(W0=class{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.tabEvent=new _r,this.tabs=Object.values(Zo),this.loading=!0,this.activeTab=Zo.AllTime,this._data=null,this.echartsExtentions=[CO,aC,rS,lC]}tabChange(t){const e=new Date;let r=new Date;switch(t){case Zo.D1:r.setDate(e.getDate()-1);break;case Zo.D7:r.setDate(e.getDate()-7);break;case Zo.D30:r.setDate(e.getDate()-30);break;case Zo.YTD:r=new Date((new Date).getFullYear(),0,1)}this.tabEvent.emit({from:t===Zo.AllTime?void 0:r?.getTime(),till:t===Zo.AllTime?void 0:e?.getTime()})}drawChart(t){this.chart?.dummy&&(t=this.fillDummyData(t)),t?.map(i=>{const o=i?.x?.split("-").map(a=>(parseInt(a)<10?"0":"")+ +a).join("-");return i.x=new Date(o)?.getTime(),i});const e=[{data:(t=gd.orderBy(t,"x","asc"))?.map(i=>[i?.x,i?.y]),name:this.chart?.yAxisName,type:"line",smooth:!0,symbol:"none",lineStyle:{color:this.chart?.lineColor??"#1db0a9",width:this.chart?.lineWidth??2.5},areaStyle:this.chart?.areaStyleColor?{color:this.chart?.areaStyleColor,opacity:.3}:null}],r=this.getMaxNumberFromArray(t?.map(i=>i?.y));try{this.options={textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},xAxis:{type:this.chart?.xType||"category",axisTick:{show:!1},axisLabel:{show:this.chart?.showXAxisLabel,textStyle:{fontSize:11},formatter:"{MMM} {dd}"},axisLine:{show:!1},splitNumber:this.chart?.maxTick?.x||3},yAxis:{type:"value",axisLabel:{show:this.chart?.showYAxisLabel,textStyle:{fontSize:11},formatter:function(i,o){return FY(i,0)}},axisLine:{show:!1},splitNumber:this.chart?.maxTick?.y||2,splitLine:{show:this.chart?.showYAxisLabel}},tooltip:{triggerOn:"mousemove",trigger:"axis",show:!0,appendToBody:!0,backgroundColor:"#fff",formatter:i=>this.formatTooltip(i),textStyle:{fontSize:12}},grid:{show:!1,left:r>0?1.5*r:0,right:10,top:10,bottom:10,z:9,containLabel:!0},series:e},we(!0).pipe(ya(300)).subscribe(()=>this.loading=!1)}catch(i){throw this.loading=!1,new Error(i)}}onChartInit(t){this._chart=t}get pChart(){return this._chart}formatTooltip(t){let e="";for(let r=0;r${i?.toDateString()}\n
${t[r].seriesName}: ${t[r].value?.[1]?.toLocaleString()}`}return e}subscribeToData(t){t?.pipe(Qe(this)).subscribe(e=>{this.drawChart(e)})}fillDummyData(t){if(t?.length<13){const e=14-t?.length,r=gd.maxBy(t,"y")?.y||1,i=gd.minBy(t,"y")?.y||1,o=gd.minBy(t,"x")?.x||(new Date)?.toISOString();for(let a=0;a(parseInt(u)<10?"0":"")+ +u).join("-"),l=new Date(s);l.setDate(l.getDate()-(a+1)),Math.floor(Math.random()*(r-i)),t.unshift({x:l?.toISOString()?.split("T")[0],y:0})}}return t}getMaxNumberFromArray(t){const e=gd.max(t);return(e?FY(e,0):"")?.length}},W0.\u0275fac=function(t){return new(t||W0)},W0.\u0275cmp=xt({type:W0,selectors:[["storecloud-shared-chart-card"]],inputs:{chart:"chart",data:"data"},outputs:{tabEvent:"tabEvent"},decls:28,vars:17,consts:[[1,"card","chart-card","pb-0"],[3,"ngClass"],[1,"heading-text"],[1,"d-flex"],[3,"tooltip"],["class","text-light",4,"ngIf"],["class","tabs-list transactions-chart",4,"ngIf"],[1,"content","pr-2","pl-2","pb-3","ch-chart"],["echarts","",1,"ch-chart",3,"id","options","ngStyle","defaultHeight","extentions","isResizable","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-light"],[1,"tabs-list","transactions-chart"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(O(0,"div",0),h(1,"\n "),O(2,"div",1),h(3,"\n "),O(4,"p",2),h(5,"\n "),O(6,"span",3),h(7),fe(8,"storecloud-tooltip",4),h(9,"\n "),S(),h(10,"\n "),ee(11,txe,2,1,"span",5),h(12,"\n "),S(),h(13,"\n "),ee(14,ixe,4,1,"ul",6),h(15,"\n "),S(),h(16,"\n\n "),O(17,"div",7),h(18,"\n "),O(19,"div",8),yt("chartinit",function(i){return e.onChartInit(i)}),S(),h(20,"\n "),ee(21,oxe,2,0,"ng-container",9),h(22,"\n "),S(),h(23,"\n"),S(),h(24,"\n\n"),ee(25,lxe,3,4,"ng-template",null,10,zt),h(27,"\n")),2&t){const r=ht(26);let i;A(2),E("ngClass",Nt(13,cxe,null==e.chart?null:e.chart.showTabs)),A(5),Jt("\n ",null==e.chart?null:e.chart.title,"\n "),A(1),E("tooltip",null==e.chart?null:e.chart.tooltip),A(3),E("ngIf",null==e.chart?null:e.chart.subTitle),A(3),E("ngIf",null==e.chart?null:e.chart.showTabs),A(5),Fo("id",null!==(i=null==e.chart?null:e.chart.id)&&void 0!==i?i:"chart_1"),E("options",e.options)("ngStyle",Nt(15,uxe,e.loading?0:1))("defaultHeight",(null==e.chart?null:e.chart.height)||175)("extentions",e.echartsExtentions)("isResizable",!0),A(2),E("ngIf",!e.loading)("ngIfElse",r)}},dependencies:[Vo,ma,tr,Gi,ba,cC,Wc],styles:[".heading-text[_ngcontent-%COMP%]{display:grid;gap:0}.heading-text[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-55%;left:50%;transform:translate(-50%,-50%)}"]}),W0);function FY(n,t){const i=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}].slice().reverse().find(function(o){return n>=o.value});return i?(n/i.value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+i.symbol:"0"}function BY(n,t,e,r,i,o,a){try{var s=n[o](a),l=s.value}catch(c){return void e(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function kt(n){return function(){var t=this,e=arguments;return new Promise(function(r,i){var o=n.apply(t,e);function a(l){BY(o,r,i,a,s,"next",l)}function s(l){BY(o,r,i,a,s,"throw",l)}a(void 0)})}}function go(n,t){const e="object"==typeof t;return new Promise((r,i)=>{const o=new Dr({next:a=>{r(a),o.unsubscribe()},error:i,complete:()=>{e?r(t.defaultValue):i(new Ry)}});n.subscribe(o)})}var q0;function dxe(n,t){1&n&&(h(0,"\n "),Ll(),O(1,"svg",3),h(2,"\n "),fe(3,"polyline",4),h(4,"\n "),S(),h(5,"\n"))}MS=ke([en({checkProperties:!0})],MS);const hxe=function(n){return{"first-page":!0,highlighted:n}},$Y=function(n){return{highlighted:n}},fxe=function(n){return{"last-page":!0,highlighted:n}};let OC=(q0=class{constructor(){this.pageSize=[{value:8,label:"8 items per page"}]}previousPage(){this.tableService&&(this.tableService.page=(this.tableService?.page||0)-1)}nextPage(){this.tableService&&(this.tableService.page=(this.tableService?.page||0)+1)}lastPage(){var t=this;return kt(function*(){if(t.tableService&&t.total$){const e=yield go(t.total$);t.tableService.page=e}})()}firstPage(){this.tableService&&(this.tableService.page=1)}},q0.\u0275fac=function(t){return new(t||q0)},q0.\u0275cmp=xt({type:q0,selectors:[["storecloud-shared-table-pagination"]],inputs:{tableService:"tableService",total$:"total$"},decls:41,vars:25,consts:[[1,"pagination-container"],[3,"ngClass","click"],[1,"icon",3,"ngClass","click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"chevron-left"],["points","15 18 9 12 15 6"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["points","9 18 15 12 9 6"]],template:function(t,e){if(1&t&&(O(0,"div",0),h(1,"\n "),O(2,"p",1),yt("click",function(){return e.firstPage()}),h(3,"\n First\n "),S(),h(4,"\n "),O(5,"p",2),yt("click",function(){return e.previousPage()}),h(6,"\n "),Ll(),O(7,"svg",3),h(8,"\n "),fe(9,"polyline",4),h(10,"\n "),S(),h(11,"\n "),S(),h(12,"\n "),qd(),O(13,"p"),h(14,"\n Page "),O(15,"span"),h(16),S(),h(17," of\n "),O(18,"span"),h(19),Gt(20,"number"),Gt(21,"async"),S(),h(22,"\n "),S(),h(23,"\n "),O(24,"p",2),yt("click",function(){return e.nextPage()}),Gt(25,"async"),Gt(26,"async"),h(27,"\n "),Ll(),O(28,"svg",5),h(29,"\n "),fe(30,"polyline",6),h(31,"\n "),S(),h(32,"\n "),S(),h(33,"\n "),qd(),O(34,"p",1),yt("click",function(){return e.lastPage()}),Gt(35,"async"),h(36,"\n Last\n "),S(),h(37,"\n"),S(),h(38,"\n\n"),ee(39,dxe,6,0,"ng-template"),h(40,"\n")),2&t){let r;A(2),E("ngClass",Nt(17,hxe,(null==e.tableService?null:e.tableService.page)>1)),A(3),E("ngClass",Nt(19,$Y,(null==e.tableService?null:e.tableService.page)>1)),A(11),jt(null!==(r=null==e.tableService?null:e.tableService.page)&&void 0!==r?r:1),A(3),jt(Hl(20,6,Gn(21,9,e.total$)||1,"1.0-0")),A(5),E("ngClass",Nt(21,$Y,Gn(25,11,e.total$)>1&&(null==e.tableService?null:e.tableService.page){class n{constructor(e,r){this.config=e,this.rendererFactory=r,this.renderer=this.rendererFactory.createRenderer(null,null)}generateIdenticon(e,r={}){const i=r?.diameter||this.config.diameter,o=r?.shapeCount||this.config.shapeCount,a=r?.colors||this.config.colors;this.generator=new mxe(e);const s=function _xe(n,t){const e=30*t.random()-vxe/2;return n.map(i=>function yxe(n,t){const e=function Cxe(n){let{r:t,g:e,b:r}=function bxe(n){return n=n.replace("#",""),{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16)}}(n);t/=255,e/=255,r/=255;const i=Math.min(t,e,r),o=Math.max(t,e,r),a=o-i;let s=0,l=0,c=0;return s=0==a?0:o==t?(e-r)/a%6:o==e?(r-t)/a+2:(t-e)/a+4,s=Math.round(60*s),s<0&&(s+=360),c=(o+i)/2,l=0==a?0:a/(1-Math.abs(2*c-1)),l=+(100*l).toFixed(1),c=+(100*c).toFixed(1),{h:s,s:l,l:c}}(n);let r=e.h;return r=(r+t)%360,r=r<0?360+r:r,e.h=r,function wxe(n){let{h:t,s:e,l:r}=n;e/=100,r/=100;const i=(1-Math.abs(2*r-1))*e,o=i*(1-Math.abs(t/60%2-1)),a=r-i/2;let s=0,l=0,c=0;0<=t&&t<60?(s=i,l=o,c=0):60<=t&&t<120?(s=o,l=i,c=0):120<=t&&t<180?(s=0,l=i,c=o):180<=t&&t<240?(s=0,l=o,c=i):240<=t&&t<300?(s=o,l=0,c=i):300<=t&&t<360&&(s=i,l=0,c=o);let u=Math.round(255*(s+a)).toString(16),d=Math.round(255*(l+a)).toString(16),p=Math.round(255*(c+a)).toString(16);return 1==u.length&&(u="0"+u),1==d.length&&(d="0"+d),1==p.length&&(p="0"+p),"#"+u+d+p}(e)}(i,e))}(a.slice(),this.generator),c=this.paperGen(i,this.genColor(s)).container,u=this.renderer.createElement("svg",XN);this.renderer.setAttribute(u,"xlmns",XN),this.renderer.setAttribute(u,"x","0"),this.renderer.setAttribute(u,"y","0"),this.renderer.setAttribute(u,"width",String(i)),this.renderer.setAttribute(u,"height",String(i));for(let d=0;d{class n{constructor(e,r,i){this.elementRef=e,this.renderer=r,this.jazziconService=i}ngOnChanges(e){this.initJazzicon()}initJazzicon(){const e=this.jazziconService.generateIdenticon(this.seed,{colors:this.colors,diameter:this.diameter,shapeCount:this.shapeCount});this.jazzDomElement&&this.renderer.removeChild(this.elementRef.nativeElement,this.jazzDomElement),this.renderer.appendChild(this.elementRef.nativeElement,e),this.jazzDomElement=e}}return n.\u0275fac=function(e){return new(e||n)(ye(wr),ye(jn),ye(VY))},n.\u0275cmp=xt({type:n,selectors:[["ngx-jazzicon"]],inputs:{colors:"colors",diameter:"diameter",seed:"seed",shapeCount:"shapeCount"},features:[co],decls:0,vars:0,template:function(e,r){},styles:[".jazzicon-container{border-radius:50px;overflow:hidden;padding:0;margin:0;display:inline-block}\n"],encapsulation:2,changeDetection:0}),n})();const Mxe={diameter:100,shapeCount:4,colors:["#01888C","#FC7500","#034F5D","#F73F01","#FC1960","#C7144C","#F3C100","#1598F2","#2465E1","#F19E02"]};let zY=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[VY,{provide:UY,useValue:{...Mxe,...e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({imports:[[Wi]]}),n})();const OS=function(){return{"width.px":17}};function Pxe(n,t){1&n&&fe(0,"img",5),2&n&&(uh("src","https://explorer.storecloud.org/assets/lucide_icon/",se(2).idleIcon,".svg",fa),E("ngStyle",Wt(2,OS)))}function Oxe(n,t){1&n&&fe(0,"img",5),2&n&&E("src",se(2).idleIconSrc,fa)("ngStyle",Wt(2,OS))}function Sxe(n,t){if(1&n&&(Ue(0),h(1,"\n "),fe(2,"ngx-jazzicon",6),h(3,"\n "),Ve()),2&n){const e=se(2);A(2),E("seed",e.customIcon)("diameter",15)}}function Txe(n,t){if(1&n){const e=jr();O(0,"button",2),yt("click",function(){return hr(e),fr(se().click())}),h(1,"\n "),ee(2,Pxe,1,3,"img",3),h(3,"\n "),ee(4,Oxe,1,3,"img",3),h(5),ee(6,Sxe,4,2,"ng-container",4),h(7,"\n\n"),S()}if(2&n){const e=se();Mi("",e.cssClass," btn-idle"),E("disabled",e._disabled),A(2),E("ngIf",e.idleIcon),A(2),E("ngIf",e.idleIconSrc),A(1),Jt("\n ",e.idleText,"\n "),A(1),E("ngIf",e.customIcon)}}function Axe(n,t){if(1&n&&(O(0,"button",7),h(1,"\n "),fe(2,"span",8),h(3),S()),2&n){const e=se();Mi("",e.cssClass," btn-loading"),E("disabled",!0),A(3),Jt(" ",null==e.currentState?null:e.currentState.title,"\n")}}function Dxe(n,t){if(1&n&&(O(0,"button",7),h(1,"\n "),fe(2,"img",9),h(3),S()),2&n){const e=se();Mi("",e.cssClass," btn-success"),E("disabled",!0),A(2),E("ngStyle",Wt(6,OS)),A(1),Jt("\n ",null==e.currentState?null:e.currentState.title,"\n")}}function Ixe(n,t){if(1&n&&(O(0,"button",7),h(1,"\n "),fe(2,"img",10),h(3),S()),2&n){const e=se();Mi("",e.cssClass," btn-error"),E("disabled",e._disabled),A(2),E("ngStyle",Wt(6,OS)),A(1),Jt("\n ",null==e.currentState?null:e.currentState.title,"\n")}}let Xl=(()=>{class n{set customIcon(e){this._customIcon=e}get customIcon(){return this._customIcon}constructor(){this.idleText="Save",this.idleIcon=null,this.idleIconSrc=null,this.loadingText="Processing...",this.successText="Done",this.errorText="Error",this.buttonKey=null,this.cssClass="btn-primary",this.StateType=qc,this.clickEvent=new _r,this.initEvent=new _r,this.disabled=!1,this.states=[{type:qc.Idle,title:this.idleText??"Save"},{type:qc.Loading,title:this.loadingText??"Processing..."},{type:qc.Success,title:this.successText??"Done"},{type:qc.Error,title:this.errorText??"Error"}],this.currentState=this.states[0],this.initEvent.emit(this)}click(){this.clickEvent.emit(this)}showIdle(){this.currentState=this.states?.find(e=>e.type===qc.Idle)}showLoading(){this.currentState=this.states?.find(e=>e.type===qc.Loading)}showSuccess(){this.currentState=this.states?.find(e=>e.type===qc.Success),setTimeout(()=>{this.showIdle()},3e3)}showError(e){this.currentState=this.states?.find(r=>r.type===qc.Error),setTimeout(()=>{this.showIdle()},3e3)}get _disabled(){return this.disabled??!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=xt({type:n,selectors:[["storecloud-loading-button"]],inputs:{idleText:"idleText",idleIcon:"idleIcon",idleIconSrc:"idleIconSrc",loadingText:"loadingText",successText:"successText",errorText:"errorText",buttonKey:"buttonKey",cssClass:"cssClass",customIcon:"customIcon",disabled:"disabled"},outputs:{clickEvent:"clickEvent",initEvent:"initEvent"},decls:8,vars:4,consts:[["type","button",3,"class","disabled","click",4,"ngIf"],[3,"class","disabled",4,"ngIf"],["type","button",3,"disabled","click"],["class","icon",3,"src","ngStyle",4,"ngIf"],[4,"ngIf"],[1,"icon",3,"src","ngStyle"],[3,"seed","diameter"],[3,"disabled"],[1,"spinner"],["src","https://explorer.storecloud.org/assets/lucide_icon/check-circle_animated_once_white.svg",1,"icon",3,"ngStyle"],["src","https://explorer.storecloud.org/assets/lucide_icon/alert-circle.svg",1,"icon",3,"ngStyle"]],template:function(e,r){1&e&&(ee(0,Txe,8,8,"button",0),h(1,"\n\n"),ee(2,Axe,4,5,"button",1),h(3,"\n\n"),ee(4,Dxe,4,7,"button",1),h(5,"\n\n"),ee(6,Ixe,4,7,"button",1),h(7,"\n")),2&e&&(E("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Idle),A(2),E("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Loading),A(2),E("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Success),A(2),E("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Error))},dependencies:[tr,Gi,xxe],styles:["[_ngcontent-%COMP%]:export{bg-gradient:linear-gradient(to right,#275351,#2b3f4f);teal:#1db0a9;explorer-bg:linear-gradient(to right,#275351,#2b3f4f);explorer-teal:#1db0a9;developer-bg:linear-gradient(to top,#3375a7,#2b3a98);developer-teal:#1db0a9;governor-bg:linear-gradient(to top,#9d51b8,#4b2d83);governor-teal:#1db0a9;cloud-bg:linear-gradient(to top,#24272f,#222);cloud-teal:#1db0a9}button[_ngcontent-%COMP%]{font-family:inherit}button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{transition:color .5s,transform .2s,background-color .2s}button[_ngcontent-%COMP%]:active, .button[_ngcontent-%COMP%]:active{transform:translateY(1.5px)}button[_ngcontent-%COMP%]:disabled{cursor:default!important;pointer-events:none}button[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:10px;align-items:center;margin-right:1px;width:max-content}button.h-33px[_ngcontent-%COMP%]{height:39px}.button-container[_ngcontent-%COMP%]{padding:10px 15px 0}.button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:0;outline:none;cursor:pointer;width:100%;color:#1db0a9;background-color:#1db0a926;padding:10px 0;font-size:1.2rem;font-weight:600;border-radius:4px;transition:all .2s ease}.button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#1db0a933;box-shadow:0 1px 5px #1db0a9}.btn-primary[_ngcontent-%COMP%]{outline:none;border:2px solid #1db0a9;color:#fff;background-color:#1db0a9;padding:6.7px 15px;font-size:1.4rem;font-weight:600;border-radius:50px;height:100%;cursor:pointer}@media screen and (max-width: 1540px){.btn-primary[_ngcontent-%COMP%]{padding:7.5px 15px}}@media screen and (max-width: 1540px) and (max-width: 1420px){.btn-primary[_ngcontent-%COMP%]{padding:7px 15px}.btn-primary.h-33px[_ngcontent-%COMP%]{height:37px}}@media screen and (max-width: 1540px) and (max-width: 1320px){.btn-primary[_ngcontent-%COMP%]{padding:7.5px 15px}}@media screen and (max-width: 1540px) and (max-width: 1200px){.btn-primary[_ngcontent-%COMP%]{padding:8.5px 15px}}@media screen and (max-width: 1540px) and (max-width: 670px){.btn-primary[_ngcontent-%COMP%]{padding:5.5px 15px}}@media screen and (max-width: 1540px) and (max-width: 550px){.btn-primary[_ngcontent-%COMP%]{padding:5px 15px}}.btn-primary[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #1db0a9}.btn-primary.light[_ngcontent-%COMP%]{background-color:transparent}.btn-primary.white[_ngcontent-%COMP%]{border:2px solid #fff;color:#fff;background-color:transparent}.btn-primary[_ngcontent-%COMP%]:disabled{background-color:#888;border:2px solid #888;opacity:.6}.btn-primary-steal[_ngcontent-%COMP%]{outline:none;border:2px solid var(--bg-gradient);color:#fff;background:var(--bg-gradient);width:100px;height:35px;font-size:1.6rem;font-weight:600;border-radius:50px;cursor:pointer}.btn-primary-steal[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px var(--bg-gradient)}.btn-primary-steal.light[_ngcontent-%COMP%]{background:transparent}.btn-primary-steal[_ngcontent-%COMP%]:disabled{background-color:#888;border:2px solid #888;opacity:.6}@media screen and (max-width: 550px){.btn-primary-steal[_ngcontent-%COMP%]{width:75px;height:25px}}.btn-primary-gray[_ngcontent-%COMP%]{outline:none;border:0;color:#fff;border:1px solid #f6f8fa;background-color:transparent;padding:4.2px 10px;font-size:1.4rem;font-weight:600;border-radius:50px;cursor:pointer}@media screen and (max-width: 1420px){.btn-primary-gray[_ngcontent-%COMP%]{padding:3px 10px}}@media screen and (max-width: 1320px){.btn-primary-gray[_ngcontent-%COMP%]{padding:5px 10px}}@media screen and (max-width: 1220px){.btn-primary-gray[_ngcontent-%COMP%]{padding:6px 10px}}@media screen and (max-width: 670px){.btn-primary-gray[_ngcontent-%COMP%]{font-size:1.2rem!important;padding:4px 10px}}@media screen and (max-width: 550px){.btn-primary-gray[_ngcontent-%COMP%]{padding:2px 10px}}.btn-primary-gray[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #f6f8fa}.btn-primary-gray.light[_ngcontent-%COMP%]{background-color:transparent}.btn-primary-gray[_ngcontent-%COMP%]:disabled{background-color:#888;border:2px solid #888;opacity:.6}.btn-primary-gray.light-bold[_ngcontent-%COMP%]{font-weight:500}.btn-primary.edit-btn[_ngcontent-%COMP%]{padding:5px 27.5px;font-size:1.1rem}.small-btn[_ngcontent-%COMP%]{padding:0 10px!important;font-size:1.1rem!important}.btn-primary.add-btn[_ngcontent-%COMP%]{padding:6.5px 32.5px;font-size:1.4rem}.btn-connect[_ngcontent-%COMP%]{color:#fff;border:2px solid #fff}.btn-primary.submit[_ngcontent-%COMP%], .btn-secondary.submit[_ngcontent-%COMP%]{padding:5px 20px;font-size:1.1rem}@media screen and (max-width: 1540px){.btn-primary.buy-btn[_ngcontent-%COMP%], .btn-secondary.offer-btn[_ngcontent-%COMP%]{padding:5px 15px;font-size:1.2rem}}@media screen and (max-width: 1540px) and (max-width: 768px){.btn-primary.buy-btn[_ngcontent-%COMP%]{padding:6px 18px}}@media screen and (max-width: 1540px) and (max-width: 524px){.btn-primary.buy-btn[_ngcontent-%COMP%]{padding:6px 15px;font-size:1.1rem!important;width:83px!important}.btn-secondary.offer-btn[_ngcontent-%COMP%]{width:95px!important;font-size:1.1rem!important}}.btn-secondary[_ngcontent-%COMP%]{outline:none;border:0;color:#1db0a9;background-color:#fff;border:2px solid #1db0a9;padding:5px 15px;font-size:1.4rem;font-weight:600;border-radius:50px;cursor:pointer}.btn-secondary[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #1db0a9}.btn-secondary.delete-btn[_ngcontent-%COMP%]{padding:5px 20px;font-size:1.1rem}.btn-secondary.close-btn[_ngcontent-%COMP%]{padding:5px 23px;font-size:1.1rem}.btn-secondary.add-btn[_ngcontent-%COMP%]{padding:5px 27.5px;font-size:1.1rem}.btn-secondary.add-btn[_ngcontent-%COMP%]:disabled{border:2px solid #888;color:#888;opacity:.6}.btn-primary.purple[_ngcontent-%COMP%]{background-color:#ae5dcf;margin-left:0;margin-top:0;border:2px solid #fff}.btn-primary.purple[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #ae5dcf}@media screen and (max-width: 370px){.btn-primary.purple[_ngcontent-%COMP%]{font-size:1.1rem}}.btn-primary.navy-btn[_ngcontent-%COMP%]{background-color:#2969a6;margin-left:0;margin-top:0;height:36px;width:-moz-fit-content;width:fit-content;border:2px solid #fff}.btn-primary.navy-btn[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #2969a6}@media screen and (max-width: 1420px){.btn-primary.navy-btn[_ngcontent-%COMP%]{font-size:1.1rem;height:33px}}@media screen and (max-width: 370px){.btn-primary.navy-btn[_ngcontent-%COMP%]{font-size:1.1rem}}.btn.turquoise[_ngcontent-%COMP%]{color:#4ac1ba;font-size:1.4rem;border:none;background-color:transparent;cursor:pointer}.spinner[_ngcontent-%COMP%]{display:block;width:17px;height:17px;min-width:17px;min-height:17px;max-width:20px;border-radius:50%;border:2px solid #fff;animation:_ngcontent-%COMP%_spinner-bulqg1 .8s infinite linear alternate,spinner-oaa3wk 1.6s infinite linear}.btn-primary[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{border:2px solid #fff}.btn-error[_ngcontent-%COMP%]{background-color:#ee5552!important;border:2px solid #ee5552}.btn-success[_ngcontent-%COMP%]{background-color:#47bc5d!important;border:2px solid #47bc5d}.btn-loading[_ngcontent-%COMP%]{width:150px}@media screen and (max-width: 1540px){button[_ngcontent-%COMP%]{font-size:1.3rem}button.btn-primary-steal[_ngcontent-%COMP%]{font-size:1.5rem}}@media screen and (max-width: 1540px) and (max-width: 550px){button.btn-primary-steal[_ngcontent-%COMP%]{font-size:1.4rem}}@media screen and (max-width: 1420px) and (min-width: 1201px){button[_ngcontent-%COMP%]{font-size:1.2rem}}@media screen and (max-width: 1320px){button[_ngcontent-%COMP%], .btn.turquoise[_ngcontent-%COMP%]{font-size:1.4rem}}@media screen and (max-width: 670px){.btn-primary[_ngcontent-%COMP%]{font-size:1.2rem!important;border:1px solid #1db0a9}}@media screen and (max-width: 550px){button[_ngcontent-%COMP%]{font-size:1.2rem;gap:5px}button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:12px!important}.btn-connect[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.btn-primary-gray[_ngcontent-%COMP%]{font-size:1.2rem}}@media screen and (max-width: 525px){button[_ngcontent-%COMP%]{font-size:1.2rem;gap:5px}button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:12px!important}.spinner[_ngcontent-%COMP%]{height:12px;width:12px;min-height:12px;min-width:12px}.btn-primary[_ngcontent-%COMP%]{font-size:1.2rem}}@media screen and (max-width: 360px){.btn-connect[_ngcontent-%COMP%]{font-size:1.2rem}}@keyframes _ngcontent-%COMP%_spinner-bulqg1{0%{clip-path:polygon(50% 50%,0 0,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%)}12.5%{clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 0%,100% 0%,100% 0%)}25%{clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 100%,100% 100%,100% 100%)}50%{clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 100%,50% 100%,0% 100%)}62.5%{clip-path:polygon(50% 50%,100% 0,100% 0%,100% 0%,100% 100%,50% 100%,0% 100%)}75%{clip-path:polygon(50% 50%,100% 100%,100% 100%,100% 100%,100% 100%,50% 100%,0% 100%)}to{clip-path:polygon(50% 50%,50% 100%,50% 100%,50% 100%,50% 100%,50% 100%,0% 100%)}}@keyframes _ngcontent-%COMP%_spinner-oaa3wk{0%{transform:scaleY(1) rotate(0)}49.99%{transform:scaleY(1) rotate(135deg)}50%{transform:scaleY(-1) rotate(0)}to{transform:scaleY(-1) rotate(-135deg)}}"]}),n})();var qc=(()=>(function(n){n[n.Idle=0]="Idle",n[n.Loading=1]="Loading",n[n.Success=2]="Success",n[n.Error=3]="Error"}(qc||(qc={})),qc))();let HY=!1,jY=!1;const SS={debug:1,default:2,info:2,warning:3,error:4,off:5};let GY=SS.default,KN=null;const WY=function kxe(){try{const n=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch{n.push(t)}}),n.length)throw new Error("missing "+n.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(n){return n.message}return null}();var TS=(()=>(function(n){n.DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF"}(TS||(TS={})),TS))(),Zc=(()=>(function(n){n.UNKNOWN_ERROR="UNKNOWN_ERROR",n.NOT_IMPLEMENTED="NOT_IMPLEMENTED",n.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",n.NETWORK_ERROR="NETWORK_ERROR",n.SERVER_ERROR="SERVER_ERROR",n.TIMEOUT="TIMEOUT",n.BUFFER_OVERRUN="BUFFER_OVERRUN",n.NUMERIC_FAULT="NUMERIC_FAULT",n.MISSING_NEW="MISSING_NEW",n.INVALID_ARGUMENT="INVALID_ARGUMENT",n.MISSING_ARGUMENT="MISSING_ARGUMENT",n.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",n.CALL_EXCEPTION="CALL_EXCEPTION",n.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",n.NONCE_EXPIRED="NONCE_EXPIRED",n.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",n.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",n.TRANSACTION_REPLACED="TRANSACTION_REPLACED",n.ACTION_REJECTED="ACTION_REJECTED"}(Zc||(Zc={})),Zc))();const qY="0123456789abcdef";let Ee=(()=>{class n{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const i=e.toLowerCase();null==SS[i]&&this.throwArgumentError("invalid log level name","logLevel",e),!(GY>SS[i])&&console.log.apply(console,r)}debug(...e){this._log(n.levels.DEBUG,e)}info(...e){this._log(n.levels.INFO,e)}warn(...e){this._log(n.levels.WARNING,e)}makeError(e,r,i){if(jY)return this.makeError("censored error",r,{});r||(r=n.errors.UNKNOWN_ERROR),i||(i={});const o=[];Object.keys(i).forEach(c=>{const u=i[c];try{if(u instanceof Uint8Array){let d="";for(let p=0;p>4],d+=qY[15&u[p]];o.push(c+"=Uint8Array(0x"+d+")")}else o.push(c+"="+JSON.stringify(u))}catch{o.push(c+"="+JSON.stringify(i[c].toString()))}}),o.push(`code=${r}`),o.push(`version=${this.version}`);const a=e;let s="";switch(r){case Zc.NUMERIC_FAULT:{s="NUMERIC_FAULT";const c=e;switch(c){case"overflow":case"underflow":case"division-by-zero":s+="-"+c;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case Zc.CALL_EXCEPTION:case Zc.INSUFFICIENT_FUNDS:case Zc.MISSING_NEW:case Zc.NONCE_EXPIRED:case Zc.REPLACEMENT_UNDERPRICED:case Zc.TRANSACTION_REPLACED:case Zc.UNPREDICTABLE_GAS_LIMIT:s=r}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),o.length&&(e+=" ("+o.join(", ")+")");const l=new Error(e);return l.reason=a,l.code=r,Object.keys(i).forEach(function(c){l[c]=i[c]}),l}throwError(e,r,i){throw this.makeError(e,r,i)}throwArgumentError(e,r,i){return this.throwError(e,n.errors.INVALID_ARGUMENT,{argument:r,value:i})}assert(e,r,i,o){e||this.throwError(r,i,o)}assertArgument(e,r,i,o){e||this.throwArgumentError(r,i,o)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),WY&&this.throwError("platform missing String.prototype.normalize",n.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:WY})}checkSafeUint53(e,r){"number"==typeof e&&(null==r&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,i){i=i?": "+i:"",er&&this.throwError("too many arguments"+i,n.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||null==e)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",n.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return KN||(KN=new n("logger/5.7.0")),KN}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),HY){if(!e)return;this.globalLogger().throwError("error censorship permanent",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}jY=!!e,HY=!!r}static setLogLevel(e){const r=SS[e.toLowerCase()];null!=r?GY=r:n.globalLogger().warn("invalid log level - "+e)}static from(e){return new n(e)}}return n.errors=Zc,n.levels=TS,n})();const Po=new Ee("bytes/5.7.0");function ZY(n){return!!n.toHexString}function Y0(n){return n.slice||(n.slice=function(){const t=Array.prototype.slice.call(arguments);return Y0(new Uint8Array(Array.prototype.slice.apply(n,t)))}),n}function JN(n){return Ri(n)&&!(n.length%2)||X0(n)}function YY(n){return"number"==typeof n&&n==n&&n%1==0}function X0(n){if(null==n)return!1;if(n.constructor===Uint8Array)return!0;if("string"==typeof n||!YY(n.length)||n.length<0)return!1;for(let t=0;t=256)return!1}return!0}function xn(n,t){if(t||(t={}),"number"==typeof n){Po.checkSafeUint53(n,"invalid arrayify value");const e=[];for(;n;)e.unshift(255&n),n=parseInt(String(n/256));return 0===e.length&&e.push(0),Y0(new Uint8Array(e))}if(t.allowMissingPrefix&&"string"==typeof n&&"0x"!==n.substring(0,2)&&(n="0x"+n),ZY(n)&&(n=n.toHexString()),Ri(n)){let e=n.substring(2);e.length%2&&("left"===t.hexPad?e="0"+e:"right"===t.hexPad?e+="0":Po.throwArgumentError("hex data is odd-length","value",n));const r=[];for(let i=0;ixn(i)),e=t.reduce((i,o)=>i+o.length,0),r=new Uint8Array(e);return t.reduce((i,o)=>(r.set(o,i),i+o.length),0),Y0(r)}function K0(n){let t=xn(n);if(0===t.length)return t;let e=0;for(;e>4]+QN[15&i]}return e}return Po.throwArgumentError("invalid hexlify value","value",n)}function P1(n){if("string"!=typeof n)n=wn(n);else if(!Ri(n)||n.length%2)return null;return(n.length-2)/2}function fs(n,t,e){return"string"!=typeof n?n=wn(n):(!Ri(n)||n.length%2)&&Po.throwArgumentError("invalid hexData","value",n),t=2+2*t,null!=e?"0x"+n.substring(t,2+2*e):"0x"+n.substring(t)}function yl(n){let t="0x";return n.forEach(e=>{t+=wn(e).substring(2)}),t}function SC(n){const t=function Lxe(n){"string"!=typeof n&&(n=wn(n)),Ri(n)||Po.throwArgumentError("invalid hex string","value",n),n=n.substring(2);let t=0;for(;t2*t+2&&Po.throwArgumentError("value out of range","value",arguments[1]);n.length<2*t+2;)n="0x0"+n.substring(2);return n}function TC(n){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(JN(n)){let e=xn(n);64===e.length?(t.v=27+(e[32]>>7),e[32]&=127,t.r=wn(e.slice(0,32)),t.s=wn(e.slice(32,64))):65===e.length?(t.r=wn(e.slice(0,32)),t.s=wn(e.slice(32,64)),t.v=e[64]):Po.throwArgumentError("invalid signature string","signature",n),t.v<27&&(0===t.v||1===t.v?t.v+=27:Po.throwArgumentError("signature invalid v byte","signature",n)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(e[32]|=128),t._vs=wn(e.slice(32,64))}else{if(t.r=n.r,t.s=n.s,t.v=n.v,t.recoveryParam=n.recoveryParam,t._vs=n._vs,null!=t._vs){const i=function Nxe(n,t){(n=xn(n)).length>t&&Po.throwArgumentError("value out of range","value",arguments[0]);const e=new Uint8Array(t);return e.set(n,t-n.length),Y0(e)}(xn(t._vs),32);t._vs=wn(i);const o=i[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&Po.throwArgumentError("signature recoveryParam mismatch _vs","signature",n),i[0]&=127;const a=wn(i);null==t.s?t.s=a:t.s!==a&&Po.throwArgumentError("signature v mismatch _vs","signature",n)}null==t.recoveryParam?null==t.v?Po.throwArgumentError("signature missing v and recoveryParam","signature",n):t.recoveryParam=0===t.v||1===t.v?t.v:1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==(0===t.v||1===t.v?t.v:1-t.v%2)&&Po.throwArgumentError("signature recoveryParam mismatch v","signature",n),null!=t.r&&Ri(t.r)?t.r=mo(t.r,32):Po.throwArgumentError("signature missing or invalid r","signature",n),null!=t.s&&Ri(t.s)?t.s=mo(t.s,32):Po.throwArgumentError("signature missing or invalid s","signature",n);const e=xn(t.s);e[0]>=128&&Po.throwArgumentError("signature s out of range","signature",n),t.recoveryParam&&(e[0]|=128);const r=wn(e);t._vs&&(Ri(t._vs)||Po.throwArgumentError("signature invalid _vs","signature",n),t._vs=mo(t._vs,32)),null==t._vs?t._vs=r:t._vs!==r&&Po.throwArgumentError("signature _vs mismatch v and s","signature",n)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}var Bxe=function(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})};const AS=new Ee("properties/5.7.0");function In(n,t,e){Object.defineProperty(n,t,{enumerable:!0,value:e,writable:!1})}function AC(n,t){for(let e=0;e<32;e++){if(n[t])return n[t];if(!n.prototype||"object"!=typeof n.prototype)break;n=Object.getPrototypeOf(n.prototype).constructor}return null}function Na(n){return Bxe(this,void 0,void 0,function*(){const t=Object.keys(n).map(r=>Promise.resolve(n[r]).then(o=>({key:r,value:o})));return(yield Promise.all(t)).reduce((r,i)=>(r[i.key]=i.value,r),{})})}function bl(n){const t={};for(const e in n)t[e]=n[e];return t}const Uxe={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function XY(n){if(null==n||Uxe[typeof n])return!0;if(Array.isArray(n)||"object"==typeof n){if(!Object.isFrozen(n))return!1;const t=Object.keys(n);for(let e=0;efp(t)));if("object"==typeof n){const t={};for(const e in n){const r=n[e];void 0!==r&&In(t,e,fp(r))}return t}return AS.throwArgumentError("Cannot deepCopy "+typeof n,"object",n)}function fp(n){return Vxe(n)}class zxe{constructor(t){for(const e in t)this[e]=fp(t[e])}}var Hxe=De(538),Un=De.n(Hxe);const KY="bignumber/5.7.0";var DC=Un().BN;const Fh=new Ee(KY),eL={},JY=9007199254740991;let QY=!1;class ft{constructor(t,e){t!==eL&&Fh.throwError("cannot call constructor directly; use BigNumber.from",Ee.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Cl(yr(this).fromTwos(t))}toTwos(t){return Cl(yr(this).toTwos(t))}abs(){return"-"===this._hex[0]?ft.from(this._hex.substring(1)):this}add(t){return Cl(yr(this).add(yr(t)))}sub(t){return Cl(yr(this).sub(yr(t)))}div(t){return ft.from(t).isZero()&&Yc("division-by-zero","div"),Cl(yr(this).div(yr(t)))}mul(t){return Cl(yr(this).mul(yr(t)))}mod(t){const e=yr(t);return e.isNeg()&&Yc("division-by-zero","mod"),Cl(yr(this).umod(e))}pow(t){const e=yr(t);return e.isNeg()&&Yc("negative-power","pow"),Cl(yr(this).pow(e))}and(t){const e=yr(t);return(this.isNegative()||e.isNeg())&&Yc("unbound-bitwise-result","and"),Cl(yr(this).and(e))}or(t){const e=yr(t);return(this.isNegative()||e.isNeg())&&Yc("unbound-bitwise-result","or"),Cl(yr(this).or(e))}xor(t){const e=yr(t);return(this.isNegative()||e.isNeg())&&Yc("unbound-bitwise-result","xor"),Cl(yr(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&Yc("negative-width","mask"),Cl(yr(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Yc("negative-width","shl"),Cl(yr(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Yc("negative-width","shr"),Cl(yr(this).shrn(t))}eq(t){return yr(this).eq(yr(t))}lt(t){return yr(this).lt(yr(t))}lte(t){return yr(this).lte(yr(t))}gt(t){return yr(this).gt(yr(t))}gte(t){return yr(this).gte(yr(t))}isNegative(){return"-"===this._hex[0]}isZero(){return yr(this).isZero()}toNumber(){try{return yr(this).toNumber()}catch{Yc("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Fh.throwError("this platform does not support BigInt",Ee.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?QY||(QY=!0,Fh.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):Fh.throwError(16===arguments[0]?"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()":"BigNumber.toString does not accept parameters",Ee.errors.UNEXPECTED_ARGUMENT,{})),yr(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof ft)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new ft(eL,IC(t)):t.match(/^-?[0-9]+$/)?new ft(eL,IC(new DC(t))):Fh.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&Yc("underflow","BigNumber.from",t),(t>=JY||t<=-JY)&&Yc("overflow","BigNumber.from",t),ft.from(String(t));const e=t;if("bigint"==typeof e)return ft.from(e.toString());if(X0(e))return ft.from(wn(e));if(e)if(e.toHexString){const r=e.toHexString();if("string"==typeof r)return ft.from(r)}else{let r=e._hex;if(null==r&&"BigNumber"===e.type&&(r=e.hex),"string"==typeof r&&(Ri(r)||"-"===r[0]&&Ri(r.substring(1))))return ft.from(r)}return Fh.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function IC(n){if("string"!=typeof n)return IC(n.toString(16));if("-"===n[0])return"-"===(n=n.substring(1))[0]&&Fh.throwArgumentError("invalid hex","value",n),"0x00"===(n=IC(n))?n:"-"+n;if("0x"!==n.substring(0,2)&&(n="0x"+n),"0x"===n)return"0x00";for(n.length%2&&(n="0x0"+n.substring(2));n.length>4&&"0x00"===n.substring(0,4);)n="0x"+n.substring(4);return n}function Cl(n){return ft.from(IC(n))}function yr(n){const t=ft.from(n).toHexString();return new DC("-"===t[0]?"-"+t.substring(3):t.substring(2),16)}function Yc(n,t,e){const r={fault:n,operation:t};return null!=e&&(r.value=e),Fh.throwError(n,Ee.errors.NUMERIC_FAULT,r)}var Wxe=De(237),qxe=De.n(Wxe);function La(n){return"0x"+qxe().keccak_256(xn(n))}const Ed=new Ee("rlp/5.7.0");function eX(n){const t=[];for(;n;)t.unshift(255&n),n>>=8;return t}function tX(n,t,e){let r=0;for(let i=0;it+1+r&&Ed.throwError("child data too short",Ee.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:i}}function iX(n,t){if(0===n.length&&Ed.throwError("data too short",Ee.errors.BUFFER_OVERRUN,{}),n[t]>=248){const e=n[t]-247;t+1+e>n.length&&Ed.throwError("data short segment too short",Ee.errors.BUFFER_OVERRUN,{});const r=tX(n,t+1,e);return t+1+e+r>n.length&&Ed.throwError("data long segment too short",Ee.errors.BUFFER_OVERRUN,{}),rX(n,t,t+1+e,e+r)}if(n[t]>=192){const e=n[t]-192;return t+1+e>n.length&&Ed.throwError("data array too short",Ee.errors.BUFFER_OVERRUN,{}),rX(n,t,t+1,e)}if(n[t]>=184){const e=n[t]-183;t+1+e>n.length&&Ed.throwError("data array too short",Ee.errors.BUFFER_OVERRUN,{});const r=tX(n,t+1,e);return t+1+e+r>n.length&&Ed.throwError("data array too short",Ee.errors.BUFFER_OVERRUN,{}),{consumed:1+e+r,result:wn(n.slice(t+1+e,t+1+e+r))}}if(n[t]>=128){const e=n[t]-128;return t+1+e>n.length&&Ed.throwError("data too short",Ee.errors.BUFFER_OVERRUN,{}),{consumed:1+e,result:wn(n.slice(t+1,t+1+e))}}return{consumed:1,result:wn(n[t])}}function tL(n){const t=xn(n),e=iX(t,0);return e.consumed!==t.length&&Ed.throwArgumentError("invalid rlp data","data",n),e.result}const pp=new Ee("address/5.7.0");function oX(n){Ri(n,20)||pp.throwArgumentError("invalid address","address",n);const t=(n=n.toLowerCase()).substring(2).split(""),e=new Uint8Array(40);for(let i=0;i<40;i++)e[i]=t[i].charCodeAt(0);const r=xn(La(e));for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(15&r[i>>1])>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}const nL={};for(let n=0;n<10;n++)nL[String(n)]=String(n);for(let n=0;n<26;n++)nL[String.fromCharCode(65+n)]=String(10+n);const aX=Math.floor(function Kxe(n){return Math.log10?Math.log10(n):Math.log(n)/Math.LN10}(9007199254740991));function Fa(n){let t=null;if("string"!=typeof n&&pp.throwArgumentError("invalid address","address",n),n.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==n.substring(0,2)&&(n="0x"+n),t=oX(n),n.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==n&&pp.throwArgumentError("bad address checksum","address",n);else if(n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(n.substring(2,4)!==function sX(n){let t=(n=(n=n.toUpperCase()).substring(4)+n.substring(0,2)+"00").split("").map(r=>nL[r]).join("");for(;t.length>=aX;){let r=t.substring(0,aX);t=parseInt(r,10)%97+t.substring(r.length)}let e=String(98-parseInt(t,10)%97);for(;e.length<2;)e="0"+e;return e}(n)&&pp.throwArgumentError("bad icap checksum","address",n),t=function Gxe(n){return new DC(n,36).toString(16)}(n.substring(4));t.length<40;)t="0"+t;t=oX("0x"+t)}else pp.throwArgumentError("invalid address","address",n);return t}const Qxe=ft.from(-1),lX=ft.from(0),eMe=ft.from(1),tMe=ft.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var nMe=De(84),kd=De.n(nMe);function J0(n,t,e){return n(e={path:t,exports:{},require:function(r,i){return function rMe(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"&&self;var rL=cX;function cX(n,t){if(!n)throw new Error(t||"Assertion failed")}cX.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var Fu=J0(function(n,t){var e=t;function i(a){return 1===a.length?"0"+a:a}function o(a){for(var s="",l=0;l>8,p=255&u;d?l.push(d,p):l.push(p)}return l},e.zero2=i,e.toHex=o,e.encode=function(s,l){return"hex"===l?o(s):s}}),Kl=J0(function(n,t){var e=t;e.assert=rL,e.toArray=Fu.toArray,e.zero2=Fu.zero2,e.toHex=Fu.toHex,e.encode=Fu.encode,e.getNAF=function r(l,c,u){var d=new Array(Math.max(l.bitLength(),u)+1);d.fill(0);for(var p=1<(p>>1)-1?(p>>1)-y:y):_=0,d[v]=_,g.iushrn(1)}return d},e.getJSF=function i(l,c){var u=[[],[]];l=l.clone(),c=c.clone();for(var g,d=0,p=0;l.cmpn(-d)>0||c.cmpn(-p)>0;){var y,b,v=l.andln(3)+d&3,_=c.andln(3)+p&3;3===v&&(v=-1),3===_&&(_=-1),y=1&v?3!=(g=l.andln(7)+d&7)&&5!==g||2!==_?v:-v:0,u[0].push(y),b=1&_?3!=(g=c.andln(7)+p&7)&&5!==g||2!==v?_:-_:0,u[1].push(b),2*d===y+1&&(d=1-d),2*p===b+1&&(p=1-p),l.iushrn(1),c.iushrn(1)}return u},e.cachedProperty=function o(l,c,u){var d="_"+c;l.prototype[c]=function(){return void 0!==this[d]?this[d]:this[d]=u.call(this)}},e.parseBytes=function a(l){return"string"==typeof l?e.toArray(l,"hex"):l},e.intFromLE=function s(l){return new(Un())(l,"hex","le")}}),IS=Kl.getNAF,iMe=Kl.getJSF,ES=Kl.assert;function gp(n,t){this.type=n,this.p=new(Un())(t.p,16),this.red=t.prime?Un().red(t.prime):Un().mont(this.p),this.zero=new(Un())(0).toRed(this.red),this.one=new(Un())(1).toRed(this.red),this.two=new(Un())(2).toRed(this.red),this.n=t.n&&new(Un())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var e=this.n&&this.p.div(this.n);!e||e.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var O1=gp;function Xc(n,t){this.curve=n,this.type=t,this.precomputed=null}gp.prototype.point=function(){throw new Error("Not implemented")},gp.prototype.validate=function(){throw new Error("Not implemented")},gp.prototype._fixedNafMul=function(t,e){ES(t.precomputed);var r=t._getDoubles(),i=IS(e,1,this._bitLength),o=(1<=s;c--)l=(l<<1)+i[c];a.push(l)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),p=o;p>0;p--){for(s=0;s=0;l--){for(var c=0;l>=0&&0===a[l];l--)c++;if(l>=0&&c++,s=s.dblp(c),l<0)break;var u=a[l];ES(0!==u),s="affine"===t.type?s.mixedAdd(u>0?o[u-1>>1]:o[-u-1>>1].neg()):s.add(u>0?o[u-1>>1]:o[-u-1>>1].neg())}return"affine"===t.type?s.toP():s},gp.prototype._wnafMulAdd=function(t,e,r,i,o){var u,d,p,a=this._wnafT1,s=this._wnafT2,l=this._wnafT3,c=0;for(u=0;u=1;u-=2){var v=u-1,_=u;if(1===a[v]&&1===a[_]){var y=[e[v],null,null,e[_]];0===e[v].y.cmp(e[_].y)?(y[1]=e[v].add(e[_]),y[2]=e[v].toJ().mixedAdd(e[_].neg())):0===e[v].y.cmp(e[_].y.redNeg())?(y[1]=e[v].toJ().mixedAdd(e[_]),y[2]=e[v].add(e[_].neg())):(y[1]=e[v].toJ().mixedAdd(e[_]),y[2]=e[v].toJ().mixedAdd(e[_].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],w=iMe(r[v],r[_]);for(c=Math.max(w[0].length,c),l[v]=new Array(c),l[_]=new Array(c),d=0;d=0;u--){for(var z=0;u>=0;){var U=!0;for(d=0;d=0&&z++,N=N.dblp(z),u<0)break;for(d=0;d0?p=s[d][W-1>>1]:W<0&&(p=s[d][-W-1>>1].neg()),N="affine"===p.type?N.mixedAdd(p):N.add(p))}}for(u=0;u=Math.ceil((t.bitLength()+1)/e.step)},Xc.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,o=0;o=0&&(g=c,v=u),d.negative&&(d=d.neg(),p=p.neg()),g.negative&&(g=g.neg(),v=v.neg()),[{a:d,b:p},{a:g,b:v}]},Kc.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],i=e[1],o=i.b.mul(t).divRound(this.n),a=r.b.neg().mul(t).divRound(this.n),s=o.mul(r.a),l=a.mul(i.a),c=o.mul(r.b),u=a.mul(i.b);return{k1:t.sub(s).sub(l),k2:c.add(u).neg()}},Kc.prototype.pointFromX=function(t,e){(t=new(Un())(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=i.fromRed().isOdd();return(e&&!o||!e&&o)&&(i=i.redNeg()),this.point(t,i)},Kc.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,i=this.a.redMul(e),o=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},Kc.prototype._endoWnafMulAdd=function(t,e,r){for(var i=this._endoWnafT1,o=this._endoWnafT2,a=0;a":""},Ca.prototype.isInfinity=function(){return this.inf},Ca.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),i=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},Ca.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),i=t.redInvm(),o=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(i),a=o.redSqr().redISub(this.x.redAdd(this.x)),s=o.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},Ca.prototype.getX=function(){return this.x.fromRed()},Ca.prototype.getY=function(){return this.y.fromRed()},Ca.prototype.mul=function(t){return t=new(Un())(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Ca.prototype.mulAdd=function(t,e,r){var i=[this,e],o=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)},Ca.prototype.jmulAdd=function(t,e,r){var i=[this,e],o=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)},Ca.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Ca.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,i=function(o){return o.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return e},Ca.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},iL(Ba,O1.BasePoint),Kc.prototype.jpoint=function(t,e,r){return new Ba(this,t,e,r)},Ba.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),i=this.y.redMul(e).redMul(t);return this.curve.point(r,i)},Ba.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Ba.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(e),o=t.x.redMul(r),a=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),l=i.redSub(o),c=a.redSub(s);if(0===l.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=l.redSqr(),d=u.redMul(l),p=i.redMul(u),g=c.redSqr().redIAdd(d).redISub(p).redISub(p),v=c.redMul(p.redISub(g)).redISub(a.redMul(d)),_=this.z.redMul(t.z).redMul(l);return this.curve.jpoint(g,v,_)},Ba.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,i=t.x.redMul(e),o=this.y,a=t.y.redMul(e).redMul(this.z),s=r.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=r.redMul(c),p=l.redSqr().redIAdd(u).redISub(d).redISub(d),g=l.redMul(d.redISub(p)).redISub(o.redMul(u)),v=this.z.redMul(s);return this.curve.jpoint(p,g,v)},Ba.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},Ba.prototype.inspect=function(){return this.isInfinity()?"":""},Ba.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var kS=J0(function(n,t){var e=t;e.base=O1,e.short=aMe,e.mont=null,e.edwards=null}),RS=J0(function(n,t){var a,e=t,r=Kl.assert;function i(s){this.curve="short"===s.type?new kS.short(s):"edwards"===s.type?new kS.edwards(s):new kS.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,r(this.g.validate(),"Invalid curve"),r(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(s,l){Object.defineProperty(e,s,{configurable:!0,enumerable:!0,get:function(){var c=new i(l);return Object.defineProperty(e,s,{configurable:!0,enumerable:!0,value:c}),c}})}e.PresetCurve=i,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:kd().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:kd().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:kd().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:kd().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:kd().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:kd().sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:kd().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{a=null.crash()}catch{a=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:kd().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})});function mp(n){if(!(this instanceof mp))return new mp(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=Fu.toArray(n.entropy,n.entropyEnc||"hex"),e=Fu.toArray(n.nonce,n.nonceEnc||"hex"),r=Fu.toArray(n.pers,n.persEnc||"hex");rL(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,e,r)}var uX=mp;mp.prototype._init=function(t,e,r){var i=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},mp.prototype.generate=function(t,e,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(i=r,r=e,e=null),r&&(r=Fu.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"};var sMe=Kl.assert;function NS(n,t){if(n instanceof NS)return n;this._importDER(n,t)||(sMe(n.r&&n.s,"Signature without r or s"),this.r=new(Un())(n.r,16),this.s=new(Un())(n.s,16),this.recoveryParam=void 0===n.recoveryParam?null:n.recoveryParam)}var LS=NS;function lMe(){this.place=0}function sL(n,t){var e=n[t.place++];if(!(128&e))return e;var r=15&e;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function dX(n){for(var t=0,e=n.length-1;!n[t]&&!(128&n[t+1])&&t>>3);for(n.push(128|e);--e;)n.push(t>>>(e<<3)&255);n.push(t)}}NS.prototype._importDER=function(t,e){t=Kl.toArray(t,e);var r=new lMe;if(48!==t[r.place++])return!1;var i=sL(t,r);if(!1===i||i+r.place!==t.length||2!==t[r.place++])return!1;var o=sL(t,r);if(!1===o)return!1;var a=t.slice(r.place,o+r.place);if(r.place+=o,2!==t[r.place++])return!1;var s=sL(t,r);if(!1===s||t.length!==s+r.place)return!1;var l=t.slice(r.place,s+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new(Un())(a),this.s=new(Un())(l),this.recoveryParam=null,!0},NS.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=dX(e),r=dX(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];lL(i,e.length),(i=i.concat(e)).push(2),lL(i,r.length);var o=i.concat(r),a=[48];return lL(a,o.length),a=a.concat(o),Kl.encode(a,t)};var cMe=function(){throw new Error("unsupported")},hX=Kl.assert;function Jc(n){if(!(this instanceof Jc))return new Jc(n);"string"==typeof n&&(hX(Object.prototype.hasOwnProperty.call(RS,n),"Unknown curve "+n),n=RS[n]),n instanceof RS.PresetCurve&&(n={curve:n}),this.curve=n.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=n.curve.g,this.g.precompute(n.curve.n.bitLength()+1),this.hash=n.hash||n.curve.hash}var uMe=Jc;Jc.prototype.keyPair=function(t){return new aL(this,t)},Jc.prototype.keyFromPrivate=function(t,e){return aL.fromPrivate(this,t,e)},Jc.prototype.keyFromPublic=function(t,e){return aL.fromPublic(this,t,e)},Jc.prototype.genKeyPair=function(t){t||(t={});for(var e=new uX({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||cMe(),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new(Un())(2));;){var o=new(Un())(e.generate(r));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}},Jc.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},Jc.prototype.sign=function(t,e,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new(Un())(t,16));for(var o=this.n.byteLength(),a=e.getPrivate().toArray("be",o),s=t.toArray("be",o),l=new uX({hash:this.hash,entropy:a,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new(Un())(1)),u=0;;u++){var d=i.k?i.k(u):new(Un())(l.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(c)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var g=p.getX(),v=g.umod(this.n);if(0!==v.cmpn(0)){var _=d.invm(this.n).mul(v.mul(e.getPrivate()).iadd(t));if(0!==(_=_.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==g.cmp(v)?2:0);return i.canonical&&_.cmp(this.nh)>0&&(_=this.n.sub(_),y^=1),new LS({r:v,s:_,recoveryParam:y})}}}}}},Jc.prototype.verify=function(t,e,r,i){t=this._truncateToN(new(Un())(t,16)),r=this.keyFromPublic(r,i);var o=(e=new LS(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var u,s=a.invm(this.n),l=s.mul(t).umod(this.n),c=s.mul(o).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(l,r.getPublic(),c)).isInfinity()&&u.eqXToP(o):!(u=this.g.mulAdd(l,r.getPublic(),c)).isInfinity()&&0===u.getX().umod(this.n).cmp(o)},Jc.prototype.recoverPubKey=function(n,t,e,r){hX((3&e)===e,"The recovery param is more than two bits"),t=new LS(t,r);var i=this.n,o=new(Un())(n),a=t.r,s=t.s,l=1&e,c=e>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=this.curve.pointFromX(c?a.add(this.curve.n):a,l);var u=t.r.invm(i),d=i.sub(o).mul(u).umod(i),p=s.mul(u).umod(i);return this.g.mulAdd(d,a,p)},Jc.prototype.getKeyRecoveryParam=function(n,t,e,r){if(null!==(t=new LS(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(n,t,i)}catch{continue}if(o.eq(e))return i}throw new Error("Unable to find valid recovery factor")};var dMe=J0(function(n,t){var e=t;e.version="6.5.4",e.utils=Kl,e.rand=function(){throw new Error("unsupported")},e.curve=kS,e.curves=RS,e.ec=uMe,e.eddsa=null}),hMe=dMe.ec;const cL=new Ee("signing-key/5.7.0");let uL=null;function Rd(){return uL||(uL=new hMe("secp256k1")),uL}class pMe{constructor(t){In(this,"curve","secp256k1"),In(this,"privateKey",wn(t)),32!==P1(this.privateKey)&&cL.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=Rd().keyFromPrivate(xn(this.privateKey));In(this,"publicKey","0x"+e.getPublic(!1,"hex")),In(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),In(this,"_isSigningKey",!0)}_addPoint(t){const e=Rd().keyFromPublic(xn(this.publicKey)),r=Rd().keyFromPublic(xn(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){const e=Rd().keyFromPrivate(xn(this.privateKey)),r=xn(t);32!==r.length&&cL.throwArgumentError("bad digest length","digest",t);const i=e.sign(r,{canonical:!0});return TC({recoveryParam:i.recoveryParam,r:mo("0x"+i.r.toString(16),32),s:mo("0x"+i.s.toString(16),32)})}computeSharedSecret(t){const e=Rd().keyFromPrivate(xn(this.privateKey)),r=Rd().keyFromPublic(xn(fX(t)));return mo("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function fX(n,t){const e=xn(n);if(32===e.length){const r=new pMe(e);return t?"0x"+Rd().keyFromPrivate(e).getPublic(!0,"hex"):r.publicKey}return 33===e.length?t?wn(e):"0x"+Rd().keyFromPublic(e).getPublic(!1,"hex"):65===e.length?t?"0x"+Rd().keyFromPublic(e).getPublic(!0,"hex"):wn(e):cL.throwArgumentError("invalid public or private key","key","[REDACTED]")}const gs=new Ee("transactions/5.7.0");function dL(n){return"0x"===n?null:Fa(n)}function ms(n){return"0x"===n?lX:ft.from(n)}function pX(n,t){return function yMe(n){return Fa(fs(La(fs(fX(n),1)),12))}(function gMe(n,t){const e=TC(t),r={r:xn(e.r),s:xn(e.s)};return"0x"+Rd().recoverPubKey(xn(n),r,e.recoveryParam).encode("hex",!1)}(xn(n),t))}function Jl(n,t){const e=K0(ft.from(n).toHexString());return e.length>32&&gs.throwArgumentError("invalid length for "+t,"transaction:"+t,n),e}function hL(n,t){return{address:Fa(n),storageKeys:(t||[]).map((e,r)=>(32!==P1(e)&&gs.throwArgumentError("invalid access list storageKey",`accessList[${n}:${r}]`,e),e.toLowerCase()))}}function Q0(n){if(Array.isArray(n))return n.map((e,r)=>Array.isArray(e)?(e.length>2&&gs.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${r}]`,e),hL(e[0],e[1])):hL(e.address,e.storageKeys));const t=Object.keys(n).map(e=>{const r=n[e].reduce((i,o)=>(i[o]=!0,i),{});return hL(e,Object.keys(r).sort())});return t.sort((e,r)=>e.address.localeCompare(r.address)),t}function gX(n){return Q0(n).map(t=>[t.address,t.storageKeys])}function mX(n,t){if(null!=n.gasPrice){const r=ft.from(n.gasPrice),i=ft.from(n.maxFeePerGas||0);r.eq(i)||gs.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:i})}const e=[Jl(n.chainId||0,"chainId"),Jl(n.nonce||0,"nonce"),Jl(n.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Jl(n.maxFeePerGas||0,"maxFeePerGas"),Jl(n.gasLimit||0,"gasLimit"),null!=n.to?Fa(n.to):"0x",Jl(n.value||0,"value"),n.data||"0x",gX(n.accessList||[])];if(t){const r=TC(t);e.push(Jl(r.recoveryParam,"recoveryParam")),e.push(K0(r.r)),e.push(K0(r.s))}return yl(["0x02",DS(e)])}function vX(n,t){const e=[Jl(n.chainId||0,"chainId"),Jl(n.nonce||0,"nonce"),Jl(n.gasPrice||0,"gasPrice"),Jl(n.gasLimit||0,"gasLimit"),null!=n.to?Fa(n.to):"0x",Jl(n.value||0,"value"),n.data||"0x",gX(n.accessList||[])];if(t){const r=TC(t);e.push(Jl(r.recoveryParam,"recoveryParam")),e.push(K0(r.r)),e.push(K0(r.s))}return yl(["0x01",DS(e)])}function _X(n,t,e){try{const r=ms(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");n.v=r}catch{gs.throwArgumentError("invalid v for transaction type: 1","v",t[0])}n.r=mo(t[1],32),n.s=mo(t[2],32);try{const r=La(e(n));n.from=pX(r,{r:n.r,s:n.s,recoveryParam:n.v})}catch{}}function yX(n){n=atob(n);const t=[];for(let e=0;e(function(n){n.current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD"}(e2||(e2={})),e2))(),wl=(()=>(function(n){n.UNEXPECTED_CONTINUE="unexpected continuation byte",n.BAD_PREFIX="bad codepoint prefix",n.OVERRUN="string overrun",n.MISSING_CONTINUE="missing continuation byte",n.OUT_OF_RANGE="out of UTF-8 range",n.UTF16_SURROGATE="UTF-16 surrogate",n.OVERLONG="overlong representation"}(wl||(wl={})),wl))();function wX(n,t,e,r,i){if(n===wl.BAD_PREFIX||n===wl.UNEXPECTED_CONTINUE){let o=0;for(let a=t+1;a>6==2;a++)o++;return o}return n===wl.OVERRUN?e.length-t-1:0}const TMe=Object.freeze({error:function OMe(n,t,e,r,i){return CX.throwArgumentError(`invalid codepoint at offset ${t}; ${n}`,"bytes",e)},ignore:wX,replace:function SMe(n,t,e,r,i){return n===wl.OVERLONG?(r.push(i),0):(r.push(65533),wX(n,t,e))}});function fL(n,t){null==t&&(t=TMe.error),n=xn(n);const e=[];let r=0;for(;r>7)){e.push(i);continue}let o=null,a=null;if(192==(224&i))o=1,a=127;else if(224==(240&i))o=2,a=2047;else{if(240!=(248&i)){r+=t(128==(192&i)?wl.UNEXPECTED_CONTINUE:wl.BAD_PREFIX,r-1,n,e);continue}o=3,a=65535}if(r-1+o>=n.length){r+=t(wl.OVERRUN,r-1,n,e);continue}let s=i&(1<<8-o-1)-1;for(let l=0;l1114111){r+=t(wl.OUT_OF_RANGE,r-1-o,n,e,s);continue}if(s>=55296&&s<=57343){r+=t(wl.UTF16_SURROGATE,r-1-o,n,e,s);continue}if(s<=a){r+=t(wl.OVERLONG,r-1-o,n,e,s);continue}e.push(s)}}return e}function Nd(n,t=e2.current){t!=e2.current&&(CX.checkNormalize(),n=n.normalize(t));let e=[];for(let r=0;r>6|192),e.push(63&i|128);else if(55296==(64512&i)){r++;const o=n.charCodeAt(r);if(r>=n.length||56320!=(64512&o))throw new Error("invalid utf-8 string");const a=65536+((1023&i)<<10)+(1023&o);e.push(a>>18|240),e.push(a>>12&63|128),e.push(a>>6&63|128),e.push(63&a|128)}else e.push(i>>12|224),e.push(i>>6&63|128),e.push(63&i|128)}return xn(e)}function EC(n,t){return function AMe(n){return n.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))).join("")}(fL(n,t))}var EMe=function(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})};function kMe(n,t){return EMe(this,void 0,void 0,function*(){null==t&&(t={});const e={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(e.mode="cors",e.cache="no-cache",e.credentials="same-origin",e.redirect="follow",e.referrer="client"),null!=t.fetchOptions){const a=t.fetchOptions;a.mode&&(e.mode=a.mode),a.cache&&(e.cache=a.cache),a.credentials&&(e.credentials=a.credentials),a.redirect&&(e.redirect=a.redirect),a.referrer&&(e.referrer=a.referrer)}const r=yield fetch(n,e),i=yield r.arrayBuffer(),o={};return r.headers.forEach?r.headers.forEach((a,s)=>{o[s.toLowerCase()]=a}):r.headers.keys().forEach(a=>{o[a.toLowerCase()]=r.headers.get(a)}),{headers:o,statusCode:r.status,statusMessage:r.statusText,body:xn(new Uint8Array(i))}})}var RMe=function(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})};const Bu=new Ee("web/5.7.1");function xX(n){return new Promise(t=>{setTimeout(t,n)})}function vp(n,t){if(null==n)return null;if("string"==typeof n)return n;if(JN(n)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return EC(n)}catch{}return wn(n)}return n}function NMe(n){return Nd(n.replace(/%([0-9a-f][0-9a-f])/gi,(t,e)=>String.fromCharCode(parseInt(e,16))))}function FS(n,t,e){let i=null;if(null!=t){i=Nd(t);const o="string"==typeof n?{url:n}:bl(n);o.headers?0!==Object.keys(o.headers).filter(s=>"content-type"===s.toLowerCase()).length||(o.headers=bl(o.headers),o.headers["content-type"]="application/json"):o.headers={"content-type":"application/json"},n=o}return function LMe(n,t,e){const r="object"==typeof n&&null!=n.throttleLimit?n.throttleLimit:12;Bu.assertArgument(r>0&&r%1==0,"invalid connection throttle limit","connection.throttleLimit",r);const i="object"==typeof n?n.throttleCallback:null,o="object"==typeof n&&"number"==typeof n.throttleSlotInterval?n.throttleSlotInterval:100;Bu.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const a="object"==typeof n&&!!n.errorPassThrough,s={};let l=null;const c={method:"GET"};let u=!1,d=12e4;if("string"==typeof n)l=n;else if("object"==typeof n){if((null==n||null==n.url)&&Bu.throwArgumentError("missing URL","connection.url",n),l=n.url,"number"==typeof n.timeout&&n.timeout>0&&(d=n.timeout),n.headers)for(const b in n.headers)s[b.toLowerCase()]={key:b,value:String(n.headers[b])},["if-none-match","if-modified-since"].indexOf(b.toLowerCase())>=0&&(u=!0);c.allowGzip=!!n.allowGzip,null!=n.user&&null!=n.password&&("https:"!==l.substring(0,6)&&!0!==n.allowInsecureAuthentication&&Bu.throwError("basic authentication requires a secure https url",Ee.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:n.user,password:"[REDACTED]"}),s.authorization={key:"Authorization",value:"Basic "+bX(Nd(n.user+":"+n.password))}),null!=n.skipFetchSetup&&(c.skipFetchSetup=!!n.skipFetchSetup),null!=n.fetchOptions&&(c.fetchOptions=bl(n.fetchOptions))}const p=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),g=l?l.match(p):null;if(g)try{const b={statusCode:200,statusMessage:"OK",headers:{"content-type":g[1]||"text/plain"},body:g[2]?yX(g[3]):NMe(g[3])};let w=b.body;return e&&(w=e(b.body,b)),Promise.resolve(w)}catch(b){Bu.throwError("processing response error",Ee.errors.SERVER_ERROR,{body:vp(g[1],g[2]),error:b,requestBody:null,requestMethod:"GET",url:l})}t&&(c.method="POST",c.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)}));const v={};Object.keys(s).forEach(b=>{const w=s[b];v[w.key]=w.value}),c.headers=v;const _=function(){let b=null;return{promise:new Promise(function(P,N){d&&(b=setTimeout(()=>{null!=b&&(b=null,N(Bu.makeError("timeout",Ee.errors.TIMEOUT,{requestBody:vp(c.body,v["content-type"]),requestMethod:c.method,timeout:d,url:l})))},d))}),cancel:function(){null!=b&&(clearTimeout(b),b=null)}}}(),y=function(){return RMe(this,void 0,void 0,function*(){for(let b=0;b=300)&&(_.cancel(),Bu.throwError("bad response",Ee.errors.SERVER_ERROR,{status:w.statusCode,headers:w.headers,body:vp(M,w.headers?w.headers["content-type"]:null),requestBody:vp(c.body,v["content-type"]),requestMethod:c.method,url:l})),e)try{const P=yield e(M,w);return _.cancel(),P}catch(P){if(P.throttleRetry&&b{let s=null;if(null!=o)try{s=JSON.parse(EC(o))}catch(l){Bu.throwError("invalid JSON",Ee.errors.SERVER_ERROR,{body:o,error:l})}return e&&(s=e(s,a)),s})}function kC(n,t){return t||(t={}),null==(t=bl(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(e,r){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{a()&&r(new Error("timeout"))},t.timeout));const s=t.retryLimit;let l=0;!function c(){return n().then(function(u){if(void 0!==u)a()&&e(u);else if(t.oncePoll)t.oncePoll.once("poll",c);else if(t.onceBlock)t.onceBlock.once("block",c);else if(!o){if(l++,l>s)return void(a()&&r(new Error("retry limit reached")));let d=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));dt.ceiling&&(d=t.ceiling),setTimeout(c,d)}return null},function(u){a()&&r(u)})}()})}const RC="providers/5.7.2",NC=new Ee(RC);class $t{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),r=this.bigNumber.bind(this),i=this.blockTag.bind(this),o=this.data.bind(this),a=this.hash.bind(this),s=this.hex.bind(this),l=this.number.bind(this),c=this.type.bind(this);return t.transaction={hash:a,type:c,accessList:$t.allowNull(this.accessList.bind(this),null),blockHash:$t.allowNull(a,null),blockNumber:$t.allowNull(l,null),transactionIndex:$t.allowNull(l,null),confirmations:$t.allowNull(l,null),from:e,gasPrice:$t.allowNull(r),maxPriorityFeePerGas:$t.allowNull(r),maxFeePerGas:$t.allowNull(r),gasLimit:r,to:$t.allowNull(e,null),value:r,nonce:l,data:o,r:$t.allowNull(this.uint256),s:$t.allowNull(this.uint256),v:$t.allowNull(l),creates:$t.allowNull(e,null),raw:$t.allowNull(o)},t.transactionRequest={from:$t.allowNull(e),nonce:$t.allowNull(l),gasLimit:$t.allowNull(r),gasPrice:$t.allowNull(r),maxPriorityFeePerGas:$t.allowNull(r),maxFeePerGas:$t.allowNull(r),to:$t.allowNull(e),value:$t.allowNull(r),data:$t.allowNull(d=>this.data(d,!0)),type:$t.allowNull(l),accessList:$t.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:a,address:e,topics:$t.arrayOf(a),data:o,logIndex:l,blockHash:a},t.receipt={to:$t.allowNull(this.address,null),from:$t.allowNull(this.address,null),contractAddress:$t.allowNull(e,null),transactionIndex:l,root:$t.allowNull(s),gasUsed:r,logsBloom:$t.allowNull(o),blockHash:a,transactionHash:a,logs:$t.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:$t.allowNull(l,null),cumulativeGasUsed:r,effectiveGasPrice:$t.allowNull(r),status:$t.allowNull(l),type:c},t.block={hash:$t.allowNull(a),parentHash:a,number:l,timestamp:l,nonce:$t.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:$t.allowNull(e),extraData:o,transactions:$t.allowNull($t.arrayOf(a)),baseFeePerGas:$t.allowNull(r)},t.blockWithTransactions=bl(t.block),t.blockWithTransactions.transactions=$t.allowNull($t.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:$t.allowNull(i,void 0),toBlock:$t.allowNull(i,void 0),blockHash:$t.allowNull(a,void 0),address:$t.allowNull(e,void 0),topics:$t.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:$t.allowNull(l),blockHash:$t.allowNull(a),transactionIndex:l,removed:$t.allowNull(this.boolean.bind(this)),address:e,data:$t.allowFalsish(o,"0x"),topics:$t.arrayOf(a),transactionHash:a,logIndex:l},t}accessList(t){return Q0(t||[])}number(t){return"0x"===t?0:ft.from(t).toNumber()}type(t){return"0x"===t||null==t?0:ft.from(t).toNumber()}bigNumber(t){return ft.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(!e&&"0x"!==t.substring(0,2)&&(t="0x"+t),Ri(t))?t.toLowerCase():NC.throwArgumentError("invalid hash","value",t)}data(t,e){const r=this.hex(t,e);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+t);return r}address(t){return Fa(t)}callAddress(t){if(!Ri(t,32))return null;const e=Fa(fs(t,12));return"0x0000000000000000000000000000000000000000"===e?null:e}contractAddress(t){return function Jxe(n){let t=null;try{t=Fa(n.from)}catch{pp.throwArgumentError("missing from address","transaction",n)}return Fa(fs(La(DS([t,K0(xn(ft.from(n.nonce).toHexString()))])),12))}(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";switch(t){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return t}if("number"==typeof t||Ri(t))return SC(t);throw new Error("invalid blockTag")}hash(t,e){const r=this.hex(t,e);return 32!==P1(r)?NC.throwArgumentError("invalid hash","value",t):r}difficulty(t){if(null==t)return null;const e=ft.from(t);try{return e.toNumber()}catch{}return null}uint256(t){if(!Ri(t))throw new Error("invalid uint256");return mo(t,32)}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const r=null!=t._difficulty?t._difficulty:t.difficulty,i=$t.check(e,t);return i._difficulty=null==r?null:ft.from(r),i}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return $t.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&ft.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),(1===t.type||2===t.type)&&null==t.accessList&&(t.accessList=[]);const e=$t.check(this.formats.transaction,t);if(null!=t.chainId){let r=t.chainId;Ri(r)&&(r=ft.from(r).toNumber()),e.chainId=r}else{let r=t.networkId;null==r&&null==e.v&&(r=t.chainId),Ri(r)&&(r=ft.from(r).toNumber()),"number"!=typeof r&&null!=e.v&&(r=(e.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),e.chainId=r}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return function MMe(n){const t=xn(n);if(t[0]>127)return function xMe(n){const t=tL(n);9!==t.length&&6!==t.length&&gs.throwArgumentError("invalid raw transaction","rawTransaction",n);const e={nonce:ms(t[0]).toNumber(),gasPrice:ms(t[1]),gasLimit:ms(t[2]),to:dL(t[3]),value:ms(t[4]),data:t[5],chainId:0};if(6===t.length)return e;try{e.v=ft.from(t[6]).toNumber()}catch{return e}if(e.r=mo(t[7],32),e.s=mo(t[8],32),ft.from(e.r).isZero()&&ft.from(e.s).isZero())e.chainId=e.v,e.v=0;else{e.chainId=Math.floor((e.v-35)/2),e.chainId<0&&(e.chainId=0);let r=e.v-27;const i=t.slice(0,6);0!==e.chainId&&(i.push(wn(e.chainId)),i.push("0x"),i.push("0x"),r-=2*e.chainId+8);const o=La(DS(i));try{e.from=pX(o,{r:wn(e.r),s:wn(e.s),recoveryParam:r})}catch{}e.hash=La(n)}return e.type=null,e}(t);switch(t[0]){case 1:return function wMe(n){const t=tL(n.slice(1));8!==t.length&&11!==t.length&&gs.throwArgumentError("invalid component count for transaction type: 1","payload",wn(n));const e={type:1,chainId:ms(t[0]).toNumber(),nonce:ms(t[1]).toNumber(),gasPrice:ms(t[2]),gasLimit:ms(t[3]),to:dL(t[4]),value:ms(t[5]),data:t[6],accessList:Q0(t[7])};return 8===t.length||(e.hash=La(n),_X(e,t.slice(8),vX)),e}(t);case 2:return function CMe(n){const t=tL(n.slice(1));9!==t.length&&12!==t.length&&gs.throwArgumentError("invalid component count for transaction type: 2","payload",wn(n));const e=ms(t[2]),r=ms(t[3]),i={type:2,chainId:ms(t[0]).toNumber(),nonce:ms(t[1]).toNumber(),maxPriorityFeePerGas:e,maxFeePerGas:r,gasPrice:null,gasLimit:ms(t[4]),to:dL(t[5]),value:ms(t[6]),data:t[7],accessList:Q0(t[8])};return 9===t.length||(i.hash=La(n),_X(i,t.slice(9),mX)),i}(t)}return gs.throwError(`unsupported transaction type: ${t[0]}`,Ee.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}(t)}receiptLog(t){return $t.check(this.formats.receiptLog,t)}receipt(t){const e=$t.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const r=ft.from(e.root).toNumber();0===r||1===r?(null!=e.status&&e.status!==r&&NC.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=r,delete e.root):NC.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&NC.throwArgumentError("invalid root hash","value.root",e.root);return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map(e=>this.topics(e)):null!=t?this.hash(t,!0):null}filter(t){return $t.check(this.formats.filter,t)}filterLog(t){return $t.check(this.formats.filterLog,t)}static check(t,e){const r={};for(const i in t)try{const o=t[i](e[i]);void 0!==o&&(r[i]=o)}catch(o){throw o.checkKey=i,o.checkValue=e[i],o}return r}static allowNull(t,e){return function(r){return null==r?e:t(r)}}static allowFalsish(t,e){return function(r){return r?t(r):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const r=[];return e.forEach(function(i){r.push(t(i))}),r}}}let MX=!1;const LC=new Ee("abstract-provider/5.7.0");class zMe extends zxe{static isForkEvent(t){return!(!t||!t._isForkEvent)}}class gL{constructor(){LC.checkAbstract(new.target,gL),In(this,"_isProvider",!0)}getFeeData(){return function(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){const{block:t,gasPrice:e}=yield Na({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(a=>null)});let r=null,i=null,o=null;return t&&t.baseFeePerGas&&(r=t.baseFeePerGas,o=ft.from("1500000000"),i=t.baseFeePerGas.mul(2).add(o)),{lastBaseFeePerGas:r,maxFeePerGas:i,maxPriorityFeePerGas:o,gasPrice:e}})}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!(!t||!t._isProvider)}}class PX{constructor(t){In(this,"alphabet",t),In(this,"base",t.length),In(this,"_alphabetMap",{}),In(this,"_leader",t.charAt(0));for(let e=0;e0;)r.push(a%this.base),a=a/this.base|0}let i="";for(let o=0;0===e[o]&&o=0;--o)i+=this.alphabet[r[o]];return i}decode(t){if("string"!=typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r>=8;for(;o>0;)e.push(255&o),o>>=8}for(let r=0;t[r]===this._leader&&r0&&Array.isArray(s)?i(s,a-1):e.push(s)})};return i(n,t),e}function ZMe(n){return 1&n?~n>>1:n>>1}function TX(n,t){let e=Array(n);for(let r=0,i=-1;rt[a]):e}function AX(n,t,e){let r=Array(n).fill(void 0).map(()=>[]);for(let i=0;ir[a].push(o));return r}function QMe(n,t){let e=1+t(),r=t(),i=function JMe(n){let t=[];for(;;){let e=n();if(0==e)break;t.push(e)}return t}(t);return SX(AX(i.length,1+n,t).map((a,s)=>{const l=a[0],c=a.slice(1);return Array(i[s]).fill(void 0).map((u,d)=>{let p=d*r;return[l+d*e,c.map(g=>g+p)]})}))}function ePe(n,t){return AX(1+t(),1+n,t).map(i=>[i[0],i.slice(1)])}const $S=function nPe(){return function qMe(n){return function WMe(n){let t=0;return()=>n[t++]}(function GMe(n){let t=0;function e(){return n[t++]<<8|n[t++]}let r=e(),i=1,o=[0,1];for(let N=1;N>--l&1}const p=Math.pow(2,31),g=p>>>1,v=g>>1,_=p-1;let y=0;for(let N=0;N<31;N++)y=y<<1|u();let b=[],w=0,M=p;for(;;){let N=Math.floor(((y-w+1)*i-1)/M),k=0,z=r;for(;z-k>1;){let X=k+z>>>1;N>>1|u(),U=U<<1^g,W=(W^g)<<1|g|1;w=U,M=1+W-U}let P=r-4;return b.map(N=>{switch(N-P){case 3:return P+65792+(n[s++]<<16|n[s++]<<8|n[s++]);case 2:return P+256+(n[s++]<<8|n[s++]);case 1:return P+n[s++];default:return N-1}})}(n))}(yX("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}(),rPe=new Set(BS($S)),iPe=new Set(BS($S)),oPe=function KMe(n){let t=[];for(;;){let e=n();if(0==e)break;t.push(QMe(e,n))}for(;;){let e=n()-1;if(e<0)break;t.push(ePe(e,n))}return function jMe(n){const t={};for(let e=0;er-i);return function e(){let r=[];for(;;){let c=BS(n,t);if(0==c.length)break;r.push({set:new Set(c),node:e()})}r.sort((c,u)=>u.set.size-c.set.size);let i=n(),o=i%3;i=i/3|0;let a=!!(1&i);return i>>=1,{branches:r,valid:o,fe0f:a,save:1==i,check:2==i}}()}($S),DX=45,IX=95;function EX(n){return function DMe(n,t=e2.current){return fL(Nd(n,t))}(n)}function sPe(n){return n.filter(t=>65039!=t)}function kX(n){for(let t of n.split(".")){let e=EX(t);try{for(let r=e.lastIndexOf(IX)-1;r>=0;r--)if(e[r]!==IX)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every(r=>r<128)&&e[2]===DX&&e[3]===DX)throw new Error("invalid label extension")}catch(r){throw new Error(`Invalid label "${t}": ${r.message}`)}}return n}function dPe(n,t){var e;let i,o,r=aPe,a=[],s=n.length;for(t&&(t.length=0);s;){let l=n[--s];if(r=null===(e=r.branches.find(c=>c.set.has(l)))||void 0===e?void 0:e.node,!r)break;if(r.save)o=l;else if(r.check&&l===o)break;a.push(l),r.fe0f&&(a.push(65039),s>0&&65039==n[s-1]&&s--),r.valid&&(i=a.slice(),2==r.valid&&i.splice(1,1),t&&t.push(...n.slice(s).reverse()),n.length=s)}return i}const hPe=new Ee(OX),RX=new Uint8Array(32);function NX(n){if(0===n.length)throw new Error("invalid ENS name; empty component");return n}function US(n){const t=Nd(function lPe(n){return kX(function cPe(n,t){let e=EX(n).reverse(),r=[];for(;e.length;){let i=dPe(e);if(i){r.push(...t(i));continue}let o=e.pop();if(rPe.has(o)){r.push(o);continue}if(iPe.has(o))continue;let a=oPe[o];if(!a)throw new Error(`Disallowed codepoint: 0x${o.toString(16).toUpperCase()}`);r.push(...a)}return kX(function uPe(n){return n.normalize("NFC")}(String.fromCodePoint(...r)))}(n,sPe))}(n)),e=[];if(0===n.length)return e;let r=0;for(let i=0;i=t.length)throw new Error("invalid ENS name; empty component");return e.push(NX(t.slice(r))),e}function VS(n){"string"!=typeof n&&hPe.throwArgumentError("invalid ENS name; not a string","name",n);let t=RX;const e=US(n);for(;e.length;)t=La(Lu([t,La(e.pop())]));return wn(t)}function fPe(n){return wn(Lu(US(n).map(t=>{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e})))+"00"}RX.fill(0);const LX=new Ee("networks/5.7.1");function Bh(n){const t=function(e,r){null==r&&(r={});const i=[];if(e.InfuraProvider&&"-"!==r.infura)try{i.push(new e.InfuraProvider(n,r.infura))}catch{}if(e.EtherscanProvider&&"-"!==r.etherscan)try{i.push(new e.EtherscanProvider(n,r.etherscan))}catch{}if(e.AlchemyProvider&&"-"!==r.alchemy)try{i.push(new e.AlchemyProvider(n,r.alchemy))}catch{}if(e.PocketProvider&&"-"!==r.pocket){const o=["goerli","ropsten","rinkeby","sepolia"];try{const a=new e.PocketProvider(n,r.pocket);a.network&&-1===o.indexOf(a.network.name)&&i.push(a)}catch{}}if(e.CloudflareProvider&&"-"!==r.cloudflare)try{i.push(new e.CloudflareProvider(n))}catch{}if(e.AnkrProvider&&"-"!==r.ankr)try{const o=["ropsten"],a=new e.AnkrProvider(n,r.ankr);a.network&&-1===o.indexOf(a.network.name)&&i.push(a)}catch{}if(0===i.length)return null;if(e.FallbackProvider){let o=1;return null!=r.quorum?o=r.quorum:"homestead"===n&&(o=2),new e.FallbackProvider(i,o)}return i[0]};return t.renetwork=function(e){return Bh(e)},t}function zS(n,t){const e=function(r,i){return r.JsonRpcProvider?new r.JsonRpcProvider(n,t):null};return e.renetwork=function(r){return zS(n,r)},e}const FX={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Bh("homestead")},BX={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Bh("ropsten")},$X={chainId:63,name:"classicMordor",_defaultProvider:zS("https://www.ethercluster.com/mordor","classicMordor")},HS={unspecified:{chainId:0,name:"unspecified"},homestead:FX,mainnet:FX,morden:{chainId:2,name:"morden"},ropsten:BX,testnet:BX,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Bh("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Bh("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Bh("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Bh("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:zS("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:$X,classicTestnet:$X,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:zS("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Bh("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Bh("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function UX(n){return"0x"+kd().sha256().update(xn(n)).digest("hex")}new Ee("sha2/5.7.0");var yPe=De(988),VX=De.n(yPe),En=function(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})};const cr=new Ee(RC);function zX(n){return null==n?"null":(32!==P1(n)&&cr.throwArgumentError("invalid topic","topic",n),n.toLowerCase())}function HX(n){for(n=n.slice();n.length>0&&null==n[n.length-1];)n.pop();return n.map(t=>{if(Array.isArray(t)){const e={};t.forEach(i=>{e[zX(i)]=!0});const r=Object.keys(e);return r.sort(),r.join("|")}return zX(t)}).join("&")}function t2(n){if("string"==typeof n){if(32===P1(n=n.toLowerCase()))return"tx:"+n;if(-1===n.indexOf(":"))return n}else{if(Array.isArray(n))return"filter:*:"+HX(n);if(zMe.isForkEvent(n))throw cr.warn("not implemented"),new Error("not implemented");if(n&&"object"==typeof n)return"filter:"+(n.address||"*")+":"+HX(n.topics||[])}throw new Error("invalid event - "+n)}function FC(){return(new Date).getTime()}function jX(n){return new Promise(t=>{setTimeout(t,n)})}const wPe=["block","network","pending","poll"];class xPe{constructor(t,e,r){In(this,"tag",t),In(this,"listener",e),In(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const e=t[1],r=function CPe(n){return""===n?[]:n.split(/&/g).map(t=>{if(""===t)return[];const e=t.split("|").map(r=>"null"===r?null:r);return 1===e.length?e[0]:e})}(t[2]),i={};return r.length>0&&(i.topics=r),e&&"*"!==e&&(i.address=e),i}pollable(){return this.tag.indexOf(":")>=0||wPe.indexOf(this.tag)>=0}}const MPe={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function vL(n){return mo(ft.from(n).toHexString(),32)}function GX(n){return mL.encode(Lu([n,fs(UX(UX(n)),0,4)]))}const WX=new RegExp("^(ipfs)://(.*)$","i"),qX=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),WX,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function jS(n,t){try{return EC(BC(n,t))}catch{}return null}function BC(n,t){if("0x"===n)return null;const e=ft.from(fs(n,t,t+32)).toNumber(),r=ft.from(fs(n,e,e+32)).toNumber();return fs(n,e+32,e+32+r)}function _L(n){return n.match(/^ipfs:\/\/ipfs\//i)?n=n.substring(12):n.match(/^ipfs:\/\//i)?n=n.substring(7):cr.throwArgumentError("unsupported IPFS format","link",n),`https://gateway.ipfs.io/ipfs/${n}`}function ZX(n){const t=xn(n);if(t.length>32)throw new Error("internal; should not happen");const e=new Uint8Array(32);return e.set(t,32-t.length),e}function PPe(n){if(n.length%32==0)return n;const t=new Uint8Array(32*Math.ceil(n.length/32));return t.set(n),t}function YX(n){const t=[];let e=0;for(let r=0;rft.from(t).eq(1)).catch(t=>{if(t.code===Ee.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t})),this._supportsEip2544}_fetch(t,e){return En(this,void 0,void 0,function*(){const r={to:this.address,ccipReadEnabled:!0,data:yl([t,VS(this.name),e||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,r.data=yl(["0x9061b923",YX([fPe(this.name),r.data])]));try{let o=yield this.provider.call(r);return xn(o).length%32==4&&cr.throwError("resolver threw error",Ee.errors.CALL_EXCEPTION,{transaction:r,data:o}),i&&(o=BC(o,0)),o}catch(o){if(o.code===Ee.errors.CALL_EXCEPTION)return null;throw o}})}_fetchBytes(t,e){return En(this,void 0,void 0,function*(){const r=yield this._fetch(t,e);return null!=r?BC(r,0):null})}_getAddress(t,e){const r=MPe[String(t)];if(null==r&&cr.throwError(`unsupported coin type: ${t}`,Ee.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===r.ilk)return this.provider.formatter.address(e);const i=xn(e);if(null!=r.p2pkh){const o=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(o){const a=parseInt(o[1],16);if(o[2].length===2*a&&a>=1&&a<=75)return GX(Lu([[r.p2pkh],"0x"+o[2]]))}}if(null!=r.p2sh){const o=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){const a=parseInt(o[1],16);if(o[2].length===2*a&&a>=1&&a<=75)return GX(Lu([[r.p2sh],"0x"+o[2]]))}}if(null!=r.prefix){const o=i[1];let a=i[0];if(0===a?20!==o&&32!==o&&(a=-1):a=-1,a>=0&&i.length===2+o&&o>=1&&o<=75){const s=VX().toWords(i.slice(2));return s.unshift(a),VX().encode(r.prefix,s)}}return null}getAddress(t){return En(this,void 0,void 0,function*(){if(null==t&&(t=60),60===t)try{const i=yield this._fetch("0x3b3b57de");return"0x"===i||"0x0000000000000000000000000000000000000000000000000000000000000000"===i?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===Ee.errors.CALL_EXCEPTION)return null;throw i}const e=yield this._fetchBytes("0xf1cb7e06",vL(t));if(null==e||"0x"===e)return null;const r=this._getAddress(t,e);return null==r&&cr.throwError("invalid or unsupported coin data",Ee.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),r})}getAvatar(){return En(this,void 0,void 0,function*(){const t=[{type:"name",content:this.name}];try{const e=yield this.getText("avatar");if(null==e)return null;for(let r=0;ra[l])}return cr.throwError("invalid or unsupported content hash data",Ee.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})})}getText(t){return En(this,void 0,void 0,function*(){let e=Nd(t);e=Lu([vL(64),vL(e.length),e]),e.length%32!=0&&(e=Lu([e,mo("0x",32-t.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",wn(e));return null==r||"0x"===r?null:EC(r)})}}let yL=null,OPe=1;class KX extends gL{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),In(this,"anyNetwork","any"===t),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch(e=>{}),this._ready().catch(e=>{});else{const e=AC(new.target,"getNetwork")(t);e?(In(this,"_network",e),this.emit("network",e,null)):cr.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return En(this,void 0,void 0,function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch{}null==t&&(t=yield this.detectNetwork()),t||cr.throwError("no network detected",Ee.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:In(this,"_network",t),this.emit("network",t,null))}return this._network})}get ready(){return kC(()=>this._ready().then(t=>t,t=>{if(t.code!==Ee.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))}static getFormatter(){return null==yL&&(yL=new $t),yL}static getNetwork(t){return function mPe(n){if(null==n)return null;if("number"==typeof n){for(const r in HS){const i=HS[r];if(i.chainId===n)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:n,name:"unknown"}}if("string"==typeof n){const r=HS[n];return null==r?null:{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress,_defaultProvider:r._defaultProvider||null}}const t=HS[n.name];if(!t)return"number"!=typeof n.chainId&&LX.throwArgumentError("invalid network chainId","network",n),n;0!==n.chainId&&n.chainId!==t.chainId&&LX.throwArgumentError("network chainId mismatch","network",n);let e=n._defaultProvider||null;return null==e&&t._defaultProvider&&(e=function gPe(n){return n&&"function"==typeof n.renetwork}(t._defaultProvider)?t._defaultProvider.renetwork(n):t._defaultProvider),{name:n.name,chainId:t.chainId,ensAddress:n.ensAddress||t.ensAddress||null,_defaultProvider:e}}(t??"homestead")}ccipReadFetch(t,e,r){return En(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;const i=t.to.toLowerCase(),o=e.toLowerCase(),a=[];for(let s=0;s=0?null:JSON.stringify({data:o,sender:i}),d=yield FS({url:c,errorPassThrough:!0},u,(g,v)=>(g.status=v.statusCode,g));if(d.data)return d.data;const p=d.message||"unknown error";if(d.status>=400&&d.status<500)return cr.throwError(`response not found during CCIP fetch: ${p}`,Ee.errors.SERVER_ERROR,{url:l,errorMessage:p});a.push(p)}return cr.throwError(`error encountered during CCIP fetch: ${a.map(s=>JSON.stringify(s)).join(", ")}`,Ee.errors.SERVER_ERROR,{urls:r,errorMessages:a})})}_getInternalBlockNumber(t){return En(this,void 0,void 0,function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const o=yield i;if(FC()-o.respTime<=t)return o.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const e=FC(),r=Na({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(i=>null,i=>i)}).then(({blockNumber:i,networkError:o})=>{if(o)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),o;const a=FC();return(i=ft.from(i).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return En(this,void 0,void 0,function*(){const t=OPe++,e=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(i){return void this.emit("error",i)}if(this._setFastBlockNumber(r),this.emit("poll",t,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)cr.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",cr.makeError("network block skew detected",Ee.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let i=this._emitted.block+1;i<=r;i++)this.emit("block",i);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(i=>{if("block"===i)return;const o=this._emitted[i];"pending"!==o&&r-o>12&&delete this._emitted[i]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(i=>{switch(i.type){case"tx":{const o=i.hash;let a=this.getTransactionReceipt(o).then(s=>(!s||null==s.blockNumber||(this._emitted["t:"+o]=s.blockNumber,this.emit(o,s)),null)).catch(s=>{this.emit("error",s)});e.push(a);break}case"filter":if(!i._inflight){i._inflight=!0,-2===i._lastBlockNumber&&(i._lastBlockNumber=r-1);const o=i.filter;o.fromBlock=i._lastBlockNumber+1,o.toBlock=r;const a=o.toBlock-this._maxFilterBlockRange;a>o.fromBlock&&(o.fromBlock=a),o.fromBlock<0&&(o.fromBlock=0);const s=this.getLogs(o).then(l=>{i._inflight=!1,0!==l.length&&l.forEach(c=>{c.blockNumber>i._lastBlockNumber&&(i._lastBlockNumber=c.blockNumber),this._emitted["b:"+c.blockHash]=c.blockNumber,this._emitted["t:"+c.transactionHash]=c.blockNumber,this.emit(o,c)})}).catch(l=>{this.emit("error",l),i._inflight=!1});e.push(s)}}}),this._lastBlockNumber=r,Promise.all(e).then(()=>{this.emit("didPoll",t)}).catch(i=>{this.emit("error",i)})}else this.emit("didPoll",t)})}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return En(this,void 0,void 0,function*(){return cr.throwError("provider does not support network detection",Ee.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return En(this,void 0,void 0,function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield jX(0),this._network;const r=cr.makeError("underlying network changed",Ee.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",r),r}return t})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(t=>{this._setFastBlockNumber(t)},t=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const t=FC();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(t){null!=this._fastBlockNumber&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,r){return En(this,void 0,void 0,function*(){return this._waitForTransaction(t,e??1,r||0,null)})}_waitForTransaction(t,e,r,i){return En(this,void 0,void 0,function*(){const o=yield this.getTransactionReceipt(t);return(o?o.confirmations:0)>=e?o:new Promise((a,s)=>{const l=[];let c=!1;const u=function(){return!!c||(c=!0,l.forEach(p=>{p()}),!1)},d=p=>{p.confirmations{this.removeListener(t,d)}),i){let p=i.startBlock,g=null;const v=_=>En(this,void 0,void 0,function*(){c||(yield jX(1e3),this.getTransactionCount(i.from).then(y=>En(this,void 0,void 0,function*(){if(!c){if(y<=i.nonce)p=_;else{{const b=yield this.getTransaction(t);if(b&&null!=b.blockNumber)return}for(null==g&&(g=p-3,g{c||this.once("block",v)}))});if(c)return;this.once("block",v),l.push(()=>{this.removeListener("block",v)})}if("number"==typeof r&&r>0){const p=setTimeout(()=>{u()||s(cr.makeError("timeout exceeded",Ee.errors.TIMEOUT,{timeout:r}))},r);p.unref&&p.unref(),l.push(()=>{clearTimeout(p)})}})})}getBlockNumber(){return En(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return En(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return ft.from(t)}catch(e){return cr.throwError("bad result from backend",Ee.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}})}getBalance(t,e){return En(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Na({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),i=yield this.perform("getBalance",r);try{return ft.from(i)}catch(o){return cr.throwError("bad result from backend",Ee.errors.SERVER_ERROR,{method:"getBalance",params:r,result:i,error:o})}})}getTransactionCount(t,e){return En(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Na({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),i=yield this.perform("getTransactionCount",r);try{return ft.from(i).toNumber()}catch(o){return cr.throwError("bad result from backend",Ee.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:i,error:o})}})}getCode(t,e){return En(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Na({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),i=yield this.perform("getCode",r);try{return wn(i)}catch(o){return cr.throwError("bad result from backend",Ee.errors.SERVER_ERROR,{method:"getCode",params:r,result:i,error:o})}})}getStorageAt(t,e,r){return En(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield Na({address:this._getAddress(t),blockTag:this._getBlockTag(r),position:Promise.resolve(e).then(a=>SC(a))}),o=yield this.perform("getStorageAt",i);try{return wn(o)}catch(a){return cr.throwError("bad result from backend",Ee.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:a})}})}_wrapTransaction(t,e,r){if(null!=e&&32!==P1(e))throw new Error("invalid response - sendTransaction");const i=t;return null!=e&&t.hash!==e&&cr.throwError("Transaction hash mismatch from Provider.sendTransaction.",Ee.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),i.wait=(o,a)=>En(this,void 0,void 0,function*(){let s;null==o&&(o=1),null==a&&(a=0),0!==o&&null!=r&&(s={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:r});const l=yield this._waitForTransaction(t.hash,o,a,s);return null==l&&0===o?null:(this._emitted["t:"+t.hash]=l.blockNumber,0===l.status&&cr.throwError("transaction failed",Ee.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:l}),l)}),i}sendTransaction(t){return En(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then(o=>wn(o)),r=this.formatter.transaction(t);null==r.confirmations&&(r.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const o=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(r,o,i)}catch(o){throw o.transaction=r,o.transactionHash=r.hash,o}})}_getTransactionRequest(t){return En(this,void 0,void 0,function*(){const e=yield t,r={};return["from","to"].forEach(i=>{null!=e[i]&&(r[i]=Promise.resolve(e[i]).then(o=>o?this._getAddress(o):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{null!=e[i]&&(r[i]=Promise.resolve(e[i]).then(o=>o?ft.from(o):null))}),["type"].forEach(i=>{null!=e[i]&&(r[i]=Promise.resolve(e[i]).then(o=>o??null))}),e.accessList&&(r.accessList=this.formatter.accessList(e.accessList)),["data"].forEach(i=>{null!=e[i]&&(r[i]=Promise.resolve(e[i]).then(o=>o?wn(o):null))}),this.formatter.transactionRequest(yield Na(r))})}_getFilter(t){return En(this,void 0,void 0,function*(){t=yield t;const e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach(r=>{null!=t[r]&&(e[r]=t[r])}),["fromBlock","toBlock"].forEach(r=>{null!=t[r]&&(e[r]=this._getBlockTag(t[r]))}),this.formatter.filter(yield Na(e))})}_call(t,e,r){return En(this,void 0,void 0,function*(){r>=10&&cr.throwError("CCIP read exceeded maximum redirections",Ee.errors.SERVER_ERROR,{redirects:r,transaction:t});const i=t.to,o=yield this.perform("call",{transaction:t,blockTag:e});if(r>=0&&"latest"===e&&null!=i&&"0x556f1830"===o.substring(0,10)&&P1(o)%32==4)try{const a=fs(o,4),s=fs(a,0,32);ft.from(s).eq(i)||cr.throwError("CCIP Read sender did not match",Ee.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:o});const l=[],c=ft.from(fs(a,32,64)).toNumber(),u=ft.from(fs(a,c,c+32)).toNumber(),d=fs(a,c+32);for(let b=0;bEn(this,void 0,void 0,function*(){const o=yield this.perform("getBlock",i);if(null==o)return null!=i.blockHash&&null==this._emitted["b:"+i.blockHash]||null!=i.blockTag&&r>this._emitted.block?null:void 0;if(e){let a=null;for(let l=0;lthis._wrapTransaction(l)),s}return this.formatter.block(o)}),{oncePoll:this})})}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return En(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return kC(()=>En(this,void 0,void 0,function*(){const r=yield this.perform("getTransaction",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;const i=this.formatter.transactionResponse(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;a<=0&&(a=1),i.confirmations=a}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(t){return En(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return kC(()=>En(this,void 0,void 0,function*(){const r=yield this.perform("getTransactionReceipt",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;if(null==r.blockHash)return;const i=this.formatter.receipt(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;a<=0&&(a=1),i.confirmations=a}return i}),{oncePoll:this})})}getLogs(t){return En(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Na({filter:this._getFilter(t)}),r=yield this.perform("getLogs",e);return r.forEach(i=>{null==i.removed&&(i.removed=!1)}),$t.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return En(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(t){return En(this,void 0,void 0,function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&cr.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)})}getResolver(t){return En(this,void 0,void 0,function*(){let e=t;for(;;){if(""===e||"."===e||"eth"!==t&&"eth"===e)return null;const r=yield this._getResolver(e,"getResolver");if(null!=r){const i=new XX(this,r,t);return e===t||(yield i.supportsWildcard())?i:null}e=e.split(".").slice(1).join(".")}})}_getResolver(t,e){return En(this,void 0,void 0,function*(){null==e&&(e="ENS");const r=yield this.getNetwork();r.ensAddress||cr.throwError("network does not support ENS",Ee.errors.UNSUPPORTED_OPERATION,{operation:e,network:r.name});try{const i=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+VS(t).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(t){return En(this,void 0,void 0,function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(r){if(Ri(t))throw r}"string"!=typeof t&&cr.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null})}lookupAddress(t){return En(this,void 0,void 0,function*(){t=yield t;const e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(e,"lookupAddress");if(null==r)return null;const i=jS(yield this.call({to:r,data:"0x691f3431"+VS(e).substring(2)}),0);return(yield this.resolveName(i))!=t?null:i})}getAvatar(t){return En(this,void 0,void 0,function*(){let e=null;if(Ri(t)){const o=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",a=yield this._getResolver(o,"getAvatar");if(!a)return null;e=new XX(this,a,o);try{const s=yield e.getAvatar();if(s)return s.url}catch(s){if(s.code!==Ee.errors.CALL_EXCEPTION)throw s}try{const s=jS(yield this.call({to:a,data:"0x691f3431"+VS(o).substring(2)}),0);e=yield this.getResolver(s)}catch(s){if(s.code!==Ee.errors.CALL_EXCEPTION)throw s;return null}}else if(e=yield this.getResolver(t),!e)return null;const r=yield e.getAvatar();return null==r?null:r.url})}perform(t,e){return cr.throwError(t+" not implemented",Ee.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(t){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(t,e,r){const i=new xPe(t2(t),e,r);return this._events.push(i),this._startEvent(i),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let r=!1,i=[],o=t2(t);return this._events=this._events.filter(a=>a.tag!==o||(setTimeout(()=>{a.listener.apply(this,e)},0),r=!0,!a.once||(i.push(a),!1))),i.forEach(a=>{this._stopEvent(a)}),r}listenerCount(t){if(!t)return this._events.length;let e=t2(t);return this._events.filter(r=>r.tag===e).length}listeners(t){if(null==t)return this._events.map(r=>r.listener);let e=t2(t);return this._events.filter(r=>r.tag===e).map(r=>r.listener)}off(t,e){if(null==e)return this.removeAllListeners(t);const r=[];let i=!1,o=t2(t);return this._events=this._events.filter(a=>!(a.tag===o&&a.listener==e&&!i&&(i=!0,r.push(a),1))),r.forEach(a=>{this._stopEvent(a)}),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const r=t2(t);this._events=this._events.filter(i=>i.tag!==r||(e.push(i),!1))}return e.forEach(r=>{this._stopEvent(r)}),this}}var GS=function(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})};const _p=new Ee(RC);function JX(n){const t={};for(let e in n){if(null==n[e])continue;let r=n[e];"type"===e&&0===r||(r={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[e]?SC(wn(r)):"accessList"===e?"["+Q0(r).map(i=>`{address:"${i.address}",storageKeys:["${i.storageKeys.join('","')}"]}`).join(",")+"]":wn(r),t[e]=r)}return t}function SPe(n){if(0==n.status&&("No records found"===n.message||"No transactions found"===n.message))return n.result;if(1!=n.status||"string"!=typeof n.message||!n.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(n),(n.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return n.result}function QX(n){if(n&&0==n.status&&"NOTOK"==n.message&&(n.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(n),t.throttleRetry=!0,t}if("2.0"!=n.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(n),t}if(n.error){const t=new Error(n.error.message||"unknown error");throw n.error.code&&(t.code=n.error.code),n.error.data&&(t.data=n.error.data),t}return n.result}function eK(n){if("pending"===n)throw new Error("pending not supported");return"latest"===n?n:parseInt(n.substring(2),16)}function bL(n,t,e){if("call"===n&&t.code===Ee.errors.SERVER_ERROR){const i=t.error;if(i&&(i.message.match(/reverted/i)||i.message.match(/VM execution error/i))){let o=i.data;if(o&&(o="0x"+o.replace(/^.*0x/i,"")),Ri(o))return o;_p.throwError("missing revert data in call exception",Ee.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let r=t.message;throw t.code===Ee.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?r=t.error.message:"string"==typeof t.body?r=t.body:"string"==typeof t.responseText&&(r=t.responseText)),r=(r||"").toLowerCase(),r.match(/insufficient funds/)&&_p.throwError("insufficient funds for intrinsic transaction cost",Ee.errors.INSUFFICIENT_FUNDS,{error:t,method:n,transaction:e}),r.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&_p.throwError("nonce has already been used",Ee.errors.NONCE_EXPIRED,{error:t,method:n,transaction:e}),r.match(/another transaction with same nonce/)&&_p.throwError("replacement fee too low",Ee.errors.REPLACEMENT_UNDERPRICED,{error:t,method:n,transaction:e}),r.match(/execution failed due to an exception|execution reverted/)&&_p.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ee.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:n,transaction:e}),t}class TPe extends KX{constructor(t,e){super(t),In(this,"baseUrl",this.getBaseUrl()),In(this,"apiKey",e||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return _p.throwArgumentError("unsupported network","network",this.network.name)}getUrl(t,e){const r=Object.keys(e).reduce((o,a)=>{const s=e[a];return null!=s&&(o+=`&${a}=${s}`),o},"");return`${this.baseUrl}/api?module=${t}${r}${this.apiKey?`&apikey=${this.apiKey}`:""}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(t,e){return e.module=t,e.apikey=this.apiKey,e}fetch(t,e,r){return GS(this,void 0,void 0,function*(){const i=r?this.getPostUrl():this.getUrl(t,e),o=r?this.getPostData(t,e):null,a="proxy"===t?QX:SPe;this.emit("debug",{action:"request",request:i,provider:this});const s={url:i,throttleSlotInterval:1e3,throttleCallback:(u,d)=>(this.isCommunityResource()&&function $Me(){MX||(MX=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}(),Promise.resolve(!0))};let l=null;o&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},l=Object.keys(o).map(u=>`${u}=${o[u]}`).join("&"));const c=yield FS(s,l,a||QX);return this.emit("debug",{action:"response",request:i,response:fp(c),provider:this}),c})}detectNetwork(){return GS(this,void 0,void 0,function*(){return this.network})}perform(t,e){const r=Object.create(null,{perform:{get:()=>super.perform}});return GS(this,void 0,void 0,function*(){switch(t){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch(i=>bL("sendTransaction",i,e.signedTransaction));case"getBlock":if(e.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.transactionHash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const i=JX(e.transaction);i.module="proxy",i.action="eth_call";try{return yield this.fetch("proxy",i,!0)}catch(o){return bL("call",o,e.transaction)}}case"estimateGas":{const i=JX(e.transaction);i.module="proxy",i.action="eth_estimateGas";try{return yield this.fetch("proxy",i,!0)}catch(o){return bL("estimateGas",o,e.transaction)}}case"getLogs":{const i={action:"getLogs"};if(e.filter.fromBlock&&(i.fromBlock=eK(e.filter.fromBlock)),e.filter.toBlock&&(i.toBlock=eK(e.filter.toBlock)),e.filter.address&&(i.address=e.filter.address),e.filter.topics&&e.filter.topics.length>0&&(e.filter.topics.length>1&&_p.throwError("unsupported topic count",Ee.errors.UNSUPPORTED_OPERATION,{topics:e.filter.topics}),1===e.filter.topics.length)){const s=e.filter.topics[0];("string"!=typeof s||66!==s.length)&&_p.throwError("unsupported topic format",Ee.errors.UNSUPPORTED_OPERATION,{topic0:s}),i.topic0=s}const o=yield this.fetch("logs",i);let a={};for(let s=0;s{["contractAddress","to"].forEach(function(l){""==a[l]&&delete a[l]}),null==a.creates&&null!=a.contractAddress&&(a.creates=a.contractAddress);const s=this.formatter.transactionResponse(a);return a.timeStamp&&(s.timestamp=parseInt(a.timeStamp)),s})})}isCommunityResource(){return null==this.apiKey}}let $h=(()=>{class n{constructor(){this.rootUrl=""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),n2=(()=>{class n{constructor(e,r){this.config=e,this.http=r,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}}return n.\u0275fac=function(e){return new(e||n)(Pe($h),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const DPe=new class APe{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class CL{constructor(t,e,r,i,o){this.name=t,this.value=e,this.options=r,this.options=r||{},null==this.options.style&&(this.options.style=i),null==this.options.explode&&(this.options.explode=o)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(r=>this.serializeValue(r).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const r=[];for(const i of Object.keys(t)){let o=t[i];null!=o&&(o=this.serializeValue(o).split(e).join(encodeURIComponent(e)),this.options.explode?r.push(`${i}=${o}`):(r.push(i),r.push(o)))}return r.join(e)}return String(t)}}class IPe extends CL{constructor(t,e,r){super(t,e,r,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let r="label"===this.options.style?".":"",i=this.options.explode?""===r?",":r:",",o=!1;return"matrix"===this.options.style&&(r=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(r=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),o=!0):(e=this.serializeValue(e,";"),o=!0))),e=r+(o?e:this.serializeValue(e,i)),(t=t.replace(`{${this.name}}`,e)).replace(`{${r}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var r="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(r=(r=r.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class EPe extends CL{constructor(t,e,r){super(t,e,r,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const r=this.value[e];null!=r&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(r)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const r=this.value[e];null!=r&&(t=t.append(e,this.serializeValue(r)))}else{const e=[];for(const r of Object.keys(this.value)){const i=this.value[r];null!=i&&(e.push(r),e.push(i))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class kPe extends CL{constructor(t,e,r){super(t,e,r,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class Ot{constructor(t,e,r){this.rootUrl=t,this.operationPath=e,this.method=r,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,r){this._path.set(t,new IPe(t,e,r||{}))}query(t,e,r){this._query.set(t,new EPe(t,e,r||{}))}header(t,e,r){this._header.set(t,new kPe(t,e,r||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const r=[];for(const i of Object.keys(t)){let o=t[i];o instanceof Array||(o=[o]);for(const a of o){const s=this.formDataValue(a);null!==s&&r.push([i,s])}}this._bodyContent=r.map(i=>`${encodeURIComponent(i[0])}=${encodeURIComponent(i[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const r=new FormData;if(null!=t)for(const i of Object.keys(t)){const o=t[i];if(o instanceof Array)for(const a of o){const s=this.formDataValue(a);null!==s&&r.append(i,s)}else{const a=this.formDataValue(o);null!==a&&r.set(i,a)}}this._bodyContent=r}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const r=this.rootUrl+e;let i=new Sc({encoder:DPe});for(const a of this._query.values())i=a.append(i);let o=new va;t.accept&&(o=o.append("Accept",t.accept));for(const a of this._header.values())o=a.append(o);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(o=o.set("Content-Type",this._bodyContentType)),new mh(this.method.toUpperCase(),r,this._bodyContent,{params:i,headers:o,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let RPe=(()=>{class n extends n2{constructor(e,r){super(e,r)}appControllerGetStatus$Response(e,r){const i=new Ot(this.rootUrl,n.AppControllerGetStatusPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}appControllerGetStatus(e,r){return this.appControllerGetStatus$Response(e,r).pipe(R(i=>i.body))}}return n.AppControllerGetStatusPath="/",n.\u0275fac=function(e){return new(e||n)(Pe($h),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),NPe=(()=>{class n extends n2{constructor(e,r){super(e,r)}parametersControllerUpdateAll$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerUpdateAll(e,r){return this.parametersControllerUpdateAll$Response(e,r).pipe(R(i=>i.body))}parametersControllerRemoveAll$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerRemoveAll(e,r){return this.parametersControllerRemoveAll$Response(e,r).pipe(R(i=>i.body))}parametersControllerGetAllParameters$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerGetAllParametersPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerGetAllParameters(e,r){return this.parametersControllerGetAllParameters$Response(e,r).pipe(R(i=>i.body))}parametersControllerGetSbPositiveAdjustmentRate$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerGetSbPositiveAdjustmentRatePath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerGetSbPositiveAdjustmentRate(e,r){return this.parametersControllerGetSbPositiveAdjustmentRate$Response(e,r).pipe(R(i=>i.body))}parametersControllerGetSbPositiveAdjustmentRate_1$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerGetSbPositiveAdjustmentRate_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerGetSbPositiveAdjustmentRate_1(e,r){return this.parametersControllerGetSbPositiveAdjustmentRate_1$Response(e,r).pipe(R(i=>i.body))}parametersControllerGetSbNegativeAdjustmentRate$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerGetSbNegativeAdjustmentRatePath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerGetSbNegativeAdjustmentRate(e,r){return this.parametersControllerGetSbNegativeAdjustmentRate$Response(e,r).pipe(R(i=>i.body))}parametersControllerGetSbNegativeAdjustmentRate_1$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerGetSbNegativeAdjustmentRate_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerGetSbNegativeAdjustmentRate_1(e,r){return this.parametersControllerGetSbNegativeAdjustmentRate_1$Response(e,r).pipe(R(i=>i.body))}parametersControllerGetSbPositiveAdjustmentThreshold$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerGetSbPositiveAdjustmentThresholdPath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerGetSbPositiveAdjustmentThreshold(e,r){return this.parametersControllerGetSbPositiveAdjustmentThreshold$Response(e,r).pipe(R(i=>i.body))}parametersControllerGetSbPositiveAdjustmentThreshold_1$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerGetSbPositiveAdjustmentThreshold_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerGetSbPositiveAdjustmentThreshold_1(e,r){return this.parametersControllerGetSbPositiveAdjustmentThreshold_1$Response(e,r).pipe(R(i=>i.body))}parametersControllerGetSbNegativeAdjustmentThreshold$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerGetSbNegativeAdjustmentThresholdPath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerGetSbNegativeAdjustmentThreshold(e,r){return this.parametersControllerGetSbNegativeAdjustmentThreshold$Response(e,r).pipe(R(i=>i.body))}parametersControllerGetSbNegativeAdjustmentThreshold_1$Response(e,r){const i=new Ot(this.rootUrl,n.ParametersControllerGetSbNegativeAdjustmentThreshold_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}parametersControllerGetSbNegativeAdjustmentThreshold_1(e,r){return this.parametersControllerGetSbNegativeAdjustmentThreshold_1$Response(e,r).pipe(R(i=>i.body))}}return n.ParametersControllerUpdateAllPath="/dypos/parameters/update-all",n.ParametersControllerRemoveAllPath="/dypos/parameters/remove-all",n.ParametersControllerGetAllParametersPath="/dypos/parameters",n.ParametersControllerGetSbPositiveAdjustmentRatePath="/dypos/parameters/sb-positive-adjustment-rate",n.ParametersControllerGetSbPositiveAdjustmentRate_1Path="/dypos/parameters/sb-positive-adjustment-rate/{units}",n.ParametersControllerGetSbNegativeAdjustmentRatePath="/dypos/parameters/sb-negative-adjustment-rate",n.ParametersControllerGetSbNegativeAdjustmentRate_1Path="/dypos/parameters/sb-negative-adjustment-rate/{units}",n.ParametersControllerGetSbPositiveAdjustmentThresholdPath="/dypos/parameters/sb-positive-adjustment-threshold",n.ParametersControllerGetSbPositiveAdjustmentThreshold_1Path="/dypos/parameters/sb-positive-adjustment-threshold/{units}",n.ParametersControllerGetSbNegativeAdjustmentThresholdPath="/dypos/parameters/sb-negative-adjustment-threshold",n.ParametersControllerGetSbNegativeAdjustmentThreshold_1Path="/dypos/parameters/sb-negative-adjustment-threshold/{units}",n.\u0275fac=function(e){return new(e||n)(Pe($h),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LPe=(()=>{class n extends n2{constructor(e,r){super(e,r)}networkStatsControllerUpdateAll$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerUpdateAll(e,r){return this.networkStatsControllerUpdateAll$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerRemoveAll$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerRemoveAll(e,r){return this.networkStatsControllerRemoveAll$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetAllNetworkStats$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetAllNetworkStatsPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetAllNetworkStats(e,r){return this.networkStatsControllerGetAllNetworkStats$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetCirculatingSupply$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetCirculatingSupplyPath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetCirculatingSupply(e,r){return this.networkStatsControllerGetCirculatingSupply$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetCirculatingSupply_1$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetCirculatingSupply_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetCirculatingSupply_1(e,r){return this.networkStatsControllerGetCirculatingSupply_1$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetTeamSupply$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetTeamSupplyPath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetTeamSupply(e,r){return this.networkStatsControllerGetTeamSupply$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetTeamSupply_1$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetTeamSupply_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetTeamSupply_1(e,r){return this.networkStatsControllerGetTeamSupply_1$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetEcosystemSupply$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetEcosystemSupplyPath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetEcosystemSupply(e,r){return this.networkStatsControllerGetEcosystemSupply$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetEcosystemSupply_1$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetEcosystemSupply_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetEcosystemSupply_1(e,r){return this.networkStatsControllerGetEcosystemSupply_1$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetSalesSupply$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetSalesSupplyPath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetSalesSupply(e,r){return this.networkStatsControllerGetSalesSupply$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetSalesSupply_1$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetSalesSupply_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetSalesSupply_1(e,r){return this.networkStatsControllerGetSalesSupply_1$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetRewardsSupply$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetRewardsSupplyPath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetRewardsSupply(e,r){return this.networkStatsControllerGetRewardsSupply$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetRewardsSupply_1$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetRewardsSupply_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetRewardsSupply_1(e,r){return this.networkStatsControllerGetRewardsSupply_1$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetInflationaryRewardsSupply$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetInflationaryRewardsSupplyPath,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetInflationaryRewardsSupply(e,r){return this.networkStatsControllerGetInflationaryRewardsSupply$Response(e,r).pipe(R(i=>i.body))}networkStatsControllerGetInflationaryRewardsSupply_1$Response(e,r){const i=new Ot(this.rootUrl,n.NetworkStatsControllerGetInflationaryRewardsSupply_1Path,"get");return e&&i.path("units",e.units,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}networkStatsControllerGetInflationaryRewardsSupply_1(e,r){return this.networkStatsControllerGetInflationaryRewardsSupply_1$Response(e,r).pipe(R(i=>i.body))}}return n.NetworkStatsControllerUpdateAllPath="/network-stats/update-all",n.NetworkStatsControllerRemoveAllPath="/network-stats/remove-all",n.NetworkStatsControllerGetAllNetworkStatsPath="/network-stats",n.NetworkStatsControllerGetCirculatingSupplyPath="/network-stats/circulating-supply",n.NetworkStatsControllerGetCirculatingSupply_1Path="/network-stats/circulating-supply/{units}",n.NetworkStatsControllerGetTeamSupplyPath="/network-stats/team-supply",n.NetworkStatsControllerGetTeamSupply_1Path="/network-stats/team-supply/{units}",n.NetworkStatsControllerGetEcosystemSupplyPath="/network-stats/ecosystem-supply",n.NetworkStatsControllerGetEcosystemSupply_1Path="/network-stats/ecosystem-supply/{units}",n.NetworkStatsControllerGetSalesSupplyPath="/network-stats/token-sales-supply",n.NetworkStatsControllerGetSalesSupply_1Path="/network-stats/token-sales-supply/{units}",n.NetworkStatsControllerGetRewardsSupplyPath="/network-stats/voting-rewards-supply",n.NetworkStatsControllerGetRewardsSupply_1Path="/network-stats/voting-rewards-supply/{units}",n.NetworkStatsControllerGetInflationaryRewardsSupplyPath="/network-stats/inflationary-rewards-supply",n.NetworkStatsControllerGetInflationaryRewardsSupply_1Path="/network-stats/inflationary-rewards-supply/{units}",n.\u0275fac=function(e){return new(e||n)(Pe($h),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tK=(()=>{class n extends n2{constructor(e,r){super(e,r)}securityAuctionStatsControllerUpdateAll$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerUpdateAll(e,r){return this.securityAuctionStatsControllerUpdateAll$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerRemoveAll$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerRemoveAll(e,r){return this.securityAuctionStatsControllerRemoveAll$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetAllSecurityAuctionStats$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetAllSecurityAuctionStatsPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetAllSecurityAuctionStats(e,r){return this.securityAuctionStatsControllerGetAllSecurityAuctionStats$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetCirculatingSupply$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetCirculatingSupplyPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetCirculatingSupply(e,r){return this.securityAuctionStatsControllerGetCirculatingSupply$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetCirculatingSupply_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetCirculatingSupply_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetCirculatingSupply_1(e,r){return this.securityAuctionStatsControllerGetCirculatingSupply_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetInflationRate$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetInflationRatePath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetInflationRate(e,r){return this.securityAuctionStatsControllerGetInflationRate$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetInflationRate_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetInflationRate_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetInflationRate_1(e,r){return this.securityAuctionStatsControllerGetInflationRate_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetStorePrice$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetStorePricePath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetStorePrice(e,r){return this.securityAuctionStatsControllerGetStorePrice$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetStorePrice_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetStorePrice_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetStorePrice_1(e,r){return this.securityAuctionStatsControllerGetStorePrice_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetEthPrice$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetEthPricePath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetEthPrice(e,r){return this.securityAuctionStatsControllerGetEthPrice$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetEthPrice_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetEthPrice_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetEthPrice_1(e,r){return this.securityAuctionStatsControllerGetEthPrice_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetBtcPrice$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetBtcPricePath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetBtcPrice(e,r){return this.securityAuctionStatsControllerGetBtcPrice$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetBtcPrice_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetBtcPrice_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetBtcPrice_1(e,r){return this.securityAuctionStatsControllerGetBtcPrice_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAdjustmentCalculatedDeltaPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta(e,r){return this.securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAdjustmentCalculatedDelta_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta_1(e,r){return this.securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbAdjustmentCalculated$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAdjustmentCalculatedPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAdjustmentCalculated(e,r){return this.securityAuctionStatsControllerGetSbAdjustmentCalculated$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbAdjustmentCalculated_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAdjustmentCalculated_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAdjustmentCalculated_1(e,r){return this.securityAuctionStatsControllerGetSbAdjustmentCalculated_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbMaxDelta$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbMaxDeltaPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbMaxDelta(e,r){return this.securityAuctionStatsControllerGetSbMaxDelta$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbMaxDelta_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbMaxDelta_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbMaxDelta_1(e,r){return this.securityAuctionStatsControllerGetSbMaxDelta_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbMax$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbMaxPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbMax(e,r){return this.securityAuctionStatsControllerGetSbMax$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbMax_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbMax_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbMax_1(e,r){return this.securityAuctionStatsControllerGetSbMax_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbBidsDelta$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBidsDeltaPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBidsDelta(e,r){return this.securityAuctionStatsControllerGetSbBidsDelta$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbBidsDelta_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBidsDelta_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBidsDelta_1(e,r){return this.securityAuctionStatsControllerGetSbBidsDelta_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbBids$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBidsPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBids(e,r){return this.securityAuctionStatsControllerGetSbBids$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbBids_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBids_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBids_1(e,r){return this.securityAuctionStatsControllerGetSbBids_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbFinalDelta$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbFinalDeltaPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbFinalDelta(e,r){return this.securityAuctionStatsControllerGetSbFinalDelta$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbFinalDelta_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbFinalDelta_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbFinalDelta_1(e,r){return this.securityAuctionStatsControllerGetSbFinalDelta_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbFinal$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbFinalPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbFinal(e,r){return this.securityAuctionStatsControllerGetSbFinal$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbFinal_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbFinal_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbFinal_1(e,r){return this.securityAuctionStatsControllerGetSbFinal_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbAvgDailyRewardsDelta$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAvgDailyRewardsDeltaPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAvgDailyRewardsDelta(e,r){return this.securityAuctionStatsControllerGetSbAvgDailyRewardsDelta$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbAvgDailyRewardsDelta_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAvgDailyRewardsDelta_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAvgDailyRewardsDelta_1(e,r){return this.securityAuctionStatsControllerGetSbAvgDailyRewardsDelta_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbAvgDailyRewards$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAvgDailyRewardsPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAvgDailyRewards(e,r){return this.securityAuctionStatsControllerGetSbAvgDailyRewards$Response(e,r).pipe(R(i=>i.body))}securityAuctionStatsControllerGetSbAvgDailyRewards_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAvgDailyRewards_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAvgDailyRewards_1(e,r){return this.securityAuctionStatsControllerGetSbAvgDailyRewards_1$Response(e,r).pipe(R(i=>i.body))}securityAuctionBidsControllerUpdateAll$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionBidsControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionBidsControllerUpdateAll(e,r){return this.securityAuctionBidsControllerUpdateAll$Response(e,r).pipe(R(i=>i.body))}securityAuctionBidsControllerRemoveAll$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionBidsControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionBidsControllerRemoveAll(e,r){return this.securityAuctionBidsControllerRemoveAll$Response(e,r).pipe(R(i=>i.body))}securityAuctionBidsControllerGetAllSecurityAuctionBids$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionBidsControllerGetAllSecurityAuctionBidsPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionBidsControllerGetAllSecurityAuctionBids(e,r){return this.securityAuctionBidsControllerGetAllSecurityAuctionBids$Response(e,r).pipe(R(i=>i.body))}securityAuctionBidsControllerGetAllBidsByAuction$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionBidsControllerGetAllBidsByAuctionPath,"get");return e&&i.path("auctionNumber",e.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionBidsControllerGetAllBidsByAuction(e,r){return this.securityAuctionBidsControllerGetAllBidsByAuction$Response(e,r).pipe(R(i=>i.body))}securityAuctionBidsControllerGetBid$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionBidsControllerGetBidPath,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("id",e.id,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionBidsControllerGetBid(e,r){return this.securityAuctionBidsControllerGetBid$Response(e,r).pipe(R(i=>i.body))}securityAuctionBidsControllerGetBid_1$Response(e,r){const i=new Ot(this.rootUrl,n.SecurityAuctionBidsControllerGetBid_1Path,"get");return e&&(i.path("auctionNumber",e.auctionNumber,{}),i.path("id",e.id,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}securityAuctionBidsControllerGetBid_1(e,r){return this.securityAuctionBidsControllerGetBid_1$Response(e,r).pipe(R(i=>i.body))}}return n.SecurityAuctionStatsControllerUpdateAllPath="/dypos/security-auction/stats/update-all",n.SecurityAuctionStatsControllerRemoveAllPath="/dypos/security-auction/stats/remove-all",n.SecurityAuctionStatsControllerGetAllSecurityAuctionStatsPath="/dypos/security-auction/stats",n.SecurityAuctionStatsControllerGetCirculatingSupplyPath="/dypos/security-auction/stats/{auctionNumber}/circulating-supply",n.SecurityAuctionStatsControllerGetCirculatingSupply_1Path="/dypos/security-auction/stats/{auctionNumber}/circulating-supply/{units}",n.SecurityAuctionStatsControllerGetInflationRatePath="/dypos/security-auction/stats/{auctionNumber}/inflation-rate",n.SecurityAuctionStatsControllerGetInflationRate_1Path="/dypos/security-auction/stats/{auctionNumber}/inflation-rate/{units}",n.SecurityAuctionStatsControllerGetStorePricePath="/dypos/security-auction/stats/{auctionNumber}/store-price",n.SecurityAuctionStatsControllerGetStorePrice_1Path="/dypos/security-auction/stats/{auctionNumber}/store-price/{units}",n.SecurityAuctionStatsControllerGetEthPricePath="/dypos/security-auction/stats/{auctionNumber}/eth-price",n.SecurityAuctionStatsControllerGetEthPrice_1Path="/dypos/security-auction/stats/{auctionNumber}/eth-price/{units}",n.SecurityAuctionStatsControllerGetBtcPricePath="/dypos/security-auction/stats/{auctionNumber}/btc-price",n.SecurityAuctionStatsControllerGetBtcPrice_1Path="/dypos/security-auction/stats/{auctionNumber}/btc-price/{units}",n.SecurityAuctionStatsControllerGetSbAdjustmentCalculatedDeltaPath="/dypos/security-auction/stats/{auctionNumber}/sb-adjustment-calculated/delta",n.SecurityAuctionStatsControllerGetSbAdjustmentCalculatedDelta_1Path="/dypos/security-auction/stats/{auctionNumber}/sb-adjustment-calculated/delta/{units}",n.SecurityAuctionStatsControllerGetSbAdjustmentCalculatedPath="/dypos/security-auction/stats/{auctionNumber}/sb-adjustment-calculated",n.SecurityAuctionStatsControllerGetSbAdjustmentCalculated_1Path="/dypos/security-auction/stats/{auctionNumber}/sb-adjustment-calculated/{units}",n.SecurityAuctionStatsControllerGetSbMaxDeltaPath="/dypos/security-auction/stats/{auctionNumber}/sb-max/delta",n.SecurityAuctionStatsControllerGetSbMaxDelta_1Path="/dypos/security-auction/stats/{auctionNumber}/sb-max/delta/{units}",n.SecurityAuctionStatsControllerGetSbMaxPath="/dypos/security-auction/stats/{auctionNumber}/sb-max",n.SecurityAuctionStatsControllerGetSbMax_1Path="/dypos/security-auction/stats/{auctionNumber}/sb-max/{units}",n.SecurityAuctionStatsControllerGetSbBidsDeltaPath="/dypos/security-auction/stats/{auctionNumber}/sb-bids/delta",n.SecurityAuctionStatsControllerGetSbBidsDelta_1Path="/dypos/security-auction/stats/{auctionNumber}/sb-bids/delta/{units}",n.SecurityAuctionStatsControllerGetSbBidsPath="/dypos/security-auction/stats/{auctionNumber}/sb-bids",n.SecurityAuctionStatsControllerGetSbBids_1Path="/dypos/security-auction/stats/{auctionNumber}/sb-bids/{units}",n.SecurityAuctionStatsControllerGetSbFinalDeltaPath="/dypos/security-auction/stats/{auctionNumber}/sb-final/delta",n.SecurityAuctionStatsControllerGetSbFinalDelta_1Path="/dypos/security-auction/stats/{auctionNumber}/sb-final/delta/{units}",n.SecurityAuctionStatsControllerGetSbFinalPath="/dypos/security-auction/stats/{auctionNumber}/sb-final",n.SecurityAuctionStatsControllerGetSbFinal_1Path="/dypos/security-auction/stats/{auctionNumber}/sb-final/{units}",n.SecurityAuctionStatsControllerGetSbAvgDailyRewardsDeltaPath="/dypos/security-auction/stats/{auctionNumber}/avg-daily-rewards/delta",n.SecurityAuctionStatsControllerGetSbAvgDailyRewardsDelta_1Path="/dypos/security-auction/stats/{auctionNumber}/avg-daily-rewards/delta/{units}",n.SecurityAuctionStatsControllerGetSbAvgDailyRewardsPath="/dypos/security-auction/stats/{auctionNumber}/avg-daily-rewards",n.SecurityAuctionStatsControllerGetSbAvgDailyRewards_1Path="/dypos/security-auction/stats/{auctionNumber}/avg-daily-rewards/{units}",n.SecurityAuctionBidsControllerUpdateAllPath="/dypos/security-auction/bids/update-all",n.SecurityAuctionBidsControllerRemoveAllPath="/dypos/security-auction/bids/remove-all",n.SecurityAuctionBidsControllerGetAllSecurityAuctionBidsPath="/dypos/security-auction/bids",n.SecurityAuctionBidsControllerGetAllBidsByAuctionPath="/dypos/security-auction/bids/{auctionNumber}",n.SecurityAuctionBidsControllerGetBidPath="/dypos/security-auction/bids/{auctionNumber}/{id}",n.SecurityAuctionBidsControllerGetBid_1Path="/dypos/security-auction/bids/{auctionNumber}/{id}/{units}",n.\u0275fac=function(e){return new(e||n)(Pe($h),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wL=(()=>{class n extends n2{constructor(e,r){super(e,r)}computeResourcesControllerUpdateAll$Response(e,r){const i=new Ot(this.rootUrl,n.ComputeResourcesControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}computeResourcesControllerUpdateAll(e,r){return this.computeResourcesControllerUpdateAll$Response(e,r).pipe(R(i=>i.body))}computeResourcesControllerRemoveAll$Response(e,r){const i=new Ot(this.rootUrl,n.ComputeResourcesControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}computeResourcesControllerRemoveAll(e,r){return this.computeResourcesControllerRemoveAll$Response(e,r).pipe(R(i=>i.body))}computeResourcesControllerGetAllComputeResources$Response(e,r){const i=new Ot(this.rootUrl,n.ComputeResourcesControllerGetAllComputeResourcesPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}computeResourcesControllerGetAllComputeResources(e,r){return this.computeResourcesControllerGetAllComputeResources$Response(e,r).pipe(R(i=>i.body))}computeResourcesControllerGetPerpetualStorageResource$Response(e,r){const i=new Ot(this.rootUrl,n.ComputeResourcesControllerGetPerpetualStorageResourcePath,"get");return e&&(i.path("option",e.option,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}computeResourcesControllerGetPerpetualStorageResource(e,r){return this.computeResourcesControllerGetPerpetualStorageResource$Response(e,r).pipe(R(i=>i.body))}computeResourcesControllerGetGpuResource$Response(e,r){const i=new Ot(this.rootUrl,n.ComputeResourcesControllerGetGpuResourcePath,"get");return e&&(i.path("region",e.region,{}),i.path("option",e.option,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}computeResourcesControllerGetGpuResource(e,r){return this.computeResourcesControllerGetGpuResource$Response(e,r).pipe(R(i=>i.body))}computeResourcesControllerGetResource$Response(e,r){const i=new Ot(this.rootUrl,n.ComputeResourcesControllerGetResourcePath,"get");return e&&(i.path("region",e.region,{}),i.path("type",e.type,{}),i.path("subtype",e.subtype,{}),i.path("option",e.option,{}),i.path("units",e.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}computeResourcesControllerGetResource(e,r){return this.computeResourcesControllerGetResource$Response(e,r).pipe(R(i=>i.body))}}return n.ComputeResourcesControllerUpdateAllPath="/store-cloud-vm/update-all",n.ComputeResourcesControllerRemoveAllPath="/store-cloud-vm/remove-all",n.ComputeResourcesControllerGetAllComputeResourcesPath="/store-cloud-vm",n.ComputeResourcesControllerGetPerpetualStorageResourcePath="/store-cloud-vm/dedicated/storage/perpetual/{option}/{units}",n.ComputeResourcesControllerGetGpuResourcePath="/store-cloud-vm/{region}/dedicated/gpu/{option}/{units}",n.ComputeResourcesControllerGetResourcePath="/store-cloud-vm/{region}/dedicated/{type}/{subtype}/{option}/{units}",n.\u0275fac=function(e){return new(e||n)(Pe($h),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),FPe=(()=>{class n extends n2{constructor(e,r){super(e,r)}tokenPricesControllerUpdateFromCoingecko$Response(e,r){const i=new Ot(this.rootUrl,n.TokenPricesControllerUpdateFromCoingeckoPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}tokenPricesControllerUpdateFromCoingecko(e,r){return this.tokenPricesControllerUpdateFromCoingecko$Response(e,r).pipe(R(i=>i.body))}tokenPricesControllerUpdateFromCoinmarketcap$Response(e,r){const i=new Ot(this.rootUrl,n.TokenPricesControllerUpdateFromCoinmarketcapPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}tokenPricesControllerUpdateFromCoinmarketcap(e,r){return this.tokenPricesControllerUpdateFromCoinmarketcap$Response(e,r).pipe(R(i=>i.body))}tokenPricesControllerGetStorePrice$Response(e,r){const i=new Ot(this.rootUrl,n.TokenPricesControllerGetStorePricePath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o.clone({body:void 0})))}tokenPricesControllerGetStorePrice(e,r){return this.tokenPricesControllerGetStorePrice$Response(e,r).pipe(R(i=>i.body))}}return n.TokenPricesControllerUpdateFromCoingeckoPath="/token-prices/update-from-coingecko",n.TokenPricesControllerUpdateFromCoinmarketcapPath="/token-prices/update-from-coinmarketcap",n.TokenPricesControllerGetStorePricePath="/token-prices/store",n.\u0275fac=function(e){return new(e||n)(Pe($h),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nK=(()=>{class n{constructor(){this.rootUrl="http://localhost:3002"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),BPe=(()=>{class n{constructor(e,r){this.config=e,this.http=r,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}}return n.\u0275fac=function(e){return new(e||n)(Pe(nK),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const UPe=new class $Pe{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class xL{constructor(t,e,r,i,o){this.name=t,this.value=e,this.options=r,this.options=r||{},null==this.options.style&&(this.options.style=i),null==this.options.explode&&(this.options.explode=o)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(r=>this.serializeValue(r).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const r=[];for(const i of Object.keys(t)){let o=t[i];null!=o&&(o=this.serializeValue(o).split(e).join(encodeURIComponent(e)),this.options.explode?r.push(`${i}=${o}`):(r.push(i),r.push(o)))}return r.join(e)}return String(t)}}class VPe extends xL{constructor(t,e,r){super(t,e,r,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let r="label"===this.options.style?".":"",i=this.options.explode?""===r?",":r:",",o=!1;return"matrix"===this.options.style&&(r=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(r=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),o=!0):(e=this.serializeValue(e,";"),o=!0))),e=r+(o?e:this.serializeValue(e,i)),(t=t.replace(`{${this.name}}`,e)).replace(`{${r}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var r="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(r=(r=r.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class zPe extends xL{constructor(t,e,r){super(t,e,r,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const r=this.value[e];null!=r&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(r)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const r=this.value[e];null!=r&&(t=t.append(e,this.serializeValue(r)))}else{const e=[];for(const r of Object.keys(this.value)){const i=this.value[r];null!=i&&(e.push(r),e.push(i))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class HPe extends xL{constructor(t,e,r){super(t,e,r,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class jPe{constructor(t,e,r){this.rootUrl=t,this.operationPath=e,this.method=r,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,r){this._path.set(t,new VPe(t,e,r||{}))}query(t,e,r){this._query.set(t,new zPe(t,e,r||{}))}header(t,e,r){this._header.set(t,new HPe(t,e,r||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const r=[];for(const i of Object.keys(t)){let o=t[i];o instanceof Array||(o=[o]);for(const a of o){const s=this.formDataValue(a);null!==s&&r.push([i,s])}}this._bodyContent=r.map(i=>`${encodeURIComponent(i[0])}=${encodeURIComponent(i[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const r=new FormData;if(null!=t)for(const i of Object.keys(t)){const o=t[i];if(o instanceof Array)for(const a of o){const s=this.formDataValue(a);null!==s&&r.append(i,s)}else{const a=this.formDataValue(o);null!==a&&r.set(i,a)}}this._bodyContent=r}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const r=this.rootUrl+e;let i=new Sc({encoder:UPe});for(const a of this._query.values())i=a.append(i);let o=new va;t.accept&&(o=o.append("Accept",t.accept));for(const a of this._header.values())o=a.append(o);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(o=o.set("Content-Type",this._bodyContentType)),new mh(this.method.toUpperCase(),r,this._bodyContent,{params:i,headers:o,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let GPe=(()=>{class n extends BPe{constructor(e,r){super(e,r)}getCostByTypeAndUnit$Response(e,r){const i=new jPe(this.rootUrl,n.ComputeCostGetCostByTypeAndUnitPath,"get");return e&&(i.path("type",e.type,{}),i.path("unit",e.unit,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}getCostByTypeAndUnit(e,r){return this.getCostByTypeAndUnit$Response(e,r).pipe(R(i=>i.body))}}return n.ComputeCostGetCostByTypeAndUnitPath="/compute/cost/{type}/{unit}",n.\u0275fac=function(e){return new(e||n)(Pe(nK),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var S1;let $u=(S1=class{constructor(t,e,r,i){this.http=t,this.dyposService=e,this.compureCostService=r,this.storeCloudVmService=i,this.totalValueLocked$=null,this.dyPos$=null,this.dyPosSurge$=null,this.security$=null,this.costOfCompute$=null,this.dDosProtection$=null,this.networkOperators$=null,this.cloudCapacity$=null,this.governanceResults=null,this.auctionEconomics=null,this.circulatingSupplyInfo$=null,this.totalSupplyInfo$=null,this.allocatedSupplyInfo$=null,this.storePriceUSD=xe.storePriceUSD,this.bindTotalValueLocked(),this.bindDyPos(),this.bindDyPosSurge(),this.bindSecurity(),this.bindCostOfCompute(),this.bindDDosProtection(),this.bindNetworkOperators(),this.bindCloudCapacity(),this.bindGovernanceResults(),this.bindAuctionEconomics(),this.bindTotalSupplyInfo$(),this.bindCirculatingSupplyInfo$(),this.bindAllocatedSupplyInfo$()}getStorePrice(){return we(0).pipe(ya(500))}getTrendData(t,e){return this.http.get("/consensus"+t+(e?.from&&e?.till?`?from=${e?.from}&till=${e?.till}`:""))}getTransactionById(t,e){return this.http.get(e+"/transactions/"+t)}getExchangeRate(t,e){return this.http.get(`https://api.coingecko.com/api/v3/simple/price?ids=${t}&vs_currencies=${e}`)}getEtherPrice(){return kt(function*(){return new TPe("homestead",xe.wallet.etherscanAPIKey)?.getEtherPrice()})()}getAllTimeMarketCapFromGSheet(){return this.http.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vRdKLBsiJyE1O1eKuXUn_QnJfwOxnu_yLLpaOgd79zJfpvdMpbR2eDAZn5oBsF39CCaXewTG6biB0JX/pub?gid=0&single=true&output=csv",{responseType:"text"}).pipe(R(t=>this.parseCSV(t)))}getAllocatedSupplyHistoryFromGSheet(){return this.http.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vTWQ-hIY86B-xRlAoLPOQc1L0-Dmb59AUtp-_declUDUtr2FEOGjQgDBGP9rJbmiqQcVocGRV1ugxEr/pub?gid=1834631508&single=true&output=csv",{responseType:"text"}).pipe(R(t=>this.parseCSV(t)))}getTreasuryScheduleChartFromGSheet(){return this.http.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vTWQ-hIY86B-xRlAoLPOQc1L0-Dmb59AUtp-_declUDUtr2FEOGjQgDBGP9rJbmiqQcVocGRV1ugxEr/pub?gid=0&single=true&output=csv",{responseType:"text"}).pipe(R(t=>this.parseCSV(t)))}postGenerateTransaction(t){return this.http.post("/consensus/transactions",t).pipe(Qe(this))}call(t,e,r){var i=this;return kt(function*(){return e?.showLoading(),i.error=null,t.pipe($f(()=>{r||e?.showSuccess()}),Qe(i)).toPromise().catch(()=>{e?.showError()})})()}bindTotalValueLocked(){const t=this.getStorePrice().pipe(Qe(this),R(i=>({label:"DEPOSITED",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string"}))),e=this.getStorePrice().pipe(Qe(this),R(i=>({label:"STAKED",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string"}))),r=this.getStorePrice().pipe(Qe(this),R(i=>({label:"TOTAL VALUE LOCKED",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string",subItems:{value:0,cssClass:"text-light",preSymbol:"(",type:"currency",symbol:"MM)"}})));this.totalValueLocked$={title:"TOTAL VALUE LOCKED",tooltip:"Description (in progress)",items$:[t,e,r]}}bindDyPos(){var t=this;return kt(function*(){const e=t.dyposService.securityAuctionStatsControllerGetSbFinal_1({auctionNumber:"latest",units:"percent"}).pipe(Qe(t),R(o=>{const a=JSON.parse(o);return{label:"SECURITY BUDGET MET",tooltip:"Description (in progress)",inlineTooltip:!0,value:parseFloat(a?.value),type:"percent"}})),r=t.dyposService.securityAuctionStatsControllerGetSbMax_1({auctionNumber:"latest",units:"percent"}).pipe(Qe(t),R(o=>{const a=JSON.parse(o);return{label:"SECURITY BUDGET MAX",tooltip:"Description (in progress)",inlineTooltip:!0,value:parseFloat(a?.value),type:"percent"}})),i=t.dyposService.securityAuctionStatsControllerGetInflationRate_1({auctionNumber:"latest",units:"percent"}).pipe(Qe(t),R(o=>{const a=JSON.parse(o);return{label:"INFLATION RATE",tooltip:"Description (in progress)",inlineTooltip:!0,value:parseFloat(a?.value),type:"percent"}}));t.dyPos$={title:"PROTOCOL SECURITY",tooltip:"Description (in progress)",items$:[e,r,i]}})()}bindDyPosSurge(){const t=this.getStorePrice().pipe(Qe(this),R(a=>({label:"\u{1f4c8} SURGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:"x"}))),e=this.getStorePrice().pipe(Qe(this),R(a=>({label:"GROWTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"percent"}))),r=this.getStorePrice().pipe(Qe(this),R(a=>({label:"REBALANCE",tooltip:"Description (in progress)",inlineTooltip:!0,value:`~${a?.toFixed(0)}`,type:"string",symbol:" Secs"}))),i=this.getStorePrice().pipe(Qe(this),R(a=>({label:"FEES",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:"bits"}))),o=this.getStorePrice().pipe(Qe(this),R(a=>({label:"\u{1f525} BURN",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:" bits"})));this.dyPosSurge$={title:"DyPoS SURGE",tooltip:"Description (in progress)",items$:[t,e,r,i,o]}}bindSecurity(){const t=this.getStorePrice().pipe(Qe(this),R(i=>({label:"COST TO \u2154 ATTACK",tooltip:"Description (in progress)",inlineTooltip:!0,value:i,type:"currency",symbol:" MM",decimal:{count:2,force:!0}}))),e=this.getStorePrice().pipe(Qe(this),R(i=>({label:"COST TO MINT $STORE",tooltip:"Description (in progress)",inlineTooltip:!0,value:i,type:"currency"}))),r=this.getStorePrice().pipe(Qe(this),R(i=>({label:"PRODUCTION COST",tooltip:"Description (in progress)",inlineTooltip:!0,value:i,type:"currency"})));this.security$={title:"PROTOCOL ECONOMICS",tooltip:"Description (in progress)",items$:[t,r,e]}}bindCostOfCompute(){const t=this.compureCostService.getCostByTypeAndUnit({type:zc.Type.Compute,unit:zc.Unit.BITS}).pipe(Qe(this),R(o=>{const a=Math.round(o?.value??0);return{label:"CPU (1 CORE-SEC)",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:a,type:"number",symbol:a>1?" bits":"bit"}})),e=this.compureCostService.getCostByTypeAndUnit({type:zc.Type.Storage,unit:zc.Unit.BITS}).pipe(Qe(this),R(o=>{const a=Math.round(o?.value??0);return{label:"STORAGE (1 GB-SEC)",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:a,type:"number",symbol:a>1?" bits":"bit"}})),r=this.storeCloudVmService.computeResourcesControllerGetPerpetualStorageResource({option:zc.Option.SELL,units:zc.Unit.BITS}).pipe(Qe(this),R(o=>{const a=JSON.parse(o),s=Math.round(parseFloat(a?.sell));return{label:"1 iBYTE EQUALS",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:s,type:"number",symbol:s>1?" bits":"bit"}})),i=this.storeCloudVmService.computeResourcesControllerGetPerpetualStorageResource({option:zc.Option.SELL,units:zc.Unit.USD}).pipe(Qe(this),R(o=>{const a=JSON.parse(o);return{label:"COST PER iBYTE",tooltip:"Description (in progress)",inlineTooltip:!0,value:parseFloat(a?.sell),type:"currency"}}));this.costOfCompute$={title:"STORE CLOUD VM",tooltip:"Description (in progress)",items$:[t,e,r,i]}}bindDDosProtection(){const t=this.getStorePrice().pipe(Qe(this),R(o=>({label:"ACTUAL TPS",value:o,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),e=this.getStorePrice().pipe(Qe(this),R(o=>({label:"TXN BURST",value:o,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),r=this.getStorePrice().pipe(Qe(this),R(o=>({label:"RATE LIMIT/SEC",value:o,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),i=this.getStorePrice().pipe(Qe(this),R(o=>({label:"MAX TPS(24-HOUR)",value:o,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbolPosition:"after",symbol:"(+0%)",symbolCssClass:"text-light"})));this.dDosProtection$={title:"STORE CHAIN DDoS PROTECTION",tooltip:"Description (in progress)",items$:[t,e,r,i]}}bindNetworkOperators(){const t=this.getStorePrice().pipe(Qe(this),R(a=>({label:"MARKETS",tooltip:"Description (in progress)",inlineTooltip:!0,value:1,type:"number"}))),e=this.getStorePrice().pipe(Qe(this),R(a=>({label:"CLOUD MINERS",tooltip:"Description (in progress)",inlineTooltip:!0,value:10,type:"number"}))),r=this.getStorePrice().pipe(Qe(this),R(a=>({label:"BLOCK MINERS",tooltip:"Description (in progress)",inlineTooltip:!0,value:7,type:"number"}))),i=this.getStorePrice().pipe(Qe(this),R(a=>({label:"VOTERS",value:82,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),o=this.getStorePrice().pipe(Qe(this),R(a=>({label:"Status: Alpha",value:null,type:"string"})));this.networkOperators$={title:"NETWORK OPERATORS",tooltip:"Description (in progress)",subTitle:{enable:!0,item$:o},items$:[t,e,r,i]}}bindCloudCapacity(){const t=this.getStorePrice().pipe(Qe(this),R(o=>({label:"DATA CENTERS",value:6,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),e=this.getStorePrice().pipe(Qe(this),R(o=>({label:"COMPUTE",value:26400,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"vCPUS"}))),r=this.getStorePrice().pipe(Qe(this),R(o=>({label:"MEMORY",value:240,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"TB"}))),i=this.getStorePrice().pipe(Qe(this),R(o=>({label:"STORAGE",value:12e3,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"TB HHD"})));this.cloudCapacity$={title:"STORE CLOUD CAPACITY",tooltip:"Description (in progress)",items$:[t,e,r,i]}}bindGovernanceResults(){const t=we({label:"% TRUSTED",tooltip:"Description (in progress)",inlineTooltip:!0,value:"100%",type:"string"}),e=we({label:"BALLOTS APPROVED",tooltip:"Description (in progress)",inlineTooltip:!0,value:5,type:"number"}),r=we({label:"AVG. APPROVAL RATE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"76.95%",type:"string"}),i=we({label:"BALLOTS VETOED",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"number"});this.governanceResults={title:"GOVERNANCE RESULTS",tooltip:"Description (in progress)",items$:[t,e,r,i]}}bindAuctionEconomics(){const t=we({label:"NEXT AUCTION",tooltip:"Description (in progress)",inlineTooltip:!0,value:"TBD",type:"string"}),e=we({label:"SB GROWTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"}),r=we({label:"SB+",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"}),i=we({label:"LAST AUCTION SUBSCRIPTON",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"});this.auctionEconomics={title:"AUCTION ECONOMICS",tooltip:"Description (in progress)",items$:[t,e,r,i]}}parseCSV(t){for(var e=[],r=!1,i=0,o=0,a=0;a({label:"CIRCULATING SUPPLY",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string",subItems:{value:0,cssClass:"text-light",preSymbol:"(",type:"currency",symbol:"MM)"}}))),e=this.getStorePrice().pipe(Qe(this),R(i=>({label:"MARKET CAP/TVL",tooltip:"Description (in progress)",inlineTooltip:!0,value:"00.00",type:"string"}))),r=this.getStorePrice().pipe(Qe(this),R(i=>({label:"% LOCKED FOR +2-YEARS",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent",subItems:{value:0,cssClass:"text-light",preSymbol:"(",type:"currency",symbol:"MM)"}})));this.circulatingSupplyInfo$={title:"CIRCULATING SUPPLY",tooltip:"Description (in progress)",items$:[t,e,r]}}bindTotalSupplyInfo$(){const t=this.getStorePrice().pipe(Qe(this),R(i=>({label:"TOTAL SUPPLY",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"0.0",symbol:"B",type:"string",subItems:{value:0,cssClass:"text-light",preSymbol:"(",type:"currency",symbol:"MM)"}}))),e=this.getStorePrice().pipe(Qe(this),R(i=>({label:"FDV/TVL",tooltip:"Description (in progress)",inlineTooltip:!0,value:"00.00",type:"string"}))),r=this.getStorePrice().pipe(Qe(this),R(i=>({label:"% LOCKED FOR +2-YEARS",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent",subItems:{value:0,cssClass:"text-light",preSymbol:"(",type:"currency",symbol:"MM)"}})));this.totalSupplyInfo$={title:"TOTAL SUPPLY",tooltip:"Description (in progress)",items$:[t,e,r]}}bindAllocatedSupplyInfo$(){const t=this.getStorePrice().pipe(Qe(this),R(r=>({label:"ALLOCATED SUPPLY",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string",subItems:{value:0,cssClass:"text-light",preSymbol:"(",type:"currency",symbol:"MM)"}}))),e=this.getStorePrice().pipe(Qe(this),R(r=>({label:"% LOCKED FOR +2-YEARS",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent",subItems:{value:0,cssClass:"text-light",preSymbol:"(",type:"currency",symbol:"MM)"}})));this.allocatedSupplyInfo$={title:"ALLOCATED SUPPLY",tooltip:"Description (in progress)",items$:[t,e]}}},S1.\u0275fac=function(t){return new(t||S1)(Pe(nr),Pe(tK),Pe(GPe),Pe(wL))},S1.\u0275prov=We({token:S1,factory:S1.\u0275fac,providedIn:"root"}),S1);$u=ke([en()],$u);class WS{constructor(){this.refreshOnTransactionGenerate=new io({count:void 0,state:qo.Completed}),this.scrollToTransactionBlocks=new io(!1),this.refreshOnTransactionGenerate$=this.refreshOnTransactionGenerate.asObservable(),this.scrollToTransactionBlocks$=this.scrollToTransactionBlocks.asObservable()}changeState(t){this.refreshOnTransactionGenerate.next(t)}scrollToTransactionBlocksSection(){this.scrollToTransactionBlocks.next(!0)}}function rK(n,t=Jy){return Xe((e,r)=>{let i=null,o=null,a=null;const s=()=>{if(i){i.unsubscribe(),i=null;const c=o;o=null,r.next(c)}};function l(){const c=a+n,u=t.now();if(u{o=c,a=t.now(),i||(i=t.schedule(l,n),r.add(i))},()=>{s(),r.complete()},void 0,()=>{o=i=null}))})}let ML=class{constructor(t,e,r,i){this.disableResetData=!1,this._loading$=new io(!0),this._search$=new D,this._data$=new io([]),this._numOfPages$=new io(0),this._state={page:1,pageSize:8,status:null,searchTerm:"",sortColumn:"",sortDirection:""},this.http=t,this.serviceAPIUrl=r,this.data=e,this.map=i,this.initSearch()}get data$(){return this._data$.asObservable()}get numOfPages$(){return this._numOfPages$.asObservable()}get loading$(){return this._loading$.asObservable()}get page(){return this._state.page}get pageSize(){return this._state.pageSize}get searchTerm(){return this._state.searchTerm}get status(){return this._state.status}set page(t){this._set({page:t})}set pageSize(t){this._set({pageSize:t})}set searchTerm(t){this._set({searchTerm:t})}set sortColumn(t){this._set({sortColumn:t})}set sortDirection(t){this._set({sortDirection:t})}set status(t){this._set({status:t})}set loading(t){this._loading$.next(t)}_set(t){Object.assign(this._state,t),this._search$.next()}_search(){var t=this;return kt(function*(){return t.serviceAPIUrl?t.getAPIData():t.data?t.getLocalData():we({data:[],numOfPages:0})})()}getLocalData(){var t=this;return kt(function*(){const{pageSize:e,page:r,status:i,sortColumn:o,sortDirection:a}=t._state;if(!t.data)return we({data:[],numOfPages:0});let s=yield go(t.data);t.map&&(s=t.map(s));let l=t.sort(s,o,a);i&&"Any"!==i&&"All"!==i&&(l=l?.filter(u=>u?.status===i));const c=Math.ceil(l?.length/e);return l=l?.slice((r-1)*e,(r-1)*e+e),we({data:l,numOfPages:c})})()}getAPIData(){var t=this;return kt(function*(){const{pageSize:e,page:r}=t._state,i=t.preparePagination(r,e),o=yield go(t.http.get(t.serviceAPIUrl+i));return t.map&&(o.data=t.map(o?.data)),we(o)})()}preparePagination(t,e){return`?page=${t-1}&limit=${e}&time=desc`}sort(t,e,r){return""===r||""===e?t:[...t].sort((i,o)=>{const a=((n,t)=>nt?1:0)(i[e],o[e]);return"asc"===r?a:-a})}initSearch(){var t=this;(this.data||this.serviceAPIUrl)&&(this._search$.pipe(xo(()=>{this.disableResetData||(this._loading$.next(!0),this._data$.next([])),this._numOfPages$.next(0)}),rK(200),_a(kt(function*(){return yield go(yield t._search())})),xo(()=>{this.disableResetData||this._loading$.next(!1)}),$f(()=>{this.disableResetData||this._loading$.next(!1)})).subscribe(e=>{this._data$.next(e.data),this._numOfPages$.next(e.numOfPages)}),this._search$.next())}};var T1;ML=ke([en({checkProperties:!0})],ML);let qS=(T1=class{constructor(t,e){this.http=t,this.stateService=e,this.totalTransactions$={title:"TOTAL TRANSACTIONS",tooltip:"Description (in progress)",subTitle:{enable:!0,item:null},items:null,available:{items:!0}},this.totalBlocks$={title:"TOTAL BLOCKS",tooltip:"Description (in progress)",subTitle:{enable:!0,item:null},items:null,available:{items:!0}},this.bindTotalTransactionsAndBlocks(),this.attachStateChange()}getDashboardStats(){return this.http.get("/consensus/dashboard2").pipe(Qe(this))}bindTotalTransactionsAndBlocks(){var t=this;return kt(function*(){const e=yield go(t.getDashboardStats());t.attachTotalTransactionsAndBlocks(e)})()}attachTotalTransactionsAndBlocks(t){const e={label:"Waiting",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.pendingTransactions,type:"short-number",icon:"clock"},r={label:"Confirming",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.confirmingTransactions,type:"short-number",icon:"box"},i={label:"Finalized",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.finalizedTransactions,type:"short-number",decimal:{count:2},icon:"check-circle"};this.totalTransactions$.subTitle={enable:!0,item:{label:"",value:t?.totalTransactions,type:"short-number",decimal:{count:2},cssClass:"d-flex g-1"}},this.totalTransactions$.items=[e,r,i];const a={label:"Confirming",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.confirmingBlocks,type:"short-number",icon:"box"},s={label:"Finalized",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.finalizedBlocks,type:"short-number",decimal:{count:2},icon:"check-circle"};this.totalBlocks$.subTitle={enable:!0,item:{label:"",value:t?.totalBlocks,type:"short-number",decimal:{count:2},cssClass:"d-flex g-1"}},this.totalBlocks$.items=[a,s]}attachStateChange(){this.stateService.refreshOnTransactionGenerate$.pipe(Qe(this),_a(t=>this.transactionStateChange(t))).subscribe()}transactionStateChange(t){var e=this;return kt(function*(){switch(t.state){case qo.Requested:e.Requested(t);break;case qo.Block_Added:e.Block_Added(t);break;case qo.Network_Updated:yield e.Network_Updated(t)}})()}Requested(t){this.totalTransactions$.items&&(this.totalTransactions$.items[0].icon="clock_animated",this.totalTransactions$.items[0].value$=we({value:t?.count?.transaction})),this.totalTransactions$?.subTitle?.item&&(this.totalTransactions$.subTitle.item.valueIcon="box_animated")}Block_Added(t){this.totalTransactions$.items&&(this.totalTransactions$.items[0].icon="clock",this.totalTransactions$.items[0].value$=we({value:0}),this.totalTransactions$.items[1].icon="box_animated",this.totalTransactions$.items[1].value$=we({value:t?.count?.transaction})),this.totalBlocks$.items&&(this.totalBlocks$.items[0].icon="box_animated",this.totalBlocks$.items[0].value$=we({value:t?.count?.block})),this.totalBlocks$?.subTitle?.item&&(this.totalBlocks$.subTitle.item.valueIcon="box_animated")}Network_Updated(t){var e=this;return kt(function*(){const r=yield go(e.getDashboardStats());e.setNetworkUpdateValue(r)})()}setNetworkUpdateValue(t){var e=this;return kt(function*(){e.totalTransactions$.items&&(e.totalTransactions$.items[0].icon="clock",e.totalTransactions$.items[0].value$=we({value:0}),e.totalTransactions$.items[1].icon="box",e.totalTransactions$.items[1].value$=we({value:0})),e.totalBlocks$.items&&(e.totalBlocks$.items[0].icon="box",e.totalBlocks$.items[0].value$=we({value:0})),e.attachTotalTransactionsAndBlocks(t),e.totalTransactions$.items&&(e.totalTransactions$.items[2].icon="check-circle_animated_once"),e.totalBlocks$.items&&(e.totalBlocks$.items[1].icon="check-circle_animated_once"),e.totalTransactions$?.subTitle?.item&&(e.totalTransactions$.subTitle.item.valueIcon="check-circle_animated_once"),e.totalBlocks$?.subTitle?.item&&(e.totalBlocks$.subTitle.item.valueIcon="check-circle_animated_once"),yield go(we(0).pipe(ya(1e3))),e.setSubTitleIcon()})()}setSubTitleIcon(){this.totalTransactions$?.subTitle?.item&&(this.totalTransactions$.subTitle.item.valueIcon=void 0),this.totalBlocks$?.subTitle?.item&&(this.totalBlocks$.subTitle.item.valueIcon=void 0)}},T1.\u0275fac=function(t){return new(t||T1)(Pe(nr),Pe(WS))},T1.\u0275prov=We({token:T1,factory:T1.\u0275fac}),T1);qS=ke([en()],qS);class qPe{constructor(t,e,r){var i=this;this.extraQuery=[],this.destroy$=new D,this._search$=new D,this._loading$=new io(!0),this._result$=new io([]),this._total$=new io(-1),this._state={page:1,pageSize:4,searchTerm:"",sortHeaders:[]},this.service$=t,this.fields=e,this.extraQuery=r,this._search$.pipe(xo(kt(function*(){i._loading$.next(!0),i._result$.next([]),i._total$.next(0)})),rK(100),_a(kt(function*(){return yield(yield i._search()).toPromise()})),xo(()=>this._loading$.next(!1)),$f(()=>this._loading$.next(!1)),sl(this.destroy$)).subscribe(o=>{this._result$.next(o?.result??[]),this._total$.next(o?.total??-1)}),this._search$.next()}get result$(){return this._result$.asObservable()}get total$(){return this._total$.asObservable()}get loading$(){return this._loading$.asObservable()}get page(){return this._state.page}get pageSize(){return this._state.pageSize}get searchTerm(){return this._state.searchTerm}set page(t){this._set({page:t})}set pageSize(t){this._set({pageSize:t})}set searchTerm(t){this._set({searchTerm:t})}set sortHeaders(t){this._set({sortHeaders:t})}load$(){this._search$.next()}getFilter(t){const{sortHeaders:e,pageSize:r,page:i,searchTerm:o}=this._state;let a={},s={"filter[offset]":"0","filter[limit]":r.toString(),"filter[skip]":((i-1)*r).toString()};return t&&(delete s["filter[limit]"],delete s["filter[skip]"]),o&&(s=this.generateFilterUsingColumns(s,this.fields,o),a=this.generateWhereUsingColumns(a,this.fields,o)),this.extraQuery&&(s=this.generateFilterExtraQuery(s),a=this.generateWhereExtraQuery(a)),e?.length>0?s=this.generateFilterOrder(s,e):s["filter[order]"]="createdOn DESC",{filter:s,where:a}}_set(t){Object.assign(this._state,t),this._search$.next()}_search(){var t=this;return kt(function*(){const e=t.getFilter(),r=yield t.service$?.count({where:e?.where}).toPromise();return we({result:yield t.service$?.find({filter:e?.filter}).toPromise(),total:r.count})})()}generateFilterUsingColumns(t,e,r){for(let i=0;i{t["filter"+e.key]=e.value}),t}generateWhereExtraQuery(t){return this.extraQuery.forEach(e=>{t[e.key]=e.value}),t}generateFilterOrder(t,e){e=e.filter(r=>""!==r.direction);for(let r=0;r{class n{constructor(){this.rootUrl="http://localhost:3001/api"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ld=(()=>{class n{constructor(e,r){this.config=e,this.http=r,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}}return n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const YPe=new class ZPe{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class PL{constructor(t,e,r,i,o){this.name=t,this.value=e,this.options=r,this.options=r||{},null==this.options.style&&(this.options.style=i),null==this.options.explode&&(this.options.explode=o)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(r=>this.serializeValue(r).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const r=[];for(const i of Object.keys(t)){let o=t[i];null!=o&&(o=this.serializeValue(o).split(e).join(encodeURIComponent(e)),this.options.explode?r.push(`${i}=${o}`):(r.push(i),r.push(o)))}return r.join(e)}return String(t)}}class XPe extends PL{constructor(t,e,r){super(t,e,r,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let r="label"===this.options.style?".":"",i=this.options.explode?""===r?",":r:",",o=!1;return"matrix"===this.options.style&&(r=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(r=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),o=!0):(e=this.serializeValue(e,";"),o=!0))),e=r+(o?e:this.serializeValue(e,i)),(t=t.replace(`{${this.name}}`,e)).replace(`{${r}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var r="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(r=(r=r.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class KPe extends PL{constructor(t,e,r){super(t,e,r,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const r=this.value[e];null!=r&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(r)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const r=this.value[e];null!=r&&(t=t.append(e,this.serializeValue(r)))}else{const e=[];for(const r of Object.keys(this.value)){const i=this.value[r];null!=i&&(e.push(r),e.push(i))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class JPe extends PL{constructor(t,e,r){super(t,e,r,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class br{constructor(t,e,r){this.rootUrl=t,this.operationPath=e,this.method=r,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,r){this._path.set(t,new XPe(t,e,r||{}))}query(t,e,r){this._query.set(t,new KPe(t,e,r||{}))}header(t,e,r){this._header.set(t,new JPe(t,e,r||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const r=[];for(const i of Object.keys(t)){let o=t[i];o instanceof Array||(o=[o]);for(const a of o){const s=this.formDataValue(a);null!==s&&r.push([i,s])}}this._bodyContent=r.map(i=>`${encodeURIComponent(i[0])}=${encodeURIComponent(i[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const r=new FormData;if(null!=t)for(const i of Object.keys(t)){const o=t[i];if(o instanceof Array)for(const a of o){const s=this.formDataValue(a);null!==s&&r.append(i,s)}else{const a=this.formDataValue(o);null!==a&&r.set(i,a)}}this._bodyContent=r}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const r=this.rootUrl+e;let i=new Sc({encoder:YPe});for(const a of this._query.values())i=a.append(i);let o=new va;t.accept&&(o=o.append("Accept",t.accept));for(const a of this._header.values())o=a.append(o);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(o=o.set("Content-Type",this._bodyContentType)),new mh(this.method.toUpperCase(),r,this._bodyContent,{params:i,headers:o,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let QPe=(()=>{class n extends Ld{constructor(e,r){super(e,r)}count$Response(e,r){const i=new br(this.rootUrl,n.DiskDetailedStatsControllerCountPath,"get");return e&&i.query("where",e.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}count(e,r){return this.count$Response(e,r).pipe(R(i=>i.body))}findLatest$Response(e,r){const i=new br(this.rootUrl,n.DiskDetailedStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findLatest(e,r){return this.findLatest$Response(e,r).pipe(R(i=>i.body))}findById$Response(e,r){const i=new br(this.rootUrl,n.DiskDetailedStatsControllerFindByIdPath,"get");return e&&(i.path("id",e.id,{}),i.query("filter",e.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findById(e,r){return this.findById$Response(e,r).pipe(R(i=>i.body))}find$Response(e,r){const i=new br(this.rootUrl,n.DiskDetailedStatsControllerFindPath,"get");return e&&i.query("filter",e.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}find(e,r){return this.find$Response(e,r).pipe(R(i=>i.body))}}return n.DiskDetailedStatsControllerCountPath="/disk-detailed-stats/count",n.DiskDetailedStatsControllerFindLatestPath="/disk-detailed-stats/latest",n.DiskDetailedStatsControllerFindByIdPath="/disk-detailed-stats/{id}",n.DiskDetailedStatsControllerFindPath="/disk-detailed-stats",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),iK=(()=>{class n extends Ld{constructor(e,r){super(e,r)}count$Response(e,r){const i=new br(this.rootUrl,n.DiskStatsControllerCountPath,"get");return e&&i.query("where",e.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}count(e,r){return this.count$Response(e,r).pipe(R(i=>i.body))}findLatest$Response(e,r){const i=new br(this.rootUrl,n.DiskStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findLatest(e,r){return this.findLatest$Response(e,r).pipe(R(i=>i.body))}findById$Response(e,r){const i=new br(this.rootUrl,n.DiskStatsControllerFindByIdPath,"get");return e&&(i.path("id",e.id,{}),i.query("filter",e.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findById(e,r){return this.findById$Response(e,r).pipe(R(i=>i.body))}find$Response(e,r){const i=new br(this.rootUrl,n.DiskStatsControllerFindPath,"get");return e&&i.query("filter",e.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}find(e,r){return this.find$Response(e,r).pipe(R(i=>i.body))}}return n.DiskStatsControllerCountPath="/disk-stats/count",n.DiskStatsControllerFindLatestPath="/disk-stats/latest",n.DiskStatsControllerFindByIdPath="/disk-stats/{id}",n.DiskStatsControllerFindPath="/disk-stats",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),eOe=(()=>{class n extends Ld{constructor(e,r){super(e,r)}health$Response(e,r){const i=new br(this.rootUrl,n.HealthControllerHealthPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}health(e,r){return this.health$Response(e,r).pipe(R(i=>i.body))}live$Response(e,r){const i=new br(this.rootUrl,n.HealthControllerLivePath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}live(e,r){return this.live$Response(e,r).pipe(R(i=>i.body))}ready$Response(e,r){const i=new br(this.rootUrl,n.HealthControllerReadyPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}ready(e,r){return this.ready$Response(e,r).pipe(R(i=>i.body))}}return n.HealthControllerHealthPath="/health",n.HealthControllerLivePath="/live",n.HealthControllerReadyPath="/ready",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tOe=(()=>{class n extends Ld{constructor(e,r){super(e,r)}count$Response(e,r){const i=new br(this.rootUrl,n.InstanceDetailedStatsControllerCountPath,"get");return e&&i.query("where",e.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}count(e,r){return this.count$Response(e,r).pipe(R(i=>i.body))}findLatest$Response(e,r){const i=new br(this.rootUrl,n.InstanceDetailedStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findLatest(e,r){return this.findLatest$Response(e,r).pipe(R(i=>i.body))}findById$Response(e,r){const i=new br(this.rootUrl,n.InstanceDetailedStatsControllerFindByIdPath,"get");return e&&(i.path("id",e.id,{}),i.query("filter",e.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findById(e,r){return this.findById$Response(e,r).pipe(R(i=>i.body))}find$Response(e,r){const i=new br(this.rootUrl,n.InstanceDetailedStatsControllerFindPath,"get");return e&&i.query("filter",e.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}find(e,r){return this.find$Response(e,r).pipe(R(i=>i.body))}}return n.InstanceDetailedStatsControllerCountPath="/instance-detailed-stats/count",n.InstanceDetailedStatsControllerFindLatestPath="/instance-detailed-stats/latest",n.InstanceDetailedStatsControllerFindByIdPath="/instance-detailed-stats/{id}",n.InstanceDetailedStatsControllerFindPath="/instance-detailed-stats",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oK=(()=>{class n extends Ld{constructor(e,r){super(e,r)}count$Response(e,r){const i=new br(this.rootUrl,n.InstanceStatsControllerCountPath,"get");return e&&i.query("where",e.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}count(e,r){return this.count$Response(e,r).pipe(R(i=>i.body))}findLatest$Response(e,r){const i=new br(this.rootUrl,n.InstanceStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findLatest(e,r){return this.findLatest$Response(e,r).pipe(R(i=>i.body))}findById$Response(e,r){const i=new br(this.rootUrl,n.InstanceStatsControllerFindByIdPath,"get");return e&&(i.path("id",e.id,{}),i.query("filter",e.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findById(e,r){return this.findById$Response(e,r).pipe(R(i=>i.body))}find$Response(e,r){const i=new br(this.rootUrl,n.InstanceStatsControllerFindPath,"get");return e&&i.query("filter",e.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}find(e,r){return this.find$Response(e,r).pipe(R(i=>i.body))}}return n.InstanceStatsControllerCountPath="/instance-stats/count",n.InstanceStatsControllerFindLatestPath="/instance-stats/latest",n.InstanceStatsControllerFindByIdPath="/instance-stats/{id}",n.InstanceStatsControllerFindPath="/instance-stats",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nOe=(()=>{class n extends Ld{constructor(e,r){super(e,r)}count$Response(e,r){const i=new br(this.rootUrl,n.NetworkBandwidthDetailedStatsControllerCountPath,"get");return e&&i.query("where",e.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}count(e,r){return this.count$Response(e,r).pipe(R(i=>i.body))}findLatest$Response(e,r){const i=new br(this.rootUrl,n.NetworkBandwidthDetailedStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findLatest(e,r){return this.findLatest$Response(e,r).pipe(R(i=>i.body))}findById$Response(e,r){const i=new br(this.rootUrl,n.NetworkBandwidthDetailedStatsControllerFindByIdPath,"get");return e&&(i.path("id",e.id,{}),i.query("filter",e.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findById(e,r){return this.findById$Response(e,r).pipe(R(i=>i.body))}find$Response(e,r){const i=new br(this.rootUrl,n.NetworkBandwidthDetailedStatsControllerFindPath,"get");return e&&i.query("filter",e.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}find(e,r){return this.find$Response(e,r).pipe(R(i=>i.body))}}return n.NetworkBandwidthDetailedStatsControllerCountPath="/network-bandwidth-detailed-stats/count",n.NetworkBandwidthDetailedStatsControllerFindLatestPath="/network-bandwidth-detailed-stats/latest",n.NetworkBandwidthDetailedStatsControllerFindByIdPath="/network-bandwidth-detailed-stats/{id}",n.NetworkBandwidthDetailedStatsControllerFindPath="/network-bandwidth-detailed-stats",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aK=(()=>{class n extends Ld{constructor(e,r){super(e,r)}count$Response(e,r){const i=new br(this.rootUrl,n.NetworkBandwidthStatsControllerCountPath,"get");return e&&i.query("where",e.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}count(e,r){return this.count$Response(e,r).pipe(R(i=>i.body))}findLatest$Response(e,r){const i=new br(this.rootUrl,n.NetworkBandwidthStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findLatest(e,r){return this.findLatest$Response(e,r).pipe(R(i=>i.body))}findById$Response(e,r){const i=new br(this.rootUrl,n.NetworkBandwidthStatsControllerFindByIdPath,"get");return e&&(i.path("id",e.id,{}),i.query("filter",e.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findById(e,r){return this.findById$Response(e,r).pipe(R(i=>i.body))}find$Response(e,r){const i=new br(this.rootUrl,n.NetworkBandwidthStatsControllerFindPath,"get");return e&&i.query("filter",e.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}find(e,r){return this.find$Response(e,r).pipe(R(i=>i.body))}}return n.NetworkBandwidthStatsControllerCountPath="/network-bandwidth-stats/count",n.NetworkBandwidthStatsControllerFindLatestPath="/network-bandwidth-stats/latest",n.NetworkBandwidthStatsControllerFindByIdPath="/network-bandwidth-stats/{id}",n.NetworkBandwidthStatsControllerFindPath="/network-bandwidth-stats",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rOe=(()=>{class n extends Ld{constructor(e,r){super(e,r)}count$Response(e,r){const i=new br(this.rootUrl,n.NetworkIpaddressDetailedStatsControllerCountPath,"get");return e&&i.query("where",e.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}count(e,r){return this.count$Response(e,r).pipe(R(i=>i.body))}findLatest$Response(e,r){const i=new br(this.rootUrl,n.NetworkIpaddressDetailedStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findLatest(e,r){return this.findLatest$Response(e,r).pipe(R(i=>i.body))}findById$Response(e,r){const i=new br(this.rootUrl,n.NetworkIpaddressDetailedStatsControllerFindByIdPath,"get");return e&&(i.path("id",e.id,{}),i.query("filter",e.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findById(e,r){return this.findById$Response(e,r).pipe(R(i=>i.body))}find$Response(e,r){const i=new br(this.rootUrl,n.NetworkIpaddressDetailedStatsControllerFindPath,"get");return e&&i.query("filter",e.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}find(e,r){return this.find$Response(e,r).pipe(R(i=>i.body))}}return n.NetworkIpaddressDetailedStatsControllerCountPath="/network-ipaddress-detailed-stats/count",n.NetworkIpaddressDetailedStatsControllerFindLatestPath="/network-ipaddress-detailed-stats/latest",n.NetworkIpaddressDetailedStatsControllerFindByIdPath="/network-ipaddress-detailed-stats/{id}",n.NetworkIpaddressDetailedStatsControllerFindPath="/network-ipaddress-detailed-stats",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),iOe=(()=>{class n extends Ld{constructor(e,r){super(e,r)}count$Response(e,r){const i=new br(this.rootUrl,n.NetworkIpaddressStatsControllerCountPath,"get");return e&&i.query("where",e.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}count(e,r){return this.count$Response(e,r).pipe(R(i=>i.body))}findLatest$Response(e,r){const i=new br(this.rootUrl,n.NetworkIpaddressStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findLatest(e,r){return this.findLatest$Response(e,r).pipe(R(i=>i.body))}findById$Response(e,r){const i=new br(this.rootUrl,n.NetworkIpaddressStatsControllerFindByIdPath,"get");return e&&(i.path("id",e.id,{}),i.query("filter",e.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}findById(e,r){return this.findById$Response(e,r).pipe(R(i=>i.body))}find$Response(e,r){const i=new br(this.rootUrl,n.NetworkIpaddressStatsControllerFindPath,"get");return e&&i.query("filter",e.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}find(e,r){return this.find$Response(e,r).pipe(R(i=>i.body))}}return n.NetworkIpaddressStatsControllerCountPath="/network-ipaddress-stats/count",n.NetworkIpaddressStatsControllerFindLatestPath="/network-ipaddress-stats/latest",n.NetworkIpaddressStatsControllerFindByIdPath="/network-ipaddress-stats/{id}",n.NetworkIpaddressStatsControllerFindPath="/network-ipaddress-stats",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oOe=(()=>{class n extends Ld{constructor(e,r){super(e,r)}ping$Response(e,r){const i=new br(this.rootUrl,n.PingControllerPingPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(Te(o=>o instanceof Le),R(o=>o))}ping(e,r){return this.ping$Response(e,r).pipe(R(i=>i.body))}}return n.PingControllerPingPath="/ping",n.\u0275fac=function(e){return new(e||n)(Pe(Ql),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var A1;let ZS=(A1=class{constructor(t,e,r){this.instanceStats=t,this.diskStats=e,this.networkBandwidthStats=r,this.instanceAndMemoryChart$={title:"INSTANCES & MEMORY",tooltip:"Description (in progress)",id:"vm_chart_1",showTabs:!1,height:270,data:null,data$:null},this.diskAndSpaceChart$={title:"DISKS & STORAGE",tooltip:"Description (in progress)",id:"vm_chart_2",showTabs:!1,height:270,data:null,data$:null},this.ipAddressChart$={title:"IP ADDRESSES",tooltip:"Description (in progress)",id:"vm_chart_3",showTabs:!1,height:270,data:null,data$:null},this.networkUtilizationHistoryChart$={title:"STORE NETWORK UTILIZATION",type:"cloud",yAxisName:"# of Transactions",tooltip:"Description (in progress)",id:"vm_chart_4",showTabs:!0,height:170,showGrid:!0,maxTick:{x:2,y:1},data:null,xAxisName:"Date",xType:"time",showYAxisLabel:!0,showXAxisLabel:!0,lineColor:"#1db0a9"},this.storageUtilizationHistoryChart$={title:"STORAGE UTILIZATION",type:"cloud",yAxisName:"# of Transactions",tooltip:"Description (in progress)",id:"vm_chart_5",showTabs:!0,height:170,showGrid:!0,maxTick:{x:2,y:1},data:null,xAxisName:"Date",xType:"time",showYAxisLabel:!0,showXAxisLabel:!0,lineColor:"#1db0a9"},this.instanceAndMemoryHistoryChart$={title:"INSTANCES & MEMORY",type:"cloud",yAxisName:"# of Transactions",tooltip:"Description (in progress)",id:"vm_chart_6",showTabs:!0,height:170,showGrid:!0,maxTick:{x:2,y:1},data:null,xAxisName:"Date",xType:"time",showYAxisLabel:!0,showXAxisLabel:!0,lineColor:"#1db0a9"}}bindInstanceAndMemoryChart(){this.instanceStats.findLatest().pipe(Qe(this)).subscribe(t=>{const e={title:{text:"INSTANCES",subText:this.nFormatter(t?.map(r=>parseFloat(r.count?.toString()??"0")).reduce((r,i)=>r+i),0)?.toLocaleString()},subTitle:{text:"MEMORY",subText:this.formatBytes(t?.map(r=>parseFloat(r.memory?.toString()??"0")).reduce((r,i)=>r+i),2)?.toLocaleString()},data:t?.map(r=>({value:r?.count,name:r?.name}))};this.instanceAndMemoryChart$.data$=we(e)})}bindDiskAndSpaceChart(){this.diskStats.findLatest().pipe(Qe(this)).subscribe(t=>{const e={title:{text:"DISKS",subText:this.nFormatter(t?.map(r=>parseFloat(r.count?.toString()??"0")).reduce((r,i)=>r+i),0)?.toLocaleString()},subTitle:{text:"STORAGE",subText:this.formatBytes(t?.map(r=>parseFloat(r.size?.toString()??"0")).reduce((r,i)=>r+i),2)?.toLocaleString()},data:t?.map(r=>({value:r?.count,name:r?.name}))};this.diskAndSpaceChart$.data$=we(e)})}bindIpAddressChart(){this.networkBandwidthStats.findLatest().pipe(Qe(this)).subscribe(t=>{const e={title:{text:"IP ADDRESSES",subText:this.nFormatter(t?.map(r=>parseFloat(r.count?.toString()??"0")).reduce((r,i)=>r+i),0)?.toLocaleString()},subTitle:{text:"AVAILABLE",subText:this.nFormatter(t?.map(r=>parseFloat(r.count?.toString()??"0")).reduce((r,i)=>r+i),0)?.toLocaleString()},data:t?.map(r=>({value:r?.count,name:r?.name}))};this.ipAddressChart$.data$=we(e)})}bindNetworkUtilizationHistoryChart(t){this.networkBandwidthStats.find({filter:this.prepareDateFilter(t)}).pipe(Qe(this)).subscribe(e=>{const r=gd.groupBy(e,"date"),i=Object.keys(r),o=[];i?.forEach(s=>{o.push({date:s,value:r?.[s]?.map(l=>parseFloat(l.bandwidth?.toString()??"0")).reduce((l,c)=>l+c)})}),this.networkUtilizationHistoryChart$.data$=we({series:[{name:"Bandwidth Usage",data:o}]})})}bindStorageUtilizationHistoryChart(t){this.diskStats.find({filter:this.prepareDateFilter(t)}).pipe(Qe(this)).subscribe(e=>{const r=gd.groupBy(e,"date"),i=Object.keys(r),o=[];i?.forEach(s=>{o.push({date:s,value:r?.[s]?.map(l=>parseFloat(l.sizeUsage?.toString()??"0")).reduce((l,c)=>l+c)})}),this.storageUtilizationHistoryChart$.data$=we({series:[{name:"Memory Usage",data:o}]})})}bindInstanceAndMemoryHistoryChart(t){this.instanceStats.find({filter:this.prepareDateFilter(t)}).pipe(Qe(this)).subscribe(e=>{const r=gd.groupBy(e,"date"),i=Object.keys(r),o=[];i?.forEach(s=>{o.push({date:s,value:r?.[s]?.map(l=>parseFloat(l.memoryUsage?.toString()??"0")).reduce((l,c)=>l+c)})}),this.instanceAndMemoryHistoryChart$.data$=we({series:[{name:"Storage Usage",data:o}]})})}formatBytes(t,e=2){if(!+t)return"0 Bytes";const i=e<0?0:e,a=Math.floor(Math.log(t)/Math.log(1e3));return`${parseFloat((t/Math.pow(1e3,a)).toFixed(i))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][a]}`}nFormatter(t,e){const o=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}].slice().reverse().find(function(a){return t>=a.value});return o?(t/o.value).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+o.symbol:"0"}prepareDateFilter(t){const{from:e,till:r}=t??{from:void 0,till:void 0};let i={};return e&&r&&(i={"filter[where][date][between][0]":new Date(e).toISOString(),"filter[where][date][between][1]":new Date(r).toISOString()}),i}},A1.\u0275fac=function(t){return new(t||A1)(Pe(oK),Pe(iK),Pe(aK))},A1.\u0275prov=We({token:A1,factory:A1.\u0275fac}),A1);ZS=ke([en()],ZS);const aOe=JSON.parse('{"categories":[{"name":"Store Dynamic API","tableUrl":"https://api.baserow.io/api/database/rows/table/119876/?user_field_names=true"}]}');var D1;let OL=(D1=class{constructor(t){this.http=t,this.config=aOe}parseSpecFromURL(t){var e=this;return kt(function*(){return new Promise(function(){var r=kt(function*(i,o){try{e.getDataFromBaserow(t.tableUrl).pipe(Qe(e)).subscribe(a=>{i(a)})}catch(a){console.error(a),o(a)}});return function(i,o){return r.apply(this,arguments)}}())})()}getDataFromBaserow(t){const e=(new va).append("Authorization",`Token ${xe.baserow.oracleKey}`).append("Content-Type","application/json");return this.http.get(t,{headers:e}).pipe(Qe(this))}},D1.\u0275fac=function(t){return new(t||D1)(Pe(nr))},D1.\u0275prov=We({token:D1,factory:D1.\u0275fac,providedIn:"root"}),D1);var I1;OL=ke([en({checkProperties:!0})],OL);let SL=(I1=class{constructor(){this.transactionList$=null,this.trendChart$={title:"TRANSACTION HISTORY",type:"transaction",yAxisName:"# of Transactions",tooltip:"Description (in progress)"}}bindTransactionList(t){let i=[{key:"status",label:"Status",type:"progress-status",tooltip:"Description (in progress)",width:"90px"},{key:"from",label:"From",type:"hash",trimSize:12,trimSizeMobile:14,link:"/transactions/account-detail",tooltip:"Description (in progress)",width:"140px"},{key:"to",label:"To",type:"hash",trimSize:12,trimSizeMobile:14,link:"/transactions/account-detail",tooltip:"Description (in progress)",width:"140px"},{key:"amount",label:"STORE",type:"short-number",decimal:{count:8,force:!0},valueIcon:"store-logo-only",tooltip:"Description (in progress)",width:"160px"},{key:"feeSurge",label:"\u{1f4c8} Surge",type:"number",symbol:"x",cssClass:"no-space",tooltip:"Description (in progress)",width:"115px"},{key:"fee",label:"Blockspace Fee",valueIcon:"store-logo-only",type:"number",symbol:"000000 bits",tooltip:"Description (in progress)",width:"170px"},{key:"burntFeeWithPercent",label:"\u{1f525} Burnt Fee",type:"string",symbol:"(0.00%)",symbolCssClass:"text-light",tooltip:"Description (in progress)",width:"200px"},{key:"nonce",label:"Nonce",type:"number",tooltip:"Description (in progress)",width:"90px"},{key:"time",label:"Age",type:"time",tooltip:"Description (in progress)",width:"130px"},{key:"signature",label:"Signature",type:"hash",trimSize:12,trimSizeMobile:14,tooltip:"Description (in progress)",width:"140px"},{key:"transactionId",label:"Transaction ID",type:"hash",link:"/transactions/detail",trimSize:12,trimSizeMobile:10,tooltip:"Description (in progress)",width:"180px"}];t?.status&&(i=i?.filter(o=>"status"!==o?.key)),this.transactionList$={title:"TRANSACTIONS",type:"transaction",columns:i,serviceAPIUrl:"/consensus/transactions",map:o=>o?.map(a=>(a.feeSurge=0,a.burntFee=0,a.amount=a?.amount||1,a.nonce=a?.nonce||1,a.status={...a,txnTime:null},a.burntFeeWithPercent="000000 bits",a))}}},I1.\u0275fac=function(t){return new(t||I1)},I1.\u0275prov=We({token:I1,factory:I1.\u0275fac}),I1);SL=ke([en()],SL);const zs=new Ee(KY),$C={},sK=ft.from(0),lK=ft.from(-1);function cK(n,t,e,r){const i={fault:t,operation:e};return void 0!==r&&(i.value=r),zs.throwError(n,Ee.errors.NUMERIC_FAULT,i)}let UC="0";for(;UC.length<256;)UC+=UC;function TL(n){if("number"!=typeof n)try{n=ft.from(n).toNumber()}catch{}return"number"==typeof n&&n>=0&&n<=256&&!(n%1)?"1"+UC.substring(0,n):zs.throwArgumentError("invalid decimal size","decimals",n)}function YS(n,t){null==t&&(t=0);const e=TL(t),r=(n=ft.from(n)).lt(sK);r&&(n=n.mul(lK));let i=n.mod(e).toString();for(;i.length2&&zs.throwArgumentError("too many decimal points","value",n);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>e.length-1&&cK("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==t[a]?l:(typeof t[a]!==s&&zs.throwArgumentError("invalid fixed format ("+a+" not "+s+")","format."+a,t[a]),t[a]);e=o("signed","boolean",e),r=o("width","number",r),i=o("decimals","number",i)}return r%8&&zs.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&zs.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new r2($C,e,r,i)}}class $a{constructor(t,e,r,i){t!==$C&&zs.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Ee.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&zs.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=Fd(this._value,this.format.decimals),r=Fd(t._value,t.format.decimals);return $a.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=Fd(this._value,this.format.decimals),r=Fd(t._value,t.format.decimals);return $a.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=Fd(this._value,this.format.decimals),r=Fd(t._value,t.format.decimals);return $a.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=Fd(this._value,this.format.decimals),r=Fd(t._value,t.format.decimals);return $a.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=$a.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(uK.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=$a.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(uK.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&zs.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=$a.from("1"+UC.substring(0,t),this.format),i=sOe.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){return null==t?this._hex:(t%8&&zs.throwArgumentError("invalid byte width","width",t),mo(ft.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return $a.fromString(this._value,t)}static fromValue(t,e,r){return null==r&&null!=e&&!function jxe(n){return null!=n&&(ft.isBigNumber(n)||"number"==typeof n&&n%1==0||"string"==typeof n&&!!n.match(/^-?[0-9]+$/)||Ri(n)||"bigint"==typeof n||X0(n))}(e)&&(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),$a.fromString(YS(t,e),r2.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=r2.from(e),i=Fd(t,r.decimals);!r.signed&&i.lt(sK)&&cK("unsigned value cannot be negative","overflow","value",t);let o=null;r.signed?o=i.toTwos(r.width).toHexString():(o=i.toHexString(),o=mo(o,r.width/8));const a=YS(i,r.decimals);return new $a($C,o,a,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=r2.from(e);if(xn(t).length>r.width/8)throw new Error("overflow");let i=ft.from(t);r.signed&&(i=i.fromTwos(r.width));const o=i.toTwos((r.signed?0:1)+r.width).toHexString(),a=YS(i,r.decimals);return new $a($C,o,a,r)}static from(t,e){if("string"==typeof t)return $a.fromString(t,e);if(X0(t))return $a.fromBytes(t,e);try{return $a.fromValue(t,0,e)}catch(r){if(r.code!==Ee.errors.INVALID_ARGUMENT)throw r}return zs.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const uK=$a.from(1),sOe=$a.from("0.5"),dK=new Ee("units/5.7.0"),hK=["wei","kwei","mwei","gwei","szabo","finney","ether"];function AL(n,t){if("string"==typeof t){const e=hK.indexOf(t);-1!==e&&(t=3*e)}return YS(n,t??18)}function fK(n,t){if("string"!=typeof n&&dK.throwArgumentError("value must be a string","value",n),"string"==typeof t){const e=hK.indexOf(t);-1!==e&&(t=3*e)}return Fd(n,t??18)}function o2(n){return AL(n,18)}const XS="abi/5.7.0",DL=new Ee(XS);class Uh{constructor(t,e,r,i){this.name=t,this.type=e,this.localName=r,this.dynamic=i}_throwError(t,e){DL.throwArgumentError(t,this.localName,e)}}class IL{constructor(t){In(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return yl(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(Lu(t._data))}writeBytes(t){let e=xn(t);const r=e.length%this.wordSize;return r&&(e=Lu([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=xn(ft.from(t));return e.length>this.wordSize&&DL.throwError("value out-of-bounds",Ee.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=Lu([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class KS{constructor(t,e,r,i){In(this,"_data",xn(t)),In(this,"wordSize",e||32),In(this,"_coerceFunc",r),In(this,"allowLoose",i),this._offset=0}get data(){return wn(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):KS.coerce(t,e)}_peekBytes(t,e,r){let i=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?i=e:DL.throwError("data out-of-bounds",Ee.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(t){return new KS(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return ft.from(this.readBytes(this.wordSize))}}class cOe extends Uh{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=Fa(e)}catch(r){this._throwError(r.message,e)}return t.writeValue(e)}decode(t){return Fa(mo(t.readValue().toHexString(),20))}}class uOe extends Uh{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const a2=new Ee(XS);function pK(n,t,e){let r=null;if(Array.isArray(e))r=e;else if(e&&"object"==typeof e){let l={};r=t.map(c=>{const u=c.localName;return u||a2.throwError("cannot encode object for signature with missing names",Ee.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:e}),l[u]&&a2.throwError("cannot encode object for signature with duplicate names",Ee.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:e}),l[u]=!0,e[u]})}else a2.throwArgumentError("invalid tuple value","tuple",e);t.length!==r.length&&a2.throwArgumentError("types/value length mismatch","tuple",e);let i=new IL(n.wordSize),o=new IL(n.wordSize),a=[];t.forEach((l,c)=>{let u=r[c];if(l.dynamic){let d=o.length;l.encode(o,u);let p=i.writeUpdatableValue();a.push(g=>{p(g+d)})}else l.encode(i,u)}),a.forEach(l=>{l(i.length)});let s=n.appendWriter(i);return s+=n.appendWriter(o),s}function gK(n,t){let e=[],r=n.subReader(0);t.forEach(o=>{let a=null;if(o.dynamic){let s=n.readValue(),l=r.subReader(s.toNumber());try{a=o.decode(l)}catch(c){if(c.code===Ee.errors.BUFFER_OVERRUN)throw c;a=c,a.baseType=o.name,a.name=o.localName,a.type=o.type}}else try{a=o.decode(n)}catch(s){if(s.code===Ee.errors.BUFFER_OVERRUN)throw s;a=s,a.baseType=o.name,a.name=o.localName,a.type=o.type}null!=a&&e.push(a)});const i=t.reduce((o,a)=>{const s=a.localName;return s&&(o[s]||(o[s]=0),o[s]++),o},{});t.forEach((o,a)=>{let s=o.localName;if(!s||1!==i[s]||("length"===s&&(s="_length"),null!=e[s]))return;const l=e[a];l instanceof Error?Object.defineProperty(e,s,{enumerable:!0,get:()=>{throw l}}):e[s]=l});for(let o=0;o{throw a}})}return Object.freeze(e)}class dOe extends Uh{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;rt._data.length&&a2.throwError("insufficient data length",Ee.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let r=[];for(let i=0;i{a.dynamic&&(r=!0),i.push(a.type)}),super("tuple","tuple("+i.join(",")+")",e,r),this.coders=t}defaultValue(){const t=[];this.coders.forEach(r=>{t.push(r.defaultValue())});const e=this.coders.reduce((r,i)=>{const o=i.localName;return o&&(r[o]||(r[o]=0),r[o]++),r},{});return this.coders.forEach((r,i)=>{let o=r.localName;!o||1!==e[o]||("length"===o&&(o="_length"),null==t[o]&&(t[o]=t[i]))}),Object.freeze(t)}encode(t,e){return pK(t,this.coders,e)}decode(t){return t.coerce(this.name,gK(t,this.coders))}}const xr=new Ee(XS),E1={};let vK={calldata:!0,memory:!0,storage:!0},_Oe={calldata:!0,memory:!0};function QS(n,t){if("bytes"===n||"string"===n){if(vK[t])return!0}else if("address"===n){if("payable"===t)return!0}else if((n.indexOf("[")>=0||"tuple"===n)&&_Oe[t])return!0;return(vK[t]||"payable"===t)&&xr.throwArgumentError("invalid modifier","name",t),!1}function eT(n,t){for(let e in t)In(n,e,t[e])}const Oi=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),bOe=new RegExp(/^(.*)\[([0-9]*)\]$/);class Ua{constructor(t,e){t!==E1&&xr.throwError("use fromString",Ee.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),eT(this,e);let r=this.type.match(bOe);eT(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:Ua.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=Oi.sighash),Oi[t]||xr.throwArgumentError("invalid format type","format",t),t===Oi.json){let r={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(r.indexed=this.indexed),this.components&&(r.components=this.components.map(i=>JSON.parse(i.format(t)))),JSON.stringify(r)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==Oi.sighash&&(e+=this.type),e+="("+this.components.map(r=>r.format(t)).join(t===Oi.full?", ":",")+")"):e+=this.type,t!==Oi.sighash&&(!0===this.indexed&&(e+=" indexed"),t===Oi.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?Ua.fromString(t,e):Ua.fromObject(t)}static fromObject(t){return Ua.isParamType(t)?t:new Ua(E1,{name:t.name||null,type:s2(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(Ua.fromObject):null})}static fromString(t,e){return function r(i){return Ua.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}(function yOe(n,t){let e=n;function r(s){xr.throwArgumentError(`unexpected character at position ${s}`,"param",n)}function i(s){let l={type:"",name:"",parent:s,state:{allowType:!0}};return t&&(l.indexed=!1),l}n=n.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let s=0;sthis._getCoder(r)),t.name);case"":return new gOe(t.name)}let e=t.type.match(MOe);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&tT.throwArgumentError("invalid "+e[1]+" bit length","param",t),new mOe(r/8,"int"===e[1],t.name)}if(e=t.type.match(xOe),e){let r=parseInt(e[1]);return(0===r||r>32)&&tT.throwArgumentError("invalid bytes length","param",t),new pOe(r,t.name)}return tT.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new KS(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new IL(this._getWordSize())}getDefaultValue(t){const e=t.map(i=>this._getCoder(Ua.from(i)));return new JS(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&tT.throwError("types/values length mismatch",Ee.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const r=t.map(a=>this._getCoder(Ua.from(a))),i=new JS(r,"_"),o=this._getWriter();return i.encode(o,e),o.data}decode(t,e,r){const i=t.map(a=>this._getCoder(Ua.from(a)));return new JS(i,"_").decode(this._getReader(xn(e),r))}};let wK=(()=>{class n{transform(e){return this.formatBytes(parseInt(e))}formatBytes(e){if(0===e)return"0 Bytes";const s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=bo({name:"formatBytes",type:n,pure:!1}),n})();var Wr,k1;!function(n){let t;var r;let e;(r=t=n.Color||(n.Color={})).White="White",r.Black="Black",r.Gold="Gold",r.Silver="Silver",function(r){r.Left="Left",r.Right="Right",r.Middle="Middle"}(e=n.Placement||(n.Placement={}))}(Wr||(Wr={}));let EL=(k1=class{constructor(t){this.nftPayFormDummy={name:"Title in 100 characters or less",description:"Lorem Ipsum in 1,000 characters or less",fileSize:556819,supply:1,supplyIndex:1,mintPrice:1,incentive:{totalDiscount:.0012734123805000002,storeStamp:{color:Wr.Color.Black,placement:Wr.Placement.Left,discountPercentage:.1,discount:.0006367061902500001},nftAddressStamp:{color:Wr.Color.Black,placement:Wr.Placement.Middle,discountPercentage:.05,discount:.00031835309512500006},supplyCountStamp:{color:Wr.Color.Silver,placement:Wr.Placement.Right,discountPercentage:.05,discount:.00031835309512500006}},image:"../../assets/nft/store-it.jpg",size:558243,storeChainVMFee:0,totalFees:0,id:"showcase",network:Vs.STORE},this.whiteIncentive={totalDiscount:.0012734123805000002,storeStamp:{color:Wr.Color.White,placement:Wr.Placement.Left,discountPercentage:.1,discount:.0006367061902500001},nftAddressStamp:{color:Wr.Color.White,placement:Wr.Placement.Middle,discountPercentage:.05,discount:.00031835309512500006},supplyCountStamp:{color:Wr.Color.Gold,placement:Wr.Placement.Right,discountPercentage:.05,discount:.00031835309512500006}},this.prepareDummyNFTList(t??4)}prepareDummyNFTList(t){const e=JSON.parse(JSON.stringify(Array(6).fill(this.nftPayFormDummy)));e[0].supply=1,e[0].mintPrice=5,e[0].image="../../assets/nft/nft-1.jpg",e[1].supply=3,e[1].mintPrice=4,e[1].image="../../assets/nft/nft-2.jpg",e[1].incentive=this.whiteIncentive,e[2].supply=1,e[2].mintPrice=3,e[2].image="../../assets/nft/nft-3.jpg",e[3].supply=10,e[3].mintPrice=2,e[3].image="../../assets/nft/nft-4.jpg",e[3].incentive=this.whiteIncentive,e[4].supply=1,e[4].mintPrice=1,e[4].image="../../assets/nft/nft-11.jpg",e[4].incentive=this.whiteIncentive,e[5].supply=1,e[5].mintPrice=.5,e[5].image="../../assets/nft/store-it.jpg",e[5].incentive=this.whiteIncentive,this.latestNFTStored=e?.slice(0,t);const r=JSON.parse(JSON.stringify(Array(6).fill(this.nftPayFormDummy)));r[0].supplyIndex=3,r[0].supply=5,r[0].mintPrice=5,r[0].lastSale=4,r[0].image="../../assets/nft/nft-5.jpg",r[1].supplyIndex=1,r[1].supply=1,r[1].mintPrice=4,r[1].lastSale=3,r[1].image="../../assets/nft/nft-6.jpg",r[1].incentive=this.whiteIncentive,r[2].supplyIndex=26,r[2].supply=40,r[2].mintPrice=3,r[2].lastSale=2,r[2].image="../../assets/nft/nft-7.jpg",r[3].supplyIndex=4,r[3].supply=10,r[3].mintPrice=2,r[3].lastSale=1,r[3].image="../../assets/nft/nft-8.jpg",r[3].incentive=this.whiteIncentive,r[4].supplyIndex=1,r[4].supply=1,r[4].mintPrice=1,r[4].image="../../assets/nft/nft-9.jpg",r[5].supplyIndex=1,r[5].supply=1,r[5].mintPrice=.5,r[5].image="../../assets/nft/nft-10.jpg",this.latestNFTTraded=r?.slice(0,t)}},k1.\u0275fac=function(t){return new(t||k1)(Pe(Number))},k1.\u0275prov=We({token:k1,factory:k1.\u0275fac}),k1);var R1;EL=ke([en()],EL);let kL=(R1=class extends SL{constructor(t,e){super(),this.http=t,this.sharedStatsService=e,this.nftDummy=new EL(4),this.total$=null,this.formatBytes=new wK,this.storePriceUSD=0,this.storePriceUSD=this.sharedStatsService.storePriceUSD}bindSTORETransactionDetail(t,e,r){const o={label:"Mint Price",tooltip:"Description (in progress)",type:"number",valueIcon:"store-logo-only",value:e?.mintPrice||0,symbol:"STORE",subItems:{type:"currency",value:(e?.mintPrice||0)*this.storePriceUSD,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},a={label:"Transaction Value",tooltip:"Description (in progress)",type:"number",valueIcon:"store-logo-only",value:t?.amount||0,symbol:"STORE",subItems:{type:"number",value:(t?.amount||0)*xe.one$STOREEqualsToOneBit,preSymbol:"(",symbol:"bits)",cssClass:"text-black-light",subItems:{type:"currency",value:t?.amountInUSD||0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}},l={label:"\u{1f4c8} Surge",tooltip:"Description (in progress)",type:"number",value:t?.feeSurge||0,symbol:"x",cssClass:"text-black-light no-space-me"},c={label:"Blockspace Fee",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"number",value:t?.fee,symbol:"000000 bits",cssClass:"text-black-light"},u={label:"Cloud VM Fees",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"number",value:Math.round((e?.storeChainVMFee??0)*xe.one$STOREEqualsToOneBit),symbol:"bits",cssClass:"text-black-light",subItems:{type:"currency",value:(e?.storeChainVMFee||0)*this.storePriceUSD,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},d={label:"\u{1f525} Burnt Fee",tooltip:"Description (in progress)",type:"number",value:t?.burntFee,symbol:"000000 bits",cssClass:"text-black-light",subItems:{type:"percent",value:t?.burntFeePercent,cssClass:"text-light",preSymbol:"(",symbol:"0.00%)"}},p={label:"From",tooltip:"Description (in progress)",type:"hash",value:t?.from,link:xe.externalURL.explorer_app+"/transactions/account-detail/"+t?.from,externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",copy:!0,...r},g={label:"To",tooltip:"Description (in progress)",type:"hash",value:t?.to||"00000",cssClass:"text-black-light",link:xe.externalURL.explorer_app+"/transactions/account-detail/"+t?.to,externalLink:!0,openInExistingTab:!0,copy:!0,...r},v={icon:"store-logo-only",label:"Block ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t?.blockId,link:xe.externalURL.explorer_app+"/blocks/detail/"+t?.blockId,externalLink:!0,openInExistingTab:!0},_={icon:"store-logo-only",label:"Transaction ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:t?.transactionId,link:xe.externalURL.explorer_app+"/transactions/detail/"+t?.transactionId,externalLink:!0,openInExistingTab:!0,...r},y={label:"Status",tooltip:"Description (in progress)",type:"string",cssClass:"text-black text-flex-icon",valueIcon:"store-logo-only",value:"Stored Forever",valueTooltip:"Description (in progress)",link:xe.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0},b={label:"Block Time",tooltip:"Description (in progress)",type:"string",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon",value:`${t?.blockTime} ms`},w={label:"Timestamp",tooltip:"Description (in progress)",type:"time",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon align-center",value:t?.time,subItems:{type:"date-time",value:t?.time,preSymbol:"(",symbol:")",cssClass:"text-black-light d-flex-end"}},M={label:"Nonce",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t?.nonce||0},P={label:"Signature",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:t?.hash,...r},N={label:"Forever Stored on",tooltip:"Description (in progress)",type:"string",link:xe.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Cloud"},k={label:"Governed by",tooltip:"Description (in progress)",type:"string",link:xe.externalURL.explorer_app+"/governance",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Governance"},z={label:"Incentivized by",tooltip:"Description (in progress)",type:"string",link:xe.externalURL.explorer_app+"/monetary-policy",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Monetary Policy"},U={label:"Asset ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:`${xe.externalURL.explorer_app}/${Vs.STORE}/showcase`,link:`${xe.externalURL.explorer_app}/${Vs.STORE}/showcase`,externalLink:!0,openInExistingTab:!0},W={label:"NFT Asset",tooltip:"Description (in progress)",type:"asset",cssClass:"text-black-light",value:e},X={label:"Asset Size",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:this.formatBytes.transform(e?.size)||"00.00 MB"},J={icon:"store-logo-only",label:"Contract ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"1x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r};return{asset:W,totalSupply$:{label:"Total Supply",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:e?.supply||1},serialNumber$:{label:"Serial Number",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light gold",preSymbol:"1/",value:e?.supply||1,disabled:!(e?.supplyIndex>1)},mintPrice$:o,value$:a,type$:{label:"Transaction Type",tooltip:"Description (in progress)",type:"string",value:"Mint",cssClass:"text-black-light"},cloudSpaceFees$:u,status$:y,timeStamp$:w,blockTime$:b,feeSurge$:l,blockspaceFee$:c,burntFee$:d,from$:p,to$:g,nonce$:M,signature$:P,transId$:_,blockId$:v,contractId:J,incentiveId:{disabled:!e?.incentive,label:"Incentives ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},distributionId:{disabled:!e?.distribution,label:"Distribution ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},royaltiesId:{disabled:!e?.royalty,label:"Royalties ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},payPerViewId:{disabled:!e?.payPerView,label:"Pay-Per-View ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},tokenId:{label:"Token ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"1x12345"},assetId:U,appId:{label:"App ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"STORE Explorer (1x12345)"},assetSize:X,foreeverStoreOn:N,governedBy:k,incentivizedBy:z,chain:{label:"Blockchain",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",value:"STORE",valueIcon:"store-logo-only"},cloud:{label:"Cloud",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",valueIcon:"store-logo-only",value:"STORE"},totalPrice$:{label:"Total Cost ($USD)",tooltip:"Description (in progress)",type:"currency",value:u?.subItems?.value+o?.subItems?.value,decimal:{count:2,force:!1},cssClass:"text-black-light"},ipfsId:this.prepareIPFSData(t?.url,r),storeId:{label:"STORE ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:`${xe.externalURL.explorer_app}/store/1324`,link:`${xe.externalURL.explorer_app}/store/showcase`,externalLink:!0,openInExistingTab:!0,copy:!0,trimSize:40,trimSizeMobile:30},owner$:{icon:"store-logo-only",label:"NFT Owner",tooltip:"Description (in progress)",type:"hash",value:t?.from,cssClass:"text-black-light",externalLink:!1,copy:!0,...r},redundancy$:{label:"Redundancy",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"5 copies in 5 locations (99.99999999%)"},bft$:{label:"BFT",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"3f + 1 Byzantine Fault Tolerant"},costOfCompute:{label:"Cost Of Compute",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",valueIcon:"store-logo-only",value:"00 bits"}}}bindETHTransactionDetail(t,e,r,i){const o={label:"Mint Price",tooltip:"Description (in progress)",type:"number",valueIcon:"store-logo-only",value:r?.mintPrice||0,symbol:"STORE",subItems:{type:"currency",value:(r?.mintPrice||0)*this.storePriceUSD,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},a=ft.from(e?.gasPrice).toNumber(),s=parseFloat(o2((a*ft.from(e.gasUsed).toNumber()).toString())),l={label:"Transaction Fee",tooltip:"Description (in progress)",type:"short-number",valueIcon:"network_icon/ethereum-eth",value:s||0,symbol:"Ether",decimal:{force:!1,count:14},subItems:{type:"currency",value:e?.usdExRate*s||0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},c={label:"Gas Price",tooltip:"Description (in progress)",valueIcon:"network_icon/ethereum-eth",type:"short-number",value:parseFloat(AL(a,"gwei"))||0,symbol:"Gwei",cssClass:"text-black-light",decimal:{force:!1,count:8},subItems:{type:"short-number",value:parseFloat(o2(a))||0,cssClass:"text-light",preSymbol:"(",symbol:"Ether)",decimal:{force:!1,count:14}}},u={label:"Cloud VM Fees",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"number",value:Math.round((r?.storeChainVMFee??0)*xe.one$STOREEqualsToOneBit),symbol:"bits",cssClass:"text-black-light",subItems:{type:"currency",value:(r?.storeChainVMFee||0)*this.storePriceUSD,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},d={icon:"network_icon/ethereum-eth",label:"NFT Owner",tooltip:"Description (in progress)",type:"hash",value:e?.from,link:`${xe.wallet.ehterscanURL}/address/${e?.from}`,cssClass:"text-black-light",externalLink:!0,copy:!0,...i},p={icon:"network_icon/ethereum-eth",label:"Block ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:ft.from(e?.blockNumber).toBigInt(),link:xe.wallet.ehterscanURL+"/block/"+ft.from(e?.blockNumber).toBigInt(),externalLink:!0},g={icon:"network_icon/ethereum-eth",label:"Transaction ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:e?.hash,link:`${xe.wallet.ehterscanURL}/tx/${e?.hash}`,externalLink:!0,...i},v={label:"Status",tooltip:"Description (in progress)",type:"string",cssClass:"text-black text-flex-icon",valueIcon:"store-logo-only",value:"Stored Forever",valueTooltip:"Description (in progress)",link:xe.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0},_={label:"Timestamp",tooltip:"Description (in progress)",type:"time",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon align-center",value:new Date(1e3*e?.timestamp),disabled:!e?.timestamp,subItems:{type:"date-time",value:new Date(1e3*e?.timestamp),preSymbol:"(",symbol:")",cssClass:"text-black-light d-flex-end"}},y={label:"Forever Stored on",tooltip:"Description (in progress)",type:"string",link:xe.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Cloud"},b={label:"Governed by",tooltip:"Description (in progress)",type:"string",link:xe.externalURL.explorer_app+"/governance",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Governance"},w={label:"Incentivized by",tooltip:"Description (in progress)",type:"string",link:xe.externalURL.explorer_app+"/monetary-policy",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Monetary Policy"},M=this.prepareIPFSData(r.ipfsId,i),P={label:"STORE ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:`${xe.externalURL.explorer_app}/ethereum/${t}`,link:`${xe.externalURL.explorer_app}/ethereum/${t}`,externalLink:!0,copy:!0,trimSize:40,trimSizeMobile:30},N={label:"NFT Asset",tooltip:"Description (in progress)",type:"asset",cssClass:"text-black-light",value:r},k={label:"Asset Size",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:this.formatBytes.transform(r.size)||"00.00 MB"},z={icon:"network_icon/ethereum-eth",label:"Contract ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:xe.contract.address,externalLink:!0,link:`${xe.wallet.ehterscanURL}/address/${xe.contract.address}`,...i};return{asset:N,totalSupply$:{label:"Total Supply",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:r?.supply||1},serialNumber$:{label:"Serial Number",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light gold",preSymbol:`${r?.supplyIndex}/`,value:r?.supply||1,disabled:!(r?.supplyIndex>1)},mintPrice$:o,fee$:l,cloudSpaceFees$:u,status$:v,timeStamp$:_,gasPrice$:c,owner$:d,transId$:g,blockId$:p,contractId:z,incentiveId:{disabled:!r?.incentive,label:"Incentives ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...i},distributionId:{disabled:!r?.distribution,label:"Distribution ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...i},royaltiesId:{disabled:!r?.royalty,label:"Royalties ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...i},payPerViewId:{disabled:!r?.payPerView,label:"Pay-Per-View ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...i},storeId:P,ipfsId:M,appId:{label:"App ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"STORE Explorer (1x00001)"},assetSize:k,foreeverStoreOn:y,governedBy:b,incentivizedBy:w,chain:{label:"Blockchain",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",value:"Ethereum",valueIcon:"network_icon/ethereum-eth"},cloud:{label:"Cloud",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",valueIcon:"store-logo-only",value:"STORE"},totalPrice$:{label:"Total Cost ($USD)",tooltip:"Description (in progress)",type:"short-number",preSymbol:"$",value:u?.subItems?.value+o?.subItems?.value+l?.subItems?.value+c?.subItems?.value,decimal:{count:2,force:!1},cssClass:"text-black-light"},redundancy$:{label:"Redundancy",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"5 copies in 5 locations (99.99999999%)"},bft$:{label:"BFT",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"3f + 1 Byzantine Fault Tolerant"},costOfCompute:{label:"Cost Of Compute",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",valueIcon:"store-logo-only",value:"00 bits"}}}getEthTransactionById(t){var e=this;return kt(function*(){const r=yield e.getETH_TransactionReceiptByHashFromEtherscan(t);if(!r)return{eth_txn:null,eth_txnRecpt:null};const i=yield e.getETH_TransactionByHashFromEtherscan(t);if(!i)return{eth_txn:null,eth_txnRecpt:null};const o=yield e.getETH_BlockByNoFromEtherscan(i?.blockNumber?.toString()),s=(yield e.sharedStatsService.getEtherPrice())||0,l=OOe.decode(["string","string","string"],fs(i?.input,4));return i&&(i.timestamp=ft.from(o?.timestamp).toNumber(),i.usdExRate=s,i.gasUsed=r?.gasUsed,i.data=l,i.logs=r?.logs,i.tokenId=ft.from(r?.logs?.[0]?.topics?.[3]).toNumber()),{eth_txn:i,eth_txnRecpt:r}})()}getMetaData(t,e){var r=this;return kt(function*(){const i=yield r.getFromIPFS(t),a=i?.supply?.find(l=>l.supplyIndex===e)?.ipfsId??i?.supply?.[0]?.ipfsId,s=yield r.getFromIPFS(a);return s.ipfsId=a,s.storeId=i.storeId,{metadata:s,storeId:i.storeId}})()}getFromIPFS(t){var e=this;return kt(function*(){const r=`${xe.ipfs.main_url}/${t}?x-ipfs-companion-no-redirect`;return yield go(e.http.get(r))})()}getETH_TransactionByHashFromCloudflare(t){var e=this;return kt(function*(){const r=new va;r.append("Content-Type","application/json");const i=JSON.stringify({jsonrpc:"2.0",method:"eth_getTransactionByHash",params:[t],id:1}),o=yield go(e.http.post(xe.wallet.cloudflareEthAPIURL,i,{headers:r}));return console.log(o?.result),o?.result?o?.result:null})()}getETH_BlockByNoFromCloudflare(t){var e=this;return kt(function*(){const r=new va;r.append("Content-Type","application/json");const i=JSON.stringify({jsonrpc:"2.0",method:"eth_getBlockByNumber",params:[t,!1],id:1}),o=yield go(e.http.post(xe.wallet.cloudflareEthAPIURL,i,{headers:r}));return o?.result?o?.result:null})()}getETH_TransactionReceiptByHashFromCloudflare(t){var e=this;return kt(function*(){const r=new va;r.append("Content-Type","application/json");const i=JSON.stringify({jsonrpc:"2.0",method:"eth_getTransactionReceipt",params:[t],id:1}),o=yield go(e.http.post(xe.wallet.cloudflareEthAPIURL,i,{headers:r}));return o?.result?o?.result:null})()}getETH_TransactionByHashFromEtherscan(t){var e=this;return kt(function*(){const r=`${xe.wallet.etherscanAPI_URL}/?module=proxy&action=eth_getTransactionByHash&txhash=${t}&apikey=${xe.wallet.etherscanAPIKey}`,i=yield go(e.http.get(r));return i?.result?i?.result:yield e.getETH_TransactionByHashFromCloudflare(t)})()}getETH_BlockByNoFromEtherscan(t){var e=this;return kt(function*(){const r=`${xe.wallet.etherscanAPI_URL}/?module=proxy&action=eth_getBlockByNumber&tag=${t}&boolean=false&apikey=${xe.wallet.etherscanAPIKey}`,i=yield go(e.http.get(r));return i?.result?i?.result:yield e.getETH_BlockByNoFromCloudflare(t)})()}getETH_TransactionReceiptByHashFromEtherscan(t){var e=this;return kt(function*(){const r=`${xe.wallet.etherscanAPI_URL}/?module=proxy&action=eth_getTransactionReceipt&txhash=${t}&apikey=${xe.wallet.etherscanAPIKey}`,i=yield go(e.http.get(r));return i?.result?i?.result:yield e.getETH_TransactionReceiptByHashFromCloudflare(t)})()}prepareIPFSData(t,e={}){const r=(i,o)=>({type:"hash",cssClass:"text-black-light",preSymbolCssClass:"mr-minus-0",preSymbol:`IPFS Server ${i}: `,value:` ${o}/${t}`,link:`${o}/${t}`,externalLink:!0,copy:!0,...e});return{label:"IPFS ID",tooltip:"Description (in progress)",direction:"column",...r(1,xe.ipfs.astore_url),subItems:{...r(2,xe.ipfs.bstore_url),subItems:{...r(3,xe.ipfs.cstore_url),subItems:{...r(4,xe.ipfs.dstore_url),subItems:{...r(5,xe.ipfs.estore_url)}}}}}}},R1.\u0275fac=function(t){return new(t||R1)(Pe(nr),Pe($u))},R1.\u0275prov=We({token:R1,factory:R1.\u0275fac}),R1);var l2;function SOe(n,t){if(1&n&&fe(0,"storecloud-tooltip",19),2&n){const e=se(3);E("tooltip",null==e.table$?null:e.table$.tooltip)}}kL=ke([en()],kL);const TOe=function(){return{class:"card-desktop"}};function AOe(n,t){if(1&n&&(O(0,"div",15),h(1,"\n "),O(2,"p",16),h(3),ee(4,SOe,1,1,"storecloud-tooltip",17),h(5,"\n "),S(),h(6,"\n "),Ue(7,18),h(8,"\n "),Ve(),h(9,"\n "),S()),2&n){const e=se(2),r=ht(47);A(3),Jt("\n ",null==e.table$?null:e.table$.title,"\n "),A(1),E("ngIf",null==e.table$?null:e.table$.tooltip),A(3),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(4,TOe))}}function DOe(n,t){if(1&n&&fe(0,"storecloud-shared-table-pagination",20),2&n){const e=se(2);E("tableService",e.tableService)("total$",e.total$)}}function IOe(n,t){if(1&n&&(O(0,"div",12),h(1,"\n "),ee(2,AOe,10,5,"div",13),h(3,"\n "),ee(4,DOe,1,2,"storecloud-shared-table-pagination",14),h(5,"\n "),S()),2&n){const e=se();A(2),E("ngIf",null==e.table$?null:e.table$.title),A(2),E("ngIf",!(null!=e.table$&&e.table$.disablePagination))}}function EOe(n,t){if(1&n&&(O(0,"storecloud-tooltip",19),h(1," "),S()),2&n){const e=se(2).$implicit;E("tooltip",null==e?null:e.tooltip)}}function kOe(n,t){if(1&n&&(Ue(0),h(1,"\n "),O(2,"span"),h(3),ee(4,EOe,2,1,"storecloud-tooltip",17),h(5,"\n "),S(),h(6,"\n "),Ve()),2&n){const e=se().$implicit;A(3),Jt("",null==e?null:e.label,"\n "),A(1),E("ngIf",null==e?null:e.tooltip)}}function ROe(n,t){if(1&n&&(Ue(0),h(1),Ve()),2&n){const e=se().$implicit;A(1),Jt("\n ",null==e?null:e.label,"\n ")}}const NOe=function(n){return{width:n}};function LOe(n,t){if(1&n){const e=jr();O(0,"th",21),yt("sort",function(i){return hr(e),fr(se().onSort(i))}),h(1,"\n "),ee(2,kOe,7,2,"ng-container",8),h(3,"\n "),ee(4,ROe,2,1,"ng-container",8),h(5,"\n "),S()}if(2&n){const e=t.$implicit;mg(null==e?null:e.cssClass),Fo("sortable",null==e?null:e.key),E("ngStyle",Nt(7,NOe,(null==e?null:e.width)||"auto")),A(2),E("ngIf",null==e?null:e.tooltip),A(2),E("ngIf",!(null!=e&&e.tooltip))}}const FOe=function(n,t,e){return{height:n,stateCount:t,icon:e}},RL=function(n){return{setting:n}};function BOe(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,18),h(3,"\n "),Ve()),2&n){const e=se().$implicit,r=se(),i=ht(41);A(2),E("ngTemplateOutlet",i)("ngTemplateOutletContext",Nt(6,RL,function OB(n,t,e,r,i,o){return DB(qe(),Ta(),n,t,e,r,i,o)}(2,FOe,null==r.table$?null:r.table$.loadingHeight,null==e?null:e.stateCount,null==e?null:e.icon)))}}function $Oe(n,t){if(1&n&&fe(0,"storecloud-shared-value-formatter",26),2&n){const e=se().$implicit;E("item",e)("cssClass",null==e?null:e.cssClass)("iconSize",14)}}function UOe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,$Oe,1,3,"storecloud-shared-value-formatter",25),h(3,"\n "),Ve()),2&n){const e=t.$implicit;A(2),E("ngIf",e)}}function VOe(n,t){if(1&n&&(Ue(0),h(1,"\n "),O(2,"td"),h(3,"\n "),O(4,"div",23),h(5,"\n "),O(6,"storecloud-shared-value-formatter",24),h(7,"\n "),S(),h(8,"\n "),ee(9,UOe,4,1,"ng-container",22),h(10,"\n "),S(),h(11,"\n "),S(),h(12,"\n "),Ve()),2&n){const e=t.$implicit,r=se(2).$implicit,i=se();let o;A(2),xv("",null==e?null:e.cssClass," ",null==e?null:e.type,""),A(4),E("item",i.prepareItem(e,r[null==e?null:e.key]))("iconSize",null!==(o=null==r[null==e?null:e.key]?null:r[null==e?null:e.key].valueIconSize)&&void 0!==o?o:14),A(3),E("ngForOf",i.getAllSubItems(i.prepareItem(e,r[null==e?null:e.key])))}}function zOe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,VOe,13,7,"ng-container",22),h(3,"\n "),Ve()),2&n){const e=se(2);A(2),E("ngForOf",null==e.table$?null:e.table$.columns)}}function HOe(n,t){if(1&n&&(O(0,"tr"),h(1,"\n "),ee(2,BOe,4,8,"ng-container",8),h(3,"\n "),ee(4,zOe,4,1,"ng-container",8),h(5,"\n "),S()),2&n){const e=t.$implicit;A(2),E("ngIf",null==e?null:e.stateCount),A(2),E("ngIf",!(null!=e&&e.stateCount))}}const xK=function(n){return{height:n}};function jOe(n,t){if(1&n&&(O(0,"td",28),h(1,"\n "),or(2,18),h(3,"\n "),S()),2&n){const e=se(3),r=ht(44);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(4,RL,Nt(2,xK,null==e.table$?null:e.table$.loadingHeight)))}}function GOe(n,t){if(1&n&&(O(0,"tr"),h(1,"\n "),ee(2,jOe,4,6,"td",27),h(3,"\n "),S()),2&n){const e=se(2);A(2),E("ngForOf",null==e.table$?null:e.table$.columns)("ngForTrackBy",e.trackByFuntion)}}function WOe(n,t){if(1&n&&(O(0,"tbody"),h(1,"\n "),ee(2,GOe,4,2,"tr",22),h(3,"\n "),S()),2&n){const e=se();A(2),E("ngForOf",e.convertPageSizeIntoArray(null==e.tableService?null:e.tableService.pageSize))}}function qOe(n,t){1&n&&(O(0,"tbody"),h(1,"\n "),O(2,"tr"),h(3,"\n "),O(4,"td",29),h(5,"No record exist"),S(),h(6,"\n "),S(),h(7,"\n "),S())}function ZOe(n,t){if(1&n&&(O(0,"div",34),h(1,"\n "),fe(2,"storecloud-icon",35),h(3,"\n "),S()),2&n){const e=se(2).setting;A(2),E("icon",null==e?null:e.icon)("size",18)}}function YOe(n,t){if(1&n&&(Ue(0),h(1,"\n "),Ue(2,18),h(3,"\n "),Ve(),h(4,"\n "),Ve()),2&n){const e=se(3),r=ht(44);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(4,RL,Nt(2,xK,null==e.table$?null:e.table$.loadingHeight)))}}function XOe(n,t){if(1&n&&(O(0,"td",32),h(1,"\n "),ee(2,ZOe,4,2,"div",33),h(3,"\n "),ee(4,YOe,5,6,"ng-container",8),h(5,"\n "),S()),2&n){const e=t.index;A(2),E("ngIf",0===e),A(2),E("ngIf",e>0)}}function KOe(n,t){if(1&n&&(h(0,"\n "),Ue(1,30),h(2,"\n "),ee(3,XOe,6,2,"td",31),h(4,"\n "),Ve(),h(5,"\n")),2&n){const e=se();A(3),E("ngForOf",null==e.table$?null:e.table$.columns)("ngForTrackBy",e.trackByFuntion)}}const JOe=function(){return{display:"contents"}},QOe=function(n){return{"margin-top":"5px","margin-bottom":"5px",height:n}};function eSe(n,t){if(1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",36),h(2,"\n")),2&n){const e=t.setting;A(1),E("ngStyle",Wt(2,JOe))("theme",Nt(3,QOe,((null==e?null:e.height)||29.5)+"px"))}}function tSe(n,t){if(1&n&&(O(0,"storecloud-shared-table-status-filter",38),h(1,"\n "),S()),2&n){const e=se().class,r=se();mg(e),E("tableService",r.tableService)("filter",null==r.table$?null:r.table$.filters)}}function nSe(n,t){if(1&n&&(h(0,"\n "),ee(1,tSe,2,5,"storecloud-shared-table-status-filter",37),h(2,"\n")),2&n){const e=se();A(1),E("ngIf","status"===(null==e.table$||null==e.table$.filters?null:e.table$.filters.type))}}const rSe=function(n){return{card:n}};let xp=(l2=class{set refresh$(t){t.pipe(Qe(this)).subscribe(e=>{if((e.state===qo.Requested||e.state===qo.Block_Added||e.state===qo.Network_Updated)&&("block"===this.table$?.type||"transaction"===this.table$?.type)&&e?.count&&1===this.tableService?.page){const r=this.putIntoStateChangeLoading(this.table$?.type,e);this.result=r}this.tableService&&e.state===qo.Completed&&(this.tableService.disableResetData=e?.disableLoading||!1,this.tableService.searchTerm="")})}set data$(t){t?.pipe(Qe(this)).subscribe(e=>{this.result=e,this.tableService&&0===e.length&&(this.tableService.loading=!1)})}set table$(t){this._table$=t,this.tableService=new ML(this.http,t?.data$,t?.serviceAPIUrl,t?.map),this.tableService.pageSize=t?.pageSize||8,this.tableService.data$.pipe(Qe(this)).subscribe(e=>{this.tableService&&(this.tableService.disableResetData=!1),this.result=e}),this.total$=this.tableService.numOfPages$.pipe(Qe(this))}get table$(){return this._table$}constructor(t){this.http=t,this.tableCssClass=null,this.disabledCardClass=!1,this.total$=null,this._table$=null}trackByFuntion(t,e){return e?.from??e?.to??t?.id}prepareItem(t,e){return"progress-status"===t?.type||"block-status"===t?.type?{type:t?.type,value:e}:"custom-col"===t?.type?{...t,...e,link:t?.link||e?.link?t?.withOutIdLink?t?.valueLink?e?.value:t?.link||e?.link:`${t?.link||e?.link}/${e?.value}`:null}:{...t,value:e,link:t?.link?t?.withOutIdLink?t?.valueLink?e:t?.link:`${t?.link}/${e}`:null}}onSort({}){}convertPageSizeIntoArray(t){return Array(t??8).fill(!0)}getAllSubItems(t){return this.getAllSubItemsChildren(t)}getAllSubItemsChildren(t){const e=[],r=t?.subItems;if(e.push(r),r?.subItems){const i=this.getAllSubItemsChildren(r);e.push(...i)}return e}putIntoStateChangeLoading(t,e){let r=this.result||[];const i=r?.length||0;r=e?.state===qo.Requested?r?.slice(0,i-(e?.count?.[t]&&e?.count?.[t]>i?i:e?.count?.[t]||0)):r?.filter(l=>!l?.stateCount);const a=e?.count?.[t]>i?i:e?.count?.[t];let s="box_animated";switch(e?.state){case qo.Requested:s="block"===t?"box_animated":"clock_animated";break;case qo.Block_Added:case qo.Network_Updated:s="box_animated"}for(let l=0;l{class n{constructor(){this.cloudSpaceFee={store:0,usd:0}}set size(e){this.calculateGasFee(e)}calculateGasFee(e){const a=e/xe.one$STOREEqualToOneByte,s=a*xe.storePriceUSD;this.cloudSpaceFee.store=a||0,this.cloudSpaceFee.usd=s||0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=xt({type:n,selectors:[["storecloud-cloudspace-fee"]],inputs:{size:"size"},standalone:!0,features:[Do],decls:29,vars:16,consts:[[1,"cloud-space-fee"],[1,"cloud-space-fee-heading"],[1,"icons",3,"icon","size"],[3,"tooltip","placement"],[1,"cloud-space-fee-desc"]],template:function(e,r){1&e&&(O(0,"div",0),h(1,"\n "),O(2,"div",1),h(3,"\n "),fe(4,"storecloud-icon",2),h(5,"\n "),O(6,"h1"),h(7,"Cloud VM Fee"),S(),h(8,"\n "),fe(9,"storecloud-tooltip",3),h(10,"\n "),S(),h(11,"\n "),O(12,"div",4),h(13,"\n "),fe(14,"storecloud-icon",2),h(15,"\n "),O(16,"h2"),h(17),Gt(18,"number"),S(),h(19,"\n "),O(20,"p"),h(21),Gt(22,"currency"),S(),h(23,"\n "),O(24,"p"),h(25,"(+1.00x Mint Price)"),S(),h(26,"\n "),S(),h(27,"\n"),S(),h(28,"\n")),2&e&&(A(4),E("icon","store-logo-only")("size",14),A(5),E("tooltip","Description in Progress")("placement","top-start"),A(5),E("icon","store-logo-only")("size",14),A(3),jt(Hl(18,8,(null==r.cloudSpaceFee?null:r.cloudSpaceFee.store)||0,"1.4-12")),A(4),Jt("(",wy(22,11,(null==r.cloudSpaceFee?null:r.cloudSpaceFee.usd)||0,"USD","symbol","1.4-12"),")"))},dependencies:[Wi,wg,_M,hs,Wc],styles:[".cloud-space-fee[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%]{display:flex;align-items:center}.cloud-space-fee[_ngcontent-%COMP%]{padding:12px 35px;border-bottom:1px solid #dcebeb;gap:13px}@media screen and (max-width: 768px){.cloud-space-fee[_ngcontent-%COMP%]{padding:12px 20px}}.cloud-space-fee[_ngcontent-%COMP%] .gradient[_ngcontent-%COMP%]{height:8px;background:#1db0a9}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%]{gap:5px}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:600}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%]{gap:3px}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#888}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:#111}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem;padding-top:2px}@media screen and (max-width: 400px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.17rem}}@media screen and (max-width: 400px) and (max-width: 385px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.1rem}}@media screen and (max-width: 400px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem}}@media screen and (max-width: 400px) and (max-width: 385px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8rem}}@media screen and (max-width: 400px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%]{width:12px}}@media screen and (max-width: 400px) and (max-width: 385px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%]{width:10px}}"]}),n})();var c2;function iSe(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,8),h(3,"\n "),Ve()),2&n){se();const e=ht(14);A(2),E("ngTemplateOutlet",e)}}const PK=function(n){return{item:n}};function oSe(n,t){if(1&n&&(Ue(0),h(1,"\n "),Ue(2,13),h(3,"\n "),Ve(),h(4,"\n "),Ve()),2&n){const e=t.ngIf;se(6);const r=ht(17);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,PK,e))}}function aSe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,oSe,5,4,"ng-container",9),Gt(3,"async"),h(4,"\n "),Ve()),2&n){const e=t.$implicit;se(5);const r=ht(20);A(2),E("ngIf",Gn(3,2,e))("ngIfElse",r)}}function sSe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,aSe,5,4,"ng-container",10),h(3,"\n "),Ve()),2&n){const e=se().$implicit;A(2),E("ngForOf",null==e?null:e.items$)}}const lSe=function(){return{enable:!0}};function cSe(n,t){if(1&n){const e=jr();Ue(0),h(1,"\n "),O(2,"div",11),yt("click",function(){const o=hr(e).$implicit;return fr(o.show=!(null!=o&&o.show))}),h(3,"\n "),O(4,"p",12),h(5),S(),h(6,"\n "),Ue(7,13),h(8,"\n "),Ve(),h(9,"\n "),S(),h(10,"\n "),O(11,"div",14),h(12,"\n "),ee(13,sSe,4,1,"ng-container",2),h(14,"\n "),S(),h(15,"\n\n "),Ve()}if(2&n){const e=t.$implicit;se(3);const r=ht(26);A(2),Mi("basic d-flex-g-14 b-0 clickable data-div ",e.show?"active":"",""),A(3),jt(null==e?null:e.name),A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(7,lSe)),A(6),E("ngIf",e.show)}}function uSe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,cSe,16,8,"ng-container",10),h(3,"\n "),Ve()),2&n){const e=se(2);A(2),E("ngForOf",null==e.stats$?null:e.stats$.groupedItems)}}function dSe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,uSe,4,1,"ng-container",9),h(3,"\n "),Ve()),2&n){const e=se(),r=ht(20);A(2),E("ngIf",null==e.stats$?null:e.stats$.groupedItems)("ngIfElse",r)}}function hSe(n,t){if(1&n&&(Ue(0),h(1,"\n "),or(2,13),h(3,"\n "),Ve()),2&n){const e=t.ngIf;se(3);const r=ht(17);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,PK,e))}}function fSe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,hSe,4,4,"ng-container",9),Gt(3,"async"),h(4,"\n "),Ve()),2&n){const e=t.$implicit;se(2);const r=ht(20);A(2),E("ngIf",Gn(3,2,e))("ngIfElse",r)}}function pSe(n,t){if(1&n&&(h(0),Gt(1,"json"),ee(2,fSe,5,4,"ng-container",10),h(3,"\n")),2&n){const e=se();Jt("\n ",Gn(1,2,null==e.stats$?null:e.stats$.items),"\n "),A(2),E("ngForOf",null==e.stats$?null:e.stats$.items$)}}function gSe(n,t){if(1&n&&fe(0,"storecloud-tooltip",19),2&n){const e=se(2).item;E("tooltip",null==e?null:e.tooltip)("placement","top-end")}}function mSe(n,t){if(1&n&&fe(0,"storecloud-icon",20),2&n){const e=se(2).item;E("icon",null==e?null:e.icon)("size",14)}}function vSe(n,t){if(1&n&&fe(0,"storecloud-tooltip",19),2&n){const e=se(2).item;E("tooltip",null==e?null:e.tooltip)("placement","top-end")}}function _Se(n,t){if(1&n&&fe(0,"storecloud-shared-value-formatter",21),2&n){const e=se().$implicit;E("item",e)("cssClass",null==e?null:e.cssClass)("iconSize",14)}}function ySe(n,t){if(1&n&&fe(0,"storecloud-tooltip",19),2&n){const e=se(4).item;E("tooltip",null==e?null:e.valueTooltip)("placement","top-end")}}function bSe(n,t){if(1&n&&(Ue(0),h(1,"\n "),ee(2,_Se,1,3,"storecloud-shared-value-formatter",22),h(3,"\n "),ee(4,ySe,1,2,"storecloud-tooltip",16),h(5,"\n "),Ve()),2&n){const e=t.$implicit,r=se(3).item;A(2),E("ngIf",e),A(2),E("ngIf",null==r?null:r.valueTooltip)}}function CSe(n,t){if(1&n&&(O(0,"div"),h(1,"\n "),fe(2,"storecloud-shared-value-formatter",21),h(3,"\n "),ee(4,bSe,6,2,"ng-container",10),h(5,"\n "),S()),2&n){const e=se(2).item,r=se();Mi("d-flex g-1-half flex-basis-80 ","column"===(null==e?null:e.direction)?"d-flex-column":"",""),A(2),E("item",e)("cssClass",(null==e?null:e.cssClass)||"text-black")("iconSize",14),A(2),E("ngForOf",r.getAllSubItems(e))}}const wSe=function(n){return{nft:n}};function xSe(n,t){if(1&n&&(O(0,"div",23),h(1,"\n "),or(2,13),h(3,"\n "),S()),2&n){const e=se(2).item;se();const r=ht(23);A(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",Nt(2,wSe,null==e?null:e.value))}}function MSe(n,t){if(1&n&&(O(0,"div"),h(1,"\n "),O(2,"div"),h(3,"\n "),O(4,"p"),h(5,"\n "),ee(6,gSe,1,2,"storecloud-tooltip",16),h(7,"\n "),ee(8,mSe,1,2,"storecloud-icon",17),h(9),ee(10,vSe,1,2,"storecloud-tooltip",16),h(11,"\n "),S(),h(12,"\n "),ee(13,CSe,6,7,"div",15),h(14,"\n "),ee(15,xSe,4,4,"div",18),h(16,"\n "),S(),h(17,"\n "),S()),2&n){const e=se().item,r=se();xv("d-flex-g-14 ",r.type," ",r.enableBorderOnLast?"border-last":"",""),A(2),Mi("data-div ","asset"===(null==e?null:e.type)?"align-start":"",""),A(2),Mi("",null!=e&&e.labelCssClass?null==e?null:e.labelCssClass:"text-black"," d-flex flex-basis-20"),A(2),E("ngIf","basic"===r.type&&(null==e?null:e.tooltip)),A(2),E("ngIf",null==e?null:e.icon),A(1),Jt("\n ",null==e?null:e.label,"\n "),A(1),E("ngIf","nft-view"===r.type&&(null==e?null:e.tooltip)),A(3),E("ngIf","asset"!==(null==e?null:e.type)),A(2),E("ngIf","asset"===(null==e?null:e.type))}}function PSe(n,t){if(1&n&&(h(0,"\n "),ee(1,MSe,18,16,"div",15),h(2,"\n")),2&n){const e=t.item;A(1),E("ngIf",!(null!=e&&e.disabled))}}const OSe=function(){return{display:"block",padding:"0 15px"}},SSe=function(){return{"margin-top":"8px",height:"25px"}};function TSe(n,t){if(1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",24),h(2,"\n")),2&n){const e=se();A(1),Fo("count",e.loadingCount),E("ngStyle",Wt(3,OSe))("theme",Wt(4,SSe))}}function ASe(n,t){if(1&n&&(O(0,"p",32),h(1),S()),2&n){const e=se(2).nft;A(1),jt(null==e?null:e.description)}}function DSe(n,t){if(1&n&&(O(0,"div",29),h(1,"\n "),O(2,"p",30),h(3),S(),h(4,"\n "),ee(5,ASe,2,1,"p",31),h(6,"\n "),S()),2&n){const e=se().nft;A(3),jt(null==e?null:e.name),A(2),E("ngIf",null==e?null:e.description)}}function ISe(n,t){if(1&n&&(h(0,"\n "),O(1,"div",25),h(2,"\n "),O(3,"div",26),h(4,"\n "),fe(5,"storecloud-publisher-nft-stamp-image",27),h(6,"\n "),S(),h(7,"\n "),ee(8,DSe,7,2,"div",28),h(9,"\n "),S(),h(10,"\n")),2&n){const e=t.nft;A(5),E("type","detail")("nft",e),A(3),E("ngIf",(null==e?null:e.name)||(null==e?null:e.description))}}const ESe=function(n){return{stroke:n}};function kSe(n,t){if(1&n&&(h(0,"\n "),O(1,"div",33),h(2,"\n "),Ll(),O(3,"svg",34),h(4,"\n "),fe(5,"polyline",35),h(6,"\n "),S(),h(7,"\n "),S(),h(8,"\n")),2&n){const e=t.enable;A(1),E("ngStyle",Nt(1,ESe,e?"#1db0a9":"#888"))}}const RSe=function(n,t){return{card:n,"flex-col-between":t,"p-0":!0}};let GC=(c2=class{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3,this.type="basic",this.enableBorderOnLast=!1}getAllSubItems(t){return this.getAllSubItemsChildren(t)}getAllSubItemsChildren(t){const e=[],r=t?.subItems;if(e.push(r),r?.subItems){const i=this.getAllSubItemsChildren(r);e.push(...i)}return e}},c2.\u0275fac=function(t){return new(t||c2)},c2.\u0275cmp=xt({type:c2,selectors:[["storecloud-shared-stats-card-detail"]],inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount",type:"type",enableBorderOnLast:"enableBorderOnLast"},decls:29,vars:6,consts:[[3,"ngClass"],[1,"content","p-0"],[4,"ngIf"],["singleTemplate",""],["itemTemplate",""],["loader3",""],["asset",""],["chevronDown",""],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],[3,"click"],[1,"text-black","teal","flex-basis-20"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"bb-4"],[3,"class",4,"ngIf"],[3,"tooltip","placement",4,"ngIf"],[3,"icon","size",4,"ngIf"],["class","d-flex g-1-half flex-basis-80",4,"ngIf"],[3,"tooltip","placement"],[3,"icon","size"],[3,"item","cssClass","iconSize"],[3,"item","cssClass","iconSize",4,"ngIf"],[1,"d-flex","g-1-half","flex-basis-80"],["animation","progress",1,"loader-for-all",3,"count","ngStyle","theme"],[1,"asset-container"],[1,"asset-image","stats-card-detail-asset"],[3,"type","nft"],["class","asset-details",4,"ngIf"],[1,"asset-details"],[1,"title"],["class","desc",4,"ngIf"],[1,"desc"],[1,"chevron-down","flex-basis-80",3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["points","6 9 12 15 18 9"]],template:function(t,e){1&t&&(O(0,"div",0),h(1,"\n "),Ue(2),h(3,"\n "),O(4,"div",1),h(5,"\n\n "),ee(6,iSe,4,1,"ng-container",2),h(7,"\n "),ee(8,dSe,4,2,"ng-container",2),h(9,"\n\n "),S(),h(10,"\n "),Ve(),h(11,"\n"),S(),h(12,"\n"),ee(13,pSe,4,4,"ng-template",null,3,zt),h(15,"\n\n"),ee(16,PSe,3,1,"ng-template",null,4,zt),h(18,"\n"),ee(19,TSe,3,5,"ng-template",null,5,zt),h(21,"\n"),ee(22,ISe,11,3,"ng-template",null,6,zt),h(24,"\n\n"),ee(25,kSe,9,3,"ng-template",null,7,zt),h(27,"\n\n"),h(28,"\n")),2&t&&(E("ngClass",Nf(3,RSe,!e.disableCardClass,!e.disableCardClass)),A(6),E("ngIf",null==e.stats$||null==e.stats$.available?null:e.stats$.available.items$),A(2),E("ngIf",null==e.stats$||null==e.stats$.available?null:e.stats$.available.groupedItems))},styles:[".data-div[_ngcontent-%COMP%]{flex-direction:row!important;width:100%}.data-div[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:20%;gap:5px;align-items:center}.data-div[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:80%;align-items:center}.data-div[_ngcontent-%COMP%] .d-flex-column[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.data-div.align-start[_ngcontent-%COMP%]{align-items:flex-start}.asset-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 9fr;gap:20px}.asset-container[_ngcontent-%COMP%] .asset-image[_ngcontent-%COMP%]{display:flex;align-items:center;height:293px;width:293px;justify-content:center}.asset-container[_ngcontent-%COMP%] .asset-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #d0d0d0}.asset-container[_ngcontent-%COMP%] .asset-details[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;line-height:1.3;white-space:pre-line}.p-0[_ngcontent-%COMP%]{padding:0!important}.chevron-down[_ngcontent-%COMP%]{display:flex;margin-left:-3px;justify-content:flex-end}.bb-4[_ngcontent-%COMP%]:not(:last-child){border-bottom:3px solid #1db0a9}.clickable[_ngcontent-%COMP%]{padding:10px 15px}.clickable[_ngcontent-%COMP%] .chevron-down[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]:hover{animation:up-down 2s;animation-iteration-count:infinite} .clickable.active .chevron-down svg{transition:transform .2s;transform:rotate(180deg)} .stats-card-detail-asset storecloud-publisher-nft-stamp-image{display:contents} .stats-card-detail-asset storecloud-publisher-nft-stamp-image .detail-image .default-img{border-radius:4px;width:100%;height:300px;display:block}@media screen and (max-width: 525px){.asset-container[_ngcontent-%COMP%]{grid-template-columns:1fr}.asset-container[_ngcontent-%COMP%] .asset-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:240px!important}.data-div[_ngcontent-%COMP%]{flex-direction:column!important}.data-div[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:100%}.data-div[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{margin-left:20px;flex-basis:100%} .loader-for-all .loader{height:44px!important} .stats-card-detail-asset storecloud-publisher-nft-stamp-image{display:contents} .stats-card-detail-asset storecloud-publisher-nft-stamp-image .detail-image .default-img{border-radius:4px;width:100%!important;height:300px!important;display:block}.clickable.data-div[_ngcontent-%COMP%]{flex-direction:row!important}.chevron-down[_ngcontent-%COMP%]{justify-content:flex-end}}"]}),c2);GC=ke([en({checkProperties:!0})],GC);const NSe={asc:"desc",desc:"","":"asc"};let OK=(()=>{class n{constructor(){this.sortable="",this.direction="",this.sort=new _r}rotate(){this.direction=NSe[this.direction],this.sort.emit({column:this.sortable,direction:this.direction})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Ht({type:n,selectors:[["th","sortable",""]],hostVars:4,hostBindings:function(e,r){1&e&&yt("click",function(){return r.rotate()}),2&e&&gg("asc","asc"===r.direction)("desc","desc"===r.direction)},inputs:{sortable:"sortable",direction:"direction"},outputs:{sort:"sort"}}),n})(),SK=(()=>{class n{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(ye(jn),ye(wr))},n.\u0275dir=Ht({type:n}),n})(),N1=(()=>{class n extends SK{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=uo(n)))(r||n)}}(),n.\u0275dir=Ht({type:n,features:[Sr]}),n})();const Uu=new Ct("NgValueAccessor"),$Se={provide:Uu,useExisting:wi(()=>L1),multi:!0},VSe=new Ct("CompositionEventMode");let L1=(()=>{class n extends SK{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function USe(){const n=hd()?hd().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(ye(jn),ye(wr),ye(VSe,8))},n.\u0275dir=Ht({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,r){1&e&&yt("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[Gr([$Se]),Sr]}),n})();const zSe=!1;function Mp(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function AK(n){return null!=n&&"number"==typeof n.length}const vs=new Ct("NgValidators"),Pp=new Ct("NgAsyncValidators"),HSe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Hs{static min(t){return function DK(n){return t=>{if(Mp(t.value)||Mp(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Mp(t.value)||Mp(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return EK(t)}static requiredTrue(t){return function kK(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function RK(n){return Mp(n.value)||HSe.test(n.value)?null:{email:!0}}(t)}static minLength(t){return NK(t)}static maxLength(t){return LK(t)}static pattern(t){return function FK(n){if(!n)return nT;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),r=>{if(Mp(r.value))return null;const i=r.value;return t.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return HK(t)}static composeAsync(t){return jK(t)}}function EK(n){return Mp(n.value)?{required:!0}:null}function NK(n){return t=>Mp(t.value)||!AK(t.value)?null:t.value.lengthAK(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function nT(n){return null}function BK(n){return null!=n}function $K(n){const t=fy(n)?bi(n):n;if(zSe&&!FD(t)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new nt(-1101,e)}return t}function UK(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function VK(n,t){return t.map(e=>e(n))}function zK(n){return n.map(t=>function jSe(n){return!n.validate}(t)?t:e=>t.validate(e))}function HK(n){if(!n)return null;const t=n.filter(BK);return 0==t.length?null:function(e){return UK(VK(e,t))}}function NL(n){return null!=n?HK(zK(n)):null}function jK(n){if(!n)return null;const t=n.filter(BK);return 0==t.length?null:function(e){return function FSe(...n){const t=Ga(n),{args:e,keys:r}=Q$(n),i=new F(o=>{const{length:a}=e;if(!a)return void o.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{d||(d=!0,c--),s[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(r?e9(r,s):s),o.complete())}))}});return t?i.pipe(sE(t)):i}(VK(e,t).map($K)).pipe(R(UK))}}function LL(n){return null!=n?jK(zK(n)):null}function GK(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function WK(n){return n._rawValidators}function qK(n){return n._rawAsyncValidators}function FL(n){return n?Array.isArray(n)?n:[n]:[]}function rT(n,t){return Array.isArray(n)?n.includes(t):n===t}function ZK(n,t){const e=FL(t);return FL(n).forEach(i=>{rT(e,i)||e.push(i)}),e}function YK(n,t){return FL(t).filter(e=>!rT(n,e))}class XK{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=NL(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=LL(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class js extends XK{get formDirective(){return null}get path(){return null}}class Op extends XK{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class KK{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let WC=(()=>{class n extends KK{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(ye(Op,2))},n.\u0275dir=Ht({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&gg("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Sr]}),n})(),iT=(()=>{class n extends KK{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(ye(js,10))},n.\u0275dir=Ht({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&gg("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Sr]}),n})();function JK(n,t){return n?`with name: '${t}'`:`at index: ${t}`}const UL=!1,qC="VALID",aT="INVALID",u2="PENDING",ZC="DISABLED";function VL(n){return(sT(n)?n.validators:n)||null}function zL(n,t){return(sT(t)?t.asyncValidators:n)||null}function sT(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function QK(n,t,e){const r=n.controls;if(!(t?Object.keys(r):r).length)throw new nt(1e3,UL?function ZSe(n){return`\n There are no form controls registered with this ${n?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(t):"");if(!r[e])throw new nt(1001,UL?function YSe(n,t){return`Cannot find form control ${JK(n,t)}`}(t,e):"")}function eJ(n,t,e){n._forEachChild((r,i)=>{if(void 0===e[i])throw new nt(1002,UL?function XSe(n,t){return`Must supply a value for form control ${JK(n,t)}`}(t,i):"")})}class lT{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===qC}get invalid(){return this.status===aT}get pending(){return this.status==u2}get disabled(){return this.status===ZC}get enabled(){return this.status!==ZC}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ZK(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ZK(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(YK(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(YK(t,this._rawAsyncValidators))}hasValidator(t){return rT(this._rawValidators,t)}hasAsyncValidator(t){return rT(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=u2,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ZC,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=qC,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qC||this.status===u2)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ZC:qC}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=u2,this._hasOwnPendingAsyncValidator=!0;const e=$K(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(t,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new _r,this.statusChanges=new _r}_calculateStatus(){return this._allControlsDisabled()?ZC:this.errors?aT:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(u2)?u2:this._anyControlsHaveStatus(aT)?aT:qC}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){sT(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function KSe(n){return Array.isArray(n)?NL(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function JSe(n){return Array.isArray(n)?LL(n):n||null}(this._rawAsyncValidators)}}class YC extends lT{constructor(t,e,r){super(VL(e),zL(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,r={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){eJ(this,!0,t),Object.keys(t).forEach(r=>{QK(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(r=>{const i=this.controls[r];i&&i.patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,r)=>(t[r]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&t(r,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,r]of Object.entries(this.controls))if(this.contains(e)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,r,i)=>((r.enabled||this.disabled)&&(e[i]=r.value),e))}_reduceChildren(t,e){let r=t;return this._forEachChild((i,o)=>{r=e(r,i,o)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class tJ extends YC{}const F1=new Ct("CallSetDisabledState",{providedIn:"root",factory:()=>XC}),XC="always";function cT(n,t){return[...t.path,n]}function KC(n,t,e=XC){HL(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function eTe(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&nJ(n,t)})}(n,t),function nTe(n,t){const e=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function tTe(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&nJ(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function QSe(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function uT(n,t,e=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),hT(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function dT(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function HL(n,t){const e=WK(n);null!==t.validator?n.setValidators(GK(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const r=qK(n);null!==t.asyncValidator?n.setAsyncValidators(GK(r,t.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();dT(t._rawValidators,i),dT(t._rawAsyncValidators,i)}function hT(n,t){let e=!1;if(null!==n){if(null!==t.validator){const i=WK(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(a=>a!==t.validator);o.length!==i.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const i=qK(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(a=>a!==t.asyncValidator);o.length!==i.length&&(e=!0,n.setAsyncValidators(o))}}}const r=()=>{};return dT(t._rawValidators,r),dT(t._rawAsyncValidators,r),e}function nJ(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function rJ(n,t){HL(n,t)}function GL(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function iJ(n,t){n._syncPendingControls(),t.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function WL(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(o=>{o.constructor===L1?e=o:function oTe(n){return Object.getPrototypeOf(n.constructor)===N1}(o)?r=o:i=o}),i||r||e||null}const sTe={provide:js,useExisting:wi(()=>fT)},JC=(()=>Promise.resolve())();let fT=(()=>{class n extends js{constructor(e,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new _r,this.form=new YC({},NL(e),LL(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){JC.then(()=>{const r=this._findContainer(e.path);e.control=r.registerControl(e.name,e.control),KC(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){JC.then(()=>{const r=this._findContainer(e.path);r&&r.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){JC.then(()=>{const r=this._findContainer(e.path),i=new YC({});rJ(i,e),r.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){JC.then(()=>{const r=this._findContainer(e.path);r&&r.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,r){JC.then(()=>{this.form.get(e.path).setValue(r)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,iJ(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(ye(vs,10),ye(Pp,10),ye(F1,8))},n.\u0275dir=Ht({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,r){1&e&&yt("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Gr([sTe]),Sr]}),n})();function oJ(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function aJ(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const QC=class extends lT{constructor(t=null,e,r){super(VL(e),zL(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),sT(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=aJ(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){oJ(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){oJ(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){aJ(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},uTe={provide:Op,useExisting:wi(()=>pT)},cJ=(()=>Promise.resolve())();let pT=(()=>{class n extends Op{constructor(e,r,i,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new QC,this._registered=!1,this.update=new _r,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=WL(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),GL(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){KC(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){cJ.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,i=0!==r&&Av(r);cJ.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?cT(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(ye(js,9),ye(vs,10),ye(Pp,10),ye(Uu,10),ye(Mc,8),ye(F1,8))},n.\u0275dir=Ht({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Gr([uTe]),Sr,co]}),n})(),qL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Ht({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const dTe={provide:Uu,useExisting:wi(()=>ZL),multi:!0};let ZL=(()=>{class n extends N1{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=r=>{e(""==r?null:parseFloat(r))}}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=uo(n)))(r||n)}}(),n.\u0275dir=Ht({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,r){1&e&&yt("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},features:[Gr([dTe]),Sr]}),n})(),uJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({}),n})();const YL=new Ct("NgModelWithFormControlWarning"),mTe={provide:js,useExisting:wi(()=>e3)};let e3=(()=>{class n extends js{constructor(e,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _r,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(hT(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return KC(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){uT(e.control||null,e,!1),function aTe(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,iJ(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,i=this.form.get(e.path);r!==i&&(uT(r||null,e),(n=>n instanceof QC)(i)&&(KC(i,e,this.callSetDisabledState),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);rJ(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function rTe(n,t){return hT(n,t)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){HL(this.form,this),this._oldForm&&hT(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(ye(vs,10),ye(Pp,10),ye(F1,8))},n.\u0275dir=Ht({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&yt("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Gr([mTe]),Sr,co]}),n})();const yTe={provide:Op,useExisting:wi(()=>gT)};let gT=(()=>{class n extends Op{set isDisabled(e){}constructor(e,r,i,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new _r,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=WL(0,o)}ngOnChanges(e){this._added||this._setUpControl(),GL(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return cT(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(ye(js,13),ye(vs,10),ye(Pp,10),ye(Uu,10),ye(YL,8))},n.\u0275dir=Ht({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Gr([yTe]),Sr,co]}),n})();function vJ(n){return"number"==typeof n?n:parseInt(n,10)}let B1=(()=>{class n{constructor(){this._validator=nT}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):nT,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Ht({type:n,features:[co]}),n})();const TTe={provide:vs,useExisting:wi(()=>$1),multi:!0};let $1=(()=>{class n extends B1{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Av,this.createValidator=e=>EK}enabled(e){return e}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=uo(n)))(r||n)}}(),n.\u0275dir=Ht({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,r){2&e&&wc("required",r._enabled?"":null)},inputs:{required:"required"},features:[Gr([TTe]),Sr]}),n})();const ITe={provide:vs,useExisting:wi(()=>e6),multi:!0};let e6=(()=>{class n extends B1{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>vJ(e),this.createValidator=e=>NK(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=uo(n)))(r||n)}}(),n.\u0275dir=Ht({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&wc("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[Gr([ITe]),Sr]}),n})();const ETe={provide:vs,useExisting:wi(()=>t6),multi:!0};let t6=(()=>{class n extends B1{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>vJ(e),this.createValidator=e=>LK(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=uo(n)))(r||n)}}(),n.\u0275dir=Ht({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&wc("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Gr([ETe]),Sr]}),n})(),MJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({imports:[uJ]}),n})();class PJ extends lT{constructor(t,e,r){super(VL(e),zL(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,r={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,e={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,r={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){eJ(this,!1,t),t.forEach((r,i)=>{QK(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,r)=>{t(e,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function OJ(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let SJ=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,r=null){const i=this._reduceControls(e);let o={};return OJ(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new YC(i,o)}record(e,r=null){const i=this._reduceControls(e);return new tJ(i,r)}control(e,r,i){let o={};return this.useNonNullable?(OJ(r)?o=r:(o.validators=r,o.asyncValidators=i),new QC(e,{...o,nonNullable:!0})):new QC(e,r,i)}array(e,r,i){const o=e.map(a=>this._createControl(a));return new PJ(o,r,i)}_reduceControls(e){const r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){return e instanceof QC||e instanceof lT?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),TJ=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:F1,useValue:e.callSetDisabledState??XC}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({imports:[MJ]}),n})(),n6=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:YL,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:F1,useValue:e.callSetDisabledState??XC}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({imports:[MJ]}),n})();var d2,AJ=De(530);const NTe=["canvas"];function LTe(n,t){1&n&&(Ue(0),h(1," "),Ve())}const FTe=function(){return{display:"block",widht:"100%",height:"100%"}},BTe=function(n,t){return{width:"100%",height:"100%",margin:0,"margin-left":"auto","margin-right":"auto","border-radius":"8px","border-bottom-left-radius":n,"border-bottom-right-radius":t}};function $Te(n,t){if(1&n&&(h(0,"\n "),fe(1,"ngx-skeleton-loader",6),h(2,"\n")),2&n){const e=se();A(1),E("ngStyle",Wt(2,FTe))("theme",Nf(3,BTe,"top-list"===e.type||"detail"===e.type?0:"8px","top-list"===e.type||"detail"===e.type?0:"8px"))}}const UTe=function(n,t){return{"image-container":!0,"detail-image":n,"top-list-image":t}},VTe=function(n){return{display:n}};let U1=(d2=class{set nft(t){this._nft=t,t?(this.firstTime&&(this.nft?.image?this.setImageForNFT(this.nft?.image):(this.imageMain.src="../../../../assets/black.jpg",this.isLoading=!1),this.firstTime=!1),this.addStamp(!0)):this.firstTime=!0}get nft(){return this._nft}constructor(t){this.changeRef=t,this.type=null,this.nftAddress="",this.image=new Image,this.imageMain=new Image,this.storeImageLight=new Image,this.storeImageDark=new Image,this.poweredByStoreImageLight=new Image,this.poweredByStoreImageDark=new Image,this.cavasHeight_Width=650,this.cavasHeight_Height=600,this.isLoading=!0,this.firstTime=!0}ngAfterViewInit(){this.nftAddress=this.randomNFTAddress(),this.setupCanvas()}addStamp(t){const e=this.nft?.incentive?.nftAddressStamp,r=this.nft?.incentive?.supplyCountStamp,i=this.nft?.incentive?.storeStamp,o=this.nft?.incentive?.poweredByStoreStamp,a=this.cavasHeight_Width-15,s=this.cavasHeight_Height-15;if(t&&this.cx?.clearRect(0,0,this.cavasHeight_Width,this.cavasHeight_Height),!this.cx)return;let l=0,c=0;i&&(i?.placement===Wr.Placement.Left?l+=1:c+=1),o&&(o?.placement===Wr.Placement.Left?l+=1:c+=1),r&&(r?.placement===Wr.Placement.Left?l+=1:c+=1);const u=25;if(e){const p=s;this.cx.font='12px "Montserrat", sans-serif',this.cx.fillStyle="White"===e?.color?"#fff":"#000";const g=AJ.Z(this.nftAddress,{font:'"Montserrat", sans-serif',fontSize:"12px"});this.cx?.fillText(this.nftAddress,this.cavasHeight_Width/2-g?.width/2,p)}if(i){let v=s;i?.placement===Wr.Placement.Left&&l>1?v-=3===l||o&&o?.placement===Wr.Placement.Left?u:0:i?.placement===Wr.Placement.Right&&c>1&&(v-=3===c||o&&o?.placement===Wr.Placement.Right?u:0),this.cx?.drawImage(i?.color===Wr.Color.Black?this.storeImageDark:this.storeImageLight,i?.placement===Wr.Placement.Left?15:a-68,v+3-16,70,16)}if(o){let v=s;o?.placement===Wr.Placement.Left&&l>1?v-=3===l?u:0:o?.placement===Wr.Placement.Right&&c>1&&(v-=3===c?u:0),this.cx?.drawImage(o?.color===Wr.Color.Black?this.poweredByStoreImageDark:this.poweredByStoreImageLight,o?.placement===Wr.Placement.Left?15:a-135.37,v+3-16,137.37,16)}if(r){let p=s;switch(this.cx.font='500 16px "Montserrat", sans-serif',r?.color){case Wr.Color.Gold:this.cx.fillStyle="#E6C387";break;case Wr.Color.Silver:this.cx.fillStyle="silver";break;case Wr.Color.White:this.cx.fillStyle="#fff"}const g=`${this.nft?.index??1} / ${this.nft?.supply?.toLocaleString()??1}`,v=AJ.Z(g,{font:'"Montserrat", sans-serif',fontSize:"16px"});"Right"===r?.placement&&c>1?p-=3===c?50:o&&"Right"===o?.placement||i&&"Right"===i?.placement?u:0:r?.placement===Wr.Placement.Left&&l>1&&(p-=3===l?50:u),this.cx?.fillText(g,r?.placement===Wr.Placement.Left?15:a-v?.width,p)}this.changeRef.detectChanges()}setupCanvas(){const t=this.canvas?.nativeElement;this.cx=t?.getContext("2d"),t.width=this.cavasHeight_Width,t.height=this.cavasHeight_Height,this.cx.font='12px "Montserrat", sans-serif',this.setImage()}setImage(){this.image.onload=()=>{this.addStamp(!1)},this.image.src=this.nft?.image??"../../../../assets/black.jpg",this.storeImageLight.src="../../../..https://explorer.storecloud.org/assets/lucide_icon/store-logo-white.svg",this.storeImageDark.src="../../../..https://explorer.storecloud.org/assets/lucide_icon/store-logo-dark.svg",this.poweredByStoreImageLight.src="../../../..https://explorer.storecloud.org/assets/lucide_icon/STORE-Poweredby-Horizontal-White.svg",this.poweredByStoreImageDark.src="../../../..https://explorer.storecloud.org/assets/lucide_icon/STORE-Poweredby-Horizontal-Dark.svg"}setImageForNFT(t){this.isLoading=!0,this.imageMain.onload=()=>{we(!0).pipe(ya(500)).subscribe(()=>{this.isLoading=!1,this.changeRef.detectChanges()})},this.imageMain.src=t,we(!0).pipe(ya(5e3),Qe(this)).subscribe(()=>{(!this.imageMain.complete||!this.imageMain.naturalWidth)&&(this.imageMain.src="../../../../assets/content-down.svg",this.isLoading=!1)})}randomNFTAddress(){return"1x12345"}},d2.\u0275fac=function(t){return new(t||d2)(ye(Mc))},d2.\u0275cmp=xt({type:d2,selectors:[["storecloud-publisher-nft-stamp-image"]],viewQuery:function(t,e){if(1&t&&rl(NTe,5),2&t){let r;Es(r=ks())&&(e.canvas=r.first)}},inputs:{nft:"nft",type:"type",firstTime:"firstTime"},standalone:!0,features:[Do],decls:16,vars:10,consts:[[3,"ngClass"],[1,"default-img",3,"ngStyle"],["canvas",""],["loading","lazy",3,"src"],[4,"ngIf","ngIfElse"],["loader",""],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(O(0,"div",0),h(1,"\n "),O(2,"div",1),h(3,"\n "),fe(4,"canvas",null,2),h(6,"\n "),fe(7,"img",3),h(8,"\n "),S(),h(9,"\n "),ee(10,LTe,2,0,"ng-container",4),h(11,"\n"),S(),h(12,"\n"),ee(13,$Te,3,6,"ng-template",null,5,zt),h(15,"\n")),2&t){const r=ht(14);E("ngClass",Nf(5,UTe,"detail"===e.type,"top-list"===e.type)),A(2),E("ngStyle",Nt(8,VTe,e.isLoading?"none":"block")),A(5),E("src",e.imageMain.src,fa),A(3),E("ngIf",!e.isLoading)("ngIfElse",r)}},dependencies:[Wi,Vo,tr,Gi,lp,ba],styles:[".image-container[_ngcontent-%COMP%]{width:100%;height:100%;align-items:center;justify-content:center}.image-container[_ngcontent-%COMP%] .default-img[_ngcontent-%COMP%]{width:100%;height:100%;display:block;position:relative;background-color:#000}.image-container[_ngcontent-%COMP%] .default-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;left:0;position:absolute;top:0;width:100%;z-index:0;object-fit:contain;border:inherit;border-radius:inherit;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.image-container[_ngcontent-%COMP%] .default-img[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{width:100%;height:100%;z-index:1;position:absolute;border:inherit;object-fit:contain;border-radius:inherit;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.top-list-image[_ngcontent-%COMP%]{min-height:100px}.top-list-image[_ngcontent-%COMP%] .default-img[_ngcontent-%COMP%]{height:100px!important;border-radius:8px 8px 0 0}.detail-image[_ngcontent-%COMP%]{min-height:293px}@media screen and (max-width: 1024px){.top-list-image[_ngcontent-%COMP%]{height:100%!important}.top-list-image[_ngcontent-%COMP%] .default-img[_ngcontent-%COMP%]{height:100px!important;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.detail-image[_ngcontent-%COMP%]{min-height:150px}}"],changeDetection:0}),d2);U1=ke([en({checkProperties:!0})],U1);let xl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({providers:[mS({defaultVariation:"tooltip",variations:{tooltip:{...gS,theme:"light",arrow:!0}}}),$u],imports:[Wi,lp,zY.forRoot(),j_e,ZM,WN,hs,Wc,U1]}),n})();um(GC,function(){return[Vo,ma,tr,aa,Gi,ba,hs,Wc,U1,Yl]},function(){return[ol,l$]}),um(MC,function(){return[tr,hs,Yl]},function(){return[qN]}),um(xp,function(){return[Vo,ma,tr,aa,Gi,ba,hs,Wc,OC,PS,Yl,OK]},function(){return[ol]});var Vh=(()=>(function(n){n[n.Off=0]="Off",n[n.Error=1]="Error",n[n.Warning=2]="Warning",n[n.Info=3]="Info",n[n.Debug=4]="Debug"}(Vh||(Vh={})),Vh))();class V1{static enableProductionMode(){V1.level=Vh.Warning}constructor(t){this.source=t}debug(...t){this.log(console.log,Vh.Debug,t)}info(...t){this.log(console.info,Vh.Info,t)}warn(...t){this.log(console.warn,Vh.Warning,t)}error(...t){this.log(console.error,Vh.Error,t)}log(t,e,r){if(e<=V1.level){const i=this.source?["["+this.source+"]"].concat(r):r;t.apply(console,i),V1.outputs.forEach(o=>o.apply(o,[this.source,e,...r]))}}}V1.level=Vh.Debug,V1.outputs=[];let z1=(()=>{class n{constructor(){this.rootUrl="http://localhost:3000/api"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mT=(()=>{class n{constructor(e,r){this.config=e,this.http=r,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}}return n.\u0275fac=function(e){return new(e||n)(Pe(z1),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac}),n})();const HTe=new class zTe{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class r6{constructor(t,e,r,i,o){this.name=t,this.value=e,this.options=r,this.options=r||{},null==this.options.style&&(this.options.style=i),null==this.options.explode&&(this.options.explode=o)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(r=>this.serializeValue(r).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const r=[];for(const i of Object.keys(t)){let o=t[i];null!=o&&(o=this.serializeValue(o).split(e).join(encodeURIComponent(e)),this.options.explode?r.push(`${i}=${o}`):(r.push(i),r.push(o)))}return r.join(e)}return String(t)}}class jTe extends r6{constructor(t,e,r){super(t,e,r,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let r="label"===this.options.style?".":"",i=this.options.explode?""===r?",":r:",",o=!1;return"matrix"===this.options.style&&(r=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(r=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),o=!0):(e=this.serializeValue(e,";"),o=!0))),e=r+(o?e:this.serializeValue(e,i)),(t=t.replace(`{${this.name}}`,e)).replace(`{${r}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var r="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(r=(r=r.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class GTe extends r6{constructor(t,e,r){super(t,e,r,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const r=this.value[e];null!=r&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(r)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const r=this.value[e];null!=r&&(t=t.append(e,this.serializeValue(r)))}else{const e=[];for(const r of Object.keys(this.value)){const i=this.value[r];null!=i&&(e.push(r),e.push(i))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class WTe extends r6{constructor(t,e,r){super(t,e,r,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class Vu{constructor(t,e,r){this.rootUrl=t,this.operationPath=e,this.method=r,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,r){this._path.set(t,new jTe(t,e,r||{}))}query(t,e,r){this._query.set(t,new GTe(t,e,r||{}))}header(t,e,r){this._header.set(t,new WTe(t,e,r||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const r=[];for(const i of Object.keys(t)){let o=t[i];o instanceof Array||(o=[o]);for(const a of o){const s=this.formDataValue(a);null!==s&&r.push([i,s])}}this._bodyContent=r.map(i=>`${encodeURIComponent(i[0])}=${encodeURIComponent(i[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const r=new FormData;if(null!=t)for(const i of Object.keys(t)){const o=t[i];if(o instanceof Array)for(const a of o){const s=this.formDataValue(a);null!==s&&r.append(i,s)}else{const a=this.formDataValue(o);null!==a&&r.set(i,a)}}this._bodyContent=r}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const r=this.rootUrl+e;let i=new Sc({encoder:HTe});for(const a of this._query.values())i=a.append(i);let o=new va;t.accept&&(o=o.append("Accept",t.accept));for(const a of this._header.values())o=a.append(o);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(o=o.set("Content-Type",this._bodyContentType)),new mh(this.method.toUpperCase(),r,this._bodyContent,{params:i,headers:o,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let i6=(()=>{class n extends mT{constructor(e,r){super(e,r)}count$Response(e){const r=new Vu(this.rootUrl,n.AssetControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}count(e){return this.count$Response(e).pipe(R(r=>r.body))}webhook$Response(e){const r=new Vu(this.rootUrl,n.AssetControllerWebhookPath,"post");return e&&r.body(e.body,"application/json"),this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}webhook(e){return this.webhook$Response(e).pipe(R(r=>r.body))}updateTxnById$Response(e){const r=new Vu(this.rootUrl,n.AssetControllerUpdateTxnByIdPath,"patch");return e&&(r.path("id",e.id,{}),r.path("txnId",e.txnId,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}updateTxnById(e){return this.updateTxnById$Response(e).pipe(R(r=>r.body))}findById$Response(e){const r=new Vu(this.rootUrl,n.AssetControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}findById(e){return this.findById$Response(e).pipe(R(r=>r.body))}deleteById$Response(e){const r=new Vu(this.rootUrl,n.AssetControllerDeleteByIdPath,"delete");return e&&r.path("id",e.id,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}deleteById(e){return this.deleteById$Response(e).pipe(R(r=>r.body))}find$Response(e){const r=new Vu(this.rootUrl,n.AssetControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}find(e){return this.find$Response(e).pipe(R(r=>r.body))}}return n.AssetControllerCountPath="/assets/count",n.AssetControllerWebhookPath="/assets/webhook",n.AssetControllerUpdateTxnByIdPath="/assets/{id}/{txnId}",n.AssetControllerFindByIdPath="/assets/{id}",n.AssetControllerDeleteByIdPath="/assets/{id}",n.AssetControllerFindPath="/assets",n.\u0275fac=function(e){return new(e||n)(Pe(z1),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qTe=(()=>{class n extends mT{constructor(e,r){super(e,r)}upload$Response(e){const r=new Vu(this.rootUrl,n.FileControllerUploadPath,"post");return e&&(r.path("supply",e.supply,{}),r.body(e.body,"multipart/form-data")),this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}upload(e){return this.upload$Response(e).pipe(R(r=>r.body))}}return n.FileControllerUploadPath="/file/{supply}",n.\u0275fac=function(e){return new(e||n)(Pe(z1),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZTe=(()=>{class n extends mT{constructor(e,r){super(e,r)}health$Response(e){const r=new Vu(this.rootUrl,n.HealthControllerHealthPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}health(e){return this.health$Response(e).pipe(R(r=>r.body))}live$Response(e){const r=new Vu(this.rootUrl,n.HealthControllerLivePath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}live(e){return this.live$Response(e).pipe(R(r=>r.body))}ready$Response(e){const r=new Vu(this.rootUrl,n.HealthControllerReadyPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}ready(e){return this.ready$Response(e).pipe(R(r=>r.body))}}return n.HealthControllerHealthPath="/health",n.HealthControllerLivePath="/live",n.HealthControllerReadyPath="/ready",n.\u0275fac=function(e){return new(e||n)(Pe(z1),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YTe=(()=>{class n extends mT{constructor(e,r){super(e,r)}ping$Response(e){const r=new Vu(this.rootUrl,n.PingControllerPingPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:e?.context})).pipe(Te(i=>i instanceof Le),R(i=>i))}ping(e){return this.ping$Response(e).pipe(R(r=>r.body))}}return n.PingControllerPingPath="/ping",n.\u0275fac=function(e){return new(e||n)(Pe(z1),Pe(nr))},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),XTe=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:z1,useValue:e}]}}constructor(e,r){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!r)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}}return n.\u0275fac=function(e){return new(e||n)(Pe(n,12),Pe(nr,8))},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({providers:[i6,qTe,ZTe,YTe,z1]}),n})(),KTe=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:Ql,useValue:e}]}}constructor(e,r){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!r)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}}return n.\u0275fac=function(e){return new(e||n)(Pe(n,12),Pe(nr,8))},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({providers:[QPe,iK,eOe,tOe,oK,nOe,aK,rOe,iOe,oOe,Ql]}),n})(),JTe=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:$h,useValue:e}]}}constructor(e,r){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!r)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}}return n.\u0275fac=function(e){return new(e||n)(Pe(n,12),Pe(nr,8))},n.\u0275mod=xi({type:n}),n.\u0275inj=Yi({providers:[RPe,NPe,LPe,tK,wL,FPe,$h]}),n})();const QTe=["backdrop"],eAe=["dialog"];function tAe(n,t){if(1&n&&fe(0,"div",6),2&n){const e=se(),r=ht(3);E("dialogDragEnabled",!0)("dialogDragTarget",r)("dragConstraint",e.config.dragConstraint)}}function nAe(n,t){if(1&n){const e=jr();O(0,"div",7),yt("click",function(){return hr(e),fr(se().closeDialog())}),Ll(),O(1,"svg",8),fe(2,"path",9),S()()}}class zu{}class o6 extends zu{constructor(t={}){super(),this.beforeCloseGuards=[],this.mutate(t)}close(t){this.canClose(t).pipe(Te(Boolean)).subscribe({next:()=>this.onClose(t)})}beforeClose(t){this.beforeCloseGuards.push(t)}resetDrag(t){this.onReset(t)}canClose(t){return Dl(...this.beforeCloseGuards.map(r=>r(t)).filter(r=>void 0!==r&&!0!==r).map(r=>"boolean"==typeof r?we(r):bi(r).pipe(Te(i=>!i)))).pipe(Ny(!0),vh())}mutate(t){Object.assign(this,t)}asDialogRef(){return this}}function vT(n){return function rAe(n){return null==n}(n)?"":function iAe(n){return"string"==typeof n}(n)?n:`${n}px`}let DJ=(()=>{class n{constructor(){this.dialogDragEnabled=!1,this.host=Lt(wr),this.zone=Lt(Di),this.delta={x:0,y:0},this.offset={x:0,y:0},this.enabled=!0,this.destroy$=new D}set dialogDragOffset(e){this.reset(e)}ngAfterViewInit(){this.enabled&&this.init()}ngOnChanges(){!this.enabled&&this.dialogDragEnabled&&this.dialogDragTarget&&(this.enabled=!0,this.handle?this.handle.style.setProperty("cursor","move"):this.enabled&&this.init()),this.dialogDragEnabled||(this.enabled=!1,this.handle&&this.handle.style.setProperty("cursor",""))}ngOnDestroy(){this.destroy$.next()}reset(e){const r={x:0,y:0};this.offset={...r,...e},this.delta={...r},this.translate()}setupEvents(){this.zone.runOutsideAngular(()=>{const e=Nh(this.handle,"mousedown"),r=Nh(document,"mousemove"),i=Nh(document,"mouseup");e.pipe(Te(()=>this.enabled),R(a=>({startX:a.clientX,startY:a.clientY})),_a(({startX:a,startY:s})=>r.pipe(R(l=>{l.preventDefault(),this.delta={x:l.clientX-a,y:l.clientY-s},"constrain"===this.dragConstraint&&this.checkConstraint()}),sl(i))),sl(this.destroy$)).subscribe(()=>{0===this.delta.x&&0===this.delta.y||this.translate()}),i.pipe(Te(()=>this.enabled),Te(()=>0!==this.delta.x||0!==this.delta.y),sl(this.destroy$)).subscribe(()=>{"bounce"===this.dragConstraint&&(this.checkConstraint(),this.translate()),this.offset.x+=this.delta.x,this.offset.y+=this.delta.y,this.delta={x:0,y:0}})})}translate(){this.target&&this.zone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.target.style.setProperty("transform",`translate(${this.translateX}px, ${this.translateY}px)`)})})}get translateX(){return this.offset.x+this.delta.x}get translateY(){return this.offset.y+this.delta.y}init(){if(!this.dialogDragTarget)throw new Error("You need to specify the drag target");this.handle=this.dialogDragHandle instanceof Element?this.dialogDragHandle:"string"==typeof this.dialogDragHandle&&this.dialogDragHandle?document.querySelector(this.dialogDragHandle):this.host.nativeElement,this.handle&&this.enabled&&this.handle.style.setProperty("cursor","move"),this.target=this.dialogDragTarget instanceof HTMLElement?this.dialogDragTarget:document.querySelector(this.dialogDragTarget),this.setupEvents(),this.translate()}checkConstraint(){const{width:e,height:r}=this.target.getBoundingClientRect(),{innerWidth:i,innerHeight:o}=window,a=this.translateY>0?this.translateY+r/2:this.translateY-r/2,s=o/2,l=this.translateX>0?this.translateX+e/2:this.translateX-e/2,c=i/2;-s>a&&(this.delta.y=r/2-s-this.offset.y),sl&&(this.delta.x=e/2-c-this.offset.x),cLt(Bo)}),s6=new Ct("config",{providedIn:"root",factory:()=>({})});const EJ=new Ct("Global dialog config token",{providedIn:"root",factory:()=>function IJ(){return{id:void 0,container:Lt(a6).body,backdrop:!0,closeButton:!0,enableClose:!0,draggable:!1,dragConstraint:"none",resizable:!1,size:"md",windowClass:void 0,width:void 0,height:void 0,minHeight:void 0,maxHeight:void 0,data:void 0,vcr:void 0,sizes:{sm:{height:"auto",width:"400px"},md:{height:"auto",width:"560px"},lg:{height:"auto",width:"800px"},fullScreen:{height:"100%",width:"100%"}},onClose:void 0,onOpen:void 0}}()}),kJ=new Ct("Nodes inserted into the dialog");let oAe=(()=>{class n{constructor(){this.config=Lt(s6),this.dialogRef=Lt(o6),this.size=this.config.sizes?.[this.config.size||"md"],this.styles={width:vT(this.config.width||this.size?.width),height:vT(this.config.height||this.size?.height),minHeight:vT(this.config.minHeight||this.size?.minHeight),maxHeight:vT(this.config.maxHeight||this.size?.maxHeight)},this.destroy$=new D,this.nodes=Lt(kJ),this.document=Lt(Bo),this.host=Lt(wr).nativeElement,this.host.id=this.config.id,this.nodes.forEach(e=>this.host.appendChild(e)),this.config.windowClass&&this.config.windowClass.split(/\s/).filter(r=>r).forEach(r=>this.host.classList.add(r))}ngOnInit(){const e=this.config.backdrop?this.backdrop.nativeElement:this.document.body,r=this.dialogElement.nativeElement,i=Nh(e,"click",{capture:!0}).pipe(Te(({target:o})=>!r.contains(o)));if(i.pipe(sl(this.destroy$)).subscribe(this.dialogRef.backdropClick$),this.config.enableClose&&Dl(Nh(this.document.body,"keyup").pipe(Te(({key:o})=>"Escape"===o)),i).pipe(sl(this.destroy$)).subscribe(()=>this.closeDialog()),this.nodes.forEach(o=>r.appendChild(o)),this.config.zIndexGetter){const o=this.config.zIndexGetter().toString();e.style.setProperty("--dialog-backdrop-z-index",o)}}reset(e){this.config.draggable&&this.draggable.reset(e)}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.dialogRef=null,this.nodes=null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=xt({type:n,selectors:[["ngneat-dialog"]],viewQuery:function(e,r){if(1&e&&(rl(QTe,7),rl(eAe,7),rl(DJ,5)),2&e){let i;Es(i=ks())&&(r.backdrop=i.first),Es(i=ks())&&(r.dialogElement=i.first),Es(i=ks())&&(r.draggable=i.first)}},standalone:!0,features:[Do],decls:6,vars:8,consts:[[1,"ngneat-dialog-backdrop",3,"hidden"],["backdrop",""],["role","dialog",1,"ngneat-dialog-content",3,"ngStyle"],["dialog",""],["class","ngneat-drag-marker","dialogDraggable","",3,"dialogDragEnabled","dialogDragTarget","dragConstraint",4,"ngIf"],["class","ngneat-close-dialog",3,"click",4,"ngIf"],["dialogDraggable","",1,"ngneat-drag-marker",3,"dialogDragEnabled","dialogDragTarget","dragConstraint"],[1,"ngneat-close-dialog",3,"click"],["viewBox","0 0 329.26933 329","xmlns","http://www.w3.org/2000/svg"],["fill","currentColor","d","m194.800781 164.769531 128.210938-128.214843c8.34375-8.339844 8.34375-21.824219 0-30.164063-8.339844-8.339844-21.824219-8.339844-30.164063 0l-128.214844 128.214844-128.210937-128.214844c-8.34375-8.339844-21.824219-8.339844-30.164063 0-8.34375 8.339844-8.34375 21.824219 0 30.164063l128.210938 128.214843-128.210938 128.214844c-8.34375 8.339844-8.34375 21.824219 0 30.164063 4.15625 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921875-2.089844 15.082031-6.25l128.210937-128.214844 128.214844 128.214844c4.160156 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921874-2.089844 15.082031-6.25 8.34375-8.339844 8.34375-21.824219 0-30.164063zm0 0"]],template:function(e,r){1&e&&(O(0,"div",0,1)(2,"div",2,3),ee(4,tAe,1,3,"div",4),ee(5,nAe,3,0,"div",5),S()()),2&e&&(gg("ngneat-dialog-backdrop-visible",r.config.backdrop),E("hidden",!r.config.backdrop),A(2),gg("ngneat-dialog-resizable",r.config.resizable),E("ngStyle",r.styles),A(2),E("ngIf",r.config.draggable),A(1),E("ngIf",r.config.closeButton))},dependencies:[DJ,Wi,tr,Gi],styles:[".ngneat-dialog-content{display:flex;flex-direction:column;overflow:hidden;position:relative;animation:dialog-open .4s cubic-bezier(.25,.8,.25,1);border-radius:var(--dialog-content-border-radius, 4px);box-sizing:border-box;box-shadow:var(--dialog-content-box-shadow, 0px 11px 19px rgba(15, 20, 58, .14));background:var(--dialog-content-bg, #fff);width:auto;max-width:100%;height:auto;max-height:100%}@keyframes dialog-open{0%{transform:translate(50px)}to{transform:none}}.ngneat-dialog-content.ngneat-dialog-resizable{resize:both}.ngneat-dialog-backdrop{position:fixed;display:flex;align-items:center;justify-content:center;inset:0;height:100%;width:100%;padding:30px;z-index:var(--dialog-backdrop-z-index, 1050);background-color:transparent;animation:dialog-open-backdrop .3s}.ngneat-dialog-backdrop.ngneat-dialog-backdrop-visible{background:var(--dialog-backdrop-bg, rgba(0, 0, 0, .32))}@keyframes dialog-open-backdrop{0%{opacity:0}to{opacity:1}}.ngneat-drag-marker{position:absolute;left:0;top:0;cursor:move;width:100%;height:10px}.ngneat-close-dialog{display:flex;align-items:center;justify-content:center;position:absolute;cursor:pointer;top:var(--dialog-close-btn-top, 6px);right:var(--dialog-close-btn-right, 10px);width:var(--dialog-close-btn-size, 30px);height:var(--dialog-close-btn-size, 30px);color:var(--dialog-close-btn-color, #5f6368);transition:all .2s ease-in-out;border-radius:50%}.ngneat-close-dialog svg{width:var(--dialog-close-svg-size, 12px);height:var(--dialog-close-svg-size, 12px)}.ngneat-close-dialog:hover{color:var(--dialog-close-btn-color-hover, #5f6368);background-color:var(--dialog-close-btn-bg-hover, #eee)}body.ngneat-dialog-hidden{overflow:hidden}\n"],encapsulation:2}),n})();const RJ="ngneat-dialog-hidden";let H1=(()=>{class n{constructor(){this.appRef=Lt(yg),this.injector=Lt(Vl),this.document=Lt(a6),this.globalConfig=Lt(EJ),this.dialogs=[],this.hasOpenDialogSub=new io(!1),this.hasOpenDialogs$=this.hasOpenDialogSub.asObservable()}hasOpenDialogs(){return this.dialogs.length>0}isOpen(e){return this.dialogs.some(r=>r.id===e)}closeAll(){this.dialogs.forEach(e=>e.close())}open(e,r={}){const i=this.mergeConfig(r);i.onOpen?.();const o=new o6({id:i.id,data:i.data,backdropClick$:new D});this.throwIfIDAlreadyExists(i.id);const a={config:i,dialogRef:o};return this.dialogs.push(o),this.hasOpenDialogSub.next(!0),1===this.dialogs.length&&this.document.body.classList.add(RJ),e instanceof xc?this.openTemplate(e,a):"function"==typeof e?this.openComponent(e,a):function aAe(n){throw new TypeError(`Dialog must receive a Component or a TemplateRef, but this has been passed instead: ${n}`)}(e)}openTemplate(e,{config:r,dialogRef:i}){const o={$implicit:i,config:r},a=r.vcr?.createEmbeddedView(e,o)||e.createEmbeddedView(o);return this.attach({dialogRef:i,config:r,ref:e,view:a,attachToApp:!r.vcr})}openComponent(e,{config:r,dialogRef:i}){const o=F7(e,{elementInjector:fo.create({providers:[{provide:zu,useValue:i},{provide:s6,useValue:r}],parent:r.vcr?.injector||this.injector}),environmentInjector:this.injector});return this.attach({dialogRef:i,config:r,ref:o,view:o.hostView,attachToApp:!0})}attach({dialogRef:e,config:r,ref:i,view:o,attachToApp:a}){const s=this.createDialog(r,e,o),l=r.container instanceof wr?r.container.nativeElement:r.container,c={after:new D};return e.mutate({id:r.id,data:r.data,ref:i,onClose:p=>{this.globalConfig.onClose?.(),this.dialogs=this.dialogs.filter(({id:g})=>e.id!==g),this.hasOpenDialogSub.next(this.hasOpenDialogs()),l.removeChild(s.location.nativeElement),this.appRef.detachView(s.hostView),this.appRef.detachView(o),s.destroy(),o.destroy(),e.backdropClick$.complete(),e.mutate({ref:null,onClose:null,afterClosed$:null,backdropClick$:null,beforeCloseGuards:null,onReset:null}),c.after.next(p),c.after.complete(),0===this.dialogs.length&&this.document.body.classList.remove(RJ)},afterClosed$:c.after.asObservable(),onReset:p=>{s.instance.reset(p)}}),l.appendChild(s.location.nativeElement),this.appRef.attachView(s.hostView),a&&this.appRef.attachView(o),e.asDialogRef()}createDialog(e,r,i){return F7(oAe,{elementInjector:fo.create({providers:[{provide:o6,useValue:r},{provide:kJ,useValue:i.rootNodes},{provide:s6,useValue:e}],parent:this.injector}),environmentInjector:this.injector})}mergeConfig(e){return{...this.globalConfig,id:`dialog-${Math.random().toString(36).substring(7)}`,...e,sizes:this.globalConfig?.sizes}}throwIfIDAlreadyExists(e){if(this.dialogs.find(r=>r.id===e))throw new Error(`Please, ID must be unique, but there is already a dialog created with this ID: ${e}`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Hu=function(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})};const Qc=new Ee("abstract-signer/5.7.0"),cAe=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],uAe=[Ee.errors.INSUFFICIENT_FUNDS,Ee.errors.NONCE_EXPIRED,Ee.errors.REPLACEMENT_UNDERPRICED];class l6{constructor(){Qc.checkAbstract(new.target,l6),In(this,"_isSigner",!0)}getBalance(t){return Hu(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return Hu(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return Hu(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const e=yield Na(this.checkTransaction(t));return yield this.provider.estimateGas(e)})}call(t,e){return Hu(this,void 0,void 0,function*(){this._checkProvider("call");const r=yield Na(this.checkTransaction(t));return yield this.provider.call(r,e)})}sendTransaction(t){return Hu(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),r=yield this.signTransaction(e);return yield this.provider.sendTransaction(r)})}getChainId(){return Hu(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Hu(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Hu(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return Hu(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(const r in t)-1===cAe.indexOf(r)&&Qc.throwArgumentError("invalid transaction key: "+r,"transaction",t);const e=bl(t);return e.from=null==e.from?this.getAddress():Promise.all([Promise.resolve(e.from),this.getAddress()]).then(r=>(r[0].toLowerCase()!==r[1].toLowerCase()&&Qc.throwArgumentError("from address mismatch","transaction",t),r[0])),e}populateTransaction(t){return Hu(this,void 0,void 0,function*(){const e=yield Na(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then(i=>Hu(this,void 0,void 0,function*(){if(null==i)return null;const o=yield this.resolveName(i);return null==o&&Qc.throwArgumentError("provided ENS name resolves to null","tx.to",i),o})),e.to.catch(i=>{}));const r=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null==e.gasPrice||2!==e.type&&!r?(0===e.type||1===e.type)&&r&&Qc.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t):Qc.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==e.type&&null!=e.type||null==e.maxFeePerGas||null==e.maxPriorityFeePerGas)if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(null==e.type)if(null!=i.maxFeePerGas&&null!=i.maxPriorityFeePerGas)if(e.type=2,null!=e.gasPrice){const o=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=o,e.maxPriorityFeePerGas=o}else null==e.maxFeePerGas&&(e.maxFeePerGas=i.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else null!=i.gasPrice?(r&&Qc.throwError("network does not support EIP-1559",Ee.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=i.gasPrice),e.type=0):Qc.throwError("failed to get consistent fee data",Ee.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=i.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}else e.type=2;return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch(i=>{if(uAe.indexOf(i.code)>=0)throw i;return Qc.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ee.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:e})})),e.chainId=null==e.chainId?this.getChainId():Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then(i=>(0!==i[1]&&i[0]!==i[1]&&Qc.throwArgumentError("chainId address mismatch","transaction",t),i[0])),yield Na(e)})}_checkProvider(t){this.provider||Qc.throwError("missing provider",Ee.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!(!t||!t._isSigner)}}function LJ(n){return La(Nd(n))}const vo=new Ee(OX),FJ=new Uint8Array(32);FJ.fill(0);const hAe=ft.from(-1),BJ=ft.from(0),$J=ft.from(1),fAe=ft.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),gAe=mo($J.toHexString(),32),mAe=mo(BJ.toHexString(),32),UJ={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},c6=["name","version","chainId","verifyingContract","salt"];function VJ(n){return function(t){return"string"!=typeof t&&vo.throwArgumentError(`invalid domain value for ${JSON.stringify(n)}`,`domain.${n}`,t),t}}const vAe={name:VJ("name"),version:VJ("version"),chainId:function(n){try{return ft.from(n).toString()}catch{}return vo.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",n)},verifyingContract:function(n){try{return Fa(n).toLowerCase()}catch{}return vo.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",n)},salt:function(n){try{const t=xn(n);if(32!==t.length)throw new Error("bad length");return wn(t)}catch{}return vo.throwArgumentError('invalid domain value "salt"',"domain.salt",n)}};function u6(n){{const t=n.match(/^(u?)int(\d*)$/);if(t){const e=""===t[1],r=parseInt(t[2]||"256");(r%8!=0||r>256||t[2]&&t[2]!==String(r))&&vo.throwArgumentError("invalid numeric width","type",n);const i=fAe.mask(e?r-1:r),o=e?i.add($J).mul(hAe):BJ;return function(a){const s=ft.from(a);return(s.lt(o)||s.gt(i))&&vo.throwArgumentError(`value out-of-bounds for ${n}`,"value",a),mo(s.toTwos(256).toHexString(),32)}}}{const t=n.match(/^bytes(\d+)$/);if(t){const e=parseInt(t[1]);return(0===e||e>32||t[1]!==String(e))&&vo.throwArgumentError("invalid bytes width","type",n),function(r){return xn(r).length!==e&&vo.throwArgumentError(`invalid length for ${n}`,"value",r),function pAe(n){const t=xn(n),e=t.length%32;return e?yl([t,FJ.slice(e)]):wn(t)}(r)}}}switch(n){case"address":return function(t){return mo(Fa(t),32)};case"bool":return function(t){return t?gAe:mAe};case"bytes":return function(t){return La(t)};case"string":return function(t){return LJ(t)}}return null}function zJ(n,t){return`${n}(${t.map(({name:e,type:r})=>r+" "+e).join(",")})`}class ec{constructor(t){In(this,"types",Object.freeze(fp(t))),In(this,"_encoderCache",{}),In(this,"_types",{});const e={},r={},i={};Object.keys(t).forEach(s=>{e[s]={},r[s]=[],i[s]={}});for(const s in t){const l={};t[s].forEach(c=>{l[c.name]&&vo.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(s)}`,"types",t),l[c.name]=!0;const u=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];u===s&&vo.throwArgumentError(`circular type reference to ${JSON.stringify(u)}`,"types",t),!u6(u)&&(r[u]||vo.throwArgumentError(`unknown type ${JSON.stringify(u)}`,"types",t),r[u].push(s),e[s][u]=!0)})}const o=Object.keys(r).filter(s=>0===r[s].length);0===o.length?vo.throwArgumentError("missing primary type","types",t):o.length>1&&vo.throwArgumentError(`ambiguous primary types or unused types: ${o.map(s=>JSON.stringify(s)).join(", ")}`,"types",t),In(this,"primaryType",o[0]),function a(s,l){l[s]&&vo.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",t),l[s]=!0,Object.keys(e[s]).forEach(c=>{r[c]&&(a(c,l),Object.keys(l).forEach(u=>{i[u][c]=!0}))}),delete l[s]}(this.primaryType,{});for(const s in i){const l=Object.keys(i[s]);l.sort(),this._types[s]=zJ(s,t[s])+l.map(c=>zJ(c,t[c])).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const i=u6(t);if(i)return i}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const i=e[1],o=this.getEncoder(i),a=parseInt(e[3]);return s=>{a>=0&&s.length!==a&&vo.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",s);let l=s.map(o);return this._types[i]&&(l=l.map(La)),La(yl(l))}}const r=this.types[t];if(r){const i=LJ(this._types[t]);return o=>{const a=r.map(({name:s,type:l})=>{const c=this.getEncoder(l)(o[s]);return this._types[l]?La(c):c});return a.unshift(i),yl(a)}}return vo.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const e=this._types[t];return e||vo.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return La(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(u6(t))return r(t,e);const i=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const a=i[1],s=parseInt(i[3]);return s>=0&&e.length!==s&&vo.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map(l=>this._visit(a,l,r))}const o=this.types[t];return o?o.reduce((a,{name:s,type:l})=>(a[s]=this._visit(l,e[s],r),a),{}):vo.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new ec(t)}static getPrimaryType(t){return ec.from(t).primaryType}static hashStruct(t,e,r){return ec.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){const i=UJ[r];i||vo.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:i})}return e.sort((r,i)=>c6.indexOf(r.name)-c6.indexOf(i.name)),ec.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return yl(["0x1901",ec.hashDomain(t),ec.from(e).hash(r)])}static hash(t,e,r){return La(ec.encode(t,e,r))}static resolveNames(t,e,r,i){return function(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){t=bl(t);const o={};t.verifyingContract&&!Ri(t.verifyingContract,20)&&(o[t.verifyingContract]="0x");const a=ec.from(e);a.visit(r,(s,l)=>("address"===s&&!Ri(l,20)&&(o[l]="0x"),l));for(const s in o)o[s]=yield i(s);return t.verifyingContract&&o[t.verifyingContract]&&(t.verifyingContract=o[t.verifyingContract]),r=a.visit(r,(s,l)=>"address"===s&&o[l]?o[l]:l),{domain:t,value:r}})}static getPayload(t,e,r){ec.hashDomain(t);const i={},o=[];c6.forEach(l=>{const c=t[l];null!=c&&(i[l]=vAe[l](c),o.push({name:l,type:UJ[l]}))});const a=ec.from(e),s=bl(e);return s.EIP712Domain?vo.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):s.EIP712Domain=o,a.encode(r),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(r,(l,c)=>{if(l.match(/^bytes(\d*)/))return wn(xn(c));if(l.match(/^u?int/))return ft.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return"string"!=typeof c&&vo.throwArgumentError("invalid string","value",c),c}return vo.throwArgumentError("unsupported type","type",l)})}}}var zh=function(n,t,e,r){return new(e||(e=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof e?o:new e(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,t||[])).next())})};const Yo=new Ee(RC),_Ae=["call","estimateGas"];function t3(n,t){if(null==n)return null;if("string"==typeof n.message&&n.message.match("reverted")){const e=Ri(n.data)?n.data:null;if(!t||e)return{message:n.message,data:e}}if("object"==typeof n){for(const e in n){const r=t3(n[e],t);if(r)return r}return null}if("string"==typeof n)try{return t3(JSON.parse(n),t)}catch{}return null}function HJ(n,t,e){const r=e.transaction||e.signedTransaction;if("call"===n){const o=t3(t,!0);if(o)return o.data;Yo.throwError("missing revert data in call exception; Transaction reverted without a reason string",Ee.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:t})}if("estimateGas"===n){let o=t3(t.body,!1);null==o&&(o=t3(t,!1)),o&&Yo.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ee.errors.UNPREDICTABLE_GAS_LIMIT,{reason:o.message,method:n,transaction:r,error:t})}let i=t.message;throw t.code===Ee.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Yo.throwError("insufficient funds for intrinsic transaction cost",Ee.errors.INSUFFICIENT_FUNDS,{error:t,method:n,transaction:r}),i.match(/nonce (is )?too low/i)&&Yo.throwError("nonce has already been used",Ee.errors.NONCE_EXPIRED,{error:t,method:n,transaction:r}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Yo.throwError("replacement fee too low",Ee.errors.REPLACEMENT_UNDERPRICED,{error:t,method:n,transaction:r}),i.match(/only replay-protected/i)&&Yo.throwError("legacy pre-eip-155 transactions not supported",Ee.errors.UNSUPPORTED_OPERATION,{error:t,method:n,transaction:r}),_Ae.indexOf(n)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Yo.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ee.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:n,transaction:r}),t}function jJ(n){return new Promise(function(t){setTimeout(t,n)})}function yAe(n){if(n.error){const t=new Error(n.error.message);throw t.code=n.error.code,t.data=n.error.data,t}return n.result}function n3(n){return n&&n.toLowerCase()}const d6={};class GJ extends l6{constructor(t,e,r){if(super(),t!==d6)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");In(this,"provider",e),null==r&&(r=0),"string"==typeof r?(In(this,"_address",this.provider.formatter.address(r)),In(this,"_index",null)):"number"==typeof r?(In(this,"_index",r),In(this,"_address",null)):Yo.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(t){return Yo.throwError("cannot alter JSON-RPC Signer connection",Ee.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new bAe(d6,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(t=>(t.length<=this._index&&Yo.throwError("unknown account #"+this._index,Ee.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index])))}sendUncheckedTransaction(t){t=bl(t);const e=this.getAddress().then(r=>(r&&(r=r.toLowerCase()),r));if(null==t.gasLimit){const r=bl(t);r.from=e,t.gasLimit=this.provider.estimateGas(r)}return null!=t.to&&(t.to=Promise.resolve(t.to).then(r=>zh(this,void 0,void 0,function*(){if(null==r)return null;const i=yield this.provider.resolveName(r);return null==i&&Yo.throwArgumentError("provided ENS name resolves to null","tx.to",r),i}))),Na({tx:Na(t),sender:e}).then(({tx:r,sender:i})=>{null!=r.from?r.from.toLowerCase()!==i&&Yo.throwArgumentError("from address mismatch","transaction",t):r.from=i;const o=this.provider.constructor.hexlifyTransaction(r,{from:!0});return this.provider.send("eth_sendTransaction",[o]).then(a=>a,a=>("string"==typeof a.message&&a.message.match(/user denied/i)&&Yo.throwError("user rejected transaction",Ee.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:r}),HJ("sendTransaction",a,o)))})}signTransaction(t){return Yo.throwError("signing transactions is unsupported",Ee.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return zh(this,void 0,void 0,function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(t);try{return yield kC(()=>zh(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(r);if(null!==i)return this.provider._wrapTransaction(i,r,e)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=r,i}})}signMessage(t){return zh(this,void 0,void 0,function*(){const e="string"==typeof t?Nd(t):t,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[wn(e),r.toLowerCase()])}catch(i){throw"string"==typeof i.message&&i.message.match(/user denied/i)&&Yo.throwError("user rejected signing",Ee.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:t}),i}})}_legacySignMessage(t){return zh(this,void 0,void 0,function*(){const e="string"==typeof t?Nd(t):t,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),wn(e)])}catch(i){throw"string"==typeof i.message&&i.message.match(/user denied/i)&&Yo.throwError("user rejected signing",Ee.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:t}),i}})}_signTypedData(t,e,r){return zh(this,void 0,void 0,function*(){const i=yield ec.resolveNames(t,e,r,a=>this.provider.resolveName(a)),o=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(ec.getPayload(i.domain,e,i.value))])}catch(a){throw"string"==typeof a.message&&a.message.match(/user denied/i)&&Yo.throwError("user rejected signing",Ee.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:i.domain,types:e,value:i.value}}),a}})}unlock(t){return zh(this,void 0,void 0,function*(){const e=this.provider,r=yield this.getAddress();return e.send("personal_unlockAccount",[r.toLowerCase(),t,null])})}}class bAe extends GJ{sendTransaction(t){return this.sendUncheckedTransaction(t).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:r=>this.provider.waitForTransaction(e,r)}))}}const CAe={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class wAe extends KX{constructor(t,e){let r=e;null==r&&(r=new Promise((i,o)=>{setTimeout(()=>{this.detectNetwork().then(a=>{i(a)},a=>{o(a)})},0)})),super(r),t||(t=AC(this.constructor,"defaultUrl")()),In(this,"connection",Object.freeze("string"==typeof t?{url:t}:bl(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return zh(this,void 0,void 0,function*(){yield jJ(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch{try{t=yield this.send("net_version",[])}catch{}}if(null!=t){const e=AC(this.constructor,"getNetwork");try{return e(ft.from(t).toNumber())}catch(r){return Yo.throwError("could not detect network",Ee.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:r})}}return Yo.throwError("could not detect network",Ee.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(t){return new GJ(d6,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(t=>t.map(e=>this.formatter.address(e)))}send(t,e){const r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:fp(r),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(i&&this._cache[t])return this._cache[t];const o=FS(this.connection,JSON.stringify(r),yAe).then(a=>(this.emit("debug",{action:"response",request:r,response:a,provider:this}),a),a=>{throw this.emit("debug",{action:"response",error:a,request:r,provider:this}),a});return i&&(this._cache[t]=o,setTimeout(()=>{this._cache[t]=null},0)),o}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[n3(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[n3(e.address),e.blockTag]];case"getCode":return["eth_getCode",[n3(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[n3(e.address),mo(e.position,32),e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[AC(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[AC(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=n3(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return zh(this,void 0,void 0,function*(){if("call"===t||"estimateGas"===t){const i=e.transaction;if(i&&null!=i.type&&ft.from(i.type).isZero()&&null==i.maxFeePerGas&&null==i.maxPriorityFeePerGas){const o=yield this.getFeeData();null==o.maxFeePerGas&&null==o.maxPriorityFeePerGas&&((e=bl(e)).transaction=bl(i),delete e.transaction.type)}}const r=this.prepareRequest(t,e);null==r&&Yo.throwError(t+" not implemented",Ee.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(r[0],r[1])}catch(i){return HJ(t,i,e)}})}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then(function(r){return function i(){t.send("eth_getFilterChanges",[r]).then(function(o){if(t._pendingFilter!=e)return null;let a=Promise.resolve();return o.forEach(function(s){t._emitted["t:"+s.toLowerCase()]="pending",a=a.then(function(){return t.getTransaction(s).then(function(l){return t.emit("pending",l),null})})}),a.then(function(){return jJ(1e3)})}).then(function(){if(t._pendingFilter==e)return setTimeout(function(){i()},0),null;t.send("eth_uninstallFilter",[r])}).catch(o=>{})}(),r}).catch(r=>{})}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const r=bl(CAe);if(e)for(const o in e)e[o]&&(r[o]=!0);!function $xe(n,t){(!n||"object"!=typeof n)&&AS.throwArgumentError("invalid object","object",n),Object.keys(n).forEach(e=>{t[e]||AS.throwArgumentError("invalid object key - "+e,"transaction:"+e,n)})}(t,r);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(null==t[o])return;const a=SC(ft.from(t[o]));"gasLimit"===o&&(o="gas"),i[o]=a}),["from","to","data"].forEach(function(o){null!=t[o]&&(i[o]=wn(t[o]))}),t.accessList&&(i.accessList=Q0(t.accessList)),i}}const WJ=new Ee(RC);let xAe=1;function qJ(n,t){const e="Web3LegacyFetcher";return function(r,i){const o={method:r,params:i,id:xAe++,jsonrpc:"2.0"};return new Promise((a,s)=>{this.emit("debug",{action:"request",fetcher:e,request:fp(o),provider:this}),t(o,(l,c)=>{if(l)return this.emit("debug",{action:"response",fetcher:e,error:l,request:o,provider:this}),s(l);if(this.emit("debug",{action:"response",fetcher:e,request:o,response:c,provider:this}),c.error){const u=new Error(c.error.message);return u.code=c.error.code,u.data=c.error.data,s(u)}a(c.result)})})}}class PAe extends wAe{constructor(t,e){null==t&&WJ.throwArgumentError("missing provider","provider",t);let r=null,i=null,o=null;"function"==typeof t?(r="unknown:",i=t):(r=t.host||t.path||"",!r&&t.isMetaMask&&(r="metamask"),o=t,t.request?(""===r&&(r="eip-1193:"),i=function MAe(n){return function(t,e){null==e&&(e=[]);const r={method:t,params:e};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:fp(r),provider:this}),n.request(r).then(i=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:i,provider:this}),i),i=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:i,provider:this}),i})}}(t)):t.sendAsync?i=qJ(0,t.sendAsync.bind(t)):t.send?i=qJ(0,t.send.bind(t)):WJ.throwArgumentError("unsupported provider","provider",t),r||(r="unknown:")),super(r,e),In(this,"jsonRpcFetchFunc",i),In(this,"provider",o)}send(t,e){return this.jsonRpcFetchFunc(t,e)}}var j1=(n=>(n.MissingApiKey="MISSING_API_KEY",n.ModalNotReady="MODAL_NOT_READY",n.MalformedResponse="MALFORMED_RESPONSE",n.InvalidArgument="INVALID_ARGUMENT",n.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",n.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",n))(j1||{}),_T=(n=>(n.SyncWeb3Method="SYNC_WEB3_METHOD",n.DuplicateIframe="DUPLICATE_IFRAME",n.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",n.DeprecationNotice="DEPRECATION_NOTICE",n))(_T||{}),h6=(n=>(n[n.ParseError=-32700]="ParseError",n[n.InvalidRequest=-32600]="InvalidRequest",n[n.MethodNotFound=-32601]="MethodNotFound",n[n.InvalidParams=-32602]="InvalidParams",n[n.InternalError=-32603]="InternalError",n[n.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",n[n.MagicLinkExpired=-10001]="MagicLinkExpired",n[n.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",n[n.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",n[n.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",n[n.UpdateEmailFailed=-10004]="UpdateEmailFailed",n[n.UserRequestEditEmail=-10005]="UserRequestEditEmail",n[n.InactiveRecipient=-10010]="InactiveRecipient",n[n.AccessDeniedToUser=-10011]="AccessDeniedToUser",n))(h6||{}),Ar=(n=>(n.LoginWithSms="magic_auth_login_with_sms",n.LoginWithEmailOTP="magic_auth_login_with_email_otp",n.LoginWithMagicLink="magic_auth_login_with_magic_link",n.LoginWithCredential="magic_auth_login_with_credential",n.GetIdToken="magic_auth_get_id_token",n.GenerateIdToken="magic_auth_generate_id_token",n.GetMetadata="magic_auth_get_metadata",n.IsLoggedIn="magic_auth_is_logged_in",n.Logout="magic_auth_logout",n.UpdateEmail="magic_auth_update_email",n.UserSettings="magic_auth_settings",n.UserSettingsTestMode="magic_auth_settings_testing_mode",n.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",n.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",n.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",n.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",n.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",n.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",n.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",n.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",n.LogoutTestMode="magic_auth_logout_testing_mode",n.UpdateEmailTestMode="magic_auth_update_email_testing_mode",n.IntermediaryEvent="magic_intermediary_event",n.RequestAccounts="eth_requestAccounts",n.GetInfo="mc_get_wallet_info",n.ShowUI="mc_wallet",n.NFTPurchase="magic_nft_purchase",n.RequestUserInfoWithUI="mc_request_user_info",n.Disconnect="mc_disconnect",n.UpdatePhoneNumber="magic_auth_update_phone_number",n.UpdatePhoneNumberTestMode="magic_auth_update_phone_number_testing_mode",n.RecoverAccount="magic_auth_recover_account",n.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",n))(Ar||{}),h2=(n=>(n.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",n.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",n.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",n.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",n.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",n))(h2||{}),yT=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(yT||{}),OAe=(n=>(n.Harmony="HARMONY",n))(OAe||{}),SAe=Object.create,bT=Object.defineProperty,TAe=Object.defineProperties,AAe=Object.getOwnPropertyDescriptor,DAe=Object.getOwnPropertyDescriptors,IAe=Object.getOwnPropertyNames,ZJ=Object.getOwnPropertySymbols,EAe=Object.getPrototypeOf,YJ=Object.prototype.hasOwnProperty,kAe=Object.prototype.propertyIsEnumerable,XJ=(n,t,e)=>t in n?bT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,KJ=(n,t)=>{for(var e in t||(t={}))YJ.call(t,e)&&XJ(n,e,t[e]);if(ZJ)for(var e of ZJ(t))kAe.call(t,e)&&XJ(n,e,t[e]);return n},Hh=(n,t,e)=>new Promise((r,i)=>{var o=l=>{try{s(e.next(l))}catch(c){i(c)}},a=l=>{try{s(e.throw(l))}catch(c){i(c)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(n,t)).next())}),$Ae=((n,t)=>()=>(t||n(t={exports:{}},t),t.exports))((n,t)=>{var e=Object.prototype.hasOwnProperty,r="~";function i(){}function o(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function a(c,u,d,p,g){if("function"!=typeof d)throw new TypeError("The listener must be a function");var v=new o(d,p||c,g),_=r?r+u:u;return c._events[_]?c._events[_].fn?c._events[_]=[c._events[_],v]:c._events[_].push(v):(c._events[_]=v,c._eventsCount++),c}function s(c,u){0==--c._eventsCount?c._events=new i:delete c._events[u]}function l(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),l.prototype.eventNames=function(){var u,d,c=[];if(0===this._eventsCount)return c;for(d in u=this._events)e.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},l.prototype.listeners=function(c){var d=this._events[r?r+c:c];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,v=new Array(g);pconsole.error("SEMVER",...n):()=>{},Si=zAe,r3=function UAe(n){let t={exports:{}};return n(t,t.exports),t.exports}(function(n,t){let{MAX_SAFE_COMPONENT_LENGTH:e}=f6,r=(t=n.exports={}).re=[],i=t.src=[],o=t.t={},a=0,s=(l,c,u)=>{let d=a++;Si(d,c),o[l]=d,i[d]=c,r[d]=new RegExp(c,u?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION",`(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})`),s("MAINVERSIONLOOSE",`(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})`),s("PRERELEASEIDENTIFIER",`(?:${i[o.NUMERICIDENTIFIER]}|${i[o.NONNUMERICIDENTIFIER]})`),s("PRERELEASEIDENTIFIERLOOSE",`(?:${i[o.NUMERICIDENTIFIERLOOSE]}|${i[o.NONNUMERICIDENTIFIER]})`),s("PRERELEASE",`(?:-(${i[o.PRERELEASEIDENTIFIER]}(?:\\.${i[o.PRERELEASEIDENTIFIER]})*))`),s("PRERELEASELOOSE",`(?:-?(${i[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[o.PRERELEASEIDENTIFIERLOOSE]})*))`),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD",`(?:\\+(${i[o.BUILDIDENTIFIER]}(?:\\.${i[o.BUILDIDENTIFIER]})*))`),s("FULLPLAIN",`v?${i[o.MAINVERSION]}${i[o.PRERELEASE]}?${i[o.BUILD]}?`),s("FULL",`^${i[o.FULLPLAIN]}$`),s("LOOSEPLAIN",`[v=\\s]*${i[o.MAINVERSIONLOOSE]}${i[o.PRERELEASELOOSE]}?${i[o.BUILD]}?`),s("LOOSE",`^${i[o.LOOSEPLAIN]}$`),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE",`${i[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),s("XRANGEIDENTIFIER",`${i[o.NUMERICIDENTIFIER]}|x|X|\\*`),s("XRANGEPLAIN",`[v=\\s]*(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:${i[o.PRERELEASE]})?${i[o.BUILD]}?)?)?`),s("XRANGEPLAINLOOSE",`[v=\\s]*(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:${i[o.PRERELEASELOOSE]})?${i[o.BUILD]}?)?)?`),s("XRANGE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAIN]}$`),s("XRANGELOOSE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAINLOOSE]}$`),s("COERCE",`(^|[^\\d])(\\d{1,${e}})(?:\\.(\\d{1,${e}}))?(?:\\.(\\d{1,${e}}))?(?:$|[^\\d])`),s("COERCERTL",i[o.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM",`(\\s*)${i[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",s("TILDE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAIN]}$`),s("TILDELOOSE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAINLOOSE]}$`),s("LONECARET","(?:\\^)"),s("CARETTRIM",`(\\s*)${i[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",s("CARET",`^${i[o.LONECARET]}${i[o.XRANGEPLAIN]}$`),s("CARETLOOSE",`^${i[o.LONECARET]}${i[o.XRANGEPLAINLOOSE]}$`),s("COMPARATORLOOSE",`^${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]})$|^$`),s("COMPARATOR",`^${i[o.GTLT]}\\s*(${i[o.FULLPLAIN]})$|^$`),s("COMPARATORTRIM",`(\\s*)${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]}|${i[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE",`^\\s*(${i[o.XRANGEPLAIN]})\\s+-\\s+(${i[o.XRANGEPLAIN]})\\s*$`),s("HYPHENRANGELOOSE",`^\\s*(${i[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[o.XRANGEPLAINLOOSE]})\\s*$`),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),JJ=/^[0-9]+$/,QJ=(n,t)=>{let e=JJ.test(n),r=JJ.test(t);return e&&r&&(n=+n,t=+t),n===t?0:e&&!r?-1:r&&!e?1:nQJ(t,n)},{MAX_LENGTH:eQ,MAX_SAFE_INTEGER:CT}=f6,{re:tQ,t:nQ}=r3,{compareIdentifiers:i3}=jAe,Va=class{constructor(n,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof Va){if(n.loose===!!t.loose&&n.includePrerelease===!!t.includePrerelease)return n;n=n.version}else if("string"!=typeof n)throw new TypeError(`Invalid Version: ${n}`);if(n.length>eQ)throw new TypeError(`version is longer than ${eQ} characters`);Si("SemVer",n,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let e=n.trim().match(t.loose?tQ[nQ.LOOSE]:tQ[nQ.FULL]);if(!e)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+e[1],this.minor=+e[2],this.patch=+e[3],this.major>CT||this.major<0)throw new TypeError("Invalid major version");if(this.minor>CT||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>CT||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=e[4]?e[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let i=+r;if(i>=0&&i=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${n}`)}return this.format(),this.raw=this.version,this}},f2=(n,t,e)=>new Va(n,e).compare(new Va(t,e)),p6=(n,t,e,r)=>{switch(t){case"===":return"object"==typeof n&&(n=n.version),"object"==typeof e&&(e=e.version),n===e;case"!==":return"object"==typeof n&&(n=n.version),"object"==typeof e&&(e=e.version),n!==e;case"":case"=":case"==":return((n,t,e)=>0===f2(n,t,e))(n,e,r);case"!=":return((n,t,e)=>0!==f2(n,t,e))(n,e,r);case">":return((n,t,e)=>f2(n,t,e)>0)(n,e,r);case">=":return((n,t,e)=>f2(n,t,e)>=0)(n,e,r);case"<":return((n,t,e)=>f2(n,t,e)<0)(n,e,r);case"<=":return((n,t,e)=>f2(n,t,e)<=0)(n,e,r);default:throw new TypeError(`Invalid operator: ${t}`)}},o3=Symbol("SemVer ANY"),a3=class{static get ANY(){return o3}constructor(n,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof a3){if(n.loose===!!t.loose)return n;n=n.value}Si("comparator",n,t),this.options=t,this.loose=!!t.loose,this.parse(n),this.value=this.semver===o3?"":this.operator+this.semver.version,Si("comp",this)}parse(n){let e=n.match(this.options.loose?rQ[iQ.COMPARATORLOOSE]:rQ[iQ.COMPARATOR]);if(!e)throw new TypeError(`Invalid comparator: ${n}`);this.operator=void 0!==e[1]?e[1]:"","="===this.operator&&(this.operator=""),this.semver=e[2]?new Va(e[2],this.options.loose):o3}toString(){return this.value}test(n){if(Si("Comparator.test",n,this.options.loose),this.semver===o3||n===o3)return!0;if("string"==typeof n)try{n=new Va(n,this.options)}catch{return!1}return p6(n,this.operator,this.semver,this.options)}intersects(n,t){if(!(n instanceof a3))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p2(n.value,t).test(this.value);if(""===n.operator)return""===n.value||new p2(this.value,t).test(n.semver);let e=!(">="!==this.operator&&">"!==this.operator||">="!==n.operator&&">"!==n.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==n.operator&&"<"!==n.operator),i=this.semver.version===n.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==n.operator&&"<="!==n.operator),a=p6(this.semver,"<",n.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===n.operator||"<"===n.operator),s=p6(this.semver,">",n.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===n.operator||">"===n.operator);return e||r||i&&o||a||s}},{re:rQ,t:iQ}=r3,p2=class{constructor(n,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof p2)return n.loose===!!t.loose&&n.includePrerelease===!!t.includePrerelease?n:new p2(n.raw,t);if(n instanceof a3)return this.raw=n.value,this.set=[[n]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=n,this.set=n.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${n}`);this.format()}format(){return this.range=this.set.map(n=>n.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(n){let{loose:t}=this.options;n=(n=n.trim()).replace(t?_s[za.HYPHENRANGELOOSE]:_s[za.HYPHENRANGE],v4e(this.options.includePrerelease)),Si("hyphen replace",n),n=n.replace(_s[za.COMPARATORTRIM],o4e),Si("comparator trim",n,_s[za.COMPARATORTRIM]),n=(n=(n=n.replace(_s[za.TILDETRIM],a4e)).replace(_s[za.CARETTRIM],s4e)).split(/\s+/).join(" ");let r=t?_s[za.COMPARATORLOOSE]:_s[za.COMPARATOR];return n.split(" ").map(i=>l4e(i,this.options)).join(" ").split(/\s+/).map(i=>m4e(i,this.options)).filter(this.options.loose?i=>!!i.match(r):()=>!0).map(i=>new a3(i,this.options))}intersects(n,t){if(!(n instanceof p2))throw new TypeError("a Range is required");return this.set.some(e=>oQ(e,t)&&n.set.some(r=>oQ(r,t)&&e.every(i=>r.every(o=>i.intersects(o,t)))))}test(n){if(!n)return!1;if("string"==typeof n)try{n=new Va(n,this.options)}catch{return!1}for(let t=0;t{let e=!0,r=n.slice(),i=r.pop();for(;e&&r.length;)e=r.every(o=>i.intersects(o,t)),i=r.pop();return e},l4e=(n,t)=>(Si("comp",n,t),n=d4e(n,t),Si("caret",n),n=c4e(n,t),Si("tildes",n),n=f4e(n,t),Si("xrange",n),n=g4e(n,t),Si("stars",n),n),Gs=n=>!n||"x"===n.toLowerCase()||"*"===n,c4e=(n,t)=>n.trim().split(/\s+/).map(e=>u4e(e,t)).join(" "),u4e=(n,t)=>n.replace(t.loose?_s[za.TILDELOOSE]:_s[za.TILDE],(r,i,o,a,s)=>{let l;return Si("tilde",n,r,i,o,a,s),Gs(i)?l="":Gs(o)?l=`>=${i}.0.0 <${+i+1}.0.0-0`:Gs(a)?l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`:s?(Si("replaceTilde pr",s),l=`>=${i}.${o}.${a}-${s} <${i}.${+o+1}.0-0`):l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,Si("tilde return",l),l}),d4e=(n,t)=>n.trim().split(/\s+/).map(e=>h4e(e,t)).join(" "),h4e=(n,t)=>{Si("caret",n,t);let r=t.includePrerelease?"-0":"";return n.replace(t.loose?_s[za.CARETLOOSE]:_s[za.CARET],(i,o,a,s,l)=>{let c;return Si("caret",n,i,o,a,s,l),Gs(o)?c="":Gs(a)?c=`>=${o}.0.0${r} <${+o+1}.0.0-0`:Gs(s)?c="0"===o?`>=${o}.${a}.0${r} <${o}.${+a+1}.0-0`:`>=${o}.${a}.0${r} <${+o+1}.0.0-0`:l?(Si("replaceCaret pr",l),c="0"===o?"0"===a?`>=${o}.${a}.${s}-${l} <${o}.${a}.${+s+1}-0`:`>=${o}.${a}.${s}-${l} <${o}.${+a+1}.0-0`:`>=${o}.${a}.${s}-${l} <${+o+1}.0.0-0`):(Si("no pr"),c="0"===o?"0"===a?`>=${o}.${a}.${s}${r} <${o}.${a}.${+s+1}-0`:`>=${o}.${a}.${s}${r} <${o}.${+a+1}.0-0`:`>=${o}.${a}.${s} <${+o+1}.0.0-0`),Si("caret return",c),c})},f4e=(n,t)=>(Si("replaceXRanges",n,t),n.split(/\s+/).map(e=>p4e(e,t)).join(" ")),p4e=(n,t)=>(n=n.trim()).replace(t.loose?_s[za.XRANGELOOSE]:_s[za.XRANGE],(r,i,o,a,s,l)=>{Si("xRange",n,r,i,o,a,s,l);let c=Gs(o),u=c||Gs(a),d=u||Gs(s);return"="===i&&d&&(i=""),l=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(u&&(a=0),s=0,">"===i?(i=">=",u?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===i&&(i="<",u?o=+o+1:a=+a+1),"<"===i&&(l="-0"),r=`${i+o}.${a}.${s}${l}`):u?r=`>=${o}.0.0${l} <${+o+1}.0.0-0`:d&&(r=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Si("xRange return",r),r}),g4e=(n,t)=>(Si("replaceStars",n,t),n.trim().replace(_s[za.STAR],"")),m4e=(n,t)=>(Si("replaceGTE0",n,t),n.trim().replace(_s[t.includePrerelease?za.GTE0PRE:za.GTE0],"")),v4e=n=>(t,e,r,i,o,a,s,l,c,u,d,p,g)=>`${e=Gs(r)?"":Gs(i)?`>=${r}.0.0${n?"-0":""}`:Gs(o)?`>=${r}.${i}.0${n?"-0":""}`:a?`>=${e}`:`>=${e}${n?"-0":""}`} ${l=Gs(c)?"":Gs(u)?`<${+c+1}.0.0-0`:Gs(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:n?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),_4e=(n,t,e)=>{for(let r=0;r0){let i=n[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0},y4e=(n,t,e)=>{try{t=new p2(t,e)}catch{return!1}return t.test(n)},{MAX_LENGTH:b4e}=f6,{re:aQ,t:sQ}=r3,{re:wT,t:xT}=r3,x4e=(n,t)=>{if(n instanceof Va)return n;if("number"==typeof n&&(n=String(n)),"string"!=typeof n)return null;let e=null;if((t=t||{}).rtl){let r;for(;(r=wT[xT.COERCERTL].exec(n))&&(!e||e.index+e[0].length!==n.length);)e&&r.index+r[0].length===e.index+e[0].length||(e=r),wT[xT.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;wT[xT.COERCERTL].lastIndex=-1}else e=n.match(wT[xT.COERCE]);return null===e?null:((n,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof Va)return n;if("string"!=typeof n||n.length>b4e||!(t.loose?aQ[sQ.LOOSE]:aQ[sQ.FULL]).test(n))return null;try{return new Va(n,t)}catch{return null}})(`${e[2]}.${e[3]||"0"}.${e[4]||"0"}`,t)};function M4e(n){return String.fromCharCode(parseInt(n.slice(1),16))}function P4e(n){return`%${`00${n.charCodeAt(0).toString(16)}`.slice(-2)}`}function lQ(n){return function O4e(n){return btoa(encodeURIComponent(n).replace(/%[0-9A-F]{2}/g,M4e))}(JSON.stringify(n))}function T4e(n){return JSON.parse(function S4e(n){return decodeURIComponent(Array.from(atob(n),P4e).join(""))}(n))}function jh(n){return typeof n>"u"}function MT(n){return function A4e(n){return null===n}(n)||jh(n)}function g6(n){if(!n)return!0;for(let t in n)if(Object.hasOwnProperty.call(n,t))return!1;return!0}var Oo={},k4e={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},G1=class extends Error{constructor(n,t){super(`Magic SDK Error: [${n}] ${t}`),this.code=n,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,G1.prototype)}},PT=class extends Error{constructor(n){super(),this.__proto__=Error;let t=Number(n?.code);this.rawMessage=n?.message||"Internal error",this.code=function I4e(n){return!MT(n)&&"number"==typeof n&&Object.values(h6).includes(n)}(t)?t:h6.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=n?.data||void 0,Object.setPrototypeOf(this,PT.prototype)}},OT=class{constructor(n,t){this.code=n,this.rawMessage=t,this.message=`Magic SDK Warning: [${n}] ${t}`}log(){console.warn(this.message)}},cQ=class extends Error{constructor(n,t,e,r){super(`Magic Extension Error (${n.name}): [${t}] ${e}`),this.code=t,this.rawMessage=e,this.data=r,this.__proto__=Error,Object.setPrototypeOf(this,cQ.prototype)}},uQ=class{constructor(n,t,e){this.code=t,this.rawMessage=e,this.message=`Magic Extension Warning (${n.name}): [${t}] ${e}`}log(){console.warn(this.message)}},j4e=function*H4e(){let n=0;for(;;)n(e=null!=n?SAe(EAe(n)):{},((n,t,e,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of IAe(t))!YJ.call(n,i)&&undefined!==i&&bT(n,i,{get:()=>t[i],enumerable:!(r=AAe(t,i))||r.enumerable});return n})(n&&n.__esModule?e:bT(e,"default",{value:n,enumerable:!0}),n)))($Ae()),q4e=class extends W4e.default{};function pQ(){let n=new q4e;return{emitter:n,createChainingEmitterMethod:(t,e)=>(...r)=>(n[t].apply(n,r),e),createBoundEmitterMethod:t=>(...e)=>n[t].apply(n,e)}}var gQ=Symbol("isPromiEvent");function Z4e(n){return!!n[gQ]}function mQ(n){let t=vQ(n),{createBoundEmitterMethod:e,createChainingEmitterMethod:r}=pQ(),i=Symbol("Promise.then"),o=Symbol("Promise.catch"),a=Symbol("Promise.finally"),s=(u,d)=>(...p)=>{let g=d[u].apply(d,p);return l(g)},l=u=>Object.assign(u,{[gQ]:!0,[i]:u[i]||u.then,[o]:u[o]||u.catch,[a]:u[a]||u.finally,then:s(i,u),catch:s(o,u),finally:s(a,u),on:r("on",u),once:r("once",u),addListener:r("addListener",u),off:r("off",u),removeListener:r("removeListener",u),removeAllListeners:r("removeAllListeners",u),emit:e("emit"),eventNames:e("eventNames"),listeners:e("listeners"),listenerCount:e("listenerCount")}),c=l(t.then(u=>(c.emit("done",u),c.emit("settled"),u),u=>{throw c.emit("error",u),c.emit("settled"),u}));return c}function vQ(n){return new Promise((t,e)=>{let r=n(t,e);Promise.resolve(r).catch(e)})}var TT,W1=class{constructor(n){this.sdk=n}get overlay(){return this.sdk.overlay}request(n){let t=this.overlay.post(yT.MAGIC_HANDLE_REQUEST,ST(n)),e=mQ((i,o)=>{t.then(a=>{if(r(),a.hasError)o(new PT(a.payload.error));else{if(!a.hasResult)throw function L4e(){return new G1(j1.MalformedResponse,"Response from the Magic iframe is malformed.")}();i(a.payload.result)}}).catch(a=>{r(),o(a)})}),r=this.overlay.on(h2.MAGIC_HANDLE_EVENT,i=>{var o;let{response:a}=i.data;if(a.id===n.id&&null!=(o=a.result)&&o.event){let{event:s,params:l=[]}=a.result;e.emit(s,...l)}});return e}createIntermediaryEvent(n,t){return e=>{let r=_o(Ar.IntermediaryEvent,[{payloadId:t,eventType:n,args:e}]);this.request(r)}}},Y4e=class extends W1{loginWithMagicLink(n){let{email:t,showUI:e=!0,redirectURI:r}=n,i=_o(this.sdk.testMode?Ar.LoginWithMagicLinkTestMode:Ar.LoginWithMagicLink,[{email:t,showUI:e,redirectURI:r}]);return this.request(i)}loginWithSMS(n){let{phoneNumber:t}=n,e=_o(this.sdk.testMode?Ar.LoginWithSmsTestMode:Ar.LoginWithSms,[{phoneNumber:t,showUI:!0}]);return this.request(e)}loginWithEmailOTP(n){let{email:t,showUI:e}=n,r=_o(this.sdk.testMode?Ar.LoginWithEmailOTPTestMode:Ar.LoginWithEmailOTP,[{email:t,showUI:e}]);if(!e){let i=this.request(r);return i&&i.on("otp-input-sent",o=>{this.createIntermediaryEvent("verify-email-otp",r.id)(o)}),i}return this.request(r)}loginWithCredential(n){let t=n??"";if(!n&&"web"===Oo.platform){t=window.location.search;let r=window.location.origin+window.location.pathname;window.history.replaceState(null,"",r)}let e=_o(this.sdk.testMode?Ar.LoginWithCredentialTestMode:Ar.LoginWithCredential,[t]);return this.request(e)}},_Q={};function Sp(n){return(...t)=>Hh(this,null,function*(){return TT||(TT=yield Oo.configureStorage()),yield TT.ready(),TT[n](...t)})}((n,t)=>{for(var e in t)bT(n,e,{get:t[e],enumerable:!0})})(_Q,{clear:()=>X4e,getItem:()=>s3,iterate:()=>eDe,key:()=>J4e,keys:()=>Q4e,length:()=>K4e,removeItem:()=>v6,setItem:()=>AT});var s3=Sp("getItem"),AT=Sp("setItem"),v6=Sp("removeItem"),X4e=Sp("clear"),K4e=Sp("length"),J4e=Sp("key"),Q4e=Sp("keys"),eDe=Sp("iterate");function tDe(){let n=window.crypto.getRandomValues(new Uint8Array(16));n[6]=15&n[6]|64,n[8]=191&n[8]|128;let t="";return t+=n[0].toString(16),t+=n[1].toString(16),t+=n[2].toString(16),t+=n[3].toString(16),t+="-",t+=n[4].toString(16),t+=n[5].toString(16),t+="-",t+=n[6].toString(16),t+=n[7].toString(16),t+="-",t+=n[8].toString(16),t+=n[9].toString(16),t+="-",t+=n[10].toString(16),t+=n[11].toString(16),t+=n[12].toString(16),t+=n[13].toString(16),t+=n[14].toString(16),t+=n[15].toString(16),t}var _6="STORE_KEY_PRIVATE_KEY",DT="STORE_KEY_PUBLIC_JWK",y6="ECDSA",nDe={name:y6,namedCurve:"P-256"},rDe={name:y6,namedCurve:"P-256"};function bQ(){v6(DT),v6(_6)}function CQ(n){return wQ(function cDe(n){return encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(t,e)=>String.fromCharCode(parseInt(e,16)))}(n))}function wQ(n){return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+/g,"")}var dDe=class extends W1{getIdToken(n){let t=_o(this.sdk.testMode?Ar.GetIdTokenTestMode:Ar.GetIdToken,[n]);return this.request(t)}generateIdToken(n){let t=_o(this.sdk.testMode?Ar.GenerateIdTokenTestMode:Ar.GenerateIdToken,[n]);return this.request(t)}getMetadata(){let n=_o(this.sdk.testMode?Ar.GetMetadataTestMode:Ar.GetMetadata);return this.request(n)}updateEmail(n){let{email:t,showUI:e=!0}=n,r=_o(this.sdk.testMode?Ar.UpdateEmailTestMode:Ar.UpdateEmail,[{email:t,showUI:e}]);return this.request(r)}isLoggedIn(){let n=_o(this.sdk.testMode?Ar.IsLoggedInTestMode:Ar.IsLoggedIn);return this.request(n)}logout(){bQ();let n=_o(this.sdk.testMode?Ar.LogoutTestMode:Ar.Logout);return this.request(n)}showSettings(){let n=_o(this.sdk.testMode?Ar.UserSettingsTestMode:Ar.UserSettings);return this.request(n)}updatePhoneNumber(){let n=_o(this.sdk.testMode?Ar.UpdatePhoneNumberTestMode:Ar.UpdatePhoneNumber);return this.request(n)}recoverAccount(n){let t=_o(this.sdk.testMode?Ar.RecoverAccountTestMode:Ar.RecoverAccount,[n]);return this.request(t)}},hDe=class extends W1{connectWithUI(){let n=_o(Ar.RequestAccounts);return this.request(n)}showUI(){let n=_o(Ar.ShowUI);return this.request(n)}getInfo(){let n=_o(Ar.GetInfo);return this.request(n)}requestUserInfoWithUI(n){let t=_o(Ar.RequestUserInfoWithUI,n?[n]:[]);return this.request(t)}disconnect(){bQ();let n=_o(Ar.Disconnect);return this.request(n)}},{createBoundEmitterMethod:IT,createChainingEmitterMethod:g2}=pQ(),fDe=class extends W1{constructor(){super(...arguments),this.isMagic=!0,this.on=g2("on",this),this.once=g2("once",this),this.addListener=g2("addListener",this),this.off=g2("off",this),this.removeListener=g2("removeListener",this),this.removeAllListeners=g2("removeAllListeners",this),this.emit=IT("emit"),this.eventNames=IT("eventNames"),this.listeners=IT("listeners"),this.listenerCount=IT("listenerCount")}sendAsync(n,t){if(!t)throw function $4e(n){return new G1(j1.InvalidArgument,`Invalid ${(e=>{let r=e+1,i=r%10,o=r%100;return 1===i&&11!==o?`${r}st`:2===i&&12!==o?`${r}nd`:3===i&&13!==o?`${r}rd`:`${r}th`})(n.argument)} argument given to \`${n.procedure}\`.\n Expected: \`${n.expected}\`\n Received: \`${n.received}\``)}({procedure:"Magic.rpcProvider.sendAsync",argument:1,expected:"function",received:null===t?"null":typeof t});if(Array.isArray(n))this.overlay.post(yT.MAGIC_HANDLE_REQUEST,n.map(e=>{let r=ST(e);return this.prefixPayloadMethodForTestMode(r),r})).then(e=>{t(null,e.map(r=>((n,t)=>TAe(n,DAe(t)))(KJ({},r.payload),{error:r.hasError?new PT(r.payload.error):null})))});else{let e=ST(n);this.prefixPayloadMethodForTestMode(e),this.overlay.post(yT.MAGIC_HANDLE_REQUEST,e).then(r=>{t(r.hasError?new PT(r.payload.error):null,r.payload)})}}send(n,t){if("string"==typeof n){let r=_o(n,Array.isArray(t)?t:[]);return this.request(r)}if(Array.isArray(n)||t)return void this.sendAsync(n,t);let e=function V4e(){return new OT(_T.SyncWeb3Method,"Non-async web3 methods are deprecated in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.")}();return e.log(),new m6(n).applyError({code:-32603,message:e.rawMessage}).payload}enable(){let n=_o("eth_accounts");return this.request(n)}request(n){return this.prefixPayloadMethodForTestMode(n),super.request(n)}prefixPayloadMethodForTestMode(n){this.sdk.testMode&&(n.method=`testMode/eth/${n.method}`)}};function ET(n,t){return t?new URL(n,t):new URL(n)}var xQ=["request","overlay","sdk"];function pDe(n){let t=Object.getPrototypeOf(n),e=[t];for(;t!==W1.prototype;)t=Object.getPrototypeOf(t),e.push(t);return e}var MQ=class extends W1{constructor(){super(void 0),this.__sdk_access_field_descriptors__=new Map,this.__is_initialized__=!1,this.utils={createPromiEvent:mQ,isPromiEvent:Z4e,encodeJSON:lQ,decodeJSON:T4e,createJsonRpcRequestPayload:_o,standardizeJsonRpcRequestPayload:ST,storage:_Q};let n=[this,...pDe(this)];xQ.forEach(t=>{let e=n.map(a=>Object.getOwnPropertyDescriptor(a,t)),r=e.findIndex(a=>!!a),o=e[r];o&&(this.__sdk_access_field_descriptors__.set(t,{descriptor:o,isPrototypeField:r>0}),Object.defineProperty(this,t,{configurable:!0,get:()=>{throw function F4e(n){return new G1(j1.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${n}\` can be accessed. Do not invoke \`Extension.${n}\` inside an extension constructor.`)}(t)}}))})}init(n){this.__is_initialized__||(xQ.forEach(t=>{if(this.__sdk_access_field_descriptors__.has(t)){let{descriptor:e,isPrototypeField:r}=this.__sdk_access_field_descriptors__.get(t);r?delete this[t]:Object.defineProperty(this,t,e)}}),this.sdk=n,this.__is_initialized__=!0)}createDeprecationWarning(n){let{method:t,removalVersion:e,useInstead:r}=n;return new uQ(this,"DEPRECATION_NOTICE",`\`${t}\` will be removed from this Extension in version \`${e}\`.${r?` Use \`${r}\` instead.`:""}`)}createWarning(n,t){return new uQ(this,n,t)}createError(n,t,e){return new cQ(this,n,t,e)}},l3=class extends MQ{};l3.Internal=class extends MQ{},l3.Anonymous="anonymous extension";var mDe=class extends W1{purchase(n){let t=_o(Ar.NFTPurchase,[n]);return this.request(t)}};function PQ(n){return!n.compat||null==n.compat[Oo.sdkName]||("string"==typeof n.compat[Oo.sdkName]?y4e(x4e(Oo.version),n.compat[Oo.sdkName]):!!n.compat[Oo.sdkName])}function vDe(n){var t;let e=null!=(t=n?.extensions)?t:[],r={},i=[];if(Array.isArray(e)?e.forEach(o=>{PQ(o)?(o.init(this),(o.name||o.name!==l3.Anonymous)&&(this[o.name]=o),o instanceof l3.Internal&&(g6(o.config)||(r[o.name]=o.config))):i.push(o)}):Object.keys(e).forEach(o=>{if(PQ(e[o])){e[o].init(this);let a=e[o];this[o]=a,a instanceof l3.Internal&&(g6(a.config)||(r[e[o].name]=a.config))}else i.push(e[o])}),i.length)throw function B4e(n){let t=`Some extensions are incompatible with \`${Oo.sdkName}@${Oo.version}\`:`;return n.filter(e=>typeof e.compat<"u"&&null!==e.compat).forEach(e=>{let r=e.compat[Oo.sdkName];"string"==typeof r?t+=`\n - Extension \`${e.name}\` supports version(s) \`${r}\``:r||(t+=`\n - Extension \`${e.name}\` does not support ${Oo.platform} environments.`)}),new G1(j1.IncompatibleExtensions,t)}(i);return r}var kT=class{constructor(n,t){var e;if(this.apiKey=n,!n)throw function R4e(){return new G1(j1.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}();"react-native"===Oo.platform&&t?.endpoint&&function z4e(){return new OT(_T.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint\` parameter SHOULD NOT be provided. The Magic \`