@n1k1t/mock-server 0.1.76 → 0.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
var vS=Object.defineProperty;var _S=(n,t,e)=>t in n?vS(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var it=(n,t,e)=>_S(n,typeof t!="symbol"?t+"":t,e);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function e(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=e(r);fetch(r.href,o)}})();var ti=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ba={exports:{}},yS=ba.exports,Vd;function bS(){return Vd||(Vd=1,function(n,t){(function(e,i){n.exports=i()})(yS,function(){return function(e,i,r){e=e||{};var o=i.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(f,h,v,d){return o.fromToBase(f,h,v,d)}r.en.relativeTime=a,o.fromToBase=function(f,h,v,d,g){for(var m,y,x,k=v.$locale().relativeTime||a,A=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],I=A.length,S=0;S<I;S+=1){var E=A[S];E.d&&(m=d?r(f).diff(v,E.d,!0):v.diff(f,E.d,!0));var P=(e.rounding||Math.round)(Math.abs(m));if(x=m>0,P<=E.r||!E.r){P<=1&&S>0&&(E=A[S-1]);var T=k[E.l];g&&(P=g(""+P)),y=typeof T=="string"?T.replace("%d",P):T(P,h,E.l,x);break}}if(h)return y;var F=x?k.future:k.past;return typeof F=="function"?F(y):F.replace("%s",y)},o.to=function(f,h){return c(f,h,this,!0)},o.from=function(f,h){return c(f,h,this)};var u=function(f){return f.$u?r.utc():r()};o.toNow=function(f){return this.to(u(this),f)},o.fromNow=function(f){return this.from(u(this),f)}}})}(ba)),ba.exports}var xS=bS();const wS=tr(xS);var xa={exports:{}},SS=xa.exports,$d;function ES(){return $d||($d=1,function(n,t){(function(e,i){n.exports=i()})(SS,function(){var e=1e3,i=6e4,r=36e5,o="millisecond",a="second",c="minute",u="hour",f="day",h="week",v="month",d="quarter",g="year",m="date",y="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(nt){var Z=["th","st","nd","rd"],B=nt%100;return"["+nt+(Z[(B-20)%10]||Z[B]||Z[0])+"]"}},I=function(nt,Z,B){var G=String(nt);return!G||G.length>=Z?nt:""+Array(Z+1-G.length).join(B)+nt},S={s:I,z:function(nt){var Z=-nt.utcOffset(),B=Math.abs(Z),G=Math.floor(B/60),X=B%60;return(Z<=0?"+":"-")+I(G,2,"0")+":"+I(X,2,"0")},m:function nt(Z,B){if(Z.date()<B.date())return-nt(B,Z);var G=12*(B.year()-Z.year())+(B.month()-Z.month()),X=Z.clone().add(G,v),rt=B-X<0,st=Z.clone().add(G+(rt?-1:1),v);return+(-(G+(B-X)/(rt?X-st:st-X))||0)},a:function(nt){return nt<0?Math.ceil(nt)||0:Math.floor(nt)},p:function(nt){return{M:v,y:g,w:h,d:f,D:m,h:u,m:c,s:a,ms:o,Q:d}[nt]||String(nt||"").toLowerCase().replace(/s$/,"")},u:function(nt){return nt===void 0}},E="en",P={};P[E]=A;var T="$isDayjsObject",F=function(nt){return nt instanceof Y||!(!nt||!nt[T])},$=function nt(Z,B,G){var X;if(!Z)return E;if(typeof Z=="string"){var rt=Z.toLowerCase();P[rt]&&(X=rt),B&&(P[rt]=B,X=rt);var st=Z.split("-");if(!X&&st.length>1)return nt(st[0])}else{var ct=Z.name;P[ct]=Z,X=ct}return!G&&X&&(E=X),X||!G&&E},q=function(nt,Z){if(F(nt))return nt.clone();var B=typeof Z=="object"?Z:{};return B.date=nt,B.args=arguments,new Y(B)},U=S;U.l=$,U.i=F,U.w=function(nt,Z){return q(nt,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var Y=function(){function nt(B){this.$L=$(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[T]=!0}var Z=nt.prototype;return Z.parse=function(B){this.$d=function(G){var X=G.date,rt=G.utc;if(X===null)return new Date(NaN);if(U.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var st=X.match(x);if(st){var ct=st[2]-1||0,Ot=(st[7]||"0").substring(0,3);return rt?new Date(Date.UTC(st[1],ct,st[3]||1,st[4]||0,st[5]||0,st[6]||0,Ot)):new Date(st[1],ct,st[3]||1,st[4]||0,st[5]||0,st[6]||0,Ot)}}return new Date(X)}(B),this.init()},Z.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},Z.$utils=function(){return U},Z.isValid=function(){return this.$d.toString()!==y},Z.isSame=function(B,G){var X=q(B);return this.startOf(G)<=X&&X<=this.endOf(G)},Z.isAfter=function(B,G){return q(B)<this.startOf(G)},Z.isBefore=function(B,G){return this.endOf(G)<q(B)},Z.$g=function(B,G,X){return U.u(B)?this[G]:this.set(X,B)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(B,G){var X=this,rt=!!U.u(G)||G,st=U.p(B),ct=function(ye,ce){var oe=U.w(X.$u?Date.UTC(X.$y,ce,ye):new Date(X.$y,ce,ye),X);return rt?oe:oe.endOf(f)},Ot=function(ye,ce){return U.w(X.toDate()[ye].apply(X.toDate("s"),(rt?[0,0,0,0]:[23,59,59,999]).slice(ce)),X)},Ft=this.$W,pt=this.$M,xt=this.$D,Zt="set"+(this.$u?"UTC":"");switch(st){case g:return rt?ct(1,0):ct(31,11);case v:return rt?ct(1,pt):ct(0,pt+1);case h:var en=this.$locale().weekStart||0,Pe=(Ft<en?Ft+7:Ft)-en;return ct(rt?xt-Pe:xt+(6-Pe),pt);case f:case m:return Ot(Zt+"Hours",0);case u:return Ot(Zt+"Minutes",1);case c:return Ot(Zt+"Seconds",2);case a:return Ot(Zt+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(B){return this.startOf(B,!1)},Z.$set=function(B,G){var X,rt=U.p(B),st="set"+(this.$u?"UTC":""),ct=(X={},X[f]=st+"Date",X[m]=st+"Date",X[v]=st+"Month",X[g]=st+"FullYear",X[u]=st+"Hours",X[c]=st+"Minutes",X[a]=st+"Seconds",X[o]=st+"Milliseconds",X)[rt],Ot=rt===f?this.$D+(G-this.$W):G;if(rt===v||rt===g){var Ft=this.clone().set(m,1);Ft.$d[ct](Ot),Ft.init(),this.$d=Ft.set(m,Math.min(this.$D,Ft.daysInMonth())).$d}else ct&&this.$d[ct](Ot);return this.init(),this},Z.set=function(B,G){return this.clone().$set(B,G)},Z.get=function(B){return this[U.p(B)]()},Z.add=function(B,G){var X,rt=this;B=Number(B);var st=U.p(G),ct=function(pt){var xt=q(rt);return U.w(xt.date(xt.date()+Math.round(pt*B)),rt)};if(st===v)return this.set(v,this.$M+B);if(st===g)return this.set(g,this.$y+B);if(st===f)return ct(1);if(st===h)return ct(7);var Ot=(X={},X[c]=i,X[u]=r,X[a]=e,X)[st]||1,Ft=this.$d.getTime()+B*Ot;return U.w(Ft,this)},Z.subtract=function(B,G){return this.add(-1*B,G)},Z.format=function(B){var G=this,X=this.$locale();if(!this.isValid())return X.invalidDate||y;var rt=B||"YYYY-MM-DDTHH:mm:ssZ",st=U.z(this),ct=this.$H,Ot=this.$m,Ft=this.$M,pt=X.weekdays,xt=X.months,Zt=X.meridiem,en=function(ce,oe,Re,Sn){return ce&&(ce[oe]||ce(G,rt))||Re[oe].slice(0,Sn)},Pe=function(ce){return U.s(ct%12||12,ce,"0")},ye=Zt||function(ce,oe,Re){var Sn=ce<12?"AM":"PM";return Re?Sn.toLowerCase():Sn};return rt.replace(k,function(ce,oe){return oe||function(Re){switch(Re){case"YY":return String(G.$y).slice(-2);case"YYYY":return U.s(G.$y,4,"0");case"M":return Ft+1;case"MM":return U.s(Ft+1,2,"0");case"MMM":return en(X.monthsShort,Ft,xt,3);case"MMMM":return en(xt,Ft);case"D":return G.$D;case"DD":return U.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return en(X.weekdaysMin,G.$W,pt,2);case"ddd":return en(X.weekdaysShort,G.$W,pt,3);case"dddd":return pt[G.$W];case"H":return String(ct);case"HH":return U.s(ct,2,"0");case"h":return Pe(1);case"hh":return Pe(2);case"a":return ye(ct,Ot,!0);case"A":return ye(ct,Ot,!1);case"m":return String(Ot);case"mm":return U.s(Ot,2,"0");case"s":return String(G.$s);case"ss":return U.s(G.$s,2,"0");case"SSS":return U.s(G.$ms,3,"0");case"Z":return st}return null}(ce)||st.replace(":","")})},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(B,G,X){var rt,st=this,ct=U.p(G),Ot=q(B),Ft=(Ot.utcOffset()-this.utcOffset())*i,pt=this-Ot,xt=function(){return U.m(st,Ot)};switch(ct){case g:rt=xt()/12;break;case v:rt=xt();break;case d:rt=xt()/3;break;case h:rt=(pt-Ft)/6048e5;break;case f:rt=(pt-Ft)/864e5;break;case u:rt=pt/r;break;case c:rt=pt/i;break;case a:rt=pt/e;break;default:rt=pt}return X?rt:U.a(rt)},Z.daysInMonth=function(){return this.endOf(v).$D},Z.$locale=function(){return P[this.$L]},Z.locale=function(B,G){if(!B)return this.$L;var X=this.clone(),rt=$(B,G,!0);return rt&&(X.$L=rt),X},Z.clone=function(){return U.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},nt}(),at=Y.prototype;return q.prototype=at,[["$ms",o],["$s",a],["$m",c],["$H",u],["$W",f],["$M",v],["$y",g],["$D",m]].forEach(function(nt){at[nt[1]]=function(Z){return this.$g(Z,nt[0],nt[1])}}),q.extend=function(nt,Z){return nt.$i||(nt(Z,Y,q),nt.$i=!0),q},q.locale=$,q.isDayjs=F,q.unix=function(nt){return q(1e3*nt)},q.en=P[E],q.Ls=P,q.p={},q})}(xa)),xa.exports}var kS=ES();const Er=tr(kS);var Oo={exports:{}},Lo={exports:{}},vn={},Fe={},Yd;function ze(){if(Yd)return Fe;Yd=1,Fe.__esModule=!0,Fe.extend=r,Fe.indexOf=u,Fe.escapeExpression=f,Fe.isEmpty=h,Fe.createFrame=v,Fe.blockParams=d,Fe.appendContextPath=g;var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},t=/[&<>"'`=]/g,e=/[&<>"'`=]/;function i(m){return n[m]}function r(m){for(var y=1;y<arguments.length;y++)for(var x in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],x)&&(m[x]=arguments[y][x]);return m}var o=Object.prototype.toString;Fe.toString=o;var a=function(y){return typeof y=="function"};a(/x/)&&(Fe.isFunction=a=function(m){return typeof m=="function"&&o.call(m)==="[object Function]"}),Fe.isFunction=a;var c=Array.isArray||function(m){return m&&typeof m=="object"?o.call(m)==="[object Array]":!1};Fe.isArray=c;function u(m,y){for(var x=0,k=m.length;x<k;x++)if(m[x]===y)return x;return-1}function f(m){if(typeof m!="string"){if(m&&m.toHTML)return m.toHTML();if(m==null)return"";if(!m)return m+"";m=""+m}return e.test(m)?m.replace(t,i):m}function h(m){return!m&&m!==0?!0:!!(c(m)&&m.length===0)}function v(m){var y=r({},m);return y._parent=m,y}function d(m,y){return m.path=y,m}function g(m,y){return(m?m+".":"")+y}return Fe}var Po={exports:{}},Gd;function wn(){return Gd||(Gd=1,function(n,t){t.__esModule=!0;var e=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function i(r,o){var a=o&&o.loc,c=void 0,u=void 0,f=void 0,h=void 0;a&&(c=a.start.line,u=a.end.line,f=a.start.column,h=a.end.column,r+=" - "+c+":"+f);for(var v=Error.prototype.constructor.call(this,r),d=0;d<e.length;d++)this[e[d]]=v[e[d]];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{a&&(this.lineNumber=c,this.endLineNumber=u,Object.defineProperty?(Object.defineProperty(this,"column",{value:f,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:h,enumerable:!0})):(this.column=f,this.endColumn=h))}catch{}}i.prototype=new Error,t.default=i,n.exports=t.default}(Po,Po.exports)),Po.exports}var Zr={},Ro={exports:{}},Kd;function CS(){return Kd||(Kd=1,function(n,t){t.__esModule=!0;var e=ze();t.default=function(i){i.registerHelper("blockHelperMissing",function(r,o){var a=o.inverse,c=o.fn;if(r===!0)return c(this);if(r===!1||r==null)return a(this);if(e.isArray(r))return r.length>0?(o.ids&&(o.ids=[o.name]),i.helpers.each(r,o)):a(this);if(o.data&&o.ids){var u=e.createFrame(o.data);u.contextPath=e.appendContextPath(o.data.contextPath,o.name),o={data:u}}return c(r,o)})},n.exports=t.default}(Ro,Ro.exports)),Ro.exports}var To={exports:{}},Xd;function AS(){return Xd||(Xd=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var i=ze(),r=wn(),o=e(r);t.default=function(a){a.registerHelper("each",function(c,u){if(!u)throw new o.default("Must pass iterator to #each");var f=u.fn,h=u.inverse,v=0,d="",g=void 0,m=void 0;u.data&&u.ids&&(m=i.appendContextPath(u.data.contextPath,u.ids[0])+"."),i.isFunction(c)&&(c=c.call(this)),u.data&&(g=i.createFrame(u.data));function y(S,E,P){g&&(g.key=S,g.index=E,g.first=E===0,g.last=!!P,m&&(g.contextPath=m+S)),d=d+f(c[S],{data:g,blockParams:i.blockParams([c[S],S],[m+S,null])})}if(c&&typeof c=="object")if(i.isArray(c))for(var x=c.length;v<x;v++)v in c&&y(v,v,v===c.length-1);else if(ti.Symbol&&c[ti.Symbol.iterator]){for(var k=[],A=c[ti.Symbol.iterator](),I=A.next();!I.done;I=A.next())k.push(I.value);c=k;for(var x=c.length;v<x;v++)y(v,v,v===c.length-1)}else(function(){var S=void 0;Object.keys(c).forEach(function(E){S!==void 0&&y(S,v-1),S=E,v++}),S!==void 0&&y(S,v-1,!0)})();return v===0&&(d=h(this)),d})},n.exports=t.default}(To,To.exports)),To.exports}var Io={exports:{}},Jd;function MS(){return Jd||(Jd=1,function(n,t){t.__esModule=!0;function e(o){return o&&o.__esModule?o:{default:o}}var i=wn(),r=e(i);t.default=function(o){o.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},n.exports=t.default}(Io,Io.exports)),Io.exports}var Do={exports:{}},Zd;function OS(){return Zd||(Zd=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var i=ze(),r=wn(),o=e(r);t.default=function(a){a.registerHelper("if",function(c,u){if(arguments.length!=2)throw new o.default("#if requires exactly one argument");return i.isFunction(c)&&(c=c.call(this)),!u.hash.includeZero&&!c||i.isEmpty(c)?u.inverse(this):u.fn(this)}),a.registerHelper("unless",function(c,u){if(arguments.length!=2)throw new o.default("#unless requires exactly one argument");return a.helpers.if.call(this,c,{fn:u.inverse,inverse:u.fn,hash:u.hash})})},n.exports=t.default}(Do,Do.exports)),Do.exports}var Bo={exports:{}},Qd;function LS(){return Qd||(Qd=1,function(n,t){t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var i=[void 0],r=arguments[arguments.length-1],o=0;o<arguments.length-1;o++)i.push(arguments[o]);var a=1;r.hash.level!=null?a=r.hash.level:r.data&&r.data.level!=null&&(a=r.data.level),i[0]=a,e.log.apply(e,i)})},n.exports=t.default}(Bo,Bo.exports)),Bo.exports}var Fo={exports:{}},tp;function PS(){return tp||(tp=1,function(n,t){t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(i,r,o){return i&&o.lookupProperty(i,r)})},n.exports=t.default}(Fo,Fo.exports)),Fo.exports}var No={exports:{}},ep;function RS(){return ep||(ep=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var i=ze(),r=wn(),o=e(r);t.default=function(a){a.registerHelper("with",function(c,u){if(arguments.length!=2)throw new o.default("#with requires exactly one argument");i.isFunction(c)&&(c=c.call(this));var f=u.fn;if(i.isEmpty(c))return u.inverse(this);var h=u.data;return u.data&&u.ids&&(h=i.createFrame(u.data),h.contextPath=i.appendContextPath(u.data.contextPath,u.ids[0])),f(c,{data:h,blockParams:i.blockParams([c],[h&&h.contextPath])})})},n.exports=t.default}(No,No.exports)),No.exports}var np;function Xm(){if(np)return Zr;np=1,Zr.__esModule=!0,Zr.registerDefaultHelpers=y,Zr.moveHelperToHooks=x;function n(k){return k&&k.__esModule?k:{default:k}}var t=CS(),e=n(t),i=AS(),r=n(i),o=MS(),a=n(o),c=OS(),u=n(c),f=LS(),h=n(f),v=PS(),d=n(v),g=RS(),m=n(g);function y(k){e.default(k),r.default(k),a.default(k),u.default(k),h.default(k),d.default(k),m.default(k)}function x(k,A,I){k.helpers[A]&&(k.hooks[A]=k.helpers[A],I||delete k.helpers[A])}return Zr}var Ho={},Wo={exports:{}},ip;function TS(){return ip||(ip=1,function(n,t){t.__esModule=!0;var e=ze();t.default=function(i){i.registerDecorator("inline",function(r,o,a,c){var u=r;return o.partials||(o.partials={},u=function(f,h){var v=a.partials;a.partials=e.extend({},v,o.partials);var d=r(f,h);return a.partials=v,d}),o.partials[c.args[0]]=c.fn,u})},n.exports=t.default}(Wo,Wo.exports)),Wo.exports}var rp;function IS(){if(rp)return Ho;rp=1,Ho.__esModule=!0,Ho.registerDefaultDecorators=i;function n(r){return r&&r.__esModule?r:{default:r}}var t=TS(),e=n(t);function i(r){e.default(r)}return Ho}var qo={exports:{}},sp;function Jm(){return sp||(sp=1,function(n,t){t.__esModule=!0;var e=ze(),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(o){if(typeof o=="string"){var a=e.indexOf(i.methodMap,o.toLowerCase());a>=0?o=a:o=parseInt(o,10)}return o},log:function(o){if(o=i.lookupLevel(o),typeof console<"u"&&i.lookupLevel(i.level)<=o){var a=i.methodMap[o];console[a]||(a="log");for(var c=arguments.length,u=Array(c>1?c-1:0),f=1;f<c;f++)u[f-1]=arguments[f];console[a].apply(console,u)}}};t.default=i,n.exports=t.default}(qo,qo.exports)),qo.exports}var vr={},zo={},op;function DS(){if(op)return zo;op=1,zo.__esModule=!0,zo.createNewLookupObject=t;var n=ze();function t(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n.extend.apply(void 0,[Object.create(null)].concat(i))}return zo}var ap;function Zm(){if(ap)return vr;ap=1,vr.__esModule=!0,vr.createProtoAccessControl=o,vr.resultIsAllowed=a,vr.resetLoggedProperties=f;function n(h){if(h&&h.__esModule)return h;var v={};if(h!=null)for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(v[d]=h[d]);return v.default=h,v}var t=DS(),e=Jm(),i=n(e),r=Object.create(null);function o(h){var v=Object.create(null);v.constructor=!1,v.__defineGetter__=!1,v.__defineSetter__=!1,v.__lookupGetter__=!1;var d=Object.create(null);return d.__proto__=!1,{properties:{whitelist:t.createNewLookupObject(d,h.allowedProtoProperties),defaultValue:h.allowProtoPropertiesByDefault},methods:{whitelist:t.createNewLookupObject(v,h.allowedProtoMethods),defaultValue:h.allowProtoMethodsByDefault}}}function a(h,v,d){return c(typeof h=="function"?v.methods:v.properties,d)}function c(h,v){return h.whitelist[v]!==void 0?h.whitelist[v]===!0:h.defaultValue!==void 0?h.defaultValue:(u(v),!1)}function u(h){r[h]!==!0&&(r[h]=!0,i.log("error",'Handlebars: Access has been denied to resolve the property "'+h+`" because it is not an "own property" of its parent.
|
|
2
|
+
You can add a runtime option to disable the check or this warning:
|
|
3
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function f(){Object.keys(r).forEach(function(h){delete r[h]})}return vr}var lp;function qu(){if(lp)return vn;lp=1,vn.__esModule=!0,vn.HandlebarsEnvironment=m;function n(x){return x&&x.__esModule?x:{default:x}}var t=ze(),e=wn(),i=n(e),r=Xm(),o=IS(),a=Jm(),c=n(a),u=Zm(),f="4.7.7";vn.VERSION=f;var h=8;vn.COMPILER_REVISION=h;var v=7;vn.LAST_COMPATIBLE_COMPILER_REVISION=v;var d={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};vn.REVISION_CHANGES=d;var g="[object Object]";function m(x,k,A){this.helpers=x||{},this.partials=k||{},this.decorators=A||{},r.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}m.prototype={constructor:m,logger:c.default,log:c.default.log,registerHelper:function(k,A){if(t.toString.call(k)===g){if(A)throw new i.default("Arg not supported with multiple helpers");t.extend(this.helpers,k)}else this.helpers[k]=A},unregisterHelper:function(k){delete this.helpers[k]},registerPartial:function(k,A){if(t.toString.call(k)===g)t.extend(this.partials,k);else{if(typeof A>"u")throw new i.default('Attempting to register a partial called "'+k+'" as undefined');this.partials[k]=A}},unregisterPartial:function(k){delete this.partials[k]},registerDecorator:function(k,A){if(t.toString.call(k)===g){if(A)throw new i.default("Arg not supported with multiple decorators");t.extend(this.decorators,k)}else this.decorators[k]=A},unregisterDecorator:function(k){delete this.decorators[k]},resetLoggedPropertyAccesses:function(){u.resetLoggedProperties()}};var y=c.default.log;return vn.log=y,vn.createFrame=t.createFrame,vn.logger=c.default,vn}var Uo={exports:{}},cp;function BS(){return cp||(cp=1,function(n,t){t.__esModule=!0;function e(i){this.string=i}e.prototype.toString=e.prototype.toHTML=function(){return""+this.string},t.default=e,n.exports=t.default}(Uo,Uo.exports)),Uo.exports}var Yn={},jo={},up;function FS(){if(up)return jo;up=1,jo.__esModule=!0,jo.wrapHelper=n;function n(t,e){if(typeof t!="function")return t;var i=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=e(o),t.apply(this,arguments)};return i}return jo}var hp;function NS(){if(hp)return Yn;hp=1,Yn.__esModule=!0,Yn.checkRevision=h,Yn.template=v,Yn.wrapProgram=d,Yn.resolvePartial=g,Yn.invokePartial=m,Yn.noop=y;function n(S){return S&&S.__esModule?S:{default:S}}function t(S){if(S&&S.__esModule)return S;var E={};if(S!=null)for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(E[P]=S[P]);return E.default=S,E}var e=ze(),i=t(e),r=wn(),o=n(r),a=qu(),c=Xm(),u=FS(),f=Zm();function h(S){var E=S&&S[0]||1,P=a.COMPILER_REVISION;if(!(E>=a.LAST_COMPATIBLE_COMPILER_REVISION&&E<=a.COMPILER_REVISION))if(E<a.LAST_COMPATIBLE_COMPILER_REVISION){var T=a.REVISION_CHANGES[P],F=a.REVISION_CHANGES[E];throw new o.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+T+") or downgrade your runtime to an older version ("+F+").")}else throw new o.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+S[1]+").")}function v(S,E){if(!E)throw new o.default("No environment passed to template");if(!S||!S.main)throw new o.default("Unknown template object: "+typeof S);S.main.decorator=S.main_d,E.VM.checkRevision(S.compiler);var P=S.compiler&&S.compiler[0]===7;function T(q,U,Y){Y.hash&&(U=i.extend({},U,Y.hash),Y.ids&&(Y.ids[0]=!0)),q=E.VM.resolvePartial.call(this,q,U,Y);var at=i.extend({},Y,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),nt=E.VM.invokePartial.call(this,q,U,at);if(nt==null&&E.compile&&(Y.partials[Y.name]=E.compile(q,S.compilerOptions,E),nt=Y.partials[Y.name](U,at)),nt!=null){if(Y.indent){for(var Z=nt.split(`
|
|
4
|
+
`),B=0,G=Z.length;B<G&&!(!Z[B]&&B+1===G);B++)Z[B]=Y.indent+Z[B];nt=Z.join(`
|
|
5
|
+
`)}return nt}else throw new o.default("The partial "+Y.name+" could not be compiled when running in runtime-only mode")}var F={strict:function(U,Y,at){if(!U||!(Y in U))throw new o.default('"'+Y+'" not defined in '+U,{loc:at});return F.lookupProperty(U,Y)},lookupProperty:function(U,Y){var at=U[Y];if(at==null||Object.prototype.hasOwnProperty.call(U,Y)||f.resultIsAllowed(at,F.protoAccessControl,Y))return at},lookup:function(U,Y){for(var at=U.length,nt=0;nt<at;nt++){var Z=U[nt]&&F.lookupProperty(U[nt],Y);if(Z!=null)return U[nt][Y]}},lambda:function(U,Y){return typeof U=="function"?U.call(Y):U},escapeExpression:i.escapeExpression,invokePartial:T,fn:function(U){var Y=S[U];return Y.decorator=S[U+"_d"],Y},programs:[],program:function(U,Y,at,nt,Z){var B=this.programs[U],G=this.fn(U);return Y||Z||nt||at?B=d(this,U,G,Y,at,nt,Z):B||(B=this.programs[U]=d(this,U,G)),B},data:function(U,Y){for(;U&&Y--;)U=U._parent;return U},mergeIfNeeded:function(U,Y){var at=U||Y;return U&&Y&&U!==Y&&(at=i.extend({},Y,U)),at},nullContext:Object.seal({}),noop:E.VM.noop,compilerInfo:S.compiler};function $(q){var U=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],Y=U.data;$._setup(U),!U.partial&&S.useData&&(Y=x(q,Y));var at=void 0,nt=S.useBlockParams?[]:void 0;S.useDepths&&(U.depths?at=q!=U.depths[0]?[q].concat(U.depths):U.depths:at=[q]);function Z(B){return""+S.main(F,B,F.helpers,F.partials,Y,nt,at)}return Z=k(S.main,Z,F,U.depths||[],Y,nt),Z(q,U)}return $.isTop=!0,$._setup=function(q){if(q.partial)F.protoAccessControl=q.protoAccessControl,F.helpers=q.helpers,F.partials=q.partials,F.decorators=q.decorators,F.hooks=q.hooks;else{var U=i.extend({},E.helpers,q.helpers);A(U,F),F.helpers=U,S.usePartial&&(F.partials=F.mergeIfNeeded(q.partials,E.partials)),(S.usePartial||S.useDecorators)&&(F.decorators=i.extend({},E.decorators,q.decorators)),F.hooks={},F.protoAccessControl=f.createProtoAccessControl(q);var Y=q.allowCallsToHelperMissing||P;c.moveHelperToHooks(F,"helperMissing",Y),c.moveHelperToHooks(F,"blockHelperMissing",Y)}},$._child=function(q,U,Y,at){if(S.useBlockParams&&!Y)throw new o.default("must pass block params");if(S.useDepths&&!at)throw new o.default("must pass parent depths");return d(F,q,S[q],U,0,Y,at)},$}function d(S,E,P,T,F,$,q){function U(Y){var at=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],nt=q;return q&&Y!=q[0]&&!(Y===S.nullContext&&q[0]===null)&&(nt=[Y].concat(q)),P(S,Y,S.helpers,S.partials,at.data||T,$&&[at.blockParams].concat($),nt)}return U=k(P,U,S,q,T,$),U.program=E,U.depth=q?q.length:0,U.blockParams=F||0,U}function g(S,E,P){return S?!S.call&&!P.name&&(P.name=S,S=P.partials[S]):P.name==="@partial-block"?S=P.data["partial-block"]:S=P.partials[P.name],S}function m(S,E,P){var T=P.data&&P.data["partial-block"];P.partial=!0,P.ids&&(P.data.contextPath=P.ids[0]||P.data.contextPath);var F=void 0;if(P.fn&&P.fn!==y&&function(){P.data=a.createFrame(P.data);var $=P.fn;F=P.data["partial-block"]=function(U){var Y=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return Y.data=a.createFrame(Y.data),Y.data["partial-block"]=T,$(U,Y)},$.partials&&(P.partials=i.extend({},P.partials,$.partials))}(),S===void 0&&F&&(S=F),S===void 0)throw new o.default("The partial "+P.name+" could not be found");if(S instanceof Function)return S(E,P)}function y(){return""}function x(S,E){return(!E||!("root"in E))&&(E=E?a.createFrame(E):{},E.root=S),E}function k(S,E,P,T,F,$){if(S.decorator){var q={};E=S.decorator(E,q,P,T&&T[0],F,$,T),i.extend(E,q)}return E}function A(S,E){Object.keys(S).forEach(function(P){var T=S[P];S[P]=I(T,E)})}function I(S,E){var P=E.lookupProperty;return u.wrapHelper(S,function(T){return i.extend({lookupProperty:P},T)})}return Yn}var Vo={exports:{}},fp;function Qm(){return fp||(fp=1,function(n,t){t.__esModule=!0,t.default=function(e){var i=typeof ti<"u"?ti:window,r=i.Handlebars;e.noConflict=function(){return i.Handlebars===e&&(i.Handlebars=r),e}},n.exports=t.default}(Vo,Vo.exports)),Vo.exports}var dp;function HS(){return dp||(dp=1,function(n,t){t.__esModule=!0;function e(A){return A&&A.__esModule?A:{default:A}}function i(A){if(A&&A.__esModule)return A;var I={};if(A!=null)for(var S in A)Object.prototype.hasOwnProperty.call(A,S)&&(I[S]=A[S]);return I.default=A,I}var r=qu(),o=i(r),a=BS(),c=e(a),u=wn(),f=e(u),h=ze(),v=i(h),d=NS(),g=i(d),m=Qm(),y=e(m);function x(){var A=new o.HandlebarsEnvironment;return v.extend(A,o),A.SafeString=c.default,A.Exception=f.default,A.Utils=v,A.escapeExpression=v.escapeExpression,A.VM=g,A.template=function(I){return g.template(I,A)},A}var k=x();k.create=x,y.default(k),k.default=k,t.default=k,n.exports=t.default}(Lo,Lo.exports)),Lo.exports}var $o={exports:{}},pp;function t0(){return pp||(pp=1,function(n,t){t.__esModule=!0;var e={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!e.helpers.scopedId(r)&&!r.depth}}};t.default=e,n.exports=t.default}($o,$o.exports)),$o.exports}var _r={},Yo={exports:{}},gp;function WS(){return gp||(gp=1,function(n,t){t.__esModule=!0;var e=function(){var i={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(c,u,f,h,v,d,g){var m=d.length-1;switch(v){case 1:return d[m-1];case 2:this.$=h.prepareProgram(d[m]);break;case 3:this.$=d[m];break;case 4:this.$=d[m];break;case 5:this.$=d[m];break;case 6:this.$=d[m];break;case 7:this.$=d[m];break;case 8:this.$=d[m];break;case 9:this.$={type:"CommentStatement",value:h.stripComment(d[m]),strip:h.stripFlags(d[m],d[m]),loc:h.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[m],value:d[m],loc:h.locInfo(this._$)};break;case 11:this.$=h.prepareRawBlock(d[m-2],d[m-1],d[m],this._$);break;case 12:this.$={path:d[m-3],params:d[m-2],hash:d[m-1]};break;case 13:this.$=h.prepareBlock(d[m-3],d[m-2],d[m-1],d[m],!1,this._$);break;case 14:this.$=h.prepareBlock(d[m-3],d[m-2],d[m-1],d[m],!0,this._$);break;case 15:this.$={open:d[m-5],path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:h.stripFlags(d[m-5],d[m])};break;case 16:this.$={path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:h.stripFlags(d[m-5],d[m])};break;case 17:this.$={path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:h.stripFlags(d[m-5],d[m])};break;case 18:this.$={strip:h.stripFlags(d[m-1],d[m-1]),program:d[m]};break;case 19:var y=h.prepareBlock(d[m-2],d[m-1],d[m],d[m],!1,this._$),x=h.prepareProgram([y],d[m-1].loc);x.chained=!0,this.$={strip:d[m-2].strip,program:x,chain:!0};break;case 20:this.$=d[m];break;case 21:this.$={path:d[m-1],strip:h.stripFlags(d[m-2],d[m])};break;case 22:this.$=h.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],h.stripFlags(d[m-4],d[m]),this._$);break;case 23:this.$=h.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],h.stripFlags(d[m-4],d[m]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[m-3],params:d[m-2],hash:d[m-1],indent:"",strip:h.stripFlags(d[m-4],d[m]),loc:h.locInfo(this._$)};break;case 25:this.$=h.preparePartialBlock(d[m-2],d[m-1],d[m],this._$);break;case 26:this.$={path:d[m-3],params:d[m-2],hash:d[m-1],strip:h.stripFlags(d[m-4],d[m])};break;case 27:this.$=d[m];break;case 28:this.$=d[m];break;case 29:this.$={type:"SubExpression",path:d[m-3],params:d[m-2],hash:d[m-1],loc:h.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[m],loc:h.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:h.id(d[m-2]),value:d[m],loc:h.locInfo(this._$)};break;case 32:this.$=h.id(d[m-1]);break;case 33:this.$=d[m];break;case 34:this.$=d[m];break;case 35:this.$={type:"StringLiteral",value:d[m],original:d[m],loc:h.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[m]),original:Number(d[m]),loc:h.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[m]==="true",original:d[m]==="true",loc:h.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:h.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:h.locInfo(this._$)};break;case 40:this.$=d[m];break;case 41:this.$=d[m];break;case 42:this.$=h.preparePath(!0,d[m],this._$);break;case 43:this.$=h.preparePath(!1,d[m],this._$);break;case 44:d[m-2].push({part:h.id(d[m]),original:d[m],separator:d[m-1]}),this.$=d[m-2];break;case 45:this.$=[{part:h.id(d[m]),original:d[m]}];break;case 46:this.$=[];break;case 47:d[m-1].push(d[m]);break;case 48:this.$=[];break;case 49:d[m-1].push(d[m]);break;case 50:this.$=[];break;case 51:d[m-1].push(d[m]);break;case 58:this.$=[];break;case 59:d[m-1].push(d[m]);break;case 64:this.$=[];break;case 65:d[m-1].push(d[m]);break;case 70:this.$=[];break;case 71:d[m-1].push(d[m]);break;case 78:this.$=[];break;case 79:d[m-1].push(d[m]);break;case 82:this.$=[];break;case 83:d[m-1].push(d[m]);break;case 86:this.$=[];break;case 87:d[m-1].push(d[m]);break;case 90:this.$=[];break;case 91:d[m-1].push(d[m]);break;case 94:this.$=[];break;case 95:d[m-1].push(d[m]);break;case 98:this.$=[d[m]];break;case 99:d[m-1].push(d[m]);break;case 100:this.$=[d[m]];break;case 101:d[m-1].push(d[m]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(c,u){throw new Error(c)},parse:function(c){var u=this,f=[0],h=[null],v=[],d=this.table,g="",m=0,y=0;this.lexer.setInput(c),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var x=this.lexer.yylloc;v.push(x);var k=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(){var at;return at=u.lexer.lex()||1,typeof at!="number"&&(at=u.symbols_[at]||at),at}for(var I,S,E,P,T={},F,$,q,U;;){if(S=f[f.length-1],this.defaultActions[S]?E=this.defaultActions[S]:((I===null||typeof I>"u")&&(I=A()),E=d[S]&&d[S][I]),typeof E>"u"||!E.length||!E[0]){var Y="";{U=[];for(F in d[S])this.terminals_[F]&&F>2&&U.push("'"+this.terminals_[F]+"'");this.lexer.showPosition?Y="Parse error on line "+(m+1)+`:
|
|
6
|
+
`+this.lexer.showPosition()+`
|
|
7
|
+
Expecting `+U.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Y="Parse error on line "+(m+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Y,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:x,expected:U})}}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+I);switch(E[0]){case 1:f.push(I),h.push(this.lexer.yytext),v.push(this.lexer.yylloc),f.push(E[1]),I=null,y=this.lexer.yyleng,g=this.lexer.yytext,m=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if($=this.productions_[E[1]][1],T.$=h[h.length-$],T._$={first_line:v[v.length-($||1)].first_line,last_line:v[v.length-1].last_line,first_column:v[v.length-($||1)].first_column,last_column:v[v.length-1].last_column},k&&(T._$.range=[v[v.length-($||1)].range[0],v[v.length-1].range[1]]),P=this.performAction.call(T,g,y,m,this.yy,E[1],h,v),typeof P<"u")return P;$&&(f=f.slice(0,-1*$*2),h=h.slice(0,-1*$),v=v.slice(0,-1*$)),f.push(this.productions_[E[1]][0]),h.push(T.$),v.push(T._$),q=d[f[f.length-2]][f[f.length-1]],f.push(q);break;case 3:return!0}}return!0}},r=function(){var a={EOF:1,parseError:function(u,f){if(this.yy.parser)this.yy.parser.parseError(u,f);else throw new Error(u)},setInput:function(u){return this._input=u,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var f=u.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var f=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f-1),this.offset-=f;var v=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===v.length?this.yylloc.first_column:0)+v[v.length-h.length].length-h[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-f]),this},more:function(){return this._more=!0,this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),f=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
|
8
|
+
`+f+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,f,h,v,d;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),m=0;m<g.length&&(h=this._input.match(this.rules[g[m]]),!(h&&(!f||h[0].length>f[0].length)&&(f=h,v=m,!this.options.flex)));m++);return f?(d=f[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(f[0].length),this.matched+=f[0],u=this.performAction.call(this,this.yy,this,g[v],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
9
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return typeof u<"u"?u:this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(u){this.begin(u)}};return a.options={},a.performAction=function(u,f,h,v){function d(g,m){return f.yytext=f.yytext.substring(g,f.yyleng-m+g)}switch(h){case 0:if(f.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):f.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),f.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(f.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return f.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return f.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return f.yytext=f.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();i.lexer=r;function o(){this.yy={}}return o.prototype=i,i.Parser=o,new o}();t.default=e,n.exports=t.default}(Yo,Yo.exports)),Yo.exports}var Go={exports:{}},Ko={exports:{}},mp;function e0(){return mp||(mp=1,function(n,t){t.__esModule=!0;function e(f){return f&&f.__esModule?f:{default:f}}var i=wn(),r=e(i);function o(){this.parents=[]}o.prototype={constructor:o,mutating:!1,acceptKey:function(h,v){var d=this.accept(h[v]);if(this.mutating){if(d&&!o.prototype[d.type])throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+v+" on "+h.type);h[v]=d}},acceptRequired:function(h,v){if(this.acceptKey(h,v),!h[v])throw new r.default(h.type+" requires "+v)},acceptArray:function(h){for(var v=0,d=h.length;v<d;v++)this.acceptKey(h,v),h[v]||(h.splice(v,1),v--,d--)},accept:function(h){if(h){if(!this[h.type])throw new r.default("Unknown type: "+h.type,h);this.current&&this.parents.unshift(this.current),this.current=h;var v=this[h.type](h);if(this.current=this.parents.shift(),!this.mutating||v)return v;if(v!==!1)return h}},Program:function(h){this.acceptArray(h.body)},MustacheStatement:a,Decorator:a,BlockStatement:c,DecoratorBlock:c,PartialStatement:u,PartialBlockStatement:function(h){u.call(this,h),this.acceptKey(h,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(h){this.acceptArray(h.pairs)},HashPair:function(h){this.acceptRequired(h,"value")}};function a(f){this.acceptRequired(f,"path"),this.acceptArray(f.params),this.acceptKey(f,"hash")}function c(f){a.call(this,f),this.acceptKey(f,"program"),this.acceptKey(f,"inverse")}function u(f){this.acceptRequired(f,"name"),this.acceptArray(f.params),this.acceptKey(f,"hash")}t.default=o,n.exports=t.default}(Ko,Ko.exports)),Ko.exports}var vp;function qS(){return vp||(vp=1,function(n,t){t.__esModule=!0;function e(h){return h&&h.__esModule?h:{default:h}}var i=e0(),r=e(i);function o(){var h=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=h}o.prototype=new r.default,o.prototype.Program=function(h){var v=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var g=h.body,m=0,y=g.length;m<y;m++){var x=g[m],k=this.accept(x);if(k){var A=a(g,m,d),I=c(g,m,d),S=k.openStandalone&&A,E=k.closeStandalone&&I,P=k.inlineStandalone&&A&&I;k.close&&u(g,m,!0),k.open&&f(g,m,!0),v&&P&&(u(g,m),f(g,m)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(g[m-1].original)[1])),v&&S&&(u((x.program||x.inverse).body),f(g,m)),v&&E&&(u(g,m),f((x.inverse||x.program).body))}}return h},o.prototype.BlockStatement=o.prototype.DecoratorBlock=o.prototype.PartialBlockStatement=function(h){this.accept(h.program),this.accept(h.inverse);var v=h.program||h.inverse,d=h.program&&h.inverse,g=d,m=d;if(d&&d.chained)for(g=d.body[0].program;m.chained;)m=m.body[m.body.length-1].program;var y={open:h.openStrip.open,close:h.closeStrip.close,openStandalone:c(v.body),closeStandalone:a((g||v).body)};if(h.openStrip.close&&u(v.body,null,!0),d){var x=h.inverseStrip;x.open&&f(v.body,null,!0),x.close&&u(g.body,null,!0),h.closeStrip.open&&f(m.body,null,!0),!this.options.ignoreStandalone&&a(v.body)&&c(g.body)&&(f(v.body),u(g.body))}else h.closeStrip.open&&f(v.body,null,!0);return y},o.prototype.Decorator=o.prototype.MustacheStatement=function(h){return h.strip},o.prototype.PartialStatement=o.prototype.CommentStatement=function(h){var v=h.strip||{};return{inlineStandalone:!0,open:v.open,close:v.close}};function a(h,v,d){v===void 0&&(v=h.length);var g=h[v-1],m=h[v-2];if(!g)return d;if(g.type==="ContentStatement")return(m||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(g.original)}function c(h,v,d){v===void 0&&(v=-1);var g=h[v+1],m=h[v+2];if(!g)return d;if(g.type==="ContentStatement")return(m||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(g.original)}function u(h,v,d){var g=h[v==null?0:v+1];if(!(!g||g.type!=="ContentStatement"||!d&&g.rightStripped)){var m=g.value;g.value=g.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),g.rightStripped=g.value!==m}}function f(h,v,d){var g=h[v==null?h.length-1:v-1];if(!(!g||g.type!=="ContentStatement"||!d&&g.leftStripped)){var m=g.value;return g.value=g.value.replace(d?/\s+$/:/[ \t]+$/,""),g.leftStripped=g.value!==m,g.leftStripped}}t.default=o,n.exports=t.default}(Go,Go.exports)),Go.exports}var Je={},_p;function zS(){if(_p)return Je;_p=1,Je.__esModule=!0,Je.SourceLocation=r,Je.id=o,Je.stripFlags=a,Je.stripComment=c,Je.preparePath=u,Je.prepareMustache=f,Je.prepareRawBlock=h,Je.prepareBlock=v,Je.prepareProgram=d,Je.preparePartialBlock=g;function n(m){return m&&m.__esModule?m:{default:m}}var t=wn(),e=n(t);function i(m,y){if(y=y.path?y.path.original:y,m.path.original!==y){var x={loc:m.path.loc};throw new e.default(m.path.original+" doesn't match "+y,x)}}function r(m,y){this.source=m,this.start={line:y.first_line,column:y.first_column},this.end={line:y.last_line,column:y.last_column}}function o(m){return/^\[.*\]$/.test(m)?m.substring(1,m.length-1):m}function a(m,y){return{open:m.charAt(2)==="~",close:y.charAt(y.length-3)==="~"}}function c(m){return m.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function u(m,y,x){x=this.locInfo(x);for(var k=m?"@":"",A=[],I=0,S=0,E=y.length;S<E;S++){var P=y[S].part,T=y[S].original!==P;if(k+=(y[S].separator||"")+P,!T&&(P===".."||P==="."||P==="this")){if(A.length>0)throw new e.default("Invalid path: "+k,{loc:x});P===".."&&I++}else A.push(P)}return{type:"PathExpression",data:m,depth:I,parts:A,original:k,loc:x}}function f(m,y,x,k,A,I){var S=k.charAt(3)||k.charAt(2),E=S!=="{"&&S!=="&",P=/\*/.test(k);return{type:P?"Decorator":"MustacheStatement",path:m,params:y,hash:x,escaped:E,strip:A,loc:this.locInfo(I)}}function h(m,y,x,k){i(m,x),k=this.locInfo(k);var A={type:"Program",body:y,strip:{},loc:k};return{type:"BlockStatement",path:m.path,params:m.params,hash:m.hash,program:A,openStrip:{},inverseStrip:{},closeStrip:{},loc:k}}function v(m,y,x,k,A,I){k&&k.path&&i(m,k);var S=/\*/.test(m.open);y.blockParams=m.blockParams;var E=void 0,P=void 0;if(x){if(S)throw new e.default("Unexpected inverse block on decorator",x);x.chain&&(x.program.body[0].closeStrip=k.strip),P=x.strip,E=x.program}return A&&(A=E,E=y,y=A),{type:S?"DecoratorBlock":"BlockStatement",path:m.path,params:m.params,hash:m.hash,program:y,inverse:E,openStrip:m.strip,inverseStrip:P,closeStrip:k&&k.strip,loc:this.locInfo(I)}}function d(m,y){if(!y&&m.length){var x=m[0].loc,k=m[m.length-1].loc;x&&k&&(y={source:x.source,start:{line:x.start.line,column:x.start.column},end:{line:k.end.line,column:k.end.column}})}return{type:"Program",body:m,strip:{},loc:y}}function g(m,y,x,k){return i(m,x),{type:"PartialBlockStatement",name:m.path,params:m.params,hash:m.hash,program:y,openStrip:m.strip,closeStrip:x&&x.strip,loc:this.locInfo(k)}}return Je}var yp;function US(){if(yp)return _r;yp=1,_r.__esModule=!0,_r.parseWithoutProcessing=h,_r.parse=v;function n(d){if(d&&d.__esModule)return d;var g={};if(d!=null)for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(g[m]=d[m]);return g.default=d,g}function t(d){return d&&d.__esModule?d:{default:d}}var e=WS(),i=t(e),r=qS(),o=t(r),a=zS(),c=n(a),u=ze();_r.parser=i.default;var f={};u.extend(f,c);function h(d,g){if(d.type==="Program")return d;i.default.yy=f,f.locInfo=function(y){return new f.SourceLocation(g&&g.srcName,y)};var m=i.default.parse(d);return m}function v(d,g){var m=h(d,g),y=new o.default(g);return y.accept(m)}return _r}var yr={},bp;function jS(){if(bp)return yr;bp=1,yr.__esModule=!0,yr.Compiler=c,yr.precompile=u,yr.compile=f;function n(d){return d&&d.__esModule?d:{default:d}}var t=wn(),e=n(t),i=ze(),r=t0(),o=n(r),a=[].slice;function c(){}c.prototype={compiler:c,equals:function(g){var m=this.opcodes.length;if(g.opcodes.length!==m)return!1;for(var y=0;y<m;y++){var x=this.opcodes[y],k=g.opcodes[y];if(x.opcode!==k.opcode||!h(x.args,k.args))return!1}m=this.children.length;for(var y=0;y<m;y++)if(!this.children[y].equals(g.children[y]))return!1;return!0},guid:0,compile:function(g,m){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=m,this.stringParams=m.stringParams,this.trackIds=m.trackIds,m.blockParams=m.blockParams||[],m.knownHelpers=i.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},m.knownHelpers),this.accept(g)},compileProgram:function(g){var m=new this.compiler,y=m.compile(g,this.options),x=this.guid++;return this.usePartial=this.usePartial||y.usePartial,this.children[x]=y,this.useDepths=this.useDepths||y.useDepths,x},accept:function(g){if(!this[g.type])throw new e.default("Unknown type: "+g.type,g);this.sourceNode.unshift(g);var m=this[g.type](g);return this.sourceNode.shift(),m},Program:function(g){this.options.blockParams.unshift(g.blockParams);for(var m=g.body,y=m.length,x=0;x<y;x++)this.accept(m[x]);return this.options.blockParams.shift(),this.isSimple=y===1,this.blockParams=g.blockParams?g.blockParams.length:0,this},BlockStatement:function(g){v(g);var m=g.program,y=g.inverse;m=m&&this.compileProgram(m),y=y&&this.compileProgram(y);var x=this.classifySexpr(g);x==="helper"?this.helperSexpr(g,m,y):x==="simple"?(this.simpleSexpr(g),this.opcode("pushProgram",m),this.opcode("pushProgram",y),this.opcode("emptyHash"),this.opcode("blockValue",g.path.original)):(this.ambiguousSexpr(g,m,y),this.opcode("pushProgram",m),this.opcode("pushProgram",y),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(g){var m=g.program&&this.compileProgram(g.program),y=this.setupFullMustacheParams(g,m,void 0),x=g.path;this.useDecorators=!0,this.opcode("registerDecorator",y.length,x.original)},PartialStatement:function(g){this.usePartial=!0;var m=g.program;m&&(m=this.compileProgram(g.program));var y=g.params;if(y.length>1)throw new e.default("Unsupported number of partial arguments: "+y.length,g);y.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):y.push({type:"PathExpression",parts:[],depth:0}));var x=g.name.original,k=g.name.type==="SubExpression";k&&this.accept(g.name),this.setupFullMustacheParams(g,m,void 0,!0);var A=g.indent||"";this.options.preventIndent&&A&&(this.opcode("appendContent",A),A=""),this.opcode("invokePartial",k,x,A),this.opcode("append")},PartialBlockStatement:function(g){this.PartialStatement(g)},MustacheStatement:function(g){this.SubExpression(g),g.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(g){this.DecoratorBlock(g)},ContentStatement:function(g){g.value&&this.opcode("appendContent",g.value)},CommentStatement:function(){},SubExpression:function(g){v(g);var m=this.classifySexpr(g);m==="simple"?this.simpleSexpr(g):m==="helper"?this.helperSexpr(g):this.ambiguousSexpr(g)},ambiguousSexpr:function(g,m,y){var x=g.path,k=x.parts[0],A=m!=null||y!=null;this.opcode("getContext",x.depth),this.opcode("pushProgram",m),this.opcode("pushProgram",y),x.strict=!0,this.accept(x),this.opcode("invokeAmbiguous",k,A)},simpleSexpr:function(g){var m=g.path;m.strict=!0,this.accept(m),this.opcode("resolvePossibleLambda")},helperSexpr:function(g,m,y){var x=this.setupFullMustacheParams(g,m,y),k=g.path,A=k.parts[0];if(this.options.knownHelpers[A])this.opcode("invokeKnownHelper",x.length,A);else{if(this.options.knownHelpersOnly)throw new e.default("You specified knownHelpersOnly, but used the unknown helper "+A,g);k.strict=!0,k.falsy=!0,this.accept(k),this.opcode("invokeHelper",x.length,k.original,o.default.helpers.simpleId(k))}},PathExpression:function(g){this.addDepth(g.depth),this.opcode("getContext",g.depth);var m=g.parts[0],y=o.default.helpers.scopedId(g),x=!g.depth&&!y&&this.blockParamIndex(m);x?this.opcode("lookupBlockParam",x,g.parts):m?g.data?(this.options.data=!0,this.opcode("lookupData",g.depth,g.parts,g.strict)):this.opcode("lookupOnContext",g.parts,g.falsy,g.strict,y):this.opcode("pushContext")},StringLiteral:function(g){this.opcode("pushString",g.value)},NumberLiteral:function(g){this.opcode("pushLiteral",g.value)},BooleanLiteral:function(g){this.opcode("pushLiteral",g.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(g){var m=g.pairs,y=0,x=m.length;for(this.opcode("pushHash");y<x;y++)this.pushParam(m[y].value);for(;y--;)this.opcode("assignToHash",m[y].key);this.opcode("popHash")},opcode:function(g){this.opcodes.push({opcode:g,args:a.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(g){g&&(this.useDepths=!0)},classifySexpr:function(g){var m=o.default.helpers.simpleId(g.path),y=m&&!!this.blockParamIndex(g.path.parts[0]),x=!y&&o.default.helpers.helperExpression(g),k=!y&&(x||m);if(k&&!x){var A=g.path.parts[0],I=this.options;I.knownHelpers[A]?x=!0:I.knownHelpersOnly&&(k=!1)}return x?"helper":k?"ambiguous":"simple"},pushParams:function(g){for(var m=0,y=g.length;m<y;m++)this.pushParam(g[m])},pushParam:function(g){var m=g.value!=null?g.value:g.original||"";if(this.stringParams)m.replace&&(m=m.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),g.depth&&this.addDepth(g.depth),this.opcode("getContext",g.depth||0),this.opcode("pushStringParam",m,g.type),g.type==="SubExpression"&&this.accept(g);else{if(this.trackIds){var y=void 0;if(g.parts&&!o.default.helpers.scopedId(g)&&!g.depth&&(y=this.blockParamIndex(g.parts[0])),y){var x=g.parts.slice(1).join(".");this.opcode("pushId","BlockParam",y,x)}else m=g.original||m,m.replace&&(m=m.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",g.type,m)}this.accept(g)}},setupFullMustacheParams:function(g,m,y,x){var k=g.params;return this.pushParams(k),this.opcode("pushProgram",m),this.opcode("pushProgram",y),g.hash?this.accept(g.hash):this.opcode("emptyHash",x),k},blockParamIndex:function(g){for(var m=0,y=this.options.blockParams.length;m<y;m++){var x=this.options.blockParams[m],k=x&&i.indexOf(x,g);if(x&&k>=0)return[m,k]}}};function u(d,g,m){if(d==null||typeof d!="string"&&d.type!=="Program")throw new e.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+d);g=g||{},"data"in g||(g.data=!0),g.compat&&(g.useDepths=!0);var y=m.parse(d,g),x=new m.Compiler().compile(y,g);return new m.JavaScriptCompiler().compile(x,g)}function f(d,g,m){if(g===void 0&&(g={}),d==null||typeof d!="string"&&d.type!=="Program")throw new e.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+d);g=i.extend({},g),"data"in g||(g.data=!0),g.compat&&(g.useDepths=!0);var y=void 0;function x(){var A=m.parse(d,g),I=new m.Compiler().compile(A,g),S=new m.JavaScriptCompiler().compile(I,g,void 0,!0);return m.template(S)}function k(A,I){return y||(y=x()),y.call(this,A,I)}return k._setup=function(A){return y||(y=x()),y._setup(A)},k._child=function(A,I,S,E){return y||(y=x()),y._child(A,I,S,E)},k}function h(d,g){if(d===g)return!0;if(i.isArray(d)&&i.isArray(g)&&d.length===g.length){for(var m=0;m<d.length;m++)if(!h(d[m],g[m]))return!1;return!0}}function v(d){if(!d.path.parts){var g=d.path;d.path={type:"PathExpression",data:!1,depth:0,parts:[g.original+""],original:g.original+"",loc:g.loc}}}return yr}var Xo={exports:{}},Jo={exports:{}},Qr={},mc={},Zo={},Qo={},xp;function VS(){if(xp)return Qo;xp=1;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Qo.encode=function(t){if(0<=t&&t<n.length)return n[t];throw new TypeError("Must be between 0 and 63: "+t)},Qo.decode=function(t){var e=65,i=90,r=97,o=122,a=48,c=57,u=43,f=47,h=26,v=52;return e<=t&&t<=i?t-e:r<=t&&t<=o?t-r+h:a<=t&&t<=c?t-a+v:t==u?62:t==f?63:-1},Qo}var wp;function n0(){if(wp)return Zo;wp=1;var n=VS(),t=5,e=1<<t,i=e-1,r=e;function o(c){return c<0?(-c<<1)+1:(c<<1)+0}function a(c){var u=(c&1)===1,f=c>>1;return u?-f:f}return Zo.encode=function(u){var f="",h,v=o(u);do h=v&i,v>>>=t,v>0&&(h|=r),f+=n.encode(h);while(v>0);return f},Zo.decode=function(u,f,h){var v=u.length,d=0,g=0,m,y;do{if(f>=v)throw new Error("Expected more digits in base 64 VLQ value.");if(y=n.decode(u.charCodeAt(f++)),y===-1)throw new Error("Invalid base64 digit: "+u.charAt(f-1));m=!!(y&r),y&=i,d=d+(y<<g),g+=t}while(m);h.value=a(d),h.rest=f},Zo}var vc={},Sp;function Is(){return Sp||(Sp=1,function(n){function t(S,E,P){if(E in S)return S[E];if(arguments.length===3)return P;throw new Error('"'+E+'" is a required argument.')}n.getArg=t;var e=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,i=/^data:.+\,.+$/;function r(S){var E=S.match(e);return E?{scheme:E[1],auth:E[2],host:E[3],port:E[4],path:E[5]}:null}n.urlParse=r;function o(S){var E="";return S.scheme&&(E+=S.scheme+":"),E+="//",S.auth&&(E+=S.auth+"@"),S.host&&(E+=S.host),S.port&&(E+=":"+S.port),S.path&&(E+=S.path),E}n.urlGenerate=o;function a(S){var E=S,P=r(S);if(P){if(!P.path)return S;E=P.path}for(var T=n.isAbsolute(E),F=E.split(/\/+/),$,q=0,U=F.length-1;U>=0;U--)$=F[U],$==="."?F.splice(U,1):$===".."?q++:q>0&&($===""?(F.splice(U+1,q),q=0):(F.splice(U,2),q--));return E=F.join("/"),E===""&&(E=T?"/":"."),P?(P.path=E,o(P)):E}n.normalize=a;function c(S,E){S===""&&(S="."),E===""&&(E=".");var P=r(E),T=r(S);if(T&&(S=T.path||"/"),P&&!P.scheme)return T&&(P.scheme=T.scheme),o(P);if(P||E.match(i))return E;if(T&&!T.host&&!T.path)return T.host=E,o(T);var F=E.charAt(0)==="/"?E:a(S.replace(/\/+$/,"")+"/"+E);return T?(T.path=F,o(T)):F}n.join=c,n.isAbsolute=function(S){return S.charAt(0)==="/"||e.test(S)};function u(S,E){S===""&&(S="."),S=S.replace(/\/$/,"");for(var P=0;E.indexOf(S+"/")!==0;){var T=S.lastIndexOf("/");if(T<0||(S=S.slice(0,T),S.match(/^([^\/]+:\/)?\/*$/)))return E;++P}return Array(P+1).join("../")+E.substr(S.length+1)}n.relative=u;var f=function(){var S=Object.create(null);return!("__proto__"in S)}();function h(S){return S}function v(S){return g(S)?"$"+S:S}n.toSetString=f?h:v;function d(S){return g(S)?S.slice(1):S}n.fromSetString=f?h:d;function g(S){if(!S)return!1;var E=S.length;if(E<9||S.charCodeAt(E-1)!==95||S.charCodeAt(E-2)!==95||S.charCodeAt(E-3)!==111||S.charCodeAt(E-4)!==116||S.charCodeAt(E-5)!==111||S.charCodeAt(E-6)!==114||S.charCodeAt(E-7)!==112||S.charCodeAt(E-8)!==95||S.charCodeAt(E-9)!==95)return!1;for(var P=E-10;P>=0;P--)if(S.charCodeAt(P)!==36)return!1;return!0}function m(S,E,P){var T=x(S.source,E.source);return T!==0||(T=S.originalLine-E.originalLine,T!==0)||(T=S.originalColumn-E.originalColumn,T!==0||P)||(T=S.generatedColumn-E.generatedColumn,T!==0)||(T=S.generatedLine-E.generatedLine,T!==0)?T:x(S.name,E.name)}n.compareByOriginalPositions=m;function y(S,E,P){var T=S.generatedLine-E.generatedLine;return T!==0||(T=S.generatedColumn-E.generatedColumn,T!==0||P)||(T=x(S.source,E.source),T!==0)||(T=S.originalLine-E.originalLine,T!==0)||(T=S.originalColumn-E.originalColumn,T!==0)?T:x(S.name,E.name)}n.compareByGeneratedPositionsDeflated=y;function x(S,E){return S===E?0:S===null?1:E===null?-1:S>E?1:-1}function k(S,E){var P=S.generatedLine-E.generatedLine;return P!==0||(P=S.generatedColumn-E.generatedColumn,P!==0)||(P=x(S.source,E.source),P!==0)||(P=S.originalLine-E.originalLine,P!==0)||(P=S.originalColumn-E.originalColumn,P!==0)?P:x(S.name,E.name)}n.compareByGeneratedPositionsInflated=k;function A(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}n.parseSourceMapInput=A;function I(S,E,P){if(E=E||"",S&&(S[S.length-1]!=="/"&&E[0]!=="/"&&(S+="/"),E=S+E),P){var T=r(P);if(!T)throw new Error("sourceMapURL could not be parsed");if(T.path){var F=T.path.lastIndexOf("/");F>=0&&(T.path=T.path.substring(0,F+1))}E=c(o(T),E)}return a(E)}n.computeSourceURL=I}(vc)),vc}var _c={},Ep;function i0(){if(Ep)return _c;Ep=1;var n=Is(),t=Object.prototype.hasOwnProperty,e=typeof Map<"u";function i(){this._array=[],this._set=e?new Map:Object.create(null)}return i.fromArray=function(o,a){for(var c=new i,u=0,f=o.length;u<f;u++)c.add(o[u],a);return c},i.prototype.size=function(){return e?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(o,a){var c=e?o:n.toSetString(o),u=e?this.has(o):t.call(this._set,c),f=this._array.length;(!u||a)&&this._array.push(o),u||(e?this._set.set(o,f):this._set[c]=f)},i.prototype.has=function(o){if(e)return this._set.has(o);var a=n.toSetString(o);return t.call(this._set,a)},i.prototype.indexOf=function(o){if(e){var a=this._set.get(o);if(a>=0)return a}else{var c=n.toSetString(o);if(t.call(this._set,c))return this._set[c]}throw new Error('"'+o+'" is not in the set.')},i.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},i.prototype.toArray=function(){return this._array.slice()},_c.ArraySet=i,_c}var yc={},kp;function $S(){if(kp)return yc;kp=1;var n=Is();function t(i,r){var o=i.generatedLine,a=r.generatedLine,c=i.generatedColumn,u=r.generatedColumn;return a>o||a==o&&u>=c||n.compareByGeneratedPositionsInflated(i,r)<=0}function e(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return e.prototype.unsortedForEach=function(r,o){this._array.forEach(r,o)},e.prototype.add=function(r){t(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},e.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},yc.MappingList=e,yc}var Cp;function r0(){if(Cp)return mc;Cp=1;var n=n0(),t=Is(),e=i0().ArraySet,i=$S().MappingList;function r(o){o||(o={}),this._file=t.getArg(o,"file",null),this._sourceRoot=t.getArg(o,"sourceRoot",null),this._skipValidation=t.getArg(o,"skipValidation",!1),this._sources=new e,this._names=new e,this._mappings=new i,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var c=a.sourceRoot,u=new r({file:a.file,sourceRoot:c});return a.eachMapping(function(f){var h={generated:{line:f.generatedLine,column:f.generatedColumn}};f.source!=null&&(h.source=f.source,c!=null&&(h.source=t.relative(c,h.source)),h.original={line:f.originalLine,column:f.originalColumn},f.name!=null&&(h.name=f.name)),u.addMapping(h)}),a.sources.forEach(function(f){var h=f;c!==null&&(h=t.relative(c,f)),u._sources.has(h)||u._sources.add(h);var v=a.sourceContentFor(f);v!=null&&u.setSourceContent(f,v)}),u},r.prototype.addMapping=function(a){var c=t.getArg(a,"generated"),u=t.getArg(a,"original",null),f=t.getArg(a,"source",null),h=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(c,u,f,h),f!=null&&(f=String(f),this._sources.has(f)||this._sources.add(f)),h!=null&&(h=String(h),this._names.has(h)||this._names.add(h)),this._mappings.add({generatedLine:c.line,generatedColumn:c.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:f,name:h})},r.prototype.setSourceContent=function(a,c){var u=a;this._sourceRoot!=null&&(u=t.relative(this._sourceRoot,u)),c!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(u)]=c):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,c,u){var f=c;if(c==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);f=a.file}var h=this._sourceRoot;h!=null&&(f=t.relative(h,f));var v=new e,d=new e;this._mappings.unsortedForEach(function(g){if(g.source===f&&g.originalLine!=null){var m=a.originalPositionFor({line:g.originalLine,column:g.originalColumn});m.source!=null&&(g.source=m.source,u!=null&&(g.source=t.join(u,g.source)),h!=null&&(g.source=t.relative(h,g.source)),g.originalLine=m.line,g.originalColumn=m.column,m.name!=null&&(g.name=m.name))}var y=g.source;y!=null&&!v.has(y)&&v.add(y);var x=g.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=v,this._names=d,a.sources.forEach(function(g){var m=a.sourceContentFor(g);m!=null&&(u!=null&&(g=t.join(u,g)),h!=null&&(g=t.relative(h,g)),this.setSourceContent(g,m))},this)},r.prototype._validateMapping=function(a,c,u,f){if(c&&typeof c.line!="number"&&typeof c.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!c&&!u&&!f)){if(a&&"line"in a&&"column"in a&&c&&"line"in c&&"column"in c&&a.line>0&&a.column>=0&&c.line>0&&c.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:u,original:c,name:f}))}},r.prototype._serializeMappings=function(){for(var a=0,c=1,u=0,f=0,h=0,v=0,d="",g,m,y,x,k=this._mappings.toArray(),A=0,I=k.length;A<I;A++){if(m=k[A],g="",m.generatedLine!==c)for(a=0;m.generatedLine!==c;)g+=";",c++;else if(A>0){if(!t.compareByGeneratedPositionsInflated(m,k[A-1]))continue;g+=","}g+=n.encode(m.generatedColumn-a),a=m.generatedColumn,m.source!=null&&(x=this._sources.indexOf(m.source),g+=n.encode(x-v),v=x,g+=n.encode(m.originalLine-1-f),f=m.originalLine-1,g+=n.encode(m.originalColumn-u),u=m.originalColumn,m.name!=null&&(y=this._names.indexOf(m.name),g+=n.encode(y-h),h=y)),d+=g}return d},r.prototype._generateSourcesContent=function(a,c){return a.map(function(u){if(!this._sourcesContents)return null;c!=null&&(u=t.relative(c,u));var f=t.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,f)?this._sourcesContents[f]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},mc.SourceMapGenerator=r,mc}var ts={},bc={},Ap;function YS(){return Ap||(Ap=1,function(n){n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2;function t(e,i,r,o,a,c){var u=Math.floor((i-e)/2)+e,f=a(r,o[u],!0);return f===0?u:f>0?i-u>1?t(u,i,r,o,a,c):c==n.LEAST_UPPER_BOUND?i<o.length?i:-1:u:u-e>1?t(e,u,r,o,a,c):c==n.LEAST_UPPER_BOUND?u:e<0?-1:e}n.search=function(i,r,o,a){if(r.length===0)return-1;var c=t(-1,r.length,i,r,o,a||n.GREATEST_LOWER_BOUND);if(c<0)return-1;for(;c-1>=0&&o(r[c],r[c-1],!0)===0;)--c;return c}}(bc)),bc}var xc={},Mp;function GS(){if(Mp)return xc;Mp=1;function n(i,r,o){var a=i[r];i[r]=i[o],i[o]=a}function t(i,r){return Math.round(i+Math.random()*(r-i))}function e(i,r,o,a){if(o<a){var c=t(o,a),u=o-1;n(i,c,a);for(var f=i[a],h=o;h<a;h++)r(i[h],f)<=0&&(u+=1,n(i,u,h));n(i,u+1,h);var v=u+1;e(i,r,o,v-1),e(i,r,v+1,a)}}return xc.quickSort=function(i,r){e(i,r,0,i.length-1)},xc}var Op;function KS(){if(Op)return ts;Op=1;var n=Is(),t=YS(),e=i0().ArraySet,i=n0(),r=GS().quickSort;function o(f,h){var v=f;return typeof f=="string"&&(v=n.parseSourceMapInput(f)),v.sections!=null?new u(v,h):new a(v,h)}o.fromSourceMap=function(f,h){return a.fromSourceMap(f,h)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(h,v){var d=h.charAt(v);return d===";"||d===","},o.prototype._parseMappings=function(h,v){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(h,v,d){var g=v||null,m=d||o.GENERATED_ORDER,y;switch(m){case o.GENERATED_ORDER:y=this._generatedMappings;break;case o.ORIGINAL_ORDER:y=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;y.map(function(k){var A=k.source===null?null:this._sources.at(k.source);return A=n.computeSourceURL(x,A,this._sourceMapURL),{source:A,generatedLine:k.generatedLine,generatedColumn:k.generatedColumn,originalLine:k.originalLine,originalColumn:k.originalColumn,name:k.name===null?null:this._names.at(k.name)}},this).forEach(h,g)},o.prototype.allGeneratedPositionsFor=function(h){var v=n.getArg(h,"line"),d={source:n.getArg(h,"source"),originalLine:v,originalColumn:n.getArg(h,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var g=[],m=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(m>=0){var y=this._originalMappings[m];if(h.column===void 0)for(var x=y.originalLine;y&&y.originalLine===x;)g.push({line:n.getArg(y,"generatedLine",null),column:n.getArg(y,"generatedColumn",null),lastColumn:n.getArg(y,"lastGeneratedColumn",null)}),y=this._originalMappings[++m];else for(var k=y.originalColumn;y&&y.originalLine===v&&y.originalColumn==k;)g.push({line:n.getArg(y,"generatedLine",null),column:n.getArg(y,"generatedColumn",null),lastColumn:n.getArg(y,"lastGeneratedColumn",null)}),y=this._originalMappings[++m]}return g},ts.SourceMapConsumer=o;function a(f,h){var v=f;typeof f=="string"&&(v=n.parseSourceMapInput(f));var d=n.getArg(v,"version"),g=n.getArg(v,"sources"),m=n.getArg(v,"names",[]),y=n.getArg(v,"sourceRoot",null),x=n.getArg(v,"sourcesContent",null),k=n.getArg(v,"mappings"),A=n.getArg(v,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);y&&(y=n.normalize(y)),g=g.map(String).map(n.normalize).map(function(I){return y&&n.isAbsolute(y)&&n.isAbsolute(I)?n.relative(y,I):I}),this._names=e.fromArray(m.map(String),!0),this._sources=e.fromArray(g,!0),this._absoluteSources=this._sources.toArray().map(function(I){return n.computeSourceURL(y,I,h)}),this.sourceRoot=y,this.sourcesContent=x,this._mappings=k,this._sourceMapURL=h,this.file=A}a.prototype=Object.create(o.prototype),a.prototype.consumer=o,a.prototype._findSourceIndex=function(f){var h=f;if(this.sourceRoot!=null&&(h=n.relative(this.sourceRoot,h)),this._sources.has(h))return this._sources.indexOf(h);var v;for(v=0;v<this._absoluteSources.length;++v)if(this._absoluteSources[v]==f)return v;return-1},a.fromSourceMap=function(h,v){var d=Object.create(a.prototype),g=d._names=e.fromArray(h._names.toArray(),!0),m=d._sources=e.fromArray(h._sources.toArray(),!0);d.sourceRoot=h._sourceRoot,d.sourcesContent=h._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=h._file,d._sourceMapURL=v,d._absoluteSources=d._sources.toArray().map(function(P){return n.computeSourceURL(d.sourceRoot,P,v)});for(var y=h._mappings.toArray().slice(),x=d.__generatedMappings=[],k=d.__originalMappings=[],A=0,I=y.length;A<I;A++){var S=y[A],E=new c;E.generatedLine=S.generatedLine,E.generatedColumn=S.generatedColumn,S.source&&(E.source=m.indexOf(S.source),E.originalLine=S.originalLine,E.originalColumn=S.originalColumn,S.name&&(E.name=g.indexOf(S.name)),k.push(E)),x.push(E)}return r(d.__originalMappings,n.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(h,v){for(var d=1,g=0,m=0,y=0,x=0,k=0,A=h.length,I=0,S={},E={},P=[],T=[],F,$,q,U,Y;I<A;)if(h.charAt(I)===";")d++,I++,g=0;else if(h.charAt(I)===",")I++;else{for(F=new c,F.generatedLine=d,U=I;U<A&&!this._charIsMappingSeparator(h,U);U++);if($=h.slice(I,U),q=S[$],q)I+=$.length;else{for(q=[];I<U;)i.decode(h,I,E),Y=E.value,I=E.rest,q.push(Y);if(q.length===2)throw new Error("Found a source, but no line and column");if(q.length===3)throw new Error("Found a source and line, but no column");S[$]=q}F.generatedColumn=g+q[0],g=F.generatedColumn,q.length>1&&(F.source=x+q[1],x+=q[1],F.originalLine=m+q[2],m=F.originalLine,F.originalLine+=1,F.originalColumn=y+q[3],y=F.originalColumn,q.length>4&&(F.name=k+q[4],k+=q[4])),T.push(F),typeof F.originalLine=="number"&&P.push(F)}r(T,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=T,r(P,n.compareByOriginalPositions),this.__originalMappings=P},a.prototype._findMapping=function(h,v,d,g,m,y){if(h[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+h[d]);if(h[g]<0)throw new TypeError("Column must be greater than or equal to 0, got "+h[g]);return t.search(h,v,m,y)},a.prototype.computeColumnSpans=function(){for(var h=0;h<this._generatedMappings.length;++h){var v=this._generatedMappings[h];if(h+1<this._generatedMappings.length){var d=this._generatedMappings[h+1];if(v.generatedLine===d.generatedLine){v.lastGeneratedColumn=d.generatedColumn-1;continue}}v.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(h){var v={generatedLine:n.getArg(h,"line"),generatedColumn:n.getArg(h,"column")},d=this._findMapping(v,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(h,"bias",o.GREATEST_LOWER_BOUND));if(d>=0){var g=this._generatedMappings[d];if(g.generatedLine===v.generatedLine){var m=n.getArg(g,"source",null);m!==null&&(m=this._sources.at(m),m=n.computeSourceURL(this.sourceRoot,m,this._sourceMapURL));var y=n.getArg(g,"name",null);return y!==null&&(y=this._names.at(y)),{source:m,line:n.getArg(g,"originalLine",null),column:n.getArg(g,"originalColumn",null),name:y}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(h){return h==null}):!1},a.prototype.sourceContentFor=function(h,v){if(!this.sourcesContent)return null;var d=this._findSourceIndex(h);if(d>=0)return this.sourcesContent[d];var g=h;this.sourceRoot!=null&&(g=n.relative(this.sourceRoot,g));var m;if(this.sourceRoot!=null&&(m=n.urlParse(this.sourceRoot))){var y=g.replace(/^file:\/\//,"");if(m.scheme=="file"&&this._sources.has(y))return this.sourcesContent[this._sources.indexOf(y)];if((!m.path||m.path=="/")&&this._sources.has("/"+g))return this.sourcesContent[this._sources.indexOf("/"+g)]}if(v)return null;throw new Error('"'+g+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(h){var v=n.getArg(h,"source");if(v=this._findSourceIndex(v),v<0)return{line:null,column:null,lastColumn:null};var d={source:v,originalLine:n.getArg(h,"line"),originalColumn:n.getArg(h,"column")},g=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(h,"bias",o.GREATEST_LOWER_BOUND));if(g>=0){var m=this._originalMappings[g];if(m.source===d.source)return{line:n.getArg(m,"generatedLine",null),column:n.getArg(m,"generatedColumn",null),lastColumn:n.getArg(m,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ts.BasicSourceMapConsumer=a;function u(f,h){var v=f;typeof f=="string"&&(v=n.parseSourceMapInput(f));var d=n.getArg(v,"version"),g=n.getArg(v,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new e,this._names=new e;var m={line:-1,column:0};this._sections=g.map(function(y){if(y.url)throw new Error("Support for url field in sections not implemented.");var x=n.getArg(y,"offset"),k=n.getArg(x,"line"),A=n.getArg(x,"column");if(k<m.line||k===m.line&&A<m.column)throw new Error("Section offsets must be ordered and non-overlapping.");return m=x,{generatedOffset:{generatedLine:k+1,generatedColumn:A+1},consumer:new o(n.getArg(y,"map"),h)}})}return u.prototype=Object.create(o.prototype),u.prototype.constructor=o,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var f=[],h=0;h<this._sections.length;h++)for(var v=0;v<this._sections[h].consumer.sources.length;v++)f.push(this._sections[h].consumer.sources[v]);return f}}),u.prototype.originalPositionFor=function(h){var v={generatedLine:n.getArg(h,"line"),generatedColumn:n.getArg(h,"column")},d=t.search(v,this._sections,function(m,y){var x=m.generatedLine-y.generatedOffset.generatedLine;return x||m.generatedColumn-y.generatedOffset.generatedColumn}),g=this._sections[d];return g?g.consumer.originalPositionFor({line:v.generatedLine-(g.generatedOffset.generatedLine-1),column:v.generatedColumn-(g.generatedOffset.generatedLine===v.generatedLine?g.generatedOffset.generatedColumn-1:0),bias:h.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(h){return h.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(h,v){for(var d=0;d<this._sections.length;d++){var g=this._sections[d],m=g.consumer.sourceContentFor(h,!0);if(m)return m}if(v)return null;throw new Error('"'+h+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(h){for(var v=0;v<this._sections.length;v++){var d=this._sections[v];if(d.consumer._findSourceIndex(n.getArg(h,"source"))!==-1){var g=d.consumer.generatedPositionFor(h);if(g){var m={line:g.line+(d.generatedOffset.generatedLine-1),column:g.column+(d.generatedOffset.generatedLine===g.line?d.generatedOffset.generatedColumn-1:0)};return m}}}return{line:null,column:null}},u.prototype._parseMappings=function(h,v){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var g=this._sections[d],m=g.consumer._generatedMappings,y=0;y<m.length;y++){var x=m[y],k=g.consumer._sources.at(x.source);k=n.computeSourceURL(g.consumer.sourceRoot,k,this._sourceMapURL),this._sources.add(k),k=this._sources.indexOf(k);var A=null;x.name&&(A=g.consumer._names.at(x.name),this._names.add(A),A=this._names.indexOf(A));var I={source:k,generatedLine:x.generatedLine+(g.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(g.generatedOffset.generatedLine===x.generatedLine?g.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:A};this.__generatedMappings.push(I),typeof I.originalLine=="number"&&this.__originalMappings.push(I)}r(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),r(this.__originalMappings,n.compareByOriginalPositions)},ts.IndexedSourceMapConsumer=u,ts}var wc={},Lp;function XS(){if(Lp)return wc;Lp=1;var n=r0().SourceMapGenerator,t=Is(),e=/(\r?\n)/,i=10,r="$$$isSourceNode$$$";function o(a,c,u,f,h){this.children=[],this.sourceContents={},this.line=a??null,this.column=c??null,this.source=u??null,this.name=h??null,this[r]=!0,f!=null&&this.add(f)}return o.fromStringWithSourceMap=function(c,u,f){var h=new o,v=c.split(e),d=0,g=function(){var A=S(),I=S()||"";return A+I;function S(){return d<v.length?v[d++]:void 0}},m=1,y=0,x=null;return u.eachMapping(function(A){if(x!==null)if(m<A.generatedLine)k(x,g()),m++,y=0;else{var I=v[d]||"",S=I.substr(0,A.generatedColumn-y);v[d]=I.substr(A.generatedColumn-y),y=A.generatedColumn,k(x,S),x=A;return}for(;m<A.generatedLine;)h.add(g()),m++;if(y<A.generatedColumn){var I=v[d]||"";h.add(I.substr(0,A.generatedColumn)),v[d]=I.substr(A.generatedColumn),y=A.generatedColumn}x=A},this),d<v.length&&(x&&k(x,g()),h.add(v.splice(d).join(""))),u.sources.forEach(function(A){var I=u.sourceContentFor(A);I!=null&&(f!=null&&(A=t.join(f,A)),h.setSourceContent(A,I))}),h;function k(A,I){if(A===null||A.source===void 0)h.add(I);else{var S=f?t.join(f,A.source):A.source;h.add(new o(A.originalLine,A.originalColumn,S,I,A.name))}}},o.prototype.add=function(c){if(Array.isArray(c))c.forEach(function(u){this.add(u)},this);else if(c[r]||typeof c=="string")c&&this.children.push(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this},o.prototype.prepend=function(c){if(Array.isArray(c))for(var u=c.length-1;u>=0;u--)this.prepend(c[u]);else if(c[r]||typeof c=="string")this.children.unshift(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this},o.prototype.walk=function(c){for(var u,f=0,h=this.children.length;f<h;f++)u=this.children[f],u[r]?u.walk(c):u!==""&&c(u,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(c){var u,f,h=this.children.length;if(h>0){for(u=[],f=0;f<h-1;f++)u.push(this.children[f]),u.push(c);u.push(this.children[f]),this.children=u}return this},o.prototype.replaceRight=function(c,u){var f=this.children[this.children.length-1];return f[r]?f.replaceRight(c,u):typeof f=="string"?this.children[this.children.length-1]=f.replace(c,u):this.children.push("".replace(c,u)),this},o.prototype.setSourceContent=function(c,u){this.sourceContents[t.toSetString(c)]=u},o.prototype.walkSourceContents=function(c){for(var u=0,f=this.children.length;u<f;u++)this.children[u][r]&&this.children[u].walkSourceContents(c);for(var h=Object.keys(this.sourceContents),u=0,f=h.length;u<f;u++)c(t.fromSetString(h[u]),this.sourceContents[h[u]])},o.prototype.toString=function(){var c="";return this.walk(function(u){c+=u}),c},o.prototype.toStringWithSourceMap=function(c){var u={code:"",line:1,column:0},f=new n(c),h=!1,v=null,d=null,g=null,m=null;return this.walk(function(y,x){u.code+=y,x.source!==null&&x.line!==null&&x.column!==null?((v!==x.source||d!==x.line||g!==x.column||m!==x.name)&&f.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:u.line,column:u.column},name:x.name}),v=x.source,d=x.line,g=x.column,m=x.name,h=!0):h&&(f.addMapping({generated:{line:u.line,column:u.column}}),v=null,h=!1);for(var k=0,A=y.length;k<A;k++)y.charCodeAt(k)===i?(u.line++,u.column=0,k+1===A?(v=null,h=!1):h&&f.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:u.line,column:u.column},name:x.name})):u.column++}),this.walkSourceContents(function(y,x){f.setSourceContent(y,x)}),{code:u.code,map:f}},wc.SourceNode=o,wc}var Pp;function JS(){return Pp||(Pp=1,Qr.SourceMapGenerator=r0().SourceMapGenerator,Qr.SourceMapConsumer=KS().SourceMapConsumer,Qr.SourceNode=XS().SourceNode),Qr}var Rp;function ZS(){return Rp||(Rp=1,function(n,t){t.__esModule=!0;var e=ze(),i=void 0;try{var r=JS();i=r.SourceNode}catch{}i||(i=function(c,u,f,h){this.src="",h&&this.add(h)},i.prototype={add:function(u){e.isArray(u)&&(u=u.join("")),this.src+=u},prepend:function(u){e.isArray(u)&&(u=u.join("")),this.src=u+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function o(c,u,f){if(e.isArray(c)){for(var h=[],v=0,d=c.length;v<d;v++)h.push(u.wrap(c[v],f));return h}else if(typeof c=="boolean"||typeof c=="number")return c+"";return c}function a(c){this.srcFile=c,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(u,f){this.source.unshift(this.wrap(u,f))},push:function(u,f){this.source.push(this.wrap(u,f))},merge:function(){var u=this.empty();return this.each(function(f){u.add([" ",f,`
|
|
10
|
+
`])}),u},each:function(u){for(var f=0,h=this.source.length;f<h;f++)u(this.source[f])},empty:function(){var u=this.currentLocation||{start:{}};return new i(u.start.line,u.start.column,this.srcFile)},wrap:function(u){var f=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return u instanceof i?u:(u=o(u,this,f),new i(f.start.line,f.start.column,this.srcFile,u))},functionCall:function(u,f,h){return h=this.generateList(h),this.wrap([u,f?"."+f+"(":"(",h,")"])},quotedString:function(u){return'"'+(u+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(u){var f=this,h=[];Object.keys(u).forEach(function(d){var g=o(u[d],f);g!=="undefined"&&h.push([f.quotedString(d),":",g])});var v=this.generateList(h);return v.prepend("{"),v.add("}"),v},generateList:function(u){for(var f=this.empty(),h=0,v=u.length;h<v;h++)h&&f.add(","),f.add(o(u[h],this));return f},generateArray:function(u){var f=this.generateList(u);return f.prepend("["),f.add("]"),f}},t.default=a,n.exports=t.default}(Jo,Jo.exports)),Jo.exports}var Tp;function QS(){return Tp||(Tp=1,function(n,t){t.__esModule=!0;function e(d){return d&&d.__esModule?d:{default:d}}var i=qu(),r=wn(),o=e(r),a=ze(),c=ZS(),u=e(c);function f(d){this.value=d}function h(){}h.prototype={nameLookup:function(g,m){return this.internalNameLookup(g,m)},depthedLookup:function(g){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(g),")"]},compilerInfo:function(){var g=i.COMPILER_REVISION,m=i.REVISION_CHANGES[g];return[g,m]},appendToBuffer:function(g,m,y){return a.isArray(g)||(g=[g]),g=this.source.wrap(g,m),this.environment.isSimple?["return ",g,";"]:y?["buffer += ",g,";"]:(g.appendToBuffer=!0,g)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(g,m){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",g,",",JSON.stringify(m),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(g,m,y,x){this.environment=g,this.options=m,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!x,this.name=this.environment.name,this.isChild=!!y,this.context=y||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(g,m),this.useDepths=this.useDepths||g.useDepths||g.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||g.useBlockParams;var k=g.opcodes,A=void 0,I=void 0,S=void 0,E=void 0;for(S=0,E=k.length;S<E;S++)A=k[S],this.source.currentLocation=A.loc,I=I||A.loc,this[A.opcode].apply(this,A.args);if(this.source.currentLocation=I,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
11
|
+
`]),this.decorators.push("return fn;"),x?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
12
|
+
`),this.decorators.push(`}
|
|
13
|
+
`),this.decorators=this.decorators.merge()));var P=this.createFunctionContext(x);if(this.isChild)return P;var T={compiler:this.compilerInfo(),main:P};this.decorators&&(T.main_d=this.decorators,T.useDecorators=!0);var F=this.context,$=F.programs,q=F.decorators;for(S=0,E=$.length;S<E;S++)$[S]&&(T[S]=$[S],q[S]&&(T[S+"_d"]=q[S],T.useDecorators=!0));return this.environment.usePartial&&(T.usePartial=!0),this.options.data&&(T.useData=!0),this.useDepths&&(T.useDepths=!0),this.useBlockParams&&(T.useBlockParams=!0),this.options.compat&&(T.compat=!0),x?T.compilerOptions=this.options:(T.compiler=JSON.stringify(T.compiler),this.source.currentLocation={start:{line:1,column:0}},T=this.objectLiteral(T),m.srcName?(T=T.toStringWithSourceMap({file:m.destName}),T.map=T.map&&T.map.toString()):T=T.toString()),T},preamble:function(){this.lastContext=0,this.source=new u.default(this.options.srcName),this.decorators=new u.default(this.options.srcName)},createFunctionContext:function(g){var m=this,y="",x=this.stackVars.concat(this.registers.list);x.length>0&&(y+=", "+x.join(", "));var k=0;Object.keys(this.aliases).forEach(function(S){var E=m.aliases[S];E.children&&E.referenceCount>1&&(y+=", alias"+ ++k+"="+S,E.children[0]="alias"+k)}),this.lookupPropertyFunctionIsUsed&&(y+=", "+this.lookupPropertyFunctionVarDeclaration());var A=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&A.push("blockParams"),this.useDepths&&A.push("depths");var I=this.mergeSource(y);return g?(A.push(I),Function.apply(this,A)):this.source.wrap(["function(",A.join(","),`) {
|
|
14
|
+
`,I,"}"])},mergeSource:function(g){var m=this.environment.isSimple,y=!this.forceBuffer,x=void 0,k=void 0,A=void 0,I=void 0;return this.source.each(function(S){S.appendToBuffer?(A?S.prepend(" + "):A=S,I=S):(A&&(k?A.prepend("buffer += "):x=!0,I.add(";"),A=I=void 0),k=!0,m||(y=!1))}),y?A?(A.prepend("return "),I.add(";")):k||this.source.push('return "";'):(g+=", buffer = "+(x?"":this.initializeBuffer()),A?(A.prepend("return buffer + "),I.add(";")):this.source.push("return buffer;")),g&&this.source.prepend("var "+g.substring(2)+(x?"":`;
|
|
15
|
+
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
|
16
|
+
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
17
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
18
|
+
return parent[propertyName];
|
|
19
|
+
}
|
|
20
|
+
return undefined
|
|
21
|
+
}
|
|
22
|
+
`.trim()},blockValue:function(g){var m=this.aliasable("container.hooks.blockHelperMissing"),y=[this.contextName(0)];this.setupHelperArgs(g,0,y);var x=this.popStack();y.splice(1,0,x),this.push(this.source.functionCall(m,"call",y))},ambiguousBlockValue:function(){var g=this.aliasable("container.hooks.blockHelperMissing"),m=[this.contextName(0)];this.setupHelperArgs("",0,m,!0),this.flushInline();var y=this.topStack();m.splice(1,0,y),this.pushSource(["if (!",this.lastHelper,") { ",y," = ",this.source.functionCall(g,"call",m),"}"])},appendContent:function(g){this.pendingContent?g=this.pendingContent+g:this.pendingLocation=this.source.currentLocation,this.pendingContent=g},append:function(){if(this.isInline())this.replaceStack(function(m){return[" != null ? ",m,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var g=this.popStack();this.pushSource(["if (",g," != null) { ",this.appendToBuffer(g,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(g){this.lastContext=g},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(g,m,y,x){var k=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(g[k++])):this.pushContext(),this.resolvePath("context",g,k,m,y)},lookupBlockParam:function(g,m){this.useBlockParams=!0,this.push(["blockParams[",g[0],"][",g[1],"]"]),this.resolvePath("context",m,1)},lookupData:function(g,m,y){g?this.pushStackLiteral("container.data(data, "+g+")"):this.pushStackLiteral("data"),this.resolvePath("data",m,0,!0,y)},resolvePath:function(g,m,y,x,k){var A=this;if(this.options.strict||this.options.assumeObjects){this.push(v(this.options.strict&&k,this,m,g));return}for(var I=m.length;y<I;y++)this.replaceStack(function(S){var E=A.nameLookup(S,m[y],g);return x?[" && ",E]:[" != null ? ",E," : ",S]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(g,m){this.pushContext(),this.pushString(m),m!=="SubExpression"&&(typeof g=="string"?this.pushString(g):this.pushStackLiteral(g))},emptyHash:function(g){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(g?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var g=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(g.ids)),this.stringParams&&(this.push(this.objectLiteral(g.contexts)),this.push(this.objectLiteral(g.types))),this.push(this.objectLiteral(g.values))},pushString:function(g){this.pushStackLiteral(this.quotedString(g))},pushLiteral:function(g){this.pushStackLiteral(g)},pushProgram:function(g){g!=null?this.pushStackLiteral(this.programExpression(g)):this.pushStackLiteral(null)},registerDecorator:function(g,m){var y=this.nameLookup("decorators",m,"decorator"),x=this.setupHelperArgs(m,g);this.decorators.push(["fn = ",this.decorators.functionCall(y,"",["fn","props","container",x])," || fn;"])},invokeHelper:function(g,m,y){var x=this.popStack(),k=this.setupHelper(g,m),A=[];y&&A.push(k.name),A.push(x),this.options.strict||A.push(this.aliasable("container.hooks.helperMissing"));var I=["(",this.itemsSeparatedBy(A,"||"),")"],S=this.source.functionCall(I,"call",k.callParams);this.push(S)},itemsSeparatedBy:function(g,m){var y=[];y.push(g[0]);for(var x=1;x<g.length;x++)y.push(m,g[x]);return y},invokeKnownHelper:function(g,m){var y=this.setupHelper(g,m);this.push(this.source.functionCall(y.name,"call",y.callParams))},invokeAmbiguous:function(g,m){this.useRegister("helper");var y=this.popStack();this.emptyHash();var x=this.setupHelper(0,g,m),k=this.lastHelper=this.nameLookup("helpers",g,"helper"),A=["(","(helper = ",k," || ",y,")"];this.options.strict||(A[0]="(helper = ",A.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",A,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(g,m,y){var x=[],k=this.setupParams(m,1,x);g&&(m=this.popStack(),delete k.name),y&&(k.indent=JSON.stringify(y)),k.helpers="helpers",k.partials="partials",k.decorators="container.decorators",g?x.unshift(m):x.unshift(this.nameLookup("partials",m,"partial")),this.options.compat&&(k.depths="depths"),k=this.objectLiteral(k),x.push(k),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(g){var m=this.popStack(),y=void 0,x=void 0,k=void 0;this.trackIds&&(k=this.popStack()),this.stringParams&&(x=this.popStack(),y=this.popStack());var A=this.hash;y&&(A.contexts[g]=y),x&&(A.types[g]=x),k&&(A.ids[g]=k),A.values[g]=m},pushId:function(g,m,y){g==="BlockParam"?this.pushStackLiteral("blockParams["+m[0]+"].path["+m[1]+"]"+(y?" + "+JSON.stringify("."+y):"")):g==="PathExpression"?this.pushString(m):g==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:h,compileChildren:function(g,m){for(var y=g.children,x=void 0,k=void 0,A=0,I=y.length;A<I;A++){x=y[A],k=new this.compiler;var S=this.matchExistingProgram(x);if(S==null){this.context.programs.push("");var E=this.context.programs.length;x.index=E,x.name="program"+E,this.context.programs[E]=k.compile(x,m,this.context,!this.precompile),this.context.decorators[E]=k.decorators,this.context.environments[E]=x,this.useDepths=this.useDepths||k.useDepths,this.useBlockParams=this.useBlockParams||k.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=S.index,x.name="program"+S.index,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.useBlockParams}},matchExistingProgram:function(g){for(var m=0,y=this.context.environments.length;m<y;m++){var x=this.context.environments[m];if(x&&x.equals(g))return x}},programExpression:function(g){var m=this.environment.children[g],y=[m.index,"data",m.blockParams];return(this.useBlockParams||this.useDepths)&&y.push("blockParams"),this.useDepths&&y.push("depths"),"container.program("+y.join(", ")+")"},useRegister:function(g){this.registers[g]||(this.registers[g]=!0,this.registers.list.push(g))},push:function(g){return g instanceof f||(g=this.source.wrap(g)),this.inlineStack.push(g),g},pushStackLiteral:function(g){this.push(new f(g))},pushSource:function(g){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),g&&this.source.push(g)},replaceStack:function(g){var m=["("],y=void 0,x=void 0,k=void 0;if(!this.isInline())throw new o.default("replaceStack on non-inline");var A=this.popStack(!0);if(A instanceof f)y=[A.value],m=["(",y],k=!0;else{x=!0;var I=this.incrStack();m=["((",this.push(I)," = ",A,")"],y=this.topStack()}var S=g.call(this,y);k||this.popStack(),x&&this.stackSlot--,this.push(m.concat(S,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var g=this.inlineStack;this.inlineStack=[];for(var m=0,y=g.length;m<y;m++){var x=g[m];if(x instanceof f)this.compileStack.push(x);else{var k=this.incrStack();this.pushSource([k," = ",x,";"]),this.compileStack.push(k)}}},isInline:function(){return this.inlineStack.length},popStack:function(g){var m=this.isInline(),y=(m?this.inlineStack:this.compileStack).pop();if(!g&&y instanceof f)return y.value;if(!m){if(!this.stackSlot)throw new o.default("Invalid stack pop");this.stackSlot--}return y},topStack:function(){var g=this.isInline()?this.inlineStack:this.compileStack,m=g[g.length-1];return m instanceof f?m.value:m},contextName:function(g){return this.useDepths&&g?"depths["+g+"]":"depth"+g},quotedString:function(g){return this.source.quotedString(g)},objectLiteral:function(g){return this.source.objectLiteral(g)},aliasable:function(g){var m=this.aliases[g];return m?(m.referenceCount++,m):(m=this.aliases[g]=this.source.wrap(g),m.aliasable=!0,m.referenceCount=1,m)},setupHelper:function(g,m,y){var x=[],k=this.setupHelperArgs(m,g,x,y),A=this.nameLookup("helpers",m,"helper"),I=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:k,name:A,callParams:[I].concat(x)}},setupParams:function(g,m,y){var x={},k=[],A=[],I=[],S=!y,E=void 0;S&&(y=[]),x.name=this.quotedString(g),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var P=this.popStack(),T=this.popStack();(T||P)&&(x.fn=T||"container.noop",x.inverse=P||"container.noop");for(var F=m;F--;)E=this.popStack(),y[F]=E,this.trackIds&&(I[F]=this.popStack()),this.stringParams&&(A[F]=this.popStack(),k[F]=this.popStack());return S&&(x.args=this.source.generateArray(y)),this.trackIds&&(x.ids=this.source.generateArray(I)),this.stringParams&&(x.types=this.source.generateArray(A),x.contexts=this.source.generateArray(k)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(g,m,y,x){var k=this.setupParams(g,m,y);return k.loc=JSON.stringify(this.source.currentLocation),k=this.objectLiteral(k),x?(this.useRegister("options"),y.push("options"),["options=",k]):y?(y.push(k),""):k}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),g=h.RESERVED_WORDS={},m=0,y=d.length;m<y;m++)g[d[m]]=!0}(),h.isValidJavaScriptVariableName=function(d){return!h.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function v(d,g,m,y){var x=g.popStack(),k=0,A=m.length;for(d&&A--;k<A;k++)x=g.nameLookup(x,m[k],y);return d?[g.aliasable("container.strict"),"(",x,", ",g.quotedString(m[k]),", ",JSON.stringify(g.source.currentLocation)," )"]:x}t.default=h,n.exports=t.default}(Xo,Xo.exports)),Xo.exports}var Ip;function tE(){return Ip||(Ip=1,function(n,t){t.__esModule=!0;function e(A){return A&&A.__esModule?A:{default:A}}var i=HS(),r=e(i),o=t0(),a=e(o),c=US(),u=jS(),f=QS(),h=e(f),v=e0(),d=e(v),g=Qm(),m=e(g),y=r.default.create;function x(){var A=y();return A.compile=function(I,S){return u.compile(I,S,A)},A.precompile=function(I,S){return u.precompile(I,S,A)},A.AST=a.default,A.Compiler=u.Compiler,A.JavaScriptCompiler=h.default,A.Parser=c.parser,A.parse=c.parse,A.parseWithoutProcessing=c.parseWithoutProcessing,A}var k=x();k.create=x,m.default(k),k.Visitor=d.default,k.default=k,t.default=k,n.exports=t.default}(Oo,Oo.exports)),Oo.exports}var eE=tE();const ae=tr(eE);var as={exports:{}};/**
|
|
23
|
+
* @license
|
|
24
|
+
* Lodash <https://lodash.com/>
|
|
25
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
26
|
+
* Released under MIT license <https://lodash.com/license>
|
|
27
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
28
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
29
|
+
*/var nE=as.exports,Dp;function iE(){return Dp||(Dp=1,function(n,t){(function(){var e,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",v=1,d=2,g=4,m=1,y=2,x=1,k=2,A=4,I=8,S=16,E=32,P=64,T=128,F=256,$=512,q=30,U="...",Y=800,at=16,nt=1,Z=2,B=3,G=1/0,X=9007199254740991,rt=17976931348623157e292,st=NaN,ct=4294967295,Ot=ct-1,Ft=ct>>>1,pt=[["ary",T],["bind",x],["bindKey",k],["curry",I],["curryRight",S],["flip",$],["partial",E],["partialRight",P],["rearg",F]],xt="[object Arguments]",Zt="[object Array]",en="[object AsyncFunction]",Pe="[object Boolean]",ye="[object Date]",ce="[object DOMException]",oe="[object Error]",Re="[object Function]",Sn="[object GeneratorFunction]",Ue="[object Map]",ai="[object Number]",li="[object Null]",Ce="[object Object]",Hs="[object Promise]",il="[object Proxy]",Fn="[object RegExp]",je="[object Set]",Oi="[object String]",Li="[object Symbol]",nr="[object Undefined]",be="[object WeakMap]",Dr="[object WeakSet]",Pi="[object ArrayBuffer]",Ae="[object DataView]",Br="[object Float32Array]",M="[object Float64Array]",b="[object Int8Array]",w="[object Int16Array]",R="[object Int32Array]",H="[object Uint8Array]",j="[object Uint8ClampedArray]",J="[object Uint16Array]",yt="[object Uint32Array]",Vt=/\b__p \+= '';/g,Ht=/\b(__p \+=) '' \+/g,$t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tt=/&(?:amp|lt|gt|quot|#39);/g,mh=/[&<>"']/g,qv=RegExp(Tt.source),zv=RegExp(mh.source),Uv=/<%-([\s\S]+?)%>/g,jv=/<%([\s\S]+?)%>/g,vh=/<%=([\s\S]+?)%>/g,Vv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$v=/^\w*$/,Yv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rl=/[\\^$.*+?()[\]{}|]/g,Gv=RegExp(rl.source),sl=/^\s+/,Kv=/\s/,Xv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jv=/\{\n\/\* \[wrapped with (.+)\] \*/,Zv=/,? & /,Qv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,t_=/[()=,{}\[\]\/\s]/,e_=/\\(\\)?/g,n_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_h=/\w*$/,i_=/^[-+]0x[0-9a-f]+$/i,r_=/^0b[01]+$/i,s_=/^\[object .+?Constructor\]$/,o_=/^0o[0-7]+$/i,a_=/^(?:0|[1-9]\d*)$/,l_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ws=/($^)/,c_=/['\n\r\u2028\u2029\\]/g,qs="\\ud800-\\udfff",u_="\\u0300-\\u036f",h_="\\ufe20-\\ufe2f",f_="\\u20d0-\\u20ff",yh=u_+h_+f_,bh="\\u2700-\\u27bf",xh="a-z\\xdf-\\xf6\\xf8-\\xff",d_="\\xac\\xb1\\xd7\\xf7",p_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g_="\\u2000-\\u206f",m_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wh="A-Z\\xc0-\\xd6\\xd8-\\xde",Sh="\\ufe0e\\ufe0f",Eh=d_+p_+g_+m_,ol="['’]",v_="["+qs+"]",kh="["+Eh+"]",zs="["+yh+"]",Ch="\\d+",__="["+bh+"]",Ah="["+xh+"]",Mh="[^"+qs+Eh+Ch+bh+xh+wh+"]",al="\\ud83c[\\udffb-\\udfff]",y_="(?:"+zs+"|"+al+")",Oh="[^"+qs+"]",ll="(?:\\ud83c[\\udde6-\\uddff]){2}",cl="[\\ud800-\\udbff][\\udc00-\\udfff]",ir="["+wh+"]",Lh="\\u200d",Ph="(?:"+Ah+"|"+Mh+")",b_="(?:"+ir+"|"+Mh+")",Rh="(?:"+ol+"(?:d|ll|m|re|s|t|ve))?",Th="(?:"+ol+"(?:D|LL|M|RE|S|T|VE))?",Ih=y_+"?",Dh="["+Sh+"]?",x_="(?:"+Lh+"(?:"+[Oh,ll,cl].join("|")+")"+Dh+Ih+")*",w_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",S_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bh=Dh+Ih+x_,E_="(?:"+[__,ll,cl].join("|")+")"+Bh,k_="(?:"+[Oh+zs+"?",zs,ll,cl,v_].join("|")+")",C_=RegExp(ol,"g"),A_=RegExp(zs,"g"),ul=RegExp(al+"(?="+al+")|"+k_+Bh,"g"),M_=RegExp([ir+"?"+Ah+"+"+Rh+"(?="+[kh,ir,"$"].join("|")+")",b_+"+"+Th+"(?="+[kh,ir+Ph,"$"].join("|")+")",ir+"?"+Ph+"+"+Rh,ir+"+"+Th,S_,w_,Ch,E_].join("|"),"g"),O_=RegExp("["+Lh+qs+yh+Sh+"]"),L_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,P_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],R_=-1,zt={};zt[Br]=zt[M]=zt[b]=zt[w]=zt[R]=zt[H]=zt[j]=zt[J]=zt[yt]=!0,zt[xt]=zt[Zt]=zt[Pi]=zt[Pe]=zt[Ae]=zt[ye]=zt[oe]=zt[Re]=zt[Ue]=zt[ai]=zt[Ce]=zt[Fn]=zt[je]=zt[Oi]=zt[be]=!1;var Wt={};Wt[xt]=Wt[Zt]=Wt[Pi]=Wt[Ae]=Wt[Pe]=Wt[ye]=Wt[Br]=Wt[M]=Wt[b]=Wt[w]=Wt[R]=Wt[Ue]=Wt[ai]=Wt[Ce]=Wt[Fn]=Wt[je]=Wt[Oi]=Wt[Li]=Wt[H]=Wt[j]=Wt[J]=Wt[yt]=!0,Wt[oe]=Wt[Re]=Wt[be]=!1;var T_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},I_={"&":"&","<":"<",">":">",'"':""","'":"'"},D_={"&":"&","<":"<",">":">",""":'"',"'":"'"},B_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},F_=parseFloat,N_=parseInt,Fh=typeof ti=="object"&&ti&&ti.Object===Object&&ti,H_=typeof self=="object"&&self&&self.Object===Object&&self,me=Fh||H_||Function("return this")(),hl=t&&!t.nodeType&&t,Ri=hl&&!0&&n&&!n.nodeType&&n,Nh=Ri&&Ri.exports===hl,fl=Nh&&Fh.process,nn=function(){try{var W=Ri&&Ri.require&&Ri.require("util").types;return W||fl&&fl.binding&&fl.binding("util")}catch{}}(),Hh=nn&&nn.isArrayBuffer,Wh=nn&&nn.isDate,qh=nn&&nn.isMap,zh=nn&&nn.isRegExp,Uh=nn&&nn.isSet,jh=nn&&nn.isTypedArray;function Ve(W,K,V){switch(V.length){case 0:return W.call(K);case 1:return W.call(K,V[0]);case 2:return W.call(K,V[0],V[1]);case 3:return W.call(K,V[0],V[1],V[2])}return W.apply(K,V)}function W_(W,K,V,lt){for(var mt=-1,Rt=W==null?0:W.length;++mt<Rt;){var ue=W[mt];K(lt,ue,V(ue),W)}return lt}function rn(W,K){for(var V=-1,lt=W==null?0:W.length;++V<lt&&K(W[V],V,W)!==!1;);return W}function q_(W,K){for(var V=W==null?0:W.length;V--&&K(W[V],V,W)!==!1;);return W}function Vh(W,K){for(var V=-1,lt=W==null?0:W.length;++V<lt;)if(!K(W[V],V,W))return!1;return!0}function ci(W,K){for(var V=-1,lt=W==null?0:W.length,mt=0,Rt=[];++V<lt;){var ue=W[V];K(ue,V,W)&&(Rt[mt++]=ue)}return Rt}function Us(W,K){var V=W==null?0:W.length;return!!V&&rr(W,K,0)>-1}function dl(W,K,V){for(var lt=-1,mt=W==null?0:W.length;++lt<mt;)if(V(K,W[lt]))return!0;return!1}function Yt(W,K){for(var V=-1,lt=W==null?0:W.length,mt=Array(lt);++V<lt;)mt[V]=K(W[V],V,W);return mt}function ui(W,K){for(var V=-1,lt=K.length,mt=W.length;++V<lt;)W[mt+V]=K[V];return W}function pl(W,K,V,lt){var mt=-1,Rt=W==null?0:W.length;for(lt&&Rt&&(V=W[++mt]);++mt<Rt;)V=K(V,W[mt],mt,W);return V}function z_(W,K,V,lt){var mt=W==null?0:W.length;for(lt&&mt&&(V=W[--mt]);mt--;)V=K(V,W[mt],mt,W);return V}function gl(W,K){for(var V=-1,lt=W==null?0:W.length;++V<lt;)if(K(W[V],V,W))return!0;return!1}var U_=ml("length");function j_(W){return W.split("")}function V_(W){return W.match(Qv)||[]}function $h(W,K,V){var lt;return V(W,function(mt,Rt,ue){if(K(mt,Rt,ue))return lt=Rt,!1}),lt}function js(W,K,V,lt){for(var mt=W.length,Rt=V+(lt?1:-1);lt?Rt--:++Rt<mt;)if(K(W[Rt],Rt,W))return Rt;return-1}function rr(W,K,V){return K===K?iy(W,K,V):js(W,Yh,V)}function $_(W,K,V,lt){for(var mt=V-1,Rt=W.length;++mt<Rt;)if(lt(W[mt],K))return mt;return-1}function Yh(W){return W!==W}function Gh(W,K){var V=W==null?0:W.length;return V?_l(W,K)/V:st}function ml(W){return function(K){return K==null?e:K[W]}}function vl(W){return function(K){return W==null?e:W[K]}}function Kh(W,K,V,lt,mt){return mt(W,function(Rt,ue,Nt){V=lt?(lt=!1,Rt):K(V,Rt,ue,Nt)}),V}function Y_(W,K){var V=W.length;for(W.sort(K);V--;)W[V]=W[V].value;return W}function _l(W,K){for(var V,lt=-1,mt=W.length;++lt<mt;){var Rt=K(W[lt]);Rt!==e&&(V=V===e?Rt:V+Rt)}return V}function yl(W,K){for(var V=-1,lt=Array(W);++V<W;)lt[V]=K(V);return lt}function G_(W,K){return Yt(K,function(V){return[V,W[V]]})}function Xh(W){return W&&W.slice(0,tf(W)+1).replace(sl,"")}function $e(W){return function(K){return W(K)}}function bl(W,K){return Yt(K,function(V){return W[V]})}function Fr(W,K){return W.has(K)}function Jh(W,K){for(var V=-1,lt=W.length;++V<lt&&rr(K,W[V],0)>-1;);return V}function Zh(W,K){for(var V=W.length;V--&&rr(K,W[V],0)>-1;);return V}function K_(W,K){for(var V=W.length,lt=0;V--;)W[V]===K&&++lt;return lt}var X_=vl(T_),J_=vl(I_);function Z_(W){return"\\"+B_[W]}function Q_(W,K){return W==null?e:W[K]}function sr(W){return O_.test(W)}function ty(W){return L_.test(W)}function ey(W){for(var K,V=[];!(K=W.next()).done;)V.push(K.value);return V}function xl(W){var K=-1,V=Array(W.size);return W.forEach(function(lt,mt){V[++K]=[mt,lt]}),V}function Qh(W,K){return function(V){return W(K(V))}}function hi(W,K){for(var V=-1,lt=W.length,mt=0,Rt=[];++V<lt;){var ue=W[V];(ue===K||ue===h)&&(W[V]=h,Rt[mt++]=V)}return Rt}function Vs(W){var K=-1,V=Array(W.size);return W.forEach(function(lt){V[++K]=lt}),V}function ny(W){var K=-1,V=Array(W.size);return W.forEach(function(lt){V[++K]=[lt,lt]}),V}function iy(W,K,V){for(var lt=V-1,mt=W.length;++lt<mt;)if(W[lt]===K)return lt;return-1}function ry(W,K,V){for(var lt=V+1;lt--;)if(W[lt]===K)return lt;return lt}function or(W){return sr(W)?oy(W):U_(W)}function dn(W){return sr(W)?ay(W):j_(W)}function tf(W){for(var K=W.length;K--&&Kv.test(W.charAt(K)););return K}var sy=vl(D_);function oy(W){for(var K=ul.lastIndex=0;ul.test(W);)++K;return K}function ay(W){return W.match(ul)||[]}function ly(W){return W.match(M_)||[]}var cy=function W(K){K=K==null?me:ar.defaults(me.Object(),K,ar.pick(me,P_));var V=K.Array,lt=K.Date,mt=K.Error,Rt=K.Function,ue=K.Math,Nt=K.Object,wl=K.RegExp,uy=K.String,sn=K.TypeError,$s=V.prototype,hy=Rt.prototype,lr=Nt.prototype,Ys=K["__core-js_shared__"],Gs=hy.toString,Dt=lr.hasOwnProperty,fy=0,ef=function(){var s=/[^.]+$/.exec(Ys&&Ys.keys&&Ys.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Ks=lr.toString,dy=Gs.call(Nt),py=me._,gy=wl("^"+Gs.call(Dt).replace(rl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xs=Nh?K.Buffer:e,fi=K.Symbol,Js=K.Uint8Array,nf=Xs?Xs.allocUnsafe:e,Zs=Qh(Nt.getPrototypeOf,Nt),rf=Nt.create,sf=lr.propertyIsEnumerable,Qs=$s.splice,of=fi?fi.isConcatSpreadable:e,Nr=fi?fi.iterator:e,Ti=fi?fi.toStringTag:e,to=function(){try{var s=Ni(Nt,"defineProperty");return s({},"",{}),s}catch{}}(),my=K.clearTimeout!==me.clearTimeout&&K.clearTimeout,vy=lt&<.now!==me.Date.now&<.now,_y=K.setTimeout!==me.setTimeout&&K.setTimeout,eo=ue.ceil,no=ue.floor,Sl=Nt.getOwnPropertySymbols,yy=Xs?Xs.isBuffer:e,af=K.isFinite,by=$s.join,xy=Qh(Nt.keys,Nt),he=ue.max,xe=ue.min,wy=lt.now,Sy=K.parseInt,lf=ue.random,Ey=$s.reverse,El=Ni(K,"DataView"),Hr=Ni(K,"Map"),kl=Ni(K,"Promise"),cr=Ni(K,"Set"),Wr=Ni(K,"WeakMap"),qr=Ni(Nt,"create"),io=Wr&&new Wr,ur={},ky=Hi(El),Cy=Hi(Hr),Ay=Hi(kl),My=Hi(cr),Oy=Hi(Wr),ro=fi?fi.prototype:e,zr=ro?ro.valueOf:e,cf=ro?ro.toString:e;function O(s){if(Qt(s)&&!vt(s)&&!(s instanceof At)){if(s instanceof on)return s;if(Dt.call(s,"__wrapped__"))return ud(s)}return new on(s)}var hr=function(){function s(){}return function(l){if(!Xt(l))return{};if(rf)return rf(l);s.prototype=l;var p=new s;return s.prototype=e,p}}();function so(){}function on(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}O.templateSettings={escape:Uv,evaluate:jv,interpolate:vh,variable:"",imports:{_:O}},O.prototype=so.prototype,O.prototype.constructor=O,on.prototype=hr(so.prototype),on.prototype.constructor=on;function At(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ct,this.__views__=[]}function Ly(){var s=new At(this.__wrapped__);return s.__actions__=Te(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Te(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Te(this.__views__),s}function Py(){if(this.__filtered__){var s=new At(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function Ry(){var s=this.__wrapped__.value(),l=this.__dir__,p=vt(s),_=l<0,C=p?s.length:0,L=jb(0,C,this.__views__),D=L.start,N=L.end,z=N-D,Q=_?N:D-1,tt=this.__iteratees__,et=tt.length,ot=0,ut=xe(z,this.__takeCount__);if(!p||!_&&C==z&&ut==z)return Tf(s,this.__actions__);var ft=[];t:for(;z--&&ot<ut;){Q+=l;for(var wt=-1,dt=s[Q];++wt<et;){var Et=tt[wt],Lt=Et.iteratee,Ke=Et.type,Le=Lt(dt);if(Ke==Z)dt=Le;else if(!Le){if(Ke==nt)continue t;break t}}ft[ot++]=dt}return ft}At.prototype=hr(so.prototype),At.prototype.constructor=At;function Ii(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var _=s[l];this.set(_[0],_[1])}}function Ty(){this.__data__=qr?qr(null):{},this.size=0}function Iy(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function Dy(s){var l=this.__data__;if(qr){var p=l[s];return p===u?e:p}return Dt.call(l,s)?l[s]:e}function By(s){var l=this.__data__;return qr?l[s]!==e:Dt.call(l,s)}function Fy(s,l){var p=this.__data__;return this.size+=this.has(s)?0:1,p[s]=qr&&l===e?u:l,this}Ii.prototype.clear=Ty,Ii.prototype.delete=Iy,Ii.prototype.get=Dy,Ii.prototype.has=By,Ii.prototype.set=Fy;function Nn(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var _=s[l];this.set(_[0],_[1])}}function Ny(){this.__data__=[],this.size=0}function Hy(s){var l=this.__data__,p=oo(l,s);if(p<0)return!1;var _=l.length-1;return p==_?l.pop():Qs.call(l,p,1),--this.size,!0}function Wy(s){var l=this.__data__,p=oo(l,s);return p<0?e:l[p][1]}function qy(s){return oo(this.__data__,s)>-1}function zy(s,l){var p=this.__data__,_=oo(p,s);return _<0?(++this.size,p.push([s,l])):p[_][1]=l,this}Nn.prototype.clear=Ny,Nn.prototype.delete=Hy,Nn.prototype.get=Wy,Nn.prototype.has=qy,Nn.prototype.set=zy;function Hn(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var _=s[l];this.set(_[0],_[1])}}function Uy(){this.size=0,this.__data__={hash:new Ii,map:new(Hr||Nn),string:new Ii}}function jy(s){var l=yo(this,s).delete(s);return this.size-=l?1:0,l}function Vy(s){return yo(this,s).get(s)}function $y(s){return yo(this,s).has(s)}function Yy(s,l){var p=yo(this,s),_=p.size;return p.set(s,l),this.size+=p.size==_?0:1,this}Hn.prototype.clear=Uy,Hn.prototype.delete=jy,Hn.prototype.get=Vy,Hn.prototype.has=$y,Hn.prototype.set=Yy;function Di(s){var l=-1,p=s==null?0:s.length;for(this.__data__=new Hn;++l<p;)this.add(s[l])}function Gy(s){return this.__data__.set(s,u),this}function Ky(s){return this.__data__.has(s)}Di.prototype.add=Di.prototype.push=Gy,Di.prototype.has=Ky;function pn(s){var l=this.__data__=new Nn(s);this.size=l.size}function Xy(){this.__data__=new Nn,this.size=0}function Jy(s){var l=this.__data__,p=l.delete(s);return this.size=l.size,p}function Zy(s){return this.__data__.get(s)}function Qy(s){return this.__data__.has(s)}function tb(s,l){var p=this.__data__;if(p instanceof Nn){var _=p.__data__;if(!Hr||_.length<r-1)return _.push([s,l]),this.size=++p.size,this;p=this.__data__=new Hn(_)}return p.set(s,l),this.size=p.size,this}pn.prototype.clear=Xy,pn.prototype.delete=Jy,pn.prototype.get=Zy,pn.prototype.has=Qy,pn.prototype.set=tb;function uf(s,l){var p=vt(s),_=!p&&Wi(s),C=!p&&!_&&vi(s),L=!p&&!_&&!C&&gr(s),D=p||_||C||L,N=D?yl(s.length,uy):[],z=N.length;for(var Q in s)(l||Dt.call(s,Q))&&!(D&&(Q=="length"||C&&(Q=="offset"||Q=="parent")||L&&(Q=="buffer"||Q=="byteLength"||Q=="byteOffset")||Un(Q,z)))&&N.push(Q);return N}function hf(s){var l=s.length;return l?s[Bl(0,l-1)]:e}function eb(s,l){return bo(Te(s),Bi(l,0,s.length))}function nb(s){return bo(Te(s))}function Cl(s,l,p){(p!==e&&!gn(s[l],p)||p===e&&!(l in s))&&Wn(s,l,p)}function Ur(s,l,p){var _=s[l];(!(Dt.call(s,l)&&gn(_,p))||p===e&&!(l in s))&&Wn(s,l,p)}function oo(s,l){for(var p=s.length;p--;)if(gn(s[p][0],l))return p;return-1}function ib(s,l,p,_){return di(s,function(C,L,D){l(_,C,p(C),D)}),_}function ff(s,l){return s&&kn(l,pe(l),s)}function rb(s,l){return s&&kn(l,De(l),s)}function Wn(s,l,p){l=="__proto__"&&to?to(s,l,{configurable:!0,enumerable:!0,value:p,writable:!0}):s[l]=p}function Al(s,l){for(var p=-1,_=l.length,C=V(_),L=s==null;++p<_;)C[p]=L?e:ac(s,l[p]);return C}function Bi(s,l,p){return s===s&&(p!==e&&(s=s<=p?s:p),l!==e&&(s=s>=l?s:l)),s}function an(s,l,p,_,C,L){var D,N=l&v,z=l&d,Q=l&g;if(p&&(D=C?p(s,_,C,L):p(s)),D!==e)return D;if(!Xt(s))return s;var tt=vt(s);if(tt){if(D=$b(s),!N)return Te(s,D)}else{var et=we(s),ot=et==Re||et==Sn;if(vi(s))return Bf(s,N);if(et==Ce||et==xt||ot&&!C){if(D=z||ot?{}:ed(s),!N)return z?Db(s,rb(D,s)):Ib(s,ff(D,s))}else{if(!Wt[et])return C?s:{};D=Yb(s,et,N)}}L||(L=new pn);var ut=L.get(s);if(ut)return ut;L.set(s,D),Ld(s)?s.forEach(function(dt){D.add(an(dt,l,p,dt,s,L))}):Md(s)&&s.forEach(function(dt,Et){D.set(Et,an(dt,l,p,Et,s,L))});var ft=Q?z?Yl:$l:z?De:pe,wt=tt?e:ft(s);return rn(wt||s,function(dt,Et){wt&&(Et=dt,dt=s[Et]),Ur(D,Et,an(dt,l,p,Et,s,L))}),D}function sb(s){var l=pe(s);return function(p){return df(p,s,l)}}function df(s,l,p){var _=p.length;if(s==null)return!_;for(s=Nt(s);_--;){var C=p[_],L=l[C],D=s[C];if(D===e&&!(C in s)||!L(D))return!1}return!0}function pf(s,l,p){if(typeof s!="function")throw new sn(a);return Xr(function(){s.apply(e,p)},l)}function jr(s,l,p,_){var C=-1,L=Us,D=!0,N=s.length,z=[],Q=l.length;if(!N)return z;p&&(l=Yt(l,$e(p))),_?(L=dl,D=!1):l.length>=r&&(L=Fr,D=!1,l=new Di(l));t:for(;++C<N;){var tt=s[C],et=p==null?tt:p(tt);if(tt=_||tt!==0?tt:0,D&&et===et){for(var ot=Q;ot--;)if(l[ot]===et)continue t;z.push(tt)}else L(l,et,_)||z.push(tt)}return z}var di=qf(En),gf=qf(Ol,!0);function ob(s,l){var p=!0;return di(s,function(_,C,L){return p=!!l(_,C,L),p}),p}function ao(s,l,p){for(var _=-1,C=s.length;++_<C;){var L=s[_],D=l(L);if(D!=null&&(N===e?D===D&&!Ge(D):p(D,N)))var N=D,z=L}return z}function ab(s,l,p,_){var C=s.length;for(p=bt(p),p<0&&(p=-p>C?0:C+p),_=_===e||_>C?C:bt(_),_<0&&(_+=C),_=p>_?0:Rd(_);p<_;)s[p++]=l;return s}function mf(s,l){var p=[];return di(s,function(_,C,L){l(_,C,L)&&p.push(_)}),p}function ve(s,l,p,_,C){var L=-1,D=s.length;for(p||(p=Kb),C||(C=[]);++L<D;){var N=s[L];l>0&&p(N)?l>1?ve(N,l-1,p,_,C):ui(C,N):_||(C[C.length]=N)}return C}var Ml=zf(),vf=zf(!0);function En(s,l){return s&&Ml(s,l,pe)}function Ol(s,l){return s&&vf(s,l,pe)}function lo(s,l){return ci(l,function(p){return jn(s[p])})}function Fi(s,l){l=gi(l,s);for(var p=0,_=l.length;s!=null&&p<_;)s=s[Cn(l[p++])];return p&&p==_?s:e}function _f(s,l,p){var _=l(s);return vt(s)?_:ui(_,p(s))}function Me(s){return s==null?s===e?nr:li:Ti&&Ti in Nt(s)?Ub(s):n1(s)}function Ll(s,l){return s>l}function lb(s,l){return s!=null&&Dt.call(s,l)}function cb(s,l){return s!=null&&l in Nt(s)}function ub(s,l,p){return s>=xe(l,p)&&s<he(l,p)}function Pl(s,l,p){for(var _=p?dl:Us,C=s[0].length,L=s.length,D=L,N=V(L),z=1/0,Q=[];D--;){var tt=s[D];D&&l&&(tt=Yt(tt,$e(l))),z=xe(tt.length,z),N[D]=!p&&(l||C>=120&&tt.length>=120)?new Di(D&&tt):e}tt=s[0];var et=-1,ot=N[0];t:for(;++et<C&&Q.length<z;){var ut=tt[et],ft=l?l(ut):ut;if(ut=p||ut!==0?ut:0,!(ot?Fr(ot,ft):_(Q,ft,p))){for(D=L;--D;){var wt=N[D];if(!(wt?Fr(wt,ft):_(s[D],ft,p)))continue t}ot&&ot.push(ft),Q.push(ut)}}return Q}function hb(s,l,p,_){return En(s,function(C,L,D){l(_,p(C),L,D)}),_}function Vr(s,l,p){l=gi(l,s),s=sd(s,l);var _=s==null?s:s[Cn(cn(l))];return _==null?e:Ve(_,s,p)}function yf(s){return Qt(s)&&Me(s)==xt}function fb(s){return Qt(s)&&Me(s)==Pi}function db(s){return Qt(s)&&Me(s)==ye}function $r(s,l,p,_,C){return s===l?!0:s==null||l==null||!Qt(s)&&!Qt(l)?s!==s&&l!==l:pb(s,l,p,_,$r,C)}function pb(s,l,p,_,C,L){var D=vt(s),N=vt(l),z=D?Zt:we(s),Q=N?Zt:we(l);z=z==xt?Ce:z,Q=Q==xt?Ce:Q;var tt=z==Ce,et=Q==Ce,ot=z==Q;if(ot&&vi(s)){if(!vi(l))return!1;D=!0,tt=!1}if(ot&&!tt)return L||(L=new pn),D||gr(s)?Zf(s,l,p,_,C,L):qb(s,l,z,p,_,C,L);if(!(p&m)){var ut=tt&&Dt.call(s,"__wrapped__"),ft=et&&Dt.call(l,"__wrapped__");if(ut||ft){var wt=ut?s.value():s,dt=ft?l.value():l;return L||(L=new pn),C(wt,dt,p,_,L)}}return ot?(L||(L=new pn),zb(s,l,p,_,C,L)):!1}function gb(s){return Qt(s)&&we(s)==Ue}function Rl(s,l,p,_){var C=p.length,L=C,D=!_;if(s==null)return!L;for(s=Nt(s);C--;){var N=p[C];if(D&&N[2]?N[1]!==s[N[0]]:!(N[0]in s))return!1}for(;++C<L;){N=p[C];var z=N[0],Q=s[z],tt=N[1];if(D&&N[2]){if(Q===e&&!(z in s))return!1}else{var et=new pn;if(_)var ot=_(Q,tt,z,s,l,et);if(!(ot===e?$r(tt,Q,m|y,_,et):ot))return!1}}return!0}function bf(s){if(!Xt(s)||Jb(s))return!1;var l=jn(s)?gy:s_;return l.test(Hi(s))}function mb(s){return Qt(s)&&Me(s)==Fn}function vb(s){return Qt(s)&&we(s)==je}function _b(s){return Qt(s)&&Co(s.length)&&!!zt[Me(s)]}function xf(s){return typeof s=="function"?s:s==null?Be:typeof s=="object"?vt(s)?Ef(s[0],s[1]):Sf(s):Ud(s)}function Tl(s){if(!Kr(s))return xy(s);var l=[];for(var p in Nt(s))Dt.call(s,p)&&p!="constructor"&&l.push(p);return l}function yb(s){if(!Xt(s))return e1(s);var l=Kr(s),p=[];for(var _ in s)_=="constructor"&&(l||!Dt.call(s,_))||p.push(_);return p}function Il(s,l){return s<l}function wf(s,l){var p=-1,_=Ie(s)?V(s.length):[];return di(s,function(C,L,D){_[++p]=l(C,L,D)}),_}function Sf(s){var l=Kl(s);return l.length==1&&l[0][2]?id(l[0][0],l[0][1]):function(p){return p===s||Rl(p,s,l)}}function Ef(s,l){return Jl(s)&&nd(l)?id(Cn(s),l):function(p){var _=ac(p,s);return _===e&&_===l?lc(p,s):$r(l,_,m|y)}}function co(s,l,p,_,C){s!==l&&Ml(l,function(L,D){if(C||(C=new pn),Xt(L))bb(s,l,D,p,co,_,C);else{var N=_?_(Ql(s,D),L,D+"",s,l,C):e;N===e&&(N=L),Cl(s,D,N)}},De)}function bb(s,l,p,_,C,L,D){var N=Ql(s,p),z=Ql(l,p),Q=D.get(z);if(Q){Cl(s,p,Q);return}var tt=L?L(N,z,p+"",s,l,D):e,et=tt===e;if(et){var ot=vt(z),ut=!ot&&vi(z),ft=!ot&&!ut&&gr(z);tt=z,ot||ut||ft?vt(N)?tt=N:ne(N)?tt=Te(N):ut?(et=!1,tt=Bf(z,!0)):ft?(et=!1,tt=Ff(z,!0)):tt=[]:Jr(z)||Wi(z)?(tt=N,Wi(N)?tt=Td(N):(!Xt(N)||jn(N))&&(tt=ed(z))):et=!1}et&&(D.set(z,tt),C(tt,z,_,L,D),D.delete(z)),Cl(s,p,tt)}function kf(s,l){var p=s.length;if(p)return l+=l<0?p:0,Un(l,p)?s[l]:e}function Cf(s,l,p){l.length?l=Yt(l,function(L){return vt(L)?function(D){return Fi(D,L.length===1?L[0]:L)}:L}):l=[Be];var _=-1;l=Yt(l,$e(ht()));var C=wf(s,function(L,D,N){var z=Yt(l,function(Q){return Q(L)});return{criteria:z,index:++_,value:L}});return Y_(C,function(L,D){return Tb(L,D,p)})}function xb(s,l){return Af(s,l,function(p,_){return lc(s,_)})}function Af(s,l,p){for(var _=-1,C=l.length,L={};++_<C;){var D=l[_],N=Fi(s,D);p(N,D)&&Yr(L,gi(D,s),N)}return L}function wb(s){return function(l){return Fi(l,s)}}function Dl(s,l,p,_){var C=_?$_:rr,L=-1,D=l.length,N=s;for(s===l&&(l=Te(l)),p&&(N=Yt(s,$e(p)));++L<D;)for(var z=0,Q=l[L],tt=p?p(Q):Q;(z=C(N,tt,z,_))>-1;)N!==s&&Qs.call(N,z,1),Qs.call(s,z,1);return s}function Mf(s,l){for(var p=s?l.length:0,_=p-1;p--;){var C=l[p];if(p==_||C!==L){var L=C;Un(C)?Qs.call(s,C,1):Hl(s,C)}}return s}function Bl(s,l){return s+no(lf()*(l-s+1))}function Sb(s,l,p,_){for(var C=-1,L=he(eo((l-s)/(p||1)),0),D=V(L);L--;)D[_?L:++C]=s,s+=p;return D}function Fl(s,l){var p="";if(!s||l<1||l>X)return p;do l%2&&(p+=s),l=no(l/2),l&&(s+=s);while(l);return p}function St(s,l){return tc(rd(s,l,Be),s+"")}function Eb(s){return hf(mr(s))}function kb(s,l){var p=mr(s);return bo(p,Bi(l,0,p.length))}function Yr(s,l,p,_){if(!Xt(s))return s;l=gi(l,s);for(var C=-1,L=l.length,D=L-1,N=s;N!=null&&++C<L;){var z=Cn(l[C]),Q=p;if(z==="__proto__"||z==="constructor"||z==="prototype")return s;if(C!=D){var tt=N[z];Q=_?_(tt,z,N):e,Q===e&&(Q=Xt(tt)?tt:Un(l[C+1])?[]:{})}Ur(N,z,Q),N=N[z]}return s}var Of=io?function(s,l){return io.set(s,l),s}:Be,Cb=to?function(s,l){return to(s,"toString",{configurable:!0,enumerable:!1,value:uc(l),writable:!0})}:Be;function Ab(s){return bo(mr(s))}function ln(s,l,p){var _=-1,C=s.length;l<0&&(l=-l>C?0:C+l),p=p>C?C:p,p<0&&(p+=C),C=l>p?0:p-l>>>0,l>>>=0;for(var L=V(C);++_<C;)L[_]=s[_+l];return L}function Mb(s,l){var p;return di(s,function(_,C,L){return p=l(_,C,L),!p}),!!p}function uo(s,l,p){var _=0,C=s==null?_:s.length;if(typeof l=="number"&&l===l&&C<=Ft){for(;_<C;){var L=_+C>>>1,D=s[L];D!==null&&!Ge(D)&&(p?D<=l:D<l)?_=L+1:C=L}return C}return Nl(s,l,Be,p)}function Nl(s,l,p,_){var C=0,L=s==null?0:s.length;if(L===0)return 0;l=p(l);for(var D=l!==l,N=l===null,z=Ge(l),Q=l===e;C<L;){var tt=no((C+L)/2),et=p(s[tt]),ot=et!==e,ut=et===null,ft=et===et,wt=Ge(et);if(D)var dt=_||ft;else Q?dt=ft&&(_||ot):N?dt=ft&&ot&&(_||!ut):z?dt=ft&&ot&&!ut&&(_||!wt):ut||wt?dt=!1:dt=_?et<=l:et<l;dt?C=tt+1:L=tt}return xe(L,Ot)}function Lf(s,l){for(var p=-1,_=s.length,C=0,L=[];++p<_;){var D=s[p],N=l?l(D):D;if(!p||!gn(N,z)){var z=N;L[C++]=D===0?0:D}}return L}function Pf(s){return typeof s=="number"?s:Ge(s)?st:+s}function Ye(s){if(typeof s=="string")return s;if(vt(s))return Yt(s,Ye)+"";if(Ge(s))return cf?cf.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function pi(s,l,p){var _=-1,C=Us,L=s.length,D=!0,N=[],z=N;if(p)D=!1,C=dl;else if(L>=r){var Q=l?null:Hb(s);if(Q)return Vs(Q);D=!1,C=Fr,z=new Di}else z=l?[]:N;t:for(;++_<L;){var tt=s[_],et=l?l(tt):tt;if(tt=p||tt!==0?tt:0,D&&et===et){for(var ot=z.length;ot--;)if(z[ot]===et)continue t;l&&z.push(et),N.push(tt)}else C(z,et,p)||(z!==N&&z.push(et),N.push(tt))}return N}function Hl(s,l){return l=gi(l,s),s=sd(s,l),s==null||delete s[Cn(cn(l))]}function Rf(s,l,p,_){return Yr(s,l,p(Fi(s,l)),_)}function ho(s,l,p,_){for(var C=s.length,L=_?C:-1;(_?L--:++L<C)&&l(s[L],L,s););return p?ln(s,_?0:L,_?L+1:C):ln(s,_?L+1:0,_?C:L)}function Tf(s,l){var p=s;return p instanceof At&&(p=p.value()),pl(l,function(_,C){return C.func.apply(C.thisArg,ui([_],C.args))},p)}function Wl(s,l,p){var _=s.length;if(_<2)return _?pi(s[0]):[];for(var C=-1,L=V(_);++C<_;)for(var D=s[C],N=-1;++N<_;)N!=C&&(L[C]=jr(L[C]||D,s[N],l,p));return pi(ve(L,1),l,p)}function If(s,l,p){for(var _=-1,C=s.length,L=l.length,D={};++_<C;){var N=_<L?l[_]:e;p(D,s[_],N)}return D}function ql(s){return ne(s)?s:[]}function zl(s){return typeof s=="function"?s:Be}function gi(s,l){return vt(s)?s:Jl(s,l)?[s]:cd(It(s))}var Ob=St;function mi(s,l,p){var _=s.length;return p=p===e?_:p,!l&&p>=_?s:ln(s,l,p)}var Df=my||function(s){return me.clearTimeout(s)};function Bf(s,l){if(l)return s.slice();var p=s.length,_=nf?nf(p):new s.constructor(p);return s.copy(_),_}function Ul(s){var l=new s.constructor(s.byteLength);return new Js(l).set(new Js(s)),l}function Lb(s,l){var p=l?Ul(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function Pb(s){var l=new s.constructor(s.source,_h.exec(s));return l.lastIndex=s.lastIndex,l}function Rb(s){return zr?Nt(zr.call(s)):{}}function Ff(s,l){var p=l?Ul(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function Nf(s,l){if(s!==l){var p=s!==e,_=s===null,C=s===s,L=Ge(s),D=l!==e,N=l===null,z=l===l,Q=Ge(l);if(!N&&!Q&&!L&&s>l||L&&D&&z&&!N&&!Q||_&&D&&z||!p&&z||!C)return 1;if(!_&&!L&&!Q&&s<l||Q&&p&&C&&!_&&!L||N&&p&&C||!D&&C||!z)return-1}return 0}function Tb(s,l,p){for(var _=-1,C=s.criteria,L=l.criteria,D=C.length,N=p.length;++_<D;){var z=Nf(C[_],L[_]);if(z){if(_>=N)return z;var Q=p[_];return z*(Q=="desc"?-1:1)}}return s.index-l.index}function Hf(s,l,p,_){for(var C=-1,L=s.length,D=p.length,N=-1,z=l.length,Q=he(L-D,0),tt=V(z+Q),et=!_;++N<z;)tt[N]=l[N];for(;++C<D;)(et||C<L)&&(tt[p[C]]=s[C]);for(;Q--;)tt[N++]=s[C++];return tt}function Wf(s,l,p,_){for(var C=-1,L=s.length,D=-1,N=p.length,z=-1,Q=l.length,tt=he(L-N,0),et=V(tt+Q),ot=!_;++C<tt;)et[C]=s[C];for(var ut=C;++z<Q;)et[ut+z]=l[z];for(;++D<N;)(ot||C<L)&&(et[ut+p[D]]=s[C++]);return et}function Te(s,l){var p=-1,_=s.length;for(l||(l=V(_));++p<_;)l[p]=s[p];return l}function kn(s,l,p,_){var C=!p;p||(p={});for(var L=-1,D=l.length;++L<D;){var N=l[L],z=_?_(p[N],s[N],N,p,s):e;z===e&&(z=s[N]),C?Wn(p,N,z):Ur(p,N,z)}return p}function Ib(s,l){return kn(s,Xl(s),l)}function Db(s,l){return kn(s,Qf(s),l)}function fo(s,l){return function(p,_){var C=vt(p)?W_:ib,L=l?l():{};return C(p,s,ht(_,2),L)}}function fr(s){return St(function(l,p){var _=-1,C=p.length,L=C>1?p[C-1]:e,D=C>2?p[2]:e;for(L=s.length>3&&typeof L=="function"?(C--,L):e,D&&Oe(p[0],p[1],D)&&(L=C<3?e:L,C=1),l=Nt(l);++_<C;){var N=p[_];N&&s(l,N,_,L)}return l})}function qf(s,l){return function(p,_){if(p==null)return p;if(!Ie(p))return s(p,_);for(var C=p.length,L=l?C:-1,D=Nt(p);(l?L--:++L<C)&&_(D[L],L,D)!==!1;);return p}}function zf(s){return function(l,p,_){for(var C=-1,L=Nt(l),D=_(l),N=D.length;N--;){var z=D[s?N:++C];if(p(L[z],z,L)===!1)break}return l}}function Bb(s,l,p){var _=l&x,C=Gr(s);function L(){var D=this&&this!==me&&this instanceof L?C:s;return D.apply(_?p:this,arguments)}return L}function Uf(s){return function(l){l=It(l);var p=sr(l)?dn(l):e,_=p?p[0]:l.charAt(0),C=p?mi(p,1).join(""):l.slice(1);return _[s]()+C}}function dr(s){return function(l){return pl(qd(Wd(l).replace(C_,"")),s,"")}}function Gr(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var p=hr(s.prototype),_=s.apply(p,l);return Xt(_)?_:p}}function Fb(s,l,p){var _=Gr(s);function C(){for(var L=arguments.length,D=V(L),N=L,z=pr(C);N--;)D[N]=arguments[N];var Q=L<3&&D[0]!==z&&D[L-1]!==z?[]:hi(D,z);if(L-=Q.length,L<p)return Gf(s,l,po,C.placeholder,e,D,Q,e,e,p-L);var tt=this&&this!==me&&this instanceof C?_:s;return Ve(tt,this,D)}return C}function jf(s){return function(l,p,_){var C=Nt(l);if(!Ie(l)){var L=ht(p,3);l=pe(l),p=function(N){return L(C[N],N,C)}}var D=s(l,p,_);return D>-1?C[L?l[D]:D]:e}}function Vf(s){return zn(function(l){var p=l.length,_=p,C=on.prototype.thru;for(s&&l.reverse();_--;){var L=l[_];if(typeof L!="function")throw new sn(a);if(C&&!D&&_o(L)=="wrapper")var D=new on([],!0)}for(_=D?_:p;++_<p;){L=l[_];var N=_o(L),z=N=="wrapper"?Gl(L):e;z&&Zl(z[0])&&z[1]==(T|I|E|F)&&!z[4].length&&z[9]==1?D=D[_o(z[0])].apply(D,z[3]):D=L.length==1&&Zl(L)?D[N]():D.thru(L)}return function(){var Q=arguments,tt=Q[0];if(D&&Q.length==1&&vt(tt))return D.plant(tt).value();for(var et=0,ot=p?l[et].apply(this,Q):tt;++et<p;)ot=l[et].call(this,ot);return ot}})}function po(s,l,p,_,C,L,D,N,z,Q){var tt=l&T,et=l&x,ot=l&k,ut=l&(I|S),ft=l&$,wt=ot?e:Gr(s);function dt(){for(var Et=arguments.length,Lt=V(Et),Ke=Et;Ke--;)Lt[Ke]=arguments[Ke];if(ut)var Le=pr(dt),Xe=K_(Lt,Le);if(_&&(Lt=Hf(Lt,_,C,ut)),L&&(Lt=Wf(Lt,L,D,ut)),Et-=Xe,ut&&Et<Q){var ie=hi(Lt,Le);return Gf(s,l,po,dt.placeholder,p,Lt,ie,N,z,Q-Et)}var mn=et?p:this,$n=ot?mn[s]:s;return Et=Lt.length,N?Lt=i1(Lt,N):ft&&Et>1&&Lt.reverse(),tt&&z<Et&&(Lt.length=z),this&&this!==me&&this instanceof dt&&($n=wt||Gr($n)),$n.apply(mn,Lt)}return dt}function $f(s,l){return function(p,_){return hb(p,s,l(_),{})}}function go(s,l){return function(p,_){var C;if(p===e&&_===e)return l;if(p!==e&&(C=p),_!==e){if(C===e)return _;typeof p=="string"||typeof _=="string"?(p=Ye(p),_=Ye(_)):(p=Pf(p),_=Pf(_)),C=s(p,_)}return C}}function jl(s){return zn(function(l){return l=Yt(l,$e(ht())),St(function(p){var _=this;return s(l,function(C){return Ve(C,_,p)})})})}function mo(s,l){l=l===e?" ":Ye(l);var p=l.length;if(p<2)return p?Fl(l,s):l;var _=Fl(l,eo(s/or(l)));return sr(l)?mi(dn(_),0,s).join(""):_.slice(0,s)}function Nb(s,l,p,_){var C=l&x,L=Gr(s);function D(){for(var N=-1,z=arguments.length,Q=-1,tt=_.length,et=V(tt+z),ot=this&&this!==me&&this instanceof D?L:s;++Q<tt;)et[Q]=_[Q];for(;z--;)et[Q++]=arguments[++N];return Ve(ot,C?p:this,et)}return D}function Yf(s){return function(l,p,_){return _&&typeof _!="number"&&Oe(l,p,_)&&(p=_=e),l=Vn(l),p===e?(p=l,l=0):p=Vn(p),_=_===e?l<p?1:-1:Vn(_),Sb(l,p,_,s)}}function vo(s){return function(l,p){return typeof l=="string"&&typeof p=="string"||(l=un(l),p=un(p)),s(l,p)}}function Gf(s,l,p,_,C,L,D,N,z,Q){var tt=l&I,et=tt?D:e,ot=tt?e:D,ut=tt?L:e,ft=tt?e:L;l|=tt?E:P,l&=~(tt?P:E),l&A||(l&=-4);var wt=[s,l,C,ut,et,ft,ot,N,z,Q],dt=p.apply(e,wt);return Zl(s)&&od(dt,wt),dt.placeholder=_,ad(dt,s,l)}function Vl(s){var l=ue[s];return function(p,_){if(p=un(p),_=_==null?0:xe(bt(_),292),_&&af(p)){var C=(It(p)+"e").split("e"),L=l(C[0]+"e"+(+C[1]+_));return C=(It(L)+"e").split("e"),+(C[0]+"e"+(+C[1]-_))}return l(p)}}var Hb=cr&&1/Vs(new cr([,-0]))[1]==G?function(s){return new cr(s)}:dc;function Kf(s){return function(l){var p=we(l);return p==Ue?xl(l):p==je?ny(l):G_(l,s(l))}}function qn(s,l,p,_,C,L,D,N){var z=l&k;if(!z&&typeof s!="function")throw new sn(a);var Q=_?_.length:0;if(Q||(l&=-97,_=C=e),D=D===e?D:he(bt(D),0),N=N===e?N:bt(N),Q-=C?C.length:0,l&P){var tt=_,et=C;_=C=e}var ot=z?e:Gl(s),ut=[s,l,p,_,C,tt,et,L,D,N];if(ot&&t1(ut,ot),s=ut[0],l=ut[1],p=ut[2],_=ut[3],C=ut[4],N=ut[9]=ut[9]===e?z?0:s.length:he(ut[9]-Q,0),!N&&l&(I|S)&&(l&=-25),!l||l==x)var ft=Bb(s,l,p);else l==I||l==S?ft=Fb(s,l,N):(l==E||l==(x|E))&&!C.length?ft=Nb(s,l,p,_):ft=po.apply(e,ut);var wt=ot?Of:od;return ad(wt(ft,ut),s,l)}function Xf(s,l,p,_){return s===e||gn(s,lr[p])&&!Dt.call(_,p)?l:s}function Jf(s,l,p,_,C,L){return Xt(s)&&Xt(l)&&(L.set(l,s),co(s,l,e,Jf,L),L.delete(l)),s}function Wb(s){return Jr(s)?e:s}function Zf(s,l,p,_,C,L){var D=p&m,N=s.length,z=l.length;if(N!=z&&!(D&&z>N))return!1;var Q=L.get(s),tt=L.get(l);if(Q&&tt)return Q==l&&tt==s;var et=-1,ot=!0,ut=p&y?new Di:e;for(L.set(s,l),L.set(l,s);++et<N;){var ft=s[et],wt=l[et];if(_)var dt=D?_(wt,ft,et,l,s,L):_(ft,wt,et,s,l,L);if(dt!==e){if(dt)continue;ot=!1;break}if(ut){if(!gl(l,function(Et,Lt){if(!Fr(ut,Lt)&&(ft===Et||C(ft,Et,p,_,L)))return ut.push(Lt)})){ot=!1;break}}else if(!(ft===wt||C(ft,wt,p,_,L))){ot=!1;break}}return L.delete(s),L.delete(l),ot}function qb(s,l,p,_,C,L,D){switch(p){case Ae:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case Pi:return!(s.byteLength!=l.byteLength||!L(new Js(s),new Js(l)));case Pe:case ye:case ai:return gn(+s,+l);case oe:return s.name==l.name&&s.message==l.message;case Fn:case Oi:return s==l+"";case Ue:var N=xl;case je:var z=_&m;if(N||(N=Vs),s.size!=l.size&&!z)return!1;var Q=D.get(s);if(Q)return Q==l;_|=y,D.set(s,l);var tt=Zf(N(s),N(l),_,C,L,D);return D.delete(s),tt;case Li:if(zr)return zr.call(s)==zr.call(l)}return!1}function zb(s,l,p,_,C,L){var D=p&m,N=$l(s),z=N.length,Q=$l(l),tt=Q.length;if(z!=tt&&!D)return!1;for(var et=z;et--;){var ot=N[et];if(!(D?ot in l:Dt.call(l,ot)))return!1}var ut=L.get(s),ft=L.get(l);if(ut&&ft)return ut==l&&ft==s;var wt=!0;L.set(s,l),L.set(l,s);for(var dt=D;++et<z;){ot=N[et];var Et=s[ot],Lt=l[ot];if(_)var Ke=D?_(Lt,Et,ot,l,s,L):_(Et,Lt,ot,s,l,L);if(!(Ke===e?Et===Lt||C(Et,Lt,p,_,L):Ke)){wt=!1;break}dt||(dt=ot=="constructor")}if(wt&&!dt){var Le=s.constructor,Xe=l.constructor;Le!=Xe&&"constructor"in s&&"constructor"in l&&!(typeof Le=="function"&&Le instanceof Le&&typeof Xe=="function"&&Xe instanceof Xe)&&(wt=!1)}return L.delete(s),L.delete(l),wt}function zn(s){return tc(rd(s,e,dd),s+"")}function $l(s){return _f(s,pe,Xl)}function Yl(s){return _f(s,De,Qf)}var Gl=io?function(s){return io.get(s)}:dc;function _o(s){for(var l=s.name+"",p=ur[l],_=Dt.call(ur,l)?p.length:0;_--;){var C=p[_],L=C.func;if(L==null||L==s)return C.name}return l}function pr(s){var l=Dt.call(O,"placeholder")?O:s;return l.placeholder}function ht(){var s=O.iteratee||hc;return s=s===hc?xf:s,arguments.length?s(arguments[0],arguments[1]):s}function yo(s,l){var p=s.__data__;return Xb(l)?p[typeof l=="string"?"string":"hash"]:p.map}function Kl(s){for(var l=pe(s),p=l.length;p--;){var _=l[p],C=s[_];l[p]=[_,C,nd(C)]}return l}function Ni(s,l){var p=Q_(s,l);return bf(p)?p:e}function Ub(s){var l=Dt.call(s,Ti),p=s[Ti];try{s[Ti]=e;var _=!0}catch{}var C=Ks.call(s);return _&&(l?s[Ti]=p:delete s[Ti]),C}var Xl=Sl?function(s){return s==null?[]:(s=Nt(s),ci(Sl(s),function(l){return sf.call(s,l)}))}:pc,Qf=Sl?function(s){for(var l=[];s;)ui(l,Xl(s)),s=Zs(s);return l}:pc,we=Me;(El&&we(new El(new ArrayBuffer(1)))!=Ae||Hr&&we(new Hr)!=Ue||kl&&we(kl.resolve())!=Hs||cr&&we(new cr)!=je||Wr&&we(new Wr)!=be)&&(we=function(s){var l=Me(s),p=l==Ce?s.constructor:e,_=p?Hi(p):"";if(_)switch(_){case ky:return Ae;case Cy:return Ue;case Ay:return Hs;case My:return je;case Oy:return be}return l});function jb(s,l,p){for(var _=-1,C=p.length;++_<C;){var L=p[_],D=L.size;switch(L.type){case"drop":s+=D;break;case"dropRight":l-=D;break;case"take":l=xe(l,s+D);break;case"takeRight":s=he(s,l-D);break}}return{start:s,end:l}}function Vb(s){var l=s.match(Jv);return l?l[1].split(Zv):[]}function td(s,l,p){l=gi(l,s);for(var _=-1,C=l.length,L=!1;++_<C;){var D=Cn(l[_]);if(!(L=s!=null&&p(s,D)))break;s=s[D]}return L||++_!=C?L:(C=s==null?0:s.length,!!C&&Co(C)&&Un(D,C)&&(vt(s)||Wi(s)))}function $b(s){var l=s.length,p=new s.constructor(l);return l&&typeof s[0]=="string"&&Dt.call(s,"index")&&(p.index=s.index,p.input=s.input),p}function ed(s){return typeof s.constructor=="function"&&!Kr(s)?hr(Zs(s)):{}}function Yb(s,l,p){var _=s.constructor;switch(l){case Pi:return Ul(s);case Pe:case ye:return new _(+s);case Ae:return Lb(s,p);case Br:case M:case b:case w:case R:case H:case j:case J:case yt:return Ff(s,p);case Ue:return new _;case ai:case Oi:return new _(s);case Fn:return Pb(s);case je:return new _;case Li:return Rb(s)}}function Gb(s,l){var p=l.length;if(!p)return s;var _=p-1;return l[_]=(p>1?"& ":"")+l[_],l=l.join(p>2?", ":" "),s.replace(Xv,`{
|
|
30
|
+
/* [wrapped with `+l+`] */
|
|
31
|
+
`)}function Kb(s){return vt(s)||Wi(s)||!!(of&&s&&s[of])}function Un(s,l){var p=typeof s;return l=l??X,!!l&&(p=="number"||p!="symbol"&&a_.test(s))&&s>-1&&s%1==0&&s<l}function Oe(s,l,p){if(!Xt(p))return!1;var _=typeof l;return(_=="number"?Ie(p)&&Un(l,p.length):_=="string"&&l in p)?gn(p[l],s):!1}function Jl(s,l){if(vt(s))return!1;var p=typeof s;return p=="number"||p=="symbol"||p=="boolean"||s==null||Ge(s)?!0:$v.test(s)||!Vv.test(s)||l!=null&&s in Nt(l)}function Xb(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function Zl(s){var l=_o(s),p=O[l];if(typeof p!="function"||!(l in At.prototype))return!1;if(s===p)return!0;var _=Gl(p);return!!_&&s===_[0]}function Jb(s){return!!ef&&ef in s}var Zb=Ys?jn:gc;function Kr(s){var l=s&&s.constructor,p=typeof l=="function"&&l.prototype||lr;return s===p}function nd(s){return s===s&&!Xt(s)}function id(s,l){return function(p){return p==null?!1:p[s]===l&&(l!==e||s in Nt(p))}}function Qb(s){var l=Eo(s,function(_){return p.size===f&&p.clear(),_}),p=l.cache;return l}function t1(s,l){var p=s[1],_=l[1],C=p|_,L=C<(x|k|T),D=_==T&&p==I||_==T&&p==F&&s[7].length<=l[8]||_==(T|F)&&l[7].length<=l[8]&&p==I;if(!(L||D))return s;_&x&&(s[2]=l[2],C|=p&x?0:A);var N=l[3];if(N){var z=s[3];s[3]=z?Hf(z,N,l[4]):N,s[4]=z?hi(s[3],h):l[4]}return N=l[5],N&&(z=s[5],s[5]=z?Wf(z,N,l[6]):N,s[6]=z?hi(s[5],h):l[6]),N=l[7],N&&(s[7]=N),_&T&&(s[8]=s[8]==null?l[8]:xe(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=C,s}function e1(s){var l=[];if(s!=null)for(var p in Nt(s))l.push(p);return l}function n1(s){return Ks.call(s)}function rd(s,l,p){return l=he(l===e?s.length-1:l,0),function(){for(var _=arguments,C=-1,L=he(_.length-l,0),D=V(L);++C<L;)D[C]=_[l+C];C=-1;for(var N=V(l+1);++C<l;)N[C]=_[C];return N[l]=p(D),Ve(s,this,N)}}function sd(s,l){return l.length<2?s:Fi(s,ln(l,0,-1))}function i1(s,l){for(var p=s.length,_=xe(l.length,p),C=Te(s);_--;){var L=l[_];s[_]=Un(L,p)?C[L]:e}return s}function Ql(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var od=ld(Of),Xr=_y||function(s,l){return me.setTimeout(s,l)},tc=ld(Cb);function ad(s,l,p){var _=l+"";return tc(s,Gb(_,r1(Vb(_),p)))}function ld(s){var l=0,p=0;return function(){var _=wy(),C=at-(_-p);if(p=_,C>0){if(++l>=Y)return arguments[0]}else l=0;return s.apply(e,arguments)}}function bo(s,l){var p=-1,_=s.length,C=_-1;for(l=l===e?_:l;++p<l;){var L=Bl(p,C),D=s[L];s[L]=s[p],s[p]=D}return s.length=l,s}var cd=Qb(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Yv,function(p,_,C,L){l.push(C?L.replace(e_,"$1"):_||p)}),l});function Cn(s){if(typeof s=="string"||Ge(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Hi(s){if(s!=null){try{return Gs.call(s)}catch{}try{return s+""}catch{}}return""}function r1(s,l){return rn(pt,function(p){var _="_."+p[0];l&p[1]&&!Us(s,_)&&s.push(_)}),s.sort()}function ud(s){if(s instanceof At)return s.clone();var l=new on(s.__wrapped__,s.__chain__);return l.__actions__=Te(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function s1(s,l,p){(p?Oe(s,l,p):l===e)?l=1:l=he(bt(l),0);var _=s==null?0:s.length;if(!_||l<1)return[];for(var C=0,L=0,D=V(eo(_/l));C<_;)D[L++]=ln(s,C,C+=l);return D}function o1(s){for(var l=-1,p=s==null?0:s.length,_=0,C=[];++l<p;){var L=s[l];L&&(C[_++]=L)}return C}function a1(){var s=arguments.length;if(!s)return[];for(var l=V(s-1),p=arguments[0],_=s;_--;)l[_-1]=arguments[_];return ui(vt(p)?Te(p):[p],ve(l,1))}var l1=St(function(s,l){return ne(s)?jr(s,ve(l,1,ne,!0)):[]}),c1=St(function(s,l){var p=cn(l);return ne(p)&&(p=e),ne(s)?jr(s,ve(l,1,ne,!0),ht(p,2)):[]}),u1=St(function(s,l){var p=cn(l);return ne(p)&&(p=e),ne(s)?jr(s,ve(l,1,ne,!0),e,p):[]});function h1(s,l,p){var _=s==null?0:s.length;return _?(l=p||l===e?1:bt(l),ln(s,l<0?0:l,_)):[]}function f1(s,l,p){var _=s==null?0:s.length;return _?(l=p||l===e?1:bt(l),l=_-l,ln(s,0,l<0?0:l)):[]}function d1(s,l){return s&&s.length?ho(s,ht(l,3),!0,!0):[]}function p1(s,l){return s&&s.length?ho(s,ht(l,3),!0):[]}function g1(s,l,p,_){var C=s==null?0:s.length;return C?(p&&typeof p!="number"&&Oe(s,l,p)&&(p=0,_=C),ab(s,l,p,_)):[]}function hd(s,l,p){var _=s==null?0:s.length;if(!_)return-1;var C=p==null?0:bt(p);return C<0&&(C=he(_+C,0)),js(s,ht(l,3),C)}function fd(s,l,p){var _=s==null?0:s.length;if(!_)return-1;var C=_-1;return p!==e&&(C=bt(p),C=p<0?he(_+C,0):xe(C,_-1)),js(s,ht(l,3),C,!0)}function dd(s){var l=s==null?0:s.length;return l?ve(s,1):[]}function m1(s){var l=s==null?0:s.length;return l?ve(s,G):[]}function v1(s,l){var p=s==null?0:s.length;return p?(l=l===e?1:bt(l),ve(s,l)):[]}function _1(s){for(var l=-1,p=s==null?0:s.length,_={};++l<p;){var C=s[l];_[C[0]]=C[1]}return _}function pd(s){return s&&s.length?s[0]:e}function y1(s,l,p){var _=s==null?0:s.length;if(!_)return-1;var C=p==null?0:bt(p);return C<0&&(C=he(_+C,0)),rr(s,l,C)}function b1(s){var l=s==null?0:s.length;return l?ln(s,0,-1):[]}var x1=St(function(s){var l=Yt(s,ql);return l.length&&l[0]===s[0]?Pl(l):[]}),w1=St(function(s){var l=cn(s),p=Yt(s,ql);return l===cn(p)?l=e:p.pop(),p.length&&p[0]===s[0]?Pl(p,ht(l,2)):[]}),S1=St(function(s){var l=cn(s),p=Yt(s,ql);return l=typeof l=="function"?l:e,l&&p.pop(),p.length&&p[0]===s[0]?Pl(p,e,l):[]});function E1(s,l){return s==null?"":by.call(s,l)}function cn(s){var l=s==null?0:s.length;return l?s[l-1]:e}function k1(s,l,p){var _=s==null?0:s.length;if(!_)return-1;var C=_;return p!==e&&(C=bt(p),C=C<0?he(_+C,0):xe(C,_-1)),l===l?ry(s,l,C):js(s,Yh,C,!0)}function C1(s,l){return s&&s.length?kf(s,bt(l)):e}var A1=St(gd);function gd(s,l){return s&&s.length&&l&&l.length?Dl(s,l):s}function M1(s,l,p){return s&&s.length&&l&&l.length?Dl(s,l,ht(p,2)):s}function O1(s,l,p){return s&&s.length&&l&&l.length?Dl(s,l,e,p):s}var L1=zn(function(s,l){var p=s==null?0:s.length,_=Al(s,l);return Mf(s,Yt(l,function(C){return Un(C,p)?+C:C}).sort(Nf)),_});function P1(s,l){var p=[];if(!(s&&s.length))return p;var _=-1,C=[],L=s.length;for(l=ht(l,3);++_<L;){var D=s[_];l(D,_,s)&&(p.push(D),C.push(_))}return Mf(s,C),p}function ec(s){return s==null?s:Ey.call(s)}function R1(s,l,p){var _=s==null?0:s.length;return _?(p&&typeof p!="number"&&Oe(s,l,p)?(l=0,p=_):(l=l==null?0:bt(l),p=p===e?_:bt(p)),ln(s,l,p)):[]}function T1(s,l){return uo(s,l)}function I1(s,l,p){return Nl(s,l,ht(p,2))}function D1(s,l){var p=s==null?0:s.length;if(p){var _=uo(s,l);if(_<p&&gn(s[_],l))return _}return-1}function B1(s,l){return uo(s,l,!0)}function F1(s,l,p){return Nl(s,l,ht(p,2),!0)}function N1(s,l){var p=s==null?0:s.length;if(p){var _=uo(s,l,!0)-1;if(gn(s[_],l))return _}return-1}function H1(s){return s&&s.length?Lf(s):[]}function W1(s,l){return s&&s.length?Lf(s,ht(l,2)):[]}function q1(s){var l=s==null?0:s.length;return l?ln(s,1,l):[]}function z1(s,l,p){return s&&s.length?(l=p||l===e?1:bt(l),ln(s,0,l<0?0:l)):[]}function U1(s,l,p){var _=s==null?0:s.length;return _?(l=p||l===e?1:bt(l),l=_-l,ln(s,l<0?0:l,_)):[]}function j1(s,l){return s&&s.length?ho(s,ht(l,3),!1,!0):[]}function V1(s,l){return s&&s.length?ho(s,ht(l,3)):[]}var $1=St(function(s){return pi(ve(s,1,ne,!0))}),Y1=St(function(s){var l=cn(s);return ne(l)&&(l=e),pi(ve(s,1,ne,!0),ht(l,2))}),G1=St(function(s){var l=cn(s);return l=typeof l=="function"?l:e,pi(ve(s,1,ne,!0),e,l)});function K1(s){return s&&s.length?pi(s):[]}function X1(s,l){return s&&s.length?pi(s,ht(l,2)):[]}function J1(s,l){return l=typeof l=="function"?l:e,s&&s.length?pi(s,e,l):[]}function nc(s){if(!(s&&s.length))return[];var l=0;return s=ci(s,function(p){if(ne(p))return l=he(p.length,l),!0}),yl(l,function(p){return Yt(s,ml(p))})}function md(s,l){if(!(s&&s.length))return[];var p=nc(s);return l==null?p:Yt(p,function(_){return Ve(l,e,_)})}var Z1=St(function(s,l){return ne(s)?jr(s,l):[]}),Q1=St(function(s){return Wl(ci(s,ne))}),tx=St(function(s){var l=cn(s);return ne(l)&&(l=e),Wl(ci(s,ne),ht(l,2))}),ex=St(function(s){var l=cn(s);return l=typeof l=="function"?l:e,Wl(ci(s,ne),e,l)}),nx=St(nc);function ix(s,l){return If(s||[],l||[],Ur)}function rx(s,l){return If(s||[],l||[],Yr)}var sx=St(function(s){var l=s.length,p=l>1?s[l-1]:e;return p=typeof p=="function"?(s.pop(),p):e,md(s,p)});function vd(s){var l=O(s);return l.__chain__=!0,l}function ox(s,l){return l(s),s}function xo(s,l){return l(s)}var ax=zn(function(s){var l=s.length,p=l?s[0]:0,_=this.__wrapped__,C=function(L){return Al(L,s)};return l>1||this.__actions__.length||!(_ instanceof At)||!Un(p)?this.thru(C):(_=_.slice(p,+p+(l?1:0)),_.__actions__.push({func:xo,args:[C],thisArg:e}),new on(_,this.__chain__).thru(function(L){return l&&!L.length&&L.push(e),L}))});function lx(){return vd(this)}function cx(){return new on(this.value(),this.__chain__)}function ux(){this.__values__===e&&(this.__values__=Pd(this.value()));var s=this.__index__>=this.__values__.length,l=s?e:this.__values__[this.__index__++];return{done:s,value:l}}function hx(){return this}function fx(s){for(var l,p=this;p instanceof so;){var _=ud(p);_.__index__=0,_.__values__=e,l?C.__wrapped__=_:l=_;var C=_;p=p.__wrapped__}return C.__wrapped__=s,l}function dx(){var s=this.__wrapped__;if(s instanceof At){var l=s;return this.__actions__.length&&(l=new At(this)),l=l.reverse(),l.__actions__.push({func:xo,args:[ec],thisArg:e}),new on(l,this.__chain__)}return this.thru(ec)}function px(){return Tf(this.__wrapped__,this.__actions__)}var gx=fo(function(s,l,p){Dt.call(s,p)?++s[p]:Wn(s,p,1)});function mx(s,l,p){var _=vt(s)?Vh:ob;return p&&Oe(s,l,p)&&(l=e),_(s,ht(l,3))}function vx(s,l){var p=vt(s)?ci:mf;return p(s,ht(l,3))}var _x=jf(hd),yx=jf(fd);function bx(s,l){return ve(wo(s,l),1)}function xx(s,l){return ve(wo(s,l),G)}function wx(s,l,p){return p=p===e?1:bt(p),ve(wo(s,l),p)}function _d(s,l){var p=vt(s)?rn:di;return p(s,ht(l,3))}function yd(s,l){var p=vt(s)?q_:gf;return p(s,ht(l,3))}var Sx=fo(function(s,l,p){Dt.call(s,p)?s[p].push(l):Wn(s,p,[l])});function Ex(s,l,p,_){s=Ie(s)?s:mr(s),p=p&&!_?bt(p):0;var C=s.length;return p<0&&(p=he(C+p,0)),Ao(s)?p<=C&&s.indexOf(l,p)>-1:!!C&&rr(s,l,p)>-1}var kx=St(function(s,l,p){var _=-1,C=typeof l=="function",L=Ie(s)?V(s.length):[];return di(s,function(D){L[++_]=C?Ve(l,D,p):Vr(D,l,p)}),L}),Cx=fo(function(s,l,p){Wn(s,p,l)});function wo(s,l){var p=vt(s)?Yt:wf;return p(s,ht(l,3))}function Ax(s,l,p,_){return s==null?[]:(vt(l)||(l=l==null?[]:[l]),p=_?e:p,vt(p)||(p=p==null?[]:[p]),Cf(s,l,p))}var Mx=fo(function(s,l,p){s[p?0:1].push(l)},function(){return[[],[]]});function Ox(s,l,p){var _=vt(s)?pl:Kh,C=arguments.length<3;return _(s,ht(l,4),p,C,di)}function Lx(s,l,p){var _=vt(s)?z_:Kh,C=arguments.length<3;return _(s,ht(l,4),p,C,gf)}function Px(s,l){var p=vt(s)?ci:mf;return p(s,ko(ht(l,3)))}function Rx(s){var l=vt(s)?hf:Eb;return l(s)}function Tx(s,l,p){(p?Oe(s,l,p):l===e)?l=1:l=bt(l);var _=vt(s)?eb:kb;return _(s,l)}function Ix(s){var l=vt(s)?nb:Ab;return l(s)}function Dx(s){if(s==null)return 0;if(Ie(s))return Ao(s)?or(s):s.length;var l=we(s);return l==Ue||l==je?s.size:Tl(s).length}function Bx(s,l,p){var _=vt(s)?gl:Mb;return p&&Oe(s,l,p)&&(l=e),_(s,ht(l,3))}var Fx=St(function(s,l){if(s==null)return[];var p=l.length;return p>1&&Oe(s,l[0],l[1])?l=[]:p>2&&Oe(l[0],l[1],l[2])&&(l=[l[0]]),Cf(s,ve(l,1),[])}),So=vy||function(){return me.Date.now()};function Nx(s,l){if(typeof l!="function")throw new sn(a);return s=bt(s),function(){if(--s<1)return l.apply(this,arguments)}}function bd(s,l,p){return l=p?e:l,l=s&&l==null?s.length:l,qn(s,T,e,e,e,e,l)}function xd(s,l){var p;if(typeof l!="function")throw new sn(a);return s=bt(s),function(){return--s>0&&(p=l.apply(this,arguments)),s<=1&&(l=e),p}}var ic=St(function(s,l,p){var _=x;if(p.length){var C=hi(p,pr(ic));_|=E}return qn(s,_,l,p,C)}),wd=St(function(s,l,p){var _=x|k;if(p.length){var C=hi(p,pr(wd));_|=E}return qn(l,_,s,p,C)});function Sd(s,l,p){l=p?e:l;var _=qn(s,I,e,e,e,e,e,l);return _.placeholder=Sd.placeholder,_}function Ed(s,l,p){l=p?e:l;var _=qn(s,S,e,e,e,e,e,l);return _.placeholder=Ed.placeholder,_}function kd(s,l,p){var _,C,L,D,N,z,Q=0,tt=!1,et=!1,ot=!0;if(typeof s!="function")throw new sn(a);l=un(l)||0,Xt(p)&&(tt=!!p.leading,et="maxWait"in p,L=et?he(un(p.maxWait)||0,l):L,ot="trailing"in p?!!p.trailing:ot);function ut(ie){var mn=_,$n=C;return _=C=e,Q=ie,D=s.apply($n,mn),D}function ft(ie){return Q=ie,N=Xr(Et,l),tt?ut(ie):D}function wt(ie){var mn=ie-z,$n=ie-Q,jd=l-mn;return et?xe(jd,L-$n):jd}function dt(ie){var mn=ie-z,$n=ie-Q;return z===e||mn>=l||mn<0||et&&$n>=L}function Et(){var ie=So();if(dt(ie))return Lt(ie);N=Xr(Et,wt(ie))}function Lt(ie){return N=e,ot&&_?ut(ie):(_=C=e,D)}function Ke(){N!==e&&Df(N),Q=0,_=z=C=N=e}function Le(){return N===e?D:Lt(So())}function Xe(){var ie=So(),mn=dt(ie);if(_=arguments,C=this,z=ie,mn){if(N===e)return ft(z);if(et)return Df(N),N=Xr(Et,l),ut(z)}return N===e&&(N=Xr(Et,l)),D}return Xe.cancel=Ke,Xe.flush=Le,Xe}var Hx=St(function(s,l){return pf(s,1,l)}),Wx=St(function(s,l,p){return pf(s,un(l)||0,p)});function qx(s){return qn(s,$)}function Eo(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new sn(a);var p=function(){var _=arguments,C=l?l.apply(this,_):_[0],L=p.cache;if(L.has(C))return L.get(C);var D=s.apply(this,_);return p.cache=L.set(C,D)||L,D};return p.cache=new(Eo.Cache||Hn),p}Eo.Cache=Hn;function ko(s){if(typeof s!="function")throw new sn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function zx(s){return xd(2,s)}var Ux=Ob(function(s,l){l=l.length==1&&vt(l[0])?Yt(l[0],$e(ht())):Yt(ve(l,1),$e(ht()));var p=l.length;return St(function(_){for(var C=-1,L=xe(_.length,p);++C<L;)_[C]=l[C].call(this,_[C]);return Ve(s,this,_)})}),rc=St(function(s,l){var p=hi(l,pr(rc));return qn(s,E,e,l,p)}),Cd=St(function(s,l){var p=hi(l,pr(Cd));return qn(s,P,e,l,p)}),jx=zn(function(s,l){return qn(s,F,e,e,e,l)});function Vx(s,l){if(typeof s!="function")throw new sn(a);return l=l===e?l:bt(l),St(s,l)}function $x(s,l){if(typeof s!="function")throw new sn(a);return l=l==null?0:he(bt(l),0),St(function(p){var _=p[l],C=mi(p,0,l);return _&&ui(C,_),Ve(s,this,C)})}function Yx(s,l,p){var _=!0,C=!0;if(typeof s!="function")throw new sn(a);return Xt(p)&&(_="leading"in p?!!p.leading:_,C="trailing"in p?!!p.trailing:C),kd(s,l,{leading:_,maxWait:l,trailing:C})}function Gx(s){return bd(s,1)}function Kx(s,l){return rc(zl(l),s)}function Xx(){if(!arguments.length)return[];var s=arguments[0];return vt(s)?s:[s]}function Jx(s){return an(s,g)}function Zx(s,l){return l=typeof l=="function"?l:e,an(s,g,l)}function Qx(s){return an(s,v|g)}function t2(s,l){return l=typeof l=="function"?l:e,an(s,v|g,l)}function e2(s,l){return l==null||df(s,l,pe(l))}function gn(s,l){return s===l||s!==s&&l!==l}var n2=vo(Ll),i2=vo(function(s,l){return s>=l}),Wi=yf(function(){return arguments}())?yf:function(s){return Qt(s)&&Dt.call(s,"callee")&&!sf.call(s,"callee")},vt=V.isArray,r2=Hh?$e(Hh):fb;function Ie(s){return s!=null&&Co(s.length)&&!jn(s)}function ne(s){return Qt(s)&&Ie(s)}function s2(s){return s===!0||s===!1||Qt(s)&&Me(s)==Pe}var vi=yy||gc,o2=Wh?$e(Wh):db;function a2(s){return Qt(s)&&s.nodeType===1&&!Jr(s)}function l2(s){if(s==null)return!0;if(Ie(s)&&(vt(s)||typeof s=="string"||typeof s.splice=="function"||vi(s)||gr(s)||Wi(s)))return!s.length;var l=we(s);if(l==Ue||l==je)return!s.size;if(Kr(s))return!Tl(s).length;for(var p in s)if(Dt.call(s,p))return!1;return!0}function c2(s,l){return $r(s,l)}function u2(s,l,p){p=typeof p=="function"?p:e;var _=p?p(s,l):e;return _===e?$r(s,l,e,p):!!_}function sc(s){if(!Qt(s))return!1;var l=Me(s);return l==oe||l==ce||typeof s.message=="string"&&typeof s.name=="string"&&!Jr(s)}function h2(s){return typeof s=="number"&&af(s)}function jn(s){if(!Xt(s))return!1;var l=Me(s);return l==Re||l==Sn||l==en||l==il}function Ad(s){return typeof s=="number"&&s==bt(s)}function Co(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=X}function Xt(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function Qt(s){return s!=null&&typeof s=="object"}var Md=qh?$e(qh):gb;function f2(s,l){return s===l||Rl(s,l,Kl(l))}function d2(s,l,p){return p=typeof p=="function"?p:e,Rl(s,l,Kl(l),p)}function p2(s){return Od(s)&&s!=+s}function g2(s){if(Zb(s))throw new mt(o);return bf(s)}function m2(s){return s===null}function v2(s){return s==null}function Od(s){return typeof s=="number"||Qt(s)&&Me(s)==ai}function Jr(s){if(!Qt(s)||Me(s)!=Ce)return!1;var l=Zs(s);if(l===null)return!0;var p=Dt.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&Gs.call(p)==dy}var oc=zh?$e(zh):mb;function _2(s){return Ad(s)&&s>=-9007199254740991&&s<=X}var Ld=Uh?$e(Uh):vb;function Ao(s){return typeof s=="string"||!vt(s)&&Qt(s)&&Me(s)==Oi}function Ge(s){return typeof s=="symbol"||Qt(s)&&Me(s)==Li}var gr=jh?$e(jh):_b;function y2(s){return s===e}function b2(s){return Qt(s)&&we(s)==be}function x2(s){return Qt(s)&&Me(s)==Dr}var w2=vo(Il),S2=vo(function(s,l){return s<=l});function Pd(s){if(!s)return[];if(Ie(s))return Ao(s)?dn(s):Te(s);if(Nr&&s[Nr])return ey(s[Nr]());var l=we(s),p=l==Ue?xl:l==je?Vs:mr;return p(s)}function Vn(s){if(!s)return s===0?s:0;if(s=un(s),s===G||s===-1/0){var l=s<0?-1:1;return l*rt}return s===s?s:0}function bt(s){var l=Vn(s),p=l%1;return l===l?p?l-p:l:0}function Rd(s){return s?Bi(bt(s),0,ct):0}function un(s){if(typeof s=="number")return s;if(Ge(s))return st;if(Xt(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=Xt(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=Xh(s);var p=r_.test(s);return p||o_.test(s)?N_(s.slice(2),p?2:8):i_.test(s)?st:+s}function Td(s){return kn(s,De(s))}function E2(s){return s?Bi(bt(s),-9007199254740991,X):s===0?s:0}function It(s){return s==null?"":Ye(s)}var k2=fr(function(s,l){if(Kr(l)||Ie(l)){kn(l,pe(l),s);return}for(var p in l)Dt.call(l,p)&&Ur(s,p,l[p])}),Id=fr(function(s,l){kn(l,De(l),s)}),Mo=fr(function(s,l,p,_){kn(l,De(l),s,_)}),C2=fr(function(s,l,p,_){kn(l,pe(l),s,_)}),A2=zn(Al);function M2(s,l){var p=hr(s);return l==null?p:ff(p,l)}var O2=St(function(s,l){s=Nt(s);var p=-1,_=l.length,C=_>2?l[2]:e;for(C&&Oe(l[0],l[1],C)&&(_=1);++p<_;)for(var L=l[p],D=De(L),N=-1,z=D.length;++N<z;){var Q=D[N],tt=s[Q];(tt===e||gn(tt,lr[Q])&&!Dt.call(s,Q))&&(s[Q]=L[Q])}return s}),L2=St(function(s){return s.push(e,Jf),Ve(Dd,e,s)});function P2(s,l){return $h(s,ht(l,3),En)}function R2(s,l){return $h(s,ht(l,3),Ol)}function T2(s,l){return s==null?s:Ml(s,ht(l,3),De)}function I2(s,l){return s==null?s:vf(s,ht(l,3),De)}function D2(s,l){return s&&En(s,ht(l,3))}function B2(s,l){return s&&Ol(s,ht(l,3))}function F2(s){return s==null?[]:lo(s,pe(s))}function N2(s){return s==null?[]:lo(s,De(s))}function ac(s,l,p){var _=s==null?e:Fi(s,l);return _===e?p:_}function H2(s,l){return s!=null&&td(s,l,lb)}function lc(s,l){return s!=null&&td(s,l,cb)}var W2=$f(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=Ks.call(l)),s[l]=p},uc(Be)),q2=$f(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=Ks.call(l)),Dt.call(s,l)?s[l].push(p):s[l]=[p]},ht),z2=St(Vr);function pe(s){return Ie(s)?uf(s):Tl(s)}function De(s){return Ie(s)?uf(s,!0):yb(s)}function U2(s,l){var p={};return l=ht(l,3),En(s,function(_,C,L){Wn(p,l(_,C,L),_)}),p}function j2(s,l){var p={};return l=ht(l,3),En(s,function(_,C,L){Wn(p,C,l(_,C,L))}),p}var V2=fr(function(s,l,p){co(s,l,p)}),Dd=fr(function(s,l,p,_){co(s,l,p,_)}),$2=zn(function(s,l){var p={};if(s==null)return p;var _=!1;l=Yt(l,function(L){return L=gi(L,s),_||(_=L.length>1),L}),kn(s,Yl(s),p),_&&(p=an(p,v|d|g,Wb));for(var C=l.length;C--;)Hl(p,l[C]);return p});function Y2(s,l){return Bd(s,ko(ht(l)))}var G2=zn(function(s,l){return s==null?{}:xb(s,l)});function Bd(s,l){if(s==null)return{};var p=Yt(Yl(s),function(_){return[_]});return l=ht(l),Af(s,p,function(_,C){return l(_,C[0])})}function K2(s,l,p){l=gi(l,s);var _=-1,C=l.length;for(C||(C=1,s=e);++_<C;){var L=s==null?e:s[Cn(l[_])];L===e&&(_=C,L=p),s=jn(L)?L.call(s):L}return s}function X2(s,l,p){return s==null?s:Yr(s,l,p)}function J2(s,l,p,_){return _=typeof _=="function"?_:e,s==null?s:Yr(s,l,p,_)}var Fd=Kf(pe),Nd=Kf(De);function Z2(s,l,p){var _=vt(s),C=_||vi(s)||gr(s);if(l=ht(l,4),p==null){var L=s&&s.constructor;C?p=_?new L:[]:Xt(s)?p=jn(L)?hr(Zs(s)):{}:p={}}return(C?rn:En)(s,function(D,N,z){return l(p,D,N,z)}),p}function Q2(s,l){return s==null?!0:Hl(s,l)}function tw(s,l,p){return s==null?s:Rf(s,l,zl(p))}function ew(s,l,p,_){return _=typeof _=="function"?_:e,s==null?s:Rf(s,l,zl(p),_)}function mr(s){return s==null?[]:bl(s,pe(s))}function nw(s){return s==null?[]:bl(s,De(s))}function iw(s,l,p){return p===e&&(p=l,l=e),p!==e&&(p=un(p),p=p===p?p:0),l!==e&&(l=un(l),l=l===l?l:0),Bi(un(s),l,p)}function rw(s,l,p){return l=Vn(l),p===e?(p=l,l=0):p=Vn(p),s=un(s),ub(s,l,p)}function sw(s,l,p){if(p&&typeof p!="boolean"&&Oe(s,l,p)&&(l=p=e),p===e&&(typeof l=="boolean"?(p=l,l=e):typeof s=="boolean"&&(p=s,s=e)),s===e&&l===e?(s=0,l=1):(s=Vn(s),l===e?(l=s,s=0):l=Vn(l)),s>l){var _=s;s=l,l=_}if(p||s%1||l%1){var C=lf();return xe(s+C*(l-s+F_("1e-"+((C+"").length-1))),l)}return Bl(s,l)}var ow=dr(function(s,l,p){return l=l.toLowerCase(),s+(p?Hd(l):l)});function Hd(s){return cc(It(s).toLowerCase())}function Wd(s){return s=It(s),s&&s.replace(l_,X_).replace(A_,"")}function aw(s,l,p){s=It(s),l=Ye(l);var _=s.length;p=p===e?_:Bi(bt(p),0,_);var C=p;return p-=l.length,p>=0&&s.slice(p,C)==l}function lw(s){return s=It(s),s&&zv.test(s)?s.replace(mh,J_):s}function cw(s){return s=It(s),s&&Gv.test(s)?s.replace(rl,"\\$&"):s}var uw=dr(function(s,l,p){return s+(p?"-":"")+l.toLowerCase()}),hw=dr(function(s,l,p){return s+(p?" ":"")+l.toLowerCase()}),fw=Uf("toLowerCase");function dw(s,l,p){s=It(s),l=bt(l);var _=l?or(s):0;if(!l||_>=l)return s;var C=(l-_)/2;return mo(no(C),p)+s+mo(eo(C),p)}function pw(s,l,p){s=It(s),l=bt(l);var _=l?or(s):0;return l&&_<l?s+mo(l-_,p):s}function gw(s,l,p){s=It(s),l=bt(l);var _=l?or(s):0;return l&&_<l?mo(l-_,p)+s:s}function mw(s,l,p){return p||l==null?l=0:l&&(l=+l),Sy(It(s).replace(sl,""),l||0)}function vw(s,l,p){return(p?Oe(s,l,p):l===e)?l=1:l=bt(l),Fl(It(s),l)}function _w(){var s=arguments,l=It(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var yw=dr(function(s,l,p){return s+(p?"_":"")+l.toLowerCase()});function bw(s,l,p){return p&&typeof p!="number"&&Oe(s,l,p)&&(l=p=e),p=p===e?ct:p>>>0,p?(s=It(s),s&&(typeof l=="string"||l!=null&&!oc(l))&&(l=Ye(l),!l&&sr(s))?mi(dn(s),0,p):s.split(l,p)):[]}var xw=dr(function(s,l,p){return s+(p?" ":"")+cc(l)});function ww(s,l,p){return s=It(s),p=p==null?0:Bi(bt(p),0,s.length),l=Ye(l),s.slice(p,p+l.length)==l}function Sw(s,l,p){var _=O.templateSettings;p&&Oe(s,l,p)&&(l=e),s=It(s),l=Mo({},l,_,Xf);var C=Mo({},l.imports,_.imports,Xf),L=pe(C),D=bl(C,L),N,z,Q=0,tt=l.interpolate||Ws,et="__p += '",ot=wl((l.escape||Ws).source+"|"+tt.source+"|"+(tt===vh?n_:Ws).source+"|"+(l.evaluate||Ws).source+"|$","g"),ut="//# sourceURL="+(Dt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++R_+"]")+`
|
|
32
|
+
`;s.replace(ot,function(dt,Et,Lt,Ke,Le,Xe){return Lt||(Lt=Ke),et+=s.slice(Q,Xe).replace(c_,Z_),Et&&(N=!0,et+=`' +
|
|
33
|
+
__e(`+Et+`) +
|
|
34
|
+
'`),Le&&(z=!0,et+=`';
|
|
35
|
+
`+Le+`;
|
|
36
|
+
__p += '`),Lt&&(et+=`' +
|
|
37
|
+
((__t = (`+Lt+`)) == null ? '' : __t) +
|
|
38
|
+
'`),Q=Xe+dt.length,dt}),et+=`';
|
|
39
|
+
`;var ft=Dt.call(l,"variable")&&l.variable;if(!ft)et=`with (obj) {
|
|
40
|
+
`+et+`
|
|
41
|
+
}
|
|
42
|
+
`;else if(t_.test(ft))throw new mt(c);et=(z?et.replace(Vt,""):et).replace(Ht,"$1").replace($t,"$1;"),et="function("+(ft||"obj")+`) {
|
|
43
|
+
`+(ft?"":`obj || (obj = {});
|
|
44
|
+
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
|
|
45
|
+
function print() { __p += __j.call(arguments, '') }
|
|
46
|
+
`:`;
|
|
47
|
+
`)+et+`return __p
|
|
48
|
+
}`;var wt=zd(function(){return Rt(L,ut+"return "+et).apply(e,D)});if(wt.source=et,sc(wt))throw wt;return wt}function Ew(s){return It(s).toLowerCase()}function kw(s){return It(s).toUpperCase()}function Cw(s,l,p){if(s=It(s),s&&(p||l===e))return Xh(s);if(!s||!(l=Ye(l)))return s;var _=dn(s),C=dn(l),L=Jh(_,C),D=Zh(_,C)+1;return mi(_,L,D).join("")}function Aw(s,l,p){if(s=It(s),s&&(p||l===e))return s.slice(0,tf(s)+1);if(!s||!(l=Ye(l)))return s;var _=dn(s),C=Zh(_,dn(l))+1;return mi(_,0,C).join("")}function Mw(s,l,p){if(s=It(s),s&&(p||l===e))return s.replace(sl,"");if(!s||!(l=Ye(l)))return s;var _=dn(s),C=Jh(_,dn(l));return mi(_,C).join("")}function Ow(s,l){var p=q,_=U;if(Xt(l)){var C="separator"in l?l.separator:C;p="length"in l?bt(l.length):p,_="omission"in l?Ye(l.omission):_}s=It(s);var L=s.length;if(sr(s)){var D=dn(s);L=D.length}if(p>=L)return s;var N=p-or(_);if(N<1)return _;var z=D?mi(D,0,N).join(""):s.slice(0,N);if(C===e)return z+_;if(D&&(N+=z.length-N),oc(C)){if(s.slice(N).search(C)){var Q,tt=z;for(C.global||(C=wl(C.source,It(_h.exec(C))+"g")),C.lastIndex=0;Q=C.exec(tt);)var et=Q.index;z=z.slice(0,et===e?N:et)}}else if(s.indexOf(Ye(C),N)!=N){var ot=z.lastIndexOf(C);ot>-1&&(z=z.slice(0,ot))}return z+_}function Lw(s){return s=It(s),s&&qv.test(s)?s.replace(Tt,sy):s}var Pw=dr(function(s,l,p){return s+(p?" ":"")+l.toUpperCase()}),cc=Uf("toUpperCase");function qd(s,l,p){return s=It(s),l=p?e:l,l===e?ty(s)?ly(s):V_(s):s.match(l)||[]}var zd=St(function(s,l){try{return Ve(s,e,l)}catch(p){return sc(p)?p:new mt(p)}}),Rw=zn(function(s,l){return rn(l,function(p){p=Cn(p),Wn(s,p,ic(s[p],s))}),s});function Tw(s){var l=s==null?0:s.length,p=ht();return s=l?Yt(s,function(_){if(typeof _[1]!="function")throw new sn(a);return[p(_[0]),_[1]]}):[],St(function(_){for(var C=-1;++C<l;){var L=s[C];if(Ve(L[0],this,_))return Ve(L[1],this,_)}})}function Iw(s){return sb(an(s,v))}function uc(s){return function(){return s}}function Dw(s,l){return s==null||s!==s?l:s}var Bw=Vf(),Fw=Vf(!0);function Be(s){return s}function hc(s){return xf(typeof s=="function"?s:an(s,v))}function Nw(s){return Sf(an(s,v))}function Hw(s,l){return Ef(s,an(l,v))}var Ww=St(function(s,l){return function(p){return Vr(p,s,l)}}),qw=St(function(s,l){return function(p){return Vr(s,p,l)}});function fc(s,l,p){var _=pe(l),C=lo(l,_);p==null&&!(Xt(l)&&(C.length||!_.length))&&(p=l,l=s,s=this,C=lo(l,pe(l)));var L=!(Xt(p)&&"chain"in p)||!!p.chain,D=jn(s);return rn(C,function(N){var z=l[N];s[N]=z,D&&(s.prototype[N]=function(){var Q=this.__chain__;if(L||Q){var tt=s(this.__wrapped__),et=tt.__actions__=Te(this.__actions__);return et.push({func:z,args:arguments,thisArg:s}),tt.__chain__=Q,tt}return z.apply(s,ui([this.value()],arguments))})}),s}function zw(){return me._===this&&(me._=py),this}function dc(){}function Uw(s){return s=bt(s),St(function(l){return kf(l,s)})}var jw=jl(Yt),Vw=jl(Vh),$w=jl(gl);function Ud(s){return Jl(s)?ml(Cn(s)):wb(s)}function Yw(s){return function(l){return s==null?e:Fi(s,l)}}var Gw=Yf(),Kw=Yf(!0);function pc(){return[]}function gc(){return!1}function Xw(){return{}}function Jw(){return""}function Zw(){return!0}function Qw(s,l){if(s=bt(s),s<1||s>X)return[];var p=ct,_=xe(s,ct);l=ht(l),s-=ct;for(var C=yl(_,l);++p<s;)l(p);return C}function tS(s){return vt(s)?Yt(s,Cn):Ge(s)?[s]:Te(cd(It(s)))}function eS(s){var l=++fy;return It(s)+l}var nS=go(function(s,l){return s+l},0),iS=Vl("ceil"),rS=go(function(s,l){return s/l},1),sS=Vl("floor");function oS(s){return s&&s.length?ao(s,Be,Ll):e}function aS(s,l){return s&&s.length?ao(s,ht(l,2),Ll):e}function lS(s){return Gh(s,Be)}function cS(s,l){return Gh(s,ht(l,2))}function uS(s){return s&&s.length?ao(s,Be,Il):e}function hS(s,l){return s&&s.length?ao(s,ht(l,2),Il):e}var fS=go(function(s,l){return s*l},1),dS=Vl("round"),pS=go(function(s,l){return s-l},0);function gS(s){return s&&s.length?_l(s,Be):0}function mS(s,l){return s&&s.length?_l(s,ht(l,2)):0}return O.after=Nx,O.ary=bd,O.assign=k2,O.assignIn=Id,O.assignInWith=Mo,O.assignWith=C2,O.at=A2,O.before=xd,O.bind=ic,O.bindAll=Rw,O.bindKey=wd,O.castArray=Xx,O.chain=vd,O.chunk=s1,O.compact=o1,O.concat=a1,O.cond=Tw,O.conforms=Iw,O.constant=uc,O.countBy=gx,O.create=M2,O.curry=Sd,O.curryRight=Ed,O.debounce=kd,O.defaults=O2,O.defaultsDeep=L2,O.defer=Hx,O.delay=Wx,O.difference=l1,O.differenceBy=c1,O.differenceWith=u1,O.drop=h1,O.dropRight=f1,O.dropRightWhile=d1,O.dropWhile=p1,O.fill=g1,O.filter=vx,O.flatMap=bx,O.flatMapDeep=xx,O.flatMapDepth=wx,O.flatten=dd,O.flattenDeep=m1,O.flattenDepth=v1,O.flip=qx,O.flow=Bw,O.flowRight=Fw,O.fromPairs=_1,O.functions=F2,O.functionsIn=N2,O.groupBy=Sx,O.initial=b1,O.intersection=x1,O.intersectionBy=w1,O.intersectionWith=S1,O.invert=W2,O.invertBy=q2,O.invokeMap=kx,O.iteratee=hc,O.keyBy=Cx,O.keys=pe,O.keysIn=De,O.map=wo,O.mapKeys=U2,O.mapValues=j2,O.matches=Nw,O.matchesProperty=Hw,O.memoize=Eo,O.merge=V2,O.mergeWith=Dd,O.method=Ww,O.methodOf=qw,O.mixin=fc,O.negate=ko,O.nthArg=Uw,O.omit=$2,O.omitBy=Y2,O.once=zx,O.orderBy=Ax,O.over=jw,O.overArgs=Ux,O.overEvery=Vw,O.overSome=$w,O.partial=rc,O.partialRight=Cd,O.partition=Mx,O.pick=G2,O.pickBy=Bd,O.property=Ud,O.propertyOf=Yw,O.pull=A1,O.pullAll=gd,O.pullAllBy=M1,O.pullAllWith=O1,O.pullAt=L1,O.range=Gw,O.rangeRight=Kw,O.rearg=jx,O.reject=Px,O.remove=P1,O.rest=Vx,O.reverse=ec,O.sampleSize=Tx,O.set=X2,O.setWith=J2,O.shuffle=Ix,O.slice=R1,O.sortBy=Fx,O.sortedUniq=H1,O.sortedUniqBy=W1,O.split=bw,O.spread=$x,O.tail=q1,O.take=z1,O.takeRight=U1,O.takeRightWhile=j1,O.takeWhile=V1,O.tap=ox,O.throttle=Yx,O.thru=xo,O.toArray=Pd,O.toPairs=Fd,O.toPairsIn=Nd,O.toPath=tS,O.toPlainObject=Td,O.transform=Z2,O.unary=Gx,O.union=$1,O.unionBy=Y1,O.unionWith=G1,O.uniq=K1,O.uniqBy=X1,O.uniqWith=J1,O.unset=Q2,O.unzip=nc,O.unzipWith=md,O.update=tw,O.updateWith=ew,O.values=mr,O.valuesIn=nw,O.without=Z1,O.words=qd,O.wrap=Kx,O.xor=Q1,O.xorBy=tx,O.xorWith=ex,O.zip=nx,O.zipObject=ix,O.zipObjectDeep=rx,O.zipWith=sx,O.entries=Fd,O.entriesIn=Nd,O.extend=Id,O.extendWith=Mo,fc(O,O),O.add=nS,O.attempt=zd,O.camelCase=ow,O.capitalize=Hd,O.ceil=iS,O.clamp=iw,O.clone=Jx,O.cloneDeep=Qx,O.cloneDeepWith=t2,O.cloneWith=Zx,O.conformsTo=e2,O.deburr=Wd,O.defaultTo=Dw,O.divide=rS,O.endsWith=aw,O.eq=gn,O.escape=lw,O.escapeRegExp=cw,O.every=mx,O.find=_x,O.findIndex=hd,O.findKey=P2,O.findLast=yx,O.findLastIndex=fd,O.findLastKey=R2,O.floor=sS,O.forEach=_d,O.forEachRight=yd,O.forIn=T2,O.forInRight=I2,O.forOwn=D2,O.forOwnRight=B2,O.get=ac,O.gt=n2,O.gte=i2,O.has=H2,O.hasIn=lc,O.head=pd,O.identity=Be,O.includes=Ex,O.indexOf=y1,O.inRange=rw,O.invoke=z2,O.isArguments=Wi,O.isArray=vt,O.isArrayBuffer=r2,O.isArrayLike=Ie,O.isArrayLikeObject=ne,O.isBoolean=s2,O.isBuffer=vi,O.isDate=o2,O.isElement=a2,O.isEmpty=l2,O.isEqual=c2,O.isEqualWith=u2,O.isError=sc,O.isFinite=h2,O.isFunction=jn,O.isInteger=Ad,O.isLength=Co,O.isMap=Md,O.isMatch=f2,O.isMatchWith=d2,O.isNaN=p2,O.isNative=g2,O.isNil=v2,O.isNull=m2,O.isNumber=Od,O.isObject=Xt,O.isObjectLike=Qt,O.isPlainObject=Jr,O.isRegExp=oc,O.isSafeInteger=_2,O.isSet=Ld,O.isString=Ao,O.isSymbol=Ge,O.isTypedArray=gr,O.isUndefined=y2,O.isWeakMap=b2,O.isWeakSet=x2,O.join=E1,O.kebabCase=uw,O.last=cn,O.lastIndexOf=k1,O.lowerCase=hw,O.lowerFirst=fw,O.lt=w2,O.lte=S2,O.max=oS,O.maxBy=aS,O.mean=lS,O.meanBy=cS,O.min=uS,O.minBy=hS,O.stubArray=pc,O.stubFalse=gc,O.stubObject=Xw,O.stubString=Jw,O.stubTrue=Zw,O.multiply=fS,O.nth=C1,O.noConflict=zw,O.noop=dc,O.now=So,O.pad=dw,O.padEnd=pw,O.padStart=gw,O.parseInt=mw,O.random=sw,O.reduce=Ox,O.reduceRight=Lx,O.repeat=vw,O.replace=_w,O.result=K2,O.round=dS,O.runInContext=W,O.sample=Rx,O.size=Dx,O.snakeCase=yw,O.some=Bx,O.sortedIndex=T1,O.sortedIndexBy=I1,O.sortedIndexOf=D1,O.sortedLastIndex=B1,O.sortedLastIndexBy=F1,O.sortedLastIndexOf=N1,O.startCase=xw,O.startsWith=ww,O.subtract=pS,O.sum=gS,O.sumBy=mS,O.template=Sw,O.times=Qw,O.toFinite=Vn,O.toInteger=bt,O.toLength=Rd,O.toLower=Ew,O.toNumber=un,O.toSafeInteger=E2,O.toString=It,O.toUpper=kw,O.trim=Cw,O.trimEnd=Aw,O.trimStart=Mw,O.truncate=Ow,O.unescape=Lw,O.uniqueId=eS,O.upperCase=Pw,O.upperFirst=cc,O.each=_d,O.eachRight=yd,O.first=pd,fc(O,function(){var s={};return En(O,function(l,p){Dt.call(O.prototype,p)||(s[p]=l)}),s}(),{chain:!1}),O.VERSION=i,rn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){O[s].placeholder=O}),rn(["drop","take"],function(s,l){At.prototype[s]=function(p){p=p===e?1:he(bt(p),0);var _=this.__filtered__&&!l?new At(this):this.clone();return _.__filtered__?_.__takeCount__=xe(p,_.__takeCount__):_.__views__.push({size:xe(p,ct),type:s+(_.__dir__<0?"Right":"")}),_},At.prototype[s+"Right"]=function(p){return this.reverse()[s](p).reverse()}}),rn(["filter","map","takeWhile"],function(s,l){var p=l+1,_=p==nt||p==B;At.prototype[s]=function(C){var L=this.clone();return L.__iteratees__.push({iteratee:ht(C,3),type:p}),L.__filtered__=L.__filtered__||_,L}}),rn(["head","last"],function(s,l){var p="take"+(l?"Right":"");At.prototype[s]=function(){return this[p](1).value()[0]}}),rn(["initial","tail"],function(s,l){var p="drop"+(l?"":"Right");At.prototype[s]=function(){return this.__filtered__?new At(this):this[p](1)}}),At.prototype.compact=function(){return this.filter(Be)},At.prototype.find=function(s){return this.filter(s).head()},At.prototype.findLast=function(s){return this.reverse().find(s)},At.prototype.invokeMap=St(function(s,l){return typeof s=="function"?new At(this):this.map(function(p){return Vr(p,s,l)})}),At.prototype.reject=function(s){return this.filter(ko(ht(s)))},At.prototype.slice=function(s,l){s=bt(s);var p=this;return p.__filtered__&&(s>0||l<0)?new At(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),l!==e&&(l=bt(l),p=l<0?p.dropRight(-l):p.take(l-s)),p)},At.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},At.prototype.toArray=function(){return this.take(ct)},En(At.prototype,function(s,l){var p=/^(?:filter|find|map|reject)|While$/.test(l),_=/^(?:head|last)$/.test(l),C=O[_?"take"+(l=="last"?"Right":""):l],L=_||/^find/.test(l);C&&(O.prototype[l]=function(){var D=this.__wrapped__,N=_?[1]:arguments,z=D instanceof At,Q=N[0],tt=z||vt(D),et=function(Et){var Lt=C.apply(O,ui([Et],N));return _&&ot?Lt[0]:Lt};tt&&p&&typeof Q=="function"&&Q.length!=1&&(z=tt=!1);var ot=this.__chain__,ut=!!this.__actions__.length,ft=L&&!ot,wt=z&&!ut;if(!L&&tt){D=wt?D:new At(this);var dt=s.apply(D,N);return dt.__actions__.push({func:xo,args:[et],thisArg:e}),new on(dt,ot)}return ft&&wt?s.apply(this,N):(dt=this.thru(et),ft?_?dt.value()[0]:dt.value():dt)})}),rn(["pop","push","shift","sort","splice","unshift"],function(s){var l=$s[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",_=/^(?:pop|shift)$/.test(s);O.prototype[s]=function(){var C=arguments;if(_&&!this.__chain__){var L=this.value();return l.apply(vt(L)?L:[],C)}return this[p](function(D){return l.apply(vt(D)?D:[],C)})}}),En(At.prototype,function(s,l){var p=O[l];if(p){var _=p.name+"";Dt.call(ur,_)||(ur[_]=[]),ur[_].push({name:l,func:p})}}),ur[po(e,k).name]=[{name:"wrapper",func:e}],At.prototype.clone=Ly,At.prototype.reverse=Py,At.prototype.value=Ry,O.prototype.at=ax,O.prototype.chain=lx,O.prototype.commit=cx,O.prototype.next=ux,O.prototype.plant=fx,O.prototype.reverse=dx,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=px,O.prototype.first=O.prototype.head,Nr&&(O.prototype[Nr]=hx),O},ar=cy();Ri?((Ri.exports=ar)._=ar,hl._=ar):me._=ar}).call(nE)}(as,as.exports)),as.exports}var rE=iE();const tn=tr(rE),Ds=n=>function(...t){return n(this)(...t)};var ta={exports:{}},Bp;function sE(){return Bp||(Bp=1,function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),e.BASE=2166136261;function e(i,r=e.BASE){const o=i.length;for(let a=0;a<o;a++)r^=i.charCodeAt(a),r+=(r<<1)+(r<<4)+(r<<7)+(r<<8)+(r<<24);return r>>>0}t.default=e,n.exports=e}(ta,ta.exports)),ta.exports}var oE=sE();const aE=tr(oE),zu=(n,t,e="")=>Object.entries(n).reduce((i,[r,o])=>{const a=`${e}${e?".":""}${r}`;return tn.isObject(o)&&!t.includes(a)?i.concat(zu(o,t,a)):i.concat([[a,o]])},[]),Da=n=>`hsl(${Math.floor(aE(n))/120%360}, 100%, 74%)`,lE=Ds(n=>(t,e,i,{fn:r,inverse:o})=>{const c=(()=>{switch(e){case"eq":return t===i;case"neq":return t!==i;case"lt":return t<i;case"lte":return t<=i;case"gt":return t>i;case"gte":return t>=i;default:return!1}})();return c?r?r(n):o?o(n):c:null}),cE=Ds(()=>(n,t)=>tn.truncate(n,{length:t})),uE=Ds(()=>n=>new Date(n).toLocaleTimeString()),hE=Ds(()=>n=>(n/1e3).toFixed(3)),fE=Ds(()=>n=>Da(n)),dE=Object.freeze(Object.defineProperty({__proto__:null,compare:lE,toColor:fE,toLocaleTime:uE,toSeconds:hE,truncate:cE},Symbol.toStringTag,{value:"Module"})),pE=`
|
|
49
|
+
<div class="segment">
|
|
50
|
+
{{#compare format 'neq' 'short'}}
|
|
51
|
+
<button class="activity">
|
|
52
|
+
{{#if isEnabled}}
|
|
53
|
+
<i class="fas fa-plug"></i>
|
|
54
|
+
{{else}}
|
|
55
|
+
<i class="fas fa-power-off"></i>
|
|
56
|
+
{{/if}}
|
|
57
|
+
</button>
|
|
58
|
+
|
|
59
|
+
<span class="calls-count {{#compare meta.executionsCount 'gt' 0}}active{{/compare}}">
|
|
60
|
+
<i class="fas fa-undo-alt"></i>{{meta.executionsCount}}
|
|
61
|
+
</span>
|
|
62
|
+
{{/compare}}
|
|
63
|
+
|
|
64
|
+
<span class="name"><b style="color: {{toColor group}};">{{group}}</b> {{name}}</span>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
{{#compare format 'neq' 'short'}}
|
|
68
|
+
{{#compare meta.tags.length 'gt' 0}}<span class="arrow"><i class="fas fa-chevron-right"></i></span>{{/compare}}
|
|
69
|
+
|
|
70
|
+
<div class="segment">
|
|
71
|
+
{{#each transports}}<span class="transport">{{this}}</span>{{/each}}
|
|
72
|
+
|
|
73
|
+
{{#each meta.tags}}
|
|
74
|
+
{{#compare @index 'lte' 5}}
|
|
75
|
+
{{#if (compare location 'eq' 'outgoing.status')}}
|
|
76
|
+
<span class="status
|
|
77
|
+
{{#compare value 'lt' 400}}green{{/compare}}
|
|
78
|
+
{{#compare value 'gte' 400}}red{{/compare}}
|
|
79
|
+
"><b>{{value}}</b></span>
|
|
80
|
+
{{else if (compare location 'eq' 'method')}}
|
|
81
|
+
<span class="method" style="color: {{toColor value}};">{{value}}</span>
|
|
82
|
+
{{else}}
|
|
83
|
+
<span class="{{location}}">{{> truncated this length=45}}</span>
|
|
84
|
+
{{/if}}
|
|
85
|
+
{{/compare}}
|
|
86
|
+
{{/each}}
|
|
87
|
+
</div>
|
|
88
|
+
{{/compare}}
|
|
89
|
+
|
|
90
|
+
{{#with schema.forward}}
|
|
91
|
+
<span class="arrow"><i class="fas fa-chevron-right"></i></span>
|
|
92
|
+
|
|
93
|
+
<div class="segment">
|
|
94
|
+
{{#if baseUrl}}<span class="forward">{{> truncated value=baseUrl length=45}}</span>{{/if}}
|
|
95
|
+
{{#if url}}<span class="forward">{{> truncated value=url length=45}}</span>{{/if}}
|
|
96
|
+
|
|
97
|
+
{{#if ../isCached}}<span class="cache"><i class="fas fa-database"></i></span>{{/if}}
|
|
98
|
+
</div>
|
|
99
|
+
{{/with}}
|
|
100
|
+
`,gE=`
|
|
101
|
+
{{#if (compare value.length 'gt' length)}}
|
|
102
|
+
<span class="truncated">
|
|
103
|
+
<span class="full">{{value}}</span>
|
|
104
|
+
<span class="short">{{truncate value length}}</span>
|
|
105
|
+
</span>
|
|
106
|
+
{{else}}
|
|
107
|
+
{{value}}
|
|
108
|
+
{{/if}}
|
|
109
|
+
`,mE=pE,vE=gE,_E=Object.freeze(Object.defineProperty({__proto__:null,expectationMeta:mE,truncated:vE},Symbol.toStringTag,{value:"Module"})),yE={init:()=>{Object.entries(dE).forEach(([n,t])=>ae.registerHelper(n,t)),Object.entries(_E).forEach(([n,t])=>ae.registerPartial(n,t))}};Er.extend(wS);yE.init();const bE=`
|
|
110
|
+
<div class="buttons"></div>
|
|
111
|
+
`;var ea={exports:{}},Fp;function xE(){if(Fp)return ea.exports;Fp=1;var n=typeof Reflect=="object"?Reflect:null,t=n&&typeof n.apply=="function"?n.apply:function(E,P,T){return Function.prototype.apply.call(E,P,T)},e;n&&typeof n.ownKeys=="function"?e=n.ownKeys:Object.getOwnPropertySymbols?e=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:e=function(E){return Object.getOwnPropertyNames(E)};function i(S){console&&console.warn&&console.warn(S)}var r=Number.isNaN||function(E){return E!==E};function o(){o.init.call(this)}ea.exports=o,ea.exports.once=k,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function c(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(S){if(typeof S!="number"||S<0||r(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");a=S}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||r(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function u(S){return S._maxListeners===void 0?o.defaultMaxListeners:S._maxListeners}o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(E){for(var P=[],T=1;T<arguments.length;T++)P.push(arguments[T]);var F=E==="error",$=this._events;if($!==void 0)F=F&&$.error===void 0;else if(!F)return!1;if(F){var q;if(P.length>0&&(q=P[0]),q instanceof Error)throw q;var U=new Error("Unhandled error."+(q?" ("+q.message+")":""));throw U.context=q,U}var Y=$[E];if(Y===void 0)return!1;if(typeof Y=="function")t(Y,this,P);else for(var at=Y.length,nt=m(Y,at),T=0;T<at;++T)t(nt[T],this,P);return!0};function f(S,E,P,T){var F,$,q;if(c(P),$=S._events,$===void 0?($=S._events=Object.create(null),S._eventsCount=0):($.newListener!==void 0&&(S.emit("newListener",E,P.listener?P.listener:P),$=S._events),q=$[E]),q===void 0)q=$[E]=P,++S._eventsCount;else if(typeof q=="function"?q=$[E]=T?[P,q]:[q,P]:T?q.unshift(P):q.push(P),F=u(S),F>0&&q.length>F&&!q.warned){q.warned=!0;var U=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");U.name="MaxListenersExceededWarning",U.emitter=S,U.type=E,U.count=q.length,i(U)}return S}o.prototype.addListener=function(E,P){return f(this,E,P,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(E,P){return f(this,E,P,!0)};function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function v(S,E,P){var T={fired:!1,wrapFn:void 0,target:S,type:E,listener:P},F=h.bind(T);return F.listener=P,T.wrapFn=F,F}o.prototype.once=function(E,P){return c(P),this.on(E,v(this,E,P)),this},o.prototype.prependOnceListener=function(E,P){return c(P),this.prependListener(E,v(this,E,P)),this},o.prototype.removeListener=function(E,P){var T,F,$,q,U;if(c(P),F=this._events,F===void 0)return this;if(T=F[E],T===void 0)return this;if(T===P||T.listener===P)--this._eventsCount===0?this._events=Object.create(null):(delete F[E],F.removeListener&&this.emit("removeListener",E,T.listener||P));else if(typeof T!="function"){for($=-1,q=T.length-1;q>=0;q--)if(T[q]===P||T[q].listener===P){U=T[q].listener,$=q;break}if($<0)return this;$===0?T.shift():y(T,$),T.length===1&&(F[E]=T[0]),F.removeListener!==void 0&&this.emit("removeListener",E,U||P)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(E){var P,T,F;if(T=this._events,T===void 0)return this;if(T.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):T[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete T[E]),this;if(arguments.length===0){var $=Object.keys(T),q;for(F=0;F<$.length;++F)q=$[F],q!=="removeListener"&&this.removeAllListeners(q);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(P=T[E],typeof P=="function")this.removeListener(E,P);else if(P!==void 0)for(F=P.length-1;F>=0;F--)this.removeListener(E,P[F]);return this};function d(S,E,P){var T=S._events;if(T===void 0)return[];var F=T[E];return F===void 0?[]:typeof F=="function"?P?[F.listener||F]:[F]:P?x(F):m(F,F.length)}o.prototype.listeners=function(E){return d(this,E,!0)},o.prototype.rawListeners=function(E){return d(this,E,!1)},o.listenerCount=function(S,E){return typeof S.listenerCount=="function"?S.listenerCount(E):g.call(S,E)},o.prototype.listenerCount=g;function g(S){var E=this._events;if(E!==void 0){var P=E[S];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]};function m(S,E){for(var P=new Array(E),T=0;T<E;++T)P[T]=S[T];return P}function y(S,E){for(;E+1<S.length;E++)S[E]=S[E+1];S.pop()}function x(S){for(var E=new Array(S.length),P=0;P<E.length;++P)E[P]=S[P].listener||S[P];return E}function k(S,E){return new Promise(function(P,T){function F(q){S.removeListener(E,$),T(q)}function $(){typeof S.removeListener=="function"&&S.removeListener("error",F),P([].slice.call(arguments))}I(S,E,$,{once:!0}),E!=="error"&&A(S,F,{once:!0})})}function A(S,E,P){typeof S.on=="function"&&I(S,"error",E,P)}function I(S,E,P,T){if(typeof S.on=="function")T.once?S.once(E,P):S.on(E,P);else if(typeof S.addEventListener=="function")S.addEventListener(E,function F($){T.once&&S.removeEventListener(E,F),P($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof S)}return ea.exports}var s0=xE();const Bs=tr(s0),wE=`
|
|
112
|
+
<div class="panel {{class}} {{#if width}}width-{{width}}{{/if}} {{#if height}}height-{{height}}{{/if}}">
|
|
113
|
+
{{#if title}}
|
|
114
|
+
<p class="title">
|
|
115
|
+
{{#if title.icon}}<i class="{{title.icon}}"></i>{{/if}}
|
|
116
|
+
<span class="title">{{{title.text}}}</span>
|
|
117
|
+
{{#if title.description}}<span class="description">{{{title.description}}}</span>{{/if}}
|
|
118
|
+
</p>
|
|
119
|
+
{{/if}}
|
|
120
|
+
|
|
121
|
+
<div class="content"></div>
|
|
122
|
+
</div>
|
|
123
|
+
`;class te{constructor(t){this.element=document.createElement("div"),t&&(this.element=this.compilePredicateToElement(t))}get isHidden(){return this.element.classList.contains("hidden")}get id(){return this.element.id}assignId(t){return this.element.id=t,this}show(){return this.element.classList.remove("hidden"),this}hide(){return this.element.classList.add("hidden"),this}append(t){return this.element.append(this.compilePredicateToElement(t)),this}prepend(t){return this.element.prepend(this.compilePredicateToElement(t)),this}replace(t){const e=this.compilePredicateToElement(t);return this.element.after(e),this.isHidden&&e.classList.add("hidden"),Object.assign(this.delete(),{element:e})}clear(){return this.element.innerHTML="",this}delete(){return this.element.remove(),this}compilePredicateToElement(t){return t instanceof te?t.element:typeof t=="string"?this.compileHtmlStringToElement(t):t===null?document.createElement("div"):t}compileHtmlStringToElement(t){return new DOMParser().parseFromString(t,"text/html").body.firstElementChild}}class Uu{constructor(t){this.key=t}extract(){return JSON.parse(localStorage.getItem(this.key)??"null")}store(t){return localStorage.setItem(this.key,JSON.stringify(t)),this}clear(){return localStorage.removeItem(this.key),this}static build(t){return new Uu(t)}}const Np=(()=>{const n={password:String,number:Number,text:String};return(t,e)=>{if(t==="checkbox")return e||null;if(t==="file")return null;const i=e.trim();return i.length?(n[t]??String)(i):null}})();class Es extends te{get paths(){return[...this.element.querySelectorAll("*[data-key]")].map(t=>t.getAttribute("data-key")).filter(Boolean)}async extract(){const t={};for(const e of this.element.querySelectorAll("*[data-key]")){const i=e.getAttribute("data-key"),r=e.getAttribute("cast")??e.getAttribute("type")??"text";if(!i||!("value"in e)||typeof e.value!="string")continue;if(r==="file"){const a=[];for(const c of"files"in e?e.files:new FileList)a.push({name:c.name,content:await c.text()});tn.set(t,i,a);continue}if(e.hasAttribute("list")){const a=e.getAttribute("list")??",",c=e.value.split(a).map(u=>Np(r,u)).filter(u=>u!==null);c.length&&tn.set(t,i,c);continue}const o=Np(r,e.value);if(r==="checkbox"&&"checked"in e){e.checked&&tn.set(t,i,o??!0);continue}o!==null&&tn.set(t,i,o)}return t}assign(t){return zu(t,this.paths).map(([e,i])=>[e,i,this.element.querySelector(`*[data-key="${e}"]`)]).forEach(([e,i,r])=>tn.set(r,"value",Array.isArray(i)?i.join(r.getAttribute("list")??","):i??"")),this}static build(t){return new Es(t)}}class ja extends te{constructor(t,e){super(e),this.key=t,this.client=Uu.build(this.key),this.form=Es.build(this.element)}sync(){const t=this.client.extract()??[];return this.form.assign(t.reduce((e,[i,r])=>tn.set(e,i,r),{})),this}save(){return this.client.store(zu(this.form.extract(),this.form.paths)),this}clear(){return this.client.clear(),this}static build(t,e){return new ja(t,e)}}class Ei{constructor(t){if(this.element=t,this.handlers=[],!t)throw new Error("Provided element is not valid");t.addEventListener("click",e=>this.trigger(e))}handle(t){return this.element?(this.handlers.push(async e=>{this.element.classList.add("processed");try{await t(e)}finally{this.element.classList.remove("processed")}}),this):this}async trigger(t=new Event("manual")){for(const e of this.handlers)await e(t)}static build(t){return new Ei(t)}}class Rr extends te{constructor(t){super(t),this.content=new te(this.element.querySelector("div.content")),this.isInitialized=!1,this.controls={main:new te(this.element.querySelector("div.controls div.main")),additional:new te(this.element.querySelector("div.controls div.additional"))},this.storage=ja.build(`config:${this.element.id}`,this.element.querySelector("div.storage")),this.meta={},this.events=new Bs,this.expander=this.element.querySelector("div.controls button#expand"),this.expander&&Ei.build(this.expander).handle(()=>this.controls.additional.isHidden?(this.controls.additional.show(),this.expander.classList.add("toggled")):(this.controls.additional.hide(),this.expander.classList.remove("toggled")))}assignMeta(t){return Object.assign(this,{meta:t})}initialize(){return this.isInitialized=!0,this.storage.sync(),this.emit("initialize",this)}refresh(){return this.emit("refresh",this)}select(){return this.emit("select",this)}on(t,e){return this.events.on(t,e),this}once(t,e){return this.events.once(t,e),this}emit(t,...e){return this.events.emit(t,...e),this}static build(t){return new Rr(t)}}class SE{constructor(){this.storage=ja.build("void",document.body),this.shared={}}share(t){return Object.assign(this,{shared:t})}switchStorage(t){return Object.assign(this,{storage:t})}}const EE=ae.compile(wE);class ei extends te{constructor(t={}){super(EE(t)),this.content=new te(this.element.querySelector("div.content"))}clear(){return this.content.clear(),this}append(t){return this.content.append(t),this}prepend(t){return this.content.prepend(t),this}replace(t){return this.content.replace(t),this}static build(t){return new ei(t)}}class gs extends te{constructor(t){super(`
|
|
124
|
+
<button
|
|
125
|
+
style="${t!=null&&t.colorify?`color: ${Da(t.name)}`:""}"
|
|
126
|
+
class="${t.isEnabled?"checked":""}"
|
|
127
|
+
>${t.name}</button>
|
|
128
|
+
`),this.configuration=t,this.events=new Bs,this.element.addEventListener("click",()=>this.isEnabled?this.disable("click"):this.enable("click"))}get name(){return this.configuration.name}get isEnabled(){return this.element.classList.contains("checked")}enable(t="auto"){return this.isEnabled?this:(this.element.classList.add("checked"),this.emit("enable",this,t))}disable(t="auto"){return this.isEnabled?(this.element.classList.remove("checked"),this.emit("disable",this,t)):this}on(t,e){return this.events.on(t,e),this}once(t,e){return this.events.once(t,e),this}emit(t,...e){return this.events.emit(t,...e),this}static build(t){return new gs(t)}}const Tn=n=>n,kE=(n=0,t=1)=>(e=t)=>n+=e,CE=ae.compile(bE);class ks extends te{constructor(t){super(),this.provided=t,this.buttons={all:gs.build({name:"ALL",isEnabled:!0}),provided:Tn({})},this.events=new Bs,this.panel=new ei({...this.provided,class:"checkbox-area"}).append(CE(this.provided)),this.area=new te(this.panel.element.querySelector("div.buttons")).append(this.buttons.all),this.replace(this.panel),this.buttons.all.on("enable",(e,i)=>i==="click"?this.extract().forEach(r=>r.enable()):null),this.buttons.all.on("disable",(e,i)=>i==="click"?this.extract().forEach(r=>r.disable()):null)}extract(){return Object.values(this.buttons.provided)}provide(...t){return t.forEach(e=>{const i=e instanceof gs?e:gs.build(e);this.buttons.provided[i.name]=i,this.area.append(i),i.on("enable",(r,o)=>{this.extract().every(a=>a.isEnabled)&&this.buttons.all.enable(),o!=="silent"&&this.emit("enable",r)}),i.on("disable",(r,o)=>{this.extract().some(a=>!a.isEnabled)&&this.buttons.all.disable(),o!=="silent"&&this.emit("disable",r)})}),this}clear(){return this.extract().forEach(t=>t.delete()),this.buttons.provided={},this}on(t,e){return this.events.on(t,e),this}once(t,e){return this.events.once(t,e),this}emit(t,...e){return this.events.emit(t,...e),this}static build(t){return new ks(t)}}const AE=`
|
|
129
|
+
<div class="container expectation" id="{{id}}">
|
|
130
|
+
<div class="meta">{{> expectationMeta this}}</div>
|
|
131
|
+
</div>
|
|
132
|
+
`,ME=`
|
|
133
|
+
<div class="viewer container"></div>
|
|
134
|
+
`;function OE(n,t){var e,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(u){return function(f){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,i&&(r=2&h[0]?i.return:h[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,h[1])).done)return r;switch(i=0,r&&(h=[2&h[0],r.value]),h[0]){case 0:case 1:r=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,i=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!((r=r.length>0&&r[r.length-1])||h[0]!==6&&h[0]!==2)){a=0;continue}if(h[0]===3&&(!r||h[1]>r[0]&&h[1]<r[3])){a.label=h[1];break}if(h[0]===6&&a.label<r[1]){a.label=r[1],r=h;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(h);break}r[2]&&a.ops.pop(),a.trys.pop();continue}h=t.call(n,a)}catch(v){h=[6,v],i=0}finally{e=r=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([u,f])}}}function o0(n){return n===null?"null":typeof n}function gu(n){return!!n&&typeof n=="object"}function a0(n){if(n===void 0)return"";if(n===null||typeof n=="object"&&!n.constructor)return"Object";var t=/function ([^(]*)/.exec(n.constructor.toString());return t&&t.length>1?t[1]:""}function l0(n,t,e){return n==="null"||n==="undefined"?n:(n!=="string"&&n!=="stringifiable"||(e=e.replace(/"/g,'\\"')),n==="function"?t.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":e)}function Hp(n){var t="";return gu(n)?(t=a0(n),Array.isArray(n)&&(t+="["+n.length+"]")):t=l0(o0(n),n,n),typeof t=="string"?'"'+t+'"':t}function We(n){return"json-formatter-"+n}function fe(n,t,e){var i=document.createElement(n);return t&&i.classList.add(We(t)),e!==void 0&&(e instanceof Node?i.appendChild(e):i.appendChild(document.createTextNode(String(e)))),i}(function(n){if(typeof window<"u"){var t=document.createElement("style");t.setAttribute("media","screen"),t.innerHTML=n,document.head.appendChild(t)}})(`.json-formatter-row {
|
|
135
|
+
font-family: monospace;
|
|
136
|
+
}
|
|
137
|
+
.json-formatter-row,
|
|
138
|
+
.json-formatter-row a,
|
|
139
|
+
.json-formatter-row a:hover {
|
|
140
|
+
color: black;
|
|
141
|
+
text-decoration: none;
|
|
142
|
+
}
|
|
143
|
+
.json-formatter-row .json-formatter-row {
|
|
144
|
+
margin-left: 1rem;
|
|
145
|
+
}
|
|
146
|
+
.json-formatter-row .json-formatter-children.json-formatter-empty {
|
|
147
|
+
opacity: 0.5;
|
|
148
|
+
margin-left: 1rem;
|
|
149
|
+
}
|
|
150
|
+
.json-formatter-row .json-formatter-children.json-formatter-empty:after {
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {
|
|
154
|
+
content: "No properties";
|
|
155
|
+
}
|
|
156
|
+
.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {
|
|
157
|
+
content: "[]";
|
|
158
|
+
}
|
|
159
|
+
.json-formatter-row .json-formatter-string,
|
|
160
|
+
.json-formatter-row .json-formatter-stringifiable {
|
|
161
|
+
color: green;
|
|
162
|
+
white-space: pre;
|
|
163
|
+
word-wrap: break-word;
|
|
164
|
+
}
|
|
165
|
+
.json-formatter-row .json-formatter-number {
|
|
166
|
+
color: blue;
|
|
167
|
+
}
|
|
168
|
+
.json-formatter-row .json-formatter-boolean {
|
|
169
|
+
color: red;
|
|
170
|
+
}
|
|
171
|
+
.json-formatter-row .json-formatter-null {
|
|
172
|
+
color: #855A00;
|
|
173
|
+
}
|
|
174
|
+
.json-formatter-row .json-formatter-undefined {
|
|
175
|
+
color: #ca0b69;
|
|
176
|
+
}
|
|
177
|
+
.json-formatter-row .json-formatter-function {
|
|
178
|
+
color: #FF20ED;
|
|
179
|
+
}
|
|
180
|
+
.json-formatter-row .json-formatter-date {
|
|
181
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
182
|
+
}
|
|
183
|
+
.json-formatter-row .json-formatter-url {
|
|
184
|
+
text-decoration: underline;
|
|
185
|
+
color: blue;
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
}
|
|
188
|
+
.json-formatter-row .json-formatter-bracket {
|
|
189
|
+
color: blue;
|
|
190
|
+
}
|
|
191
|
+
.json-formatter-row .json-formatter-key {
|
|
192
|
+
color: #00008B;
|
|
193
|
+
padding-right: 0.2rem;
|
|
194
|
+
}
|
|
195
|
+
.json-formatter-row .json-formatter-toggler-link {
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
}
|
|
198
|
+
.json-formatter-row .json-formatter-toggler {
|
|
199
|
+
line-height: 1.2rem;
|
|
200
|
+
font-size: 0.7rem;
|
|
201
|
+
vertical-align: middle;
|
|
202
|
+
opacity: 0.6;
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
padding-right: 0.2rem;
|
|
205
|
+
}
|
|
206
|
+
.json-formatter-row .json-formatter-toggler:after {
|
|
207
|
+
display: inline-block;
|
|
208
|
+
transition: transform 100ms ease-in;
|
|
209
|
+
content: "►";
|
|
210
|
+
}
|
|
211
|
+
.json-formatter-row > a > .json-formatter-preview-text {
|
|
212
|
+
opacity: 0;
|
|
213
|
+
transition: opacity 0.15s ease-in;
|
|
214
|
+
font-style: italic;
|
|
215
|
+
}
|
|
216
|
+
.json-formatter-row:hover > a > .json-formatter-preview-text {
|
|
217
|
+
opacity: 0.6;
|
|
218
|
+
}
|
|
219
|
+
.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {
|
|
220
|
+
transform: rotate(90deg);
|
|
221
|
+
}
|
|
222
|
+
.json-formatter-row.json-formatter-open > .json-formatter-children:after {
|
|
223
|
+
display: inline-block;
|
|
224
|
+
}
|
|
225
|
+
.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {
|
|
226
|
+
display: none;
|
|
227
|
+
}
|
|
228
|
+
.json-formatter-row.json-formatter-open.json-formatter-empty:after {
|
|
229
|
+
display: block;
|
|
230
|
+
}
|
|
231
|
+
.json-formatter-dark.json-formatter-row {
|
|
232
|
+
font-family: monospace;
|
|
233
|
+
}
|
|
234
|
+
.json-formatter-dark.json-formatter-row,
|
|
235
|
+
.json-formatter-dark.json-formatter-row a,
|
|
236
|
+
.json-formatter-dark.json-formatter-row a:hover {
|
|
237
|
+
color: white;
|
|
238
|
+
text-decoration: none;
|
|
239
|
+
}
|
|
240
|
+
.json-formatter-dark.json-formatter-row .json-formatter-row {
|
|
241
|
+
margin-left: 1rem;
|
|
242
|
+
}
|
|
243
|
+
.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {
|
|
244
|
+
opacity: 0.5;
|
|
245
|
+
margin-left: 1rem;
|
|
246
|
+
}
|
|
247
|
+
.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {
|
|
248
|
+
display: none;
|
|
249
|
+
}
|
|
250
|
+
.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {
|
|
251
|
+
content: "No properties";
|
|
252
|
+
}
|
|
253
|
+
.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {
|
|
254
|
+
content: "[]";
|
|
255
|
+
}
|
|
256
|
+
.json-formatter-dark.json-formatter-row .json-formatter-string,
|
|
257
|
+
.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {
|
|
258
|
+
color: #31F031;
|
|
259
|
+
white-space: pre;
|
|
260
|
+
word-wrap: break-word;
|
|
261
|
+
}
|
|
262
|
+
.json-formatter-dark.json-formatter-row .json-formatter-number {
|
|
263
|
+
color: #66C2FF;
|
|
264
|
+
}
|
|
265
|
+
.json-formatter-dark.json-formatter-row .json-formatter-boolean {
|
|
266
|
+
color: #EC4242;
|
|
267
|
+
}
|
|
268
|
+
.json-formatter-dark.json-formatter-row .json-formatter-null {
|
|
269
|
+
color: #EEC97D;
|
|
270
|
+
}
|
|
271
|
+
.json-formatter-dark.json-formatter-row .json-formatter-undefined {
|
|
272
|
+
color: #ef8fbe;
|
|
273
|
+
}
|
|
274
|
+
.json-formatter-dark.json-formatter-row .json-formatter-function {
|
|
275
|
+
color: #FD48CB;
|
|
276
|
+
}
|
|
277
|
+
.json-formatter-dark.json-formatter-row .json-formatter-date {
|
|
278
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
279
|
+
}
|
|
280
|
+
.json-formatter-dark.json-formatter-row .json-formatter-url {
|
|
281
|
+
text-decoration: underline;
|
|
282
|
+
color: #027BFF;
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
}
|
|
285
|
+
.json-formatter-dark.json-formatter-row .json-formatter-bracket {
|
|
286
|
+
color: #9494FF;
|
|
287
|
+
}
|
|
288
|
+
.json-formatter-dark.json-formatter-row .json-formatter-key {
|
|
289
|
+
color: #23A0DB;
|
|
290
|
+
padding-right: 0.2rem;
|
|
291
|
+
}
|
|
292
|
+
.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {
|
|
293
|
+
cursor: pointer;
|
|
294
|
+
}
|
|
295
|
+
.json-formatter-dark.json-formatter-row .json-formatter-toggler {
|
|
296
|
+
line-height: 1.2rem;
|
|
297
|
+
font-size: 0.7rem;
|
|
298
|
+
vertical-align: middle;
|
|
299
|
+
opacity: 0.6;
|
|
300
|
+
cursor: pointer;
|
|
301
|
+
padding-right: 0.2rem;
|
|
302
|
+
}
|
|
303
|
+
.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {
|
|
304
|
+
display: inline-block;
|
|
305
|
+
transition: transform 100ms ease-in;
|
|
306
|
+
content: "►";
|
|
307
|
+
}
|
|
308
|
+
.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {
|
|
309
|
+
opacity: 0;
|
|
310
|
+
transition: opacity 0.15s ease-in;
|
|
311
|
+
font-style: italic;
|
|
312
|
+
}
|
|
313
|
+
.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {
|
|
314
|
+
opacity: 0.6;
|
|
315
|
+
}
|
|
316
|
+
.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {
|
|
317
|
+
transform: rotate(90deg);
|
|
318
|
+
}
|
|
319
|
+
.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {
|
|
320
|
+
display: inline-block;
|
|
321
|
+
}
|
|
322
|
+
.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {
|
|
323
|
+
display: none;
|
|
324
|
+
}
|
|
325
|
+
.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {
|
|
326
|
+
display: block;
|
|
327
|
+
}
|
|
328
|
+
`);var LE=/(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/,PE=/\d{2}:\d{2}:\d{2} GMT-\d{4}/,RE=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,na=window.requestAnimationFrame||function(n){return n(),0},br={hoverPreviewEnabled:!1,hoverPreviewArrayCount:10,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null,maxArrayItems:100,exposePath:!1,afterCopyHandler:function(){}},TE=function(){function n(t,e,i,r,o,a,c,u){e===void 0&&(e=1),i===void 0&&(i=br),a===void 0&&(a=[]),u===void 0&&(u=1),this.json=t,this.open=e,this.config=i,this.key=r,this.displayKey=o,this.path=a,this.arrayRange=c,this.level=u,this._isOpen=null,this.config.hoverPreviewEnabled===void 0&&(this.config.hoverPreviewEnabled=br.hoverPreviewEnabled),this.config.hoverPreviewArrayCount===void 0&&(this.config.hoverPreviewArrayCount=br.hoverPreviewArrayCount),this.config.hoverPreviewFieldCount===void 0&&(this.config.hoverPreviewFieldCount=br.hoverPreviewFieldCount),this.config.useToJSON===void 0&&(this.config.useToJSON=br.useToJSON),this.config.maxArrayItems===void 0&&(this.config.maxArrayItems=br.maxArrayItems),this.key===""&&(this.key='""'),this.displayKey===void 0&&(this.displayKey=this.key)}return Object.defineProperty(n.prototype,"isOpen",{get:function(){return this._isOpen!==null?this._isOpen:this.open>0},set:function(t){this._isOpen=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isDate",{get:function(){return this.json instanceof Date||this.type==="string"&&(LE.test(this.json)||RE.test(this.json)||PE.test(this.json))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isUrl",{get:function(){return this.type==="string"&&this.json.indexOf("http")===0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isArray",{get:function(){return Array.isArray(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isLargeArray",{get:function(){return this.isArray&&this.json.length>this.config.maxArrayItems},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isArrayRange",{get:function(){return this.isArray&&this.arrayRange!==void 0&&this.arrayRange.length==2},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isObject",{get:function(){return gu(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEmptyObject",{get:function(){return!this.keys.length&&!this.isArray},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEmpty",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"useToJSON",{get:function(){return this.config.useToJSON&&this.type==="stringifiable"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasKey",{get:function(){return this.key!==void 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"constructorName",{get:function(){return a0(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":o0(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"keys",{get:function(){if(this.isObject){var t=Object.keys(this.json);if(this.isLargeArray){var e=Math.ceil(this.json.length/this.config.maxArrayItems);t=[];for(var i=0;i<e;i++){var r=i*this.config.maxArrayItems,o=Math.min(this.json.length-1,r+(this.config.maxArrayItems-1));t.push(r+" … "+o)}}return!this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return[]},enumerable:!1,configurable:!0}),n.prototype.toggleOpen=function(t){var e,i;if(!((i=(e=t.target)===null||e===void 0?void 0:e.classList)===null||i===void 0)&&i.contains("json-formatter-copy"))return null;this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(We("open")))},n.prototype.onCopy=function(t){var e,i,r,o,a,c;return r=this,o=void 0,c=function(){return OE(this,function(u){switch(u.label){case 0:return[4,navigator.clipboard.writeText(gu(this.json)?JSON.stringify(this.json):this.json)];case 1:return u.sent(),(i=(e=this.config).afterCopyHandler)===null||i===void 0||i.call(e),[2]}})},new((a=void 0)||(a=Promise))(function(u,f){function h(g){try{d(c.next(g))}catch(m){f(m)}}function v(g){try{d(c.throw(g))}catch(m){f(m)}}function d(g){g.done?u(g.value):new a(function(m){m(g.value)}).then(h,v)}d((c=c.apply(r,o||[])).next())})},n.prototype.openAtDepth=function(t){t===void 0&&(t=1),t<0||(this.open=t,this.isOpen=t!==0,this.element&&(this.removeChildren(!1),t===0?this.element.classList.remove(We("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(We("open")))))},n.prototype.getInlinepreview=function(){var t=this;if(this.isArray){var e=this.json.slice(0,this.config.hoverPreviewArrayCount).map(Hp);return e.length<this.json.length&&e.push("..."),"["+e.join(", ")+"]"}var i=this.keys,r=i.slice(0,this.config.hoverPreviewFieldCount).map(function(a){var c=(a+": "+Hp(t.json[a])).replace(/\n/g,"");return c.length>35?c.substring(0,32)+"...":c}),o=i.length>=this.config.hoverPreviewFieldCount?", …":"";return"{ "+r.join(", ")+o+" }"},n.prototype.render=function(){this.element=fe("div","row");var t=this.isObject?fe("a","toggler-link"):fe("span");if(this.isArrayRange?t.appendChild(fe("span","range","["+this.displayKey+"]")):this.hasKey&&(t.appendChild(fe("span","key",this.displayKey+":")).classList.add("level-"+this.level),this.config.exposePath&&(this.element.dataset.path=JSON.stringify(this.path))),this.isObject&&!this.useToJSON&&t.appendChild(fe("span","toggler")),this.isObject&&!this.useToJSON){var e=fe("span","value"),i=fe("span");if(!this.isArrayRange){var r=fe("span","constructor-name",this.constructorName);i.appendChild(r)}if(this.isArray&&!this.isArrayRange){var o=fe("span");o.appendChild(fe("span","bracket","[")),o.appendChild(fe("span","number",this.json.length)),o.appendChild(fe("span","bracket","]")),i.appendChild(o)}var a=fe("span","preview",this.getInlinepreview());i.appendChild(a),e.appendChild(i),t.appendChild(e)}else{(e=this.isUrl?fe("a"):fe("span")).classList.add(We(this.type)),this.isDate&&e.classList.add(We("date")),this.isUrl&&(e.classList.add(We("url")),e.setAttribute("href",this.json));var c=l0(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(c)),t.appendChild(e)}if(this.isObject&&this.config.hoverPreviewEnabled){var u=fe("span","preview-text");u.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(u)}var f=fe("div","children");this.isObject&&f.classList.add(We("object")),this.isArray&&f.classList.add(We("array")),this.isEmpty&&f.classList.add(We("empty")),this.config&&this.config.theme&&this.element.classList.add(We(this.config.theme)),this.isOpen&&this.element.classList.add(We("open"));var h=fe("button","copy");return h.classList.add("fas"),h.classList.add("fa-clone"),h.addEventListener("click",this.onCopy.bind(this)),t.prepend(h),this.element.appendChild(t),this.element.appendChild(f),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&t.addEventListener("click",this.toggleOpen.bind(this)),this.element},n.prototype.appendChildren=function(t){var e=this;t===void 0&&(t=!1);var i=this.element.querySelector("div."+We("children"));if(i&&!this.isEmpty){var r=function(c,u){var f=e.isLargeArray?[u*e.config.maxArrayItems,Math.min(e.json.length-1,u*e.config.maxArrayItems+(e.config.maxArrayItems-1))]:void 0,h=e.isArrayRange?(e.arrayRange[0]+u).toString():c,v=new n(f?e.json.slice(f[0],f[1]+1):e.json[c],e.open-1,e.config,c,h,f?e.path:e.path.concat(h),f,e.level+1);i.appendChild(v.render())};if(t){var o=0,a=function(){var c=e.keys[o];r(c,o),(o+=1)<e.keys.length&&(o>10?a():na(a))};na(a)}else this.keys.forEach(function(c,u){return r(c,u)})}},n.prototype.removeChildren=function(t){t===void 0&&(t=!1);var e=this.element.querySelector("div."+We("children"));if(t){var i=0,r=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(i+=1)>10?r():na(r))};na(r)}else e&&(e.innerHTML="")},n}(),ia={exports:{}},Sc,Wp;function c0(){return Wp||(Wp=1,Sc=function(t,e){return function(){for(var r=new Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];return t.apply(e,r)}}),Sc}var Ec,qp;function _e(){if(qp)return Ec;qp=1;var n=c0(),t=Object.prototype.toString,e=function(B){return function(G){var X=t.call(G);return B[X]||(B[X]=X.slice(8,-1).toLowerCase())}}(Object.create(null));function i(B){return B=B.toLowerCase(),function(X){return e(X)===B}}function r(B){return Array.isArray(B)}function o(B){return typeof B>"u"}function a(B){return B!==null&&!o(B)&&B.constructor!==null&&!o(B.constructor)&&typeof B.constructor.isBuffer=="function"&&B.constructor.isBuffer(B)}var c=i("ArrayBuffer");function u(B){var G;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?G=ArrayBuffer.isView(B):G=B&&B.buffer&&c(B.buffer),G}function f(B){return typeof B=="string"}function h(B){return typeof B=="number"}function v(B){return B!==null&&typeof B=="object"}function d(B){if(e(B)!=="object")return!1;var G=Object.getPrototypeOf(B);return G===null||G===Object.prototype}var g=i("Date"),m=i("File"),y=i("Blob"),x=i("FileList");function k(B){return t.call(B)==="[object Function]"}function A(B){return v(B)&&k(B.pipe)}function I(B){var G="[object FormData]";return B&&(typeof FormData=="function"&&B instanceof FormData||t.call(B)===G||k(B.toString)&&B.toString()===G)}var S=i("URLSearchParams");function E(B){return B.trim?B.trim():B.replace(/^\s+|\s+$/g,"")}function P(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function T(B,G){if(!(B===null||typeof B>"u"))if(typeof B!="object"&&(B=[B]),r(B))for(var X=0,rt=B.length;X<rt;X++)G.call(null,B[X],X,B);else for(var st in B)Object.prototype.hasOwnProperty.call(B,st)&&G.call(null,B[st],st,B)}function F(){var B={};function G(st,ct){d(B[ct])&&d(st)?B[ct]=F(B[ct],st):d(st)?B[ct]=F({},st):r(st)?B[ct]=st.slice():B[ct]=st}for(var X=0,rt=arguments.length;X<rt;X++)T(arguments[X],G);return B}function $(B,G,X){return T(G,function(st,ct){X&&typeof st=="function"?B[ct]=n(st,X):B[ct]=st}),B}function q(B){return B.charCodeAt(0)===65279&&(B=B.slice(1)),B}function U(B,G,X,rt){B.prototype=Object.create(G.prototype,rt),B.prototype.constructor=B,X&&Object.assign(B.prototype,X)}function Y(B,G,X){var rt,st,ct,Ot={};G=G||{};do{for(rt=Object.getOwnPropertyNames(B),st=rt.length;st-- >0;)ct=rt[st],Ot[ct]||(G[ct]=B[ct],Ot[ct]=!0);B=Object.getPrototypeOf(B)}while(B&&(!X||X(B,G))&&B!==Object.prototype);return G}function at(B,G,X){B=String(B),(X===void 0||X>B.length)&&(X=B.length),X-=G.length;var rt=B.indexOf(G,X);return rt!==-1&&rt===X}function nt(B){if(!B)return null;var G=B.length;if(o(G))return null;for(var X=new Array(G);G-- >0;)X[G]=B[G];return X}var Z=function(B){return function(G){return B&&G instanceof B}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return Ec={isArray:r,isArrayBuffer:c,isBuffer:a,isFormData:I,isArrayBufferView:u,isString:f,isNumber:h,isObject:v,isPlainObject:d,isUndefined:o,isDate:g,isFile:m,isBlob:y,isFunction:k,isStream:A,isURLSearchParams:S,isStandardBrowserEnv:P,forEach:T,merge:F,extend:$,trim:E,stripBOM:q,inherits:U,toFlatObject:Y,kindOf:e,kindOfTest:i,endsWith:at,toArray:nt,isTypedArray:Z,isFileList:x},Ec}var kc,zp;function u0(){if(zp)return kc;zp=1;var n=_e();function t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return kc=function(i,r,o){if(!r)return i;var a;if(o)a=o(r);else if(n.isURLSearchParams(r))a=r.toString();else{var c=[];n.forEach(r,function(h,v){h===null||typeof h>"u"||(n.isArray(h)?v=v+"[]":h=[h],n.forEach(h,function(g){n.isDate(g)?g=g.toISOString():n.isObject(g)&&(g=JSON.stringify(g)),c.push(t(v)+"="+t(g))}))}),a=c.join("&")}if(a){var u=i.indexOf("#");u!==-1&&(i=i.slice(0,u)),i+=(i.indexOf("?")===-1?"?":"&")+a}return i},kc}var Cc,Up;function IE(){if(Up)return Cc;Up=1;var n=_e();function t(){this.handlers=[]}return t.prototype.use=function(i,r,o){return this.handlers.push({fulfilled:i,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(i){this.handlers[i]&&(this.handlers[i]=null)},t.prototype.forEach=function(i){n.forEach(this.handlers,function(o){o!==null&&i(o)})},Cc=t,Cc}function DE(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var h0={exports:{}},se=h0.exports={},Ln,Pn;function mu(){throw new Error("setTimeout has not been defined")}function vu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ln=setTimeout:Ln=mu}catch{Ln=mu}try{typeof clearTimeout=="function"?Pn=clearTimeout:Pn=vu}catch{Pn=vu}})();function f0(n){if(Ln===setTimeout)return setTimeout(n,0);if((Ln===mu||!Ln)&&setTimeout)return Ln=setTimeout,setTimeout(n,0);try{return Ln(n,0)}catch{try{return Ln.call(null,n,0)}catch{return Ln.call(this,n,0)}}}function BE(n){if(Pn===clearTimeout)return clearTimeout(n);if((Pn===vu||!Pn)&&clearTimeout)return Pn=clearTimeout,clearTimeout(n);try{return Pn(n)}catch{try{return Pn.call(null,n)}catch{return Pn.call(this,n)}}}var ni=[],Ar=!1,Gi,wa=-1;function FE(){!Ar||!Gi||(Ar=!1,Gi.length?ni=Gi.concat(ni):wa=-1,ni.length&&d0())}function d0(){if(!Ar){var n=f0(FE);Ar=!0;for(var t=ni.length;t;){for(Gi=ni,ni=[];++wa<t;)Gi&&Gi[wa].run();wa=-1,t=ni.length}Gi=null,Ar=!1,BE(n)}}se.nextTick=function(n){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];ni.push(new p0(n,t)),ni.length===1&&!Ar&&f0(d0)};function p0(n,t){this.fun=n,this.array=t}p0.prototype.run=function(){this.fun.apply(null,this.array)};se.title="browser";se.browser=!0;se.env={};se.argv=[];se.version="";se.versions={};function oi(){}se.on=oi;se.addListener=oi;se.once=oi;se.off=oi;se.removeListener=oi;se.removeAllListeners=oi;se.emit=oi;se.prependListener=oi;se.prependOnceListener=oi;se.listeners=function(n){return[]};se.binding=function(n){throw new Error("process.binding is not supported")};se.cwd=function(){return"/"};se.chdir=function(n){throw new Error("process.chdir is not supported")};se.umask=function(){return 0};var NE=h0.exports;const jp=DE(NE);var Ac,Vp;function HE(){if(Vp)return Ac;Vp=1;var n=_e();return Ac=function(e,i){n.forEach(e,function(o,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(e[i]=o,delete e[a])})},Ac}var Mc,$p;function Tr(){if($p)return Mc;$p=1;var n=_e();function t(r,o,a,c,u){Error.call(this),this.message=r,this.name="AxiosError",o&&(this.code=o),a&&(this.config=a),c&&(this.request=c),u&&(this.response=u)}n.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var e=t.prototype,i={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(r){i[r]={value:r}}),Object.defineProperties(t,i),Object.defineProperty(e,"isAxiosError",{value:!0}),t.from=function(r,o,a,c,u,f){var h=Object.create(e);return n.toFlatObject(r,h,function(d){return d!==Error.prototype}),t.call(h,r.message,o,a,c,u),h.name=r.name,f&&Object.assign(h,f),h},Mc=t,Mc}var Oc,Yp;function g0(){return Yp||(Yp=1,Oc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),Oc}var m0={},Va={};Va.byteLength=zE;Va.toByteArray=jE;Va.fromByteArray=YE;var Rn=[],fn=[],WE=typeof Uint8Array<"u"?Uint8Array:Array,Lc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var xr=0,qE=Lc.length;xr<qE;++xr)Rn[xr]=Lc[xr],fn[Lc.charCodeAt(xr)]=xr;fn[45]=62;fn[95]=63;function v0(n){var t=n.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=n.indexOf("=");e===-1&&(e=t);var i=e===t?0:4-e%4;return[e,i]}function zE(n){var t=v0(n),e=t[0],i=t[1];return(e+i)*3/4-i}function UE(n,t,e){return(t+e)*3/4-e}function jE(n){var t,e=v0(n),i=e[0],r=e[1],o=new WE(UE(n,i,r)),a=0,c=r>0?i-4:i,u;for(u=0;u<c;u+=4)t=fn[n.charCodeAt(u)]<<18|fn[n.charCodeAt(u+1)]<<12|fn[n.charCodeAt(u+2)]<<6|fn[n.charCodeAt(u+3)],o[a++]=t>>16&255,o[a++]=t>>8&255,o[a++]=t&255;return r===2&&(t=fn[n.charCodeAt(u)]<<2|fn[n.charCodeAt(u+1)]>>4,o[a++]=t&255),r===1&&(t=fn[n.charCodeAt(u)]<<10|fn[n.charCodeAt(u+1)]<<4|fn[n.charCodeAt(u+2)]>>2,o[a++]=t>>8&255,o[a++]=t&255),o}function VE(n){return Rn[n>>18&63]+Rn[n>>12&63]+Rn[n>>6&63]+Rn[n&63]}function $E(n,t,e){for(var i,r=[],o=t;o<e;o+=3)i=(n[o]<<16&16711680)+(n[o+1]<<8&65280)+(n[o+2]&255),r.push(VE(i));return r.join("")}function YE(n){for(var t,e=n.length,i=e%3,r=[],o=16383,a=0,c=e-i;a<c;a+=o)r.push($E(n,a,a+o>c?c:a+o));return i===1?(t=n[e-1],r.push(Rn[t>>2]+Rn[t<<4&63]+"==")):i===2&&(t=(n[e-2]<<8)+n[e-1],r.push(Rn[t>>10]+Rn[t>>4&63]+Rn[t<<2&63]+"=")),r.join("")}var ju={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ju.read=function(n,t,e,i,r){var o,a,c=r*8-i-1,u=(1<<c)-1,f=u>>1,h=-7,v=e?r-1:0,d=e?-1:1,g=n[t+v];for(v+=d,o=g&(1<<-h)-1,g>>=-h,h+=c;h>0;o=o*256+n[t+v],v+=d,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=a*256+n[t+v],v+=d,h-=8);if(o===0)o=1-f;else{if(o===u)return a?NaN:(g?-1:1)*(1/0);a=a+Math.pow(2,i),o=o-f}return(g?-1:1)*a*Math.pow(2,o-i)};ju.write=function(n,t,e,i,r,o){var a,c,u,f=o*8-r-1,h=(1<<f)-1,v=h>>1,d=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:o-1,m=i?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+v>=1?t+=d/u:t+=d*Math.pow(2,1-v),t*u>=2&&(a++,u/=2),a+v>=h?(c=0,a=h):a+v>=1?(c=(t*u-1)*Math.pow(2,r),a=a+v):(c=t*Math.pow(2,v-1)*Math.pow(2,r),a=0));r>=8;n[e+g]=c&255,g+=m,c/=256,r-=8);for(a=a<<r|c,f+=r;f>0;n[e+g]=a&255,g+=m,a/=256,f-=8);n[e+g-m]|=y*128};/*!
|
|
329
|
+
* The buffer module from node.js, for the browser.
|
|
330
|
+
*
|
|
331
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
332
|
+
* @license MIT
|
|
333
|
+
*/(function(n){const t=Va,e=ju,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=h,n.SlowBuffer=E,n.INSPECT_MAX_BYTES=50;const r=2147483647;n.kMaxLength=r;const{Uint8Array:o,ArrayBuffer:a,SharedArrayBuffer:c}=globalThis;h.TYPED_ARRAY_SUPPORT=u(),!h.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{const M=new o(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,o.prototype),Object.setPrototypeOf(M,b),M.foo()===42}catch{return!1}}Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}});function f(M){if(M>r)throw new RangeError('The value "'+M+'" is invalid for option "size"');const b=new o(M);return Object.setPrototypeOf(b,h.prototype),b}function h(M,b,w){if(typeof M=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(M)}return v(M,b,w)}h.poolSize=8192;function v(M,b,w){if(typeof M=="string")return y(M,b);if(a.isView(M))return k(M);if(M==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(be(M,a)||M&&be(M.buffer,a)||typeof c<"u"&&(be(M,c)||M&&be(M.buffer,c)))return A(M,b,w);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const R=M.valueOf&&M.valueOf();if(R!=null&&R!==M)return h.from(R,b,w);const H=I(M);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return h.from(M[Symbol.toPrimitive]("string"),b,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}h.from=function(M,b,w){return v(M,b,w)},Object.setPrototypeOf(h.prototype,o.prototype),Object.setPrototypeOf(h,o);function d(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function g(M,b,w){return d(M),M<=0?f(M):b!==void 0?typeof w=="string"?f(M).fill(b,w):f(M).fill(b):f(M)}h.alloc=function(M,b,w){return g(M,b,w)};function m(M){return d(M),f(M<0?0:S(M)|0)}h.allocUnsafe=function(M){return m(M)},h.allocUnsafeSlow=function(M){return m(M)};function y(M,b){if((typeof b!="string"||b==="")&&(b="utf8"),!h.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const w=P(M,b)|0;let R=f(w);const H=R.write(M,b);return H!==w&&(R=R.slice(0,H)),R}function x(M){const b=M.length<0?0:S(M.length)|0,w=f(b);for(let R=0;R<b;R+=1)w[R]=M[R]&255;return w}function k(M){if(be(M,o)){const b=new o(M);return A(b.buffer,b.byteOffset,b.byteLength)}return x(M)}function A(M,b,w){if(b<0||M.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(M.byteLength<b+(w||0))throw new RangeError('"length" is outside of buffer bounds');let R;return b===void 0&&w===void 0?R=new o(M):w===void 0?R=new o(M,b):R=new o(M,b,w),Object.setPrototypeOf(R,h.prototype),R}function I(M){if(h.isBuffer(M)){const b=S(M.length)|0,w=f(b);return w.length===0||M.copy(w,0,0,b),w}if(M.length!==void 0)return typeof M.length!="number"||Dr(M.length)?f(0):x(M);if(M.type==="Buffer"&&Array.isArray(M.data))return x(M.data)}function S(M){if(M>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return M|0}function E(M){return+M!=M&&(M=0),h.alloc(+M)}h.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==h.prototype},h.compare=function(b,w){if(be(b,o)&&(b=h.from(b,b.offset,b.byteLength)),be(w,o)&&(w=h.from(w,w.offset,w.byteLength)),!h.isBuffer(b)||!h.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===w)return 0;let R=b.length,H=w.length;for(let j=0,J=Math.min(R,H);j<J;++j)if(b[j]!==w[j]){R=b[j],H=w[j];break}return R<H?-1:H<R?1:0},h.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(b,w){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return h.alloc(0);let R;if(w===void 0)for(w=0,R=0;R<b.length;++R)w+=b[R].length;const H=h.allocUnsafe(w);let j=0;for(R=0;R<b.length;++R){let J=b[R];if(be(J,o))j+J.length>H.length?(h.isBuffer(J)||(J=h.from(J)),J.copy(H,j)):o.prototype.set.call(H,J,j);else if(h.isBuffer(J))J.copy(H,j);else throw new TypeError('"list" argument must be an Array of Buffers');j+=J.length}return H};function P(M,b){if(h.isBuffer(M))return M.length;if(a.isView(M)||be(M,a))return M.byteLength;if(typeof M!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof M);const w=M.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&w===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Fn(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return Li(M).length;default:if(H)return R?-1:Fn(M).length;b=(""+b).toLowerCase(),H=!0}}h.byteLength=P;function T(M,b,w){let R=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,b>>>=0,w<=b))return"";for(M||(M="utf8");;)switch(M){case"hex":return Ot(this,b,w);case"utf8":case"utf-8":return G(this,b,w);case"ascii":return st(this,b,w);case"latin1":case"binary":return ct(this,b,w);case"base64":return B(this,b,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,b,w);default:if(R)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),R=!0}}h.prototype._isBuffer=!0;function F(M,b,w){const R=M[b];M[b]=M[w],M[w]=R}h.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<b;w+=2)F(this,w,w+1);return this},h.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<b;w+=4)F(this,w,w+3),F(this,w+1,w+2);return this},h.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<b;w+=8)F(this,w,w+7),F(this,w+1,w+6),F(this,w+2,w+5),F(this,w+3,w+4);return this},h.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?G(this,0,b):T.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(b){if(!h.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:h.compare(this,b)===0},h.prototype.inspect=function(){let b="";const w=n.INSPECT_MAX_BYTES;return b=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(b+=" ... "),"<Buffer "+b+">"},i&&(h.prototype[i]=h.prototype.inspect),h.prototype.compare=function(b,w,R,H,j){if(be(b,o)&&(b=h.from(b,b.offset,b.byteLength)),!h.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(w===void 0&&(w=0),R===void 0&&(R=b?b.length:0),H===void 0&&(H=0),j===void 0&&(j=this.length),w<0||R>b.length||H<0||j>this.length)throw new RangeError("out of range index");if(H>=j&&w>=R)return 0;if(H>=j)return-1;if(w>=R)return 1;if(w>>>=0,R>>>=0,H>>>=0,j>>>=0,this===b)return 0;let J=j-H,yt=R-w;const Vt=Math.min(J,yt),Ht=this.slice(H,j),$t=b.slice(w,R);for(let Tt=0;Tt<Vt;++Tt)if(Ht[Tt]!==$t[Tt]){J=Ht[Tt],yt=$t[Tt];break}return J<yt?-1:yt<J?1:0};function $(M,b,w,R,H){if(M.length===0)return-1;if(typeof w=="string"?(R=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,Dr(w)&&(w=H?0:M.length-1),w<0&&(w=M.length+w),w>=M.length){if(H)return-1;w=M.length-1}else if(w<0)if(H)w=0;else return-1;if(typeof b=="string"&&(b=h.from(b,R)),h.isBuffer(b))return b.length===0?-1:q(M,b,w,R,H);if(typeof b=="number")return b=b&255,typeof o.prototype.indexOf=="function"?H?o.prototype.indexOf.call(M,b,w):o.prototype.lastIndexOf.call(M,b,w):q(M,[b],w,R,H);throw new TypeError("val must be string, number or Buffer")}function q(M,b,w,R,H){let j=1,J=M.length,yt=b.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(M.length<2||b.length<2)return-1;j=2,J/=2,yt/=2,w/=2}function Vt($t,Tt){return j===1?$t[Tt]:$t.readUInt16BE(Tt*j)}let Ht;if(H){let $t=-1;for(Ht=w;Ht<J;Ht++)if(Vt(M,Ht)===Vt(b,$t===-1?0:Ht-$t)){if($t===-1&&($t=Ht),Ht-$t+1===yt)return $t*j}else $t!==-1&&(Ht-=Ht-$t),$t=-1}else for(w+yt>J&&(w=J-yt),Ht=w;Ht>=0;Ht--){let $t=!0;for(let Tt=0;Tt<yt;Tt++)if(Vt(M,Ht+Tt)!==Vt(b,Tt)){$t=!1;break}if($t)return Ht}return-1}h.prototype.includes=function(b,w,R){return this.indexOf(b,w,R)!==-1},h.prototype.indexOf=function(b,w,R){return $(this,b,w,R,!0)},h.prototype.lastIndexOf=function(b,w,R){return $(this,b,w,R,!1)};function U(M,b,w,R){w=Number(w)||0;const H=M.length-w;R?(R=Number(R),R>H&&(R=H)):R=H;const j=b.length;R>j/2&&(R=j/2);let J;for(J=0;J<R;++J){const yt=parseInt(b.substr(J*2,2),16);if(Dr(yt))return J;M[w+J]=yt}return J}function Y(M,b,w,R){return nr(Fn(b,M.length-w),M,w,R)}function at(M,b,w,R){return nr(je(b),M,w,R)}function nt(M,b,w,R){return nr(Li(b),M,w,R)}function Z(M,b,w,R){return nr(Oi(b,M.length-w),M,w,R)}h.prototype.write=function(b,w,R,H){if(w===void 0)H="utf8",R=this.length,w=0;else if(R===void 0&&typeof w=="string")H=w,R=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(R)?(R=R>>>0,H===void 0&&(H="utf8")):(H=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const j=this.length-w;if((R===void 0||R>j)&&(R=j),b.length>0&&(R<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let J=!1;for(;;)switch(H){case"hex":return U(this,b,w,R);case"utf8":case"utf-8":return Y(this,b,w,R);case"ascii":case"latin1":case"binary":return at(this,b,w,R);case"base64":return nt(this,b,w,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,b,w,R);default:if(J)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),J=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(M,b,w){return b===0&&w===M.length?t.fromByteArray(M):t.fromByteArray(M.slice(b,w))}function G(M,b,w){w=Math.min(M.length,w);const R=[];let H=b;for(;H<w;){const j=M[H];let J=null,yt=j>239?4:j>223?3:j>191?2:1;if(H+yt<=w){let Vt,Ht,$t,Tt;switch(yt){case 1:j<128&&(J=j);break;case 2:Vt=M[H+1],(Vt&192)===128&&(Tt=(j&31)<<6|Vt&63,Tt>127&&(J=Tt));break;case 3:Vt=M[H+1],Ht=M[H+2],(Vt&192)===128&&(Ht&192)===128&&(Tt=(j&15)<<12|(Vt&63)<<6|Ht&63,Tt>2047&&(Tt<55296||Tt>57343)&&(J=Tt));break;case 4:Vt=M[H+1],Ht=M[H+2],$t=M[H+3],(Vt&192)===128&&(Ht&192)===128&&($t&192)===128&&(Tt=(j&15)<<18|(Vt&63)<<12|(Ht&63)<<6|$t&63,Tt>65535&&Tt<1114112&&(J=Tt))}}J===null?(J=65533,yt=1):J>65535&&(J-=65536,R.push(J>>>10&1023|55296),J=56320|J&1023),R.push(J),H+=yt}return rt(R)}const X=4096;function rt(M){const b=M.length;if(b<=X)return String.fromCharCode.apply(String,M);let w="",R=0;for(;R<b;)w+=String.fromCharCode.apply(String,M.slice(R,R+=X));return w}function st(M,b,w){let R="";w=Math.min(M.length,w);for(let H=b;H<w;++H)R+=String.fromCharCode(M[H]&127);return R}function ct(M,b,w){let R="";w=Math.min(M.length,w);for(let H=b;H<w;++H)R+=String.fromCharCode(M[H]);return R}function Ot(M,b,w){const R=M.length;(!b||b<0)&&(b=0),(!w||w<0||w>R)&&(w=R);let H="";for(let j=b;j<w;++j)H+=Pi[M[j]];return H}function Ft(M,b,w){const R=M.slice(b,w);let H="";for(let j=0;j<R.length-1;j+=2)H+=String.fromCharCode(R[j]+R[j+1]*256);return H}h.prototype.slice=function(b,w){const R=this.length;b=~~b,w=w===void 0?R:~~w,b<0?(b+=R,b<0&&(b=0)):b>R&&(b=R),w<0?(w+=R,w<0&&(w=0)):w>R&&(w=R),w<b&&(w=b);const H=this.subarray(b,w);return Object.setPrototypeOf(H,h.prototype),H};function pt(M,b,w){if(M%1!==0||M<0)throw new RangeError("offset is not uint");if(M+b>w)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(b,w,R){b=b>>>0,w=w>>>0,R||pt(b,w,this.length);let H=this[b],j=1,J=0;for(;++J<w&&(j*=256);)H+=this[b+J]*j;return H},h.prototype.readUintBE=h.prototype.readUIntBE=function(b,w,R){b=b>>>0,w=w>>>0,R||pt(b,w,this.length);let H=this[b+--w],j=1;for(;w>0&&(j*=256);)H+=this[b+--w]*j;return H},h.prototype.readUint8=h.prototype.readUInt8=function(b,w){return b=b>>>0,w||pt(b,1,this.length),this[b]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(b,w){return b=b>>>0,w||pt(b,2,this.length),this[b]|this[b+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(b,w){return b=b>>>0,w||pt(b,2,this.length),this[b]<<8|this[b+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(b,w){return b=b>>>0,w||pt(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(b,w){return b=b>>>0,w||pt(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},h.prototype.readBigUInt64LE=Ae(function(b){b=b>>>0,li(b,"offset");const w=this[b],R=this[b+7];(w===void 0||R===void 0)&&Ce(b,this.length-8);const H=w+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,j=this[++b]+this[++b]*2**8+this[++b]*2**16+R*2**24;return BigInt(H)+(BigInt(j)<<BigInt(32))}),h.prototype.readBigUInt64BE=Ae(function(b){b=b>>>0,li(b,"offset");const w=this[b],R=this[b+7];(w===void 0||R===void 0)&&Ce(b,this.length-8);const H=w*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],j=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+R;return(BigInt(H)<<BigInt(32))+BigInt(j)}),h.prototype.readIntLE=function(b,w,R){b=b>>>0,w=w>>>0,R||pt(b,w,this.length);let H=this[b],j=1,J=0;for(;++J<w&&(j*=256);)H+=this[b+J]*j;return j*=128,H>=j&&(H-=Math.pow(2,8*w)),H},h.prototype.readIntBE=function(b,w,R){b=b>>>0,w=w>>>0,R||pt(b,w,this.length);let H=w,j=1,J=this[b+--H];for(;H>0&&(j*=256);)J+=this[b+--H]*j;return j*=128,J>=j&&(J-=Math.pow(2,8*w)),J},h.prototype.readInt8=function(b,w){return b=b>>>0,w||pt(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},h.prototype.readInt16LE=function(b,w){b=b>>>0,w||pt(b,2,this.length);const R=this[b]|this[b+1]<<8;return R&32768?R|4294901760:R},h.prototype.readInt16BE=function(b,w){b=b>>>0,w||pt(b,2,this.length);const R=this[b+1]|this[b]<<8;return R&32768?R|4294901760:R},h.prototype.readInt32LE=function(b,w){return b=b>>>0,w||pt(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},h.prototype.readInt32BE=function(b,w){return b=b>>>0,w||pt(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},h.prototype.readBigInt64LE=Ae(function(b){b=b>>>0,li(b,"offset");const w=this[b],R=this[b+7];(w===void 0||R===void 0)&&Ce(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(R<<24);return(BigInt(H)<<BigInt(32))+BigInt(w+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),h.prototype.readBigInt64BE=Ae(function(b){b=b>>>0,li(b,"offset");const w=this[b],R=this[b+7];(w===void 0||R===void 0)&&Ce(b,this.length-8);const H=(w<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(H)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+R)}),h.prototype.readFloatLE=function(b,w){return b=b>>>0,w||pt(b,4,this.length),e.read(this,b,!0,23,4)},h.prototype.readFloatBE=function(b,w){return b=b>>>0,w||pt(b,4,this.length),e.read(this,b,!1,23,4)},h.prototype.readDoubleLE=function(b,w){return b=b>>>0,w||pt(b,8,this.length),e.read(this,b,!0,52,8)},h.prototype.readDoubleBE=function(b,w){return b=b>>>0,w||pt(b,8,this.length),e.read(this,b,!1,52,8)};function xt(M,b,w,R,H,j){if(!h.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>H||b<j)throw new RangeError('"value" argument is out of bounds');if(w+R>M.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(b,w,R,H){if(b=+b,w=w>>>0,R=R>>>0,!H){const yt=Math.pow(2,8*R)-1;xt(this,b,w,R,yt,0)}let j=1,J=0;for(this[w]=b&255;++J<R&&(j*=256);)this[w+J]=b/j&255;return w+R},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(b,w,R,H){if(b=+b,w=w>>>0,R=R>>>0,!H){const yt=Math.pow(2,8*R)-1;xt(this,b,w,R,yt,0)}let j=R-1,J=1;for(this[w+j]=b&255;--j>=0&&(J*=256);)this[w+j]=b/J&255;return w+R},h.prototype.writeUint8=h.prototype.writeUInt8=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,1,255,0),this[w]=b&255,w+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,2,65535,0),this[w]=b&255,this[w+1]=b>>>8,w+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,2,65535,0),this[w]=b>>>8,this[w+1]=b&255,w+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,4,4294967295,0),this[w+3]=b>>>24,this[w+2]=b>>>16,this[w+1]=b>>>8,this[w]=b&255,w+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,4,4294967295,0),this[w]=b>>>24,this[w+1]=b>>>16,this[w+2]=b>>>8,this[w+3]=b&255,w+4};function Zt(M,b,w,R,H){ai(b,R,H,M,w,7);let j=Number(b&BigInt(4294967295));M[w++]=j,j=j>>8,M[w++]=j,j=j>>8,M[w++]=j,j=j>>8,M[w++]=j;let J=Number(b>>BigInt(32)&BigInt(4294967295));return M[w++]=J,J=J>>8,M[w++]=J,J=J>>8,M[w++]=J,J=J>>8,M[w++]=J,w}function en(M,b,w,R,H){ai(b,R,H,M,w,7);let j=Number(b&BigInt(4294967295));M[w+7]=j,j=j>>8,M[w+6]=j,j=j>>8,M[w+5]=j,j=j>>8,M[w+4]=j;let J=Number(b>>BigInt(32)&BigInt(4294967295));return M[w+3]=J,J=J>>8,M[w+2]=J,J=J>>8,M[w+1]=J,J=J>>8,M[w]=J,w+8}h.prototype.writeBigUInt64LE=Ae(function(b,w=0){return Zt(this,b,w,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=Ae(function(b,w=0){return en(this,b,w,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(b,w,R,H){if(b=+b,w=w>>>0,!H){const Vt=Math.pow(2,8*R-1);xt(this,b,w,R,Vt-1,-Vt)}let j=0,J=1,yt=0;for(this[w]=b&255;++j<R&&(J*=256);)b<0&&yt===0&&this[w+j-1]!==0&&(yt=1),this[w+j]=(b/J>>0)-yt&255;return w+R},h.prototype.writeIntBE=function(b,w,R,H){if(b=+b,w=w>>>0,!H){const Vt=Math.pow(2,8*R-1);xt(this,b,w,R,Vt-1,-Vt)}let j=R-1,J=1,yt=0;for(this[w+j]=b&255;--j>=0&&(J*=256);)b<0&&yt===0&&this[w+j+1]!==0&&(yt=1),this[w+j]=(b/J>>0)-yt&255;return w+R},h.prototype.writeInt8=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,1,127,-128),b<0&&(b=255+b+1),this[w]=b&255,w+1},h.prototype.writeInt16LE=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,2,32767,-32768),this[w]=b&255,this[w+1]=b>>>8,w+2},h.prototype.writeInt16BE=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,2,32767,-32768),this[w]=b>>>8,this[w+1]=b&255,w+2},h.prototype.writeInt32LE=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,4,2147483647,-2147483648),this[w]=b&255,this[w+1]=b>>>8,this[w+2]=b>>>16,this[w+3]=b>>>24,w+4},h.prototype.writeInt32BE=function(b,w,R){return b=+b,w=w>>>0,R||xt(this,b,w,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[w]=b>>>24,this[w+1]=b>>>16,this[w+2]=b>>>8,this[w+3]=b&255,w+4},h.prototype.writeBigInt64LE=Ae(function(b,w=0){return Zt(this,b,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=Ae(function(b,w=0){return en(this,b,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pe(M,b,w,R,H,j){if(w+R>M.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function ye(M,b,w,R,H){return b=+b,w=w>>>0,H||Pe(M,b,w,4),e.write(M,b,w,R,23,4),w+4}h.prototype.writeFloatLE=function(b,w,R){return ye(this,b,w,!0,R)},h.prototype.writeFloatBE=function(b,w,R){return ye(this,b,w,!1,R)};function ce(M,b,w,R,H){return b=+b,w=w>>>0,H||Pe(M,b,w,8),e.write(M,b,w,R,52,8),w+8}h.prototype.writeDoubleLE=function(b,w,R){return ce(this,b,w,!0,R)},h.prototype.writeDoubleBE=function(b,w,R){return ce(this,b,w,!1,R)},h.prototype.copy=function(b,w,R,H){if(!h.isBuffer(b))throw new TypeError("argument should be a Buffer");if(R||(R=0),!H&&H!==0&&(H=this.length),w>=b.length&&(w=b.length),w||(w=0),H>0&&H<R&&(H=R),H===R||b.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),b.length-w<H-R&&(H=b.length-w+R);const j=H-R;return this===b&&typeof o.prototype.copyWithin=="function"?this.copyWithin(w,R,H):o.prototype.set.call(b,this.subarray(R,H),w),j},h.prototype.fill=function(b,w,R,H){if(typeof b=="string"){if(typeof w=="string"?(H=w,w=0,R=this.length):typeof R=="string"&&(H=R,R=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!h.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(b.length===1){const J=b.charCodeAt(0);(H==="utf8"&&J<128||H==="latin1")&&(b=J)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(w<0||this.length<w||this.length<R)throw new RangeError("Out of range index");if(R<=w)return this;w=w>>>0,R=R===void 0?this.length:R>>>0,b||(b=0);let j;if(typeof b=="number")for(j=w;j<R;++j)this[j]=b;else{const J=h.isBuffer(b)?b:h.from(b,H),yt=J.length;if(yt===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(j=0;j<R-w;++j)this[j+w]=J[j%yt]}return this};const oe={};function Re(M,b,w){oe[M]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${M}]`,this.stack,delete this.name}get code(){return M}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${M}]: ${this.message}`}}}Re("ERR_BUFFER_OUT_OF_BOUNDS",function(M){return M?`${M} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Re("ERR_INVALID_ARG_TYPE",function(M,b){return`The "${M}" argument must be of type number. Received type ${typeof b}`},TypeError),Re("ERR_OUT_OF_RANGE",function(M,b,w){let R=`The value of "${M}" is out of range.`,H=w;return Number.isInteger(w)&&Math.abs(w)>2**32?H=Sn(String(w)):typeof w=="bigint"&&(H=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(H=Sn(H)),H+="n"),R+=` It must be ${b}. Received ${H}`,R},RangeError);function Sn(M){let b="",w=M.length;const R=M[0]==="-"?1:0;for(;w>=R+4;w-=3)b=`_${M.slice(w-3,w)}${b}`;return`${M.slice(0,w)}${b}`}function Ue(M,b,w){li(b,"offset"),(M[b]===void 0||M[b+w]===void 0)&&Ce(b,M.length-(w+1))}function ai(M,b,w,R,H,j){if(M>w||M<b){const J=typeof b=="bigint"?"n":"";let yt;throw b===0||b===BigInt(0)?yt=`>= 0${J} and < 2${J} ** ${(j+1)*8}${J}`:yt=`>= -(2${J} ** ${(j+1)*8-1}${J}) and < 2 ** ${(j+1)*8-1}${J}`,new oe.ERR_OUT_OF_RANGE("value",yt,M)}Ue(R,H,j)}function li(M,b){if(typeof M!="number")throw new oe.ERR_INVALID_ARG_TYPE(b,"number",M)}function Ce(M,b,w){throw Math.floor(M)!==M?(li(M,w),new oe.ERR_OUT_OF_RANGE("offset","an integer",M)):b<0?new oe.ERR_BUFFER_OUT_OF_BOUNDS:new oe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,M)}const Hs=/[^+/0-9A-Za-z-_]/g;function il(M){if(M=M.split("=")[0],M=M.trim().replace(Hs,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function Fn(M,b){b=b||1/0;let w;const R=M.length;let H=null;const j=[];for(let J=0;J<R;++J){if(w=M.charCodeAt(J),w>55295&&w<57344){if(!H){if(w>56319){(b-=3)>-1&&j.push(239,191,189);continue}else if(J+1===R){(b-=3)>-1&&j.push(239,191,189);continue}H=w;continue}if(w<56320){(b-=3)>-1&&j.push(239,191,189),H=w;continue}w=(H-55296<<10|w-56320)+65536}else H&&(b-=3)>-1&&j.push(239,191,189);if(H=null,w<128){if((b-=1)<0)break;j.push(w)}else if(w<2048){if((b-=2)<0)break;j.push(w>>6|192,w&63|128)}else if(w<65536){if((b-=3)<0)break;j.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((b-=4)<0)break;j.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return j}function je(M){const b=[];for(let w=0;w<M.length;++w)b.push(M.charCodeAt(w)&255);return b}function Oi(M,b){let w,R,H;const j=[];for(let J=0;J<M.length&&!((b-=2)<0);++J)w=M.charCodeAt(J),R=w>>8,H=w%256,j.push(H),j.push(R);return j}function Li(M){return t.toByteArray(il(M))}function nr(M,b,w,R){let H;for(H=0;H<R&&!(H+w>=b.length||H>=M.length);++H)b[H+w]=M[H];return H}function be(M,b){return M instanceof b||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===b.name}function Dr(M){return M!==M}const Pi=function(){const M="0123456789abcdef",b=new Array(256);for(let w=0;w<16;++w){const R=w*16;for(let H=0;H<16;++H)b[R+H]=M[w]+M[H]}return b}();function Ae(M){return typeof BigInt>"u"?Br:M}function Br(){throw new Error("BigInt not supported")}})(m0);const GE=m0.Buffer;var Pc,Gp;function _0(){if(Gp)return Pc;Gp=1;var n=_e();function t(e,i){i=i||new FormData;var r=[];function o(c){return c===null?"":n.isDate(c)?c.toISOString():n.isArrayBuffer(c)||n.isTypedArray(c)?typeof Blob=="function"?new Blob([c]):GE.from(c):c}function a(c,u){if(n.isPlainObject(c)||n.isArray(c)){if(r.indexOf(c)!==-1)throw Error("Circular reference detected in "+u);r.push(c),n.forEach(c,function(h,v){if(!n.isUndefined(h)){var d=u?u+"."+v:v,g;if(h&&!u&&typeof h=="object"){if(n.endsWith(v,"{}"))h=JSON.stringify(h);else if(n.endsWith(v,"[]")&&(g=n.toArray(h))){g.forEach(function(m){!n.isUndefined(m)&&i.append(d,o(m))});return}}a(h,d)}}),r.pop()}else i.append(u,o(c))}return a(e),i}return Pc=t,Pc}var Rc,Kp;function KE(){if(Kp)return Rc;Kp=1;var n=Tr();return Rc=function(e,i,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):i(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))},Rc}var Tc,Xp;function XE(){if(Xp)return Tc;Xp=1;var n=_e();return Tc=n.isStandardBrowserEnv()?function(){return{write:function(i,r,o,a,c,u){var f=[];f.push(i+"="+encodeURIComponent(r)),n.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),n.isString(a)&&f.push("path="+a),n.isString(c)&&f.push("domain="+c),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(i){var r=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Tc}var Ic,Jp;function JE(){return Jp||(Jp=1,Ic=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Ic}var Dc,Zp;function ZE(){return Zp||(Zp=1,Dc=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),Dc}var Bc,Qp;function y0(){if(Qp)return Bc;Qp=1;var n=JE(),t=ZE();return Bc=function(i,r){return i&&!n(r)?t(i,r):r},Bc}var Fc,tg;function QE(){if(tg)return Fc;tg=1;var n=_e(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Fc=function(i){var r={},o,a,c;return i&&n.forEach(i.split(`
|
|
334
|
+
`),function(f){if(c=f.indexOf(":"),o=n.trim(f.substr(0,c)).toLowerCase(),a=n.trim(f.substr(c+1)),o){if(r[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([a]):r[o]=r[o]?r[o]+", "+a:a}}),r},Fc}var Nc,eg;function tk(){if(eg)return Nc;eg=1;var n=_e();return Nc=n.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),r;function o(a){var c=a;return e&&(i.setAttribute("href",c),c=i.href),i.setAttribute("href",c),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return r=o(window.location.href),function(c){var u=n.isString(c)?o(c):c;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),Nc}var Hc,ng;function $a(){if(ng)return Hc;ng=1;var n=Tr(),t=_e();function e(i){n.call(this,i??"canceled",n.ERR_CANCELED),this.name="CanceledError"}return t.inherits(e,n,{__CANCEL__:!0}),Hc=e,Hc}var Wc,ig;function ek(){return ig||(ig=1,Wc=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}),Wc}var qc,rg;function sg(){if(rg)return qc;rg=1;var n=_e(),t=KE(),e=XE(),i=u0(),r=y0(),o=QE(),a=tk(),c=g0(),u=Tr(),f=$a(),h=ek();return qc=function(d){return new Promise(function(m,y){var x=d.data,k=d.headers,A=d.responseType,I;function S(){d.cancelToken&&d.cancelToken.unsubscribe(I),d.signal&&d.signal.removeEventListener("abort",I)}n.isFormData(x)&&n.isStandardBrowserEnv()&&delete k["Content-Type"];var E=new XMLHttpRequest;if(d.auth){var P=d.auth.username||"",T=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";k.Authorization="Basic "+btoa(P+":"+T)}var F=r(d.baseURL,d.url);E.open(d.method.toUpperCase(),i(F,d.params,d.paramsSerializer),!0),E.timeout=d.timeout;function $(){if(E){var Y="getAllResponseHeaders"in E?o(E.getAllResponseHeaders()):null,at=!A||A==="text"||A==="json"?E.responseText:E.response,nt={data:at,status:E.status,statusText:E.statusText,headers:Y,config:d,request:E};t(function(B){m(B),S()},function(B){y(B),S()},nt),E=null}}if("onloadend"in E?E.onloadend=$:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout($)},E.onabort=function(){E&&(y(new u("Request aborted",u.ECONNABORTED,d,E)),E=null)},E.onerror=function(){y(new u("Network Error",u.ERR_NETWORK,d,E,E)),E=null},E.ontimeout=function(){var at=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",nt=d.transitional||c;d.timeoutErrorMessage&&(at=d.timeoutErrorMessage),y(new u(at,nt.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,d,E)),E=null},n.isStandardBrowserEnv()){var q=(d.withCredentials||a(F))&&d.xsrfCookieName?e.read(d.xsrfCookieName):void 0;q&&(k[d.xsrfHeaderName]=q)}"setRequestHeader"in E&&n.forEach(k,function(at,nt){typeof x>"u"&&nt.toLowerCase()==="content-type"?delete k[nt]:E.setRequestHeader(nt,at)}),n.isUndefined(d.withCredentials)||(E.withCredentials=!!d.withCredentials),A&&A!=="json"&&(E.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&E.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&E.upload&&E.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(I=function(Y){E&&(y(!Y||Y&&Y.type?new f:Y),E.abort(),E=null)},d.cancelToken&&d.cancelToken.subscribe(I),d.signal&&(d.signal.aborted?I():d.signal.addEventListener("abort",I))),x||(x=null);var U=h(F);if(U&&["http","https","file"].indexOf(U)===-1){y(new u("Unsupported protocol "+U+":",u.ERR_BAD_REQUEST,d));return}E.send(x)})},qc}var zc,og;function nk(){return og||(og=1,zc=null),zc}var Uc,ag;function Vu(){if(ag)return Uc;ag=1;var n=_e(),t=HE(),e=Tr(),i=g0(),r=_0(),o={"Content-Type":"application/x-www-form-urlencoded"};function a(h,v){!n.isUndefined(h)&&n.isUndefined(h["Content-Type"])&&(h["Content-Type"]=v)}function c(){var h;return(typeof XMLHttpRequest<"u"||typeof jp<"u"&&Object.prototype.toString.call(jp)==="[object process]")&&(h=sg()),h}function u(h,v,d){if(n.isString(h))try{return(v||JSON.parse)(h),n.trim(h)}catch(g){if(g.name!=="SyntaxError")throw g}return(d||JSON.stringify)(h)}var f={transitional:i,adapter:c(),transformRequest:[function(v,d){if(t(d,"Accept"),t(d,"Content-Type"),n.isFormData(v)||n.isArrayBuffer(v)||n.isBuffer(v)||n.isStream(v)||n.isFile(v)||n.isBlob(v))return v;if(n.isArrayBufferView(v))return v.buffer;if(n.isURLSearchParams(v))return a(d,"application/x-www-form-urlencoded;charset=utf-8"),v.toString();var g=n.isObject(v),m=d&&d["Content-Type"],y;if((y=n.isFileList(v))||g&&m==="multipart/form-data"){var x=this.env&&this.env.FormData;return r(y?{"files[]":v}:v,x&&new x)}else if(g||m==="application/json")return a(d,"application/json"),u(v);return v}],transformResponse:[function(v){var d=this.transitional||f.transitional,g=d&&d.silentJSONParsing,m=d&&d.forcedJSONParsing,y=!g&&this.responseType==="json";if(y||m&&n.isString(v)&&v.length)try{return JSON.parse(v)}catch(x){if(y)throw x.name==="SyntaxError"?e.from(x,e.ERR_BAD_RESPONSE,this,null,this.response):x}return v}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nk()},validateStatus:function(v){return v>=200&&v<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return n.forEach(["delete","get","head"],function(v){f.headers[v]={}}),n.forEach(["post","put","patch"],function(v){f.headers[v]=n.merge(o)}),Uc=f,Uc}var jc,lg;function ik(){if(lg)return jc;lg=1;var n=_e(),t=Vu();return jc=function(i,r,o){var a=this||t;return n.forEach(o,function(u){i=u.call(a,i,r)}),i},jc}var Vc,cg;function b0(){return cg||(cg=1,Vc=function(t){return!!(t&&t.__CANCEL__)}),Vc}var $c,ug;function rk(){if(ug)return $c;ug=1;var n=_e(),t=ik(),e=b0(),i=Vu(),r=$a();function o(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new r}return $c=function(c){o(c),c.headers=c.headers||{},c.data=t.call(c,c.data,c.headers,c.transformRequest),c.headers=n.merge(c.headers.common||{},c.headers[c.method]||{},c.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(h){delete c.headers[h]});var u=c.adapter||i.adapter;return u(c).then(function(h){return o(c),h.data=t.call(c,h.data,h.headers,c.transformResponse),h},function(h){return e(h)||(o(c),h&&h.response&&(h.response.data=t.call(c,h.response.data,h.response.headers,c.transformResponse))),Promise.reject(h)})},$c}var Yc,hg;function x0(){if(hg)return Yc;hg=1;var n=_e();return Yc=function(e,i){i=i||{};var r={};function o(v,d){return n.isPlainObject(v)&&n.isPlainObject(d)?n.merge(v,d):n.isPlainObject(d)?n.merge({},d):n.isArray(d)?d.slice():d}function a(v){if(n.isUndefined(i[v])){if(!n.isUndefined(e[v]))return o(void 0,e[v])}else return o(e[v],i[v])}function c(v){if(!n.isUndefined(i[v]))return o(void 0,i[v])}function u(v){if(n.isUndefined(i[v])){if(!n.isUndefined(e[v]))return o(void 0,e[v])}else return o(void 0,i[v])}function f(v){if(v in i)return o(e[v],i[v]);if(v in e)return o(void 0,e[v])}var h={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return n.forEach(Object.keys(e).concat(Object.keys(i)),function(d){var g=h[d]||a,m=g(d);n.isUndefined(m)&&g!==f||(r[d]=m)}),r},Yc}var Gc,fg;function w0(){return fg||(fg=1,Gc={version:"0.27.2"}),Gc}var Kc,dg;function sk(){if(dg)return Kc;dg=1;var n=w0().version,t=Tr(),e={};["object","boolean","number","function","string","symbol"].forEach(function(o,a){e[o]=function(u){return typeof u===o||"a"+(a<1?"n ":" ")+o}});var i={};e.transitional=function(a,c,u){function f(h,v){return"[Axios v"+n+"] Transitional option '"+h+"'"+v+(u?". "+u:"")}return function(h,v,d){if(a===!1)throw new t(f(v," has been removed"+(c?" in "+c:"")),t.ERR_DEPRECATED);return c&&!i[v]&&(i[v]=!0,console.warn(f(v," has been deprecated since v"+c+" and will be removed in the near future"))),a?a(h,v,d):!0}};function r(o,a,c){if(typeof o!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var u=Object.keys(o),f=u.length;f-- >0;){var h=u[f],v=a[h];if(v){var d=o[h],g=d===void 0||v(d,h,o);if(g!==!0)throw new t("option "+h+" must be "+g,t.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new t("Unknown option "+h,t.ERR_BAD_OPTION)}}return Kc={assertOptions:r,validators:e},Kc}var Xc,pg;function ok(){if(pg)return Xc;pg=1;var n=_e(),t=u0(),e=IE(),i=rk(),r=x0(),o=y0(),a=sk(),c=a.validators;function u(f){this.defaults=f,this.interceptors={request:new e,response:new e}}return u.prototype.request=function(h,v){typeof h=="string"?(v=v||{},v.url=h):v=h||{},v=r(this.defaults,v),v.method?v.method=v.method.toLowerCase():this.defaults.method?v.method=this.defaults.method.toLowerCase():v.method="get";var d=v.transitional;d!==void 0&&a.assertOptions(d,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var g=[],m=!0;this.interceptors.request.forEach(function(P){typeof P.runWhen=="function"&&P.runWhen(v)===!1||(m=m&&P.synchronous,g.unshift(P.fulfilled,P.rejected))});var y=[];this.interceptors.response.forEach(function(P){y.push(P.fulfilled,P.rejected)});var x;if(!m){var k=[i,void 0];for(Array.prototype.unshift.apply(k,g),k=k.concat(y),x=Promise.resolve(v);k.length;)x=x.then(k.shift(),k.shift());return x}for(var A=v;g.length;){var I=g.shift(),S=g.shift();try{A=I(A)}catch(E){S(E);break}}try{x=i(A)}catch(E){return Promise.reject(E)}for(;y.length;)x=x.then(y.shift(),y.shift());return x},u.prototype.getUri=function(h){h=r(this.defaults,h);var v=o(h.baseURL,h.url);return t(v,h.params,h.paramsSerializer)},n.forEach(["delete","get","head","options"],function(h){u.prototype[h]=function(v,d){return this.request(r(d||{},{method:h,url:v,data:(d||{}).data}))}}),n.forEach(["post","put","patch"],function(h){function v(d){return function(m,y,x){return this.request(r(x||{},{method:h,headers:d?{"Content-Type":"multipart/form-data"}:{},url:m,data:y}))}}u.prototype[h]=v(),u.prototype[h+"Form"]=v(!0)}),Xc=u,Xc}var Jc,gg;function ak(){if(gg)return Jc;gg=1;var n=$a();function t(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var i;this.promise=new Promise(function(a){i=a});var r=this;this.promise.then(function(o){if(r._listeners){var a,c=r._listeners.length;for(a=0;a<c;a++)r._listeners[a](o);r._listeners=null}}),this.promise.then=function(o){var a,c=new Promise(function(u){r.subscribe(u),a=u}).then(o);return c.cancel=function(){r.unsubscribe(a)},c},e(function(a){r.reason||(r.reason=new n(a),i(r.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]},t.prototype.unsubscribe=function(i){if(this._listeners){var r=this._listeners.indexOf(i);r!==-1&&this._listeners.splice(r,1)}},t.source=function(){var i,r=new t(function(a){i=a});return{token:r,cancel:i}},Jc=t,Jc}var Zc,mg;function lk(){return mg||(mg=1,Zc=function(t){return function(i){return t.apply(null,i)}}),Zc}var Qc,vg;function ck(){if(vg)return Qc;vg=1;var n=_e();return Qc=function(e){return n.isObject(e)&&e.isAxiosError===!0},Qc}var _g;function uk(){if(_g)return ia.exports;_g=1;var n=_e(),t=c0(),e=ok(),i=x0(),r=Vu();function o(c){var u=new e(c),f=t(e.prototype.request,u);return n.extend(f,e.prototype,u),n.extend(f,u),f.create=function(v){return o(i(c,v))},f}var a=o(r);return a.Axios=e,a.CanceledError=$a(),a.CancelToken=ak(),a.isCancel=b0(),a.VERSION=w0().version,a.toFormData=_0(),a.AxiosError=Tr(),a.Cancel=a.CanceledError,a.all=function(u){return Promise.all(u)},a.spread=lk(),a.isAxiosError=ck(),ia.exports=a,ia.exports.default=a,ia.exports}var tu,yg;function hk(){return yg||(yg=1,tu=uk()),tu}var fk=hk();const dk=tr(fk),Bn=Object.create(null);Bn.open="0";Bn.close="1";Bn.ping="2";Bn.pong="3";Bn.message="4";Bn.upgrade="5";Bn.noop="6";const Sa=Object.create(null);Object.keys(Bn).forEach(n=>{Sa[Bn[n]]=n});const pk={type:"error",data:"parser error"},gk=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mk=typeof ArrayBuffer=="function",vk=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,S0=({type:n,data:t},e,i)=>gk&&t instanceof Blob?e?i(t):bg(t,i):mk&&(t instanceof ArrayBuffer||vk(t))?e?i(t):bg(new Blob([t]),i):i(Bn[n]+(t||"")),bg=(n,t)=>{const e=new FileReader;return e.onload=function(){const i=e.result.split(",")[1];t("b"+i)},e.readAsDataURL(n)},xg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ls=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<xg.length;n++)ls[xg.charCodeAt(n)]=n;const _k=n=>{let t=n.length*.75,e=n.length,i,r=0,o,a,c,u;n[n.length-1]==="="&&(t--,n[n.length-2]==="="&&t--);const f=new ArrayBuffer(t),h=new Uint8Array(f);for(i=0;i<e;i+=4)o=ls[n.charCodeAt(i)],a=ls[n.charCodeAt(i+1)],c=ls[n.charCodeAt(i+2)],u=ls[n.charCodeAt(i+3)],h[r++]=o<<2|a>>4,h[r++]=(a&15)<<4|c>>2,h[r++]=(c&3)<<6|u&63;return f},yk=typeof ArrayBuffer=="function",E0=(n,t)=>{if(typeof n!="string")return{type:"message",data:k0(n,t)};const e=n.charAt(0);return e==="b"?{type:"message",data:bk(n.substring(1),t)}:Sa[e]?n.length>1?{type:Sa[e],data:n.substring(1)}:{type:Sa[e]}:pk},bk=(n,t)=>{if(yk){const e=_k(n);return k0(e,t)}else return{base64:!0,data:n}},k0=(n,t)=>{switch(t){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},C0="",xk=(n,t)=>{const e=n.length,i=new Array(e);let r=0;n.forEach((o,a)=>{S0(o,!1,c=>{i[a]=c,++r===e&&t(i.join(C0))})})},wk=(n,t)=>{const e=n.split(C0),i=[];for(let r=0;r<e.length;r++){const o=E0(e[r],t);if(i.push(o),o.type==="error")break}return i},A0=4;function le(n){if(n)return Sk(n)}function Sk(n){for(var t in le.prototype)n[t]=le.prototype[t];return n}le.prototype.on=le.prototype.addEventListener=function(n,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(t),this};le.prototype.once=function(n,t){function e(){this.off(n,e),t.apply(this,arguments)}return e.fn=t,this.on(n,e),this};le.prototype.off=le.prototype.removeListener=le.prototype.removeAllListeners=le.prototype.removeEventListener=function(n,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+n];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,r=0;r<e.length;r++)if(i=e[r],i===t||i.fn===t){e.splice(r,1);break}return e.length===0&&delete this._callbacks["$"+n],this};le.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),e=this._callbacks["$"+n],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(e){e=e.slice(0);for(var i=0,r=e.length;i<r;++i)e[i].apply(this,t)}return this};le.prototype.emitReserved=le.prototype.emit;le.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};le.prototype.hasListeners=function(n){return!!this.listeners(n).length};const yi=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function M0(n,...t){return t.reduce((e,i)=>(n.hasOwnProperty(i)&&(e[i]=n[i]),e),{})}const Ek=setTimeout,kk=clearTimeout;function Ya(n,t){t.useNativeTimers?(n.setTimeoutFn=Ek.bind(yi),n.clearTimeoutFn=kk.bind(yi)):(n.setTimeoutFn=setTimeout.bind(yi),n.clearTimeoutFn=clearTimeout.bind(yi))}const Ck=1.33;function Ak(n){return typeof n=="string"?Mk(n):Math.ceil((n.byteLength||n.size)*Ck)}function Mk(n){let t=0,e=0;for(let i=0,r=n.length;i<r;i++)t=n.charCodeAt(i),t<128?e+=1:t<2048?e+=2:t<55296||t>=57344?e+=3:(i++,e+=4);return e}class Ok extends Error{constructor(t,e,i){super(t),this.description=e,this.context=i,this.type="TransportError"}}class O0 extends le{constructor(t){super(),this.writable=!1,Ya(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,e,i){return super.emitReserved("error",new Ok(t,e,i)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const e=E0(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const L0="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),_u=64,Lk={};let wg=0,ra=0,Sg;function Eg(n){let t="";do t=L0[n%_u]+t,n=Math.floor(n/_u);while(n>0);return t}function P0(){const n=Eg(+new Date);return n!==Sg?(wg=0,Sg=n):n+"."+Eg(wg++)}for(;ra<_u;ra++)Lk[L0[ra]]=ra;function R0(n){let t="";for(let e in n)n.hasOwnProperty(e)&&(t.length&&(t+="&"),t+=encodeURIComponent(e)+"="+encodeURIComponent(n[e]));return t}function Pk(n){let t={},e=n.split("&");for(let i=0,r=e.length;i<r;i++){let o=e[i].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}let T0=!1;try{T0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Rk=T0;function I0(n){const t=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Rk))return new XMLHttpRequest}catch{}if(!t)try{return new yi[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Tk(){}const Ik=function(){return new I0({xdomain:!1}).responseType!=null}();class Dk extends O0{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const i=location.protocol==="https:";let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port,this.xs=t.secure!==i}const e=t&&t.forceBase64;this.supportsBinary=Ik&&!e}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const e=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||e()})),this.writable||(i++,this.once("drain",function(){--i||e()}))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const e=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};wk(t,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,xk(t,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const e=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=P0()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(e==="https"&&Number(this.opts.port)!==443||e==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const r=R0(t),o=this.opts.hostname.indexOf(":")!==-1;return e+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new In(this.uri(),t)}doWrite(t,e){const i=this.request({method:"POST",data:t});i.on("success",e),i.on("error",(r,o)=>{this.onError("xhr post error",r,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(e,i)=>{this.onError("xhr poll error",e,i)}),this.pollXhr=t}}class In extends le{constructor(t,e){super(),Ya(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.create()}create(){const t=M0(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const e=this.xhr=new I0(t);try{e.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&e.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{e.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in e&&(e.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(e.timeout=this.opts.requestTimeout),e.onreadystatechange=()=>{e.readyState===4&&(e.status===200||e.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof e.status=="number"?e.status:0)},0))},e.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=In.requestsCount++,In.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Tk,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete In.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}In.requestsCount=0;In.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",kg);else if(typeof addEventListener=="function"){const n="onpagehide"in yi?"pagehide":"unload";addEventListener(n,kg,!1)}}function kg(){for(let n in In.requests)In.requests.hasOwnProperty(n)&&In.requests[n].abort()}const D0=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,e)=>e(t,0),sa=yi.WebSocket||yi.MozWebSocket,Cg=!0,Bk="arraybuffer",Ag=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Fk extends O0{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),e=this.opts.protocols,i=Ag?{}:M0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=Cg&&!Ag?e?new sa(t,e):new sa(t):new sa(t,e,i)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType||Bk,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){const i=t[e],r=e===t.length-1;S0(i,this.supportsBinary,o=>{const a={};try{Cg&&this.ws.send(o)}catch{}r&&D0(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const e=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(e==="wss"&&Number(this.opts.port)!==443||e==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=P0()),this.supportsBinary||(t.b64=1);const r=R0(t),o=this.opts.hostname.indexOf(":")!==-1;return e+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}check(){return!!sa}}const Nk={websocket:Fk,polling:Dk},Hk=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Wk=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function yu(n){const t=n,e=n.indexOf("["),i=n.indexOf("]");e!=-1&&i!=-1&&(n=n.substring(0,e)+n.substring(e,i).replace(/:/g,";")+n.substring(i,n.length));let r=Hk.exec(n||""),o={},a=14;for(;a--;)o[Wk[a]]=r[a]||"";return e!=-1&&i!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=qk(o,o.path),o.queryKey=zk(o,o.query),o}function qk(n,t){const e=/\/{2,9}/g,i=t.replace(e,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&i.splice(0,1),t.slice(-1)=="/"&&i.splice(i.length-1,1),i}function zk(n,t){const e={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,r,o){r&&(e[r]=o)}),e}let B0=class kr extends le{constructor(t,e={}){super(),t&&typeof t=="object"&&(e=t,t=null),t?(t=yu(t),e.hostname=t.host,e.secure=t.protocol==="https"||t.protocol==="wss",e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=yu(e.host).host),Ya(this,e),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},e),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=Pk(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=A0,e.transport=t,this.id&&(e.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Nk[t](i)}open(){let t;if(this.opts.rememberUpgrade&&kr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(t){let e=this.createTransport(t),i=!1;kr.priorWebsocketSuccess=!1;const r=()=>{i||(e.send([{type:"ping",data:"probe"}]),e.once("packet",v=>{if(!i)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;kr.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(h(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{const d=new Error("probe error");d.transport=e.name,this.emitReserved("upgradeError",d)}}))};function o(){i||(i=!0,h(),e.close(),e=null)}const a=v=>{const d=new Error("probe error: "+v);d.transport=e.name,o(),this.emitReserved("upgradeError",d)};function c(){a("transport closed")}function u(){a("socket closed")}function f(v){e&&v.name!==e.name&&o()}const h=()=>{e.removeListener("open",r),e.removeListener("error",a),e.removeListener("close",c),this.off("close",u),this.off("upgrading",f)};e.once("open",r),e.once("error",a),e.once("close",c),this.once("close",u),this.once("upgrading",f),e.open()}onOpen(){if(this.readyState="open",kr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const e=this.upgrades.length;for(;t<e;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let i=0;i<this.writeBuffer.length;i++){const r=this.writeBuffer[i].data;if(r&&(e+=Ak(r)),i>0&&e>this.maxPayload)return this.writeBuffer.slice(0,i);e+=2}return this.writeBuffer}write(t,e,i){return this.sendPacket("message",t,e,i),this}send(t,e,i){return this.sendPacket("message",t,e,i),this}sendPacket(t,e,i,r){if(typeof e=="function"&&(r=e,e=void 0),typeof i=="function"&&(r=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const o={type:t,data:e,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},i=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}onError(t){kr.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let i=0;const r=t.length;for(;i<r;i++)~this.transports.indexOf(t[i])&&e.push(t[i]);return e}};B0.protocol=A0;function Uk(n,t="",e){let i=n;e=e||typeof location<"u"&&location,n==null&&(n=e.protocol+"//"+e.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=e.protocol+n:n=e.host+n),/^(https?|wss?):\/\//.test(n)||(typeof e<"u"?n=e.protocol+"//"+n:n="https://"+n),i=yu(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const o=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+o+":"+i.port+t,i.href=i.protocol+"://"+o+(e&&e.port===i.port?"":":"+i.port),i}const jk=typeof ArrayBuffer=="function",Vk=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,F0=Object.prototype.toString,$k=typeof Blob=="function"||typeof Blob<"u"&&F0.call(Blob)==="[object BlobConstructor]",Yk=typeof File=="function"||typeof File<"u"&&F0.call(File)==="[object FileConstructor]";function $u(n){return jk&&(n instanceof ArrayBuffer||Vk(n))||$k&&n instanceof Blob||Yk&&n instanceof File}function Ea(n,t){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let e=0,i=n.length;e<i;e++)if(Ea(n[e]))return!0;return!1}if($u(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Ea(n.toJSON(),!0);for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&Ea(n[e]))return!0;return!1}function Gk(n){const t=[],e=n.data,i=n;return i.data=bu(e,t),i.attachments=t.length,{packet:i,buffers:t}}function bu(n,t){if(!n)return n;if($u(n)){const e={_placeholder:!0,num:t.length};return t.push(n),e}else if(Array.isArray(n)){const e=new Array(n.length);for(let i=0;i<n.length;i++)e[i]=bu(n[i],t);return e}else if(typeof n=="object"&&!(n instanceof Date)){const e={};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=bu(n[i],t));return e}return n}function Kk(n,t){return n.data=xu(n.data,t),n.attachments=void 0,n}function xu(n,t){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<t.length)return t[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let e=0;e<n.length;e++)n[e]=xu(n[e],t);else if(typeof n=="object")for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e]=xu(n[e],t));return n}const Xk=5;var Pt;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Pt||(Pt={}));class Jk{constructor(t){this.replacer=t}encode(t){return(t.type===Pt.EVENT||t.type===Pt.ACK)&&Ea(t)?(t.type=t.type===Pt.EVENT?Pt.BINARY_EVENT:Pt.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===Pt.BINARY_EVENT||t.type===Pt.BINARY_ACK)&&(e+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(e+=t.nsp+","),t.id!=null&&(e+=t.id),t.data!=null&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){const e=Gk(t),i=this.encodeAsString(e.packet),r=e.buffers;return r.unshift(i),r}}class Yu extends le{constructor(t){super(),this.reviver=t}add(t){let e;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(t),e.type===Pt.BINARY_EVENT||e.type===Pt.BINARY_ACK?(this.reconstructor=new Zk(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if($u(t)||t.base64)if(this.reconstructor)e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let e=0;const i={type:Number(t.charAt(0))};if(Pt[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Pt.BINARY_EVENT||i.type===Pt.BINARY_ACK){const o=e+1;for(;t.charAt(++e)!=="-"&&e!=t.length;);const a=t.substring(o,e);if(a!=Number(a)||t.charAt(e)!=="-")throw new Error("Illegal attachments");i.attachments=Number(a)}if(t.charAt(e+1)==="/"){const o=e+1;for(;++e&&!(t.charAt(e)===","||e===t.length););i.nsp=t.substring(o,e)}else i.nsp="/";const r=t.charAt(e+1);if(r!==""&&Number(r)==r){const o=e+1;for(;++e;){const a=t.charAt(e);if(a==null||Number(a)!=a){--e;break}if(e===t.length)break}i.id=Number(t.substring(o,e+1))}if(t.charAt(++e)){const o=this.tryParse(t.substr(e));if(Yu.isPayloadValid(i.type,o))i.data=o;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,e){switch(t){case Pt.CONNECT:return typeof e=="object";case Pt.DISCONNECT:return e===void 0;case Pt.CONNECT_ERROR:return typeof e=="string"||typeof e=="object";case Pt.EVENT:case Pt.BINARY_EVENT:return Array.isArray(e)&&e.length>0;case Pt.ACK:case Pt.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Zk{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const e=Kk(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Qk=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Yu,Encoder:Jk,get PacketType(){return Pt},protocol:Xk},Symbol.toStringTag,{value:"Module"}));function _n(n,t,e){return n.on(t,e),function(){n.off(t,e)}}const tC=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class N0 extends le{constructor(t,e,i){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,i&&i.auth&&(this.auth=i.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[_n(t,"open",this.onopen.bind(this)),_n(t,"packet",this.onpacket.bind(this)),_n(t,"error",this.onerror.bind(this)),_n(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){if(tC.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');e.unshift(t);const i={type:Pt.EVENT,data:e};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const a=this.ids++,c=e.pop();this._registerAckCallback(a,c),i.id=a}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,e){const i=this.flags.timeout;if(i===void 0){this.acks[t]=e;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===t&&this.sendBuffer.splice(o,1);e.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...o)=>{this.io.clearTimeoutFn(r),e.apply(this,[null,...o])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Pt.CONNECT,data:t})}):this.packet({type:Pt.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Pt.CONNECT:if(t.data&&t.data.sid){const r=t.data.sid;this.onconnect(r)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Pt.EVENT:case Pt.BINARY_EVENT:this.onevent(t);break;case Pt.ACK:case Pt.BINARY_ACK:this.onack(t);break;case Pt.DISCONNECT:this.ondisconnect();break;case Pt.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const i of e)i.apply(this,t)}super.emit.apply(this,t)}ack(t){const e=this;let i=!1;return function(...r){i||(i=!0,e.packet({type:Pt.ACK,id:t,data:r}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Pt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let i=0;i<e.length;i++)if(t===e[i])return e.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let i=0;i<e.length;i++)if(t===e[i])return e.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const i of e)i.apply(this,t.data)}}}function Ir(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Ir.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*n);n=(Math.floor(t*10)&1)==0?n-e:n+e}return Math.min(n,this.max)|0};Ir.prototype.reset=function(){this.attempts=0};Ir.prototype.setMin=function(n){this.ms=n};Ir.prototype.setMax=function(n){this.max=n};Ir.prototype.setJitter=function(n){this.jitter=n};class wu extends le{constructor(t,e){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,Ya(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((i=e.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Ir({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const r=e.parser||Qk;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new B0(this.uri,this.opts);const e=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const r=_n(e,"open",function(){i.onopen(),t&&t()}),o=_n(e,"error",a=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",a),t?t(a):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const a=this._timeout;a===0&&r();const c=this.setTimeoutFn(()=>{r(),e.close(),e.emit("error",new Error("timeout"))},a);this.opts.autoUnref&&c.unref(),this.subs.push(function(){clearTimeout(c)})}return this.subs.push(r),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(_n(t,"ping",this.onping.bind(this)),_n(t,"data",this.ondata.bind(this)),_n(t,"error",this.onerror.bind(this)),_n(t,"close",this.onclose.bind(this)),_n(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){D0(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let i=this.nsps[t];return i||(i=new N0(this,t,e),this.nsps[t]=i),i}_destroy(t){const e=Object.keys(this.nsps);for(const i of e)if(this.nsps[i].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let i=0;i<e.length;i++)this.engine.write(e[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(r=>{r?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",r)):t.onreconnect()}))},e);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const es={};function ka(n,t){typeof n=="object"&&(t=n,n=void 0),t=t||{};const e=Uk(n,t.path||"/socket.io"),i=e.source,r=e.id,o=e.path,a=es[r]&&o in es[r].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let u;return c?u=new wu(i,t):(es[r]||(es[r]=new wu(i,t)),u=es[r]),e.query&&!t.query&&(t.query=e.queryKey),u.socket(e.path,t)}Object.assign(ka,{Manager:wu,Socket:N0,io:ka,connect:ka});class eC extends SE{constructor(){var t,e,i;super(...arguments),this.config={history:{limit:100}},this.instances={http:dk.create({baseURL:`${((t=window.DEV)==null?void 0:t.http.host)??location.pathname.split("/").slice(0,-3).join("/")}/_system`}),io:ka(((e=window.DEV)==null?void 0:e.io.origin)??location.origin,{path:((i=window.DEV)==null?void 0:i.io.path)??`${location.pathname.split("/").slice(0,-3).join("/")}/socket.io/`})},this.services={io:{exec:(r,o)=>new Promise(a=>this.instances.io.emit(r,o,a)),subscribe:(r,o)=>this.instances.io.on(r,o)}},this.events=new Bs}on(t,e){return this.events.on(t,e),this}once(t,e){return this.events.once(t,e),this}emit(t,...e){return this.events.emit(t,...e),this}assignConfig(t){return Object.assign(this,{config:t})}}const gt=new eC,nC=ae.compile(ME);class Ga extends te{constructor(t){var e;super(nC({})),this.options=t,this.instance=new TE({},((e=this.options)==null?void 0:e.depth)??3,{theme:"custom",afterCopyHandler:()=>gt.shared.popups.push("Copied!")}),this.provide({})}provide(t){return this.instance.json=t,this.clear().append(this.instance.render())}static build(t){return new Ga(t)}}const iC=ae.compile(AE);class ms extends te{constructor(t){super(),this.data=t,this.viewer=Ga.build({depth:3}).hide(),this.refresh()}provide(t){return Object.assign(this,{data:t})}refresh(){return this.replace(iC(this.data)).append(this.viewer),this.viewer.provide(tn.pick(this.data,["id","type","transports","schema"])),Ei.build(this.element.querySelector("button.activity")).handle(()=>gt.services.io.exec("expectations:update",{id:this.data.id,set:{isEnabled:!this.data.isEnabled}})),this.element.querySelector("div.meta").addEventListener("click",t=>t.composedPath().some(e=>{var i;return(i=e==null?void 0:e.classList)==null?void 0:i.contains("meta")})&&t.target.nodeName!=="BUTTON"?this.viewer.isHidden?this.viewer.show():this.viewer.hide():null),this}match(t){var e,i;return[this.data.group,this.data.name,(e=this.data.schema.forward)==null?void 0:e.baseUrl,(i=this.data.schema.forward)==null?void 0:i.url,this.data.meta.tags.map(({value:r})=>r).join()].some(r=>r==null?void 0:r.includes(t))}static build(t){return new ms(t)}}const rC=`
|
|
335
|
+
<div class="container history" id="{{id}}">
|
|
336
|
+
<div class="meta">
|
|
337
|
+
<div class="segment">
|
|
338
|
+
<span class="time">{{#toLocaleTime timestamp}}{{/toLocaleTime}}</span>
|
|
339
|
+
|
|
340
|
+
{{#if snapshot.error}}
|
|
341
|
+
<span class="error">
|
|
342
|
+
{{#compare snapshot.error.code.length 'lte' 24}}{{snapshot.error.code}}{{/compare}}
|
|
343
|
+
{{#compare snapshot.error.code.length 'gt' 24}}Error{{/compare}}
|
|
344
|
+
</span>
|
|
345
|
+
{{/if}}
|
|
346
|
+
|
|
347
|
+
{{#compare status 'eq' 'pending'}}
|
|
348
|
+
<span class="pending"><i class="fas fa-hourglass-start"></i></span>
|
|
349
|
+
{{/compare}}
|
|
350
|
+
|
|
351
|
+
{{#compare status 'eq' 'completed'}}
|
|
352
|
+
<span class="status
|
|
353
|
+
{{#compare snapshot.transport 'eq' 'http'}}
|
|
354
|
+
{{#compare snapshot.outgoing.status 'lt' 400}}green{{/compare}}
|
|
355
|
+
{{#compare snapshot.outgoing.status 'gte' 400}}red{{/compare}}
|
|
356
|
+
{{/compare}}
|
|
357
|
+
"><b>{{snapshot.outgoing.status}}</b> {{toSeconds duration}}s</span>
|
|
358
|
+
{{/compare}}
|
|
359
|
+
|
|
360
|
+
<span class="method" style="color: {{toColor snapshot.incoming.method}};">{{snapshot.incoming.method}}</span>
|
|
361
|
+
<span class="path">{{> truncated value=snapshot.incoming.path length=45}}</span>
|
|
362
|
+
|
|
363
|
+
{{#if snapshot.seed}}<span class="seed">{{snapshot.seed}}</span>{{/if}}
|
|
364
|
+
</div>
|
|
365
|
+
|
|
366
|
+
<span class="arrow"><i class="fas fa-chevron-right"></i></span>
|
|
367
|
+
|
|
368
|
+
{{#if expectation}}
|
|
369
|
+
{{>expectationMeta expectation format='short' isCached=snapshot.forwarded.isCached}}
|
|
370
|
+
{{else}}
|
|
371
|
+
<div class="segment"><span class="handled-with red">Nowhere</span></div>
|
|
372
|
+
{{/if}}
|
|
373
|
+
</div>
|
|
374
|
+
|
|
375
|
+
{{!-- {{#if snapshot.messages}}
|
|
376
|
+
<p class="messages-title">
|
|
377
|
+
<span class="count">Total messages <b>{{snapshot.messages.length}}</b></span>
|
|
378
|
+
</p>
|
|
379
|
+
|
|
380
|
+
<div class="messages">
|
|
381
|
+
{{#each snapshot.messages}}
|
|
382
|
+
<div id="{{id}}" class="message {{location}}">
|
|
383
|
+
<p class="header">
|
|
384
|
+
{{#compare location 'eq' 'incoming'}}<i class="fas fa-angle-right"></i>{{/compare}}
|
|
385
|
+
{{#compare location 'eq' 'outgoing'}}<i class="fas fa-angle-left"></i>{{/compare}}
|
|
386
|
+
<span class="time">{{#toLocaleTime timestamp}}{{/toLocaleTime}}</span>
|
|
387
|
+
</p>
|
|
388
|
+
|
|
389
|
+
<pre class="panel hidden"></pre>
|
|
390
|
+
</div>
|
|
391
|
+
{{/each}}
|
|
392
|
+
</div>
|
|
393
|
+
{{/if}} --}}
|
|
394
|
+
</div>
|
|
395
|
+
`,sC=ae.compile(rC);class vs extends te{constructor(t){super(),this.data=t,this.viewer=Ga.build({depth:2}).hide(),this.refresh()}provide(t){return Object.assign(this,{data:t})}refresh(){var t,e;return this.replace(sC(this.data)).append(this.viewer),this.viewer.provide({event:this.data.snapshot.event,transport:this.data.snapshot.transport,...Object.keys(this.data.snapshot.flags).length&&{flags:this.data.snapshot.flags},...this.data.expectation&&{expectation:{id:this.data.expectation.id,group:this.data.expectation.group,...this.data.expectation.schema.forward&&{forward:this.data.expectation.schema.forward}}},...((t=this.data.snapshot.cache)==null?void 0:t.isEnabled)&&{cache:this.data.snapshot.cache},...this.data.snapshot.seed&&{seed:this.data.snapshot.seed},...this.data.snapshot.container&&{container:this.data.snapshot.container},incoming:this.data.snapshot.incoming,...this.data.snapshot.error&&{error:this.data.snapshot.error},...this.data.status==="completed"&&{outgoing:this.data.snapshot.outgoing},...this.data.snapshot.forwarded&&{forwarded:this.data.snapshot.forwarded},...((e=this.data.snapshot.messages)==null?void 0:e.length)&&{messages:this.data.snapshot.messages}}),this.element.querySelector("div.meta").addEventListener("click",i=>i.composedPath().some(r=>{var o;return(o=r==null?void 0:r.classList)==null?void 0:o.contains("meta")})?this.viewer.isHidden?this.viewer.show():this.viewer.hide():null),this}match(t){var i;return[this.data.group,(i=this.data.expectation)==null?void 0:i.name,this.data.snapshot.incoming.path,this.data.snapshot.incoming.method,this.data.snapshot.incoming.dataRaw,this.data.snapshot.incoming.error,String(this.data.snapshot.outgoing.status),String(this.data.snapshot.seed??""),this.data.snapshot.outgoing.dataRaw].some(r=>r==null?void 0:r.includes(t))||[this.data.snapshot.incoming.query,this.data.snapshot.incoming.headers,this.data.snapshot.outgoing.headers,this.data.snapshot.container,this.data.snapshot.state,this.data.snapshot.cache].some(r=>{var o;return(o=JSON.stringify(r))==null?void 0:o.includes(t)})}static build(t){return new vs(t)}}class Gu extends te{constructor(t={}){super('<div class="curtain hidden"></div>'),this.options=t,t.isPreventedToManualClose||this.element.addEventListener("click",e=>e.target===this.element?this.hide():null)}static build(t){return new Gu(t)}}class Ku extends Gu{constructor(){super({isPreventedToManualClose:!0}),this.append('<div><p>Ping pong</p><div class="loader"></div></div>').assignId("loader")}static build(){return new Ku}}const oC=`
|
|
396
|
+
<div class="popup-message {{level}}">
|
|
397
|
+
{{#compare level 'eq' 'info'}}<i class="fas fa-check"></i>{{/compare}}
|
|
398
|
+
{{#compare level 'eq' 'warning'}}<i class="fas fa-exclamation-triangle"></i>{{/compare}}
|
|
399
|
+
{{#compare level 'eq' 'error'}}<i class="fas fa-times"></i>{{/compare}}
|
|
400
|
+
|
|
401
|
+
<span>{{{message}}}</span>
|
|
402
|
+
</div>
|
|
403
|
+
`,aC=ae.compile(oC);class Xu extends te{constructor(){super(),this.element.classList.add("popups")}push(t,e={}){const i=this.compileHtmlStringToElement(aC({message:t,level:e.level??"info"}));this.element.prepend(i),setTimeout(()=>i.remove(),3e3)}static build(){return new Xu}}const lC=`
|
|
404
|
+
<div class="search">
|
|
405
|
+
<i class="fas fa-search"></i>
|
|
406
|
+
<div class="input" title="{{title}}"><input data-key="search" type="text"></div>
|
|
407
|
+
<button><i class="far fa-times-circle"></i></button>
|
|
408
|
+
</div>
|
|
409
|
+
`,cC=ae.compile(lC);class Ka extends te{constructor(t){super(cC({title:(t==null?void 0:t.title)??"Type something"})),this.options=t,this.events=new s0.EventEmitter,this.input=this.element.querySelector("input"),this.button=this.element.querySelector("button"),this.button.classList.add("hidden"),this.button.addEventListener("click",()=>this.clear()),this.on("input",()=>{this.button.classList.remove("hidden"),this.element.classList.add("filled")}),this.on("clear",()=>{this.button.classList.add("hidden"),this.element.classList.remove("filled")}),this.input.addEventListener("keydown",tn.debounce(()=>this.input.value?this.emit("input",this.input.value):this.clear(),350))}clear(){return this.input.value="",this.emit("clear")}on(t,e){return this.events.on(t,e),this}once(t,e){return this.events.once(t,e),this}emit(t,...e){return this.events.emit(t,...e),this}static build(t){return new Ka(t)}}const uC=`
|
|
410
|
+
<header>
|
|
411
|
+
<div id="tabs">
|
|
412
|
+
{{#each tabs}}
|
|
413
|
+
{{#compare type 'eq' 'separator'}}<hr>{{/compare}}
|
|
414
|
+
|
|
415
|
+
{{#compare type 'eq' 'section'}}
|
|
416
|
+
<button class="{{#unless entity.meta.name}}icon-only{{/unless}} {{#if isSelected}}checked{{/if}}" id="{{id}}">
|
|
417
|
+
<i class="{{entity.meta.icon}}"></i>{{entity.meta.name}}
|
|
418
|
+
</button>
|
|
419
|
+
{{/compare}}
|
|
420
|
+
{{/each}}
|
|
421
|
+
</div>
|
|
422
|
+
</header>
|
|
423
|
+
`,hC=ae.compile(uC);class Ju extends te{constructor(t){super(hC({tabs:t.map(e=>e.type==="section"?Object.assign(e,{id:e.entity.id,isSelected:!e.entity.isHidden}):e)})),this.tabs=t,this.sections=this.tabs.map(e=>e.type==="section"?e.entity:null).filter(Boolean).reduce((e,i)=>tn.set(e,i.id,i),{}),this.events=new Bs,Object.values(this.sections).forEach(e=>e.on("select",()=>{const i=this.element.querySelector(`button#${e.id}`);this.element.querySelectorAll("div#tabs button").forEach(r=>r.classList.remove("checked")),i==null||i.classList.add("checked")})),this.element.querySelector("div#tabs").addEventListener("click",e=>{var r;const i=e;((r=i.target)==null?void 0:r.nodeName)!=="BUTTON"||!this.sections[i.target.id]||this.emit("select",this.sections[i.target.id])}),this.on("select",e=>{Object.values(this.sections).forEach(i=>i.hide()),gt.switchStorage(e.storage),e.isInitialized?e.show().select():e.initialize().show().select()})}on(t,e){return this.events.on(t,e),this}once(t,e){return this.events.once(t,e),this}emit(t,...e){return this.events.emit(t,...e),this}static build(t){return new Ju(t)}}const fC=`
|
|
424
|
+
<div class="empty">
|
|
425
|
+
<i class="fas fa-hourglass-start"></i>
|
|
426
|
+
<p>There's still nothing...</p>
|
|
427
|
+
</div>
|
|
428
|
+
`,dC=ae.compile(fC);class Xa extends te{static build(){return new Xa(dC({}))}}/*!
|
|
429
|
+
* @kurkle/color v0.3.4
|
|
430
|
+
* https://github.com/kurkle/color#readme
|
|
431
|
+
* (c) 2024 Jukka Kurkela
|
|
432
|
+
* Released under the MIT License
|
|
433
|
+
*/function Fs(n){return n+.5|0}const bi=(n,t,e)=>Math.max(Math.min(n,e),t);function cs(n){return bi(Fs(n*2.55),0,255)}function ki(n){return bi(Fs(n*255),0,255)}function Jn(n){return bi(Fs(n/2.55)/100,0,1)}function Mg(n){return bi(Fs(n*100),0,100)}const hn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Su=[..."0123456789ABCDEF"],pC=n=>Su[n&15],gC=n=>Su[(n&240)>>4]+Su[n&15],oa=n=>(n&240)>>4===(n&15),mC=n=>oa(n.r)&&oa(n.g)&&oa(n.b)&&oa(n.a);function vC(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&hn[n[1]]*17,g:255&hn[n[2]]*17,b:255&hn[n[3]]*17,a:t===5?hn[n[4]]*17:255}:(t===7||t===9)&&(e={r:hn[n[1]]<<4|hn[n[2]],g:hn[n[3]]<<4|hn[n[4]],b:hn[n[5]]<<4|hn[n[6]],a:t===9?hn[n[7]]<<4|hn[n[8]]:255})),e}const _C=(n,t)=>n<255?t(n):"";function yC(n){var t=mC(n)?pC:gC;return n?"#"+t(n.r)+t(n.g)+t(n.b)+_C(n.a,t):void 0}const bC=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function H0(n,t,e){const i=t*Math.min(e,1-e),r=(o,a=(o+n/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[r(0),r(8),r(4)]}function xC(n,t,e){const i=(r,o=(r+n/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function wC(n,t,e){const i=H0(n,1,.5);let r;for(t+e>1&&(r=1/(t+e),t*=r,e*=r),r=0;r<3;r++)i[r]*=1-t-e,i[r]+=t;return i}function SC(n,t,e,i,r){return n===r?(t-e)/i+(t<e?6:0):t===r?(e-n)/i+2:(n-t)/i+4}function Zu(n){const e=n.r/255,i=n.g/255,r=n.b/255,o=Math.max(e,i,r),a=Math.min(e,i,r),c=(o+a)/2;let u,f,h;return o!==a&&(h=o-a,f=c>.5?h/(2-o-a):h/(o+a),u=SC(e,i,r,h,o),u=u*60+.5),[u|0,f||0,c]}function Qu(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map(ki)}function th(n,t,e){return Qu(H0,n,t,e)}function EC(n,t,e){return Qu(wC,n,t,e)}function kC(n,t,e){return Qu(xC,n,t,e)}function W0(n){return(n%360+360)%360}function CC(n){const t=bC.exec(n);let e=255,i;if(!t)return;t[5]!==i&&(e=t[6]?cs(+t[5]):ki(+t[5]));const r=W0(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?i=EC(r,o,a):t[1]==="hsv"?i=kC(r,o,a):i=th(r,o,a),{r:i[0],g:i[1],b:i[2],a:e}}function AC(n,t){var e=Zu(n);e[0]=W0(e[0]+t),e=th(e),n.r=e[0],n.g=e[1],n.b=e[2]}function MC(n){if(!n)return;const t=Zu(n),e=t[0],i=Mg(t[1]),r=Mg(t[2]);return n.a<255?`hsla(${e}, ${i}%, ${r}%, ${Jn(n.a)})`:`hsl(${e}, ${i}%, ${r}%)`}const Og={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Lg={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function OC(){const n={},t=Object.keys(Lg),e=Object.keys(Og);let i,r,o,a,c;for(i=0;i<t.length;i++){for(a=c=t[i],r=0;r<e.length;r++)o=e[r],c=c.replace(o,Og[o]);o=parseInt(Lg[a],16),n[c]=[o>>16&255,o>>8&255,o&255]}return n}let aa;function LC(n){aa||(aa=OC(),aa.transparent=[0,0,0,0]);const t=aa[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const PC=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function RC(n){const t=PC.exec(n);let e=255,i,r,o;if(t){if(t[7]!==i){const a=+t[7];e=t[8]?cs(a):bi(a*255,0,255)}return i=+t[1],r=+t[3],o=+t[5],i=255&(t[2]?cs(i):bi(i,0,255)),r=255&(t[4]?cs(r):bi(r,0,255)),o=255&(t[6]?cs(o):bi(o,0,255)),{r:i,g:r,b:o,a:e}}}function TC(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${Jn(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}const eu=n=>n<=.0031308?n*12.92:Math.pow(n,1/2.4)*1.055-.055,wr=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function IC(n,t,e){const i=wr(Jn(n.r)),r=wr(Jn(n.g)),o=wr(Jn(n.b));return{r:ki(eu(i+e*(wr(Jn(t.r))-i))),g:ki(eu(r+e*(wr(Jn(t.g))-r))),b:ki(eu(o+e*(wr(Jn(t.b))-o))),a:n.a+e*(t.a-n.a)}}function la(n,t,e){if(n){let i=Zu(n);i[t]=Math.max(0,Math.min(i[t]+i[t]*e,t===0?360:1)),i=th(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function q0(n,t){return n&&Object.assign(t||{},n)}function Pg(n){var t={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(t={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(t.a=ki(n[3]))):(t=q0(n,{r:0,g:0,b:0,a:1}),t.a=ki(t.a)),t}function DC(n){return n.charAt(0)==="r"?RC(n):CC(n)}class Cs{constructor(t){if(t instanceof Cs)return t;const e=typeof t;let i;e==="object"?i=Pg(t):e==="string"&&(i=vC(t)||LC(t)||DC(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=q0(this._rgb);return t&&(t.a=Jn(t.a)),t}set rgb(t){this._rgb=Pg(t)}rgbString(){return this._valid?TC(this._rgb):void 0}hexString(){return this._valid?yC(this._rgb):void 0}hslString(){return this._valid?MC(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,r=t.rgb;let o;const a=e===o?.5:e,c=2*a-1,u=i.a-r.a,f=((c*u===-1?c:(c+u)/(1+c*u))+1)/2;o=1-f,i.r=255&f*i.r+o*r.r+.5,i.g=255&f*i.g+o*r.g+.5,i.b=255&f*i.b+o*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=IC(this._rgb,t._rgb,e)),this}clone(){return new Cs(this.rgb)}alpha(t){return this._rgb.a=ki(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=Fs(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return la(this._rgb,2,t),this}darken(t){return la(this._rgb,2,-t),this}saturate(t){return la(this._rgb,1,t),this}desaturate(t){return la(this._rgb,1,-t),this}rotate(t){return AC(this._rgb,t),this}}/*!
|
|
434
|
+
* Chart.js v4.4.8
|
|
435
|
+
* https://www.chartjs.org
|
|
436
|
+
* (c) 2025 Chart.js Contributors
|
|
437
|
+
* Released under the MIT License
|
|
438
|
+
*/function Gn(){}const BC=(()=>{let n=0;return()=>n++})();function Ct(n){return n==null}function Gt(n){if(Array.isArray&&Array.isArray(n))return!0;const t=Object.prototype.toString.call(n);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Mt(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function ee(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function Ze(n,t){return ee(n)?n:t}function _t(n,t){return typeof n>"u"?t:n}const FC=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,z0=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*t:+n;function qt(n,t,e){if(n&&typeof n.call=="function")return n.apply(e,t)}function Bt(n,t,e,i){let r,o,a;if(Gt(n))for(o=n.length,r=0;r<o;r++)t.call(e,n[r],r);else if(Mt(n))for(a=Object.keys(n),o=a.length,r=0;r<o;r++)t.call(e,n[a[r]],a[r])}function Ba(n,t){let e,i,r,o;if(!n||!t||n.length!==t.length)return!1;for(e=0,i=n.length;e<i;++e)if(r=n[e],o=t[e],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function Fa(n){if(Gt(n))return n.map(Fa);if(Mt(n)){const t=Object.create(null),e=Object.keys(n),i=e.length;let r=0;for(;r<i;++r)t[e[r]]=Fa(n[e[r]]);return t}return n}function U0(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function NC(n,t,e,i){if(!U0(n))return;const r=t[n],o=e[n];Mt(r)&&Mt(o)?As(r,o,i):t[n]=Fa(o)}function As(n,t,e){const i=Gt(t)?t:[t],r=i.length;if(!Mt(n))return n;e=e||{};const o=e.merger||NC;let a;for(let c=0;c<r;++c){if(a=i[c],!Mt(a))continue;const u=Object.keys(a);for(let f=0,h=u.length;f<h;++f)o(u[f],n,a,e)}return n}function _s(n,t){return As(n,t,{merger:HC})}function HC(n,t,e){if(!U0(n))return;const i=t[n],r=e[n];Mt(i)&&Mt(r)?_s(i,r):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=Fa(r))}const Rg={"":n=>n,x:n=>n.x,y:n=>n.y};function WC(n){const t=n.split("."),e=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function qC(n){const t=WC(n);return e=>{for(const i of t){if(i==="")break;e=e&&e[i]}return e}}function Ci(n,t){return(Rg[t]||(Rg[t]=qC(t)))(n)}function eh(n){return n.charAt(0).toUpperCase()+n.slice(1)}const Ms=n=>typeof n<"u",Ai=n=>typeof n=="function",Tg=(n,t)=>{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;return!0};function zC(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}const jt=Math.PI,Ut=2*jt,UC=Ut+jt,Na=Number.POSITIVE_INFINITY,jC=jt/180,re=jt/2,qi=jt/4,Ig=jt*2/3,xi=Math.log10,Dn=Math.sign;function ys(n,t,e){return Math.abs(n-t)<e}function Dg(n){const t=Math.round(n);n=ys(n,t,n/1e3)?t:n;const e=Math.pow(10,Math.floor(xi(n))),i=n/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function VC(n){const t=[],e=Math.sqrt(n);let i;for(i=1;i<e;i++)n%i===0&&(t.push(i),t.push(n/i));return e===(e|0)&&t.push(e),t.sort((r,o)=>r-o).pop(),t}function $C(n){return typeof n=="symbol"||typeof n=="object"&&n!==null&&!(Symbol.toPrimitive in n||"toString"in n||"valueOf"in n)}function Or(n){return!$C(n)&&!isNaN(parseFloat(n))&&isFinite(n)}function YC(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}function j0(n,t,e){let i,r,o;for(i=0,r=n.length;i<r;i++)o=n[i][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function yn(n){return n*(jt/180)}function nh(n){return n*(180/jt)}function Bg(n){if(!ee(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function V0(n,t){const e=t.x-n.x,i=t.y-n.y,r=Math.sqrt(e*e+i*i);let o=Math.atan2(i,e);return o<-.5*jt&&(o+=Ut),{angle:o,distance:r}}function Eu(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function GC(n,t){return(n-t+UC)%Ut-jt}function Qe(n){return(n%Ut+Ut)%Ut}function Os(n,t,e,i){const r=Qe(n),o=Qe(t),a=Qe(e),c=Qe(o-r),u=Qe(a-r),f=Qe(r-o),h=Qe(r-a);return r===o||r===a||i&&o===a||c>u&&f<h}function ge(n,t,e){return Math.max(t,Math.min(e,n))}function KC(n){return ge(n,-32768,32767)}function ii(n,t,e,i=1e-6){return n>=Math.min(t,e)-i&&n<=Math.max(t,e)+i}function ih(n,t,e){e=e||(a=>n[a]<t);let i=n.length-1,r=0,o;for(;i-r>1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}const ri=(n,t,e,i)=>ih(n,e,i?r=>{const o=n[r][t];return o<e||o===e&&n[r+1][t]===e}:r=>n[r][t]<e),XC=(n,t,e)=>ih(n,e,i=>n[i][t]>=e);function JC(n,t,e){let i=0,r=n.length;for(;i<r&&n[i]<t;)i++;for(;r>i&&n[r-1]>e;)r--;return i>0||r<n.length?n.slice(i,r):n}const $0=["push","pop","shift","splice","unshift"];function ZC(n,t){if(n._chartjs){n._chartjs.listeners.push(t);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),$0.forEach(e=>{const i="_onData"+eh(e),r=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...o){const a=r.apply(this,o);return n._chartjs.listeners.forEach(c=>{typeof c[i]=="function"&&c[i](...o)}),a}})})}function Fg(n,t){const e=n._chartjs;if(!e)return;const i=e.listeners,r=i.indexOf(t);r!==-1&&i.splice(r,1),!(i.length>0)&&($0.forEach(o=>{delete n[o]}),delete n._chartjs)}function Y0(n){const t=new Set(n);return t.size===n.length?n:Array.from(t)}const G0=function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame}();function K0(n,t){let e=[],i=!1;return function(...r){e=r,i||(i=!0,G0.call(window,()=>{i=!1,n.apply(t,e)}))}}function QC(n,t){let e;return function(...i){return t?(clearTimeout(e),e=setTimeout(n,t,i)):n.apply(this,i),t}}const rh=n=>n==="start"?"left":n==="end"?"right":"center",Se=(n,t,e)=>n==="start"?t:n==="end"?e:(t+e)/2,tA=(n,t,e,i)=>n===(i?"left":"right")?e:n==="center"?(t+e)/2:t;function X0(n,t,e){const i=t.length;let r=0,o=i;if(n._sorted){const{iScale:a,vScale:c,_parsed:u}=n,f=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null,h=a.axis,{min:v,max:d,minDefined:g,maxDefined:m}=a.getUserBounds();if(g){if(r=Math.min(ri(u,h,v).lo,e?i:ri(t,h,a.getPixelForValue(v)).lo),f){const y=u.slice(0,r+1).reverse().findIndex(x=>!Ct(x[c.axis]));r-=Math.max(0,y)}r=ge(r,0,i-1)}if(m){let y=Math.max(ri(u,a.axis,d,!0).hi+1,e?0:ri(t,h,a.getPixelForValue(d),!0).hi+1);if(f){const x=u.slice(y-1).findIndex(k=>!Ct(k[c.axis]));y+=Math.max(0,x)}o=ge(y,r,i)-r}else o=i-r}return{start:r,count:o}}function J0(n){const{xScale:t,yScale:e,_scaleRanges:i}=n,r={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!i)return n._scaleRanges=r,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}const ca=n=>n===0||n===1,Ng=(n,t,e)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-t)*Ut/e)),Hg=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*Ut/e)+1,bs={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>-Math.cos(n*re)+1,easeOutSine:n=>Math.sin(n*re),easeInOutSine:n=>-.5*(Math.cos(jt*n)-1),easeInExpo:n=>n===0?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>n===1?1:-Math.pow(2,-10*n)+1,easeInOutExpo:n=>ca(n)?n:n<.5?.5*Math.pow(2,10*(n*2-1)):.5*(-Math.pow(2,-10*(n*2-1))+2),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>ca(n)?n:Ng(n,.075,.3),easeOutElastic:n=>ca(n)?n:Hg(n,.075,.3),easeInOutElastic(n){return ca(n)?n:n<.5?.5*Ng(n*2,.1125,.45):.5+.5*Hg(n*2-1,.1125,.45)},easeInBack(n){return n*n*((1.70158+1)*n-1.70158)},easeOutBack(n){return(n-=1)*n*((1.70158+1)*n+1.70158)+1},easeInOutBack(n){let t=1.70158;return(n/=.5)<1?.5*(n*n*(((t*=1.525)+1)*n-t)):.5*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:n=>1-bs.easeOutBounce(1-n),easeOutBounce(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:n=>n<.5?bs.easeInBounce(n*2)*.5:bs.easeOutBounce(n*2-1)*.5+.5};function sh(n){if(n&&typeof n=="object"){const t=n.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Wg(n){return sh(n)?n:new Cs(n)}function nu(n){return sh(n)?n:new Cs(n).saturate(.5).darken(.1).hexString()}const eA=["x","y","borderWidth","radius","tension"],nA=["color","borderColor","backgroundColor"];function iA(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),n.set("animations",{colors:{type:"color",properties:nA},numbers:{type:"number",properties:eA}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function rA(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const qg=new Map;function sA(n,t){t=t||{};const e=n+JSON.stringify(t);let i=qg.get(e);return i||(i=new Intl.NumberFormat(n,t),qg.set(e,i)),i}function Ns(n,t,e){return sA(t,e).format(n)}const Z0={values(n){return Gt(n)?n:""+n},numeric(n,t,e){if(n===0)return"0";const i=this.chart.options.locale;let r,o=n;if(e.length>1){const f=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(f<1e-4||f>1e15)&&(r="scientific"),o=oA(n,e)}const a=xi(Math.abs(o)),c=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),u={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(u,this.options.ticks.format),Ns(n,i,u)},logarithmic(n,t,e){if(n===0)return"0";const i=e[t].significand||n/Math.pow(10,Math.floor(xi(n)));return[1,2,3,5,10,15].includes(i)||t>.8*e.length?Z0.numeric.call(this,n,t,e):""}};function oA(n,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),e}var Ja={formatters:Z0};function aA(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ja.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Zi=Object.create(null),ku=Object.create(null);function xs(n,t){if(!t)return n;const e=t.split(".");for(let i=0,r=e.length;i<r;++i){const o=e[i];n=n[o]||(n[o]=Object.create(null))}return n}function iu(n,t,e){return typeof t=="string"?As(xs(n,t),e):As(xs(n,""),t)}class lA{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>nu(r.backgroundColor),this.hoverBorderColor=(i,r)=>nu(r.borderColor),this.hoverColor=(i,r)=>nu(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return iu(this,t,e)}get(t){return xs(this,t)}describe(t,e){return iu(ku,t,e)}override(t,e){return iu(Zi,t,e)}route(t,e,i,r){const o=xs(this,t),a=xs(this,i),c="_"+e;Object.defineProperties(o,{[c]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const u=this[c],f=a[r];return Mt(u)?Object.assign({},f,u):_t(u,f)},set(u){this[c]=u}}})}apply(t){t.forEach(e=>e(this))}}var Kt=new lA({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[iA,rA,aA]);function cA(n){return!n||Ct(n.size)||Ct(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function Ha(n,t,e,i,r){let o=t[r];return o||(o=t[r]=n.measureText(r).width,e.push(r)),o>i&&(i=o),i}function uA(n,t,e,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),n.save(),n.font=t;let a=0;const c=e.length;let u,f,h,v,d;for(u=0;u<c;u++)if(v=e[u],v!=null&&!Gt(v))a=Ha(n,r,o,a,v);else if(Gt(v))for(f=0,h=v.length;f<h;f++)d=v[f],d!=null&&!Gt(d)&&(a=Ha(n,r,o,a,d));n.restore();const g=o.length/2;if(g>e.length){for(u=0;u<g;u++)delete r[o[u]];o.splice(0,g)}return a}function zi(n,t,e){const i=n.currentDevicePixelRatio,r=e!==0?Math.max(e/2,.5):0;return Math.round((t-r)*i)/i+r}function zg(n,t){!t&&!n||(t=t||n.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,n.width,n.height),t.restore())}function Cu(n,t,e,i){Q0(n,t,e,i,null)}function Q0(n,t,e,i,r){let o,a,c,u,f,h,v,d;const g=t.pointStyle,m=t.rotation,y=t.radius;let x=(m||0)*jC;if(g&&typeof g=="object"&&(o=g.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){n.save(),n.translate(e,i),n.rotate(x),n.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),n.restore();return}if(!(isNaN(y)||y<=0)){switch(n.beginPath(),g){default:r?n.ellipse(e,i,r/2,y,0,0,Ut):n.arc(e,i,y,0,Ut),n.closePath();break;case"triangle":h=r?r/2:y,n.moveTo(e+Math.sin(x)*h,i-Math.cos(x)*y),x+=Ig,n.lineTo(e+Math.sin(x)*h,i-Math.cos(x)*y),x+=Ig,n.lineTo(e+Math.sin(x)*h,i-Math.cos(x)*y),n.closePath();break;case"rectRounded":f=y*.516,u=y-f,a=Math.cos(x+qi)*u,v=Math.cos(x+qi)*(r?r/2-f:u),c=Math.sin(x+qi)*u,d=Math.sin(x+qi)*(r?r/2-f:u),n.arc(e-v,i-c,f,x-jt,x-re),n.arc(e+d,i-a,f,x-re,x),n.arc(e+v,i+c,f,x,x+re),n.arc(e-d,i+a,f,x+re,x+jt),n.closePath();break;case"rect":if(!m){u=Math.SQRT1_2*y,h=r?r/2:u,n.rect(e-h,i-u,2*h,2*u);break}x+=qi;case"rectRot":v=Math.cos(x)*(r?r/2:y),a=Math.cos(x)*y,c=Math.sin(x)*y,d=Math.sin(x)*(r?r/2:y),n.moveTo(e-v,i-c),n.lineTo(e+d,i-a),n.lineTo(e+v,i+c),n.lineTo(e-d,i+a),n.closePath();break;case"crossRot":x+=qi;case"cross":v=Math.cos(x)*(r?r/2:y),a=Math.cos(x)*y,c=Math.sin(x)*y,d=Math.sin(x)*(r?r/2:y),n.moveTo(e-v,i-c),n.lineTo(e+v,i+c),n.moveTo(e+d,i-a),n.lineTo(e-d,i+a);break;case"star":v=Math.cos(x)*(r?r/2:y),a=Math.cos(x)*y,c=Math.sin(x)*y,d=Math.sin(x)*(r?r/2:y),n.moveTo(e-v,i-c),n.lineTo(e+v,i+c),n.moveTo(e+d,i-a),n.lineTo(e-d,i+a),x+=qi,v=Math.cos(x)*(r?r/2:y),a=Math.cos(x)*y,c=Math.sin(x)*y,d=Math.sin(x)*(r?r/2:y),n.moveTo(e-v,i-c),n.lineTo(e+v,i+c),n.moveTo(e+d,i-a),n.lineTo(e-d,i+a);break;case"line":a=r?r/2:Math.cos(x)*y,c=Math.sin(x)*y,n.moveTo(e-a,i-c),n.lineTo(e+a,i+c);break;case"dash":n.moveTo(e,i),n.lineTo(e+Math.cos(x)*(r?r/2:y),i+Math.sin(x)*y);break;case!1:n.closePath();break}n.fill(),t.borderWidth>0&&n.stroke()}}function si(n,t,e){return e=e||.5,!t||n&&n.x>t.left-e&&n.x<t.right+e&&n.y>t.top-e&&n.y<t.bottom+e}function Za(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()}function Qa(n){n.restore()}function hA(n,t,e,i,r){if(!t)return n.lineTo(e.x,e.y);if(r==="middle"){const o=(t.x+e.x)/2;n.lineTo(o,t.y),n.lineTo(o,e.y)}else r==="after"!=!!i?n.lineTo(t.x,e.y):n.lineTo(e.x,t.y);n.lineTo(e.x,e.y)}function fA(n,t,e,i){if(!t)return n.lineTo(e.x,e.y);n.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function dA(n,t){t.translation&&n.translate(t.translation[0],t.translation[1]),Ct(t.rotation)||n.rotate(t.rotation),t.color&&(n.fillStyle=t.color),t.textAlign&&(n.textAlign=t.textAlign),t.textBaseline&&(n.textBaseline=t.textBaseline)}function pA(n,t,e,i,r){if(r.strikethrough||r.underline){const o=n.measureText(i),a=t-o.actualBoundingBoxLeft,c=t+o.actualBoundingBoxRight,u=e-o.actualBoundingBoxAscent,f=e+o.actualBoundingBoxDescent,h=r.strikethrough?(u+f)/2:f;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=r.decorationWidth||2,n.moveTo(a,h),n.lineTo(c,h),n.stroke()}}function gA(n,t){const e=n.fillStyle;n.fillStyle=t.color,n.fillRect(t.left,t.top,t.width,t.height),n.fillStyle=e}function Qi(n,t,e,i,r,o={}){const a=Gt(t)?t:[t],c=o.strokeWidth>0&&o.strokeColor!=="";let u,f;for(n.save(),n.font=r.string,dA(n,o),u=0;u<a.length;++u)f=a[u],o.backdrop&&gA(n,o.backdrop),c&&(o.strokeColor&&(n.strokeStyle=o.strokeColor),Ct(o.strokeWidth)||(n.lineWidth=o.strokeWidth),n.strokeText(f,e,i,o.maxWidth)),n.fillText(f,e,i,o.maxWidth),pA(n,e,i,f,o),i+=Number(r.lineHeight);n.restore()}function Ls(n,t){const{x:e,y:i,w:r,h:o,radius:a}=t;n.arc(e+a.topLeft,i+a.topLeft,a.topLeft,1.5*jt,jt,!0),n.lineTo(e,i+o-a.bottomLeft),n.arc(e+a.bottomLeft,i+o-a.bottomLeft,a.bottomLeft,jt,re,!0),n.lineTo(e+r-a.bottomRight,i+o),n.arc(e+r-a.bottomRight,i+o-a.bottomRight,a.bottomRight,re,0,!0),n.lineTo(e+r,i+a.topRight),n.arc(e+r-a.topRight,i+a.topRight,a.topRight,0,-re,!0),n.lineTo(e+a.topLeft,i)}const mA=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,vA=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function _A(n,t){const e=(""+n).match(mA);if(!e||e[1]==="normal")return t*1.2;switch(n=+e[2],e[3]){case"px":return n;case"%":n/=100;break}return t*n}const yA=n=>+n||0;function oh(n,t){const e={},i=Mt(t),r=i?Object.keys(t):t,o=Mt(n)?i?a=>_t(n[a],n[t[a]]):a=>n[a]:()=>n;for(const a of r)e[a]=yA(o(a));return e}function tv(n){return oh(n,{top:"y",right:"x",bottom:"y",left:"x"})}function Xi(n){return oh(n,["topLeft","topRight","bottomLeft","bottomRight"])}function ke(n){const t=tv(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function de(n,t){n=n||{},t=t||Kt.font;let e=_t(n.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let i=_t(n.style,t.style);i&&!(""+i).match(vA)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:_t(n.family,t.family),lineHeight:_A(_t(n.lineHeight,t.lineHeight),e),size:e,style:i,weight:_t(n.weight,t.weight),string:""};return r.string=cA(r),r}function us(n,t,e,i){let r,o,a;for(r=0,o=n.length;r<o;++r)if(a=n[r],a!==void 0&&a!==void 0)return a}function bA(n,t,e){const{min:i,max:r}=n,o=z0(t,(r-i)/2),a=(c,u)=>e&&c===0?0:c+u;return{min:a(i,-Math.abs(o)),max:a(r,o)}}function Mi(n,t){return Object.assign(Object.create(n),t)}function ah(n,t=[""],e,i,r=()=>n[0]){const o=e||n;typeof i>"u"&&(i=rv("_fallback",n));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:o,_fallback:i,_getTarget:r,override:c=>ah([c,...n],t,o,i)};return new Proxy(a,{deleteProperty(c,u){return delete c[u],delete c._keys,delete n[0][u],!0},get(c,u){return nv(c,u,()=>MA(u,t,n,c))},getOwnPropertyDescriptor(c,u){return Reflect.getOwnPropertyDescriptor(c._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(c,u){return jg(c).includes(u)},ownKeys(c){return jg(c)},set(c,u,f){const h=c._storage||(c._storage=r());return c[u]=h[u]=f,delete c._keys,!0}})}function Lr(n,t,e,i){const r={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:ev(n,i),setContext:o=>Lr(n,o,e,i),override:o=>Lr(n.override(o),t,e,i)};return new Proxy(r,{deleteProperty(o,a){return delete o[a],delete n[a],!0},get(o,a,c){return nv(o,a,()=>wA(o,a,c))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(n,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,a)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(o,a){return Reflect.has(n,a)},ownKeys(){return Reflect.ownKeys(n)},set(o,a,c){return n[a]=c,delete o[a],!0}})}function ev(n,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=n;return{allKeys:r,scriptable:e,indexable:i,isScriptable:Ai(e)?e:()=>e,isIndexable:Ai(i)?i:()=>i}}const xA=(n,t)=>n?n+eh(t):t,lh=(n,t)=>Mt(t)&&n!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function nv(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t)||t==="constructor")return n[t];const i=e();return n[t]=i,i}function wA(n,t,e){const{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=n;let c=i[t];return Ai(c)&&a.isScriptable(t)&&(c=SA(t,c,n,e)),Gt(c)&&c.length&&(c=EA(t,c,n,a.isIndexable)),lh(t,c)&&(c=Lr(c,r,o&&o[t],a)),c}function SA(n,t,e,i){const{_proxy:r,_context:o,_subProxy:a,_stack:c}=e;if(c.has(n))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+n);c.add(n);let u=t(o,a||i);return c.delete(n),lh(n,u)&&(u=ch(r._scopes,r,n,u)),u}function EA(n,t,e,i){const{_proxy:r,_context:o,_subProxy:a,_descriptors:c}=e;if(typeof o.index<"u"&&i(n))return t[o.index%t.length];if(Mt(t[0])){const u=t,f=r._scopes.filter(h=>h!==u);t=[];for(const h of u){const v=ch(f,r,n,h);t.push(Lr(v,o,a&&a[n],c))}}return t}function iv(n,t,e){return Ai(n)?n(t,e):n}const kA=(n,t)=>n===!0?t:typeof n=="string"?Ci(t,n):void 0;function CA(n,t,e,i,r){for(const o of t){const a=kA(e,o);if(a){n.add(a);const c=iv(a._fallback,e,r);if(typeof c<"u"&&c!==e&&c!==i)return c}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function ch(n,t,e,i){const r=t._rootScopes,o=iv(t._fallback,e,i),a=[...n,...r],c=new Set;c.add(i);let u=Ug(c,a,e,o||e,i);return u===null||typeof o<"u"&&o!==e&&(u=Ug(c,a,o,u,i),u===null)?!1:ah(Array.from(c),[""],r,o,()=>AA(t,e,i))}function Ug(n,t,e,i,r){for(;e;)e=CA(n,t,e,i,r);return e}function AA(n,t,e){const i=n._getTarget();t in i||(i[t]={});const r=i[t];return Gt(r)&&Mt(e)?e:r||{}}function MA(n,t,e,i){let r;for(const o of t)if(r=rv(xA(o,n),e),typeof r<"u")return lh(n,r)?ch(e,i,n,r):r}function rv(n,t){for(const e of t){if(!e)continue;const i=e[n];if(typeof i<"u")return i}}function jg(n){let t=n._keys;return t||(t=n._keys=OA(n._scopes)),t}function OA(n){const t=new Set;for(const e of n)for(const i of Object.keys(e).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}function sv(n,t,e,i){const{iScale:r}=n,{key:o="r"}=this._parsing,a=new Array(i);let c,u,f,h;for(c=0,u=i;c<u;++c)f=c+e,h=t[f],a[c]={r:r.parse(Ci(h,o),f)};return a}const LA=Number.EPSILON||1e-14,Pr=(n,t)=>t<n.length&&!n[t].skip&&n[t],ov=n=>n==="x"?"y":"x";function PA(n,t,e,i){const r=n.skip?t:n,o=t,a=e.skip?t:e,c=Eu(o,r),u=Eu(a,o);let f=c/(c+u),h=u/(c+u);f=isNaN(f)?0:f,h=isNaN(h)?0:h;const v=i*f,d=i*h;return{previous:{x:o.x-v*(a.x-r.x),y:o.y-v*(a.y-r.y)},next:{x:o.x+d*(a.x-r.x),y:o.y+d*(a.y-r.y)}}}function RA(n,t,e){const i=n.length;let r,o,a,c,u,f=Pr(n,0);for(let h=0;h<i-1;++h)if(u=f,f=Pr(n,h+1),!(!u||!f)){if(ys(t[h],0,LA)){e[h]=e[h+1]=0;continue}r=e[h]/t[h],o=e[h+1]/t[h],c=Math.pow(r,2)+Math.pow(o,2),!(c<=9)&&(a=3/Math.sqrt(c),e[h]=r*a*t[h],e[h+1]=o*a*t[h])}}function TA(n,t,e="x"){const i=ov(e),r=n.length;let o,a,c,u=Pr(n,0);for(let f=0;f<r;++f){if(a=c,c=u,u=Pr(n,f+1),!c)continue;const h=c[e],v=c[i];a&&(o=(h-a[e])/3,c[`cp1${e}`]=h-o,c[`cp1${i}`]=v-o*t[f]),u&&(o=(u[e]-h)/3,c[`cp2${e}`]=h+o,c[`cp2${i}`]=v+o*t[f])}}function IA(n,t="x"){const e=ov(t),i=n.length,r=Array(i).fill(0),o=Array(i);let a,c,u,f=Pr(n,0);for(a=0;a<i;++a)if(c=u,u=f,f=Pr(n,a+1),!!u){if(f){const h=f[t]-u[t];r[a]=h!==0?(f[e]-u[e])/h:0}o[a]=c?f?Dn(r[a-1])!==Dn(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}RA(n,r,o),TA(n,o,t)}function ua(n,t,e){return Math.max(Math.min(n,e),t)}function DA(n,t){let e,i,r,o,a,c=si(n[0],t);for(e=0,i=n.length;e<i;++e)a=o,o=c,c=e<i-1&&si(n[e+1],t),o&&(r=n[e],a&&(r.cp1x=ua(r.cp1x,t.left,t.right),r.cp1y=ua(r.cp1y,t.top,t.bottom)),c&&(r.cp2x=ua(r.cp2x,t.left,t.right),r.cp2y=ua(r.cp2y,t.top,t.bottom)))}function BA(n,t,e,i,r){let o,a,c,u;if(t.spanGaps&&(n=n.filter(f=>!f.skip)),t.cubicInterpolationMode==="monotone")IA(n,r);else{let f=i?n[n.length-1]:n[0];for(o=0,a=n.length;o<a;++o)c=n[o],u=PA(f,c,n[Math.min(o+1,a-(i?0:1))%a],t.tension),c.cp1x=u.previous.x,c.cp1y=u.previous.y,c.cp2x=u.next.x,c.cp2y=u.next.y,f=c}t.capBezierPoints&&DA(n,e)}function uh(){return typeof window<"u"&&typeof document<"u"}function hh(n){let t=n.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Wa(n,t,e){let i;return typeof n=="string"?(i=parseInt(n,10),n.indexOf("%")!==-1&&(i=i/100*t.parentNode[e])):i=n,i}const tl=n=>n.ownerDocument.defaultView.getComputedStyle(n,null);function FA(n,t){return tl(n).getPropertyValue(t)}const NA=["top","right","bottom","left"];function Ji(n,t,e){const i={};e=e?"-"+e:"";for(let r=0;r<4;r++){const o=NA[r];i[o]=parseFloat(n[t+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const HA=(n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot);function WA(n,t){const e=n.touches,i=e&&e.length?e[0]:n,{offsetX:r,offsetY:o}=i;let a=!1,c,u;if(HA(r,o,n.target))c=r,u=o;else{const f=t.getBoundingClientRect();c=i.clientX-f.left,u=i.clientY-f.top,a=!0}return{x:c,y:u,box:a}}function Vi(n,t){if("native"in n)return n;const{canvas:e,currentDevicePixelRatio:i}=t,r=tl(e),o=r.boxSizing==="border-box",a=Ji(r,"padding"),c=Ji(r,"border","width"),{x:u,y:f,box:h}=WA(n,e),v=a.left+(h&&c.left),d=a.top+(h&&c.top);let{width:g,height:m}=t;return o&&(g-=a.width+c.width,m-=a.height+c.height),{x:Math.round((u-v)/g*e.width/i),y:Math.round((f-d)/m*e.height/i)}}function qA(n,t,e){let i,r;if(t===void 0||e===void 0){const o=n&&hh(n);if(!o)t=n.clientWidth,e=n.clientHeight;else{const a=o.getBoundingClientRect(),c=tl(o),u=Ji(c,"border","width"),f=Ji(c,"padding");t=a.width-f.width-u.width,e=a.height-f.height-u.height,i=Wa(c.maxWidth,o,"clientWidth"),r=Wa(c.maxHeight,o,"clientHeight")}}return{width:t,height:e,maxWidth:i||Na,maxHeight:r||Na}}const ha=n=>Math.round(n*10)/10;function zA(n,t,e,i){const r=tl(n),o=Ji(r,"margin"),a=Wa(r.maxWidth,n,"clientWidth")||Na,c=Wa(r.maxHeight,n,"clientHeight")||Na,u=qA(n,t,e);let{width:f,height:h}=u;if(r.boxSizing==="content-box"){const d=Ji(r,"border","width"),g=Ji(r,"padding");f-=g.width+d.width,h-=g.height+d.height}return f=Math.max(0,f-o.width),h=Math.max(0,i?f/i:h-o.height),f=ha(Math.min(f,a,u.maxWidth)),h=ha(Math.min(h,c,u.maxHeight)),f&&!h&&(h=ha(f/2)),(t!==void 0||e!==void 0)&&i&&u.height&&h>u.height&&(h=u.height,f=ha(Math.floor(h*i))),{width:f,height:h}}function Vg(n,t,e){const i=t||1,r=Math.floor(n.height*i),o=Math.floor(n.width*i);n.height=Math.floor(n.height),n.width=Math.floor(n.width);const a=n.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${n.height}px`,a.style.width=`${n.width}px`),n.currentDevicePixelRatio!==i||a.height!==r||a.width!==o?(n.currentDevicePixelRatio=i,a.height=r,a.width=o,n.ctx.setTransform(i,0,0,i,0,0),!0):!1}const UA=function(){let n=!1;try{const t={get passive(){return n=!0,!1}};uh()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return n}();function $g(n,t){const e=FA(n,t),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function $i(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function jA(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:i==="middle"?e<.5?n.y:t.y:i==="after"?e<1?n.y:t.y:e>0?t.y:n.y}}function VA(n,t,e,i){const r={x:n.cp2x,y:n.cp2y},o={x:t.cp1x,y:t.cp1y},a=$i(n,r,e),c=$i(r,o,e),u=$i(o,t,e),f=$i(a,c,e),h=$i(c,u,e);return $i(f,h,e)}const $A=function(n,t){return{x(e){return n+n+t-e},setWidth(e){t=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},YA=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,t){return n+t},leftForLtr(n,t){return n}}};function Mr(n,t,e){return n?$A(t,e):YA()}function av(n,t){let e,i;(t==="ltr"||t==="rtl")&&(e=n.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=i)}function lv(n,t){t!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function cv(n){return n==="angle"?{between:Os,compare:GC,normalize:Qe}:{between:ii,compare:(t,e)=>t-e,normalize:t=>t}}function Yg({start:n,end:t,count:e,loop:i,style:r}){return{start:n%e,end:t%e,loop:i&&(t-n+1)%e===0,style:r}}function GA(n,t,e){const{property:i,start:r,end:o}=e,{between:a,normalize:c}=cv(i),u=t.length;let{start:f,end:h,loop:v}=n,d,g;if(v){for(f+=u,h+=u,d=0,g=u;d<g&&a(c(t[f%u][i]),r,o);++d)f--,h--;f%=u,h%=u}return h<f&&(h+=u),{start:f,end:h,loop:v,style:n.style}}function uv(n,t,e){if(!e)return[n];const{property:i,start:r,end:o}=e,a=t.length,{compare:c,between:u,normalize:f}=cv(i),{start:h,end:v,loop:d,style:g}=GA(n,t,e),m=[];let y=!1,x=null,k,A,I;const S=()=>u(r,I,k)&&c(r,I)!==0,E=()=>c(o,k)===0||u(o,I,k),P=()=>y||S(),T=()=>!y||E();for(let F=h,$=h;F<=v;++F)A=t[F%a],!A.skip&&(k=f(A[i]),k!==I&&(y=u(k,r,o),x===null&&P()&&(x=c(k,r)===0?F:$),x!==null&&T()&&(m.push(Yg({start:x,end:F,loop:d,count:a,style:g})),x=null),$=F,I=k));return x!==null&&m.push(Yg({start:x,end:v,loop:d,count:a,style:g})),m}function hv(n,t){const e=[],i=n.segments;for(let r=0;r<i.length;r++){const o=uv(i[r],n.points,t);o.length&&e.push(...o)}return e}function KA(n,t,e,i){let r=0,o=t-1;if(e&&!i)for(;r<t&&!n[r].skip;)r++;for(;r<t&&n[r].skip;)r++;for(r%=t,e&&(o+=r);o>r&&n[o%t].skip;)o--;return o%=t,{start:r,end:o}}function XA(n,t,e,i){const r=n.length,o=[];let a=t,c=n[t],u;for(u=t+1;u<=e;++u){const f=n[u%r];f.skip||f.stop?c.skip||(i=!1,o.push({start:t%r,end:(u-1)%r,loop:i}),t=a=f.stop?u:null):(a=u,c.skip&&(t=u)),c=f}return a!==null&&o.push({start:t%r,end:a%r,loop:i}),o}function JA(n,t){const e=n.points,i=n.options.spanGaps,r=e.length;if(!r)return[];const o=!!n._loop,{start:a,end:c}=KA(e,r,o,i);if(i===!0)return Gg(n,[{start:a,end:c,loop:o}],e,t);const u=c<a?c+r:c,f=!!n._fullLoop&&a===0&&c===r-1;return Gg(n,XA(e,a,u,f),e,t)}function Gg(n,t,e,i){return!i||!i.setContext||!e?t:ZA(n,t,e,i)}function ZA(n,t,e,i){const r=n._chart.getContext(),o=Kg(n.options),{_datasetIndex:a,options:{spanGaps:c}}=n,u=e.length,f=[];let h=o,v=t[0].start,d=v;function g(m,y,x,k){const A=c?-1:1;if(m!==y){for(m+=u;e[m%u].skip;)m-=A;for(;e[y%u].skip;)y+=A;m%u!==y%u&&(f.push({start:m%u,end:y%u,loop:x,style:k}),h=k,v=y%u)}}for(const m of t){v=c?v:m.start;let y=e[v%u],x;for(d=v+1;d<=m.end;d++){const k=e[d%u];x=Kg(i.setContext(Mi(r,{type:"segment",p0:y,p1:k,p0DataIndex:(d-1)%u,p1DataIndex:d%u,datasetIndex:a}))),QA(x,h)&&g(v,d-1,m.loop,h),y=k,h=x}v<d-1&&g(v,d-1,m.loop,h)}return f}function Kg(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function QA(n,t){if(!t)return!1;const e=[],i=function(r,o){return sh(o)?(e.includes(o)||e.push(o),e.indexOf(o)):o};return JSON.stringify(n,i)!==JSON.stringify(t,i)}/*!
|
|
439
|
+
* Chart.js v4.4.8
|
|
440
|
+
* https://www.chartjs.org
|
|
441
|
+
* (c) 2025 Chart.js Contributors
|
|
442
|
+
* Released under the MIT License
|
|
443
|
+
*/class tM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,r){const o=e.listeners[r],a=e.duration;o.forEach(c=>c({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=G0.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const o=i.items;let a=o.length-1,c=!1,u;for(;a>=0;--a)u=o[a],u._active?(u._total>i.duration&&(i.duration=u._total),u.tick(t),c=!0):(o[a]=o[o.length-1],o.pop());c&&(r.draw(),this._notify(r,i,t,"progress")),o.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Kn=new tM;const Xg="transparent",eM={boolean(n,t,e){return e>.5?t:n},color(n,t,e){const i=Wg(n||Xg),r=i.valid&&Wg(t||Xg);return r&&r.valid?r.mix(i,e).hexString():t},number(n,t,e){return n+(t-n)*e}};class nM{constructor(t,e,i,r){const o=e[i];r=us([t.to,r,o,t.from]);const a=us([t.from,o,r]);this._active=!0,this._fn=t.fn||eM[t.type||typeof a],this._easing=bs[t.easing]||bs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const r=this._target[this._prop],o=i-this._start,a=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=us([t.to,e,r,t.from]),this._from=us([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,r=this._prop,o=this._from,a=this._loop,c=this._to;let u;if(this._active=o!==c&&(a||e<i),!this._active){this._target[r]=c,this._notify(!0);return}if(e<0){this._target[r]=o;return}u=e/i%2,u=a&&u>1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[r]=this._fn(o,c,u)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][e]()}}class fv{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Mt(t))return;const e=Object.keys(Kt.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const o=t[r];if(!Mt(o))return;const a={};for(const c of e)a[c]=o[c];(Gt(o.properties)&&o.properties||[r]).forEach(c=>{(c===r||!i.has(c))&&i.set(c,a)})})}_animateOptions(t,e){const i=e.options,r=rM(t,i);if(!r)return[];const o=this._createAnimations(r,i);return i.$shared&&iM(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,e){const i=this._properties,r=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),c=Date.now();let u;for(u=a.length-1;u>=0;--u){const f=a[u];if(f.charAt(0)==="$")continue;if(f==="options"){r.push(...this._animateOptions(t,e));continue}const h=e[f];let v=o[f];const d=i.get(f);if(v)if(d&&v.active()){v.update(d,h,c);continue}else v.cancel();if(!d||!d.duration){t[f]=h;continue}o[f]=v=new nM(d,t,f,h),r.push(v)}return r}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const i=this._createAnimations(t,e);if(i.length)return Kn.add(this._chart,i),!0}}function iM(n,t){const e=[],i=Object.keys(t);for(let r=0;r<i.length;r++){const o=n[i[r]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}function rM(n,t){if(!t)return;let e=n.options;if(!e){n.options=t;return}return e.$shared&&(n.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function Jg(n,t){const e=n&&n.options||{},i=e.reverse,r=e.min===void 0?t:0,o=e.max===void 0?t:0;return{start:i?o:r,end:i?r:o}}function sM(n,t,e){if(e===!1)return!1;const i=Jg(n,e),r=Jg(t,e);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function oM(n){let t,e,i,r;return Mt(n)?(t=n.top,e=n.right,i=n.bottom,r=n.left):t=e=i=r=n,{top:t,right:e,bottom:i,left:r,disabled:n===!1}}function dv(n,t){const e=[],i=n._getSortedDatasetMetas(t);let r,o;for(r=0,o=i.length;r<o;++r)e.push(i[r].index);return e}function Zg(n,t,e,i={}){const r=n.keys,o=i.mode==="single";let a,c,u,f;if(t===null)return;let h=!1;for(a=0,c=r.length;a<c;++a){if(u=+r[a],u===e){if(h=!0,i.all)continue;break}f=n.values[u],ee(f)&&(o||t===0||Dn(t)===Dn(f))&&(t+=f)}return!h&&!i.all?0:t}function aM(n,t){const{iScale:e,vScale:i}=t,r=e.axis==="x"?"x":"y",o=i.axis==="x"?"x":"y",a=Object.keys(n),c=new Array(a.length);let u,f,h;for(u=0,f=a.length;u<f;++u)h=a[u],c[u]={[r]:h,[o]:n[h]};return c}function ru(n,t){const e=n&&n.options.stacked;return e||e===void 0&&t.stack!==void 0}function lM(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}function cM(n){const{min:t,max:e,minDefined:i,maxDefined:r}=n.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?e:Number.POSITIVE_INFINITY}}function uM(n,t,e){const i=n[t]||(n[t]={});return i[e]||(i[e]={})}function Qg(n,t,e,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const o=n[r.index];if(e&&o>0||!e&&o<0)return r.index}return null}function tm(n,t){const{chart:e,_cachedMeta:i}=n,r=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:c}=i,u=o.axis,f=a.axis,h=lM(o,a,i),v=t.length;let d;for(let g=0;g<v;++g){const m=t[g],{[u]:y,[f]:x}=m,k=m._stacks||(m._stacks={});d=k[f]=uM(r,h,y),d[c]=x,d._top=Qg(d,a,!0,i.type),d._bottom=Qg(d,a,!1,i.type);const A=d._visualValues||(d._visualValues={});A[c]=x}}function su(n,t){const e=n.scales;return Object.keys(e).filter(i=>e[i].axis===t).shift()}function hM(n,t){return Mi(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function fM(n,t,e){return Mi(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function ns(n,t){const e=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){t=t||n._parsed;for(const r of t){const o=r._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}const ou=n=>n==="reset"||n==="none",em=(n,t)=>t?n:Object.assign({},n),dM=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:dv(e,!0),values:null};class bn{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ru(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ns(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),r=(v,d,g,m)=>v==="x"?d:v==="r"?m:g,o=e.xAxisID=_t(i.xAxisID,su(t,"x")),a=e.yAxisID=_t(i.yAxisID,su(t,"y")),c=e.rAxisID=_t(i.rAxisID,su(t,"r")),u=e.indexAxis,f=e.iAxisID=r(u,o,a,c),h=e.vAxisID=r(u,a,o,c);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(c),e.iScale=this.getScaleForId(f),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Fg(this._data,this),t._stacked&&ns(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(Mt(e)){const r=this._cachedMeta;this._data=aM(e,r)}else if(i!==e){if(i){Fg(i,this);const r=this._cachedMeta;ns(r),r._parsed=[]}e&&Object.isExtensible(e)&&ZC(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const o=e._stacked;e._stacked=ru(e.vScale,e),e.stack!==i.stack&&(r=!0,ns(e),e.stack=i.stack),this._resyncElements(t),(r||o!==e._stacked)&&(tm(this,e._parsed),e._stacked=ru(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:r}=this,{iScale:o,_stacked:a}=i,c=o.axis;let u=t===0&&e===r.length?!0:i._sorted,f=t>0&&i._parsed[t-1],h,v,d;if(this._parsing===!1)i._parsed=r,i._sorted=!0,d=r;else{Gt(r[t])?d=this.parseArrayData(i,r,t,e):Mt(r[t])?d=this.parseObjectData(i,r,t,e):d=this.parsePrimitiveData(i,r,t,e);const g=()=>v[c]===null||f&&v[c]<f[c];for(h=0;h<e;++h)i._parsed[h+t]=v=d[h],u&&(g()&&(u=!1),f=v);i._sorted=u}a&&tm(this,d)}parsePrimitiveData(t,e,i,r){const{iScale:o,vScale:a}=t,c=o.axis,u=a.axis,f=o.getLabels(),h=o===a,v=new Array(r);let d,g,m;for(d=0,g=r;d<g;++d)m=d+i,v[d]={[c]:h||o.parse(f[m],m),[u]:a.parse(e[m],m)};return v}parseArrayData(t,e,i,r){const{xScale:o,yScale:a}=t,c=new Array(r);let u,f,h,v;for(u=0,f=r;u<f;++u)h=u+i,v=e[h],c[u]={x:o.parse(v[0],h),y:a.parse(v[1],h)};return c}parseObjectData(t,e,i,r){const{xScale:o,yScale:a}=t,{xAxisKey:c="x",yAxisKey:u="y"}=this._parsing,f=new Array(r);let h,v,d,g;for(h=0,v=r;h<v;++h)d=h+i,g=e[d],f[h]={x:o.parse(Ci(g,c),d),y:a.parse(Ci(g,u),d)};return f}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const r=this.chart,o=this._cachedMeta,a=e[t.axis],c={keys:dv(r,!0),values:e._stacks[t.axis]._visualValues};return Zg(c,a,o.index,{mode:i})}updateRangeFromParsed(t,e,i,r){const o=i[e.axis];let a=o===null?NaN:o;const c=r&&i._stacks[e.axis];r&&c&&(r.values=c,a=Zg(r,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const i=this._cachedMeta,r=i._parsed,o=i._sorted&&t===i.iScale,a=r.length,c=this._getOtherScale(t),u=dM(e,i,this.chart),f={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:v}=cM(c);let d,g;function m(){g=r[d];const y=g[c.axis];return!ee(g[t.axis])||h>y||v<y}for(d=0;d<a&&!(!m()&&(this.updateRangeFromParsed(f,t,g,u),o));++d);if(o){for(d=a-1;d>=0;--d)if(!m()){this.updateRangeFromParsed(f,t,g,u);break}}return f}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let r,o,a;for(r=0,o=e.length;r<o;++r)a=e[r][t.axis],ee(a)&&i.push(a);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,r=e.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=oM(_t(this.options.clip,sM(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,r=i.data||[],o=e.chartArea,a=[],c=this._drawStart||0,u=this._drawCount||r.length-c,f=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,o,c,u),h=c;h<c+u;++h){const v=r[h];v.hidden||(v.active&&f?a.push(v):v.draw(t,o))}for(h=0;h<a.length;++h)a[h].draw(t,o)}getStyle(t,e){const i=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const r=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=fM(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=r.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=hM(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const r=e==="active",o=this._cachedDataOpts,a=t+"-"+e,c=o[a],u=this.enableOptionSharing&&Ms(i);if(c)return em(c,u);const f=this.chart.config,h=f.datasetElementScopeKeys(this._type,t),v=r?[`${t}Hover`,"hover",t,""]:[t,""],d=f.getOptionScopes(this.getDataset(),h),g=Object.keys(Kt.elements[t]),m=()=>this.getContext(i,r,e),y=f.resolveNamedOptions(d,g,m,v);return y.$shared&&(y.$shared=u,o[a]=Object.freeze(em(y,u))),y}_resolveAnimations(t,e,i){const r=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,c=o[a];if(c)return c;let u;if(r.options.animation!==!1){const h=this.chart.config,v=h.datasetAnimationScopeKeys(this._type,e),d=h.getOptionScopes(this.getDataset(),v);u=h.createResolver(d,this.getContext(t,i,e))}const f=new fv(r,u&&u.animations);return u&&u._cacheable&&(o[a]=Object.freeze(f)),f}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||ou(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),r=this._sharedOptions,o=this.getSharedOptions(i),a=this.includeOptions(e,o)||o!==r;return this.updateSharedOptions(o,e,i),{sharedOptions:o,includeOptions:a}}updateElement(t,e,i,r){ou(r)?Object.assign(t,i):this._resolveAnimations(e,r).update(t,i)}updateSharedOptions(t,e,i){t&&!ou(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,r){t.active=r;const o=this.getStyle(e,r);this._resolveAnimations(e,i,r).update(t,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[c,u,f]of this._syncList)this[c](u,f);this._syncList=[];const r=i.length,o=e.length,a=Math.min(o,r);a&&this.parse(0,a),o>r?this._insertElements(r,o-r,t):o<r&&this._removeElements(o,r-o)}_insertElements(t,e,i=!0){const r=this._cachedMeta,o=r.data,a=t+e;let c;const u=f=>{for(f.length+=e,c=f.length-1;c>=a;c--)f[c]=f[c-e]};for(u(o),c=t;c<a;++c)o[c]=new this.dataElementType;this._parsing&&u(r._parsed),this.parse(t,e),i&&this.updateElements(o,t,e,"reset")}updateElements(t,e,i,r){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(t,e);i._stacked&&ns(i,r)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,r]=t;this[e](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}it(bn,"defaults",{}),it(bn,"datasetElementType",null),it(bn,"dataElementType",null);function pM(n,t){if(!n._cache.$bar){const e=n.getMatchingVisibleMetas(t);let i=[];for(let r=0,o=e.length;r<o;r++)i=i.concat(e[r].controller.getAllParsedValues(n));n._cache.$bar=Y0(i.sort((r,o)=>r-o))}return n._cache.$bar}function gM(n){const t=n.iScale,e=pM(t,n.type);let i=t._length,r,o,a,c;const u=()=>{a===32767||a===-32768||(Ms(c)&&(i=Math.min(i,Math.abs(a-c)||i)),c=a)};for(r=0,o=e.length;r<o;++r)a=t.getPixelForValue(e[r]),u();for(c=void 0,r=0,o=t.ticks.length;r<o;++r)a=t.getPixelForTick(r),u();return i}function mM(n,t,e,i){const r=e.barThickness;let o,a;return Ct(r)?(o=t.min*e.categoryPercentage,a=e.barPercentage):(o=r*i,a=1),{chunk:o/i,ratio:a,start:t.pixels[n]-o/2}}function vM(n,t,e,i){const r=t.pixels,o=r[n];let a=n>0?r[n-1]:null,c=n<r.length-1?r[n+1]:null;const u=e.categoryPercentage;a===null&&(a=o-(c===null?t.end-t.start:c-o)),c===null&&(c=o+o-a);const f=o-(o-Math.min(a,c))/2*u;return{chunk:Math.abs(c-a)/2*u/i,ratio:e.barPercentage,start:f}}function _M(n,t,e,i){const r=e.parse(n[0],i),o=e.parse(n[1],i),a=Math.min(r,o),c=Math.max(r,o);let u=a,f=c;Math.abs(a)>Math.abs(c)&&(u=c,f=a),t[e.axis]=f,t._custom={barStart:u,barEnd:f,start:r,end:o,min:a,max:c}}function pv(n,t,e,i){return Gt(n)?_M(n,t,e,i):t[e.axis]=e.parse(n,i),t}function nm(n,t,e,i){const r=n.iScale,o=n.vScale,a=r.getLabels(),c=r===o,u=[];let f,h,v,d;for(f=e,h=e+i;f<h;++f)d=t[f],v={},v[r.axis]=c||r.parse(a[f],f),u.push(pv(d,v,o,f));return u}function au(n){return n&&n.barStart!==void 0&&n.barEnd!==void 0}function yM(n,t,e){return n!==0?Dn(n):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function bM(n){let t,e,i,r,o;return n.horizontal?(t=n.base>n.x,e="left",i="right"):(t=n.base<n.y,e="bottom",i="top"),t?(r="end",o="start"):(r="start",o="end"),{start:e,end:i,reverse:t,top:r,bottom:o}}function xM(n,t,e,i){let r=t.borderSkipped;const o={};if(!r){n.borderSkipped=o;return}if(r===!0){n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:c,reverse:u,top:f,bottom:h}=bM(n);r==="middle"&&e&&(n.enableBorderRadius=!0,(e._top||0)===i?r=f:(e._bottom||0)===i?r=h:(o[im(h,a,c,u)]=!0,r=f)),o[im(r,a,c,u)]=!0,n.borderSkipped=o}function im(n,t,e,i){return i?(n=wM(n,t,e),n=rm(n,e,t)):n=rm(n,t,e),n}function wM(n,t,e){return n===t?e:n===e?t:n}function rm(n,t,e){return n==="start"?t:n==="end"?e:n}function SM(n,{inflateAmount:t},e){n.inflateAmount=t==="auto"?e===1?.33:0:t}class Ca extends bn{parsePrimitiveData(t,e,i,r){return nm(t,e,i,r)}parseArrayData(t,e,i,r){return nm(t,e,i,r)}parseObjectData(t,e,i,r){const{iScale:o,vScale:a}=t,{xAxisKey:c="x",yAxisKey:u="y"}=this._parsing,f=o.axis==="x"?c:u,h=a.axis==="x"?c:u,v=[];let d,g,m,y;for(d=i,g=i+r;d<g;++d)y=e[d],m={},m[o.axis]=o.parse(Ci(y,f),d),v.push(pv(Ci(y,h),m,a,d));return v}updateRangeFromParsed(t,e,i,r){super.updateRangeFromParsed(t,e,i,r);const o=i._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:r}=e,o=this.getParsed(t),a=o._custom,c=au(a)?"["+a.start+", "+a.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,r){const o=r==="reset",{index:a,_cachedMeta:{vScale:c}}=this,u=c.getBasePixel(),f=c.isHorizontal(),h=this._getRuler(),{sharedOptions:v,includeOptions:d}=this._getSharedOptions(e,r);for(let g=e;g<e+i;g++){const m=this.getParsed(g),y=o||Ct(m[c.axis])?{base:u,head:u}:this._calculateBarValuePixels(g),x=this._calculateBarIndexPixels(g,h),k=(m._stacks||{})[c.axis],A={horizontal:f,base:y.base,enableBorderRadius:!k||au(m._custom)||a===k._top||a===k._bottom,x:f?y.head:x.center,y:f?x.center:y.head,height:f?x.size:Math.abs(y.size),width:f?Math.abs(y.size):x.size};d&&(A.options=v||this.resolveDataElementOptions(g,t[g].active?"active":r));const I=A.options||t[g].options;xM(A,I,k,a),SM(A,I,h.ratio),this.updateElement(t[g],g,A,r)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),o=i.options.stacked,a=[],c=this._cachedMeta.controller.getParsed(e),u=c&&c[i.axis],f=h=>{const v=h._parsed.find(g=>g[i.axis]===u),d=v&&v[h.vScale.axis];if(Ct(d)||isNaN(d))return!0};for(const h of r)if(!(e!==void 0&&f(h))&&((o===!1||a.indexOf(h.stack)===-1||o===void 0&&h.stack===void 0)&&a.push(h.stack),h.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const r=this._getStacks(t,i),o=e!==void 0?r.indexOf(e):-1;return o===-1?r.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,r=[];let o,a;for(o=0,a=e.data.length;o<a;++o)r.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const c=t.barThickness;return{min:c||gM(e),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:c?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:r},options:{base:o,minBarLength:a}}=this,c=o||0,u=this.getParsed(t),f=u._custom,h=au(f);let v=u[e.axis],d=0,g=i?this.applyStack(e,u,i):v,m,y;g!==v&&(d=g-v,g=v),h&&(v=f.barStart,g=f.barEnd-f.barStart,v!==0&&Dn(v)!==Dn(f.barEnd)&&(d=0),d+=v);const x=!Ct(o)&&!h?o:d;let k=e.getPixelForValue(x);if(this.chart.getDataVisibility(t)?m=e.getPixelForValue(d+g):m=k,y=m-k,Math.abs(y)<a){y=yM(y,e,c)*a,v===c&&(k-=y/2);const A=e.getPixelForDecimal(0),I=e.getPixelForDecimal(1),S=Math.min(A,I),E=Math.max(A,I);k=Math.max(Math.min(k,E),S),m=k+y,i&&!h&&(u._stacks[e.axis]._visualValues[r]=e.getValueForPixel(m)-e.getValueForPixel(k))}if(k===e.getPixelForValue(c)){const A=Dn(y)*e.getLineWidthForValue(c)/2;k+=A,y-=A}return{size:y,base:k,head:m,center:m+y/2}}_calculateBarIndexPixels(t,e){const i=e.scale,r=this.options,o=r.skipNull,a=_t(r.maxBarThickness,1/0);let c,u;if(e.grouped){const f=o?this._getStackCount(t):e.stackCount,h=r.barThickness==="flex"?vM(t,e,r,f):mM(t,e,r,f),v=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);c=h.start+h.chunk*v+h.chunk/2,u=Math.min(a,h.chunk*h.ratio)}else c=i.getPixelForValue(this.getParsed(t)[i.axis],t),u=Math.min(a,e.min*e.ratio);return{base:c-u/2,head:c+u/2,center:c,size:u}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,r=i.length;let o=0;for(;o<r;++o)this.getParsed(o)[e.axis]!==null&&!i[o].hidden&&i[o].draw(this._ctx)}}it(Ca,"id","bar"),it(Ca,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),it(Ca,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Aa extends bn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,r){const o=super.parsePrimitiveData(t,e,i,r);for(let a=0;a<o.length;a++)o[a]._custom=this.resolveDataElementOptions(a+i).radius;return o}parseArrayData(t,e,i,r){const o=super.parseArrayData(t,e,i,r);for(let a=0;a<o.length;a++){const c=e[i+a];o[a]._custom=_t(c[2],this.resolveDataElementOptions(a+i).radius)}return o}parseObjectData(t,e,i,r){const o=super.parseObjectData(t,e,i,r);for(let a=0;a<o.length;a++){const c=e[i+a];o[a]._custom=_t(c&&c.r&&+c.r,this.resolveDataElementOptions(a+i).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:o}=e,a=this.getParsed(t),c=r.getLabelForValue(a.x),u=o.getLabelForValue(a.y),f=a._custom;return{label:i[t]||"",value:"("+c+", "+u+(f?", "+f:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,r){const o=r==="reset",{iScale:a,vScale:c}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(e,r),h=a.axis,v=c.axis;for(let d=e;d<e+i;d++){const g=t[d],m=!o&&this.getParsed(d),y={},x=y[h]=o?a.getPixelForDecimal(.5):a.getPixelForValue(m[h]),k=y[v]=o?c.getBasePixel():c.getPixelForValue(m[v]);y.skip=isNaN(x)||isNaN(k),f&&(y.options=u||this.resolveDataElementOptions(d,g.active?"active":r),o&&(y.options.radius=0)),this.updateElement(g,d,y,r)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return e!=="active"&&(r.radius=0),r.radius+=_t(i&&i._custom,o),r}}it(Aa,"id","bubble"),it(Aa,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),it(Aa,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function EM(n,t,e){let i=1,r=1,o=0,a=0;if(t<Ut){const c=n,u=c+t,f=Math.cos(c),h=Math.sin(c),v=Math.cos(u),d=Math.sin(u),g=(I,S,E)=>Os(I,c,u,!0)?1:Math.max(S,S*e,E,E*e),m=(I,S,E)=>Os(I,c,u,!0)?-1:Math.min(S,S*e,E,E*e),y=g(0,f,v),x=g(re,h,d),k=m(jt,f,v),A=m(jt+re,h,d);i=(y-k)/2,r=(x-A)/2,o=-(y+k)/2,a=-(x+A)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:a}}class Ki extends bn{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let o=u=>+i[u];if(Mt(i[t])){const{key:u="value"}=this._parsing;o=f=>+Ci(i[f],u)}let a,c;for(a=t,c=t+e;a<c;++a)r._parsed[a]=o(a)}}_getRotation(){return yn(this.options.rotation-90)}_getCircumference(){return yn(this.options.circumference)}_getRotationExtents(){let t=Ut,e=-Ut;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const r=this.chart.getDatasetMeta(i).controller,o=r._getRotation(),a=r._getCircumference();t=Math.min(t,o),e=Math.max(e,o+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,r=this._cachedMeta,o=r.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,c=Math.max((Math.min(i.width,i.height)-a)/2,0),u=Math.min(FC(this.options.cutout,c),1),f=this._getRingWeight(this.index),{circumference:h,rotation:v}=this._getRotationExtents(),{ratioX:d,ratioY:g,offsetX:m,offsetY:y}=EM(v,h,u),x=(i.width-a)/d,k=(i.height-a)/g,A=Math.max(Math.min(x,k)/2,0),I=z0(this.options.radius,A),S=Math.max(I*u,0),E=(I-S)/this._getVisibleDatasetWeightTotal();this.offsetX=m*I,this.offsetY=y*I,r.total=this.calculateTotal(),this.outerRadius=I-E*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-E*f,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const i=this.options,r=this._cachedMeta,o=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*o/Ut)}updateElements(t,e,i,r){const o=r==="reset",a=this.chart,c=a.chartArea,f=a.options.animation,h=(c.left+c.right)/2,v=(c.top+c.bottom)/2,d=o&&f.animateScale,g=d?0:this.innerRadius,m=d?0:this.outerRadius,{sharedOptions:y,includeOptions:x}=this._getSharedOptions(e,r);let k=this._getRotation(),A;for(A=0;A<e;++A)k+=this._circumference(A,o);for(A=e;A<e+i;++A){const I=this._circumference(A,o),S=t[A],E={x:h+this.offsetX,y:v+this.offsetY,startAngle:k,endAngle:k+I,circumference:I,outerRadius:m,innerRadius:g};x&&(E.options=y||this.resolveDataElementOptions(A,S.active?"active":r)),k+=I,this.updateElement(S,A,E,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i=0,r;for(r=0;r<e.length;r++){const o=t._parsed[r];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(r)&&!e[r].hidden&&(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?Ut*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,r=i.data.labels||[],o=Ns(e._parsed[t],i.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let r,o,a,c,u;if(!t){for(r=0,o=i.data.datasets.length;r<o;++r)if(i.isDatasetVisible(r)){a=i.getDatasetMeta(r),t=a.data,c=a.controller;break}}if(!t)return 0;for(r=0,o=t.length;r<o;++r)u=c.resolveDataElementOptions(r),u.borderAlign!=="inner"&&(e=Math.max(e,u.borderWidth||0,u.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,r=t.length;i<r;++i){const o=this.resolveDataElementOptions(i);e=Math.max(e,o.offset||0,o.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(_t(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}it(Ki,"id","doughnut"),it(Ki,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),it(Ki,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),it(Ki,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map((o,a)=>{const u=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:r,lineWidth:u.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}});class Ma extends bn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:r=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:c,count:u}=X0(e,r,a);this._drawStart=c,this._drawCount=u,J0(e)&&(c=0,u=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=r;const f=this.resolveDatasetElementOptions(t);this.options.showLine||(f.borderWidth=0),f.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:f},t),this.updateElements(r,c,u,t)}updateElements(t,e,i,r){const o=r==="reset",{iScale:a,vScale:c,_stacked:u,_dataset:f}=this._cachedMeta,{sharedOptions:h,includeOptions:v}=this._getSharedOptions(e,r),d=a.axis,g=c.axis,{spanGaps:m,segment:y}=this.options,x=Or(m)?m:Number.POSITIVE_INFINITY,k=this.chart._animationsDisabled||o||r==="none",A=e+i,I=t.length;let S=e>0&&this.getParsed(e-1);for(let E=0;E<I;++E){const P=t[E],T=k?P:{};if(E<e||E>=A){T.skip=!0;continue}const F=this.getParsed(E),$=Ct(F[g]),q=T[d]=a.getPixelForValue(F[d],E),U=T[g]=o||$?c.getBasePixel():c.getPixelForValue(u?this.applyStack(c,F,u):F[g],E);T.skip=isNaN(q)||isNaN(U)||$,T.stop=E>0&&Math.abs(F[d]-S[d])>x,y&&(T.parsed=F,T.raw=f.data[E]),v&&(T.options=h||this.resolveDataElementOptions(E,P.active?"active":r)),k||this.updateElement(P,E,T,r),S=F}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return i;const o=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}it(Ma,"id","line"),it(Ma,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),it(Ma,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class ws extends bn{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,r=i.data.labels||[],o=Ns(e._parsed[t].r,i.options.locale);return{label:r[t]||"",value:o}}parseObjectData(t,e,i,r){return sv.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,r)=>{const o=this.getParsed(r).r;!isNaN(o)&&this.chart.getDataVisibility(r)&&(o<e.min&&(e.min=o),o>e.max&&(e.max=o))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(r/2,0),a=Math.max(i.cutoutPercentage?o/100*i.cutoutPercentage:1,0),c=(o-a)/t.getVisibleDatasetCount();this.outerRadius=o-c*this.index,this.innerRadius=this.outerRadius-c}updateElements(t,e,i,r){const o=r==="reset",a=this.chart,u=a.options.animation,f=this._cachedMeta.rScale,h=f.xCenter,v=f.yCenter,d=f.getIndexAngle(0)-.5*jt;let g=d,m;const y=360/this.countVisibleElements();for(m=0;m<e;++m)g+=this._computeAngle(m,r,y);for(m=e;m<e+i;m++){const x=t[m];let k=g,A=g+this._computeAngle(m,r,y),I=a.getDataVisibility(m)?f.getDistanceFromCenterForValue(this.getParsed(m).r):0;g=A,o&&(u.animateScale&&(I=0),u.animateRotate&&(k=A=d));const S={x:h,y:v,innerRadius:0,outerRadius:I,startAngle:k,endAngle:A,options:this.resolveDataElementOptions(m,x.active?"active":r)};this.updateElement(x,m,S,r)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?yn(this.resolveDataElementOptions(t,e).angle||i):0}}it(ws,"id","polarArea"),it(ws,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),it(ws,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map((o,a)=>{const u=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:r,lineWidth:u.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Au extends Ki{}it(Au,"id","pie"),it(Au,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Oa extends bn{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,r){return sv.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta,i=e.dataset,r=e.data||[],o=e.iScale.getLabels();if(i.points=r,t!=="resize"){const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);const c={_loop:!0,_fullLoop:o.length===r.length,options:a};this.updateElement(i,void 0,c,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,i,r){const o=this._cachedMeta.rScale,a=r==="reset";for(let c=e;c<e+i;c++){const u=t[c],f=this.resolveDataElementOptions(c,u.active?"active":r),h=o.getPointPositionForValue(c,this.getParsed(c).r),v=a?o.xCenter:h.x,d=a?o.yCenter:h.y,g={x:v,y:d,angle:h.angle,skip:isNaN(v)||isNaN(d),options:f};this.updateElement(u,c,g,r)}}}it(Oa,"id","radar"),it(Oa,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),it(Oa,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class La extends bn{getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:o}=e,a=this.getParsed(t),c=r.getLabelForValue(a.x),u=o.getLabelForValue(a.y);return{label:i[t]||"",value:"("+c+", "+u+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,r=this.chart._animationsDisabled;let{start:o,count:a}=X0(e,i,r);if(this._drawStart=o,this._drawCount=a,J0(e)&&(o=0,a=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:c,_dataset:u}=e;c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!u._decimated,c.points=i;const f=this.resolveDatasetElementOptions(t);f.segment=this.options.segment,this.updateElement(c,void 0,{animated:!r,options:f},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,r){const o=r==="reset",{iScale:a,vScale:c,_stacked:u,_dataset:f}=this._cachedMeta,h=this.resolveDataElementOptions(e,r),v=this.getSharedOptions(h),d=this.includeOptions(r,v),g=a.axis,m=c.axis,{spanGaps:y,segment:x}=this.options,k=Or(y)?y:Number.POSITIVE_INFINITY,A=this.chart._animationsDisabled||o||r==="none";let I=e>0&&this.getParsed(e-1);for(let S=e;S<e+i;++S){const E=t[S],P=this.getParsed(S),T=A?E:{},F=Ct(P[m]),$=T[g]=a.getPixelForValue(P[g],S),q=T[m]=o||F?c.getBasePixel():c.getPixelForValue(u?this.applyStack(c,P,u):P[m],S);T.skip=isNaN($)||isNaN(q)||F,T.stop=S>0&&Math.abs(P[g]-I[g])>k,x&&(T.parsed=P,T.raw=f.data[S]),d&&(T.options=v||this.resolveDataElementOptions(S,E.active?"active":r)),A||this.updateElement(E,S,T,r),I=P}this.updateSharedOptions(v,r,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let c=0;for(let u=e.length-1;u>=0;--u)c=Math.max(c,e[u].size(this.resolveDataElementOptions(u))/2);return c>0&&c}const i=t.dataset,r=i.options&&i.options.borderWidth||0;if(!e.length)return r;const o=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,o,a)/2}}it(La,"id","scatter"),it(La,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),it(La,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var kM=Object.freeze({__proto__:null,BarController:Ca,BubbleController:Aa,DoughnutController:Ki,LineController:Ma,PieController:Au,PolarAreaController:ws,RadarController:Oa,ScatterController:La});function Ui(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class fh{constructor(t){it(this,"options");this.options=t||{}}static override(t){Object.assign(fh.prototype,t)}init(){}formats(){return Ui()}parse(){return Ui()}format(){return Ui()}add(){return Ui()}diff(){return Ui()}startOf(){return Ui()}endOf(){return Ui()}}var CM={_date:fh};function AM(n,t,e,i){const{controller:r,data:o,_sorted:a}=n,c=r._cachedMeta.iScale,u=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null;if(c&&t===c.axis&&t!=="r"&&a&&o.length){const f=c._reversePixels?XC:ri;if(i){if(r._sharedOptions){const h=o[0],v=typeof h.getRange=="function"&&h.getRange(t);if(v){const d=f(o,t,e-v),g=f(o,t,e+v);return{lo:d.lo,hi:g.hi}}}}else{const h=f(o,t,e);if(u){const{vScale:v}=r._cachedMeta,{_parsed:d}=n,g=d.slice(0,h.lo+1).reverse().findIndex(y=>!Ct(y[v.axis]));h.lo-=Math.max(0,g);const m=d.slice(h.hi).findIndex(y=>!Ct(y[v.axis]));h.hi+=Math.max(0,m)}return h}}return{lo:0,hi:o.length-1}}function el(n,t,e,i,r){const o=n.getSortedVisibleDatasetMetas(),a=e[t];for(let c=0,u=o.length;c<u;++c){const{index:f,data:h}=o[c],{lo:v,hi:d}=AM(o[c],t,a,r);for(let g=v;g<=d;++g){const m=h[g];m.skip||i(m,f,g)}}}function MM(n){const t=n.indexOf("x")!==-1,e=n.indexOf("y")!==-1;return function(i,r){const o=t?Math.abs(i.x-r.x):0,a=e?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function lu(n,t,e,i,r){const o=[];return!r&&!n.isPointInArea(t)||el(n,e,t,function(c,u,f){!r&&!si(c,n.chartArea,0)||c.inRange(t.x,t.y,i)&&o.push({element:c,datasetIndex:u,index:f})},!0),o}function OM(n,t,e,i){let r=[];function o(a,c,u){const{startAngle:f,endAngle:h}=a.getProps(["startAngle","endAngle"],i),{angle:v}=V0(a,{x:t.x,y:t.y});Os(v,f,h)&&r.push({element:a,datasetIndex:c,index:u})}return el(n,e,t,o),r}function LM(n,t,e,i,r,o){let a=[];const c=MM(e);let u=Number.POSITIVE_INFINITY;function f(h,v,d){const g=h.inRange(t.x,t.y,r);if(i&&!g)return;const m=h.getCenterPoint(r);if(!(!!o||n.isPointInArea(m))&&!g)return;const x=c(t,m);x<u?(a=[{element:h,datasetIndex:v,index:d}],u=x):x===u&&a.push({element:h,datasetIndex:v,index:d})}return el(n,e,t,f),a}function cu(n,t,e,i,r,o){return!o&&!n.isPointInArea(t)?[]:e==="r"&&!i?OM(n,t,e,r):LM(n,t,e,i,r,o)}function sm(n,t,e,i,r){const o=[],a=e==="x"?"inXRange":"inYRange";let c=!1;return el(n,e,t,(u,f,h)=>{u[a]&&u[a](t[e],r)&&(o.push({element:u,datasetIndex:f,index:h}),c=c||u.inRange(t.x,t.y,r))}),i&&!c?[]:o}var PM={modes:{index(n,t,e,i){const r=Vi(t,n),o=e.axis||"x",a=e.includeInvisible||!1,c=e.intersect?lu(n,r,o,i,a):cu(n,r,o,!1,i,a),u=[];return c.length?(n.getSortedVisibleDatasetMetas().forEach(f=>{const h=c[0].index,v=f.data[h];v&&!v.skip&&u.push({element:v,datasetIndex:f.index,index:h})}),u):[]},dataset(n,t,e,i){const r=Vi(t,n),o=e.axis||"xy",a=e.includeInvisible||!1;let c=e.intersect?lu(n,r,o,i,a):cu(n,r,o,!1,i,a);if(c.length>0){const u=c[0].datasetIndex,f=n.getDatasetMeta(u).data;c=[];for(let h=0;h<f.length;++h)c.push({element:f[h],datasetIndex:u,index:h})}return c},point(n,t,e,i){const r=Vi(t,n),o=e.axis||"xy",a=e.includeInvisible||!1;return lu(n,r,o,i,a)},nearest(n,t,e,i){const r=Vi(t,n),o=e.axis||"xy",a=e.includeInvisible||!1;return cu(n,r,o,e.intersect,i,a)},x(n,t,e,i){const r=Vi(t,n);return sm(n,r,"x",e.intersect,i)},y(n,t,e,i){const r=Vi(t,n);return sm(n,r,"y",e.intersect,i)}}};const gv=["left","top","right","bottom"];function is(n,t){return n.filter(e=>e.pos===t)}function om(n,t){return n.filter(e=>gv.indexOf(e.pos)===-1&&e.box.axis===t)}function rs(n,t){return n.sort((e,i)=>{const r=t?i:e,o=t?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function RM(n){const t=[];let e,i,r,o,a,c;for(e=0,i=(n||[]).length;e<i;++e)r=n[e],{position:o,options:{stack:a,stackWeight:c=1}}=r,t.push({index:e,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&o+a,stackWeight:c});return t}function TM(n){const t={};for(const e of n){const{stack:i,pos:r,stackWeight:o}=e;if(!i||!gv.includes(r))continue;const a=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function IM(n,t){const e=TM(n),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let o,a,c;for(o=0,a=n.length;o<a;++o){c=n[o];const{fullSize:u}=c.box,f=e[c.stack],h=f&&c.stackWeight/f.weight;c.horizontal?(c.width=h?h*i:u&&t.availableWidth,c.height=r):(c.width=i,c.height=h?h*r:u&&t.availableHeight)}return e}function DM(n){const t=RM(n),e=rs(t.filter(f=>f.box.fullSize),!0),i=rs(is(t,"left"),!0),r=rs(is(t,"right")),o=rs(is(t,"top"),!0),a=rs(is(t,"bottom")),c=om(t,"x"),u=om(t,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(u).concat(a).concat(c),chartArea:is(t,"chartArea"),vertical:i.concat(r).concat(u),horizontal:o.concat(a).concat(c)}}function am(n,t,e,i){return Math.max(n[e],t[e])+Math.max(n[i],t[i])}function mv(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function BM(n,t,e,i){const{pos:r,box:o}=e,a=n.maxPadding;if(!Mt(r)){e.size&&(n[r]-=e.size);const v=i[e.stack]||{size:0,count:1};v.size=Math.max(v.size,e.horizontal?o.height:o.width),e.size=v.size/v.count,n[r]+=e.size}o.getPadding&&mv(a,o.getPadding());const c=Math.max(0,t.outerWidth-am(a,n,"left","right")),u=Math.max(0,t.outerHeight-am(a,n,"top","bottom")),f=c!==n.w,h=u!==n.h;return n.w=c,n.h=u,e.horizontal?{same:f,other:h}:{same:h,other:f}}function FM(n){const t=n.maxPadding;function e(i){const r=Math.max(t[i]-n[i],0);return n[i]+=r,r}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function NM(n,t){const e=t.maxPadding;function i(r){const o={left:0,top:0,right:0,bottom:0};return r.forEach(a=>{o[a]=Math.max(t[a],e[a])}),o}return i(n?["left","right"]:["top","bottom"])}function hs(n,t,e,i){const r=[];let o,a,c,u,f,h;for(o=0,a=n.length,f=0;o<a;++o){c=n[o],u=c.box,u.update(c.width||t.w,c.height||t.h,NM(c.horizontal,t));const{same:v,other:d}=BM(t,e,c,i);f|=v&&r.length,h=h||d,u.fullSize||r.push(c)}return f&&hs(r,t,e,i)||h}function fa(n,t,e,i,r){n.top=e,n.left=t,n.right=t+i,n.bottom=e+r,n.width=i,n.height=r}function lm(n,t,e,i){const r=e.padding;let{x:o,y:a}=t;for(const c of n){const u=c.box,f=i[c.stack]||{placed:0,weight:1},h=c.stackWeight/f.weight||1;if(c.horizontal){const v=t.w*h,d=f.size||u.height;Ms(f.start)&&(a=f.start),u.fullSize?fa(u,r.left,a,e.outerWidth-r.right-r.left,d):fa(u,t.left+f.placed,a,v,d),f.start=a,f.placed+=v,a=u.bottom}else{const v=t.h*h,d=f.size||u.width;Ms(f.start)&&(o=f.start),u.fullSize?fa(u,o,r.top,d,e.outerHeight-r.bottom-r.top):fa(u,o,t.top+f.placed,d,v),f.start=o,f.placed+=v,o=u.right}}t.x=o,t.y=a}var Ee={addBox(n,t){n.boxes||(n.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},n.boxes.push(t)},removeBox(n,t){const e=n.boxes?n.boxes.indexOf(t):-1;e!==-1&&n.boxes.splice(e,1)},configure(n,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(n,t,e,i){if(!n)return;const r=ke(n.options.layout.padding),o=Math.max(t-r.width,0),a=Math.max(e-r.height,0),c=DM(n.boxes),u=c.vertical,f=c.horizontal;Bt(n.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const h=u.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,v=Object.freeze({outerWidth:t,outerHeight:e,padding:r,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/h,hBoxMaxHeight:a/2}),d=Object.assign({},r);mv(d,ke(i));const g=Object.assign({maxPadding:d,w:o,h:a,x:r.left,y:r.top},r),m=IM(u.concat(f),v);hs(c.fullSize,g,v,m),hs(u,g,v,m),hs(f,g,v,m)&&hs(u,g,v,m),FM(g),lm(c.leftAndTop,g,v,m),g.x+=g.w,g.y+=g.h,lm(c.rightAndBottom,g,v,m),n.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},Bt(c.chartArea,y=>{const x=y.box;Object.assign(x,n.chartArea),x.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class vv{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,r){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(t){return!0}updateConfig(t){}}class HM extends vv{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Pa="$chartjs",WM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},cm=n=>n===null||n==="";function qM(n,t){const e=n.style,i=n.getAttribute("height"),r=n.getAttribute("width");if(n[Pa]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",cm(r)){const o=$g(n,"width");o!==void 0&&(n.width=o)}if(cm(i))if(n.style.height==="")n.height=n.width/(t||2);else{const o=$g(n,"height");o!==void 0&&(n.height=o)}return n}const _v=UA?{passive:!0}:!1;function zM(n,t,e){n&&n.addEventListener(t,e,_v)}function UM(n,t,e){n&&n.canvas&&n.canvas.removeEventListener(t,e,_v)}function jM(n,t){const e=WM[n.type]||n.type,{x:i,y:r}=Vi(n,t);return{type:e,chart:t,native:n,x:i!==void 0?i:null,y:r!==void 0?r:null}}function qa(n,t){for(const e of n)if(e===t||e.contains(t))return!0}function VM(n,t,e){const i=n.canvas,r=new MutationObserver(o=>{let a=!1;for(const c of o)a=a||qa(c.addedNodes,i),a=a&&!qa(c.removedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function $M(n,t,e){const i=n.canvas,r=new MutationObserver(o=>{let a=!1;for(const c of o)a=a||qa(c.removedNodes,i),a=a&&!qa(c.addedNodes,i);a&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}const Ps=new Map;let um=0;function yv(){const n=window.devicePixelRatio;n!==um&&(um=n,Ps.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function YM(n,t){Ps.size||window.addEventListener("resize",yv),Ps.set(n,t)}function GM(n){Ps.delete(n),Ps.size||window.removeEventListener("resize",yv)}function KM(n,t,e){const i=n.canvas,r=i&&hh(i);if(!r)return;const o=K0((c,u)=>{const f=r.clientWidth;e(c,u),f<r.clientWidth&&e()},window),a=new ResizeObserver(c=>{const u=c[0],f=u.contentRect.width,h=u.contentRect.height;f===0&&h===0||o(f,h)});return a.observe(r),YM(n,o),a}function uu(n,t,e){e&&e.disconnect(),t==="resize"&&GM(n)}function XM(n,t,e){const i=n.canvas,r=K0(o=>{n.ctx!==null&&e(jM(o,n))},n);return zM(i,t,r),r}class JM extends vv{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(qM(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Pa])return!1;const i=e[Pa].initial;["height","width"].forEach(o=>{const a=i[o];Ct(a)?e.removeAttribute(o):e.setAttribute(o,a)});const r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[Pa],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),a={attach:VM,detach:$M,resize:KM}[e]||XM;r[e]=a(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),r=i[e];if(!r)return;({attach:uu,detach:uu,resize:uu}[e]||UM)(t,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,r){return zA(t,e,i,r)}isAttached(t){const e=t&&hh(t);return!!(e&&e.isConnected)}}function ZM(n){return!uh()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?HM:JM}class xn{constructor(){it(this,"x");it(this,"y");it(this,"active",!1);it(this,"options");it(this,"$animations")}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Or(this.x)&&Or(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const r={};return t.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}}it(xn,"defaults",{}),it(xn,"defaultRoutes");function QM(n,t){const e=n.options.ticks,i=tO(n),r=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?nO(t):[],a=o.length,c=o[0],u=o[a-1],f=[];if(a>r)return iO(t,f,o,a/r),f;const h=eO(o,t,r);if(a>0){let v,d;const g=a>1?Math.round((u-c)/(a-1)):null;for(da(t,f,h,Ct(g)?0:c-g,c),v=0,d=a-1;v<d;v++)da(t,f,h,o[v],o[v+1]);return da(t,f,h,u,Ct(g)?t.length:u+g),f}return da(t,f,h),f}function tO(n){const t=n.options.offset,e=n._tickSize(),i=n._length/e+(t?0:1),r=n._maxLength/e;return Math.floor(Math.min(i,r))}function eO(n,t,e){const i=rO(n),r=t.length/e;if(!i)return Math.max(r,1);const o=VC(i);for(let a=0,c=o.length-1;a<c;a++){const u=o[a];if(u>r)return u}return Math.max(r,1)}function nO(n){const t=[];let e,i;for(e=0,i=n.length;e<i;e++)n[e].major&&t.push(e);return t}function iO(n,t,e,i){let r=0,o=e[0],a;for(i=Math.ceil(i),a=0;a<n.length;a++)a===o&&(t.push(n[a]),r++,o=e[r*i])}function da(n,t,e,i,r){const o=_t(i,0),a=Math.min(_t(r,n.length),n.length);let c=0,u,f,h;for(e=Math.ceil(e),r&&(u=r-i,e=u/Math.floor(u/e)),h=o;h<0;)c++,h=Math.round(o+c*e);for(f=Math.max(o,0);f<a;f++)f===h&&(t.push(n[f]),c++,h=Math.round(o+c*e))}function rO(n){const t=n.length;let e,i;if(t<2)return!1;for(i=n[0],e=1;e<t;++e)if(n[e]-n[e-1]!==i)return!1;return i}const sO=n=>n==="left"?"right":n==="right"?"left":n,hm=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e,fm=(n,t)=>Math.min(t||n,n);function dm(n,t){const e=[],i=n.length/t,r=n.length;let o=0;for(;o<r;o+=i)e.push(n[Math.floor(o)]);return e}function oO(n,t,e){const i=n.ticks.length,r=Math.min(t,i-1),o=n._startPixel,a=n._endPixel,c=1e-6;let u=n.getPixelForTick(r),f;if(!(e&&(i===1?f=Math.max(u-o,a-u):t===0?f=(n.getPixelForTick(1)-u)/2:f=(u-n.getPixelForTick(r-1))/2,u+=r<t?f:-f,u<o-c||u>a+c)))return u}function aO(n,t){Bt(n,e=>{const i=e.gc,r=i.length/2;let o;if(r>t){for(o=0;o<r;++o)delete e.data[i[o]];i.splice(0,r)}})}function ss(n){return n.drawTicks?n.tickLength:0}function pm(n,t){if(!n.display)return 0;const e=de(n.font,t),i=ke(n.padding);return(Gt(n.text)?n.text.length:1)*e.lineHeight+i.height}function lO(n,t){return Mi(n,{scale:t,type:"scale"})}function cO(n,t,e){return Mi(n,{tick:e,index:t,type:"tick"})}function uO(n,t,e){let i=rh(n);return(e&&t!=="right"||!e&&t==="right")&&(i=sO(i)),i}function hO(n,t,e,i){const{top:r,left:o,bottom:a,right:c,chart:u}=n,{chartArea:f,scales:h}=u;let v=0,d,g,m;const y=a-r,x=c-o;if(n.isHorizontal()){if(g=Se(i,o,c),Mt(e)){const k=Object.keys(e)[0],A=e[k];m=h[k].getPixelForValue(A)+y-t}else e==="center"?m=(f.bottom+f.top)/2+y-t:m=hm(n,e,t);d=c-o}else{if(Mt(e)){const k=Object.keys(e)[0],A=e[k];g=h[k].getPixelForValue(A)-x+t}else e==="center"?g=(f.left+f.right)/2-x+t:g=hm(n,e,t);m=Se(i,a,r),v=e==="left"?-re:re}return{titleX:g,titleY:m,maxWidth:d,rotation:v}}class er extends xn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:r}=this;return t=Ze(t,Number.POSITIVE_INFINITY),e=Ze(e,Number.NEGATIVE_INFINITY),i=Ze(i,Number.POSITIVE_INFINITY),r=Ze(r,Number.NEGATIVE_INFINITY),{min:Ze(t,i),max:Ze(e,r),minDefined:ee(t),maxDefined:ee(e)}}getMinMax(t){let{min:e,max:i,minDefined:r,maxDefined:o}=this.getUserBounds(),a;if(r&&o)return{min:e,max:i};const c=this.getMatchingVisibleMetas();for(let u=0,f=c.length;u<f;++u)a=c[u].controller.getMinMax(this,t),r||(e=Math.min(e,a.min)),o||(i=Math.max(i,a.max));return e=o&&e>i?i:e,i=r&&e>i?e:i,{min:Ze(e,Ze(i,e)),max:Ze(i,Ze(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){qt(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:r,grace:o,ticks:a}=this.options,c=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=bA(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=c<this.ticks.length;this._convertTicksToLabels(u?dm(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=QM(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,i;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,t=!t),this._startPixel=e,this._endPixel=i,this._reversePixels=t,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){qt(this.options.afterUpdate,[this])}beforeSetDimensions(){qt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){qt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),qt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){qt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i],o.label=qt(e.callback,[o.value,i,t],this)}afterTickToLabelConversion(){qt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){qt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=fm(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,o=e.maxRotation;let a=r,c,u,f;if(!this._isVisible()||!e.display||r>=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const h=this._getLabelSizes(),v=h.widest.width,d=h.highest.height,g=ge(this.chart.width-v,0,this.maxWidth);c=t.offset?this.maxWidth/i:g/(i-1),v+6>c&&(c=g/(i-(t.offset?.5:1)),u=this.maxHeight-ss(t.grid)-e.padding-pm(t.title,this.chart.options.font),f=Math.sqrt(v*v+d*d),a=nh(Math.min(Math.asin(ge((h.highest.height+6)/c,-1,1)),Math.asin(ge(u/f,-1,1))-Math.asin(ge(d/f,-1,1)))),a=Math.max(r,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){qt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){qt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,a=this._isVisible(),c=this.isHorizontal();if(a){const u=pm(r,e.options.font);if(c?(t.width=this.maxWidth,t.height=ss(o)+u):(t.height=this.maxHeight,t.width=ss(o)+u),i.display&&this.ticks.length){const{first:f,last:h,widest:v,highest:d}=this._getLabelSizes(),g=i.padding*2,m=yn(this.labelRotation),y=Math.cos(m),x=Math.sin(m);if(c){const k=i.mirror?0:x*v.width+y*d.height;t.height=Math.min(this.maxHeight,t.height+k+g)}else{const k=i.mirror?0:y*v.width+x*d.height;t.width=Math.min(this.maxWidth,t.width+k+g)}this._calculatePadding(f,h,x,y)}}this._handleMargins(),c?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,r){const{ticks:{align:o,padding:a},position:c}=this.options,u=this.labelRotation!==0,f=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,v=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,g=0;u?f?(d=r*t.width,g=i*e.height):(d=i*t.height,g=r*e.width):o==="start"?g=e.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,g=e.width/2),this.paddingLeft=Math.max((d-h+a)*this.width/(this.width-h),0),this.paddingRight=Math.max((g-v+a)*this.width/(this.width-v),0)}else{let h=e.height/2,v=t.height/2;o==="start"?(h=0,v=t.height):o==="end"&&(h=e.height,v=0),this.paddingTop=h+a,this.paddingBottom=v+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){qt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,i;for(e=0,i=t.length;e<i;e++)Ct(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=dm(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:r,_longestTextCache:o}=this,a=[],c=[],u=Math.floor(e/fm(e,i));let f=0,h=0,v,d,g,m,y,x,k,A,I,S,E;for(v=0;v<e;v+=u){if(m=t[v].label,y=this._resolveTickFontOptions(v),r.font=x=y.string,k=o[x]=o[x]||{data:{},gc:[]},A=y.lineHeight,I=S=0,!Ct(m)&&!Gt(m))I=Ha(r,k.data,k.gc,I,m),S=A;else if(Gt(m))for(d=0,g=m.length;d<g;++d)E=m[d],!Ct(E)&&!Gt(E)&&(I=Ha(r,k.data,k.gc,I,E),S+=A);a.push(I),c.push(S),f=Math.max(I,f),h=Math.max(S,h)}aO(o,e);const P=a.indexOf(f),T=c.indexOf(h),F=$=>({width:a[$]||0,height:c[$]||0});return{first:F(0),last:F(e-1),widest:F(P),highest:F(T),widths:a,heights:c}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return KC(this._alignToPixels?zi(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=cO(this.getContext(),t,i))}return this.$context||(this.$context=lO(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=yn(this.labelRotation),i=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,c=o?o.widest.width+a:0,u=o?o.highest.height+a:0;return this.isHorizontal()?u*i>c*r?c/i:u/r:u*r<c*i?u/i:c/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,r=this.options,{grid:o,position:a,border:c}=r,u=o.offset,f=this.isHorizontal(),v=this.ticks.length+(u?1:0),d=ss(o),g=[],m=c.setContext(this.getContext()),y=m.display?m.width:0,x=y/2,k=function(B){return zi(i,B,y)};let A,I,S,E,P,T,F,$,q,U,Y,at;if(a==="top")A=k(this.bottom),T=this.bottom-d,$=A-x,U=k(t.top)+x,at=t.bottom;else if(a==="bottom")A=k(this.top),U=t.top,at=k(t.bottom)-x,T=A+x,$=this.top+d;else if(a==="left")A=k(this.right),P=this.right-d,F=A-x,q=k(t.left)+x,Y=t.right;else if(a==="right")A=k(this.left),q=t.left,Y=k(t.right)-x,P=A+x,F=this.left+d;else if(e==="x"){if(a==="center")A=k((t.top+t.bottom)/2+.5);else if(Mt(a)){const B=Object.keys(a)[0],G=a[B];A=k(this.chart.scales[B].getPixelForValue(G))}U=t.top,at=t.bottom,T=A+x,$=T+d}else if(e==="y"){if(a==="center")A=k((t.left+t.right)/2);else if(Mt(a)){const B=Object.keys(a)[0],G=a[B];A=k(this.chart.scales[B].getPixelForValue(G))}P=A-x,F=P-d,q=t.left,Y=t.right}const nt=_t(r.ticks.maxTicksLimit,v),Z=Math.max(1,Math.ceil(v/nt));for(I=0;I<v;I+=Z){const B=this.getContext(I),G=o.setContext(B),X=c.setContext(B),rt=G.lineWidth,st=G.color,ct=X.dash||[],Ot=X.dashOffset,Ft=G.tickWidth,pt=G.tickColor,xt=G.tickBorderDash||[],Zt=G.tickBorderDashOffset;S=oO(this,I,u),S!==void 0&&(E=zi(i,S,rt),f?P=F=q=Y=E:T=$=U=at=E,g.push({tx1:P,ty1:T,tx2:F,ty2:$,x1:q,y1:U,x2:Y,y2:at,width:rt,color:st,borderDash:ct,borderDashOffset:Ot,tickWidth:Ft,tickColor:pt,tickBorderDash:xt,tickBorderDashOffset:Zt}))}return this._ticksLength=v,this._borderValue=A,g}_computeLabelItems(t){const e=this.axis,i=this.options,{position:r,ticks:o}=i,a=this.isHorizontal(),c=this.ticks,{align:u,crossAlign:f,padding:h,mirror:v}=o,d=ss(i.grid),g=d+h,m=v?-h:g,y=-yn(this.labelRotation),x=[];let k,A,I,S,E,P,T,F,$,q,U,Y,at="middle";if(r==="top")P=this.bottom-m,T=this._getXAxisLabelAlignment();else if(r==="bottom")P=this.top+m,T=this._getXAxisLabelAlignment();else if(r==="left"){const Z=this._getYAxisLabelAlignment(d);T=Z.textAlign,E=Z.x}else if(r==="right"){const Z=this._getYAxisLabelAlignment(d);T=Z.textAlign,E=Z.x}else if(e==="x"){if(r==="center")P=(t.top+t.bottom)/2+g;else if(Mt(r)){const Z=Object.keys(r)[0],B=r[Z];P=this.chart.scales[Z].getPixelForValue(B)+g}T=this._getXAxisLabelAlignment()}else if(e==="y"){if(r==="center")E=(t.left+t.right)/2-g;else if(Mt(r)){const Z=Object.keys(r)[0],B=r[Z];E=this.chart.scales[Z].getPixelForValue(B)}T=this._getYAxisLabelAlignment(d).textAlign}e==="y"&&(u==="start"?at="top":u==="end"&&(at="bottom"));const nt=this._getLabelSizes();for(k=0,A=c.length;k<A;++k){I=c[k],S=I.label;const Z=o.setContext(this.getContext(k));F=this.getPixelForTick(k)+o.labelOffset,$=this._resolveTickFontOptions(k),q=$.lineHeight,U=Gt(S)?S.length:1;const B=U/2,G=Z.color,X=Z.textStrokeColor,rt=Z.textStrokeWidth;let st=T;a?(E=F,T==="inner"&&(k===A-1?st=this.options.reverse?"left":"right":k===0?st=this.options.reverse?"right":"left":st="center"),r==="top"?f==="near"||y!==0?Y=-U*q+q/2:f==="center"?Y=-nt.highest.height/2-B*q+q:Y=-nt.highest.height+q/2:f==="near"||y!==0?Y=q/2:f==="center"?Y=nt.highest.height/2-B*q:Y=nt.highest.height-U*q,v&&(Y*=-1),y!==0&&!Z.showLabelBackdrop&&(E+=q/2*Math.sin(y))):(P=F,Y=(1-U)*q/2);let ct;if(Z.showLabelBackdrop){const Ot=ke(Z.backdropPadding),Ft=nt.heights[k],pt=nt.widths[k];let xt=Y-Ot.top,Zt=0-Ot.left;switch(at){case"middle":xt-=Ft/2;break;case"bottom":xt-=Ft;break}switch(T){case"center":Zt-=pt/2;break;case"right":Zt-=pt;break;case"inner":k===A-1?Zt-=pt:k>0&&(Zt-=pt/2);break}ct={left:Zt,top:xt,width:pt+Ot.width,height:Ft+Ot.height,color:Z.backdropColor}}x.push({label:S,font:$,textOffset:Y,options:{rotation:y,color:G,strokeColor:X,strokeWidth:rt,textAlign:st,textBaseline:at,translation:[E,P],backdrop:ct}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-yn(this.labelRotation))return t==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,a=this._getLabelSizes(),c=t+o,u=a.widest.width;let f,h;return e==="left"?r?(h=this.right+o,i==="near"?f="left":i==="center"?(f="center",h+=u/2):(f="right",h+=u)):(h=this.right-c,i==="near"?f="right":i==="center"?(f="center",h-=u/2):(f="left",h=this.left)):e==="right"?r?(h=this.left+o,i==="near"?f="right":i==="center"?(f="center",h-=u/2):(f="left",h-=u)):(h=this.left+c,i==="near"?f="left":i==="center"?(f="center",h+=u/2):(f="right",h=this.right)):f="right",{textAlign:f,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:r,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,r,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const r=this.ticks.findIndex(o=>o.value===t);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const c=(u,f,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(u.x,u.y),i.lineTo(f.x,f.y),i.stroke(),i.restore())};if(e.display)for(o=0,a=r.length;o<a;++o){const u=r[o];e.drawOnChartArea&&c({x:u.x1,y:u.y1},{x:u.x2,y:u.y2},u),e.drawTicks&&c({x:u.tx1,y:u.ty1},{x:u.tx2,y:u.ty2},{color:u.tickColor,width:u.tickWidth,borderDash:u.tickBorderDash,borderDashOffset:u.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:r}}=this,o=i.setContext(this.getContext()),a=i.display?o.width:0;if(!a)return;const c=r.setContext(this.getContext(0)).lineWidth,u=this._borderValue;let f,h,v,d;this.isHorizontal()?(f=zi(t,this.left,a)-a/2,h=zi(t,this.right,c)+c/2,v=d=u):(v=zi(t,this.top,a)-a/2,d=zi(t,this.bottom,c)+c/2,f=h=u),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(f,v),e.lineTo(h,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&Za(i,r);const o=this.getLabelItems(t);for(const a of o){const c=a.options,u=a.font,f=a.label,h=a.textOffset;Qi(i,f,0,h,u,c)}r&&Qa(i)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;const o=de(i.font),a=ke(i.padding),c=i.align;let u=o.lineHeight/2;e==="bottom"||e==="center"||Mt(e)?(u+=a.bottom,Gt(i.text)&&(u+=o.lineHeight*(i.text.length-1))):u+=a.top;const{titleX:f,titleY:h,maxWidth:v,rotation:d}=hO(this,u,e,c);Qi(t,i.text,0,0,o,{color:i.color,maxWidth:v,rotation:d,textAlign:uO(c,e,r),textBaseline:"middle",translation:[f,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=_t(t.grid&&t.grid.z,-1),r=_t(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==er.prototype.draw?[{z:e,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let o,a;for(o=0,a=e.length;o<a;++o){const c=e[o];c[i]===this.id&&(!t||c.type===t)&&r.push(c)}return r}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return de(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class pa{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;pO(e)&&(i=this.register(e));const r=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=t,fO(t,a,i),this.override&&Kt.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,r=this.scope;i in e&&delete e[i],r&&i in Kt[r]&&(delete Kt[r][i],this.override&&delete Zi[i])}}function fO(n,t,e){const i=As(Object.create(null),[e?Kt.get(e):{},Kt.get(t),n.defaults]);Kt.set(t,i),n.defaultRoutes&&dO(t,n.defaultRoutes),n.descriptors&&Kt.describe(t,n.descriptors)}function dO(n,t){Object.keys(t).forEach(e=>{const i=e.split("."),r=i.pop(),o=[n].concat(i).join("."),a=t[e].split("."),c=a.pop(),u=a.join(".");Kt.route(o,r,u,c)})}function pO(n){return"id"in n&&"defaults"in n}class gO{constructor(){this.controllers=new pa(bn,"datasets",!0),this.elements=new pa(xn,"elements"),this.plugins=new pa(Object,"plugins"),this.scales=new pa(er,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(r=>{const o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(t,o,r):Bt(r,a=>{const c=i||this._getRegistryForType(a);this._exec(t,c,a)})})}_exec(t,e,i){const r=eh(t);qt(i["before"+r],[],i),e[t](i),qt(i["after"+r],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const r=e.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return r}}var On=new gO;class mO{constructor(){this._init=[]}notify(t,e,i,r){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=r?this._descriptors(t).filter(r):this._descriptors(t),a=this._notify(o,t,e,i);return e==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,i,r){r=r||{};for(const o of t){const a=o.plugin,c=a[i],u=[e,r,o.options];if(qt(c,u,a)===!1&&r.cancelable)return!1}return!0}invalidate(){Ct(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,r=_t(i.options&&i.options.plugins,{}),o=vO(i);return r===!1&&!e?[]:yO(t,o,r,e)}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,r=(o,a)=>o.filter(c=>!a.some(u=>c.plugin.id===u.plugin.id));this._notify(r(e,i),t,"stop"),this._notify(r(i,e),t,"start")}}function vO(n){const t={},e=[],i=Object.keys(On.plugins.items);for(let o=0;o<i.length;o++)e.push(On.getPlugin(i[o]));const r=n.plugins||[];for(let o=0;o<r.length;o++){const a=r[o];e.indexOf(a)===-1&&(e.push(a),t[a.id]=!0)}return{plugins:e,localIds:t}}function _O(n,t){return!t&&n===!1?null:n===!0?{}:n}function yO(n,{plugins:t,localIds:e},i,r){const o=[],a=n.getContext();for(const c of t){const u=c.id,f=_O(i[u],r);f!==null&&o.push({plugin:c,options:bO(n.config,{plugin:c,local:e[u]},f,a)})}return o}function bO(n,{plugin:t,local:e},i,r){const o=n.pluginScopeKeys(t),a=n.getOptionScopes(i,o);return e&&t.defaults&&a.push(t.defaults),n.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Mu(n,t){const e=Kt.datasets[n]||{};return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function xO(n,t){let e=n;return n==="_index_"?e=t:n==="_value_"&&(e=t==="x"?"y":"x"),e}function wO(n,t){return n===t?"_index_":"_value_"}function gm(n){if(n==="x"||n==="y"||n==="r")return n}function SO(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function Ou(n,...t){if(gm(n))return n;for(const e of t){const i=e.axis||SO(e.position)||n.length>1&&gm(n[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function mm(n,t,e){if(e[t+"AxisID"]===n)return{axis:t}}function EO(n,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(i=>i.xAxisID===n||i.yAxisID===n);if(e.length)return mm(n,"x",e[0])||mm(n,"y",e[0])}return{}}function kO(n,t){const e=Zi[n.type]||{scales:{}},i=t.scales||{},r=Mu(n.type,t),o=Object.create(null);return Object.keys(i).forEach(a=>{const c=i[a];if(!Mt(c))return console.error(`Invalid scale configuration for scale: ${a}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const u=Ou(a,c,EO(a,n),Kt.scales[c.type]),f=wO(u,r),h=e.scales||{};o[a]=_s(Object.create(null),[{axis:u},c,h[u],h[f]])}),n.data.datasets.forEach(a=>{const c=a.type||n.type,u=a.indexAxis||Mu(c,t),h=(Zi[c]||{}).scales||{};Object.keys(h).forEach(v=>{const d=xO(v,u),g=a[d+"AxisID"]||d;o[g]=o[g]||Object.create(null),_s(o[g],[{axis:d},i[g],h[v]])})}),Object.keys(o).forEach(a=>{const c=o[a];_s(c,[Kt.scales[c.type],Kt.scale])}),o}function bv(n){const t=n.options||(n.options={});t.plugins=_t(t.plugins,{}),t.scales=kO(n,t)}function xv(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function CO(n){return n=n||{},n.data=xv(n.data),bv(n),n}const vm=new Map,wv=new Set;function ga(n,t){let e=vm.get(n);return e||(e=t(),vm.set(n,e),wv.add(e)),e}const os=(n,t,e)=>{const i=Ci(t,e);i!==void 0&&n.add(i)};class AO{constructor(t){this._config=CO(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=xv(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),bv(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ga(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return ga(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return ga(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,i=this.type;return ga(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let r=i.get(t);return(!r||e)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,e,i){const{options:r,type:o}=this,a=this._cachedScopes(t,i),c=a.get(e);if(c)return c;const u=new Set;e.forEach(h=>{t&&(u.add(t),h.forEach(v=>os(u,t,v))),h.forEach(v=>os(u,r,v)),h.forEach(v=>os(u,Zi[o]||{},v)),h.forEach(v=>os(u,Kt,v)),h.forEach(v=>os(u,ku,v))});const f=Array.from(u);return f.length===0&&f.push(Object.create(null)),wv.has(e)&&a.set(e,f),f}chartOptionScopes(){const{options:t,type:e}=this;return[t,Zi[e]||{},Kt.datasets[e]||{},{type:e},Kt,ku]}resolveNamedOptions(t,e,i,r=[""]){const o={$shared:!0},{resolver:a,subPrefixes:c}=_m(this._resolverCache,t,r);let u=a;if(OO(a,e)){o.$shared=!1,i=Ai(i)?i():i;const f=this.createResolver(t,i,c);u=Lr(a,i,f)}for(const f of e)o[f]=u[f];return o}createResolver(t,e,i=[""],r){const{resolver:o}=_m(this._resolverCache,t,i);return Mt(e)?Lr(o,e,void 0,r):o}}function _m(n,t,e){let i=n.get(t);i||(i=new Map,n.set(t,i));const r=e.join();let o=i.get(r);return o||(o={resolver:ah(t,e),subPrefixes:e.filter(c=>!c.toLowerCase().includes("hover"))},i.set(r,o)),o}const MO=n=>Mt(n)&&Object.getOwnPropertyNames(n).some(t=>Ai(n[t]));function OO(n,t){const{isScriptable:e,isIndexable:i}=ev(n);for(const r of t){const o=e(r),a=i(r),c=(a||o)&&n[r];if(o&&(Ai(c)||MO(c))||a&&Gt(c))return!0}return!1}var LO="4.4.8";const PO=["top","bottom","left","right","chartArea"];function ym(n,t){return n==="top"||n==="bottom"||PO.indexOf(n)===-1&&t==="x"}function bm(n,t){return function(e,i){return e[n]===i[n]?e[t]-i[t]:e[n]-i[n]}}function xm(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),qt(e&&e.onComplete,[n],t)}function RO(n){const t=n.chart,e=t.options.animation;qt(e&&e.onProgress,[n],t)}function Sv(n){return uh()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const Ra={},wm=n=>{const t=Sv(n);return Object.values(Ra).filter(e=>e.canvas===t).pop()};function TO(n,t,e){const i=Object.keys(n);for(const r of i){const o=+r;if(o>=t){const a=n[r];delete n[r],(e>0||o>t)&&(n[o+e]=a)}}}function IO(n,t,e,i){return!e||n.type==="mouseout"?null:i?t:n}function ma(n,t,e){return n.options.clip?n[e]:t[e]}function DO(n,t){const{xScale:e,yScale:i}=n;return e&&i?{left:ma(e,t,"left"),right:ma(e,t,"right"),top:ma(i,t,"top"),bottom:ma(i,t,"bottom")}:t}class Zn{static register(...t){On.add(...t),Sm()}static unregister(...t){On.remove(...t),Sm()}constructor(t,e){const i=this.config=new AO(e),r=Sv(t),o=wm(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||ZM(r)),this.platform.updateConfig(i);const c=this.platform.acquireContext(r,a.aspectRatio),u=c&&c.canvas,f=u&&u.height,h=u&&u.width;if(this.id=BC(),this.ctx=c,this.canvas=u,this.width=h,this.height=f,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new mO,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=QC(v=>this.update(v),a.resizeDelay||0),this._dataChanges=[],Ra[this.id]=this,!c||!u){console.error("Failed to create chart: can't acquire context from the given item");return}Kn.listen(this,"complete",xm),Kn.listen(this,"progress",RO),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:r,_aspectRatio:o}=this;return Ct(t)?e&&o?o:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return On}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Vg(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return zg(this.canvas,this.ctx),this}stop(){return Kn.stop(this),this}resize(t,e){Kn.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,r=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,t,e,o),c=i.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Vg(this,c,!0)&&(this.notifyPlugins("resize",{size:a}),qt(i.onResize,[this,a],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};Bt(e,(i,r)=>{i.id=r})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,r=Object.keys(i).reduce((a,c)=>(a[c]=!1,a),{});let o=[];e&&(o=o.concat(Object.keys(e).map(a=>{const c=e[a],u=Ou(a,c),f=u==="r",h=u==="x";return{options:c,dposition:f?"chartArea":h?"bottom":"left",dtype:f?"radialLinear":h?"category":"linear"}}))),Bt(o,a=>{const c=a.options,u=c.id,f=Ou(u,c),h=_t(c.type,a.dtype);(c.position===void 0||ym(c.position,f)!==ym(a.dposition))&&(c.position=a.dposition),r[u]=!0;let v=null;if(u in i&&i[u].type===h)v=i[u];else{const d=On.getScale(h);v=new d({id:u,type:h,ctx:this.ctx,chart:this}),i[v.id]=v}v.init(c,t)}),Bt(r,(a,c)=>{a||delete i[c]}),Bt(i,a=>{Ee.configure(this,a,a.options),Ee.addBox(this,a)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((r,o)=>r.index-o.index),i>e){for(let r=e;r<i;++r)this._destroyDatasetMeta(r);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(bm("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((i,r)=>{e.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=e.length;i<r;i++){const o=e[i];let a=this.getDatasetMeta(i);const c=o.type||this.config.type;if(a.type&&a.type!==c&&(this._destroyDatasetMeta(i),a=this.getDatasetMeta(i)),a.type=c,a.indexAxis=o.indexAxis||Mu(c,this.options),a.order=o.order||0,a.index=i,a.label=""+o.label,a.visible=this.isDatasetVisible(i),a.controller)a.controller.updateIndex(i),a.controller.linkScales();else{const u=On.getController(c),{datasetElementType:f,dataElementType:h}=Kt.datasets[c];Object.assign(u,{dataElementType:On.getElement(h),datasetElementType:f&&On.getElement(f)}),a.controller=new u(this,i),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Bt(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let f=0,h=this.data.datasets.length;f<h;f++){const{controller:v}=this.getDatasetMeta(f),d=!r&&o.indexOf(v)===-1;v.buildOrUpdateElements(d),a=Math.max(+v.getMaxOverflow(),a)}a=this._minPadding=i.layout.autoPadding?a:0,this._updateLayout(a),r||Bt(o,f=>{f.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bm("z","_idx"));const{_active:c,_lastEvent:u}=this;u?this._eventHandler(u,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){Bt(this.scales,t=>{Ee.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Tg(e,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:o}of e){const a=i==="_removeElements"?-o:o;TO(t,r,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=o=>new Set(t.filter(a=>a[0]===o).map((a,c)=>c+","+a.splice(1).join(","))),r=i(0);for(let o=1;o<e;o++)if(!Tg(r,i(o)))return;return Array.from(r).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ee.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Bt(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,o)=>{r._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,i=this.data.datasets.length;e<i;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,Ai(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),r={meta:i,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Kn.has(this)?this.attached&&!Kn.running(this)&&Kn.start(this):(this.draw(),xm({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let r,o;for(r=0,o=e.length;r<o;++r){const a=e[r];(!t||a.visible)&&i.push(a)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,r=!i.disabled,o=DO(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(r&&Za(e,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),r&&Qa(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return si(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,r){const o=PM.modes[e];return typeof o=="function"?o(this,t,i,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let r=i.filter(o=>o&&o._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=Mi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!e.hidden}setDatasetVisibility(t,e){const i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const r=i?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,r);Ms(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),a.update(o,{visible:i}),this.update(c=>c.datasetIndex===t?r:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Kn.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),zg(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Ra[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(o,a)=>{e.addEventListener(this,o,a),t[o]=a},r=(o,a,c)=>{o.offsetX=a,o.offsetY=c,this._eventHandler(o)};Bt(this.options.events,o=>i(o,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(u,f)=>{e.addEventListener(this,u,f),t[u]=f},r=(u,f)=>{t[u]&&(e.removeEventListener(this,u,f),delete t[u])},o=(u,f)=>{this.canvas&&this.resize(u,f)};let a;const c=()=>{r("attach",c),this.attached=!0,this.resize(),i("resize",o),i("detach",a)};a=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),i("attach",c)},e.isAttached(this.canvas)?c():a()}unbindEvents(){Bt(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Bt(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const r=i?"set":"remove";let o,a,c,u;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),c=0,u=t.length;c<u;++c){a=t[c];const f=a&&this.getDatasetMeta(a.datasetIndex).controller;f&&f[r+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map(({datasetIndex:o,index:a})=>{const c=this.getDatasetMeta(o);if(!c)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:c.data[a],index:a}});!Ba(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,i){const r=this.options.hover,o=(u,f)=>u.filter(h=>!f.some(v=>h.datasetIndex===v.datasetIndex&&h.index===v.index)),a=o(e,t),c=i?t:o(t,e);a.length&&this.updateHoverStyle(a,r.mode,!1),c.length&&r.mode&&this.updateHoverStyle(c,r.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const o=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(o||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:r=[],options:o}=this,a=e,c=this._getActiveElements(t,r,i,a),u=zC(t),f=IO(t,this._lastEvent,i,u);i&&(this._lastEvent=null,qt(o.onHover,[t,c,this],this),u&&qt(o.onClick,[t,c,this],this));const h=!Ba(c,r);return(h||e)&&(this._active=c,this._updateHoverStyles(c,r,e)),this._lastEvent=f,h}_getActiveElements(t,e,i,r){if(t.type==="mouseout")return[];if(!i)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,r)}}it(Zn,"defaults",Kt),it(Zn,"instances",Ra),it(Zn,"overrides",Zi),it(Zn,"registry",On),it(Zn,"version",LO),it(Zn,"getChart",wm);function Sm(){return Bt(Zn.instances,n=>n._plugins.invalidate())}function BO(n,t,e){const{startAngle:i,pixelMargin:r,x:o,y:a,outerRadius:c,innerRadius:u}=t;let f=r/c;n.beginPath(),n.arc(o,a,c,i-f,e+f),u>r?(f=r/u,n.arc(o,a,u,e+f,i-f,!0)):n.arc(o,a,r,e+re,i-re),n.closePath(),n.clip()}function FO(n){return oh(n,["outerStart","outerEnd","innerStart","innerEnd"])}function NO(n,t,e,i){const r=FO(n.options.borderRadius),o=(e-t)/2,a=Math.min(o,i*t/2),c=u=>{const f=(e-Math.min(o,u))*i/2;return ge(u,0,Math.min(o,f))};return{outerStart:c(r.outerStart),outerEnd:c(r.outerEnd),innerStart:ge(r.innerStart,0,a),innerEnd:ge(r.innerEnd,0,a)}}function Sr(n,t,e,i){return{x:e+n*Math.cos(t),y:i+n*Math.sin(t)}}function za(n,t,e,i,r,o){const{x:a,y:c,startAngle:u,pixelMargin:f,innerRadius:h}=t,v=Math.max(t.outerRadius+i+e-f,0),d=h>0?h+i+e+f:0;let g=0;const m=r-u;if(i){const Z=h>0?h-i:0,B=v>0?v-i:0,G=(Z+B)/2,X=G!==0?m*G/(G+i):m;g=(m-X)/2}const y=Math.max(.001,m*v-e/jt)/v,x=(m-y)/2,k=u+x+g,A=r-x-g,{outerStart:I,outerEnd:S,innerStart:E,innerEnd:P}=NO(t,d,v,A-k),T=v-I,F=v-S,$=k+I/T,q=A-S/F,U=d+E,Y=d+P,at=k+E/U,nt=A-P/Y;if(n.beginPath(),o){const Z=($+q)/2;if(n.arc(a,c,v,$,Z),n.arc(a,c,v,Z,q),S>0){const rt=Sr(F,q,a,c);n.arc(rt.x,rt.y,S,q,A+re)}const B=Sr(Y,A,a,c);if(n.lineTo(B.x,B.y),P>0){const rt=Sr(Y,nt,a,c);n.arc(rt.x,rt.y,P,A+re,nt+Math.PI)}const G=(A-P/d+(k+E/d))/2;if(n.arc(a,c,d,A-P/d,G,!0),n.arc(a,c,d,G,k+E/d,!0),E>0){const rt=Sr(U,at,a,c);n.arc(rt.x,rt.y,E,at+Math.PI,k-re)}const X=Sr(T,k,a,c);if(n.lineTo(X.x,X.y),I>0){const rt=Sr(T,$,a,c);n.arc(rt.x,rt.y,I,k-re,$)}}else{n.moveTo(a,c);const Z=Math.cos($)*v+a,B=Math.sin($)*v+c;n.lineTo(Z,B);const G=Math.cos(q)*v+a,X=Math.sin(q)*v+c;n.lineTo(G,X)}n.closePath()}function HO(n,t,e,i,r){const{fullCircles:o,startAngle:a,circumference:c}=t;let u=t.endAngle;if(o){za(n,t,e,i,u,r);for(let f=0;f<o;++f)n.fill();isNaN(c)||(u=a+(c%Ut||Ut))}return za(n,t,e,i,u,r),n.fill(),u}function WO(n,t,e,i,r){const{fullCircles:o,startAngle:a,circumference:c,options:u}=t,{borderWidth:f,borderJoinStyle:h,borderDash:v,borderDashOffset:d}=u,g=u.borderAlign==="inner";if(!f)return;n.setLineDash(v||[]),n.lineDashOffset=d,g?(n.lineWidth=f*2,n.lineJoin=h||"round"):(n.lineWidth=f,n.lineJoin=h||"bevel");let m=t.endAngle;if(o){za(n,t,e,i,m,r);for(let y=0;y<o;++y)n.stroke();isNaN(c)||(m=a+(c%Ut||Ut))}g&&BO(n,t,m),o||(za(n,t,e,i,m,r),n.stroke())}class fs extends xn{constructor(e){super();it(this,"circumference");it(this,"endAngle");it(this,"fullCircles");it(this,"innerRadius");it(this,"outerRadius");it(this,"pixelMargin");it(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,i,r){const o=this.getProps(["x","y"],r),{angle:a,distance:c}=V0(o,{x:e,y:i}),{startAngle:u,endAngle:f,innerRadius:h,outerRadius:v,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),g=(this.options.spacing+this.options.borderWidth)/2,m=_t(d,f-u),y=Os(a,u,f)&&u!==f,x=m>=Ut||y,k=ii(c,h+g,v+g);return x&&k}getCenterPoint(e){const{x:i,y:r,startAngle:o,endAngle:a,innerRadius:c,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:f,spacing:h}=this.options,v=(o+a)/2,d=(c+u+h+f)/2;return{x:i+Math.cos(v)*d,y:r+Math.sin(v)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:i,circumference:r}=this,o=(i.offset||0)/4,a=(i.spacing||0)/2,c=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>Ut?Math.floor(r/Ut):0,r===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const u=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(u)*o,Math.sin(u)*o);const f=1-Math.sin(Math.min(jt,r||0)),h=o*f;e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,HO(e,this,h,a,c),WO(e,this,h,a,c),e.restore()}}it(fs,"id","arc"),it(fs,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),it(fs,"defaultRoutes",{backgroundColor:"backgroundColor"}),it(fs,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function Ev(n,t,e=t){n.lineCap=_t(e.borderCapStyle,t.borderCapStyle),n.setLineDash(_t(e.borderDash,t.borderDash)),n.lineDashOffset=_t(e.borderDashOffset,t.borderDashOffset),n.lineJoin=_t(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=_t(e.borderWidth,t.borderWidth),n.strokeStyle=_t(e.borderColor,t.borderColor)}function qO(n,t,e){n.lineTo(e.x,e.y)}function zO(n){return n.stepped?hA:n.tension||n.cubicInterpolationMode==="monotone"?fA:qO}function kv(n,t,e={}){const i=n.length,{start:r=0,end:o=i-1}=e,{start:a,end:c}=t,u=Math.max(r,a),f=Math.min(o,c),h=r<a&&o<a||r>c&&o>c;return{count:i,start:u,loop:t.loop,ilen:f<u&&!h?i+f-u:f-u}}function UO(n,t,e,i){const{points:r,options:o}=t,{count:a,start:c,loop:u,ilen:f}=kv(r,e,i),h=zO(o);let{move:v=!0,reverse:d}=i||{},g,m,y;for(g=0;g<=f;++g)m=r[(c+(d?f-g:g))%a],!m.skip&&(v?(n.moveTo(m.x,m.y),v=!1):h(n,y,m,d,o.stepped),y=m);return u&&(m=r[(c+(d?f:0))%a],h(n,y,m,d,o.stepped)),!!u}function jO(n,t,e,i){const r=t.points,{count:o,start:a,ilen:c}=kv(r,e,i),{move:u=!0,reverse:f}=i||{};let h=0,v=0,d,g,m,y,x,k;const A=S=>(a+(f?c-S:S))%o,I=()=>{y!==x&&(n.lineTo(h,x),n.lineTo(h,y),n.lineTo(h,k))};for(u&&(g=r[A(0)],n.moveTo(g.x,g.y)),d=0;d<=c;++d){if(g=r[A(d)],g.skip)continue;const S=g.x,E=g.y,P=S|0;P===m?(E<y?y=E:E>x&&(x=E),h=(v*h+S)/++v):(I(),n.lineTo(S,E),m=P,v=0,y=x=E),k=E}I()}function Lu(n){const t=n.options,e=t.borderDash&&t.borderDash.length;return!n._decimated&&!n._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?jO:UO}function VO(n){return n.stepped?jA:n.tension||n.cubicInterpolationMode==="monotone"?VA:$i}function $O(n,t,e,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,e,i)&&r.closePath()),Ev(n,t.options),n.stroke(r)}function YO(n,t,e,i){const{segments:r,options:o}=t,a=Lu(t);for(const c of r)Ev(n,o,c.style),n.beginPath(),a(n,t,c,{start:e,end:e+i-1})&&n.closePath(),n.stroke()}const GO=typeof Path2D=="function";function KO(n,t,e,i){GO&&!t.options.segment?$O(n,t,e,i):YO(n,t,e,i)}class wi extends xn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const r=i.spanGaps?this._loop:this._fullLoop;BA(this._points,i,t,r,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=JA(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,r=t[e],o=this.points,a=hv(this,{property:e,start:r,end:r});if(!a.length)return;const c=[],u=VO(i);let f,h;for(f=0,h=a.length;f<h;++f){const{start:v,end:d}=a[f],g=o[v],m=o[d];if(g===m){c.push(g);continue}const y=Math.abs((r-g[e])/(m[e]-g[e])),x=u(g,m,y,i.stepped);x[e]=t[e],c.push(x)}return c.length===1?c[0]:c}pathSegment(t,e,i){return Lu(this)(t,this,e,i)}path(t,e,i){const r=this.segments,o=Lu(this);let a=this._loop;e=e||0,i=i||this.points.length-e;for(const c of r)a&=o(t,this,c,{start:e,end:e+i-1});return!!a}draw(t,e,i,r){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),KO(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}it(wi,"id","line"),it(wi,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),it(wi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),it(wi,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Em(n,t,e,i){const r=n.options,{[e]:o}=n.getProps([e],i);return Math.abs(t-o)<r.radius+r.hitRadius}class Ta extends xn{constructor(e){super();it(this,"parsed");it(this,"skip");it(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){const o=this.options,{x:a,y:c}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(i-c,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,i){return Em(this,e,"x",i)}inYRange(e,i){return Em(this,e,"y",i)}getCenterPoint(e){const{x:i,y:r}=this.getProps(["x","y"],e);return{x:i,y:r}}size(e){e=e||this.options||{};let i=e.radius||0;i=Math.max(i,i&&e.hoverRadius||0);const r=i&&e.borderWidth||0;return(i+r)*2}draw(e,i){const r=this.options;this.skip||r.radius<.1||!si(this,i,this.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,Cu(e,r,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}it(Ta,"id","point"),it(Ta,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),it(Ta,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Cv(n,t){const{x:e,y:i,base:r,width:o,height:a}=n.getProps(["x","y","base","width","height"],t);let c,u,f,h,v;return n.horizontal?(v=a/2,c=Math.min(e,r),u=Math.max(e,r),f=i-v,h=i+v):(v=o/2,c=e-v,u=e+v,f=Math.min(i,r),h=Math.max(i,r)),{left:c,top:f,right:u,bottom:h}}function Si(n,t,e,i){return n?0:ge(t,e,i)}function XO(n,t,e){const i=n.options.borderWidth,r=n.borderSkipped,o=tv(i);return{t:Si(r.top,o.top,0,e),r:Si(r.right,o.right,0,t),b:Si(r.bottom,o.bottom,0,e),l:Si(r.left,o.left,0,t)}}function JO(n,t,e){const{enableBorderRadius:i}=n.getProps(["enableBorderRadius"]),r=n.options.borderRadius,o=Xi(r),a=Math.min(t,e),c=n.borderSkipped,u=i||Mt(r);return{topLeft:Si(!u||c.top||c.left,o.topLeft,0,a),topRight:Si(!u||c.top||c.right,o.topRight,0,a),bottomLeft:Si(!u||c.bottom||c.left,o.bottomLeft,0,a),bottomRight:Si(!u||c.bottom||c.right,o.bottomRight,0,a)}}function ZO(n){const t=Cv(n),e=t.right-t.left,i=t.bottom-t.top,r=XO(n,e/2,i/2),o=JO(n,e/2,i/2);return{outer:{x:t.left,y:t.top,w:e,h:i,radius:o},inner:{x:t.left+r.l,y:t.top+r.t,w:e-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,o.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(r.b,r.r))}}}}function hu(n,t,e,i){const r=t===null,o=e===null,c=n&&!(r&&o)&&Cv(n,i);return c&&(r||ii(t,c.left,c.right))&&(o||ii(e,c.top,c.bottom))}function QO(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}function tL(n,t){n.rect(t.x,t.y,t.w,t.h)}function fu(n,t,e={}){const i=n.x!==e.x?-t:0,r=n.y!==e.y?-t:0,o=(n.x+n.w!==e.x+e.w?t:0)-i,a=(n.y+n.h!==e.y+e.h?t:0)-r;return{x:n.x+i,y:n.y+r,w:n.w+o,h:n.h+a,radius:n.radius}}class Ia extends xn{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:r}}=this,{inner:o,outer:a}=ZO(this),c=QO(a.radius)?Ls:tL;t.save(),(a.w!==o.w||a.h!==o.h)&&(t.beginPath(),c(t,fu(a,e,o)),t.clip(),c(t,fu(o,-e,a)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),c(t,fu(o,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,i){return hu(this,t,e,i)}inXRange(t,e){return hu(this,t,null,e)}inYRange(t,e){return hu(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+r)/2:e,y:o?i:(i+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}it(Ia,"id","bar"),it(Ia,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),it(Ia,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var eL=Object.freeze({__proto__:null,ArcElement:fs,BarElement:Ia,LineElement:wi,PointElement:Ta});const Pu=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],km=Pu.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function Av(n){return Pu[n%Pu.length]}function Mv(n){return km[n%km.length]}function nL(n,t){return n.borderColor=Av(t),n.backgroundColor=Mv(t),++t}function iL(n,t){return n.backgroundColor=n.data.map(()=>Av(t++)),t}function rL(n,t){return n.backgroundColor=n.data.map(()=>Mv(t++)),t}function sL(n){let t=0;return(e,i)=>{const r=n.getDatasetMeta(i).controller;r instanceof Ki?t=iL(e,t):r instanceof ws?t=rL(e,t):r&&(t=nL(e,t))}}function Cm(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}function oL(n){return n&&(n.borderColor||n.backgroundColor)}function aL(){return Kt.borderColor!=="rgba(0,0,0,0.1)"||Kt.backgroundColor!=="rgba(0,0,0,0.1)"}var lL={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,t,e){if(!e.enabled)return;const{data:{datasets:i},options:r}=n.config,{elements:o}=r,a=Cm(i)||oL(r)||o&&Cm(o)||aL();if(!e.forceOverride&&a)return;const c=sL(n);i.forEach(c)}};function cL(n,t,e,i,r){const o=r.samples||i;if(o>=e)return n.slice(t,t+e);const a=[],c=(e-2)/(o-2);let u=0;const f=t+e-1;let h=t,v,d,g,m,y;for(a[u++]=n[h],v=0;v<o-2;v++){let x=0,k=0,A;const I=Math.floor((v+1)*c)+1+t,S=Math.min(Math.floor((v+2)*c)+1,e)+t,E=S-I;for(A=I;A<S;A++)x+=n[A].x,k+=n[A].y;x/=E,k/=E;const P=Math.floor(v*c)+1+t,T=Math.min(Math.floor((v+1)*c)+1,e)+t,{x:F,y:$}=n[h];for(g=m=-1,A=P;A<T;A++)m=.5*Math.abs((F-x)*(n[A].y-$)-(F-n[A].x)*(k-$)),m>g&&(g=m,d=n[A],y=A);a[u++]=d,h=y}return a[u++]=n[f],a}function uL(n,t,e,i){let r=0,o=0,a,c,u,f,h,v,d,g,m,y;const x=[],k=t+e-1,A=n[t].x,S=n[k].x-A;for(a=t;a<t+e;++a){c=n[a],u=(c.x-A)/S*i,f=c.y;const E=u|0;if(E===h)f<m?(m=f,v=a):f>y&&(y=f,d=a),r=(o*r+c.x)/++o;else{const P=a-1;if(!Ct(v)&&!Ct(d)){const T=Math.min(v,d),F=Math.max(v,d);T!==g&&T!==P&&x.push({...n[T],x:r}),F!==g&&F!==P&&x.push({...n[F],x:r})}a>0&&P!==g&&x.push(n[P]),x.push(c),h=E,o=0,m=y=f,v=d=g=a}}return x}function Ov(n){if(n._decimated){const t=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Am(n){n.data.datasets.forEach(t=>{Ov(t)})}function hL(n,t){const e=t.length;let i=0,r;const{iScale:o}=n,{min:a,max:c,minDefined:u,maxDefined:f}=o.getUserBounds();return u&&(i=ge(ri(t,o.axis,a).lo,0,e-1)),f?r=ge(ri(t,o.axis,c).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var fL={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled){Am(n);return}const i=n.width;n.data.datasets.forEach((r,o)=>{const{_data:a,indexAxis:c}=r,u=n.getDatasetMeta(o),f=a||r.data;if(us([c,n.options.indexAxis])==="y"||!u.controller.supportsDecimation)return;const h=n.scales[u.xAxisID];if(h.type!=="linear"&&h.type!=="time"||n.options.parsing)return;let{start:v,count:d}=hL(u,f);const g=e.threshold||4*i;if(d<=g){Ov(r);return}Ct(a)&&(r._data=f,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(y){this._data=y}}));let m;switch(e.algorithm){case"lttb":m=cL(f,v,d,i,e);break;case"min-max":m=uL(f,v,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=m})},destroy(n){Am(n)}};function dL(n,t,e){const i=n.segments,r=n.points,o=t.points,a=[];for(const c of i){let{start:u,end:f}=c;f=dh(u,f,r);const h=Ru(e,r[u],r[f],c.loop);if(!t.segments){a.push({source:c,target:h,start:r[u],end:r[f]});continue}const v=hv(t,h);for(const d of v){const g=Ru(e,o[d.start],o[d.end],d.loop),m=uv(c,r,g);for(const y of m)a.push({source:y,target:d,start:{[e]:Mm(h,g,"start",Math.max)},end:{[e]:Mm(h,g,"end",Math.min)}})}}return a}function Ru(n,t,e,i){if(i)return;let r=t[n],o=e[n];return n==="angle"&&(r=Qe(r),o=Qe(o)),{property:n,start:r,end:o}}function pL(n,t){const{x:e=null,y:i=null}=n||{},r=t.points,o=[];return t.segments.forEach(({start:a,end:c})=>{c=dh(a,c,r);const u=r[a],f=r[c];i!==null?(o.push({x:u.x,y:i}),o.push({x:f.x,y:i})):e!==null&&(o.push({x:e,y:u.y}),o.push({x:e,y:f.y}))}),o}function dh(n,t,e){for(;t>n;t--){const i=e[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function Mm(n,t,e,i){return n&&t?i(n[e],t[e]):n?n[e]:t?t[e]:0}function Lv(n,t){let e=[],i=!1;return Gt(n)?(i=!0,e=n):e=pL(n,t),e.length?new wi({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function Om(n){return n&&n.fill!==!1}function gL(n,t,e){let r=n[t].fill;const o=[t];let a;if(!e)return r;for(;r!==!1&&o.indexOf(r)===-1;){if(!ee(r))return r;if(a=n[r],!a)return!1;if(a.visible)return r;o.push(r),r=a.fill}return!1}function mL(n,t,e){const i=bL(n);if(Mt(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return ee(r)&&Math.floor(r)===r?vL(i[0],t,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function vL(n,t,e,i){return(n==="-"||n==="+")&&(e=t+e),e===t||e<0||e>=i?!1:e}function _L(n,t){let e=null;return n==="start"?e=t.bottom:n==="end"?e=t.top:Mt(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}function yL(n,t,e){let i;return n==="start"?i=e:n==="end"?i=t.options.reverse?t.min:t.max:Mt(n)?i=n.value:i=t.getBaseValue(),i}function bL(n){const t=n.options,e=t.fill;let i=_t(e&&e.target,e);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function xL(n){const{scale:t,index:e,line:i}=n,r=[],o=i.segments,a=i.points,c=wL(t,e);c.push(Lv({x:null,y:t.bottom},i));for(let u=0;u<o.length;u++){const f=o[u];for(let h=f.start;h<=f.end;h++)SL(r,a[h],c)}return new wi({points:r,options:{}})}function wL(n,t){const e=[],i=n.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){const o=i[r];if(o.index===t)break;o.hidden||e.unshift(o.dataset)}return e}function SL(n,t,e){const i=[];for(let r=0;r<e.length;r++){const o=e[r],{first:a,last:c,point:u}=EL(o,t,"x");if(!(!u||a&&c)){if(a)i.unshift(u);else if(n.push(u),!c)break}}n.push(...i)}function EL(n,t,e){const i=n.interpolate(t,e);if(!i)return{};const r=i[e],o=n.segments,a=n.points;let c=!1,u=!1;for(let f=0;f<o.length;f++){const h=o[f],v=a[h.start][e],d=a[h.end][e];if(ii(r,v,d)){c=r===v,u=r===d;break}}return{first:c,last:u,point:i}}class Pv{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:r,y:o,radius:a}=this;return e=e||{start:0,end:Ut},t.arc(r,o,a,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:r}=this,o=t.angle;return{x:e+Math.cos(o)*r,y:i+Math.sin(o)*r,angle:o}}}function kL(n){const{chart:t,fill:e,line:i}=n;if(ee(e))return CL(t,e);if(e==="stack")return xL(n);if(e==="shape")return!0;const r=AL(n);return r instanceof Pv?r:Lv(r,i)}function CL(n,t){const e=n.getDatasetMeta(t);return e&&n.isDatasetVisible(t)?e.dataset:null}function AL(n){return(n.scale||{}).getPointPositionForValue?OL(n):ML(n)}function ML(n){const{scale:t={},fill:e}=n,i=_L(e,t);if(ee(i)){const r=t.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function OL(n){const{scale:t,fill:e}=n,i=t.options,r=t.getLabels().length,o=i.reverse?t.max:t.min,a=yL(e,t,o),c=[];if(i.grid.circular){const u=t.getPointPositionForValue(0,o);return new Pv({x:u.x,y:u.y,radius:t.getDistanceFromCenterForValue(a)})}for(let u=0;u<r;++u)c.push(t.getPointPositionForValue(u,a));return c}function du(n,t,e){const i=kL(t),{line:r,scale:o,axis:a}=t,c=r.options,u=c.fill,f=c.backgroundColor,{above:h=f,below:v=f}=u||{};i&&r.points.length&&(Za(n,e),LL(n,{line:r,target:i,above:h,below:v,area:e,scale:o,axis:a}),Qa(n))}function LL(n,t){const{line:e,target:i,above:r,below:o,area:a,scale:c}=t,u=e._loop?"angle":t.axis;n.save(),u==="x"&&o!==r&&(Lm(n,i,a.top),Pm(n,{line:e,target:i,color:r,scale:c,property:u}),n.restore(),n.save(),Lm(n,i,a.bottom)),Pm(n,{line:e,target:i,color:o,scale:c,property:u}),n.restore()}function Lm(n,t,e){const{segments:i,points:r}=t;let o=!0,a=!1;n.beginPath();for(const c of i){const{start:u,end:f}=c,h=r[u],v=r[dh(u,f,r)];o?(n.moveTo(h.x,h.y),o=!1):(n.lineTo(h.x,e),n.lineTo(h.x,h.y)),a=!!t.pathSegment(n,c,{move:a}),a?n.closePath():n.lineTo(v.x,e)}n.lineTo(t.first().x,e),n.closePath(),n.clip()}function Pm(n,t){const{line:e,target:i,property:r,color:o,scale:a}=t,c=dL(e,i,r);for(const{source:u,target:f,start:h,end:v}of c){const{style:{backgroundColor:d=o}={}}=u,g=i!==!0;n.save(),n.fillStyle=d,PL(n,a,g&&Ru(r,h,v)),n.beginPath();const m=!!e.pathSegment(n,u);let y;if(g){m?n.closePath():Rm(n,i,v,r);const x=!!i.pathSegment(n,f,{move:m,reverse:!0});y=m&&x,y||Rm(n,i,h,r)}n.closePath(),n.fill(y?"evenodd":"nonzero"),n.restore()}}function PL(n,t,e){const{top:i,bottom:r}=t.chart.chartArea,{property:o,start:a,end:c}=e||{};o==="x"&&(n.beginPath(),n.rect(a,i,c-a,r-i),n.clip())}function Rm(n,t,e,i){const r=t.interpolate(e,i);r&&n.lineTo(r.x,r.y)}var RL={id:"filler",afterDatasetsUpdate(n,t,e){const i=(n.data.datasets||[]).length,r=[];let o,a,c,u;for(a=0;a<i;++a)o=n.getDatasetMeta(a),c=o.dataset,u=null,c&&c.options&&c instanceof wi&&(u={visible:n.isDatasetVisible(a),index:a,fill:mL(c,a,i),chart:n,axis:o.controller.options.indexAxis,scale:o.vScale,line:c}),o.$filler=u,r.push(u);for(a=0;a<i;++a)u=r[a],!(!u||u.fill===!1)&&(u.fill=gL(r,a,e.propagate))},beforeDraw(n,t,e){const i=e.drawTime==="beforeDraw",r=n.getSortedVisibleDatasetMetas(),o=n.chartArea;for(let a=r.length-1;a>=0;--a){const c=r[a].$filler;c&&(c.line.updateControlPoints(o,c.axis),i&&c.fill&&du(n.ctx,c,o))}},beforeDatasetsDraw(n,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;const i=n.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){const o=i[r].$filler;Om(o)&&du(n.ctx,o,n.chartArea)}},beforeDatasetDraw(n,t,e){const i=t.meta.$filler;!Om(i)||e.drawTime!=="beforeDatasetDraw"||du(n.ctx,i,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Tm=(n,t)=>{let{boxHeight:e=t,boxWidth:i=t}=n;return n.usePointStyle&&(e=Math.min(e,t),i=n.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(t,e)}},TL=(n,t)=>n!==null&&t!==null&&n.datasetIndex===t.datasetIndex&&n.index===t.index;class Im extends xn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=qt(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(i=>t.filter(i,this.chart.data))),t.sort&&(e=e.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,r=de(i.font),o=r.size,a=this._computeTitleHeight(),{boxWidth:c,itemHeight:u}=Tm(i,o);let f,h;e.font=r.string,this.isHorizontal()?(f=this.maxWidth,h=this._fitRows(a,o,c,u)+10):(h=this.maxHeight,f=this._fitCols(a,r,c,u)+10),this.width=Math.min(f,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,r){const{ctx:o,maxWidth:a,options:{labels:{padding:c}}}=this,u=this.legendHitBoxes=[],f=this.lineWidths=[0],h=r+c;let v=t;o.textAlign="left",o.textBaseline="middle";let d=-1,g=-h;return this.legendItems.forEach((m,y)=>{const x=i+e/2+o.measureText(m.text).width;(y===0||f[f.length-1]+x+2*c>a)&&(v+=h,f[f.length-(y>0?0:1)]=0,g+=h,d++),u[y]={left:0,top:g,row:d,width:x,height:r},f[f.length-1]+=x+c}),v}_fitCols(t,e,i,r){const{ctx:o,maxHeight:a,options:{labels:{padding:c}}}=this,u=this.legendHitBoxes=[],f=this.columnSizes=[],h=a-t;let v=c,d=0,g=0,m=0,y=0;return this.legendItems.forEach((x,k)=>{const{itemWidth:A,itemHeight:I}=IL(i,e,o,x,r);k>0&&g+I+2*c>h&&(v+=d+c,f.push({width:d,height:g}),m+=d+c,y++,d=g=0),u[k]={left:m,top:g,col:y,width:A,height:I},d=Math.max(d,A),g+=I+c}),v+=d,f.push({width:d,height:g}),v}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,a=Mr(o,this.left,this.width);if(this.isHorizontal()){let c=0,u=Se(i,this.left+r,this.right-this.lineWidths[c]);for(const f of e)c!==f.row&&(c=f.row,u=Se(i,this.left+r,this.right-this.lineWidths[c])),f.top+=this.top+t+r,f.left=a.leftForLtr(a.x(u),f.width),u+=f.width+r}else{let c=0,u=Se(i,this.top+t+r,this.bottom-this.columnSizes[c].height);for(const f of e)f.col!==c&&(c=f.col,u=Se(i,this.top+t+r,this.bottom-this.columnSizes[c].height)),f.top=u,f.left+=this.left+r,f.left=a.leftForLtr(a.x(f.left),f.width),u+=f.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Za(t,this),this._draw(),Qa(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:a}=t,c=Kt.color,u=Mr(t.rtl,this.left,this.width),f=de(a.font),{padding:h}=a,v=f.size,d=v/2;let g;this.drawTitle(),r.textAlign=u.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=f.string;const{boxWidth:m,boxHeight:y,itemHeight:x}=Tm(a,v),k=function(P,T,F){if(isNaN(m)||m<=0||isNaN(y)||y<0)return;r.save();const $=_t(F.lineWidth,1);if(r.fillStyle=_t(F.fillStyle,c),r.lineCap=_t(F.lineCap,"butt"),r.lineDashOffset=_t(F.lineDashOffset,0),r.lineJoin=_t(F.lineJoin,"miter"),r.lineWidth=$,r.strokeStyle=_t(F.strokeStyle,c),r.setLineDash(_t(F.lineDash,[])),a.usePointStyle){const q={radius:y*Math.SQRT2/2,pointStyle:F.pointStyle,rotation:F.rotation,borderWidth:$},U=u.xPlus(P,m/2),Y=T+d;Q0(r,q,U,Y,a.pointStyleWidth&&m)}else{const q=T+Math.max((v-y)/2,0),U=u.leftForLtr(P,m),Y=Xi(F.borderRadius);r.beginPath(),Object.values(Y).some(at=>at!==0)?Ls(r,{x:U,y:q,w:m,h:y,radius:Y}):r.rect(U,q,m,y),r.fill(),$!==0&&r.stroke()}r.restore()},A=function(P,T,F){Qi(r,F.text,P,T+x/2,f,{strikethrough:F.hidden,textAlign:u.textAlign(F.textAlign)})},I=this.isHorizontal(),S=this._computeTitleHeight();I?g={x:Se(o,this.left+h,this.right-i[0]),y:this.top+h+S,line:0}:g={x:this.left+h,y:Se(o,this.top+S+h,this.bottom-e[0].height),line:0},av(this.ctx,t.textDirection);const E=x+h;this.legendItems.forEach((P,T)=>{r.strokeStyle=P.fontColor,r.fillStyle=P.fontColor;const F=r.measureText(P.text).width,$=u.textAlign(P.textAlign||(P.textAlign=a.textAlign)),q=m+d+F;let U=g.x,Y=g.y;u.setWidth(this.width),I?T>0&&U+q+h>this.right&&(Y=g.y+=E,g.line++,U=g.x=Se(o,this.left+h,this.right-i[g.line])):T>0&&Y+E>this.bottom&&(U=g.x=U+e[g.line].width+h,g.line++,Y=g.y=Se(o,this.top+S+h,this.bottom-e[g.line].height));const at=u.x(U);if(k(at,Y,P),U=tA($,U+m+d,I?U+q:this.right,t.rtl),A(u.x(U),Y,P),I)g.x+=q+h;else if(typeof P.text!="string"){const nt=f.lineHeight;g.y+=Rv(P,nt)+h}else g.y+=E}),lv(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=de(e.font),r=ke(e.padding);if(!e.display)return;const o=Mr(t.rtl,this.left,this.width),a=this.ctx,c=e.position,u=i.size/2,f=r.top+u;let h,v=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+f,v=Se(t.align,v,this.right-d);else{const m=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);h=f+Se(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const g=Se(c,v,v+d);a.textAlign=o.textAlign(rh(c)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Qi(a,e.text,g,h,i)}_computeTitleHeight(){const t=this.options.title,e=de(t.font),i=ke(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,r,o;if(ii(t,this.left,this.right)&&ii(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(r=o[i],ii(t,r.left,r.left+r.width)&&ii(e,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(t){const e=this.options;if(!FL(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const r=this._hoveredItem,o=TL(r,i);r&&!o&&qt(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!o&&qt(e.onHover,[t,i,this],this)}else i&&qt(e.onClick,[t,i,this],this)}}function IL(n,t,e,i,r){const o=DL(i,n,t,e),a=BL(r,i,t.lineHeight);return{itemWidth:o,itemHeight:a}}function DL(n,t,e,i){let r=n.text;return r&&typeof r!="string"&&(r=r.reduce((o,a)=>o.length>a.length?o:a)),t+e.size/2+i.measureText(r).width}function BL(n,t,e){let i=n;return typeof t.text!="string"&&(i=Rv(t,e)),i}function Rv(n,t){const e=n.text?n.text.length:0;return t*e}function FL(n,t){return!!((n==="mousemove"||n==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(n==="click"||n==="mouseup"))}var NL={id:"legend",_element:Im,start(n,t,e){const i=n.legend=new Im({ctx:n.ctx,options:e,chart:n});Ee.configure(n,i,e),Ee.addBox(n,i)},stop(n){Ee.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const i=n.legend;Ee.configure(n,i,e),i.options=e},afterUpdate(n){const t=n.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(n,t){t.replay||n.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,t,e){const i=t.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const t=n.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o,useBorderRadius:a,borderRadius:c}}=n.legend.options;return n._getSortedDatasetMetas().map(u=>{const f=u.controller.getStyle(e?0:void 0),h=ke(f.borderWidth);return{text:t[u.index].label,fillStyle:f.backgroundColor,fontColor:o,hidden:!u.visible,lineCap:f.borderCapStyle,lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:f.borderColor,pointStyle:i||f.pointStyle,rotation:f.rotation,textAlign:r||f.textAlign,borderRadius:a&&(c||f.borderRadius),datasetIndex:u.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class ph extends xn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const r=Gt(i.text)?i.text.length:1;this._padding=ke(i.padding);const o=r*de(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:i,bottom:r,right:o,options:a}=this,c=a.align;let u=0,f,h,v;return this.isHorizontal()?(h=Se(c,i,o),v=e+t,f=o-i):(a.position==="left"?(h=i+t,v=Se(c,r,e),u=jt*-.5):(h=o-t,v=Se(c,e,r),u=jt*.5),f=r-e),{titleX:h,titleY:v,maxWidth:f,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=de(e.font),o=i.lineHeight/2+this._padding.top,{titleX:a,titleY:c,maxWidth:u,rotation:f}=this._drawArgs(o);Qi(t,e.text,0,0,i,{color:e.color,maxWidth:u,rotation:f,textAlign:rh(e.align),textBaseline:"middle",translation:[a,c]})}}function HL(n,t){const e=new ph({ctx:n.ctx,options:t,chart:n});Ee.configure(n,e,t),Ee.addBox(n,e),n.titleBlock=e}var WL={id:"title",_element:ph,start(n,t,e){HL(n,e)},stop(n){const t=n.titleBlock;Ee.removeBox(n,t),delete n.titleBlock},beforeUpdate(n,t,e){const i=n.titleBlock;Ee.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const va=new WeakMap;var qL={id:"subtitle",start(n,t,e){const i=new ph({ctx:n.ctx,options:e,chart:n});Ee.configure(n,i,e),Ee.addBox(n,i),va.set(n,i)},stop(n){Ee.removeBox(n,va.get(n)),va.delete(n)},beforeUpdate(n,t,e){const i=va.get(n);Ee.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ds={average(n){if(!n.length)return!1;let t,e,i=new Set,r=0,o=0;for(t=0,e=n.length;t<e;++t){const c=n[t].element;if(c&&c.hasValue()){const u=c.tooltipPosition();i.add(u.x),r+=u.y,++o}}return o===0||i.size===0?!1:{x:[...i].reduce((c,u)=>c+u)/i.size,y:r/o}},nearest(n,t){if(!n.length)return!1;let e=t.x,i=t.y,r=Number.POSITIVE_INFINITY,o,a,c;for(o=0,a=n.length;o<a;++o){const u=n[o].element;if(u&&u.hasValue()){const f=u.getCenterPoint(),h=Eu(t,f);h<r&&(r=h,c=u)}}if(c){const u=c.tooltipPosition();e=u.x,i=u.y}return{x:e,y:i}}};function Mn(n,t){return t&&(Gt(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function Xn(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(`
|
|
444
|
+
`)>-1?n.split(`
|
|
445
|
+
`):n}function zL(n,t){const{element:e,datasetIndex:i,index:r}=t,o=n.getDatasetMeta(i).controller,{label:a,value:c}=o.getLabelAndValue(r);return{chart:n,label:a,parsed:o.getParsed(r),raw:n.data.datasets[i].data[r],formattedValue:c,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function Dm(n,t){const e=n.chart.ctx,{body:i,footer:r,title:o}=n,{boxWidth:a,boxHeight:c}=t,u=de(t.bodyFont),f=de(t.titleFont),h=de(t.footerFont),v=o.length,d=r.length,g=i.length,m=ke(t.padding);let y=m.height,x=0,k=i.reduce((S,E)=>S+E.before.length+E.lines.length+E.after.length,0);if(k+=n.beforeBody.length+n.afterBody.length,v&&(y+=v*f.lineHeight+(v-1)*t.titleSpacing+t.titleMarginBottom),k){const S=t.displayColors?Math.max(c,u.lineHeight):u.lineHeight;y+=g*S+(k-g)*u.lineHeight+(k-1)*t.bodySpacing}d&&(y+=t.footerMarginTop+d*h.lineHeight+(d-1)*t.footerSpacing);let A=0;const I=function(S){x=Math.max(x,e.measureText(S).width+A)};return e.save(),e.font=f.string,Bt(n.title,I),e.font=u.string,Bt(n.beforeBody.concat(n.afterBody),I),A=t.displayColors?a+2+t.boxPadding:0,Bt(i,S=>{Bt(S.before,I),Bt(S.lines,I),Bt(S.after,I)}),A=0,e.font=h.string,Bt(n.footer,I),e.restore(),x+=m.width,{width:x,height:y}}function UL(n,t){const{y:e,height:i}=t;return e<i/2?"top":e>n.height-i/2?"bottom":"center"}function jL(n,t,e,i){const{x:r,width:o}=i,a=e.caretSize+e.caretPadding;if(n==="left"&&r+o+a>t.width||n==="right"&&r-o-a<0)return!0}function VL(n,t,e,i){const{x:r,width:o}=e,{width:a,chartArea:{left:c,right:u}}=n;let f="center";return i==="center"?f=r<=(c+u)/2?"left":"right":r<=o/2?f="left":r>=a-o/2&&(f="right"),jL(f,n,t,e)&&(f="center"),f}function Bm(n,t,e){const i=e.yAlign||t.yAlign||UL(n,e);return{xAlign:e.xAlign||t.xAlign||VL(n,t,e,i),yAlign:i}}function $L(n,t){let{x:e,width:i}=n;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function YL(n,t,e){let{y:i,height:r}=n;return t==="top"?i+=e:t==="bottom"?i-=r+e:i-=r/2,i}function Fm(n,t,e,i){const{caretSize:r,caretPadding:o,cornerRadius:a}=n,{xAlign:c,yAlign:u}=e,f=r+o,{topLeft:h,topRight:v,bottomLeft:d,bottomRight:g}=Xi(a);let m=$L(t,c);const y=YL(t,u,f);return u==="center"?c==="left"?m+=f:c==="right"&&(m-=f):c==="left"?m-=Math.max(h,d)+r:c==="right"&&(m+=Math.max(v,g)+r),{x:ge(m,0,i.width-t.width),y:ge(y,0,i.height-t.height)}}function _a(n,t,e){const i=ke(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-i.right:n.x+i.left}function Nm(n){return Mn([],Xn(n))}function GL(n,t,e){return Mi(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Hm(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}const Tv={beforeTitle:Gn,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return e[t.dataIndex]}return""},afterTitle:Gn,beforeBody:Gn,beforeLabel:Gn,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");const e=n.formattedValue;return Ct(e)||(t+=e),t},labelColor(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Gn,afterBody:Gn,beforeFooter:Gn,footer:Gn,afterFooter:Gn};function Ne(n,t,e,i){const r=n[t].call(e,i);return typeof r>"u"?Tv[t].call(e,i):r}class Tu extends xn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&e.options.animation&&i.animations,o=new fv(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=GL(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:i}=e,r=Ne(i,"beforeTitle",this,t),o=Ne(i,"title",this,t),a=Ne(i,"afterTitle",this,t);let c=[];return c=Mn(c,Xn(r)),c=Mn(c,Xn(o)),c=Mn(c,Xn(a)),c}getBeforeBody(t,e){return Nm(Ne(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,r=[];return Bt(t,o=>{const a={before:[],lines:[],after:[]},c=Hm(i,o);Mn(a.before,Xn(Ne(c,"beforeLabel",this,o))),Mn(a.lines,Ne(c,"label",this,o)),Mn(a.after,Xn(Ne(c,"afterLabel",this,o))),r.push(a)}),r}getAfterBody(t,e){return Nm(Ne(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,r=Ne(i,"beforeFooter",this,t),o=Ne(i,"footer",this,t),a=Ne(i,"afterFooter",this,t);let c=[];return c=Mn(c,Xn(r)),c=Mn(c,Xn(o)),c=Mn(c,Xn(a)),c}_createItems(t){const e=this._active,i=this.chart.data,r=[],o=[],a=[];let c=[],u,f;for(u=0,f=e.length;u<f;++u)c.push(zL(this.chart,e[u]));return t.filter&&(c=c.filter((h,v,d)=>t.filter(h,v,d,i))),t.itemSort&&(c=c.sort((h,v)=>t.itemSort(h,v,i))),Bt(c,h=>{const v=Hm(t.callbacks,h);r.push(Ne(v,"labelColor",this,h)),o.push(Ne(v,"labelPointStyle",this,h)),a.push(Ne(v,"labelTextColor",this,h))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=c,c}update(t,e){const i=this.options.setContext(this.getContext()),r=this._active;let o,a=[];if(!r.length)this.opacity!==0&&(o={opacity:0});else{const c=ds[i.position].call(this,r,this._eventPosition);a=this._createItems(i),this.title=this.getTitle(a,i),this.beforeBody=this.getBeforeBody(a,i),this.body=this.getBody(a,i),this.afterBody=this.getAfterBody(a,i),this.footer=this.getFooter(a,i);const u=this._size=Dm(this,i),f=Object.assign({},c,u),h=Bm(this.chart,i,f),v=Fm(i,f,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:v.x,y:v.y,width:u.width,height:u.height,caretX:c.x,caretY:c.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,r){const o=this.getCaretPosition(t,i,r);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,i){const{xAlign:r,yAlign:o}=this,{caretSize:a,cornerRadius:c}=i,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:v}=Xi(c),{x:d,y:g}=t,{width:m,height:y}=e;let x,k,A,I,S,E;return o==="center"?(S=g+y/2,r==="left"?(x=d,k=x-a,I=S+a,E=S-a):(x=d+m,k=x+a,I=S-a,E=S+a),A=x):(r==="left"?k=d+Math.max(u,h)+a:r==="right"?k=d+m-Math.max(f,v)-a:k=this.caretX,o==="top"?(I=g,S=I-a,x=k-a,A=k+a):(I=g+y,S=I+a,x=k+a,A=k-a),E=I),{x1:x,x2:k,x3:A,y1:I,y2:S,y3:E}}drawTitle(t,e,i){const r=this.title,o=r.length;let a,c,u;if(o){const f=Mr(i.rtl,this.x,this.width);for(t.x=_a(this,i.titleAlign,i),e.textAlign=f.textAlign(i.titleAlign),e.textBaseline="middle",a=de(i.titleFont),c=i.titleSpacing,e.fillStyle=i.titleColor,e.font=a.string,u=0;u<o;++u)e.fillText(r[u],f.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+c,u+1===o&&(t.y+=i.titleMarginBottom-c)}}_drawColorBox(t,e,i,r,o){const a=this.labelColors[i],c=this.labelPointStyles[i],{boxHeight:u,boxWidth:f}=o,h=de(o.bodyFont),v=_a(this,"left",o),d=r.x(v),g=u<h.lineHeight?(h.lineHeight-u)/2:0,m=e.y+g;if(o.usePointStyle){const y={radius:Math.min(f,u)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},x=r.leftForLtr(d,f)+f/2,k=m+u/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Cu(t,y,x,k),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Cu(t,y,x,k)}else{t.lineWidth=Mt(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const y=r.leftForLtr(d,f),x=r.leftForLtr(r.xPlus(d,1),f-2),k=Xi(a.borderRadius);Object.values(k).some(A=>A!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Ls(t,{x:y,y:m,w:f,h:u,radius:k}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Ls(t,{x,y:m+1,w:f-2,h:u-2,radius:k}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,m,f,u),t.strokeRect(y,m,f,u),t.fillStyle=a.backgroundColor,t.fillRect(x,m+1,f-2,u-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:r}=this,{bodySpacing:o,bodyAlign:a,displayColors:c,boxHeight:u,boxWidth:f,boxPadding:h}=i,v=de(i.bodyFont);let d=v.lineHeight,g=0;const m=Mr(i.rtl,this.x,this.width),y=function(F){e.fillText(F,m.x(t.x+g),t.y+d/2),t.y+=d+o},x=m.textAlign(a);let k,A,I,S,E,P,T;for(e.textAlign=a,e.textBaseline="middle",e.font=v.string,t.x=_a(this,x,i),e.fillStyle=i.bodyColor,Bt(this.beforeBody,y),g=c&&x!=="right"?a==="center"?f/2+h:f+2+h:0,S=0,P=r.length;S<P;++S){for(k=r[S],A=this.labelTextColors[S],e.fillStyle=A,Bt(k.before,y),I=k.lines,c&&I.length&&(this._drawColorBox(e,t,S,m,i),d=Math.max(v.lineHeight,u)),E=0,T=I.length;E<T;++E)y(I[E]),d=v.lineHeight;Bt(k.after,y)}g=0,d=v.lineHeight,Bt(this.afterBody,y),t.y-=o}drawFooter(t,e,i){const r=this.footer,o=r.length;let a,c;if(o){const u=Mr(i.rtl,this.x,this.width);for(t.x=_a(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=u.textAlign(i.footerAlign),e.textBaseline="middle",a=de(i.footerFont),e.fillStyle=i.footerColor,e.font=a.string,c=0;c<o;++c)e.fillText(r[c],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+i.footerSpacing}}drawBackground(t,e,i,r){const{xAlign:o,yAlign:a}=this,{x:c,y:u}=t,{width:f,height:h}=i,{topLeft:v,topRight:d,bottomLeft:g,bottomRight:m}=Xi(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(c+v,u),a==="top"&&this.drawCaret(t,e,i,r),e.lineTo(c+f-d,u),e.quadraticCurveTo(c+f,u,c+f,u+d),a==="center"&&o==="right"&&this.drawCaret(t,e,i,r),e.lineTo(c+f,u+h-m),e.quadraticCurveTo(c+f,u+h,c+f-m,u+h),a==="bottom"&&this.drawCaret(t,e,i,r),e.lineTo(c+g,u+h),e.quadraticCurveTo(c,u+h,c,u+h-g),a==="center"&&o==="left"&&this.drawCaret(t,e,i,r),e.lineTo(c,u+v),e.quadraticCurveTo(c,u,c+v,u),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,r=i&&i.x,o=i&&i.y;if(r||o){const a=ds[t.position].call(this,this._active,this._eventPosition);if(!a)return;const c=this._size=Dm(this,t),u=Object.assign({},a,this._size),f=Bm(e,t,u),h=Fm(t,u,f,e);(r._to!==h.x||o._to!==h.y)&&(this.xAlign=f.xAlign,this.yAlign=f.yAlign,this.width=c.width,this.height=c.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=ke(e.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&c&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,r,e),av(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),lv(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,r=t.map(({datasetIndex:c,index:u})=>{const f=this.chart.getDatasetMeta(c);if(!f)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:f.data[u],index:u}}),o=!Ba(i,r),a=this._positionChanged(r,e);(o||a)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,i),c=this._positionChanged(a,t),u=e||!Ba(a,o)||c;return u&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),u}_getActiveElements(t,e,i,r){const o=this.options;if(t.type==="mouseout")return[];if(!r)return e.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:i,caretY:r,options:o}=this,a=ds[o.position].call(this,t,e);return a!==!1&&(i!==a.x||r!==a.y)}}it(Tu,"positioners",ds);var KL={id:"tooltip",_element:Tu,positioners:ds,afterInit(n,t,e){e&&(n.tooltip=new Tu({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){const t=n.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(n.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0})===!1)return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){if(n.tooltip){const e=t.replay;n.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,t)=>t.bodyFont.size,boxWidth:(n,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Tv},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},XL=Object.freeze({__proto__:null,Colors:lL,Decimation:fL,Filler:RL,Legend:NL,SubTitle:qL,Title:WL,Tooltip:KL});const JL=(n,t,e,i)=>(typeof t=="string"?(e=n.push(t)-1,i.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function ZL(n,t,e,i){const r=n.indexOf(t);if(r===-1)return JL(n,t,e,i);const o=n.lastIndexOf(t);return r!==o?e:r}const QL=(n,t)=>n===null?null:ge(Math.round(n),0,t);function Wm(n){const t=this.getLabels();return n>=0&&n<t.length?t[n]:n}class Iu extends er{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const i=this.getLabels();for(const{index:r,label:o}of e)i[r]===o&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Ct(t))return null;const i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:ZL(i,t,_t(e,t),this._addedLabels),QL(e,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),e||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,r=[];let o=this.getLabels();o=t===0&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let a=t;a<=e;a++)r.push({value:a});return r}getLabelForValue(t){return Wm.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}it(Iu,"id","category"),it(Iu,"defaults",{ticks:{callback:Wm}});function tP(n,t){const e=[],{bounds:r,step:o,min:a,max:c,precision:u,count:f,maxTicks:h,maxDigits:v,includeBounds:d}=n,g=o||1,m=h-1,{min:y,max:x}=t,k=!Ct(a),A=!Ct(c),I=!Ct(f),S=(x-y)/(v+1);let E=Dg((x-y)/m/g)*g,P,T,F,$;if(E<1e-14&&!k&&!A)return[{value:y},{value:x}];$=Math.ceil(x/E)-Math.floor(y/E),$>m&&(E=Dg($*E/m/g)*g),Ct(u)||(P=Math.pow(10,u),E=Math.ceil(E*P)/P),r==="ticks"?(T=Math.floor(y/E)*E,F=Math.ceil(x/E)*E):(T=y,F=x),k&&A&&o&&YC((c-a)/o,E/1e3)?($=Math.round(Math.min((c-a)/E,h)),E=(c-a)/$,T=a,F=c):I?(T=k?a:T,F=A?c:F,$=f-1,E=(F-T)/$):($=(F-T)/E,ys($,Math.round($),E/1e3)?$=Math.round($):$=Math.ceil($));const q=Math.max(Bg(E),Bg(T));P=Math.pow(10,Ct(u)?q:u),T=Math.round(T*P)/P,F=Math.round(F*P)/P;let U=0;for(k&&(d&&T!==a?(e.push({value:a}),T<a&&U++,ys(Math.round((T+U*E)*P)/P,a,qm(a,S,n))&&U++):T<a&&U++);U<$;++U){const Y=Math.round((T+U*E)*P)/P;if(A&&Y>c)break;e.push({value:Y})}return A&&d&&F!==c?e.length&&ys(e[e.length-1].value,c,qm(c,S,n))?e[e.length-1].value=c:e.push({value:c}):(!A||F===c)&&e.push({value:F}),e}function qm(n,t,{horizontal:e,minRotation:i}){const r=yn(i),o=(e?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+n).length;return Math.min(t/o,a)}class Ua extends er{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Ct(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:r,max:o}=this;const a=u=>r=e?r:u,c=u=>o=i?o:u;if(t){const u=Dn(r),f=Dn(o);u<0&&f<0?c(0):u>0&&f>0&&a(0)}if(r===o){let u=o===0?1:Math.abs(o*.05);c(o+u),t||a(r-u)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:i}=t,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=tP(r,o);return t.bounds==="ticks"&&j0(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const r=(i-e)/Math.max(t.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Ns(t,this.chart.options.locale,this.options.ticks.format)}}class Du extends Ua{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ee(t)?t:0,this.max=ee(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=yn(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}it(Du,"id","linear"),it(Du,"defaults",{ticks:{callback:Ja.formatters.numeric}});const Rs=n=>Math.floor(xi(n)),ji=(n,t)=>Math.pow(10,Rs(n)+t);function zm(n){return n/Math.pow(10,Rs(n))===1}function Um(n,t,e){const i=Math.pow(10,e),r=Math.floor(n/i);return Math.ceil(t/i)-r}function eP(n,t){const e=t-n;let i=Rs(e);for(;Um(n,t,i)>10;)i++;for(;Um(n,t,i)<10;)i--;return Math.min(i,Rs(n))}function nP(n,{min:t,max:e}){t=Ze(n.min,t);const i=[],r=Rs(t);let o=eP(t,e),a=o<0?Math.pow(10,Math.abs(o)):1;const c=Math.pow(10,o),u=r>o?Math.pow(10,r):0,f=Math.round((t-u)*a)/a,h=Math.floor((t-u)/c/10)*c*10;let v=Math.floor((f-h)/Math.pow(10,o)),d=Ze(n.min,Math.round((u+h+v*Math.pow(10,o))*a)/a);for(;d<e;)i.push({value:d,major:zm(d),significand:v}),v>=10?v=v<15?15:20:v++,v>=20&&(o++,v=2,a=o>=0?1:a),d=Math.round((u+h+v*Math.pow(10,o))*a)/a;const g=Ze(n.max,d);return i.push({value:g,major:zm(g),significand:v}),i}class Bu extends er{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Ua.prototype.parse.apply(this,[t,e]);if(i===0){this._zero=!0;return}return ee(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ee(t)?Math.max(0,t):null,this.max=ee(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ee(this._userMin)&&(this.min=t===ji(this.min,0)?ji(this.min,-1):ji(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,r=this.max;const o=c=>i=t?i:c,a=c=>r=e?r:c;i===r&&(i<=0?(o(1),a(10)):(o(ji(i,-1)),a(ji(r,1)))),i<=0&&o(ji(r,-1)),r<=0&&a(ji(i,1)),this.min=i,this.max=r}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},i=nP(e,this);return t.bounds==="ticks"&&j0(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":Ns(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=xi(t),this._valueRange=xi(this.max)-xi(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(xi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}it(Bu,"id","logarithmic"),it(Bu,"defaults",{ticks:{callback:Ja.formatters.logarithmic,major:{enabled:!0}}});function Fu(n){const t=n.ticks;if(t.display&&n.display){const e=ke(t.backdropPadding);return _t(t.font&&t.font.size,Kt.font.size)+e.height}return 0}function iP(n,t,e){return e=Gt(e)?e:[e],{w:uA(n,t.string,e),h:e.length*t.lineHeight}}function jm(n,t,e,i,r){return n===i||n===r?{start:t-e/2,end:t+e/2}:n<i||n>r?{start:t-e,end:t}:{start:t,end:t+e}}function rP(n){const t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),i=[],r=[],o=n._pointLabels.length,a=n.options.pointLabels,c=a.centerPointLabels?jt/o:0;for(let u=0;u<o;u++){const f=a.setContext(n.getPointLabelContext(u));r[u]=f.padding;const h=n.getPointPosition(u,n.drawingArea+r[u],c),v=de(f.font),d=iP(n.ctx,v,n._pointLabels[u]);i[u]=d;const g=Qe(n.getIndexAngle(u)+c),m=Math.round(nh(g)),y=jm(m,h.x,d.w,0,180),x=jm(m,h.y,d.h,90,270);sP(e,t,g,y,x)}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=lP(n,i,r)}function sP(n,t,e,i,r){const o=Math.abs(Math.sin(e)),a=Math.abs(Math.cos(e));let c=0,u=0;i.start<t.l?(c=(t.l-i.start)/o,n.l=Math.min(n.l,t.l-c)):i.end>t.r&&(c=(i.end-t.r)/o,n.r=Math.max(n.r,t.r+c)),r.start<t.t?(u=(t.t-r.start)/a,n.t=Math.min(n.t,t.t-u)):r.end>t.b&&(u=(r.end-t.b)/a,n.b=Math.max(n.b,t.b+u))}function oP(n,t,e){const i=n.drawingArea,{extra:r,additionalAngle:o,padding:a,size:c}=e,u=n.getPointPosition(t,i+r+a,o),f=Math.round(nh(Qe(u.angle+re))),h=hP(u.y,c.h,f),v=cP(f),d=uP(u.x,c.w,v);return{visible:!0,x:u.x,y:h,textAlign:v,left:d,top:h,right:d+c.w,bottom:h+c.h}}function aP(n,t){if(!t)return!0;const{left:e,top:i,right:r,bottom:o}=n;return!(si({x:e,y:i},t)||si({x:e,y:o},t)||si({x:r,y:i},t)||si({x:r,y:o},t))}function lP(n,t,e){const i=[],r=n._pointLabels.length,o=n.options,{centerPointLabels:a,display:c}=o.pointLabels,u={extra:Fu(o)/2,additionalAngle:a?jt/r:0};let f;for(let h=0;h<r;h++){u.padding=e[h],u.size=t[h];const v=oP(n,h,u);i.push(v),c==="auto"&&(v.visible=aP(v,f),v.visible&&(f=v))}return i}function cP(n){return n===0||n===180?"center":n<180?"left":"right"}function uP(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function hP(n,t,e){return e===90||e===270?n-=t/2:(e>270||e<90)&&(n-=t),n}function fP(n,t,e){const{left:i,top:r,right:o,bottom:a}=e,{backdropColor:c}=t;if(!Ct(c)){const u=Xi(t.borderRadius),f=ke(t.backdropPadding);n.fillStyle=c;const h=i-f.left,v=r-f.top,d=o-i+f.width,g=a-r+f.height;Object.values(u).some(m=>m!==0)?(n.beginPath(),Ls(n,{x:h,y:v,w:d,h:g,radius:u}),n.fill()):n.fillRect(h,v,d,g)}}function dP(n,t){const{ctx:e,options:{pointLabels:i}}=n;for(let r=t-1;r>=0;r--){const o=n._pointLabelItems[r];if(!o.visible)continue;const a=i.setContext(n.getPointLabelContext(r));fP(e,a,o);const c=de(a.font),{x:u,y:f,textAlign:h}=o;Qi(e,n._pointLabels[r],u,f+c.lineHeight/2,c,{color:a.color,textAlign:h,textBaseline:"middle"})}}function Iv(n,t,e,i){const{ctx:r}=n;if(e)r.arc(n.xCenter,n.yCenter,t,0,Ut);else{let o=n.getPointPosition(0,t);r.moveTo(o.x,o.y);for(let a=1;a<i;a++)o=n.getPointPosition(a,t),r.lineTo(o.x,o.y)}}function pP(n,t,e,i,r){const o=n.ctx,a=t.circular,{color:c,lineWidth:u}=t;!a&&!i||!c||!u||e<0||(o.save(),o.strokeStyle=c,o.lineWidth=u,o.setLineDash(r.dash||[]),o.lineDashOffset=r.dashOffset,o.beginPath(),Iv(n,e,a,i),o.closePath(),o.stroke(),o.restore())}function gP(n,t,e){return Mi(n,{label:e,index:t,type:"pointLabel"})}class ps extends Ua{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=ke(Fu(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=ee(t)&&!isNaN(t)?t:0,this.max=ee(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Fu(this.options))}generateTickLabels(t){Ua.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,i)=>{const r=qt(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?rP(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,r))}getIndexAngle(t){const e=Ut/(this._pointLabels.length||1),i=this.options.startAngle||0;return Qe(t*e+yn(i))}getDistanceFromCenterForValue(t){if(Ct(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Ct(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return gP(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const r=this.getIndexAngle(t)-re+i;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:r,bottom:o}=this._pointLabelItems[t];return{left:e,top:i,right:r,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Iv(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:r,border:o}=e,a=this._pointLabels.length;let c,u,f;if(e.pointLabels.display&&dP(this,a),r.display&&this.ticks.forEach((h,v)=>{if(v!==0||v===0&&this.min<0){u=this.getDistanceFromCenterForValue(h.value);const d=this.getContext(v),g=r.setContext(d),m=o.setContext(d);pP(this,g,u,a,m)}}),i.display){for(t.save(),c=a-1;c>=0;c--){const h=i.setContext(this.getPointLabelContext(c)),{color:v,lineWidth:d}=h;!d||!v||(t.lineWidth=d,t.strokeStyle=v,t.setLineDash(h.borderDash),t.lineDashOffset=h.borderDashOffset,u=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),f=this.getPointPosition(c,u),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(f.x,f.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((c,u)=>{if(u===0&&this.min>=0&&!e.reverse)return;const f=i.setContext(this.getContext(u)),h=de(f.font);if(o=this.getDistanceFromCenterForValue(this.ticks[u].value),f.showLabelBackdrop){t.font=h.string,a=t.measureText(c.label).width,t.fillStyle=f.backdropColor;const v=ke(f.backdropPadding);t.fillRect(-a/2-v.left,-o-h.size/2-v.top,a+v.width,h.size+v.height)}Qi(t,c.label,0,-o,h,{color:f.color,strokeColor:f.textStrokeColor,strokeWidth:f.textStrokeWidth})}),t.restore()}drawTitle(){}}it(ps,"id","radialLinear"),it(ps,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ja.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),it(ps,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),it(ps,"descriptors",{angleLines:{_fallback:"grid"}});const nl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},qe=Object.keys(nl);function Vm(n,t){return n-t}function $m(n,t){if(Ct(t))return null;const e=n._adapter,{parser:i,round:r,isoWeekday:o}=n._parseOpts;let a=t;return typeof i=="function"&&(a=i(a)),ee(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(r&&(a=r==="week"&&(Or(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,r)),+a)}function Ym(n,t,e,i){const r=qe.length;for(let o=qe.indexOf(n);o<r-1;++o){const a=nl[qe[o]],c=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((e-t)/(c*a.size))<=i)return qe[o]}return qe[r-1]}function mP(n,t,e,i,r){for(let o=qe.length-1;o>=qe.indexOf(e);o--){const a=qe[o];if(nl[a].common&&n._adapter.diff(r,i,a)>=t-1)return a}return qe[e?qe.indexOf(e):0]}function vP(n){for(let t=qe.indexOf(n)+1,e=qe.length;t<e;++t)if(nl[qe[t]].common)return qe[t]}function Gm(n,t,e){if(!e)n[t]=!0;else if(e.length){const{lo:i,hi:r}=ih(e,t),o=e[i]>=t?e[i]:e[r];n[o]=!0}}function _P(n,t,e,i){const r=n._adapter,o=+r.startOf(t[0].value,i),a=t[t.length-1].value;let c,u;for(c=o;c<=a;c=+r.add(c,1,i))u=e[c],u>=0&&(t[u].major=!0);return t}function Km(n,t,e){const i=[],r={},o=t.length;let a,c;for(a=0;a<o;++a)c=t[a],r[c]=a,i.push({value:c,major:!1});return o===0||!e?i:_P(n,i,r,e)}class Ts extends er{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),r=this._adapter=new CM._date(t.adapters.date);r.init(e),_s(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:$m(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:r,max:o,minDefined:a,maxDefined:c}=this.getUserBounds();function u(f){!a&&!isNaN(f.min)&&(r=Math.min(r,f.min)),!c&&!isNaN(f.max)&&(o=Math.max(o,f.max))}(!a||!c)&&(u(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&u(this.getMinMax(!1))),r=ee(r)&&!isNaN(r)?r:+e.startOf(Date.now(),i),o=ee(o)&&!isNaN(o)?o:+e.endOf(Date.now(),i)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,a=this.max,c=JC(r,o,a);return this._unit=e.unit||(i.autoSkip?Ym(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):mP(this,c.length,e.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:vP(this._unit),this.initOffsets(r),t.reverse&&c.reverse(),Km(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e=0,i=0,r,o;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?e=1-r:e=(this.getDecimalForValue(t[1])-r)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;e=ge(e,0,a),i=ge(i,0,a),this._offsets={start:e,end:i,factor:1/(e+1+i)}}_generate(){const t=this._adapter,e=this.min,i=this.max,r=this.options,o=r.time,a=o.unit||Ym(o.minUnit,e,i,this._getLabelCapacity(e)),c=_t(r.ticks.stepSize,1),u=a==="week"?o.isoWeekday:!1,f=Or(u)||u===!0,h={};let v=e,d,g;if(f&&(v=+t.startOf(v,"isoWeek",u)),v=+t.startOf(v,f?"day":a),t.diff(i,e,a)>1e5*c)throw new Error(e+" and "+i+" are too far apart with stepSize of "+c+" "+a);const m=r.ticks.source==="data"&&this.getDataTimestamps();for(d=v,g=0;d<i;d=+t.add(d,c,a),g++)Gm(h,d,m);return(d===i||r.bounds==="ticks"||g===1)&&Gm(h,d,m),Object.keys(h).sort(Vm).map(y=>+y)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const r=this.options.time.displayFormats,o=this._unit,a=e||r[o];return this._adapter.format(t,a)}_tickFormatFunction(t,e,i,r){const o=this.options,a=o.ticks.callback;if(a)return qt(a,[t,e,i],this);const c=o.time.displayFormats,u=this._unit,f=this._majorUnit,h=u&&c[u],v=f&&c[f],d=i[e],g=f&&v&&d&&d.major;return this._adapter.format(t,r||(g?v:h))}generateTickLabels(t){let e,i,r;for(e=0,i=t.length;e<i;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,r=yn(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(r),a=Math.sin(r),c=this._resolveTickFontOptions(0).size;return{w:i*o+c*a,h:i*a+c*o}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,r=i[e.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Km(this,[t],this._majorUnit),r),a=this._getLabelSize(o),c=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return c>0?c:1}getDataTimestamps(){let t=this._cache.data||[],e,i;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,i=r.length;e<i;++e)t=t.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const r=this.getLabels();for(e=0,i=r.length;e<i;++e)t.push($m(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Y0(t.sort(Vm))}}it(Ts,"id","time"),it(Ts,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function ya(n,t,e){let i=0,r=n.length-1,o,a,c,u;e?(t>=n[i].pos&&t<=n[r].pos&&({lo:i,hi:r}=ri(n,"pos",t)),{pos:o,time:c}=n[i],{pos:a,time:u}=n[r]):(t>=n[i].time&&t<=n[r].time&&({lo:i,hi:r}=ri(n,"time",t)),{time:o,pos:c}=n[i],{time:a,pos:u}=n[r]);const f=a-o;return f?c+(u-c)*(t-o)/f:c}class Nu extends Ts{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=ya(e,this.min),this._tableRange=ya(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,r=[],o=[];let a,c,u,f,h;for(a=0,c=t.length;a<c;++a)f=t[a],f>=e&&f<=i&&r.push(f);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,c=r.length;a<c;++a)h=r[a+1],u=r[a-1],f=r[a],Math.round((h+u)/2)!==f&&o.push({time:f,pos:a/(c-1)});return o}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(e)||i.length===1)&&i.push(e),i.sort((r,o)=>r-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?t=this.normalize(e.concat(i)):t=e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(ya(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return ya(this._table,i*this._tableRange+this._minPos,!0)}}it(Nu,"id","timeseries"),it(Nu,"defaults",Ts.defaults);var yP=Object.freeze({__proto__:null,CategoryScale:Iu,LinearScale:Du,LogarithmicScale:Bu,RadialLinearScale:ps,TimeScale:Ts,TimeSeriesScale:Nu});const bP=[kM,eL,XL,yP];Zn.register(...bP);const xP=n=>Tn({L:20,M:10,S:7,XS:5})[n],wP=n=>Tn({L:200,M:100,S:60,XS:40})[n];class Cr extends te{constructor(t){super(),this.provided=t,this.counter=kE(),this.aliases={},this.stack=[],this.points=new Map,this.labels=new Set,this.limits={legend:xP(this.provided.width??"L"),point:this.provided.limit??wP(this.provided.width??"L")},this.source=new Zn(document.createElement("canvas"),{type:"line",data:{labels:Tn([]),datasets:[]},options:{scales:{y:{grid:{color:"rgba(255, 255, 255, 0.05)"},ticks:{maxTicksLimit:this.limits.legend*2}},x:{grid:{color:"rgba(255, 255, 255, 0.05)"},ticks:{maxTicksLimit:this.limits.legend}}},plugins:{legend:{labels:{usePointStyle:!0,pointStyle:"circle",boxHeight:5,boxWidth:5}}}}}),this.panel=ei.build({...this.provided,class:"chart"}).replace(this.source.canvas),this.replace(this.panel)}provide(t){t.forEach(i=>{if(this.provided.mode==="aggregation"){const o=this.aliases[i.legend]??this.counter(),a=this.points.get(o)??Tn({legend:i.legend,values:{}});return this.aliases[i.legend]||(this.aliases[i.legend]=o,this.points.set(o,a),this.stack.push(o)),Object.entries(i.values).forEach(([c,u])=>{a.values[c]=(a.values[c]??0)+u,this.labels.add(c)})}const r=this.counter();this.stack.push(r),this.points.set(r,i),Object.keys(i.values).forEach(o=>this.labels.add(o))}),this.stack.slice(0,tn.clamp(this.stack.length-this.limits.point,0,1/0)).forEach(i=>{const r=this.points.get(i);r&&tn.unset(this.aliases,r.legend),this.points.delete(i),this.stack.shift()});const e=[...this.points.values()];return this.source.data={labels:e.map(i=>i.legend),datasets:[...this.labels.values()].map(i=>({label:i,data:Array(e.length).fill(null).map((r,o)=>e[o].values[i]??null),tension:.3,pointRadius:2,pointHitRadius:20,pointHoverRadius:5,borderWidth:1,borderColor:Da(i),backgroundColor:Da(i)}))},this.source.update("none"),this}clear(){return this.source.reset(),this.points.clear(),this.labels.clear(),this.aliases={},this.stack=[],this}static build(t){return new Cr(t)}}const SP=`
|
|
446
|
+
<section id="expectations">
|
|
447
|
+
<div class="storage"></div>
|
|
448
|
+
|
|
449
|
+
<div class="controls">
|
|
450
|
+
<div class="main">
|
|
451
|
+
<button class="icon-only" id="expand"><i class="fas fa-chevron-down"></i></button>
|
|
452
|
+
</div>
|
|
453
|
+
|
|
454
|
+
<div class="additional container hidden"></div>
|
|
455
|
+
</div>
|
|
456
|
+
|
|
457
|
+
<div class="content"></div>
|
|
458
|
+
</section>
|
|
459
|
+
`,EP=ae.compile(SP),Qn=new Map,Hu=Xa.build(),Jt={state:{filters:{search:Tn(null),groups:Tn(null)}},search:Ka.build({title:"Search expectations"}).on("clear",()=>{Jt.state.filters.search=null,Yi()}).on("input",n=>{Jt.state.filters.search=n,Yi()}),filter:ks.build({title:{text:"Groups filter",icon:"fas fa-filter",description:"shows/hides items in the list below"},width:"M"}),switcher:ks.build({title:{text:"Groups switcher",icon:"fas fa-power-off",description:"turnes on/off items in the list below"},width:"M"})},kP=n=>{let t=n;return Jt.state.filters.groups&&(t=t.filter(e=>Jt.state.filters.groups.includes(e.data.group))),Jt.state.filters.search&&(t=t.filter(e=>e.match(Jt.state.filters.search))),t},Yi=(n=[...Qn.values()])=>{const t=kP(n.map(e=>e.hide())).map(e=>e.show());n.length===Qn.size&&(t.length?Hu.hide():Hu.show())},pu=n=>(n??gt.shared.groups).forEach(t=>{var i,r;[...Qn.values()].filter(o=>o.data.group===t).every(o=>!o.data.isEnabled)?(i=Jt.switcher.buttons.provided[t])==null||i.disable("silent"):(r=Jt.switcher.buttons.provided[t])==null||r.enable("silent")}),gh=Rr.build(EP({})).assignMeta({name:"Expectations",icon:"fas fa-magic"}).once("initialize",n=>{n.append(Hu),n.controls.main.append(Jt.search),n.controls.additional.append(Jt.filter),n.controls.additional.append(Jt.switcher),gt.on("group:register",t=>{Jt.switcher.provide({name:t,isEnabled:!0,colorify:!0}),Jt.filter.provide({name:t,isEnabled:!0,colorify:!0})}),Jt.switcher.on("enable",t=>gt.services.io.exec("expectations:group:update",{name:t.name,set:{isEnabled:!0}})),Jt.switcher.on("disable",t=>gt.services.io.exec("expectations:group:update",{name:t.name,set:{isEnabled:!1}})),Jt.filter.on("enable",()=>{Jt.state.filters.groups=Jt.filter.extract().filter(t=>t.isEnabled).map(t=>t.name),Yi()}),Jt.filter.on("disable",()=>{Jt.state.filters.groups=Jt.filter.extract().filter(t=>t.isEnabled).map(t=>t.name),Yi()}),gt.services.io.subscribe("expectation:added",t=>{const e=ms.build(t);Qn.set(t.id,e),n.content.append(e),gt.shared.groups.has(t.group)||(gt.shared.groups.add(t.group),gt.emit("group:register",t.group)),Yi([e]),pu([e.data.group])}),gt.services.io.subscribe("expectation:updated",t=>{const e=Qn.get(t.id)??ms.build(t);Qn.has(t.id)&&e.provide(t).refresh(),n.content.element.querySelector(`div.expectation[id="${t.id}"]`)||(n.content.append(e),Yi([e])),gt.shared.groups.has(t.group)||(gt.shared.groups.add(t.group),gt.emit("group:register",t.group)),Qn.set(t.id,e),pu([e.data.group])})}).on("initialize",async n=>{gt.shared.groups.clear(),n.content.clear(),Jt.switcher.clear(),Jt.filter.clear(),Qn.clear();const{data:t}=await gt.services.io.exec("expectations:get-list");t.forEach(e=>{const i=ms.build(e);gt.shared.groups.has(e.group)||(gt.shared.groups.add(e.group),gt.emit("group:register",e.group)),Qn.set(e.id,i),n.content.append(i)}),Yi(),pu()}),CP=`
|
|
460
|
+
<section id="analytics">
|
|
461
|
+
<div class="storage"></div>
|
|
462
|
+
<div class="content container"></div>
|
|
463
|
+
</section>
|
|
464
|
+
`,AP=ae.compile(CP),He={memory:Cr.build({title:{text:"Server memory usage",icon:"fas fa-memory",description:"updates every 5 seconds"},width:"M"}),cache:Cr.build({title:{text:"Cache memory usage",icon:"fas fa-database",description:"updates every 10 minutes"},width:"M"}),containers:Cr.build({title:{text:"Registered containers",icon:"fas fa-box",description:"updates every 5 seconds"},width:"S"}),rate:Cr.build({title:{text:"Requests rate",icon:"fas fa-rocket",description:"updates instantly"},mode:"aggregation",width:"S"})},Dv=Rr.build(AP({})).assignMeta({icon:"fas fa-chart-line"}).once("initialize",n=>{n.content.append(He.memory),n.content.append(He.cache),n.content.append(He.containers),n.content.append(He.rate),gt.services.io.subscribe("metric:registered",({name:t,point:{timestamp:e,values:i}})=>t in He?He[t].provide([{values:i,legend:Er(e).format("HH:mm")}]):null)}).on("initialize",async()=>{He.containers.clear(),He.memory.clear(),He.cache.clear(),He.rate.clear();const{data:n}=await gt.services.io.exec("metrics:get");He.memory.provide(n.memory.map(({timestamp:t,values:e})=>({values:e,legend:Er(t).format("HH:mm")}))),He.cache.provide(n.cache.map(({timestamp:t,values:e})=>({values:e,legend:Er(t).format("HH:mm")}))),He.rate.provide(n.rate.map(({timestamp:t,values:e})=>({values:e,legend:Er(t).format("HH:mm")}))),He.containers.provide(n.containers.map(({timestamp:t,values:e})=>({values:e,legend:Er(t).format("HH:mm")})))}),MP=`
|
|
465
|
+
<div class="content">
|
|
466
|
+
<div class="input size-M" title="Backup file"><input type="file" data-key="files"></div>
|
|
467
|
+
<div class="input size-XS" title="TTL (seconds)"><input type="text" data-key="ttl" value="3600"></div>
|
|
468
|
+
|
|
469
|
+
<button id="restore"><i class="fas fa-undo"></i>Restore</button>
|
|
470
|
+
</div>
|
|
471
|
+
`,OP=`
|
|
472
|
+
<div class="content">
|
|
473
|
+
<div class="input size-L" title="prefix"><input type="text" data-key="prefix" value="*"></div>
|
|
474
|
+
<button id="delete"><i class="fas fa-trash-alt"></i>Delete</button>
|
|
475
|
+
</div>
|
|
476
|
+
`,LP=`
|
|
477
|
+
<div class="content">
|
|
478
|
+
<button id="backup"><i class="fas fa-save"></i>Backup</button>
|
|
479
|
+
</div>
|
|
480
|
+
`,PP=`
|
|
481
|
+
<section id="settings">
|
|
482
|
+
<div class="storage"></div>
|
|
483
|
+
<div class="content container"></div>
|
|
484
|
+
</section>
|
|
485
|
+
`,RP=`
|
|
486
|
+
<div class="content">
|
|
487
|
+
<p class="version"><span>Version</span><b>{{version}}</b></p>
|
|
488
|
+
<p class="version"><span>Uptime</span><b>{{uptime}}</b></p>
|
|
489
|
+
</div>
|
|
490
|
+
`,Ss={cacheRestoration:ae.compile(MP),cacheDeletion:ae.compile(OP),cacheBackup:ae.compile(LP),section:ae.compile(PP),stats:ae.compile(RP)},An={stats:ei.build({title:{text:"Stats",icon:"fas fa-server"},class:"stats",height:"XS",width:"M"}),cacheDeletion:ei.build({title:{text:"Cache deletion",icon:"fas fa-database"},class:"cache",height:"XS",width:"M"}).replace(Ss.cacheDeletion({})),cacheBackup:ei.build({title:{text:"Cache backup",icon:"fas fa-database"},class:"cache",height:"XS",width:"M"}).replace(Ss.cacheBackup({})),cacheRestoration:ei.build({title:{text:"Cache restoration",icon:"fas fa-database"},class:"cache",height:"XS",width:"M"}).replace(Ss.cacheRestoration({}))},Bv=Rr.build(Ss.section({})).assignMeta({icon:"fas fa-cog"}).once("initialize",async n=>{n.content.append(An.stats),n.content.append(An.cacheDeletion),n.content.append(An.cacheBackup),n.content.append(An.cacheRestoration),Ei.build(An.cacheDeletion.element.querySelector("button#delete")).handle(async()=>{var i;const t=await Es.build(An.cacheDeletion).extract(),{data:e}=await gt.services.io.exec("cache:delete",{prefix:t.prefix});gt.shared.popups.push(`Deleted <b>${((i=e.redis)==null?void 0:i.count)??0}</b> cache keys`)}),Ei.build(An.cacheBackup.element.querySelector("button#backup")).handle(async()=>{const{data:t}=await gt.services.io.exec("cache:backup"),e=document.createElement("a"),i=new Date;e.download=`mock-server-cache-backup-${i.toLocaleDateString()}-${i.getTime()}.txt`,e.href=URL.createObjectURL(new Blob([t],{type:"text"})),e.click()}),Ei.build(An.cacheRestoration.element.querySelector("button#restore")).handle(async()=>{var e;const t=await Es.build(An.cacheRestoration).extract();if(!((e=t.files)!=null&&e.length))return gt.shared.popups.push("File is not provided",{level:"warning"});await gt.instances.http.post("/cache/restore",{ttl:t.ttl,backup:t.files[0].content}),gt.shared.popups.push("Restored")})}).on("select",async()=>{const{data:n}=await gt.services.io.exec("stats");An.stats.replace(Ss.stats(n))}),TP=`
|
|
491
|
+
<section id="history">
|
|
492
|
+
<div class="storage"></div>
|
|
493
|
+
|
|
494
|
+
<div class="controls">
|
|
495
|
+
<div class="main">
|
|
496
|
+
<button class="icon-only" id="expand"><i class="fas fa-chevron-down"></i></button>
|
|
497
|
+
</div>
|
|
498
|
+
|
|
499
|
+
<div class="additional container hidden"></div>
|
|
500
|
+
</div>
|
|
501
|
+
|
|
502
|
+
<div class="content"></div>
|
|
503
|
+
</section>
|
|
504
|
+
`,IP=`
|
|
505
|
+
<div class="buttons">
|
|
506
|
+
<button id="clear"><i class="fas fa-trash-alt"></i>Clear list</button>
|
|
507
|
+
</div>
|
|
508
|
+
`,Fv={section:ae.compile(TP),actions:ae.compile(IP)},Wu=Xa.build(),kt={state:{storage:new Map,stack:Tn([]),filters:{search:Tn(null),groups:Tn(null)}},search:Ka.build({title:"Search history"}).on("clear",()=>{kt.state.filters.search=null,_i()}).on("input",n=>{kt.state.filters.search=n,_i()}),filter:ks.build({title:{text:"Groups filter",icon:"fas fa-filter",description:"shows/hides items in the list below"},width:"M"}),actions:ei.build({title:{text:"Actions",icon:"fas fa-sliders-h"},class:"actions",width:"M"}).append(Fv.actions({}))},DP=n=>{let t=n;return kt.state.filters.groups&&(t=t.filter(e=>kt.state.filters.groups.includes(e.data.group))),kt.state.filters.search&&(t=t.filter(e=>e.match(kt.state.filters.search))),t},_i=(n=[...kt.state.storage.values()])=>{const t=DP(n.map(e=>e.hide())).map(e=>e.show());n.length===kt.state.storage.size&&(t.length?Wu.hide():Wu.show())},Nv=Rr.build(Fv.section({})).assignMeta({name:"History",icon:"fas fa-history"}).once("initialize",n=>{n.append(Wu),n.controls.main.append(kt.search),n.controls.additional.append(kt.filter),n.controls.additional.append(kt.actions),Ei.build(kt.actions.element.querySelector("button#clear")).handle(async()=>{if(!kt.state.stack.length)return gt.shared.popups.push("Nothing to clear",{level:"warning"});await gt.services.io.exec("history:delete"),kt.state.storage.clear(),kt.state.stack=[],n.content.clear(),gt.shared.popups.push("History has cleared"),_i()}),gt.on("group:register",t=>kt.filter.provide({name:t,isEnabled:!0,colorify:!0})),kt.filter.on("enable",()=>{kt.state.filters.groups=kt.filter.extract().filter(t=>t.isEnabled).map(t=>t.name),_i()}),kt.filter.on("disable",()=>{kt.state.filters.groups=kt.filter.extract().filter(t=>t.isEnabled).map(t=>t.name),_i()}),gt.services.io.subscribe("history:added",t=>{var i;const e=vs.build(t);if(kt.state.storage.set(t.id,e),kt.state.stack.push(t.id),kt.state.stack.length>gt.config.history.limit*gt.shared.groups.size){const r=kt.state.stack.shift();(i=kt.state.storage.get(r))==null||i.delete(),kt.state.storage.delete(r)}n.content.prepend(e),_i([e])}),gt.services.io.subscribe("history:updated",t=>{const e=kt.state.storage.get(t.id)??vs.build(t);kt.state.storage.has(t.id)?e.provide(t).refresh():kt.state.stack.push(t.id),kt.state.storage.set(t.id,e),n.element.querySelector(`div.history[id="${t.id}"]`)||(n.content.prepend(e),_i([e]))})}).on("initialize",async n=>{kt.filter.clear(),kt.state.stack=[],n.content.clear(),kt.state.storage.clear();const{data:t}=await gt.services.io.exec("history:get-list");t.forEach(e=>{const i=vs.build(e);kt.state.storage.set(e.id,i),kt.state.stack.push(e.id),n.content.append(i)}),_i()}),Hv=Object.freeze(Object.defineProperty({__proto__:null,analytics:Dv,expectations:gh,history:Nv,settings:Bv},Symbol.toStringTag,{value:"Module"})),Wv=Ku.build().show(),BP=Ju.build([{type:"section",entity:Bv.hide()},{type:"section",entity:Dv.hide()},{type:"separator"},{type:"section",entity:gh},{type:"section",entity:Nv.hide()}]);gt.switchStorage(gh.storage).share({popups:Xu.build(),groups:new Set});document.body.prepend(BP.element);document.body.append(Wv.element);document.body.append(gt.shared.popups.element);Object.values(Hv).forEach(n=>document.body.append(n.element));gt.instances.io.on("connect",async()=>{console.log("WebSocket has connected"),await gt.services.io.exec("ping");const{data:n}=await gt.services.io.exec("config:get");gt.assignConfig(n),gt.shared.popups.push("Connected!"),Object.values(Hv).forEach(t=>t.initialize()),Wv.hide()});
|