diff --git a/storecloud-elements/storecloud-elements.js b/storecloud-elements/storecloud-elements.js index e450540..14474f9 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],{560:(sn,Qt,Dt)=>{"use strict";var Vt={};function U(n){return"function"==typeof n}function Ot(n){const t=n(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}Dt.r(Vt),Dt.d(Vt,{Arc:()=>fR,BezierCurve:()=>Xj,BoundingRect:()=>fi,Circle:()=>cR,CompoundPath:()=>y1t,Ellipse:()=>Bj,Group:()=>Zs,Image:()=>h1,IncrementalDisplayable:()=>S1t,Line:()=>x1,LinearGradient:()=>Qj,OrientedBoundingRect:()=>H3,Path:()=>Ui,Point:()=>Fn,Polygon:()=>Wj,Polyline:()=>$3,RadialGradient:()=>w1t,Rect:()=>Ua,Ring:()=>Hj,Sector:()=>fb,Text:()=>ps,applyTransform:()=>vR,clipPointsByRect:()=>V1t,clipRectByRect:()=>$1t,createIcon:()=>_R,extendPath:()=>I1t,extendShape:()=>A1t,getShapeClass:()=>E1t,getTransform:()=>L1t,groupTransition:()=>lG,initProps:()=>vp,isElementRemoved:()=>pb,lineLineIntersect:()=>cG,linePolygonIntersect:()=>U1t,makeImage:()=>iG,makePath:()=>mR,mergePath:()=>k1t,registerShape:()=>Bu,removeElement:()=>j3,removeElementWithFadeOut:()=>nG,resizePath:()=>aG,setTooltipConfig:()=>CR,subPixelOptimize:()=>N1t,subPixelOptimizeLine:()=>gb,subPixelOptimizeRect:()=>R1t,transformDirection:()=>F1t,traverseElements:()=>bR,updateProps:()=>Bd});const De=Ot(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function X(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class Kt{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(U(r))try{r()}catch(o){e=o instanceof De?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Je(o)}catch(a){e=e??[],a instanceof De?e=[...e,...a.errors]:e.push(a)}}if(e)throw new De(e)}}add(e){var t;if(e&&e!==this)if(this.closed)Je(e);else{if(e instanceof Kt){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&X(t,e)}remove(e){const{_finalizers:t}=this;t&&X(t,e),e instanceof Kt&&e._removeParent(this)}}Kt.EMPTY=(()=>{const n=new Kt;return n.closed=!0,n})();const on=Kt.EMPTY;function Ce(n){return n instanceof Kt||n&&"closed"in n&&U(n.remove)&&U(n.add)&&U(n.unsubscribe)}function Je(n){U(n)?n():n.unsubscribe()}const Qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Oe={setTimeout(n,e,...t){const{delegate:r}=Oe;return r?.setTimeout?r.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=Oe;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Wn(n){Oe.setTimeout(()=>{const{onUnhandledError:e}=Qe;if(!e)throw n;e(n)})}function Ke(){}const fe=Ne("C",void 0,void 0);function Ne(n,e,t){return{kind:n,value:e,error:t}}let tn=null;function Be(n){if(Qe.useDeprecatedSynchronousErrorHandling){const e=!tn;if(e&&(tn={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:r}=tn;if(tn=null,t)throw r}}else n()}class Fe extends Kt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ce(e)&&e.add(this)):this.destination=Nt}static create(e,t,r){return new Rr(e,t,r)}next(e){this.isStopped?$n(function te(n){return Ne("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?$n(function ve(n){return Ne("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?$n(fe,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const tr=Function.prototype.bind;function _n(n,e){return tr.call(n,e)}class Kr{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(r){mi(r)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(r){mi(r)}else mi(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){mi(t)}}}class Rr extends Fe{constructor(e,t,r){let i;if(super(),U(e)||!e)i={next:e??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Qe.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&_n(e.next,o),error:e.error&&_n(e.error,o),complete:e.complete&&_n(e.complete,o)}):i=e}this.destination=new Kr(i)}}function mi(n){Qe.useDeprecatedSynchronousErrorHandling?function ln(n){Qe.useDeprecatedSynchronousErrorHandling&&tn&&(tn.errorThrown=!0,tn.error=n)}(n):Wn(n)}function $n(n,e){const{onStoppedNotification:t}=Qe;t&&Oe.setTimeout(()=>t(n,e))}const Nt={closed:!0,next:Ke,error:function so(n){throw n},complete:Ke},H="function"==typeof Symbol&&Symbol.observable||"@@observable";function O(n){return n}function L(n){return 0===n.length?O:1===n.length?n[0]:function(t){return n.reduce((r,i)=>i(r),t)}}let F=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function dt(n){return n&&n instanceof Fe||function nt(n){return n&&U(n.next)&&U(n.error)&&U(n.complete)}(n)&&Ce(n)}(t)?t:new Rr(t,r,i);return Be(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=G(r))((i,o)=>{const a=new Rr({next:s=>{try{t(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:i});this.subscribe(a)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[H](){return this}pipe(...t){return L(t)(this)}toPromise(t){return new(t=G(t))((r,i)=>{let o;this.subscribe(a=>o=a,a=>i(a),()=>r(o))})}}return n.create=e=>new n(e),n})();function G(n){var e;return null!==(e=n??Qe.Promise)&&void 0!==e?e:Promise}const J=Ot(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let I=(()=>{class n extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new tt(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new J}next(t){Be(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Be(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Be(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?on:(this.currentObservers=null,o.push(t),new Kt(()=>{this.currentObservers=null,X(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new F;return t.source=this,t}}return n.create=(e,t)=>new tt(e,t),n})();class tt extends I{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)}error(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:on}}function pe(n){return U(n?.lift)}function Xt(n){return e=>{if(pe(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function B(n,e,t,r,i){return new Pt(n,e,t,r,i)}class Pt extends Fe{constructor(e,t,r,i,o,a){super(e),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=t?function(s){try{t(s)}catch(l){e.error(l)}}:super._next,this._error=i?function(s){try{i(s)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function k(n,e){return Xt((t,r)=>{let i=0;t.subscribe(B(r,o=>{r.next(n.call(e,o,i++))}))})}function It(n,e,t,r){var a,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o}function cr(n){return this instanceof cr?(this.v=n,this):new cr(n)}function jr(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function er(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.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(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[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 Gr=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function ii(n){return U(n?.then)}function gc(n){return U(n[H])}function oi(n){return Symbol.asyncIterator&&U(n?.[Symbol.asyncIterator])}function ai(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 si=function mc(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function li(n){return U(n?.[si])}function vc(n){return function Hr(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(n,e||[]),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 cr?Promise.resolve(p.value.v).then(c,u):h(o[0][2],p)}(r[p](g))}catch(v){h(o[0][3],v)}}function c(p){s("next",p)}function u(p){s("throw",p)}function h(p,g){p(g),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:r,done:i}=yield cr(t.read());if(i)return yield cr(void 0);yield yield cr(r)}}finally{t.releaseLock()}})}function Wr(n){return U(n?.getReader)}function On(n){if(n instanceof F)return n;if(null!=n){if(gc(n))return function Vl(n){return new F(e=>{const t=n[H]();if(U(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Gr(n))return function yi(n){return new F(e=>{for(let t=0;t{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Wn)})}(n);if(oi(n))return ci(n);if(li(n))return function fu(n){return new F(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(Wr(n))return function bi(n){return ci(vc(n))}(n)}throw ai(n)}function ci(n){return new F(e=>{(function pu(n,e){var t,r,i,o;return function Un(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=jr(n);!(r=yield t.next()).done;)if(e.next(r.value),e.closed)return}catch(a){i={error:a}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function mr(n,e,t,r=0,i=!1){const o=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!i)return o}function qr(n,e,t=1/0){return U(e)?qr((r,i)=>k((o,a)=>e(r,o,i,a))(On(n(r,i))),t):("number"==typeof e&&(t=e),Xt((r,i)=>function Mi(n,e,t,r,i,o,a,s){const l=[];let c=0,u=0,h=!1;const p=()=>{h&&!l.length&&!c&&e.complete()},g=_=>c{o&&e.next(_),c++;let y=!1;On(t(_,u++)).subscribe(B(e,C=>{i?.(C),o?g(C):e.next(C)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&cv(C)):v(C)}p()}catch(C){e.error(C)}}))};return n.subscribe(B(e,g,()=>{h=!0,p()})),()=>{s?.()}}(r,i,n,t)))}function Ar(n=1/0){return qr(O,n)}const or=new F(n=>n.complete());function $l(n){return n&&U(n.schedule)}function ol(n){return n[n.length-1]}function Qa(n){return U(ol(n))?n.pop():void 0}function ts(n){return $l(ol(n))?n.pop():void 0}function Qd(n,e=0){return Xt((t,r)=>{t.subscribe(B(r,i=>mr(r,n,()=>r.next(i),e),()=>mr(r,n,()=>r.complete(),e),i=>mr(r,n,()=>r.error(i),e)))})}function ff(n,e=0){return Xt((t,r)=>{r.add(n.schedule(()=>t.subscribe(r),e))})}function vf(n,e){if(!n)throw new Error("Iterable cannot be null");return new F(t=>{mr(t,e,()=>{const r=n[Symbol.asyncIterator]();mr(t,e,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function wi(n,e){return e?function Yp(n,e){if(null!=n){if(gc(n))return function qp(n,e){return On(n).pipe(ff(e),Qd(e))}(n,e);if(Gr(n))return function gf(n,e){return new F(t=>{let r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}(n,e);if(ii(n))return function pf(n,e){return On(n).pipe(ff(e),Qd(e))}(n,e);if(oi(n))return vf(n,e);if(li(n))return function mf(n,e){return new F(t=>{let r;return mr(t,e,()=>{r=n[si](),mr(t,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(a){return void t.error(a)}o?t.complete():t.next(i)},0,!0)}),()=>U(r?.return)&&r.return()})}(n,e);if(Wr(n))return function Zp(n,e){return vf(vc(n),e)}(n,e)}throw ai(n)}(n,e):On(n)}function Ul(...n){const e=ts(n),t=function Ju(n,e){return"number"==typeof ol(n)?n.pop():e}(n,1/0),r=n;return r.length?1===r.length?On(r[0]):Ar(t)(wi(r,e)):or}function th(n={}){const{connector:e=(()=>new I),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return o=>{let a,s,l,c=0,u=!1,h=!1;const p=()=>{s?.unsubscribe(),s=void 0},g=()=>{p(),a=l=void 0,u=h=!1},v=()=>{const _=a;g(),_?.unsubscribe()};return Xt((_,y)=>{c++,!h&&!u&&p();const C=l=l??e();y.add(()=>{c--,0===c&&!h&&!u&&(s=wm(v,i))}),C.subscribe(y),!a&&c>0&&(a=new Rr({next:x=>C.next(x),error:x=>{h=!0,p(),s=wm(g,t,x),C.error(x)},complete:()=>{u=!0,p(),s=wm(g,r),C.complete()}}),On(_).subscribe(a))})(o)}}function wm(n,e,...t){if(!0===e)return void n();if(!1===e)return;const r=new Rr({next:()=>{r.unsubscribe(),n()}});return On(e(...t)).subscribe(r)}function ni(n){for(let e in n)if(n[e]===ni)return e;throw Error("Could not find renamed property on target object.")}function m2(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function xi(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(xi).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function _f(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const GM=ni({__forward_ref__:ni});function Pi(n){return n.__forward_ref__=Pi,n.toString=function(){return xi(this())},n}function an(n){return xm(n)?n():n}function xm(n){return"function"==typeof n&&n.hasOwnProperty(GM)&&n.__forward_ref__===Pi}function Xp(n){return n&&!!n.\u0275providers}const Kp="https://g.co/ng/security#xss";class ee extends Error{constructor(e,t){super(yf(e,t)),this.code=e}}function yf(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}function fn(n){return"string"==typeof n?n:null==n?"":String(n)}function Jp(n,e){throw new ee(-201,!1)}function al(n,e){null==n&&function Zr(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}(e,n,null,"!=")}function zt(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function qi(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pm(n){return YM(n,Qp)||YM(n,v2)}function YM(n,e){return n.hasOwnProperty(e)?n[e]:null}function zo(n){return n&&(n.hasOwnProperty(eh)||n.hasOwnProperty(_2))?n[eh]:null}const Qp=ni({\u0275prov:ni}),eh=ni({\u0275inj:ni}),v2=ni({ngInjectableDef:ni}),_2=ni({ngInjectorDef:ni});var He=(()=>((He=He||{})[He.Default=0]="Default",He[He.Host=1]="Host",He[He.Self=2]="Self",He[He.SkipSelf=4]="SkipSelf",He[He.Optional=8]="Optional",He))();let Om;function Ds(n){const e=Om;return Om=n,e}function y2(n,e,t){const r=Pm(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&He.Optional?null:void 0!==e?e:void Jp(xi(n))}const ui=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),tg={},Sm="__NG_DI_FLAG__",Hl="ngTempTokenPath",Tm="ngTokenPath",C2=/\n/gm,Zi="\u0275",mu="__source";let nh;function Cf(n){const e=nh;return nh=n,e}function b2(n,e=He.Default){if(void 0===nh)throw new ee(-203,!1);return null===nh?y2(n,void 0,e):nh.get(n,e&He.Optional?null:void 0,e)}function Mt(n,e=He.Default){return(function KM(){return Om}()||b2)(an(n),e)}function ke(n,e=He.Default){return Mt(n,eg(e))}function eg(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function bf(n){const e=[];for(let t=0;t((Is=Is||{})[Is.OnPush=0]="OnPush",Is[Is.Default=1]="Default",Is))(),ll=(()=>{return(n=ll||(ll={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",ll;var n})();const jl={},Lr=[],ng=ni({\u0275cmp:ni}),Ea=ni({\u0275dir:ni}),Mf=ni({\u0275pipe:ni}),wf=ni({\u0275mod:ni}),bc=ni({\u0275fac:ni}),xf=ni({__NG_ELEMENT_ID__:ni});let FT=0;function ye(n){return Cc(()=>{const t=!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===Is.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Lr,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ll.Emulated,id:"c"+FT++,styles:n.styles||Lr,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,a=n.features;return i.inputs=rw(n.inputs,r),i.outputs=rw(n.outputs),a&&a.forEach(s=>s(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(ew).filter(nw):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(ka).filter(nw):null,i})}function td(n,e,t){const r=n.\u0275cmp;r.directiveDefs=()=>("function"==typeof e?e():e).map(ew),r.pipeDefs=()=>("function"==typeof t?t():t).map(ka)}function ew(n){return ar(n)||Ro(n)}function nw(n){return null!==n}function di(n){return Cc(()=>({type:n.type,bootstrap:n.bootstrap||Lr,declarations:n.declarations||Lr,imports:n.imports||Lr,exports:n.exports||Lr,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function rw(n,e){if(null==n)return jl;const t={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,e&&(e[i]=o)}return t}const qe=ye;function Po(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 ar(n){return n[ng]||null}function Ro(n){return n[Ea]||null}function ka(n){return n[Mf]||null}function Es(n,e){const t=n[wf]||null;if(!t&&!0===e)throw new Error(`Type ${xi(n)} does not have '\u0275mod' property.`);return t}const ns=0,Me=1,In=2,lo=3,Gl=4,rh=5,Ma=6,Of=7,Yi=8,pt=9,Bt=10,vt=11,Le=12,vn=13,Dr=14,Xi=15,En=16,ih=17,Sf=18,po=19,ed=20,iw=21,Yr=22,Tf=1,Xr=2,Am=7,rg=8,vu=9,Ra=10;function ks(n){return Array.isArray(n)&&"object"==typeof n[Tf]}function rs(n){return Array.isArray(n)&&!0===n[Tf]}function Mc(n){return 0!=(4&n.flags)}function nd(n){return n.componentOffset>-1}function ig(n){return 1==(1&n.flags)}function is(n){return null!==n.template}function ow(n){return 0!=(256&n[In])}function rd(n,e){return n.hasOwnProperty(bc)?n[bc]:null}class cw{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function go(){return Df}function Df(n){return n.type.prototype.ngOnChanges&&(n.setInput=If),O2}function O2(){const n=kf(this),e=n?.current;if(e){const t=n.previous;if(t===jl)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function If(n,e,t,r){const i=this.declaredInputs[t],o=kf(n)||function Em(n,e){return n[Ef]=e}(n,{previous:jl,current:null}),a=o.current||(o.current={}),s=o.previous,l=s[i];a[i]=new cw(l&&l.currentValue,e,s===jl),n[r]=e}go.ngInherit=!0;const Ef="__ngSimpleChanges__";function kf(n){return n[Ef]||null}const cl=function(n,e,t){},uw="svg";function sa(n){for(;Array.isArray(n);)n=n[ns];return n}function od(n,e){return sa(e[n])}function os(n,e){return sa(e[n.index])}function oh(n,e){return n.data[e]}function _u(n,e){return n[e]}function Ki(n,e){const t=e[n];return ks(t)?t:t[ns]}function Rm(n){return 64==(64&n[In])}function ad(n,e){return null==e?null:n[e]}function sd(n){n[Sf]=0}function S2(n,e){n[rh]+=e;let t=n,r=n[lo];for(;null!==r&&(1===e&&1===t[rh]||-1===e&&0===t[rh]);)r[rh]+=e,t=r,r=r[lo]}const Sn={lFrame:_w(null),bindingsEnabled:!0};function fw(){return Sn.bindingsEnabled}function Zt(){return Sn.lFrame.lView}function kn(){return Sn.lFrame.tView}function An(n){return Sn.lFrame.contextLView=n,n[Yi]}function Dn(n){return Sn.lFrame.contextLView=null,n}function la(){let n=pw();for(;null!==n&&64===n.type;)n=n.parent;return n}function pw(){return Sn.lFrame.currentTNode}function wa(n,e){const t=Sn.lFrame;t.currentTNode=n,t.isParent=e}function T2(){return Sn.lFrame.isParent}function A2(){Sn.lFrame.isParent=!1}function La(){const n=Sn.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function ah(){return Sn.lFrame.bindingIndex++}function wc(n){const e=Sn.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function D2(n,e){const t=Sn.lFrame;t.bindingIndex=t.bindingRootIndex=n,Rf(e)}function Rf(n){Sn.lFrame.currentDirectiveIndex=n}function E2(){return Sn.lFrame.currentQueryIndex}function k2(n){Sn.lFrame.currentQueryIndex=n}function bu(n){const e=n[Me];return 2===e.type?e.declTNode:1===e.type?n[Ma]:null}function Nm(n,e,t){if(t&He.SkipSelf){let i=e,o=n;for(;!(i=i.parent,null!==i||t&He.Host||(i=bu(o),null===i||(o=o[Xi],10&i.type))););if(null===i)return!1;e=i,n=o}const r=Sn.lFrame=Rs();return r.currentTNode=e,r.lView=n,!0}function Mu(n){const e=Rs(),t=n[Me];Sn.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Rs(){const n=Sn.lFrame,e=null===n?null:n.child;return null===e?_w(n):e}function _w(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function R2(){const n=Sn.lFrame;return Sn.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const N2=R2;function sh(){const n=R2();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 Fa(){return Sn.lFrame.selectedIndex}function xc(n){Sn.lFrame.selectedIndex=n}function no(){const n=Sn.lFrame;return oh(n.tView,n.selectedIndex)}function ql(){Sn.lFrame.currentNamespace=uw}function lh(){!function Cw(){Sn.lFrame.currentNamespace=null}()}function ch(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t=r)break}else e[l]<0&&(n[Sf]+=65536),(s>11>16&&(3&n[In])===e){n[In]+=2048,cl(4,s,o);try{o.call(s)}finally{cl(5,s,o)}}}else{cl(4,s,o);try{o.call(s)}finally{cl(5,s,o)}}}const Nf=-1;class lg{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function B2(n,e,t){let r=0;for(;re){a=o-1;break}}}for(;o>16}(n),r=e;for(;t>0;)r=r[Xi],t--;return r}let dg=!0;function hg(n){const e=dg;return dg=n,e}const U2=255,fg=5;let QT=0;const Zl={};function $m(n,e){const t=xw(n,e);if(-1!==t)return t;const r=e[Me];r.firstCreatePass&&(n.injectorIndex=e.length,Um(r.data,n),Um(e,null),Um(r.blueprint,null));const i=pg(n,e),o=n.injectorIndex;if(Mw(i)){const a=ug(i),s=Vm(i,e),l=s[Me].data;for(let c=0;c<8;c++)e[o+c]=s[a+c]|l[a+c]}return e[o+8]=i,o}function Um(n,e){n.push(0,0,0,0,0,0,0,0,e)}function xw(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function pg(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,i=e;for(;null!==i;){if(r=as(i),null===r)return Nf;if(t++,i=i[Xi],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Nf}function zm(n,e,t){!function ww(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(xf)&&(r=t[xf]),null==r&&(r=t[xf]=QT++);const i=r&U2;e.data[n+(i>>fg)]|=1<=0?e&U2:jm:e}(t);if("function"==typeof o){if(!Nm(e,n,r))return r&He.Host?Pw(i,0,r):Hm(e,t,r,i);try{const a=o(r);if(null!=a||r&He.Optional)return a;Jp()}finally{N2()}}else if("number"==typeof o){let a=null,s=xw(n,e),l=Nf,c=r&He.Host?e[En][Ma]:null;for((-1===s||r&He.SkipSelf)&&(l=-1===s?pg(n,e):e[s+8],l!==Nf&&Ns(r,!1)?(a=e[Me],s=ug(l),e=Vm(l,e)):s=-1);-1!==s;){const u=e[Me];if(Sw(o,s,u.data)){const h=tA(s,e,t,a,r,c);if(h!==Zl)return h}l=e[s+8],l!==Nf&&Ns(r,e[Me].data[s+8]===c)&&Sw(o,s,e)?(a=u,s=ug(l),e=Vm(l,e)):s=-1}}return i}function tA(n,e,t,r,i,o){const a=e[Me],s=a.data[n+8],u=cd(s,a,t,null==r?nd(s)&&dg:r!=a&&0!=(3&s.type),i&He.Host&&o===s);return null!==u?ud(e,a,u,s):Zl}function cd(n,e,t,r,i){const o=n.providerIndexes,a=e.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===t)return g}if(i){const g=a[l];if(g&&is(g)&&g.type===t)return l}return null}function ud(n,e,t,r){let i=n[t];const o=e.data;if(function F2(n){return n instanceof lg}(i)){const a=i;a.resolving&&function WM(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new ee(-200,`Circular dependency in DI detected for ${n}${t}`)}(function Nr(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():fn(n)}(o[t]));const s=hg(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?Ds(a.injectImpl):null;Nm(n,r,He.Default);try{i=n[t]=a.factory(void 0,o,n,r),e.firstCreatePass&&t>=r.directiveStart&&function L2(n,e,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const a=Df(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,a),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,a)}i&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,i),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o))}(t,o[t],e)}finally{null!==l&&Ds(l),hg(s),a.resolving=!1,N2()}}return i}function Sw(n,e,t){return!!(t[e+(n>>fg)]&1<{const e=n.prototype.constructor,t=e[bc]||Gm(e),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const o=i[bc]||Gm(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Gm(n){return xm(n)?()=>{const e=Gm(an(n));return e&&e()}:rd(n)}function as(n){const e=n[Me],t=e.type;return 2===t?e.declTNode:1===t?n[Ma]:null}const dh="__parameters__",wu="__prop__metadata__";function gg(n){return function(...t){if(n){const r=n(...t);for(const i in r)this[i]=r[i]}}}function hh(n,e,t){return Cc(()=>{const r=gg(e);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 h=l.hasOwnProperty(dh)?l[dh]:Object.defineProperty(l,dh,{value:[]})[dh];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(a),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}function Wm(n,e,t,r){return Cc(()=>{const i=gg(e);function o(...a){if(this instanceof o)return i.apply(this,a),this;const s=new o(...a);return function l(c,u){const h=c.constructor,p=h.hasOwnProperty(wu)?h[wu]:Object.defineProperty(h,wu,{value:{}})[wu];p[u]=p.hasOwnProperty(u)&&p[u]||[],p[u].unshift(s),r&&r(c,u,...a)}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}class Pe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=zt({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ph(n,e){n.forEach(t=>Array.isArray(t)?ph(t,e):e(t))}function Dw(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function gh(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Sc(n,e){const t=[];for(let r=0;r=0?n[1|r]=t:(r=~r,function sA(n,e,t,r){let i=n.length;if(i==e)n.push(t,r);else if(1===i)n.push(r,n[0]),n[0]=t;else{for(i--,n.push(n[i-1],n[i]);i>e;)n[i]=n[i-2],i--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function mh(n,e){const t=Bf(n,e);if(t>=0)return n[1|t]}function Bf(n,e){return function G2(n,e,t){let r=0,i=n.length>>t;for(;i!==r;){const o=r+(i-r>>1),a=n[o<e?i=o:r=o+1}return~(i<({token:n})),-1),hd=yc(hh("Optional"),8),Vf=yc(hh("SkipSelf"),4);var us=(()=>((us=us||{})[us.Important=1]="Important",us[us.DashCase=2]="DashCase",us))();const yg=new Map;let Gw=0;function ty(n){return yg.get(n)||null}class rv{get lView(){return ty(this.lViewId)}constructor(e,t,r){this.lViewId=e,this.nodeIndex=t,this.native=r}}function xa(n){let e=bg(n);if(e){if(ks(e)){const t=e;let r,i,o;if(Zw(n)){if(r=function Xw(n,e){const t=n[Me].components;if(t)for(let r=0;r=0){const s=sa(o[a]),l=ul(o,a,s);ha(s,l),e=l;break}}}}return e||null}function ul(n,e,t){return new rv(n[ed],e,t)}const ey="__ngContext__";function ha(n,e){ks(e)?(n[ey]=e[ed],function Q2(n){yg.set(n[ed],n)}(e)):n[ey]=e}function bg(n){const e=n[ey];return"number"==typeof e?ty(e):e||null}function Zw(n){return n&&n.constructor&&n.constructor.\u0275cmp}function Yw(n,e){const t=n[Me];for(let r=Yr;r0&&(n[t-1][Gl]=r[Gl]);const o=gh(n,Ra+e);!function PA(n,e){xg(n,e,e[vt],2,null,null),e[ns]=null,e[Ma]=null}(r[Me],r);const a=o[po];null!==a&&a.detachView(o[Me]),r[lo]=null,r[Gl]=null,r[In]&=-65}return r}function sv(n,e){if(!(128&e[In])){const t=e[vt];t.destroyNode&&xg(n,e,t,3,null,null),function ex(n){let e=n[vn];if(!e)return oy(n[Me],n);for(;e;){let t=null;if(ks(e))t=e[vn];else{const r=e[Ra];r&&(t=r)}if(!t){for(;e&&!e[Gl]&&e!==n;)ks(e)&&oy(e[Me],e),e=e[lo];null===e&&(e=n),ks(e)&&oy(e[Me],e),t=e&&e[Gl]}e=t}}(e)}}function oy(n,e){if(!(128&e[In])){e[In]&=-65,e[In]|=128,function IA(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r=0?r[i=a]():r[i=-a].unsubscribe(),o+=2}else{const a=r[i=t[o+1]];t[o].call(a)}if(null!==r){for(let o=i+1;o-1){const{encapsulation:o}=n.data[r.directiveStart+i];if(o===ll.None||o===ll.Emulated)return null}return os(r,t)}}(n,e.parent,t)}function Ch(n,e,t,r,i){n.insertBefore(e,t,r,i)}function ox(n,e,t){n.appendChild(e,t)}function ax(n,e,t,r,i){null!==r?Ch(n,e,t,r,i):ox(n,e,t)}function lv(n,e){return n.parentNode(e)}function sx(n,e,t){return cx(n,e,t)}let ay,hv,cy,fv,cx=function lx(n,e,t){return 40&n.type?os(n,t):null};function cv(n,e,t,r){const i=rx(n,r,e),o=e[vt],s=sx(r.parent||e[Ma],r,e);if(null!=i)if(Array.isArray(t))for(let l=0;ln,createScript:n=>n,createScriptURL:n=>n})}catch{}return hv}()?.createHTML(n)||n}function uy(){if(void 0===fv&&(fv=null,ui.trustedTypes))try{fv=ui.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return fv}function gx(n){return uy()?.createHTML(n)||n}function vx(n){return uy()?.createScriptURL(n)||n}class Mh{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Kp})`}}class zA extends Mh{getTypeName(){return"HTML"}}class HA extends Mh{getTypeName(){return"Style"}}class _x extends Mh{getTypeName(){return"Script"}}class yx extends Mh{getTypeName(){return"URL"}}class jA extends Mh{getTypeName(){return"ResourceURL"}}function Ls(n){return n instanceof Mh?n.changingThisBreaksApplicationSecurity:n}function Tc(n,e){const t=function GA(n){return n instanceof Mh&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${Kp})`)}return t===e}class XA{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(bh(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class KA{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const r=this.inertDocument.createElement("body");t.appendChild(r)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=bh(e),t;const r=this.inertDocument.createElement("body");return r.innerHTML=bh(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0"),!0}endElement(e){const t=e.nodeName.toLowerCase();mv.hasOwnProperty(t)&&!bx.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(Cv(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const nD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rD=/([^\#-~ |!])/g;function Cv(n){return n.replace(/&/g,"&").replace(nD,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(rD,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Pg;function Px(n,e){let t=null;try{Pg=Pg||function Cx(n){const e=new KA(n);return function JA(){try{return!!(new window.DOMParser).parseFromString(bh(""),"text/html")}catch{return!1}}()?new XA(e):e}(n);let r=e?String(e):"";t=Pg.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=t.innerHTML,t=Pg.getInertBodyElement(r)}while(r!==o);return bh((new yv).sanitizeChildren(fy(t)||t))}finally{if(t){const r=fy(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function fy(n){return"content"in n&&function iD(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Ii=(()=>((Ii=Ii||{})[Ii.NONE=0]="NONE",Ii[Ii.HTML=1]="HTML",Ii[Ii.STYLE=2]="STYLE",Ii[Ii.SCRIPT=3]="SCRIPT",Ii[Ii.URL=4]="URL",Ii[Ii.RESOURCE_URL=5]="RESOURCE_URL",Ii))();function bv(n){const e=Kl();return e?gx(e.sanitize(Ii.HTML,n)||""):Tc(n,"HTML")?gx(Ls(n)):Px(function px(){return void 0!==cy?cy:typeof document<"u"?document:void 0}(),fn(n))}function Pa(n){const e=Kl();return e?e.sanitize(Ii.URL,n)||"":Tc(n,"URL")?Ls(n):gv(fn(n))}function Ox(n){const e=Kl();if(e)return vx(e.sanitize(Ii.RESOURCE_URL,n)||"");if(Tc(n,"ResourceURL"))return vx(Ls(n));throw new ee(904,!1)}function Kl(){const n=Zt();return n&&n[Le]}const Mn=new Pe("ENVIRONMENT_INITIALIZER"),Sx=new Pe("INJECTOR",-1),Ba=new Pe("INJECTOR_DEF_TYPES");class co{get(e,t=tg){if(t===tg){const r=new Error(`NullInjectorError: No provider for ${xi(e)}!`);throw r.name="NullInjectorError",r}return t}}function gd(...n){return{\u0275providers:Tx(0,n),\u0275fromNgModule:!0}}function Tx(n,...e){const t=[],r=new Set;let i;return ph(e,o=>{const a=o;py(a,t,[],r)&&(i||(i=[]),i.push(a))}),void 0!==i&&Ax(i,t),t}function Ax(n,e){for(let t=0;t{e.push(o)})}}function py(n,e,t,r){if(!(n=an(n)))return!1;let i=null,o=zo(n);const a=!o&&ar(n);if(o||a){if(a&&!a.standalone)return!1;i=n}else{const l=n.ngModule;if(o=zo(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)py(c,e,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let c;r.add(i);try{ph(o.imports,u=>{py(u,e,t,r)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Ax(c,e)}if(!s){const c=rd(i)||(()=>new i);e.push({provide:i,useFactory:c,deps:Lr},{provide:Ba,useValue:i,multi:!0},{provide:Mn,useValue:()=>Mt(i),multi:!0})}const l=o.providers;null==l||s||gy(l,u=>{e.push(u)})}}return i!==n&&void 0!==n.providers}function gy(n,e){for(let t of n)Xp(t)&&(t=t.\u0275providers),Array.isArray(t)?gy(t,e):e(t)}const my=ni({provide:String,useValue:ni});function vy(n){return null!==n&&"object"==typeof n&&my in n}function Dc(n){return"function"==typeof n}const Ji=new Pe("Set Injector scope."),Og={},dD={};let yy;function Mv(){return void 0===yy&&(yy=new co),yy}class Jl{}class Dx extends Jl{get destroyed(){return this._destroyed}constructor(e,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,md(e,a=>this.processProvider(a)),this.records.set(Sx,Gf(void 0,this)),i.has("environment")&&this.records.set(Jl,Gf(void 0,this));const o=this.records.get(Ji);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ba.multi,Lr,He.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=Cf(this),r=Ds(void 0);try{return e()}finally{Cf(t),Ds(r)}}get(e,t=tg,r=He.Default){this.assertNotDestroyed(),r=eg(r);const i=Cf(this),o=Ds(void 0);try{if(!(r&He.SkipSelf)){let s=this.records.get(e);if(void 0===s){const l=function Fs(n){return"function"==typeof n||"object"==typeof n&&n instanceof Pe}(e)&&Pm(e);s=l&&this.injectableDefInScope(l)?Gf(Cy(e),Og):null,this.records.set(e,s)}if(null!=s)return this.hydrate(e,s)}return(r&He.Self?Mv():this.parent).get(e,t=r&He.Optional&&t===tg?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Hl]=a[Hl]||[]).unshift(xi(e)),i)throw a;return function QM(n,e,t,r){const i=n[Hl];throw e[mu]&&i.unshift(e[mu]),n.message=function tw(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==Zi?n.slice(2):n;let i=xi(e);if(Array.isArray(e))i=e.map(xi).join(" -> ");else if("object"==typeof e){let o=[];for(let a in e)if(e.hasOwnProperty(a)){let s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):xi(s)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${n.replace(C2,"\n ")}`}("\n"+n.message,i,t,r),n[Tm]=i,n[Hl]=null,n}(a,e,"R3InjectorError",this.source)}throw a}finally{Ds(o),Cf(i)}}resolveInjectorInitializers(){const e=Cf(this),t=Ds(void 0);try{const r=this.get(Mn.multi,Lr,He.Self);for(const i of r)i()}finally{Cf(e),Ds(t)}}toString(){const e=[],t=this.records;for(const r of t.keys())e.push(xi(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ee(205,!1)}processProvider(e){let t=Dc(e=an(e))?e:an(e&&e.provide);const r=function Sg(n){return vy(n)?Gf(void 0,n.useValue):Gf(wv(n),Og)}(e);if(Dc(e)||!0!==e.multi)this.records.get(t);else{let i=this.records.get(t);i||(i=Gf(void 0,Og,!0),i.factory=()=>bf(i.multi),this.records.set(t,i)),t=e,i.multi.push(e)}this.records.set(t,r)}hydrate(e,t){return t.value===Og&&(t.value=dD,t.value=t.factory()),"object"==typeof t.value&&t.value&&function xv(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=an(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function Cy(n){const e=Pm(n),t=null!==e?e.factory:rd(n);if(null!==t)return t;if(n instanceof Pe)throw new ee(204,!1);if(n instanceof Function)return function Ix(n){const e=n.length;if(e>0)throw Sc(e,"?"),new ee(204,!1);const t=function XM(n){const e=n&&(n[Qp]||n[v2]);if(e){const t=function kT(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new ee(204,!1)}function wv(n,e,t){let r;if(Dc(n)){const i=an(n);return rd(i)||Cy(i)}if(vy(n))r=()=>an(n.useValue);else if(function _y(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...bf(n.deps||[]));else if(function Ac(n){return!(!n||!n.useExisting)}(n))r=()=>Mt(an(n.useExisting));else{const i=an(n&&(n.useClass||n.provide));if(!function Ex(n){return!!n.deps}(n))return rd(i)||Cy(i);r=()=>new i(...bf(n.deps))}return r}function Gf(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function md(n,e){for(const t of n)Array.isArray(t)?md(t,e):t&&Xp(t)?md(t.\u0275providers,e):e(t)}class hD{}class kx{}class Nx{resolveComponentFactory(e){throw function fD(n){const e=Error(`No component factory found for ${xi(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Oa=(()=>{class n{}return n.NULL=new Nx,n})();function zn(){return wh(la(),Zt())}function wh(n,e){return new Pr(os(n,e))}let Pr=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=zn,n})();function Lx(n){return n instanceof Pr?n.nativeElement:n}class by{}let Yn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function pD(){const n=Zt(),t=Ki(la().index,n);return(ks(t)?t:n)[vt]}(),n})(),Fx=(()=>{class n{}return n.\u0275prov=zt({token:n,providedIn:"root",factory:()=>null}),n})();class Ou{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const gD=new Ou("15.1.5"),My={},wy="ngOriginalError";function xy(n){return n[wy]}class Wf{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&xy(e);for(;t&&xy(t);)t=xy(t);return t||null}}function Su(n){return n instanceof Function?n():n}function Bx(n,e,t){let r=n.length;for(;;){const i=n.indexOf(e,t);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const o=e.length;if(i+o===r||n.charCodeAt(i+o)<=32)return i}t=i+1}}const Vx="ng-template";function PD(n,e,t){let r=0;for(;ro?"":i[h+1].toLowerCase();const g=8&r?p:null;if(g&&-1!==Bx(g,c,0)||2&r&&c!==p){if(Ql(r))return!1;a=!0}}}}else{if(!a&&!Ql(r)&&!Ql(l))return!1;if(a&&Ql(l))continue;a=!1,r=l|1&r}}return Ql(r)||a}function Ql(n){return 0==(1&n)}function $x(n,e,t,r){if(null===e)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!Ql(a)&&(e+=jx(o,i),i=""),r=a,o=o||!Ql(r);t++}return""!==i&&(e+=jx(o,i)),e}const pn={};function T(n){Gx(kn(),Zt(),Fa()+n,!1)}function Gx(n,e,t,r){if(!r)if(3==(3&e[In])){const o=n.preOrderCheckHooks;null!==o&&Oc(e,o,t)}else{const o=n.preOrderHooks;null!==o&&sg(e,o,0,t)}xc(t)}function Yx(n,e=null,t=null,r){const i=Xx(n,e,t,r);return i.resolveInjectorInitializers(),i}function Xx(n,e=null,t=null,r,i=new Set){const o=[t||Lr,gd(n)];return r=r||("object"==typeof n?void 0:xi(n)),new Dx(o,e||Mv(),r||null,i)}let _o=(()=>{class n{static create(t,r){if(Array.isArray(t))return Yx({name:""},r,t,"");{const i=t.name??"";return Yx({name:i},t.parent,t.providers,i)}}}return n.THROW_IF_NOT_FOUND=tg,n.NULL=new co,n.\u0275prov=zt({token:n,providedIn:"any",factory:()=>Mt(Sx)}),n.__NG_ELEMENT_ID__=-1,n})();function ft(n,e=He.Default){const t=Zt();return null===t?Mt(n,e):Zn(la(),t,an(n),e)}function Sv(n,e){const t=n.contentQueries;if(null!==t)for(let r=0;rYr&&Gx(n,e,Yr,!1),cl(a?2:0,i),t(r,i)}finally{xc(o),cl(a?3:1,i)}}function Ny(n,e,t){if(Mc(e)){const i=e.directiveEnd;for(let o=e.directiveStart;o0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=s&&a.push(s),a.push(t,r,o)}}(n,e,r,Tg(n,t,i.hostVars,pn),i)}function ct(n,e,t,r,i,o){const a=os(n,e);!function _t(n,e,t,r,i,o,a){if(null==o)n.removeAttribute(e,i,t);else{const s=null==a?fn(o):a(o,r||"",i);n.setAttribute(e,i,s,t)}}(e[vt],a,o,n.value,t,r,i)}function Ht(n,e,t,r,i,o){const a=o[e];if(null!==a){const s=r.setInput;for(let l=0;l0&&Nn(t)}}function Nn(n){for(let r=av(n);null!==r;r=ny(r))for(let i=Ra;i0&&Nn(o)}const t=n[Me].components;if(null!==t)for(let r=0;r0&&Nn(i)}}function dn(n,e){const t=Ki(e,n),r=t[Me];(function sr(n,e){for(let t=e.length;t-1&&(iy(e,r),gh(t,r))}this._attachedToViewContainer=!1}sv(this._lView[Me],this._lView)}onDestroy(e){sP(this._lView[Me],this._lView,null,e)}markForCheck(){Va(this._cdRefInjectingView||this._lView)}detach(){this._lView[In]&=-65}reattach(){this._lView[In]|=64}detectChanges(){jo(this._lView[Me],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ee(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function SA(n,e){xg(n,e,e[vt],2,null,null)}(this._lView[Me],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new ee(902,!1);this._appRef=e}}class Ztt extends Vy{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;jo(e[Me],e,e[Yi],!1)}checkNoChanges(){}get context(){return null}}class g8 extends Oa{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ar(e);return new $y(t,this.ngModule)}}function m8(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Xtt{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,r){r=eg(r);const i=this.injector.get(e,My,r);return i!==My||t===My?i:this.parentInjector.get(e,t,r)}}class $y extends kx{get inputs(){return m8(this.componentDef.inputs)}get outputs(){return m8(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function ID(n){return n.map(DD).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}create(e,t,r,i){let o=(i=i||this.ngModule)instanceof Jl?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new Xtt(e,o):e,s=a.get(by,null);if(null===s)throw new ee(407,!1);const l=a.get(Fx,null),c=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",h=r?function YD(n,e,t){return n.selectRootElement(e,t===ll.ShadowDom)}(c,r,this.componentDef.encapsulation):ds(c,u,function Ytt(n){const e=n.toLowerCase();return"svg"===e?uw:"math"===e?"math":null}(u)),p=this.componentDef.onPush?288:272,g=Ly(0,null,null,1,0,null,null,null,null,null),v=Tv(null,g,null,p,null,null,s,c,l,a,null);let _,y;Mu(v);try{const C=this.componentDef;let x,P=null;C.findHostDirectiveDefs?(x=[],P=new Map,C.findHostDirectiveDefs(C,x,P),x.push(C)):x=[C];const S=function Jtt(n,e){const t=n[Me],r=Yr;return n[r]=e,Zf(t,r,2,"#host",null)}(v,h),N=function Qtt(n,e,t,r,i,o,a,s){const l=i[Me];!function tet(n,e,t,r){for(const i of n)e.mergedAttrs=cg(e.mergedAttrs,i.hostAttrs);null!==e.mergedAttrs&&(fP(e,e.mergedAttrs,!0),null!==t&&ly(r,t,e))}(r,n,e,a);const c=o.createRenderer(e,t),u=Tv(i,aP(t),null,t.onPush?32:16,i[n.index],n,o,c,s||null,null,null);return l.firstCreatePass&&m(l,n,r.length-1),nr(i,u),i[n.index]=u}(S,h,C,x,v,s,c);y=oh(g,Yr),h&&function net(n,e,t,r){if(r)B2(n,t,["ng-version",gD.full]);else{const{attrs:i,classes:o}=function ED(n){const e=[],t=[];let r=1,i=2;for(;r0&&fx(n,t,o.join(" "))}}(c,C,h,r),void 0!==t&&function ret(n,e,t){const r=n.projection=[];for(let i=0;i=0;r--){const i=n[r];i.hostVars=e+=i.hostVars,i.hostAttrs=cg(i.hostAttrs,t=cg(t,i.hostAttrs))}}(r)}function oI(n){return n===jl?{}:n===Lr?[]:n}function aet(n,e){const t=n.viewQuery;n.viewQuery=t?(r,i)=>{e(r,i),t(r,i)}:e}function set(n,e){const t=n.contentQueries;n.contentQueries=t?(r,i,o)=>{e(r,i,o),t(r,i,o)}:e}function cet(n,e){const t=n.hostBindings;n.hostBindings=t?(r,i)=>{e(r,i),t(r,i)}:e}let gP=null;function Ig(){if(!gP){const n=ui.Symbol;if(n&&n.iterator)gP=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(sa(S[r.index])):r.index;let P=null;if(!a&&s&&(P=function wet(n,e,t,r){const i=n.cleanup;if(null!=i)for(let o=0;ol?s[l]:null}"string"==typeof a&&(o+=2)}return null}(n,e,i,r.index)),null!==P)(P.__ngLastListenerFn__||P).__ngNextListenerFn__=o,P.__ngLastListenerFn__=o,p=!1;else{o=R8(r,e,u,o,!1);const S=t.listen(y,i,o);h.push(o,S),c&&c.push(i,x,C,C+1)}}else o=R8(r,e,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=e[v[y]][v[y+1]].subscribe(o),R=h.length;h.push(o,N),c&&c.push(i,r.index,R,-(R+1))}}}(o,i,i[vt],a,n,e,r),ie}function k8(n,e,t,r){try{return cl(6,e,t),!1!==t(r)}catch(i){return p8(n,i),!1}finally{cl(7,e,t)}}function R8(n,e,t,r,i){return function o(a){if(a===Function)return r;Va(n.componentOffset>-1?Ki(n.index,e):e);let l=k8(e,t,r,a),c=o.__ngNextListenerFn__;for(;c;)l=k8(e,t,c,a)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(a.preventDefault(),a.returnValue=!1),l}}function et(n=1){return function ld(n){return(Sn.lFrame.contextLView=function yw(n,e){for(;n>0;)e=e[Xi],n--;return e}(n,Sn.lFrame.contextLView))[Yi]}(n)}function xet(n,e){let t=null;const r=function TD(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(!(1&t))return e[t+1]}return null}(n);for(let i=0;i>17&32767}function cI(n){return 2|n}function kg(n){return(131068&n)>>2}function uI(n,e){return-131069&n|e<<2}function dI(n){return 1|n}function G8(n,e,t,r,i){const o=n[t+1],a=null===e;let s=r?Yf(o):kg(o),l=!1;for(;0!==s&&(!1===l||a);){const u=n[s+1];Iet(n[s],e)&&(l=!0,n[s+1]=r?dI(u):cI(u)),s=r?Yf(u):kg(u)}l&&(n[t+1]=r?cI(o):dI(o))}function Iet(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Bf(n,e)>=0}const fa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function W8(n){return n.substring(fa.key,fa.keyEnd)}function q8(n,e){const t=fa.textEnd;return t===e?-1:(e=fa.keyEnd=function Net(n,e,t){for(;e32;)e++;return e}(n,fa.key=e,t),$v(n,e,t))}function $v(n,e,t){for(;e=0;t=q8(e,t))Ho(n,W8(e),!0)}function Tu(n,e,t,r){const i=Zt(),o=kn(),a=wc(2);o.firstUpdatePass&&Q8(o,n,a,r),e!==pn&&hs(i,a,e)&&eB(o,o.data[Fa()],i,i[vt],n,i[a+1]=function Get(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=xi(Ls(n)))),n}(e,t),r,a)}function Au(n,e,t,r){const i=kn(),o=wc(2);i.firstUpdatePass&&Q8(i,null,o,r);const a=Zt();if(t!==pn&&hs(a,o,t)){const s=i.data[Fa()];if(rB(s,r)&&!J8(i,o)){let l=r?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(t=_f(l,t||"")),sI(i,s,a,t,r)}else!function jet(n,e,t,r,i,o,a,s){i===pn&&(i=Lr);let l=0,c=0,u=0=n.expandoStartIndex}function Q8(n,e,t,r){const i=n.data;if(null===i[t+1]){const o=i[Fa()],a=J8(n,t);rB(o,r)&&null===e&&!a&&(e=!1),e=function Vet(n,e,t,r){const i=function I2(n){const e=Sn.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(t=Hy(t=hI(null,n,e,t,r),e.attrs,r),o=null);else{const a=e.directiveStylingLast;if(-1===a||n[a]!==i)if(t=hI(i,n,e,t,r),null===o){let l=function $et(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==kg(r))return n[Yf(r)]}(n,e,r);void 0!==l&&Array.isArray(l)&&(l=hI(null,n,e,l[1],r),l=Hy(l,e.attrs,r),function Uet(n,e,t,r){n[Yf(t?e.classBindings:e.styleBindings)]=r}(n,e,r,l))}else o=function zet(n,e,t){let r;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)):u=t,i)if(0!==l){const p=Yf(n[s+1]);n[r+1]=_P(p,s),0!==p&&(n[p+1]=uI(n[p+1],r)),n[s+1]=function Oet(n,e){return 131071&n|e<<17}(n[s+1],r)}else n[r+1]=_P(s,0),0!==s&&(n[s+1]=uI(n[s+1],r)),s=r;else n[r+1]=_P(l,0),0===s?s=r:n[l+1]=uI(n[l+1],r),l=r;c&&(n[r+1]=cI(n[r+1])),G8(n,u,r,!0),G8(n,u,r,!1),function Det(n,e,t,r,i){const o=i?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof e&&Bf(o,e)>=0&&(t[r+1]=dI(t[r+1]))}(e,u,n,r,o),a=_P(s,l),o?e.classBindings=a:e.styleBindings=a}(i,o,e,t,a,r)}}function hI(n,e,t,r,i){let o=null;const a=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){const l=n[i],c=Array.isArray(l),u=c?l[1]:l,h=null===u;let p=t[i+1];p===pn&&(p=h?Lr:void 0);let g=h?mh(p,r):u===r?p:void 0;if(c&&!yP(g)&&(g=mh(l,r)),yP(g)&&(s=g,a))return s;const v=n[i+1];i=a?Yf(v):kg(v)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(s=mh(l,r))}return s}function yP(n){return void 0!==n}function rB(n,e){return 0!=(n.flags&(e?8:16))}function d(n,e=""){const t=Zt(),r=kn(),i=n+Yr,o=r.firstCreatePass?Zf(r,i,1,e,null):r.data[i],a=t[i]=function ry(n,e){return n.createText(e)}(t[vt],e);cv(r,t,a,o),wa(o,!1)}function Ve(n){return Ie("",n,""),Ve}function Ie(n,e,t){const r=Zt(),i=Ev(r,n,e,t);return i!==pn&&xh(r,Fa(),i),Ie}function Uv(n,e,t,r,i){const o=Zt(),a=kv(o,n,e,t,r,i);return a!==pn&&xh(o,Fa(),a),Uv}function Ei(n,e,t){Au(Ho,Cd,Ev(Zt(),n,e,t),!0)}function Kf(n,e,t,r,i){Au(Ho,Cd,kv(Zt(),n,e,t,r,i),!0)}const Rg=void 0;var cnt=["en",[["a","p"],["AM","PM"],Rg],[["AM","PM"],Rg,Rg],[["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"]],Rg,[["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"]],Rg,[["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}",Rg,"{1} 'at' {0}",Rg],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function lnt(n){const t=Math.floor(Math.abs(n)),r=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let zv={};function $s(n){const e=function unt(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=wB(e);if(t)return t;const r=e.split("-")[0];if(t=wB(r),t)return t;if("en"===r)return cnt;throw new ee(701,!1)}function wB(n){return n in zv||(zv[n]=ui.ng&&ui.ng.common&&ui.ng.common.locales&&ui.ng.common.locales[n]),zv[n]}var Re=(()=>((Re=Re||{})[Re.LocaleId=0]="LocaleId",Re[Re.DayPeriodsFormat=1]="DayPeriodsFormat",Re[Re.DayPeriodsStandalone=2]="DayPeriodsStandalone",Re[Re.DaysFormat=3]="DaysFormat",Re[Re.DaysStandalone=4]="DaysStandalone",Re[Re.MonthsFormat=5]="MonthsFormat",Re[Re.MonthsStandalone=6]="MonthsStandalone",Re[Re.Eras=7]="Eras",Re[Re.FirstDayOfWeek=8]="FirstDayOfWeek",Re[Re.WeekendRange=9]="WeekendRange",Re[Re.DateFormat=10]="DateFormat",Re[Re.TimeFormat=11]="TimeFormat",Re[Re.DateTimeFormat=12]="DateTimeFormat",Re[Re.NumberSymbols=13]="NumberSymbols",Re[Re.NumberFormats=14]="NumberFormats",Re[Re.CurrencyCode=15]="CurrencyCode",Re[Re.CurrencySymbol=16]="CurrencySymbol",Re[Re.CurrencyName=17]="CurrencyName",Re[Re.Currencies=18]="Currencies",Re[Re.Directionality=19]="Directionality",Re[Re.PluralCase=20]="PluralCase",Re[Re.ExtraData=21]="ExtraData",Re))();const Hv="en-US";let xB=Hv;function gI(n,e,t,r,i){if(n=an(n),Array.isArray(n))for(let o=0;o>20;if(Dc(n)||!n.multi){const g=new lg(l,i,ft),v=vI(s,e,i?u:u+p,h);-1===v?(zm($m(c,a),o,s),mI(o,n,e.length),e.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(g),a.push(g)):(t[v]=g,a[v]=g)}else{const g=vI(s,e,u+p,h),v=vI(s,e,u,u+p),y=v>=0&&t[v];if(i&&!y||!i&&!(g>=0&&t[g])){zm($m(c,a),o,s);const C=function srt(n,e,t,r,i){const o=new lg(n,t,ft);return o.multi=[],o.index=e,o.componentProviders=0,YB(o,i,r&&!t),o}(i?art:ort,t.length,i,r,l);!i&&y&&(t[v].providerFactory=C),mI(o,n,e.length,0),e.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(C),a.push(C)}else mI(o,n,g>-1?g:v,YB(t[i?v:g],l,!i&&r));!i&&r&&y&&t[v].componentProviders++}}}function mI(n,e,t,r){const i=Dc(e),o=function ro(n){return!!n.useClass}(e);if(i||o){const l=(o?an(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!i&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function YB(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function vI(n,e,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function irt(n,e,t){const r=kn();if(r.firstCreatePass){const i=is(n);gI(t,r.data,r.blueprint,i,!0),gI(e,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,e)}}class jv{}class XB{}class KB extends jv{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new g8(this);const r=Es(e);this._bootstrapComponents=Su(r.bootstrap),this._r3Injector=Xx(e,t,[{provide:jv,useValue:this},{provide:Oa,useValue:this.componentFactoryResolver}],xi(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class yI extends XB{constructor(e){super(),this.moduleType=e}create(e){return new KB(this.moduleType,e)}}class crt extends jv{constructor(e,t,r){super(),this.componentFactoryResolver=new g8(this),this.instance=null;const i=new Dx([...e,{provide:jv,useValue:this},{provide:Oa,useValue:this.componentFactoryResolver}],t||Mv(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function xP(n,e,t=null){return new crt(n,e,t).injector}let urt=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const r=Tx(0,t.type),i=r.length>0?xP([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,i)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=zt({token:n,providedIn:"environment",factory:()=>new n(Mt(Jl))}),n})();function Fo(n){n.getStandaloneInjector=e=>e.get(urt).getOrCreateStandaloneInjector(n)}function $e(n,e,t){const r=La()+n,i=Zt();return i[r]===pn?_d(i,r,t?e.call(t):e()):function Uy(n,e){return n[e]}(i,r)}function Ae(n,e,t,r){return a7(Zt(),La(),n,e,t,r)}function bd(n,e,t,r,i){return s7(Zt(),La(),n,e,t,r,i)}function Yy(n,e){const t=n[e];return t===pn?void 0:t}function a7(n,e,t,r,i,o){const a=e+t;return hs(n,a,i)?_d(n,a+1,o?r.call(o,i):r(i)):Yy(n,a+1)}function s7(n,e,t,r,i,o,a){const s=e+t;return Eg(n,s,i,o)?_d(n,s+2,a?r.call(a,i,o):r(i,o)):Yy(n,s+2)}function l7(n,e,t,r,i,o,a,s){const l=e+t;return function vP(n,e,t,r,i){const o=Eg(n,e,t,r);return hs(n,e+2,i)||o}(n,l,i,o,a)?_d(n,l+3,s?r.call(s,i,o,a):r(i,o,a)):Yy(n,l+3)}function c7(n,e,t,r,i,o,a,s,l){const c=e+t;return function kc(n,e,t,r,i,o){const a=Eg(n,e,t,r);return Eg(n,e+2,i,o)||a}(n,c,i,o,a,s)?_d(n,c+4,l?r.call(l,i,o,a,s):r(i,o,a,s)):Yy(n,c+4)}function he(n,e){const t=kn();let r;const i=n+Yr;t.firstCreatePass?(r=function xrt(n,e){if(e)for(let t=e.length-1;t>=0;t--){const r=e[t];if(n===r.name)return r}}(e,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,r.onDestroy)):r=t.data[i];const o=r.factory||(r.factory=rd(r.type)),a=Ds(ft);try{const s=hg(!1),l=o();return hg(s),function Cet(n,e,t,r){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=r}(t,Zt(),i,l),l}finally{Ds(a)}}function Ye(n,e,t){const r=n+Yr,i=Zt(),o=_u(i,r);return Xy(i,r)?a7(i,La(),e,o.transform,t,o):o.transform(t)}function pa(n,e,t,r){const i=n+Yr,o=Zt(),a=_u(o,i);return Xy(o,i)?s7(o,La(),e,a.transform,t,r,a):a.transform(t,r)}function Md(n,e,t,r,i,o){const a=n+Yr,s=Zt(),l=_u(s,a);return Xy(s,a)?c7(s,La(),e,l.transform,t,r,i,o,l):l.transform(t,r,i,o)}function Xy(n,e){return n[Me].data[e].pure}function bI(n){return e=>{setTimeout(n,void 0,e)}}const vr=class Ort extends I{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){let i=e,o=t||(()=>null),a=r;if(e&&"object"==typeof e){const l=e;i=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=bI(o),i&&(i=bI(i)),a&&(a=bI(a)));const s=super.subscribe({next:i,error:o,complete:a});return e instanceof Kt&&e.add(s),s}};function Srt(){return this._results[Ig()]()}class MI{get changes(){return this._changes||(this._changes=new vr)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Ig(),r=MI.prototype;r[t]||(r[t]=Srt)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const r=this;r.dirty=!1;const i=function vo(n){return n.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function ss(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r{class n{}return n.__NG_ELEMENT_ID__=Drt,n})();const Trt=Nc,Art=class extends Trt{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e,t){const r=this._declarationTContainer.tViews,i=Tv(this._declarationLView,r,e,16,null,r.declTNode,null,null,null,null,t||null);i[ih]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[po];return null!==a&&(i[po]=a.createEmbeddedView(r)),Av(r,i,e),new Vy(i)}};function Drt(){return PP(la(),Zt())}function PP(n,e){return 4&n.type?new Art(e,n,wh(n,e)):null}let tc=(()=>{class n{}return n.__NG_ELEMENT_ID__=Irt,n})();function Irt(){return p7(la(),Zt())}const Ert=tc,h7=class extends Ert{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return wh(this._hostTNode,this._hostLView)}get injector(){return new Lf(this._hostTNode,this._hostLView)}get parentInjector(){const e=pg(this._hostTNode,this._hostLView);if(Mw(e)){const t=Vm(e,this._hostLView),r=ug(e);return new Lf(t[Me].data[r+8],t)}return new Lf(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=f7(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Ra}createEmbeddedView(e,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=e.createEmbeddedView(t||{},o);return this.insert(a,i),a}createComponent(e,t,r,i,o){const a=e&&!function Ff(n){return"function"==typeof n}(e);let s;if(a)s=t;else{const h=t||{};s=h.index,r=h.injector,i=h.projectableNodes,o=h.environmentInjector||h.ngModuleRef}const l=a?e:new $y(ar(e)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const p=(a?c:this.parentInjector).get(Jl,null);p&&(o=p)}const u=l.create(c,i,void 0,o);return this.insert(u.hostView,s),u}insert(e,t){const r=e._lView,i=r[Me];if(function zT(n){return rs(n[lo])}(r)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const h=r[lo],p=new h7(h,h[Ma],h[lo]);p.detach(p.indexOf(e))}}const o=this._adjustIndex(t),a=this._lContainer;!function TA(n,e,t,r){const i=Ra+r,o=t.length;r>0&&(t[i-1][Gl]=e),r0)r.push(a[s/2]);else{const c=o[s+1],u=e[-l];for(let h=Ra;h({bindingPropertyName:n})),iit=Wm("HostListener",(n,e)=>({eventName:n,args:e}));function SP(...n){}const TP=new Pe("Application Initializer");let AP=(()=>{class n{constructor(t){this.appInits=t,this.resolve=SP,this.reject=SP,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:s,error:l})});t.push(a)}}Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(Mt(TP,8))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Jy=new Pe("AppId",{providedIn:"root",factory:function $7(){return`${kI()}${kI()}${kI()}`}});function kI(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const U7=new Pe("Platform Initializer"),Ng=new Pe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),z7=new Pe("appBootstrapListener");let oit=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Th=new Pe("LocaleId",{providedIn:"root",factory:()=>ke(Th,He.Optional|He.SkipSelf)||function ait(){return typeof $localize<"u"&&$localize.locale||Hv}()}),sit=new Pe("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class lit{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let H7=(()=>{class n{compileModuleSync(t){return new yI(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=Su(Es(t).declarations).reduce((a,s)=>{const l=ar(s);return l&&a.push(new $y(l)),a},[]);return new lit(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dit=(()=>Promise.resolve(0))();function RI(n){typeof Zone>"u"?dit.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ki{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vr(!1),this.onMicrotaskEmpty=new vr(!1),this.onStable=new vr(!1),this.onError=new vr(!1),typeof Zone>"u")throw new ee(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)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function hit(){let n=ui.requestAnimationFrame,e=ui.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function git(n){const e=()=>{!function pit(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ui,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,LI(n),n.isCheckStableRunning=!0,NI(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),LI(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,a,s)=>{try{return W7(n),t.invokeTask(i,o,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&e(),q7(n)}},onInvoke:(t,r,i,o,a,s,l)=>{try{return W7(n),t.invoke(i,o,a,s,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),q7(n)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,LI(n),NI(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.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(!ki.isInAngularZone())throw new ee(909,!1)}static assertNotInAngularZone(){if(ki.isInAngularZone())throw new ee(909,!1)}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,i){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+i,e,fit,SP,SP);try{return o.runTask(a,t,r)}finally{o.cancelTask(a)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const fit={};function NI(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 LI(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function W7(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function q7(n){n._nesting--,NI(n)}class mit{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vr,this.onMicrotaskEmpty=new vr,this.onStable=new vr,this.onError=new vr}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,i){return e.apply(t,r)}}const Z7=new Pe(""),DP=new Pe("");let VI,FI=(()=>{class n{constructor(t,r,i){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,VI||(function vit(n){VI=n}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ki.assertNotInAngularZone(),RI(()=>{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())RI(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,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(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}}return n.\u0275fac=function(t){return new(t||n)(Mt(ki),Mt(BI),Mt(DP))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})(),BI=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return VI?.findTestabilityInTree(this,t,r)??null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Jf=null;const Y7=new Pe("AllowMultipleToken"),$I=new Pe("PlatformDestroyListeners"),Ah=!1;class X7{constructor(e,t){this.name=e,this.token=t}}function J7(n,e,t=[]){const r=`Platform: ${e}`,i=new Pe(r);return(o=[])=>{let a=UI();if(!a||a.injector.get(Y7,!1)){const s=[...t,...o,{provide:i,useValue:!0}];n?n(s):function Cit(n){if(Jf&&!Jf.get(Y7,!1))throw new ee(400,!1);Jf=n;const e=n.get(t9);(function K7(n){const e=n.get(U7,null);e&&e.forEach(t=>t())})(n)}(function Q7(n=[],e){return _o.create({name:e,providers:[{provide:Ji,useValue:"platform"},{provide:$I,useValue:new Set([()=>Jf=null])},...n]})}(s,r))}return function Mit(n){const e=UI();if(!e)throw new ee(401,!1);return e}()}}function UI(){return Jf?.get(t9)??null}let t9=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function n9(n,e){let t;return t="noop"===n?new mit:("zone.js"===n?void 0:n)||new ki(e),t}(r?.ngZone,function e9(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:ki,useValue:i}];return i.run(()=>{const a=_o.create({providers:o,parent:this.injector,name:t.moduleType.name}),s=t.create(a),l=s.injector.get(Wf,null);if(!l)throw new ee(402,!1);return i.runOutsideAngular(()=>{const c=i.onError.subscribe({next:u=>{l.handleError(u)}});s.onDestroy(()=>{IP(this._modules,s),c.unsubscribe()})}),function r9(n,e,t){try{const r=t();return zy(r)?r.catch(i=>{throw e.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(l,i,()=>{const c=s.injector.get(AP);return c.runInitializers(),c.donePromise.then(()=>(function PB(n){al(n,"Expected localeId to be defined"),"string"==typeof n&&(xB=n.toLowerCase().replace(/_/g,"-"))}(s.injector.get(Th,Hv)||Hv),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,r=[]){const i=i9({},r);return function _it(n,e,t){const r=new yI(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(t){const r=t.injector.get(Lg);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new ee(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ee(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get($I,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(Mt(_o))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function i9(n,e){return Array.isArray(e)?e.reduce(i9,n):{...n,...e}}let Lg=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(t,r,i){this._zone=t,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(()=>{ki.assertNotInAngularZone(),RI(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ki.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Ul(o,a.pipe(th()))}bootstrap(t,r){const i=t instanceof kx;if(!this._injector.get(AP).done){!i&&function Pf(n){const e=ar(n)||Ro(n)||ka(n);return null!==e&&e.standalone}(t);throw new ee(405,Ah)}let a;a=i?t:this._injector.get(Oa).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const s=function yit(n){return n.isBoundToModule}(a)?void 0:this._injector.get(jv),c=a.create(_o.NULL,[],r||a.selector,s),u=c.location.nativeElement,h=c.injector.get(Z7,null);return h?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),IP(this.components,c),h?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new ee(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;IP(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(z7,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>IP(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new ee(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(Mt(ki),Mt(Jl),Mt(Wf))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function IP(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Lc=(()=>{class n{}return n.__NG_ELEMENT_ID__=xit,n})();function xit(n){return function Pit(n,e,t){if(nd(n)&&!t){const r=Ki(n.index,e);return new Vy(r,r)}return 47&n.type?new Vy(e[En],e):null}(la(),Zt(),16==(16&n))}class c9{constructor(){}supports(e){return mP(e)}create(e){return new Iit(e)}}const Dit=(n,e)=>e;class Iit{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Dit}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const a=!r||t&&t.currentIndex{a=this._trackByFn(i,s),null!==t&&Object.is(t.trackById,a)?(r&&(t=this._verifyReinsertion(t,s,a,i)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,a,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,i){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,i)):e=this._addAfter(new Eit(t,r),o,i),e}_verifyReinsertion(e,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,o=e._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new u9),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new u9),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Eit{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class kit{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class u9{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new kit,this.map.set(t,r)),r.add(e)}get(e,t){const i=this.map.get(e);return i?i.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function d9(n,e,t){const r=n.previousIndex;if(null===r)return r;let i=0;return t&&r{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const r=e._prev;return t._next=e,t._prev=r,e._prev=t,r&&(r._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,t);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 Nit(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(r=>t(e[r],r))}}class Nit{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function f9(){return new RP([new c9])}let RP=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||f9()),deps:[[n,new Vf,new hd]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new ee(901,!1)}}return n.\u0275prov=zt({token:n,providedIn:"root",factory:f9}),n})();function p9(){return new Qy([new h9])}let Qy=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||p9()),deps:[[n,new Vf,new hd]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new ee(901,!1)}}return n.\u0275prov=zt({token:n,providedIn:"root",factory:p9}),n})();const Bit=J7(null,"core",[]);let Vit=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(Mt(Lg))},n.\u0275mod=di({type:n}),n.\u0275inj=qi({}),n})();function qv(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function g9(n,e){const t=ar(n),r=e.elementInjector||Mv();return new $y(t).create(r,e.projectableNodes,e.hostElement,e.environmentInjector)}let qI=null;function wd(){return qI}class zit{}const Go=new Pe("DocumentToken");let ZI=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:function(){return function Hit(){return Mt(m9)}()},providedIn:"platform"}),n})();const jit=new Pe("Location Initialized");let m9=(()=>{class n extends ZI{constructor(t){super(),this._doc=t,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return wd().getBaseHref(this._doc)}onPopState(t){const r=wd().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=wd().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){v9()?this._history.pushState(t,r,i):this._location.hash=i}replaceState(t,r,i){v9()?this._history.replaceState(t,r,i):this._location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(Mt(Go))},n.\u0275prov=zt({token:n,factory:function(){return function Git(){return new m9(Mt(Go))}()},providedIn:"platform"}),n})();function v9(){return!!window.history.pushState}function YI(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function _9(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Dh(n){return n&&"?"!==n[0]?"?"+n:n}let Bg=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:function(){return ke(C9)},providedIn:"root"}),n})();const y9=new Pe("appBaseHref");let C9=(()=>{class n extends Bg{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??ke(Go).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return YI(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Dh(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){const a=this.prepareExternalUrl(i+Dh(o));this._platformLocation.pushState(t,r,a)}replaceState(t,r,i,o){const a=this.prepareExternalUrl(i+Dh(o));this._platformLocation.replaceState(t,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(Mt(ZI),Mt(y9,8))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wit=(()=>{class n extends Bg{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=YI(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let a=this.prepareExternalUrl(i+Dh(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(t,r,a)}replaceState(t,r,i,o){let a=this.prepareExternalUrl(i+Dh(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(Mt(ZI),Mt(y9,8))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})(),XI=(()=>{class n{constructor(t){this._subject=new vr,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function Yit(n){if(new RegExp("^(https?:)?//").test(n)){const[,t]=n.split(/\/\/[^\/]+/);return t}return n}(_9(b9(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(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Dh(r))}normalize(t){return n.stripTrailingSlash(function Zit(n,e){return n&&new RegExp(`^${n}([/;?#]|$)`).test(e)?e.substring(n.length):e}(this._basePath,b9(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Dh(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Dh(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}}return n.normalizeQueryParams=Dh,n.joinWithSlash=YI,n.stripTrailingSlash=_9,n.\u0275fac=function(t){return new(t||n)(Mt(Bg))},n.\u0275prov=zt({token:n,factory:function(){return function qit(){return new XI(Mt(Bg))}()},providedIn:"root"}),n})();function b9(n){return n.replace(/\/index.html$/,"")}const M9={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 pl=(()=>((pl=pl||{})[pl.Decimal=0]="Decimal",pl[pl.Percent=1]="Percent",pl[pl.Currency=2]="Currency",pl[pl.Scientific=3]="Scientific",pl))(),Bo=(()=>((Bo=Bo||{})[Bo.Format=0]="Format",Bo[Bo.Standalone=1]="Standalone",Bo))(),_r=(()=>((_r=_r||{})[_r.Narrow=0]="Narrow",_r[_r.Abbreviated=1]="Abbreviated",_r[_r.Wide=2]="Wide",_r[_r.Short=3]="Short",_r))(),yo=(()=>((yo=yo||{})[yo.Short=0]="Short",yo[yo.Medium=1]="Medium",yo[yo.Long=2]="Long",yo[yo.Full=3]="Full",yo))(),gn=(()=>((gn=gn||{})[gn.Decimal=0]="Decimal",gn[gn.Group=1]="Group",gn[gn.List=2]="List",gn[gn.PercentSign=3]="PercentSign",gn[gn.PlusSign=4]="PlusSign",gn[gn.MinusSign=5]="MinusSign",gn[gn.Exponential=6]="Exponential",gn[gn.SuperscriptingExponent=7]="SuperscriptingExponent",gn[gn.PerMille=8]="PerMille",gn[gn.Infinity=9]="Infinity",gn[gn.NaN=10]="NaN",gn[gn.TimeSeparator=11]="TimeSeparator",gn[gn.CurrencyDecimal=12]="CurrencyDecimal",gn[gn.CurrencyGroup=13]="CurrencyGroup",gn))();function NP(n,e){return Bc($s(n)[Re.DateFormat],e)}function LP(n,e){return Bc($s(n)[Re.TimeFormat],e)}function FP(n,e){return Bc($s(n)[Re.DateTimeFormat],e)}function Fc(n,e){const t=$s(n),r=t[Re.NumberSymbols][e];if(typeof r>"u"){if(e===gn.CurrencyDecimal)return t[Re.NumberSymbols][gn.Decimal];if(e===gn.CurrencyGroup)return t[Re.NumberSymbols][gn.Group]}return r}function KI(n,e){return $s(n)[Re.NumberFormats][e]}function w9(n){if(!n[Re.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Re.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Bc(n,e){for(let t=e;t>-1;t--)if(typeof n[t]<"u")return n[t];throw new Error("Locale data API: locale data undefined")}function JI(n){const[e,t]=n.split(":");return{hours:+e,minutes:+t}}const aot=2,lot=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,tC={},cot=/((?:[^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 ga=(()=>((ga=ga||{})[ga.Short=0]="Short",ga[ga.ShortGMT=1]="ShortGMT",ga[ga.Long=2]="Long",ga[ga.Extended=3]="Extended",ga))(),yn=(()=>((yn=yn||{})[yn.FullYear=0]="FullYear",yn[yn.Month=1]="Month",yn[yn.Date=2]="Date",yn[yn.Hours=3]="Hours",yn[yn.Minutes=4]="Minutes",yn[yn.Seconds=5]="Seconds",yn[yn.FractionalSeconds=6]="FractionalSeconds",yn[yn.Day=7]="Day",yn))(),Kn=(()=>((Kn=Kn||{})[Kn.DayPeriods=0]="DayPeriods",Kn[Kn.Days=1]="Days",Kn[Kn.Months=2]="Months",Kn[Kn.Eras=3]="Eras",Kn))();function uot(n,e,t,r){let i=function yot(n){if(O9(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 BP(i,o-1,a)}const t=parseFloat(n);if(!isNaN(n-t))return new Date(t);let r;if(r=n.match(lot))return function Cot(n){const e=new Date(0);let t=0,r=0;const i=n[8]?e.setUTCFullYear:e.setFullYear,o=n[8]?e.setUTCHours:e.setHours;n[9]&&(t=Number(n[9]+n[10]),r=Number(n[9]+n[11])),i.call(e,Number(n[1]),Number(n[2])-1,Number(n[3]));const a=Number(n[4]||0)-t,s=Number(n[5]||0)-r,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return o.call(e,a,s,l,c),e}(r)}const e=new Date(n);if(!O9(e))throw new Error(`Unable to convert "${n}" into a date`);return e}(n);e=Ih(t,e)||e;let s,a=[];for(;e;){if(s=cot.exec(e),!s){a.push(e);break}{a=a.concat(s.slice(1));const u=a.pop();if(!u)break;e=u}}let l=i.getTimezoneOffset();r&&(l=P9(r,l),i=function _ot(n,e,t){const r=t?-1:1,i=n.getTimezoneOffset();return function vot(n,e){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+e),n}(n,r*(P9(e,i)-i))}(i,r,!0));let c="";return a.forEach(u=>{const h=function mot(n){if(tE[n])return tE[n];let e;switch(n){case"G":case"GG":case"GGG":e=Qi(Kn.Eras,_r.Abbreviated);break;case"GGGG":e=Qi(Kn.Eras,_r.Wide);break;case"GGGGG":e=Qi(Kn.Eras,_r.Narrow);break;case"y":e=qo(yn.FullYear,1,0,!1,!0);break;case"yy":e=qo(yn.FullYear,2,0,!0,!0);break;case"yyy":e=qo(yn.FullYear,3,0,!1,!0);break;case"yyyy":e=qo(yn.FullYear,4,0,!1,!0);break;case"Y":e=zP(1);break;case"YY":e=zP(2,!0);break;case"YYY":e=zP(3);break;case"YYYY":e=zP(4);break;case"M":case"L":e=qo(yn.Month,1,1);break;case"MM":case"LL":e=qo(yn.Month,2,1);break;case"MMM":e=Qi(Kn.Months,_r.Abbreviated);break;case"MMMM":e=Qi(Kn.Months,_r.Wide);break;case"MMMMM":e=Qi(Kn.Months,_r.Narrow);break;case"LLL":e=Qi(Kn.Months,_r.Abbreviated,Bo.Standalone);break;case"LLLL":e=Qi(Kn.Months,_r.Wide,Bo.Standalone);break;case"LLLLL":e=Qi(Kn.Months,_r.Narrow,Bo.Standalone);break;case"w":e=QI(1);break;case"ww":e=QI(2);break;case"W":e=QI(1,!0);break;case"d":e=qo(yn.Date,1);break;case"dd":e=qo(yn.Date,2);break;case"c":case"cc":e=qo(yn.Day,1);break;case"ccc":e=Qi(Kn.Days,_r.Abbreviated,Bo.Standalone);break;case"cccc":e=Qi(Kn.Days,_r.Wide,Bo.Standalone);break;case"ccccc":e=Qi(Kn.Days,_r.Narrow,Bo.Standalone);break;case"cccccc":e=Qi(Kn.Days,_r.Short,Bo.Standalone);break;case"E":case"EE":case"EEE":e=Qi(Kn.Days,_r.Abbreviated);break;case"EEEE":e=Qi(Kn.Days,_r.Wide);break;case"EEEEE":e=Qi(Kn.Days,_r.Narrow);break;case"EEEEEE":e=Qi(Kn.Days,_r.Short);break;case"a":case"aa":case"aaa":e=Qi(Kn.DayPeriods,_r.Abbreviated);break;case"aaaa":e=Qi(Kn.DayPeriods,_r.Wide);break;case"aaaaa":e=Qi(Kn.DayPeriods,_r.Narrow);break;case"b":case"bb":case"bbb":e=Qi(Kn.DayPeriods,_r.Abbreviated,Bo.Standalone,!0);break;case"bbbb":e=Qi(Kn.DayPeriods,_r.Wide,Bo.Standalone,!0);break;case"bbbbb":e=Qi(Kn.DayPeriods,_r.Narrow,Bo.Standalone,!0);break;case"B":case"BB":case"BBB":e=Qi(Kn.DayPeriods,_r.Abbreviated,Bo.Format,!0);break;case"BBBB":e=Qi(Kn.DayPeriods,_r.Wide,Bo.Format,!0);break;case"BBBBB":e=Qi(Kn.DayPeriods,_r.Narrow,Bo.Format,!0);break;case"h":e=qo(yn.Hours,1,-12);break;case"hh":e=qo(yn.Hours,2,-12);break;case"H":e=qo(yn.Hours,1);break;case"HH":e=qo(yn.Hours,2);break;case"m":e=qo(yn.Minutes,1);break;case"mm":e=qo(yn.Minutes,2);break;case"s":e=qo(yn.Seconds,1);break;case"ss":e=qo(yn.Seconds,2);break;case"S":e=qo(yn.FractionalSeconds,1);break;case"SS":e=qo(yn.FractionalSeconds,2);break;case"SSS":e=qo(yn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=$P(ga.Short);break;case"ZZZZZ":e=$P(ga.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=$P(ga.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=$P(ga.Long);break;default:return null}return tE[n]=e,e}(u);c+=h?h(i,t,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function BP(n,e,t){const r=new Date(0);return r.setFullYear(n,e,t),r.setHours(0,0,0),r}function Ih(n,e){const t=function Xit(n){return $s(n)[Re.LocaleId]}(n);if(tC[t]=tC[t]||{},tC[t][e])return tC[t][e];let r="";switch(e){case"shortDate":r=NP(n,yo.Short);break;case"mediumDate":r=NP(n,yo.Medium);break;case"longDate":r=NP(n,yo.Long);break;case"fullDate":r=NP(n,yo.Full);break;case"shortTime":r=LP(n,yo.Short);break;case"mediumTime":r=LP(n,yo.Medium);break;case"longTime":r=LP(n,yo.Long);break;case"fullTime":r=LP(n,yo.Full);break;case"short":const i=Ih(n,"shortTime"),o=Ih(n,"shortDate");r=VP(FP(n,yo.Short),[i,o]);break;case"medium":const a=Ih(n,"mediumTime"),s=Ih(n,"mediumDate");r=VP(FP(n,yo.Medium),[a,s]);break;case"long":const l=Ih(n,"longTime"),c=Ih(n,"longDate");r=VP(FP(n,yo.Long),[l,c]);break;case"full":const u=Ih(n,"fullTime"),h=Ih(n,"fullDate");r=VP(FP(n,yo.Full),[u,h])}return r&&(tC[t][e]=r),r}function VP(n,e){return e&&(n=n.replace(/\{([^}]+)}/g,function(t,r){return null!=e&&r in e?e[r]:t})),n}function Iu(n,e,t="-",r,i){let o="";(n<0||i&&n<=0)&&(i?n=1-n:(n=-n,o=t));let a=String(n);for(;a.length0||s>-t)&&(s+=t),n===yn.Hours)0===s&&-12===t&&(s=12);else if(n===yn.FractionalSeconds)return function dot(n,e){return Iu(n,3).substring(0,e)}(s,e);const l=Fc(a,gn.MinusSign);return Iu(s,e,l,r,i)}}function Qi(n,e,t=Bo.Format,r=!1){return function(i,o){return function fot(n,e,t,r,i,o){switch(t){case Kn.Months:return function Qit(n,e,t){const r=$s(n),o=Bc([r[Re.MonthsFormat],r[Re.MonthsStandalone]],e);return Bc(o,t)}(e,i,r)[n.getMonth()];case Kn.Days:return function Jit(n,e,t){const r=$s(n),o=Bc([r[Re.DaysFormat],r[Re.DaysStandalone]],e);return Bc(o,t)}(e,i,r)[n.getDay()];case Kn.DayPeriods:const a=n.getHours(),s=n.getMinutes();if(o){const c=function rot(n){const e=$s(n);return w9(e),(e[Re.ExtraData][2]||[]).map(r=>"string"==typeof r?JI(r):[JI(r[0]),JI(r[1])])}(e),u=function iot(n,e,t){const r=$s(n);w9(r);const o=Bc([r[Re.ExtraData][0],r[Re.ExtraData][1]],e)||[];return Bc(o,t)||[]}(e,i,r),h=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 ga.Short:return(i>=0?"+":"")+Iu(a,2,o)+Iu(Math.abs(i%60),2,o);case ga.ShortGMT:return"GMT"+(i>=0?"+":"")+Iu(a,1,o);case ga.Long:return"GMT"+(i>=0?"+":"")+Iu(a,2,o)+":"+Iu(Math.abs(i%60),2,o);case ga.Extended:return 0===r?"Z":(i>=0?"+":"")+Iu(a,2,o)+":"+Iu(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}const pot=0,UP=4;function x9(n){return BP(n.getFullYear(),n.getMonth(),n.getDate()+(UP-n.getDay()))}function QI(n,e=!1){return function(t,r){let i;if(e){const o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,a=t.getDate();i=1+Math.floor((a+o)/7)}else{const o=x9(t),a=function got(n){const e=BP(n,pot,1).getDay();return BP(n,0,1+(e<=UP?UP:UP+7)-e)}(o.getFullYear()),s=o.getTime()-a.getTime();i=1+Math.round(s/6048e5)}return Iu(i,n,Fc(r,gn.MinusSign))}}function zP(n,e=!1){return function(t,r){return Iu(x9(t).getFullYear(),n,Fc(r,gn.MinusSign),e)}}const tE={};function P9(n,e){n=n.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(t)?e:t}function O9(n){return n instanceof Date&&!isNaN(n.valueOf())}const bot=/^(\d+)?\.((\d+)(-(\d+))?)?$/,S9=22,HP=".",eC="0",Mot=";",wot=",",eE="#",T9="\xa4";function nE(n,e,t,r,i,o,a=!1){let s="",l=!1;if(isFinite(n)){let c=function Tot(n){let r,i,o,a,s,e=Math.abs(n)+"",t=0;for((i=e.indexOf(HP))>-1&&(e=e.replace(HP,"")),(o=e.search(/e/i))>0?(i<0&&(i=o),i+=+e.slice(o+1),e=e.substring(0,o)):i<0&&(i=e.length),o=0;e.charAt(o)===eC;o++);if(o===(s=e.length))r=[0],i=1;else{for(s--;e.charAt(s)===eC;)s--;for(i-=o,r=[],a=0;o<=s;o++,a++)r[a]=Number(e.charAt(o))}return i>S9&&(r=r.splice(0,S9-1),t=i-1,i=1),{digits:r,exponent:t,integerLen:i}}(n);a&&(c=function Sot(n){if(0===n.digits[0])return n;const e=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===e?n.digits.push(0,0):1===e&&n.digits.push(0),n.integerLen+=2),n}(c));let u=e.minInt,h=e.minFrac,p=e.maxFrac;if(o){const x=o.match(bot);if(null===x)throw new Error(`${o} is not a valid digit info`);const P=x[1],S=x[3],N=x[5];null!=P&&(u=iE(P)),null!=S&&(h=iE(S)),null!=N?p=iE(N):null!=S&&h>p&&(p=h)}!function Aot(n,e,t){if(e>t)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${t}).`);let r=n.digits,i=r.length-n.integerLen;const o=Math.min(Math.max(e,i),t);let a=o+n.integerLen,s=r[a];if(a>0){r.splice(Math.max(n.integerLen,a));for(let h=a;h=5)if(a-1<0){for(let h=0;h>a;h--)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,h,p);let g=c.digits,v=c.integerLen;const _=c.exponent;let y=[];for(l=g.every(x=>!x);v0?y=g.splice(v,g.length):(y=g,g=[0]);const C=[];for(g.length>=e.lgSize&&C.unshift(g.splice(-e.lgSize,g.length).join(""));g.length>e.gSize;)C.unshift(g.splice(-e.gSize,g.length).join(""));g.length&&C.unshift(g.join("")),s=C.join(Fc(t,r)),y.length&&(s+=Fc(t,i)+y.join("")),_&&(s+=Fc(t,gn.Exponential)+"+"+_)}else s=Fc(t,gn.Infinity);return s=n<0&&!l?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf,s}function A9(n,e,t){return nE(n,rE(KI(e,pl.Decimal),Fc(e,gn.MinusSign)),e,gn.Group,gn.Decimal,t)}function rE(n,e="-"){const t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=n.split(Mot),i=r[0],o=r[1],a=-1!==i.indexOf(HP)?i.split(HP):[i.substring(0,i.lastIndexOf(eC)+1),i.substring(i.lastIndexOf(eC)+1)],s=a[0],l=a[1]||"";t.posPre=s.substring(0,s.indexOf(eE));for(let u=0;u{class n{constructor(t,r,i,o){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this.initialClasses=E9,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(aE):E9}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(aE):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,Boolean(t[r]));this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[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(t,r){(t=t.trim()).length>0&&t.split(aE).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return n.\u0275fac=function(t){return new(t||n)(ft(RP),ft(Qy),ft(Pr),ft(Yn))},n.\u0275dir=qe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class Eot{constructor(e,t,r,i){this.$implicit=e,this.ngForOf=t,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 Zo=(()=>{class n{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,a)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new Eot(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),N9(s,i)}});for(let i=0,o=r.length;i{N9(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(ft(tc),ft(Nc),ft(RP))},n.\u0275dir=qe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function N9(n,e){n.context.$implicit=e.item}let Xn=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new Rot,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){L9("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){L9("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(ft(tc),ft(Nc))},n.\u0275dir=qe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Rot{constructor(){this.$implicit=null,this.ngIf=null}}function L9(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${xi(e)}'.`)}class sE{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let jP=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const r=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const r of this._defaultViews)r.enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=qe({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),F9=(()=>{class n{constructor(t,r,i){this.ngSwitch=i,i._addCase(),this._view=new sE(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(ft(tc),ft(Nc),ft(jP,9))},n.\u0275dir=qe({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),Ri=(()=>{class n{constructor(t,r,i){this._ngEl=t,this._differs=r,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){const[i,o]=t.split("."),a=-1===i.indexOf("-")?void 0:us.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(ft(Pr),ft(Qy),ft(Yn))},n.\u0275dir=qe({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Vo=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.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&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(ft(tc))},n.\u0275dir=qe({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[go]}),n})();function Eu(n,e){return new ee(2100,!1)}class Fot{createSubscription(e,t){return e.subscribe({next:t,error:r=>{throw r}})}dispose(e){e.unsubscribe()}}class Bot{createSubscription(e,t){return e.then(t,r=>{throw r})}dispose(e){}}const Vot=new Bot,$ot=new Fot;let js=(()=>{class n{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(zy(t))return Vot;if(D8(t))return $ot;throw Eu()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(ft(Lc,16))},n.\u0275pipe=Po({name:"async",type:n,pure:!1,standalone:!0}),n})();const zot=/(?:[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 Qf=(()=>{class n{transform(t){if(null==t)return null;if("string"!=typeof t)throw Eu();return t.replace(zot,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=Po({name:"titlecase",type:n,pure:!0,standalone:!0}),n})();const Got=new Pe("DATE_PIPE_DEFAULT_TIMEZONE"),Wot=new Pe("DATE_PIPE_DEFAULT_OPTIONS");let V9=(()=>{class n{constructor(t,r,i){this.locale=t,this.defaultTimezone=r,this.defaultOptions=i}transform(t,r,i,o){if(null==t||""===t||t!=t)return null;try{return uot(t,r??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,i??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw Eu()}}}return n.\u0275fac=function(t){return new(t||n)(ft(Th,16),ft(Got,24),ft(Wot,24))},n.\u0275pipe=Po({name:"date",type:n,pure:!0,standalone:!0}),n})(),$9=(()=>{class n{transform(t){return JSON.stringify(t,null,2)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=Po({name:"json",type:n,pure:!1,standalone:!0}),n})(),Eh=(()=>{class n{constructor(t){this._locale=t}transform(t,r,i){if(!lE(t))return null;i=i||this._locale;try{return A9(cE(t),i,r)}catch(o){throw Eu()}}}return n.\u0275fac=function(t){return new(t||n)(ft(Th,16))},n.\u0275pipe=Po({name:"number",type:n,pure:!0,standalone:!0}),n})(),z9=(()=>{class n{constructor(t){this._locale=t}transform(t,r,i){if(!lE(t))return null;i=i||this._locale;try{return function Oot(n,e,t){return nE(n,rE(KI(e,pl.Percent),Fc(e,gn.MinusSign)),e,gn.Group,gn.Decimal,t,!0).replace(new RegExp("%","g"),Fc(e,gn.PercentSign))}(cE(t),i,r)}catch(o){throw Eu()}}}return n.\u0275fac=function(t){return new(t||n)(ft(Th,16))},n.\u0275pipe=Po({name:"percent",type:n,pure:!0,standalone:!0}),n})(),nC=(()=>{class n{constructor(t,r="USD"){this._locale=t,this._defaultCurrencyCode=r}transform(t,r=this._defaultCurrencyCode,i="symbol",o,a){if(!lE(t))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 oot(n,e,t="en"){const r=function eot(n){return $s(n)[Re.Currencies]}(t)[n]||M9[n]||[],i=r[1];return"narrow"===e&&"string"==typeof i?i:r[0]||n}(s,"symbol"===i?"wide":"narrow",a):i);try{return function Pot(n,e,t,r,i){const a=rE(KI(e,pl.Currency),Fc(e,gn.MinusSign));return a.minFrac=function sot(n){let e;const t=M9[n];return t&&(e=t[2]),"number"==typeof e?e:aot}(r),a.maxFrac=a.minFrac,nE(n,a,e,gn.CurrencyGroup,gn.CurrencyDecimal,i).replace(T9,t).replace(T9,"").trim()}(cE(t),a,s,r,o)}catch(l){throw Eu()}}}return n.\u0275fac=function(t){return new(t||n)(ft(Th,16),ft(sit,16))},n.\u0275pipe=Po({name:"currency",type:n,pure:!0,standalone:!0}),n})();function lE(n){return!(null==n||""===n||n!=n)}function cE(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 H9=(()=>{class n{transform(t,r,i){if(null==t)return null;if(!this.supports(t))throw Eu();return t.slice(r,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=Po({name:"slice",type:n,pure:!1,standalone:!0}),n})(),$i=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({}),n})();const j9="browser",Jot="server";function uE(n){return n===Jot}let nat=(()=>{class n{}return n.\u0275prov=zt({token:n,providedIn:"root",factory:()=>new rat(Mt(Go),window)}),n})();class rat{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function iat(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const a=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(a)return a}i=r.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=G9(this.window.history)||G9(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function G9(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class W9{}class Iat extends zit{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class pE extends Iat{static makeCurrent(){!function Uit(n){qI||(qI=n)}(new pE)}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function Eat(){return iC=iC||document.querySelector("base"),iC?iC.getAttribute("href"):null}();return null==t?null:function kat(n){WP=WP||document.createElement("a"),WP.setAttribute("href",n);const e=WP.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){iC=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return I9(document.cookie,e)}}let WP,iC=null;const K9=new Pe("TRANSITION_ID"),Nat=[{provide:TP,useFactory:function Rat(n,e,t){return()=>{t.get(AP).donePromise.then(()=>{const r=wd(),i=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();const qP=new Pe("EventManagerPlugins");let ZP=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>i.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}addGlobalEventListener(t,r,i){return this._findPluginFor(r).addGlobalEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const i=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})(),oC=(()=>{class n extends Q9{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,i){t.forEach(o=>{const a=this._doc.createElement("style");a.textContent=o,i.push(r.appendChild(a))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(tV),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(t,i,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(tV))}}return n.\u0275fac=function(t){return new(t||n)(Mt(Go))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();function tV(n){wd().remove(n)}const gE={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/"},mE=/%COMP%/g;function vE(n,e){return e.flat(100).map(t=>t.replace(mE,n))}function rV(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let _E=(()=>{class n{constructor(t,r,i){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new yE(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case ll.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new Hat(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(t),i}case ll.ShadowDom:return new jat(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const i=vE(r.id,r.styles);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(Mt(ZP),Mt(oC),Mt(Jy))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();class yE{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(gE[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(oV(e)?e.content:e).appendChild(t)}insertBefore(e,t,r){e&&(oV(e)?e.content:e).insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,i){if(i){t=i+":"+t;const o=gE[i];o?e.setAttributeNS(o,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const i=gE[r];i?e.removeAttributeNS(i,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,i){i&(us.DashCase|us.Important)?e.style.setProperty(t,r,i&us.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&us.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,rV(r)):this.eventManager.addEventListener(e,t,rV(r))}}function oV(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class Hat extends yE{constructor(e,t,r,i){super(e),this.component=r;const o=vE(i+"-"+r.id,r.styles);t.addStyles(o),this.contentAttr=function $at(n){return"_ngcontent-%COMP%".replace(mE,n)}(i+"-"+r.id),this.hostAttr=function Uat(n){return"_nghost-%COMP%".replace(mE,n)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class jat extends yE{constructor(e,t,r,i){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=vE(i.id,i.styles);for(let a=0;a{class n extends J9{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}}return n.\u0275fac=function(t){return new(t||n)(Mt(Go))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();const aV=["alt","control","meta","shift"],Wat={"\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"},qat={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Zat=(()=>{class n extends J9{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,i){const o=n.parseEventName(r),a=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wd().onAndCancel(t,o.domEventName,a))}static parseEventName(t){const r=t.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."),aV.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(t,r){let i=Wat[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),aV.forEach(a=>{a!==i&&(0,qat[a])(t)&&(o+=a+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{n.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(Mt(Go))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();const lV=[{provide:Ng,useValue:j9},{provide:U7,useValue:function Yat(){pE.makeCurrent()},multi:!0},{provide:Go,useFactory:function Kat(){return function UA(n){cy=n}(document),document},deps:[]}],Jat=J7(Bit,"browser",lV),cV=new Pe(""),uV=[{provide:DP,useClass:class Lat{addToWindow(e){ui.getAngularTestability=(r,i=!0)=>{const o=e.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},ui.getAllAngularTestabilities=()=>e.getAllTestabilities(),ui.getAllAngularRootElements=()=>e.getAllRootElements(),ui.frameworkStabilizers||(ui.frameworkStabilizers=[]),ui.frameworkStabilizers.push(r=>{const i=ui.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(e,t,r){return null==t?null:e.getTestability(t)??(r?wd().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:Z7,useClass:FI,deps:[ki,BI,DP]},{provide:FI,useClass:FI,deps:[ki,BI,DP]}],dV=[{provide:Ji,useValue:"root"},{provide:Wf,useFactory:function Xat(){return new Wf},deps:[]},{provide:qP,useClass:Gat,multi:!0,deps:[Go,ki,Ng]},{provide:qP,useClass:Zat,multi:!0,deps:[Go]},{provide:_E,useClass:_E,deps:[ZP,oC,Jy]},{provide:by,useExisting:_E},{provide:Q9,useExisting:oC},{provide:oC,useClass:oC,deps:[Go]},{provide:ZP,useClass:ZP,deps:[qP,ki]},{provide:W9,useClass:Fat,deps:[]},[]];let Qat=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:Jy,useValue:t.appId},{provide:K9,useExisting:Jy},Nat]}}}return n.\u0275fac=function(t){return new(t||n)(Mt(cV,12))},n.\u0275mod=di({type:n}),n.\u0275inj=qi({providers:[...dV,...uV],imports:[$i,Vit]}),n})(),hV=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return n.\u0275fac=function(t){return new(t||n)(Mt(Go))},n.\u0275prov=zt({token:n,factory:function(t){let r=null;return r=t?new t:function est(){return new hV(Mt(Go))}(),r},providedIn:"root"}),n})();typeof window<"u"&&window;let aC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:function(t){let r=null;return r=t?new(t||n):Mt(gV),r},providedIn:"root"}),n})(),gV=(()=>{class n extends aC{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case Ii.NONE:return r;case Ii.HTML:return Tc(r,"HTML")?Ls(r):Px(this._doc,String(r)).toString();case Ii.STYLE:return Tc(r,"Style")?Ls(r):r;case Ii.SCRIPT:if(Tc(r,"Script"))return Ls(r);throw new Error("unsafe value used in a script context");case Ii.URL:return Tc(r,"URL")?Ls(r):gv(String(r));case Ii.RESOURCE_URL:if(Tc(r,"ResourceURL"))return Ls(r);throw new Error(`unsafe value used in a resource URL context (see ${Kp})`);default:throw new Error(`Unexpected SecurityContext ${t} (see ${Kp})`)}}bypassSecurityTrustHtml(t){return function pv(n){return new zA(n)}(t)}bypassSecurityTrustStyle(t){return function WA(n){return new HA(n)}(t)}bypassSecurityTrustScript(t){return function qA(n){return new _x(n)}(t)}bypassSecurityTrustUrl(t){return function ZA(n){return new yx(n)}(t)}bypassSecurityTrustResourceUrl(t){return function YA(n){return new jA(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(Mt(Go))},n.\u0275prov=zt({token:n,factory:function(t){let r=null;return r=t?new t:function lst(n){return new gV(n.get(Go))}(Mt(_o)),r},providedIn:"root"}),n})();function yt(...n){return wi(n,ts(n))}function ep(n,e){return U(e)?qr(n,e,1):qr(n,1)}function wt(n,e){return Xt((t,r)=>{let i=0;t.subscribe(B(r,o=>n.call(e,o,i++)&&r.next(o)))})}class YP{}class ME{}class ma{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),a=t.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(e).forEach(t=>{let r=e[t];const i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof ma?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new ma;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof ma?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=e.value;if(o){let a=this.headers.get(t);if(!a)return;a=a.filter(s=>-1===o.indexOf(s)),0===a.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class cst{encodeKey(e){return mV(e)}encodeValue(e){return mV(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const dst=/%(\d[a-f0-9])/gi,hst={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function mV(n){return encodeURIComponent(n).replace(dst,(e,t)=>hst[t]??e)}function XP(n){return`${n}`}class ec{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new cst,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ust(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[a,s]=-1==o?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=t.get(a)||[];l.push(s),t.set(a,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t],i=Array.isArray(r)?r.map(XP):[XP(r)];this.map.set(t,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new ec({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(XP(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf(XP(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class fst{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function vV(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function _V(n){return typeof Blob<"u"&&n instanceof Blob}function yV(n){return typeof FormData<"u"&&n instanceof FormData}class xd{constructor(e,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function pst(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 ma),this.context||(this.context=new fst),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=t;else{const s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":sh.set(p,e.setHeaders[p]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((h,p)=>h.set(p,e.setParams[p]),c)),new xd(t,r,o,{params:c,headers:l,context:u,reportProgress:s,responseType:i,withCredentials:a})}}var Xo=(()=>((Xo=Xo||{})[Xo.Sent=0]="Sent",Xo[Xo.UploadProgress=1]="UploadProgress",Xo[Xo.ResponseHeader=2]="ResponseHeader",Xo[Xo.DownloadProgress=3]="DownloadProgress",Xo[Xo.Response=4]="Response",Xo[Xo.User=5]="User",Xo))();class wE{constructor(e,t=200,r="OK"){this.headers=e.headers||new ma,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class xE extends wE{constructor(e={}){super(e),this.type=Xo.ResponseHeader}clone(e={}){return new xE({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Tt extends wE{constructor(e={}){super(e),this.type=Xo.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Tt({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class PE extends wE{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function OE(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Ln=(()=>{class n{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof xd)o=t;else{let l,c;l=i.headers instanceof ma?i.headers:new ma(i.headers),i.params&&(c=i.params instanceof ec?i.params:new ec({fromObject:i.params})),o=new xd(t,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=yt(o).pipe(ep(l=>this.handler.handle(l)));if(t instanceof xd||"events"===i.observe)return a;const s=a.pipe(wt(l=>l instanceof Tt));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(k(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(k(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(k(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(k(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new ec).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,OE(i,r))}post(t,r,i={}){return this.request("POST",t,OE(i,r))}put(t,r,i={}){return this.request("PUT",t,OE(i,r))}}return n.\u0275fac=function(t){return new(t||n)(Mt(YP))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();function CV(n,e){return e(n)}function mst(n,e){return(t,r)=>e.intercept(t,{handle:i=>n(i,r)})}const SE=new Pe("HTTP_INTERCEPTORS"),sC=new Pe("HTTP_INTERCEPTOR_FNS");function _st(){let n=null;return(e,t)=>(null===n&&(n=(ke(SE,{optional:!0})??[]).reduceRight(mst,CV)),n(e,t))}let bV=(()=>{class n extends YP{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=Array.from(new Set(this.injector.get(sC)));this.chain=r.reduceRight((i,o)=>function vst(n,e,t){return(r,i)=>t.runInContext(()=>e(r,o=>n(o,i)))}(i,o,this.injector),CV)}return this.chain(t,r=>this.backend.handle(r))}}return n.\u0275fac=function(t){return new(t||n)(Mt(ME),Mt(Jl))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();const Mst=/^\)\]\}',?\n/;let wV=(()=>{class n{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F(r=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((g,v)=>i.setRequestHeader(g,v.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const g=t.detectContentTypeHeader();null!==g&&i.setRequestHeader("Content-Type",g)}if(t.responseType){const g=t.responseType.toLowerCase();i.responseType="json"!==g?g:"text"}const o=t.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const g=i.statusText||"OK",v=new ma(i.getAllResponseHeaders()),_=function wst(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(i)||t.url;return a=new xE({headers:v,status:i.status,statusText:g,url:_}),a},l=()=>{let{headers:g,status:v,statusText:_,url:y}=s(),C=null;204!==v&&(C=typeof i.response>"u"?i.responseText:i.response),0===v&&(v=C?200:0);let x=v>=200&&v<300;if("json"===t.responseType&&"string"==typeof C){const P=C;C=C.replace(Mst,"");try{C=""!==C?JSON.parse(C):null}catch(S){C=P,x&&(x=!1,C={error:S,text:C})}}x?(r.next(new Tt({body:C,headers:g,status:v,statusText:_,url:y||void 0})),r.complete()):r.error(new PE({error:C,headers:g,status:v,statusText:_,url:y||void 0}))},c=g=>{const{url:v}=s(),_=new PE({error:g,status:i.status||0,statusText:i.statusText||"Unknown Error",url:v||void 0});r.error(_)};let u=!1;const h=g=>{u||(r.next(s()),u=!0);let v={type:Xo.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),"text"===t.responseType&&i.responseText&&(v.partialText=i.responseText),r.next(v)},p=g=>{let v={type:Xo.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),t.reportProgress&&(i.addEventListener("progress",h),null!==o&&i.upload&&i.upload.addEventListener("progress",p)),i.send(o),r.next({type:Xo.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),t.reportProgress&&(i.removeEventListener("progress",h),null!==o&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(t){return new(t||n)(Mt(W9))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();const TE=new Pe("XSRF_ENABLED"),xV="XSRF-TOKEN",PV=new Pe("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>xV}),OV="X-XSRF-TOKEN",SV=new Pe("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>OV});class TV{}let xst=(()=>{class n{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=I9(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return n.\u0275fac=function(t){return new(t||n)(Mt(Go),Mt(Ng),Mt(PV))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();function Pst(n,e){const t=n.url.toLowerCase();if(!ke(TE)||"GET"===n.method||"HEAD"===n.method||t.startsWith("http://")||t.startsWith("https://"))return e(n);const r=ke(TV).getToken(),i=ke(SV);return null!=r&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,r)})),e(n)}var $o=(()=>(($o=$o||{})[$o.Interceptors=0]="Interceptors",$o[$o.LegacyInterceptors=1]="LegacyInterceptors",$o[$o.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",$o[$o.NoXsrfProtection=3]="NoXsrfProtection",$o[$o.JsonpSupport=4]="JsonpSupport",$o[$o.RequestsMadeViaParent=5]="RequestsMadeViaParent",$o))();function Zv(n,e){return{\u0275kind:n,\u0275providers:e}}function Ost(...n){const e=[Ln,wV,bV,{provide:YP,useExisting:bV},{provide:ME,useExisting:wV},{provide:sC,useValue:Pst,multi:!0},{provide:TE,useValue:!0},{provide:TV,useClass:xst}];for(const t of n)e.push(...t.\u0275providers);return function uD(n){return{\u0275providers:n}}(e)}const AV=new Pe("LEGACY_INTERCEPTOR_FN");function Tst({cookieName:n,headerName:e}){const t=[];return void 0!==n&&t.push({provide:PV,useValue:n}),void 0!==e&&t.push({provide:SV,useValue:e}),Zv($o.CustomXsrfConfiguration,t)}let Ast=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({providers:[Ost(Zv($o.LegacyInterceptors,[{provide:AV,useFactory:_st},{provide:sC,useExisting:AV,multi:!0}]),Tst({cookieName:xV,headerName:OV}))]}),n})();const AE={now:()=>(AE.delegate||Date).now(),delegate:void 0};class DV extends I{constructor(e=1/0,t=1/0,r=AE){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:a}=this;t||(r.push(e),!i&&r.push(o.now()+a)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_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();t.subscribe(B(r,l=>{i?.unsubscribe();let c=0;const u=o++;On(n(l,u)).subscribe(i=B(r,h=>r.next(e?e(l,h,u,c++):h),()=>{i=null,s()}))},()=>{a=!0,s()}))})}const KP={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if(typeof window>"u")return KP.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return KP.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let DE;function Bst(n,e,t){let r=t;return function Ist(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((i,o)=>!("*"===i||!function kst(n,e){if(!DE){const t=Element.prototype;DE=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&DE.call(n,e)}(n,i)||(r=o,0))),r}class $st{constructor(e,t){this.componentFactory=t.get(Oa).resolveComponentFactory(e)}create(e){return new Ust(this.componentFactory,e)}}class Ust{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new DV(1),this.events=this.eventEmitters.pipe(Ta(r=>Ul(...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(ki),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=KP.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function Rst(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=_o.create({providers:[],parent:this.injector}),r=function Fst(n,e){const t=n.childNodes,r=e.map(()=>[]);let i=-1;e.some((o,a)=>"*"===o&&(i=a,!0));for(let o=0,a=t.length;o{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:r,templateName:i})=>e.instance[r].pipe(k(a=>({name:i,value:a}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=KP.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[e];if(r)return void(r.currentValue=t);const i=this.unchangedInputs.has(e),o=i?void 0:this.getInputValue(e);this.inputChanges[e]=new cw(o,t,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class zst extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function IE(n,e){const t=function Lst(n,e){return e.get(Oa).resolveComponentFactory(n).inputs}(n,e.injector),r=e.strategyFactory||new $st(n,e.injector),i=function Nst(n){const e={};return n.forEach(({propName:t,templateName:r})=>{e[function Dst(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(r)]=t}),e}(t);class o extends zst{get ngElementStrategy(){if(!this._ngElementStrategy){const s=this._ngElementStrategy=r.create(this.injector||e.injector);t.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),t.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 to extends I{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:r}=this;if(e)throw t;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}const lC=Ot(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:Hst}=Array,{getPrototypeOf:jst,prototype:Gst,keys:Wst}=Object;function IV(n){if(1===n.length){const e=n[0];if(Hst(e))return{args:e,keys:null};if(function qst(n){return n&&"object"==typeof n&&jst(n)===Gst}(e)){const t=Wst(e);return{args:t.map(r=>e[r]),keys:t}}}return{args:n,keys:null}}const{isArray:Zst}=Array;function EE(n){return k(e=>function Yst(n,e){return Zst(e)?n(...e):n(e)}(n,e))}function EV(n,e){return n.reduce((t,r,i)=>(t[r]=e[i],t),{})}function kV(...n){const e=ts(n),t=Qa(n),{args:r,keys:i}=IV(n);if(0===r.length)return wi([],e);const o=new F(function Xst(n,e,t=O){return r=>{RV(e,()=>{const{length:i}=n,o=new Array(i);let a=i,s=i;for(let l=0;l{const c=wi(n[l],e);let u=!1;c.subscribe(B(r,h=>{o[l]=h,u||(u=!0,s--),s||r.next(t(o.slice()))},()=>{--a||r.complete()}))},r)},r)}}(r,e,i?a=>EV(i,a):O));return t?o.pipe(EE(t)):o}function RV(n,e,t){n?mr(t,n,e):e()}function JP(...n){return function Kst(){return Ar(1)}()(wi(n,ts(n)))}function QP(n){return new F(e=>{On(n()).subscribe(e)})}function Yv(n,e){const t=U(n)?n:()=>n,r=i=>i.error(t());return new F(e?i=>e.schedule(r,0,i):r)}function kE(){return Xt((n,e)=>{let t=null;n._refCount++;const r=B(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(t=null);const i=n._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});n.subscribe(r),r.closed||(t=n.connect())})}class NV extends F{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,pe(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Kt;const t=this.getSubject();e.add(this.source.subscribe(B(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Kt.EMPTY)}return e}refCount(){return kE()(this)}}function Vg(n){return n<=0?()=>or:Xt((e,t)=>{let r=0;e.subscribe(B(t,i=>{++r<=n&&(t.next(i),n<=r&&t.complete())}))})}function cC(n){return Xt((e,t)=>{let r=!1;e.subscribe(B(t,i=>{r=!0,t.next(i)},()=>{r||t.next(n),t.complete()}))})}function LV(n=Qst){return Xt((e,t)=>{let r=!1;e.subscribe(B(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(n())))})}function Qst(){return new lC}function kh(n,e){const t=arguments.length>=2;return r=>r.pipe(n?wt((i,o)=>n(i,o,r)):O,Vg(1),t?cC(e):LV(()=>new lC))}function Do(n,e,t){const r=U(n)||e||t?{next:n,error:e,complete:t}:n;return r?Xt((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)}))}):O}function Rh(n){return Xt((e,t)=>{let o,r=null,i=!1;r=e.subscribe(B(t,void 0,void 0,a=>{o=On(n(a,Rh(n)(e))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function FV(n,e){return Xt(function tlt(n,e,t,r,i){return(o,a)=>{let s=t,l=e,c=0;o.subscribe(B(a,u=>{const h=c++;l=s?n(l,u,h):(s=!0,u),r&&a.next(l)},i&&(()=>{s&&a.next(l),a.complete()})))}}(n,e,arguments.length>=2,!0))}function RE(n){return n<=0?()=>or:Xt((e,t)=>{let r=[];e.subscribe(B(t,i=>{r.push(i),n{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function BV(n,e){const t=arguments.length>=2;return r=>r.pipe(n?wt((i,o)=>n(i,o,r)):O,RE(1),t?cC(e):LV(()=>new lC))}function VV(n){return k(()=>n)}function np(n){return Xt((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}const jn="primary",uC=Symbol("RouteTitle");class nlt{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Xv(n){return new nlt(n)}function rlt(n,e,t){const r=t.path.split("/");if(r.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||r.lengthr[o]===i)}return n===e}function UV(n){return Array.prototype.concat.apply([],n)}function zV(n){return n.length>0?n[n.length-1]:null}function $a(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function rp(n){return lI(n)?n:zy(n)?wi(Promise.resolve(n)):yt(n)}const tO=!1,olt={exact:function GV(n,e,t){if(!Ug(n.segments,e.segments)||!eO(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!n.children[r]||!GV(n.children[r],e.children[r],t))return!1;return!0},subset:WV},HV={exact:function alt(n,e){return Pd(n,e)},subset:function slt(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>$V(n[t],e[t]))},ignored:()=>!0};function jV(n,e,t){return olt[t.paths](n.root,e.root,t.matrixParams)&&HV[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function WV(n,e,t){return qV(n,e,e.segments,t)}function qV(n,e,t,r){if(n.segments.length>t.length){const i=n.segments.slice(0,t.length);return!(!Ug(i,t)||e.hasChildren()||!eO(i,t,r))}if(n.segments.length===t.length){if(!Ug(n.segments,t)||!eO(n.segments,t,r))return!1;for(const i in e.children)if(!n.children[i]||!WV(n.children[i],e.children[i],r))return!1;return!0}{const i=t.slice(0,n.segments.length),o=t.slice(n.segments.length);return!!(Ug(n.segments,i)&&eO(n.segments,i,r)&&n.children[jn])&&qV(n.children[jn],e,o,r)}}function eO(n,e,t){return e.every((r,i)=>HV[t](n[i].parameters,r.parameters))}class $g{constructor(e=new dr([],{}),t={},r=null){this.root=e,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xv(this.queryParams)),this._queryParamMap}toString(){return ult.serialize(this)}}class dr{constructor(e,t){this.segments=e,this.children=t,this.parent=null,$a(t,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nO(this)}}class dC{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Xv(this.parameters)),this._parameterMap}toString(){return XV(this)}}function Ug(n,e){return n.length===e.length&&n.every((t,r)=>t.path===e[r].path)}let hC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:function(){return new NE},providedIn:"root"}),n})();class NE{parse(e){const t=new ylt(e);return new $g(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${fC(e.root,!0)}`,r=function flt(n){const e=Object.keys(n).map(t=>{const r=n[t];return Array.isArray(r)?r.map(i=>`${rO(t)}=${rO(i)}`).join("&"):`${rO(t)}=${rO(r)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${t}${r}${"string"==typeof e.fragment?`#${function dlt(n){return encodeURI(n)}(e.fragment)}`:""}`}}const ult=new NE;function nO(n){return n.segments.map(e=>XV(e)).join("/")}function fC(n,e){if(!n.hasChildren())return nO(n);if(e){const t=n.children[jn]?fC(n.children[jn],!1):"",r=[];return $a(n.children,(i,o)=>{o!==jn&&r.push(`${o}:${fC(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function clt(n,e){let t=[];return $a(n.children,(r,i)=>{i===jn&&(t=t.concat(e(r,i)))}),$a(n.children,(r,i)=>{i!==jn&&(t=t.concat(e(r,i)))}),t}(n,(r,i)=>i===jn?[fC(n.children[jn],!1)]:[`${i}:${fC(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[jn]?`${nO(n)}/${t[0]}`:`${nO(n)}/(${t.join("//")})`}}function ZV(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rO(n){return ZV(n).replace(/%3B/gi,";")}function LE(n){return ZV(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function iO(n){return decodeURIComponent(n)}function YV(n){return iO(n.replace(/\+/g,"%20"))}function XV(n){return`${LE(n.path)}${function hlt(n){return Object.keys(n).map(e=>`;${LE(e)}=${LE(n[e])}`).join("")}(n.parameters)}`}const plt=/^[^\/()?;=#]+/;function oO(n){const e=n.match(plt);return e?e[0]:""}const glt=/^[^=?&#]+/,vlt=/^[^&#]+/;class ylt{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dr([],{}):new dr([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[jn]=new dr(e,t)),r}parseSegment(){const e=oO(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new ee(4009,tO);return this.capture(e),new dC(iO(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=oO(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=oO(this.remaining);i&&(r=i,this.capture(r))}e[iO(t)]=iO(r)}parseQueryParam(e){const t=function mlt(n){const e=n.match(glt);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const a=function _lt(n){const e=n.match(vlt);return e?e[0]:""}(this.remaining);a&&(r=a,this.capture(r))}const i=YV(t),o=YV(r);if(e.hasOwnProperty(i)){let a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=oO(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new ee(4010,tO);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=jn);const a=this.parseChildren();t[o]=1===Object.keys(a).length?a[jn]:new dr([],a),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new ee(4011,tO)}}function FE(n){return n.segments.length>0?new dr([],{[jn]:n}):n}function aO(n){const e={};for(const r of Object.keys(n.children)){const o=aO(n.children[r]);(o.segments.length>0||o.hasChildren())&&(e[r]=o)}return function Clt(n){if(1===n.numberOfChildren&&n.children[jn]){const e=n.children[jn];return new dr(n.segments.concat(e.segments),e.children)}return n}(new dr(n.segments,e))}function zg(n){return n instanceof $g}const BE=!1;function wlt(n,e,t,r,i){if(0===t.length)return Kv(e.root,e.root,e.root,r,i);const o=function QV(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new JV(!0,0,n);let e=0,t=!1;const r=n.reduce((i,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return $a(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?t=!0:".."===s?e++:""!=s&&i.push(s))}),i):[...i,o]},[]);return new JV(t,e,r)}(t);return o.toRoot()?Kv(e.root,e.root,new dr([],{}),r,i):function a(l){const c=function Plt(n,e,t,r){if(n.isAbsolute)return new Jv(e.root,!0,0);if(-1===r)return new Jv(t,t===e.root,0);return function t$(n,e,t){let r=n,i=e,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new ee(4005,BE&&"Invalid number of '../'");i=r.segments.length}return new Jv(r,!1,i-o)}(t,r+(pC(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,e,n.snapshot?._urlSegment,l),u=c.processChildren?Qv(c.segmentGroup,c.index,o.commands):VE(c.segmentGroup,c.index,o.commands);return Kv(e.root,c.segmentGroup,u,r,i)}(n.snapshot?._lastPathIndex)}function pC(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function gC(n){return"object"==typeof n&&null!=n&&n.outlets}function Kv(n,e,t,r,i){let a,o={};r&&$a(r,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),a=n===e?t:KV(n,e,t);const s=FE(aO(a));return new $g(s,o,i)}function KV(n,e,t){const r={};return $a(n.children,(i,o)=>{r[o]=i===e?t:KV(i,e,t)}),new dr(n.segments,r)}class JV{constructor(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&pC(r[0]))throw new ee(4003,BE&&"Root segment cannot have matrix parameters");const i=r.find(gC);if(i&&i!==zV(r))throw new ee(4004,BE&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Jv{constructor(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}}function VE(n,e,t){if(n||(n=new dr([],{})),0===n.segments.length&&n.hasChildren())return Qv(n,e,t);const r=function Slt(n,e,t){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return o;const a=n.segments[i],s=t[r];if(gC(s))break;const l=`${s}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!n$(l,c,a))return o;r+=2}else{if(!n$(l,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(n,e,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(i[a]=VE(n.children[a],e,o))}),$a(n.children,(o,a)=>{void 0===r[a]&&(i[a]=o)}),new dr(n.segments,i))}}function $E(n,e,t){const r=n.segments.slice(0,e);let i=0;for(;i{"string"==typeof t&&(t=[t]),null!==t&&(e[r]=$E(new dr([],{}),0,t))}),e}function e$(n){const e={};return $a(n,(t,r)=>e[r]=`${t}`),e}function n$(n,e,t){return n==t.path&&Pd(e,t.parameters)}const mC="imperative";class Od{constructor(e,t){this.id=e,this.url=t}}class UE extends Od{constructor(e,t,r="imperative",i=null){super(e,t),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Hg extends Od{constructor(e,t,r){super(e,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class sO extends Od{constructor(e,t,r,i){super(e,t),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class r$ extends Od{constructor(e,t,r,i){super(e,t),this.reason=r,this.code=i,this.type=16}}class i$ extends Od{constructor(e,t,r,i){super(e,t),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Alt extends Od{constructor(e,t,r,i){super(e,t),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 Dlt extends Od{constructor(e,t,r,i){super(e,t),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 Ilt extends Od{constructor(e,t,r,i,o){super(e,t),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 Elt extends Od{constructor(e,t,r,i){super(e,t),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 klt extends Od{constructor(e,t,r,i){super(e,t),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 Rlt{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Nlt{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Llt{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Flt{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Blt{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vlt{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class o${constructor(e,t,r){this.routerEvent=e,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Ult=(()=>{class n{createUrlTree(t,r,i,o,a,s){return wlt(t||r.root,i,o,a,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})(),zlt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:function(e){return Ult.\u0275fac(e)},providedIn:"root"}),n})();class a${constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=zE(e,this._root);return t?t.children.map(r=>r.value):[]}firstChild(e){const t=zE(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=HE(e,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return HE(e,this._root).map(t=>t.value)}}function zE(n,e){if(n===e.value)return e;for(const t of e.children){const r=zE(n,t);if(r)return r}return null}function HE(n,e){if(n===e.value)return[e];for(const t of e.children){const r=HE(n,t);if(r.length)return r.unshift(e),r}return[]}class Nh{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function t0(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class s$ extends a${constructor(e,t){super(e),this.snapshot=t,jE(this,e)}toString(){return this.snapshot.toString()}}function l$(n,e){const t=function Hlt(n,e){const a=new lO([],{},{},"",{},jn,e,null,n.root,-1,{});return new u$("",new Nh(a,[]))}(n,e),r=new to([new dC("",{})]),i=new to({}),o=new to({}),a=new to({}),s=new to(""),l=new jg(r,i,a,s,o,jn,e,t.root);return l.snapshot=t.root,new s$(new Nh(l,[]),t)}class jg{constructor(e,t,r,i,o,a,s,l){this.url=e,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.pipe(k(c=>c[uC]))??yt(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(k(e=>Xv(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(k(e=>Xv(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function c$(n,e="emptyOnly"){const t=n.pathFromRoot;let r=0;if("always"!==e)for(r=t.length-1;r>=1;){const i=t[r],o=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function jlt(n){return n.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class lO{get title(){return this.data?.[uC]}constructor(e,t,r,i,o,a,s,l,c,u,h){this.url=e,this.params=t,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=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Xv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class u$ extends a${constructor(e,t){super(t),this.url=e,jE(this,t)}toString(){return d$(this._root)}}function jE(n,e){e.value._routerState=n,e.children.forEach(t=>jE(n,t))}function d$(n){const e=n.children.length>0?` { ${n.children.map(d$).join(", ")} } `:"";return`${n.value}${e}`}function GE(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Pd(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),Pd(e.params,t.params)||n.params.next(t.params),function ilt(n,e){if(n.length!==e.length)return!1;for(let t=0;tPd(t.parameters,e[r].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||WE(n.parent,e.parent))}function vC(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=e.value;const i=function Wlt(n,e,t){return e.children.map(r=>{for(const i of t.children)if(n.shouldReuseRoute(r.value,i.value.snapshot))return vC(n,r,i);return vC(n,r)})}(n,e,t);return new Nh(r,i)}{if(n.shouldAttach(e.value)){const o=n.retrieve(e.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(s=>vC(n,s)),a}}const r=function qlt(n){return new jg(new to(n.url),new to(n.params),new to(n.queryParams),new to(n.fragment),new to(n.data),n.outlet,n.component,n)}(e.value),i=e.children.map(o=>vC(n,o));return new Nh(r,i)}}const qE="ngNavigationCancelingError";function h$(n,e){const{redirectTo:t,navigationBehaviorOptions:r}=zg(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=f$(!1,0,e);return i.url=t,i.navigationBehaviorOptions=r,i}function f$(n,e,t){const r=new Error("NavigationCancelingError: "+(n||""));return r[qE]=!0,r.cancellationCode=e,t&&(r.url=t),r}function p$(n){return g$(n)&&zg(n.url)}function g$(n){return n&&n[qE]}class Zlt{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new _C,this.attachRef=null}}let _C=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new Zlt,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cO=!1;let m$=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=jn,this.activateEvents=new vr,this.deactivateEvents=new vr,this.attachEvents=new vr,this.detachEvents=new vr,this.parentContexts=ke(_C),this.location=ke(tc),this.changeDetector=ke(Lc),this.environmentInjector=ke(Jl)}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:i}=t.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(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ee(4012,cO);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ee(4012,cO);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ee(4012,cO);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new ee(4013,cO);this._activatedRoute=t;const i=this.location,a=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new Ylt(t,s,i.injector);if(r&&function Xlt(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(t){return new(t||n)},n.\u0275dir=qe({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[go]}),n})();class Ylt{constructor(e,t,r){this.route=e,this.childContexts=t,this.parent=r}get(e,t){return e===jg?this.route:e===_C?this.childContexts:this.parent.get(e,t)}}let ZE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["ng-component"]],standalone:!0,features:[Fo],decls:1,vars:0,template:function(t,r){1&t&&st(0,"router-outlet")},dependencies:[m$],encapsulation:2}),n})();function v$(n,e){return n.providers&&!n._injector&&(n._injector=xP(n.providers,e,`Route: ${n.path}`)),n._injector??e}function XE(n){const e=n.children&&n.children.map(XE),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==jn&&(t.component=ZE),t}function Vc(n){return n.outlet||jn}function _$(n,e){const t=n.filter(r=>Vc(r)===e);return t.push(...n.filter(r=>Vc(r)!==e)),t}function yC(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class ect{constructor(e,t,r,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=r,this.forwardEvent=i}activate(e){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),GE(this.futureState.root),this.activateChildRoutes(t,r,e)}deactivateChildRoutes(e,t,r){const i=t0(t);e.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a]}),$a(i,(o,a)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(e,t,r){const i=e.value,o=t?t.value:null;if(i===o)if(i.component){const a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(e,t,a.children)}else this.deactivateChildRoutes(e,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,o=t0(e);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(e.value.snapshot,{componentRef:a,route:e,contexts:s})}}deactivateRouteAndOutlet(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,o=t0(e);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(e,t,r){const i=t0(t);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Vlt(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Flt(e.value.snapshot))}activateRoutes(e,t,r){const i=e.value,o=t?t.value:null;if(GE(i),i===o)if(i.component){const a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,a.children)}else this.activateChildRoutes(e,t,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),GE(s.route.value),this.activateChildRoutes(e,null,a.children)}else{const s=yC(i.snapshot),l=s?.get(Oa)??null;a.attachRef=null,a.route=i,a.resolver=l,a.injector=s,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,r)}}class y${constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class uO{constructor(e,t){this.component=e,this.route=t}}function nct(n,e,t){const r=n._root;return CC(r,e?e._root:null,t,[r.value])}function e0(n,e){const t=Symbol(),r=e.get(n,t);return r===t?"function"!=typeof n||function ET(n){return null!==Pm(n)}(n)?e.get(n):n:r}function CC(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t0(e);return n.children.forEach(a=>{(function ict(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,a=e?e.value:null,s=t?t.getContext(n.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function oct(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!Ug(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Ug(n.url,e.url)||!Pd(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WE(n,e)||!Pd(n.queryParams,e.queryParams);default:return!WE(n,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new y$(r)):(o.data=a.data,o._resolvedData=a._resolvedData),CC(n,e,o.component?s?s.children:null:t,r,i),l&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new uO(s.outlet.component,a))}else a&&bC(e,s,i),i.canActivateChecks.push(new y$(r)),CC(n,null,o.component?s?s.children:null:t,r,i)})(a,o[a.value.outlet],t,r.concat([a.value]),i),delete o[a.value.outlet]}),$a(o,(a,s)=>bC(a,t.getContext(s),i)),i}function bC(n,e,t){const r=t0(n),i=n.value;$a(r,(o,a)=>{bC(o,i.component?e?e.children.getContext(a):null:e,t)}),t.canDeactivateChecks.push(new uO(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function MC(n){return"function"==typeof n}function KE(n){return n instanceof lC||"EmptyError"===n?.name}const dO=Symbol("INITIAL_VALUE");function n0(){return Ta(n=>kV(n.map(e=>e.pipe(Vg(1),function Jst(...n){const e=ts(n);return Xt((t,r)=>{(e?JP(n,t,e):JP(n,t)).subscribe(r)})}(dO)))).pipe(k(e=>{for(const t of e)if(!0!==t){if(t===dO)return dO;if(!1===t||t instanceof $g)return t}return!0}),wt(e=>e!==dO),Vg(1)))}function C$(n){return function E(...n){return L(n)}(Do(e=>{if(zg(e))throw h$(0,e)}),k(e=>!0===e))}const JE={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function b$(n,e,t,r,i){const o=QE(n,e,t);return o.matched?function Mct(n,e,t,r){const i=e.canMatch;return i&&0!==i.length?yt(i.map(a=>{const s=e0(a,n);return rp(function dct(n){return n&&MC(n.canMatch)}(s)?s.canMatch(e,t):n.runInContext(()=>s(e,t)))})).pipe(n0(),C$()):yt(!0)}(r=v$(e,r),e,t).pipe(k(a=>!0===a?o:{...JE})):yt(o)}function QE(n,e,t){if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...JE}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const i=(e.matcher||rlt)(t,n,e);if(!i)return{...JE};const o={};$a(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:t.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function hO(n,e,t,r){if(t.length>0&&function Pct(n,e,t){return t.some(r=>fO(n,e,r)&&Vc(r)!==jn)}(n,t,r)){const o=new dr(e,function xct(n,e,t,r){const i={};i[jn]=r,r._sourceSegment=n,r._segmentIndexShift=e.length;for(const o of t)if(""===o.path&&Vc(o)!==jn){const a=new dr([],{});a._sourceSegment=n,a._segmentIndexShift=e.length,i[Vc(o)]=a}return i}(n,e,r,new dr(t,n.children)));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function Oct(n,e,t){return t.some(r=>fO(n,e,r))}(n,t,r)){const o=new dr(n.segments,function wct(n,e,t,r,i){const o={};for(const a of r)if(fO(n,t,a)&&!i[Vc(a)]){const s=new dr([],{});s._sourceSegment=n,s._segmentIndexShift=e.length,o[Vc(a)]=s}return{...i,...o}}(n,e,t,r,n.children));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}const i=new dr(n.segments,n.children);return i._sourceSegment=n,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:t}}function fO(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function M$(n,e,t,r){return!!(Vc(n)===r||r!==jn&&fO(e,t,n))&&("**"===n.path||QE(e,n,t).matched)}function w$(n,e,t){return 0===e.length&&!n.children[t]}const pO=!1;class gO{constructor(e){this.segmentGroup=e||null}}class x${constructor(e){this.urlTree=e}}function wC(n){return Yv(new gO(n))}function P$(n){return Yv(new x$(n))}class Dct{constructor(e,t,r,i,o){this.injector=e,this.configLoader=t,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const e=hO(this.urlTree.root,[],[],this.config).segmentGroup,t=new dr(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,jn).pipe(k(o=>this.createUrlTree(aO(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Rh(o=>{if(o instanceof x$)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof gO?this.noMatchError(o):o}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,jn).pipe(k(i=>this.createUrlTree(aO(i),e.queryParams,e.fragment))).pipe(Rh(i=>{throw i instanceof gO?this.noMatchError(i):i}))}noMatchError(e){return new ee(4002,pO)}createUrlTree(e,t,r){const i=FE(e);return new $g(i,t,r)}expandSegmentGroup(e,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,t,r).pipe(k(o=>new dr([],o))):this.expandSegment(e,r,t,r.segments,i,!0)}expandChildren(e,t,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return wi(i).pipe(ep(o=>{const a=r.children[o],s=_$(t,o);return this.expandSegmentGroup(e,s,a,o).pipe(k(l=>({segment:l,outlet:o})))}),FV((o,a)=>(o[a.outlet]=a.segment,o),{}),BV())}expandSegment(e,t,r,i,o,a){return wi(r).pipe(ep(s=>this.expandSegmentAgainstRoute(e,t,r,s,i,o,a).pipe(Rh(c=>{if(c instanceof gO)return yt(null);throw c}))),kh(s=>!!s),Rh((s,l)=>{if(KE(s))return w$(t,i,o)?yt(new dr([],{})):wC(t);throw s}))}expandSegmentAgainstRoute(e,t,r,i,o,a,s){return M$(i,t,o,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,o,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,r,i,o,a):wC(t):wC(t)}expandSegmentAgainstRouteUsingRedirect(e,t,r,i,o,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,i,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?P$(o):this.lineralizeSegments(r,o).pipe(qr(a=>{const s=new dr(a,{});return this.expandSegment(e,s,t,a,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,i,o,a){const{matched:s,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=QE(t,i,o);if(!s)return wC(t);const h=this.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?P$(h):this.lineralizeSegments(i,h).pipe(qr(p=>this.expandSegment(e,t,r,p.concat(c),a,!1)))}matchSegmentAgainstRoute(e,t,r,i,o){return"**"===r.path?(e=v$(r,e),r.loadChildren?(r._loadedRoutes?yt({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(e,r)).pipe(k(s=>(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,new dr(i,{})))):yt(new dr(i,{}))):b$(t,r,i,e).pipe(Ta(({matched:a,consumedSegments:s,remainingSegments:l})=>a?this.getChildConfig(e=r._injector??e,r,i).pipe(qr(u=>{const h=u.injector??e,p=u.routes,{segmentGroup:g,slicedSegments:v}=hO(t,s,l,p),_=new dr(g.segments,g.children);if(0===v.length&&_.hasChildren())return this.expandChildren(h,p,_).pipe(k(P=>new dr(s,P)));if(0===p.length&&0===v.length)return yt(new dr(s,{}));const y=Vc(r)===o;return this.expandSegment(h,_,p,v,y?jn:o,!0).pipe(k(x=>new dr(s.concat(x.segments),x.children)))})):wC(t)))}getChildConfig(e,t,r){return t.children?yt({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?yt({routes:t._loadedRoutes,injector:t._loadedInjector}):function bct(n,e,t,r){const i=e.canLoad;return void 0===i||0===i.length?yt(!0):yt(i.map(a=>{const s=e0(a,n);return rp(function sct(n){return n&&MC(n.canLoad)}(s)?s.canLoad(e,t):n.runInContext(()=>s(e,t)))})).pipe(n0(),C$())}(e,t,r).pipe(qr(i=>i?this.configLoader.loadChildren(e,t).pipe(Do(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function Tct(n){return Yv(f$(pO,3))}())):yt({routes:[],injector:e})}lineralizeSegments(e,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return yt(r);if(i.numberOfChildren>1||!i.children[jn])return e.redirectTo,Yv(new ee(4e3,pO));i=i.children[jn]}}applyRedirectCommands(e,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,r)}applyRedirectCreateUrlTree(e,t,r,i){const o=this.createSegmentGroup(e,t.root,r,i);return new $g(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const r={};return $a(e,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const s=i.substring(1);r[o]=t[s]}else r[o]=i}),r}createSegmentGroup(e,t,r,i){const o=this.createSegments(e,t.segments,r,i);let a={};return $a(t.children,(s,l)=>{a[l]=this.createSegmentGroup(e,s,r,i)}),new dr(o,a)}createSegments(e,t,r,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,r))}findPosParam(e,t,r){const i=r[t.path.substring(1)];if(!i)throw new ee(4001,pO);return i}findOrReturn(e,t){let r=0;for(const i of t){if(i.path===e.path)return t.splice(r),i;r++}return e}}class Ect{}class Nct{constructor(e,t,r,i,o,a,s){this.injector=e,this.rootComponentType=t,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s}recognize(){const e=hO(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,jn).pipe(k(t=>{if(null===t)return null;const r=new lO([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},jn,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Nh(r,t),o=new u$(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(e){const t=e.value,r=c$(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(e,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(e,t,r):this.processSegment(e,t,r,r.segments,i)}processChildren(e,t,r){return wi(Object.keys(r.children)).pipe(ep(i=>{const o=r.children[i],a=_$(t,i);return this.processSegmentGroup(e,a,o,i)}),FV((i,o)=>i&&o?(i.push(...o),i):null),function elt(n,e=!1){return Xt((t,r)=>{let i=0;t.subscribe(B(r,o=>{const a=n(o,i++);(a||e)&&r.next(o),!a&&r.complete()}))})}(i=>null!==i),cC(null),BV(),k(i=>{if(null===i)return null;const o=S$(i);return function Lct(n){n.sort((e,t)=>e.value.outlet===jn?-1:t.value.outlet===jn?1:e.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(e,t,r,i,o){return wi(t).pipe(ep(a=>this.processSegmentAgainstRoute(a._injector??e,a,r,i,o)),kh(a=>!!a),Rh(a=>{if(KE(a))return w$(r,i,o)?yt([]):yt(null);throw a}))}processSegmentAgainstRoute(e,t,r,i,o){if(t.redirectTo||!M$(t,r,i,o))return yt(null);let a;if("**"===t.path){const s=i.length>0?zV(i).parameters:{},l=A$(r)+i.length;a=yt({snapshot:new lO(i,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,D$(t),Vc(t),t.component??t._loadedComponent??null,t,T$(r),l,I$(t)),consumedSegments:[],remainingSegments:[]})}else a=b$(r,t,i,e).pipe(k(({matched:s,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!s)return null;const h=A$(r)+l.length;return{snapshot:new lO(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,D$(t),Vc(t),t.component??t._loadedComponent??null,t,T$(r),h,I$(t)),consumedSegments:l,remainingSegments:c}}));return a.pipe(Ta(s=>{if(null===s)return yt(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=s;e=t._injector??e;const h=t._loadedInjector??e,p=function Fct(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:g,slicedSegments:v}=hO(r,c,u,p.filter(y=>void 0===y.redirectTo));if(0===v.length&&g.hasChildren())return this.processChildren(h,p,g).pipe(k(y=>null===y?null:[new Nh(l,y)]));if(0===p.length&&0===v.length)return yt([new Nh(l,[])]);const _=Vc(t)===o;return this.processSegment(h,p,g,v,_?jn:o).pipe(k(y=>null===y?null:[new Nh(l,y)]))}))}}function Bct(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function S$(n){const e=[],t=new Set;for(const r of n){if(!Bct(r)){e.push(r);continue}const i=e.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):e.push(r)}for(const r of t){const i=S$(r.children);e.push(new Nh(r.value,i))}return e.filter(r=>!t.has(r))}function T$(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function A$(n){let e=n,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function D$(n){return n.data||{}}function I$(n){return n.resolve||{}}function E$(n){return"string"==typeof n.title||null===n.title}function t5(n){return Ta(e=>{const t=n(e);return t?wi(t).pipe(k(()=>e)):yt(e)})}const r0=new Pe("ROUTES");let e5=(()=>{class n{constructor(t,r){this.injector=t,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return yt(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=rp(t.loadComponent()).pipe(k(R$),Do(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),np(()=>{this.componentLoaders.delete(t)})),i=new NV(r,()=>new I).pipe(kE());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return yt({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(k(s=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,c,u=!1;Array.isArray(s)?c=s:(l=s.create(t).injector,c=UV(l.get(r0,[],He.Self|He.Optional)));return{routes:c.map(XE),injector:l}}),np(()=>{this.childrenLoaders.delete(r)})),a=new NV(o,()=>new I).pipe(kE());return this.childrenLoaders.set(r,a),a}loadModuleFactoryOrRoutes(t){return rp(t()).pipe(k(R$),qr(i=>i instanceof XB||Array.isArray(i)?yt(i):wi(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(t){return new(t||n)(Mt(_o),Mt(H7))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function R$(n){return function qct(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let vO=(()=>{class n{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new I,this.configLoader=ke(e5),this.environmentInjector=ke(Jl),this.urlSerializer=ke(hC),this.rootContexts=ke(_C),this.navigationId=0,this.afterPreactivation=()=>yt(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new Nlt(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new Rlt(i))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t){return this.transitions=new to({id:0,targetPageId:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:mC,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(wt(r=>0!==r.id),k(r=>({...r,extractedUrl:t.urlHandlingStrategy.extract(r.rawUrl)})),Ta(r=>{let i=!1,o=!1;return yt(r).pipe(Do(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}}),Ta(a=>{const s=t.browserUrlTree.toString(),l=!t.navigated||a.extractedUrl.toString()!==s||s!==t.currentUrlTree.toString();if(!l&&"reload"!==(a.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new r$(a.id,t.serializeUrl(r.rawUrl),u,0)),t.rawUrlTree=a.rawUrl,a.resolve(null),or}if(t.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return N$(a.source)&&(t.browserUrlTree=a.extractedUrl),yt(a).pipe(Ta(u=>{const h=this.transitions?.getValue();return this.events.next(new UE(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?or:Promise.resolve(u)}),function Ict(n,e,t,r){return Ta(i=>function Act(n,e,t,r,i){return new Dct(n,e,t,r,i).apply()}(n,e,t,i.extractedUrl,r).pipe(k(o=>({...i,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,t.config),Do(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},r.urlAfterRedirects=u.urlAfterRedirects}),function $ct(n,e,t,r,i){return qr(o=>function Rct(n,e,t,r,i,o,a="emptyOnly"){return new Nct(n,e,t,r,i,a,o).recognize().pipe(Ta(s=>null===s?function kct(n){return new F(e=>e.error(n))}(new Ect):yt(s)))}(n,e,t,o.urlAfterRedirects,r.serialize(o.urlAfterRedirects),r,i).pipe(k(a=>({...o,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Do(u=>{if(r.targetSnapshot=u.targetSnapshot,"eager"===t.urlUpdateStrategy){if(!u.extras.skipLocationChange){const p=t.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);t.setBrowserUrl(p,u)}t.browserUrlTree=u.urlAfterRedirects}const h=new Alt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:u,extractedUrl:h,source:p,restoredState:g,extras:v}=a,_=new UE(u,this.urlSerializer.serialize(h),p,g);this.events.next(_);const y=l$(h,this.rootComponentType).snapshot;return yt(r={...a,targetSnapshot:y,urlAfterRedirects:h,extras:{...v,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new r$(a.id,t.serializeUrl(r.extractedUrl),u,1)),t.rawUrlTree=a.rawUrl,a.resolve(null),or}}),Do(a=>{const s=new Dlt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),k(a=>r={...a,guards:nct(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function fct(n,e){return qr(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:a}}=t;return 0===a.length&&0===o.length?yt({...t,guardsResult:!0}):function pct(n,e,t,r){return wi(n).pipe(qr(i=>function Cct(n,e,t,r,i){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?yt(o.map(s=>{const l=yC(e)??i,c=e0(s,l);return rp(function uct(n){return n&&MC(n.canDeactivate)}(c)?c.canDeactivate(n,e,t,r):l.runInContext(()=>c(n,e,t,r))).pipe(kh())})).pipe(n0()):yt(!0)}(i.component,i.route,t,e,r)),kh(i=>!0!==i,!0))}(a,r,i,n).pipe(qr(s=>s&&function act(n){return"boolean"==typeof n}(s)?function gct(n,e,t,r){return wi(e).pipe(ep(i=>JP(function vct(n,e){return null!==n&&e&&e(new Llt(n)),yt(!0)}(i.route.parent,r),function mct(n,e){return null!==n&&e&&e(new Blt(n)),yt(!0)}(i.route,r),function yct(n,e,t){const r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(a=>function rct(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(a)).filter(a=>null!==a).map(a=>QP(()=>yt(a.guards.map(l=>{const c=yC(a.node)??t,u=e0(l,c);return rp(function cct(n){return n&&MC(n.canActivateChild)}(u)?u.canActivateChild(r,n):c.runInContext(()=>u(r,n))).pipe(kh())})).pipe(n0())));return yt(o).pipe(n0())}(n,i.path,t),function _ct(n,e,t){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return yt(!0);const i=r.map(o=>QP(()=>{const a=yC(e)??t,s=e0(o,a);return rp(function lct(n){return n&&MC(n.canActivate)}(s)?s.canActivate(e,n):a.runInContext(()=>s(e,n))).pipe(kh())}));return yt(i).pipe(n0())}(n,i.route,t))),kh(i=>!0!==i,!0))}(r,o,n,e):yt(s)),k(s=>({...t,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),Do(a=>{if(r.guardsResult=a.guardsResult,zg(a.guardsResult))throw h$(0,a.guardsResult);const s=new Ilt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),wt(a=>!!a.guardsResult||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),t5(a=>{if(a.guards.canActivateChecks.length)return yt(a).pipe(Do(s=>{const l=new Elt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l)}),Ta(s=>{let l=!1;return yt(s).pipe(function Uct(n,e){return qr(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return yt(t);let o=0;return wi(i).pipe(ep(a=>function zct(n,e,t,r){const i=n.routeConfig,o=n._resolve;return void 0!==i?.title&&!E$(i)&&(o[uC]=i.title),function Hct(n,e,t,r){const i=function jct(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===i.length)return yt({});const o={};return wi(i).pipe(qr(a=>function Gct(n,e,t,r){const i=yC(e)??r,o=e0(n,i);return rp(o.resolve?o.resolve(e,t):i.runInContext(()=>o(e,t)))}(n[a],e,t,r).pipe(kh(),Do(s=>{o[a]=s}))),RE(1),VV(o),Rh(a=>KE(a)?or:Yv(a)))}(o,n,e,r).pipe(k(a=>(n._resolvedData=a,n.data=c$(n,t).resolve,i&&E$(i)&&(n.data[uC]=i.title),null)))}(a.route,r,n,e)),Do(()=>o++),RE(1),qr(a=>o===i.length?yt(t):or))})}(t.paramsInheritanceStrategy,this.environmentInjector),Do({next:()=>l=!0,complete:()=>{l||(t.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),Do(s=>{const l=new klt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l)}))}),t5(a=>{const s=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(Do(u=>{l.component=u}),k(()=>{})));for(const u of l.children)c.push(...s(u));return c};return kV(s(a.targetSnapshot.root)).pipe(cC(),Vg(1))}),t5(()=>this.afterPreactivation()),k(a=>{const s=function Glt(n,e,t){const r=vC(n,e._root,t?t._root:void 0);return new s$(r,e)}(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:s}}),Do(a=>{t.currentUrlTree=a.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),t.routerState=a.targetRouterState,"deferred"===t.urlUpdateStrategy&&(a.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,a),t.browserUrlTree=a.urlAfterRedirects)}),((n,e,t)=>k(r=>(new ect(e,r.targetRouterState,r.currentRouterState,t).activate(n),r)))(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a)),Do({next:a=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new Hg(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{i=!0}}),np(()=>{i||o||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Rh(a=>{if(o=!0,g$(a)){p$(a)||(t.navigated=!0,t.restoreHistory(r,!0));const s=new sO(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),p$(a)){const l=t.urlHandlingStrategy.merge(a.url,t.rawUrlTree),c={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||N$(r.source)};t.scheduleNavigation(l,mC,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{t.restoreHistory(r,!0);const s=new i$(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);this.events.next(s);try{r.resolve(t.errorHandler(a))}catch(l){r.reject(l)}}return or}))}))}cancelNavigationTransition(t,r,i){const o=new sO(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function N$(n){return n!==mC}let L$=(()=>{class n{buildTitle(t){let r,i=t.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===jn);return r}getResolvedTitleForRoute(t){return t.data[uC]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:function(){return ke(Zct)},providedIn:"root"}),n})(),Zct=(()=>{class n extends L${constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return n.\u0275fac=function(t){return new(t||n)(Mt(hV))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),n5=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:function(){return ke(Xct)},providedIn:"root"}),n})();class Yct{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}let Xct=(()=>{class n extends Yct{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=mo(n)))(r||n)}}(),n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _O=new Pe("",{providedIn:"root",factory:()=>({})});let Jct=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:function(){return ke(Qct)},providedIn:"root"}),n})(),Qct=(()=>{class n{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tut(n){throw n}function eut(n,e,t){return e.parse("/")}const nut={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rut={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let gl=(()=>{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=ke(oit),this.isNgZoneEnabled=!1,this.options=ke(_O,{optional:!0})||{},this.errorHandler=this.options.errorHandler||tut,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||eut,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ke(Jct),this.routeReuseStrategy=ke(n5),this.urlCreationStrategy=ke(zlt),this.titleStrategy=ke(L$),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=UV(ke(r0,{optional:!0})??[]),this.navigationTransitions=ke(vO),this.urlSerializer=ke(hC),this.location=ke(XI),this.isNgZoneEnabled=ke(ki)instanceof ki&&ki.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new $g,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=l$(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),mC,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,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(t);this.scheduleNavigation(s,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(t){this.config=t.map(XE),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(t,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,t,u,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=zg(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,mC,null,r)}navigate(t,r={skipLocationChange:!1}){return function iut(n){for(let e=0;e{const o=t[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(t,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((h,p)=>{s=h,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:t,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t),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(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===i?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),o0=(()=>{class n{constructor(t,r,i,o,a,s){this.router=t,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 I;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof Hg&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(t){this._preserveFragment=qv(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=qv(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=qv(t)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,i,o,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||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 t=null===this.href?null:function dl(n,e,t){return function cD(n,e){return"src"===e&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===e&&("base"===n||"link"===n)?Ox:Pa}(e,t)(n)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,t,r):i.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(t){return new(t||n)(ft(gl),ft(jg),function Yl(n){return function z2(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const r=t.length;let i=0;for(;i{class n{get isActive(){return this._isActive}constructor(t,r,i,o,a){this.router=t,this.element=r,this.renderer=i,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new vr,this.routerEventsSubscription=t.events.subscribe(s=>{s instanceof Hg&&this.update()})}ngAfterContentInit(){yt(this.links.changes,yt(null)).pipe(Ar()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=wi(t).pipe(Ar()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){const r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const r=function out(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>!!i.urlTree&&t.isActive(i.urlTree,r)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}}return n.\u0275fac=function(t){return new(t||n)(ft(gl),ft(Pr),ft(Yn),ft(Lc),ft(o0,8))},n.\u0275dir=qe({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(t,r,i){if(1&t&&function v7(n,e,t,r){const i=kn();if(i.firstCreatePass){const o=la();y7(i,new g7(e,t,r),o.index),function Brt(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(i,n),2==(2&t)&&(i.staticContentQueries=!0)}_7(i,Zt(),t)}(i,o0,5),2&t){let o;Us(o=zs())&&(r.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[go]}),n})();class B${}let aut=(()=>{class n{constructor(t,r,i,o,a){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(wt(t=>t instanceof Hg),ep(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=xP(o.providers,t,`Route: ${o.path}`));const a=o._injector??t,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 wi(i).pipe(Ar())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):yt(null);const o=i.pipe(qr(a=>null===a?yt(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));return r.loadComponent&&!r._loadedComponent?wi([o,this.loader.loadComponent(r)]).pipe(Ar()):o})}}return n.\u0275fac=function(t){return new(t||n)(Mt(gl),Mt(H7),Mt(Jl),Mt(B$),Mt(e5))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const r5=new Pe("");let V$=(()=>{class n{constructor(t,r,i,o,a={}){this.urlSerializer=t,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(t=>{t instanceof UE?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Hg&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof o$&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new o$(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return n.\u0275fac=function(t){!function iP(){throw new Error("invalid")}()},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();const a0=!1;function Gg(n,e){return{\u0275kind:n,\u0275providers:e}}const i5=new Pe("",{providedIn:"root",factory:()=>!1});function U$(){const n=ke(_o);return e=>{const t=n.get(Lg);if(e!==t.components[0])return;const r=n.get(gl),i=n.get(z$);1===n.get(o5)&&r.initialNavigation(),n.get(H$,null,He.Optional)?.setUpPreloading(),n.get(r5,null,He.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.unsubscribe())}}const z$=new Pe(a0?"bootstrap done indicator":"",{factory:()=>new I}),o5=new Pe(a0?"initial navigation":"",{providedIn:"root",factory:()=>1});function uut(){let n=[];return n=a0?[{provide:Mn,multi:!0,useFactory:()=>{const e=ke(gl);return()=>e.events.subscribe(t=>{console.group?.(`Router Event: ${t.constructor.name}`),console.log(function $lt(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}')`}}(t)),console.log(t),console.groupEnd?.()})}}]:[],Gg(1,n)}const H$=new Pe(a0?"router preloader":"");function dut(n){return Gg(0,[{provide:H$,useExisting:aut},{provide:B$,useExisting:n}])}const xC=!1,j$=new Pe(xC?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),hut=[XI,{provide:hC,useClass:NE},gl,_C,{provide:jg,useFactory:function $$(n){return n.routerState.root},deps:[gl]},e5,xC?{provide:i5,useValue:!0}:[]];function fut(){return new X7("Router",gl)}let CO=(()=>{class n{constructor(t){}static forRoot(t,r){return{ngModule:n,providers:[hut,xC&&r?.enableTracing?uut().\u0275providers:[],{provide:r0,multi:!0,useValue:t},{provide:j$,useFactory:vut,deps:[[gl,new hd,new Vf]]},{provide:_O,useValue:r||{}},r?.useHash?{provide:Bg,useClass:Wit}:{provide:Bg,useClass:C9},{provide:r5,useFactory:()=>{const n=ke(nat),e=ke(ki),t=ke(_O),r=ke(vO),i=ke(hC);return t.scrollOffset&&n.setOffset(t.scrollOffset),new V$(i,r,n,e,t)}},r?.preloadingStrategy?dut(r.preloadingStrategy).\u0275providers:[],{provide:X7,multi:!0,useFactory:fut},r?.initialNavigation?_ut(r):[],[{provide:G$,useFactory:U$},{provide:z7,multi:!0,useExisting:G$}]]}}static forChild(t){return{ngModule:n,providers:[{provide:r0,multi:!0,useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)(Mt(j$,8))},n.\u0275mod=di({type:n}),n.\u0275inj=qi({imports:[ZE]}),n})();function vut(n){if(xC&&n)throw new ee(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 _ut(n){return["disabled"===n.initialNavigation?Gg(3,[{provide:TP,multi:!0,useFactory:()=>{const e=ke(gl);return()=>{e.setUpLocationChangeListener()}}},{provide:o5,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?Gg(2,[{provide:o5,useValue:0},{provide:TP,multi:!0,deps:[_o],useFactory:e=>{const t=e.get(jit,Promise.resolve());return()=>t.then(()=>new Promise(i=>{const o=e.get(gl),a=e.get(z$);(function r(i){e.get(gl).events.pipe(wt(a=>a instanceof Hg||a instanceof sO||a instanceof i$),k(a=>a instanceof Hg||a instanceof sO&&(0===a.code||1===a.code)&&null),wt(a=>null!==a),Vg(1)).subscribe(()=>{i()})})(()=>{i(!0)}),e.get(vO).afterPreactivation=()=>(i(!0),a.closed?yt(void 0):a),o.initialNavigation()}))}}]).\u0275providers:[]]}const G$=new Pe(xC?"Router Initializer":""),At={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",cloudVMAPIBaseUrl:"https://api.compute.pricing.storecloud.org",transactionHistoryAPI:"https://api.transaction.storecloud.org",storePriceUSD:.039,one$STOREEqualToOneByte:125e5,one$STOREEqualsToOneBit:1e8,platformFee:.025,maxViewsForNFT:1e4,bandwidthViewCheckEnabled:!0,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",etherscanURL:"https://goerli.etherscan.io/",storeWalletAddress:"0x54Df911a1e08988fD05408ee22E19178B7590C70"},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"},publisher:{baseSize:{store:{meta:7611,table:4114},ethereum:{meta:7942,table:4010}}}};function ml(n){return Xt((e,t)=>{On(n).subscribe(B(t,()=>t.complete(),Ke)),!t.closed&&e.subscribe(t)})}const but=Mf,wut=Symbol("__destroy"),W$=Symbol("__decoratorApplied");function q$(n){return"string"==typeof n?Symbol(`__destroy__${n}`):wut}function Z$(n,e){n[e]||(n[e]=new I)}function Y$(n,e){n[e]&&(n[e].next(),n[e].complete(),n[e]=null)}function X$(n){n instanceof Kt&&n.unsubscribe()}function K$(n,e){return function(){if(n&&n.call(this),Y$(this,q$()),e.arrayName&&function Put(n){Array.isArray(n)&&n.forEach(X$)}(this[e.arrayName]),e.checkProperties)for(const t in this)e.blackList?.includes(t)||X$(this[t])}}function Ze(n={}){return e=>{!function Mut(n){return!!n[but]}(e)?function Out(n,e){n.prototype.ngOnDestroy=K$(n.prototype.ngOnDestroy,e)}(e,n):function Sut(n,e){const t=n.\u0275pipe;t.onDestroy=K$(t.onDestroy,e)}(e,n),function xut(n){n.prototype[W$]=!0}(e)}}const J$=7,Q$=Symbol("CheckerHasBeenSet");function tU(n){const e=ui.Zone;return e&&"function"==typeof e.root?.run?e.root.run(n):n()}const a5=!1;function Wt(n,e){return t=>{const r=q$(e);"string"==typeof e?function Iut(n,e,t){const r=n[e];if(a5&&"function"!=typeof r)throw new Error(`${n.constructor.name} is using untilDestroyed but doesn't implement ${e}`);Z$(n,t),n[e]=function(){r.apply(this,arguments),Y$(this,t),n[e]=r}}(n,e,r):(a5&&function Eut(n){const e=Object.getPrototypeOf(n);if(!(W$ in e))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(n),Z$(n,r));const i=n[r];return a5&&function Tut(n,e){n[Q$]||function Aut(){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)}()||(tU(()=>wi(Promise.resolve()).pipe(qr(()=>{let t;try{t=xa(n)}catch{t=null}const r=t?.lView;if(null==r)return or;const i=r[J$]||(r[J$]=[]),o=new I;return i.push(function(){tU(()=>{o.next(),o.complete()})}),o}),qr(()=>Promise.resolve())).subscribe(()=>{(e.observed??e.observers.length>0)&&console.warn(function Dut(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[Q$]=!0)}(n,i),t.pipe(ml(i))}}var Sd=Dt(489);class kut extends Kt{constructor(e,t){super()}schedule(e,t=0){return this}}const bO={setInterval(n,e,...t){const{delegate:r}=bO;return r?.setInterval?r.setInterval(n,e,...t):setInterval(n,e,...t)},clearInterval(n){const{delegate:e}=bO;return(e?.clearInterval||clearInterval)(n)},delegate:void 0};class eU extends kut{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var r;if(this.closed)return this;this.state=e;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,r=0){return bO.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&bO.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i,r=!1;try{this.work(e)}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:e,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,X(r,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}class PC{constructor(e,t=PC.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,r){return new this.schedulerActionCtor(this,e).schedule(r,t)}}PC.now=AE.now;class nU extends PC{constructor(e,t=PC.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}const OC=new nU(eU),Rut=OC;function rU(n,e){return e?t=>JP(e.pipe(Vg(1),function Nut(){return Xt((n,e)=>{n.subscribe(B(e,Ke))})}()),t.pipe(rU(n))):qr((t,r)=>On(n(t,r)).pipe(Vg(1),VV(t)))}function s5(n=0,e,t=Rut){let r=-1;return null!=e&&($l(e)?t=e:r=e),new F(i=>{let o=function Lut(n){return n instanceof Date&&!isNaN(n)}(n)?+n-t.now():n;o<0&&(o=0);let a=0;return t.schedule(function(){i.closed||(i.next(a++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function va(n,e=OC){const t=s5(n,e);return rU(()=>t)}var l5=function(n,e){return(l5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(n,e)};function Jn(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}l5(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var n,e,c5=12,Wg=c5+"px sans-serif",jut=function Hut(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=a*t.length;else for(var l=0;l"u"&&typeof self<"u"?qg.worker=!0:typeof navigator>"u"?(qg.node=!0,qg.svgSupported=!0):function odt(n,e){var t=e.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&&(t.firefox=!0,t.version=r[1]),i&&(t.ie=!0,t.version=i[1]),o&&(t.edge=!0,t.version=o[1],t.newEdge=+o[1].split(".")[0]>18),a&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}(navigator.userAgent,qg);const fr=qg;var adt=".",Zg="___EC__COMPONENT__CONTAINER___",mU="___EC__EXTENDED_CLASS___";function Dd(n){var e={main:"",sub:""};if(n){var t=n.split(adt);e.main=t[0]||"",e.sub=t[1]||""}return e}function m5(n,e){n.$constructor=n,n.extend=function(t){var i,r=this;return function cdt(n){return Qn(n)&&/^class\s/.test(Function.prototype.toString.call(n))}(r)?i=function(o){function a(){return o.apply(this,arguments)||this}return Jn(a,o),a}(r):(i=function(){(t.$constructor||r).apply(this,arguments)},function Yut(n,e){var t=n.prototype;function r(){}for(var i in r.prototype=e.prototype,n.prototype=new r,t)t.hasOwnProperty(i)&&(n.prototype[i]=t[i]);n.prototype.constructor=n,n.superClass=e}(i,this)),ge(i.prototype,t),i[mU]=!0,i.extend=this.extend,i.superCall=hdt,i.superApply=fdt,i.superClass=r,i}}function vU(n,e){n.extend=e.extend}var udt=Math.round(10*Math.random());function hdt(n,e){for(var t=[],r=2;r=0||o&&Ni(o,l)<0)){var c=r.getShallow(l,e);null!=c&&(a[n[s][0]]=c)}}return a}}var gdt=DC([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),mdt=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return gdt(this,e,t)},n}(),v5=function(n,e){return(v5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(n,e)};function Fi(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}v5(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var bU=function n(e){this.value=e},ydt=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new bU(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),Cdt=function(){function n(e){this._list=new ydt,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,i=this._map,o=null;if(null==i[e]){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=t:s=new bU(t),s.key=e,r.insertEntry(s),i[e]=s}return o},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(null!=t)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const IC=Cdt;var _5=new IC(50);function bdt(n){if("string"==typeof n){var e=_5.get(n);return e&&e.image}return n}function MU(n,e,t,r,i){if(n){if("string"==typeof n){if(e&&e.__zrImageSrc===n||!t)return e;var o=_5.get(n),a={hostEl:t,cb:r,cbPayload:i};return o?!IO(e=o.image)&&o.pending.push(a):((e=Lh.loadImage(n,wU,wU)).__zrImageSrc=n,_5.put(n,e.__cachedImgObj={image:e,pending:[a]})),e}return n}return e}function wU(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;ev&&(v=P,Fn.set(kC,_v&&(v=S,Fn.set(kC,0,C=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},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(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,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 e.x=t.x*i+r[4],e.y=t.y*o+s,e.width=t.width*i,e.height=t.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Yg.x=Kg.x=t.x,Yg.y=Jg.y=t.y,Xg.x=Jg.x=t.x+t.width,Xg.y=Kg.y=t.y+t.height,Yg.transform(r),Jg.transform(r),Xg.transform(r),Kg.transform(r),e.x=EO(Yg.x,Xg.x,Kg.x,Jg.x),e.y=EO(Yg.y,Xg.y,Kg.y,Jg.y);var l=kO(Yg.x,Xg.x,Kg.x,Jg.x),c=kO(Yg.y,Xg.y,Kg.y,Jg.y);e.width=l-e.x,e.height=c-e.y}else e!==t&&n.copy(e,t)},n}();const fi=xdt;var PU={};function rc(n,e){var t=PU[e=e||Wg];t||(t=PU[e]=new IC(500));var r=t.get(n);return null==r&&(r=Lh.measureText(n,e).width,t.put(n,r)),r}function OU(n,e,t,r){var i=rc(n,e),o=x5(e),a=RC(0,i,t),s=d0(0,o,r);return new fi(a,s,i,o)}function w5(n,e,t,r){var i=((n||"")+"").split("\n");if(1===i.length)return OU(i[0],e,t,r);for(var a=new fi(0,0,0,0),s=0;s=0?parseFloat(n)/100*e:parseFloat(n):n}function SU(n,e,t){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=t.height,a=t.width,s=o/2,l=t.x,c=t.y,u="left",h="top";if(r instanceof Array)l+=op(r[0],t.width),c+=op(r[1],t.height),u=null,h=null;else switch(r){case"left":l-=i,c+=s,u="right",h="middle";break;case"right":l+=i+a,c+=s,h="middle";break;case"top":l+=a/2,c-=i,u="center",h="bottom";break;case"bottom":l+=a/2,c+=o+i,u="center";break;case"inside":l+=a/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=i,c+=s,h="middle";break;case"insideRight":l+=a-i,c+=s,u="right",h="middle";break;case"insideTop":l+=a/2,c+=i,u="center";break;case"insideBottom":l+=a/2,c+=o-i,u="center",h="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,h="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,u="right",h="bottom"}return(n=n||{}).x=l,n.y=c,n.align=u,n.verticalAlign=h,n}var P5=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Pdt(n,e,t,r,i){if(!e)return"";var o=(n+"").split("\n");i=TU(e,t,r,i);for(var a=0,s=o.length;a=a;l++)s-=a;var c=rc(t,e);return c>s&&(t="",c=0),s=n-c,i.ellipsis=t,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=n,i}function AU(n,e){var t=e.containerWidth,r=e.font,i=e.contentWidth;if(!t)return"";var o=rc(n,r);if(o<=t)return n;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){n+=e.ellipsis;break}var s=0===a?Odt(n,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(n.length*i/o):0;o=rc(n=n.substr(0,s),r)}return""===n&&(n=e.placeholder),n}function Odt(n,e,t,r){for(var i=0,o=0,a=n.length;o0&&v+r.accumWidth>r.width&&(u=e.split("\n"),c=!0),r.accumWidth=v}else{var _=IU(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=_.accumWidth+g,h=_.linesWidths,u=_.lines}}else u=e.split("\n");for(var y=0;y=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(n)||!!Edt[n]}function IU(n,e,t,r,i){for(var o=[],a=[],s="",l="",c=0,u=0,h=0;ht:i+u+g>t)?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 h0(n,e){return null==n&&(n=0),null==e&&(e=0),[n,e]}function Rdt(n){return[n[0],n[1]]}function EU(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function Ndt(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function S5(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function T5(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var A5=T5,f0=function Vdt(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])};function D5(n,e,t,r){return n[0]=e[0]+r*(t[0]-e[0]),n[1]=e[1]+r*(t[1]-e[1]),n}function $c(n,e,t){var r=e[0],i=e[1];return n[0]=t[0]*r+t[2]*i+t[4],n[1]=t[1]*r+t[3]*i+t[5],n}function p0(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function g0(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}var kU=y5,RU=5e-5;function Qg(n){return n>RU||n<-RU}var t1=[],m0=[],I5=[1,0,0,1,0,0],E5=Math.abs,$dt=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return Qg(this.rotation)||Qg(this.x)||Qg(this.y)||Qg(this.scaleX-1)||Qg(this.scaleY-1)||Qg(this.skewX)||Qg(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;t||e?(r=r||[1,0,0,1,0,0],t?this.getLocalTransform(r):kU(r),e&&(t?u0(r,e,r):function xU(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)):r&&kU(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(t1);var r=t1[0]<0?-1:1,i=t1[1]<0?-1:1,o=((t1[0]-r)*t+r)/t1[0]||0,a=((t1[1]-i)*t+i)/t1[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],M5(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),o=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(o),t=Math.sqrt(t),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(u0(m0,e.invTransform,t),t=m0);var r=this.originX,i=this.originY;(r||i)&&(I5[4]=r,I5[5]=i,u0(m0,t,I5),m0[4]-=r,m0[5]-=i,t=m0),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],i=this.invTransform;return i&&$c(r,r,i),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],i=this.transform;return i&&$c(r,r,i),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&E5(e[0]-1)>1e-10&&E5(e[3]-1)>1e-10?Math.sqrt(E5(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){!function Udt(n,e){for(var t=0;t-LO&&nLO||n<-LO}function _a(n,e,t,r,i){var o=1-i;return o*o*(o*n+3*i*e)+i*i*(i*r+3*o*t)}function VU(n,e,t,r,i){var o=1-i;return 3*(((e-n)*o+2*(t-e)*i)*o+(r-t)*i*i)}function BO(n,e,t,r,i,o){var a=r+3*(e-t)-n,s=3*(t-2*e+n),l=3*(e-n),c=n-i,u=s*s-3*a*l,h=s*l-9*a*c,p=l*l-3*s*c,g=0;if(sp(u)&&sp(h))sp(s)?o[0]=0:(v=-l/s)>=0&&v<=1&&(o[g++]=v);else{var _=h*h-4*u*p;if(sp(_)){var y=h/u,C=-y/2;(v=-s/a+y)>=0&&v<=1&&(o[g++]=v),C>=0&&C<=1&&(o[g++]=C)}else if(_>0){var x=ap(_),P=u*s+1.5*a*(-h+x),S=u*s+1.5*a*(-h-x);(v=(-s-((P=P<0?-NO(-P,FO):NO(P,FO))+(S=S<0?-NO(-S,FO):NO(S,FO))))/(3*a))>=0&&v<=1&&(o[g++]=v)}else{var N=(2*u*s-3*a*h)/(2*ap(u*u*u)),R=Math.acos(N)/3,z=ap(u),$=Math.cos(R),v=(-s-2*z*$)/(3*a),W=(C=(-s+z*($+FU*Math.sin(R)))/(3*a),(-s+z*($-FU*Math.sin(R)))/(3*a));v>=0&&v<=1&&(o[g++]=v),C>=0&&C<=1&&(o[g++]=C),W>=0&&W<=1&&(o[g++]=W)}}return g}function $U(n,e,t,r,i){var o=6*t-12*e+6*n,a=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(sp(a))BU(o)&&(c=-s/o)>=0&&c<=1&&(i[l++]=c);else{var u=o*o-4*a*s;if(sp(u))i[0]=-o/(2*a);else if(u>0){var c,h=ap(u),p=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function VO(n,e,t,r,i,o){var a=(e-n)*i+n,s=(t-e)*i+e,l=(r-t)*i+t,c=(s-a)*i+a,u=(l-s)*i+s,h=(u-c)*i+c;o[0]=n,o[1]=a,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=r}function Hdt(n,e,t,r,i,o,a,s,l){for(var c=n,u=e,h=0,p=1/l,g=1;g<=l;g++){var v=g*p,_=_a(n,t,i,a,v),y=_a(e,r,o,s,v),C=_-c,x=y-u;h+=Math.sqrt(C*C+x*x),c=_,u=y}return h}function fs(n,e,t,r){var i=1-r;return i*(i*n+2*r*e)+r*r*t}function UU(n,e,t,r){return 2*((1-r)*(e-n)+r*(t-e))}function zU(n,e,t){var r=n+t-2*e;return 0===r?.5:(n-e)/r}function $O(n,e,t,r,i){var o=(e-n)*r+n,a=(t-e)*r+e,s=(a-o)*r+o;i[0]=n,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=t}function Wdt(n,e,t,r,i,o,a){for(var s=n,l=e,c=0,u=1/a,h=1;h<=a;h++){var p=h*u,g=fs(n,t,i,p),v=fs(e,r,o,p),_=g-s,y=v-l;c+=Math.sqrt(_*_+y*y),s=g,l=v}return c}var qdt=/cubic-bezier\(([0-9,\.e ]+)\)/;function HU(n){var e=n&&qdt.exec(n);if(e){var t=e[1].split(","),r=+Ad(t[0]),i=+Ad(t[1]),o=+Ad(t[2]),a=+Ad(t[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:BO(0,r,o,1,l,s)&&_a(0,i,a,1,s[0])}}}var Zdt=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||_l,this.ondestroy=e.ondestroy||_l,this.onrestart=e.onrestart||_l,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var r=this._life,i=e-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=e-i%r,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Qn(e)?e:NU[e]||HU(e)},n}();const Ydt=Zdt;var jU={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 ku(n){return(n=Math.round(n))<0?0:n>255?255:n}function LC(n){return n<0?0:n>1?1:n}function R5(n){var e=n;return e.length&&"%"===e.charAt(e.length-1)?ku(parseFloat(e)/100*255):ku(parseInt(e,10))}function e1(n){var e=n;return e.length&&"%"===e.charAt(e.length-1)?LC(parseFloat(e)/100):LC(parseFloat(e))}function N5(n,e,t){return t<0?t+=1:t>1&&(t-=1),6*t<1?n+(e-n)*t*6:2*t<1?e:3*t<2?n+(e-n)*(2/3-t)*6:n}function lp(n,e,t){return n+(e-n)*t}function zc(n,e,t,r,i){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function L5(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var GU=new IC(20),UO=null;function _0(n,e){UO&&L5(UO,e),UO=GU.put(n,UO||e.slice())}function Hc(n,e){if(n){e=e||[];var t=GU.get(n);if(t)return L5(e,t);var r=(n+="").replace(/ /g,"").toLowerCase();if(r in jU)return L5(e,jU[r]),_0(n,e),e;var o,i=r.length;if("#"===r.charAt(0))return 4===i||5===i?(o=parseInt(r.slice(1,4),16))>=0&&o<=4095?(zc(e,(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),_0(n,e),e):void zc(e,0,0,0,1):7===i||9===i?(o=parseInt(r.slice(1,7),16))>=0&&o<=16777215?(zc(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(r.slice(7),16)/255:1),_0(n,e),e):void zc(e,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?zc(e,+c[0],+c[1],+c[2],1):zc(e,0,0,0,1);u=e1(c.pop());case"rgb":return c.length>=3?(zc(e,R5(c[0]),R5(c[1]),R5(c[2]),3===c.length?u:e1(c[3])),_0(n,e),e):void zc(e,0,0,0,1);case"hsla":return 4!==c.length?void zc(e,0,0,0,1):(c[3]=e1(c[3]),F5(c,e),_0(n,e),e);case"hsl":return 3!==c.length?void zc(e,0,0,0,1):(F5(c,e),_0(n,e),e);default:return}}zc(e,0,0,0,1)}}function F5(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=e1(n[1]),i=e1(n[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return zc(e=e||[],ku(255*N5(a,o,t+1/3)),ku(255*N5(a,o,t)),ku(255*N5(a,o,t-1/3)),1),4===n.length&&(e[3]=n[3]),e}function WU(n,e){var t=Hc(n);if(t){for(var r=0;r<3;r++)t[r]=e<0?t[r]*(1-e)|0:(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return n1(t,4===t.length?"rgba":"rgb")}}function n1(n,e){if(n&&n.length){var t=n[0]+","+n[1]+","+n[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(t+=","+n[3]),e+"("+t+")"}}function zO(n,e){var t=Hc(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}Math,fr.hasGlobalWindow&&Qn(window.btoa);var B5=Array.prototype.slice;function Bh(n,e,t){return(e-n)*t+n}function V5(n,e,t,r){for(var i=e.length,o=0;or?e:n,o=Math.min(t,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(e,t,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=6,l=t;if(vl(t)){var c=function aht(n){return vl(n&&n[0])?2:1}(t);s=c,(1===c&&!Li(t[0])||2===c&&!Li(t[0][0]))&&(a=!0)}else if(Li(t)&&!SO(t))s=0;else if(nn(t))if(isNaN(+t)){var u=Hc(t);u&&(l=u,s=3)}else s=0;else if(OO(t)){var h=ge({},l);h.colorStops=Cn(t.colorStops,function(g){return{offset:g.offset,color:Hc(g.color)}}),function eht(n){return"linear"===n.type}(t)?s=$5:function nht(n){return"radial"===n.type}(t)&&(s=U5),l=h}0===o?this.valType=s:(s!==this.valType||6===s)&&(a=!0),this.discrete=this.discrete||a;var p={time:e,value:l,rawValue:t,percent:0};return r&&(p.easing=r,p.easingFunc=Qn(r)?r:NU[r]||HU(r)),i.push(p),p},n.prototype.prepare=function(e,t){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=YO(i),c=JU(i),u=0;u=0&&!(a[u].percent<=t);u--);u=p(u,s-2)}else{for(u=h;ut);u++);u=p(u-1,s-2)}v=a[u+1],g=a[u]}if(g&&v){this._lastFr=u,this._lastFrP=t;var y=v.percent-g.percent,C=0===y?1:p((t-g.percent)/y,1);v.easingFunc&&(C=v.easingFunc(C));var x=r?this._additiveValue:c?VC:e[l];if((YO(o)||c)&&!x&&(x=this._additiveValue=[]),this.discrete)e[l]=C<1?g.rawValue:v.rawValue;else if(YO(o))o===ZO?V5(x,g[i],v[i],C):function rht(n,e,t,r){for(var i=e.length,o=i&&e[0].length,a=0;a0&&l.addKeyframe(0,GO(c),i),this._trackKeys.push(s)}l.addKeyframe(e,GO(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],i=this._maxTime||0,o=0;o1){var s=a.pop();o.addKeyframe(s.time,e[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},n}();const z5=lht;var cht=function(){function n(e){e&&(this._$eventProcessor=e)}return n.prototype.on=function(e,t,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof t&&(i=r,r=t,t=null),!r||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),o[e]||(o[e]=[]);for(var s=0;s=0:r.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),C=void 0,x=void 0,P=void 0;_&&this.canBeInsideText()?(x=r.insideStroke,(null==(C=r.insideFill)||"auto"===C)&&(C=this.getInsideTextFill()),(null==x||"auto"===x)&&(x=this.getInsideTextStroke(C),P=!0)):(x=r.outsideStroke,(null==(C=r.outsideFill)||"auto"===C)&&(C=this.getOutsideFill()),(null==x||"auto"===x)&&(x=this.getOutsideStroke(C),P=!0)),((C=C||"#000")!==y.fill||x!==y.stroke||P!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=C,y.stroke=x,y.autoStroke=P,y.align=a,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=ic,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?G5:j5},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r="string"==typeof t&&Hc(t);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,n1(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},ge(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(mn(e))for(var i=uo(e),o=0;o0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(W5,!1,e)},n.prototype.useState=function(e,t,r,i){var o=e===W5;if(this.hasState()||!o){var s=this.currentStates,l=this.stateTransition;if(!(Ni(s,e)>=0)||!t&&1!==s.length){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),!c&&!o)return void h5("State "+e+" not exists.");o||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,p=this._textGuide;return h&&h.useState(e,t,r,u),p&&p.useState(e,t,r,u),o?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ic),c}}},n.prototype.useStates=function(e,t,r){if(e.length){var i=[],o=this.currentStates,a=e.length,s=a===o.length;if(s)for(var l=0;l0,v);var _=this._textContent,y=this._textGuide;_&&_.useStates(e,t,p),y&&y.useStates(e,t,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ic)}else this.clearStates()},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var i=this.currentStates.slice(),o=Ni(i,e),a=Ni(i,t)>=0;o>=0?a?i.splice(o,1):i[o]=t:r&&!a&&i.push(t),this.useStates(i)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var r,t={},i=0;i=0&&o.splice(a,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,i=r.length,o=[],a=0;a0&&t.during&&o[0].during(function(v,_){t.during(_)});for(var p=0;p0||i.force&&!a.length){var N,$=void 0,W=void 0,K=void 0;if(s)for(W={},p&&($={}),S=0;S1e-4)return s[0]=n-t,s[1]=e-r,l[0]=n+t,void(l[1]=e+r);if(JO[0]=ek(i)*t+n,JO[1]=tk(i)*r+e,QO[0]=ek(o)*t+n,QO[1]=tk(o)*r+e,c(s,JO,QO),u(l,JO,QO),(i%=o1)<0&&(i+=o1),(o%=o1)<0&&(o+=o1),i>o&&!a?o+=o1:ii&&(t3[0]=ek(g)*t+n,t3[1]=tk(g)*r+e,c(s,t3,s),u(l,t3,l))}var pi={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},a1=[],s1=[],kd=[],cp=[],Rd=[],Nd=[],nk=Math.min,rk=Math.max,l1=Math.cos,c1=Math.sin,Vh=Math.abs,ik=Math.PI,up=2*ik,ok=typeof Float32Array<"u",zC=[];function ak(n){return Math.round(n/ik*1e8)/1e8%2*ik}var xht=function(){function n(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(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(e,t,r){(r=r||0)>0&&(this._ux=Vh(r/XO/e)||0,this._uy=Vh(r/XO/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(pi.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=Vh(e-this._xi),i=Vh(t-this._yi),o=r>this._ux||i>this._uy;if(this.addData(pi.L,e,t),this._ctx&&o&&this._ctx.lineTo(e,t),o)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(e,t,r,i,o,a){return this._drawPendingPt(),this.addData(pi.C,e,t,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(e,t,r,i,o,a),this._xi=o,this._yi=a,this},n.prototype.quadraticCurveTo=function(e,t,r,i){return this._drawPendingPt(),this.addData(pi.Q,e,t,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,i),this._xi=r,this._yi=i,this},n.prototype.arc=function(e,t,r,i,o,a){return this._drawPendingPt(),zC[0]=i,zC[1]=o,function wht(n,e){var t=ak(n[0]);t<0&&(t+=up);var i=n[1];i+=t-n[0],!e&&i-t>=up?i=t+up:e&&t-i>=up?i=t-up:!e&&t>i?i=t+(up-ak(t-i)):e&&tu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){kd[0]=kd[1]=Rd[0]=Rd[1]=Number.MAX_VALUE,cp[0]=cp[1]=Nd[0]=Nd[1]=-Number.MAX_VALUE;var a,e=this.data,t=0,r=0,i=0,o=0;for(a=0;ar||Vh(P)>i||p===t-1)&&(_=Math.sqrt(x*x+P*P),o=y,a=C);break;case pi.C:var S=e[p++],N=e[p++],C=(y=e[p++],e[p++]),R=e[p++],z=e[p++];_=Hdt(o,a,S,N,y,C,R,z,10),o=R,a=z;break;case pi.Q:_=Wdt(o,a,S=e[p++],N=e[p++],y=e[p++],C=e[p++],10),o=y,a=C;break;case pi.A:var $=e[p++],W=e[p++],K=e[p++],Q=e[p++],rt=e[p++],ut=e[p++],xt=ut+rt;p+=1,p++,v&&(s=l1(rt)*K+$,l=c1(rt)*Q+W),_=rk(K,Q)*nk(up,Math.abs(ut)),o=l1(xt)*K+$,a=c1(xt)*Q+W;break;case pi.R:s=o=e[p++],l=a=e[p++],_=2*e[p++]+2*e[p++];break;case pi.Z:var x=s-o;P=l-a,_=Math.sqrt(x*x+P*P),o=s,a=l}_>=0&&(c[h++]=_,u+=_)}return this._pathLen=u,u},n.prototype.rebuildPath=function(e,t){var s,l,c,u,h,p,v,x,S,N,r=this.data,i=this._ux,o=this._uy,a=this._len,g=t<1,y=0,C=0,P=0;if(!g||(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,x=t*this._pathLen))t:for(var R=0;R0&&(e.lineTo(S,N),P=0),z){case pi.M:s=c=r[R++],l=u=r[R++],e.moveTo(c,u);break;case pi.L:h=r[R++],p=r[R++];var W=Vh(h-c),K=Vh(p-u);if(W>i||K>o){if(g){if(y+(Q=v[C++])>x){e.lineTo(c*(1-(rt=(x-y)/Q))+h*rt,u*(1-rt)+p*rt);break t}y+=Q}e.lineTo(h,p),c=h,u=p,P=0}else{var ut=W*W+K*K;ut>P&&(S=h,N=p,P=ut)}break;case pi.C:var xt=r[R++],Ft=r[R++],Rt=r[R++],me=r[R++],lt=r[R++],gt=r[R++];if(g){if(y+(Q=v[C++])>x){VO(c,xt,Rt,lt,rt=(x-y)/Q,a1),VO(u,Ft,me,gt,rt,s1),e.bezierCurveTo(a1[1],s1[1],a1[2],s1[2],a1[3],s1[3]);break t}y+=Q}e.bezierCurveTo(xt,Ft,Rt,me,lt,gt),c=lt,u=gt;break;case pi.Q:if(xt=r[R++],Ft=r[R++],Rt=r[R++],me=r[R++],g){if(y+(Q=v[C++])>x){$O(c,xt,Rt,rt=(x-y)/Q,a1),$O(u,Ft,me,rt,s1),e.quadraticCurveTo(a1[1],s1[1],a1[2],s1[2]);break t}y+=Q}e.quadraticCurveTo(xt,Ft,Rt,me),c=Rt,u=me;break;case pi.A:var St=r[R++],Jt=r[R++],qt=r[R++],re=r[R++],Te=r[R++],hn=r[R++],Pn=r[R++],Vr=!r[R++],$r=qt>re?qt:re,gi=Vh(qt-re)>.001,kr=Te+hn,Xe=!1;if(g&&(y+(Q=v[C++])>x&&(kr=Te+hn*(x-y)/Q,Xe=!0),y+=Q),gi&&e.ellipse?e.ellipse(St,Jt,qt,re,Pn,Te,kr,Vr):e.arc(St,Jt,$r,Te,kr,Vr),Xe)break t;$&&(s=l1(Te)*qt+St,l=c1(Te)*re+Jt),c=l1(kr)*qt+St,u=c1(kr)*re+Jt;break;case pi.R:s=c=r[R],l=u=r[R+1],h=r[R++],p=r[R++];var Tn=r[R++],ia=r[R++];if(g){if(y+(Q=v[C++])>x){var ji=x-y;e.moveTo(h,p),e.lineTo(h+nk(ji,Tn),p),(ji-=Tn)>0&&e.lineTo(h+Tn,p+nk(ji,ia)),(ji-=ia)>0&&e.lineTo(h+rk(Tn-ji,0),p+ia),(ji-=Tn)>0&&e.lineTo(h,p+rk(ia-ji,0));break t}y+=Q}e.rect(h,p,Tn,ia);break;case pi.Z:if(g){var Q;if(y+(Q=v[C++])>x){var rt;e.lineTo(c*(1-(rt=(x-y)/Q))+s*rt,u*(1-rt)+l*rt);break t}y+=Q}e.closePath(),c=s,u=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=pi,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();const dp=xht;function b0(n,e,t,r,i,o,a){if(0===i)return!1;var l,s=i;if(a>e+s&&a>r+s||an+s&&o>t+s||oe+h&&u>r+h&&u>o+h&&u>s+h||un+h&&c>t+h&&c>i+h&&c>a+h||c=0&&ye+c&&l>r+c&&l>o+c||ln+c&&s>t+c&&s>i+c||s=0&&gt||u+ci&&(i+=HC);var p=Math.atan2(l,s);return p<0&&(p+=HC),p>=r&&p<=i||p+HC>=r&&p+HC<=i}function u1(n,e,t,r,i,o){if(o>e&&o>r||oi?s:0}var hp=dp.CMD,d1=2*Math.PI,Tht=1e-4,Ws=[-1,-1,-1],jc=[-1,-1];function Dht(){var n=jc[0];jc[0]=jc[1],jc[1]=n}function Iht(n,e,t,r,i,o,a,s,l,c){if(c>e&&c>r&&c>o&&c>s||c1&&Dht(),g=_a(e,r,o,s,jc[0]),p>1&&(v=_a(e,r,o,s,jc[1]))),h+=2===p?ye&&s>r&&s>o||s=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(sp(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,h=ap(u),p=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}(e,r,o,s,Ws);if(0===l)return 0;var c=zU(e,r,o);if(c>=0&&c<=1){for(var u=0,h=fs(e,r,o,c),p=0;pt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ws[0]=-l,Ws[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=d1-1e-4){r=0,i=d1;var u=o?1:-1;return a>=Ws[0]+n&&a<=Ws[1]+n?u:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=d1,i+=d1);for(var p=0,g=0;g<2;g++){var v=Ws[g];if(v+n>a){var _=Math.atan2(s,v);u=o?1:-1,_<0&&(_=d1+_),(_>=r&&_<=i||_+d1>=r&&_+d1<=i)&&(_>Math.PI/2&&_<1.5*Math.PI&&(u=-u),p+=u)}}return p}function sz(n,e,t,r,i){for(var p,g,o=n.data,a=n.len(),s=0,l=0,c=0,u=0,h=0,v=0;v1&&(t||(s+=u1(l,c,u,h,r,i))),y&&(u=l=o[v],h=c=o[v+1]),_){case hp.M:l=u=o[v++],c=h=o[v++];break;case hp.L:if(t){if(b0(l,c,o[v],o[v+1],e,r,i))return!0}else s+=u1(l,c,o[v],o[v+1],r,i)||0;l=o[v++],c=o[v++];break;case hp.C:if(t){if(Pht(l,c,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],e,r,i))return!0}else s+=Iht(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 hp.Q:if(t){if(Oht(l,c,o[v++],o[v++],o[v],o[v+1],e,r,i))return!0}else s+=Eht(l,c,o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],c=o[v++];break;case hp.A:var C=o[v++],x=o[v++],P=o[v++],S=o[v++],N=o[v++],R=o[v++];v+=1;var z=!!(1-o[v++]);p=Math.cos(N)*P+C,g=Math.sin(N)*S+x,y?(u=p,h=g):s+=u1(l,c,p,g,r,i);var $=(r-C)*S/P+C;if(t){if(Sht(C,x,S,N,N+R,z,e,$,i))return!0}else s+=kht(C,x,S,N,N+R,z,$,i);l=Math.cos(N+R)*P+C,c=Math.sin(N+R)*S+x;break;case hp.R:if(u=l=o[v++],h=c=o[v++],p=u+o[v++],g=h+o[v++],t){if(b0(u,h,p,h,e,r,i)||b0(p,h,p,g,e,r,i)||b0(p,g,u,g,e,r,i)||b0(u,g,u,h,e,r,i))return!0}else s+=u1(p,h,p,g,r,i),s+=u1(u,g,u,h,r,i);break;case hp.Z:if(t){if(b0(l,c,u,h,e,r,i))return!0}else s+=u1(l,c,u,h,r,i);l=u,c=h}}return!t&&!function Aht(n,e){return Math.abs(n-e).5?j5:r>.2?"#eee":G5}if(t)return G5}return j5},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(nn(r)){var i=this.__zr;if(!(!i||!i.isDarkMode())==zO(t,0)<.4)return r}},e.prototype.buildPath=function(t,r,i){},e.prototype.pathUpdated=function(){this.__dirty&=~y0},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new dp(!1)},e.prototype.hasStroke=function(){var t=this.style,r=t.stroke;return!(null==r||"none"===r||!(t.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style.fill;return null!=r&&"none"!==r},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,i=!t;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&y0)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),t=a.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);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 t},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),o=this.getBoundingRect(),a=this.style;if(o.contain(t=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 Nht(n,e,t,r){return sz(n,e,!0,t,r)}(s,l/c,t,r)))return!0}if(this.hasFill())return function Rht(n,e,t){return sz(n,0,!1,e,t)}(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=y0,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){"shape"===t?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var i=this.shape;return i||(i=this.shape={}),"string"==typeof t?i[t]=r:ge(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&y0)},e.prototype.createStyle=function(t){return TO(lz,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=ge({},this.shape))},e.prototype._applyStateObj=function(t,r,i,o,a,s){n.prototype._applyStateObj.call(this,t,r,i,o,a,s);var c,l=!(r&&o);if(r&&r.shape?a?o?c=r.shape:(c=ge({},i.shape),ge(c,r.shape)):(c=ge({},o?this.shape:i.shape),ge(c,r.shape)):l&&(c=i.shape),c)if(a){this.shape=ge({},this.shape);for(var u={},h=uo(c),p=0;p0},e.prototype.hasFill=function(){var r=this.style.fill;return null!=r&&"none"!==r},e.prototype.createStyle=function(t){return TO(Bht,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;null!=r?r+="":r="";var i=w5(r,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var o=t.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(UC);cz.prototype.type="tspan";const lk=cz;var Vht=hi({x:0,y:0},r1),$ht={style:hi({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},KO.style)},uz=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return Fi(e,n),e.prototype.createStyle=function(t){return TO(Vht,t)},e.prototype._getSize=function(t){var r=this.style,i=r[t];if(null!=i)return i;var o=function Uht(n){return!!(n&&"string"!=typeof n&&n.width&&n.height)}(r.image)?r.image:this.__image;if(!o)return 0;var a="width"===t?"height":"width",s=r[a];return null==s?o[t]:o[t]/o[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return $ht},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new fi(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(UC);uz.prototype.type="image";const h1=uz;var M0=Math.round;function dz(n,e,t){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;n.x1=r,n.x2=i,n.y1=o,n.y2=a;var s=t&&t.lineWidth;return s&&(M0(2*r)===M0(2*i)&&(n.x1=n.x2=f1(r,s,!0)),M0(2*o)===M0(2*a)&&(n.y1=n.y2=f1(o,s,!0))),n}}function hz(n,e,t){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;n.x=r,n.y=i,n.width=o,n.height=a;var s=t&&t.lineWidth;return s&&(n.x=f1(r,s,!0),n.y=f1(i,s,!0),n.width=Math.max(f1(r+o,s,!1)-n.x,0===o?0:1),n.height=Math.max(f1(i+a,s,!1)-n.y,0===a?0:1)),n}}function f1(n,e,t){if(!e)return n;var r=M0(2*n);return(r+M0(e))%2==0?r/2:(r+(t?1:-1))/2}var Hht=function n(){this.x=0,this.y=0,this.width=0,this.height=0},jht={},fz=function(n){function e(t){return n.call(this,t)||this}return Fi(e,n),e.prototype.getDefaultShape=function(){return new Hht},e.prototype.buildPath=function(t,r){var i,o,a,s;if(this.subPixelOptimize){var l=hz(jht,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 zht(n,e){var s,l,c,u,h,t=e.x,r=e.y,i=e.width,o=e.height,a=e.r;i<0&&(t+=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/(h=s+l),l*=i/h),c+u>i&&(c*=i/(h=c+u),u*=i/h),l+c>o&&(l*=o/(h=l+c),c*=o/h),s+u>o&&(s*=o/(h=s+u),u*=o/h),n.moveTo(t+s,r),n.lineTo(t+i-l,r),0!==l&&n.arc(t+i-l,r+l,l,-Math.PI/2,0),n.lineTo(t+i,r+o-c),0!==c&&n.arc(t+i-c,r+o-c,c,0,Math.PI/2),n.lineTo(t+u,r+o),0!==u&&n.arc(t+u,r+o-u,u,Math.PI/2,Math.PI),n.lineTo(t,r+s),0!==s&&n.arc(t+s,r+s,s,Math.PI,1.5*Math.PI)}(t,r):t.rect(i,o,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ui);fz.prototype.type="rect";const Ua=fz;var pz={fill:"#000"},Ght={style:hi({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},KO.style)},mz=function(n){function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=pz,r.attr(t),r}return Fi(e,n),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;tg&&c){var v=Math.floor(g/s);h=h.slice(0,v)}if(n&&o&&null!=u)for(var _=TU(u,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y0,rt=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),ut=a.calculatedLineHeight,xt=0;xts&&O5(t,n.substring(s,c),e,a),O5(t,l[2],e,a,l[1]),s=P5.lastIndex}si){N>0?(x.tokens=x.tokens.slice(0,N),y(x,S,P),t.lines=t.lines.slice(0,C+1)):t.lines=t.lines.slice(0,C);break t}var rt=z.width,ut=null==rt||"auto"===rt;if("string"==typeof rt&&"%"===rt.charAt(rt.length-1))R.percentWidth=rt,u.push(R),R.contentWidth=rc(R.text,K);else{if(ut){var xt=z.backgroundColor,Ft=xt&&xt.image;Ft&&IO(Ft=bdt(Ft))&&(R.width=Math.max(R.width,Ft.width*Q/Ft.height))}var Rt=v&&null!=r?r-S:null;null!=Rt&&Rt=0&&"right"===(xt=R[ut]).align;)this._placeToken(xt,t,$,C,rt,"right",P),W-=xt.width,rt-=xt.width,ut--;for(Q+=(o-(Q-y)-(x-rt)-W)/2;K<=ut;)this._placeToken(xt=R[K],t,$,C,Q+xt.width/2,"center",P),Q+=xt.width,K++;C+=$}},e.prototype._placeToken=function(t,r,i,o,a,s,l){var c=r.rich[t.styleName]||{};c.text=t.text;var u=t.verticalAlign,h=o+i/2;"top"===u?h=o+t.height/2:"bottom"===u&&(h=o+i-t.height/2),!t.isLineHolder&&ck(c)&&this._renderBackground(c,r,"right"===s?a-t.width:"center"===s?a-t.width/2:a,h-t.height/2,t.width,t.height);var g=!!c.backgroundColor,v=t.textPadding;v&&(a=Mz(a,s,v),h-=t.height/2-v[0]-t.innerHeight/2);var _=this._getOrCreateChild(lk),y=_.createStyle();_.useStyle(y);var C=this._defaultStyle,x=!1,P=0,S=bz("fill"in c?c.fill:"fill"in r?r.fill:(x=!0,C.fill)),N=Cz("stroke"in c?c.stroke:"stroke"in r?r.stroke:g||l||C.autoStroke&&!x?null:(P=2,C.stroke)),R=c.textShadowBlur>0||r.textShadowBlur>0;y.text=t.text,y.x=a,y.y=h,R&&(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=t.font||Wg,y.opacity=TC(c.opacity,r.opacity,1),_z(y,c),N&&(y.lineWidth=TC(c.lineWidth,r.lineWidth,P),y.lineDash=Ir(c.lineDash,r.lineDash),y.lineDashOffset=r.lineDashOffset||0,y.stroke=N),S&&(y.fill=S);var z=t.contentWidth,$=t.contentHeight;_.setBoundingRect(new fi(RC(y.x,z,y.textAlign),d0(y.y,$,y.textBaseline),z,$))},e.prototype._renderBackground=function(t,r,i,o,a,s){var _,y,x,l=t.backgroundColor,c=t.borderWidth,u=t.borderColor,h=l&&l.image,p=l&&!h,g=t.borderRadius,v=this;if(p||t.lineHeight||c&&u){(_=this._getOrCreateChild(Ua)).useStyle(_.createStyle()),_.style.fill=null;var C=_.shape;C.x=i,C.y=o,C.width=a,C.height=s,C.r=g,_.dirtyShape()}if(p)(x=_.style).fill=l||null,x.fillOpacity=Ir(t.fillOpacity,1);else if(h){(y=this._getOrCreateChild(h1)).onload=function(){v.dirtyStyle()};var P=y.style;P.image=l.image,P.x=i,P.y=o,P.width=a,P.height=s}c&&u&&((x=_.style).lineWidth=c,x.stroke=u,x.strokeOpacity=Ir(t.strokeOpacity,1),x.lineDash=t.borderDash,x.lineDashOffset=t.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2));var S=(_||y).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=TC(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return function Yht(n){return null!=n.fontSize||n.fontFamily||n.fontWeight}(t)&&(r=[t.fontStyle,t.fontWeight,Zht(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Ad(r)||t.textFont||t.font},e}(UC),Wht={left:!0,right:1,center:1},qht={top:1,bottom:1,middle:1},vz=["fontStyle","fontWeight","fontSize","fontFamily"];function Zht(n){return"string"!=typeof n||-1===n.indexOf("px")&&-1===n.indexOf("rem")&&-1===n.indexOf("em")?isNaN(+n)?c5+"px":n+"px":n}function _z(n,e){for(var t=0;t0){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 ho(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%"}return nn(n)?function Kht(n){return n.replace(/^\s+|\s+$/g,"")}(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):null==n?NaN:+n}function Jo(n,e,t){return null==e&&(e=10),e=Math.min(Math.max(0,e),Pz),n=(+n).toFixed(e),t?n:+n}function $h(n){if(n=+n,isNaN(n))return 0;if(n>1e-14)for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t;return function Jht(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,i=t>0?t:e.length,o=e.indexOf(".");return Math.max(0,(o<0?0:i-1-o)-r)}(n)}function tft(n,e){var t=Math.max($h(n),$h(e)),r=n+e;return t>Pz?r:Jo(r,t)}function Sz(n){var e=2*Math.PI;return(n%e+e)%e}function n3(n){return n>-xz&&n=10&&e++,e}function Tz(n,e){var t=dk(n),r=Math.pow(10,t),i=n/r;return n=(e?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,t>=-20?+n.toFixed(t<0?-t:0):n}function fp(n){var e=parseFloat(n);return e==n&&(0!==e||!nn(n)||n.indexOf("x")<=0)?e:NaN}function Az(){return Math.round(9*Math.random())}function Dz(n,e){return 0===e?n:Dz(e,n%e)}function Iz(n,e){return null==n?e:null==e?n:n*e/Dz(n,e)}function Ez(n,e,t){return(e-n)*t+n}var kz="series\0",Rz="\0_ec_\0";function gs(n){return n instanceof Array?n:null==n?[]:[n]}function hk(n,e,t){if(n){n[e]=n[e]||{},n.emphasis=n.emphasis||{},n.emphasis[e]=n.emphasis[e]||{};for(var r=0,i=t.length;r=0,o=!1;if(n instanceof Ui){var a=$z(n),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(w0(s)||w0(l)){var c=(r=r||{}).style||{};"inherit"===c.fill?(o=!0,r=ge({},r),(c=ge({},c)).fill=s):!w0(c.fill)&&w0(s)?(o=!0,r=ge({},r),(c=ge({},c)).fill=zz(s)):!w0(c.stroke)&&w0(l)&&(o||(r=ge({},r),c=ge({},c)),c.stroke=zz(l)),r.style=c}}return r&&null==r.z2&&(o||(r=ge({},r)),r.z2=n.z2+(n.z2EmphasisLift??yft)),r}(this,0,e,t);if("blur"===n)return function Oft(n,e,t){var r=Ni(n.currentStates,e)>=0,i=n.style.opacity,o=r?null:function wft(n,e,t,r){for(var i=n.style,o={},a=0;a0){var l={dataIndex:s,seriesIndex:t.seriesIndex};null!=a&&(l.dataType=a),e.push(l)}})}),e}function wk(n,e,t){rH(n,!0),zh(n,Sft),function Nft(n,e,t){var r=eo(n);null!=e?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}(n,e,t)}function d3(n,e,t,r){r?function Rft(n){rH(n,!1)}(n):wk(n,e,t)}var nH=["emphasis","blur","select"],Lft={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function xk(n,e,t,r){t=t||"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 t=this._new,r={},i={},o=[],a=[];this._initIndexMap(this._old,r,o,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var s=0;s1&&1===p)this._updateManyToOne&&this._updateManyToOne(u,c),i[l]=null;else if(1===h&&p>1)this._updateOneToMany&&this._updateOneToMany(u,c),i[l]=null;else if(1===h&&1===p)this._update&&this._update(u,c),i[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(u,c),i[l]=null;else if(h>1)for(var g=0;g1)for(var s=0;s_&&(_=P)}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}(),y3="undefined",_pt=typeof Uint32Array===y3?Array:Uint32Array,ypt=typeof Uint16Array===y3?Array:Uint16Array,kH=typeof Int32Array===y3?Array:Int32Array,RH=typeof Float64Array===y3?Array:Float64Array,NH={float:RH,int:kH,ordinal:Array,number:Array,time:RH};function KC(n){return n>65535?_pt:ypt}function Cpt(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function LH(n,e,t,r,i){var o=NH[t||"float"];if(i){var a=n[e],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(e,t,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=Cn(a,function(x){return x.property}),u=0;uC[1]&&(C[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(null!=r&&re))return a;o=a-1}}return-1},n.prototype.indicesOfNearest=function(e,t,r){var o=this._chunks[e],a=[];if(!o)return a;null==r&&(r=1/0);for(var s=1/0,l=-1,c=0,u=0,h=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 e,t=this._indices;if(t){var i=this._count;if((r=t.constructor)===Array){e=new r(i);for(var o=0;o=h&&x<=p||isNaN(x))&&(l[c++]=_),_++;v=!0}else if(2===o){y=g[i[0]];var P=g[i[1]],S=e[i[1]][0],N=e[i[1]][1];for(C=0;C=h&&x<=p||isNaN(x))&&(R>=S&&R<=N||isNaN(R))&&(l[c++]=_),_++}v=!0}}if(!v)if(1===o)for(C=0;C=h&&x<=p||isNaN(x))&&(l[c++]=z)}else for(C=0;Ce[K][1])&&($=!1)}$&&(l[c++]=t.getRawIndex(C))}return cC[1]&&(C[1]=y)}}},n.prototype.lttbDownSample=function(e,t){var u,h,p,r=this.clone([e],!0),o=r._chunks[e],a=this.count(),s=0,l=Math.floor(1/t),c=this.getRawIndex(0),g=new(KC(this._rawCount))(Math.min(2*(Math.ceil(a/l)+2),a));g[s++]=c;for(var v=1;vu&&(u=h,p=S)}Q>0&&Qu-v&&(s.length=l=u-v);for(var _=0;_h[1]&&(h[1]=C),p[g++]=x}return o._count=g,o._indices=p,o._updateGetRawIdx(),o},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,i=this._chunks,o=0,a=this.count();ol&&(l=h)}return this._extent[e]=a=[s,l],a},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],i=this._chunks,o=0;o=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,i,o){return _3(t[o],this._dimensions[o])}Bk={arrayRows:e,objectRows:function(t,r,i,o){return _3(t[r],this._dimensions[o])},keyedColumns:e,original:function(t,r,i,o){var a=t&&(null==t.value?t:t.value);return _3(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(t,r,i,o){return t[o]}}}(),n}();const Vk=bpt;var Mpt=Qo(),wpt={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},FH=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=$H(this.source)))},n.prototype.getSourceDimensionIndex=function(e){return Ir(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},n.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=MH(this.source),r=!UH(e),i="",o=[],a=0,s=0;a30}var HH,C3,QC,tb,$k,b3,Uk,JC=mn,gp=Cn,xpt=typeof Int32Array>"u"?Array:Int32Array,Opt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Spt=["_approximateExtent"],Tpt=function(){function n(e,t){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;BH(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var o={},a=[],s={},l=!1,c={},u=0;u=t)){var i=this._store.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList;if(i.getSource().sourceFormat===Wc&&!i.pure)for(var c=[],u=e;u0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var o=i[t];return null==o&&(Ue(o=this.getVisual(t))?o=o.slice():JC(o)&&(o=ge({},o)),i[t]=o),o},n.prototype.setItemVisual=function(e,t,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,JC(t)?ge(i,t):i[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){JC(e)?ge(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?ge(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){(function(n,e,t,r){if(r){var i=eo(r);i.dataIndex=t,i.dataType=e,i.seriesIndex=n,"group"===r.type&&r.traverse(function(o){var a=eo(o);a.seriesIndex=n,a.dataIndex=t,a.dataType=e})}})(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){ht(this._graphicEls,function(r,i){r&&e&&e.call(t,r,i)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:gp(this.dimensions,this._getDimInfo,this),this.hostModel)),$k(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];Qn(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return t.apply(this,[i].concat(p5(arguments)))})},n.internalField=(HH=function(e){var t=e._invertedIndicesMap;ht(t,function(r,i){var o=e._dimInfos[i],a=o.ordinalMeta,s=e._store;if(a){r=t[i]=new xpt(a.categories.length);for(var l=0;l1&&(l+="__ec__"+u),i[t]=l}})),n}();const jH=Tpt;function zk(n,e){Ik(n)||(n=kk(n));var t=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],i=hr(),o=[],a=function Dpt(n,e,t,r){var i=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return ht(e,function(o){var a;mn(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&UH(a),l=r===n.dimensionsDefine,c=l?$H(n):VH(r),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(n,a));for(var h=hr(u),p=new kH(a),g=0;g0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(o),new FH({source:n,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Ipt(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var Hk={},Ept=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(e,t){var r=[];ht(Hk,function(i,o){var a=i.create(e,t);r=r.concat(a||[])}),this._coordinateSystems=r},n.prototype.update=function(e,t){ht(this._coordinateSystems,function(r){r.update&&r.update(e,t)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(e,t){Hk[e]=t},n.get=function(e){return Hk[e]},n}();const jk=Ept;var kpt=function n(e){this.coordSysDims=[],this.axisMap=hr(),this.categoryAxisMap=hr(),this.coordSysName=e},Npt={cartesian2d:function(n,e,t,r){var i=n.getReferringComponents("xAxis",Nu).models[0],o=n.getReferringComponents("yAxis",Nu).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",o),S0(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),S0(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var i=n.getReferringComponents("singleAxis",Nu).models[0];e.coordSysDims=["single"],t.set("single",i),S0(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var i=n.getReferringComponents("polar",Nu).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",o),t.set("angle",a),S0(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),S0(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var i=n.ecModel,o=i.getComponent("parallel",n.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();ht(o.parallelAxisIndex,function(s,l){var c=i.getComponent("parallelAxis",s),u=a[l];t.set(u,c),S0(c)&&(r.set(u,c),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=l))})}};function S0(n){return"category"===n.get("type")}function eb(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}const jpt=function Upt(n,e,t){t=t||{};var i,r=e.getSourceManager(),o=!1;n?(o=!0,i=kk(n)):o=(i=r.getSource()).sourceFormat===Wc;var a=function Rpt(n){var e=n.get("coordinateSystem"),t=new kpt(e),r=Npt[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}(e),s=function Vpt(n,e){var i,t=n.get("coordinateSystem"),r=jk.get(t);return e&&e.coordSysDims&&(i=Cn(e.coordSysDims,function(o){var a={name:o},s=e.axisMap.get(o);if(s){var l=s.get("type");a.type=function cpt(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}(e,a),l=t.useEncodeDefaulter,c=Qn(l)?l:l?Ko(Jft,s,e):null,h=zk(i,{coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o}),p=function $pt(n,e,t){var r,i;return t&&ht(n,function(o,a){var l=t.categoryAxisMap.get(o.coordDim);l&&(null==r&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),e&&(o.createInvertedIndices=!0)),null!=o.otherDims.itemName&&(i=!0)}),!i&&null!=r&&(n[r].otherDims.itemName=0),r}(h.dimensions,t.createInvertedIndices,a),g=o?null:r.getSharedDataStore(h),v=function Lpt(n,e,t){var o,a,s,r=(t=t||{}).byIndex,i=t.stackedCoordDimension;!function Fpt(n){return!BH(n.schema)}(e)?(o=(a=e.schema).dimensions,s=e.store):o=e;var c,u,h,p,l=!(!n||!n.get("stack"));if(ht(o,function(x,P){nn(x)&&(o[P]=x={name:x}),l&&!x.isExtraCoord&&(!r&&!c&&x.ordinalMeta&&(c=x),!u&&"ordinal"!==x.type&&"time"!==x.type&&(!i||i===x.coordDim)&&(u=x))}),u&&!r&&!c&&(r=!0),u){h="__\0ecstackresult_"+n.id,p="__\0ecstackedover_"+n.id,c&&(c.createInvertedIndices=!0);var g=u.coordDim,v=u.type,_=0;ht(o,function(x){x.coordDim===g&&_++});var y={name:h,coordDim:g,coordDimIndex:_,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},C={name:p,coordDim:p,coordDimIndex:_+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,v),C.storeDimIndex=s.ensureCalculationDimension(h,v)),a.appendCalculationDimension(y),a.appendCalculationDimension(C)):(o.push(y),o.push(C))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:p,stackResultDimension:h}}(e,{schema:h,store:g}),_=new jH(h,e);_.setCalculationInfo(v);var y=null!=p&&function zpt(n){if(n.sourceFormat===Wc){var e=function Hpt(n){for(var e=0;e>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),t.push(a)}return t}(e,o),s=function Jpt(n,e,t){for(var r=t?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=n[c].getBoundingClientRect(),h=2*c,p=u.left,g=u.top;a.push(p,g),l=l&&o&&p===o[h]&&g===o[h+1],s.push(n[c].offsetLeft,n[c].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=t?GH(s,a):GH(a,s))}(a,o,i);if(s)return s(n,t,r),!0}return!1}function qH(n){return"CANVAS"===n.nodeName.toUpperCase()}var Qpt=/([&<>"'])/g,tgt={"&":"&","<":"<",">":">",'"':""","'":"'"};function qc(n){return null==n?"":(n+"").replace(Qpt,function(e,t){return tgt[t]})}var w3="ZH",Zk="EN",nb=Zk,x3={},Yk={},ZH=fr.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(w3)>-1?w3:nb;function YH(n,e){n=n.toUpperCase(),Yk[n]=new ms(e),x3[n]=e}YH(Zk,{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:". "}}}}),YH(w3,{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 Xk=1e3,Kk=60*Xk,rb=60*Kk,Zc=24*rb,XH=365*Zc,ib={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}"},P3="{yyyy}-{MM}-{dd}",KH={year:"{yyyy}",month:"{yyyy}-{MM}",day:P3,hour:P3+" "+ib.hour,minute:P3+" "+ib.minute,second:P3+" "+ib.second,millisecond:ib.none},Jk=["year","month","day","hour","minute","second","millisecond"],JH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function C1(n,e){return"0000".substr(0,e-(n+="").length)+n}function T0(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 agt(n){return n===T0(n)}function O3(n,e,t,r){var i=Uh(n),o=i[Qk(t)](),a=i[A0(t)]()+1,s=Math.floor((a-1)/3)+1,l=i[S3(t)](),c=i["get"+(t?"UTC":"")+"Day"](),u=i[ob(t)](),h=(u-1)%12+1,p=i[T3(t)](),g=i[A3(t)](),v=i[D3(t)](),_=r instanceof ms?r:function igt(n){return Yk[n]}(r||ZH)||function ogt(){return Yk[nb]}(),y=_.getModel("time"),C=y.get("month"),x=y.get("monthAbbr"),P=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,C[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,C1(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,C1(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,P[c]).replace(/{ee}/g,S[c]).replace(/{e}/g,c+"").replace(/{HH}/g,C1(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,C1(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,C1(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,C1(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,C1(v,3)).replace(/{S}/g,v+"")}function QH(n,e){var t=Uh(n),r=t[A0(e)]()+1,i=t[S3(e)](),o=t[ob(e)](),a=t[T3(e)](),s=t[A3(e)](),c=0===t[D3(e)](),u=c&&0===s,h=u&&0===a,p=h&&0===o,g=p&&1===i;return g&&1===r?"year":g?"month":p?"day":h?"hour":u?"minute":c?"second":"millisecond"}function tj(n,e,t){var r=Li(n)?Uh(n):n;switch(e=e||QH(n,t)){case"year":return r[Qk(t)]();case"half-year":return r[A0(t)]()>=6?1:0;case"quarter":return Math.floor((r[A0(t)]()+1)/4);case"month":return r[A0(t)]();case"day":return r[S3(t)]();case"half-day":return r[ob(t)]()/24;case"hour":return r[ob(t)]();case"minute":return r[T3(t)]();case"second":return r[A3(t)]();case"millisecond":return r[D3(t)]()}}function Qk(n){return n?"getUTCFullYear":"getFullYear"}function A0(n){return n?"getUTCMonth":"getMonth"}function S3(n){return n?"getUTCDate":"getDate"}function ob(n){return n?"getUTCHours":"getHours"}function T3(n){return n?"getUTCMinutes":"getMinutes"}function A3(n){return n?"getUTCSeconds":"getSeconds"}function D3(n){return n?"getUTCMilliseconds":"getMilliseconds"}function cgt(n){return n?"setUTCFullYear":"setFullYear"}function ej(n){return n?"setUTCMonth":"setMonth"}function nj(n){return n?"setUTCDate":"setDate"}function rj(n){return n?"setUTCHours":"setHours"}function ij(n){return n?"setUTCMinutes":"setMinutes"}function oj(n){return n?"setUTCSeconds":"setSeconds"}function aj(n){return n?"setUTCMilliseconds":"setMilliseconds"}function sj(n){if(!function rft(n){return!isNaN(fp(n))}(n))return nn(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function lj(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var I3=hU;function tR(n,e,t){function i(u){return u&&Ad(u)?u:"-"}function o(u){return!(null==u||isNaN(u)||!isFinite(u))}var a="time"===e,s=n instanceof Date;if(a||s){var l=a?Uh(n):n;if(!isNaN(+l))return O3(l,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",t);if(s)return"-"}if("ordinal"===e)return f5(n)?i(n):Li(n)&&o(n)?n+"":"-";var c=fp(n);return o(c)?sj(c):f5(n)?i(n):"boolean"==typeof n?n+"":"-"}var cj=["a","b","c","d","e","f","g"],eR=function(n,e){return"{"+n+(e??"")+"}"};function uj(n,e,t){Ue(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;or||l.newline?(o=0,g=_,a+=s+t,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+t,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+t:a=v+t)})}var ab=nR;function w1(n,e,t){t=I3(t||0);var r=e.width,i=e.height,o=ho(n.left,r),a=ho(n.top,i),s=ho(n.right,r),l=ho(n.bottom,i),c=ho(n.width,r),u=ho(n.height,i),h=t[2]+t[0],p=t[1]+t[3],g=n.aspect;switch(isNaN(c)&&(c=r-s-p-o),isNaN(u)&&(u=i-l-h-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-h),n.left||n.right){case"center":o=r/2-c/2-t[3];break;case"right":o=r-c-p}switch(n.top||n.bottom){case"middle":case"center":a=i/2-u/2-t[0];break;case"bottom":a=i-u-h}o=o||0,a=a||0,isNaN(c)&&(c=r-p-o-(s||0)),isNaN(u)&&(u=i-h-a-(l||0));var v=new fi(o+t[3],a+t[0],c,u);return v.margin=t,v}function sb(n){var e=n.layoutMode||n.constructor.layoutMode;return mn(e)?e:e?{type:e}:null}function D0(n,e,t){var r=t&&t.ignoreSize;!Ue(r)&&(r=[r,r]);var i=a(M1[0],0),o=a(M1[1],1);function a(u,h){var p={},g=0,v={},_=0;if(E3(u,function(P){v[P]=n[P]}),E3(u,function(P){s(e,P)&&(p[P]=v[P]=e[P]),l(p,P)&&g++,l(v,P)&&_++}),r[h])return l(e,u[1])?v[u[2]]=null:l(e,u[2])&&(v[u[1]]=null),v;if(2===_||!g)return v;if(g>=2)return p;for(var C=0;C=0;l--)s=ri(s,i[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var o=t+"Id";return qC(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(o,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((t=e.prototype).type="component",t.id="",t.name="",t.mainType="",t.subType="",void(t.componentIndex=0)),e;var t}(ms);vU(I0,ms),AO(I0),function Wpt(n){var e={};n.registerSubTypeDefaulter=function(t,r){var i=Dd(t);e[i.main]=r},n.determineSubType=function(t,r){var i=r.type;if(!i){var o=Dd(t).main;n.hasSubTypes(t)&&e[o]&&(i=e[o](r))}return i}}(I0),function qpt(n,e){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 t(o){var a={},s=[];return ht(o,function(l){var c=r(a,l),h=function i(o,a){var s=[];return ht(o,function(l){Ni(a,l)>=0&&s.push(l)}),s}(c.originalDeps=e(l),o);c.entryCount=h.length,0===c.entryCount&&s.push(l),ht(h,function(p){Ni(c.predecessor,p)<0&&c.predecessor.push(p);var g=r(a,p);Ni(g.successor,p)<0&&g.successor.push(l)})}),{graph:a,noEntryList:s}}(a),u=c.graph,h=c.noEntryList,p={};for(ht(o,function(x){p[x]=!0});h.length;){var g=h.pop(),v=u[g],_=!!p[g];_&&(s.call(l,g,v.originalDeps.slice()),delete p[g]),ht(v.successor,_?C:y)}ht(p,function(){throw new Error("")})}function y(x){u[x].entryCount--,0===u[x].entryCount&&h.push(x)}function C(x){p[x]=!0,y(x)}}}(I0,function pgt(n){var e=[];return ht(I0.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=Cn(e,function(t){return Dd(t).main}),"dataset"!==n&&Ni(e,"dataset")<=0&&e.unshift("dataset"),e});const fo=I0;var hj=Qo(),rR=(Qo(),function(){function n(){}return n.prototype.getColorFromPalette=function(e,t,r){var i=gs(this.get("color",!0)),o=this.get("colorLayer",!0);return function fj(n,e,t,r,i,o,a){var s=e(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 mgt(n,e){for(var t=n.length,r=0;re)return n[r];return n[t-1]}(r,a):t;if((u=u||t)&&u.length){var h=u[l];return i&&(c[i]=h),s.paletteIdx=(l+1)%u.length,h}}(this,hj,i,o,e,t,r)},n.prototype.clearColorPalette=function(){!function vgt(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}(this,hj)},n}());var _gt=/\{@(.+?)\}/g,ygt=function(){function n(){}return n.prototype.getDataParams=function(e,t){var r=this.getData(t),i=this.getRawValue(e,t),o=r.getRawIndex(e),a=r.getName(e),s=r.getRawDataItem(e),l=r.getItemVisual(e,"style"),c=l&&l[r.getItemVisual(e,"drawType")||"fill"],u=l&&l.stroke,h=this.mainType,p="series"===h,g=r.userOutput&&r.userOutput.get();return{componentType:h,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:t,value:i,color:c,borderColor:u,dimensionNames:g?g.fullDimensions:null,encode:g?g.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,t,r,i,o,a){t=t||"normal";var s=this.getData(r),l=this.getDataParams(e,r);return a&&(l.value=a.interpolatedValue),null!=i&&Ue(l.value)&&(l.value=l.value[i]),o||(o=s.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),Qn(o)?(l.status=t,l.dimensionIndex=i,o(l)):nn(o)?uj(o,l).replace(_gt,function(h,p){var g=p.length,v=p;"["===v.charAt(0)&&"]"===v.charAt(g-1)&&(v=+v.slice(1,g-1));var _=P0(s,e,v);if(a&&Ue(a.interpolatedValue)){var y=s.getDimensionIndex(v);y>=0&&(_=a.interpolatedValue[y])}return null!=_?_+"":""}):void 0},n.prototype.getRawValue=function(e,t){return P0(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function pj(n){var e,t;return mn(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function lb(n){return new Cgt(n)}var Cgt=function(){function n(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var o,t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(o=this._plan(this.context));var h,a=u(this._modBy),s=this._modDataCount||0,l=u(e&&e.modBy),c=e&&e.modDataCount||0;function u(x){return!(x>=1)&&(x=1),x}(a!==l||s!==c)&&(o="reset"),(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doReset(r)),this._modBy=l,this._modDataCount=c;var p=e&&e.step;if(this._dueEnd=t?t._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&&(h||g1&&r>0?s:a}};return o;function a(){return e=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,e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length;if(R3(e)){var a=e,s=void 0,l=void 0,c=void 0;if(r){var u=t[0];u.prepareSource(),s=(c=u.getSource()).data,l=c.sourceFormat,o=[u._getVersionSign()]}else l=nc(s=a.get("data",!0))?Hh:Wc,o=[];var h=this._getSourceMetaRawOption()||{},p=c&&c.metaRawOption||{},g=Ir(h.seriesLayoutBy,p.seriesLayoutBy)||null,v=Ir(h.sourceHeader,p.sourceHeader),_=Ir(h.dimensions,p.dimensions);i=g!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||_?[Ek(s,{seriesLayoutBy:g,sourceHeader:v,dimensions:_},l)]:[]}else{var C=e;if(r){var x=this._applyTransform(t);i=x.sourceList,o=x.upstreamSignList}else i=[Ek(C.get("source",!0),this._getSourceMetaRawOption(),null)],o=[]}this._setLocalSource(i,o)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),i=t.get("fromTransformResult",!0);null!=i&&1!==e.length&&vj("");var a,s=[],l=[];return ht(e,function(c){c.prepareSource();var u=c.getSource(i||0);null!=i&&!u&&vj(""),s.push(u),l.push(c._getVersionSign())}),r?a=function Tgt(n,e,t){var r=gs(n),i=r.length;i||qs("");for(var a=0,s=i;a1||t>0&&!n.noHeader;return ht(n.blocks,function(i){var o=bj(i);o>=e&&(e=o+ +(r&&(!o||oR(i)&&!i.noHeader)))}),e}return 0}function kgt(n,e,t,r){var i=e.noHeader,o=function Ngt(n){return{html:Igt[n],richText:Egt[n]}}(bj(e)),a=[],s=e.blocks||[];Fh(!s||Ue(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(l0(c,l)){var u=new mpt(c[l],null);s.sort(function(v,_){return u.evaluate(v.sortParam,_.sortParam)})}else"seriesDesc"===l&&s.reverse()}ht(s,function(v,_){var y=e.valueFormatter,C=Cj(v)(y?ge(ge({},n),{valueFormatter:y}):n,v,_>0?o.html:0,r);null!=C&&a.push(C)});var h="richText"===n.renderMode?a.join(o.richText):aR(a.join(""),i?t:o.html);if(i)return h;var p=tR(e.header,"ordinal",n.useUTC),g=yj(r,n.renderMode).nameStyle;return"richText"===n.renderMode?wj(n,p,g)+o.richText+h:aR('
'+qc(p)+"
"+h,t)}function Rgt(n,e,t,r){var i=n.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,c=n.useUTC,u=e.valueFormatter||n.valueFormatter||function(S){return Cn(S=Ue(S)?S:[S],function(N,R){return tR(N,Ue(g)?g[R]:g,c)})};if(!o||!a){var h=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),p=o?"":tR(l,"ordinal",c),g=e.valueType,v=a?[]:u(e.value),_=!s||!o,y=!s&&o,C=yj(r,i),x=C.nameStyle,P=C.valueStyle;return"richText"===i?(s?"":h)+(o?"":wj(n,p,x))+(a?"":function Bgt(n,e,t,r,i){var o=[i];return t&&o.push({padding:[0,0,0,r?10:20],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(Ue(e)?e.join(" "):e,o)}(n,v,_,y,P)):aR((s?"":h)+(o?"":function Lgt(n,e,t){return''+qc(n)+""}(p,!s,x))+(a?"":function Fgt(n,e,t,r){return''+Cn(n=Ue(n)?n:[n],function(a){return qc(a)}).join("  ")+""}(v,_,y,P)),t)}}function Mj(n,e,t,r,i,o){if(n)return Cj(n)({useUTC:i,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter},n,0,o)}function aR(n,e){return'
'+n+'
'}function wj(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function xj(n,e){return n.get("padding")??("richText"===e?[8,10]:10)}var sR=function(){function n(){this.richTextStyles={},this._nextStyleNameId=Az()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var i="richText"===r?this._generateStyleName():null,o=function ugt(n,e){var t=nn(n)?{color:n,extraCssText:e}:n||{},r=t.color,i=t.type;e=t.extraCssText;var o=t.renderMode||"html";return r?"html"===o?"subItem"===i?'':'':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:r,markerId:i});return nn(o)?o:(this.richTextStyles[i]=o.style,o.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};Ue(t)?ht(t,function(o){return ge(r,o)}):ge(r,t);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},n}();var mp=Qo();function N3(n,e){return n.getName(e)||n.getId(e)}var L3=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Jn(e,n),e.prototype.init=function(t,r,i){this.seriesIndex=this.componentIndex,this.dataTask=lb({count:jgt,reset:Ggt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(mp(this).sourceManager=new Dgt(this)).prepareSource();var a=this.getInitialData(t,i);Oj(a,this),this.dataTask.context.data=a,mp(this).dataBeforeProcessed=a,Pj(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(t,r){var i=sb(this),o=i?k3(t):{},a=this.subType;fo.hasClass(a)&&(a+="Series"),ri(t,r.getTheme().get(this.subType)),ri(t,this.getDefaultOption()),hk(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&D0(t,o,i)},e.prototype.mergeOption=function(t,r){t=ri(this.option,t,!0),this.fillDataTextStyle(t.data);var i=sb(this);i&&D0(this.option,t,i);var o=mp(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(t,r);Oj(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,mp(this).dataBeforeProcessed=a,Pj(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!nc(t))for(var r=["show"],i=0;i1||l&&!a){var v=function Ugt(n,e,t,r,i){var o=e.getData(),a=ip(n,function(h,p,g){var v=o.getDimensionInfo(g);return h||v&&!1!==v.tooltip&&null!=v.displayName},!1),s=[],l=[],c=[];function u(h,p){var g=o.getDimensionInfo(p);!g||!1===g.otherDims.tooltip||(a?c.push(cb("nameValue",{markerType:"subItem",markerColor:i,name:g.displayName,value:h,valueType:g.type})):(s.push(h),l.push(g.type)))}return r.length?ht(r,function(h){u(P0(o,t,h),h)}):ht(n,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}(s,e,t,o,c);u=v.inlineValues,h=v.inlineValueTypes,p=v.blocks,g=v.inlineValues[0]}else if(a){var _=i.getDimensionInfo(o[0]);g=u=P0(i,t,o[0]),h=_.type}else g=u=l?s[0]:s;var y=fk(e),C=y&&e.name||"",x=i.getName(t),P=r?C:x;return cb("section",{header:C,noHeader:r||!y,sortParam:g,blocks:[cb("nameValue",{markerType:"item",markerColor:c,name:P,noName:!Ad(P),value:u,valueType:h})].concat(p||[])})}({series:this,dataIndex:t,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(fr.node&&(!t||!t.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,i){var o=this.ecModel,a=rR.prototype.getColorFromPalette.call(this,t,r,i);return a||(a=o.getColorFromPalette(t,r,i)),a},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,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},e.prototype.isSelected=function(t,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return("all"===i||i[N3(o,t)])&&!o.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,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){mn(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,u=0;u0&&this._innerSelect(t,r)}},e.registerClass=function(t){return fo.registerClass(t)},e.protoInitialize=((t=e.prototype).type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",void(t.visualDrawType="fill")),e;var t}(fo);function Pj(n){var e=n.name;fk(n)||(n.name=function Hgt(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return ht(t,function(i){var o=e.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}(n)||e)}function jgt(n){return n.model.getRawData().count()}function Ggt(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),Wgt}function Wgt(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Oj(n,e){ht(function edt(n,e){for(var t=new n.constructor(n.length+e.length),r=0;r1&&(a*=uR(v),s*=uR(v));var _=(i===o?-1:1)*uR((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,C=_*-s*p/a,x=(n+t)/2+B3(h)*y-F3(h)*C,P=(e+r)/2+F3(h)*y+B3(h)*C,S=Ij([1,0],[(p-y)/a,(g-C)/s]),N=[(p-y)/a,(g-C)/s],R=[(-1*p-y)/a,(-1*g-C)/s],z=Ij(N,R);if(dR(N,R)<=-1&&(z=ub),dR(N,R)>=1&&(z=0),z<0){var $=Math.round(z/ub*1e6)/1e6;z=2*ub+$%2*ub}u.addData(c,x,P,a,s,S,z,h,o)}var t1t=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,e1t=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,kj=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return Fi(e,n),e.prototype.applyTransform=function(t){},e}(Ui);function Rj(n){return null!=n.setData}function Nj(n,e){var t=function n1t(n){var e=new dp;if(!n)return e;var a,t=0,r=0,i=t,o=r,s=dp.CMD,l=n.match(t1t);if(!l)return e;for(var c=0;c=0&&(i.splice(o,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var i=Ni(this._children,t);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(t,r){var i=this._children,o=i[r];if(t&&t!==this&&t.parent!==this&&t!==o){i[r]=t,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,i=this._children,o=Ni(i,t);return o<0||(i.splice(o,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,i=0;ixt*xt+Ft*Ft&&($=K,W=Q),{cx:$,cy:W,x0:-u,y0:-h,x1:$*(i/N-1),y1:W*(i/N-1)}}var d1t=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},Uj=function(n){function e(t){return n.call(this,t)||this}return Fi(e,n),e.prototype.getDefaultShape=function(){return new d1t},e.prototype.buildPath=function(t,r){!function u1t(n,e){var t,r=hb(e.r,0),i=hb(e.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=e.startAngle,c=e.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=e.cx,h=e.cy,p=!!e.clockwise,g=$j(c-l),v=g>hR&&g%hR;if(v>Fu&&(g=v),r>Fu)if(g>hR-Fu)n.moveTo(u+r*R0(l),h+r*P1(l)),n.arc(u,h,r,l,c,!p),i>Fu&&(n.moveTo(u+i*R0(c),h+i*P1(c)),n.arc(u,h,i,c,l,p));else{var _=void 0,y=void 0,C=void 0,x=void 0,P=void 0,S=void 0,N=void 0,R=void 0,z=void 0,$=void 0,W=void 0,K=void 0,Q=void 0,rt=void 0,ut=void 0,xt=void 0,Ft=r*R0(l),Rt=r*P1(l),me=i*R0(c),lt=i*P1(c),gt=g>Fu;if(gt){var St=e.cornerRadius;St&&(t=function c1t(n){var e;if(Ue(n)){var t=n.length;if(!t)return n;e=1===t?[n[0],n[0],0,0]:2===t?[n[0],n[0],n[1],n[1]]:3===t?n.concat(n[2]):n}else e=[n,n,n,n];return e}(St),_=t[0],y=t[1],C=t[2],x=t[3]);var Jt=$j(r-i)/2;if(P=Fd(Jt,C),S=Fd(Jt,x),N=Fd(Jt,_),R=Fd(Jt,y),W=z=hb(P,S),K=$=hb(N,R),(z>Fu||$>Fu)&&(Q=r*R0(c),rt=r*P1(c),ut=i*R0(l),xt=i*P1(l),gFu){var gi=Fd(C,W),kr=Fd(x,W),Xe=V3(ut,xt,Ft,Rt,r,gi,p),Tn=V3(Q,rt,me,lt,r,kr,p);n.moveTo(u+Xe.cx+Xe.x0,h+Xe.cy+Xe.y0),W0&&n.arc(u+Xe.cx,h+Xe.cy,gi,vs(Xe.y0,Xe.x0),vs(Xe.y1,Xe.x1),!p),n.arc(u,h,r,vs(Xe.cy+Xe.y1,Xe.cx+Xe.x1),vs(Tn.cy+Tn.y1,Tn.cx+Tn.x1),!p),kr>0&&n.arc(u+Tn.cx,h+Tn.cy,kr,vs(Tn.y1,Tn.x1),vs(Tn.y0,Tn.x0),!p))}else n.moveTo(u+Ft,h+Rt),n.arc(u,h,r,l,c,!p);else n.moveTo(u+Ft,h+Rt);i>Fu&>?K>Fu?(gi=Fd(_,K),Xe=V3(me,lt,Q,rt,i,-(kr=Fd(y,K)),p),Tn=V3(Ft,Rt,ut,xt,i,-gi,p),n.lineTo(u+Xe.cx+Xe.x0,h+Xe.cy+Xe.y0),K<$&&gi===kr?n.arc(u+Xe.cx,h+Xe.cy,K,vs(Xe.y0,Xe.x0),vs(Tn.y0,Tn.x0),!p):(kr>0&&n.arc(u+Xe.cx,h+Xe.cy,kr,vs(Xe.y0,Xe.x0),vs(Xe.y1,Xe.x1),!p),n.arc(u,h,i,vs(Xe.cy+Xe.y1,Xe.cx+Xe.x1),vs(Tn.cy+Tn.y1,Tn.cx+Tn.x1),p),gi>0&&n.arc(u+Tn.cx,h+Tn.cy,gi,vs(Tn.y1,Tn.x1),vs(Tn.y0,Tn.x0),!p))):(n.lineTo(u+me,h+lt),n.arc(u,h,i,c,l,p)):n.lineTo(u+me,h+lt)}else n.moveTo(u,h);n.closePath()}}}(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ui);Uj.prototype.type="sector";const fb=Uj;var h1t=function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0},zj=function(n){function e(t){return n.call(this,t)||this}return Fi(e,n),e.prototype.getDefaultShape=function(){return new h1t},e.prototype.buildPath=function(t,r){var i=r.cx,o=r.cy,a=2*Math.PI;t.moveTo(i+r.r,o),t.arc(i,o,r.r,0,a,!1),t.moveTo(i+r.r0,o),t.arc(i,o,r.r0,0,a,!0)},e}(Ui);zj.prototype.type="ring";const Hj=zj;function jj(n,e,t){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function f1t(n,e,t,r){var l,c,u,h,i=[],o=[],a=[],s=[];if(r){u=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,g=n.length;pS1[1]){if(s=!1,o)return s;var u=Math.abs(S1[0]-O1[1]),h=Math.abs(O1[0]-S1[1]);Math.min(u,h)>i.len()&&Fn.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?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),a&&a(1),o&&o()}function Bd(n,e,t,r,i,o){pR("update",n,e,t,r,i,o)}function vp(n,e,t,r,i,o){pR("enter",n,e,t,r,i,o)}function pb(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function sG(n){return!n.isGroup}function lG(n,e,t){if(n&&e){var o=function r(a){var s={};return a.traverse(function(l){sG(l)&&l.anid&&(s[l.anid]=l)}),s}(n);e.traverse(function(a){if(sG(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Bd(a,l,t,eo(a).dataIndex)}}})}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return function B1t(n){return null!=n.shape}(a)&&(s.shape=ge({},a.shape)),s}}function V1t(n,e){return Cn(n,function(t){var r=t[0];r=G3(r,e.x),r=W3(r,e.x+e.width);var i=t[1];return i=G3(i,e.y),[r,i=W3(i,e.y+e.height)]})}function $1t(n,e){var t=G3(n.x,e.x),r=W3(n.x+n.width,e.x+e.width),i=G3(n.y,e.y),o=W3(n.y+n.height,e.y+e.height);if(r>=t&&o>=i)return{x:t,y:i,width:r-t,height:o-i}}function _R(n,e,t){var r=ge({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return 0===n.indexOf("image://")?(i.image=n.slice(8),hi(i,t),new h1(r)):mR(n.replace("path://",""),r,t,"center")}function U1t(n,e,t,r,i){for(var o=0,a=i[i.length-1];o=-1e-6}(p))return!1;var g=n-i,v=e-o,_=yR(g,v,l,c)/p;if(_<0||_>1)return!1;var y=yR(g,v,u,h)/p;return!(y<0||y>1)}function yR(n,e,t,r){return n*r-t*e}function CR(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,i=nn(e)?{formatter:e}:e,o=t.mainType,a=t.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=n.formatterParamsExtra;l&&ht(uo(l),function(u){l0(s,u)||(s[u]=l[u],s.$vars.push(u))});var c=eo(n.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:hi({content:r,formatterParams:s},i)}}function uG(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function bR(n,e){if(n)if(Ue(n))for(var t=0;t-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(E0);const Q1t=J1t;function hG(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(1===r){var i=P0(n,e,t[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a0?+y:1;ut.scaleX=this._sizeX*xt,ut.scaleY=this._sizeY*xt,this.setSymbolScale(1),d3(this,p,g,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var o=this.childAt(0),a=eo(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&j3(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();j3(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return function K1t(n){return Ue(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}(t.getItemVisual(r,"symbolSize"))},e}(Zs);function nmt(n,e){this.parent.drift(n,e)}const wR=emt;function xR(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==n.getItemVisual(t,"symbol")}function fG(n){return null!=n&&!mn(n)&&(n={isIgnore:n}),n||{}}function pG(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:p3(e),cursorStyle:e.get("cursor")}}var rmt=function(){function n(e){this.group=new Zs,this._SymbolCtor=e||wR}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=fG(t);var r=this.group,i=e.hostModel,o=this._data,a=this._SymbolCtor,s=t.disableAnimation,l=pG(e),c={disableAnimation:s},u=t.getSymbolPoint||function(h){return e.getItemLayout(h)};o||r.removeAll(),e.diff(o).add(function(h){var p=u(h);if(xR(e,p,h,t)){var g=new a(e,h,l,c);g.setPosition(p),e.setItemGraphicEl(h,g),r.add(g)}}).update(function(h,p){var g=o.getItemGraphicEl(p),v=u(h);if(xR(e,v,h,t)){var _=e.getItemVisual(h,"symbol")||"circle",y=g&&g.getSymbolType&&g.getSymbolType();if(!g||y&&y!==_)r.remove(g),(g=new a(e,h,l,c)).setPosition(v);else{g.updateData(e,h,l,c);var C={x:v[0],y:v[1]};s?g.attr(C):Bd(g,C,i)}r.add(g),e.setItemGraphicEl(h,g)}else r.remove(g)}).remove(function(h){var p=o.getItemGraphicEl(h);p&&p.fadeOut(function(){r.remove(p)},i)}).execute(),this._getSymbolPoint=u,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var o=e._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=pG(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],r=fG(r);for(var o=e.start;o0?t=r[0]:r[1]<0&&(t=r[1]),t}(i,t),a=r.dim,s=i.dim,l=e.mapDimension(s),c=e.mapDimension(a),u="x"===s||"radius"===s?1:0,h=Cn(n.dimensions,function(v){return e.mapDimension(v)}),p=!1,g=e.getCalculationInfo("stackResultDimension");return eb(e,h[0])&&(p=!0,h[0]=g),eb(e,h[1])&&(p=!0,h[1]=g),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function mG(n,e,t,r){var i=NaN;n.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=n.valueStart);var o=n.baseDataOffset,a=[];return a[o]=t.get(n.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var vG=typeof Float32Array<"u",amt=vG?Float32Array:Array;function L0(n){return Ue(n)?vG?new Float32Array(n):n:new amt(n)}var _p=Math.min,yp=Math.max;function T1(n,e){return isNaN(n)||isNaN(e)}function PR(n,e,t,r,i,o,a,s,l){for(var c,u,h,p,g,v,_=t,y=0;y=i||_<0)break;if(T1(C,x)){if(l){_+=o;continue}break}if(_===t)n[o>0?"moveTo":"lineTo"](C,x),h=C,p=x;else{var P=C-c,S=x-u;if(P*P+S*S<.5){_+=o;continue}if(a>0){for(var N=_+o,R=e[2*N],z=e[2*N+1];R===C&&z===x&&y=r||T1(R,z))g=C,v=x;else{K=R-c,Q=z-u;var xt=C-c,Ft=R-C,Rt=x-u,me=z-x,lt=void 0,gt=void 0;if("x"===s){var St=K>0?1:-1;g=C-St*(lt=Math.abs(xt))*a,v=x,rt=C+St*(gt=Math.abs(Ft))*a,ut=x}else if("y"===s){var Jt=Q>0?1:-1;g=C,v=x-Jt*(lt=Math.abs(Rt))*a,rt=C,ut=x+Jt*(gt=Math.abs(me))*a}else lt=Math.sqrt(xt*xt+Rt*Rt),g=C-K*a*(1-(W=(gt=Math.sqrt(Ft*Ft+me*me))/(gt+lt))),v=x-Q*a*(1-W),ut=x+Q*a*W,rt=_p(rt=C+K*a*W,yp(R,C)),ut=_p(ut,yp(z,x)),rt=yp(rt,_p(R,C)),v=x-(Q=(ut=yp(ut,_p(z,x)))-x)*lt/gt,g=_p(g=C-(K=rt-C)*lt/gt,yp(c,C)),v=_p(v,yp(u,x)),rt=C+(K=C-(g=yp(g,_p(c,C))))*gt/lt,ut=x+(Q=x-(v=yp(v,_p(u,x))))*gt/lt}n.bezierCurveTo(h,p,g,v,C,x),h=rt,p=ut}else n.lineTo(C,x)}c=C,u=x,_+=o}return y}var _G=function n(){this.smooth=0,this.smoothConstraint=!0},cmt=function(n){function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return Jn(e,n),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _G},e.prototype.buildPath=function(t,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&T1(i[2*a-2],i[2*a-1]);a--);for(;o=0){var S=c?(v-l)*P+l:(g-s)*P+s;return c?[t,S]:[S,t]}s=g,l=v;break;case a.C:g=o[h++],v=o[h++],_=o[h++],y=o[h++],C=o[h++],x=o[h++];var N=c?BO(s,g,_,C,t,u):BO(l,v,y,x,t,u);if(N>0)for(var R=0;R=0)return S=c?_a(l,v,y,x,z):_a(s,g,_,C,z),c?[t,S]:[S,t]}s=C,l=x}}},e}(Ui),umt=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return Jn(e,n),e}(_G),dmt=function(n){function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return Jn(e,n),e.prototype.getDefaultShape=function(){return new umt},e.prototype.buildPath=function(t,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&T1(i[2*s-2],i[2*s-1]);s--);for(;ar)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return ht(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}(t,l,a),K=this._data;K&&K.eachItemGraphicEl(function(Pn,Vr){Pn.__temp&&(s.remove(Pn),K.setItemGraphicEl(Vr,null))}),z||v.remove(),s.add(C);var rt,Q=!p&&t.get("step");a&&a.getArea&&t.get("clip",!0)&&(null!=(rt=a.getArea()).width?(rt.x-=.1,rt.y-=.1,rt.width+=.2,rt.height+=.2):rt.r0&&(rt.r0-=.5,rt.r+=.5)),this._clipShapeForSymbol=rt;var ut=function ymt(n,e,t){var r=n.getVisual("visualMeta");if(r&&r.length&&n.count()&&"cartesian2d"===e.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=e.getAxis(i),c=Cn(o.stops,function(P){return{coord:l.toGlobalCoord(l.dataToCoord(P.value)),color:P.color}}),u=c.length,h=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var p=function _mt(n,e){var i,o,t=[],r=n.length;function a(u,h,p){var g=u.coord,_=function Jdt(n,e,t){if(e&&e.length&&n>=0&&n<=1){var r=n*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=Hc(e[i]),s=Hc(e[o]),l=r-i,c=n1([ku(lp(a[0],s[0],l)),ku(lp(a[1],s[1],l)),ku(lp(a[2],s[2],l)),LC(lp(a[3],s[3],l))],"rgba");return t?{color:c,leftIndex:i,rightIndex:o,value:r}:c}}((p-g)/(h.coord-g),[u.color,h.color]);return{coord:p,color:_}}for(var s=0;se){o?t.push(a(o,l,e)):i&&t.push(a(i,l,0),a(i,l,e));break}i&&(t.push(a(i,l,0)),i=null),t.push(l),o=l}}return t}(c,"x"===i?t.getWidth():t.getHeight()),g=p.length;if(!g&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var _=p[0].coord-10,y=p[g-1].coord+10,C=y-_;if(C<.001)return"transparent";ht(p,function(P){P.offset=(P.coord-_)/C}),p.push({offset:g?p[g-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:g?p[0].offset:.5,color:h[0]||"transparent"});var x=new Qj(0,0,0,0,p,!0);return x[i]=_,x[i+"2"]=y,x}}}(l,a,i)||l.getVisual("style")[l.getVisual("drawType")];if(_&&g.type===a.type&&Q===this._step){P&&!y?y=this._newPolygon(h,R):y&&!P&&(C.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,b1(ut));var xt=C.getClipPath();xt?vp(xt,{shape:SR(this,a,!1,t).shape},t):C.setClipPath(SR(this,a,!0,t)),z&&v.updateData(l,{isIgnore:W,clipShape:rt,disableAnimation:!0,getSymbolPoint:function(Pn){return[h[2*Pn],h[2*Pn+1]]}}),(!PG(this._stackedOnPoints,R)||!PG(this._points,h))&&(x?this._doUpdateAnimation(l,R,a,i,Q,S,$):(Q&&(h=Cp(h,a,Q,$),R&&(R=Cp(R,a,Q,$))),_.setShape({points:h}),y&&y.setShape({points:h,stackedOnPoints:R})))}else z&&v.updateData(l,{isIgnore:W,clipShape:rt,disableAnimation:!0,getSymbolPoint:function(Pn){return[h[2*Pn],h[2*Pn+1]]}}),x&&this._initSymbolLabelAnimation(l,a,rt),Q&&(h=Cp(h,a,Q,$),R&&(R=Cp(R,a,Q,$))),_=this._newPolyline(h),P?y=this._newPolygon(h,R):y&&(C.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,b1(ut)),C.setClipPath(SR(this,a,!0,t));var Rt=t.getModel("emphasis"),me=Rt.get("focus"),lt=Rt.get("blurScope"),gt=Rt.get("disabled");_.useStyle(hi(c.getLineStyle(),{fill:"none",stroke:ut,lineJoin:"bevel"})),xk(_,t,"lineStyle"),_.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(_.getState("emphasis").style.lineWidth=+_.style.lineWidth+1),eo(_).seriesIndex=t.seriesIndex,d3(_,me,lt,gt);var Jt=TG(t.get("smooth")),qt=t.get("smoothMonotone");if(_.setShape({smooth:Jt,smoothMonotone:qt,connectNulls:$}),y){var re=l.getCalculationInfo("stackedOnSeries"),Te=0;y.useStyle(hi(u.getAreaStyle(),{fill:ut,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),re&&(Te=TG(re.get("smooth"))),y.setShape({smooth:Jt,stackedOnSmooth:Te,smoothMonotone:qt,connectNulls:$}),xk(y,t,"areaStyle"),eo(y).seriesIndex=t.seriesIndex,d3(y,me,lt,gt)}var hn=function(Pn){o._changePolyState(Pn)};l.eachItemGraphicEl(function(Pn){Pn&&(Pn.onHoverStateChange=hn)}),this._polyline.onHoverStateChange=hn,this._data=l,this._coordSys=a,this._stackedOnPoints=R,this._points=h,this._step=Q,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,_),y&&this.packEventData(t,y))},e.prototype.packEventData=function(t,r){eo(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,o){var a=t.getData(),s=p1(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],h=l[2*s+1];if(isNaN(u)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,h))return;var p=t.get("zlevel")||0,g=t.get("z")||0;(c=new wR(a,s)).x=u,c.y=h,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 Gh.prototype.highlight.call(this,t,r,i,o)},e.prototype.downplay=function(t,r,i,o){var a=t.getData(),s=p1(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 Gh.prototype.downplay.call(this,t,r,i,o)},e.prototype._changePolyState=function(t){var r=this._polygon;qz(this._polyline,t),r&&qz(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new cmt({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new dmt({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,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=t.hostModel,u=c.get("animationDuration");Qn(u)&&(u=u(null));var h=c.get("animationDelay")||0,p=Qn(h)?h(null):h;t.eachItemGraphicEl(function(g,v){var _=g;if(_){var C=void 0,x=void 0,P=void 0;if(i)if(a){var S=i,N=r.pointToCoord([g.x,g.y]);o?(C=S.startAngle,x=S.endAngle,P=-N[1]/180*Math.PI):(C=S.r0,x=S.r,P=N[0])}else o?(C=i.x,x=i.x+i.width,P=g.x):(C=i.y+i.height,x=i.y,P=g.y);var z=x===C?0:(P-C)/(x-C);l&&(z=1-z);var $=Qn(h)?h(v):u*z+p,W=_.getSymbolPath(),K=W.getTextContent();_.attr({scaleX:0,scaleY:0}),_.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:$}),K&&K.animateFrom({style:{opacity:0}},{duration:300,delay:$}),W.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var o=t.getModel("endLabel");if(DG(t)){var a=t.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 ps({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=function wmt(n){for(var e=n.length/2;e>0&&Mmt(n[2*e-2],n[2*e-1]);e--);return e-1}(l);u>=0&&(f3(s,p3(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:u,defaultText:function(h,p,g){return null!=g?function tmt(n,e){var t=n.mapDimensionsAll("defaultedLabel");if(!Ue(e))return e+"";for(var r=[],i=0;i=0&&r.push(e[o])}return r.join(" ")}(a,g):hG(a,h)},enableTextSetter:!0},function Pmt(n,e){var t=e.getBaseAxis(),r=t.isHorizontal(),i=t.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)},e.prototype._endLabelOnDuring=function(t,r,i,o,a,s,l){var c=this._endLabel,u=this._polyline;if(c){t<1&&null==o.originalX&&(o.originalX=c.x,o.originalY=c.y);var h=i.getLayout("points"),p=i.hostModel,g=p.get("connectNulls"),v=s.get("precision"),_=s.get("distance")||0,y=l.getBaseAxis(),C=y.isHorizontal(),x=y.inverse,P=r.shape,S=x?C?P.x:P.y+P.height:C?P.x+P.width:P.y,N=(C?_:0)*(x?-1:1),R=(C?0:-_)*(x?-1:1),z=C?"x":"y",$=function xmt(n,e,t){for(var o,a,r=n.length/2,i="x"===t?0:1,s=0,l=-1,c=0;c=e||o>=e&&a<=e){l=c;break}s=c,o=a}return{range:[s,l],t:(e-o)/(a-o)}}(h,S,z),W=$.range,K=W[1]-W[0],Q=void 0;if(K>=1){if(K>1&&!g){var rt=AG(h,W[0]);c.attr({x:rt[0]+N,y:rt[1]+R}),a&&(Q=p.getRawValue(W[0]))}else{(rt=u.getPointOn(S,z))&&c.attr({x:rt[0]+N,y:rt[1]+R});var ut=p.getRawValue(W[0]),xt=p.getRawValue(W[1]);a&&(Q=function vft(n,e,t,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Li(r))return Jo(a=Ez(t||0,r,i),o?Math.max($h(t||0),$h(r)):e);if(nn(r))return i<1?t:r;for(var s=[],l=t,c=r,u=Math.max(l?l.length:0,c.length),h=0;h0?W[0]:0;rt=AG(h,Ft),a&&(Q=p.getRawValue(Ft)),c.attr({x:rt[0]+N,y:rt[1]+R})}a&&g3(c).setLabelText(Q)}},e.prototype._doUpdateAnimation=function(t,r,i,o,a,s,l){var c=this._polyline,u=this._polygon,h=t.hostModel,p=function lmt(n,e,t,r,i,o,a,s){for(var l=function smt(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}(n,e),c=[],u=[],h=[],p=[],g=[],v=[],_=[],y=gG(i,e,a),C=n.getLayout("points")||[],x=e.getLayout("points")||[],P=0;P3e3||u&&SG(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 C={shape:{points:_}};p.current!==g&&(C.shape.__points=p.next),c.stopAnimation(),Bd(c,C,h),u&&(u.setShape({points:g,stackedOnPoints:v}),u.stopAnimation(),Bd(u,{shape:{stackedOnPoints:y}},h),c.shape.points!==u.shape.points&&(u.shape.points=c.shape.points));for(var x=[],P=p.status,S=0;Se&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&"cartesian2d"===a.type&&o){var l=a.getBaseAxis(),c=a.getOtherAxis(l),u=l.getExtent(),h=r.getDevicePixelRatio(),p=Math.abs(u[1]-u[0])*(h||1),g=Math.round(s/p);if(isFinite(g)&&g>1){"lttb"===o&&e.setData(i.lttbDownSample(i.mapDimension(c.dim),1/g));var v=void 0;nn(o)?v=Amt[o]:Qn(o)&&(v=o),v&&e.setData(i.downSample(i.mapDimension(c.dim),1/g,v,Dmt))}}}}}("line"))}function TR(n,e){return"all"===n||Ue(n)&&Ni(n,e)>=0||n===e}function AR(n){var e=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[mb(n)]}function DR(n){return!!n.get(["handle","show"])}function mb(n){return n.type+"||"+n.id}var IR=function(){function n(){this.group=new Zs,this.uid=M3("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,i){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,i){},n.prototype.updateLayout=function(e,t,r,i){},n.prototype.updateVisual=function(e,t,r,i){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();m5(IR),AO(IR);const Wh=IR;var IG={},Vmt=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=e.type,t}return Jn(e,n),e.prototype.render=function(t,r,i,o){this.axisPointerClass&&function Fmt(n){var e=AR(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,i=t.option,o=t.get("status"),a=t.get("value");null!=a&&(a=r.parse(a));var s=DR(t);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?e.targetTouches[0]:e.changedTouches[0];a&&kR(n,a,e,t)}else{kR(n,e,e,t);var o=function zmt(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;return null==t||null==r?e:3*Math.abs(0!==r?r:t)*(r>0?-1:r<0?1:t>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&$mt.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function jmt(n,e,t,r){n.removeEventListener(e,t,r)}var RG=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0},Z3="\0__throttleOriginMethod",NG="\0__throttleRate",LG="\0__throttleType";function FG(n,e,t){var r,s,l,c,u,i=0,o=0,a=null;function h(){o=(new Date).getTime(),a=null,n.apply(l,c||[])}e=e||0;var p=function(){for(var g=[],v=0;v=0?h():a=setTimeout(h,-s),i=r};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(g){u=g},p}function BG(n,e,t,r){var i=n[e];if(i){var o=i[Z3]||i;if(i[NG]!==t||i[LG]!==r){if(null==t||!r)return n[e]=o;(i=n[e]=FG(o,t,"debounce"===r))[Z3]=o,i[LG]=r,i[NG]=t}return i}}function NR(n,e){var t=n[e];t&&t[Z3]&&(t.clear&&t.clear(),n[e]=t[Z3])}var A1=Qo(),VG=Br,LR=oo,Gmt=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,i){var o=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,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,e,t,r);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(e,t);if(s){var p=Ko($G,t,h);this.updatePointerEl(s,c,p),this.updateLabelEl(s,c,p,t)}else s=this._group=new Zs,this.createPointerEl(s,c,e,t),this.createLabelEl(s,c,e,t),r.getZr().add(s);HG(s,t,!0),this._renderHandle(o)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),i=e.axis,o="category"===i.type,a=t.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=AR(e).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return!0===r},n.prototype.makeElOption=function(e,t,r,i,o){},n.prototype.createPointerEl=function(e,t,r,i){var o=t.pointer;if(o){var a=A1(e).pointerEl=new Vt[o.type](VG(t.pointer));e.add(a)}},n.prototype.createLabelEl=function(e,t,r,i){if(t.label){var o=A1(e).labelEl=new ps(VG(t.label));e.add(o),zG(o,i)}},n.prototype.updatePointerEl=function(e,t,r){var i=A1(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),r(i,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,i){var o=A1(e).labelEl;o&&(o.setStyle(t.label.style),r(o,{x:t.label.x,y:t.label.y}),zG(o,i))},n.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var s,t=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=t.getModel("handle"),a=t.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=_R(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){RG(c.event)},onmousedown:LR(this._onHandleDragMove,this,0,0),drift:LR(this._onHandleDragMove,this),ondragend:LR(this._onHandleDragEnd,this)}),r.add(i)),HG(i,t,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");Ue(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,BG(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){$G(this._axisPointerModel,!t&&this._moveAnimation,this._handle,FR(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(FR(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(FR(i)),A1(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,i=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),NR(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return{x:e[r=r||0],y:e[1-r],width:t[r],height:t[1-r]}},n}();function $G(n,e,t,r){UG(A1(t).lastProp,r)||(A1(t).lastProp=r,e?Bd(t,r,n):(t.stopAnimation(),t.attr(r)))}function UG(n,e){if(mn(n)&&mn(e)){var t=!0;return ht(e,function(r,i){t=t&&UG(n[i],r)}),!!t}return n===e}function zG(n,e){n[e.get(["label","show"])?"show":"hide"]()}function FR(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function HG(n,e,t){var r=e.get("z"),i=e.get("zlevel");n&&n.traverse(function(o){"group"!==o.type&&(null!=r&&(o.z=r),null!=i&&(o.zlevel=i),o.silent=t)})}const Wmt=Gmt;var jG=function(){function n(e){this._setting=e||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(e){return this._setting[e]},n.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();AO(jG);const qh=jG;var qmt=0,Zmt=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++qmt}return n.createByAxisModel=function(e){var t=e.option,r=t.data,i=r&&Cn(r,Ymt);return new n({categories:i,needCollect:!i,deduplication:!1!==t.dedplication})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!nn(e)&&!r)return e;if(r&&!this._deduplication)return this.categories[t=this.categories.length]=e,t;var i=this._getOrCreateMap();return null==(t=i.get(e))&&(r?(this.categories[t=this.categories.length]=e,i.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=hr(this.categories))},n}();function Ymt(n){return mn(n)&&null!=n.value?n.value:n+""}const BR=Zmt;function VR(n){return"interval"===n.type||"log"===n.type}function $R(n){var e=Math.pow(10,dk(n)),t=n/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Jo(t*e)}function GG(n){return $h(n)+2}function WG(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function Y3(n,e){return n>=e[0]&&n<=e[1]}function X3(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function K3(n,e){return n*(e[1]-e[0])+e[0]}var qG=function(n){function e(t){var r=n.call(this,t)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new BR({})),Ue(i)&&(i=new BR({categories:Cn(i,function(o){return mn(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return Jn(e,n),e.prototype.parse=function(t){return null==t?NaN:nn(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Y3(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return X3(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(K3(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,i=r[0];i<=r[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var r=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(qh);qh.registerClass(qG);const ZG=qG;var D1=Jo,YG=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Jn(e,n),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Y3(t,this._extent)},e.prototype.normalize=function(t){return X3(t,this._extent)},e.prototype.scale=function(t){return K3(t,this._extent)},e.prototype.setExtent=function(t,r){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(r)||(i[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=GG(t)},e.prototype.getTicks=function(t){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(t?{value:D1(u+r,a)}:{value:i[1]}),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;ao[0]&&gr&&(a=i.interval=r);var s=i.intervalPrecision=GG(a);return function Kmt(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),WG(n,0,e),WG(n,1,e),n[0]>n[1]&&(n[0]=n[1])}(i.niceTickExtent=[Jo(Math.ceil(n[0]/a)*a,s),Jo(Math.floor(n[1]/a)*a,s)],n),i}(o,t,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var r=this._extent;if(r[0]===r[1])if(0!==r[0]){var i=Math.abs(r[0]);t.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(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(r[0]=D1(Math.floor(r[0]/a)*a)),t.fixMax||(r[1]=D1(Math.ceil(r[1]/a)*a))},e.prototype.setNiceExtent=function(t,r){this._niceExtent=[t,r]},e.type="interval",e}(qh);qh.registerClass(YG);const vb=YG;var UR="__ec_stack_";function zR(n){return n.get("stack")||UR+n.seriesIndex}function HR(n){return n.dim+n.index}function KG(n){var e=function Jmt(n){var e={};ht(n,function(l){var u=l.coordinateSystem.getBaseAxis();if("time"===u.type||"value"===u.type)for(var h=l.getData(),p=u.dim+"_"+u.index,g=h.getDimensionIndex(h.mapDimension(u.dim)),v=h.getStore(),_=0,y=v.count();_0&&(o=null===o?s:Math.min(o,s))}t[r]=o}}return t}(n),t=[];return ht(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=e[o.dim+"_"+o.index],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),p=Math.abs(h[1]-h[0]);s=c?u/p*c:u}else{var g=r.getData();s=Math.abs(a[1]-a[0])/g.count()}var v=ho(r.get("barWidth"),s),_=ho(r.get("barMaxWidth"),s),y=ho(r.get("barMinWidth")||(function tW(n){return n.pipelineContext&&n.pipelineContext.large}(r)?.5:1),s),C=r.get("barGap"),x=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:v,barMaxWidth:_,barMinWidth:y,barGap:C,barCategoryGap:x,axisKey:HR(o),stackId:zR(r)})}),function JG(n){var e={};ht(n,function(r,i){var o=r.axisKey,a=r.bandWidth,s=e[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[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 h=r.barMaxWidth;h&&(l[c].maxWidth=h);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 t={};return ht(e,function(r,i){t[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(null==s){var l=uo(o).length;s=Math.max(35-4*l,15)+"%"}var c=ho(s,a),u=ho(r.gap,1),h=r.remainedWidth,p=r.autoWidthCount,g=(h-c)/(p+(p-1)*u);g=Math.max(g,0),ht(o,function(C){var x=C.maxWidth,P=C.minWidth;if(C.width){var S=C.width;x&&(S=Math.min(S,x)),P&&(S=Math.max(S,P)),C.width=S,h-=S+u*S,p--}else S=g,x&&xS&&(S=P),S!==g&&(C.width=S,h-=S+u*S,p--)}),g=(h-c)/(p+(p-1)*u),g=Math.max(g,0);var _,v=0;ht(o,function(C,x){C.width||(C.width=g),_=C,v+=C.width*(1+u)}),_&&(v-=_.width*u);var y=-v/2;ht(o,function(C,x){t[i][x]=t[i][x]||{bandWidth:a,offset:y,width:C.width},y+=C.width*(1+u)})}),t}(t)}var eW=function(n){function e(t){var r=n.call(this,t)||this;return r.type="time",r}return Jn(e,n),e.prototype.getLabel=function(t){var r=this.getSetting("useUTC");return O3(t.value,KH[function sgt(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(T0(this._minLevelUnit))]||KH.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,r,i){var o=this.getSetting("useUTC");return function lgt(n,e,t,r,i){var o=null;if(nn(t))o=t;else if(Qn(t))o=t(n.value,e,{level:n.level});else{var a=ge({},ib);if(n.level>0)for(var s=0;s=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(Ue(o)){var h=null==n.level?0:n.level>=0?n.level:o.length+n.level;o=o[h=Math.min(h,o.length-1)]}}return O3(new Date(n.value),o,i,r)}(t,r,i,this.getSetting("locale"),o)},e.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 lvt(n,e,t,r){var o=JH,a=0;function s(K,Q,rt,ut,xt,Ft,Rt){for(var me=new Date(Q),lt=Q,gt=me[ut]();lt1&&0===Ft&&rt.unshift({value:rt[0].value-lt})}}for(Ft=0;Ft=r[0]&&x<=r[1]&&h++)}var P=(r[1]-r[0])/e;if(h>1.5*P&&p>P/1.5||(c.push(y),h>P||n===o[g]))break}u=[]}}var S=Gs(Cn(c,function(K){return Gs(K,function(Q){return Q.value>=r[0]&&Q.value<=r[1]&&!Q.notAdd})}),function(K){return K.length>0}),N=[],R=S.length-1;for(g=0;gi&&(this._approxInterval=i);var s=J3.length,l=Math.min(function(n,e,t,r){for(;t>>1;n[i][1]16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function ivt(n){return(n/=30*Zc)>6?6:n>3?3:n>2?2:1}function ovt(n){return(n/=rb)>12?12:n>6?6:n>3.5?4:n>2?2:1}function nW(n,e){return(n/=e?Kk:Xk)>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function avt(n){return Tz(n,!0)}function svt(n,e,t){var r=new Date(n);switch(T0(e)){case"year":case"month":r[ej(t)](0);case"day":r[nj(t)](1);case"hour":r[rj(t)](0);case"minute":r[ij(t)](0);case"second":r[oj(t)](0),r[aj(t)](0)}return r.getTime()}qh.registerClass(eW);const cvt=eW;var rW=qh.prototype,_b=vb.prototype,uvt=Jo,dvt=Math.floor,hvt=Math.ceil,Q3=Math.pow,Vu=Math.log,jR=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new vb,t._interval=0,t}return Jn(e,n),e.prototype.getTicks=function(t){var i=this._extent,o=this._originalScale.getExtent();return Cn(_b.getTicks.call(this,t),function(s){var l=s.value,c=Jo(Q3(this.base,l));return c=l===i[0]&&this._fixMin?tS(c,o[0]):c,{value:c=l===i[1]&&this._fixMax?tS(c,o[1]):c}},this)},e.prototype.setExtent=function(t,r){var i=Vu(this.base);t=Vu(Math.max(0,t))/i,r=Vu(Math.max(0,r))/i,_b.setExtent.call(this,t,r)},e.prototype.getExtent=function(){var t=this.base,r=rW.getExtent.call(this);r[0]=Q3(t,r[0]),r[1]=Q3(t,r[1]);var o=this._originalScale.getExtent();return this._fixMin&&(r[0]=tS(r[0],o[0])),this._fixMax&&(r[1]=tS(r[1],o[1])),r},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var r=this.base;t[0]=Vu(t[0])/Vu(r),t[1]=Vu(t[1])/Vu(r),rW.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(t){t=t||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=function nft(n){return Math.pow(10,dk(n))}(i);for(t/i*o<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Jo(hvt(r[0]/o)*o),Jo(dvt(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){_b.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Y3(t=Vu(t)/Vu(this.base),this._extent)},e.prototype.normalize=function(t){return X3(t=Vu(t)/Vu(this.base),this._extent)},e.prototype.scale=function(t){return t=K3(t,this._extent),Q3(this.base,t)},e.type="log",e}(qh),iW=jR.prototype;function tS(n,e){return uvt(n,$h(e))}iW.getMinorTicks=_b.getMinorTicks,iW.getLabel=_b.getLabel,qh.registerClass(jR);const fvt=jR;var pvt=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,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:h}},n.prototype.modifyDataMinMax=function(e,t){this[mvt[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){this[gvt[e]]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),gvt={min:"_determinedMin",max:"_determinedMax"},mvt={min:"_dataMin",max:"_dataMax"};function eS(n,e){return null==e?null:SO(e)?NaN:n.parse(e)}function oW(n,e){var t=n.type,r=function vvt(n,e,t){var r=n.rawExtentInfo;return r||(r=new pvt(n,e,t),n.rawExtentInfo=r,r)}(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===t){var s=function XG(n,e){var t=[];return e.eachSeriesByType(n,function(r){(function QG(n){return n.coordinateSystem&&"cartesian2d"===n.coordinateSystem.type})(r)&&t.push(r)}),t}("bar",a),l=!1;if(ht(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var c=KG(s),u=function _vt(n,e,t,r){var i=t.axis.getExtent(),o=i[1]-i[0],a=function Qmt(n,e,t){if(n&&e){var r=n[HR(e)];return null!=r&&null!=t?r[zR(t)]:r}}(r,t.axis);if(void 0===a)return{min:n,max:e};var s=1/0;ht(a,function(g){s=Math.min(g.offset,s)});var l=-1/0;ht(a,function(g){l=Math.max(g.offset+g.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=e-n,p=u/(1-(s+l)/o)-u;return{min:n-=p*(s/c),max:e+=p*(l/c)}}(i,o,e,c);i=u.min,o=u.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function aW(n,e){var t=e,r=oW(n,t),i=r.extent,o=t.get("splitNumber");n instanceof fvt&&(n.base=t.get("logBase"));var a=n.type,s=t.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?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),null!=s&&n.setInterval&&n.setInterval(s)}function yb(n){var r,e=n.getLabelModel().get("formatter"),t="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(r=e,function(i,o){return n.scale.getFormattedLabel(i,o,r)}):nn(e)?function(r){return function(i){var o=n.scale.getLabel(i);return r.replace("{value}",o??"")}}(e):Qn(e)?function(r){return function(i,o){return null!=t&&(o=i.value-t),r(GR(n,i),o,null!=i.level?{level:i.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function GR(n,e){return"category"===n.type?n.scale.getLabel(e):e.value}function Mvt(n,e){var t=e*Math.PI/180,r=n.width,i=n.height,o=r*Math.abs(Math.cos(t))+Math.abs(i*Math.sin(t)),a=r*Math.abs(Math.sin(t))+Math.abs(i*Math.cos(t));return new fi(n.x,n.y,o,a)}function WR(n){return n.get("interval")??"auto"}function sW(n){return"category"===n.type&&0===WR(n.getLabelModel())}var bp=Math.PI,I1=function(){function n(e,t){this.group=new Zs,this.opt=t,this.axisModel=e,hi(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Zs({x:t.position[0],y:t.position[1],rotation:t.rotation});r.updateTransform(),this._transformGroup=r}return n.prototype.hasBuilder=function(e){return!!uW[e]},n.prototype.add=function(e){uW[e](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(e,t,r){var o,a,i=Sz(t-e);return n3(i)?(a=r>0?"top":"bottom",o="center"):n3(i-bp)?(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(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),uW={axisLine:function(n,e,t,r){var i=e.get(["axisLine","show"]);if("auto"===i&&n.handleAutoShown&&(i=n.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&($c(s,s,a),$c(l,l,a));var u=ge({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new x1({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});gb(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var g=e.get(["axisLine","symbolSize"]);nn(p)&&(p=[p,p]),(nn(g)||Li(g))&&(g=[g,g]);var v=dG(e.get(["axisLine","symbolOffset"])||0,g),_=g[0],y=g[1];ht([{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(C,x){if("none"!==p[x]&&null!=p[x]){var P=N0(p[x],-_/2,-y/2,_,y,u.stroke,!0),S=C.r+C.offset,N=c?l:s;P.attr({rotation:C.rotate,x:N[0]+S*Math.cos(n.rotation),y:N[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(P)}})}}},axisTickLabel:function(n,e,t,r){var i=function Tvt(n,e,t,r){var i=t.axis,o=t.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=fW(i.getTicksCoords(),e.transform,l,hi(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hc[1]?-1:1,h=["start"===o?c[0]-u*l:"end"===o?c[1]+u*l:(c[0]+c[1])/2,hW(o)?n.labelOffset+a*l:0],g=e.get("nameRotate");null!=g&&(g=g*bp/180),hW(o)?p=I1.innerTextLayout(n.rotation,g??n.rotation,a):(p=function Ovt(n,e,t,r){var o,a,i=Sz(t-n),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return n3(i-bp/2)?(a=l?"bottom":"top",o="center"):n3(i-1.5*bp)?(a=l?"top":"bottom",o="center"):(a="middle",o=i<1.5*bp&&i>bp/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=e.get("nameTruncate",!0)||{},C=y.ellipsis,x=SC(n.nameTruncateMaxWidth,y.maxWidth,v),P=new ps({x:h[0],y:h[1],rotation:p.rotation,silent:I1.isLabelSilent(e),style:pp(s,{text:i,font:_,overflow:"truncate",width:x,ellipsis:C,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(CR({el:P,componentModel:e,itemName:i}),P.__fullText=i,P.anid="name",e.get("triggerEvent")){var S=I1.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,eo(P).eventData=S}r.add(P),P.updateTransform(),t.add(P),P.decomposeTransform()}}};function Xc(n){n&&(n.ignore=!0)}function dW(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(t&&r){var i=y5([]);return b5(i,i,-n.rotation),t.applyTransform(u0([],i,n.getLocalTransform())),r.applyTransform(u0([],i,e.getLocalTransform())),t.intersect(r)}}function hW(n){return"middle"===n||"center"===n}function fW(n,e,t,r,i){for(var o=[],a=[],s=[],l=0;l=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){ZR("axisPointer",r)},e.prototype.dispose=function(t,r){ZR("axisPointer",r)},e.type="axisPointer",e}(Wh);const Zvt=qvt;function wW(n,e){var i,t=[],r=n.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=p1(o,n);if(null==a||a<0||Ue(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var c=l.getBaseAxis(),h=l.getOtherAxis(c).dim,g="x"===h||"radius"===h?1:0,v=o.mapDimension(c.dim),_=[];_[g]=o.get(v,a),_[1-g]=o.get(o.getCalculationInfo("stackResultDimension"),a),t=l.dataToPoint(_)||[]}else t=l.dataToPoint(o.getValues(Cn(l.dimensions,function(C){return o.mapDimension(C)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var xW=Qo();function Yvt(n,e,t){var r=n.currTrigger,i=[n.x,n.y],o=n,a=n.dispatchAction||oo(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){nS(i)&&(i=wW({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=nS(i),c=o.axesInfo,u=s.axesInfo,h="leave"===r||nS(i),p={},g={},v={list:[],map:{}},_={showPointer:Ko(Kvt,g),showTooltip:Ko(Jvt,v)};ht(s.coordSysMap,function(C,x){var P=l||C.containPoint(i);ht(s.coordSysAxesInfo[x],function(S,N){var R=S.axis,z=function n0t(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(c,S);if(!h&&P&&(!c||z)){var $=z&&z.value;null==$&&!l&&($=R.pointToData(i)),null!=$&&PW(S,$,_,!1,p)}})});var y={};return ht(u,function(C,x){var P=C.linkGroup;P&&!g[x]&&ht(P.axesInfo,function(S,N){var R=g[N];if(S!==C&&R){var z=R.value;P.mapper&&(z=C.axis.scale.parse(P.mapper(z,OW(S),OW(C)))),y[C.key]=z}})}),ht(y,function(C,x){PW(u[x],C,_,!0,p)}),function Qvt(n,e,t){var r=t.axesInfo=[];ht(e,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 t0t(n,e,t,r){if(!nS(e)&&n.list.length){var i=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:n.list})}else r({type:"hideTip"})}(v,i,n,a),function e0t(n,e,t){var r=t.getZr(),i="axisPointerLastHighlights",o=xW(r)[i]||{},a=xW(r)[i]={};ht(n,function(c,u){var h=c.axisPointerModel.option;"show"===h.status&&ht(h.seriesDataIndices,function(p){a[p.seriesIndex+" | "+p.dataIndex]=p})});var s=[],l=[];ht(o,function(c,u){!a[u]&&l.push(c)}),ht(a,function(c,u){!o[u]&&s.push(c)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(u,0,t),p}}function PW(n,e,t,r,i){var o=n.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!n.involveSeries)return void t.showPointer(n,e);var a=function Xvt(n,e){var t=e.axis,r=t.dim,i=n,o=[],a=Number.MAX_VALUE,s=-1;return ht(e.seriesModels,function(l,c){var h,p,u=l.getData().mapDimensionsAll(r);if(l.getAxisTooltipData){var g=l.getAxisTooltipData(u,n,t);p=g.dataIndices,h=g.nestestValue}else{if(!(p=l.getData().indicesOfNearest(u[0],n,"category"===t.type?.5:null)).length)return;h=l.getData().get(u[0],p[0])}if(null!=h&&isFinite(h)){var v=n-h,_=Math.abs(v);_<=a&&((_=0&&s<0)&&(a=_,s=v,i=h,o.length=0),ht(p,function(y){o.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:o,snapToValue:i}}(e,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&ge(i,s[0]),!r&&n.snap&&o.containData(l)&&null!=l&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,a,l)}}function Kvt(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Jvt(n,e,t,r){var i=t.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,c=mb(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 OW(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function nS(n){return!n||null==n[0]||isNaN(n[0])||null==n[1]||isNaN(n[1])}function SW(n){EG.registerAxisPointerClass("CartesianAxisPointer",Vvt),n.registerComponentModel(Uvt),n.registerComponentView(Zvt),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Ue(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=function Emt(n,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function kmt(n,e,t){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];ht(t.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var l=mb(s.model),c=n.coordSysAxesInfo[l]={};n.coordSysMap[l]=s;var h=s.model.getModel("tooltip",r);if(ht(s.getAxes(),Ko(_,!1,null)),s.getTooltipAxes&&r&&h.get("show")){var p="axis"===h.get("trigger"),g="cross"===h.get(["axisPointer","type"]),v=s.getTooltipAxes(h.get(["axisPointer","axis"]));(p||g)&&ht(v.baseAxes,Ko(_,!g||"cross",p)),g&&ht(v.otherAxes,Ko(_,"cross",!1))}}function _(y,C,x){var P=x.model.getModel("axisPointer",i),S=P.get("show");if(S&&("auto"!==S||y||DR(P))){null==C&&(C=P.get("triggerTooltip")),P=y?function Rmt(n,e,t,r,i,o){var a=e.getModel("axisPointer"),l={};ht(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(p){l[p]=Br(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 h=l.lineStyle=a.get("crossStyle");h&&hi(c,h.textStyle)}}return n.model.getModel("axisPointer",new ms(l,t,r))}(x,h,i,e,y,C):P;var N=P.get("snap"),R=mb(x.model),z=C||N||"category"===x.type,$=n.axesInfo[R]={key:R,axis:x,coordSys:s,axisPointerModel:P,triggerTooltip:C,involveSeries:z,snap:N,useHandle:DR(P),seriesModels:[],linkGroup:null};c[R]=$,n.seriesInvolved=n.seriesInvolved||z;var W=function Lmt(n,e){for(var t=e.model,r=e.dim,i=0;i1&&r&&r.length>1){var o=TW(r)/TW(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=function a0t(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:n[0].target,event:e}}}}},AW="silent";function l0t(){RG(this.event)}var c0t=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.handler=null,t}return Fi(e,n),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ed),Cb=function n(e,t){this.x=e,this.y=t},u0t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],XR=new fi(0,0,0,0),DW=function(n){function e(t,r,i,o,a){var s=n.call(this)||this;return s._hovered=new Cb(0,0),s.storage=t,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new c0t,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new i0t(s),s}return Fi(e,n),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(ht(u0t,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,i=t.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 Cb(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",t),this.dispatchToElement(l,"mousemove",t),c&&c!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;"only_globalout"!==r&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==r&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Cb(0,0)},e.prototype.dispatch=function(t,r){var i=this[t];i&&i.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,i){var o=(t=t||{}).target;if(!o||!o.silent){for(var a="on"+r,s=function s0t(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:l0t}}(r,t,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)}))}},e.prototype.findHover=function(t,r,i){var o=this.storage.getDisplayList(),a=new Cb(t,r);if(IW(o,a,t,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,u=new fi(t-c,r-c,l,l),h=o.length-1;h>=0;h--){var p=o[h];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(XR.copy(p.getBoundingRect()),p.transform&&XR.applyTransform(p.transform),XR.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=d0t(a,t,r))&&(!e.topTarget&&(e.topTarget=a),s!==AW)){e.target=a;break}}}function EW(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}ht(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){DW.prototype[n]=function(e){var o,a,t=e.zrX,r=e.zrY,i=EW(this,t,r);if(("mouseup"!==n||!i)&&(a=(o=this.findHover(t,r)).target),"mousedown"===n)this._downEl=a,this._downPoint=[e.zrX,e.zrY],this._upEl=a;else if("mouseup"===n)this._upEl=a;else if("click"===n){if(this._downEl!==this._upEl||!this._downPoint||A5(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,n,e)}});const h0t=DW;var kW=32,bb=7;function NW(n,e,t,r){var i=e+1;if(i===t)return 1;if(r(n[i++],n[e])<0){for(;i=0;)i++;return i-e}function LW(n,e,t,r,i){for(r===e&&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 KR(n,e,t,r,i,o){var a=0,s=0,l=1;if(o(n,e[t+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,e[t+u])>0?a=u+1:l=u}return l}function JR(n,e,t,r,i,o){var a=0,s=0,l=1;if(o(n,e[t+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,e[t+u])<0?l=u:a=u+1}return l}function rS(n,e,t,r){t||(t=0),r||(r=n.length);var i=r-t;if(!(i<2)){var o=0;if(i=bb||K>=bb);if(Q)break;$<0&&($=0),$+=2}if((t=$)<1&&(t=1),1===C){for(S=0;S=0;S--)n[W+S]=n[$+S];if(0===C){ut=!0;break}}if(n[z--]=c[R--],1==--P){ut=!0;break}if(0!=(rt=P-KR(n[N],c,0,P,P-1,e))){for(P-=rt,W=1+(z-=rt),$=1+(R-=rt),S=0;S=bb||rt>=bb);if(ut)break;K<0&&(K=0),K+=2}if((t=K)<1&&(t=1),1===P){for(W=1+(z-=C),$=1+(N-=C),S=C-1;S>=0;S--)n[W+S]=n[$+S];n[z]=c[R]}else{if(0===P)throw new Error;for($=z-(P-1),S=0;S=0;S--)n[W+S]=n[$+S];n[z]=c[R]}else for($=z-(P-1),S=0;S1;){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]=kW;)e|=1&n,n>>=1;return n+e}(i);do{if((o=NW(n,t,r,e))s&&(l=s),LW(n,t,t+l,t+o,e),o=l}a.pushRun(t,o),a.mergeRuns(),i-=o,t+=o}while(0!==i);a.forceMergeRuns()}}var FW=!1;function QR(){FW||(FW=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function BW(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var m0t=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=BW}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(u.__clipPaths=[]),isNaN(u.z)&&(QR(),u.z=0),isNaN(u.z2)&&(QR(),u.z2=0),isNaN(u.zlevel)&&(QR(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,r);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,t,r);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,r=e.length;t=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 v0t=m0t;var VW;VW=fr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const tN=VW;function B0(){return(new Date).getTime()}var _0t=function(n){function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,r.stage=(t=t||{}).stage||{},r}return Fi(e,n),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,i=t.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=B0()-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,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,tN(function r(){t._running&&(tN(r),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=B0(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=B0(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=B0()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,r){r=r||{},this.start();var i=new z5(t,r.loop);return this.addAnimator(i),i},e}(Ed);const y0t=_0t;var eN=fr.domSupported,nN=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:Cn(n,function(i){var o=i.replace("mouse","pointer");return t.hasOwnProperty(o)?o:i})}}(),$W={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},UW=!1;function rN(n){var e=n.pointerType;return"pen"===e||"touch"===e}function iN(n){n&&(n.zrByTouch=!0)}function zW(n,e){for(var t=e,r=!1;t&&9!==t.nodeType&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var w0t=function n(e,t){this.stopPropagation=_l,this.stopImmediatePropagation=_l,this.preventDefault=_l,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},$u={mousedown:function(n){n=Yc(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Yc(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=Yc(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){zW(this,(n=Yc(this.dom,n)).toElement||n.relatedTarget)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){UW=!0,n=Yc(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){UW||(n=Yc(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){iN(n=Yc(this.dom,n)),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),$u.mousemove.call(this,n),$u.mousedown.call(this,n)},touchmove:function(n){iN(n=Yc(this.dom,n)),this.handler.processGesture(n,"change"),$u.mousemove.call(this,n)},touchend:function(n){iN(n=Yc(this.dom,n)),this.handler.processGesture(n,"end"),$u.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<300&&$u.click.call(this,n)},pointerdown:function(n){$u.mousedown.call(this,n)},pointermove:function(n){rN(n)||$u.mousemove.call(this,n)},pointerup:function(n){$u.mouseup.call(this,n)},pointerout:function(n){rN(n)||$u.mouseout.call(this,n)}};ht(["click","dblclick","contextmenu"],function(n){$u[n]=function(e){e=Yc(this.dom,e),this.trigger(n,e)}});var oN={pointermove:function(n){rN(n)||oN.mousemove.call(this,n)},pointerup:function(n){oN.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),e&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function iS(n,e,t,r){n.mounted[e]=t,n.listenerOpts[e]=r,function Hmt(n,e,t,r){n.addEventListener(e,t,r)}(n.domTarget,e,t,r)}function aN(n){var e=n.mounted;for(var t in e)e.hasOwnProperty(t)&&jmt(n.domTarget,t,e[t],n.listenerOpts[t]);n.mounted={}}var HW=function n(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},O0t=function(n){function e(t,r){var i=n.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=r,i._localHandlerScope=new HW(t,$u),eN&&(i._globalHandlerScope=new HW(document,oN)),function x0t(n,e){var t=e.domHandlers;fr.pointerEventsSupported?ht(nN.pointer,function(r){iS(e,r,function(i){t[r].call(n,i)})}):(fr.touchEventsSupported&&ht(nN.touch,function(r){iS(e,r,function(i){t[r].call(n,i),function b0t(n){n.touching=!0,null!=n.touchTimer&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}(e)})}),ht(nN.mouse,function(r){iS(e,r,function(i){i=RR(i),e.touching||t[r].call(n,i)})}))}(i,i._localHandlerScope),i}return Fi(e,n),e.prototype.dispose=function(){aN(this._localHandlerScope),eN&&aN(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,eN&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var r=this._globalHandlerScope;t?function P0t(n,e){function t(r){iS(e,r,function i(o){o=RR(o),zW(n,o.target)||(o=function M0t(n,e){return Yc(n.dom,new w0t(n,e),!0)}(n,o),e.domHandlers[r].call(n,o))},{capture:!0})}fr.pointerEventsSupported?ht($W.pointer,t):fr.touchEventsSupported||ht($W.mouse,t)}(this,r):aN(r)}},e}(Ed);const S0t=O0t;var oS={},E1={},D0t=function(){function n(e,t,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=t,this.id=e;var o=new v0t,a=r.renderer||"canvas";oS[a]||(a=uo(oS)[0]),r.useDirtyRect=null!=r.useDirtyRect&&r.useDirtyRect;var s=new oS[a](t,o,r,e),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var g,c=fr.node||fr.worker||l?null:new S0t(s.getViewportRoot(),s.root),u=r.useCoarsePointer;(null==u||"auto"===u?fr.touchEventsSupported:!!u)&&(g=Ir(r.pointerSize,44)),this.handler=new h0t(o,s,c,s.root,g),this.animation=new y0t({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},n.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},n.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function A0t(n){if(!n)return!1;if("string"==typeof n)return zO(n,1)<.4;if(n.colorStops){for(var e=n.colorStops,t=0,r=e.length,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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(e){this.painter.resize((e=e||{}).width,e.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(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t=0;l--)o[l]&&!WC(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,t[i]=o}}),delete t[qW],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var i=this._componentsMap.get(t);if(i){var o=i[r||0];if(o)return o;if(null==r)for(var a=0;a=e:"max"===t?n<=e:n===e})(r[c],o,l)||(i=!1)}}),i}const W0t=U0t;var Uu=ht,wb=mn,eq=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function lN(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=eq.length;t=0;y--){var C=n[y];if(s||(v=C.data.rawIndexOf(C.stackedByDimension,g)),v>=0){var x=C.data.getByRawIndex(C.stackResultDimension,v);if("all"===l||"positive"===l&&x>0||"negative"===l&&x<0||"samesign"===l&&p>=0&&x>0||"samesign"===l&&p<=0&&x<0){p=tft(p,x),_=x;break}}}return r[0]=p,r[1]=_,r})})}var lq=Qo(),cq={itemStyle:DC(hH,!0),lineStyle:DC(dH,!0)},n_t={lineStyle:"stroke",itemStyle:"fill"};function uq(n,e){return n.visualStyleMapper||cq[e]||(console.warn("Unknown style type '"+e+"'."),cq.itemStyle)}function dq(n,e){return n.visualDrawType||n_t[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var r_t={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=n.getModel(r),a=uq(n,r)(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=dq(n,r),c=a[l],u=Qn(c)?c:null;if(!a[l]||u||"auto"===a.fill||"auto"===a.stroke){var p=n.getColorFromPalette(n.name,null,e.getSeriesCount());a[l]||(a[l]=p,t.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Qn(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||Qn(a.stroke)?p:a.stroke}if(t.setVisual("style",a),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&u)return t.setVisual("colorFromPalette",!1),{dataEach:function(g,v){var _=n.getDataParams(v),y=ge({},a);y[l]=u(_),g.setItemVisual(v,"style",y)}}}},Ob=new ms,i_t={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!n.ignoreStyleOnData&&!e.isSeriesFiltered(n)){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=uq(n,r),o=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){Ob.option=l[r];var c=i(Ob);ge(a.ensureUniqueItemVisual(s,"style"),c),Ob.option.decal&&(a.setItemVisual(s,"decal",Ob.option.decal),Ob.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},o_t={performRawSeries:!0,overallReset:function(n){var e=hr();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+r,o=e.get(i);o||e.set(i,o={}),lq(t).scope=o}}),n.eachSeries(function(t){if(!t.isColorBySeries()&&!n.isSeriesFiltered(t)){var r=t.getRawData(),i={},o=t.getData(),a=lq(t).scope,l=dq(t,t.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]=t.getColorFromPalette(g,a,v)}})}})}},sS=Math.PI,s_t=function(){function n(e,t,r,i){this._stageTaskMap=hr(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,a=!t&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__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(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),o=e.getData().count(),a=r.progressiveEnabled&&t.incrementalPrepareRender&&o>=r.threshold,s=e.get("large")&&o>=e.get("largeThreshold"),l="mod"===e.get("progressiveChunkMode")?o:null;e.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=hr();e.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}),t._pipe(i,i.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;ht(this._allHandlers,function(i){var o=e.get(i.uid)||e.set(i.uid,{});Fh(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,t,r),i.overallReset&&this._createOverallStageTask(i,o,t,r)},this)},n.prototype.prepareView=function(e,t,r,i){var o=e.renderTask,a=o.context;a.model=t,a.ecModel=r,a.api=i,o.__block=!e.incrementalPrepareRender,this._pipe(t,o)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,i){i=i||{};var o=!1,a=this;function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}ht(e,function(l,c){if(!i.visualType||i.visualType===l.visualType){var u=a._stageTaskMap.get(l.uid),h=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 h&&h.each(function(y,C){s(i,y)&&y.dirty();var x=a.getPerformArgs(y,i.block);x.skip=!l.performRawSeries&&t.isSeriesFiltered(y.context.model),a.updatePayload(y,r),y.perform(x)&&(o=!0)})}}),this.unfinished=o||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,i){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=hr(),l=e.seriesType,c=e.getTargetSeries;function u(h){var p=h.uid,g=s.set(p,a&&a.get(p)||lb({plan:h_t,reset:f_t,count:g_t}));g.context={model:h,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(h,g)}e.createOnAllSeries?r.eachRawSeries(u):l?r.eachRawSeriesByType(l,u):c&&c(r,i).each(u)},n.prototype._createOverallStageTask=function(e,t,r,i){var o=this,a=t.overallTask=t.overallTask||lb({reset:l_t});a.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=hr(),c=e.seriesType,u=e.getTargetSeries,h=!0,p=!1;function v(_){var y=_.uid,C=l.set(y,s&&s.get(y)||(p=!0,lb({reset:c_t,onDirty:d_t})));C.context={model:_,overallProgress:h},C.agent=a,C.__block=h,o._pipe(_,C)}Fh(!e.createOnAllSeries,""),c?r.eachRawSeriesByType(c,v):u?u(r,i).each(v):(h=!1,ht(r.getSeries(),v)),p&&a.dirty()},n.prototype._pipe=function(e,t){var i=this._pipelineMap.get(e.uid);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},n.wrapStageHandler=function(e,t){return Qn(e)&&(e={overallReset:e,seriesType:m_t(e)}),e.uid=M3("stageHandler"),t&&(e.visualType=t),e},n}();function l_t(n){n.overallReset(n.ecModel,n.api,n.payload)}function c_t(n){return n.overallProgress&&u_t}function u_t(){this.agent.dirty(),this.getDownstream().dirty()}function d_t(){this.agent&&this.agent.dirty()}function h_t(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function f_t(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=gs(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?Cn(e,function(t,r){return hq(r)}):p_t}var p_t=hq(0);function hq(n){return function(e,t){var r=t.data,i=t.resetDefines[n];if(i&&i.dataEach)for(var o=e.start;o0&&g===c.length-p.length){var v=c.slice(0,g);"data"!==v&&(t.mainType=v,t[p.toLowerCase()]=l,u=!0)}}s.hasOwnProperty(c)&&(r[c]=l,u=!0),u||(i[c]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:i}},n.prototype.filter=function(e,t){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=t.cptQuery,c=t.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(e,t.otherQuery,i,o));function u(h,p,g,v){return null==h[g]||p[v||g]===h[g]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),uN=["symbol","symbolSize","symbolRotate","symbolOffset"],Cq=uN.concat(["symbolKeepAspect"]),C_t={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),n.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a=0&&k1(l)?l:.5,n.createRadialGradient(a,s,0,a,s,l)}(n,e,t):function D_t(n,e,t){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*t.width+t.x,i=i*t.width+t.x,o=o*t.height+t.y,a=a*t.height+t.y),r=k1(r)?r:0,i=k1(i)?i:1,o=k1(o)?o:0,a=k1(a)?a:0,n.createLinearGradient(r,o,i,a)}(n,e,t),i=e.colorStops,o=0;o0&&function k_t(n,e){return n&&"solid"!==n&&e>0?"dashed"===n?[4*e,2*e]:"dotted"===n?[e]:Li(n)?[n]:Ue(n)?n:null:null}(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var i=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;i&&1!==i&&(t=Cn(t,function(o){return o/i}),r/=i)}return[t,r]}var R_t=new dp(!0);function hS(n){var e=n.stroke;return!(null==e||"none"===e||!(n.lineWidth>0))}function Mq(n){return"string"==typeof n&&"none"!==n}function fS(n){var e=n.fill;return null!=e&&"none"!==e}function wq(n,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function xq(n,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function hN(n,e,t){var r=MU(e.image,e.__image,t);if(IO(r)){var i=n.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*ndt),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var Pq=["shadowBlur","shadowOffsetX","shadowOffsetY"],Oq=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Sq(n,e,t,r,i){var o=!1;if(!r&&e===(t=t||{}))return!1;if(r||e.opacity!==t.opacity){wl(n,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(a)?r1.opacity:a}(r||e.blend!==t.blend)&&(o||(wl(n,i),o=!0),n.globalCompositeOperation=e.blend||r1.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,i){if(!this[ys]){if(this._disposed)return;var o,a,s;if(mn(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[ys]=!0,!this._model||r){var l=new W0t(this._api),c=this._theme,u=this._model=new QW;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,c,this._locale,l)}this._model.setOption(t,{replaceMerge:a},PN);var h={seriesTransition:s,optionChanged:!0};if(i)this[xl]={silent:o,updateParams:h},this[ys]=!1,this.getZr().wakeUp();else{try{U0(this),Mp.update.call(this,null,h)}catch(p){throw this[xl]=null,this[ys]=!1,p}this._ssr||this._zr.flush(),this[xl]=null,this[ys]=!1,Db.call(this,o),Ib.call(this,o)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||fr.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},e.prototype.getSvgDataURL=function(){if(fr.svgSupported){var t=this._zr;return ht(t.storage.getDisplayList(),function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var i=this._model,o=[],a=this;ht((t=t||{}).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(t).toDataURL("image/"+(t&&t.type||"png"));return ht(o,function(l){l.group.ignore=!1}),s}},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var r="svg"===t.type,i=this.group,o=Math.min,a=Math.max,s=1/0;if(CS[i]){var l=s,c=s,u=-s,h=-s,p=[],g=t&&t.pixelRatio||this.getDevicePixelRatio();ht(N1,function(P,S){if(P.group===i){var N=r?P.getZr().painter.getSvgDom().innerHTML:P.renderToCanvas(Br(t)),R=P.getDom().getBoundingClientRect();l=o(R.left,l),c=o(R.top,c),u=a(R.right,u),h=a(R.bottom,h),p.push({dom:N,left:R.left,top:R.top})}});var v=(u*=g)-(l*=g),_=(h*=g)-(c*=g),y=Lh.createCanvas(),C=jW(y,{renderer:r?"svg":"canvas"});if(C.resize({width:v,height:_}),r){var x="";return ht(p,function(P){x+=''+P.dom+""}),C.painter.getSvgRoot().innerHTML=x,t.connectedBackgroundColor&&C.painter.setBackgroundColor(t.connectedBackgroundColor),C.refreshImmediately(),C.painter.toDataURL()}return t.connectedBackgroundColor&&C.add(new Ua({shape:{x:0,y:0,width:v,height:_},style:{fill:t.connectedBackgroundColor}})),ht(p,function(P){var S=new h1({style:{x:P.left*g-l,y:P.top*g-c,image:P.dom}});C.add(S)}),C.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,r){return yN(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return yN(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){var o;if(!this._disposed)return ht(pk(this._model,t),function(s,l){l.indexOf("Models")>=0&&ht(s,function(c){var u=c.coordinateSystem;if(u&&u.containPoint)o=o||!!u.containPoint(r);else if("seriesModels"===l){var h=this._chartsMap[c.__viewId];h&&h.containPoint&&(o=o||h.containPoint(r,c))}},this)},this),!!o},e.prototype.getVisual=function(t,r){var o=pk(this._model,t,{defaultMainType:"series"}),s=o.seriesModel.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return null!=l?function M_t(n,e,t){switch(t){case"color":return n.getItemVisual(e,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(e,t)}}(s,l,r):function w_t(n,e){switch(e){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(e)}}(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;ht(c2t,function(r){var i=function(o){var l,a=t.getModel(),s=o.target;if("globalout"===r?l={}:s&&Tb(s,function(v){var _=eo(v);if(_&&null!=_.dataIndex){var y=_.dataModel||a.getSeriesByIndex(_.seriesIndex);return l=y&&y.getDataParams(_.dataIndex,_.dataType)||{},!0}if(_.eventData)return l=ge({},_.eventData),!0},!0),l){var u=l.componentType,h=l.componentIndex;("markLine"===u||"markPoint"===u||"markArea"===u)&&(u="series",h=l.seriesIndex);var p=u&&null!=h&&a.getComponent(u,h),g=p&&t["series"===p.mainType?"_chartsMap":"_componentsMap"][p.__viewId];l.event=o,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:g},t.trigger(r,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(r,i,t)}),ht(Eb,function(r,i){t._messageCenter.on(i,function(o){this.trigger(i,o)},t)}),ht(["selectchanged"],function(r){t._messageCenter.on(r,function(i){this.trigger(r,i)},t)}),function P_t(n,e,t){n.on("selectchanged",function(r){var i=t.getModel();r.isFromClick?($0("map","selectchanged",e,i,r),$0("pie","selectchanged",e,i,r)):"select"===r.fromAction?($0("map","selected",e,i,r),$0("pie","selected",e,i,r)):"unselect"===r.fromAction&&($0("map","unselected",e,i,r),$0("pie","unselected",e,i,r))})}(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&Fz(this.getDom(),SN,"");var r=this,i=r._api,o=r._model;ht(r._componentsViews,function(a){a.dispose(o,i)}),ht(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 N1[r.id]}},e.prototype.resize=function(t){if(!this[ys]){if(this._disposed)return;this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),r){var i=r.resetOption("media"),o=t&&t.silent;this[xl]&&(null==o&&(o=this[xl].silent),i=!0,this[xl]=null),this[ys]=!0;try{i&&U0(this),Mp.update.call(this,{type:"resize",animation:ge({duration:0},t&&t.animation)})}catch(a){throw this[ys]=!1,a}this[ys]=!1,Db.call(this,o),Ib.call(this,o)}}},e.prototype.showLoading=function(t,r){if(!this._disposed&&(mn(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),ON[t])){var i=ON[t](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var r=ge({},t);return r.type=Eb[t.type],r},e.prototype.dispatchAction=function(t,r){if(!this._disposed&&(mn(r)||(r={silent:!!r}),_S[t.type]&&this._model)){if(this[ys])return void this._pendingActions.push(t);var i=r.silent;bN.call(this,t,i);var o=r.flush;o?this._zr.flush():!1!==o&&fr.browser.weChat&&this._throttledZrFlush(),Db.call(this,i),Ib.call(this,i)}},e.prototype.updateLabelLayout=function(){zu.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(!this._disposed){var r=t.seriesIndex;this.getModel().getSeriesByIndex(r).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(h){h.clearColorPalette(),h.eachSeries(function(p){p.clearColorPalette()})}function i(h){for(var p=[],g=h.currentStates,v=0;v0?{duration:_,delay:g.get("delay"),easing:g.get("easing")}:null;p.eachRendered(function(C){if(C.states&&C.states.emphasis){if(pb(C))return;if(C instanceof Ui&&function Bft(n){var e=$z(n);e.normalFill=n.style.fill,e.normalStroke=n.style.stroke;var t=n.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}(C),C.__dirty){var x=C.prevStates;x&&C.useStates(x)}if(v){C.stateTransition=y;var P=C.getTextContent(),S=C.getTextGuideLine();P&&(P.stateTransition=y),S&&(S.stateTransition=y)}C.__dirty&&i(C)}})}U0=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),_N(h,!0),_N(h,!1),p.plan()},_N=function(h,p){for(var g=h._model,v=h._scheduler,_=p?h._componentsViews:h._chartsViews,y=p?h._componentsMap:h._chartsMap,C=h._zr,x=h._api,P=0;P<_.length;P++)_[P].__alive=!1;function S(R){var z=R.__requireNewView;R.__requireNewView=!1;var $="_ec_"+R.id+"_"+R.type,W=!z&&y[$];if(!W){var K=Dd(R.type);(W=new(p?Wh.getClass(K.main,K.sub):Gh.getClass(K.sub))).init(g,x),y[$]=W,_.push(W),C.add(W.group)}R.__viewId=W.__id=$,W.__alive=!0,W.__model=R,W.group.__ecComponentInfo={mainType:R.mainType,index:R.componentIndex},!p&&v.prepareView(W,R,g,x)}for(p?g.eachComponent(function(R,z){"series"!==R&&S(z)}):g.eachSeries(S),P=0;P<_.length;){var N=_[P];N.__alive?P++:(!p&&N.renderTask.dispose(),C.remove(N.group),N.dispose(g,x),_.splice(P,1),y[N.__id]===N&&delete y[N.__id],N.__id=N.group.__ecComponentInfo=null)}},gS=function(h,p,g,v,_){var y=h._model;if(y.setUpdatePayload(g),v){var C={};C[v+"Id"]=g[v+"Id"],C[v+"Index"]=g[v+"Index"],C[v+"Name"]=g[v+"Name"];var x={mainType:v,query:C};_&&(x.subType=_);var S,P=g.excludeSeriesId;null!=P&&(S=hr(),ht(gs(P),function(R){var z=Ru(R,null);null!=z&&S.set(z,!0)})),y&&y.eachComponent(x,function(R){if(!S||null==S.get(R.id))if(iH(g))if(R instanceof E0)g.type===g1&&!g.notBlur&&!R.get(["emphasis","disabled"])&&function Aft(n,e,t){var r=n.seriesIndex,i=n.getData(e.dataType);if(i){var o=p1(i,e);o=(Ue(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&lp.get("hoverLayerThreshold")&&!fr.node&&!fr.worker&&p.eachSeries(function(y){if(!y.preventUsingHoverLayer){var C=h._chartsMap[y.__viewId];C.__alive&&C.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}(h,p),zu.trigger("series:afterupdate",p,g,_)},Jc=function(h){h[mN]=!0,h.getZr().wakeUp()},nZ=function(h){h[mN]&&(h.getZr().storage.traverse(function(p){pb(p)||i(p)}),h[mN]=!1)},tZ=function(h){return new(function(p){function g(){return null!==p&&p.apply(this,arguments)||this}return Jn(g,p),g.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(v){for(;v;){var _=v.__ecComponentInfo;if(null!=_)return h._model.getComponent(_.mainType,_.index);v=v.parent}},g.prototype.enterEmphasis=function(v,_){c3(v,_),Jc(h)},g.prototype.leaveEmphasis=function(v,_){u3(v,_),Jc(h)},g.prototype.enterBlur=function(v){(function Tft(n){zh(n,_k)})(v),Jc(h)},g.prototype.leaveBlur=function(v){Xz(v),Jc(h)},g.prototype.enterSelect=function(v){Kz(v),Jc(h)},g.prototype.leaveSelect=function(v){Jz(v),Jc(h)},g.prototype.getModel=function(){return h.getModel()},g.prototype.getViewOfComponentModel=function(v){return h.getViewOfComponentModel(v)},g.prototype.getViewOfSeriesModel=function(v){return h.getViewOfSeriesModel(v)},g}(tq))(h)},eZ=function(h){function p(g,v){for(var _=0;_=0)){lZ.push(t);var o=gq.wrapStageHandler(t,i);o.__prio=e,o.__raw=t,n.push(o)}}function cZ(n,e){ON[n]=e}L1(2e3,r_t),L1(4500,i_t),L1(4500,o_t),L1(2e3,C_t),L1(4500,b_t),L1(7e3,function G_t(n,e){n.eachRawSeries(function(t){if(!n.isSeriesFiltered(t)){var r=t.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");s&&(r.ensureUniqueItemVisual(a,"style").decal=pN(s,e))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=pN(i,e))}})}),aZ(sq),sZ(900,function t_t(n){var e=hr();n.eachSeries(function(t){var r=t.get("stack");if(r){var i=e.get(r)||e.set(r,[]),o=t.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:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),e.each(e_t)}),cZ("default",function a_t(n,e){hi(e=e||{},{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 t=new Zs,r=new Ua({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a,i=new ps({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new Ua({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return t.add(o),e.showSpinner&&((a=new fR({shape:{startAngle:-sS/2,endAngle:-sS/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*sS/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*sS/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,c=(n.getWidth()-2*l-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),u=n.getHeight()/2;e.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()})},t.resize(),t}),z0({type:g1,event:g1,update:g1},_l),z0({type:a3,event:a3,update:a3},_l),z0({type:ZC,event:ZC,update:ZC},_l),z0({type:s3,event:s3,update:s3},_l),z0({type:YC,event:YC,update:YC},_l),oZ("light",v_t),oZ("dark",__t);var uZ=[],y2t={registerPreprocessor:aZ,registerProcessor:sZ,registerPostInit:function f2t(n){TN("afterinit",n)},registerPostUpdate:function p2t(n){TN("afterupdate",n)},registerUpdateLifecycle:TN,registerAction:z0,registerCoordinateSystem:function g2t(n,e){jk.register(n,e)},registerLayout:function m2t(n,e){AN(yS,n,e,1e3,"layout")},registerVisual:L1,registerTransform:function Sgt(n){var e=(n=Br(n)).type;e||qs("");var r=e.split(":");2!==r.length&&qs("");var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),n.__isBuiltIn=i,mj.set(e,n)},registerLoading:cZ,registerMap:function v2t(n,e,t){var r=function Z_t(n){return $q[n]}("registerMap");r&&r(n,e,t)},registerImpl:function q_t(n,e){$q[n]=e},PRIORITY:a2t,ComponentModel:fo,ComponentView:Wh,SeriesModel:E0,ChartView:Gh,registerComponentModel:function(n){fo.registerClass(n)},registerComponentView:function(n){Wh.registerClass(n)},registerSeriesModel:function(n){E0.registerClass(n)},registerChartView:function(n){Gh.registerClass(n)},registerSubTypeDefaulter:function(n,e){fo.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){!function I0t(n,e){oS[n]=e}(n,e)}};function wp(n){Ue(n)?ht(n,function(e){wp(e)}):Ni(uZ,n)>=0||(uZ.push(n),Qn(n)&&(n={install:n}),n.install(y2t))}var C2t=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=e.type,t}return Jn(e,n),e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(fo);const b2t=C2t;function dZ(n){var e=n.get("confine");return null!=e?!!e:"richText"===n.get("renderMode")}function hZ(n){if(fr.domSupported)for(var e=document.documentElement.style,t=0,r=n.length;t-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,h=a+i,p=h*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u)),v=e+" solid "+i+"px;";return'
'}(r,i,o)),nn(e))a.innerHTML=e+s;else if(e){a.innerHTML="",Ue(e)||(e=[e]);for(var l=0;l=0?this._tryShow(o,a):"leave"===i&&this._hide(a))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,i=this._api,o=t.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(t,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,i,o){if(o.from!==this.uid&&!fr.node&&i.getDom()){var a=yZ(o,i);this._ticket="";var s=o.dataByCoordSys,l=function $2t(n,e,t){var r=gk(n).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var l,a=qC(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(t.getViewOfComponentModel(a).group.traverse(function(c){var u=eo(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=N2t;u.x=o.x,u.y=o.y,u.update(),eo(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(t,r,i,o))return;var h=wW(o,r),p=h.point[0],g=h.point[1];null!=p&&null!=g&&this._tryShow({offsetX:p,offsetY:g,target:h.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))}},e.prototype.manuallyHideTip=function(t,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(yZ(o,i))},e.prototype._manuallyAxisShowTip=function(t,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"===kb([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}},e.prototype._tryShow=function(t,r){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var a=t.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,t);else if(i){var s,l;this._lastDataByCoordSys=null,Tb(i,function(c){return null!=eo(c).dataIndex?(s=c,!0):null!=eo(c).tooltipConfig?(l=c,!0):void 0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var i=t.get("showDelay");r=oo(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(t,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=kb([r.tooltipOption],o),l=this._renderMode,c=[],u=cb("section",{blocks:[],noHeader:!0}),h=[],p=new sR;ht(t,function(x){ht(x.dataByAxis,function(P){var S=i.getComponent(P.axisDim+"Axis",P.axisIndex),N=P.value;if(S&&null!=N){var R=gW(N,S.axis,i,P.seriesDataIndices,P.valueLabelOpt),z=cb("section",{header:R,noHeader:!Ad(R),sortBlocks:!0,blocks:[]});u.blocks.push(z),ht(P.seriesDataIndices,function($){var W=i.getSeriesByIndex($.seriesIndex),K=$.dataIndexInside,Q=W.getDataParams(K);if(!(Q.dataIndex<0)){Q.axisDim=P.axisDim,Q.axisIndex=P.axisIndex,Q.axisType=P.axisType,Q.axisId=P.axisId,Q.axisValue=GR(S.axis,{value:N}),Q.axisValueLabel=R,Q.marker=p.makeTooltipMarker("item",b1(Q.color),l);var rt=pj(W.formatTooltip(K,!0,null)),ut=rt.frag;if(ut){var xt=kb([W],o).get("valueFormatter");z.blocks.push(xt?ge({valueFormatter:xt},ut):ut)}rt.text&&h.push(rt.text),c.push(Q)}})}})}),u.blocks.reverse(),h.reverse();var g=r.position,v=s.get("order"),_=Mj(u,p,l,v,i.get("useUTC"),s.get("textStyle"));_&&h.unshift(_);var C=h.join("richText"===l?"\n\n":"
");this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,c)?this._updatePosition(s,g,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,C,c,Math.random()+"",a[0],a[1],g,null,p)})},e.prototype._showSeriesItemTooltip=function(t,r,i){var o=this._ecModel,a=eo(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,u=a.dataIndex,h=a.dataType,p=c.getData(h),g=this._renderMode,v=t.positionDefault,_=kb([p.getItemModel(u),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),y=_.get("trigger");if(null==y||"item"===y){var C=c.getDataParams(u,h),x=new sR;C.marker=x.makeTooltipMarker("item",b1(C.color),g);var P=pj(c.formatTooltip(u,!1,h)),S=_.get("order"),N=_.get("valueFormatter"),R=P.frag,z=R?Mj(N?ge({valueFormatter:N},R):R,x,g,S,o.get("useUTC"),_.get("textStyle")):P.text,$="item_"+c.name+"_"+u;this._showOrMove(_,function(){this._showTooltipContent(_,z,C,$,t.offsetX,t.offsetY,t.position,t.target,x)}),i({type:"showTip",dataIndexInside:u,dataIndex:p.getRawIndex(u),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,i){var o=eo(r),s=o.tooltipConfig.option||{};nn(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 h=t.positionDefault,p=kb(c,this._tooltipModel,h?{position:h}:null),g=p.get("content"),v=Math.random()+"",_=new sR;this._showOrMove(p,function(){var y=Br(p.get("formatterParams")||{});this._showTooltipContent(p,g,y,v,t.offsetX,t.offsetY,t.position,r,_)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,i,o,a,s,l,c,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var p=t.get("formatter");l=l||t.get("position");var g=r,_=this._getNearestPoint([a,s],i,t.get("trigger"),t.get("borderColor")).color;if(p)if(nn(p)){var y=t.ecModel.get("useUTC"),C=Ue(i)?i[0]:i;g=p,C&&C.axisType&&C.axisType.indexOf("time")>=0&&(g=O3(C.axisValue,g,y)),g=uj(g,i,!0)}else if(Qn(p)){var P=oo(function(S,N){S===this._ticket&&(h.setContent(N,u,t,_,l),this._updatePosition(t,l,a,s,h,i,c))},this);this._ticket=o,g=p(i,o,P)}else g=p;h.setContent(g,u,t,_,l),h.show(t,_),this._updatePosition(t,l,a,s,h,i,c)}},e.prototype._getNearestPoint=function(t,r,i,o){return"axis"===i||Ue(r)?{color:o||("html"===this._renderMode?"#fff":"none")}:Ue(r)?void 0:{color:o||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,i,o,a,s,l){var c=this._api.getWidth(),u=this._api.getHeight();r=r||t.get("position");var h=a.getSize(),p=t.get("align"),g=t.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Qn(r)&&(r=r([i,o],s,a.el,v,{viewSize:[c,u],contentSize:h.slice()})),Ue(r))i=ho(r[0],c),o=ho(r[1],u);else if(mn(r)){var _=r;_.width=h[0],_.height=h[1];var y=w1(_,{width:c,height:u});i=y.x,o=y.y,p=null,g=null}else if(nn(r)&&l){var C=function V2t(n,e,t,r){var i=t[0],o=t[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=e.width,u=e.height;switch(n){case"inside":s=e.x+c/2-i/2,l=e.y+u/2-o/2;break;case"top":s=e.x+c/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+c/2-i/2,l=e.y+u+a;break;case"left":s=e.x-i-a,l=e.y+u/2-o/2;break;case"right":s=e.x+c+a,l=e.y+u/2-o/2}return[s,l]}(r,v,h,t.get("borderWidth"));i=C[0],o=C[1]}else C=function F2t(n,e,t,r,i,o,a){var s=t.getSize(),l=s[0],c=s[1];return null!=o&&(n+l+o+2>r?n-=l+o:n+=o),null!=a&&(e+c+a>i?e-=c+a:e+=a),[n,e]}(i,o,a,c,u,p?null:20,g?null:20),i=C[0],o=C[1];p&&(i-=CZ(p)?h[0]/2:"right"===p?h[0]:0),g&&(o-=CZ(g)?h[1]/2:"bottom"===g?h[1]:0),dZ(t)&&(C=function B2t(n,e,t,r,i){var o=t.getSize(),a=o[0],s=o[1];return n=Math.min(n+a,r)-a,e=Math.min(e+s,i)-s,[n=Math.max(n,0),e=Math.max(e,0)]}(i,o,a,c,u),i=C[0],o=C[1]),a.moveTo(i,o)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===t.length;return a&&ht(i,function(s,l){var c=s.dataByAxis||[],h=(t[l]||{}).dataByAxis||[];(a=a&&c.length===h.length)&&ht(c,function(p,g){var v=h[g]||{},_=p.seriesDataIndices||[],y=v.seriesDataIndices||[];(a=a&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&_.length===y.length)&&ht(_,function(C,x){var P=y[x];a=a&&C.seriesIndex===P.seriesIndex&&C.dataIndex===P.dataIndex}),o&&ht(p.seriesDataIndices,function(C){var x=C.seriesIndex,P=r[x],S=o[x];P&&S&&S.data!==P.data&&(a=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!a},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){fr.node||!r.getDom()||(NR(this,"_updatePosition"),this._tooltipContent.dispose(),ZR("itemTooltip",r))},e.type="tooltip",e}(Wh);function kb(n,e,t){var i,r=e.ecModel;t?(i=new ms(t,r,r),i=new ms(e.option,i,r)):i=e;for(var o=n.length-1;o>=0;o--){var a=n[o];a&&(a instanceof ms&&(a=a.get("tooltip",!0)),nn(a)&&(a={formatter:a}),a&&(i=new ms(a,i,r)))}return i}function yZ(n,e){return n.dispatchAction||oo(e.dispatchAction,e)}function CZ(n){return"center"===n||"middle"===n}const U2t=L2t;function Rb(n){wp(SW),n.registerComponentModel(b2t),n.registerComponentView(U2t),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_l),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_l)}var z2t=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return Jn(e,n),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(fo);const H2t=z2t;var j2t=function(){function n(){}return n.prototype.getNeedCrossZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){},n}(),IN=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return Jn(e,n),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Nu).models[0]},e.type="cartesian2dAxis",e}(fo);Td(IN,j2t);var bZ={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)"]}}},G2t=ri({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},bZ),EN=ri({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}}},bZ);const Z2t={category:G2t,value:EN,time:ri({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},EN),log:hi({logBase:10},EN)};var Y2t={value:1,category:1,time:1,log:1};function MZ(n,e,t,r){ht(Y2t,function(i,o){var a=ri(ri({},Z2t[o],!0),r,!0),s=function(l){function c(){var u=null!==l&&l.apply(this,arguments)||this;return u.type=e+"Axis."+o,u}return Jn(c,l),c.prototype.mergeDefaultAndTheme=function(u,h){var p=sb(this),g=p?k3(u):{};ri(u,h.getTheme().get(o+"Axis")),ri(u,this.getDefaultOption()),u.type=wZ(u),p&&D0(u,g,p)},c.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=BR.createByAxisModel(this))},c.prototype.getCategories=function(u){var h=this.option;if("category"===h.type)return u?h.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=e+"Axis."+o,c.defaultOption=a,c}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",wZ)}function wZ(n){return n.type||(n.data?"category":"value")}var X2t=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return Cn(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Gs(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}(),kN=["x","y"];function xZ(n){return"interval"===n.type||"time"===n.type}var J2t=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=kN,t}return Jn(e,n),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(xZ(t)&&xZ(r)){var i=t.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,h=(s[1]-a[1])/c,v=this._transform=[u,0,0,h,a[0]-i[0]*u,a[1]-o[0]*h];this._invTransform=M5([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var i=this.dataToPoint(t),o=this.dataToPoint(r),a=this.getArea(),s=new fi(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var o=t[0],a=t[1];if(this._transform&&null!=o&&isFinite(o)&&null!=a&&isFinite(a))return $c(i,t,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},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(t[0]),c=o.parse(t[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},e.prototype.pointToData=function(t,r){var i=[];if(this._invTransform)return $c(i,t,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(t[0]),r),i[1]=a.coordToData(a.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),o=Math.min(r[0],r[1]),a=Math.max(t[0],t[1])-i,s=Math.max(r[0],r[1])-o;return new fi(i,o,a,s)},e}(X2t);const Q2t=J2t;var Nb=Qo();function PZ(n,e){var o,a,t=OZ(n,"labels"),r=WR(e);return SZ(t,r)||(Qn(r)?o=DZ(n,r):(a="auto"===r?function oyt(n){return Nb(n).autoInterval??(Nb(n).autoInterval=n.calculateCategoryInterval())}(n):r,o=AZ(n,a)),TZ(t,r,{labels:o,labelCategoryInterval:a}))}function OZ(n,e){return Nb(n)[e]||(Nb(n)[e]=[])}function SZ(n,e){for(var t=0;t1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=sW(n),p=a.get("showMinLabel")||h,g=a.get("showMaxLabel")||h;p&&c!==o[0]&&_(o[0]);for(var v=c;v<=o[1];v+=l)_(v);function _(y){var C={value:y};s.push(t?y:{formattedLabel:r(C),rawLabel:i.getLabel(C),tickValue:y})}return g&&v-l!==o[1]&&_(o[1]),s}function DZ(n,e,t){var r=n.scale,i=yb(n),o=[];return ht(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;e(a.value,s)&&o.push(t?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var IZ=[0,1],lyt=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=r&&e<=i},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return function Qht(n,e){var t=Math.log,r=Math.LN10,i=Math.floor(t(n[1]-n[0])/r),o=Math.round(t(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&EZ(r=r.slice(),i.count()),uk(e,IZ,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&EZ(r=r.slice(),i.count());var o=uk(e,r,IZ,t);return this.scale.scale(o)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),o=Cn(function eyt(n,e){return"category"===n.type?function ryt(n,e){var o,a,t=OZ(n,"ticks"),r=WR(e),i=SZ(t,r);if(i)return i;if((!e.get("show")||n.scale.isBlank())&&(o=[]),Qn(r))o=DZ(n,r,!0);else if("auto"===r){var s=PZ(n,n.getLabelModel());a=s.labelCategoryInterval,o=Cn(s.labels,function(l){return l.tickValue})}else o=AZ(n,a=r,!0);return TZ(t,r,{ticks:o,tickCategoryInterval:a})}(n,e):{ticks:Cn(n.scale.getTicks(),function(t){return t.value})}}(this,t).ticks,function(s){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function cyt(n,e,t,r){var i=e.length;if(n.onBand&&!t&&i){var a,o=n.getExtent();if(1===i)e[0].coord=o[0],a=e[1]={coord:o[0]};else{var c=(e[i-1].coord-e[0].coord)/(e[i-1].tickValue-e[0].tickValue);ht(e,function(g){g.coord-=c/2});var u=n.scale.getExtent();e.push(a={coord:e[i-1].coord+c*(1+u[1]-e[i-1].tickValue)})}var h=o[0]>o[1];p(e[0].coord,o[0])&&(r?e[0].coord=o[0]:e.shift()),r&&p(o[0],e[0].coord)&&e.unshift({coord:o[0]}),p(o[1],a.coord)&&(r?a.coord=o[1]:e.pop()),r&&p(a.coord,o[1])&&e.push({coord:o[1]})}function p(g,v){return g=Jo(g),v=Jo(v),h?g>v:g0&&t<100||(t=5),Cn(this.scale.getMinorTicks(t),function(o){return Cn(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this)},n.prototype.getViewLabels=function(){return function tyt(n){return"category"===n.type?function nyt(n){var e=n.getLabelModel(),t=PZ(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}(n):function iyt(n){var e=n.scale.getTicks(),t=yb(n);return{labels:Cn(e,function(r,i){return{level:r.level,formattedLabel:t(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 e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);0===r&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},n.prototype.calculateCategoryInterval=function(){return function ayt(n){var e=function syt(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(n),t=yb(n),r=(e.axisRotate-e.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)),h=Math.abs(c*Math.sin(r)),p=0,g=0;l<=o[1];l+=s){var _,y=w5(t({value:l}),e.font,"center","top");_=1.3*y.height,p=Math.max(p,1.3*y.width,7),g=Math.max(g,_,7)}var C=p/u,x=g/h;isNaN(C)&&(C=1/0),isNaN(x)&&(x=1/0);var P=Math.max(0,Math.floor(Math.min(C,x))),S=Nb(n.model),N=n.getExtent(),R=S.lastAutoInterval,z=S.lastTickCount;return null!=R&&null!=z&&Math.abs(R-P)<=1&&Math.abs(z-a)<=1&&R>P&&S.axisExtent0===N[0]&&S.axisExtent1===N[1]?P=R:(S.lastTickCount=a,S.lastAutoInterval=P,S.axisExtent0=N[0],S.axisExtent1=N[1]),P}(this)},n}();function EZ(n,e){var i=(n[1]-n[0])/e/2;n[0]+=i,n[1]-=i}var uyt=function(n){function e(t,r,i,o,a){var s=n.call(this,t,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return Jn(e,n),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(lyt);const dyt=uyt;var RN=Math.log,fyt=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kN,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;function i(a){var s,l=uo(a),c=l.length;if(c){for(var u=[],h=c-1;h>=0;h--){var g=a[+l[h]],v=g.model,_=g.scale;VR(_)&&v.get("alignTicks")&&null==v.get("interval")?u.push(g):(aW(_,v),VR(_)&&(s=g))}u.length&&(s||aW((s=u.pop()).scale,s.model),ht(u,function(y){!function hyt(n,e,t){var r=vb.prototype,i=r.getTicks.call(t),o=r.getTicks.call(t,!0),a=i.length-1,s=r.getInterval.call(t),l=oW(n,e),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===n.type){var p=RN(n.base);c=[RN(c[0])/p,RN(c[1])/p]}n.setExtent(c[0],c[1]),n.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:h});var g=r.getExtent.call(n);u&&(c[0]=g[0]),h&&(c[1]=g[1]);var v=r.getInterval.call(n),_=c[0],y=c[1];if(u&&h)v=(y-_)/a;else if(u)for(y=c[0]+v*a;yc[0]&&isFinite(_)&&isFinite(c[0]);)v=$R(v),_=c[1]-v*a;else{n.getTicks().length-1>a&&(v=$R(v));var x=v*a;(_=Jo((y=Math.ceil(c[1]/v)*v)-x))<0&&c[0]>=0?(_=0,y=Jo(x)):y>0&&c[1]<=0&&(y=0,_=-Jo(x))}var P=(i[0].value-o[0].value)/s,S=(i[a].value-o[a].value)/s;r.setExtent.call(n,_+v*P,y+v*S),r.setInterval.call(n,v),(P||S)&&r.setNiceExtent.call(n,_+v,y-v)}(y.scale,y.model,s.scale)}))}}this._updateScale(e,this.model),i(r.x),i(r.y);var o={};ht(r.x,function(a){kZ(r,"y",a,o)}),ht(r.y,function(a){kZ(r,"x",a,o)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var i=e.getBoxLayoutParams(),o=!r&&e.get("containLabel"),a=w1(i,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var s=this._axesList;function l(){ht(s,function(c){var u=c.isHorizontal(),h=u?[0,a.width]:[0,a.height],p=c.inverse?1:0;c.setExtent(h[p],h[1-p]),function pyt(n,e){var t=n.getExtent(),r=t[0]+t[1];n.toGlobalCoord="x"===n.dim?function(i){return i+e}:function(i){return r-i+e},n.toLocalCoord="x"===n.dim?function(i){return i-e}:function(i){return r-i+e}}(c,u?a.x:a.y)})}l(),o&&(ht(s,function(c){if(!c.model.get(["axisLabel","inside"])){var u=function bvt(n){var t=n.scale;if(n.model.get(["axisLabel","show"])&&!t.isBlank()){var r,i,o=t.getExtent();i=t instanceof ZG?t.count():(r=t.getTicks()).length;var l,a=n.getLabelModel(),s=yb(n),c=1;i>40&&(c=Math.ceil(i/40));for(var u=0;u0&&r>0||t<0&&r<0)}(n)}const gyt=fyt;var LN=Qo(),_yt=["axisLine","axisTickLabel","axisName"],yyt=["splitArea","splitLine","minorSplitLine"],NZ=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return Jn(e,n),e.prototype.render=function(t,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Zs,this.group.add(this._axisGroup),t.get("show")){var s=t.getCoordSysModel(),l=qR(s,t),c=new pW(t,ge({handleAutoShown:function(h){for(var p=s.coordinateSystem.getCartesians(),g=0;gbS?performance.now():Date.now(),BZ=n=>{MS[n]=void 0,H0[n]&&(H0[n]=void 0),bS&&(FN||performance.clearMeasures(n),performance.clearMarks(n))},VZ=n=>{if(bS){if(FN&&xyt){const e=new PerformanceObserver(t=>{H0[n]=t.getEntries().find(r=>r.name===n),e.disconnect()});e.observe({entryTypes:["measure"]})}performance.mark(n)}MS[n]=BN()},$Z=(n,e)=>{try{const t=MS[n];return bS?(e||performance.mark(`${n}-end`),performance.measure(n,n,e||`${n}-end`),FN?H0[n]?H0[n]:t?{duration:BN()-t,startTime:t,entryType:"measure",name:n}:{}:performance.getEntriesByName(n).pop()||{}):t?{duration:BN()-t,startTime:t,entryType:"measure",name:n}:{}}catch{return{}}finally{BZ(n),BZ(e||`${n}-end`)}},Pyt=function(n,e,t,r){return{circle:n,progress:e,"progress-dark":t,pulse:r}};function Oyt(n,e){if(1&n&&st(0,"span",1),2&n){const t=et();D("ngClass",function o7(n,e,t,r,i,o,a){return c7(Zt(),La(),n,e,t,r,i,o,a)}(4,Pyt,"circle"===t.appearance,"progress"===t.animation,"progress-dark"===t.animation,"pulse"===t.animation))("ngStyle",t.theme),Rc("aria-label",t.ariaLabel)("aria-valuetext",t.loadingText)}}const UZ=new Pe("ngx-skeleton-loader.config");let ta=(()=>{class n{constructor(t){const{appearance:r="line",animation:i="progress",theme:o=null,loadingText:a="Loading...",count:s=1,ariaLabel:l="loading"}=t||{};this.appearance=r,this.animation=i,this.theme=o,this.loadingText=a,this.count=s,this.items=[],this.ariaLabel=l}ngOnInit(){VZ("NgxSkeletonLoader:Rendered"),VZ("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(t){["count","animation","appearance"].find(r=>t[r]&&(t[r].isFirstChange()||t[r].previousValue===t[r].currentValue))||this.validateInputValues()}ngAfterViewInit(){$Z("NgxSkeletonLoader:Rendered")}ngOnDestroy(){$Z("NgxSkeletonLoader:Loaded")}}return n.\u0275fac=function(t){return new(t||n)(ft(UZ,8))},n.\u0275cmp=ye({type:n,selectors:[["ngx-skeleton-loader"]],inputs:{count:"count",loadingText:"loadingText",appearance:"appearance",animation:"animation",ariaLabel:"ariaLabel",theme:"theme"},features:[go],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(t,r){1&t&&Y(0,Oyt,1,9,"span",0),2&t&&D("ngForOf",r.items)},dependencies:[Zo,Ao,Ri],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})(),Xh=(()=>{class n{static forRoot(t){return{ngModule:n,providers:[{provide:UZ,useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({imports:[[$i]]}),n})();function zZ(n,e,t){var r=Lh.createCanvas(),i=e.getWidth(),o=e.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*t,r.height=o*t,r}var Syt=function(n){function e(t,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||XO,"string"==typeof t?a=zZ(t,r,i):mn(t)&&(t=(a=t).id),o.id=t,o.dom=a;var s=a.style;return s&&(gU(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return Fi(e,n),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=zZ("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var y,a=[],s=this.maxRepaintRectCount,l=!1,c=new fi(0,0,0,0);function u(x){if(x.isFinite()&&!x.isZero())if(0===a.length)(P=new fi(0,0,0,0)).copy(x),a.push(P);else{for(var S=!1,N=1/0,R=0,z=0;z=s)}}for(var h=this.__startIndex;h15)break}xt.prevElClipPaths&&C.restore()};if(x)if(0===x.length)$=y.__endIndex;else for(var K=g.dpr,Q=0;Q0&&e>i[0]){for(l=0;le);l++);s=r[i[l]]}if(i.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,i=0;i0?.01:0),this._needsManuallyCompositing),u.__builtin__||h5("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,t(l),o=u),i.__dirty&ic&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,p){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,ht(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?ri(r[e],t,!0):r[e]=t;for(var i=0;iMath.abs(r-e.clientWidth)>2&&(r=e.clientWidth,!0)),k(i=>e.clientWidth))}static getHeightSensor(e,t=2e3){let r=e.clientHeight;return jZ(t).pipe(wt(i=>Math.abs(r-e.clientHeight)>2&&(r=e.clientHeight,!0)),k(i=>e.clientWidth))}}let Fb=(()=>{class n{constructor(t){this._el=t,this.extentions=[],this.isResizable=!0,this.defaultWidth=400,this.defaultHeight=400,this.periodicityInMiliSeconds=2e3,this.theme="",this.chartInit=new vr}ngOnInit(){wp([...this.extentions,kyt]),this._echartsInstance=function h2t(n,e,t){var r=!(t&&t.ssr);if(r){var i=function iZ(n){return N1[function gft(n,e){return n.getAttribute?n.getAttribute(e):n[e]}(n,SN)]}(n);if(i)return i}var o=new vS(n,e,t);return o.id="ec_"+u2t++,N1[o.id]=o,r&&Fz(n,SN,o.id),eZ(o),zu.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(t){t.options&&!t.options.firstChange&&this._setParams(),t.isResizable&&!t.isResizable.firstChange&&(this.isResizable?this._addResizbleFunctionality():null!=this._subscription&&this._subscription.unsubscribe())}_addResizbleFunctionality(){null!=this._subscription&&this._subscription.unsubscribe(),this._subscription=Ryt.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(t){return new(t||n)(ft(Pr))},n.\u0275dir=qe({type:n,selectors:[["","echarts",""]],inputs:{options:"options",extentions:"extentions",isResizable:"isResizable",defaultWidth:"defaultWidth",defaultHeight:"defaultHeight",periodicityInMiliSeconds:"periodicityInMiliSeconds",theme:"theme"},outputs:{chartInit:"chartInit"},features:[go]}),n})(),Nyt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({}),n})();var j0;function Lyt(n,e){1&n&&(Et(0),d(1," "),kt())}const Fyt=function(){return{display:"block",padding:"0"}},Byt=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 Vyt(n,e){if(1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",4),d(2,"\n")),2&n){const t=et();T(1),D("ngStyle",$e(2,Fyt))("theme",Ae(3,Byt,(null==t.chart?null:t.chart.height)>20?"10px":"5px"))}}const $yt=function(n,e){return{"height.px":n,padding:e}},Uyt=function(n,e){return{"height.px":n,opacity:e}};let Bb=(j0=class{set data(e){this.loading=!0,this.subscribeToData(e)}get data(){return this._data}constructor(){this.chart=null,this.loading=!0,this._data=null,this.echartsExtentions=[q3,Rb,Lb]}onChartInit(e){this._chart=e}drawChart(e){this.chart?.dummy&&(e=this.fillDummyData(e)),this.chart?.sort&&(e=Sd.orderBy(e,"x","asc"));const t=[{data:e?.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:e?.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:t,animation:!0},yt(!0).pipe(va(600)).subscribe(()=>this.loading=!1)}catch(r){throw new Error(r)}}formatTooltip(e){let t="";for(let r=0;r${e[r]?.axisValue}\n
${e[r].seriesName}: ${this.chart?.yAxisTooltipSymbol??""}${e[r].value?.toLocaleString()}`;return t}subscribeToData(e){e?.pipe(Wt(this)).subscribe(t=>{this.drawChart(t)})}fillDummyData(e){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()),e.unshift({x:a?.toISOString()?.split("T")[0],y:0})}return e}get pChart(){return this._chart}},j0.\u0275fac=function(e){return new(e||j0)},j0.\u0275cmp=ye({type:j0,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(e,t){if(1&e&&(M(0,"div",0),d(1,"\n "),M(2,"div",1),ie("chartinit",function(i){return t.onChartInit(i)}),w(),d(3,"\n "),Y(4,Lyt,2,0,"ng-container",2),d(5,"\n"),w(),d(6,"\n\n"),Y(7,Vyt,3,5,"ng-template",null,3,ze),d(9,"\n")),2&e){const r=ue(8);let i;Ei("content pr-0 ",null!=t.chart&&t.chart.showYAxisLabel&&!t.loading?"pl-2":"",""),D("ngStyle",bd(12,$yt,t.loading?(null==t.chart?null:t.chart.loadingHeight)||(null==t.chart?null:t.chart.height):(null==t.chart?null:t.chart.height)||70,null==t.chart||null==t.chart.cssStyle?null:t.chart.cssStyle.padding)),T(2),So("id",null!==(i=null==t.chart?null:t.chart.id)&&void 0!==i?i:"chart_1"),D("options",t.options)("extentions",t.echartsExtentions)("isResizable",!0)("defaultHeight",(null==t.chart?null:t.chart.height)||70)("ngStyle",bd(15,Uyt,(null==t.chart?null:t.chart.height)||70,t.loading?0:1)),T(2),D("ngIf",!t.loading)("ngIfElse",r)}},dependencies:[Xn,Ri,ta,Fb],styles:["ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-50%;left:50%;transform:translate(-50%,-50%)}.content[_ngcontent-%COMP%]{padding:0}"]}),j0);Bb=It([Ze({checkProperties:!0})],Bb);var xS=2*Math.PI,GZ=Math.PI/180;function WZ(n,e){return w1(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qZ(n,e){var t=WZ(n,e),r=n.get("center"),i=n.get("radius");Ue(i)||(i=[0,i]);var u,h,o=ho(t.width,e.getWidth()),a=ho(t.height,e.getHeight()),s=Math.min(o,a),l=ho(i[0],s/2),c=ho(i[1],s/2),p=n.coordinateSystem;if(p){var g=p.dataToPoint(r);u=g[0]||0,h=g[1]||0}else Ue(r)||(r=[r,r]),u=ho(r[0],o)+t.x,h=ho(r[1],a)+t.y;return{cx:u,cy:h,r0:l,r:c}}function zyt(n,e,t){e.eachSeriesByType(n,function(r){var i=r.getData(),o=i.mapDimension("value"),a=WZ(r,t),s=qZ(r,t),l=s.cx,c=s.cy,u=s.r,h=s.r0,p=-r.get("startAngle")*GZ,g=r.get("minAngle")*GZ,v=0;i.each(o,function(K){!isNaN(K)&&v++});var _=i.getSum(o),y=Math.PI/(_||v)*2,C=r.get("clockwise"),x=r.get("roseType"),P=r.get("stillShowZeroSum"),S=i.getDataExtent(o);S[0]=0;var N=xS,R=0,z=p,$=C?1:-1;if(i.setLayout({viewRect:a,r:u}),i.each(o,function(K,Q){var rt;if(isNaN(K))i.setItemLayout(Q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:l,cy:c,r0:h,r:x?NaN:u});else{(rt="area"!==x?0===_&&P?y:K*y:xS/v)0){e=e/180*Math.PI,ju.fromArray(n[0]),Oi.fromArray(n[1]),Io.fromArray(n[2]),Fn.sub(Vd,ju,Oi),Fn.sub($d,Io,Oi);var t=Vd.len(),r=$d.len();if(!(t<.001||r<.001)){Vd.scale(1/t),$d.scale(1/r);var i=Vd.dot($d);if(Math.cos(e)1&&Fn.copy(Xs,Io),Xs.toArray(n[1])}}}}function Yyt(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,ju.fromArray(n[0]),Oi.fromArray(n[1]),Io.fromArray(n[2]),Fn.sub(Vd,Oi,ju),Fn.sub($d,Io,Oi);var r=Vd.len(),i=$d.len();if(!(r<.001||i<.001)&&(Vd.scale(1/r),$d.scale(1/i),Vd.dot(e)=l)Fn.copy(Xs,Io);else{Xs.scaleAndAdd($d,s/Math.tan(Math.PI/2-u));var h=Io.x!==Oi.x?(Xs.x-Oi.x)/(Io.x-Oi.x):(Xs.y-Oi.y)/(Io.y-Oi.y);if(isNaN(h))return;h<0?Fn.copy(Xs,Oi):h>1&&Fn.copy(Xs,Io)}Xs.toArray(n[1])}}}function XZ(n,e,t,r){var i="normal"===t,o=i?n:n.ensureState(t);o.ignore=e;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 Xyt(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var i=A5(r[0],r[1]),o=A5(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)*t,s=D5([],r[1],r[0],a/i),l=D5([],r[1],r[2],a/o),c=D5([],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&&R(-h/a,0,a);var x,P,y=n[0],C=n[a-1];return S(),x<0&&z(-x,.8),P<0&&z(P,.8),S(),N(x,P,1),N(P,x,-1),S(),x<0&&$(-x),P<0&&$(P),c}function S(){x=y.rect[e]-r,P=i-C.rect[e]-C.rect[t]}function N(W,K,Q){if(W<0){var rt=Math.min(K,-W);if(rt>0){R(rt*Q,0,a);var ut=rt+W;ut<0&&z(-ut*Q,1)}else z(-W*Q,1)}}function R(W,K,Q){0!==W&&(c=!0);for(var rt=K;rt0)for(ut=0;ut0;ut--)R(-Q[ut-1]*Rt,ut,a)}}function $(W){var K=W<0?-1:1;W=Math.abs(W);for(var Q=Math.ceil(W/(a-1)),rt=0;rt0?R(Q,0,rt+1):R(-Q,a-rt-1,a),(W-=Q)<=0)return}}(n,"y","height",e,t,r)})(n,l,l+a)&&function h(_){for(var y={list:[],maxY:0},C={list:[],maxY:0},x=0;x<_.length;x++)if("none"===_[x].labelAlignTo){var P=_[x],S=P.label.y>t?C:y,N=Math.abs(P.label.y-t);if(N>=S.maxY){var R=P.label.x-e-P.len2*i,z=r+P.len,$=Math.abs(R)n.unconstrainedWidth?null:g:null)}var _=r.getBoundingRect();o.width=_.width,o.height=_.height+((r.style.margin||0)+2.1),o.y-=(o.height-h)/2}}}function $N(n){return"center"===n.position}function SS(n,e,t){var r=n.get("borderRadius");if(null==r)return t?{cornerRadius:0}:null;Ue(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Cn(r,function(o){return op(o,i)})}}var nCt=function(n){function e(t,r,i){var o=n.call(this)||this;o.z2=2;var a=new ps;return o.setTextContent(a),o.updateData(t,r,i,!0),o}return Jn(e,n),e.prototype.updateData=function(t,r,i,o){var a=this,s=t.hostModel,l=t.getItemModel(r),c=l.getModel("emphasis"),u=t.getItemLayout(r),h=ge(SS(l.getModel("itemStyle"),u,!0),u);if(isNaN(h.startAngle))a.setShape(h);else{if(o){a.setShape(h);var p=s.getShallow("animationType");s.ecModel.ssr?(vp(a,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),a.originX=h.cx,a.originY=h.cy):"scale"===p?(a.shape.r=u.r0,vp(a,{shape:{r:u.r}},s,r)):null!=i?(a.setShape({startAngle:i,endAngle:i}),vp(a,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},s,r)):(a.shape.endAngle=u.startAngle,Bd(a,{shape:{endAngle:u.endAngle}},s,r))}else rG(a),Bd(a,{shape:h},s,r);a.useStyle(t.getItemVisual(r,"style")),xk(a,l);var g=(u.startAngle+u.endAngle)/2,v=s.get("selectedOffset"),_=Math.cos(g)*v,y=Math.sin(g)*v,C=l.getShallow("cursor");C&&a.attr("cursor",C),this._updateLabel(s,t,r),a.ensureState("emphasis").shape=ge({r:u.r+(c.get("scale")&&c.get("scaleSize")||0)},SS(c.getModel("itemStyle"),u)),ge(a.ensureState("select"),{x:_,y,shape:SS(l.getModel(["select","itemStyle"]),u)}),ge(a.ensureState("blur"),{shape:SS(l.getModel(["blur","itemStyle"]),u)});var x=a.getTextGuideLine(),P=a.getTextContent();x&&ge(x.ensureState("select"),{x:_,y}),ge(P.ensureState("select"),{x:_,y}),d3(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))}},e.prototype._updateLabel=function(t,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;f3(o,p3(a),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:c,defaultOpacity:u,defaultText:t.getFormattedLabel(i,"normal")||r.getName(i)});var h=o.getTextContent();o.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var p=t.get(["label","position"]);if("outside"!==p&&"outer"!==p)o.removeTextGuideLine();else{var g=this.getTextGuideLine();g||(g=new $3,this.setTextGuideLine(g)),function Kyt(n,e,t){var r=n.getTextGuideLine(),i=n.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l0){for(var u=a.getItemLayout(0),h=1;isNaN(u&&u.startAngle)&&h0?"right":"left":qt>0?"left":"right"}var Ka=Math.PI,ya=0,fc=rt.get("rotate");if(Li(fc))ya=fc*(Ka/180);else if("center"===ut)ya=0;else if("radial"===fc||!0===fc)ya=qt<0?-Jt+Ka:-Jt;else if("tangential"===fc&&"outside"!==ut&&"outer"!==ut){var pc=Math.atan2(qt,re);pc<0&&(pc=2*Ka+pc),re>0&&(pc=Ka+pc),ya=pc-Ka}if(o=!!ya,W.x=Te,W.y=hn,W.rotation=ya,W.setStyle({verticalAlign:"middle"}),$r){W.setStyle({align:Vr});var il=W.states.select;il&&(il.x+=W.x,il.y+=W.y)}else{var Ca=W.getBoundingRect().clone();Ca.applyTransform(W.getComputedTransform());var cu=(W.style.margin||0)+2.1;Ca.y-=cu/2,Ca.height+=cu,t.push({label:W,labelLine:K,position:ut,len:gt,len2:St,minTurnAngle:lt.get("minTurnAngle"),maxSurfaceAngle:lt.get("maxSurfaceAngle"),surfaceNormal:new Fn(qt,re),linePoints:Pn,textAlign:Vr,labelDistance:xt,labelAlignTo:Ft,edgeDistance:Rt,bleedMargin:me,rect:Ca,unconstrainedWidth:Ca.width,labelStyleWidth:W.style.width})}z.setTextConfig({inside:$r})}}),!o&&n.get("avoidLabelOverlap")&&function tCt(n,e,t,r,i,o,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p=o.r0}},e.type="pie",e}(Gh);const iCt=rCt;var aCt=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},n.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},n.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},n}();const sCt=aCt;var lCt=Qo(),cCt=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return Jn(e,n),e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new sCt(oo(this.getData,this),oo(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return function oCt(n,e,t){e=Ue(e)&&{coordDimensions:e}||ge({encodeDefine:n.getEncode()},e);var r=n.getSource(),i=zk(r,e).dimensions,o=new jH(i,n);return o.initData(r,t),o}(this,{coordDimensions:["value"],encodeDefaulter:Ko(Qft,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),i=lCt(r),o=i.seats;if(!o){var a=[];r.each(r.mapDimension("value"),function(l){a.push(l)}),o=i.seats=function Oz(n,e){var t=ip(n,function(g,v){return g+(isNaN(v)?0:v)},0);if(0===t)return[];for(var r=Math.pow(10,e),i=Cn(n,function(g){return(isNaN(g)?0:g)/t*r*100}),o=100*r,a=Cn(i,function(g){return Math.floor(g)}),s=ip(a,function(g,v){return g+v},0),l=Cn(i,function(g,v){return g-a[v]});sc&&(c=l[h],u=h);++a[u],l[u]=0,++s}return Cn(a,function(g){return g/r})}(a,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=o[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){hk(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.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"},e}(E0);const uCt=cCt;function hCt(n){n.registerChartView(iCt),n.registerSeriesModel(uCt),function x_t(n,e){function t(r,i){var o=[];return r.eachComponent({mainType:"series",subType:n,query:i},function(a){o.push(a.seriesIndex)}),o}ht([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(r){e(r[0],function(i,o,a){i=ge({},i),a.dispatchAction(ge(i,{type:r[1],seriesIndex:t(o,i)}))})})}("pie",n.registerAction),n.registerLayout(Ko(zyt,"pie")),n.registerProcessor(function Hyt(n){return{seriesType:n,reset:function(e,t){var r=t.findComponents({mainType:"legend"});if(r&&r.length){var i=e.getData();i.filterSelf(function(o){for(var a=i.getName(o),s=0;s=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(fo);const UN=pCt;var G0=Ko,zN=ht,TS=Zs,mCt=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return Jn(e,n),e.prototype.init=function(){this.group.add(this._contentGroup=new TS),this.group.add(this._selectorGroup=new TS),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var a=t.get("align"),s=t.get("orient");(!a||"auto"===a)&&(a="right"===t.get("left")&&"vertical"===s?"right":"left");var l=t.get("selector",!0),c=t.get("selectorPosition",!0);l&&(!c||"auto"===c)&&(c="horizontal"===s?"end":"start"),this.renderInner(a,t,r,i,l,s,c);var u=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},p=t.get("padding"),g=w1(u,h,p),v=this.layoutInner(t,a,g,o,l,c),_=w1(hi({width:v.width,height:v.height},u),h,p);this.group.x=_.x-v.x,this.group.y=_.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function gCt(n,e){var t=I3(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),new Ua({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1})}(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,i,o,a,s,l){var c=this.getContentGroup(),u=hr(),h=r.get("selectedMode"),p=[];i.eachRawSeries(function(g){!g.get("legendHoverLink")&&p.push(g.id)}),zN(r.getData(),function(g,v){var _=g.get("name");if(!this.newlineDisabled&&(""===_||"\n"===_)){var y=new TS;return y.newline=!0,void c.add(y)}var C=i.getSeriesByName(_)[0];if(!u.get(_))if(C){var x=C.getData(),P=x.getVisual("legendLineStyle")||{},S=x.getVisual("legendIcon"),N=x.getVisual("style");this._createItem(C,_,v,g,r,t,P,N,S,h,o).on("click",G0(QZ,_,null,o,p)).on("mouseover",G0(HN,C.name,null,o,p)).on("mouseout",G0(jN,C.name,null,o,p)),u.set(_,!0)}else i.eachRawSeries(function(z){if(!u.get(_)&&z.legendVisualProvider){var $=z.legendVisualProvider;if(!$.containName(_))return;var W=$.indexOfName(_),K=$.getItemVisual(W,"style"),Q=$.getItemVisual(W,"legendIcon"),rt=Hc(K.fill);rt&&0===rt[3]&&(rt[3]=.2,K=ge(ge({},K),{fill:n1(rt,"rgba")})),this._createItem(z,_,v,g,r,t,{},K,Q,h,o).on("click",G0(QZ,null,_,o,p)).on("mouseover",G0(HN,null,_,o,p)).on("mouseout",G0(jN,null,_,o,p)),u.set(_,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},e.prototype._createSelector=function(t,r,i,o,a){var s=this.getSelectorGroup();zN(t,function(c){var u=c.type,h=new ps({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===u?"legendAllSelect":"legendInverseSelect"})}});s.add(h),f3(h,{normal:r.getModel("selectorLabel"),emphasis:r.getModel(["emphasis","selectorLabel"])},{defaultText:c.title}),wk(h)})},e.prototype._createItem=function(t,r,i,o,a,s,l,c,u,h,p){var g=t.visualDrawType,v=a.get("itemWidth"),_=a.get("itemHeight"),y=a.isSelected(r),C=o.get("symbolRotate"),x=o.get("symbolKeepAspect"),P=o.get("icon"),S=function vCt(n,e,t,r,i,o,a){function s(y,C){"auto"===y.lineWidth&&(y.lineWidth=C.lineWidth>0?2:0),zN(y,function(x,P){"inherit"===y[P]&&(y[P]=C[P])})}var l=e.getModel("itemStyle"),c=l.getItemStyle(),u=0===n.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?pN(h,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:t).opacity),s(c,r);var p=e.getModel("lineStyle"),g=p.getLineStyle();if(s(g,t),"auto"===c.fill&&(c.fill=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),"auto"===g.stroke&&(g.stroke=r.fill),!o){var v=e.get("inactiveBorderWidth");c.lineWidth="auto"===v?r.lineWidth>0&&c[u]?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),g.stroke=p.get("inactiveColor"),g.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:g}}(u=P||u||"roundRect",o,l,c,g,y,p),N=new TS,R=o.getModel("textStyle");if(!Qn(t.getLegendIcon)||P&&"inherit"!==P){var z="inherit"===P&&t.getData().getVisual("symbol")?"inherit"===C?t.getData().getVisual("symbolRotate"):C:0;N.add(function _Ct(n){var e=n.icon||"roundRect",t=N0(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}({itemWidth:v,itemHeight:_,icon:u,iconRotate:z,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:x}))}else N.add(t.getLegendIcon({itemWidth:v,itemHeight:_,icon:u,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:x}));var $="left"===s?v+5:-5,W=s,K=a.get("formatter"),Q=r;nn(K)&&K?Q=K.replace("{name}",r??""):Qn(K)&&(Q=K(r));var rt=o.get("inactiveColor");N.add(new ps({style:pp(R,{text:Q,x:$,y:_/2,fill:y?R.getTextColor():rt,align:W,verticalAlign:"middle"})}));var ut=new Ua({shape:N.getBoundingRect(),invisible:!0}),xt=o.getModel("tooltip");return xt.get("show")&&CR({el:ut,componentModel:a,itemName:r,itemTooltipOption:xt.option}),N.add(ut),N.eachChild(function(Ft){Ft.silent=!0}),ut.silent=!h,this.getContentGroup().add(N),wk(N),N.__legendDataIndex=i,N},e.prototype.layoutInner=function(t,r,i,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();ab(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var u=l.getBoundingRect(),h=[-u.x,-u.y];if(c.markRedraw(),l.markRedraw(),a){ab("horizontal",c,t.get("selectorItemGap",!0));var p=c.getBoundingRect(),g=[-p.x,-p.y],v=t.get("selectorButtonGap",!0),_=t.getOrient().index,y=0===_?"width":"height",C=0===_?"height":"width",x=0===_?"y":"x";"end"===s?g[_]+=u[y]+v:h[_]+=p[y]+v,g[1-_]+=u[C]/2-p[C]/2,c.x=g[0],c.y=g[1],l.x=h[0],l.y=h[1];var P={x:0,y:0};return P[y]=u[y]+v+p[y],P[C]=Math.max(u[C],p[C]),P[x]=Math.min(0,p[x]+g[1-_]),P}return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Wh);function QZ(n,e,t,r){jN(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),HN(n,e,t,r)}function tY(n){for(var t,e=n.getZr().storage.getDisplayList(),r=0,i=e.length;ri[a],y=[-g.x,-g.y];r||(y[o]=u[c]);var C=[0,0],x=[-v.x,-v.y],P=Ir(t.get("pageButtonGap",!0),t.get("itemGap",!0));_&&("end"===t.get("pageButtonPosition",!0)?x[o]+=i[a]-v[a]:C[o]+=v[a]+P),x[1-o]+=g[s]/2-v[s]/2,u.setPosition(y),h.setPosition(C),p.setPosition(x);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]+x[1-o]),h.__rectSize=i[a],_){var R={x:0,y:0};R[a]=Math.max(i[a]-v[a]-P,0),R[s]=N[s],h.setClipPath(new Ua({shape:R})),h.__rectSize=R[a]}else p.eachChild(function($){$.attr({invisible:!0,silent:!0})});var z=this._getPageInfo(t);return null!=z.pageIndex&&Bd(u,{x:z.contentPosition[0],y:z.contentPosition[1]},_?t:null),this._updatePageInfoView(t,z),N},e.prototype._pageGo=function(t,r,i){var o=this._getPageInfo(r)[t];null!=o&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var i=this._controllerGroup;ht(["pagePrev","pageNext"],function(u){var p=null!=r[u+"DataIndex"],g=i.childOfName(u);g&&(g.setStyle("fill",t.get(p?"pageIconColor":"pageIconInactiveColor",!0)),g.cursor=p?"pointer":"default")});var o=i.childOfName("pageText"),a=t.get("pageFormatter"),s=r.pageIndex,l=null!=s?s+1:0,c=r.pageCount;o&&a&&o.setStyle("text",nn(a)?a.replace("{current}",null==l?"":l+"").replace("{total}",null==c?"":c+""):a({current:l,total:c}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=GN[a],l=WN[a],c=this._findTargetItemIndex(r),u=i.children(),h=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(!h)return v;var _=S(h);v.contentPosition[a]=-_.s;for(var y=c+1,C=_,x=_,P=null;y<=p;++y)(!(P=S(u[y]))&&x.e>C.s+o||P&&!N(P,C.s))&&(C=x.i>C.i?x:P)&&(null==v.pageNextDataIndex&&(v.pageNextDataIndex=C.i),++v.pageCount),x=P;for(y=c-1,C=_,x=_,P=null;y>=-1;--y)(!(P=S(u[y]))||!N(x,P.s))&&C.i=z&&R.s<=z+o}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(a,s){var l=a.__legendDataIndex;null==o&&null!=l&&(o=s),l===t&&(r=s)}),r??o):0;var r,o},e.type="legend.scroll",e}(eY);const xCt=wCt;function OCt(n){wp(nY),n.registerComponentModel(MCt),n.registerComponentView(xCt),function PCt(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;null!=r&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}(n)}function AS(n){wp(nY),wp(OCt)}var zi,SCt=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return Jn(e,n),e.type="title",e.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"}},e}(fo),TCt=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=e.type,t}return Jn(e,n),e.prototype.render=function(t,r,i){if(this.group.removeAll(),t.get("show")){var o=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),c=Ir(t.get("textBaseline"),t.get("textVerticalAlign")),u=new ps({style:pp(a,{text:t.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),h=u.getBoundingRect(),p=t.get("subtext"),g=new ps({style:pp(s,{text:p,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),_=t.get("sublink"),y=t.get("triggerEvent",!0);u.silent=!v&&!y,g.silent=!_&&!y,v&&u.on("click",function(){dj(v,"_"+t.get("target"))}),_&&g.on("click",function(){dj(_,"_"+t.get("subtarget"))}),eo(u).eventData=eo(g).eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,o.add(u),p&&o.add(g);var C=o.getBoundingRect(),x=t.getBoxLayoutParams();x.width=C.width,x.height=C.height;var P=w1(x,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||("middle"===(l=t.get("left")||t.get("right"))&&(l="center"),"right"===l?P.x+=P.width:"center"===l&&(P.x+=P.width/2)),c||("center"===(c=t.get("top")||t.get("bottom"))&&(c="middle"),"bottom"===c?P.y+=P.height:"middle"===c&&(P.y+=P.height/2),c=c||"top"),o.x=P.x,o.y=P.y,o.markRedraw();var S={align:l,verticalAlign:c};u.setStyle(S),g.setStyle(S),C=o.getBoundingRect();var N=P.margin,R=t.getItemStyle(["color","opacity"]);R.fill=t.get("backgroundColor");var z=new Ua({shape:{x:C.x-N[3],y:C.y-N[0],width:C.width+N[1]+N[3],height:C.height+N[0]+N[2],r:t.get("borderRadius")},style:R,subPixelOptimize:!0,silent:!0});o.add(z)}},e.type="title",e}(Wh);function oY(n){n.registerComponentModel(SCt),n.registerComponentView(TCt)}!function(n){let e;var i;let t,r;(i=e=n.State||(n.State={})).Requested="requested",i.Block_Created="block_created",i.Block_Sent="block_sent",i.Node_Validated="node_validated",i.Block_Added="block_added",i.Network_Updated="network_updated",i.Completed="completed",function(i){i.Pending="pending",i.Success="success",i.Failed="failed",i.Dropped="dropped"}(t=n.Status||(n.Status={})),function(i){i.Settlement="settlement",i.Stored="stored",i.Minted="minted",i.DevRoyalty="dev-royalty",i.BanwidthFunded="bandwidth-funded"}(r=n.Type||(n.Type={}))}(zi||(zi={}));var na,q0,ea=(()=>(function(n){n.AllTime="All-Time",n.YTD="YTD",n.D30="30D",n.D7="7D",n.D1="1D"}(ea||(ea={})),ea))(),lr=(()=>(function(n){n.STORE="store",n.Ethereum="ethereum"}(lr||(lr={})),lr))(),W0=(()=>(function(n){n[n.Explorer=0]="Explorer",n[n.Website=1]="Website",n[n.Oracle=2]="Oracle"}(W0||(W0={})),W0))(),DS=(()=>(function(n){n.Pending="pending",n.Completed="completed",n.Removed="removed"}(DS||(DS={})),DS))();!function(n){let e;var u;let t,r,i,o,a,s,l,c;(u=e=n.Type||(n.Type={})).Storage="storage",u.Compute="compute",u.Bandwidth="bandwidth",u.IP="ip",function(u){u.Perpetual="perpetual",u.Tier1="tier-1",u.Tier2="tier-2",u.Tier3="tier-3",u.GeneralPurpose="general purpose",u.ComputeOptimized="compute optimized",u.MemoryOptimized="memory optimized",u._10g="10g",u.DataTransfer="data transfer",u._1g="1g"}(t=n.SubType||(n.SubType={})),function(u){u.Disk="Disk",u.Instance="Instance",u.Network="Network"}(r=n.OrionType||(n.OrionType={})),function(u){u.SSD="SSD",u.Standard="Standard",u.HighCPU="High CPU",u.IPAddressPublicNetwork="IPAddress-Public Network",u.BandwidthPublicNetwork="Bandwidth-Public Network",u.IPAddressPrivateNetwork="IPAddress-Private Network",u.BandwidthPrivateNetwork="Bandwidth-Private Network"}(i=n.OrionSubType||(n.OrionSubType={})),function(u){u.Orion="Orion"}(o=n.Cloud||(n.Cloud={})),function(u){u.USD="usd",u.BITS="bits",u.ETH="eth",u.BTC="btc",u.STORE="store",u.PERCENT="percent"}(a=n.Unit||(n.Unit={})),function(u){u.IPPerSec="ip/sec",u.IPPerHour="ip/hour",u.IPPerMonth="ip/month",u.IP="ip",u.GB="gb",u.GBPerSec="gb/sec",u.GBPerHour="gb/hour",u.GBPerMonth="gb/month",u.RamPerSec="ram/sec",u.Bytes="bytes",u.BytesPerSec="bytes/sec",u.BytesPerHour="bytes/hour",u.BytesPerMonth="bytes/month"}(s=n.Measurement||(n.Measurement={})),function(u){u.Hourly="hourly",u.Minutly="minutly",u.Secondly="secondly",u.Weekly="weekly",u.Monthly="monthly",u.Yearly="yearly"}(l=n.CostType||(n.CostType={})),function(u){u.BUY="buy",u.SELL="sell",u.MARGIN="margin"}(c=n.Option||(n.Option={}))}(na||(na={}));const ACt=function(n){return{"width.rem":n}};function DCt(n,e){if(1&n&&st(0,"img",1),2&n){const t=et();Ei("icon icon-size-",t.size,""),Ph("src","https://explorer.storecloud.org/assets/lucide_icon/",t.icon,".svg",Pa),D("ngStyle",Ae(5,ACt,(t.size||10)/10))}}let Aa=((q0=class{constructor(){this.icon=null,this.size=18}}).\u0275fac=function(e){return new(e||q0)},q0.\u0275cmp=ye({type:q0,selectors:[["storecloud-icon"]],inputs:{icon:"icon",size:"size"},standalone:!0,features:[Fo],decls:2,vars:1,consts:[[3,"class","src","ngStyle",4,"ngIf"],[3,"src","ngStyle"]],template:function(e,t){1&e&&(Y(0,DCt,1,7,"img",0),d(1,"\n")),2&e&&D("ngIf",t.icon)},dependencies:[$i,Xn,Ri],styles:["img[_ngcontent-%COMP%]{display:block}"]}),q0);function oc(n){if(null==n)return window;if("[object Window]"!==n.toString()){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function V1(n){return n instanceof oc(n).Element||n instanceof Element}function Qc(n){return n instanceof oc(n).HTMLElement||n instanceof HTMLElement}function qN(n){return!(typeof ShadowRoot>"u")&&(n instanceof oc(n).ShadowRoot||n instanceof ShadowRoot)}Aa=It([Ze({checkProperties:!0})],Aa);var $1=Math.max,IS=Math.min,Z0=Math.round;function ZN(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function aY(){return!/^((?!chrome|android).)*safari/i.test(ZN())}function Y0(n,e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=n.getBoundingClientRect(),i=1,o=1;e&&Qc(n)&&(i=n.offsetWidth>0&&Z0(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Z0(r.height)/n.offsetHeight||1);var s=(V1(n)?oc(n):window).visualViewport,l=!aY()&&t,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:u,right:c+h,bottom:u+p,left:c,x:c,y:u}}function YN(n){var e=oc(n);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ud(n){return n?(n.nodeName||"").toLowerCase():null}function Pp(n){return((V1(n)?n.ownerDocument:n.document)||window.document).documentElement}function XN(n){return Y0(Pp(n)).left+YN(n).scrollLeft}function Kh(n){return oc(n).getComputedStyle(n)}function KN(n){var e=Kh(n);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function RCt(n,e,t){void 0===t&&(t=!1);var r=Qc(e),i=Qc(e)&&function kCt(n){var e=n.getBoundingClientRect(),t=Z0(e.width)/n.offsetWidth||1,r=Z0(e.height)/n.offsetHeight||1;return 1!==t||1!==r}(e),o=Pp(e),a=Y0(n,i,t),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&(("body"!==Ud(e)||KN(o))&&(s=function ECt(n){return n!==oc(n)&&Qc(n)?function ICt(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):YN(n)}(e)),Qc(e)?((l=Y0(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=XN(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function JN(n){var e=Y0(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function ES(n){return"html"===Ud(n)?n:n.assignedSlot||n.parentNode||(qN(n)?n.host:null)||Pp(n)}function sY(n){return["html","body","#document"].indexOf(Ud(n))>=0?n.ownerDocument.body:Qc(n)&&KN(n)?n:sY(ES(n))}function Ub(n,e){var t;void 0===e&&(e=[]);var r=sY(n),i=r===(null==(t=n.ownerDocument)?void 0:t.body),o=oc(r),a=i?[o].concat(o.visualViewport||[],KN(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(Ub(ES(a)))}function NCt(n){return["table","td","th"].indexOf(Ud(n))>=0}function lY(n){return Qc(n)&&"fixed"!==Kh(n).position?n.offsetParent:null}function zb(n){for(var e=oc(n),t=lY(n);t&&NCt(t)&&"static"===Kh(t).position;)t=lY(t);return t&&("html"===Ud(t)||"body"===Ud(t)&&"static"===Kh(t).position)?e:t||function LCt(n){var e=/firefox/i.test(ZN());if(/Trident/i.test(ZN())&&Qc(n)&&"fixed"===Kh(n).position)return null;var i=ES(n);for(qN(i)&&(i=i.host);Qc(i)&&["html","body"].indexOf(Ud(i))<0;){var o=Kh(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}(n)||e}var Pl="top",tu="bottom",eu="right",Ol="left",QN="auto",Hb=[Pl,tu,eu,Ol],X0="start",jb="end",FCt="clippingParents",cY="viewport",Gb="popper",BCt="reference",uY=Hb.reduce(function(n,e){return n.concat([e+"-"+X0,e+"-"+jb])},[]),dY=[].concat(Hb,[QN]).reduce(function(n,e){return n.concat([e,e+"-"+X0,e+"-"+jb])},[]),ZCt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function YCt(n){var e=new Map,t=new Set,r=[];function i(o){t.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(s){if(!t.has(s)){var l=e.get(s);l&&i(l)}}),r.push(o)}return n.forEach(function(o){e.set(o.name,o)}),n.forEach(function(o){t.has(o.name)||i(o)}),r}function KCt(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}var hY={placement:"bottom",modifiers:[],strategy:"absolute"};function fY(){for(var n=arguments.length,e=new Array(n),t=0;t=0?"x":"y"}function pY(n){var l,e=n.reference,t=n.element,r=n.placement,i=r?zd(r):null,o=r?K0(r):null,a=e.x+e.width/2-t.width/2,s=e.y+e.height/2-t.height/2;switch(i){case Pl:l={x:a,y:e.y-t.height};break;case tu:l={x:a,y:e.y+e.height};break;case eu:l={x:e.x+e.width,y:s};break;case Ol:l={x:e.x-t.width,y:s};break;default:l={x:e.x,y:e.y}}var c=i?t6(i):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case X0:l[c]=l[c]-(e[u]/2-t[u]/2);break;case jb:l[c]=l[c]+(e[u]/2-t[u]/2)}}return l}const rbt={name:"popperOffsets",enabled:!0,phase:"read",fn:function nbt(n){var e=n.state;e.modifiersData[n.name]=pY({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var ibt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gY(n){var e,t=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,h=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 C=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),P=Ol,S=Pl,N=window;if(c){var R=zb(t),z="clientHeight",$="clientWidth";R===oc(t)&&"static"!==Kh(R=Pp(t)).position&&"absolute"===s&&(z="scrollHeight",$="scrollWidth"),(i===Pl||(i===Ol||i===eu)&&o===jb)&&(S=tu,_-=(h&&R===N&&N.visualViewport?N.visualViewport.height:R[z])-r.height,_*=l?1:-1),i!==Ol&&(i!==Pl&&i!==tu||o!==jb)||(P=eu,g-=(h&&R===N&&N.visualViewport?N.visualViewport.width:R[$])-r.width,g*=l?1:-1)}var ut,Q=Object.assign({position:s},c&&ibt),rt=!0===u?function obt(n,e){var r=n.y,i=e.devicePixelRatio||1;return{x:Z0(n.x*i)/i||0,y:Z0(r*i)/i||0}}({x:g,y:_},oc(t)):{x:g,y:_};return g=rt.x,_=rt.y,Object.assign({},Q,l?((ut={})[S]=x?"0":"",ut[P]=C?"0":"",ut.transform=(N.devicePixelRatio||1)<=1?"translate("+g+"px, "+_+"px)":"translate3d("+g+"px, "+_+"px, 0)",ut):((e={})[S]=x?_+"px":"",e[P]=C?g+"px":"",e.transform="",e))}const sbt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function abt(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=void 0===r||r,o=t.adaptive,a=void 0===o||o,s=t.roundOffsets,l=void 0===s||s,u={placement:zd(e.placement),variation:K0(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,gY(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,gY(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},mY={name:"applyStyles",enabled:!0,phase:"write",fn:function lbt(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!Qc(o)||!Ud(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 cbt(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]).reduce(function(l,c){return l[c]="",l},{});!Qc(i)||!Ud(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}},requires:["computeStyles"]},hbt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function dbt(n){var e=n.state,r=n.name,i=n.options.offset,o=void 0===i?[0,0]:i,a=dY.reduce(function(u,h){return u[h]=function ubt(n,e,t){var r=zd(n),i=[Ol,Pl].indexOf(r)>=0?-1:1,o="function"==typeof t?t(Object.assign({},e,{placement:n})):t,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ol,eu].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(h,e.rects,o),u},{}),s=a[e.placement],c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=s.x,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}};var fbt={left:"right",right:"left",bottom:"top",top:"bottom"};function RS(n){return n.replace(/left|right|bottom|top/g,function(e){return fbt[e]})}var pbt={start:"end",end:"start"};function vY(n){return n.replace(/start|end/g,function(e){return pbt[e]})}function _Y(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&qN(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function e6(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function yY(n,e,t){return e===cY?e6(function gbt(n,e){var t=oc(n),r=Pp(n),i=t.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=aY();(c||!c&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+XN(n),y:l}}(n,t)):V1(e)?function vbt(n,e){var t=Y0(n,!1,"fixed"===e);return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}(e,t):e6(function mbt(n){var e,t=Pp(n),r=YN(n),i=null==(e=n.ownerDocument)?void 0:e.body,o=$1(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=$1(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+XN(n),l=-r.scrollTop;return"rtl"===Kh(i||t).direction&&(s+=$1(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(Pp(n)))}function bY(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function MY(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}function Wb(n,e){void 0===e&&(e={});var r=e.placement,i=void 0===r?n.placement:r,o=e.strategy,a=void 0===o?n.strategy:o,s=e.boundary,l=void 0===s?FCt:s,c=e.rootBoundary,u=void 0===c?cY:c,h=e.elementContext,p=void 0===h?Gb:h,g=e.altBoundary,v=void 0!==g&&g,_=e.padding,y=void 0===_?0:_,C=bY("number"!=typeof y?y:MY(y,Hb)),P=n.rects.popper,S=n.elements[v?p===Gb?BCt:Gb:p],N=function ybt(n,e,t,r){var i="clippingParents"===e?function _bt(n){var e=Ub(ES(n)),r=["absolute","fixed"].indexOf(Kh(n).position)>=0&&Qc(n)?zb(n):n;return V1(r)?e.filter(function(i){return V1(i)&&_Y(i,r)&&"body"!==Ud(i)}):[]}(n):[].concat(e),o=[].concat(i,[t]),s=o.reduce(function(l,c){var u=yY(n,c,r);return l.top=$1(u.top,l.top),l.right=IS(u.right,l.right),l.bottom=IS(u.bottom,l.bottom),l.left=$1(u.left,l.left),l},yY(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}(V1(S)?S:S.contextElement||Pp(n.elements.popper),l,u,a),R=Y0(n.elements.reference),z=pY({reference:R,element:P,strategy:"absolute",placement:i}),$=e6(Object.assign({},P,z)),W=p===Gb?$:R,K={top:N.top-W.top+C.top,bottom:W.bottom-N.bottom+C.bottom,left:N.left-W.left+C.left,right:W.right-N.right+C.right},Q=n.modifiersData.offset;if(p===Gb&&Q){var rt=Q[i];Object.keys(K).forEach(function(ut){var xt=[eu,tu].indexOf(ut)>=0?1:-1,Ft=[Pl,tu].indexOf(ut)>=0?"y":"x";K[ut]+=rt[Ft]*xt})}return K}const wbt={name:"flip",enabled:!0,phase:"main",fn:function Mbt(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,o=void 0===i||i,a=t.altAxis,s=void 0===a||a,l=t.fallbackPlacements,c=t.padding,u=t.boundary,h=t.rootBoundary,p=t.altBoundary,g=t.flipVariations,v=void 0===g||g,_=t.allowedAutoPlacements,y=e.options.placement,C=zd(y),P=l||(C!==y&&v?function bbt(n){if(zd(n)===QN)return[];var e=RS(n);return[vY(n),e,vY(e)]}(y):[RS(y)]),S=[y].concat(P).reduce(function(Te,hn){return Te.concat(zd(hn)===QN?function Cbt(n,e){void 0===e&&(e={});var i=e.boundary,o=e.rootBoundary,a=e.padding,s=e.flipVariations,l=e.allowedAutoPlacements,c=void 0===l?dY:l,u=K0(e.placement),h=u?s?uY:uY.filter(function(v){return K0(v)===u}):Hb,p=h.filter(function(v){return c.indexOf(v)>=0});0===p.length&&(p=h);var g=p.reduce(function(v,_){return v[_]=Wb(n,{placement:_,boundary:i,rootBoundary:o,padding:a})[zd(_)],v},{});return Object.keys(g).sort(function(v,_){return g[v]-g[_]})}(e,{placement:hn,boundary:u,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:_}):hn)},[]),N=e.rects.reference,R=e.rects.popper,z=new Map,$=!0,W=S[0],K=0;K=0,Ft=xt?"width":"height",Rt=Wb(e,{placement:Q,boundary:u,rootBoundary:h,altBoundary:p,padding:c}),me=xt?ut?eu:Ol:ut?tu:Pl;N[Ft]>R[Ft]&&(me=RS(me));var lt=RS(me),gt=[];if(o&>.push(Rt[rt]<=0),s&>.push(Rt[me]<=0,Rt[lt]<=0),gt.every(function(Te){return Te})){W=Q,$=!1;break}z.set(Q,gt)}if($)for(var Jt=function(hn){var Pn=S.find(function(Vr){var $r=z.get(Vr);if($r)return $r.slice(0,hn).every(function(gi){return gi})});if(Pn)return W=Pn,"break"},qt=v?3:1;qt>0&&"break"!==Jt(qt);qt--);e.placement!==W&&(e.modifiersData[r]._skip=!0,e.placement=W,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qb(n,e,t){return $1(n,IS(e,t))}const Sbt={name:"preventOverflow",enabled:!0,phase:"main",fn:function Obt(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,o=void 0===i||i,a=t.altAxis,s=void 0!==a&&a,p=t.tether,g=void 0===p||p,v=t.tetherOffset,_=void 0===v?0:v,y=Wb(e,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),C=zd(e.placement),x=K0(e.placement),P=!x,S=t6(C),N=function xbt(n){return"x"===n?"y":"x"}(S),R=e.modifiersData.popperOffsets,z=e.rects.reference,$=e.rects.popper,W="function"==typeof _?_(Object.assign({},e.rects,{placement:e.placement})):_,K="number"==typeof W?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),Q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,rt={x:0,y:0};if(R){if(o){var ut,xt="y"===S?Pl:Ol,Ft="y"===S?tu:eu,Rt="y"===S?"height":"width",me=R[S],lt=me+y[xt],gt=me-y[Ft],St=g?-$[Rt]/2:0,Jt=x===X0?z[Rt]:$[Rt],qt=x===X0?-$[Rt]:-z[Rt],re=e.elements.arrow,Te=g&&re?JN(re):{width:0,height:0},hn=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Pn=hn[xt],Vr=hn[Ft],$r=qb(0,z[Rt],Te[Rt]),gi=P?z[Rt]/2-St-$r-Pn-K.mainAxis:Jt-$r-Pn-K.mainAxis,kr=P?-z[Rt]/2+St+$r+Vr+K.mainAxis:qt+$r+Vr+K.mainAxis,Xe=e.elements.arrow&&zb(e.elements.arrow),ia=null!=(ut=Q?.[S])?ut:0,Ka=me+kr-ia,ya=qb(g?IS(lt,me+gi-ia-(Xe?"y"===S?Xe.clientTop||0:Xe.clientLeft||0:0)):lt,me,g?$1(gt,Ka):gt);R[S]=ya,rt[S]=ya-me}if(s){var fc,Nl=R[N],Ca="y"===N?"height":"width",cu=Nl+y["x"===S?Pl:Ol],il=Nl-y["x"===S?tu:eu],uf=-1!==[Pl,Ol].indexOf(C),ym=null!=(fc=Q?.[N])?fc:0,Cm=uf?cu:Nl-z[Ca]-$[Ca]-ym+K.altAxis,bm=uf?Nl+z[Ca]+$[Ca]-ym-K.altAxis:il,Mm=g&&uf?function Pbt(n,e,t){var r=qb(n,e,t);return r>t?t:r}(Cm,Nl,bm):qb(g?Cm:cu,Nl,g?bm:il);R[N]=Mm,rt[N]=Mm-Nl}e.modifiersData[r]=rt}},requiresIfExists:["offset"]};const Ibt={name:"arrow",enabled:!0,phase:"main",fn:function Abt(n){var e,t=n.state,r=n.name,i=n.options,o=t.elements.arrow,a=t.modifiersData.popperOffsets,s=zd(t.placement),l=t6(s),u=[Ol,eu].indexOf(s)>=0?"height":"width";if(o&&a){var h=function(e,t){return bY("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:MY(e,Hb))}(i.padding,t),p=JN(o),g="y"===l?Pl:Ol,v="y"===l?tu:eu,_=t.rects.reference[u]+t.rects.reference[l]-a[l]-t.rects.popper[u],y=a[l]-t.rects.reference[l],C=zb(o),x=C?"y"===l?C.clientHeight||0:C.clientWidth||0:0,R=x/2-p[u]/2+(_/2-y/2),z=qb(h[g],R,x-p[u]-h[v]);t.modifiersData[r]=((e={})[l]=z,e.centerOffset=z-R,e)}},effect:function Dbt(n){var e=n.state,r=n.options.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"==typeof i&&!(i=e.elements.popper.querySelector(i))||_Y(e.elements.popper,i)&&(e.elements.arrow=i))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wY(n,e,t){return void 0===t&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function xY(n){return[Pl,eu,tu,Ol].some(function(e){return n[e]>=0})}var kbt=[ebt,rbt,sbt,mY,hbt,wbt,Sbt,Ibt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function Ebt(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=Wb(e,{elementContext:"reference"}),s=Wb(e,{altBoundary:!0}),l=wY(a,r),c=wY(s,i,o),u=xY(l),h=xY(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}}],Rbt=QCt({defaultModifiers:kbt}),Nbt="tippy-box",PY="tippy-content",OY="tippy-backdrop",SY="tippy-arrow",TY="tippy-svg-arrow",Op={passive:!0,capture:!0},AY=function(){return document.body};function n6(n,e,t){return Array.isArray(n)?n[e]??(Array.isArray(t)?t[e]:t):n}function r6(n,e){var t={}.toString.call(n);return 0===t.indexOf("[object")&&t.indexOf(e+"]")>-1}function DY(n,e){return"function"==typeof n?n.apply(void 0,e):n}function IY(n,e){return 0===e?n:function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)};var t}function Sp(n){return[].concat(n)}function EY(n,e){-1===n.indexOf(e)&&n.push(e)}function J0(n){return[].slice.call(n)}function RY(n){return Object.keys(n).reduce(function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e},{})}function U1(){return document.createElement("div")}function NS(n){return["Element","Fragment"].some(function(e){return r6(n,e)})}function a6(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function Zb(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function s6(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){n[r](i,t)})}function FY(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=null==t.getRootNode||null==(r=t.getRootNode())?void 0:r.host}return!1}var Hd={isTouch:!1},BY=0;function zbt(){Hd.isTouch||(Hd.isTouch=!0,window.performance&&document.addEventListener("mousemove",VY))}function VY(){var n=performance.now();n-BY<20&&(Hd.isTouch=!1,document.removeEventListener("mousemove",VY)),BY=n}function Hbt(){var n=document.activeElement;(function NY(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var Wbt=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,Sl=Object.assign({appendTo:AY,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}),Xbt=Object.keys(Sl);function jY(n){var t=(n.plugins||[]).reduce(function(r,i){var s,o=i.name;return o&&(r[o]=void 0!==n[o]?n[o]:null!=(s=Sl[o])?s:i.defaultValue),r},{});return Object.assign({},n,t)}function GY(n,e){var t=Object.assign({},e,{content:DY(e.content,[n])},e.ignoreAttributes?{}:function Jbt(n,e){return(e?Object.keys(jY(Object.assign({},Sl,{plugins:e}))):Xbt).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,e.plugins));return t.aria=Object.assign({},Sl.aria,t.aria),t.aria={expanded:"auto"===t.aria.expanded?e.interactive:t.aria.expanded,content:"auto"===t.aria.content?e.interactive?null:"describedby":t.aria.content},t}var Qbt=function(){return"innerHTML"};function l6(n,e){n[Qbt()]=e}function WY(n){var e=U1();return!0===n?e.className=SY:(e.className=TY,NS(n)?e.appendChild(n):l6(e,n)),e}function qY(n,e){NS(e.content)?(l6(n,""),n.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?l6(n,e.content):n.textContent=e.content)}function LS(n){var e=n.firstElementChild,t=J0(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(PY)}),arrow:t.find(function(r){return r.classList.contains(SY)||r.classList.contains(TY)}),backdrop:t.find(function(r){return r.classList.contains(OY)})}}function ZY(n){var e=U1(),t=U1();t.className=Nbt,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=U1();function i(o,a){var s=LS(e),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)&&qY(c,n.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(WY(a.arrow))):l.appendChild(WY(a.arrow)):u&&l.removeChild(u)}return r.className=PY,r.setAttribute("data-state","hidden"),qY(r,n.props),e.appendChild(t),t.appendChild(r),i(n.props,n.props),{popper:e,onUpdate:i}}ZY.$$tippy=!0;var tMt=1,FS=[],BS=[];function eMt(n,e){var r,i,o,u,h,p,_,t=GY(n,Object.assign({},Sl,jY(RY(e)))),a=!1,s=!1,l=!1,c=!1,g=[],v=IY(ji,t.interactiveDebounce),y=tMt++,x=function Bbt(n){return n.filter(function(e,t){return n.indexOf(e)===t})}(t.plugins),S={id:y,reference:n,popper:U1(),popperInstance:null,props:t,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:x,clearDelayTimeouts:function Cm(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)},setProps:function bm($t){if(!S.state.isDestroyed){lt("onBeforeUpdate",[S,$t]),Tn();var Ge=S.props,bn=GY(n,Object.assign({},Ge,RY($t),{ignoreAttributes:!0}));S.props=bn,Xe(),Ge.interactiveDebounce!==bn.interactiveDebounce&&(Jt(),v=IY(ji,bn.interactiveDebounce)),Ge.triggerTarget&&!bn.triggerTarget?Sp(Ge.triggerTarget).forEach(function(Ur){Ur.removeAttribute("aria-expanded")}):bn.triggerTarget&&n.removeAttribute("aria-expanded"),St(),me(),z&&z(Ge,bn),S.popperInstance&&(rl(),Ca().forEach(function(Ur){requestAnimationFrame(Ur._tippy.popperInstance.forceUpdate)})),lt("onAfterUpdate",[S,$t])}},setContent:function Mm($t){S.setProps({content:$t})},show:function CT(){var $t=S.state.isVisible,Ge=S.state.isDestroyed,bn=!S.state.isEnabled,Ur=Hd.isTouch&&!S.props.touch,Tr=n6(S.props.duration,0,Sl.duration);if(!($t||Ge||bn||Ur||ut().hasAttribute("disabled")||(lt("onShow",[S],!1),!1===S.props.onShow(S)))){if(S.state.isVisible=!0,rt()&&(R.style.visibility="visible"),me(),hn(),S.state.isMounted||(R.style.transition="none"),rt()){var Ja=Ft();a6([Ja.box,Ja.content],0)}p=function(){var As;if(S.state.isVisible&&!c){if(c=!0,R.style.transition=S.props.moveTransition,rt()&&S.props.animation){var zM=Ft(),f2=zM.box,hf=zM.content;a6([f2,hf],Tr),Zb([f2,hf],"visible")}gt(),St(),EY(BS,S),null==(As=S.popperInstance)||As.forceUpdate(),lt("onMount",[S]),S.props.animation&&rt()&&function $r($t,Ge){gi($t,Ge)}(Tr,function(){S.state.isShown=!0,lt("onShown",[S])})}},function Nl(){var Ge,$t=S.props.appendTo,bn=ut();(Ge=S.props.interactive&&$t===AY||"parent"===$t?bn.parentNode:DY($t,[bn])).contains(R)||Ge.appendChild(R),S.state.isMounted=!0,rl()}()}},hide:function bT(){var $t=!S.state.isVisible,Ge=S.state.isDestroyed,bn=!S.state.isEnabled,Ur=n6(S.props.duration,1,Sl.duration);if(!($t||Ge||bn)&&(lt("onHide",[S],!1),!1!==S.props.onHide(S))){if(S.state.isVisible=!1,S.state.isShown=!1,c=!1,a=!1,rt()&&(R.style.visibility="hidden"),Jt(),Pn(),me(!0),rt()){var Tr=Ft(),Ja=Tr.box,Ts=Tr.content;S.props.animation&&(a6([Ja,Ts],Ur),Zb([Ja,Ts],"hidden"))}gt(),St(),S.props.animation?rt()&&function Vr($t,Ge){gi($t,function(){!S.state.isVisible&&R.parentNode&&R.parentNode.contains(R)&&Ge()})}(Ur,S.unmount):S.unmount()}},hideWithInteractivity:function MT($t){xt().addEventListener("mousemove",v),EY(FS,v),v($t)},enable:function uf(){S.state.isEnabled=!0},disable:function ym(){S.hide(),S.state.isEnabled=!1},unmount:function wT(){S.state.isVisible&&S.hide(),S.state.isMounted&&(pc(),Ca().forEach(function($t){$t._tippy.unmount()}),R.parentNode&&R.parentNode.removeChild(R),BS=BS.filter(function($t){return $t!==S}),S.state.isMounted=!1,lt("onHidden",[S]))},destroy:function xT(){S.state.isDestroyed||(S.clearDelayTimeouts(),S.unmount(),Tn(),delete n._tippy,S.state.isDestroyed=!0,lt("onDestroy",[S]))}};if(!t.render)return S;var N=t.render(S),R=N.popper,z=N.onUpdate;R.setAttribute("data-tippy-root",""),R.id="tippy-"+S.id,S.popper=R,n._tippy=S,R._tippy=S;var $=x.map(function($t){return $t.fn(S)}),W=n.hasAttribute("aria-expanded");return Xe(),St(),me(),lt("onCreate",[S]),t.showOnCreate&&cu(),R.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&S.clearDelayTimeouts()}),R.addEventListener("mouseleave",function(){S.props.interactive&&S.props.trigger.indexOf("mouseenter")>=0&&xt().addEventListener("mousemove",v)}),S;function K(){var $t=S.props.touch;return Array.isArray($t)?$t:[$t,0]}function Q(){return"hold"===K()[0]}function rt(){var $t;return!(null==($t=S.props.render)||!$t.$$tippy)}function ut(){return _||n}function xt(){var $t=ut().parentNode;return $t?function LY(n){var e,r=Sp(n)[0];return null!=r&&null!=(e=r.ownerDocument)&&e.body?r.ownerDocument:document}($t):document}function Ft(){return LS(R)}function Rt($t){return S.state.isMounted&&!S.state.isVisible||Hd.isTouch||u&&"focus"===u.type?0:n6(S.props.delay,$t?0:1,Sl.delay)}function me($t){void 0===$t&&($t=!1),R.style.pointerEvents=S.props.interactive&&!$t?"":"none",R.style.zIndex=""+S.props.zIndex}function lt($t,Ge,bn){var Ur;void 0===bn&&(bn=!0),$.forEach(function(Tr){Tr[$t]&&Tr[$t].apply(Tr,Ge)}),bn&&(Ur=S.props)[$t].apply(Ur,Ge)}function gt(){var $t=S.props.aria;if($t.content){var Ge="aria-"+$t.content,bn=R.id;Sp(S.props.triggerTarget||n).forEach(function(Tr){var Ja=Tr.getAttribute(Ge);if(S.state.isVisible)Tr.setAttribute(Ge,Ja?Ja+" "+bn:bn);else{var Ts=Ja&&Ja.replace(bn,"").trim();Ts?Tr.setAttribute(Ge,Ts):Tr.removeAttribute(Ge)}})}}function St(){!W&&S.props.aria.expanded&&Sp(S.props.triggerTarget||n).forEach(function(Ge){S.props.interactive?Ge.setAttribute("aria-expanded",S.state.isVisible&&Ge===ut()?"true":"false"):Ge.removeAttribute("aria-expanded")})}function Jt(){xt().removeEventListener("mousemove",v),FS=FS.filter(function($t){return $t!==v})}function qt($t){if(!Hd.isTouch||!l&&"mousedown"!==$t.type){var Ge=$t.composedPath&&$t.composedPath()[0]||$t.target;if(!S.props.interactive||!FY(R,Ge)){if(Sp(S.props.triggerTarget||n).some(function(bn){return FY(bn,Ge)})){if(Hd.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else lt("onClickOutside",[S,$t]);!0===S.props.hideOnClick&&(S.clearDelayTimeouts(),S.hide(),s=!0,setTimeout(function(){s=!1}),S.state.isMounted||Pn())}}}function re(){l=!0}function Te(){l=!1}function hn(){var $t=xt();$t.addEventListener("mousedown",qt,!0),$t.addEventListener("touchend",qt,Op),$t.addEventListener("touchstart",Te,Op),$t.addEventListener("touchmove",re,Op)}function Pn(){var $t=xt();$t.removeEventListener("mousedown",qt,!0),$t.removeEventListener("touchend",qt,Op),$t.removeEventListener("touchstart",Te,Op),$t.removeEventListener("touchmove",re,Op)}function gi($t,Ge){var bn=Ft().box;function Ur(Tr){Tr.target===bn&&(s6(bn,"remove",Ur),Ge())}if(0===$t)return Ge();s6(bn,"remove",h),s6(bn,"add",Ur),h=Ur}function kr($t,Ge,bn){void 0===bn&&(bn=!1),Sp(S.props.triggerTarget||n).forEach(function(Tr){Tr.addEventListener($t,Ge,bn),g.push({node:Tr,eventType:$t,handler:Ge,options:bn})})}function Xe(){Q()&&(kr("touchstart",ia,{passive:!0}),kr("touchend",Ka,{passive:!0})),function Fbt(n){return n.split(/\s+/).filter(Boolean)}(S.props.trigger).forEach(function($t){if("manual"!==$t)switch(kr($t,ia),$t){case"mouseenter":kr("mouseleave",Ka);break;case"focus":kr(Wbt?"focusout":"blur",ya);break;case"focusin":kr("focusout",ya)}})}function Tn(){g.forEach(function($t){$t.node.removeEventListener($t.eventType,$t.handler,$t.options)}),g=[]}function ia($t){var Ge,bn=!1;if(S.state.isEnabled&&!fc($t)&&!s){var Ur="focus"===(null==(Ge=u)?void 0:Ge.type);u=$t,_=$t.currentTarget,St(),!S.state.isVisible&&function o6(n){return r6(n,"MouseEvent")}($t)&&FS.forEach(function(Tr){return Tr($t)}),"click"===$t.type&&(S.props.trigger.indexOf("mouseenter")<0||a)&&!1!==S.props.hideOnClick&&S.state.isVisible?bn=!0:cu($t),"click"===$t.type&&(a=!bn),bn&&!Ur&&il($t)}}function ji($t){var Ge=$t.target,bn=ut().contains(Ge)||R.contains(Ge);"mousemove"===$t.type&&bn||function Ubt(n,e){var t=e.clientX,r=e.clientY;return n.every(function(i){var o=i.popperRect,a=i.popperState,l=i.props.interactiveBorder,c=function kY(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-t+("right"===c?u.left.x:0)>l||t-o.right-("left"===c?u.right.x:0)>l})}(Ca().concat(R).map(function(Tr){var Ja,df=null==(Ja=Tr._tippy.popperInstance)?void 0:Ja.state;return df?{popperRect:Tr.getBoundingClientRect(),popperState:df,props:t}:null}).filter(Boolean),$t)&&(Jt(),il($t))}function Ka($t){if(!(fc($t)||S.props.trigger.indexOf("click")>=0&&a)){if(S.props.interactive)return void S.hideWithInteractivity($t);il($t)}}function ya($t){S.props.trigger.indexOf("focusin")<0&&$t.target!==ut()||S.props.interactive&&$t.relatedTarget&&R.contains($t.relatedTarget)||il($t)}function fc($t){return!!Hd.isTouch&&Q()!==$t.type.indexOf("touch")>=0}function rl(){pc();var $t=S.props,Ge=$t.popperOptions,bn=$t.placement,Ur=$t.offset,Tr=$t.getReferenceClientRect,Ja=$t.moveTransition,Ts=rt()?LS(R).arrow:null,df=Tr?{getBoundingClientRect:Tr,contextElement:Tr.contextElement||ut()}:n,As=[{name:"offset",options:{offset:Ur}},{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(f2){var hf=f2.state;if(rt()){var HM=Ft().box;["placement","reference-hidden","escaped"].forEach(function(p2){"placement"===p2?HM.setAttribute("data-placement",hf.placement):hf.attributes.popper["data-popper-"+p2]?HM.setAttribute("data-"+p2,""):HM.removeAttribute("data-"+p2)}),hf.attributes.popper={}}}}];rt()&&Ts&&As.push({name:"arrow",options:{element:Ts,padding:3}}),As.push.apply(As,Ge?.modifiers||[]),S.popperInstance=Rbt(df,R,Object.assign({},Ge,{placement:bn,onFirstUpdate:p,modifiers:As}))}function pc(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function Ca(){return J0(R.querySelectorAll("[data-tippy-root]"))}function cu($t){S.clearDelayTimeouts(),$t&<("onTrigger",[S,$t]),hn();var Ge=Rt(!0),bn=K(),Tr=bn[1];Hd.isTouch&&"hold"===bn[0]&&Tr&&(Ge=Tr),Ge?r=setTimeout(function(){S.show()},Ge):S.show()}function il($t){if(S.clearDelayTimeouts(),lt("onUntrigger",[S,$t]),S.state.isVisible){if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf($t.type)>=0&&a)){var Ge=Rt(!1);Ge?i=setTimeout(function(){S.state.isVisible&&S.hide()},Ge):o=requestAnimationFrame(function(){S.hide()})}}else Pn()}}function Tp(n,e){void 0===e&&(e={});var t=Sl.plugins.concat(e.plugins||[]);!function jbt(){document.addEventListener("touchstart",zbt,Op),window.addEventListener("blur",Hbt)}();var r=Object.assign({},e,{plugins:t}),s=function $bt(n){return NS(n)?[n]:function Vbt(n){return r6(n,"NodeList")}(n)?J0(n):Array.isArray(n)?n:J0(document.querySelectorAll(n))}(n).reduce(function(l,c){var u=c&&eMt(c,r);return u&&l.push(u),l},[]);return NS(n)?s[0]:s}Tp.defaultProps=Sl,Tp.setDefaultProps=function(e){Object.keys(e).forEach(function(r){Sl[r]=e[r]})},Tp.currentInput=Hd,Object.assign({},mY,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Tp.setDefaultProps({render:ZY});const cMt=Tp,uMt=["addListener","removeListener"],dMt=["addEventListener","removeEventListener"],hMt=["on","off"];function Jh(n,e,t,r){if(U(t)&&(r=t,t=void 0),r)return Jh(n,e,t).pipe(EE(r));const[i,o]=function gMt(n){return U(n.addEventListener)&&U(n.removeEventListener)}(n)?dMt.map(a=>s=>n[a](e,s,t)):function fMt(n){return U(n.addListener)&&U(n.removeListener)}(n)?uMt.map(KY(n,e)):function pMt(n){return U(n.on)&&U(n.off)}(n)?hMt.map(KY(n,e)):[];if(!i&&Gr(n))return qr(a=>Jh(a,e,t))(On(n));if(!i)throw new TypeError("Invalid event target");return new F(a=>{const s=(...l)=>a.next(1o(s)})}function KY(n,e){return t=>r=>n[t](e,r)}function $S(n){return n instanceof Nc}function Xb(n){return"function"==typeof n}function Kb(n){return"string"==typeof n}let _Mt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["dynamic-view"]],inputs:{content:"content"},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(t,r){1&t&&st(0,"div",0),2&t&&D("innerHTML",r.content,bv)},encapsulation:2}),n})();class yMt{constructor(e){this.args=e,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 e=this.viewRef.rootNodes;return 1===e.length&&e[0]===Node.ELEMENT_NODE?this.element=e[0]:(this.element=document.createElement("div"),this.element.append(...e)),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 CMt{constructor(e){this.value=e}getElement(){return this.value}detectChanges(){}destroy(){}}class bMt{constructor(e){if(this.options=e,e.vcr)this.compRef=e.vcr.createComponent(e.component,{index:e.vcr.length,injector:e.injector||e.vcr.injector});else{const t=e.resolver.resolveComponentFactory(e.component);this.compRef=t.create(e.injector),e.appRef.attachView(this.compRef.hostView)}}get ref(){return this.compRef}setInput(e,t){return this.compRef.instance[e]=t,this}setInputs(e){return Object.keys(e).forEach(t=>{this.compRef.instance[t]=e[t]}),this}detectChanges(){return this.compRef.hostView.detectChanges(),this}appendTo(e){return e.appendChild(this.getElement()),this}removeFrom(e){return e.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 u6=(()=>{class n{constructor(t,r,i){this.resolver=t,this.injector=r,this.appRef=i}createComponent(t,r={}){return new bMt({component:t,vcr:r.vcr,injector:r.injector||this.injector,appRef:this.appRef,resolver:this.resolver})}createTemplate(t,r={}){return new yMt({vcr:r.vcr,appRef:this.appRef,tpl:t,context:r.context})}createView(t,r={}){if($S(t))return this.createTemplate(t,r);if(Xb(t))return this.createComponent(t,r);if(Kb(t))return new CMt(t);throw"Type of content is not supported"}}return n.\u0275fac=function(t){return new(t||n)(Mt(Oa),Mt(_o),Mt(Lg))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),MMt=(()=>{class n{constructor(t,r,i){this.defaultTpl=t,this.vcr=r,this.viewService=i}ngOnInit(){this.resolveContentType()}ngOnChanges(t){t.view&&!t.view.isFirstChange()&&this.resolveContentType()}resolveContentType(){this.viewRef?.destroy(),Kb(this.view)?(this.viewRef=this.viewService.createComponent(_Mt,{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(t){return new(t||n)(ft(Nc),ft(tc),ft(u6))},n.\u0275dir=qe({type:n,selectors:[["","dynamicView",""]],inputs:{view:["dynamicView","view"],injector:["dynamicViewInjector","injector"],context:["dynamicViewContext","context"]},features:[go]}),n})(),JY=!1,QY=!1;function tX(n,e={root:null,threshold:.3}){const t=rX(n);return new F(r=>{if(!JY)return r.next(),void r.complete();const i=new IntersectionObserver(o=>{o[o.length-1].isIntersecting&&(r.next(),r.complete())},e);return i.observe(t),()=>i.disconnect()})}function eX(n){const e=rX(n);return nX(e).pipe(function vMt(n,e=OC){return function mMt(n){return Xt((e,t)=>{let r=!1,i=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,r){r=!1;const c=i;i=null,t.next(c)}a&&t.complete()},l=()=>{o=null,a&&t.complete()};e.subscribe(B(t,c=>{r=!0,i=c,o||On(n(c)).subscribe(o=B(t,s,l))},()=>{a=!0,(!r||!o||o.closed)&&t.complete()}))})}(()=>s5(n,e))}(150),k(()=>function wMt(n){const e=n.offsetWidth;return e>n.parentElement.offsetWidth||e{if(!QY)return e.next(),void e.complete();const t=new ResizeObserver(()=>e.next(!0));return t.observe(n),()=>t.disconnect()})}(n)}function d6(n){const e={},t=["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=>{!t.includes(i)&&!r.includes(i)&&(e[i]=n[i])}),e}function rX(n){return n instanceof Pr?n.nativeElement:n}typeof window<"u"&&(JY="IntersectionObserver"in window,QY="ResizeObserver"in window);const iX=new Pe("Tippy config",{providedIn:"root",factory:()=>({})}),AMt=new Pe("TIPPY_REF");let jd=(()=>{class n{constructor(t,r,i,o,a,s,l){this.platformId=t,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 vr,this.isVisible=!1,this.destroyed=new I,this.enabled=!0,this.variationDefined=!1,this.visibleInternal=new I}ngOnChanges(t){if(uE(this.platformId))return;let i,r=Object.keys(t).reduce((o,a)=>("isVisible"===a||(o[a]=t[a].currentValue),o),{});h6("variation",t)?(i=t.variation.currentValue,this.variationDefined=!0):this.variationDefined||(i=this.globalConfig.defaultVariation,this.variationDefined=!0),i&&(r={...this.globalConfig.variations[i],...r}),h6("isEnabled",t)&&(this.enabled=t.isEnabled.currentValue,this.setStatus()),h6("isVisible",t)&&(this.isVisible?this.show():this.hide()),this.setProps({...this.props,...r})}ngOnInit(){this.useHostWidth&&(this.props.maxWidth=this.hostWidth)}ngAfterViewInit(){uE(this.platformId)||this.zone.runOutsideAngular(()=>{this.lazy?this.onlyTextOverflow?tX(this.host).pipe(Ta(()=>eX(this.host)),ml(this.destroyed)).subscribe(t=>{this.checkOverflow(t)}):tX(this.host).pipe(ml(this.destroyed)).subscribe(()=>{this.createInstance()}):this.onlyTextOverflow?eX(this.host).pipe(ml(this.destroyed)).subscribe(t=>{this.checkOverflow(t)}):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(t){this.props=t,this.instance?.setProps(d6(t))}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&&!oX(this.useTextContent)||this.zone.runOutsideAngular(()=>{this.instance=cMt(this.host,{allowHTML:!0,appendTo:document.body,...d6(this.globalConfig),...d6(this.props),onMount:t=>{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?.(t)},onCreate:t=>{if(t.popper.classList.add(`tippy-variation-${this.variation||this.globalConfig.defaultVariation}`),this.className)for(const r of function PMt(n){return(function SMt(n){return"string"==typeof n}(n)?n.split(" "):n).map(t=>t?.trim()).filter(Boolean)}(this.className))t.popper.classList.add(r);this.globalConfig.onCreate?.(t),!0===this.isVisible&&t.show()},onShow:t=>{t.reference.setAttribute("data-tippy-open",""),this.zone.run(()=>{const r=this.resolveContent(t);Kb(r)&&(t.setProps({allowHTML:!1}),r?.trim()?this.enable():this.disable()),t.setContent(r),this.hideOnEscape&&this.handleEscapeButton()}),this.useHostWidth?this.setInstanceWidth(t,this.hostWidth):this.popperWidth&&this.setInstanceWidth(t,this.popperWidth),this.globalConfig.onShow?.(t)},onHide(t){t.reference.removeAttribute("data-tippy-open")},onHidden:t=>{this.destroyView(),this.isVisible=!1,this.visibleInternal.next(this.isVisible),this.visible.observed&&this.zone.run(()=>this.visible.next(this.isVisible)),this.globalConfig.onHidden?.(t)}}),this.setStatus(),this.setProps(this.props),"contextMenu"===this.variation&&this.handleContextMenu()})}resolveContent(t){!this.viewOptions$&&!Kb(this.content)&&(Xb(this.content)?(this.instance.data=this.data,this.viewOptions$={injector:_o.create({providers:[{provide:AMt,useValue:this.instance}],parent:this.injector})}):$S(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&&Xb(this.content)&&this.viewRef.detectChanges();let r=this.viewRef.getElement();return oX(this.useTextContent)&&(r=t.reference.textContent),Kb(r)&&this.globalConfig.beforeRender&&(r=this.globalConfig.beforeRender(r)),r}handleContextMenu(){Jh(this.host,"contextmenu").pipe(ml(this.destroyed)).subscribe(t=>{t.preventDefault(),this.instance.setProps({getReferenceClientRect:()=>({width:0,height:0,top:t.clientY,bottom:t.clientY,left:t.clientX,right:t.clientX})}),this.instance.show()})}handleEscapeButton(){this.zone.runOutsideAngular(()=>{Jh(document.body,"keydown").pipe(wt(({code:t})=>"Escape"===t),ml(Ul(this.destroyed,this.visibleInternal.pipe(wt(t=>!t))))).subscribe(()=>this.hide())})}checkOverflow(t){t?this.instance?this.instance.enable():this.createInstance():this.instance?.disable()}listenToHostResize(){nX(this.host).pipe(ml(Ul(this.destroyed,this.visibleInternal))).subscribe(()=>{this.setInstanceWidth(this.instance,this.hostWidth)})}setInstanceWidth(t,r){const i=function OMt(n){return function TMt(n){return null==n}(n)?"":"string"==typeof n?n:`${n}px`}(r);t.popper.style.width=i,t.popper.style.maxWidth=i,t.popper.firstElementChild.style.maxWidth=i}}return n.\u0275fac=function(t){return new(t||n)(ft(Ng),ft(iX),ft(_o),ft(u6),ft(tc),ft(ki),ft(Pr))},n.\u0275dir=qe({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:[go]}),n})();function h6(n,e){return n in e}function oX(n){return null!=n&&"false"!=`${n}`}const US={theme:null,arrow:!1,animation:"scale",trigger:"mouseenter",offset:[0,5]};function zS(n={}){return{provide:iX,useValue:n}}var Q0;function DMt(n,e){1&n&&(M(0,"storecloud-icon",3),d(1,"\n \n "),w()),2&n&&D("icon","help-circle")("size",12)}function IMt(n,e){if(1&n&&(Et(0),d(1,"\n "),M(2,"span",1),d(3,"\n "),Y(4,DMt,2,2,"storecloud-icon",2),d(5,"\n "),w(),d(6,"\n"),kt()),2&n){const t=et();T(2),So("tippy",t.tooltip),D("placement",t.placement),T(2),D("ngIf",t.tooltip)}}let ac=((Q0=class{constructor(){this.tooltip=null,this.placement="auto"}}).\u0275fac=function(e){return new(e||Q0)},Q0.\u0275cmp=ye({type:Q0,selectors:[["storecloud-tooltip"]],inputs:{tooltip:"tooltip",placement:"placement"},standalone:!0,features:[Or([zS({defaultVariation:"tooltip",variations:{tooltip:{...US,theme:"light",arrow:!0}}})]),Fo],decls:2,vars:1,consts:[[4,"ngIf"],[3,"tippy","placement"],[3,"icon","size",4,"ngIf"],[3,"icon","size"]],template:function(e,t){1&e&&(Y(0,IMt,7,3,"ng-container",0),d(1,"\n")),2&e&&D("ngIf",t.tooltip)},dependencies:[$i,Xn,jd,Aa],styles:["app-icon[_ngcontent-%COMP%]{display:flex}"]}),Q0);var t_;function EMt(n,e){if(1&n&&(M(0,"span",10),d(1),w()),2&n){const t=et();T(1),Ve(null==t.chart?null:t.chart.subTitle)}}function kMt(n,e){1&n&&(Et(0),d(1," "),kt())}ac=It([Ze({checkProperties:!0})],ac);const RMt=function(){return{display:"block",padding:"0px"}},NMt=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 LMt(n,e){1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",11),d(2,"\n")),2&n&&(T(1),D("ngStyle",$e(2,RMt))("theme",$e(3,NMt)))}const FMt=function(n){return{heading:!0,"has-subtitle":n}},BMt=function(n){return{opacity:n}};let HS=(t_=class{set data(e){this.loading=!0,this.subscribeToData(e)}get data(){return this._data}constructor(){this.chart=null,this.tabs=Object.values(ea),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=[hCt,Rb,AS,oY,Lb]}drawChart(e){try{this.options={color:this.color,textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},title:[{text:e?.title?.subText,subtext:e?.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:e?.subTitle?.text,subtext:e?.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(t){const r=e?.data?.find(i=>i.name===t)?.value;return`${t} (${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:e?.data}],media:this.mediaQueryForChart},yt(!0).pipe(va(300)).subscribe(()=>this.loading=!1)}catch(t){throw this.loading=!1,new Error(t)}}onChartInit(e){this._chart=e}get pChart(){return this._chart}formatTooltip(e){let t="";for(let r=0;r${i?.toDateString()}\n
${e[r].seriesName}: ${e[r].value?.[1]?.toLocaleString()}`}return t}subscribeToData(e){e?.pipe(Wt(this)).subscribe(t=>{if(t?.data?.length>3){const i=JSON.parse(JSON.stringify(t?.data?.slice(0,3))),o=JSON.parse(JSON.stringify(t?.data?.slice(3,t?.data?.length)));i.push({name:"Others",value:o?.map(a=>parseFloat(a.value?.toString()??"0")).reduce((a,s)=>a+s)}),t.data=i}this.drawChart(t)})}},t_.\u0275fac=function(e){return new(e||t_)},t_.\u0275cmp=ye({type:t_,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(e,t){if(1&e&&(M(0,"div",0),d(1,"\n "),M(2,"div",1),d(3,"\n "),M(4,"p",2),d(5,"\n "),M(6,"span",3),d(7),st(8,"storecloud-tooltip",4),d(9,"\n "),w(),d(10,"\n "),Y(11,EMt,2,1,"span",5),d(12,"\n "),w(),d(13,"\n "),w(),d(14,"\n\n "),M(15,"div",6),d(16,"\n "),M(17,"div",7),ie("chartinit",function(i){return t.onChartInit(i)}),w(),d(18,"\n "),Y(19,kMt,2,0,"ng-container",8),d(20,"\n "),w(),d(21,"\n"),w(),d(22,"\n\n"),Y(23,LMt,3,4,"ng-template",null,9,ze),d(25,"\n")),2&e){const r=ue(24);let i;T(2),D("ngClass",Ae(12,FMt,null==t.chart?null:t.chart.showTabs)),T(5),Ie("\n ",null==t.chart?null:t.chart.title,"\n "),T(1),D("tooltip",null==t.chart?null:t.chart.tooltip),T(3),D("ngIf",null==t.chart?null:t.chart.subTitle),T(6),So("id",null!==(i=null==t.chart?null:t.chart.id)&&void 0!==i?i:"chart_pie-douhnut"),D("options",t.options)("ngStyle",Ae(14,BMt,t.loading?0:1))("defaultHeight",(null==t.chart?null:t.chart.height)||150)("extentions",t.echartsExtentions)("isResizable",!0),T(2),D("ngIf",!t.loading)("ngIfElse",r)}},dependencies:[Ao,Xn,Ri,ta,Fb,ac],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}"]}),t_);var e_;function VMt(n,e){if(1&n&&(M(0,"span",11),d(1),w()),2&n){const t=et();T(1),Ve(null==t.chart?null:t.chart.subTitle)}}HS=It([Ze({checkProperties:!0})],HS);const $Mt=function(n){return{current:n}};function UMt(n,e){if(1&n){const t=rr();M(0,"li",14),ie("click",function(){const o=An(t).$implicit,a=et(2);return a.activeTab=o,Dn(a.tabChange(o))}),d(1),w()}if(2&n){const t=e.$implicit,r=et(2);D("ngClass",Ae(2,$Mt,t===r.activeTab)),T(1),Ie("\n ",t,"\n ")}}function zMt(n,e){if(1&n&&(M(0,"ul",12),d(1,"\n "),Y(2,UMt,2,4,"li",13),d(3,"\n "),w()),2&n){const t=et();T(2),D("ngForOf",t.tabs)}}function HMt(n,e){1&n&&(Et(0),d(1," "),kt())}const jMt=function(){return{display:"block",padding:"0px"}},GMt=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 WMt(n,e){1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",15),d(2,"\n")),2&n&&(T(1),D("ngStyle",$e(2,jMt))("theme",$e(3,GMt)))}const qMt=function(n){return{heading:!0,"has-subtitle":n}},ZMt=function(n){return{opacity:n}};let jS=(e_=class{set data(e){this.loading=!0,this.subscribeToData(e)}get data(){return this._data}constructor(){this.chart=null,this.tabEvent=new vr,this.tabs=Object.values(ea),this.loading=!0,this.activeTab=ea.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=[q3,oY,Rb,AS,Lb]}ngAfterViewInit(){this.tabChange(this.activeTab)}tabChange(e){const t=new Date;let r=new Date;switch(e){case ea.D1:r.setDate(t.getDate()-1);break;case ea.D7:r.setDate(t.getDate()-7);break;case ea.D30:r.setDate(t.getDate()-30);break;case ea.YTD:r=new Date((new Date).getFullYear(),0,1)}this.tabEvent.emit({from:e===ea.AllTime?void 0:r?.getTime(),till:e===ea.AllTime?void 0:t?.getTime()})}drawChart(e){const t=[];e?.series?.forEach(i=>{t.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=e?.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+": "+YMt(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:t,media:this.mediaQueryForChart},yt(!0).pipe(va(300)).subscribe(()=>this.loading=!1)}catch(i){throw this.loading=!1,new Error(i)}}onChartInit(e){this._chart=e}get pChart(){return this._chart}formatTooltip(e){let t="";for(let r=0;r${i?.toDateString()}\n
${e[r].seriesName}: ${e[r].value?.[1]?.toLocaleString()}`}return t}subscribeToData(e){e?.pipe(Wt(this)).subscribe(t=>{t?.series?.forEach(r=>{r.data=Sd.orderBy(r.data,"date","asc")}),this.drawChart(t)})}},e_.\u0275fac=function(e){return new(e||e_)},e_.\u0275cmp=ye({type:e_,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(e,t){if(1&e&&(M(0,"div",0),d(1,"\n "),M(2,"div",1),d(3,"\n "),M(4,"p",2),d(5,"\n "),M(6,"span",3),d(7),st(8,"storecloud-tooltip",4),d(9,"\n "),w(),d(10,"\n "),Y(11,VMt,2,1,"span",5),d(12,"\n "),w(),d(13,"\n "),Y(14,zMt,4,1,"ul",6),d(15,"\n "),w(),d(16,"\n\n "),M(17,"div",7),d(18,"\n "),M(19,"div",8),ie("chartinit",function(i){return t.onChartInit(i)}),w(),d(20,"\n "),Y(21,HMt,2,0,"ng-container",9),d(22,"\n "),w(),d(23,"\n"),w(),d(24,"\n\n"),Y(25,WMt,3,4,"ng-template",null,10,ze),d(27,"\n")),2&e){const r=ue(26);let i;T(2),D("ngClass",Ae(13,qMt,null==t.chart?null:t.chart.showTabs)),T(5),Ie("\n ",null==t.chart?null:t.chart.title,"\n "),T(1),D("tooltip",null==t.chart?null:t.chart.tooltip),T(3),D("ngIf",null==t.chart?null:t.chart.subTitle),T(3),D("ngIf",null==t.chart?null:t.chart.showTabs),T(5),So("id",null!==(i=null==t.chart?null:t.chart.id)&&void 0!==i?i:"chart_area-line"),D("options",t.options)("extentions",t.echartsExtentions)("defaultHeight",(null==t.chart?null:t.chart.height)||150)("ngStyle",Ae(15,ZMt,t.loading?0:1))("isResizable",!0),T(2),D("ngIf",!t.loading)("ngIfElse",r)}},dependencies:[Ao,Zo,Xn,Ri,ta,Fb,ac],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}"]}),e_);function YMt(n,e=2){if(!+n)return"0 Bytes";const r=e<0?0:e,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 n_;function XMt(n,e){1&n&&(Et(0),d(1," "),kt())}jS=It([Ze({checkProperties:!0})],jS);const KMt=function(){return{display:"block",padding:"0"}},JMt=function(){return{"margin-top":"0px","margin-bottom":"10px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"8px"}};function QMt(n,e){1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",4),d(2,"\n")),2&n&&(T(1),D("ngStyle",$e(2,KMt))("theme",$e(3,JMt)))}const twt=function(n){return{height:"100%",padding:n}},ewt=function(n){return{height:"100%",opacity:n}};let f6=(n_=class{set data(e){this.drawChart(e)}constructor(){this.chart=null,this.loading=!0,this.__chart=null,this.echartsExtentions=[q3,Rb,AS,Lb]}onChartInit(e){this._chart=e}drawChart(e){this._chart&&this._chart.destroy();try{this.options=e,e&&yt(!0).pipe(va(600)).subscribe(()=>this.loading=!1)}catch(t){throw new Error(t)}}get pChart(){return this._chart}},n_.\u0275fac=function(e){return new(e||n_)},n_.\u0275cmp=ye({type:n_,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(e,t){if(1&e&&(M(0,"div",0),d(1,"\n "),M(2,"div",1),ie("chartinit",function(i){return t.onChartInit(i)}),w(),d(3,"\n "),Y(4,XMt,2,0,"ng-container",2),d(5,"\n"),w(),d(6,"\n\n"),Y(7,QMt,3,4,"ng-template",null,3,ze),d(9,"\n")),2&e){const r=ue(8);Ei("content p-0 pr-0 ",null!=t.chart&&t.chart.showYAxisLabel&&!t.loading?"pl-2":"",""),D("ngStyle",Ae(10,twt,null==t.chart||null==t.chart.cssStyle?null:t.chart.cssStyle.padding)),T(2),D("extentions",t.echartsExtentions)("isResizable",!0)("options",t.options)("ngStyle",Ae(12,ewt,t.loading?0:1)),T(2),D("ngIf",!t.loading)("ngIfElse",r)}},dependencies:[Xn,Ri,ta,Fb],styles:["ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-50%;left:50%;transform:translate(-50%,-50%)}"]}),n_);var r_;function nwt(n,e){if(1&n&&st(0,"storecloud-tooltip",15),2&n){const t=et();D("tooltip",null==t.stats$?null:t.stats$.tooltip)}}function rwt(n,e){1&n&&(Et(0),d(1,"\n "),kt())}function iwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,rwt,2,0,"ng-container",4),d(3,"\n "),kt()),2&n){const t=et(),r=ue(25),i=ue(28);T(2),D("ngIf",null!=(null==t.stats$||null==t.stats$.subTitle?null:t.stats$.subTitle.item$))("ngIfThen",r)("ngIfElse",i)}}function owt(n,e){1&n&&(Et(0),d(1,"\n "),kt())}f6=It([Ze({checkProperties:!0})],f6);const awt=function(n){return{items$:n}};function swt(n,e){if(1&n&&(d(0,"\n "),M(1,"div"),d(2,"\n "),Et(3,16),d(4,"\n "),kt(),d(5,"\n "),w(),d(6,"\n")),2&n){const t=et(),r=ue(34);T(1),Ei("content grid-",(null==t.stats$||null==t.stats$.items$?null:t.stats$.items$.length)||t.loadingCount,""),T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(5,awt,null==t.stats$?null:t.stats$.items$))}}const lwt=function(n){return{items:n}};function cwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,16),d(3,"\n "),kt()),2&n){const t=e.ngIf;et(2);const r=ue(37);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(2,lwt,t))}}function uwt(n,e){if(1&n&&(d(0,"\n "),M(1,"div"),d(2,"\n "),Y(3,cwt,4,4,"ng-container",17),d(4,"\n "),w(),d(5,"\n")),2&n){const t=et(),r=ue(43);T(1),Ei("content grid-",(null==t.stats$||null==t.stats$.items?null:t.stats$.items.length)||t.loadingCount,""),T(2),D("ngIf",null==t.stats$?null:t.stats$.items)("ngIfElse",r)}}const GS=function(n){return{item:n}};function dwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,16),d(3,"\n "),kt()),2&n){const t=e.ngIf;et(2);const r=ue(31);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(2,GS,t))}}function hwt(n,e){if(1&n&&(d(0,"\n "),Y(1,dwt,4,4,"ng-container",17),he(2,"async"),d(3,"\n")),2&n){const t=et(),r=ue(46);T(1),D("ngIf",Ye(2,2,null==t.stats$||null==t.stats$.subTitle?null:t.stats$.subTitle.item$))("ngIfElse",r)}}function fwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,16),d(3,"\n "),kt()),2&n){const t=e.ngIf;et(2);const r=ue(31);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(2,GS,t))}}function pwt(n,e){if(1&n&&(d(0,"\n "),Y(1,fwt,4,4,"ng-container",17),d(2,"\n")),2&n){const t=et(),r=ue(46);T(1),D("ngIf",null==t.stats$||null==t.stats$.subTitle?null:t.stats$.subTitle.item)("ngIfElse",r)}}function gwt(n,e){if(1&n&&(d(0,"\n "),M(1,"p",18),d(2,"\n "),st(3,"storecloud-shared-value-formatter",19),d(4,"\n "),w(),d(5,"\n")),2&n){const t=e.item;T(3),D("item",t)("cssClass","heading-text-black "+(null==t?null:t.cssClass))("loadingWidth",100)("iconSize",25)}}function mwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,16),d(3,"\n "),kt()),2&n){const t=e.ngIf;et(3);const r=ue(40);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(2,GS,t))}}function vwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,mwt,4,4,"ng-container",17),he(3,"async"),d(4,"\n "),kt()),2&n){const t=e.$implicit;et(2);const r=ue(43);T(2),D("ngIf",Ye(3,2,t))("ngIfElse",r)}}function _wt(n,e){if(1&n&&(d(0,"\n "),Y(1,vwt,5,4,"ng-container",20),d(2,"\n")),2&n){const t=e.items$;T(1),D("ngForOf",t)}}function ywt(n,e){if(1&n&&(Et(0),d(1,"\n\n "),Hn(2,16),d(3,"\n "),kt()),2&n){const t=e.$implicit;et(2);const r=ue(40);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(2,GS,t))}}function Cwt(n,e){if(1&n&&(d(0,"\n\n "),Y(1,ywt,4,4,"ng-container",20),d(2,"\n")),2&n){const t=e.items;T(1),D("ngForOf",t)}}function bwt(n,e){if(1&n&&st(0,"storecloud-icon",26),2&n){const t=et().item;D("icon",null==t?null:t.icon)}}function Mwt(n,e){if(1&n&&(d(0,"\n "),M(1,"div",21),d(2,"\n "),M(3,"div",22),d(4,"\n "),Y(5,bwt,1,1,"storecloud-icon",23),d(6,"\n "),st(7,"storecloud-shared-value-formatter",24),d(8,"\n "),w(),d(9,"\n "),M(10,"p",25),d(11),w(),d(12,"\n "),w(),d(13,"\n")),2&n){const t=e.item;T(5),D("ngIf",null==t?null:t.icon),T(2),D("item",t),T(3),Ei("text-light d-flex ",null!=t&&t.inlineTooltip?"inlineTooltip":"",""),D("tippy",null!=t&&t.inlineTooltip?null==t?null:t.tooltip:null),T(1),Ie("\n ",null==t?null:t.label,"\n ")}}const wwt=function(){return{display:"contents"}},xwt=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"36px"}};function Pwt(n,e){if(1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",27),d(2,"\n")),2&n){const t=et();T(1),So("count",t.loadingCount),D("ngStyle",$e(3,wwt))("theme",$e(4,xwt))}}const Owt=function(){return{display:"flex",width:"100px","justify-self":"flex-end"}},Swt=function(){return{"margin-top":"0px","margin-bottom":"0px"}};function Twt(n,e){1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",28),d(2,"\n")),2&n&&(T(1),D("ngStyle",$e(2,Owt))("theme",$e(3,Swt)))}const Awt=function(n){return{card:n}},Dwt=function(n){return{heading:!0,"has-subtitle":n}};let Jb=(r_=class{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3}trackByFuntion(e,t){return t?.blockId??t?.transactionId??e?.id}},r_.\u0275fac=function(e){return new(e||r_)},r_.\u0275cmp=ye({type:r_,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(e,t){if(1&e&&(M(0,"div",0),d(1,"\n "),Et(2),d(3,"\n "),M(4,"div",0),d(5,"\n "),M(6,"p",1),d(7),Y(8,nwt,1,1,"storecloud-tooltip",2),d(9,"\n "),w(),d(10,"\n "),Y(11,iwt,4,3,"ng-container",3),d(12,"\n "),w(),d(13,"\n "),Y(14,owt,2,0,"ng-container",4),d(15,"\n "),kt(),d(16,"\n"),w(),d(17,"\n\n"),Y(18,swt,7,7,"ng-template",null,5,ze),d(20,"\n\n"),Y(21,uwt,6,5,"ng-template",null,6,ze),d(23,"\n\n"),Y(24,hwt,4,4,"ng-template",null,7,ze),d(26,"\n"),Y(27,pwt,3,2,"ng-template",null,8,ze),d(29,"\n\n"),Y(30,gwt,6,4,"ng-template",null,9,ze),d(32,"\n"),Y(33,_wt,3,1,"ng-template",null,10,ze),d(35,"\n"),Y(36,Cwt,3,1,"ng-template",null,11,ze),d(38,"\n\n"),Y(39,Mwt,14,7,"ng-template",null,12,ze),d(41,"\n\n"),Y(42,Pwt,3,5,"ng-template",null,13,ze),d(44,"\n\n"),Y(45,Twt,3,4,"ng-template",null,14,ze),d(47,"\n")),2&e){const r=ue(19),i=ue(22);D("ngClass",Ae(8,Awt,!t.disableCardClass)),T(4),D("ngClass",Ae(10,Dwt,null==t.stats$||null==t.stats$.subTitle?null:t.stats$.subTitle.enable)),T(3),Ie("\n ",null==t.stats$?null:t.stats$.title," "),T(1),D("ngIf",null==t.stats$?null:t.stats$.tooltip),T(3),D("ngIf",null==t.stats$||null==t.stats$.subTitle?null:t.stats$.subTitle.enable),T(3),D("ngIf",null!=(null==t.stats$?null:t.stats$.items$))("ngIfThen",r)("ngIfElse",i)}},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}}"]}),r_);var i_;function Iwt(n,e){if(1&n&&(M(0,"span"),d(1),w()),2&n){const t=et(2);T(1),Ve(null==t.number$?null:t.number$.symbol)}}function Ewt(n,e){if(1&n&&(Et(0),d(1,"\n "),M(2,"p",5),d(3,"\n "),M(4,"span"),d(5),he(6,"number"),w(),d(7," "),Y(8,Iwt,2,1,"span",6),d(9,"\n "),w(),d(10,"\n "),kt()),2&n){const t=e.ngIf,r=et();T(5),Ie(" ",Ye(6,2,t),""),T(3),D("ngIf",null==r.number$?null:r.number$.symbol)}}Jb=It([Ze({checkProperties:!0})],Jb);const kwt=function(){return{display:"contents"}},Rwt=function(){return{"margin-top":"10px","margin-bottom":"10px",height:"30px",width:"60px","margin-left":"auto","margin-right":"auto","border-radius":"10px"}};function Nwt(n,e){1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",7),d(2,"\n")),2&n&&(T(1),D("ngStyle",$e(2,kwt))("theme",$e(3,Rwt)))}let p6=((i_=class{constructor(){this.disableCardClass=!1,this.number$=null}}).\u0275fac=function(e){return new(e||i_)},i_.\u0275cmp=ye({type:i_,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(e,t){if(1&e&&(M(0,"div",0),d(1,"\n "),M(2,"div",1),d(3,"\n "),M(4,"p",2),d(5),w(),d(6,"\n "),Y(7,Ewt,11,4,"ng-container",3),he(8,"async"),d(9,"\n "),w(),d(10,"\n"),w(),d(11,"\n"),Y(12,Nwt,3,4,"ng-template",null,4,ze),d(14,"\n")),2&e){const r=ue(13);T(5),Ve(null==t.number$?null:t.number$.title),T(2),D("ngIf",Ye(8,3,null==t.number$?null:t.number$.value))("ngIfElse",r)}},dependencies:[Xn,Ri,ta,js,Eh]}),i_);var o_;p6=It([Ze({checkProperties:!0})],p6);const Lwt=["scrollToSection"];function Fwt(n,e){if(1&n&&st(0,"storecloud-tooltip",12),2&n){const t=et();D("tooltip",null==t.stats$?null:t.stats$.tooltip)}}function Bwt(n,e){if(1&n&&(Et(0),d(1,"\n "),M(2,"p",14),d(3,"\n "),M(4,"span",15),d(5),w(),d(6,"\n "),st(7,"storecloud-shared-value-formatter",16),d(8,"\n "),w(),d(9,"\n "),kt()),2&n){const t=e.ngIf;T(5),Ie("",null==t?null:t.label," "),T(2),D("item",t)("cssClass","text-black")("iconSize",14)}}function Vwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,Bwt,10,4,"ng-container",13),he(3,"async"),d(4,"\n "),kt()),2&n){const t=et(),r=ue(32);T(2),D("ngIf",Ye(3,2,null==t.stats$||null==t.stats$.subTitle?null:t.stats$.subTitle.item$))("ngIfElse",r)}}function $wt(n,e){1&n&&(Et(0),d(1,"\n "),kt())}const aX=function(n){return{item:n}};function Uwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,18),d(3,"\n "),kt()),2&n){const t=e.ngIf;et(3);const r=ue(26);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(2,aX,t))}}function zwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,Uwt,4,4,"ng-container",13),he(3,"async"),d(4,"\n "),kt()),2&n){const t=e.$implicit;et(2);const r=ue(35);T(2),D("ngIf",Ye(3,2,t))("ngIfElse",r)}}function Hwt(n,e){if(1&n&&(d(0,"\n "),M(1,"div"),d(2,"\n "),Y(3,zwt,5,4,"ng-container",17),d(4,"\n "),w(),d(5,"\n")),2&n){const t=et();T(1),Ei("content grid-",(null==t.stats$||null==t.stats$.items$?null:t.stats$.items$.length)||t.loadingCount,""),T(2),D("ngForOf",null==t.stats$?null:t.stats$.items$)}}function jwt(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,18),d(3,"\n "),kt()),2&n){const t=e.$implicit;et(2);const r=ue(26);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(2,aX,t))}}function Gwt(n,e){if(1&n&&(d(0,"\n "),M(1,"div"),d(2,"\n "),Y(3,jwt,4,4,"ng-container",17),d(4,"\n "),w(),d(5,"\n")),2&n){const t=et();T(1),Ei("content grid-",(null==t.stats$||null==t.stats$.items?null:t.stats$.items.length)||t.loadingCount,""),T(2),D("ngForOf",null==t.stats$?null:t.stats$.items)}}function Wwt(n,e){if(1&n&&st(0,"storecloud-icon",23),2&n){const t=et(2).item;D("icon",null==t?null:t.icon)("size",14)}}function qwt(n,e){if(1&n&&st(0,"storecloud-tooltip",12),2&n){const t=et(2).item;D("tooltip",null==t?null:t.tooltip)}}function Zwt(n,e){if(1&n&&(M(0,"p",21),d(1,"\n "),Y(2,Wwt,1,2,"storecloud-icon",22),d(3),Y(4,qwt,1,1,"storecloud-tooltip",3),d(5,"\n "),w()),2&n){const t=et().item;Ei("text-light d-flex g-2 ",null!=t&&t.inlineTooltip?"inlineTooltip":"",""),D("tippy",null!=t&&t.inlineTooltip?null==t?null:t.tooltip:null),T(2),D("ngIf",null==t?null:t.icon),T(1),Ie("\n ",null==t?null:t.label,"\n "),T(1),D("ngIf",(null==t?null:t.tooltip)&&!(null!=t&&t.inlineTooltip))}}function Ywt(n,e){if(1&n&&st(0,"storecloud-shared-value-formatter",24),2&n){const t=et().item;D("item",null==t?null:t.subItems)("cssClass",null==t||null==t.subItems?null:t.subItems.cssClass)}}function Xwt(n,e){if(1&n&&st(0,"storecloud-shared-value-formatter",24),2&n){const t=et().item;D("item",null==t||null==t.subItems?null:t.subItems.subItems)("cssClass",null==t||null==t.subItems||null==t.subItems.subItems?null:t.subItems.subItems.cssClass)}}const Kwt=function(n){return{"data-div":!0,"flex-column":n}},Jwt=function(n){return{"d-100":!0,"flex-col":n}};function Qwt(n,e){if(1&n&&(d(0,"\n "),M(1,"div",0),d(2,"\n "),Y(3,Zwt,6,7,"p",19),d(4,"\n "),M(5,"div",0),d(6,"\n "),st(7,"storecloud-shared-value-formatter",16),d(8,"\n "),Y(9,Ywt,1,2,"storecloud-shared-value-formatter",20),d(10,"\n "),Y(11,Xwt,1,2,"storecloud-shared-value-formatter",20),d(12,"\n "),w(),d(13,"\n "),w(),d(14,"\n")),2&n){const t=e.item;T(1),D("ngClass",Ae(8,Kwt,"select"===(null==t?null:t.type))),T(2),D("ngIf",null==t?null:t.label),T(2),D("ngClass",Ae(10,Jwt,null==t?null:t.inlineSubItems)),T(2),D("item",t)("cssClass","text-black "+(null==t?null:t.cssClass))("iconSize",14),T(2),D("ngIf",null==t?null:t.subItems),T(2),D("ngIf",null==t||null==t.subItems?null:t.subItems.subItems)}}const g6=function(){return{display:"contents"}},txt=function(){return{"margin-top":"10px","margin-bottom":"0px"}};function ext(n,e){if(1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",25),d(2,"\n")),2&n){const t=et();T(1),So("count",t.loadingCount),D("ngStyle",$e(3,g6))("theme",$e(4,txt))}}const nxt=function(){return{"margin-top":"0px","margin-bottom":"0px"}};function rxt(n,e){1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",26),d(2,"\n")),2&n&&(T(1),D("ngStyle",$e(2,g6))("theme",$e(3,nxt)))}const ixt=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"30px"}};function oxt(n,e){1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",26),d(2,"\n")),2&n&&(T(1),D("ngStyle",$e(2,g6))("theme",$e(3,ixt)))}const axt=function(n,e){return{card:n,"flex-col-between":e}},sxt=function(n){return{heading:!0,"has-subtitle":n}};let a_=((o_=class{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3,this.scrollToSection=void 0}}).\u0275fac=function(e){return new(e||o_)},o_.\u0275cmp=ye({type:o_,selectors:[["storecloud-shared-stats-card-normal"]],viewQuery:function(e,t){if(1&e&&fl(Lwt,5),2&e){let r;Us(r=zs())&&(t.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(e,t){if(1&e&&(M(0,"div",0,1),d(2,"\n "),Et(3),d(4,"\n "),M(5,"div",0),d(6,"\n "),M(7,"p",2),d(8),Y(9,Fwt,1,1,"storecloud-tooltip",3),d(10,"\n "),w(),d(11,"\n "),Y(12,Vwt,5,4,"ng-container",4),d(13,"\n "),w(),d(14,"\n "),Y(15,$wt,2,0,"ng-container",5),d(16,"\n "),kt(),d(17,"\n"),w(),d(18,"\n"),Y(19,Hwt,6,4,"ng-template",null,6,ze),d(21,"\n\n"),Y(22,Gwt,6,4,"ng-template",null,7,ze),d(24,"\n\n"),Y(25,Qwt,15,12,"ng-template",null,8,ze),d(27,"\n"),Y(28,ext,3,5,"ng-template",null,9,ze),d(30,"\n\n"),Y(31,rxt,3,4,"ng-template",null,10,ze),d(33,"\n\n"),Y(34,oxt,3,4,"ng-template",null,11,ze),d(36,"\n")),2&e){const r=ue(20),i=ue(23);D("ngClass",bd(8,axt,!t.disableCardClass,!t.disableCardClass)),T(5),D("ngClass",Ae(11,sxt,null==t.stats$||null==t.stats$.subTitle?null:t.stats$.subTitle.enable)),T(3),Ie("\n ",null==t.stats$?null:t.stats$.title,"\n "),T(1),D("ngIf",null==t.stats$?null:t.stats$.tooltip),T(3),D("ngIf",null==t.stats$||null==t.stats$.subTitle?null:t.stats$.subTitle.enable),T(3),D("ngIf",null!=(null==t.stats$?null:t.stats$.items$))("ngIfThen",r)("ngIfElse",i)}},styles:[".mr-minus-10[_ngcontent-%COMP%]{margin-right:-10px}"]}),o_);var s_;function lxt(n,e){if(1&n&&(M(0,"span",11),d(1),w()),2&n){const t=et();T(1),Ve(null==t.chart?null:t.chart.subTitle)}}a_=It([Ze({checkProperties:!0})],a_);const cxt=function(n){return{current:n}};function uxt(n,e){if(1&n){const t=rr();M(0,"li",14),ie("click",function(){const o=An(t).$implicit,a=et(2);return a.activeTab=o,Dn(a.tabChange(o))}),d(1),w()}if(2&n){const t=e.$implicit,r=et(2);D("ngClass",Ae(2,cxt,t===r.activeTab)),T(1),Ie("\n ",t,"\n ")}}function dxt(n,e){if(1&n&&(M(0,"ul",12),d(1,"\n "),Y(2,uxt,2,4,"li",13),d(3,"\n "),w()),2&n){const t=et();T(2),D("ngForOf",t.tabs)}}function hxt(n,e){1&n&&(Et(0),d(1," "),kt())}const fxt=function(){return{display:"block",padding:"0px"}},pxt=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 gxt(n,e){1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",15),d(2,"\n")),2&n&&(T(1),D("ngStyle",$e(2,fxt))("theme",$e(3,pxt)))}const mxt=function(n){return{heading:!0,"has-subtitle":n}},vxt=function(n){return{opacity:n}};let WS=(s_=class{set data(e){this.loading=!0,this.subscribeToData(e)}get data(){return this._data}constructor(){this.chart=null,this.tabEvent=new vr,this.tabs=Object.values(ea),this.loading=!0,this.activeTab=ea.AllTime,this._data=null,this.echartsExtentions=[q3,Rb,AS,Lb]}tabChange(e){const t=new Date;let r=new Date;switch(e){case ea.D1:r.setDate(t.getDate()-1);break;case ea.D7:r.setDate(t.getDate()-7);break;case ea.D30:r.setDate(t.getDate()-30);break;case ea.YTD:r=new Date((new Date).getFullYear(),0,1)}this.tabEvent.emit({from:e===ea.AllTime?void 0:r?.getTime(),till:e===ea.AllTime?void 0:t?.getTime()})}drawChart(e){this.chart?.dummy&&(e=this.fillDummyData(e)),e?.map(i=>{const o=i?.x?.split("-").map(a=>(parseInt(a)<10?"0":"")+ +a).join("-");return i.x=new Date(o)?.getTime(),i});const t=[{data:(e=Sd.orderBy(e,"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(e?.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 sX(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:t},yt(!0).pipe(va(300)).subscribe(()=>this.loading=!1)}catch(i){throw this.loading=!1,new Error(i)}}onChartInit(e){this._chart=e}get pChart(){return this._chart}formatTooltip(e){let t="";for(let r=0;r${i?.toDateString()}\n
${e[r].seriesName}: ${e[r].value?.[1]?.toLocaleString()}`}return t}subscribeToData(e){e?.pipe(Wt(this)).subscribe(t=>{this.drawChart(t)})}fillDummyData(e){if(e?.length<13){const t=14-e?.length,r=Sd.maxBy(e,"y")?.y||1,i=Sd.minBy(e,"y")?.y||1,o=Sd.minBy(e,"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)),e.unshift({x:l?.toISOString()?.split("T")[0],y:0})}}return e}getMaxNumberFromArray(e){const t=Sd.max(e);return(t?sX(t,0):"")?.length}},s_.\u0275fac=function(e){return new(e||s_)},s_.\u0275cmp=ye({type:s_,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(e,t){if(1&e&&(M(0,"div",0),d(1,"\n "),M(2,"div",1),d(3,"\n "),M(4,"p",2),d(5,"\n "),M(6,"span",3),d(7),st(8,"storecloud-tooltip",4),d(9,"\n "),w(),d(10,"\n "),Y(11,lxt,2,1,"span",5),d(12,"\n "),w(),d(13,"\n "),Y(14,dxt,4,1,"ul",6),d(15,"\n "),w(),d(16,"\n\n "),M(17,"div",7),d(18,"\n "),M(19,"div",8),ie("chartinit",function(i){return t.onChartInit(i)}),w(),d(20,"\n "),Y(21,hxt,2,0,"ng-container",9),d(22,"\n "),w(),d(23,"\n"),w(),d(24,"\n\n"),Y(25,gxt,3,4,"ng-template",null,10,ze),d(27,"\n")),2&e){const r=ue(26);let i;T(2),D("ngClass",Ae(13,mxt,null==t.chart?null:t.chart.showTabs)),T(5),Ie("\n ",null==t.chart?null:t.chart.title,"\n "),T(1),D("tooltip",null==t.chart?null:t.chart.tooltip),T(3),D("ngIf",null==t.chart?null:t.chart.subTitle),T(3),D("ngIf",null==t.chart?null:t.chart.showTabs),T(5),So("id",null!==(i=null==t.chart?null:t.chart.id)&&void 0!==i?i:"chart_1"),D("options",t.options)("ngStyle",Ae(15,vxt,t.loading?0:1))("defaultHeight",(null==t.chart?null:t.chart.height)||175)("extentions",t.echartsExtentions)("isResizable",!0),T(2),D("ngIf",!t.loading)("ngIfElse",r)}},dependencies:[Ao,Zo,Xn,Ri,ta,Fb,ac],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%)}"]}),s_);function sX(n,e){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(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+i.symbol:"0"}var l_;function _xt(n,e){if(1&n&&(Et(0),M(1,"span"),d(2),w(),kt()),2&n){const t=et(2);T(1),Ei("mr-minus-2 ",null==t.item?null:t.item.preSymbolCssClass,""),T(1),Ve(null==t.item?null:t.item.preSymbol)}}function yxt(n,e){if(1&n&&st(0,"storecloud-icon",9),2&n){const t=et(2);D("icon",null==t.item?null:t.item.valueIcon)("size",t.iconSize||16)}}function Cxt(n,e){if(1&n&&(M(0,"span"),d(1),w()),2&n){const t=et(2);Sh(null==t.item?null:t.item.symbolCssClass),T(1),Ie(" ",null==t.item?null:t.item.symbol,"")}}WS=It([Ze({checkProperties:!0})],WS);const lX=function(n){return{link:n}};function bxt(n,e){if(1&n&&(M(0,"a",10),d(1,"\n "),Et(2,11),d(3," "),kt(),d(4,"\n "),w()),2&n){const t=et(2),r=ue(9);D("ngClass",Ae(3,lX,null==t.item?null:t.item.link))("routerLink",null==t.item?null:t.item.link),T(2),D("ngTemplateOutlet",r)}}function Mxt(n,e){if(1&n&&(M(0,"a",12),d(1,"\n "),Et(2,11),d(3," "),kt(),d(4,"\n "),w()),2&n){const t=et(2),r=ue(9);D("href",null==t.item?null:t.item.link,Pa)("ngClass",Ae(4,lX,null==t.item?null:t.item.link))("target",null!=t.item&&t.item.openInExistingTab?"_self":"_blank"),T(2),D("ngTemplateOutlet",r)}}function wxt(n,e){if(1&n&&(M(0,"span"),d(1),w()),2&n){const t=et(2);Ei("align-self-end ",null==t.item?null:t.item.symbolCssClass,""),T(1),Ve(null==t.item?null:t.item.symbol)}}function xxt(n,e){if(1&n&&(M(0,"span",13),d(1,"\n "),st(2,"storecloud-icon",14),d(3,"\n "),w()),2&n){const t=et(2);T(2),So("copyToClipboard",null==t.item?null:t.item.value),D("icon","copy")("size",14)}}function Pxt(n,e){if(1&n&&(M(0,"span"),d(1,"\n "),Y(2,_xt,3,4,"ng-container",1),d(3,"\n "),Y(4,yxt,1,2,"storecloud-icon",5),d(5,"\n "),Y(6,Cxt,2,4,"span",0),d(7,"\n "),Y(8,bxt,5,5,"a",6),d(9,"\n "),Y(10,Mxt,5,6,"a",7),d(11,"\n "),Y(12,wxt,2,4,"span",0),d(13,"\n "),Y(14,xxt,4,3,"span",8),d(15,"\n"),w()),2&n){const t=et();Ei("d-flex-icon ",t.cssClass,""),T(2),D("ngIf",null==t.item?null:t.item.preSymbol),T(2),D("ngIf",null==t.item?null:t.item.valueIcon),T(2),D("ngIf","before"===(null==t.item?null:t.item.symbolPosition)),T(2),D("ngIf",!(null!=t.item&&t.item.externalLink)||!1===(null==t.item?null:t.item.externalLink)),T(2),D("ngIf",null==t.item?null:t.item.externalLink),T(2),D("ngIf","after"===(null==t.item?null:t.item.symbolPosition)),T(2),D("ngIf",null==t.item?null:t.item.copy)}}function Oxt(n,e){if(1&n&&(Et(0),d(1,"\n "),st(2,"storecloud-shared-block-status-with-time",15),d(3,"\n"),kt()),2&n){const t=et();T(2),D("item",null==t.item?null:t.item.value)}}function Sxt(n,e){if(1&n&&(Et(0),d(1,"\n "),st(2,"storecloud-shared-block-status",16),d(3,"\n"),kt()),2&n){const t=et();T(2),D("cssClass",t.cssClass)("item",null==t.item?null:t.item.value)}}function Txt(n,e){1&n&&(Et(0),d(1,"\n "),M(2,"select"),d(3,"\n "),M(4,"option",17),d(5,"$0.00"),w(),d(6,"\n "),w(),d(7,"\n"),kt())}const cX=function(n){return{valueItem:n}};function Axt(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,18),d(3,"\n "),kt()),2&n){const t=et(2),r=ue(12);T(2),D("ngTemplateOutletContext",Ae(2,cX,t.item))("ngTemplateOutlet",r)}}function Dxt(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,18),he(3,"replaceValue"),d(4,"\n "),kt()),2&n){const t=e.ngIf,r=et(3),i=ue(12);T(2),D("ngTemplateOutletContext",Ae(5,cX,pa(3,2,r.item,null==t?null:t.value)))("ngTemplateOutlet",i)}}function Ixt(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,Dxt,5,7,"ng-container",19),he(3,"async"),d(4,"\n "),kt()),2&n){const t=et(2),r=ue(15);T(2),D("ngIf",Ye(3,2,null==t.item?null:t.item.value$))("ngIfElse",r)}}function Ext(n,e){if(1&n&&(d(0,"\n "),Y(1,Axt,4,4,"ng-container",1),d(2,"\n "),Y(3,Ixt,5,4,"ng-container",1),d(4,"\n")),2&n){const t=et();T(1),D("ngIf",null!=(null==t.item?null:t.item.value)),T(2),D("ngIf",null!=(null==t.item?null:t.item.value$))}}function kxt(n,e){if(1&n&&(Et(0),d(1),kt()),2&n){const t=et().valueItem;T(1),Ve(null==t?null:t.value)}}function Rxt(n,e){if(1&n&&(Et(0),d(1),he(2,"number"),kt()),2&n){const t=et().valueItem;T(1),Ve(Ye(2,1,(null==t?null:t.value)||0))}}function Nxt(n,e){if(1&n&&(Et(0),d(1),he(2,"shortNumber"),kt()),2&n){const t=et().valueItem,r=et();T(1),Ve(pa(2,1,(null==t?null:t.value)||0,null==r.item?null:r.item.decimal))}}function Lxt(n,e){if(1&n&&(Et(0),d(1),he(2,"currency"),kt()),2&n){const t=et().valueItem;T(1),Ve(Md(2,1,(null==t?null:t.value)||0,"USD","symbol","2.2-8"))}}function Fxt(n,e){if(1&n&&(Et(0),d(1),he(2,"number"),kt()),2&n){const t=et().valueItem;T(1),Ve(pa(2,1,(null==t?null:t.value)||0,"2.2-8"))}}function Bxt(n,e){if(1&n&&(Et(0),d(1),he(2,"percent"),kt()),2&n){const t=et().valueItem;let r;T(1),Ve(pa(2,1,null!==(r=null==t?null:t.value)&&void 0!==r?r:0,"1.0-2"))}}function Vxt(n,e){if(1&n&&(Et(0,21),d(1,"\n "),M(2,"div",22),d(3,"\n "),M(4,"span",23),d(5),he(6,"trim"),w(),d(7,"\n "),M(8,"span",24),d(9),he(10,"trim"),w(),d(11,"\n "),w(),d(12,"\n "),kt()),2&n){const t=et().valueItem;So("copyToClipboard",null==t?null:t.value),T(4),D("tippy",null==t?null:t.value),T(1),Ie("\n ",pa(6,4,null==t?null:t.value,null==t?null:t.trimSize),"\n "),T(4),Ie("\n ",pa(10,7,null==t?null:t.value,(null==t?null:t.trimSizeMobile)||24),"\n ")}}function $xt(n,e){if(1&n&&(Et(0),d(1),he(2,"timeAgo"),kt()),2&n){const t=et().valueItem;T(1),Ve(Ye(2,1,null==t?null:t.value))}}function Uxt(n,e){if(1&n&&(Et(0),d(1),he(2,"date"),kt()),2&n){const t=et().valueItem;T(1),Ve(pa(2,1,null==t?null:t.value,"MMM-dd-yyyy h:mm:ss a z"))}}function zxt(n,e){if(1&n&&(Et(0),d(1),he(2,"date"),kt()),2&n){const t=et().valueItem;T(1),Ve(pa(2,1,null==t?null:t.value,"MM/dd/yy"))}}function Hxt(n,e){if(1&n&&(Et(0),d(1),he(2,"date"),kt()),2&n){const t=et().valueItem;T(1),Ve(pa(2,1,null==t?null:t.value,"MMMM y"))}}function jxt(n,e){if(1&n&&(Et(0),d(1,"\n "),M(2,"span"),d(3),w(),d(4,"\n "),kt()),2&n){const t=et(2);T(2),Ei("status ",null==t.item?null:t.item.value,""),T(1),Ve(null==t.item?null:t.item.value)}}function Gxt(n,e){if(1&n&&(d(0,"\n "),Y(1,kxt,2,1,"ng-container",1),d(2,"\n "),Y(3,Rxt,3,3,"ng-container",1),d(4,"\n "),Y(5,Nxt,3,4,"ng-container",1),d(6,"\n\n "),Y(7,Lxt,3,6,"ng-container",1),d(8,"\n "),Y(9,Fxt,3,4,"ng-container",1),d(10,"\n "),Y(11,Bxt,3,4,"ng-container",1),d(12,"\n "),Y(13,Vxt,13,10,"ng-container",20),d(14,"\n "),Y(15,$xt,3,3,"ng-container",1),d(16,"\n "),Y(17,Uxt,3,4,"ng-container",1),d(18,"\n "),Y(19,zxt,3,4,"ng-container",1),d(20,"\n "),Y(21,Hxt,3,4,"ng-container",1),d(22,"\n "),Y(23,jxt,5,4,"ng-container",1),d(24,"\n")),2&n){const t=e.valueItem,r=et();T(1),D("ngIf","string"===(null==t?null:t.type)),T(2),D("ngIf","number"===(null==t?null:t.type)),T(2),D("ngIf","short-number"===(null==t?null:t.type)),T(2),D("ngIf","currency"===(null==t?null:t.type)),T(2),D("ngIf","store-currency"===(null==t?null:t.type)),T(2),D("ngIf","percent"===(null==t?null:t.type)),T(2),D("ngIf","hash"===(null==t?null:t.type)),T(2),D("ngIf","time"===(null==t?null:t.type)),T(2),D("ngIf","date-time"===(null==t?null:t.type)),T(2),D("ngIf","short-date"===(null==t?null:t.type)),T(2),D("ngIf","long-date"===(null==t?null:t.type)),T(2),D("ngIf","status"===(null==r.item?null:r.item.type))}}const Wxt=function(n){return{display:"flex",width:n}},qxt=function(n){return{"margin-top":"0px","margin-bottom":"0px",height:"16px",width:n}};function Zxt(n,e){if(1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",25),d(2,"\n")),2&n){const t=et();T(1),D("ngStyle",Ae(2,Wxt,t.loadingWidth+"px"))("theme",Ae(4,qxt,t.loadingWidth+"px"))}}let Ks=(l_=class{set item(e){e&&!e?.symbolPosition&&(e.symbolPosition="after"),this._item=e,this.changeRef.detectChanges()}get item(){return this._item}constructor(e){this.changeRef=e,this.cssClass="text-black",this.loadingWidth=30,this.iconSize=8,this._item=null}ngAfterContentChecked(){this.changeRef.detectChanges()}},l_.\u0275fac=function(e){return new(e||l_)(ft(Lc))},l_.\u0275cmp=ye({type:l_,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,"ngClass","routerLink",4,"ngIf"],[3,"href","ngClass","target",4,"ngIf"],["class","copy-button",4,"ngIf"],[1,"icon-burnt",3,"icon","size"],["routerLinkActive","",3,"ngClass","routerLink"],[3,"ngTemplateOutlet"],[3,"href","ngClass","target"],[1,"copy-button"],[3,"icon","size","copyToClipboard"],[3,"item"],[3,"cssClass","item"],["value","Select"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"copyToClipboard",4,"ngIf"],[3,"copyToClipboard"],[1,"d-flex","g-1"],[1,"desktop-hash",3,"tippy"],[1,"mobile-hash"],["animation","progress","count","1",1,"value-loader",3,"ngStyle","theme"]],template:function(e,t){1&e&&(Y(0,Pxt,16,10,"span",0),d(1,"\n\n"),Y(2,Oxt,4,1,"ng-container",1),d(3,"\n"),Y(4,Sxt,4,2,"ng-container",1),d(5,"\n"),Y(6,Txt,8,0,"ng-container",1),d(7,"\n\n"),Y(8,Ext,5,2,"ng-template",null,2,ze),d(10,"\n\n"),Y(11,Gxt,25,12,"ng-template",null,3,ze),d(13,"\n\n"),Y(14,Zxt,3,6,"ng-template",null,4,ze),d(16,"\n")),2&e&&(D("ngIf","select"!==(null==t.item?null:t.item.type)&&"block-status"!==(null==t.item?null:t.item.type)&&"progress-status"!==(null==t.item?null:t.item.type)),T(2),D("ngIf","progress-status"===(null==t.item?null:t.item.type)),T(2),D("ngIf","block-status"===(null==t.item?null:t.item.type)),T(2),D("ngIf","select"===(null==t.item?null:t.item.type)))},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}}"]}),l_);function uX(n,e,t,r,i,o,a){try{var s=n[o](a),l=s.value}catch(c){return void t(c)}s.done?e(l):Promise.resolve(l).then(r,i)}function le(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var o=n.apply(e,t);function a(l){uX(o,r,i,a,s,"next",l)}function s(l){uX(o,r,i,a,s,"throw",l)}a(void 0)})}}function Co(n,e){const t="object"==typeof e;return new Promise((r,i)=>{const o=new Rr({next:a=>{r(a),o.unsubscribe()},error:i,complete:()=>{t?r(e.defaultValue):i(new lC)}});n.subscribe(o)})}var c_;function Yxt(n,e){1&n&&(d(0,"\n "),ql(),M(1,"svg",3),d(2,"\n "),st(3,"polyline",4),d(4,"\n "),w(),d(5,"\n"))}Ks=It([Ze({checkProperties:!0})],Ks);const Xxt=function(n){return{"first-page":!0,highlighted:n}},dX=function(n){return{highlighted:n}},Kxt=function(n){return{"last-page":!0,highlighted:n}};let u_=(c_=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 e=this;return le(function*(){if(e.tableService&&e.total$){const t=yield Co(e.total$);e.tableService.page=t}})()}firstPage(){this.tableService&&(this.tableService.page=1)}},c_.\u0275fac=function(e){return new(e||c_)},c_.\u0275cmp=ye({type:c_,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(e,t){if(1&e&&(M(0,"div",0),d(1,"\n "),M(2,"p",1),ie("click",function(){return t.firstPage()}),d(3,"\n First\n "),w(),d(4,"\n "),M(5,"p",2),ie("click",function(){return t.previousPage()}),d(6,"\n "),ql(),M(7,"svg",3),d(8,"\n "),st(9,"polyline",4),d(10,"\n "),w(),d(11,"\n "),w(),d(12,"\n "),lh(),M(13,"p"),d(14,"\n Page "),M(15,"span"),d(16),w(),d(17," of\n "),M(18,"span"),d(19),he(20,"number"),he(21,"async"),w(),d(22,"\n "),w(),d(23,"\n "),M(24,"p",2),ie("click",function(){return t.nextPage()}),he(25,"async"),he(26,"async"),d(27,"\n "),ql(),M(28,"svg",5),d(29,"\n "),st(30,"polyline",6),d(31,"\n "),w(),d(32,"\n "),w(),d(33,"\n "),lh(),M(34,"p",1),ie("click",function(){return t.lastPage()}),he(35,"async"),d(36,"\n Last\n "),w(),d(37,"\n"),w(),d(38,"\n\n"),Y(39,Yxt,6,0,"ng-template"),d(40,"\n")),2&e){let r;T(2),D("ngClass",Ae(17,Xxt,(null==t.tableService?null:t.tableService.page)>1)),T(3),D("ngClass",Ae(19,dX,(null==t.tableService?null:t.tableService.page)>1)),T(11),Ve(null!==(r=null==t.tableService?null:t.tableService.page)&&void 0!==r?r:1),T(3),Ve(pa(20,6,Ye(21,9,t.total$)||1,"1.0-0")),T(5),D("ngClass",Ae(21,dX,Ye(25,11,t.total$)>1&&(null==t.tableService?null:t.tableService.page){class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["storecloud-spinner"]],inputs:{cssClass:"cssClass"},standalone:!0,features:[Fo],decls:2,vars:3,template:function(t,r){1&t&&(st(0,"div"),d(1,"\n")),2&t&&Ei("spinner ",r.cssClass,"")},styles:[".spinner[_ngcontent-%COMP%]{height:48px;width:48px;color:#1db0a9;position:relative;display:inline-block;border:2px solid;border-radius:50%;border-top-color:transparent;animation:_ngcontent-%COMP%_rotate 1s linear infinite}.spinner.w-22[_ngcontent-%COMP%]{width:22px;height:22px}.spinner.w-100-p[_ngcontent-%COMP%]{width:100%;height:100%}.spinner.b-4[_ngcontent-%COMP%]{border-width:4px}@media screen and (max-width: 525px){.spinner[_ngcontent-%COMP%]{height:12px;width:12px}}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})();var iPt=Dt(977);const oPt=30;const fX=new Pe("JazziconConfig"),m6="http://www.w3.org/2000/svg";let pX=(()=>{class n{constructor(t,r){this.config=t,this.rendererFactory=r,this.renderer=this.rendererFactory.createRenderer(null,null)}generateIdenticon(t,r={}){const i=r?.diameter||this.config.diameter,o=r?.shapeCount||this.config.shapeCount,a=r?.colors||this.config.colors;this.generator=new iPt(t);const s=function aPt(n,e){const t=30*e.random()-oPt/2;return n.map(i=>function sPt(n,e){const t=function cPt(n){let{r:e,g:t,b:r}=function lPt(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);e/=255,t/=255,r/=255;const i=Math.min(e,t,r),o=Math.max(e,t,r),a=o-i;let s=0,l=0,c=0;return s=0==a?0:o==e?(t-r)/a%6:o==t?(r-e)/a+2:(e-t)/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=t.h;return r=(r+e)%360,r=r<0?360+r:r,t.h=r,function uPt(n){let{h:e,s:t,l:r}=n;t/=100,r/=100;const i=(1-Math.abs(2*r-1))*t,o=i*(1-Math.abs(e/60%2-1)),a=r-i/2;let s=0,l=0,c=0;0<=e&&e<60?(s=i,l=o,c=0):60<=e&&e<120?(s=o,l=i,c=0):120<=e&&e<180?(s=0,l=i,c=o):180<=e&&e<240?(s=0,l=o,c=i):240<=e&&e<300?(s=o,l=0,c=i):300<=e&&e<360&&(s=i,l=0,c=o);let u=Math.round(255*(s+a)).toString(16),h=Math.round(255*(l+a)).toString(16),p=Math.round(255*(c+a)).toString(16);return 1==u.length&&(u="0"+u),1==h.length&&(h="0"+h),1==p.length&&(p="0"+p),"#"+u+h+p}(t)}(i,t))}(a.slice(),this.generator),c=this.paperGen(i,this.genColor(s)).container,u=this.renderer.createElement("svg",m6);this.renderer.setAttribute(u,"xlmns",m6),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 h=0;h{class n{constructor(t,r,i){this.elementRef=t,this.renderer=r,this.jazziconService=i}ngOnChanges(t){this.initJazzicon()}initJazzicon(){const t=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,t),this.jazzDomElement=t}}return n.\u0275fac=function(t){return new(t||n)(ft(Pr),ft(Yn),ft(pX))},n.\u0275cmp=ye({type:n,selectors:[["ngx-jazzicon"]],inputs:{colors:"colors",diameter:"diameter",seed:"seed",shapeCount:"shapeCount"},features:[go],decls:0,vars:0,template:function(t,r){},styles:[".jazzicon-container{border-radius:50px;overflow:hidden;padding:0;margin:0;display:inline-block}\n"],encapsulation:2,changeDetection:0}),n})();const hPt={diameter:100,shapeCount:4,colors:["#01888C","#FC7500","#034F5D","#F73F01","#FC1960","#C7144C","#F3C100","#1598F2","#2465E1","#F19E02"]};let gX=(()=>{class n{static forRoot(t={}){return{ngModule:n,providers:[pX,{provide:fX,useValue:{...hPt,...t}}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({imports:[[$i]]}),n})();const YS=function(){return{"width.px":17}};function fPt(n,e){1&n&&st(0,"img",5),2&n&&(Ph("src","https://explorer.storecloud.org/assets/lucide_icon/",et(2).idleIcon,".svg",Pa),D("ngStyle",$e(2,YS)))}function pPt(n,e){1&n&&st(0,"img",5),2&n&&D("src",et(2).idleIconSrc,Pa)("ngStyle",$e(2,YS))}function gPt(n,e){if(1&n&&(Et(0),d(1,"\n "),st(2,"ngx-jazzicon",6),d(3,"\n "),kt()),2&n){const t=et(2);T(2),D("seed",t.customIcon)("diameter",15)}}function mPt(n,e){if(1&n){const t=rr();M(0,"button",2),ie("click",function(){return An(t),Dn(et().click())}),d(1,"\n "),Y(2,fPt,1,3,"img",3),d(3,"\n "),Y(4,pPt,1,3,"img",3),d(5),Y(6,gPt,4,2,"ng-container",4),d(7,"\n\n"),w()}if(2&n){const t=et();Ei("",t.cssClass," btn-idle"),D("disabled",t._disabled),T(2),D("ngIf",t.idleIcon),T(2),D("ngIf",t.idleIconSrc),T(1),Ie("\n ",t.idleText,"\n "),T(1),D("ngIf",t.customIcon)}}function vPt(n,e){if(1&n&&(M(0,"button",7),d(1,"\n "),st(2,"span",8),d(3),w()),2&n){const t=et();Ei("",t.cssClass," btn-loading"),D("disabled",!0),T(3),Ie(" ",null==t.currentState?null:t.currentState.title,"\n")}}function _Pt(n,e){if(1&n&&(M(0,"button",7),d(1,"\n "),st(2,"img",9),d(3),w()),2&n){const t=et();Ei("",t.cssClass," btn-success"),D("disabled",!0),T(2),D("ngStyle",$e(6,YS)),T(1),Ie("\n ",null==t.currentState?null:t.currentState.title,"\n")}}function yPt(n,e){if(1&n&&(M(0,"button",7),d(1,"\n "),st(2,"img",10),d(3),w()),2&n){const t=et();Ei("",t.cssClass," btn-error"),D("disabled",t._disabled),T(2),D("ngStyle",$e(6,YS)),T(1),Ie("\n ",null==t.currentState?null:t.currentState.title,"\n")}}let Js=(()=>{class n{set customIcon(t){this._customIcon=t}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=nu,this.clickEvent=new vr,this.initEvent=new vr,this.disabled=!1,this.states=[{type:nu.Idle,title:this.idleText??"Save"},{type:nu.Loading,title:this.loadingText??"Processing..."},{type:nu.Success,title:this.successText??"Done"},{type:nu.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(t=>t.type===nu.Idle)}showLoading(){this.currentState=this.states?.find(t=>t.type===nu.Loading)}showSuccess(){this.currentState=this.states?.find(t=>t.type===nu.Success),setTimeout(()=>{this.showIdle()},3e3)}showError(t){this.currentState=this.states?.find(r=>r.type===nu.Error),setTimeout(()=>{this.showIdle()},3e3)}get _disabled(){return this.disabled??!1}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({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(t,r){1&t&&(Y(0,mPt,8,8,"button",0),d(1,"\n\n"),Y(2,vPt,4,5,"button",1),d(3,"\n\n"),Y(4,_Pt,4,7,"button",1),d(5,"\n\n"),Y(6,yPt,4,7,"button",1),d(7,"\n")),2&t&&(D("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Idle),T(2),D("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Loading),T(2),D("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Success),T(2),D("ngIf",(null==r.currentState?null:r.currentState.type)===r.StateType.Error))},dependencies:[Xn,Ri,dPt],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 nu=(()=>(function(n){n[n.Idle=0]="Idle",n[n.Loading=1]="Loading",n[n.Success=2]="Success",n[n.Error=3]="Error"}(nu||(nu={})),nu))(),z1=1e6,tM="[big.js] ",H1=tM+"Invalid ",XS=H1+"decimal places",PPt=H1+"rounding mode",vX=tM+"Division by zero",Si={},Gd=void 0,OPt=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function j1(n,e,t,r){var i=n.c;if(t===Gd&&(t=n.constructor.RM),0!==t&&1!==t&&2!==t&&3!==t)throw Error(PPt);if(e<1)r=3===t&&(r||!!i[0])||0===e&&(1===t&&i[0]>=5||2===t&&(i[0]>5||5===i[0]&&(r||i[1]!==Gd))),i.length=1,r?(n.e=n.e-e+1,i[0]=1):i[0]=n.e=0;else if(e=5||2===t&&(i[e]>5||5===i[e]&&(r||i[e+1]!==Gd||1&i[e-1]))||3===t&&(r||!!i[0]),i.length=e,r)for(;++i[--e]>9;)if(i[e]=0,0===e){++n.e,i.unshift(1);break}for(e=i.length;!i[--e];)i.pop()}return n}function p_(n,e,t){var r=n.e,i=n.c.join(""),o=i.length;if(e)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)i="0"+i;i="0."+i}else if(r>0)if(++r>o)for(r-=o;r--;)i+="0";else r1&&(i=i.charAt(0)+"."+i.slice(1));return n.s<0&&t?"-"+i:i}Si.abs=function(){var n=new this.constructor(this);return n.s=1,n},Si.cmp=function(n){var e,t=this,r=t.c,i=(n=new t.constructor(n)).c,o=t.s,a=n.s,s=t.e,l=n.e;if(!r[0]||!i[0])return r[0]?o:i[0]?-a:0;if(o!=a)return o;if(e=o<0,s!=l)return s>l^e?1:-1;for(a=(s=r.length)<(l=i.length)?s:l,o=-1;++oi[o]^e?1:-1;return s==l?0:s>l^e?1:-1},Si.div=function(n){var e=this,t=e.constructor,r=e.c,i=(n=new t(n)).c,o=e.s==n.s?1:-1,a=t.DP;if(a!==~~a||a<0||a>z1)throw Error(XS);if(!i[0])throw Error(vX);if(!r[0])return n.s=o,n.c=[n.e=0],n;var s,l,c,u,h,p=i.slice(),g=s=i.length,v=r.length,_=r.slice(0,s),y=_.length,C=n,x=C.c=[],P=0,S=a+(C.e=e.e-n.e)+1;for(C.s=o,o=S<0?0:S,p.unshift(0);y++y?1:-1;else for(h=-1,u=0;++h_[h]?1:-1;break}if(!(u<0))break;for(l=y==s?i:p;y;){if(_[--y]S&&j1(C,S,t.RM,_[0]!==Gd),C},Si.eq=function(n){return 0===this.cmp(n)},Si.gt=function(n){return this.cmp(n)>0},Si.gte=function(n){return this.cmp(n)>-1},Si.lt=function(n){return this.cmp(n)<0},Si.lte=function(n){return this.cmp(n)<1},Si.minus=Si.sub=function(n){var e,t,r,i,o=this,a=o.constructor,s=o.s,l=(n=new a(n)).s;if(s!=l)return n.s=-l,o.plus(n);var c=o.c.slice(),u=o.e,h=n.c,p=n.e;if(!c[0]||!h[0])return h[0]?n.s=-l:c[0]?n=new a(o):n.s=1,n;if(s=u-p){for((i=s<0)?(s=-s,r=c):(p=u,r=h),r.reverse(),l=s;l--;)r.push(0);r.reverse()}else for(t=((i=c.length0)for(;l--;)c[e++]=0;for(l=e;t>s;){if(c[--t]0?(l=a,r=c):(e=-e,r=s),r.reverse();e--;)r.push(0);r.reverse()}for(s.length-c.length<0&&(r=c,c=s,s=r),e=c.length,t=0;e;s[e]%=10)t=(s[--e]=s[e]+c[e]+t)/10|0;for(t&&(s.unshift(t),++l),e=s.length;0===s[--e];)s.pop();return n.c=s,n.e=l,n},Si.pow=function(n){var e=this,t=new e.constructor("1"),r=t,i=n<0;if(n!==~~n||n<-1e6||n>1e6)throw Error(H1+"exponent");for(i&&(n=-n);1&n&&(r=r.times(e)),n>>=1;)e=e.times(e);return i?t.div(r):r},Si.prec=function(n,e){if(n!==~~n||n<1||n>z1)throw Error(H1+"precision");return j1(new this.constructor(this),n,e)},Si.round=function(n,e){if(n===Gd)n=0;else if(n!==~~n||n<-z1||n>z1)throw Error(XS);return j1(new this.constructor(this),n+this.e+1,e)},Si.sqrt=function(){var n,e,t,r=this,i=r.constructor,o=r.s,a=r.e,s=new i("0.5");if(!r.c[0])return new i(r);if(o<0)throw Error(tM+"No square root");0===(o=Math.sqrt(r+""))||o===1/0?((e=r.c.join("")).length+a&1||(e+="0"),a=((a+1)/2|0)-(a<0||1&a),n=new i(((o=Math.sqrt(e))==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):n=new i(o+""),a=n.e+(i.DP+=4);do{n=s.times((t=n).plus(r.div(t)))}while(t.c.slice(0,a).join("")!==n.c.slice(0,a).join(""));return j1(n,(i.DP-=4)+n.e+1,i.RM)},Si.times=Si.mul=function(n){var e,t=this,i=t.c,o=(n=new(0,t.constructor)(n)).c,a=i.length,s=o.length,l=t.e,c=n.e;if(n.s=t.s==n.s?1:-1,!i[0]||!o[0])return n.c=[n.e=0],n;for(n.e=l+c,al;)s=e[c]+o[l]*i[c-l-1]+s,e[c--]=s%10,s=s/10|0;e[c]=s}for(s?++n.e:e.shift(),l=e.length;!e[--l];)e.pop();return n.c=e,n},Si.toExponential=function(n,e){var t=this,r=t.c[0];if(n!==Gd){if(n!==~~n||n<0||n>z1)throw Error(XS);for(t=j1(new t.constructor(t),++n,e);t.c.lengthz1)throw Error(XS);for(n=n+(t=j1(new t.constructor(t),n+t.e+1,e)).e+1;t.c.length=e.PE,!!n.c[0])},Si.toNumber=function(){var n=Number(p_(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(n.toString()))throw Error(tM+"Imprecise conversion");return n},Si.toPrecision=function(n,e){var t=this,r=t.constructor,i=t.c[0];if(n!==Gd){if(n!==~~n||n<1||n>z1)throw Error(H1+"precision");for(t=j1(new r(t),n,e);t.c.length=r.PE,!!i)},Si.valueOf=function(){var n=this,e=n.constructor;if(!0===e.strict)throw Error(tM+"valueOf disallowed");return p_(n,n.e<=e.NE||n.e>=e.PE,!0)};var TPt=function _X(){function n(e){var t=this;if(!(t instanceof n))return e===Gd?_X():new n(e);if(e instanceof n)t.s=e.s,t.e=e.e,t.c=e.c.slice();else{if("string"!=typeof e){if(!0===n.strict&&"bigint"!=typeof e)throw TypeError(H1+"value");e=0===e&&1/e<0?"-0":String(e)}!function SPt(n,e){var t,r,i;if(!OPt.test(e))throw Error(H1+"number");for(n.s="-"==e.charAt(0)?(e=e.slice(1),-1):1,(t=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(t<0&&(t=r),t+=+e.slice(r+1),e=e.substring(0,r)):t<0&&(t=e.length),i=e.length,r=0;r0&&"0"==e.charAt(--i););for(n.e=t-r-1,n.c=[],t=0;r<=i;)n.c[t++]=+e.charAt(r++)}}(t,e)}t.constructor=n}return n.prototype=Si,n.DP=20,n.RM=1,n.NE=-7,n.PE=21,n.strict=false,n.roundDown=0,n.roundHalfUp=1,n.roundHalfEven=2,n.roundUp=3,n}();const ir=TPt;let yX=!1,CX=!1;const KS={debug:1,default:2,info:2,warning:3,error:4,off:5};let bX=KS.default,v6=null;const MX=function DPt(){try{const n=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch{n.push(e)}}),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 JS=(()=>(function(n){n.DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF"}(JS||(JS={})),JS))(),ru=(()=>(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"}(ru||(ru={})),ru))();const wX="0123456789abcdef";let Lt=(()=>{class n{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){const i=t.toLowerCase();null==KS[i]&&this.throwArgumentError("invalid log level name","logLevel",t),!(bX>KS[i])&&console.log.apply(console,r)}debug(...t){this._log(n.levels.DEBUG,t)}info(...t){this._log(n.levels.INFO,t)}warn(...t){this._log(n.levels.WARNING,t)}makeError(t,r,i){if(CX)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 h="";for(let p=0;p>4],h+=wX[15&u[p]];o.push(c+"=Uint8Array(0x"+h+")")}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=t;let s="";switch(r){case ru.NUMERIC_FAULT:{s="NUMERIC_FAULT";const c=t;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 ru.CALL_EXCEPTION:case ru.INSUFFICIENT_FUNDS:case ru.MISSING_NEW:case ru.NONCE_EXPIRED:case ru.REPLACEMENT_UNDERPRICED:case ru.TRANSACTION_REPLACED:case ru.UNPREDICTABLE_GAS_LIMIT:s=r}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),o.length&&(t+=" ("+o.join(", ")+")");const l=new Error(t);return l.reason=a,l.code=r,Object.keys(i).forEach(function(c){l[c]=i[c]}),l}throwError(t,r,i){throw this.makeError(t,r,i)}throwArgumentError(t,r,i){return this.throwError(t,n.errors.INVALID_ARGUMENT,{argument:r,value:i})}assert(t,r,i,o){t||this.throwError(r,i,o)}assertArgument(t,r,i,o){t||this.throwArgumentError(r,i,o)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),MX&&this.throwError("platform missing String.prototype.normalize",n.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:MX})}checkSafeUint53(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,i){i=i?": "+i:"",tr&&this.throwError("too many arguments"+i,n.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||null==t)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",n.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return v6||(v6=new n("logger/5.7.0")),v6}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),yX){if(!t)return;this.globalLogger().throwError("error censorship permanent",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}CX=!!t,yX=!!r}static setLogLevel(t){const r=KS[t.toLowerCase()];null!=r?bX=r:n.globalLogger().warn("invalid log level - "+t)}static from(t){return new n(t)}}return n.errors=ru,n.levels=JS,n})();const Eo=new Lt("bytes/5.7.0");function xX(n){return!!n.toHexString}function g_(n){return n.slice||(n.slice=function(){const e=Array.prototype.slice.call(arguments);return g_(new Uint8Array(Array.prototype.slice.apply(n,e)))}),n}function _6(n){return Bi(n)&&!(n.length%2)||m_(n)}function PX(n){return"number"==typeof n&&n==n&&n%1==0}function m_(n){if(null==n)return!1;if(n.constructor===Uint8Array)return!0;if("string"==typeof n||!PX(n.length)||n.length<0)return!1;for(let e=0;e=256)return!1}return!0}function xn(n,e){if(e||(e={}),"number"==typeof n){Eo.checkSafeUint53(n,"invalid arrayify value");const t=[];for(;n;)t.unshift(255&n),n=parseInt(String(n/256));return 0===t.length&&t.push(0),g_(new Uint8Array(t))}if(e.allowMissingPrefix&&"string"==typeof n&&"0x"!==n.substring(0,2)&&(n="0x"+n),xX(n)&&(n=n.toHexString()),Bi(n)){let t=n.substring(2);t.length%2&&("left"===e.hexPad?t="0"+t:"right"===e.hexPad?t+="0":Eo.throwArgumentError("hex data is odd-length","value",n));const r=[];for(let i=0;ixn(i)),t=e.reduce((i,o)=>i+o.length,0),r=new Uint8Array(t);return e.reduce((i,o)=>(r.set(o,i),i+o.length),0),g_(r)}function v_(n){let e=xn(n);if(0===e.length)return e;let t=0;for(;t>4]+y6[15&i]}return t}return Eo.throwArgumentError("invalid hexlify value","value",n)}function G1(n){if("string"!=typeof n)n=wn(n);else if(!Bi(n)||n.length%2)return null;return(n.length-2)/2}function Cs(n,e,t){return"string"!=typeof n?n=wn(n):(!Bi(n)||n.length%2)&&Eo.throwArgumentError("invalid hexData","value",n),e=2+2*e,null!=t?"0x"+n.substring(e,2+2*t):"0x"+n.substring(e)}function Tl(n){let e="0x";return n.forEach(t=>{e+=wn(t).substring(2)}),e}function eM(n){const e=function kPt(n){"string"!=typeof n&&(n=wn(n)),Bi(n)||Eo.throwArgumentError("invalid hex string","value",n),n=n.substring(2);let e=0;for(;e2*e+2&&Eo.throwArgumentError("value out of range","value",arguments[1]);n.length<2*e+2;)n="0x0"+n.substring(2);return n}function nM(n){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(_6(n)){let t=xn(n);64===t.length?(e.v=27+(t[32]>>7),t[32]&=127,e.r=wn(t.slice(0,32)),e.s=wn(t.slice(32,64))):65===t.length?(e.r=wn(t.slice(0,32)),e.s=wn(t.slice(32,64)),e.v=t[64]):Eo.throwArgumentError("invalid signature string","signature",n),e.v<27&&(0===e.v||1===e.v?e.v+=27:Eo.throwArgumentError("signature invalid v byte","signature",n)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=wn(t.slice(32,64))}else{if(e.r=n.r,e.s=n.s,e.v=n.v,e.recoveryParam=n.recoveryParam,e._vs=n._vs,null!=e._vs){const i=function EPt(n,e){(n=xn(n)).length>e&&Eo.throwArgumentError("value out of range","value",arguments[0]);const t=new Uint8Array(e);return t.set(n,e-n.length),g_(t)}(xn(e._vs),32);e._vs=wn(i);const o=i[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=o:e.recoveryParam!==o&&Eo.throwArgumentError("signature recoveryParam mismatch _vs","signature",n),i[0]&=127;const a=wn(i);null==e.s?e.s=a:e.s!==a&&Eo.throwArgumentError("signature v mismatch _vs","signature",n)}null==e.recoveryParam?null==e.v?Eo.throwArgumentError("signature missing v and recoveryParam","signature",n):e.recoveryParam=0===e.v||1===e.v?e.v:1-e.v%2:null==e.v?e.v=27+e.recoveryParam:e.recoveryParam!==(0===e.v||1===e.v?e.v:1-e.v%2)&&Eo.throwArgumentError("signature recoveryParam mismatch v","signature",n),null!=e.r&&Bi(e.r)?e.r=bo(e.r,32):Eo.throwArgumentError("signature missing or invalid r","signature",n),null!=e.s&&Bi(e.s)?e.s=bo(e.s,32):Eo.throwArgumentError("signature missing or invalid s","signature",n);const t=xn(e.s);t[0]>=128&&Eo.throwArgumentError("signature s out of range","signature",n),e.recoveryParam&&(t[0]|=128);const r=wn(t);e._vs&&(Bi(e._vs)||Eo.throwArgumentError("signature invalid _vs","signature",n),e._vs=bo(e._vs,32)),null==e._vs?e._vs=r:e._vs!==r&&Eo.throwArgumentError("signature _vs mismatch v and s","signature",n)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}var NPt=function(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})};const QS=new Lt("properties/5.7.0");function Bn(n,e,t){Object.defineProperty(n,e,{enumerable:!0,value:t,writable:!1})}function rM(n,e){for(let t=0;t<32;t++){if(n[e])return n[e];if(!n.prototype||"object"!=typeof n.prototype)break;n=Object.getPrototypeOf(n.prototype).constructor}return null}function Ha(n){return NPt(this,void 0,void 0,function*(){const e=Object.keys(n).map(r=>Promise.resolve(n[r]).then(o=>({key:r,value:o})));return(yield Promise.all(e)).reduce((r,i)=>(r[i.key]=i.value,r),{})})}function Al(n){const e={};for(const t in n)e[t]=n[t];return e}const FPt={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function OX(n){if(null==n||FPt[typeof n])return!0;if(Array.isArray(n)||"object"==typeof n){if(!Object.isFrozen(n))return!1;const e=Object.keys(n);for(let t=0;tAp(e)));if("object"==typeof n){const e={};for(const t in n){const r=n[t];void 0!==r&&Bn(e,t,Ap(r))}return e}return QS.throwArgumentError("Cannot deepCopy "+typeof n,"object",n)}function Ap(n){return BPt(n)}class VPt{constructor(e){for(const t in e)this[t]=Ap(e[t])}}var $Pt=Dt(538),Gn=Dt.n($Pt);const SX="bignumber/5.7.0";var iM=Gn().BN;const Qh=new Lt(SX),C6={},TX=9007199254740991;let AX=!1;class we{constructor(e,t){e!==C6&&Qh.throwError("cannot call constructor directly; use BigNumber.from",Lt.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Dl(Mr(this).fromTwos(e))}toTwos(e){return Dl(Mr(this).toTwos(e))}abs(){return"-"===this._hex[0]?we.from(this._hex.substring(1)):this}add(e){return Dl(Mr(this).add(Mr(e)))}sub(e){return Dl(Mr(this).sub(Mr(e)))}div(e){return we.from(e).isZero()&&iu("division-by-zero","div"),Dl(Mr(this).div(Mr(e)))}mul(e){return Dl(Mr(this).mul(Mr(e)))}mod(e){const t=Mr(e);return t.isNeg()&&iu("division-by-zero","mod"),Dl(Mr(this).umod(t))}pow(e){const t=Mr(e);return t.isNeg()&&iu("negative-power","pow"),Dl(Mr(this).pow(t))}and(e){const t=Mr(e);return(this.isNegative()||t.isNeg())&&iu("unbound-bitwise-result","and"),Dl(Mr(this).and(t))}or(e){const t=Mr(e);return(this.isNegative()||t.isNeg())&&iu("unbound-bitwise-result","or"),Dl(Mr(this).or(t))}xor(e){const t=Mr(e);return(this.isNegative()||t.isNeg())&&iu("unbound-bitwise-result","xor"),Dl(Mr(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&iu("negative-width","mask"),Dl(Mr(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&iu("negative-width","shl"),Dl(Mr(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&iu("negative-width","shr"),Dl(Mr(this).shrn(e))}eq(e){return Mr(this).eq(Mr(e))}lt(e){return Mr(this).lt(Mr(e))}lte(e){return Mr(this).lte(Mr(e))}gt(e){return Mr(this).gt(Mr(e))}gte(e){return Mr(this).gte(Mr(e))}isNegative(){return"-"===this._hex[0]}isZero(){return Mr(this).isZero()}toNumber(){try{return Mr(this).toNumber()}catch{iu("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Qh.throwError("this platform does not support BigInt",Lt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?AX||(AX=!0,Qh.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):Qh.throwError(16===arguments[0]?"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()":"BigNumber.toString does not accept parameters",Lt.errors.UNEXPECTED_ARGUMENT,{})),Mr(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof we)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new we(C6,oM(e)):e.match(/^-?[0-9]+$/)?new we(C6,oM(new iM(e))):Qh.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&iu("underflow","BigNumber.from",e),(e>=TX||e<=-TX)&&iu("overflow","BigNumber.from",e),we.from(String(e));const t=e;if("bigint"==typeof t)return we.from(t.toString());if(m_(t))return we.from(wn(t));if(t)if(t.toHexString){const r=t.toHexString();if("string"==typeof r)return we.from(r)}else{let r=t._hex;if(null==r&&"BigNumber"===t.type&&(r=t.hex),"string"==typeof r&&(Bi(r)||"-"===r[0]&&Bi(r.substring(1))))return we.from(r)}return Qh.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function oM(n){if("string"!=typeof n)return oM(n.toString(16));if("-"===n[0])return"-"===(n=n.substring(1))[0]&&Qh.throwArgumentError("invalid hex","value",n),"0x00"===(n=oM(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 Dl(n){return we.from(oM(n))}function Mr(n){const e=we.from(n).toHexString();return new iM("-"===e[0]?"-"+e.substring(3):e.substring(2),16)}function iu(n,e,t){const r={fault:n,operation:e};return null!=t&&(r.value=t),Qh.throwError(n,Lt.errors.NUMERIC_FAULT,r)}var HPt=Dt(237),jPt=Dt.n(HPt);function ja(n){return"0x"+jPt().keccak_256(xn(n))}const Wd=new Lt("rlp/5.7.0");function DX(n){const e=[];for(;n;)e.unshift(255&n),n>>=8;return e}function IX(n,e,t){let r=0;for(let i=0;ie+1+r&&Wd.throwError("child data too short",Lt.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:i}}function RX(n,e){if(0===n.length&&Wd.throwError("data too short",Lt.errors.BUFFER_OVERRUN,{}),n[e]>=248){const t=n[e]-247;e+1+t>n.length&&Wd.throwError("data short segment too short",Lt.errors.BUFFER_OVERRUN,{});const r=IX(n,e+1,t);return e+1+t+r>n.length&&Wd.throwError("data long segment too short",Lt.errors.BUFFER_OVERRUN,{}),kX(n,e,e+1+t,t+r)}if(n[e]>=192){const t=n[e]-192;return e+1+t>n.length&&Wd.throwError("data array too short",Lt.errors.BUFFER_OVERRUN,{}),kX(n,e,e+1,t)}if(n[e]>=184){const t=n[e]-183;e+1+t>n.length&&Wd.throwError("data array too short",Lt.errors.BUFFER_OVERRUN,{});const r=IX(n,e+1,t);return e+1+t+r>n.length&&Wd.throwError("data array too short",Lt.errors.BUFFER_OVERRUN,{}),{consumed:1+t+r,result:wn(n.slice(e+1+t,e+1+t+r))}}if(n[e]>=128){const t=n[e]-128;return e+1+t>n.length&&Wd.throwError("data too short",Lt.errors.BUFFER_OVERRUN,{}),{consumed:1+t,result:wn(n.slice(e+1,e+1+t))}}return{consumed:1,result:wn(n[e])}}function b6(n){const e=xn(n),t=RX(e,0);return t.consumed!==e.length&&Wd.throwArgumentError("invalid rlp data","data",n),t.result}const Dp=new Lt("address/5.7.0");function NX(n){Bi(n,20)||Dp.throwArgumentError("invalid address","address",n);const e=(n=n.toLowerCase()).substring(2).split(""),t=new Uint8Array(40);for(let i=0;i<40;i++)t[i]=e[i].charCodeAt(0);const r=xn(ja(t));for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(15&r[i>>1])>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const M6={};for(let n=0;n<10;n++)M6[String(n)]=String(n);for(let n=0;n<26;n++)M6[String.fromCharCode(65+n)]=String(10+n);const LX=Math.floor(function ZPt(n){return Math.log10?Math.log10(n):Math.log(n)/Math.LN10}(9007199254740991));function Ga(n){let e=null;if("string"!=typeof n&&Dp.throwArgumentError("invalid address","address",n),n.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==n.substring(0,2)&&(n="0x"+n),e=NX(n),n.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==n&&Dp.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 FX(n){let e=(n=(n=n.toUpperCase()).substring(4)+n.substring(0,2)+"00").split("").map(r=>M6[r]).join("");for(;e.length>=LX;){let r=e.substring(0,LX);e=parseInt(r,10)%97+e.substring(r.length)}let t=String(98-parseInt(e,10)%97);for(;t.length<2;)t="0"+t;return t}(n)&&Dp.throwArgumentError("bad icap checksum","address",n),e=function zPt(n){return new iM(n,36).toString(16)}(n.substring(4));e.length<40;)e="0"+e;e=NX("0x"+e)}else Dp.throwArgumentError("invalid address","address",n);return e}const XPt=we.from(-1),BX=we.from(0),KPt=we.from(1),JPt=we.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var QPt=Dt(84),qd=Dt.n(QPt);function __(n,e,t){return n(t={path:e,exports:{},require:function(r,i){return function tOt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},t.exports),t.exports}typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"&&self;var w6=VX;function VX(n,e){if(!n)throw new Error(e||"Assertion failed")}VX.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var Wu=__(function(n,e){var t=e;function i(a){return 1===a.length?"0"+a:a}function o(a){for(var s="",l=0;l>8,p=255&u;h?l.push(h,p):l.push(p)}return l},t.zero2=i,t.toHex=o,t.encode=function(s,l){return"hex"===l?o(s):s}}),sc=__(function(n,e){var t=e;t.assert=w6,t.toArray=Wu.toArray,t.zero2=Wu.zero2,t.toHex=Wu.toHex,t.encode=Wu.encode,t.getNAF=function r(l,c,u){var h=new Array(Math.max(l.bitLength(),u)+1);h.fill(0);for(var p=1<(p>>1)-1?(p>>1)-y:y):_=0,h[v]=_,g.iushrn(1)}return h},t.getJSF=function i(l,c){var u=[[],[]];l=l.clone(),c=c.clone();for(var g,h=0,p=0;l.cmpn(-h)>0||c.cmpn(-p)>0;){var y,C,v=l.andln(3)+h&3,_=c.andln(3)+p&3;3===v&&(v=-1),3===_&&(_=-1),y=1&v?3!=(g=l.andln(7)+h&7)&&5!==g||2!==_?v:-v:0,u[0].push(y),C=1&_?3!=(g=c.andln(7)+p&7)&&5!==g||2!==v?_:-_:0,u[1].push(C),2*h===y+1&&(h=1-h),2*p===C+1&&(p=1-p),l.iushrn(1),c.iushrn(1)}return u},t.cachedProperty=function o(l,c,u){var h="_"+c;l.prototype[c]=function(){return void 0!==this[h]?this[h]:this[h]=u.call(this)}},t.parseBytes=function a(l){return"string"==typeof l?t.toArray(l,"hex"):l},t.intFromLE=function s(l){return new(Gn())(l,"hex","le")}}),e4=sc.getNAF,eOt=sc.getJSF,n4=sc.assert;function Ip(n,e){this.type=n,this.p=new(Gn())(e.p,16),this.red=e.prime?Gn().red(e.prime):Gn().mont(this.p),this.zero=new(Gn())(0).toRed(this.red),this.one=new(Gn())(1).toRed(this.red),this.two=new(Gn())(2).toRed(this.red),this.n=e.n&&new(Gn())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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 t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var W1=Ip;function ou(n,e){this.curve=n,this.type=e,this.precomputed=null}Ip.prototype.point=function(){throw new Error("Not implemented")},Ip.prototype.validate=function(){throw new Error("Not implemented")},Ip.prototype._fixedNafMul=function(e,t){n4(e.precomputed);var r=e._getDoubles(),i=e4(t,1,this._bitLength),o=(1<=s;c--)l=(l<<1)+i[c];a.push(l)}for(var u=this.jpoint(null,null,null),h=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];n4(0!==u),s="affine"===e.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"===e.type?s.toP():s},Ip.prototype._wnafMulAdd=function(e,t,r,i,o){var u,h,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=[t[v],null,null,t[_]];0===t[v].y.cmp(t[_].y)?(y[1]=t[v].add(t[_]),y[2]=t[v].toJ().mixedAdd(t[_].neg())):0===t[v].y.cmp(t[_].y.redNeg())?(y[1]=t[v].toJ().mixedAdd(t[_]),y[2]=t[v].add(t[_].neg())):(y[1]=t[v].toJ().mixedAdd(t[_]),y[2]=t[v].toJ().mixedAdd(t[_].neg()));var C=[-3,-1,-5,-7,0,7,5,1,3],x=eOt(r[v],r[_]);for(c=Math.max(x[0].length,c),l[v]=new Array(c),l[_]=new Array(c),h=0;h=0;u--){for(var z=0;u>=0;){var $=!0;for(h=0;h=0&&z++,N=N.dblp(z),u<0)break;for(h=0;h0?p=s[h][W-1>>1]:W<0&&(p=s[h][-W-1>>1].neg()),N="affine"===p.type?N.mixedAdd(p):N.add(p))}}for(u=0;u=Math.ceil((e.bitLength()+1)/t.step)},ou.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,o=0;o=0&&(g=c,v=u),h.negative&&(h=h.neg(),p=p.neg()),g.negative&&(g=g.neg(),v=v.neg()),[{a:h,b:p},{a:g,b:v}]},au.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],o=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).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:e.sub(s).sub(l),k2:c.add(u).neg()}},au.prototype.pointFromX=function(e,t){(e=new(Gn())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.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(t&&!o||!t&&o)&&(i=i.redNeg()),this.point(e,i)},au.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},au.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,o=this._endoWnafT2,a=0;a":""},Da.prototype.isInfinity=function(){return this.inf},Da.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},Da.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),o=r.redAdd(r).redIAdd(r).redIAdd(t).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)},Da.prototype.getX=function(){return this.x.fromRed()},Da.prototype.getY=function(){return this.y.fromRed()},Da.prototype.mul=function(e){return e=new(Gn())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Da.prototype.mulAdd=function(e,t,r){var i=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)},Da.prototype.jmulAdd=function(e,t,r){var i=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)},Da.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Da.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(o){return o.neg()};t.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 t},Da.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},x6(Wa,W1.BasePoint),au.prototype.jpoint=function(e,t,r){return new Wa(this,e,t,r)},Wa.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},Wa.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Wa.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),o=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.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(),h=u.redMul(l),p=i.redMul(u),g=c.redSqr().redIAdd(h).redISub(p).redISub(p),v=c.redMul(p.redISub(g)).redISub(a.redMul(h)),_=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(g,v,_)},Wa.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),o=this.y,a=e.y.redMul(t).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),h=r.redMul(c),p=l.redSqr().redIAdd(u).redISub(h).redISub(h),g=l.redMul(h.redISub(p)).redISub(o.redMul(u)),v=this.z.redMul(s);return this.curve.jpoint(p,g,v)},Wa.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},Wa.prototype.inspect=function(){return this.isInfinity()?"":""},Wa.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var r4=__(function(n,e){var t=e;t.base=W1,t.short=rOt,t.mont=null,t.edwards=null}),i4=__(function(n,e){var a,t=e,r=sc.assert;function i(s){this.curve="short"===s.type?new r4.short(s):"edwards"===s.type?new r4.edwards(s):new r4.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(t,s,{configurable:!0,enumerable:!0,get:function(){var c=new i(l);return Object.defineProperty(t,s,{configurable:!0,enumerable:!0,value:c}),c}})}t.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:qd().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:qd().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:qd().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:qd().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:qd().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:qd().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:qd().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:qd().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})});function Ep(n){if(!(this instanceof Ep))return new Ep(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 e=Wu.toArray(n.entropy,n.entropyEnc||"hex"),t=Wu.toArray(n.nonce,n.nonceEnc||"hex"),r=Wu.toArray(n.pers,n.persEnc||"hex");w6(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,r)}var $X=Ep;Ep.prototype._init=function(e,t,r){var i=e.concat(t).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(e.concat(r||[])),this._reseed=1},Ep.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=Wu.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length"};var iOt=sc.assert;function o4(n,e){if(n instanceof o4)return n;this._importDER(n,e)||(iOt(n.r&&n.s,"Signature without r or s"),this.r=new(Gn())(n.r,16),this.s=new(Gn())(n.s,16),this.recoveryParam=void 0===n.recoveryParam?null:n.recoveryParam)}var a4=o4;function oOt(){this.place=0}function S6(n,e){var t=n[e.place++];if(!(128&t))return t;var r=15&t;if(0===r||r>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return!(i<=127)&&(e.place=a,i)}function UX(n){for(var e=0,t=n.length-1;!n[e]&&!(128&n[e+1])&&e>>3);for(n.push(128|t);--t;)n.push(e>>>(t<<3)&255);n.push(e)}}o4.prototype._importDER=function(e,t){e=sc.toArray(e,t);var r=new oOt;if(48!==e[r.place++])return!1;var i=S6(e,r);if(!1===i||i+r.place!==e.length||2!==e[r.place++])return!1;var o=S6(e,r);if(!1===o)return!1;var a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var s=S6(e,r);if(!1===s||e.length!==s+r.place)return!1;var l=e.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(Gn())(a),this.s=new(Gn())(l),this.recoveryParam=null,!0},o4.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=UX(t),r=UX(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];T6(i,t.length),(i=i.concat(t)).push(2),T6(i,r.length);var o=i.concat(r),a=[48];return T6(a,o.length),a=a.concat(o),sc.encode(a,e)};var aOt=function(){throw new Error("unsupported")},zX=sc.assert;function su(n){if(!(this instanceof su))return new su(n);"string"==typeof n&&(zX(Object.prototype.hasOwnProperty.call(i4,n),"Unknown curve "+n),n=i4[n]),n instanceof i4.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 sOt=su;su.prototype.keyPair=function(e){return new O6(this,e)},su.prototype.keyFromPrivate=function(e,t){return O6.fromPrivate(this,e,t)},su.prototype.keyFromPublic=function(e,t){return O6.fromPublic(this,e,t)},su.prototype.genKeyPair=function(e){e||(e={});for(var t=new $X({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||aOt(),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new(Gn())(2));;){var o=new(Gn())(t.generate(r));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}},su.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},su.prototype.sign=function(e,t,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(Gn())(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),l=new $X({hash:this.hash,entropy:a,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new(Gn())(1)),u=0;;u++){var h=i.k?i.k(u):new(Gn())(l.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(c)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var g=p.getX(),v=g.umod(this.n);if(0!==v.cmpn(0)){var _=h.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));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 a4({r:v,s:_,recoveryParam:y})}}}}}},su.prototype.verify=function(e,t,r,i){e=this._truncateToN(new(Gn())(e,16)),r=this.keyFromPublic(r,i);var o=(t=new a4(t,"hex")).r,a=t.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(e).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)},su.prototype.recoverPubKey=function(n,e,t,r){zX((3&t)===t,"The recovery param is more than two bits"),e=new a4(e,r);var i=this.n,o=new(Gn())(n),a=e.r,s=e.s,l=1&t,c=t>>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=e.r.invm(i),h=i.sub(o).mul(u).umod(i),p=s.mul(u).umod(i);return this.g.mulAdd(h,a,p)},su.prototype.getKeyRecoveryParam=function(n,e,t,r){if(null!==(e=new a4(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(n,e,i)}catch{continue}if(o.eq(t))return i}throw new Error("Unable to find valid recovery factor")};var lOt=__(function(n,e){var t=e;t.version="6.5.4",t.utils=sc,t.rand=function(){throw new Error("unsupported")},t.curve=r4,t.curves=i4,t.ec=sOt,t.eddsa=null}),cOt=lOt.ec;const A6=new Lt("signing-key/5.7.0");let D6=null;function Zd(){return D6||(D6=new cOt("secp256k1")),D6}class dOt{constructor(e){Bn(this,"curve","secp256k1"),Bn(this,"privateKey",wn(e)),32!==G1(this.privateKey)&&A6.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=Zd().keyFromPrivate(xn(this.privateKey));Bn(this,"publicKey","0x"+t.getPublic(!1,"hex")),Bn(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),Bn(this,"_isSigningKey",!0)}_addPoint(e){const t=Zd().keyFromPublic(xn(this.publicKey)),r=Zd().keyFromPublic(xn(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){const t=Zd().keyFromPrivate(xn(this.privateKey)),r=xn(e);32!==r.length&&A6.throwArgumentError("bad digest length","digest",e);const i=t.sign(r,{canonical:!0});return nM({recoveryParam:i.recoveryParam,r:bo("0x"+i.r.toString(16),32),s:bo("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const t=Zd().keyFromPrivate(xn(this.privateKey)),r=Zd().keyFromPublic(xn(HX(e)));return bo("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function HX(n,e){const t=xn(n);if(32===t.length){const r=new dOt(t);return e?"0x"+Zd().keyFromPrivate(t).getPublic(!0,"hex"):r.publicKey}return 33===t.length?e?wn(t):"0x"+Zd().keyFromPublic(t).getPublic(!1,"hex"):65===t.length?e?"0x"+Zd().keyFromPublic(t).getPublic(!0,"hex"):wn(t):A6.throwArgumentError("invalid public or private key","key","[REDACTED]")}const Ms=new Lt("transactions/5.7.0");function I6(n){return"0x"===n?null:Ga(n)}function ws(n){return"0x"===n?BX:we.from(n)}function jX(n,e){return function mOt(n){return Ga(Cs(ja(Cs(HX(n),1)),12))}(function hOt(n,e){const t=nM(e),r={r:xn(t.r),s:xn(t.s)};return"0x"+Zd().recoverPubKey(xn(n),r,t.recoveryParam).encode("hex",!1)}(xn(n),e))}function lc(n,e){const t=v_(we.from(n).toHexString());return t.length>32&&Ms.throwArgumentError("invalid length for "+e,"transaction:"+e,n),t}function E6(n,e){return{address:Ga(n),storageKeys:(e||[]).map((t,r)=>(32!==G1(t)&&Ms.throwArgumentError("invalid access list storageKey",`accessList[${n}:${r}]`,t),t.toLowerCase()))}}function y_(n){if(Array.isArray(n))return n.map((t,r)=>Array.isArray(t)?(t.length>2&&Ms.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${r}]`,t),E6(t[0],t[1])):E6(t.address,t.storageKeys));const e=Object.keys(n).map(t=>{const r=n[t].reduce((i,o)=>(i[o]=!0,i),{});return E6(t,Object.keys(r).sort())});return e.sort((t,r)=>t.address.localeCompare(r.address)),e}function GX(n){return y_(n).map(e=>[e.address,e.storageKeys])}function WX(n,e){if(null!=n.gasPrice){const r=we.from(n.gasPrice),i=we.from(n.maxFeePerGas||0);r.eq(i)||Ms.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:i})}const t=[lc(n.chainId||0,"chainId"),lc(n.nonce||0,"nonce"),lc(n.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),lc(n.maxFeePerGas||0,"maxFeePerGas"),lc(n.gasLimit||0,"gasLimit"),null!=n.to?Ga(n.to):"0x",lc(n.value||0,"value"),n.data||"0x",GX(n.accessList||[])];if(e){const r=nM(e);t.push(lc(r.recoveryParam,"recoveryParam")),t.push(v_(r.r)),t.push(v_(r.s))}return Tl(["0x02",t4(t)])}function qX(n,e){const t=[lc(n.chainId||0,"chainId"),lc(n.nonce||0,"nonce"),lc(n.gasPrice||0,"gasPrice"),lc(n.gasLimit||0,"gasLimit"),null!=n.to?Ga(n.to):"0x",lc(n.value||0,"value"),n.data||"0x",GX(n.accessList||[])];if(e){const r=nM(e);t.push(lc(r.recoveryParam,"recoveryParam")),t.push(v_(r.r)),t.push(v_(r.s))}return Tl(["0x01",t4(t)])}function ZX(n,e,t){try{const r=ws(e[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");n.v=r}catch{Ms.throwArgumentError("invalid v for transaction type: 1","v",e[0])}n.r=bo(e[1],32),n.s=bo(e[2],32);try{const r=ja(t(n));n.from=jX(r,{r:n.r,s:n.s,recoveryParam:n.v})}catch{}}function YX(n){n=atob(n);const e=[];for(let t=0;t(function(n){n.current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD"}(C_||(C_={})),C_))(),Il=(()=>(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"}(Il||(Il={})),Il))();function JX(n,e,t,r,i){if(n===Il.BAD_PREFIX||n===Il.UNEXPECTED_CONTINUE){let o=0;for(let a=e+1;a>6==2;a++)o++;return o}return n===Il.OVERRUN?t.length-e-1:0}const POt=Object.freeze({error:function wOt(n,e,t,r,i){return KX.throwArgumentError(`invalid codepoint at offset ${e}; ${n}`,"bytes",t)},ignore:JX,replace:function xOt(n,e,t,r,i){return n===Il.OVERLONG?(r.push(i),0):(r.push(65533),JX(n,e,t))}});function k6(n,e){null==e&&(e=POt.error),n=xn(n);const t=[];let r=0;for(;r>7)){t.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+=e(128==(192&i)?Il.UNEXPECTED_CONTINUE:Il.BAD_PREFIX,r-1,n,t);continue}o=3,a=65535}if(r-1+o>=n.length){r+=e(Il.OVERRUN,r-1,n,t);continue}let s=i&(1<<8-o-1)-1;for(let l=0;l1114111){r+=e(Il.OUT_OF_RANGE,r-1-o,n,t,s);continue}if(s>=55296&&s<=57343){r+=e(Il.UTF16_SURROGATE,r-1-o,n,t,s);continue}if(s<=a){r+=e(Il.OVERLONG,r-1-o,n,t,s);continue}t.push(s)}}return t}function Yd(n,e=C_.current){e!=C_.current&&(KX.checkNormalize(),n=n.normalize(e));let t=[];for(let r=0;r>6|192),t.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);t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)}else t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)}return xn(t)}function aM(n,e){return function OOt(n){return n.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))).join("")}(k6(n,e))}var AOt=function(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})};function DOt(n,e){return AOt(this,void 0,void 0,function*(){null==e&&(e={});const t={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(!0!==e.skipFetchSetup&&(t.mode="cors",t.cache="no-cache",t.credentials="same-origin",t.redirect="follow",t.referrer="client"),null!=e.fetchOptions){const a=e.fetchOptions;a.mode&&(t.mode=a.mode),a.cache&&(t.cache=a.cache),a.credentials&&(t.credentials=a.credentials),a.redirect&&(t.redirect=a.redirect),a.referrer&&(t.referrer=a.referrer)}const r=yield fetch(n,t),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 IOt=function(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})};const qu=new Lt("web/5.7.1");function QX(n){return new Promise(e=>{setTimeout(e,n)})}function kp(n,e){if(null==n)return null;if("string"==typeof n)return n;if(_6(n)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return aM(n)}catch{}return wn(n)}return n}function EOt(n){return Yd(n.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))}function s4(n,e,t){let i=null;if(null!=e){i=Yd(e);const o="string"==typeof n?{url:n}:Al(n);o.headers?0!==Object.keys(o.headers).filter(s=>"content-type"===s.toLowerCase()).length||(o.headers=Al(o.headers),o.headers["content-type"]="application/json"):o.headers={"content-type":"application/json"},n=o}return function kOt(n,e,t){const r="object"==typeof n&&null!=n.throttleLimit?n.throttleLimit:12;qu.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;qu.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,h=12e4;if("string"==typeof n)l=n;else if("object"==typeof n){if((null==n||null==n.url)&&qu.throwArgumentError("missing URL","connection.url",n),l=n.url,"number"==typeof n.timeout&&n.timeout>0&&(h=n.timeout),n.headers)for(const C in n.headers)s[C.toLowerCase()]={key:C,value:String(n.headers[C])},["if-none-match","if-modified-since"].indexOf(C.toLowerCase())>=0&&(u=!0);c.allowGzip=!!n.allowGzip,null!=n.user&&null!=n.password&&("https:"!==l.substring(0,6)&&!0!==n.allowInsecureAuthentication&&qu.throwError("basic authentication requires a secure https url",Lt.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:n.user,password:"[REDACTED]"}),s.authorization={key:"Authorization",value:"Basic "+XX(Yd(n.user+":"+n.password))}),null!=n.skipFetchSetup&&(c.skipFetchSetup=!!n.skipFetchSetup),null!=n.fetchOptions&&(c.fetchOptions=Al(n.fetchOptions))}const p=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),g=l?l.match(p):null;if(g)try{const C={statusCode:200,statusMessage:"OK",headers:{"content-type":g[1]||"text/plain"},body:g[2]?YX(g[3]):EOt(g[3])};let x=C.body;return t&&(x=t(C.body,C)),Promise.resolve(x)}catch(C){qu.throwError("processing response error",Lt.errors.SERVER_ERROR,{body:kp(g[1],g[2]),error:C,requestBody:null,requestMethod:"GET",url:l})}e&&(c.method="POST",c.body=e,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(e.length)}));const v={};Object.keys(s).forEach(C=>{const x=s[C];v[x.key]=x.value}),c.headers=v;const _=function(){let C=null;return{promise:new Promise(function(S,N){h&&(C=setTimeout(()=>{null!=C&&(C=null,N(qu.makeError("timeout",Lt.errors.TIMEOUT,{requestBody:kp(c.body,v["content-type"]),requestMethod:c.method,timeout:h,url:l})))},h))}),cancel:function(){null!=C&&(clearTimeout(C),C=null)}}}(),y=function(){return IOt(this,void 0,void 0,function*(){for(let C=0;C=300)&&(_.cancel(),qu.throwError("bad response",Lt.errors.SERVER_ERROR,{status:x.statusCode,headers:x.headers,body:kp(P,x.headers?x.headers["content-type"]:null),requestBody:kp(c.body,v["content-type"]),requestMethod:c.method,url:l})),t)try{const S=yield t(P,x);return _.cancel(),S}catch(S){if(S.throttleRetry&&C{let s=null;if(null!=o)try{s=JSON.parse(aM(o))}catch(l){qu.throwError("invalid JSON",Lt.errors.SERVER_ERROR,{body:o,error:l})}return t&&(s=t(s,a)),s})}function sM(n,e){return e||(e={}),null==(e=Al(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise(function(t,r){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{a()&&r(new Error("timeout"))},e.timeout));const s=e.retryLimit;let l=0;!function c(){return n().then(function(u){if(void 0!==u)a()&&t(u);else if(e.oncePoll)e.oncePoll.once("poll",c);else if(e.onceBlock)e.onceBlock.once("block",c);else if(!o){if(l++,l>s)return void(a()&&r(new Error("retry limit reached")));let h=e.interval*parseInt(String(Math.random()*Math.pow(2,l)));he.ceiling&&(h=e.ceiling),setTimeout(c,h)}return null},function(u){a()&&r(u)})}()})}const lM="providers/5.7.2",cM=new Lt(lM);class je{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=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 e.transaction={hash:a,type:c,accessList:je.allowNull(this.accessList.bind(this),null),blockHash:je.allowNull(a,null),blockNumber:je.allowNull(l,null),transactionIndex:je.allowNull(l,null),confirmations:je.allowNull(l,null),from:t,gasPrice:je.allowNull(r),maxPriorityFeePerGas:je.allowNull(r),maxFeePerGas:je.allowNull(r),gasLimit:r,to:je.allowNull(t,null),value:r,nonce:l,data:o,r:je.allowNull(this.uint256),s:je.allowNull(this.uint256),v:je.allowNull(l),creates:je.allowNull(t,null),raw:je.allowNull(o)},e.transactionRequest={from:je.allowNull(t),nonce:je.allowNull(l),gasLimit:je.allowNull(r),gasPrice:je.allowNull(r),maxPriorityFeePerGas:je.allowNull(r),maxFeePerGas:je.allowNull(r),to:je.allowNull(t),value:je.allowNull(r),data:je.allowNull(h=>this.data(h,!0)),type:je.allowNull(l),accessList:je.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:a,address:t,topics:je.arrayOf(a),data:o,logIndex:l,blockHash:a},e.receipt={to:je.allowNull(this.address,null),from:je.allowNull(this.address,null),contractAddress:je.allowNull(t,null),transactionIndex:l,root:je.allowNull(s),gasUsed:r,logsBloom:je.allowNull(o),blockHash:a,transactionHash:a,logs:je.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:je.allowNull(l,null),cumulativeGasUsed:r,effectiveGasPrice:je.allowNull(r),status:je.allowNull(l),type:c},e.block={hash:je.allowNull(a),parentHash:a,number:l,timestamp:l,nonce:je.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:je.allowNull(t),extraData:o,transactions:je.allowNull(je.arrayOf(a)),baseFeePerGas:je.allowNull(r)},e.blockWithTransactions=Al(e.block),e.blockWithTransactions.transactions=je.allowNull(je.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:je.allowNull(i,void 0),toBlock:je.allowNull(i,void 0),blockHash:je.allowNull(a,void 0),address:je.allowNull(t,void 0),topics:je.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:je.allowNull(l),blockHash:je.allowNull(a),transactionIndex:l,removed:je.allowNull(this.boolean.bind(this)),address:t,data:je.allowFalsish(o,"0x"),topics:je.arrayOf(a),transactionHash:a,logIndex:l},e}accessList(e){return y_(e||[])}number(e){return"0x"===e?0:we.from(e).toNumber()}type(e){return"0x"===e||null==e?0:we.from(e).toNumber()}bigNumber(e){return we.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(!t&&"0x"!==e.substring(0,2)&&(e="0x"+e),Bi(e))?e.toLowerCase():cM.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return Ga(e)}callAddress(e){if(!Bi(e,32))return null;const t=Ga(Cs(e,12));return"0x0000000000000000000000000000000000000000"===t?null:t}contractAddress(e){return function YPt(n){let e=null;try{e=Ga(n.from)}catch{Dp.throwArgumentError("missing from address","transaction",n)}return Ga(Cs(ja(t4([e,v_(xn(we.from(n.nonce).toHexString()))])),12))}(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||Bi(e))return eM(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==G1(r)?cM.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=we.from(e);try{return t.toNumber()}catch{}return null}uint256(e){if(!Bi(e))throw new Error("invalid uint256");return bo(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,i=je.check(t,e);return i._difficulty=null==r?null:we.from(r),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return je.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&we.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),(1===e.type||2===e.type)&&null==e.accessList&&(e.accessList=[]);const t=je.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;Bi(r)&&(r=we.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),Bi(r)&&(r=we.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return function bOt(n){const e=xn(n);if(e[0]>127)return function COt(n){const e=b6(n);9!==e.length&&6!==e.length&&Ms.throwArgumentError("invalid raw transaction","rawTransaction",n);const t={nonce:ws(e[0]).toNumber(),gasPrice:ws(e[1]),gasLimit:ws(e[2]),to:I6(e[3]),value:ws(e[4]),data:e[5],chainId:0};if(6===e.length)return t;try{t.v=we.from(e[6]).toNumber()}catch{return t}if(t.r=bo(e[7],32),t.s=bo(e[8],32),we.from(t.r).isZero()&&we.from(t.s).isZero())t.chainId=t.v,t.v=0;else{t.chainId=Math.floor((t.v-35)/2),t.chainId<0&&(t.chainId=0);let r=t.v-27;const i=e.slice(0,6);0!==t.chainId&&(i.push(wn(t.chainId)),i.push("0x"),i.push("0x"),r-=2*t.chainId+8);const o=ja(t4(i));try{t.from=jX(o,{r:wn(t.r),s:wn(t.s),recoveryParam:r})}catch{}t.hash=ja(n)}return t.type=null,t}(e);switch(e[0]){case 1:return function yOt(n){const e=b6(n.slice(1));8!==e.length&&11!==e.length&&Ms.throwArgumentError("invalid component count for transaction type: 1","payload",wn(n));const t={type:1,chainId:ws(e[0]).toNumber(),nonce:ws(e[1]).toNumber(),gasPrice:ws(e[2]),gasLimit:ws(e[3]),to:I6(e[4]),value:ws(e[5]),data:e[6],accessList:y_(e[7])};return 8===e.length||(t.hash=ja(n),ZX(t,e.slice(8),qX)),t}(e);case 2:return function _Ot(n){const e=b6(n.slice(1));9!==e.length&&12!==e.length&&Ms.throwArgumentError("invalid component count for transaction type: 2","payload",wn(n));const t=ws(e[2]),r=ws(e[3]),i={type:2,chainId:ws(e[0]).toNumber(),nonce:ws(e[1]).toNumber(),maxPriorityFeePerGas:t,maxFeePerGas:r,gasPrice:null,gasLimit:ws(e[4]),to:I6(e[5]),value:ws(e[6]),data:e[7],accessList:y_(e[8])};return 9===e.length||(i.hash=ja(n),ZX(i,e.slice(9),WX)),i}(e)}return Ms.throwError(`unsupported transaction type: ${e[0]}`,Lt.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}(e)}receiptLog(e){return je.check(this.formats.receiptLog,e)}receipt(e){const t=je.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const r=we.from(t.root).toNumber();0===r||1===r?(null!=t.status&&t.status!==r&&cM.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=r,delete t.root):cM.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&cM.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(t=>this.topics(t)):null!=e?this.hash(e,!0):null}filter(e){return je.check(this.formats.filter,e)}filterLog(e){return je.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const i in e)try{const o=e[i](t[i]);void 0!==o&&(r[i]=o)}catch(o){throw o.checkKey=i,o.checkValue=t[i],o}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach(function(i){r.push(e(i))}),r}}}let tK=!1;const uM=new Lt("abstract-provider/5.7.0");class VOt extends VPt{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class N6{constructor(){uM.checkAbstract(new.target,N6),Bn(this,"_isProvider",!0)}getFeeData(){return function(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const{block:e,gasPrice:t}=yield Ha({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(a=>null)});let r=null,i=null,o=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,o=we.from("1500000000"),i=e.baseFeePerGas.mul(2).add(o)),{lastBaseFeePerGas:r,maxFeePerGas:i,maxPriorityFeePerGas:o,gasPrice:t}})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}class eK{constructor(e){Bn(this,"alphabet",e),Bn(this,"base",e.length),Bn(this,"_alphabetMap",{}),Bn(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(a%this.base),a=a/this.base|0}let i="";for(let o=0;0===t[o]&&o=0;--o)i+=this.alphabet[r[o]];return i}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r>=8;for(;o>0;)t.push(255&o),o>>=8}for(let r=0;e[r]===this._leader&&r0&&Array.isArray(s)?i(s,a-1):t.push(s)})};return i(n,e),t}function GOt(n){return 1&n?~n>>1:n>>1}function iK(n,e){let t=Array(n);for(let r=0,i=-1;re[a]):t}function oK(n,e,t){let r=Array(n).fill(void 0).map(()=>[]);for(let i=0;ir[a].push(o));return r}function XOt(n,e){let t=1+e(),r=e(),i=function YOt(n){let e=[];for(;;){let t=n();if(0==t)break;e.push(t)}return e}(e);return rK(oK(i.length,1+n,e).map((a,s)=>{const l=a[0],c=a.slice(1);return Array(i[s]).fill(void 0).map((u,h)=>{let p=h*r;return[l+h*t,c.map(g=>g+p)]})}))}function KOt(n,e){return oK(1+e(),1+n,e).map(i=>[i[0],i.slice(1)])}const c4=function QOt(){return function jOt(n){return function HOt(n){let e=0;return()=>n[e++]}(function zOt(n){let e=0;function t(){return n[e++]<<8|n[e++]}let r=t(),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 C=[],x=0,P=p;for(;;){let N=Math.floor(((y-x+1)*i-1)/P),R=0,z=r;for(;z-R>1;){let K=R+z>>>1;N>>1|u(),$=$<<1^g,W=(W^g)<<1|g|1;x=$,P=1+W-$}let S=r-4;return C.map(N=>{switch(N-S){case 3:return S+65792+(n[s++]<<16|n[s++]<<8|n[s++]);case 2:return S+256+(n[s++]<<8|n[s++]);case 1:return S+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=="))}(),t3t=new Set(l4(c4)),e3t=new Set(l4(c4)),n3t=function ZOt(n){let e=[];for(;;){let t=n();if(0==t)break;e.push(XOt(t,n))}for(;;){let t=n()-1;if(t<0)break;e.push(KOt(t,n))}return function UOt(n){const e={};for(let t=0;tr-i);return function t(){let r=[];for(;;){let c=l4(n,e);if(0==c.length)break;r.push({set:new Set(c),node:t()})}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}}()}(c4),aK=45,sK=95;function lK(n){return function SOt(n,e=C_.current){return k6(Yd(n,e))}(n)}function i3t(n){return n.filter(e=>65039!=e)}function cK(n){for(let e of n.split(".")){let t=lK(e);try{for(let r=t.lastIndexOf(sK)-1;r>=0;r--)if(t[r]!==sK)throw new Error("underscore only allowed at start");if(t.length>=4&&t.every(r=>r<128)&&t[2]===aK&&t[3]===aK)throw new Error("invalid label extension")}catch(r){throw new Error(`Invalid label "${e}": ${r.message}`)}}return n}function l3t(n,e){var t;let i,o,r=r3t,a=[],s=n.length;for(e&&(e.length=0);s;){let l=n[--s];if(r=null===(t=r.branches.find(c=>c.set.has(l)))||void 0===t?void 0:t.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),e&&e.push(...n.slice(s).reverse()),n.length=s)}return i}const c3t=new Lt(nK),uK=new Uint8Array(32);function dK(n){if(0===n.length)throw new Error("invalid ENS name; empty component");return n}function u4(n){const e=Yd(function o3t(n){return cK(function a3t(n,e){let t=lK(n).reverse(),r=[];for(;t.length;){let i=l3t(t);if(i){r.push(...e(i));continue}let o=t.pop();if(t3t.has(o)){r.push(o);continue}if(e3t.has(o))continue;let a=n3t[o];if(!a)throw new Error(`Disallowed codepoint: 0x${o.toString(16).toUpperCase()}`);r.push(...a)}return cK(function s3t(n){return n.normalize("NFC")}(String.fromCodePoint(...r)))}(n,i3t))}(n)),t=[];if(0===n.length)return t;let r=0;for(let i=0;i=e.length)throw new Error("invalid ENS name; empty component");return t.push(dK(e.slice(r))),t}function d4(n){"string"!=typeof n&&c3t.throwArgumentError("invalid ENS name; not a string","name",n);let e=uK;const t=u4(n);for(;t.length;)e=ja(Gu([e,ja(t.pop())]));return wn(e)}function u3t(n){return wn(Gu(u4(n).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}uK.fill(0);const hK=new Lt("networks/5.7.1");function tf(n){const e=function(t,r){null==r&&(r={});const i=[];if(t.InfuraProvider&&"-"!==r.infura)try{i.push(new t.InfuraProvider(n,r.infura))}catch{}if(t.EtherscanProvider&&"-"!==r.etherscan)try{i.push(new t.EtherscanProvider(n,r.etherscan))}catch{}if(t.AlchemyProvider&&"-"!==r.alchemy)try{i.push(new t.AlchemyProvider(n,r.alchemy))}catch{}if(t.PocketProvider&&"-"!==r.pocket){const o=["goerli","ropsten","rinkeby","sepolia"];try{const a=new t.PocketProvider(n,r.pocket);a.network&&-1===o.indexOf(a.network.name)&&i.push(a)}catch{}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{i.push(new t.CloudflareProvider(n))}catch{}if(t.AnkrProvider&&"-"!==r.ankr)try{const o=["ropsten"],a=new t.AnkrProvider(n,r.ankr);a.network&&-1===o.indexOf(a.network.name)&&i.push(a)}catch{}if(0===i.length)return null;if(t.FallbackProvider){let o=1;return null!=r.quorum?o=r.quorum:"homestead"===n&&(o=2),new t.FallbackProvider(i,o)}return i[0]};return e.renetwork=function(t){return tf(t)},e}function h4(n,e){const t=function(r,i){return r.JsonRpcProvider?new r.JsonRpcProvider(n,e):null};return t.renetwork=function(r){return h4(n,r)},t}const fK={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:tf("homestead")},pK={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:tf("ropsten")},gK={chainId:63,name:"classicMordor",_defaultProvider:h4("https://www.ethercluster.com/mordor","classicMordor")},f4={unspecified:{chainId:0,name:"unspecified"},homestead:fK,mainnet:fK,morden:{chainId:2,name:"morden"},ropsten:pK,testnet:pK,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:tf("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:tf("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:tf("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:tf("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:h4("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:gK,classicTestnet:gK,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:h4("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:tf("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:tf("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 mK(n){return"0x"+qd().sha256().update(xn(n)).digest("hex")}new Lt("sha2/5.7.0");var m3t=Dt(988),vK=Dt.n(m3t),Vn=function(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})};const pr=new Lt(lM);function _K(n){return null==n?"null":(32!==G1(n)&&pr.throwArgumentError("invalid topic","topic",n),n.toLowerCase())}function yK(n){for(n=n.slice();n.length>0&&null==n[n.length-1];)n.pop();return n.map(e=>{if(Array.isArray(e)){const t={};e.forEach(i=>{t[_K(i)]=!0});const r=Object.keys(t);return r.sort(),r.join("|")}return _K(e)}).join("&")}function b_(n){if("string"==typeof n){if(32===G1(n=n.toLowerCase()))return"tx:"+n;if(-1===n.indexOf(":"))return n}else{if(Array.isArray(n))return"filter:*:"+yK(n);if(VOt.isForkEvent(n))throw pr.warn("not implemented"),new Error("not implemented");if(n&&"object"==typeof n)return"filter:"+(n.address||"*")+":"+yK(n.topics||[])}throw new Error("invalid event - "+n)}function dM(){return(new Date).getTime()}function CK(n){return new Promise(e=>{setTimeout(e,n)})}const y3t=["block","network","pending","poll"];class C3t{constructor(e,t,r){Bn(this,"tag",e),Bn(this,"listener",t),Bn(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 e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],r=function _3t(n){return""===n?[]:n.split(/&/g).map(e=>{if(""===e)return[];const t=e.split("|").map(r=>"null"===r?null:r);return 1===t.length?t[0]:t})}(e[2]),i={};return r.length>0&&(i.topics=r),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||y3t.indexOf(this.tag)>=0}}const b3t={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 F6(n){return bo(we.from(n).toHexString(),32)}function bK(n){return L6.encode(Gu([n,Cs(mK(mK(n)),0,4)]))}const MK=new RegExp("^(ipfs)://(.*)$","i"),wK=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),MK,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function p4(n,e){try{return aM(hM(n,e))}catch{}return null}function hM(n,e){if("0x"===n)return null;const t=we.from(Cs(n,e,e+32)).toNumber(),r=we.from(Cs(n,t,t+32)).toNumber();return Cs(n,t+32,t+32+r)}function B6(n){return n.match(/^ipfs:\/\/ipfs\//i)?n=n.substring(12):n.match(/^ipfs:\/\//i)?n=n.substring(7):pr.throwArgumentError("unsupported IPFS format","link",n),`https://gateway.ipfs.io/ipfs/${n}`}function xK(n){const e=xn(n);if(e.length>32)throw new Error("internal; should not happen");const t=new Uint8Array(32);return t.set(e,32-e.length),t}function M3t(n){if(n.length%32==0)return n;const e=new Uint8Array(32*Math.ceil(n.length/32));return e.set(n),e}function PK(n){const e=[];let t=0;for(let r=0;rwe.from(e).eq(1)).catch(e=>{if(e.code===Lt.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return Vn(this,void 0,void 0,function*(){const r={to:this.address,ccipReadEnabled:!0,data:Tl([e,d4(this.name),t||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,r.data=Tl(["0x9061b923",PK([u3t(this.name),r.data])]));try{let o=yield this.provider.call(r);return xn(o).length%32==4&&pr.throwError("resolver threw error",Lt.errors.CALL_EXCEPTION,{transaction:r,data:o}),i&&(o=hM(o,0)),o}catch(o){if(o.code===Lt.errors.CALL_EXCEPTION)return null;throw o}})}_fetchBytes(e,t){return Vn(this,void 0,void 0,function*(){const r=yield this._fetch(e,t);return null!=r?hM(r,0):null})}_getAddress(e,t){const r=b3t[String(e)];if(null==r&&pr.throwError(`unsupported coin type: ${e}`,Lt.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const i=xn(t);if(null!=r.p2pkh){const o=t.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 bK(Gu([[r.p2pkh],"0x"+o[2]]))}}if(null!=r.p2sh){const o=t.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 bK(Gu([[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=vK().toWords(i.slice(2));return s.unshift(a),vK().encode(r.prefix,s)}}return null}getAddress(e){return Vn(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{const i=yield this._fetch("0x3b3b57de");return"0x"===i||"0x0000000000000000000000000000000000000000000000000000000000000000"===i?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===Lt.errors.CALL_EXCEPTION)return null;throw i}const t=yield this._fetchBytes("0xf1cb7e06",F6(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&pr.throwError("invalid or unsupported coin data",Lt.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return Vn(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let r=0;ra[l])}return pr.throwError("invalid or unsupported content hash data",Lt.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Vn(this,void 0,void 0,function*(){let t=Yd(e);t=Gu([F6(64),F6(t.length),t]),t.length%32!=0&&(t=Gu([t,bo("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",wn(t));return null==r||"0x"===r?null:aM(r)})}}let V6=null,w3t=1;class SK extends N6{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),Bn(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(t=>{}),this._ready().catch(t=>{});else{const t=rM(new.target,"getNetwork")(e);t?(Bn(this,"_network",t),this.emit("network",t,null)):pr.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Vn(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}null==e&&(e=yield this.detectNetwork()),e||pr.throwError("no network detected",Lt.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:Bn(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return sM(()=>this._ready().then(e=>e,e=>{if(e.code!==Lt.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==V6&&(V6=new je),V6}static getNetwork(e){return function f3t(n){if(null==n)return null;if("number"==typeof n){for(const r in f4){const i=f4[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=f4[n];return null==r?null:{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress,_defaultProvider:r._defaultProvider||null}}const e=f4[n.name];if(!e)return"number"!=typeof n.chainId&&hK.throwArgumentError("invalid network chainId","network",n),n;0!==n.chainId&&n.chainId!==e.chainId&&hK.throwArgumentError("network chainId mismatch","network",n);let t=n._defaultProvider||null;return null==t&&e._defaultProvider&&(t=function h3t(n){return n&&"function"==typeof n.renetwork}(e._defaultProvider)?e._defaultProvider.renetwork(n):e._defaultProvider),{name:n.name,chainId:e.chainId,ensAddress:n.ensAddress||e.ensAddress||null,_defaultProvider:t}}(e??"homestead")}ccipReadFetch(e,t,r){return Vn(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;const i=e.to.toLowerCase(),o=t.toLowerCase(),a=[];for(let s=0;s=0?null:JSON.stringify({data:o,sender:i}),h=yield s4({url:c,errorPassThrough:!0},u,(g,v)=>(g.status=v.statusCode,g));if(h.data)return h.data;const p=h.message||"unknown error";if(h.status>=400&&h.status<500)return pr.throwError(`response not found during CCIP fetch: ${p}`,Lt.errors.SERVER_ERROR,{url:l,errorMessage:p});a.push(p)}return pr.throwError(`error encountered during CCIP fetch: ${a.map(s=>JSON.stringify(s)).join(", ")}`,Lt.errors.SERVER_ERROR,{urls:r,errorMessages:a})})}_getInternalBlockNumber(e){return Vn(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const o=yield i;if(dM()-o.respTime<=e)return o.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const t=dM(),r=Ha({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=dM();return(i=we.from(i).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return Vn(this,void 0,void 0,function*(){const e=w3t++,t=[];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",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)pr.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",pr.makeError("network block skew detected",Lt.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)});t.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});t.push(s)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit("didPoll",e)}).catch(i=>{this.emit("error",i)})}else this.emit("didPoll",e)})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Vn(this,void 0,void 0,function*(){return pr.throwError("provider does not support network detection",Lt.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Vn(this,void 0,void 0,function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,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",t,e),yield CK(0),this._network;const r=pr.makeError("underlying network changed",Lt.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!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))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=dM();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(t=>((null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return Vn(this,void 0,void 0,function*(){return this._waitForTransaction(e,t??1,r||0,null)})}_waitForTransaction(e,t,r,i){return Vn(this,void 0,void 0,function*(){const o=yield this.getTransactionReceipt(e);return(o?o.confirmations:0)>=t?o:new Promise((a,s)=>{const l=[];let c=!1;const u=function(){return!!c||(c=!0,l.forEach(p=>{p()}),!1)},h=p=>{p.confirmations{this.removeListener(e,h)}),i){let p=i.startBlock,g=null;const v=_=>Vn(this,void 0,void 0,function*(){c||(yield CK(1e3),this.getTransactionCount(i.from).then(y=>Vn(this,void 0,void 0,function*(){if(!c){if(y<=i.nonce)p=_;else{{const C=yield this.getTransaction(e);if(C&&null!=C.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(pr.makeError("timeout exceeded",Lt.errors.TIMEOUT,{timeout:r}))},r);p.unref&&p.unref(),l.push(()=>{clearTimeout(p)})}})})}getBlockNumber(){return Vn(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Vn(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return we.from(e)}catch(t){return pr.throwError("bad result from backend",Lt.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}})}getBalance(e,t){return Vn(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Ha({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),i=yield this.perform("getBalance",r);try{return we.from(i)}catch(o){return pr.throwError("bad result from backend",Lt.errors.SERVER_ERROR,{method:"getBalance",params:r,result:i,error:o})}})}getTransactionCount(e,t){return Vn(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Ha({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),i=yield this.perform("getTransactionCount",r);try{return we.from(i).toNumber()}catch(o){return pr.throwError("bad result from backend",Lt.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:i,error:o})}})}getCode(e,t){return Vn(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Ha({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),i=yield this.perform("getCode",r);try{return wn(i)}catch(o){return pr.throwError("bad result from backend",Lt.errors.SERVER_ERROR,{method:"getCode",params:r,result:i,error:o})}})}getStorageAt(e,t,r){return Vn(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield Ha({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(a=>eM(a))}),o=yield this.perform("getStorageAt",i);try{return wn(o)}catch(a){return pr.throwError("bad result from backend",Lt.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:a})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==G1(t))throw new Error("invalid response - sendTransaction");const i=e;return null!=t&&e.hash!==t&&pr.throwError("Transaction hash mismatch from Provider.sendTransaction.",Lt.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),i.wait=(o,a)=>Vn(this,void 0,void 0,function*(){let s;null==o&&(o=1),null==a&&(a=0),0!==o&&null!=r&&(s={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const l=yield this._waitForTransaction(e.hash,o,a,s);return null==l&&0===o?null:(this._emitted["t:"+e.hash]=l.blockNumber,0===l.status&&pr.throwError("transaction failed",Lt.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)}),i}sendTransaction(e){return Vn(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then(o=>wn(o)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const o=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,o,i)}catch(o){throw o.transaction=r,o.transactionHash=r.hash,o}})}_getTransactionRequest(e){return Vn(this,void 0,void 0,function*(){const t=yield e,r={};return["from","to"].forEach(i=>{null!=t[i]&&(r[i]=Promise.resolve(t[i]).then(o=>o?this._getAddress(o):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{null!=t[i]&&(r[i]=Promise.resolve(t[i]).then(o=>o?we.from(o):null))}),["type"].forEach(i=>{null!=t[i]&&(r[i]=Promise.resolve(t[i]).then(o=>o??null))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach(i=>{null!=t[i]&&(r[i]=Promise.resolve(t[i]).then(o=>o?wn(o):null))}),this.formatter.transactionRequest(yield Ha(r))})}_getFilter(e){return Vn(this,void 0,void 0,function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach(r=>{null!=e[r]&&(t[r]=e[r])}),["fromBlock","toBlock"].forEach(r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))}),this.formatter.filter(yield Ha(t))})}_call(e,t,r){return Vn(this,void 0,void 0,function*(){r>=10&&pr.throwError("CCIP read exceeded maximum redirections",Lt.errors.SERVER_ERROR,{redirects:r,transaction:e});const i=e.to,o=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=i&&"0x556f1830"===o.substring(0,10)&&G1(o)%32==4)try{const a=Cs(o,4),s=Cs(a,0,32);we.from(s).eq(i)||pr.throwError("CCIP Read sender did not match",Lt.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});const l=[],c=we.from(Cs(a,32,64)).toNumber(),u=we.from(Cs(a,c,c+32)).toNumber(),h=Cs(a,c+32);for(let C=0;CVn(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(t){let a=null;for(let l=0;lthis._wrapTransaction(l)),s}return this.formatter.block(o)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Vn(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return sM(()=>Vn(this,void 0,void 0,function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?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(e){return Vn(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return sM(()=>Vn(this,void 0,void 0,function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?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(e){return Vn(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield Ha({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach(i=>{null==i.removed&&(i.removed=!1)}),je.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return Vn(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Vn(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&pr.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return Vn(this,void 0,void 0,function*(){let t=e;for(;;){if(""===t||"."===t||"eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const i=new OK(this,r,e);return t===e||(yield i.supportsWildcard())?i:null}t=t.split(".").slice(1).join(".")}})}_getResolver(e,t){return Vn(this,void 0,void 0,function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||pr.throwError("network does not support ENS",Lt.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const i=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+d4(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return Vn(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(r){if(Bi(e))throw r}"string"!=typeof e&&pr.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return Vn(this,void 0,void 0,function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const i=p4(yield this.call({to:r,data:"0x691f3431"+d4(t).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return Vn(this,void 0,void 0,function*(){let t=null;if(Bi(e)){const o=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",a=yield this._getResolver(o,"getAvatar");if(!a)return null;t=new OK(this,a,o);try{const s=yield t.getAvatar();if(s)return s.url}catch(s){if(s.code!==Lt.errors.CALL_EXCEPTION)throw s}try{const s=p4(yield this.call({to:a,data:"0x691f3431"+d4(o).substring(2)}),0);t=yield this.getResolver(s)}catch(s){if(s.code!==Lt.errors.CALL_EXCEPTION)throw s;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return pr.throwError(e+" not implemented",Lt.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(t=>t.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(t=>t.pollable()).length>0}_addEventListener(e,t,r){const i=new C3t(b_(e),t,r);return this._events.push(i),this._startEvent(i),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,i=[],o=b_(e);return this._events=this._events.filter(a=>a.tag!==o||(setTimeout(()=>{a.listener.apply(this,t)},0),r=!0,!a.once||(i.push(a),!1))),i.forEach(a=>{this._stopEvent(a)}),r}listenerCount(e){if(!e)return this._events.length;let t=b_(e);return this._events.filter(r=>r.tag===t).length}listeners(e){if(null==e)return this._events.map(r=>r.listener);let t=b_(e);return this._events.filter(r=>r.tag===t).map(r=>r.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let i=!1,o=b_(e);return this._events=this._events.filter(a=>!(a.tag===o&&a.listener==t&&!i&&(i=!0,r.push(a),1))),r.forEach(a=>{this._stopEvent(a)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=b_(e);this._events=this._events.filter(i=>i.tag!==r||(t.push(i),!1))}return t.forEach(r=>{this._stopEvent(r)}),this}}var g4=function(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})};const Rp=new Lt(lM);function TK(n){const e={};for(let t in n){if(null==n[t])continue;let r=n[t];"type"===t&&0===r||(r={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[t]?eM(wn(r)):"accessList"===t?"["+y_(r).map(i=>`{address:"${i.address}",storageKeys:["${i.storageKeys.join('","')}"]}`).join(",")+"]":wn(r),e[t]=r)}return e}function x3t(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 e=new Error("invalid response");throw e.result=JSON.stringify(n),(n.result||"").toLowerCase().indexOf("rate limit")>=0&&(e.throttleRetry=!0),e}return n.result}function AK(n){if(n&&0==n.status&&"NOTOK"==n.message&&(n.result||"").toLowerCase().indexOf("rate limit")>=0){const e=new Error("throttled response");throw e.result=JSON.stringify(n),e.throttleRetry=!0,e}if("2.0"!=n.jsonrpc){const e=new Error("invalid response");throw e.result=JSON.stringify(n),e}if(n.error){const e=new Error(n.error.message||"unknown error");throw n.error.code&&(e.code=n.error.code),n.error.data&&(e.data=n.error.data),e}return n.result}function DK(n){if("pending"===n)throw new Error("pending not supported");return"latest"===n?n:parseInt(n.substring(2),16)}function $6(n,e,t){if("call"===n&&e.code===Lt.errors.SERVER_ERROR){const i=e.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,"")),Bi(o))return o;Rp.throwError("missing revert data in call exception",Lt.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}let r=e.message;throw e.code===Lt.errors.SERVER_ERROR&&(e.error&&"string"==typeof e.error.message?r=e.error.message:"string"==typeof e.body?r=e.body:"string"==typeof e.responseText&&(r=e.responseText)),r=(r||"").toLowerCase(),r.match(/insufficient funds/)&&Rp.throwError("insufficient funds for intrinsic transaction cost",Lt.errors.INSUFFICIENT_FUNDS,{error:e,method:n,transaction:t}),r.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Rp.throwError("nonce has already been used",Lt.errors.NONCE_EXPIRED,{error:e,method:n,transaction:t}),r.match(/another transaction with same nonce/)&&Rp.throwError("replacement fee too low",Lt.errors.REPLACEMENT_UNDERPRICED,{error:e,method:n,transaction:t}),r.match(/execution failed due to an exception|execution reverted/)&&Rp.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Lt.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:n,transaction:t}),e}class P3t extends SK{constructor(e,t){super(e),Bn(this,"baseUrl",this.getBaseUrl()),Bn(this,"apiKey",t||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 Rp.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){const r=Object.keys(t).reduce((o,a)=>{const s=t[a];return null!=s&&(o+=`&${a}=${s}`),o},"");return`${this.baseUrl}/api?module=${e}${r}${this.apiKey?`&apikey=${this.apiKey}`:""}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return g4(this,void 0,void 0,function*(){const i=r?this.getPostUrl():this.getUrl(e,t),o=r?this.getPostData(e,t):null,a="proxy"===e?AK:x3t;this.emit("debug",{action:"request",request:i,provider:this});const s={url:i,throttleSlotInterval:1e3,throttleCallback:(u,h)=>(this.isCommunityResource()&&function LOt(){tK||(tK=!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 s4(s,l,a||AK);return this.emit("debug",{action:"response",request:i,response:Ap(c),provider:this}),c})}detectNetwork(){return g4(this,void 0,void 0,function*(){return this.network})}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return g4(this,void 0,void 0,function*(){switch(e){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:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch(i=>$6("sendTransaction",i,t.signedTransaction));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const i=TK(t.transaction);i.module="proxy",i.action="eth_call";try{return yield this.fetch("proxy",i,!0)}catch(o){return $6("call",o,t.transaction)}}case"estimateGas":{const i=TK(t.transaction);i.module="proxy",i.action="eth_estimateGas";try{return yield this.fetch("proxy",i,!0)}catch(o){return $6("estimateGas",o,t.transaction)}}case"getLogs":{const i={action:"getLogs"};if(t.filter.fromBlock&&(i.fromBlock=DK(t.filter.fromBlock)),t.filter.toBlock&&(i.toBlock=DK(t.filter.toBlock)),t.filter.address&&(i.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&Rp.throwError("unsupported topic count",Lt.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const s=t.filter.topics[0];("string"!=typeof s||66!==s.length)&&Rp.throwError("unsupported topic format",Lt.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 Zu=(()=>{class n{constructor(){this.rootUrl=""}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Np=(()=>{class n{constructor(t,r){this.config=t,this.http=r,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(t){this._rootUrl=t}}return n.\u0275fac=function(t){return new(t||n)(Mt(Zu),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();const S3t=new class O3t{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};class U6{constructor(e,t,r,i,o){this.name=e,this.value=t,this.options=r,this.options=r||{},null==this.options.style&&(this.options.style=i),null==this.options.explode&&(this.options.explode=o)}serializeValue(e,t=","){if(null==e)return"";if(e instanceof Array)return e.map(r=>this.serializeValue(r).split(t).join(encodeURIComponent(t))).join(t);if("object"==typeof e){const r=[];for(const i of Object.keys(e)){let o=e[i];null!=o&&(o=this.serializeValue(o).split(t).join(encodeURIComponent(t)),this.options.explode?r.push(`${i}=${o}`):(r.push(i),r.push(o)))}return r.join(t)}return String(e)}}class T3t extends U6{constructor(e,t,r){super(e,t,r,"simple",!1)}append(e){let t=this.value;null==t&&(t="");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 t&&(r=";",t instanceof Array?(t=t.map(a=>`${this.name}=${this.serializeValue(a,";")}`),t=t.join(";"),o=!0):(t=this.serializeValue(t,";"),o=!0))),t=r+(o?t:this.serializeValue(t,i)),(e=e.replace(`{${this.name}}`,t)).replace(`{${r}${this.name}${this.options.explode?"*":""}}`,t)}serializeValue(e,t=","){var r="string"==typeof e?encodeURIComponent(e):super.serializeValue(e,t);return(r=(r=r.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class A3t extends U6{constructor(e,t,r){super(e,t,r,"form",!0)}append(e){if(this.value instanceof Array){if(!this.options.explode)return e.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const t of this.value)e=e.append(this.name,this.serializeValue(t))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const t of Object.keys(this.value)){const r=this.value[t];null!=r&&(e=e.append(`${this.name}[${t}]`,this.serializeValue(r)))}else if(this.options.explode)for(const t of Object.keys(this.value)){const r=this.value[t];null!=r&&(e=e.append(t,this.serializeValue(r)))}else{const t=[];for(const r of Object.keys(this.value)){const i=this.value[r];null!=i&&(t.push(r),t.push(i))}e=e.append(this.name,this.serializeValue(t))}else null!=this.value&&(e=e.append(this.name,this.serializeValue(this.value)));return e}}class D3t extends U6{constructor(e,t,r){super(e,t,r,"simple",!1)}append(e){if(null!=this.value)if(this.value instanceof Array)for(const t of this.value)e=e.append(this.name,this.serializeValue(t));else e=e.append(this.name,this.serializeValue(this.value));return e}}class xe{constructor(e,t,r){this.rootUrl=e,this.operationPath=t,this.method=r,this._path=new Map,this._query=new Map,this._header=new Map}path(e,t,r){this._path.set(e,new T3t(e,t,r||{}))}query(e,t,r){this._query.set(e,new A3t(e,t,r||{}))}header(e,t,r){this._header.set(e,new D3t(e,t,r||{}))}body(e,t="application/json"){if(this._bodyContentType=e instanceof Blob?e.type:t,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==e&&"object"==typeof e){const r=[];for(const i of Object.keys(e)){let o=e[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!=e)for(const i of Object.keys(e)){const o=e[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=e}formDataValue(e){return null==e?null:e instanceof Blob?e:"object"==typeof e?JSON.stringify(e):String(e)}build(e){e=e||{};let t=this.operationPath;for(const a of this._path.values())t=a.append(t);const r=this.rootUrl+t;let i=new ec({encoder:S3t});for(const a of this._query.values())i=a.append(i);let o=new ma;e.accept&&(o=o.append("Accept",e.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 xd(this.method.toUpperCase(),r,this._bodyContent,{params:i,headers:o,responseType:e.responseType,reportProgress:e.reportProgress,context:e.context})}}let I3t=(()=>{class n extends Np{constructor(t,r){super(t,r)}appControllerGetStatus$Response(t,r){const i=new xe(this.rootUrl,n.AppControllerGetStatusPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}appControllerGetStatus(t,r){return this.appControllerGetStatus$Response(t,r).pipe(k(i=>i.body))}}return n.AppControllerGetStatusPath="/",n.\u0275fac=function(t){return new(t||n)(Mt(Zu),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),E3t=(()=>{class n extends Np{constructor(t,r){super(t,r)}parametersControllerUpdateAll$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerUpdateAll(t,r){return this.parametersControllerUpdateAll$Response(t,r).pipe(k(i=>i.body))}parametersControllerRemoveAll$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerRemoveAll(t,r){return this.parametersControllerRemoveAll$Response(t,r).pipe(k(i=>i.body))}parametersControllerGetAllParameters$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerGetAllParametersPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerGetAllParameters(t,r){return this.parametersControllerGetAllParameters$Response(t,r).pipe(k(i=>i.body))}parametersControllerGetSbPositiveAdjustmentRate$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerGetSbPositiveAdjustmentRatePath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerGetSbPositiveAdjustmentRate(t,r){return this.parametersControllerGetSbPositiveAdjustmentRate$Response(t,r).pipe(k(i=>i.body))}parametersControllerGetSbPositiveAdjustmentRate_1$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerGetSbPositiveAdjustmentRate_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerGetSbPositiveAdjustmentRate_1(t,r){return this.parametersControllerGetSbPositiveAdjustmentRate_1$Response(t,r).pipe(k(i=>i.body))}parametersControllerGetSbNegativeAdjustmentRate$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerGetSbNegativeAdjustmentRatePath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerGetSbNegativeAdjustmentRate(t,r){return this.parametersControllerGetSbNegativeAdjustmentRate$Response(t,r).pipe(k(i=>i.body))}parametersControllerGetSbNegativeAdjustmentRate_1$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerGetSbNegativeAdjustmentRate_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerGetSbNegativeAdjustmentRate_1(t,r){return this.parametersControllerGetSbNegativeAdjustmentRate_1$Response(t,r).pipe(k(i=>i.body))}parametersControllerGetSbPositiveAdjustmentThreshold$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerGetSbPositiveAdjustmentThresholdPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerGetSbPositiveAdjustmentThreshold(t,r){return this.parametersControllerGetSbPositiveAdjustmentThreshold$Response(t,r).pipe(k(i=>i.body))}parametersControllerGetSbPositiveAdjustmentThreshold_1$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerGetSbPositiveAdjustmentThreshold_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerGetSbPositiveAdjustmentThreshold_1(t,r){return this.parametersControllerGetSbPositiveAdjustmentThreshold_1$Response(t,r).pipe(k(i=>i.body))}parametersControllerGetSbNegativeAdjustmentThreshold$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerGetSbNegativeAdjustmentThresholdPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerGetSbNegativeAdjustmentThreshold(t,r){return this.parametersControllerGetSbNegativeAdjustmentThreshold$Response(t,r).pipe(k(i=>i.body))}parametersControllerGetSbNegativeAdjustmentThreshold_1$Response(t,r){const i=new xe(this.rootUrl,n.ParametersControllerGetSbNegativeAdjustmentThreshold_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}parametersControllerGetSbNegativeAdjustmentThreshold_1(t,r){return this.parametersControllerGetSbNegativeAdjustmentThreshold_1$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(Zu),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),k3t=(()=>{class n extends Np{constructor(t,r){super(t,r)}networkStatsControllerUpdateAll$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerUpdateAll(t,r){return this.networkStatsControllerUpdateAll$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerRemoveAll$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerRemoveAll(t,r){return this.networkStatsControllerRemoveAll$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetAllNetworkStats$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetAllNetworkStatsPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetAllNetworkStats(t,r){return this.networkStatsControllerGetAllNetworkStats$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetCirculatingSupply$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetCirculatingSupplyPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetCirculatingSupply(t,r){return this.networkStatsControllerGetCirculatingSupply$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetCirculatingSupply_1$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetCirculatingSupply_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetCirculatingSupply_1(t,r){return this.networkStatsControllerGetCirculatingSupply_1$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetTeamSupply$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetTeamSupplyPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetTeamSupply(t,r){return this.networkStatsControllerGetTeamSupply$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetTeamSupply_1$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetTeamSupply_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetTeamSupply_1(t,r){return this.networkStatsControllerGetTeamSupply_1$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetEcosystemSupply$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetEcosystemSupplyPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetEcosystemSupply(t,r){return this.networkStatsControllerGetEcosystemSupply$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetEcosystemSupply_1$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetEcosystemSupply_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetEcosystemSupply_1(t,r){return this.networkStatsControllerGetEcosystemSupply_1$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetSalesSupply$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetSalesSupplyPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetSalesSupply(t,r){return this.networkStatsControllerGetSalesSupply$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetSalesSupply_1$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetSalesSupply_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetSalesSupply_1(t,r){return this.networkStatsControllerGetSalesSupply_1$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetRewardsSupply$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetRewardsSupplyPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetRewardsSupply(t,r){return this.networkStatsControllerGetRewardsSupply$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetRewardsSupply_1$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetRewardsSupply_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetRewardsSupply_1(t,r){return this.networkStatsControllerGetRewardsSupply_1$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetInflationaryRewardsSupply$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetInflationaryRewardsSupplyPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetInflationaryRewardsSupply(t,r){return this.networkStatsControllerGetInflationaryRewardsSupply$Response(t,r).pipe(k(i=>i.body))}networkStatsControllerGetInflationaryRewardsSupply_1$Response(t,r){const i=new xe(this.rootUrl,n.NetworkStatsControllerGetInflationaryRewardsSupply_1Path,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}networkStatsControllerGetInflationaryRewardsSupply_1(t,r){return this.networkStatsControllerGetInflationaryRewardsSupply_1$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(Zu),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),IK=(()=>{class n extends Np{constructor(t,r){super(t,r)}securityAuctionStatsControllerUpdateAll$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerUpdateAll(t,r){return this.securityAuctionStatsControllerUpdateAll$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerRemoveAll$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerRemoveAll(t,r){return this.securityAuctionStatsControllerRemoveAll$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetAllSecurityAuctionStats$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetAllSecurityAuctionStatsPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetAllSecurityAuctionStats(t,r){return this.securityAuctionStatsControllerGetAllSecurityAuctionStats$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetCirculatingSupply$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetCirculatingSupplyPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetCirculatingSupply(t,r){return this.securityAuctionStatsControllerGetCirculatingSupply$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetCirculatingSupply_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetCirculatingSupply_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetCirculatingSupply_1(t,r){return this.securityAuctionStatsControllerGetCirculatingSupply_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetInflationRate$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetInflationRatePath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetInflationRate(t,r){return this.securityAuctionStatsControllerGetInflationRate$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetInflationRate_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetInflationRate_1Path,"get");return t&&(i.path("auctionNumber",t.auctionNumber,{}),i.path("units",t.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetInflationRate_1(t,r){return this.securityAuctionStatsControllerGetInflationRate_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetStorePrice$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetStorePricePath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetStorePrice(t,r){return this.securityAuctionStatsControllerGetStorePrice$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetEthPrice$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetEthPricePath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetEthPrice(t,r){return this.securityAuctionStatsControllerGetEthPrice$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetEthPrice_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetEthPrice_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetEthPrice_1(t,r){return this.securityAuctionStatsControllerGetEthPrice_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetBtcPrice$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetBtcPricePath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetBtcPrice(t,r){return this.securityAuctionStatsControllerGetBtcPrice$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetBtcPrice_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetBtcPrice_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetBtcPrice_1(t,r){return this.securityAuctionStatsControllerGetBtcPrice_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAdjustmentCalculatedDeltaPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta(t,r){return this.securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAdjustmentCalculatedDelta_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta_1(t,r){return this.securityAuctionStatsControllerGetSbAdjustmentCalculatedDelta_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbAdjustmentCalculated$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAdjustmentCalculatedPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAdjustmentCalculated(t,r){return this.securityAuctionStatsControllerGetSbAdjustmentCalculated$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbAdjustmentCalculated_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAdjustmentCalculated_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAdjustmentCalculated_1(t,r){return this.securityAuctionStatsControllerGetSbAdjustmentCalculated_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbMaxDelta$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbMaxDeltaPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbMaxDelta(t,r){return this.securityAuctionStatsControllerGetSbMaxDelta$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbMaxDelta_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbMaxDelta_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbMaxDelta_1(t,r){return this.securityAuctionStatsControllerGetSbMaxDelta_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbMax$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbMaxPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbMax(t,r){return this.securityAuctionStatsControllerGetSbMax$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbMax_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbMax_1Path,"get");return t&&(i.path("auctionNumber",t.auctionNumber,{}),i.path("units",t.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbMax_1(t,r){return this.securityAuctionStatsControllerGetSbMax_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbBidsDelta$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBidsDeltaPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBidsDelta(t,r){return this.securityAuctionStatsControllerGetSbBidsDelta$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbBidsDelta_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBidsDelta_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBidsDelta_1(t,r){return this.securityAuctionStatsControllerGetSbBidsDelta_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbBidsRelative$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBidsRelativePath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBidsRelative(t,r){return this.securityAuctionStatsControllerGetSbBidsRelative$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbBidsRelative_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBidsRelative_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBidsRelative_1(t,r){return this.securityAuctionStatsControllerGetSbBidsRelative_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbBids$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBidsPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBids(t,r){return this.securityAuctionStatsControllerGetSbBids$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbBids_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbBids_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbBids_1(t,r){return this.securityAuctionStatsControllerGetSbBids_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbFinalDelta$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbFinalDeltaPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbFinalDelta(t,r){return this.securityAuctionStatsControllerGetSbFinalDelta$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbFinalDelta_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbFinalDelta_1Path,"get");return t&&(i.path("auctionNumber",t.auctionNumber,{}),i.path("units",t.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbFinalDelta_1(t,r){return this.securityAuctionStatsControllerGetSbFinalDelta_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbFinal$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbFinalPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbFinal(t,r){return this.securityAuctionStatsControllerGetSbFinal$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbFinal_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbFinal_1Path,"get");return t&&(i.path("auctionNumber",t.auctionNumber,{}),i.path("units",t.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbFinal_1(t,r){return this.securityAuctionStatsControllerGetSbFinal_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbAvgDailyRewardsDelta$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAvgDailyRewardsDeltaPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAvgDailyRewardsDelta(t,r){return this.securityAuctionStatsControllerGetSbAvgDailyRewardsDelta$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbAvgDailyRewardsDelta_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAvgDailyRewardsDelta_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAvgDailyRewardsDelta_1(t,r){return this.securityAuctionStatsControllerGetSbAvgDailyRewardsDelta_1$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbAvgDailyRewards$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAvgDailyRewardsPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAvgDailyRewards(t,r){return this.securityAuctionStatsControllerGetSbAvgDailyRewards$Response(t,r).pipe(k(i=>i.body))}securityAuctionStatsControllerGetSbAvgDailyRewards_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionStatsControllerGetSbAvgDailyRewards_1Path,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionStatsControllerGetSbAvgDailyRewards_1(t,r){return this.securityAuctionStatsControllerGetSbAvgDailyRewards_1$Response(t,r).pipe(k(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/{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.SecurityAuctionStatsControllerGetSbBidsRelativePath="/dypos/security-auction/stats/{auctionNumber}/sb-bids/relative",n.SecurityAuctionStatsControllerGetSbBidsRelative_1Path="/dypos/security-auction/stats/{auctionNumber}/sb-bids/relative/{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.\u0275fac=function(t){return new(t||n)(Mt(Zu),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),R3t=(()=>{class n extends Np{constructor(t,r){super(t,r)}securityAuctionBidsControllerUpdateAll$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionBidsControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionBidsControllerUpdateAll(t,r){return this.securityAuctionBidsControllerUpdateAll$Response(t,r).pipe(k(i=>i.body))}securityAuctionBidsControllerRemoveAll$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionBidsControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionBidsControllerRemoveAll(t,r){return this.securityAuctionBidsControllerRemoveAll$Response(t,r).pipe(k(i=>i.body))}securityAuctionBidsControllerGetAllSecurityAuctionBids$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionBidsControllerGetAllSecurityAuctionBidsPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionBidsControllerGetAllSecurityAuctionBids(t,r){return this.securityAuctionBidsControllerGetAllSecurityAuctionBids$Response(t,r).pipe(k(i=>i.body))}securityAuctionBidsControllerGetAllBidsByAuction$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionBidsControllerGetAllBidsByAuctionPath,"get");return t&&i.path("auctionNumber",t.auctionNumber,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionBidsControllerGetAllBidsByAuction(t,r){return this.securityAuctionBidsControllerGetAllBidsByAuction$Response(t,r).pipe(k(i=>i.body))}securityAuctionBidsControllerGetBid$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionBidsControllerGetBidPath,"get");return t&&(i.path("auctionNumber",t.auctionNumber,{}),i.path("id",t.id,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionBidsControllerGetBid(t,r){return this.securityAuctionBidsControllerGetBid$Response(t,r).pipe(k(i=>i.body))}securityAuctionBidsControllerGetBid_1$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionBidsControllerGetBid_1Path,"get");return t&&(i.path("auctionNumber",t.auctionNumber,{}),i.path("id",t.id,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionBidsControllerGetBid_1(t,r){return this.securityAuctionBidsControllerGetBid_1$Response(t,r).pipe(k(i=>i.body))}}return 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(t){return new(t||n)(Mt(Zu),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),m4=(()=>{class n extends Np{constructor(t,r){super(t,r)}computeResourcesControllerUpdateAll$Response(t,r){const i=new xe(this.rootUrl,n.ComputeResourcesControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}computeResourcesControllerUpdateAll(t,r){return this.computeResourcesControllerUpdateAll$Response(t,r).pipe(k(i=>i.body))}computeResourcesControllerRemoveAll$Response(t,r){const i=new xe(this.rootUrl,n.ComputeResourcesControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}computeResourcesControllerRemoveAll(t,r){return this.computeResourcesControllerRemoveAll$Response(t,r).pipe(k(i=>i.body))}computeResourcesControllerGetAllComputeResources$Response(t,r){const i=new xe(this.rootUrl,n.ComputeResourcesControllerGetAllComputeResourcesPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}computeResourcesControllerGetAllComputeResources(t,r){return this.computeResourcesControllerGetAllComputeResources$Response(t,r).pipe(k(i=>i.body))}computeResourcesControllerGetPerpetualStorageResource$Response(t,r){const i=new xe(this.rootUrl,n.ComputeResourcesControllerGetPerpetualStorageResourcePath,"get");return t&&(i.path("option",t.option,{}),i.path("units",t.units,{})),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}computeResourcesControllerGetPerpetualStorageResource(t,r){return this.computeResourcesControllerGetPerpetualStorageResource$Response(t,r).pipe(k(i=>i.body))}computeResourcesControllerGetGpuResource$Response(t,r){const i=new xe(this.rootUrl,n.ComputeResourcesControllerGetGpuResourcePath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}computeResourcesControllerGetGpuResource(t,r){return this.computeResourcesControllerGetGpuResource$Response(t,r).pipe(k(i=>i.body))}computeResourcesControllerGetResource$Response(t,r){const i=new xe(this.rootUrl,n.ComputeResourcesControllerGetResourcePath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}computeResourcesControllerGetResource(t,r){return this.computeResourcesControllerGetResource$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(Zu),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EK=(()=>{class n extends Np{constructor(t,r){super(t,r)}tokenPricesControllerUpdateFromCoingecko$Response(t,r){const i=new xe(this.rootUrl,n.TokenPricesControllerUpdateFromCoingeckoPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}tokenPricesControllerUpdateFromCoingecko(t,r){return this.tokenPricesControllerUpdateFromCoingecko$Response(t,r).pipe(k(i=>i.body))}tokenPricesControllerUpdateFromCoinmarketcap$Response(t,r){const i=new xe(this.rootUrl,n.TokenPricesControllerUpdateFromCoinmarketcapPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}tokenPricesControllerUpdateFromCoinmarketcap(t,r){return this.tokenPricesControllerUpdateFromCoinmarketcap$Response(t,r).pipe(k(i=>i.body))}tokenPricesControllerGetStorePrice$Response(t,r){const i=new xe(this.rootUrl,n.TokenPricesControllerGetStorePricePath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}tokenPricesControllerGetStorePrice(t,r){return this.tokenPricesControllerGetStorePrice$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(Zu),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),N3t=(()=>{class n extends Np{constructor(t,r){super(t,r)}securityAuctionMetadataControllerUpdateAll$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionMetadataControllerUpdateAllPath,"post");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionMetadataControllerUpdateAll(t,r){return this.securityAuctionMetadataControllerUpdateAll$Response(t,r).pipe(k(i=>i.body))}securityAuctionMetadataControllerRemoveAll$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionMetadataControllerRemoveAllPath,"delete");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionMetadataControllerRemoveAll(t,r){return this.securityAuctionMetadataControllerRemoveAll$Response(t,r).pipe(k(i=>i.body))}securityAuctionMetadataControllerGetAllSecurityAuctionMetadata$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionMetadataControllerGetAllSecurityAuctionMetadataPath,"get");return this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionMetadataControllerGetAllSecurityAuctionMetadata(t,r){return this.securityAuctionMetadataControllerGetAllSecurityAuctionMetadata$Response(t,r).pipe(k(i=>i.body))}securityAuctionMetadataControllerGetMetadata$Response(t,r){const i=new xe(this.rootUrl,n.SecurityAuctionMetadataControllerGetMetadataPath,"get");return t&&i.path("name",t.name,{}),this.http.request(i.build({responseType:"text",accept:"*/*",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o.clone({body:void 0})))}securityAuctionMetadataControllerGetMetadata(t,r){return this.securityAuctionMetadataControllerGetMetadata$Response(t,r).pipe(k(i=>i.body))}}return n.SecurityAuctionMetadataControllerUpdateAllPath="/dypos/security-auction/metadata/update-all",n.SecurityAuctionMetadataControllerRemoveAllPath="/dypos/security-auction/metadata/remove-all",n.SecurityAuctionMetadataControllerGetAllSecurityAuctionMetadataPath="/dypos/security-auction/metadata",n.SecurityAuctionMetadataControllerGetMetadataPath="/dypos/security-auction/metadata/{name}",n.\u0275fac=function(t){return new(t||n)(Mt(Zu),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kK=(()=>{class n{constructor(){this.rootUrl="http://localhost:3002"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),L3t=(()=>{class n{constructor(t,r){this.config=t,this.http=r,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(t){this._rootUrl=t}}return n.\u0275fac=function(t){return new(t||n)(Mt(kK),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();const B3t=new class F3t{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};class z6{constructor(e,t,r,i,o){this.name=e,this.value=t,this.options=r,this.options=r||{},null==this.options.style&&(this.options.style=i),null==this.options.explode&&(this.options.explode=o)}serializeValue(e,t=","){if(null==e)return"";if(e instanceof Array)return e.map(r=>this.serializeValue(r).split(t).join(encodeURIComponent(t))).join(t);if("object"==typeof e){const r=[];for(const i of Object.keys(e)){let o=e[i];null!=o&&(o=this.serializeValue(o).split(t).join(encodeURIComponent(t)),this.options.explode?r.push(`${i}=${o}`):(r.push(i),r.push(o)))}return r.join(t)}return String(e)}}class V3t extends z6{constructor(e,t,r){super(e,t,r,"simple",!1)}append(e){let t=this.value;null==t&&(t="");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 t&&(r=";",t instanceof Array?(t=t.map(a=>`${this.name}=${this.serializeValue(a,";")}`),t=t.join(";"),o=!0):(t=this.serializeValue(t,";"),o=!0))),t=r+(o?t:this.serializeValue(t,i)),(e=e.replace(`{${this.name}}`,t)).replace(`{${r}${this.name}${this.options.explode?"*":""}}`,t)}serializeValue(e,t=","){var r="string"==typeof e?encodeURIComponent(e):super.serializeValue(e,t);return(r=(r=r.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class $3t extends z6{constructor(e,t,r){super(e,t,r,"form",!0)}append(e){if(this.value instanceof Array){if(!this.options.explode)return e.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const t of this.value)e=e.append(this.name,this.serializeValue(t))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const t of Object.keys(this.value)){const r=this.value[t];null!=r&&(e=e.append(`${this.name}[${t}]`,this.serializeValue(r)))}else if(this.options.explode)for(const t of Object.keys(this.value)){const r=this.value[t];null!=r&&(e=e.append(t,this.serializeValue(r)))}else{const t=[];for(const r of Object.keys(this.value)){const i=this.value[r];null!=i&&(t.push(r),t.push(i))}e=e.append(this.name,this.serializeValue(t))}else null!=this.value&&(e=e.append(this.name,this.serializeValue(this.value)));return e}}class U3t extends z6{constructor(e,t,r){super(e,t,r,"simple",!1)}append(e){if(null!=this.value)if(this.value instanceof Array)for(const t of this.value)e=e.append(this.name,this.serializeValue(t));else e=e.append(this.name,this.serializeValue(this.value));return e}}class RK{constructor(e,t,r){this.rootUrl=e,this.operationPath=t,this.method=r,this._path=new Map,this._query=new Map,this._header=new Map}path(e,t,r){this._path.set(e,new V3t(e,t,r||{}))}query(e,t,r){this._query.set(e,new $3t(e,t,r||{}))}header(e,t,r){this._header.set(e,new U3t(e,t,r||{}))}body(e,t="application/json"){if(this._bodyContentType=e instanceof Blob?e.type:t,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==e&&"object"==typeof e){const r=[];for(const i of Object.keys(e)){let o=e[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!=e)for(const i of Object.keys(e)){const o=e[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=e}formDataValue(e){return null==e?null:e instanceof Blob?e:"object"==typeof e?JSON.stringify(e):String(e)}build(e){e=e||{};let t=this.operationPath;for(const a of this._path.values())t=a.append(t);const r=this.rootUrl+t;let i=new ec({encoder:B3t});for(const a of this._query.values())i=a.append(i);let o=new ma;e.accept&&(o=o.append("Accept",e.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 xd(this.method.toUpperCase(),r,this._bodyContent,{params:i,headers:o,responseType:e.responseType,reportProgress:e.reportProgress,context:e.context})}}let z3t=(()=>{class n extends L3t{constructor(t,r){super(t,r)}getCostByTypeAndUnit$Response(t,r){const i=new RK(this.rootUrl,n.CloudVmCostControllerGetCostByTypeAndUnitPath,"get");return t&&(i.path("type",t.type,{}),i.path("unit",t.unit,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}getCostByTypeAndUnit(t,r){return this.getCostByTypeAndUnit$Response(t,r).pipe(k(i=>i.body))}getProductionCostByMeasurementAndUnit$Response(t,r){const i=new RK(this.rootUrl,n.CloudVmCostControllerGetProductionCostByMeasurementAndUnitPath,"get");return t&&(i.path("unit",t.unit,{}),i.path("costType",t.costType,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}getProductionCostByMeasurementAndUnit(t,r){return this.getProductionCostByMeasurementAndUnit$Response(t,r).pipe(k(i=>i.body))}}return n.CloudVmCostControllerGetCostByTypeAndUnitPath="/cost/compute/{type}/{unit}",n.CloudVmCostControllerGetProductionCostByMeasurementAndUnitPath="/cost/production/{unit}/{costType}",n.\u0275fac=function(t){return new(t||n)(Mt(kK),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const{isArray:H3t}=Array;const q3t=["*"],Z3t=function(n,e){return{"border-color":n,"border-right-color":e}};function Y3t(n,e){if(1&n&&(M(0,"div"),d(1,"\n "),st(2,"hot-toast-error",2),d(3,"\n "),w()),2&n){const t=et(3);T(2),D("theme",t.theme)}}function X3t(n,e){if(1&n&&(M(0,"div"),d(1,"\n "),st(2,"hot-toast-checkmark",2),d(3,"\n "),w()),2&n){const t=et(3);T(2),D("theme",t.theme)}}function K3t(n,e){if(1&n&&(M(0,"div"),d(1,"\n "),st(2,"hot-toast-warning",2),d(3,"\n "),w()),2&n){const t=et(3);T(2),D("theme",t.theme)}}function J3t(n,e){if(1&n&&(M(0,"div"),d(1,"\n "),st(2,"hot-toast-info",2),d(3,"\n "),w()),2&n){const t=et(3);T(2),D("theme",t.theme)}}function Q3t(n,e){if(1&n&&(M(0,"div",4),d(1,"\n "),M(2,"div",5),d(3,"\n "),Y(4,Y3t,4,1,"div",6),d(5,"\n "),Y(6,X3t,4,1,"div",6),d(7,"\n "),Y(8,K3t,4,1,"div",6),d(9,"\n "),Y(10,J3t,4,1,"div",6),d(11,"\n "),w(),d(12,"\n "),w()),2&n){const t=et(2);T(2),D("ngSwitch",t.type),T(2),D("ngSwitchCase","error"),T(2),D("ngSwitchCase","success"),T(2),D("ngSwitchCase","warning"),T(2),D("ngSwitchCase","info")}}function tSt(n,e){if(1&n&&(M(0,"div",1),d(1,"\n "),st(2,"hot-toast-loader",2),d(3,"\n "),Y(4,Q3t,13,5,"div",3),d(5,"\n"),w()),2&n){const t=et();T(2),D("theme",t.theme),T(2),D("ngIf","loading"!==t.type)}}const eSt=["hotToastBarBase"];function nSt(n,e){if(1&n&&(Et(0),d(1,"\n "),M(2,"hot-toast-animated-icon",10),d(3),w(),d(4,"\n "),kt()),2&n){const t=et(2);T(2),D("iconTheme",t.toast.iconTheme),T(1),Ve(t.toast.icon)}}function rSt(n,e){if(1&n&&(d(0,"\n "),M(1,"div"),d(2,"\n "),Hn(3,11),d(4,"\n "),w(),d(5,"\n ")),2&n){const t=et(2);T(3),D("dynamicView",t.toast.icon)}}function iSt(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,nSt,5,2,"ng-container",4),d(3,"\n "),Y(4,rSt,6,1,"ng-template",null,9,ze),d(6,"\n "),kt()),2&n){const t=ue(5),r=et();T(2),D("ngIf",r.isIconString)("ngIfElse",t)}}function oSt(n,e){if(1&n&&(d(0,"\n "),st(1,"hot-toast-indicator",12),d(2,"\n ")),2&n){const t=et();T(1),D("theme",t.toast.iconTheme)("type",t.toast.type)}}function aSt(n,e){1&n&&Hn(0)}function sSt(n,e){if(1&n){const t=rr();M(0,"button",13),ie("click",function(){return An(t),Dn(et().close())}),w()}2&n&&D("ngStyle",et().toast.closeStyle)}function lSt(n,e){if(1&n){const t=rr();M(0,"hot-toast",3),ie("height",function(i){const a=An(t).$implicit;return Dn(et().updateHeight(i,a))})("beforeClosed",function(){const o=An(t).$implicit;return Dn(et().beforeClosed(o))})("afterClosed",function(i){return An(t),Dn(et().afterClosed(i))}),w()}if(2&n){const t=e.$implicit,r=e.index,i=et();D("toast",t)("offset",i.calculateOffset(t.id,t.position))("toastRef",i.toastRefs[r])}}const NK={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3};class FK{constructor(e){this.toast=e,this._onClosed=new I}get data(){return this.toast.data}set dispose(e){this._dispose=e}getToast(){return this.toast}appendTo(e){const{dispose:t,updateMessage:r,updateToast:i,afterClosed:o}=e.addToast(this);return this.dispose=t,this.updateMessage=r,this.updateToast=i,this.afterClosed=function G3t(...n){return 1===(n=function j3t(n){return 1===n.length&&H3t(n[0])?n[0]:n}(n)).length?On(n[0]):new F(function W3t(n){return e=>{let t=[];for(let r=0;t&&!e.closed&&r{if(t){for(let o=0;o{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme"},ngContentSelectors:q3t,decls:5,vars:2,consts:[[1,"hot-toast-animated-icon"]],template:function(t,r){1&t&&(function N8(n){const e=Zt()[En][Ma];if(!e.projection){const r=e.projection=Sc(n?n.length:1,null),i=r.slice();let o=e.child;for(;null!==o;){const a=n?xet(o,n):0;null!==a&&(i[a]?i[a].projectionNext=o:r[a]=o,i[a]=o),o=o.next}}}(),M(0,"div",0),d(1,"\n "),function L8(n,e=0,t){const r=Zt(),i=kn(),o=Zf(i,Yr+n,16,null,t||null);null===o.projection&&(o.projection=e),A2(),32!=(32&o.flags)&&function RA(n,e,t){hx(e[vt],0,e,t,rx(n,t,e),sx(t.parent||e[Ma],t,e))}(i,r,o)}(2),d(3,"\n"),w(),d(4,"\n")),2&t&&Oh("color",null==r.iconTheme?null:r.iconTheme.primary)},encapsulation:2,changeDetection:0}),n})(),fSt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(t,r){1&t&&(st(0,"div",0),d(1,"\n")),2&t&&Oh("--check-primary",null==r.theme?null:r.theme.primary)("--check-secondary",null==r.theme?null:r.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),pSt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(t,r){1&t&&(st(0,"div",0),d(1,"\n")),2&t&&Oh("--error-primary",null==r.theme?null:r.theme.primary)("--error-secondary",null==r.theme?null:r.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),gSt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon",3,"ngStyle"]],template:function(t,r){1&t&&(st(0,"div",0),d(1,"\n")),2&t&&D("ngStyle",bd(1,Z3t,null==r.theme?null:r.theme.primary,null==r.theme?null:r.theme.secondary))},dependencies:[Ri],encapsulation:2,changeDetection:0}),n})(),mSt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(t,r){1&t&&(st(0,"div",0),d(1,"\n")),2&t&&Oh("--warn-primary",null==r.theme?null:r.theme.primary)("--warn-secondary",null==r.theme?null:r.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),vSt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(t,r){1&t&&(st(0,"div",0),d(1,"\n")),2&t&&Oh("--warn-primary",null==r.theme?null:r.theme.primary)("--warn-secondary",null==r.theme?null:r.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),_St=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:2,vars:1,consts:[["class","hot-toast-indicator-wrapper",4,"ngIf"],[1,"hot-toast-indicator-wrapper"],[3,"theme"],["class","hot-toast-status-wrapper",4,"ngIf"],[1,"hot-toast-status-wrapper"],[3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(t,r){1&t&&(Y(0,tSt,6,2,"div",0),d(1,"\n")),2&t&&D("ngIf","blank"!==r.type)},dependencies:[Xn,jP,F9,fSt,pSt,gSt,mSt,vSt],encapsulation:2,changeDetection:0}),n})(),BK=(()=>{class n{constructor(t,r,i){this.injector=t,this.renderer=r,this.ngZone=i,this.offset=0,this.height=new vr,this.beforeClosed=new vr,this.afterClosed=new vr,this.isManualClose=!1,this.unlisteners=[]}get containerPositionStyle(){const t=this.toast.position.includes("top"),r=t?{top:0}:{bottom:0},i=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return{transform:`translateY(${this.offset*(t?1:-1)}px)`,...r,...i}}get toastBarBaseStyles(){const t=this.toast.position.includes("top"),r=`hotToastEnterAnimation${t?"Negative":"Positive"} 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;return{...this.toast.style,animation:this.toast.autoClose?`${r}, hotToastExitAnimation${t?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) ${this.toast.duration}ms`:r}}get isIconString(){return"string"==typeof this.toast.icon}ngOnInit(){$S(this.toast.message)&&(this.context={$implicit:this.toastRef}),Xb(this.toast.message)&&(this.toastComponentInjector=_o.create({providers:[{provide:FK,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){const t=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(t.offsetHeight)}),this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(t,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.beforeClosed.emit())}),this.renderer.listen(t,"animationend",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))}),this.setToastAttributes()}close(){this.isManualClose=!0;((n,e)=>{this.toastBarBase.nativeElement.style.animation=e})(0,`hotToastExitAnimation${this.toast.position.includes("top")?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(t){return t.animationName.includes("hotToastExitAnimation")}setToastAttributes(){const t=this.toast.attributes;for(const[r,i]of Object.entries(t))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,i)}}return n.\u0275fac=function(t){return new(t||n)(ft(_o),ft(Yn),ft(ki))},n.\u0275cmp=ye({type:n,selectors:[["hot-toast"]],viewQuery:function(t,r){if(1&t&&fl(eSt,5),2&t){let i;Us(i=zs())&&(r.toastBarBase=i.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed"},decls:25,vars:14,consts:[[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["hotToastBarBase",""],["aria-hidden","true",1,"hot-toast-icon"],[4,"ngIf","ngIfElse"],["indicator",""],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],["type","button","class","hot-toast-close-btn","aria-label","Close",3,"ngStyle","click",4,"ngIf"],["iconTemplateOrComponent",""],[3,"iconTheme"],[3,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"ngStyle","click"]],template:function(t,r){if(1&t&&(M(0,"div",0),d(1,"\n "),M(2,"div",1,2),d(4,"\n "),M(5,"div",3),d(6,"\n "),Y(7,iSt,7,2,"ng-container",4),d(8,"\n\n "),Y(9,oSt,3,2,"ng-template",null,5,ze),d(11,"\n "),w(),d(12,"\n\n "),M(13,"div",6),d(14,"\n "),M(15,"div"),d(16,"\n "),Y(17,aSt,1,0,"ng-container",7),d(18,"\n "),w(),d(19,"\n "),w(),d(20,"\n\n "),Y(21,sSt,1,1,"button",8),d(22,"\n "),w(),d(23,"\n"),w(),d(24,"\n")),2&t){const i=ue(10);D("ngStyle",r.containerPositionStyle)("ngClass","hot-toast-theme-"+r.toast.theme),T(2),Oh("--hot-toast-animation-state",r.isManualClose?"running":"paused"),D("ngStyle",r.toastBarBaseStyles)("ngClass",r.toast.className),Rc("aria-live",r.toast.ariaLive)("role",r.toast.role),T(5),D("ngIf",void 0!==r.toast.icon)("ngIfElse",i),T(10),D("dynamicView",r.toast.message)("dynamicViewContext",r.context)("dynamicViewInjector",r.toastComponentInjector),T(4),D("ngIf",r.toast.dismissible)}},dependencies:[Ao,Xn,Ri,MMt,hSt,_St],encapsulation:2,changeDetection:0}),n})(),ySt=(()=>{class n{constructor(t){this.cdr=t,this.toasts=[],this.toastRefs=[],this._onClosed=new I,this.onClosed$=this._onClosed.asObservable()}trackById(t,r){return r.id}calculateOffset(t,r){const i=this.toasts.filter(s=>s.visible&&s.position===r),o=i.findIndex(s=>s.id===t);return-1!==o?i.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((s,l)=>s+(l.height||0)+8,0):0}updateHeight(t,r){r.height=t,this.cdr.detectChanges()}addToast(t){this.toastRefs.push(t);const r=t.getToast();return this.toasts.push(t.getToast()),this.cdr.detectChanges(),{dispose:()=>{this.closeToast(r.id)},updateMessage:i=>{r.message=i,this.cdr.detectChanges()},updateToast:i=>{this.updateToasts(r,i),this.cdr.detectChanges()},afterClosed:this.getAfterClosed(r)}}closeToast(t){if(t){const r=this.hotToastComponentList.find(i=>i.toast.id===t);r&&r.close()}else this.hotToastComponentList.forEach(r=>r.close())}beforeClosed(t){t.visible=!1}afterClosed(t){this.toasts.findIndex(i=>i.id===t.id)>-1&&(this._onClosed.next(t),this.toasts=this.toasts.filter(i=>i.id!==t.id),this.toastRefs=this.toastRefs.filter(i=>i.getToast().id!==t.id),this.cdr.detectChanges())}hasToast(t){return this.toasts.findIndex(r=>r.id===t)>-1}getAfterClosed(t){return this.onClosed$.pipe(wt(r=>r.id===t.id))}updateToasts(t,r){this.toasts=this.toasts.map(i=>({...i,...i.id===t.id&&{...t,...r}}))}}return n.\u0275fac=function(t){return new(t||n)(ft(Lc))},n.\u0275cmp=ye({type:n,selectors:[["hot-toast-container"]],viewQuery:function(t,r){if(1&t&&fl(BK,5),2&t){let i;Us(i=zs())&&(r.hotToastComponentList=i)}},inputs:{defaultConfig:"defaultConfig"},decls:8,vars:2,consts:[[2,"position","fixed","z-index","9999","top","0","right","0","bottom","0","left","0","pointer-events","none"],[2,"position","relative","height","100%"],[3,"toast","offset","toastRef","height","beforeClosed","afterClosed",4,"ngFor","ngForOf","ngForTrackBy"],[3,"toast","offset","toastRef","height","beforeClosed","afterClosed"]],template:function(t,r){1&t&&(M(0,"div",0),d(1,"\n "),M(2,"div",1),d(3,"\n "),Y(4,lSt,1,3,"hot-toast",2),d(5,"\n "),w(),d(6,"\n"),w(),d(7,"\n")),2&t&&(T(4),D("ngForOf",r.toasts)("ngForTrackBy",r.trackById))},dependencies:[Zo,BK],encapsulation:2,changeDetection:0}),n})();class VK{constructor(){this.reverseOrder=!1,this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}}class MSt{constructor(){this.storage="local",this.key="ngneat/hototast-${id}",this.count=1,this.enabled=!1}}let Lp=(()=>{class n{constructor(t,r,i){this._viewService=t,this.platformId=r,this._isInitialized=!1,this._defaultConfig=new VK,this._defaultPersistConfig=new MSt,i&&(this._defaultConfig={...this._defaultConfig,...i})}get defaultConfig(){return this._defaultConfig}set defaultConfig(t){this._defaultConfig={...this._defaultConfig,...t},this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultConfig)}show(t,r){return this.createToast(t||this._defaultConfig.blank.content,"blank",{...this._defaultConfig,...r})}error(t,r){return this.createToast(t||this._defaultConfig.error.content,"error",{...this._defaultConfig,...this._defaultConfig?.error,...r})}success(t,r){return this.createToast(t||this._defaultConfig.success.content,"success",{...this._defaultConfig,...this._defaultConfig?.success,...r})}loading(t,r){return this.createToast(t||this._defaultConfig.loading.content,"loading",{...this._defaultConfig,...this._defaultConfig?.loading,...r})}warning(t,r){return this.createToast(t||this._defaultConfig.warning.content,"warning",{...this._defaultConfig,...this._defaultConfig?.warning,...r})}info(t,r){return this.createToast(t||this._defaultConfig.info.content,"info",{...this._defaultConfig,...this._defaultConfig?.info,...r})}observe(t){return r=>{let i,o=0;const a=t.loading??this._defaultConfig.loading?.content,s=t.success??this._defaultConfig.success?.content,l=t.error??this._defaultConfig.error?.content;return QP(()=>(a&&(i=this.createLoadingToast(a),o=Date.now()),r.pipe(Do({...s&&{next:c=>{i=this.createOrUpdateToast(t,c,i,"success",0===o?o:Date.now()-o)}},...l&&{error:c=>{i=this.createOrUpdateToast(t,c,i,"error",0===o?o:Date.now()-o)}}}))))}}close(t){this._componentRef&&this._componentRef.ref.instance.closeToast(t)}init(){uE(this.platformId)||(this._componentRef=this._viewService.createComponent(ySt).setInput("defaultConfig",this._defaultConfig).appendTo(document.body))}createOrUpdateToast(t,r,i,o,a){let s=null,l={};if(({content:s,options:l}=this.getContentAndOptions(o,t[o]||(this._defaultConfig[o]?this._defaultConfig[o].content:""))),s=((n,e)=>(n=>"function"==typeof n)(n)?n(e):n)(s,r),i){i.updateMessage(s);const c={type:o,duration:a+NK[o],...l,...l.duration&&{duration:a+l.duration}};i.updateToast(c)}else this.createToast(s,o,l);return i}createToast(t,r,i,o){this._isInitialized||(this._isInitialized=!0,this.init());const a=Date.now(),s=i?.id??a.toString();if(!this.isDuplicate(s)&&(!i.persist?.enabled||i.persist?.enabled&&this.handleStorageValue(s,i))){const l={ariaLive:i?.ariaLive??"polite",createdAt:a,duration:i?.duration??NK[r],id:s,message:t,role:i?.role??"status",type:r,visible:!0,observableMessages:o??void 0,...i};return new FK(l).appendTo(this._componentRef.ref.instance)}}isDuplicate(t){return this._componentRef.ref.instance.hasToast(t)}handleStorageValue(t,r){let i=1;const o={...this._defaultPersistConfig,...r.persist},a="local"===o.storage?localStorage:sessionStorage,s=o.key.replace(/\${id}/g,t);let l=a.getItem(s);return l?(l=parseInt(l,10),i=l>0?l-1:l):i=o.count,a.setItem(s,i.toString()),i}getContentAndOptions(t,r){let i,o={...this._defaultConfig,...this._defaultConfig[t]};if("string"==typeof r||$S(r)||Xb(r))i=r;else{let a;({content:i,...a}=r),o={...o,...a}}return{content:i,options:o}}createLoadingToast(t){let r=null,i={};return({content:r,options:i}=this.getContentAndOptions("loading",t)),this.loading(r,i)}}return n.\u0275fac=function(t){return new(t||n)(Mt(u6),Mt(Ng),Mt(VK,8))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var q1;let cc=(q1=class{constructor(e,t,r,i,o,a){this.http=e,this.dyposSecurityAuctionStatsService=t,this.cloudVmCostControllerService=r,this.storeCloudVmService=i,this.tokenPriceService=o,this.hotToastService=a,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.storePrice={$store:0,usd:0,eth:0,btc:0,bits:0,bytes:0}}getStorePrice(){return yt(0).pipe(va(500))}getTrendData(e,t){return this.http.get("/consensus"+e+(t?.from&&t?.till?`?from=${t?.from}&till=${t?.till}`:""))}getTransactionById(e,t){return this.http.get(t+"/transactions/"+e)}getExchangeRate(e,t){return this.http.get(`https://api.coingecko.com/api/v3/simple/price?ids=${e}&vs_currencies=${t}`)}getEtherPrice(){return le(function*(){return new P3t("homestead",At.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(k(e=>this.parseCSV(e)))}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(k(e=>this.parseCSV(e)))}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(k(e=>this.parseCSV(e)))}postGenerateTransaction(e){return this.http.post("/consensus/transactions",e).pipe(Wt(this))}convertUSDIntoRates(e){const t=e?ir(e).div(this.storePrice.usd):ir(e);return{$store:t?.toNumber(),usd:ir(e)?.toNumber(),eth:ir(e).times(this.storePrice.eth)?.toNumber(),btc:ir(e).times(this.storePrice.btc)?.toNumber(),bits:t.times(At.one$STOREEqualsToOneBit)?.toNumber(),bytes:t.times(At.one$STOREEqualsToOneBit).div(8)?.toNumber()}}call(e,t,r){var i=this;return le(function*(){return t?.showLoading(),i.error=null,e.pipe(np(()=>{r||t?.showSuccess()}),Wt(i)).toPromise().catch(()=>{t?.showError()})})()}bindStats(){var e=this;return le(function*(){e.bindTotalValueLocked(),e.bindDyPos(),e.bindDyPosSurge(),e.bindSecurity(),e.bindCostOfCompute(),e.bindDDosProtection(),e.bindNetworkOperators(),e.bindCloudCapacity(),e.bindGovernanceResults(),e.bindAuctionEconomics(),e.bindTotalSupplyInfo$(),e.bindCirculatingSupplyInfo$(),e.bindAllocatedSupplyInfo$()})()}setStorePrice(){var e=this;return le(function*(){try{const t=yield e.tokenPriceService.tokenPricesControllerGetStorePrice().toPromise();e.storePrice={$store:1,usd:ir(JSON.parse(t)?.USD)?.toNumber(),eth:ir(JSON.parse(t)?.ETH)?.toNumber(),btc:ir(JSON.parse(t)?.BTC)?.toNumber(),bits:ir(At.one$STOREEqualsToOneBit)?.toNumber(),bytes:ir(At.one$STOREEqualsToOneBit).div(8)?.toNumber()}}catch{e.hotToastService.warning("Failed to fetch latest STORE price.")}})()}bindTotalValueLocked(){const e=this.getStorePrice().pipe(Wt(this),k(i=>({label:"DEPOSITED",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string"}))),t=this.getStorePrice().pipe(Wt(this),k(i=>({label:"STAKED",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string"}))),r=this.getStorePrice().pipe(Wt(this),k(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$:[e,t,r]}}bindDyPos(){var e=this;return le(function*(){const t=e.dyposSecurityAuctionStatsService.securityAuctionStatsControllerGetSbFinal_1({auctionNumber:"latest",units:"percent"}).pipe(Wt(e),k(o=>(JSON.parse(o),{label:"SECURITY BUDGET MET",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent"}))),r=e.dyposSecurityAuctionStatsService.securityAuctionStatsControllerGetSbMax_1({auctionNumber:"latest",units:"percent"}).pipe(Wt(e),k(o=>(JSON.parse(o),{label:"SECURITY BUDGET MAX",tooltip:"Description (in progress)",inlineTooltip:!0,value:.1,type:"percent"}))),i=e.dyposSecurityAuctionStatsService.securityAuctionStatsControllerGetInflationRate_1({auctionNumber:"latest",units:"percent"}).pipe(Wt(e),k(o=>(JSON.parse(o),{label:"INFLATION RATE",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent"})));e.dyPos$={title:"PROTOCOL SECURITY",tooltip:"Description (in progress)",items$:[t,r,i]}})()}bindDyPosSurge(){const e=this.getStorePrice().pipe(Wt(this),k(a=>({label:"\u{1f4c8} SURGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:"x"}))),t=this.getStorePrice().pipe(Wt(this),k(a=>({label:"GROWTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"percent"}))),r=this.getStorePrice().pipe(Wt(this),k(a=>({label:"REBALANCE",tooltip:"Description (in progress)",inlineTooltip:!0,value:`~${a?.toFixed(0)}`,type:"string",symbol:" Secs"}))),i=this.getStorePrice().pipe(Wt(this),k(a=>({label:"FEES",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:"bits"}))),o=this.getStorePrice().pipe(Wt(this),k(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$:[e,t,r,i,o]}}bindSecurity(){const e=this.getStorePrice().pipe(Wt(this),k(i=>({label:"COST TO \u2154 ATTACK",tooltip:"Description (in progress)",inlineTooltip:!0,value:i,type:"currency",symbol:" MM",decimal:{count:2,force:!0}}))),t=this.getStorePrice().pipe(Wt(this),k(i=>({label:"COST TO MINT $STORE",tooltip:"Description (in progress)",inlineTooltip:!0,value:i,type:"currency"}))),r=this.cloudVmCostControllerService.getProductionCostByMeasurementAndUnit({unit:na.Unit.USD,costType:na.CostType.Yearly}).pipe(Wt(this),k(i=>({label:"PRODUCTION COST/YR",tooltip:"Description (in progress)",inlineTooltip:!0,preSymbol:"$",value:Math.round(i?.value??0)?.toLocaleString(),type:"string"})));this.security$={title:"PROTOCOL ECONOMICS",tooltip:"Description (in progress)",items$:[e,r,t]}}bindCostOfCompute(){const e=this.cloudVmCostControllerService.getCostByTypeAndUnit({type:na.Type.Compute,unit:na.Unit.BITS}).pipe(Wt(this),k(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"}})),t=this.cloudVmCostControllerService.getCostByTypeAndUnit({type:na.Type.Storage,unit:na.Unit.BITS}).pipe(Wt(this),k(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:na.Option.SELL,units:na.Unit.BITS}).pipe(Wt(this),k(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:na.Option.SELL,units:na.Unit.USD}).pipe(Wt(this),k(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$:[e,t,r,i]}}bindDDosProtection(){const e=this.getStorePrice().pipe(Wt(this),k(o=>({label:"ACTUAL TPS",value:o,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),t=this.getStorePrice().pipe(Wt(this),k(o=>({label:"TXN BURST",value:o,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),r=this.getStorePrice().pipe(Wt(this),k(o=>({label:"RATE LIMIT/SEC",value:o,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),i=this.getStorePrice().pipe(Wt(this),k(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$:[e,t,r,i]}}bindNetworkOperators(){const e=this.getStorePrice().pipe(Wt(this),k(a=>({label:"MARKETS",tooltip:"Description (in progress)",inlineTooltip:!0,value:1,type:"number"}))),t=this.getStorePrice().pipe(Wt(this),k(a=>({label:"CLOUD MINERS",tooltip:"Description (in progress)",inlineTooltip:!0,value:10,type:"number"}))),r=this.getStorePrice().pipe(Wt(this),k(a=>({label:"BLOCK MINERS",tooltip:"Description (in progress)",inlineTooltip:!0,value:7,type:"number"}))),i=this.getStorePrice().pipe(Wt(this),k(a=>({label:"VOTERS",value:82,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),o=this.getStorePrice().pipe(Wt(this),k(a=>({label:"Status: Alpha",value:null,type:"string"})));this.networkOperators$={title:"NETWORK OPERATORS",tooltip:"Description (in progress)",subTitle:{enable:!0,item$:o},items$:[e,t,r,i]}}bindCloudCapacity(){const e=this.getStorePrice().pipe(Wt(this),k(o=>({label:"DATA CENTERS",value:6,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),t=this.getStorePrice().pipe(Wt(this),k(o=>({label:"COMPUTE",value:26400,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"vCPUS"}))),r=this.getStorePrice().pipe(Wt(this),k(o=>({label:"MEMORY",value:240,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"TB"}))),i=this.getStorePrice().pipe(Wt(this),k(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$:[e,t,r,i]}}bindGovernanceResults(){const e=yt({label:"% TRUSTED",tooltip:"Description (in progress)",inlineTooltip:!0,value:"100%",type:"string"}),t=yt({label:"BALLOTS APPROVED",tooltip:"Description (in progress)",inlineTooltip:!0,value:5,type:"number"}),r=yt({label:"AVG. APPROVAL RATE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"76.95%",type:"string"}),i=yt({label:"BALLOTS VETOED",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"number"});this.governanceResults={title:"GOVERNANCE RESULTS",tooltip:"Description (in progress)",items$:[e,t,r,i]}}bindAuctionEconomics(){const e=yt({label:"NEXT AUCTION",tooltip:"Description (in progress)",inlineTooltip:!0,value:"TBD",type:"string"}),t=yt({label:"SB GROWTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"}),r=yt({label:"SB+",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"}),i=yt({label:"LAST AUCTION SUBSCRIPTON",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"});this.auctionEconomics={title:"AUCTION ECONOMICS",tooltip:"Description (in progress)",items$:[e,t,r,i]}}parseCSV(e){for(var t=[],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)"}}))),t=this.getStorePrice().pipe(Wt(this),k(i=>({label:"MARKET CAP/TVL",tooltip:"Description (in progress)",inlineTooltip:!0,value:"00.00",type:"string"}))),r=this.getStorePrice().pipe(Wt(this),k(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$:[e,t,r]}}bindTotalSupplyInfo$(){const e=this.getStorePrice().pipe(Wt(this),k(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)"}}))),t=this.getStorePrice().pipe(Wt(this),k(i=>({label:"FDV/TVL",tooltip:"Description (in progress)",inlineTooltip:!0,value:"00.00",type:"string"}))),r=this.getStorePrice().pipe(Wt(this),k(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$:[e,t,r]}}bindAllocatedSupplyInfo$(){const e=this.getStorePrice().pipe(Wt(this),k(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)"}}))),t=this.getStorePrice().pipe(Wt(this),k(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$:[e,t]}}},q1.\u0275fac=function(e){return new(e||q1)(Mt(Ln),Mt(IK),Mt(z3t),Mt(m4),Mt(EK),Mt(Lp))},q1.\u0275prov=zt({token:q1,factory:q1.\u0275fac,providedIn:"root"}),q1);cc=It([Ze()],cc);class v4{constructor(){this.refreshOnTransactionGenerate=new to({count:void 0,state:zi.State.Completed}),this.scrollToTransactionBlocks=new to(!1),this.refreshOnTransactionGenerate$=this.refreshOnTransactionGenerate.asObservable(),this.scrollToTransactionBlocks$=this.scrollToTransactionBlocks.asObservable()}changeState(e){this.refreshOnTransactionGenerate.next(e)}scrollToTransactionBlocksSection(){this.scrollToTransactionBlocks.next(!0)}}function $K(n,e=OC){return Xt((t,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=e.now();if(u{o=c,a=e.now(),i||(i=e.schedule(l,n),r.add(i))},()=>{s(),r.complete()},void 0,()=>{o=i=null}))})}let H6=class{constructor(e,t,r,i){this.disableResetData=!1,this._loading$=new to(!0),this._search$=new I,this._data$=new to([]),this._numOfPages$=new to(0),this._state={page:1,pageSize:8,status:null,searchTerm:"",sortColumn:"",sortDirection:""},this.http=e,this.serviceAPIUrl=r,this.data=t,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(e){this._set({page:e})}set pageSize(e){this._set({pageSize:e})}set searchTerm(e){this._set({searchTerm:e})}set sortColumn(e){this._set({sortColumn:e})}set sortDirection(e){this._set({sortDirection:e})}set status(e){this._set({status:e})}set loading(e){this._loading$.next(e)}_set(e){Object.assign(this._state,e),this._search$.next()}_search(){var e=this;return le(function*(){return e.serviceAPIUrl?e.getAPIData():e.data?e.getLocalData():yt({data:[],numOfPages:0})})()}getLocalData(){var e=this;return le(function*(){const{pageSize:t,page:r,status:i,sortColumn:o,sortDirection:a}=e._state;if(!e.data)return yt({data:[],numOfPages:0});let s=yield Co(e.data);e.map&&(s=e.map(s));let l=e.sort(s,o,a);i&&"Any"!==i&&"All"!==i&&(l=l?.filter(u=>u?.status===i));const c=Math.ceil(l?.length/t);return l=l?.slice((r-1)*t,(r-1)*t+t),yt({data:l,numOfPages:c})})()}getAPIData(){var e=this;return le(function*(){const{pageSize:t,page:r}=e._state,i=e.preparePagination(r,t),o=yield Co(e.http.get(e.serviceAPIUrl+i));return e.map&&(o.data=e.map(o?.data)),yt(o)})()}preparePagination(e,t){return`?page=${e-1}&limit=${t}&time=desc`}sort(e,t,r){return""===r||""===t?e:[...e].sort((i,o)=>{const a=((n,e)=>ne?1:0)(i[t],o[t]);return"asc"===r?a:-a})}initSearch(){var e=this;(this.data||this.serviceAPIUrl)&&(this._search$.pipe(Do(()=>{this.disableResetData||(this._loading$.next(!0),this._data$.next([])),this._numOfPages$.next(0)}),$K(200),Ta(le(function*(){return yield Co(yield e._search())})),Do(()=>{this.disableResetData||this._loading$.next(!1)}),np(()=>{this.disableResetData||this._loading$.next(!1)})).subscribe(t=>{this._data$.next(t.data),this._numOfPages$.next(t.numOfPages)}),this._search$.next())}};var Z1;H6=It([Ze({checkProperties:!0})],H6);let _4=(Z1=class{constructor(e,t){this.http=e,this.stateService=t,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(Wt(this))}bindTotalTransactionsAndBlocks(){var e=this;return le(function*(){const t=yield Co(e.getDashboardStats());e.attachTotalTransactionsAndBlocks(t)})()}attachTotalTransactionsAndBlocks(e){const t={label:"Waiting",tooltip:"Description (in progress)",inlineTooltip:!0,value:e?.pendingTransactions,type:"short-number",icon:"clock"},r={label:"Confirming",tooltip:"Description (in progress)",inlineTooltip:!0,value:e?.confirmingTransactions,type:"short-number",icon:"box"},i={label:"Finalized",tooltip:"Description (in progress)",inlineTooltip:!0,value:e?.finalizedTransactions,type:"short-number",decimal:{count:2},icon:"check-circle"};this.totalTransactions$.subTitle={enable:!0,item:{label:"",value:e?.totalTransactions,type:"short-number",decimal:{count:2},cssClass:"d-flex g-1"}},this.totalTransactions$.items=[t,r,i];const a={label:"Confirming",tooltip:"Description (in progress)",inlineTooltip:!0,value:e?.confirmingBlocks,type:"short-number",icon:"box"},s={label:"Finalized",tooltip:"Description (in progress)",inlineTooltip:!0,value:e?.finalizedBlocks,type:"short-number",decimal:{count:2},icon:"check-circle"};this.totalBlocks$.subTitle={enable:!0,item:{label:"",value:e?.totalBlocks,type:"short-number",decimal:{count:2},cssClass:"d-flex g-1"}},this.totalBlocks$.items=[a,s]}attachStateChange(){this.stateService.refreshOnTransactionGenerate$.pipe(Wt(this),Ta(e=>this.transactionStateChange(e))).subscribe()}transactionStateChange(e){var t=this;return le(function*(){switch(e.state){case zi.State.Requested:t.Requested(e);break;case zi.State.Block_Added:t.Block_Added(e);break;case zi.State.Network_Updated:yield t.Network_Updated(e)}})()}Requested(e){this.totalTransactions$.items&&(this.totalTransactions$.items[0].icon="clock_animated",this.totalTransactions$.items[0].value$=yt({value:e?.count?.transaction})),this.totalTransactions$?.subTitle?.item&&(this.totalTransactions$.subTitle.item.valueIcon="box_animated")}Block_Added(e){this.totalTransactions$.items&&(this.totalTransactions$.items[0].icon="clock",this.totalTransactions$.items[0].value$=yt({value:0}),this.totalTransactions$.items[1].icon="box_animated",this.totalTransactions$.items[1].value$=yt({value:e?.count?.transaction})),this.totalBlocks$.items&&(this.totalBlocks$.items[0].icon="box_animated",this.totalBlocks$.items[0].value$=yt({value:e?.count?.block})),this.totalBlocks$?.subTitle?.item&&(this.totalBlocks$.subTitle.item.valueIcon="box_animated")}Network_Updated(e){var t=this;return le(function*(){const r=yield Co(t.getDashboardStats());t.setNetworkUpdateValue(r)})()}setNetworkUpdateValue(e){var t=this;return le(function*(){t.totalTransactions$.items&&(t.totalTransactions$.items[0].icon="clock",t.totalTransactions$.items[0].value$=yt({value:0}),t.totalTransactions$.items[1].icon="box",t.totalTransactions$.items[1].value$=yt({value:0})),t.totalBlocks$.items&&(t.totalBlocks$.items[0].icon="box",t.totalBlocks$.items[0].value$=yt({value:0})),t.attachTotalTransactionsAndBlocks(e),t.totalTransactions$.items&&(t.totalTransactions$.items[2].icon="check-circle_animated_once"),t.totalBlocks$.items&&(t.totalBlocks$.items[1].icon="check-circle_animated_once"),t.totalTransactions$?.subTitle?.item&&(t.totalTransactions$.subTitle.item.valueIcon="check-circle_animated_once"),t.totalBlocks$?.subTitle?.item&&(t.totalBlocks$.subTitle.item.valueIcon="check-circle_animated_once"),yield Co(yt(0).pipe(va(1e3))),t.setSubTitleIcon()})()}setSubTitleIcon(){this.totalTransactions$?.subTitle?.item&&(this.totalTransactions$.subTitle.item.valueIcon=void 0),this.totalBlocks$?.subTitle?.item&&(this.totalBlocks$.subTitle.item.valueIcon=void 0)}},Z1.\u0275fac=function(e){return new(e||Z1)(Mt(Ln),Mt(v4))},Z1.\u0275prov=zt({token:Z1,factory:Z1.\u0275fac}),Z1);_4=It([Ze()],_4);class UK{constructor(e,t,r,i){var o=this;this.extraQuery=[],this.destroy$=new I,this._search$=new I,this._loading$=new to(!0),this._result$=new to([]),this._total$=new to(-1),this._state={page:1,pageSize:4,searchTerm:"",sortHeaders:[]},this.service$=e,this.fields=t,this.extraQuery=r,this.map=i,e?(this._search$.pipe(Do(le(function*(){o._loading$.next(!0),o._result$.next([]),o._total$.next(0)})),$K(100),Ta(le(function*(){return yield(yield o._search()).toPromise()})),Do(()=>this._loading$.next(!1)),np(()=>this._loading$.next(!1)),ml(this.destroy$)).subscribe(a=>{this._result$.next(a?.result??[]),this._total$.next(a?.total??-1)}),this._search$.next()):this._loading$.next(!0)}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(e){this._set({page:e})}set pageSize(e){this._set({pageSize:e})}set searchTerm(e){this._set({searchTerm:e})}set sortHeaders(e){this._set({sortHeaders:e})}load$(){this._search$.next()}getFilter(e){const{sortHeaders:t,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 e&&(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)),t?.length>0?s=this.generateFilterOrder(s,t):s["filter[order]"]="createdOn DESC",{filter:s,where:a}}_set(e){Object.assign(this._state,e),this._search$.next()}_search(){var e=this;return le(function*(){const t=e.getFilter(),r=yield e.service$?.count({where:t?.where}).toPromise();let i=yield e.service$?.find({filter:t?.filter}).toPromise();return e.map&&(i=e.map(i)),yt({result:i,total:r?.count??0})})()}generateFilterUsingColumns(e,t,r){for(let i=0;i{e["filter"+t.key]=t.value}),e}generateWhereExtraQuery(e){return this.extraQuery.forEach(t=>{e[t.key]=t.value}),e}generateFilterOrder(e,t){t=t.filter(r=>""!==r.direction);for(let r=0;r{class n{constructor(){this.rootUrl="http://localhost:3001/api"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Xd=(()=>{class n{constructor(t,r){this.config=t,this.http=r,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(t){this._rootUrl=t}}return n.\u0275fac=function(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac}),n})();const PSt=new class xSt{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};class j6{constructor(e,t,r,i,o){this.name=e,this.value=t,this.options=r,this.options=r||{},null==this.options.style&&(this.options.style=i),null==this.options.explode&&(this.options.explode=o)}serializeValue(e,t=","){if(null==e)return"";if(e instanceof Array)return e.map(r=>this.serializeValue(r).split(t).join(encodeURIComponent(t))).join(t);if("object"==typeof e){const r=[];for(const i of Object.keys(e)){let o=e[i];null!=o&&(o=this.serializeValue(o).split(t).join(encodeURIComponent(t)),this.options.explode?r.push(`${i}=${o}`):(r.push(i),r.push(o)))}return r.join(t)}return String(e)}}class OSt extends j6{constructor(e,t,r){super(e,t,r,"simple",!1)}append(e){let t=this.value;null==t&&(t="");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 t&&(r=";",t instanceof Array?(t=t.map(a=>`${this.name}=${this.serializeValue(a,";")}`),t=t.join(";"),o=!0):(t=this.serializeValue(t,";"),o=!0))),t=r+(o?t:this.serializeValue(t,i)),(e=e.replace(`{${this.name}}`,t)).replace(`{${r}${this.name}${this.options.explode?"*":""}}`,t)}serializeValue(e,t=","){var r="string"==typeof e?encodeURIComponent(e):super.serializeValue(e,t);return(r=(r=r.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class SSt extends j6{constructor(e,t,r){super(e,t,r,"form",!0)}append(e){if(this.value instanceof Array){if(!this.options.explode)return e.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const t of this.value)e=e.append(this.name,this.serializeValue(t))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const t of Object.keys(this.value)){const r=this.value[t];null!=r&&(e=e.append(`${this.name}[${t}]`,this.serializeValue(r)))}else if(this.options.explode)for(const t of Object.keys(this.value)){const r=this.value[t];null!=r&&(e=e.append(t,this.serializeValue(r)))}else{const t=[];for(const r of Object.keys(this.value)){const i=this.value[r];null!=i&&(t.push(r),t.push(i))}e=e.append(this.name,this.serializeValue(t))}else null!=this.value&&(e=e.append(this.name,this.serializeValue(this.value)));return e}}class TSt extends j6{constructor(e,t,r){super(e,t,r,"simple",!1)}append(e){if(null!=this.value)if(this.value instanceof Array)for(const t of this.value)e=e.append(this.name,this.serializeValue(t));else e=e.append(this.name,this.serializeValue(this.value));return e}}class wr{constructor(e,t,r){this.rootUrl=e,this.operationPath=t,this.method=r,this._path=new Map,this._query=new Map,this._header=new Map}path(e,t,r){this._path.set(e,new OSt(e,t,r||{}))}query(e,t,r){this._query.set(e,new SSt(e,t,r||{}))}header(e,t,r){this._header.set(e,new TSt(e,t,r||{}))}body(e,t="application/json"){if(this._bodyContentType=e instanceof Blob?e.type:t,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==e&&"object"==typeof e){const r=[];for(const i of Object.keys(e)){let o=e[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!=e)for(const i of Object.keys(e)){const o=e[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=e}formDataValue(e){return null==e?null:e instanceof Blob?e:"object"==typeof e?JSON.stringify(e):String(e)}build(e){e=e||{};let t=this.operationPath;for(const a of this._path.values())t=a.append(t);const r=this.rootUrl+t;let i=new ec({encoder:PSt});for(const a of this._query.values())i=a.append(i);let o=new ma;e.accept&&(o=o.append("Accept",e.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 xd(this.method.toUpperCase(),r,this._bodyContent,{params:i,headers:o,responseType:e.responseType,reportProgress:e.reportProgress,context:e.context})}}let ASt=(()=>{class n extends Xd{constructor(t,r){super(t,r)}count$Response(t,r){const i=new wr(this.rootUrl,n.DiskDetailedStatsControllerCountPath,"get");return t&&i.query("where",t.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}count(t,r){return this.count$Response(t,r).pipe(k(i=>i.body))}findLatest$Response(t,r){const i=new wr(this.rootUrl,n.DiskDetailedStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findLatest(t,r){return this.findLatest$Response(t,r).pipe(k(i=>i.body))}findById$Response(t,r){const i=new wr(this.rootUrl,n.DiskDetailedStatsControllerFindByIdPath,"get");return t&&(i.path("id",t.id,{}),i.query("filter",t.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findById(t,r){return this.findById$Response(t,r).pipe(k(i=>i.body))}find$Response(t,r){const i=new wr(this.rootUrl,n.DiskDetailedStatsControllerFindPath,"get");return t&&i.query("filter",t.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}find(t,r){return this.find$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zK=(()=>{class n extends Xd{constructor(t,r){super(t,r)}count$Response(t,r){const i=new wr(this.rootUrl,n.DiskStatsControllerCountPath,"get");return t&&i.query("where",t.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}count(t,r){return this.count$Response(t,r).pipe(k(i=>i.body))}findLatest$Response(t,r){const i=new wr(this.rootUrl,n.DiskStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findLatest(t,r){return this.findLatest$Response(t,r).pipe(k(i=>i.body))}findById$Response(t,r){const i=new wr(this.rootUrl,n.DiskStatsControllerFindByIdPath,"get");return t&&(i.path("id",t.id,{}),i.query("filter",t.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findById(t,r){return this.findById$Response(t,r).pipe(k(i=>i.body))}find$Response(t,r){const i=new wr(this.rootUrl,n.DiskStatsControllerFindPath,"get");return t&&i.query("filter",t.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}find(t,r){return this.find$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),DSt=(()=>{class n extends Xd{constructor(t,r){super(t,r)}health$Response(t,r){const i=new wr(this.rootUrl,n.HealthControllerHealthPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}health(t,r){return this.health$Response(t,r).pipe(k(i=>i.body))}live$Response(t,r){const i=new wr(this.rootUrl,n.HealthControllerLivePath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}live(t,r){return this.live$Response(t,r).pipe(k(i=>i.body))}ready$Response(t,r){const i=new wr(this.rootUrl,n.HealthControllerReadyPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}ready(t,r){return this.ready$Response(t,r).pipe(k(i=>i.body))}}return n.HealthControllerHealthPath="/health",n.HealthControllerLivePath="/live",n.HealthControllerReadyPath="/ready",n.\u0275fac=function(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ISt=(()=>{class n extends Xd{constructor(t,r){super(t,r)}count$Response(t,r){const i=new wr(this.rootUrl,n.InstanceDetailedStatsControllerCountPath,"get");return t&&i.query("where",t.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}count(t,r){return this.count$Response(t,r).pipe(k(i=>i.body))}findLatest$Response(t,r){const i=new wr(this.rootUrl,n.InstanceDetailedStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findLatest(t,r){return this.findLatest$Response(t,r).pipe(k(i=>i.body))}findById$Response(t,r){const i=new wr(this.rootUrl,n.InstanceDetailedStatsControllerFindByIdPath,"get");return t&&(i.path("id",t.id,{}),i.query("filter",t.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findById(t,r){return this.findById$Response(t,r).pipe(k(i=>i.body))}find$Response(t,r){const i=new wr(this.rootUrl,n.InstanceDetailedStatsControllerFindPath,"get");return t&&i.query("filter",t.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}find(t,r){return this.find$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HK=(()=>{class n extends Xd{constructor(t,r){super(t,r)}count$Response(t,r){const i=new wr(this.rootUrl,n.InstanceStatsControllerCountPath,"get");return t&&i.query("where",t.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}count(t,r){return this.count$Response(t,r).pipe(k(i=>i.body))}findLatest$Response(t,r){const i=new wr(this.rootUrl,n.InstanceStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findLatest(t,r){return this.findLatest$Response(t,r).pipe(k(i=>i.body))}findById$Response(t,r){const i=new wr(this.rootUrl,n.InstanceStatsControllerFindByIdPath,"get");return t&&(i.path("id",t.id,{}),i.query("filter",t.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findById(t,r){return this.findById$Response(t,r).pipe(k(i=>i.body))}find$Response(t,r){const i=new wr(this.rootUrl,n.InstanceStatsControllerFindPath,"get");return t&&i.query("filter",t.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}find(t,r){return this.find$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ESt=(()=>{class n extends Xd{constructor(t,r){super(t,r)}count$Response(t,r){const i=new wr(this.rootUrl,n.NetworkBandwidthDetailedStatsControllerCountPath,"get");return t&&i.query("where",t.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}count(t,r){return this.count$Response(t,r).pipe(k(i=>i.body))}findLatest$Response(t,r){const i=new wr(this.rootUrl,n.NetworkBandwidthDetailedStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findLatest(t,r){return this.findLatest$Response(t,r).pipe(k(i=>i.body))}findById$Response(t,r){const i=new wr(this.rootUrl,n.NetworkBandwidthDetailedStatsControllerFindByIdPath,"get");return t&&(i.path("id",t.id,{}),i.query("filter",t.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findById(t,r){return this.findById$Response(t,r).pipe(k(i=>i.body))}find$Response(t,r){const i=new wr(this.rootUrl,n.NetworkBandwidthDetailedStatsControllerFindPath,"get");return t&&i.query("filter",t.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}find(t,r){return this.find$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jK=(()=>{class n extends Xd{constructor(t,r){super(t,r)}count$Response(t,r){const i=new wr(this.rootUrl,n.NetworkBandwidthStatsControllerCountPath,"get");return t&&i.query("where",t.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}count(t,r){return this.count$Response(t,r).pipe(k(i=>i.body))}findLatest$Response(t,r){const i=new wr(this.rootUrl,n.NetworkBandwidthStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findLatest(t,r){return this.findLatest$Response(t,r).pipe(k(i=>i.body))}findById$Response(t,r){const i=new wr(this.rootUrl,n.NetworkBandwidthStatsControllerFindByIdPath,"get");return t&&(i.path("id",t.id,{}),i.query("filter",t.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findById(t,r){return this.findById$Response(t,r).pipe(k(i=>i.body))}find$Response(t,r){const i=new wr(this.rootUrl,n.NetworkBandwidthStatsControllerFindPath,"get");return t&&i.query("filter",t.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}find(t,r){return this.find$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kSt=(()=>{class n extends Xd{constructor(t,r){super(t,r)}count$Response(t,r){const i=new wr(this.rootUrl,n.NetworkIpaddressDetailedStatsControllerCountPath,"get");return t&&i.query("where",t.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}count(t,r){return this.count$Response(t,r).pipe(k(i=>i.body))}findLatest$Response(t,r){const i=new wr(this.rootUrl,n.NetworkIpaddressDetailedStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findLatest(t,r){return this.findLatest$Response(t,r).pipe(k(i=>i.body))}findById$Response(t,r){const i=new wr(this.rootUrl,n.NetworkIpaddressDetailedStatsControllerFindByIdPath,"get");return t&&(i.path("id",t.id,{}),i.query("filter",t.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findById(t,r){return this.findById$Response(t,r).pipe(k(i=>i.body))}find$Response(t,r){const i=new wr(this.rootUrl,n.NetworkIpaddressDetailedStatsControllerFindPath,"get");return t&&i.query("filter",t.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}find(t,r){return this.find$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),RSt=(()=>{class n extends Xd{constructor(t,r){super(t,r)}count$Response(t,r){const i=new wr(this.rootUrl,n.NetworkIpaddressStatsControllerCountPath,"get");return t&&i.query("where",t.where,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}count(t,r){return this.count$Response(t,r).pipe(k(i=>i.body))}findLatest$Response(t,r){const i=new wr(this.rootUrl,n.NetworkIpaddressStatsControllerFindLatestPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findLatest(t,r){return this.findLatest$Response(t,r).pipe(k(i=>i.body))}findById$Response(t,r){const i=new wr(this.rootUrl,n.NetworkIpaddressStatsControllerFindByIdPath,"get");return t&&(i.path("id",t.id,{}),i.query("filter",t.filter,{})),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}findById(t,r){return this.findById$Response(t,r).pipe(k(i=>i.body))}find$Response(t,r){const i=new wr(this.rootUrl,n.NetworkIpaddressStatsControllerFindPath,"get");return t&&i.query("filter",t.filter,{}),this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}find(t,r){return this.find$Response(t,r).pipe(k(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(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),NSt=(()=>{class n extends Xd{constructor(t,r){super(t,r)}ping$Response(t,r){const i=new wr(this.rootUrl,n.PingControllerPingPath,"get");return this.http.request(i.build({responseType:"json",accept:"application/json",context:r})).pipe(wt(o=>o instanceof Tt),k(o=>o))}ping(t,r){return this.ping$Response(t,r).pipe(k(i=>i.body))}}return n.PingControllerPingPath="/ping",n.\u0275fac=function(t){return new(t||n)(Mt(uc),Mt(Ln))},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Y1;let y4=(Y1=class{constructor(e,t,r){this.instanceStats=e,this.diskStats=t,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(Wt(this)).subscribe(e=>{const t={title:{text:"INSTANCES",subText:this.nFormatter(e?.map(r=>parseFloat(r.count?.toString()??"0")).reduce((r,i)=>r+i),0)?.toLocaleString()},subTitle:{text:"MEMORY",subText:this.formatBytes(e?.map(r=>parseFloat(r.memory?.toString()??"0")).reduce((r,i)=>r+i),2)?.toLocaleString()},data:e?.map(r=>({value:r?.count,name:r?.name}))};this.instanceAndMemoryChart$.data$=yt(t)})}bindDiskAndSpaceChart(){this.diskStats.findLatest().pipe(Wt(this)).subscribe(e=>{const t={title:{text:"DISKS",subText:this.nFormatter(e?.map(r=>parseFloat(r.count?.toString()??"0")).reduce((r,i)=>r+i),0)?.toLocaleString()},subTitle:{text:"STORAGE",subText:this.formatBytes(e?.map(r=>parseFloat(r.size?.toString()??"0")).reduce((r,i)=>r+i),2)?.toLocaleString()},data:e?.map(r=>({value:r?.count,name:r?.name}))};this.diskAndSpaceChart$.data$=yt(t)})}bindIpAddressChart(){this.networkBandwidthStats.findLatest().pipe(Wt(this)).subscribe(e=>{const t={title:{text:"IP ADDRESSES",subText:this.nFormatter(e?.map(r=>parseFloat(r.count?.toString()??"0")).reduce((r,i)=>r+i),0)?.toLocaleString()},subTitle:{text:"AVAILABLE",subText:this.nFormatter(e?.map(r=>parseFloat(r.count?.toString()??"0")).reduce((r,i)=>r+i),0)?.toLocaleString()},data:e?.map(r=>({value:r?.count,name:r?.name}))};this.ipAddressChart$.data$=yt(t)})}bindNetworkUtilizationHistoryChart(e){this.networkBandwidthStats.find({filter:this.prepareDateFilter(e)}).pipe(Wt(this)).subscribe(t=>{const r=Sd.groupBy(t,"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$=yt({series:[{name:"Bandwidth Usage",data:o}]})})}bindStorageUtilizationHistoryChart(e){this.diskStats.find({filter:this.prepareDateFilter(e)}).pipe(Wt(this)).subscribe(t=>{const r=Sd.groupBy(t,"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$=yt({series:[{name:"Memory Usage",data:o}]})})}bindInstanceAndMemoryHistoryChart(e){this.instanceStats.find({filter:this.prepareDateFilter(e)}).pipe(Wt(this)).subscribe(t=>{const r=Sd.groupBy(t,"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$=yt({series:[{name:"Storage Usage",data:o}]})})}formatBytes(e,t=2){if(!+e)return"0 Bytes";const i=t<0?0:t,a=Math.floor(Math.log(e)/Math.log(1e3));return`${parseFloat((e/Math.pow(1e3,a)).toFixed(i))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][a]}`}nFormatter(e,t){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 e>=a.value});return o?(e/o.value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+o.symbol:"0"}prepareDateFilter(e){const{from:t,till:r}=e??{from:void 0,till:void 0};let i={};return t&&r&&(i={"filter[where][date][between][0]":new Date(t).toISOString(),"filter[where][date][between][1]":new Date(r).toISOString()}),i}},Y1.\u0275fac=function(e){return new(e||Y1)(Mt(HK),Mt(zK),Mt(jK))},Y1.\u0275prov=zt({token:Y1,factory:Y1.\u0275fac}),Y1);y4=It([Ze()],y4);const LSt=JSON.parse('{"categories":[{"name":"Store Dynamic API","tableUrl":"https://api.baserow.io/api/database/rows/table/119876/?user_field_names=true"}]}');var X1;let G6=(X1=class{constructor(e){this.http=e,this.config=LSt}parseSpecFromURL(e){var t=this;return le(function*(){return new Promise(function(){var r=le(function*(i,o){try{t.getDataFromBaserow(e.tableUrl).pipe(Wt(t)).subscribe(a=>{i(a)})}catch(a){console.error(a),o(a)}});return function(i,o){return r.apply(this,arguments)}}())})()}getDataFromBaserow(e){const t=(new ma).append("Authorization",`Token ${At.baserow.oracleKey}`).append("Content-Type","application/json");return this.http.get(e,{headers:t}).pipe(Wt(this))}},X1.\u0275fac=function(e){return new(e||X1)(Mt(Ln))},X1.\u0275prov=zt({token:X1,factory:X1.\u0275fac,providedIn:"root"}),X1);var K1;G6=It([Ze({checkProperties:!0})],G6);let W6=(K1=class{constructor(){this.transactionList$=null,this.trendChart$={title:"TRANSACTION HISTORY",type:"transaction",yAxisName:"# of Transactions",tooltip:"Description (in progress)"}}bindTransactionList(e){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"}];e?.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))}}},K1.\u0275fac=function(e){return new(e||K1)},K1.\u0275prov=zt({token:K1,factory:K1.\u0275fac}),K1);W6=It([Ze()],W6);const Qs=new Lt(SX),fM={},GK=we.from(0),WK=we.from(-1);function qK(n,e,t,r){const i={fault:e,operation:t};return void 0!==r&&(i.value=r),Qs.throwError(n,Lt.errors.NUMERIC_FAULT,i)}let pM="0";for(;pM.length<256;)pM+=pM;function q6(n){if("number"!=typeof n)try{n=we.from(n).toNumber()}catch{}return"number"==typeof n&&n>=0&&n<=256&&!(n%1)?"1"+pM.substring(0,n):Qs.throwArgumentError("invalid decimal size","decimals",n)}function C4(n,e){null==e&&(e=0);const t=q6(e),r=(n=we.from(n)).lt(GK);r&&(n=n.mul(WK));let i=n.mod(t).toString();for(;i.length2&&Qs.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>t.length-1&&qK("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==e[a]?l:(typeof e[a]!==s&&Qs.throwArgumentError("invalid fixed format ("+a+" not "+s+")","format."+a,e[a]),e[a]);t=o("signed","boolean",t),r=o("width","number",r),i=o("decimals","number",i)}return r%8&&Qs.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&Qs.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new M_(fM,t,r,i)}}class qa{constructor(e,t,r,i){e!==fM&&Qs.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Lt.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&Qs.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=Kd(this._value,this.format.decimals),r=Kd(e._value,e.format.decimals);return qa.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=Kd(this._value,this.format.decimals),r=Kd(e._value,e.format.decimals);return qa.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=Kd(this._value,this.format.decimals),r=Kd(e._value,e.format.decimals);return qa.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=Kd(this._value,this.format.decimals),r=Kd(e._value,e.format.decimals);return qa.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=qa.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(ZK.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=qa.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(ZK.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&Qs.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=qa.from("1"+pM.substring(0,e),this.format),i=FSt.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(e){return null==e?this._hex:(e%8&&Qs.throwArgumentError("invalid byte width","width",e),bo(we.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return qa.fromString(this._value,e)}static fromValue(e,t,r){return null==r&&null!=t&&!function UPt(n){return null!=n&&(we.isBigNumber(n)||"number"==typeof n&&n%1==0||"string"==typeof n&&!!n.match(/^-?[0-9]+$/)||Bi(n)||"bigint"==typeof n||m_(n))}(t)&&(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),qa.fromString(C4(e,t),M_.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=M_.from(t),i=Kd(e,r.decimals);!r.signed&&i.lt(GK)&&qK("unsigned value cannot be negative","overflow","value",e);let o=null;r.signed?o=i.toTwos(r.width).toHexString():(o=i.toHexString(),o=bo(o,r.width/8));const a=C4(i,r.decimals);return new qa(fM,o,a,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=M_.from(t);if(xn(e).length>r.width/8)throw new Error("overflow");let i=we.from(e);r.signed&&(i=i.fromTwos(r.width));const o=i.toTwos((r.signed?0:1)+r.width).toHexString(),a=C4(i,r.decimals);return new qa(fM,o,a,r)}static from(e,t){if("string"==typeof e)return qa.fromString(e,t);if(m_(e))return qa.fromBytes(e,t);try{return qa.fromValue(e,0,t)}catch(r){if(r.code!==Lt.errors.INVALID_ARGUMENT)throw r}return Qs.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const ZK=qa.from(1),FSt=qa.from("0.5"),YK=new Lt("units/5.7.0"),XK=["wei","kwei","mwei","gwei","szabo","finney","ether"];function KK(n,e){if("string"==typeof e){const t=XK.indexOf(e);-1!==t&&(e=3*t)}return C4(n,e??18)}function JK(n,e){if("string"!=typeof n&&YK.throwArgumentError("value must be a string","value",n),"string"==typeof e){const t=XK.indexOf(e);-1!==t&&(e=3*t)}return Kd(n,e??18)}function w_(n){return KK(n,18)}const b4="abi/5.7.0",Z6=new Lt(b4);class ef{constructor(e,t,r,i){this.name=e,this.type=t,this.localName=r,this.dynamic=i}_throwError(e,t){Z6.throwArgumentError(e,this.localName,t)}}class Y6{constructor(e){Bn(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return Tl(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(Gu(e._data))}writeBytes(e){let t=xn(e);const r=t.length%this.wordSize;return r&&(t=Gu([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=xn(we.from(e));return t.length>this.wordSize&&Z6.throwError("value out-of-bounds",Lt.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Gu([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class M4{constructor(e,t,r,i){Bn(this,"_data",xn(e)),Bn(this,"wordSize",t||32),Bn(this,"_coerceFunc",r),Bn(this,"allowLoose",i),this._offset=0}get data(){return wn(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):M4.coerce(e,t)}_peekBytes(e,t,r){let i=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?i=t:Z6.throwError("data out-of-bounds",Lt.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new M4(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return we.from(this.readBytes(this.wordSize))}}class $St extends ef{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=Ga(t)}catch(r){this._throwError(r.message,t)}return e.writeValue(t)}decode(e){return Ga(bo(e.readValue().toHexString(),20))}}class USt extends ef{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const x_=new Lt(b4);function QK(n,e,t){let r=null;if(Array.isArray(t))r=t;else if(t&&"object"==typeof t){let l={};r=e.map(c=>{const u=c.localName;return u||x_.throwError("cannot encode object for signature with missing names",Lt.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:t}),l[u]&&x_.throwError("cannot encode object for signature with duplicate names",Lt.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:t}),l[u]=!0,t[u]})}else x_.throwArgumentError("invalid tuple value","tuple",t);e.length!==r.length&&x_.throwArgumentError("types/value length mismatch","tuple",t);let i=new Y6(n.wordSize),o=new Y6(n.wordSize),a=[];e.forEach((l,c)=>{let u=r[c];if(l.dynamic){let h=o.length;l.encode(o,u);let p=i.writeUpdatableValue();a.push(g=>{p(g+h)})}else l.encode(i,u)}),a.forEach(l=>{l(i.length)});let s=n.appendWriter(i);return s+=n.appendWriter(o),s}function tJ(n,e){let t=[],r=n.subReader(0);e.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===Lt.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===Lt.errors.BUFFER_OVERRUN)throw s;a=s,a.baseType=o.name,a.name=o.localName,a.type=o.type}null!=a&&t.push(a)});const i=e.reduce((o,a)=>{const s=a.localName;return s&&(o[s]||(o[s]=0),o[s]++),o},{});e.forEach((o,a)=>{let s=o.localName;if(!s||1!==i[s]||("length"===s&&(s="_length"),null!=t[s]))return;const l=t[a];l instanceof Error?Object.defineProperty(t,s,{enumerable:!0,get:()=>{throw l}}):t[s]=l});for(let o=0;o{throw a}})}return Object.freeze(t)}class zSt extends ef{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let r=0;re._data.length&&x_.throwError("insufficient data length",Lt.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let i=0;i{a.dynamic&&(r=!0),i.push(a.type)}),super("tuple","tuple("+i.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach(r=>{e.push(r.defaultValue())});const t=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!==t[o]||("length"===o&&(o="_length"),null==e[o]&&(e[o]=e[i]))}),Object.freeze(e)}encode(e,t){return QK(e,this.coders,t)}decode(e){return e.coerce(this.name,tJ(e,this.coders))}}const Sr=new Lt(b4),J1={};let nJ={calldata:!0,memory:!0,storage:!0},YSt={calldata:!0,memory:!0};function x4(n,e){if("bytes"===n||"string"===n){if(nJ[e])return!0}else if("address"===n){if("payable"===e)return!0}else if((n.indexOf("[")>=0||"tuple"===n)&&YSt[e])return!0;return(nJ[e]||"payable"===e)&&Sr.throwArgumentError("invalid modifier","name",e),!1}function P4(n,e){for(let t in e)Bn(n,t,e[t])}const Ti=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),KSt=new RegExp(/^(.*)\[([0-9]*)\]$/);class Za{constructor(e,t){e!==J1&&Sr.throwError("use fromString",Lt.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),P4(this,t);let r=this.type.match(KSt);P4(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:Za.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(e){if(e||(e=Ti.sighash),Ti[e]||Sr.throwArgumentError("invalid format type","format",e),e===Ti.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(e)))),JSON.stringify(r)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==Ti.sighash&&(t+=this.type),t+="("+this.components.map(r=>r.format(e)).join(e===Ti.full?", ":",")+")"):t+=this.type,e!==Ti.sighash&&(!0===this.indexed&&(t+=" indexed"),e===Ti.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?Za.fromString(e,t):Za.fromObject(e)}static fromObject(e){return Za.isParamType(e)?e:new Za(J1,{name:e.name||null,type:P_(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(Za.fromObject):null})}static fromString(e,t){return function r(i){return Za.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}(function XSt(n,e){let t=n;function r(s){Sr.throwArgumentError(`unexpected character at position ${s}`,"param",n)}function i(s){let l={type:"",name:"",parent:s,state:{allowType:!0}};return e&&(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)),e.name);case"":return new WSt(e.name)}let t=e.type.match(e4t);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&O4.throwArgumentError("invalid "+t[1]+" bit length","param",e),new qSt(r/8,"int"===t[1],e.name)}if(t=e.type.match(t4t),t){let r=parseInt(t[1]);return(0===r||r>32)&&O4.throwArgumentError("invalid bytes length","param",e),new GSt(r,e.name)}return O4.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new M4(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new Y6(this._getWordSize())}getDefaultValue(e){const t=e.map(i=>this._getCoder(Za.from(i)));return new w4(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&O4.throwError("types/values length mismatch",Lt.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map(a=>this._getCoder(Za.from(a))),i=new w4(r,"_"),o=this._getWriter();return i.encode(o,t),o.data}decode(e,t,r){const i=e.map(a=>this._getCoder(Za.from(a)));return new w4(i,"_").decode(this._getReader(xn(t),r))}};var ao,O_=(()=>(function(n){n.BuyViews="buy-views"}(O_||(O_={})),O_))();!function(n){let e;var r;let t;(r=e=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",r.Top="Top",r.Bottom="Bottom"}(t=n.Placement||(n.Placement={}))}(ao||(ao={}));let sJ=(()=>{class n{transform(t){return this.formatBytes(parseInt(t))}formatBytes(t){if(0===t)return"0 Bytes";const s=Math.floor(Math.log(t)/Math.log(1024));return parseFloat((t/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=Po({name:"formatBytes",type:n,pure:!1}),n})();var Q1;let X6=(Q1=class{constructor(e){this.nftPayFormDummy={name:"Title in 100 characters or less",description:"Lorem Ipsum in 1,000 characters or less",supply:1,supplyIndex:1,mintPrice:1,incentive:{totalDiscount:.0012734123805000002,storeStamp:{color:ao.Color.Black,placement:ao.Placement.Left,discountPercentage:.1,discount:.0006367061902500001},nftAddressStamp:{color:ao.Color.Black,placement:ao.Placement.Middle,discountPercentage:.05,discount:.00031835309512500006},supplyCountStamp:{color:ao.Color.Silver,placement:ao.Placement.Right,discountPercentage:.05,discount:.00031835309512500006}},image:"../../assets/nft/store-it.jpg",size:{metadata:558243,content:54e3},maxViews:At.maxViewsForNFT,fees:{storeCloudVMFee:0,storeChainVMFee:0,totalFees:0,platformFee:0,costOfCompute:0,permanentStorage:0},prices:{costOfCompute:0,permanentStorage:0,productionCostYearly:0,platformFeePercentage:At.platformFee,token:{$store:0,usd:0,eth:0,btc:0,bits:0,bytes:0}},id:"showcase",network:lr.STORE},this.whiteIncentive={totalDiscount:.0012734123805000002,storeStamp:{color:ao.Color.White,placement:ao.Placement.Left,discountPercentage:.1,discount:.0006367061902500001},nftAddressStamp:{color:ao.Color.White,placement:ao.Placement.Middle,discountPercentage:.05,discount:.00031835309512500006},supplyCountStamp:{color:ao.Color.Gold,placement:ao.Placement.Right,discountPercentage:.05,discount:.00031835309512500006}},this.prepareDummyNFTList(e??4)}prepareDummyNFTList(e){const t=JSON.parse(JSON.stringify(Array(6).fill(this.nftPayFormDummy)));t[0].supply=1,t[0].mintPrice=5,t[0].image="../../assets/nft/nft-1.jpg",t[1].supply=3,t[1].mintPrice=4,t[1].image="../../assets/nft/nft-2.jpg",t[1].incentive=this.whiteIncentive,t[2].supply=1,t[2].mintPrice=3,t[2].image="../../assets/nft/nft-3.jpg",t[3].supply=10,t[3].mintPrice=2,t[3].image="../../assets/nft/nft-4.jpg",t[3].incentive=this.whiteIncentive,t[4].supply=1,t[4].mintPrice=1,t[4].image="../../assets/nft/nft-11.jpg",t[4].incentive=this.whiteIncentive,t[5].supply=1,t[5].mintPrice=.5,t[5].image="../../assets/nft/store-it.jpg",t[5].incentive=this.whiteIncentive,this.latestNFTStored=t?.slice(0,e);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,e);for(let i=1;i1)},me={disabled:!t?.incentive,label:"Incentives ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},lt={disabled:!t?.distribution,label:"Distribution ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},gt={disabled:!t?.royalty,label:"Royalties ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},St={disabled:!t?.payPerView,label:"Pay-Per-View ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},Te=p?.subItems?.value+a?.subItems?.value,hn={label:"Total Cost",tooltip:"Description (in progress)",type:"number",valueIcon:"store-logo-only",value:i.sharedStatsService.convertUSDIntoRates(Te)?.$store,symbol:"STORE",subItems:{type:"currency",value:Te,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},Pn=i.prepareIPFSData("showcase"===t?.id?"bafkreiatl6zspgmmh5f5u7znhi2zzxypewffmwaqxpd757i25i3ig6b7va":t.ipfsId,r),Vr={label:"STORE ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:`${At.externalURL.explorer_app}/${lr.STORE}/${o}`,link:`${At.externalURL.explorer_app}/${lr.STORE}/${o}`,externalLink:!0,openInExistingTab:!0,copy:!0,trimSize:40,trimSizeMobile:30},$r={icon:"store-logo-only",label:"NFT Owner",tooltip:"Description (in progress)",type:"hash",value:e?.from,cssClass:"text-black-light",externalLink:!1,copy:!0,...r},Xe=i.sharedStatsService.convertUSDIntoRates(t?.fees?.costOfCompute);return{asset:Q,totalSupply$:Ft,serialNumber$:Rt,mintPrice$:a,value$:s,type$:{label:"Transaction Type",tooltip:"Description (in progress)",type:"string",value:"Mint",cssClass:"text-black-light"},cloudSpaceFees$:p,status$:x,timeStamp$:S,blockTime$:P,feeSurge$:c,blockspaceFee$:u,burntFee$:g,from$:v,to$:_,nonce$:N,signature$:R,transId$:C,blockId$:y,contractId:ut,incentiveId:me,distributionId:lt,royaltiesId:gt,payPerViewId:St,tokenId$:{label:"Token ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"1x12345"},assetId:K,appId:{label:"App ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"STORE Explorer (1x12345)"},assetSize:rt,foreeverStoreOn:z,governedBy:$,incentivizedBy:W,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$:hn,ipfsId:Pn,storeId$:Vr,owner$:$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",link:"https://medium.com/codechain/why-n-3f-1-in-the-byzantine-fault-tolerance-system-c3ca6bab8fe9",externalLink:!0,withOutIdLink:!0,subItems:{type:"string",cssClass:"text-black-light",value:"Byzantine Fault Tolerant"}},costOfCompute:{label:"Production Cost",tooltip:"Description (in progress)",cssClass:"text-black-light",type:"number",valueIcon:"store-logo-only",value:Math.round(Xe?.bits??0),symbol:"bits",subItems:{type:"currency",value:Xe?.usd,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},productionCostPercentage:{label:"% of Production Cost",tooltip:"Description (in progress)",type:"short-number",symbol:"%",cssClass:"text-black-light",decimal:{force:!1,count:12},value:t?.prices?.productionCostYearly?ir(Xe?.usd).div(t?.prices?.productionCostYearly??0):0},maxViewsData$:{label:"Maximum Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",value:t?.maxViews??At.maxViewsForNFT,subItems:{type:"currency",value:0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},viewsData$:{label:"# of Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold "+(At.bandwidthViewCheckEnabled?"red":""),value:At.bandwidthViewCheckEnabled?t?.maxViews??At.maxViewsForNFT:0,parentCssClass:"d-flex-justify-space-between",subItems:"showcase"!==o?{type:"string",cssClass:"btn-primary text-black-light bold white",value:"Buy Views",event:!0,eventType:O_.BuyViews}:{}}}})()}bindETHTransactionDetail(e,t,r,i){var o=this;return le(function*(){const a={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)*o.sharedStatsService.storePrice.usd,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},s=we.from(t?.gasPrice).toNumber(),l=parseFloat(w_((s*we.from(t.gasUsed).toNumber()).toString())),c={label:"Transaction Fee",tooltip:"Description (in progress)",type:"short-number",valueIcon:"network_icon/ethereum-eth",value:l||0,symbol:"Ether",decimal:{force:!1,count:14},subItems:{type:"currency",value:t?.usdExRate*l||0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},u={label:"Gas Price",tooltip:"Description (in progress)",valueIcon:"network_icon/ethereum-eth",type:"short-number",value:parseFloat(KK(s,"gwei"))||0,symbol:"Gwei",cssClass:"text-black-light",decimal:{force:!1,count:8},subItems:{type:"short-number",value:parseFloat(w_(s))||0,cssClass:"text-light",preSymbol:"(",symbol:"Ether)",decimal:{force:!1,count:14}}},h=o.sharedStatsService.convertUSDIntoRates(r?.fees?.storeCloudVMFee??0),p={label:"Cloud VM Fees",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"number",value:Math.round(h?.bits),symbol:"bits",cssClass:"text-black-light",subItems:{type:"currency",value:h?.usd,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},g={icon:"network_icon/ethereum-eth",label:"NFT Owner",tooltip:"Description (in progress)",type:"hash",value:t?.from,link:`${At.wallet.etherscanURL}/address/${t?.from}`,cssClass:"text-black-light",externalLink:!0,copy:!0,...i},v={icon:"network_icon/ethereum-eth",label:"Block ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:we.from(t?.blockNumber).toBigInt(),link:At.wallet.etherscanURL+"/block/"+we.from(t?.blockNumber).toBigInt(),externalLink:!0},_={icon:"network_icon/ethereum-eth",label:"Transaction ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:t?.hash,link:`${At.wallet.etherscanURL}/tx/${t?.hash}`,externalLink:!0,...i},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:At.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0},C={label:"Timestamp",tooltip:"Description (in progress)",type:"time",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon align-center",value:new Date(1e3*t?.timestamp),disabled:!t?.timestamp,subItems:{type:"date-time",value:new Date(1e3*t?.timestamp),preSymbol:"(",symbol:")",cssClass:"text-black-light d-flex-end"}},x={label:"Forever Stored on",tooltip:"Description (in progress)",type:"string",link:At.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Cloud"},P={label:"Governed by",tooltip:"Description (in progress)",type:"string",link:At.externalURL.explorer_app+"/governance",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Governance"},S={label:"Incentivized by",tooltip:"Description (in progress)",type:"string",link:At.externalURL.explorer_app+"/monetary-policy",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Monetary Policy"},N=o.prepareIPFSData(r.ipfsId,i),R={label:"STORE ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:`${At.externalURL.explorer_app}/ethereum/${e}`,link:`${At.externalURL.explorer_app}/ethereum/${e}`,externalLink:!0,copy:!0,trimSize:40,trimSizeMobile:30},z={label:"NFT Asset",tooltip:"Description (in progress)",type:"asset",cssClass:"text-black-light",value:r},$={label:"Asset Size",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:o.formatBytes.transform(r?.size?.content+r?.size?.metadata)||"00.00 MB"},W={icon:"network_icon/ethereum-eth",label:"Contract ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:At.contract.address,externalLink:!0,link:`${At.wallet.etherscanURL}/address/${At.contract.address}`,...i},K={label:"Total Supply",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:r?.supply||1},Q={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)},rt={disabled:!r?.incentive,label:"Incentives ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...i},ut={disabled:!r?.distribution,label:"Distribution ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...i},xt={disabled:!r?.royalty,label:"Royalties ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...i},Ft={disabled:!r?.payPerView,label:"Pay-Per-View ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...i},gt=p?.subItems?.value+a?.subItems?.value+c?.subItems?.value+u?.subItems?.value,St={label:"Total Cost",tooltip:"Description (in progress)",type:"number",valueIcon:"store-logo-only",value:o.sharedStatsService.convertUSDIntoRates(gt)?.$store,symbol:"STORE",subItems:{type:"currency",value:gt,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},re=o.sharedStatsService.convertUSDIntoRates(r?.fees?.costOfCompute);return{asset:z,totalSupply$:K,serialNumber$:Q,mintPrice$:a,fee$:c,cloudSpaceFees$:p,status$:y,timeStamp$:C,gasPrice$:u,owner$:g,transId$:_,blockId$:v,contractId:W,incentiveId:rt,distributionId:ut,royaltiesId:xt,payPerViewId:Ft,storeId$:R,ipfsId:N,appId:{label:"App ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"STORE Explorer (1x00001)"},assetSize:$,foreeverStoreOn:x,governedBy:P,incentivizedBy:S,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$:St,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",link:"https://medium.com/codechain/why-n-3f-1-in-the-byzantine-fault-tolerance-system-c3ca6bab8fe9",externalLink:!0,withOutIdLink:!0,subItems:{type:"string",cssClass:"text-black-light",value:"Byzantine Fault Tolerant"}},costOfCompute:{label:"Production Cost",tooltip:"Description (in progress)",cssClass:"text-black-light",type:"number",valueIcon:"store-logo-only",value:Math.round(re?.bits??0),symbol:"bits",subItems:{type:"currency",value:re?.usd,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},productionCostPercentage:{label:"% of Production Cost",tooltip:"Description (in progress)",type:"short-number",cssClass:"text-black-light",symbol:"%",decimal:{force:!1,count:12},value:ir(re?.usd).div(r?.prices?.productionCostYearly)},maxViewsData$:{label:"Maximum Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",value:r?.maxViews??At.maxViewsForNFT,subItems:{type:"currency",value:0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},viewsData$:{label:"# of Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold "+(At.bandwidthViewCheckEnabled?"red":""),value:At.bandwidthViewCheckEnabled?r?.maxViews??At.maxViewsForNFT:0,parentCssClass:"d-flex-justify-space-between",subItems:{type:"string",cssClass:"btn-primary light-radius text-black-light bold white",value:"Buy Views",event:!0,eventType:O_.BuyViews}},tokenId$:{label:"Token ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t?.tokenId,link:`${At.wallet.etherscanURL}/token/${t?.to}?a=${t?.tokenId}`,openInExistingTab:!1,externalLink:!0}}})()}getEthTransactionById(e){var t=this;return le(function*(){const r=yield t.getETH_TransactionReceiptByHashFromEtherscan(e);if(!r)return{eth_txn:null,eth_txnRecpt:null};const i=yield t.getETH_TransactionByHashFromEtherscan(e);if(!i)return{eth_txn:null,eth_txnRecpt:null};const o=yield t.getETH_BlockByNoFromEtherscan(i?.blockNumber?.toString()),s=(yield t.sharedStatsService.getEtherPrice())||0,l=r4t.decode(["string","string","string"],Cs(i?.input,4));return i&&(i.timestamp=we.from(o?.timestamp).toNumber(),i.usdExRate=s,i.gasUsed=r?.gasUsed,i.data=l,i.logs=r?.logs,i.tokenId=we.from(r?.logs?.[0]?.topics?.[3]).toNumber()),{eth_txn:i,eth_txnRecpt:r}})()}getMetaData(e,t){var r=this;return le(function*(){const i=yield r.getFromIPFS(e),a=i?.supply?.find(l=>l.supplyIndex===t)?.ipfsId??i?.supply?.[0]?.ipfsId,s=yield r.getFromIPFS(a);return s.ipfsId=a,s.storeId=i.storeId,{metadata:s,storeId:i.storeId}})()}getFromIPFS(e){var t=this;return le(function*(){const r=`${At.ipfs.main_url}/${e}?x-ipfs-companion-no-redirect`;return yield Co(t.http.get(r))})()}prepareIPFSData(e,t={}){const r=(i,o)=>({type:"hash",cssClass:"text-black-light",preSymbolCssClass:"mr-minus-0",preSymbol:`IPFS Server ${i}: `,value:` ${o}/${e}`,link:`${o}/${e}`,externalLink:!0,copy:!0,...t});return{label:"IPFS ID",tooltip:"Description (in progress)",direction:"column",...r(1,At.ipfs.astore_url),subItems:{...r(2,At.ipfs.bstore_url),subItems:{...r(3,At.ipfs.cstore_url),subItems:{...r(4,At.ipfs.dstore_url),subItems:{...r(5,At.ipfs.estore_url)}}}}}}},tm.\u0275fac=function(e){return new(e||tm)(Mt(Ln),Mt(cc))},tm.\u0275prov=zt({token:tm,factory:tm.\u0275fac}),tm);var S_;function i4t(n,e){if(1&n&&st(0,"storecloud-tooltip",19),2&n){const t=et(3);D("tooltip",null==t.table$?null:t.table$.tooltip)}}S4=It([Ze()],S4);const o4t=function(){return{class:"card-desktop"}};function a4t(n,e){if(1&n&&(M(0,"div",15),d(1,"\n "),M(2,"p",16),d(3),Y(4,i4t,1,1,"storecloud-tooltip",17),d(5,"\n "),w(),d(6,"\n "),Et(7,18),d(8,"\n "),kt(),d(9,"\n "),w()),2&n){const t=et(2),r=ue(47);T(3),Ie("\n ",null==t.table$?null:t.table$.title,"\n "),T(1),D("ngIf",null==t.table$?null:t.table$.tooltip),T(3),D("ngTemplateOutlet",r)("ngTemplateOutletContext",$e(4,o4t))}}function s4t(n,e){if(1&n&&st(0,"storecloud-shared-table-pagination",20),2&n){const t=et(2);D("tableService",t.tableService)("total$",t.total$)}}function l4t(n,e){if(1&n&&(M(0,"div",12),d(1,"\n "),Y(2,a4t,10,5,"div",13),d(3,"\n "),Y(4,s4t,1,2,"storecloud-shared-table-pagination",14),d(5,"\n "),w()),2&n){const t=et();T(2),D("ngIf",null==t.table$?null:t.table$.title),T(2),D("ngIf",!(null!=t.table$&&t.table$.disablePagination))}}function c4t(n,e){if(1&n&&(M(0,"storecloud-tooltip",19),d(1," "),w()),2&n){const t=et(2).$implicit;D("tooltip",null==t?null:t.tooltip)}}function u4t(n,e){if(1&n&&(Et(0),d(1,"\n "),M(2,"span"),d(3),Y(4,c4t,2,1,"storecloud-tooltip",17),d(5,"\n "),w(),d(6,"\n "),kt()),2&n){const t=et().$implicit;T(3),Ie("",null==t?null:t.label,"\n "),T(1),D("ngIf",null==t?null:t.tooltip)}}function d4t(n,e){if(1&n&&(Et(0),d(1),kt()),2&n){const t=et().$implicit;T(1),Ie("\n ",null==t?null:t.label,"\n ")}}const h4t=function(n){return{width:n}};function f4t(n,e){if(1&n){const t=rr();M(0,"th",21),ie("sort",function(i){return An(t),Dn(et().onSort(i))}),d(1,"\n "),Y(2,u4t,7,2,"ng-container",8),d(3,"\n "),Y(4,d4t,2,1,"ng-container",8),d(5,"\n "),w()}if(2&n){const t=e.$implicit;Sh(null==t?null:t.cssClass),So("sortable",null==t?null:t.key),D("ngStyle",Ae(7,h4t,(null==t?null:t.width)||"auto")),T(2),D("ngIf",null==t?null:t.tooltip),T(2),D("ngIf",!(null!=t&&t.tooltip))}}const p4t=function(n,e,t){return{height:n,stateCount:e,icon:t}},K6=function(n){return{setting:n}};function g4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,18),d(3,"\n "),kt()),2&n){const t=et().$implicit,r=et(),i=ue(41);T(2),D("ngTemplateOutlet",i)("ngTemplateOutletContext",Ae(6,K6,function i7(n,e,t,r,i,o){return l7(Zt(),La(),n,e,t,r,i,o)}(2,p4t,null==r.table$?null:r.table$.loadingHeight,null==t?null:t.stateCount,null==t?null:t.icon)))}}function m4t(n,e){if(1&n&&st(0,"storecloud-shared-value-formatter",26),2&n){const t=et().$implicit;D("item",t)("cssClass",null==t?null:t.cssClass)("iconSize",14)}}function v4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,m4t,1,3,"storecloud-shared-value-formatter",25),d(3,"\n "),kt()),2&n){const t=e.$implicit;T(2),D("ngIf",t)}}function _4t(n,e){if(1&n&&(Et(0),d(1,"\n "),M(2,"td"),d(3,"\n "),M(4,"div",23),d(5,"\n "),M(6,"storecloud-shared-value-formatter",24),d(7,"\n "),w(),d(8,"\n "),Y(9,v4t,4,1,"ng-container",22),d(10,"\n "),w(),d(11,"\n "),w(),d(12,"\n "),kt()),2&n){const t=e.$implicit,r=et(2).$implicit,i=et();let o;T(2),Kf("",null==t?null:t.cssClass," ",null==t?null:t.type,""),T(4),D("item",i.prepareItem(t,r[null==t?null:t.key]))("iconSize",null!==(o=null==r[null==t?null:t.key]?null:r[null==t?null:t.key].valueIconSize)&&void 0!==o?o:14),T(3),D("ngForOf",i.getAllSubItems(i.prepareItem(t,r[null==t?null:t.key])))}}function y4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,_4t,13,7,"ng-container",22),d(3,"\n "),kt()),2&n){const t=et(2);T(2),D("ngForOf",null==t.table$?null:t.table$.columns)}}function C4t(n,e){if(1&n&&(M(0,"tr"),d(1,"\n "),Y(2,g4t,4,8,"ng-container",8),d(3,"\n "),Y(4,y4t,4,1,"ng-container",8),d(5,"\n "),w()),2&n){const t=e.$implicit;T(2),D("ngIf",null==t?null:t.stateCount),T(2),D("ngIf",!(null!=t&&t.stateCount))}}const lJ=function(n){return{height:n}};function b4t(n,e){if(1&n&&(M(0,"td",28),d(1,"\n "),Hn(2,18),d(3,"\n "),w()),2&n){const t=et(3),r=ue(44);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(4,K6,Ae(2,lJ,null==t.table$?null:t.table$.loadingHeight)))}}function M4t(n,e){if(1&n&&(M(0,"tr"),d(1,"\n "),Y(2,b4t,4,6,"td",27),d(3,"\n "),w()),2&n){const t=et(2);T(2),D("ngForOf",null==t.table$?null:t.table$.columns)("ngForTrackBy",t.trackByFuntion)}}function w4t(n,e){if(1&n&&(M(0,"tbody"),d(1,"\n "),Y(2,M4t,4,2,"tr",22),d(3,"\n "),w()),2&n){const t=et();T(2),D("ngForOf",t.convertPageSizeIntoArray(null==t.tableService?null:t.tableService.pageSize))}}function x4t(n,e){1&n&&(M(0,"tbody"),d(1,"\n "),M(2,"tr"),d(3,"\n "),M(4,"td",29),d(5,"No record exist"),w(),d(6,"\n "),w(),d(7,"\n "),w())}function P4t(n,e){if(1&n&&(M(0,"div",34),d(1,"\n "),st(2,"storecloud-icon",35),d(3,"\n "),w()),2&n){const t=et(2).setting;T(2),D("icon",null==t?null:t.icon)("size",18)}}function O4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Et(2,18),d(3,"\n "),kt(),d(4,"\n "),kt()),2&n){const t=et(3),r=ue(44);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(4,K6,Ae(2,lJ,null==t.table$?null:t.table$.loadingHeight)))}}function S4t(n,e){if(1&n&&(M(0,"td",32),d(1,"\n "),Y(2,P4t,4,2,"div",33),d(3,"\n "),Y(4,O4t,5,6,"ng-container",8),d(5,"\n "),w()),2&n){const t=e.index;T(2),D("ngIf",0===t),T(2),D("ngIf",t>0)}}function T4t(n,e){if(1&n&&(d(0,"\n "),Et(1,30),d(2,"\n "),Y(3,S4t,6,2,"td",31),d(4,"\n "),kt(),d(5,"\n")),2&n){const t=et();T(3),D("ngForOf",null==t.table$?null:t.table$.columns)("ngForTrackBy",t.trackByFuntion)}}const A4t=function(){return{display:"contents"}},D4t=function(n){return{"margin-top":"5px","margin-bottom":"5px",height:n}};function I4t(n,e){if(1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",36),d(2,"\n")),2&n){const t=e.setting;T(1),D("ngStyle",$e(2,A4t))("theme",Ae(3,D4t,((null==t?null:t.height)||29.5)+"px"))}}function E4t(n,e){if(1&n&&(M(0,"storecloud-shared-table-status-filter",38),d(1,"\n "),w()),2&n){const t=et().class,r=et();Sh(t),D("tableService",r.tableService)("filter",null==r.table$?null:r.table$.filters)}}function k4t(n,e){if(1&n&&(d(0,"\n "),Y(1,E4t,2,5,"storecloud-shared-table-status-filter",37),d(2,"\n")),2&n){const t=et();T(1),D("ngIf","status"===(null==t.table$||null==t.table$.filters?null:t.table$.filters.type))}}const R4t=function(n){return{card:n}};let em=(S_=class{set refresh$(e){e.pipe(Wt(this)).subscribe(t=>{if((t.state===zi.State.Requested||t.state===zi.State.Block_Added||t.state===zi.State.Network_Updated)&&("block"===this.table$?.type||"transaction"===this.table$?.type)&&t?.count&&1===this.tableService?.page){const r=this.putIntoStateChangeLoading(this.table$?.type,t);this.result=r}this.tableService&&t.state===zi.State.Completed&&(this.tableService.disableResetData=t?.disableLoading||!1,this.tableService.searchTerm="")})}set data$(e){e?.pipe(Wt(this)).subscribe(t=>{this.result=t,this.tableService&&0===t.length&&(this.tableService.loading=!1)})}set table$(e){this._table$=e,this.tableService=new H6(this.http,e?.data$,e?.serviceAPIUrl,e?.map),this.tableService.pageSize=e?.pageSize||8,this.tableService.data$.pipe(Wt(this)).subscribe(t=>{this.tableService&&(this.tableService.disableResetData=!1),this.result=t}),this.total$=this.tableService.numOfPages$.pipe(Wt(this))}get table$(){return this._table$}constructor(e){this.http=e,this.tableCssClass=null,this.disabledCardClass=!1,this.total$=null,this._table$=null}trackByFuntion(e,t){return t?.from??t?.to??e?.id}prepareItem(e,t){return"progress-status"===e?.type||"block-status"===e?.type?{type:e?.type,value:t}:"custom-col"===e?.type?{...e,...t,link:e?.link||t?.link?e?.withOutIdLink?e?.valueLink?t?.value:e?.link||t?.link:`${e?.link||t?.link}/${t?.value}`:null}:{...e,value:t,link:e?.link?e?.withOutIdLink?e?.valueLink?t:e?.link:`${e?.link}/${t}`:null}}onSort({}){}convertPageSizeIntoArray(e){return Array(e??8).fill(!0)}getAllSubItems(e){return this.getAllSubItemsChildren(e)}getAllSubItemsChildren(e){const t=[],r=e?.subItems;if(t.push(r),r?.subItems){const i=this.getAllSubItemsChildren(r);t.push(...i)}return t}putIntoStateChangeLoading(e,t){let r=this.result||[];const i=r?.length||0;r=t?.state===zi.State.Requested?r?.slice(0,i-(t?.count?.[e]&&t?.count?.[e]>i?i:t?.count?.[e]||0)):r?.filter(l=>!l?.stateCount);const a=t?.count?.[e]>i?i:t?.count?.[e];let s="box_animated";switch(t?.state){case zi.State.Requested:s="block"===e?"box_animated":"clock_animated";break;case zi.State.Block_Added:case zi.State.Network_Updated:s="box_animated"}for(let l=0;l{class n{constructor(){this.cloudSpaceFee={store:0,usd:0}}set size(t){this.calculateGasFee(t)}calculateGasFee(t){const a=t/At.one$STOREEqualToOneByte,s=a*At.storePriceUSD;this.cloudSpaceFee.store=a||0,this.cloudSpaceFee.usd=s||0}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["storecloud-cloudspace-fee"]],inputs:{size:"size"},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(t,r){1&t&&(M(0,"div",0),d(1,"\n "),M(2,"div",1),d(3,"\n "),st(4,"storecloud-icon",2),d(5,"\n "),M(6,"h1"),d(7,"Cloud VM Fee"),w(),d(8,"\n "),st(9,"storecloud-tooltip",3),d(10,"\n "),w(),d(11,"\n "),M(12,"div",4),d(13,"\n "),st(14,"storecloud-icon",2),d(15,"\n "),M(16,"h2"),d(17),he(18,"number"),w(),d(19,"\n "),M(20,"p"),d(21),he(22,"currency"),w(),d(23,"\n "),M(24,"p"),d(25,"(+1.00x Mint Price)"),w(),d(26,"\n "),w(),d(27,"\n"),w(),d(28,"\n")),2&t&&(T(4),D("icon","store-logo-only")("size",14),T(5),D("tooltip","Description in Progress")("placement","top-start"),T(5),D("icon","store-logo-only")("size",14),T(3),Ve(pa(18,8,(null==r.cloudSpaceFee?null:r.cloudSpaceFee.store)||0,"1.4-12")),T(4),Ie("(",Md(22,11,(null==r.cloudSpaceFee?null:r.cloudSpaceFee.usd)||0,"USD","symbol","1.4-12"),")"))},dependencies:[Aa,ac,Eh,nC],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 T_;function N4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,8),d(3,"\n "),kt()),2&n){et();const t=ue(14);T(2),D("ngTemplateOutlet",t)}}const cJ=function(n){return{item:n}};function L4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Et(2,13),d(3,"\n "),kt(),d(4,"\n "),kt()),2&n){const t=e.ngIf;et(6);const r=ue(17);T(2),D("ngTemplateOutletContext",Ae(2,cJ,t))("ngTemplateOutlet",r)}}function F4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,L4t,5,4,"ng-container",9),he(3,"async"),d(4,"\n "),kt()),2&n){const t=e.$implicit;et(5);const r=ue(20);T(2),D("ngIf",Ye(3,2,t))("ngIfElse",r)}}function B4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,F4t,5,4,"ng-container",10),d(3,"\n "),kt()),2&n){const t=et().$implicit;T(2),D("ngForOf",null==t?null:t.items$)}}const V4t=function(){return{enable:!0}};function $4t(n,e){if(1&n){const t=rr();Et(0),d(1,"\n "),M(2,"div",11),ie("click",function(){const o=An(t).$implicit;return Dn(o.show=!(null!=o&&o.show))}),d(3,"\n "),M(4,"p",12),d(5),w(),d(6,"\n "),Et(7,13),d(8,"\n "),kt(),d(9,"\n "),w(),d(10,"\n "),M(11,"div",14),d(12,"\n "),Y(13,B4t,4,1,"ng-container",2),d(14,"\n "),w(),d(15,"\n\n "),kt()}if(2&n){const t=e.$implicit;et(3);const r=ue(26);T(2),Ei("basic d-flex-g-14 b-0 clickable data-div ",t.show?"active":"",""),T(3),Ve(null==t?null:t.name),T(2),D("ngTemplateOutletContext",$e(7,V4t))("ngTemplateOutlet",r),T(6),D("ngIf",t.show)}}function U4t(n,e){if(1&n&&(Et(0),d(1,"\n\n "),d(2,"\n "),Y(3,$4t,16,8,"ng-container",10),d(4,"\n "),kt()),2&n){const t=et(2);T(3),D("ngForOf",null==t.stats$?null:t.stats$.groupedItems)}}function z4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,U4t,5,1,"ng-container",9),d(3,"\n "),kt()),2&n){const t=et(),r=ue(20);T(2),D("ngIf",null==t.stats$?null:t.stats$.groupedItems)("ngIfElse",r)}}function H4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Hn(2,13),d(3,"\n "),kt()),2&n){const t=e.ngIf;et(3);const r=ue(17);T(2),D("ngTemplateOutletContext",Ae(2,cJ,t))("ngTemplateOutlet",r)}}function j4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,H4t,4,4,"ng-container",9),he(3,"async"),d(4,"\n "),kt()),2&n){const t=e.$implicit;et(2);const r=ue(20);T(2),D("ngIf",Ye(3,2,t))("ngIfElse",r)}}function G4t(n,e){if(1&n&&(d(0),he(1,"json"),Y(2,j4t,5,4,"ng-container",10),d(3,"\n")),2&n){const t=et();Ie("\n ",Ye(1,2,null==t.stats$?null:t.stats$.items),"\n "),T(2),D("ngForOf",null==t.stats$?null:t.stats$.items$)}}function W4t(n,e){if(1&n&&st(0,"storecloud-tooltip",19),2&n){const t=et(2).item;D("placement","top-end")("tooltip",null==t?null:t.tooltip)}}function q4t(n,e){if(1&n&&st(0,"storecloud-icon",20),2&n){const t=et(2).item;D("icon",null==t?null:t.icon)("size",14)}}function Z4t(n,e){if(1&n&&st(0,"storecloud-tooltip",19),2&n){const t=et(2).item;D("placement","top-end")("tooltip",null==t?null:t.tooltip)}}function Y4t(n,e){if(1&n){const t=rr();M(0,"storecloud-shared-value-formatter",21),ie("click",function(){An(t);const i=et().$implicit;return Dn(et(4).clicked(i))}),w()}if(2&n){const t=et().$implicit;D("cssClass",null==t?null:t.cssClass)("iconSize",14)("item",t)}}function X4t(n,e){if(1&n&&st(0,"storecloud-tooltip",19),2&n){const t=et(4).item;D("placement","top-end")("tooltip",null==t?null:t.valueTooltip)}}function K4t(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,Y4t,1,3,"storecloud-shared-value-formatter",22),d(3,"\n "),Y(4,X4t,1,2,"storecloud-tooltip",16),d(5,"\n "),kt()),2&n){const t=e.$implicit,r=et(3).item;T(2),D("ngIf",t),T(2),D("ngIf",null==r?null:r.valueTooltip)}}function J4t(n,e){if(1&n){const t=rr();M(0,"div"),d(1,"\n "),M(2,"storecloud-shared-value-formatter",21),ie("click",function(){An(t);const i=et(2).item;return Dn(et().clicked(i))}),w(),d(3,"\n\n "),Y(4,K4t,6,2,"ng-container",10),d(5,"\n "),w()}if(2&n){const t=et(2).item,r=et();Kf("d-flex g-1-half flex-basis-80 ",null==t?null:t.parentCssClass," ","column"===(null==t?null:t.direction)?"d-flex-column":"",""),T(2),D("cssClass",(null==t?null:t.cssClass)||"text-black")("iconSize",14)("item",t),T(2),D("ngForOf",r.getAllSubItems(t))}}const Q4t=function(n){return{nft:n}};function tTt(n,e){if(1&n&&(M(0,"div",23),d(1,"\n "),Hn(2,13),d(3,"\n "),w()),2&n){const t=et(2).item;et();const r=ue(23);T(2),D("ngTemplateOutletContext",Ae(2,Q4t,null==t?null:t.value))("ngTemplateOutlet",r)}}function eTt(n,e){if(1&n&&(M(0,"div"),d(1,"\n "),M(2,"div"),d(3,"\n "),M(4,"p"),d(5,"\n "),Y(6,W4t,1,2,"storecloud-tooltip",16),d(7,"\n "),Y(8,q4t,1,2,"storecloud-icon",17),d(9),Y(10,Z4t,1,2,"storecloud-tooltip",16),d(11,"\n "),w(),d(12,"\n "),Y(13,J4t,6,8,"div",15),d(14,"\n "),Y(15,tTt,4,4,"div",18),d(16,"\n "),w(),d(17,"\n "),w()),2&n){const t=et().item,r=et();Kf("d-flex-g-14 ",r.type," ",r.enableBorderOnLast?"border-last":"",""),T(2),Ei("data-div ","asset"===(null==t?null:t.type)?"align-start":"",""),T(2),Ei("",null!=t&&t.labelCssClass?null==t?null:t.labelCssClass:"text-black"," d-flex flex-basis-20"),T(2),D("ngIf","basic"===r.type&&(null==t?null:t.tooltip)),T(2),D("ngIf",null==t?null:t.icon),T(1),Ie("\n ",null==t?null:t.label,"\n "),T(1),D("ngIf","nft-view"===r.type&&(null==t?null:t.tooltip)),T(3),D("ngIf","asset"!==(null==t?null:t.type)),T(2),D("ngIf","asset"===(null==t?null:t.type))}}function nTt(n,e){if(1&n&&(d(0,"\n "),Y(1,eTt,18,16,"div",15),d(2,"\n")),2&n){const t=e.item;T(1),D("ngIf",!(null!=t&&t.disabled))}}const rTt=function(){return{display:"block",padding:"0 15px"}},iTt=function(){return{"margin-top":"8px",height:"25px"}};function oTt(n,e){if(1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",24),d(2,"\n")),2&n){const t=et();T(1),So("count",t.loadingCount),D("ngStyle",$e(3,rTt))("theme",$e(4,iTt))}}function aTt(n,e){if(1&n&&(M(0,"p",32),d(1),w()),2&n){const t=et(2).nft;T(1),Ve(null==t?null:t.description)}}function sTt(n,e){if(1&n&&(M(0,"div",29),d(1,"\n "),M(2,"p",30),d(3),w(),d(4,"\n "),Y(5,aTt,2,1,"p",31),d(6,"\n "),w()),2&n){const t=et().nft;T(3),Ve(null==t?null:t.name),T(2),D("ngIf",null==t?null:t.description)}}function lTt(n,e){if(1&n&&(d(0,"\n "),M(1,"div",25),d(2,"\n "),M(3,"div",26),d(4,"\n "),st(5,"storecloud-publisher-nft-stamp-image",27),d(6,"\n "),w(),d(7,"\n "),Y(8,sTt,7,2,"div",28),d(9,"\n "),w(),d(10,"\n")),2&n){const t=e.nft;T(5),D("nft",t)("type","detail"),T(3),D("ngIf",(null==t?null:t.name)||(null==t?null:t.description))}}const cTt=function(n){return{stroke:n}};function uTt(n,e){if(1&n&&(d(0,"\n "),M(1,"div",33),d(2,"\n "),ql(),M(3,"svg",34),d(4,"\n "),st(5,"polyline",35),d(6,"\n "),w(),d(7,"\n "),w(),d(8,"\n")),2&n){const t=e.enable;T(1),D("ngStyle",Ae(1,cTt,t?"#1db0a9":"#888"))}}const dTt=function(n,e){return{card:n,"flex-col-between":e,"p-0":!0}};let yM=(T_=class{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3,this.type="basic",this.enableBorderOnLast=!1,this.subItemClicked=new vr}ngOnInit(){}getAllSubItems(e){return this.getAllSubItemsChildren(e)}getAllSubItemsChildren(e){const t=[],r=e?.subItems;if(t.push(r),r?.subItems){const i=this.getAllSubItemsChildren(r);t.push(...i)}return t}clicked(e){e?.event&&this.subItemClicked.emit(e)}},T_.\u0275fac=function(e){return new(e||T_)},T_.\u0275cmp=ye({type:T_,selectors:[["storecloud-shared-stats-card-detail"]],inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount",type:"type",enableBorderOnLast:"enableBorderOnLast"},outputs:{subItemClicked:"subItemClicked"},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,"ngTemplateOutletContext","ngTemplateOutlet"],[1,"bb-4"],[3,"class",4,"ngIf"],[3,"placement","tooltip",4,"ngIf"],[3,"icon","size",4,"ngIf"],["class","d-flex g-1-half flex-basis-80",4,"ngIf"],[3,"placement","tooltip"],[3,"icon","size"],[3,"cssClass","iconSize","item","click"],[3,"cssClass","iconSize","item","click",4,"ngIf"],[1,"d-flex","g-1-half","flex-basis-80"],["animation","progress",1,"loader-for-all",3,"ngStyle","theme","count"],[1,"asset-container"],[1,"asset-image","stats-card-detail-asset"],[3,"nft","type"],["class","asset-details",4,"ngIf"],[1,"asset-details"],[1,"title"],["class","desc",4,"ngIf"],[1,"desc"],[1,"chevron-down","flex-basis-80",3,"ngStyle"],["fill","none","height","24","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","viewBox","0 0 24 24","width","24","xmlns","http://www.w3.org/2000/svg"],["points","6 9 12 15 18 9"]],template:function(e,t){1&e&&(M(0,"div",0),d(1,"\n "),Et(2),d(3,"\n "),M(4,"div",1),d(5,"\n\n "),Y(6,N4t,4,1,"ng-container",2),d(7,"\n "),Y(8,z4t,4,2,"ng-container",2),d(9,"\n\n "),w(),d(10,"\n "),kt(),d(11,"\n"),w(),d(12,"\n"),Y(13,G4t,4,4,"ng-template",null,3,ze),d(15,"\n\n"),Y(16,nTt,3,1,"ng-template",null,4,ze),d(18,"\n"),Y(19,oTt,3,5,"ng-template",null,5,ze),d(21,"\n"),Y(22,lTt,11,3,"ng-template",null,6,ze),d(24,"\n\n"),Y(25,uTt,9,3,"ng-template",null,7,ze),d(27,"\n\n"),d(28,"\n")),2&e&&(D("ngClass",bd(3,dTt,!t.disableCardClass,!t.disableCardClass)),T(6),D("ngIf",null==t.stats$||null==t.stats$.available?null:t.stats$.available.items$),T(2),D("ngIf",null==t.stats$||null==t.stats$.available?null:t.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}}"]}),T_);var A_;function hTt(n,e){if(1&n&&st(0,"storecloud-tooltip",14),2&n){const t=et(3);D("tooltip",null==t.table$?null:t.table$.tooltip)}}function fTt(n,e){if(1&n&&(M(0,"div",11),d(1,"\n "),M(2,"p",12),d(3),Y(4,hTt,1,1,"storecloud-tooltip",13),d(5,"\n "),w(),d(6,"\n "),w()),2&n){const t=et(2);T(3),Ie("\n ",null==t.table$?null:t.table$.title,"\n "),T(1),D("ngIf",null==t.table$?null:t.table$.tooltip)}}function pTt(n,e){if(1&n&&st(0,"storecloud-shared-table-pagination",15),2&n){const t=et(2);D("tableService",t.tableService)("total$",t.total$)}}function gTt(n,e){if(1&n&&(M(0,"div",8),d(1,"\n "),Y(2,fTt,7,2,"div",9),d(3,"\n "),Y(4,pTt,1,2,"storecloud-shared-table-pagination",10),d(5,"\n "),w()),2&n){const t=et();T(2),D("ngIf",null==t.table$?null:t.table$.title),T(2),D("ngIf",!(null!=t.table$&&t.table$.disablePagination))}}function mTt(n,e){if(1&n&&(M(0,"storecloud-tooltip",14),d(1," "),w()),2&n){const t=et(3).$implicit;D("tooltip",null==t?null:t.tooltip)}}function vTt(n,e){if(1&n&&(Et(0),d(1,"\n "),M(2,"span"),d(3),Y(4,mTt,2,1,"storecloud-tooltip",13),d(5,"\n "),w(),d(6,"\n "),kt()),2&n){const t=et(2).$implicit;T(3),Ie("",null==t?null:t.label,"\n "),T(1),D("ngIf",null==t?null:t.tooltip)}}function _Tt(n,e){if(1&n&&(Et(0),d(1),kt()),2&n){const t=et(2).$implicit;T(1),Ie("\n ",null==t?null:t.label,"\n ")}}yM=It([Ze({checkProperties:!0})],yM);const yTt=function(n){return{width:n}};function CTt(n,e){if(1&n){const t=rr();M(0,"th",17),ie("sort",function(i){return An(t),Dn(et(2).onSort(i))}),d(1,"\n "),Y(2,vTt,7,2,"ng-container",6),d(3,"\n "),Y(4,_Tt,2,1,"ng-container",6),d(5,"\n "),w()}if(2&n){const t=et().$implicit;Sh(null==t?null:t.cssClass),So("sortable",null==t?null:t.key),D("ngStyle",Ae(7,yTt,(null==t?null:t.width)||"auto")),T(2),D("ngIf",null==t?null:t.tooltip),T(2),D("ngIf",!(null!=t&&t.tooltip))}}function bTt(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,CTt,6,9,"th",16),d(3,"\n "),kt()),2&n){const t=e.$implicit;T(2),D("ngIf",!(null!=t&&t.disabled))}}function MTt(n,e){if(1&n&&st(0,"storecloud-shared-value-formatter",22),2&n){const t=et().$implicit;D("item",t)("cssClass",null==t?null:t.cssClass)("iconSize",14)}}function wTt(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,MTt,1,3,"storecloud-shared-value-formatter",21),d(3,"\n "),kt()),2&n){const t=e.$implicit;T(2),D("ngIf",t)}}function xTt(n,e){if(1&n&&(M(0,"td"),d(1,"\n "),M(2,"div",19),d(3,"\n "),M(4,"storecloud-shared-value-formatter",20),d(5,"\n "),w(),d(6,"\n "),Y(7,wTt,4,1,"ng-container",4),d(8,"\n "),w(),d(9,"\n "),w()),2&n){const t=et().$implicit,r=et().$implicit,i=et();let o;Kf("",null==t?null:t.cssClass," ",null==t?null:t.type,""),T(4),D("item",i.prepareItem(t,r[null==t?null:t.key]))("iconSize",null!==(o=null==r[null==t?null:t.key]?null:r[null==t?null:t.key].valueIconSize)&&void 0!==o?o:14),T(3),D("ngForOf",i.getAllSubItems(i.prepareItem(t,r[null==t?null:t.key])))}}function PTt(n,e){if(1&n&&(Et(0),d(1,"\n "),Y(2,xTt,10,7,"td",18),d(3,"\n "),kt()),2&n){const t=e.$implicit;T(2),D("ngIf",!(null!=t&&t.disabled))}}function OTt(n,e){if(1&n&&(M(0,"tr"),d(1,"\n "),Y(2,PTt,4,1,"ng-container",4),d(3,"\n "),w()),2&n){const t=et();T(2),D("ngForOf",null==t.table$?null:t.table$.columns)}}const STt=function(n){return{height:n}},TTt=function(n){return{setting:n}};function ATt(n,e){if(1&n&&(M(0,"td",24),d(1,"\n "),Hn(2,25),d(3,"\n "),w()),2&n){const t=et(3),r=ue(38);T(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ae(4,TTt,Ae(2,STt,null==t.table$?null:t.table$.loadingHeight)))}}function DTt(n,e){if(1&n&&(M(0,"tr"),d(1,"\n "),Y(2,ATt,4,6,"td",23),d(3,"\n "),w()),2&n){const t=et(2);T(2),D("ngForOf",null==t.table$?null:t.table$.columns)("ngForTrackBy",t.trackByFuntion)}}function ITt(n,e){if(1&n&&(M(0,"tbody"),d(1,"\n "),Y(2,DTt,4,2,"tr",4),d(3,"\n "),w()),2&n){const t=et();T(2),D("ngForOf",t.convertPageSizeIntoArray(null==t.tableService?null:t.tableService.pageSize))}}function ETt(n,e){1&n&&(M(0,"tbody"),d(1,"\n "),M(2,"tr"),d(3,"\n "),M(4,"td",26),d(5,"No record exist"),w(),d(6,"\n "),w(),d(7,"\n "),w())}const kTt=function(){return{display:"contents"}},RTt=function(n){return{"margin-top":"5px","margin-bottom":"5px",height:n}};function NTt(n,e){if(1&n&&(d(0,"\n "),st(1,"ngx-skeleton-loader",27),d(2,"\n")),2&n){const t=e.setting;T(1),D("ngStyle",$e(2,kTt))("theme",Ae(3,RTt,((null==t?null:t.height)||29.5)+"px"))}}const LTt=function(n){return{card:n}};let D_=(A_=class{set table$(e){this._table$=e,this.tableService=new UK(e?.serviceController,[],e?.extrafilter??[],e?.map),this.tableService.pageSize=e?.pageSize||8,this.total$=this.tableService.total$.pipe(k(t=>Math.ceil(t/(e?.pageSize||8))),Wt(this)),this.result$=this.tableService.result$.pipe(Wt(this))}get table$(){return this._table$}constructor(e){this.http=e,this.tableCssClass=null,this.disabledCardClass=!1,this.total$=null,this._table$=null}trackByFuntion(e,t){return t?.from??t?.to??e?.id}prepareItem(e,t){return"progress-status"===e?.type||"block-status"===e?.type?{type:e?.type,value:t}:"custom-col"===e?.type?{...e,...t,link:e?.link||t?.link?e?.withOutIdLink?e?.valueLink?t?.value:e?.link||t?.link:`${e?.link||t?.link}/${t?.value}`:null}:{...e,value:t,link:e?.link?e?.withOutIdLink?e?.valueLink?t:e?.link:`${e?.link}/${t}`:null}}onSort({}){}convertPageSizeIntoArray(e){return Array(e??8).fill(!0)}getAllSubItems(e){return this.getAllSubItemsChildren(e)}getAllSubItemsChildren(e){const t=[],r=e?.subItems;if(t.push(r),r?.subItems){const i=this.getAllSubItemsChildren(r);t.push(...i)}return t}},A_.\u0275fac=function(e){return new(e||A_)(ft(Ln))},A_.\u0275cmp=ye({type:A_,selectors:[["storecloud-shared-table-card-api"]],inputs:{tableCssClass:"tableCssClass",disabledCardClass:"disabledCardClass",table$:"table$"},decls:40,vars:22,consts:[[3,"ngClass"],["class","heading flex",4,"ngIf"],[1,"content"],[1,"table-container"],[4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["loader",""],[1,"heading","flex"],["class","heading-tabs-div",4,"ngIf"],[3,"tableService","total$",4,"ngIf"],[1,"heading-tabs-div"],[1,"heading-text"],[3,"tooltip",4,"ngIf"],[3,"tooltip"],[3,"tableService","total$"],["scope","col",3,"sortable","class","ngStyle","sort",4,"ngIf"],["scope","col",3,"sortable","ngStyle","sort"],[3,"class",4,"ngIf"],[1,"d-flex","g-1-half"],["cssClass","",3,"item","iconSize"],[3,"item","cssClass","iconSize",4,"ngIf"],[3,"item","cssClass","iconSize"],["class","pb-0 pt-1",4,"ngFor","ngForOf","ngForTrackBy"],[1,"pb-0","pt-1"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["colSpan","14",1,"align-center","grey"],["count","1","animation","progress",3,"ngStyle","theme"]],template:function(e,t){if(1&e&&(M(0,"div",0),d(1,"\n "),Y(2,gTt,6,2,"div",1),d(3,"\n "),M(4,"div",2),d(5,"\n "),M(6,"div",3),d(7,"\n "),M(8,"table"),d(9,"\n "),M(10,"thead"),d(11,"\n "),M(12,"tr"),d(13,"\n "),d(14,"\n "),Y(15,bTt,4,1,"ng-container",4),d(16,"\n\n "),w(),d(17,"\n "),w(),d(18,"\n "),M(19,"tbody"),d(20,"\n "),Y(21,OTt,4,1,"tr",5),he(22,"async"),d(23,"\n "),w(),d(24,"\n "),Y(25,ITt,4,1,"tbody",6),he(26,"async"),he(27,"async"),d(28,"\n "),Y(29,ETt,8,0,"tbody",6),he(30,"async"),he(31,"async"),d(32,"\n "),w(),d(33,"\n "),w(),d(34,"\n "),w(),d(35,"\n"),w(),d(36,"\n\n"),Y(37,NTt,3,5,"ng-template",null,7,ze),d(39,"\n")),2&e){let r,i;D("ngClass",Ae(20,LTt,!t.disabledCardClass)),T(2),D("ngIf",(null==t.table$?null:t.table$.title)||!(null!=t.table$&&t.table$.disablePagination)),T(6),Sh(t.tableCssClass),T(7),D("ngForOf",null==t.table$?null:t.table$.columns),T(6),D("ngForOf",Ye(22,10,t.result$))("ngForTrackBy",t.trackByFuntion),T(4),D("ngIf",Ye(26,12,null==t.tableService?null:t.tableService.loading$)&&((null==(r=Ye(27,14,t.result$))?null:r.length)||0)<1),T(4),D("ngIf",0===(null==(i=Ye(30,16,t.result$))?null:i.length)&&!1===Ye(31,18,null==t.tableService?null:t.tableService.loading$))}},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}.teal[_ngcontent-%COMP%]{color:#1db0a9}.heading-tabs-div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:40px}@media screen and (max-width: 1200px){.table-container[_ngcontent-%COMP%]{overflow-x:auto}}.table-container[_ngcontent-%COMP%] table.table-scroll[_ngcontent-%COMP%]{width:100%}@media screen and (max-width: 1200px){.table-container[_ngcontent-%COMP%] table.table-scroll[_ngcontent-%COMP%]{min-width:1300px}} table td .text-light{font-size:1.4rem!important}@media screen and (max-width: 1670px){ table td .text-light{font-size:1.3rem!important}}@media screen and (max-width: 1670px){ table td .text-light{font-size:1.2rem!important}}@media screen and (max-width: 1300px){ table td .text-light{font-size:1rem!important}}@media screen and (max-width: 1546px) and (max-width: 1200px){.table-container[_ngcontent-%COMP%]{overflow-x:scroll}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%] table.table-large[_ngcontent-%COMP%]{min-width:1545px}}@media screen and (max-width: 1546px) and (max-width: 1200px){.table-container[_ngcontent-%COMP%] table.table-large[_ngcontent-%COMP%]{min-width:1545px}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table.table-medium[_ngcontent-%COMP%]{min-width:1000px}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table.table-small[_ngcontent-%COMP%]{min-width:840px}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table.table-smaller[_ngcontent-%COMP%]{min-width:500px}}@media screen and (max-width: 470px){.card[_ngcontent-%COMP%] .heading.flex[_ngcontent-%COMP%]{align-items:center}}@media screen and (max-width: 1200px){.card[_ngcontent-%COMP%] .pb-2[_ngcontent-%COMP%]{padding-bottom:0!important}}.card.col-span-8.grid-2[_ngcontent-%COMP%]{display:none}"]}),A_);D_=It([Ze({checkProperties:!0})],D_);let uJ=(()=>{class n{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(ft(Yn),ft(Pr))},n.\u0275dir=qe({type:n}),n})(),nm=(()=>{class n extends uJ{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=mo(n)))(r||n)}}(),n.\u0275dir=qe({type:n,features:[Fr]}),n})();const Yu=new Pe("NgValueAccessor"),BTt={provide:Yu,useExisting:Pi(()=>Q6),multi:!0};let Q6=(()=>{class n extends nm{writeValue(t){this.setProperty("checked",t)}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=mo(n)))(r||n)}}(),n.\u0275dir=qe({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,r){1&t&&ie("change",function(o){return r.onChange(o.target.checked)})("blur",function(){return r.onTouched()})},features:[Or([BTt]),Fr]}),n})();const VTt={provide:Yu,useExisting:Pi(()=>Up),multi:!0},UTt=new Pe("CompositionEventMode");let Up=(()=>{class n extends uJ{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function $Tt(){const n=wd()?wd().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(ft(Yn),ft(Pr),ft(UTt,8))},n.\u0275dir=qe({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(t,r){1&t&&ie("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:[Or([VTt]),Fr]}),n})();const zTt=!1;function zp(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function dJ(n){return null!=n&&"number"==typeof n.length}const xs=new Pe("NgValidators"),Hp=new Pe("NgAsyncValidators"),HTt=/^(?=.{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 tl{static min(e){return function hJ(n){return e=>{if(zp(e.value)||zp(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t{if(zp(e.value)||zp(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return pJ(e)}static requiredTrue(e){return function gJ(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function mJ(n){return zp(n.value)||HTt.test(n.value)?null:{email:!0}}(e)}static minLength(e){return vJ(e)}static maxLength(e){return _J(e)}static pattern(e){return function yJ(n){if(!n)return T4;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),r=>{if(zp(r.value))return null;const i=r.value;return e.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}(e)}static nullValidator(e){return null}static compose(e){return PJ(e)}static composeAsync(e){return OJ(e)}}function pJ(n){return zp(n.value)?{required:!0}:null}function vJ(n){return e=>zp(e.value)||!dJ(e.value)?null:e.value.lengthdJ(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}function T4(n){return null}function CJ(n){return null!=n}function bJ(n){const e=zy(n)?wi(n):n;if(zTt&&!lI(e)){let t="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(t+=" Are you using a synchronous validator where an async validator is expected?"),new ee(-1101,t)}return e}function MJ(n){let e={};return n.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function wJ(n,e){return e.map(t=>t(n))}function xJ(n){return n.map(e=>function jTt(n){return!n.validate}(e)?e:t=>e.validate(t))}function PJ(n){if(!n)return null;const e=n.filter(CJ);return 0==e.length?null:function(t){return MJ(wJ(t,e))}}function tL(n){return null!=n?PJ(xJ(n)):null}function OJ(n){if(!n)return null;const e=n.filter(CJ);return 0==e.length?null:function(t){return function FTt(...n){const e=Qa(n),{args:t,keys:r}=IV(n),i=new F(o=>{const{length:a}=t;if(!a)return void o.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{h||(h=!0,c--),s[u]=p},()=>l--,void 0,()=>{(!l||!h)&&(c||o.next(r?EV(r,s):s),o.complete())}))}});return e?i.pipe(EE(e)):i}(wJ(t,e).map(bJ)).pipe(k(MJ))}}function eL(n){return null!=n?OJ(xJ(n)):null}function SJ(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function TJ(n){return n._rawValidators}function AJ(n){return n._rawAsyncValidators}function nL(n){return n?Array.isArray(n)?n:[n]:[]}function A4(n,e){return Array.isArray(n)?n.includes(e):n===e}function DJ(n,e){const t=nL(e);return nL(n).forEach(i=>{A4(t,i)||t.push(i)}),t}function IJ(n,e){return nL(e).filter(t=>!A4(n,t))}class EJ{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=tL(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=eL(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class el extends EJ{get formDirective(){return null}get path(){return null}}class jp extends EJ{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class kJ{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let I_=(()=>{class n extends kJ{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(ft(jp,2))},n.\u0275dir=qe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Xf("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:[Fr]}),n})(),E_=(()=>{class n extends kJ{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(ft(el,10))},n.\u0275dir=qe({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,r){2&t&&Xf("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:[Fr]}),n})();function RJ(n,e){return n?`with name: '${e}'`:`at index: ${e}`}const oL=!1,CM="VALID",I4="INVALID",k_="PENDING",bM="DISABLED";function aL(n){return(E4(n)?n.validators:n)||null}function sL(n,e){return(E4(e)?e.asyncValidators:n)||null}function E4(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function NJ(n,e,t){const r=n.controls;if(!(e?Object.keys(r):r).length)throw new ee(1e3,oL?function ZTt(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 `}(e):"");if(!r[t])throw new ee(1001,oL?function YTt(n,e){return`Cannot find form control ${RJ(n,e)}`}(e,t):"")}function LJ(n,e,t){n._forEachChild((r,i)=>{if(void 0===t[i])throw new ee(1002,oL?function XTt(n,e){return`Must supply a value for form control ${RJ(n,e)}`}(e,i):"")})}class k4{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===CM}get invalid(){return this.status===I4}get pending(){return this.status==k_}get disabled(){return this.status===bM}get enabled(){return this.status!==bM}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(DJ(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(DJ(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(IJ(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(IJ(e,this._rawAsyncValidators))}hasValidator(e){return A4(this._rawValidators,e)}hasAsyncValidator(e){return A4(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=k_,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=bM,this.errors=null,this._forEachChild(r=>{r.disable({...e,onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=CM,this._forEachChild(r=>{r.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===CM||this.status===k_)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?bM:CM}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=k_,this._hasOwnPendingAsyncValidator=!0;const t=bJ(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(e,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new vr,this.statusChanges=new vr}_calculateStatus(){return this._allControlsDisabled()?bM:this.errors?I4:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(k_)?k_:this._anyControlsHaveStatus(I4)?I4:CM}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){E4(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function KTt(n){return Array.isArray(n)?tL(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function JTt(n){return Array.isArray(n)?eL(n):n||null}(this._rawAsyncValidators)}}class dc extends k4{constructor(e,t,r){super(aL(t),sL(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,r={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){LJ(this,!0,e),Object.keys(e).forEach(r=>{NJ(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(r=>{const i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,r)=>(e[r]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&e(r,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&e(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(e,t){let r=e;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}class FJ extends dc{}const rm=new Pe("CallSetDisabledState",{providedIn:"root",factory:()=>MM}),MM="always";function R4(n,e){return[...e.path,n]}function wM(n,e,t=MM){lL(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(n.disabled),function tAt(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&BJ(n,e)})}(n,e),function nAt(n,e){const t=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function eAt(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&BJ(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function QTt(n,e){if(e.valueAccessor.setDisabledState){const t=r=>{e.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function N4(n,e,t=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),F4(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function L4(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function lL(n,e){const t=TJ(n);null!==e.validator?n.setValidators(SJ(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const r=AJ(n);null!==e.asyncValidator?n.setAsyncValidators(SJ(r,e.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();L4(e._rawValidators,i),L4(e._rawAsyncValidators,i)}function F4(n,e){let t=!1;if(null!==n){if(null!==e.validator){const i=TJ(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(a=>a!==e.validator);o.length!==i.length&&(t=!0,n.setValidators(o))}}if(null!==e.asyncValidator){const i=AJ(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(a=>a!==e.asyncValidator);o.length!==i.length&&(t=!0,n.setAsyncValidators(o))}}}const r=()=>{};return L4(e._rawValidators,r),L4(e._rawAsyncValidators,r),t}function BJ(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function VJ(n,e){lL(n,e)}function uL(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}function $J(n,e){n._syncPendingControls(),e.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function dL(n,e){if(!e)return null;let t,r,i;return Array.isArray(e),e.forEach(o=>{o.constructor===Up?t=o:function oAt(n){return Object.getPrototypeOf(n.constructor)===nm}(o)?r=o:i=o}),i||r||t||null}const sAt={provide:el,useExisting:Pi(()=>PM)},xM=(()=>Promise.resolve())();let PM=(()=>{class n extends el{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new vr,this.form=new dc({},tL(t),eL(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){xM.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),wM(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){xM.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){xM.then(()=>{const r=this._findContainer(t.path),i=new dc({});VJ(i,t),r.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){xM.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){xM.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,$J(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return n.\u0275fac=function(t){return new(t||n)(ft(xs,10),ft(Hp,10),ft(rm,8))},n.\u0275dir=qe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,r){1&t&&ie("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Or([sAt]),Fr]}),n})();function UJ(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function zJ(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Hi=class extends k4{constructor(e=null,t,r){super(aL(t),sL(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),E4(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=zJ(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){UJ(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){UJ(this._onDisabledChange,e)}_forEachChild(e){}_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(e){zJ(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};let HJ=(()=>{class n extends el{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return R4(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=mo(n)))(r||n)}}(),n.\u0275dir=qe({type:n,features:[Fr]}),n})();const uAt={provide:jp,useExisting:Pi(()=>B4)},GJ=(()=>Promise.resolve())();let B4=(()=>{class n extends jp{constructor(t,r,i,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Hi,this._registered=!1,this.update=new vr,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=dL(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),uL(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){wM(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(t){GJ.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&qv(r);GJ.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?R4(t,this._parent):[t]}}return n.\u0275fac=function(t){return new(t||n)(ft(el,9),ft(xs,10),ft(Hp,10),ft(Yu,10),ft(Lc,8),ft(rm,8))},n.\u0275dir=qe({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:[Or([uAt]),Fr,go]}),n})(),OM=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=qe({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const dAt={provide:Yu,useExisting:Pi(()=>hL),multi:!0};let hL=(()=>{class n extends nm{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=mo(n)))(r||n)}}(),n.\u0275dir=qe({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,r){1&t&&ie("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},features:[Or([dAt]),Fr]}),n})(),WJ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({}),n})();const fL=new Pe("NgModelWithFormControlWarning"),mAt={provide:el,useExisting:Pi(()=>R_)};let R_=(()=>{class n extends el{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new vr,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(F4(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return wM(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){N4(t.control||null,t,!1),function aAt(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,$J(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(N4(r||null,t),(n=>n instanceof Hi)(i)&&(wM(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);VJ(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function rAt(n,e){return F4(n,e)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){lL(this.form,this),this._oldForm&&F4(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(t){return new(t||n)(ft(xs,10),ft(Hp,10),ft(rm,8))},n.\u0275dir=qe({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,r){1&t&&ie("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Or([mAt]),Fr,go]}),n})();const vAt={provide:el,useExisting:Pi(()=>V4)};let V4=(()=>{class n extends HJ{constructor(t,r,i){super(),this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){XJ(this._parent)}}return n.\u0275fac=function(t){return new(t||n)(ft(el,13),ft(xs,10),ft(Hp,10))},n.\u0275dir=qe({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Or([vAt]),Fr]}),n})();const _At={provide:el,useExisting:Pi(()=>pL)};let pL=(()=>{class n extends el{constructor(t,r,i){super(),this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return R4(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){XJ(this._parent)}}return n.\u0275fac=function(t){return new(t||n)(ft(el,13),ft(xs,10),ft(Hp,10))},n.\u0275dir=qe({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Or([_At]),Fr]}),n})();function XJ(n){return!(n instanceof V4||n instanceof R_||n instanceof pL)}const yAt={provide:jp,useExisting:Pi(()=>SM)};let SM=(()=>{class n extends jp{set isDisabled(t){}constructor(t,r,i,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new vr,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=dL(0,o)}ngOnChanges(t){this._added||this._setUpControl(),uL(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return R4(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(t){return new(t||n)(ft(el,13),ft(xs,10),ft(Hp,10),ft(Yu,10),ft(fL,8))},n.\u0275dir=qe({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Or([yAt]),Fr,go]}),n})();const CAt={provide:Yu,useExisting:Pi(()=>gL),multi:!0};function KJ(n,e){return null==n?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let gL=(()=>{class n extends nm{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const i=KJ(this._getOptionId(t),t);this.setProperty("value",i)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function bAt(n){return n.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=mo(n)))(r||n)}}(),n.\u0275dir=qe({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,r){1&t&&ie("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Or([CAt]),Fr]}),n})(),mL=(()=>{class n{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(KJ(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(t){return new(t||n)(ft(Pr),ft(Yn),ft(gL,9))},n.\u0275dir=qe({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const MAt={provide:Yu,useExisting:Pi(()=>vL),multi:!0};function JJ(n,e){return null==n?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let vL=(()=>{class n extends nm{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const i=t.map(o=>this._getOptionId(o));r=(o,a)=>{o._setSelected(i.indexOf(a.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const a=o;for(let s=0;s{class n{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(JJ(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(JJ(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(t){return new(t||n)(ft(Pr),ft(Yn),ft(vL,9))},n.\u0275dir=qe({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();function QJ(n){return"number"==typeof n?n:parseInt(n,10)}let im=(()=>{class n{constructor(){this._validator=T4}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):T4,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=qe({type:n,features:[go]}),n})();const OAt={provide:xs,useExisting:Pi(()=>om),multi:!0};let om=(()=>{class n extends im{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=qv,this.createValidator=t=>pJ}enabled(t){return t}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=mo(n)))(r||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,r){2&t&&Rc("required",r._enabled?"":null)},inputs:{required:"required"},features:[Or([OAt]),Fr]}),n})();const AAt={provide:xs,useExisting:Pi(()=>yL),multi:!0};let yL=(()=>{class n extends im{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>QJ(t),this.createValidator=t=>vJ(t)}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=mo(n)))(r||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&Rc("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[Or([AAt]),Fr]}),n})();const DAt={provide:xs,useExisting:Pi(()=>CL),multi:!0};let CL=(()=>{class n extends im{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>QJ(t),this.createValidator=t=>_J(t)}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=mo(n)))(r||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&Rc("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Or([DAt]),Fr]}),n})(),aQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({imports:[WJ]}),n})();class sQ extends k4{constructor(e,t,r){super(aL(t),sL(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,r={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){LJ(this,!1,e),e.forEach((r,i)=>{NJ(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,r)=>{e(t,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}}function lQ(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let cQ=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new n;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let o={};return lQ(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new dc(i,o)}record(t,r=null){const i=this._reduceControls(t);return new FJ(i,r)}control(t,r,i){let o={};return this.useNonNullable?(lQ(r)?o=r:(o.validators=r,o.asyncValidators=i),new Hi(t,{...o,nonNullable:!0})):new Hi(t,r,i)}array(t,r,i){const o=t.map(a=>this._createControl(a));return new sQ(o,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof Hi||t instanceof k4?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bL=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:rm,useValue:t.callSetDisabledState??MM}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({imports:[aQ]}),n})(),TM=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:fL,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:rm,useValue:t.callSetDisabledState??MM}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({imports:[aQ]}),n})();function $4(n,e,t,r){var a,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o}function dQ(n,e){return function(t,r){e(t,r,n)}}var kAt=Dt(93),RAt=Dt.n(kAt);const wL=new Pe("COPY_TO_CLIPBOARD_HANDLER");let xL=(()=>{let n=class{constructor(t){this.globalOnCopy=t,this.options={}}copy(){RAt()(this.text,Object.assign({onCopy:t=>{var r;null===(r=this.globalOnCopy)||void 0===r||r.call(this,this.text,t)}},this.options))}};return n.\u0275fac=function(t){return new(t||n)(ft(wL,8))},n.\u0275dir=qe({type:n,selectors:[["","copyToClipboard",""]],hostBindings:function(t,r){1&t&&ie("click",function(){return r.copy()})},inputs:{options:["copyToClipboardOptions","options"],text:["copyToClipboard","text"]}}),$4([V7("copyToClipboard")],n.prototype,"text",void 0),$4([V7("copyToClipboardOptions")],n.prototype,"options",void 0),$4([iit("click")],n.prototype,"copy",null),n=$4([dQ(0,hd()),dQ(0,vg(wL))],n),n})(),PL=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=di({type:n}),n.\u0275inj=qi({}),n})();const NAt=["backdrop"],LAt=["dialog"];function FAt(n,e){if(1&n&&st(0,"div",6),2&n){const t=et(),r=ue(3);D("dialogDragEnabled",!0)("dialogDragTarget",r)("dragConstraint",t.config.dragConstraint)}}function BAt(n,e){if(1&n){const t=rr();M(0,"div",7),ie("click",function(){return An(t),Dn(et().closeDialog())}),ql(),M(1,"svg",8),st(2,"path",9),w()()}}class El{}class OL extends El{constructor(e={}){super(),this.beforeCloseGuards=[],this.mutate(e)}close(e){this.canClose(e).pipe(wt(Boolean)).subscribe({next:()=>this.onClose(e)})}beforeClose(e){this.beforeCloseGuards.push(e)}resetDrag(e){this.onReset(e)}canClose(e){return Ul(...this.beforeCloseGuards.map(r=>r(e)).filter(r=>void 0!==r&&!0!==r).map(r=>"boolean"==typeof r?yt(r):wi(r).pipe(wt(i=>!i)))).pipe(cC(!0),kh())}mutate(e){Object.assign(this,e)}asDialogRef(){return this}}function z4(n){return function VAt(n){return null==n}(n)?"":function $At(n){return"string"==typeof n}(n)?n:`${n}px`}let fQ=(()=>{class n{constructor(){this.dialogDragEnabled=!1,this.host=ke(Pr),this.zone=ke(ki),this.delta={x:0,y:0},this.offset={x:0,y:0},this.enabled=!0,this.destroy$=new I}set dialogDragOffset(t){this.reset(t)}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(t){const r={x:0,y:0};this.offset={...r,...t},this.delta={...r},this.translate()}setupEvents(){this.zone.runOutsideAngular(()=>{const t=Jh(this.handle,"mousedown"),r=Jh(document,"mousemove"),i=Jh(document,"mouseup");t.pipe(wt(()=>this.enabled),k(a=>({startX:a.clientX,startY:a.clientY})),Ta(({startX:a,startY:s})=>r.pipe(k(l=>{l.preventDefault(),this.delta={x:l.clientX-a,y:l.clientY-s},"constrain"===this.dragConstraint&&this.checkConstraint()}),ml(i))),ml(this.destroy$)).subscribe(()=>{0===this.delta.x&&0===this.delta.y||this.translate()}),i.pipe(wt(()=>this.enabled),wt(()=>0!==this.delta.x||0!==this.delta.y),ml(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:t,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+t/2:this.translateX-t/2,c=i/2;-s>a&&(this.delta.y=r/2-s-this.offset.y),sl&&(this.delta.x=t/2-c-this.offset.x),cke(Go)}),TL=new Pe("config",{providedIn:"root",factory:()=>({})});const gQ=new Pe("Global dialog config token",{providedIn:"root",factory:()=>function pQ(){return{id:void 0,container:ke(SL).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}}()}),mQ=new Pe("Nodes inserted into the dialog");let UAt=(()=>{class n{constructor(){this.config=ke(TL),this.dialogRef=ke(OL),this.size=this.config.sizes?.[this.config.size||"md"],this.styles={width:z4(this.config.width||this.size?.width),height:z4(this.config.height||this.size?.height),minHeight:z4(this.config.minHeight||this.size?.minHeight),maxHeight:z4(this.config.maxHeight||this.size?.maxHeight)},this.destroy$=new I,this.nodes=ke(mQ),this.document=ke(Go),this.host=ke(Pr).nativeElement,this.host.id=this.config.id,this.nodes.forEach(t=>this.host.appendChild(t)),this.config.windowClass&&this.config.windowClass.split(/\s/).filter(r=>r).forEach(r=>this.host.classList.add(r))}ngOnInit(){const t=this.config.backdrop?this.backdrop.nativeElement:this.document.body,r=this.dialogElement.nativeElement,i=Jh(t,"click",{capture:!0}).pipe(wt(({target:o})=>!r.contains(o)));if(i.pipe(ml(this.destroy$)).subscribe(this.dialogRef.backdropClick$),this.config.enableClose&&Ul(Jh(this.document.body,"keyup").pipe(wt(({key:o})=>"Escape"===o)),i).pipe(ml(this.destroy$)).subscribe(()=>this.closeDialog()),this.nodes.forEach(o=>r.appendChild(o)),this.config.zIndexGetter){const o=this.config.zIndexGetter().toString();t.style.setProperty("--dialog-backdrop-z-index",o)}}reset(t){this.config.draggable&&this.draggable.reset(t)}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.dialogRef=null,this.nodes=null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=ye({type:n,selectors:[["ngneat-dialog"]],viewQuery:function(t,r){if(1&t&&(fl(NAt,7),fl(LAt,7),fl(fQ,5)),2&t){let i;Us(i=zs())&&(r.backdrop=i.first),Us(i=zs())&&(r.dialogElement=i.first),Us(i=zs())&&(r.draggable=i.first)}},standalone:!0,features:[Fo],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(t,r){1&t&&(M(0,"div",0,1)(2,"div",2,3),Y(4,FAt,1,3,"div",4),Y(5,BAt,3,0,"div",5),w()()),2&t&&(Xf("ngneat-dialog-backdrop-visible",r.config.backdrop),D("hidden",!r.config.backdrop),T(2),Xf("ngneat-dialog-resizable",r.config.resizable),D("ngStyle",r.styles),T(2),D("ngIf",r.config.draggable),T(1),D("ngIf",r.config.closeButton))},dependencies:[fQ,$i,Xn,Ri],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 vQ="ngneat-dialog-hidden";let Jd=(()=>{class n{constructor(){this.appRef=ke(Lg),this.injector=ke(Jl),this.document=ke(SL),this.globalConfig=ke(gQ),this.dialogs=[],this.hasOpenDialogSub=new to(!1),this.hasOpenDialogs$=this.hasOpenDialogSub.asObservable()}hasOpenDialogs(){return this.dialogs.length>0}isOpen(t){return this.dialogs.some(r=>r.id===t)}closeAll(){this.dialogs.forEach(t=>t.close())}open(t,r={}){const i=this.mergeConfig(r);i.onOpen?.();const o=new OL({id:i.id,data:i.data,backdropClick$:new I});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(vQ),t instanceof Nc?this.openTemplate(t,a):"function"==typeof t?this.openComponent(t,a):function zAt(n){throw new TypeError(`Dialog must receive a Component or a TemplateRef, but this has been passed instead: ${n}`)}(t)}openTemplate(t,{config:r,dialogRef:i}){const o={$implicit:i,config:r},a=r.vcr?.createEmbeddedView(t,o)||t.createEmbeddedView(o);return this.attach({dialogRef:i,config:r,ref:t,view:a,attachToApp:!r.vcr})}openComponent(t,{config:r,dialogRef:i}){const o=g9(t,{elementInjector:_o.create({providers:[{provide:El,useValue:i},{provide:TL,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:t,config:r,ref:i,view:o,attachToApp:a}){const s=this.createDialog(r,t,o),l=r.container instanceof Pr?r.container.nativeElement:r.container,c={after:new I};return t.mutate({id:r.id,data:r.data,ref:i,onClose:p=>{this.globalConfig.onClose?.(),this.dialogs=this.dialogs.filter(({id:g})=>t.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(),t.backdropClick$.complete(),t.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(vQ)},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),t.asDialogRef()}createDialog(t,r,i){return g9(UAt,{elementInjector:_o.create({providers:[{provide:OL,useValue:r},{provide:mQ,useValue:i.rootNodes},{provide:TL,useValue:t}],parent:this.injector}),environmentInjector:this.injector})}mergeConfig(t){return{...this.globalConfig,id:`dialog-${Math.random().toString(36).substring(7)}`,...t,sizes:this.globalConfig?.sizes}}throwIfIDAlreadyExists(t){if(this.dialogs.find(r=>r.id===t))throw new Error(`Please, ID must be unique, but there is already a dialog created with this ID: ${t}`)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=zt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var _Q=Dt(530),Xu=function(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})};const lu=new Lt("abstract-signer/5.7.0"),GAt=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],WAt=[Lt.errors.INSUFFICIENT_FUNDS,Lt.errors.NONCE_EXPIRED,Lt.errors.REPLACEMENT_UNDERPRICED];class AL{constructor(){lu.checkAbstract(new.target,AL),Bn(this,"_isSigner",!0)}getBalance(e){return Xu(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return Xu(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return Xu(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const t=yield Ha(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return Xu(this,void 0,void 0,function*(){this._checkProvider("call");const r=yield Ha(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return Xu(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return Xu(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Xu(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Xu(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return Xu(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const r in e)-1===GAt.indexOf(r)&&lu.throwArgumentError("invalid transaction key: "+r,"transaction",e);const t=Al(e);return t.from=null==t.from?this.getAddress():Promise.all([Promise.resolve(t.from),this.getAddress()]).then(r=>(r[0].toLowerCase()!==r[1].toLowerCase()&&lu.throwArgumentError("from address mismatch","transaction",e),r[0])),t}populateTransaction(e){return Xu(this,void 0,void 0,function*(){const t=yield Ha(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(i=>Xu(this,void 0,void 0,function*(){if(null==i)return null;const o=yield this.resolveName(i);return null==o&&lu.throwArgumentError("provided ENS name resolves to null","tx.to",i),o})),t.to.catch(i=>{}));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?(0===t.type||1===t.type)&&r&&lu.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):lu.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(null==t.type)if(null!=i.maxFeePerGas&&null!=i.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const o=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=o,t.maxPriorityFeePerGas=o}else null==t.maxFeePerGas&&(t.maxFeePerGas=i.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else null!=i.gasPrice?(r&&lu.throwError("network does not support EIP-1559",Lt.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=i.gasPrice),t.type=0):lu.throwError("failed to get consistent fee data",Lt.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=i.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(i=>{if(WAt.indexOf(i.code)>=0)throw i;return lu.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Lt.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:t})})),t.chainId=null==t.chainId?this.getChainId():Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(i=>(0!==i[1]&&i[0]!==i[1]&&lu.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield Ha(t)})}_checkProvider(e){this.provider||lu.throwError("missing provider",Lt.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}function CQ(n){return ja(Yd(n))}const Mo=new Lt(nK),bQ=new Uint8Array(32);bQ.fill(0);const ZAt=we.from(-1),MQ=we.from(0),wQ=we.from(1),YAt=we.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),KAt=bo(wQ.toHexString(),32),JAt=bo(MQ.toHexString(),32),xQ={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},DL=["name","version","chainId","verifyingContract","salt"];function PQ(n){return function(e){return"string"!=typeof e&&Mo.throwArgumentError(`invalid domain value for ${JSON.stringify(n)}`,`domain.${n}`,e),e}}const QAt={name:PQ("name"),version:PQ("version"),chainId:function(n){try{return we.from(n).toString()}catch{}return Mo.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",n)},verifyingContract:function(n){try{return Ga(n).toLowerCase()}catch{}return Mo.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",n)},salt:function(n){try{const e=xn(n);if(32!==e.length)throw new Error("bad length");return wn(e)}catch{}return Mo.throwArgumentError('invalid domain value "salt"',"domain.salt",n)}};function IL(n){{const e=n.match(/^(u?)int(\d*)$/);if(e){const t=""===e[1],r=parseInt(e[2]||"256");(r%8!=0||r>256||e[2]&&e[2]!==String(r))&&Mo.throwArgumentError("invalid numeric width","type",n);const i=YAt.mask(t?r-1:r),o=t?i.add(wQ).mul(ZAt):MQ;return function(a){const s=we.from(a);return(s.lt(o)||s.gt(i))&&Mo.throwArgumentError(`value out-of-bounds for ${n}`,"value",a),bo(s.toTwos(256).toHexString(),32)}}}{const e=n.match(/^bytes(\d+)$/);if(e){const t=parseInt(e[1]);return(0===t||t>32||e[1]!==String(t))&&Mo.throwArgumentError("invalid bytes width","type",n),function(r){return xn(r).length!==t&&Mo.throwArgumentError(`invalid length for ${n}`,"value",r),function XAt(n){const e=xn(n),t=e.length%32;return t?Tl([e,bQ.slice(t)]):wn(e)}(r)}}}switch(n){case"address":return function(e){return bo(Ga(e),32)};case"bool":return function(e){return e?KAt:JAt};case"bytes":return function(e){return ja(e)};case"string":return function(e){return CQ(e)}}return null}function OQ(n,e){return`${n}(${e.map(({name:t,type:r})=>r+" "+t).join(",")})`}class hc{constructor(e){Bn(this,"types",Object.freeze(Ap(e))),Bn(this,"_encoderCache",{}),Bn(this,"_types",{});const t={},r={},i={};Object.keys(e).forEach(s=>{t[s]={},r[s]=[],i[s]={}});for(const s in e){const l={};e[s].forEach(c=>{l[c.name]&&Mo.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(s)}`,"types",e),l[c.name]=!0;const u=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];u===s&&Mo.throwArgumentError(`circular type reference to ${JSON.stringify(u)}`,"types",e),!IL(u)&&(r[u]||Mo.throwArgumentError(`unknown type ${JSON.stringify(u)}`,"types",e),r[u].push(s),t[s][u]=!0)})}const o=Object.keys(r).filter(s=>0===r[s].length);0===o.length?Mo.throwArgumentError("missing primary type","types",e):o.length>1&&Mo.throwArgumentError(`ambiguous primary types or unused types: ${o.map(s=>JSON.stringify(s)).join(", ")}`,"types",e),Bn(this,"primaryType",o[0]),function a(s,l){l[s]&&Mo.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e),l[s]=!0,Object.keys(t[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]=OQ(s,e[s])+l.map(c=>OQ(c,e[c])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const i=IL(e);if(i)return i}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const i=t[1],o=this.getEncoder(i),a=parseInt(t[3]);return s=>{a>=0&&s.length!==a&&Mo.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",s);let l=s.map(o);return this._types[i]&&(l=l.map(ja)),ja(Tl(l))}}const r=this.types[e];if(r){const i=CQ(this._types[e]);return o=>{const a=r.map(({name:s,type:l})=>{const c=this.getEncoder(l)(o[s]);return this._types[l]?ja(c):c});return a.unshift(i),Tl(a)}}return Mo.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||Mo.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return ja(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(IL(e))return r(e,t);const i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const a=i[1],s=parseInt(i[3]);return s>=0&&t.length!==s&&Mo.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(l=>this._visit(a,l,r))}const o=this.types[e];return o?o.reduce((a,{name:s,type:l})=>(a[s]=this._visit(l,t[s],r),a),{}):Mo.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new hc(e)}static getPrimaryType(e){return hc.from(e).primaryType}static hashStruct(e,t,r){return hc.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const i=xQ[r];i||Mo.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:i})}return t.sort((r,i)=>DL.indexOf(r.name)-DL.indexOf(i.name)),hc.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return Tl(["0x1901",hc.hashDomain(e),hc.from(t).hash(r)])}static hash(e,t,r){return ja(hc.encode(e,t,r))}static resolveNames(e,t,r,i){return function(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){e=Al(e);const o={};e.verifyingContract&&!Bi(e.verifyingContract,20)&&(o[e.verifyingContract]="0x");const a=hc.from(t);a.visit(r,(s,l)=>("address"===s&&!Bi(l,20)&&(o[l]="0x"),l));for(const s in o)o[s]=yield i(s);return e.verifyingContract&&o[e.verifyingContract]&&(e.verifyingContract=o[e.verifyingContract]),r=a.visit(r,(s,l)=>"address"===s&&o[l]?o[l]:l),{domain:e,value:r}})}static getPayload(e,t,r){hc.hashDomain(e);const i={},o=[];DL.forEach(l=>{const c=e[l];null!=c&&(i[l]=QAt[l](c),o.push({name:l,type:xQ[l]}))});const a=hc.from(t),s=Al(t);return s.EIP712Domain?Mo.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):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 we.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return"string"!=typeof c&&Mo.throwArgumentError("invalid string","value",c),c}return Mo.throwArgumentError("unsupported type","type",l)})}}}var nf=function(n,e,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(h){a(h)}}function l(u){try{c(r.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(a){a(o)})}(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})};const ra=new Lt(lM),tDt=["call","estimateGas"];function AM(n,e){if(null==n)return null;if("string"==typeof n.message&&n.message.match("reverted")){const t=Bi(n.data)?n.data:null;if(!e||t)return{message:n.message,data:t}}if("object"==typeof n){for(const t in n){const r=AM(n[t],e);if(r)return r}return null}if("string"==typeof n)try{return AM(JSON.parse(n),e)}catch{}return null}function SQ(n,e,t){const r=t.transaction||t.signedTransaction;if("call"===n){const o=AM(e,!0);if(o)return o.data;ra.throwError("missing revert data in call exception; Transaction reverted without a reason string",Lt.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:e})}if("estimateGas"===n){let o=AM(e.body,!1);null==o&&(o=AM(e,!1)),o&&ra.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Lt.errors.UNPREDICTABLE_GAS_LIMIT,{reason:o.message,method:n,transaction:r,error:e})}let i=e.message;throw e.code===Lt.errors.SERVER_ERROR&&e.error&&"string"==typeof e.error.message?i=e.error.message:"string"==typeof e.body?i=e.body:"string"==typeof e.responseText&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&ra.throwError("insufficient funds for intrinsic transaction cost",Lt.errors.INSUFFICIENT_FUNDS,{error:e,method:n,transaction:r}),i.match(/nonce (is )?too low/i)&&ra.throwError("nonce has already been used",Lt.errors.NONCE_EXPIRED,{error:e,method:n,transaction:r}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&ra.throwError("replacement fee too low",Lt.errors.REPLACEMENT_UNDERPRICED,{error:e,method:n,transaction:r}),i.match(/only replay-protected/i)&&ra.throwError("legacy pre-eip-155 transactions not supported",Lt.errors.UNSUPPORTED_OPERATION,{error:e,method:n,transaction:r}),tDt.indexOf(n)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&ra.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Lt.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:n,transaction:r}),e}function TQ(n){return new Promise(function(e){setTimeout(e,n)})}function eDt(n){if(n.error){const e=new Error(n.error.message);throw e.code=n.error.code,e.data=n.error.data,e}return n.result}function DM(n){return n&&n.toLowerCase()}const EL={};class AQ extends AL{constructor(e,t,r){if(super(),e!==EL)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");Bn(this,"provider",t),null==r&&(r=0),"string"==typeof r?(Bn(this,"_address",this.provider.formatter.address(r)),Bn(this,"_index",null)):"number"==typeof r?(Bn(this,"_index",r),Bn(this,"_address",null)):ra.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return ra.throwError("cannot alter JSON-RPC Signer connection",Lt.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new nDt(EL,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&ra.throwError("unknown account #"+this._index,Lt.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=Al(e);const t=this.getAddress().then(r=>(r&&(r=r.toLowerCase()),r));if(null==e.gasLimit){const r=Al(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(r=>nf(this,void 0,void 0,function*(){if(null==r)return null;const i=yield this.provider.resolveName(r);return null==i&&ra.throwArgumentError("provided ENS name resolves to null","tx.to",r),i}))),Ha({tx:Ha(e),sender:t}).then(({tx:r,sender:i})=>{null!=r.from?r.from.toLowerCase()!==i&&ra.throwArgumentError("from address mismatch","transaction",e):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)&&ra.throwError("user rejected transaction",Lt.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:r}),SQ("sendTransaction",a,o)))})}signTransaction(e){return ra.throwError("signing transactions is unsupported",Lt.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return nf(this,void 0,void 0,function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield sM(()=>nf(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(r);if(null!==i)return this.provider._wrapTransaction(i,r,t)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=r,i}})}signMessage(e){return nf(this,void 0,void 0,function*(){const t="string"==typeof e?Yd(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[wn(t),r.toLowerCase()])}catch(i){throw"string"==typeof i.message&&i.message.match(/user denied/i)&&ra.throwError("user rejected signing",Lt.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),i}})}_legacySignMessage(e){return nf(this,void 0,void 0,function*(){const t="string"==typeof e?Yd(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),wn(t)])}catch(i){throw"string"==typeof i.message&&i.message.match(/user denied/i)&&ra.throwError("user rejected signing",Lt.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),i}})}_signTypedData(e,t,r){return nf(this,void 0,void 0,function*(){const i=yield hc.resolveNames(e,t,r,a=>this.provider.resolveName(a)),o=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(hc.getPayload(i.domain,t,i.value))])}catch(a){throw"string"==typeof a.message&&a.message.match(/user denied/i)&&ra.throwError("user rejected signing",Lt.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:i.domain,types:t,value:i.value}}),a}})}unlock(e){return nf(this,void 0,void 0,function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class nDt extends AQ{sendTransaction(e){return this.sendUncheckedTransaction(e).then(t=>({hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:r=>this.provider.waitForTransaction(t,r)}))}}const rDt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class iDt extends SK{constructor(e,t){let r=t;null==r&&(r=new Promise((i,o)=>{setTimeout(()=>{this.detectNetwork().then(a=>{i(a)},a=>{o(a)})},0)})),super(r),e||(e=rM(this.constructor,"defaultUrl")()),Bn(this,"connection",Object.freeze("string"==typeof e?{url:e}:Al(e))),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 nf(this,void 0,void 0,function*(){yield TQ(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(null!=e){const t=rM(this.constructor,"getNetwork");try{return t(we.from(e).toNumber())}catch(r){return ra.throwError("could not detect network",Lt.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:r})}}return ra.throwError("could not detect network",Lt.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new AQ(EL,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(t=>this.formatter.address(t)))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Ap(r),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const o=s4(this.connection,JSON.stringify(r),eDt).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[e]=o,setTimeout(()=>{this._cache[e]=null},0)),o}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[DM(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[DM(t.address),t.blockTag]];case"getCode":return["eth_getCode",[DM(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[DM(t.address),bo(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[rM(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[rM(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=DM(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return nf(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){const i=t.transaction;if(i&&null!=i.type&&we.from(i.type).isZero()&&null==i.maxFeePerGas&&null==i.maxPriorityFeePerGas){const o=yield this.getFeeData();null==o.maxFeePerGas&&null==o.maxPriorityFeePerGas&&((t=Al(t)).transaction=Al(i),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&ra.throwError(e+" not implemented",Lt.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(i){return SQ(e,i,t)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then(function(r){return function i(){e.send("eth_getFilterChanges",[r]).then(function(o){if(e._pendingFilter!=t)return null;let a=Promise.resolve();return o.forEach(function(s){e._emitted["t:"+s.toLowerCase()]="pending",a=a.then(function(){return e.getTransaction(s).then(function(l){return e.emit("pending",l),null})})}),a.then(function(){return TQ(1e3)})}).then(function(){if(e._pendingFilter==t)return setTimeout(function(){i()},0),null;e.send("eth_uninstallFilter",[r])}).catch(o=>{})}(),r}).catch(r=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=Al(rDt);if(t)for(const o in t)t[o]&&(r[o]=!0);!function LPt(n,e){(!n||"object"!=typeof n)&&QS.throwArgumentError("invalid object","object",n),Object.keys(n).forEach(t=>{e[t]||QS.throwArgumentError("invalid object key - "+t,"transaction:"+t,n)})}(e,r);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(null==e[o])return;const a=eM(we.from(e[o]));"gasLimit"===o&&(o="gas"),i[o]=a}),["from","to","data"].forEach(function(o){null!=e[o]&&(i[o]=wn(e[o]))}),e.accessList&&(i.accessList=y_(e.accessList)),i}}const DQ=new Lt(lM);let oDt=1;function IQ(n,e){const t="Web3LegacyFetcher";return function(r,i){const o={method:r,params:i,id:oDt++,jsonrpc:"2.0"};return new Promise((a,s)=>{this.emit("debug",{action:"request",fetcher:t,request:Ap(o),provider:this}),e(o,(l,c)=>{if(l)return this.emit("debug",{action:"response",fetcher:t,error:l,request:o,provider:this}),s(l);if(this.emit("debug",{action:"response",fetcher:t,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 sDt extends iDt{constructor(e,t){null==e&&DQ.throwArgumentError("missing provider","provider",e);let r=null,i=null,o=null;"function"==typeof e?(r="unknown:",i=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),o=e,e.request?(""===r&&(r="eip-1193:"),i=function aDt(n){return function(e,t){null==t&&(t=[]);const r={method:e,params:t};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Ap(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})}}(e)):e.sendAsync?i=IQ(0,e.sendAsync.bind(e)):e.send?i=IQ(0,e.send.bind(e)):DQ.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),Bn(this,"jsonRpcFetchFunc",i),Bn(this,"provider",o)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}var am=(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))(am||{}),H4=(n=>(n.SyncWeb3Method="SYNC_WEB3_METHOD",n.DuplicateIframe="DUPLICATE_IFRAME",n.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",n.DeprecationNotice="DEPRECATION_NOTICE",n))(H4||{}),kL=(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))(kL||{}),Er=(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))(Er||{}),N_=(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))(N_||{}),j4=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(j4||{}),lDt=(n=>(n.Harmony="HARMONY",n))(lDt||{}),cDt=Object.create,G4=Object.defineProperty,uDt=Object.defineProperties,dDt=Object.getOwnPropertyDescriptor,hDt=Object.getOwnPropertyDescriptors,fDt=Object.getOwnPropertyNames,EQ=Object.getOwnPropertySymbols,pDt=Object.getPrototypeOf,kQ=Object.prototype.hasOwnProperty,gDt=Object.prototype.propertyIsEnumerable,RQ=(n,e,t)=>e in n?G4(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,NQ=(n,e)=>{for(var t in e||(e={}))kQ.call(e,t)&&RQ(n,t,e[t]);if(EQ)for(var t of EQ(e))gDt.call(e,t)&&RQ(n,t,e[t]);return n},rf=(n,e,t)=>new Promise((r,i)=>{var o=l=>{try{s(t.next(l))}catch(c){i(c)}},a=l=>{try{s(t.throw(l))}catch(c){i(c)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,a);s((t=t.apply(n,e)).next())}),bDt=((n,e)=>()=>(e||n(e={exports:{}},e),e.exports))((n,e)=>{var t=Object.prototype.hasOwnProperty,r="~";function i(){}function o(c,u,h){this.fn=c,this.context=u,this.once=h||!1}function a(c,u,h,p,g){if("function"!=typeof h)throw new TypeError("The listener must be a function");var v=new o(h,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,h,c=[];if(0===this._eventsCount)return c;for(h in u=this._events)t.call(u,h)&&c.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},l.prototype.listeners=function(c){var h=this._events[r?r+c:c];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,g=h.length,v=new Array(g);pconsole.error("SEMVER",...n):()=>{},Ai=xDt,IM=function MDt(n){let e={exports:{}};return n(e,e.exports),e.exports}(function(n,e){let{MAX_SAFE_COMPONENT_LENGTH:t}=RL,r=(e=n.exports={}).re=[],i=e.src=[],o=e.t={},a=0,s=(l,c,u)=>{let h=a++;Ai(h,c),o[l]=h,i[h]=c,r[h]=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,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),s("COERCERTL",i[o.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM",`(\\s*)${i[o.LONETILDE]}\\s+`,!0),e.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),e.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),e.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*$")}),LQ=/^[0-9]+$/,FQ=(n,e)=>{let t=LQ.test(n),r=LQ.test(e);return t&&r&&(n=+n,e=+e),n===e?0:t&&!r?-1:r&&!t?1:nFQ(e,n)},{MAX_LENGTH:BQ,MAX_SAFE_INTEGER:W4}=RL,{re:VQ,t:$Q}=IM,{compareIdentifiers:EM}=ODt,Ya=class{constructor(n,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),n instanceof Ya){if(n.loose===!!e.loose&&n.includePrerelease===!!e.includePrerelease)return n;n=n.version}else if("string"!=typeof n)throw new TypeError(`Invalid Version: ${n}`);if(n.length>BQ)throw new TypeError(`version is longer than ${BQ} characters`);Ai("SemVer",n,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let t=n.trim().match(e.loose?VQ[$Q.LOOSE]:VQ[$Q.FULL]);if(!t)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>W4||this.major<0)throw new TypeError("Invalid major version");if(this.minor>W4||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>W4||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=t[4]?t[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let i=+r;if(i>=0&&i=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error(`invalid increment argument: ${n}`)}return this.format(),this.raw=this.version,this}},L_=(n,e,t)=>new Ya(n,t).compare(new Ya(e,t)),NL=(n,e,t,r)=>{switch(e){case"===":return"object"==typeof n&&(n=n.version),"object"==typeof t&&(t=t.version),n===t;case"!==":return"object"==typeof n&&(n=n.version),"object"==typeof t&&(t=t.version),n!==t;case"":case"=":case"==":return((n,e,t)=>0===L_(n,e,t))(n,t,r);case"!=":return((n,e,t)=>0!==L_(n,e,t))(n,t,r);case">":return((n,e,t)=>L_(n,e,t)>0)(n,t,r);case">=":return((n,e,t)=>L_(n,e,t)>=0)(n,t,r);case"<":return((n,e,t)=>L_(n,e,t)<0)(n,t,r);case"<=":return((n,e,t)=>L_(n,e,t)<=0)(n,t,r);default:throw new TypeError(`Invalid operator: ${e}`)}},kM=Symbol("SemVer ANY"),RM=class{static get ANY(){return kM}constructor(n,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),n instanceof RM){if(n.loose===!!e.loose)return n;n=n.value}Ai("comparator",n,e),this.options=e,this.loose=!!e.loose,this.parse(n),this.value=this.semver===kM?"":this.operator+this.semver.version,Ai("comp",this)}parse(n){let t=n.match(this.options.loose?UQ[zQ.COMPARATORLOOSE]:UQ[zQ.COMPARATOR]);if(!t)throw new TypeError(`Invalid comparator: ${n}`);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new Ya(t[2],this.options.loose):kM}toString(){return this.value}test(n){if(Ai("Comparator.test",n,this.options.loose),this.semver===kM||n===kM)return!0;if("string"==typeof n)try{n=new Ya(n,this.options)}catch{return!1}return NL(n,this.operator,this.semver,this.options)}intersects(n,e){if(!(n instanceof RM))throw new TypeError("a Comparator is required");if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||new F_(n.value,e).test(this.value);if(""===n.operator)return""===n.value||new F_(this.value,e).test(n.semver);let t=!(">="!==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=NL(this.semver,"<",n.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===n.operator||"<"===n.operator),s=NL(this.semver,">",n.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===n.operator||">"===n.operator);return t||r||i&&o||a||s}},{re:UQ,t:zQ}=IM,F_=class{constructor(n,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),n instanceof F_)return n.loose===!!e.loose&&n.includePrerelease===!!e.includePrerelease?n:new F_(n.raw,e);if(n instanceof RM)return this.raw=n.value,this.set=[[n]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=n,this.set=n.split(/\s*\|\|\s*/).map(t=>this.parseRange(t.trim())).filter(t=>t.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:e}=this.options;n=(n=n.trim()).replace(e?Ps[Xa.HYPHENRANGELOOSE]:Ps[Xa.HYPHENRANGE],QDt(this.options.includePrerelease)),Ai("hyphen replace",n),n=n.replace(Ps[Xa.COMPARATORTRIM],UDt),Ai("comparator trim",n,Ps[Xa.COMPARATORTRIM]),n=(n=(n=n.replace(Ps[Xa.TILDETRIM],zDt)).replace(Ps[Xa.CARETTRIM],HDt)).split(/\s+/).join(" ");let r=e?Ps[Xa.COMPARATORLOOSE]:Ps[Xa.COMPARATOR];return n.split(" ").map(i=>jDt(i,this.options)).join(" ").split(/\s+/).map(i=>JDt(i,this.options)).filter(this.options.loose?i=>!!i.match(r):()=>!0).map(i=>new RM(i,this.options))}intersects(n,e){if(!(n instanceof F_))throw new TypeError("a Range is required");return this.set.some(t=>HQ(t,e)&&n.set.some(r=>HQ(r,e)&&t.every(i=>r.every(o=>i.intersects(o,e)))))}test(n){if(!n)return!1;if("string"==typeof n)try{n=new Ya(n,this.options)}catch{return!1}for(let e=0;e{let t=!0,r=n.slice(),i=r.pop();for(;t&&r.length;)t=r.every(o=>i.intersects(o,e)),i=r.pop();return t},jDt=(n,e)=>(Ai("comp",n,e),n=qDt(n,e),Ai("caret",n),n=GDt(n,e),Ai("tildes",n),n=YDt(n,e),Ai("xrange",n),n=KDt(n,e),Ai("stars",n),n),nl=n=>!n||"x"===n.toLowerCase()||"*"===n,GDt=(n,e)=>n.trim().split(/\s+/).map(t=>WDt(t,e)).join(" "),WDt=(n,e)=>n.replace(e.loose?Ps[Xa.TILDELOOSE]:Ps[Xa.TILDE],(r,i,o,a,s)=>{let l;return Ai("tilde",n,r,i,o,a,s),nl(i)?l="":nl(o)?l=`>=${i}.0.0 <${+i+1}.0.0-0`:nl(a)?l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`:s?(Ai("replaceTilde pr",s),l=`>=${i}.${o}.${a}-${s} <${i}.${+o+1}.0-0`):l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,Ai("tilde return",l),l}),qDt=(n,e)=>n.trim().split(/\s+/).map(t=>ZDt(t,e)).join(" "),ZDt=(n,e)=>{Ai("caret",n,e);let r=e.includePrerelease?"-0":"";return n.replace(e.loose?Ps[Xa.CARETLOOSE]:Ps[Xa.CARET],(i,o,a,s,l)=>{let c;return Ai("caret",n,i,o,a,s,l),nl(o)?c="":nl(a)?c=`>=${o}.0.0${r} <${+o+1}.0.0-0`:nl(s)?c="0"===o?`>=${o}.${a}.0${r} <${o}.${+a+1}.0-0`:`>=${o}.${a}.0${r} <${+o+1}.0.0-0`:l?(Ai("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`):(Ai("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`),Ai("caret return",c),c})},YDt=(n,e)=>(Ai("replaceXRanges",n,e),n.split(/\s+/).map(t=>XDt(t,e)).join(" ")),XDt=(n,e)=>(n=n.trim()).replace(e.loose?Ps[Xa.XRANGELOOSE]:Ps[Xa.XRANGE],(r,i,o,a,s,l)=>{Ai("xRange",n,r,i,o,a,s,l);let c=nl(o),u=c||nl(a),h=u||nl(s);return"="===i&&h&&(i=""),l=e.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&h?(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`:h&&(r=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Ai("xRange return",r),r}),KDt=(n,e)=>(Ai("replaceStars",n,e),n.trim().replace(Ps[Xa.STAR],"")),JDt=(n,e)=>(Ai("replaceGTE0",n,e),n.trim().replace(Ps[e.includePrerelease?Xa.GTE0PRE:Xa.GTE0],"")),QDt=n=>(e,t,r,i,o,a,s,l,c,u,h,p,g)=>`${t=nl(r)?"":nl(i)?`>=${r}.0.0${n?"-0":""}`:nl(o)?`>=${r}.${i}.0${n?"-0":""}`:a?`>=${t}`:`>=${t}${n?"-0":""}`} ${l=nl(c)?"":nl(u)?`<${+c+1}.0.0-0`:nl(h)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${h}-${p}`:n?`<${c}.${u}.${+h+1}-0`:`<=${l}`}`.trim(),tIt=(n,e,t)=>{for(let r=0;r0){let i=n[r].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},eIt=(n,e,t)=>{try{e=new F_(e,t)}catch{return!1}return e.test(n)},{MAX_LENGTH:nIt}=RL,{re:jQ,t:GQ}=IM,{re:q4,t:Z4}=IM,oIt=(n,e)=>{if(n instanceof Ya)return n;if("number"==typeof n&&(n=String(n)),"string"!=typeof n)return null;let t=null;if((e=e||{}).rtl){let r;for(;(r=q4[Z4.COERCERTL].exec(n))&&(!t||t.index+t[0].length!==n.length);)t&&r.index+r[0].length===t.index+t[0].length||(t=r),q4[Z4.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;q4[Z4.COERCERTL].lastIndex=-1}else t=n.match(q4[Z4.COERCE]);return null===t?null:((n,e)=>{if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),n instanceof Ya)return n;if("string"!=typeof n||n.length>nIt||!(e.loose?jQ[GQ.LOOSE]:jQ[GQ.FULL]).test(n))return null;try{return new Ya(n,e)}catch{return null}})(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};function aIt(n){return String.fromCharCode(parseInt(n.slice(1),16))}function sIt(n){return`%${`00${n.charCodeAt(0).toString(16)}`.slice(-2)}`}function WQ(n){return function lIt(n){return btoa(encodeURIComponent(n).replace(/%[0-9A-F]{2}/g,aIt))}(JSON.stringify(n))}function uIt(n){return JSON.parse(function cIt(n){return decodeURIComponent(Array.from(atob(n),sIt).join(""))}(n))}function af(n){return typeof n>"u"}function Y4(n){return function dIt(n){return null===n}(n)||af(n)}function LL(n){if(!n)return!0;for(let e in n)if(Object.hasOwnProperty.call(n,e))return!1;return!0}var ko={},gIt={"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"},sm=class extends Error{constructor(n,e){super(`Magic SDK Error: [${n}] ${e}`),this.code=n,this.rawMessage=e,this.__proto__=Error,Object.setPrototypeOf(this,sm.prototype)}},X4=class extends Error{constructor(n){super(),this.__proto__=Error;let e=Number(n?.code);this.rawMessage=n?.message||"Internal error",this.code=function fIt(n){return!Y4(n)&&"number"==typeof n&&Object.values(kL).includes(n)}(e)?e:kL.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=n?.data||void 0,Object.setPrototypeOf(this,X4.prototype)}},K4=class{constructor(n,e){this.code=n,this.rawMessage=e,this.message=`Magic SDK Warning: [${n}] ${e}`}log(){console.warn(this.message)}},qQ=class extends Error{constructor(n,e,t,r){super(`Magic Extension Error (${n.name}): [${e}] ${t}`),this.code=e,this.rawMessage=t,this.data=r,this.__proto__=Error,Object.setPrototypeOf(this,qQ.prototype)}},ZQ=class{constructor(n,e,t){this.code=e,this.rawMessage=t,this.message=`Magic Extension Warning (${n.name}): [${e}] ${t}`}log(){console.warn(this.message)}},OIt=function*PIt(){let n=0;for(;;)n(t=null!=n?cDt(pDt(n)):{},((n,e,t,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let i of fDt(e))!kQ.call(n,i)&&undefined!==i&&G4(n,i,{get:()=>e[i],enumerable:!(r=dDt(e,i))||r.enumerable});return n})(n&&n.__esModule?t:G4(t,"default",{value:n,enumerable:!0}),n)))(bDt()),AIt=class extends TIt.default{};function JQ(){let n=new AIt;return{emitter:n,createChainingEmitterMethod:(e,t)=>(...r)=>(n[e].apply(n,r),t),createBoundEmitterMethod:e=>(...t)=>n[e].apply(n,t)}}var QQ=Symbol("isPromiEvent");function DIt(n){return!!n[QQ]}function ttt(n){let e=ett(n),{createBoundEmitterMethod:t,createChainingEmitterMethod:r}=JQ(),i=Symbol("Promise.then"),o=Symbol("Promise.catch"),a=Symbol("Promise.finally"),s=(u,h)=>(...p)=>{let g=h[u].apply(h,p);return l(g)},l=u=>Object.assign(u,{[QQ]:!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:t("emit"),eventNames:t("eventNames"),listeners:t("listeners"),listenerCount:t("listenerCount")}),c=l(e.then(u=>(c.emit("done",u),c.emit("settled"),u),u=>{throw c.emit("error",u),c.emit("settled"),u}));return c}function ett(n){return new Promise((e,t)=>{let r=n(e,t);Promise.resolve(r).catch(t)})}var Q4,lm=class{constructor(n){this.sdk=n}get overlay(){return this.sdk.overlay}request(n){let e=this.overlay.post(j4.MAGIC_HANDLE_REQUEST,J4(n)),t=ttt((i,o)=>{e.then(a=>{if(r(),a.hasError)o(new X4(a.payload.error));else{if(!a.hasResult)throw function _It(){return new sm(am.MalformedResponse,"Response from the Magic iframe is malformed.")}();i(a.payload.result)}}).catch(a=>{r(),o(a)})}),r=this.overlay.on(N_.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;t.emit(s,...l)}});return t}createIntermediaryEvent(n,e){return t=>{let r=wo(Er.IntermediaryEvent,[{payloadId:e,eventType:n,args:t}]);this.request(r)}}},IIt=class extends lm{loginWithMagicLink(n){let{email:e,showUI:t=!0,redirectURI:r}=n,i=wo(this.sdk.testMode?Er.LoginWithMagicLinkTestMode:Er.LoginWithMagicLink,[{email:e,showUI:t,redirectURI:r}]);return this.request(i)}loginWithSMS(n){let{phoneNumber:e}=n,t=wo(this.sdk.testMode?Er.LoginWithSmsTestMode:Er.LoginWithSms,[{phoneNumber:e,showUI:!0}]);return this.request(t)}loginWithEmailOTP(n){let{email:e,showUI:t}=n,r=wo(this.sdk.testMode?Er.LoginWithEmailOTPTestMode:Er.LoginWithEmailOTP,[{email:e,showUI:t}]);if(!t){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 e=n??"";if(!n&&"web"===ko.platform){e=window.location.search;let r=window.location.origin+window.location.pathname;window.history.replaceState(null,"",r)}let t=wo(this.sdk.testMode?Er.LoginWithCredentialTestMode:Er.LoginWithCredential,[e]);return this.request(t)}},ntt={};function Gp(n){return(...e)=>rf(this,null,function*(){return Q4||(Q4=yield ko.configureStorage()),yield Q4.ready(),Q4[n](...e)})}((n,e)=>{for(var t in e)G4(n,t,{get:e[t],enumerable:!0})})(ntt,{clear:()=>EIt,getItem:()=>NM,iterate:()=>LIt,key:()=>RIt,keys:()=>NIt,length:()=>kIt,removeItem:()=>BL,setItem:()=>tT});var NM=Gp("getItem"),tT=Gp("setItem"),BL=Gp("removeItem"),EIt=Gp("clear"),kIt=Gp("length"),RIt=Gp("key"),NIt=Gp("keys"),LIt=Gp("iterate");function FIt(){let n=window.crypto.getRandomValues(new Uint8Array(16));n[6]=15&n[6]|64,n[8]=191&n[8]|128;let e="";return e+=n[0].toString(16),e+=n[1].toString(16),e+=n[2].toString(16),e+=n[3].toString(16),e+="-",e+=n[4].toString(16),e+=n[5].toString(16),e+="-",e+=n[6].toString(16),e+=n[7].toString(16),e+="-",e+=n[8].toString(16),e+=n[9].toString(16),e+="-",e+=n[10].toString(16),e+=n[11].toString(16),e+=n[12].toString(16),e+=n[13].toString(16),e+=n[14].toString(16),e+=n[15].toString(16),e}var VL="STORE_KEY_PRIVATE_KEY",eT="STORE_KEY_PUBLIC_JWK",$L="ECDSA",BIt={name:$L,namedCurve:"P-256"},VIt={name:$L,namedCurve:"P-256"};function itt(){BL(eT),BL(VL)}function ott(n){return att(function GIt(n){return encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}(n))}function att(n){return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+/g,"")}var qIt=class extends lm{getIdToken(n){let e=wo(this.sdk.testMode?Er.GetIdTokenTestMode:Er.GetIdToken,[n]);return this.request(e)}generateIdToken(n){let e=wo(this.sdk.testMode?Er.GenerateIdTokenTestMode:Er.GenerateIdToken,[n]);return this.request(e)}getMetadata(){let n=wo(this.sdk.testMode?Er.GetMetadataTestMode:Er.GetMetadata);return this.request(n)}updateEmail(n){let{email:e,showUI:t=!0}=n,r=wo(this.sdk.testMode?Er.UpdateEmailTestMode:Er.UpdateEmail,[{email:e,showUI:t}]);return this.request(r)}isLoggedIn(){let n=wo(this.sdk.testMode?Er.IsLoggedInTestMode:Er.IsLoggedIn);return this.request(n)}logout(){itt();let n=wo(this.sdk.testMode?Er.LogoutTestMode:Er.Logout);return this.request(n)}showSettings(){let n=wo(this.sdk.testMode?Er.UserSettingsTestMode:Er.UserSettings);return this.request(n)}updatePhoneNumber(){let n=wo(this.sdk.testMode?Er.UpdatePhoneNumberTestMode:Er.UpdatePhoneNumber);return this.request(n)}recoverAccount(n){let e=wo(this.sdk.testMode?Er.RecoverAccountTestMode:Er.RecoverAccount,[n]);return this.request(e)}},ZIt=class extends lm{connectWithUI(){let n=wo(Er.RequestAccounts);return this.request(n)}showUI(){let n=wo(Er.ShowUI);return this.request(n)}getInfo(){let n=wo(Er.GetInfo);return this.request(n)}requestUserInfoWithUI(n){let e=wo(Er.RequestUserInfoWithUI,n?[n]:[]);return this.request(e)}disconnect(){itt();let n=wo(Er.Disconnect);return this.request(n)}},{createBoundEmitterMethod:nT,createChainingEmitterMethod:B_}=JQ(),YIt=class extends lm{constructor(){super(...arguments),this.isMagic=!0,this.on=B_("on",this),this.once=B_("once",this),this.addListener=B_("addListener",this),this.off=B_("off",this),this.removeListener=B_("removeListener",this),this.removeAllListeners=B_("removeAllListeners",this),this.emit=nT("emit"),this.eventNames=nT("eventNames"),this.listeners=nT("listeners"),this.listenerCount=nT("listenerCount")}sendAsync(n,e){if(!e)throw function bIt(n){return new sm(am.InvalidArgument,`Invalid ${(t=>{let r=t+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===e?"null":typeof e});if(Array.isArray(n))this.overlay.post(j4.MAGIC_HANDLE_REQUEST,n.map(t=>{let r=J4(t);return this.prefixPayloadMethodForTestMode(r),r})).then(t=>{e(null,t.map(r=>((n,e)=>uDt(n,hDt(e)))(NQ({},r.payload),{error:r.hasError?new X4(r.payload.error):null})))});else{let t=J4(n);this.prefixPayloadMethodForTestMode(t),this.overlay.post(j4.MAGIC_HANDLE_REQUEST,t).then(r=>{e(r.hasError?new X4(r.payload.error):null,r.payload)})}}send(n,e){if("string"==typeof n){let r=wo(n,Array.isArray(e)?e:[]);return this.request(r)}if(Array.isArray(n)||e)return void this.sendAsync(n,e);let t=function wIt(){return new K4(H4.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 t.log(),new FL(n).applyError({code:-32603,message:t.rawMessage}).payload}enable(){let n=wo("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 rT(n,e){return e?new URL(n,e):new URL(n)}var stt=["request","overlay","sdk"];function XIt(n){let e=Object.getPrototypeOf(n),t=[e];for(;e!==lm.prototype;)e=Object.getPrototypeOf(e),t.push(e);return t}var ltt=class extends lm{constructor(){super(void 0),this.__sdk_access_field_descriptors__=new Map,this.__is_initialized__=!1,this.utils={createPromiEvent:ttt,isPromiEvent:DIt,encodeJSON:WQ,decodeJSON:uIt,createJsonRpcRequestPayload:wo,standardizeJsonRpcRequestPayload:J4,storage:ntt};let n=[this,...XIt(this)];stt.forEach(e=>{let t=n.map(a=>Object.getOwnPropertyDescriptor(a,e)),r=t.findIndex(a=>!!a),o=t[r];o&&(this.__sdk_access_field_descriptors__.set(e,{descriptor:o,isPrototypeField:r>0}),Object.defineProperty(this,e,{configurable:!0,get:()=>{throw function yIt(n){return new sm(am.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.`)}(e)}}))})}init(n){this.__is_initialized__||(stt.forEach(e=>{if(this.__sdk_access_field_descriptors__.has(e)){let{descriptor:t,isPrototypeField:r}=this.__sdk_access_field_descriptors__.get(e);r?delete this[e]:Object.defineProperty(this,e,t)}}),this.sdk=n,this.__is_initialized__=!0)}createDeprecationWarning(n){let{method:e,removalVersion:t,useInstead:r}=n;return new ZQ(this,"DEPRECATION_NOTICE",`\`${e}\` will be removed from this Extension in version \`${t}\`.${r?` Use \`${r}\` instead.`:""}`)}createWarning(n,e){return new ZQ(this,n,e)}createError(n,e,t){return new qQ(this,n,e,t)}},LM=class extends ltt{};LM.Internal=class extends ltt{},LM.Anonymous="anonymous extension";var JIt=class extends lm{purchase(n){let e=wo(Er.NFTPurchase,[n]);return this.request(e)}};function ctt(n){return!n.compat||null==n.compat[ko.sdkName]||("string"==typeof n.compat[ko.sdkName]?eIt(oIt(ko.version),n.compat[ko.sdkName]):!!n.compat[ko.sdkName])}function QIt(n){var e;let t=null!=(e=n?.extensions)?e:[],r={},i=[];if(Array.isArray(t)?t.forEach(o=>{ctt(o)?(o.init(this),(o.name||o.name!==LM.Anonymous)&&(this[o.name]=o),o instanceof LM.Internal&&(LL(o.config)||(r[o.name]=o.config))):i.push(o)}):Object.keys(t).forEach(o=>{if(ctt(t[o])){t[o].init(this);let a=t[o];this[o]=a,a instanceof LM.Internal&&(LL(a.config)||(r[t[o].name]=a.config))}else i.push(t[o])}),i.length)throw function CIt(n){let e=`Some extensions are incompatible with \`${ko.sdkName}@${ko.version}\`:`;return n.filter(t=>typeof t.compat<"u"&&null!==t.compat).forEach(t=>{let r=t.compat[ko.sdkName];"string"==typeof r?e+=`\n - Extension \`${t.name}\` supports version(s) \`${r}\``:r||(e+=`\n - Extension \`${t.name}\` does not support ${ko.platform} environments.`)}),new sm(am.IncompatibleExtensions,e)}(i);return r}var iT=class{constructor(n,e){var t;if(this.apiKey=n,!n)throw function mIt(){return new sm(am.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}();"react-native"===ko.platform&&e?.endpoint&&function xIt(){return new K4(H4.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint\` parameter SHOULD NOT be provided. The Magic \`