@n1k1t/mock-server 0.1.82 → 0.1.83
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.
- package/lib/package.json +2 -2
- package/lib/src/gui/app/types/index.d.ts +1 -0
- package/lib/src/gui/app/types/index.d.ts.map +1 -1
- package/lib/src/server/endpoints/history.get-list.endpoint.js +1 -1
- package/lib/src/server/endpoints/history.get-list.endpoint.js.map +1 -1
- package/lib/src/server/models/context/types.d.ts +2 -1
- package/lib/src/server/models/context/types.d.ts.map +1 -1
- package/lib/src/server/models/executor/index.d.ts.map +1 -1
- package/lib/src/server/models/executor/index.js +6 -5
- package/lib/src/server/models/executor/index.js.map +1 -1
- package/lib/src/server/models/history/model.d.ts +2 -0
- package/lib/src/server/models/history/model.d.ts.map +1 -1
- package/lib/src/server/models/history/model.js +6 -1
- package/lib/src/server/models/history/model.js.map +1 -1
- package/lib/src/server/models/history/storage.d.ts.map +1 -1
- package/lib/src/server/models/history/storage.js +0 -1
- package/lib/src/server/models/history/storage.js.map +1 -1
- package/package.json +2 -2
- package/public/assets/{index-D49L1fdH.css → index-D-g7Ghci.css} +1 -1
- package/public/assets/{index-B3KNNNel.js → index-DMiLAIQ7.js} +101 -76
- package/public/index.html +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var VA=Object.defineProperty;var $A=(n,t,e)=>t in n?VA(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var At=(n,t,e)=>$A(n,typeof t!="symbol"?t+"":t,e);function GA(n,t){for(var e=0;e<t.length;e++){const r=t[e];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in n)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function e(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=e(i);fetch(i.href,s)}})();var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _i(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var el={exports:{}},YA=el.exports,Eg;function KA(){return Eg||(Eg=1,function(n,t){(function(e,r){n.exports=r()})(YA,function(){return function(e,r,i){e=e||{};var s=r.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 l(h,f,g,d){return s.fromToBase(h,f,g,d)}i.en.relativeTime=a,s.fromToBase=function(h,f,g,d,m){for(var p,v,b,_=g.$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"}],C=A.length,w=0;w<C;w+=1){var M=A[w];M.d&&(p=d?i(h).diff(g,M.d,!0):g.diff(h,M.d,!0));var O=(e.rounding||Math.round)(Math.abs(p));if(b=p>0,O<=M.r||!M.r){O<=1&&w>0&&(M=A[w-1]);var L=_[M.l];m&&(O=m(""+O)),v=typeof L=="string"?L.replace("%d",O):L(O,f,M.l,b);break}}if(f)return v;var N=b?_.future:_.past;return typeof N=="function"?N(v):N.replace("%s",v)},s.to=function(h,f){return l(h,f,this,!0)},s.from=function(h,f){return l(h,f,this)};var c=function(h){return h.$u?i.utc():i()};s.toNow=function(h){return this.to(c(this),h)},s.fromNow=function(h){return this.from(c(this),h)}}})}(el)),el.exports}var XA=KA();const JA=_i(XA);var nl={exports:{}},ZA=nl.exports,Ag;function QA(){return Ag||(Ag=1,function(n,t){(function(e,r){n.exports=r()})(ZA,function(){var e=1e3,r=6e4,i=36e5,s="millisecond",a="second",l="minute",c="hour",h="day",f="week",g="month",d="quarter",m="year",p="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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(dt){var st=["th","st","nd","rd"],at=dt%100;return"["+dt+(st[(at-20)%10]||st[at]||st[0])+"]"}},C=function(dt,st,at){var _t=String(dt);return!_t||_t.length>=st?dt:""+Array(st+1-_t.length).join(at)+dt},w={s:C,z:function(dt){var st=-dt.utcOffset(),at=Math.abs(st),_t=Math.floor(at/60),bt=at%60;return(st<=0?"+":"-")+C(_t,2,"0")+":"+C(bt,2,"0")},m:function dt(st,at){if(st.date()<at.date())return-dt(at,st);var _t=12*(at.year()-st.year())+(at.month()-st.month()),bt=st.clone().add(_t,g),Et=at-bt<0,kt=st.clone().add(_t+(Et?-1:1),g);return+(-(_t+(at-bt)/(Et?bt-kt:kt-bt))||0)},a:function(dt){return dt<0?Math.ceil(dt)||0:Math.floor(dt)},p:function(dt){return{M:g,y:m,w:f,d:h,D:p,h:c,m:l,s:a,ms:s,Q:d}[dt]||String(dt||"").toLowerCase().replace(/s$/,"")},u:function(dt){return dt===void 0}},M="en",O={};O[M]=A;var L="$isDayjsObject",N=function(dt){return dt instanceof U||!(!dt||!dt[L])},Y=function dt(st,at,_t){var bt;if(!st)return M;if(typeof st=="string"){var Et=st.toLowerCase();O[Et]&&(bt=Et),at&&(O[Et]=at,bt=Et);var kt=st.split("-");if(!bt&&kt.length>1)return dt(kt[0])}else{var Ot=st.name;O[Ot]=st,bt=Ot}return!_t&&bt&&(M=bt),bt||!_t&&M},z=function(dt,st){if(N(dt))return dt.clone();var at=typeof st=="object"?st:{};return at.date=dt,at.args=arguments,new U(at)},G=w;G.l=Y,G.i=N,G.w=function(dt,st){return z(dt,{locale:st.$L,utc:st.$u,x:st.$x,$offset:st.$offset})};var U=function(){function dt(at){this.$L=Y(at.locale,null,!0),this.parse(at),this.$x=this.$x||at.x||{},this[L]=!0}var st=dt.prototype;return st.parse=function(at){this.$d=function(_t){var bt=_t.date,Et=_t.utc;if(bt===null)return new Date(NaN);if(G.u(bt))return new Date;if(bt instanceof Date)return new Date(bt);if(typeof bt=="string"&&!/Z$/i.test(bt)){var kt=bt.match(b);if(kt){var Ot=kt[2]-1||0,Lt=(kt[7]||"0").substring(0,3);return Et?new Date(Date.UTC(kt[1],Ot,kt[3]||1,kt[4]||0,kt[5]||0,kt[6]||0,Lt)):new Date(kt[1],Ot,kt[3]||1,kt[4]||0,kt[5]||0,kt[6]||0,Lt)}}return new Date(bt)}(at),this.init()},st.init=function(){var at=this.$d;this.$y=at.getFullYear(),this.$M=at.getMonth(),this.$D=at.getDate(),this.$W=at.getDay(),this.$H=at.getHours(),this.$m=at.getMinutes(),this.$s=at.getSeconds(),this.$ms=at.getMilliseconds()},st.$utils=function(){return G},st.isValid=function(){return this.$d.toString()!==v},st.isSame=function(at,_t){var bt=z(at);return this.startOf(_t)<=bt&&bt<=this.endOf(_t)},st.isAfter=function(at,_t){return z(at)<this.startOf(_t)},st.isBefore=function(at,_t){return this.endOf(_t)<z(at)},st.$g=function(at,_t,bt){return G.u(at)?this[_t]:this.set(bt,at)},st.unix=function(){return Math.floor(this.valueOf()/1e3)},st.valueOf=function(){return this.$d.getTime()},st.startOf=function(at,_t){var bt=this,Et=!!G.u(_t)||_t,kt=G.p(at),Ot=function(mt,yt){var D=G.w(bt.$u?Date.UTC(bt.$y,yt,mt):new Date(bt.$y,yt,mt),bt);return Et?D:D.endOf(h)},Lt=function(mt,yt){return G.w(bt.toDate()[mt].apply(bt.toDate("s"),(Et?[0,0,0,0]:[23,59,59,999]).slice(yt)),bt)},Q=this.$W,et=this.$M,ot=this.$D,V="set"+(this.$u?"UTC":"");switch(kt){case m:return Et?Ot(1,0):Ot(31,11);case g:return Et?Ot(1,et):Ot(0,et+1);case f:var X=this.$locale().weekStart||0,lt=(Q<X?Q+7:Q)-X;return Ot(Et?ot-lt:ot+(6-lt),et);case h:case p:return Lt(V+"Hours",0);case c:return Lt(V+"Minutes",1);case l:return Lt(V+"Seconds",2);case a:return Lt(V+"Milliseconds",3);default:return this.clone()}},st.endOf=function(at){return this.startOf(at,!1)},st.$set=function(at,_t){var bt,Et=G.p(at),kt="set"+(this.$u?"UTC":""),Ot=(bt={},bt[h]=kt+"Date",bt[p]=kt+"Date",bt[g]=kt+"Month",bt[m]=kt+"FullYear",bt[c]=kt+"Hours",bt[l]=kt+"Minutes",bt[a]=kt+"Seconds",bt[s]=kt+"Milliseconds",bt)[Et],Lt=Et===h?this.$D+(_t-this.$W):_t;if(Et===g||Et===m){var Q=this.clone().set(p,1);Q.$d[Ot](Lt),Q.init(),this.$d=Q.set(p,Math.min(this.$D,Q.daysInMonth())).$d}else Ot&&this.$d[Ot](Lt);return this.init(),this},st.set=function(at,_t){return this.clone().$set(at,_t)},st.get=function(at){return this[G.p(at)]()},st.add=function(at,_t){var bt,Et=this;at=Number(at);var kt=G.p(_t),Ot=function(et){var ot=z(Et);return G.w(ot.date(ot.date()+Math.round(et*at)),Et)};if(kt===g)return this.set(g,this.$M+at);if(kt===m)return this.set(m,this.$y+at);if(kt===h)return Ot(1);if(kt===f)return Ot(7);var Lt=(bt={},bt[l]=r,bt[c]=i,bt[a]=e,bt)[kt]||1,Q=this.$d.getTime()+at*Lt;return G.w(Q,this)},st.subtract=function(at,_t){return this.add(-1*at,_t)},st.format=function(at){var _t=this,bt=this.$locale();if(!this.isValid())return bt.invalidDate||v;var Et=at||"YYYY-MM-DDTHH:mm:ssZ",kt=G.z(this),Ot=this.$H,Lt=this.$m,Q=this.$M,et=bt.weekdays,ot=bt.months,V=bt.meridiem,X=function(yt,D,j,ut){return yt&&(yt[D]||yt(_t,Et))||j[D].slice(0,ut)},lt=function(yt){return G.s(Ot%12||12,yt,"0")},mt=V||function(yt,D,j){var ut=yt<12?"AM":"PM";return j?ut.toLowerCase():ut};return Et.replace(_,function(yt,D){return D||function(j){switch(j){case"YY":return String(_t.$y).slice(-2);case"YYYY":return G.s(_t.$y,4,"0");case"M":return Q+1;case"MM":return G.s(Q+1,2,"0");case"MMM":return X(bt.monthsShort,Q,ot,3);case"MMMM":return X(ot,Q);case"D":return _t.$D;case"DD":return G.s(_t.$D,2,"0");case"d":return String(_t.$W);case"dd":return X(bt.weekdaysMin,_t.$W,et,2);case"ddd":return X(bt.weekdaysShort,_t.$W,et,3);case"dddd":return et[_t.$W];case"H":return String(Ot);case"HH":return G.s(Ot,2,"0");case"h":return lt(1);case"hh":return lt(2);case"a":return mt(Ot,Lt,!0);case"A":return mt(Ot,Lt,!1);case"m":return String(Lt);case"mm":return G.s(Lt,2,"0");case"s":return String(_t.$s);case"ss":return G.s(_t.$s,2,"0");case"SSS":return G.s(_t.$ms,3,"0");case"Z":return kt}return null}(yt)||kt.replace(":","")})},st.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},st.diff=function(at,_t,bt){var Et,kt=this,Ot=G.p(_t),Lt=z(at),Q=(Lt.utcOffset()-this.utcOffset())*r,et=this-Lt,ot=function(){return G.m(kt,Lt)};switch(Ot){case m:Et=ot()/12;break;case g:Et=ot();break;case d:Et=ot()/3;break;case f:Et=(et-Q)/6048e5;break;case h:Et=(et-Q)/864e5;break;case c:Et=et/i;break;case l:Et=et/r;break;case a:Et=et/e;break;default:Et=et}return bt?Et:G.a(Et)},st.daysInMonth=function(){return this.endOf(g).$D},st.$locale=function(){return O[this.$L]},st.locale=function(at,_t){if(!at)return this.$L;var bt=this.clone(),Et=Y(at,_t,!0);return Et&&(bt.$L=Et),bt},st.clone=function(){return G.w(this.$d,this)},st.toDate=function(){return new Date(this.valueOf())},st.toJSON=function(){return this.isValid()?this.toISOString():null},st.toISOString=function(){return this.$d.toISOString()},st.toString=function(){return this.$d.toUTCString()},dt}(),xt=U.prototype;return z.prototype=xt,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",h],["$M",g],["$y",m],["$D",p]].forEach(function(dt){xt[dt[1]]=function(st){return this.$g(st,dt[0],dt[1])}}),z.extend=function(dt,st){return dt.$i||(dt(st,U,z),dt.$i=!0),z},z.locale=Y,z.isDayjs=N,z.unix=function(dt){return z(1e3*dt)},z.en=O[M],z.Ls=O,z.p={},z})}(nl)),nl.exports}var tk=QA();const zi=_i(tk);var ra={exports:{}},ia={exports:{}},Hn={},fn={},kg;function mn(){if(kg)return fn;kg=1,fn.__esModule=!0,fn.extend=i,fn.indexOf=c,fn.escapeExpression=h,fn.isEmpty=f,fn.createFrame=g,fn.blockParams=d,fn.appendContextPath=m;var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},t=/[&<>"'`=]/g,e=/[&<>"'`=]/;function r(p){return n[p]}function i(p){for(var v=1;v<arguments.length;v++)for(var b in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],b)&&(p[b]=arguments[v][b]);return p}var s=Object.prototype.toString;fn.toString=s;var a=function(v){return typeof v=="function"};a(/x/)&&(fn.isFunction=a=function(p){return typeof p=="function"&&s.call(p)==="[object Function]"}),fn.isFunction=a;var l=Array.isArray||function(p){return p&&typeof p=="object"?s.call(p)==="[object Array]":!1};fn.isArray=l;function c(p,v){for(var b=0,_=p.length;b<_;b++)if(p[b]===v)return b;return-1}function h(p){if(typeof p!="string"){if(p&&p.toHTML)return p.toHTML();if(p==null)return"";if(!p)return p+"";p=""+p}return e.test(p)?p.replace(t,r):p}function f(p){return!p&&p!==0?!0:!!(l(p)&&p.length===0)}function g(p){var v=i({},p);return v._parent=p,v}function d(p,v){return p.path=v,p}function m(p,v){return(p?p+".":"")+v}return fn}var sa={exports:{}},Rg;function Yn(){return Rg||(Rg=1,function(n,t){t.__esModule=!0;var e=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(i,s){var a=s&&s.loc,l=void 0,c=void 0,h=void 0,f=void 0;a&&(l=a.start.line,c=a.end.line,h=a.start.column,f=a.end.column,i+=" - "+l+":"+h);for(var g=Error.prototype.constructor.call(this,i),d=0;d<e.length;d++)this[e[d]]=g[e[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{a&&(this.lineNumber=l,this.endLineNumber=c,Object.defineProperty?(Object.defineProperty(this,"column",{value:h,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:f,enumerable:!0})):(this.column=h,this.endColumn=f))}catch{}}r.prototype=new Error,t.default=r,n.exports=t.default}(sa,sa.exports)),sa.exports}var xs={},oa={exports:{}},Mg;function ek(){return Mg||(Mg=1,function(n,t){t.__esModule=!0;var e=mn();t.default=function(r){r.registerHelper("blockHelperMissing",function(i,s){var a=s.inverse,l=s.fn;if(i===!0)return l(this);if(i===!1||i==null)return a(this);if(e.isArray(i))return i.length>0?(s.ids&&(s.ids=[s.name]),r.helpers.each(i,s)):a(this);if(s.data&&s.ids){var c=e.createFrame(s.data);c.contextPath=e.appendContextPath(s.data.contextPath,s.name),s={data:c}}return l(i,s)})},n.exports=t.default}(oa,oa.exports)),oa.exports}var aa={exports:{}},Cg;function nk(){return Cg||(Cg=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var r=mn(),i=Yn(),s=e(i);t.default=function(a){a.registerHelper("each",function(l,c){if(!c)throw new s.default("Must pass iterator to #each");var h=c.fn,f=c.inverse,g=0,d="",m=void 0,p=void 0;c.data&&c.ids&&(p=r.appendContextPath(c.data.contextPath,c.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),c.data&&(m=r.createFrame(c.data));function v(w,M,O){m&&(m.key=w,m.index=M,m.first=M===0,m.last=!!O,p&&(m.contextPath=p+w)),d=d+h(l[w],{data:m,blockParams:r.blockParams([l[w],w],[p+w,null])})}if(l&&typeof l=="object")if(r.isArray(l))for(var b=l.length;g<b;g++)g in l&&v(g,g,g===l.length-1);else if(He.Symbol&&l[He.Symbol.iterator]){for(var _=[],A=l[He.Symbol.iterator](),C=A.next();!C.done;C=A.next())_.push(C.value);l=_;for(var b=l.length;g<b;g++)v(g,g,g===l.length-1)}else(function(){var w=void 0;Object.keys(l).forEach(function(M){w!==void 0&&v(w,g-1),w=M,g++}),w!==void 0&&v(w,g-1,!0)})();return g===0&&(d=f(this)),d})},n.exports=t.default}(aa,aa.exports)),aa.exports}var la={exports:{}},Pg;function rk(){return Pg||(Pg=1,function(n,t){t.__esModule=!0;function e(s){return s&&s.__esModule?s:{default:s}}var r=Yn(),i=e(r);t.default=function(s){s.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},n.exports=t.default}(la,la.exports)),la.exports}var ua={exports:{}},Og;function ik(){return Og||(Og=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var r=mn(),i=Yn(),s=e(i);t.default=function(a){a.registerHelper("if",function(l,c){if(arguments.length!=2)throw new s.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!c.hash.includeZero&&!l||r.isEmpty(l)?c.inverse(this):c.fn(this)}),a.registerHelper("unless",function(l,c){if(arguments.length!=2)throw new s.default("#unless requires exactly one argument");return a.helpers.if.call(this,l,{fn:c.inverse,inverse:c.fn,hash:c.hash})})},n.exports=t.default}(ua,ua.exports)),ua.exports}var ca={exports:{}},Lg;function sk(){return Lg||(Lg=1,function(n,t){t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var r=[void 0],i=arguments[arguments.length-1],s=0;s<arguments.length-1;s++)r.push(arguments[s]);var a=1;i.hash.level!=null?a=i.hash.level:i.data&&i.data.level!=null&&(a=i.data.level),r[0]=a,e.log.apply(e,r)})},n.exports=t.default}(ca,ca.exports)),ca.exports}var fa={exports:{}},Tg;function ok(){return Tg||(Tg=1,function(n,t){t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(r,i,s){return r&&s.lookupProperty(r,i)})},n.exports=t.default}(fa,fa.exports)),fa.exports}var ha={exports:{}},Bg;function ak(){return Bg||(Bg=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var r=mn(),i=Yn(),s=e(i);t.default=function(a){a.registerHelper("with",function(l,c){if(arguments.length!=2)throw new s.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var h=c.fn;if(r.isEmpty(l))return c.inverse(this);var f=c.data;return c.data&&c.ids&&(f=r.createFrame(c.data),f.contextPath=r.appendContextPath(c.data.contextPath,c.ids[0])),h(l,{data:f,blockParams:r.blockParams([l],[f&&f.contextPath])})})},n.exports=t.default}(ha,ha.exports)),ha.exports}var Ig;function Rv(){if(Ig)return xs;Ig=1,xs.__esModule=!0,xs.registerDefaultHelpers=v,xs.moveHelperToHooks=b;function n(_){return _&&_.__esModule?_:{default:_}}var t=ek(),e=n(t),r=nk(),i=n(r),s=rk(),a=n(s),l=ik(),c=n(l),h=sk(),f=n(h),g=ok(),d=n(g),m=ak(),p=n(m);function v(_){e.default(_),i.default(_),a.default(_),c.default(_),f.default(_),d.default(_),p.default(_)}function b(_,A,C){_.helpers[A]&&(_.hooks[A]=_.helpers[A],C||delete _.helpers[A])}return xs}var da={},pa={exports:{}},Dg;function lk(){return Dg||(Dg=1,function(n,t){t.__esModule=!0;var e=mn();t.default=function(r){r.registerDecorator("inline",function(i,s,a,l){var c=i;return s.partials||(s.partials={},c=function(h,f){var g=a.partials;a.partials=e.extend({},g,s.partials);var d=i(h,f);return a.partials=g,d}),s.partials[l.args[0]]=l.fn,c})},n.exports=t.default}(pa,pa.exports)),pa.exports}var Fg;function uk(){if(Fg)return da;Fg=1,da.__esModule=!0,da.registerDefaultDecorators=r;function n(i){return i&&i.__esModule?i:{default:i}}var t=lk(),e=n(t);function r(i){e.default(i)}return da}var ga={exports:{}},Ng;function Mv(){return Ng||(Ng=1,function(n,t){t.__esModule=!0;var e=mn(),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(s){if(typeof s=="string"){var a=e.indexOf(r.methodMap,s.toLowerCase());a>=0?s=a:s=parseInt(s,10)}return s},log:function(s){if(s=r.lookupLevel(s),typeof console<"u"&&r.lookupLevel(r.level)<=s){var a=r.methodMap[s];console[a]||(a="log");for(var l=arguments.length,c=Array(l>1?l-1:0),h=1;h<l;h++)c[h-1]=arguments[h];console[a].apply(console,c)}}};t.default=r,n.exports=t.default}(ga,ga.exports)),ga.exports}var Fi={},ma={},jg;function ck(){if(jg)return ma;jg=1,ma.__esModule=!0,ma.createNewLookupObject=t;var n=mn();function t(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.extend.apply(void 0,[Object.create(null)].concat(r))}return ma}var Ug;function Cv(){if(Ug)return Fi;Ug=1,Fi.__esModule=!0,Fi.createProtoAccessControl=s,Fi.resultIsAllowed=a,Fi.resetLoggedProperties=h;function n(f){if(f&&f.__esModule)return f;var g={};if(f!=null)for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(g[d]=f[d]);return g.default=f,g}var t=ck(),e=Mv(),r=n(e),i=Object.create(null);function s(f){var g=Object.create(null);g.constructor=!1,g.__defineGetter__=!1,g.__defineSetter__=!1,g.__lookupGetter__=!1;var d=Object.create(null);return d.__proto__=!1,{properties:{whitelist:t.createNewLookupObject(d,f.allowedProtoProperties),defaultValue:f.allowProtoPropertiesByDefault},methods:{whitelist:t.createNewLookupObject(g,f.allowedProtoMethods),defaultValue:f.allowProtoMethodsByDefault}}}function a(f,g,d){return l(typeof f=="function"?g.methods:g.properties,d)}function l(f,g){return f.whitelist[g]!==void 0?f.whitelist[g]===!0:f.defaultValue!==void 0?f.defaultValue:(c(g),!1)}function c(f){i[f]!==!0&&(i[f]=!0,r.log("error",'Handlebars: Access has been denied to resolve the property "'+f+`" because it is not an "own property" of its parent.
|
|
1
|
+
var ek=Object.defineProperty;var nk=(n,t,e)=>t in n?ek(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var At=(n,t,e)=>nk(n,typeof t!="symbol"?t+"":t,e);function rk(n,t){for(var e=0;e<t.length;e++){const r=t[e];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in n)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function e(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=e(i);fetch(i.href,s)}})();var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ol={exports:{}},ik=ol.exports,Lg;function sk(){return Lg||(Lg=1,function(n,t){(function(e,r){n.exports=r()})(ik,function(){return function(e,r,i){e=e||{};var s=r.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 l(h,f,g,d){return s.fromToBase(h,f,g,d)}i.en.relativeTime=a,s.fromToBase=function(h,f,g,d,m){for(var p,v,_,b=g.$locale().relativeTime||a,S=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"}],O=S.length,w=0;w<O;w+=1){var k=S[w];k.d&&(p=d?i(h).diff(g,k.d,!0):g.diff(h,k.d,!0));var C=(e.rounding||Math.round)(Math.abs(p));if(_=p>0,C<=k.r||!k.r){C<=1&&w>0&&(k=S[w-1]);var L=b[k.l];m&&(C=m(""+C)),v=typeof L=="string"?L.replace("%d",C):L(C,f,k.l,_);break}}if(f)return v;var N=_?b.future:b.past;return typeof N=="function"?N(v):N.replace("%s",v)},s.to=function(h,f){return l(h,f,this,!0)},s.from=function(h,f){return l(h,f,this)};var c=function(h){return h.$u?i.utc():i()};s.toNow=function(h){return this.to(c(this),h)},s.fromNow=function(h){return this.from(c(this),h)}}})}(ol)),ol.exports}var ok=sk();const ak=Jr(ok);var al={exports:{}},lk=al.exports,Tg;function uk(){return Tg||(Tg=1,function(n,t){(function(e,r){n.exports=r()})(lk,function(){var e=1e3,r=6e4,i=36e5,s="millisecond",a="second",l="minute",c="hour",h="day",f="week",g="month",d="quarter",m="year",p="date",v="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,S={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(dt){var st=["th","st","nd","rd"],at=dt%100;return"["+dt+(st[(at-20)%10]||st[at]||st[0])+"]"}},O=function(dt,st,at){var _t=String(dt);return!_t||_t.length>=st?dt:""+Array(st+1-_t.length).join(at)+dt},w={s:O,z:function(dt){var st=-dt.utcOffset(),at=Math.abs(st),_t=Math.floor(at/60),bt=at%60;return(st<=0?"+":"-")+O(_t,2,"0")+":"+O(bt,2,"0")},m:function dt(st,at){if(st.date()<at.date())return-dt(at,st);var _t=12*(at.year()-st.year())+(at.month()-st.month()),bt=st.clone().add(_t,g),Et=at-bt<0,kt=st.clone().add(_t+(Et?-1:1),g);return+(-(_t+(at-bt)/(Et?bt-kt:kt-bt))||0)},a:function(dt){return dt<0?Math.ceil(dt)||0:Math.floor(dt)},p:function(dt){return{M:g,y:m,w:f,d:h,D:p,h:c,m:l,s:a,ms:s,Q:d}[dt]||String(dt||"").toLowerCase().replace(/s$/,"")},u:function(dt){return dt===void 0}},k="en",C={};C[k]=S;var L="$isDayjsObject",N=function(dt){return dt instanceof U||!(!dt||!dt[L])},Y=function dt(st,at,_t){var bt;if(!st)return k;if(typeof st=="string"){var Et=st.toLowerCase();C[Et]&&(bt=Et),at&&(C[Et]=at,bt=Et);var kt=st.split("-");if(!bt&&kt.length>1)return dt(kt[0])}else{var Ct=st.name;C[Ct]=st,bt=Ct}return!_t&&bt&&(k=bt),bt||!_t&&k},z=function(dt,st){if(N(dt))return dt.clone();var at=typeof st=="object"?st:{};return at.date=dt,at.args=arguments,new U(at)},G=w;G.l=Y,G.i=N,G.w=function(dt,st){return z(dt,{locale:st.$L,utc:st.$u,x:st.$x,$offset:st.$offset})};var U=function(){function dt(at){this.$L=Y(at.locale,null,!0),this.parse(at),this.$x=this.$x||at.x||{},this[L]=!0}var st=dt.prototype;return st.parse=function(at){this.$d=function(_t){var bt=_t.date,Et=_t.utc;if(bt===null)return new Date(NaN);if(G.u(bt))return new Date;if(bt instanceof Date)return new Date(bt);if(typeof bt=="string"&&!/Z$/i.test(bt)){var kt=bt.match(_);if(kt){var Ct=kt[2]-1||0,Lt=(kt[7]||"0").substring(0,3);return Et?new Date(Date.UTC(kt[1],Ct,kt[3]||1,kt[4]||0,kt[5]||0,kt[6]||0,Lt)):new Date(kt[1],Ct,kt[3]||1,kt[4]||0,kt[5]||0,kt[6]||0,Lt)}}return new Date(bt)}(at),this.init()},st.init=function(){var at=this.$d;this.$y=at.getFullYear(),this.$M=at.getMonth(),this.$D=at.getDate(),this.$W=at.getDay(),this.$H=at.getHours(),this.$m=at.getMinutes(),this.$s=at.getSeconds(),this.$ms=at.getMilliseconds()},st.$utils=function(){return G},st.isValid=function(){return this.$d.toString()!==v},st.isSame=function(at,_t){var bt=z(at);return this.startOf(_t)<=bt&&bt<=this.endOf(_t)},st.isAfter=function(at,_t){return z(at)<this.startOf(_t)},st.isBefore=function(at,_t){return this.endOf(_t)<z(at)},st.$g=function(at,_t,bt){return G.u(at)?this[_t]:this.set(bt,at)},st.unix=function(){return Math.floor(this.valueOf()/1e3)},st.valueOf=function(){return this.$d.getTime()},st.startOf=function(at,_t){var bt=this,Et=!!G.u(_t)||_t,kt=G.p(at),Ct=function(mt,yt){var D=G.w(bt.$u?Date.UTC(bt.$y,yt,mt):new Date(bt.$y,yt,mt),bt);return Et?D:D.endOf(h)},Lt=function(mt,yt){return G.w(bt.toDate()[mt].apply(bt.toDate("s"),(Et?[0,0,0,0]:[23,59,59,999]).slice(yt)),bt)},Q=this.$W,et=this.$M,ot=this.$D,V="set"+(this.$u?"UTC":"");switch(kt){case m:return Et?Ct(1,0):Ct(31,11);case g:return Et?Ct(1,et):Ct(0,et+1);case f:var X=this.$locale().weekStart||0,lt=(Q<X?Q+7:Q)-X;return Ct(Et?ot-lt:ot+(6-lt),et);case h:case p:return Lt(V+"Hours",0);case c:return Lt(V+"Minutes",1);case l:return Lt(V+"Seconds",2);case a:return Lt(V+"Milliseconds",3);default:return this.clone()}},st.endOf=function(at){return this.startOf(at,!1)},st.$set=function(at,_t){var bt,Et=G.p(at),kt="set"+(this.$u?"UTC":""),Ct=(bt={},bt[h]=kt+"Date",bt[p]=kt+"Date",bt[g]=kt+"Month",bt[m]=kt+"FullYear",bt[c]=kt+"Hours",bt[l]=kt+"Minutes",bt[a]=kt+"Seconds",bt[s]=kt+"Milliseconds",bt)[Et],Lt=Et===h?this.$D+(_t-this.$W):_t;if(Et===g||Et===m){var Q=this.clone().set(p,1);Q.$d[Ct](Lt),Q.init(),this.$d=Q.set(p,Math.min(this.$D,Q.daysInMonth())).$d}else Ct&&this.$d[Ct](Lt);return this.init(),this},st.set=function(at,_t){return this.clone().$set(at,_t)},st.get=function(at){return this[G.p(at)]()},st.add=function(at,_t){var bt,Et=this;at=Number(at);var kt=G.p(_t),Ct=function(et){var ot=z(Et);return G.w(ot.date(ot.date()+Math.round(et*at)),Et)};if(kt===g)return this.set(g,this.$M+at);if(kt===m)return this.set(m,this.$y+at);if(kt===h)return Ct(1);if(kt===f)return Ct(7);var Lt=(bt={},bt[l]=r,bt[c]=i,bt[a]=e,bt)[kt]||1,Q=this.$d.getTime()+at*Lt;return G.w(Q,this)},st.subtract=function(at,_t){return this.add(-1*at,_t)},st.format=function(at){var _t=this,bt=this.$locale();if(!this.isValid())return bt.invalidDate||v;var Et=at||"YYYY-MM-DDTHH:mm:ssZ",kt=G.z(this),Ct=this.$H,Lt=this.$m,Q=this.$M,et=bt.weekdays,ot=bt.months,V=bt.meridiem,X=function(yt,D,j,ut){return yt&&(yt[D]||yt(_t,Et))||j[D].slice(0,ut)},lt=function(yt){return G.s(Ct%12||12,yt,"0")},mt=V||function(yt,D,j){var ut=yt<12?"AM":"PM";return j?ut.toLowerCase():ut};return Et.replace(b,function(yt,D){return D||function(j){switch(j){case"YY":return String(_t.$y).slice(-2);case"YYYY":return G.s(_t.$y,4,"0");case"M":return Q+1;case"MM":return G.s(Q+1,2,"0");case"MMM":return X(bt.monthsShort,Q,ot,3);case"MMMM":return X(ot,Q);case"D":return _t.$D;case"DD":return G.s(_t.$D,2,"0");case"d":return String(_t.$W);case"dd":return X(bt.weekdaysMin,_t.$W,et,2);case"ddd":return X(bt.weekdaysShort,_t.$W,et,3);case"dddd":return et[_t.$W];case"H":return String(Ct);case"HH":return G.s(Ct,2,"0");case"h":return lt(1);case"hh":return lt(2);case"a":return mt(Ct,Lt,!0);case"A":return mt(Ct,Lt,!1);case"m":return String(Lt);case"mm":return G.s(Lt,2,"0");case"s":return String(_t.$s);case"ss":return G.s(_t.$s,2,"0");case"SSS":return G.s(_t.$ms,3,"0");case"Z":return kt}return null}(yt)||kt.replace(":","")})},st.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},st.diff=function(at,_t,bt){var Et,kt=this,Ct=G.p(_t),Lt=z(at),Q=(Lt.utcOffset()-this.utcOffset())*r,et=this-Lt,ot=function(){return G.m(kt,Lt)};switch(Ct){case m:Et=ot()/12;break;case g:Et=ot();break;case d:Et=ot()/3;break;case f:Et=(et-Q)/6048e5;break;case h:Et=(et-Q)/864e5;break;case c:Et=et/i;break;case l:Et=et/r;break;case a:Et=et/e;break;default:Et=et}return bt?Et:G.a(Et)},st.daysInMonth=function(){return this.endOf(g).$D},st.$locale=function(){return C[this.$L]},st.locale=function(at,_t){if(!at)return this.$L;var bt=this.clone(),Et=Y(at,_t,!0);return Et&&(bt.$L=Et),bt},st.clone=function(){return G.w(this.$d,this)},st.toDate=function(){return new Date(this.valueOf())},st.toJSON=function(){return this.isValid()?this.toISOString():null},st.toISOString=function(){return this.$d.toISOString()},st.toString=function(){return this.$d.toUTCString()},dt}(),xt=U.prototype;return z.prototype=xt,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",h],["$M",g],["$y",m],["$D",p]].forEach(function(dt){xt[dt[1]]=function(st){return this.$g(st,dt[0],dt[1])}}),z.extend=function(dt,st){return dt.$i||(dt(st,U,z),dt.$i=!0),z},z.locale=Y,z.isDayjs=N,z.unix=function(dt){return z(1e3*dt)},z.en=C[k],z.Ls=C,z.p={},z})}(al)),al.exports}var ck=uk();const Wr=Jr(ck);var la={exports:{}},ua={exports:{}},Vn={},fn={},Ig;function mn(){if(Ig)return fn;Ig=1,fn.__esModule=!0,fn.extend=i,fn.indexOf=c,fn.escapeExpression=h,fn.isEmpty=f,fn.createFrame=g,fn.blockParams=d,fn.appendContextPath=m;var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},t=/[&<>"'`=]/g,e=/[&<>"'`=]/;function r(p){return n[p]}function i(p){for(var v=1;v<arguments.length;v++)for(var _ in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],_)&&(p[_]=arguments[v][_]);return p}var s=Object.prototype.toString;fn.toString=s;var a=function(v){return typeof v=="function"};a(/x/)&&(fn.isFunction=a=function(p){return typeof p=="function"&&s.call(p)==="[object Function]"}),fn.isFunction=a;var l=Array.isArray||function(p){return p&&typeof p=="object"?s.call(p)==="[object Array]":!1};fn.isArray=l;function c(p,v){for(var _=0,b=p.length;_<b;_++)if(p[_]===v)return _;return-1}function h(p){if(typeof p!="string"){if(p&&p.toHTML)return p.toHTML();if(p==null)return"";if(!p)return p+"";p=""+p}return e.test(p)?p.replace(t,r):p}function f(p){return!p&&p!==0?!0:!!(l(p)&&p.length===0)}function g(p){var v=i({},p);return v._parent=p,v}function d(p,v){return p.path=v,p}function m(p,v){return(p?p+".":"")+v}return fn}var ca={exports:{}},Bg;function Jn(){return Bg||(Bg=1,function(n,t){t.__esModule=!0;var e=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(i,s){var a=s&&s.loc,l=void 0,c=void 0,h=void 0,f=void 0;a&&(l=a.start.line,c=a.end.line,h=a.start.column,f=a.end.column,i+=" - "+l+":"+h);for(var g=Error.prototype.constructor.call(this,i),d=0;d<e.length;d++)this[e[d]]=g[e[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{a&&(this.lineNumber=l,this.endLineNumber=c,Object.defineProperty?(Object.defineProperty(this,"column",{value:h,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:f,enumerable:!0})):(this.column=h,this.endColumn=f))}catch{}}r.prototype=new Error,t.default=r,n.exports=t.default}(ca,ca.exports)),ca.exports}var ks={},fa={exports:{}},Dg;function fk(){return Dg||(Dg=1,function(n,t){t.__esModule=!0;var e=mn();t.default=function(r){r.registerHelper("blockHelperMissing",function(i,s){var a=s.inverse,l=s.fn;if(i===!0)return l(this);if(i===!1||i==null)return a(this);if(e.isArray(i))return i.length>0?(s.ids&&(s.ids=[s.name]),r.helpers.each(i,s)):a(this);if(s.data&&s.ids){var c=e.createFrame(s.data);c.contextPath=e.appendContextPath(s.data.contextPath,s.name),s={data:c}}return l(i,s)})},n.exports=t.default}(fa,fa.exports)),fa.exports}var ha={exports:{}},Fg;function hk(){return Fg||(Fg=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var r=mn(),i=Jn(),s=e(i);t.default=function(a){a.registerHelper("each",function(l,c){if(!c)throw new s.default("Must pass iterator to #each");var h=c.fn,f=c.inverse,g=0,d="",m=void 0,p=void 0;c.data&&c.ids&&(p=r.appendContextPath(c.data.contextPath,c.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),c.data&&(m=r.createFrame(c.data));function v(w,k,C){m&&(m.key=w,m.index=k,m.first=k===0,m.last=!!C,p&&(m.contextPath=p+w)),d=d+h(l[w],{data:m,blockParams:r.blockParams([l[w],w],[p+w,null])})}if(l&&typeof l=="object")if(r.isArray(l))for(var _=l.length;g<_;g++)g in l&&v(g,g,g===l.length-1);else if(We.Symbol&&l[We.Symbol.iterator]){for(var b=[],S=l[We.Symbol.iterator](),O=S.next();!O.done;O=S.next())b.push(O.value);l=b;for(var _=l.length;g<_;g++)v(g,g,g===l.length-1)}else(function(){var w=void 0;Object.keys(l).forEach(function(k){w!==void 0&&v(w,g-1),w=k,g++}),w!==void 0&&v(w,g-1,!0)})();return g===0&&(d=f(this)),d})},n.exports=t.default}(ha,ha.exports)),ha.exports}var da={exports:{}},Ng;function dk(){return Ng||(Ng=1,function(n,t){t.__esModule=!0;function e(s){return s&&s.__esModule?s:{default:s}}var r=Jn(),i=e(r);t.default=function(s){s.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},n.exports=t.default}(da,da.exports)),da.exports}var pa={exports:{}},jg;function pk(){return jg||(jg=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var r=mn(),i=Jn(),s=e(i);t.default=function(a){a.registerHelper("if",function(l,c){if(arguments.length!=2)throw new s.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!c.hash.includeZero&&!l||r.isEmpty(l)?c.inverse(this):c.fn(this)}),a.registerHelper("unless",function(l,c){if(arguments.length!=2)throw new s.default("#unless requires exactly one argument");return a.helpers.if.call(this,l,{fn:c.inverse,inverse:c.fn,hash:c.hash})})},n.exports=t.default}(pa,pa.exports)),pa.exports}var ga={exports:{}},Ug;function gk(){return Ug||(Ug=1,function(n,t){t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var r=[void 0],i=arguments[arguments.length-1],s=0;s<arguments.length-1;s++)r.push(arguments[s]);var a=1;i.hash.level!=null?a=i.hash.level:i.data&&i.data.level!=null&&(a=i.data.level),r[0]=a,e.log.apply(e,r)})},n.exports=t.default}(ga,ga.exports)),ga.exports}var ma={exports:{}},qg;function mk(){return qg||(qg=1,function(n,t){t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(r,i,s){return r&&s.lookupProperty(r,i)})},n.exports=t.default}(ma,ma.exports)),ma.exports}var ya={exports:{}},Wg;function yk(){return Wg||(Wg=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var r=mn(),i=Jn(),s=e(i);t.default=function(a){a.registerHelper("with",function(l,c){if(arguments.length!=2)throw new s.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var h=c.fn;if(r.isEmpty(l))return c.inverse(this);var f=c.data;return c.data&&c.ids&&(f=r.createFrame(c.data),f.contextPath=r.appendContextPath(c.data.contextPath,c.ids[0])),h(l,{data:f,blockParams:r.blockParams([l],[f&&f.contextPath])})})},n.exports=t.default}(ya,ya.exports)),ya.exports}var Hg;function Dv(){if(Hg)return ks;Hg=1,ks.__esModule=!0,ks.registerDefaultHelpers=v,ks.moveHelperToHooks=_;function n(b){return b&&b.__esModule?b:{default:b}}var t=fk(),e=n(t),r=hk(),i=n(r),s=dk(),a=n(s),l=pk(),c=n(l),h=gk(),f=n(h),g=mk(),d=n(g),m=yk(),p=n(m);function v(b){e.default(b),i.default(b),a.default(b),c.default(b),f.default(b),d.default(b),p.default(b)}function _(b,S,O){b.helpers[S]&&(b.hooks[S]=b.helpers[S],O||delete b.helpers[S])}return ks}var va={},ba={exports:{}},zg;function vk(){return zg||(zg=1,function(n,t){t.__esModule=!0;var e=mn();t.default=function(r){r.registerDecorator("inline",function(i,s,a,l){var c=i;return s.partials||(s.partials={},c=function(h,f){var g=a.partials;a.partials=e.extend({},g,s.partials);var d=i(h,f);return a.partials=g,d}),s.partials[l.args[0]]=l.fn,c})},n.exports=t.default}(ba,ba.exports)),ba.exports}var Vg;function bk(){if(Vg)return va;Vg=1,va.__esModule=!0,va.registerDefaultDecorators=r;function n(i){return i&&i.__esModule?i:{default:i}}var t=vk(),e=n(t);function r(i){e.default(i)}return va}var _a={exports:{}},$g;function Fv(){return $g||($g=1,function(n,t){t.__esModule=!0;var e=mn(),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(s){if(typeof s=="string"){var a=e.indexOf(r.methodMap,s.toLowerCase());a>=0?s=a:s=parseInt(s,10)}return s},log:function(s){if(s=r.lookupLevel(s),typeof console<"u"&&r.lookupLevel(r.level)<=s){var a=r.methodMap[s];console[a]||(a="log");for(var l=arguments.length,c=Array(l>1?l-1:0),h=1;h<l;h++)c[h-1]=arguments[h];console[a].apply(console,c)}}};t.default=r,n.exports=t.default}(_a,_a.exports)),_a.exports}var ji={},wa={},Gg;function _k(){if(Gg)return wa;Gg=1,wa.__esModule=!0,wa.createNewLookupObject=t;var n=mn();function t(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.extend.apply(void 0,[Object.create(null)].concat(r))}return wa}var Yg;function Nv(){if(Yg)return ji;Yg=1,ji.__esModule=!0,ji.createProtoAccessControl=s,ji.resultIsAllowed=a,ji.resetLoggedProperties=h;function n(f){if(f&&f.__esModule)return f;var g={};if(f!=null)for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(g[d]=f[d]);return g.default=f,g}var t=_k(),e=Fv(),r=n(e),i=Object.create(null);function s(f){var g=Object.create(null);g.constructor=!1,g.__defineGetter__=!1,g.__defineSetter__=!1,g.__lookupGetter__=!1;var d=Object.create(null);return d.__proto__=!1,{properties:{whitelist:t.createNewLookupObject(d,f.allowedProtoProperties),defaultValue:f.allowProtoPropertiesByDefault},methods:{whitelist:t.createNewLookupObject(g,f.allowedProtoMethods),defaultValue:f.allowProtoMethodsByDefault}}}function a(f,g,d){return l(typeof f=="function"?g.methods:g.properties,d)}function l(f,g){return f.whitelist[g]!==void 0?f.whitelist[g]===!0:f.defaultValue!==void 0?f.defaultValue:(c(g),!1)}function c(f){i[f]!==!0&&(i[f]=!0,r.log("error",'Handlebars: Access has been denied to resolve the property "'+f+`" because it is not an "own property" of its parent.
|
|
2
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 h(){Object.keys(i).forEach(function(f){delete i[f]})}return
|
|
3
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function h(){Object.keys(i).forEach(function(f){delete i[f]})}return ji}var Kg;function xh(){if(Kg)return Vn;Kg=1,Vn.__esModule=!0,Vn.HandlebarsEnvironment=p;function n(_){return _&&_.__esModule?_:{default:_}}var t=mn(),e=Jn(),r=n(e),i=Dv(),s=bk(),a=Fv(),l=n(a),c=Nv(),h="4.7.7";Vn.VERSION=h;var f=8;Vn.COMPILER_REVISION=f;var g=7;Vn.LAST_COMPATIBLE_COMPILER_REVISION=g;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 m="[object Object]";function p(_,b,S){this.helpers=_||{},this.partials=b||{},this.decorators=S||{},i.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}p.prototype={constructor:p,logger:l.default,log:l.default.log,registerHelper:function(b,S){if(t.toString.call(b)===m){if(S)throw new r.default("Arg not supported with multiple helpers");t.extend(this.helpers,b)}else this.helpers[b]=S},unregisterHelper:function(b){delete this.helpers[b]},registerPartial:function(b,S){if(t.toString.call(b)===m)t.extend(this.partials,b);else{if(typeof S>"u")throw new r.default('Attempting to register a partial called "'+b+'" as undefined');this.partials[b]=S}},unregisterPartial:function(b){delete this.partials[b]},registerDecorator:function(b,S){if(t.toString.call(b)===m){if(S)throw new r.default("Arg not supported with multiple decorators");t.extend(this.decorators,b)}else this.decorators[b]=S},unregisterDecorator:function(b){delete this.decorators[b]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var v=l.default.log;return Vn.log=v,Vn.createFrame=t.createFrame,Vn.logger=l.default,Vn}var xa={exports:{}},Xg;function wk(){return Xg||(Xg=1,function(n,t){t.__esModule=!0;function e(r){this.string=r}e.prototype.toString=e.prototype.toHTML=function(){return""+this.string},t.default=e,n.exports=t.default}(xa,xa.exports)),xa.exports}var _r={},Sa={},Jg;function xk(){if(Jg)return Sa;Jg=1,Sa.__esModule=!0,Sa.wrapHelper=n;function n(t,e){if(typeof t!="function")return t;var r=function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)};return r}return Sa}var Zg;function Sk(){if(Zg)return _r;Zg=1,_r.__esModule=!0,_r.checkRevision=f,_r.template=g,_r.wrapProgram=d,_r.resolvePartial=m,_r.invokePartial=p,_r.noop=v;function n(w){return w&&w.__esModule?w:{default:w}}function t(w){if(w&&w.__esModule)return w;var k={};if(w!=null)for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&(k[C]=w[C]);return k.default=w,k}var e=mn(),r=t(e),i=Jn(),s=n(i),a=xh(),l=Dv(),c=xk(),h=Nv();function f(w){var k=w&&w[0]||1,C=a.COMPILER_REVISION;if(!(k>=a.LAST_COMPATIBLE_COMPILER_REVISION&&k<=a.COMPILER_REVISION))if(k<a.LAST_COMPATIBLE_COMPILER_REVISION){var L=a.REVISION_CHANGES[C],N=a.REVISION_CHANGES[k];throw new s.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+L+") or downgrade your runtime to an older version ("+N+").")}else throw new s.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+w[1]+").")}function g(w,k){if(!k)throw new s.default("No environment passed to template");if(!w||!w.main)throw new s.default("Unknown template object: "+typeof w);w.main.decorator=w.main_d,k.VM.checkRevision(w.compiler);var C=w.compiler&&w.compiler[0]===7;function L(z,G,U){U.hash&&(G=r.extend({},G,U.hash),U.ids&&(U.ids[0]=!0)),z=k.VM.resolvePartial.call(this,z,G,U);var xt=r.extend({},U,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),dt=k.VM.invokePartial.call(this,z,G,xt);if(dt==null&&k.compile&&(U.partials[U.name]=k.compile(z,w.compilerOptions,k),dt=U.partials[U.name](G,xt)),dt!=null){if(U.indent){for(var st=dt.split(`
|
|
4
4
|
`),at=0,_t=st.length;at<_t&&!(!st[at]&&at+1===_t);at++)st[at]=U.indent+st[at];dt=st.join(`
|
|
5
|
-
`)}return dt}else throw new s.default("The partial "+U.name+" could not be compiled when running in runtime-only mode")}var N={strict:function(G,U,xt){if(!G||!(U in G))throw new s.default('"'+U+'" not defined in '+G,{loc:xt});return N.lookupProperty(G,U)},lookupProperty:function(G,U){var xt=G[U];if(xt==null||Object.prototype.hasOwnProperty.call(G,U)||h.resultIsAllowed(xt,N.protoAccessControl,U))return xt},lookup:function(G,U){for(var xt=G.length,dt=0;dt<xt;dt++){var st=G[dt]&&N.lookupProperty(G[dt],U);if(st!=null)return G[dt][U]}},lambda:function(G,U){return typeof G=="function"?G.call(U):G},escapeExpression:r.escapeExpression,invokePartial:L,fn:function(G){var U=w[G];return U.decorator=w[G+"_d"],U},programs:[],program:function(G,U,xt,dt,st){var at=this.programs[G],_t=this.fn(G);return U||st||dt||xt?at=d(this,G,_t,U,xt,dt,st):at||(at=this.programs[G]=d(this,G,_t)),at},data:function(G,U){for(;G&&U--;)G=G._parent;return G},mergeIfNeeded:function(G,U){var xt=G||U;return G&&U&&G!==U&&(xt=r.extend({},U,G)),xt},nullContext:Object.seal({}),noop:M.VM.noop,compilerInfo:w.compiler};function Y(z){var G=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],U=G.data;Y._setup(G),!G.partial&&w.useData&&(U=b(z,U));var xt=void 0,dt=w.useBlockParams?[]:void 0;w.useDepths&&(G.depths?xt=z!=G.depths[0]?[z].concat(G.depths):G.depths:xt=[z]);function st(at){return""+w.main(N,at,N.helpers,N.partials,U,dt,xt)}return st=_(w.main,st,N,G.depths||[],U,dt),st(z,G)}return Y.isTop=!0,Y._setup=function(z){if(z.partial)N.protoAccessControl=z.protoAccessControl,N.helpers=z.helpers,N.partials=z.partials,N.decorators=z.decorators,N.hooks=z.hooks;else{var G=r.extend({},M.helpers,z.helpers);A(G,N),N.helpers=G,w.usePartial&&(N.partials=N.mergeIfNeeded(z.partials,M.partials)),(w.usePartial||w.useDecorators)&&(N.decorators=r.extend({},M.decorators,z.decorators)),N.hooks={},N.protoAccessControl=h.createProtoAccessControl(z);var U=z.allowCallsToHelperMissing||O;l.moveHelperToHooks(N,"helperMissing",U),l.moveHelperToHooks(N,"blockHelperMissing",U)}},Y._child=function(z,G,U,xt){if(w.useBlockParams&&!U)throw new s.default("must pass block params");if(w.useDepths&&!xt)throw new s.default("must pass parent depths");return d(N,z,w[z],G,0,U,xt)},Y}function d(w,M,O,L,N,Y,z){function G(U){var xt=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],dt=z;return z&&U!=z[0]&&!(U===w.nullContext&&z[0]===null)&&(dt=[U].concat(z)),O(w,U,w.helpers,w.partials,xt.data||L,Y&&[xt.blockParams].concat(Y),dt)}return G=_(O,G,w,z,L,Y),G.program=M,G.depth=z?z.length:0,G.blockParams=N||0,G}function m(w,M,O){return w?!w.call&&!O.name&&(O.name=w,w=O.partials[w]):O.name==="@partial-block"?w=O.data["partial-block"]:w=O.partials[O.name],w}function p(w,M,O){var L=O.data&&O.data["partial-block"];O.partial=!0,O.ids&&(O.data.contextPath=O.ids[0]||O.data.contextPath);var N=void 0;if(O.fn&&O.fn!==v&&function(){O.data=a.createFrame(O.data);var Y=O.fn;N=O.data["partial-block"]=function(G){var U=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return U.data=a.createFrame(U.data),U.data["partial-block"]=L,Y(G,U)},Y.partials&&(O.partials=r.extend({},O.partials,Y.partials))}(),w===void 0&&N&&(w=N),w===void 0)throw new s.default("The partial "+O.name+" could not be found");if(w instanceof Function)return w(M,O)}function v(){return""}function b(w,M){return(!M||!("root"in M))&&(M=M?a.createFrame(M):{},M.root=w),M}function _(w,M,O,L,N,Y){if(w.decorator){var z={};M=w.decorator(M,z,O,L&&L[0],N,Y,L),r.extend(M,z)}return M}function A(w,M){Object.keys(w).forEach(function(O){var L=w[O];w[O]=C(L,M)})}function C(w,M){var O=M.lookupProperty;return c.wrapHelper(w,function(L){return r.extend({lookupProperty:O},L)})}return vr}var ba={exports:{}},Vg;function Pv(){return Vg||(Vg=1,function(n,t){t.__esModule=!0,t.default=function(e){var r=typeof He<"u"?He:window,i=r.Handlebars;e.noConflict=function(){return r.Handlebars===e&&(r.Handlebars=i),e}},n.exports=t.default}(ba,ba.exports)),ba.exports}var $g;function pk(){return $g||($g=1,function(n,t){t.__esModule=!0;function e(A){return A&&A.__esModule?A:{default:A}}function r(A){if(A&&A.__esModule)return A;var C={};if(A!=null)for(var w in A)Object.prototype.hasOwnProperty.call(A,w)&&(C[w]=A[w]);return C.default=A,C}var i=mh(),s=r(i),a=fk(),l=e(a),c=Yn(),h=e(c),f=mn(),g=r(f),d=dk(),m=r(d),p=Pv(),v=e(p);function b(){var A=new s.HandlebarsEnvironment;return g.extend(A,s),A.SafeString=l.default,A.Exception=h.default,A.Utils=g,A.escapeExpression=g.escapeExpression,A.VM=m,A.template=function(C){return m.template(C,A)},A}var _=b();_.create=b,v.default(_),_.default=_,t.default=_,n.exports=t.default}(ia,ia.exports)),ia.exports}var _a={exports:{}},Gg;function Ov(){return Gg||(Gg=1,function(n,t){t.__esModule=!0;var e={helpers:{helperExpression:function(i){return i.type==="SubExpression"||(i.type==="MustacheStatement"||i.type==="BlockStatement")&&!!(i.params&&i.params.length||i.hash)},scopedId:function(i){return/^\.|this\b/.test(i.original)},simpleId:function(i){return i.parts.length===1&&!e.helpers.scopedId(i)&&!i.depth}}};t.default=e,n.exports=t.default}(_a,_a.exports)),_a.exports}var Ni={},wa={exports:{}},Yg;function gk(){return Yg||(Yg=1,function(n,t){t.__esModule=!0;var e=function(){var r={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(l,c,h,f,g,d,m){var p=d.length-1;switch(g){case 1:return d[p-1];case 2:this.$=f.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:f.stripComment(d[p]),strip:f.stripFlags(d[p],d[p]),loc:f.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:f.locInfo(this._$)};break;case 11:this.$=f.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=f.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=f.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:f.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:f.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:f.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:f.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var v=f.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),b=f.prepareProgram([v],d[p-1].loc);b.chained=!0,this.$={strip:d[p-2].strip,program:b,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:f.stripFlags(d[p-2],d[p])};break;case 22:this.$=f.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],f.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=f.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],f.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:f.stripFlags(d[p-4],d[p]),loc:f.locInfo(this._$)};break;case 25:this.$=f.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:f.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:f.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:f.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:f.id(d[p-2]),value:d[p],loc:f.locInfo(this._$)};break;case 32:this.$=f.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:f.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:f.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:f.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:f.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:f.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=f.preparePath(!0,d[p],this._$);break;case 43:this.$=f.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:f.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:f.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);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(l,c){throw new Error(l)},parse:function(l){var c=this,h=[0],f=[null],g=[],d=this.table,m="",p=0,v=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var b=this.lexer.yylloc;g.push(b);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(){var xt;return xt=c.lexer.lex()||1,typeof xt!="number"&&(xt=c.symbols_[xt]||xt),xt}for(var C,w,M,O,L={},N,Y,z,G;;){if(w=h[h.length-1],this.defaultActions[w]?M=this.defaultActions[w]:((C===null||typeof C>"u")&&(C=A()),M=d[w]&&d[w][C]),typeof M>"u"||!M.length||!M[0]){var U="";{G=[];for(N in d[w])this.terminals_[N]&&N>2&&G.push("'"+this.terminals_[N]+"'");this.lexer.showPosition?U="Parse error on line "+(p+1)+`:
|
|
5
|
+
`)}return dt}else throw new s.default("The partial "+U.name+" could not be compiled when running in runtime-only mode")}var N={strict:function(G,U,xt){if(!G||!(U in G))throw new s.default('"'+U+'" not defined in '+G,{loc:xt});return N.lookupProperty(G,U)},lookupProperty:function(G,U){var xt=G[U];if(xt==null||Object.prototype.hasOwnProperty.call(G,U)||h.resultIsAllowed(xt,N.protoAccessControl,U))return xt},lookup:function(G,U){for(var xt=G.length,dt=0;dt<xt;dt++){var st=G[dt]&&N.lookupProperty(G[dt],U);if(st!=null)return G[dt][U]}},lambda:function(G,U){return typeof G=="function"?G.call(U):G},escapeExpression:r.escapeExpression,invokePartial:L,fn:function(G){var U=w[G];return U.decorator=w[G+"_d"],U},programs:[],program:function(G,U,xt,dt,st){var at=this.programs[G],_t=this.fn(G);return U||st||dt||xt?at=d(this,G,_t,U,xt,dt,st):at||(at=this.programs[G]=d(this,G,_t)),at},data:function(G,U){for(;G&&U--;)G=G._parent;return G},mergeIfNeeded:function(G,U){var xt=G||U;return G&&U&&G!==U&&(xt=r.extend({},U,G)),xt},nullContext:Object.seal({}),noop:k.VM.noop,compilerInfo:w.compiler};function Y(z){var G=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],U=G.data;Y._setup(G),!G.partial&&w.useData&&(U=_(z,U));var xt=void 0,dt=w.useBlockParams?[]:void 0;w.useDepths&&(G.depths?xt=z!=G.depths[0]?[z].concat(G.depths):G.depths:xt=[z]);function st(at){return""+w.main(N,at,N.helpers,N.partials,U,dt,xt)}return st=b(w.main,st,N,G.depths||[],U,dt),st(z,G)}return Y.isTop=!0,Y._setup=function(z){if(z.partial)N.protoAccessControl=z.protoAccessControl,N.helpers=z.helpers,N.partials=z.partials,N.decorators=z.decorators,N.hooks=z.hooks;else{var G=r.extend({},k.helpers,z.helpers);S(G,N),N.helpers=G,w.usePartial&&(N.partials=N.mergeIfNeeded(z.partials,k.partials)),(w.usePartial||w.useDecorators)&&(N.decorators=r.extend({},k.decorators,z.decorators)),N.hooks={},N.protoAccessControl=h.createProtoAccessControl(z);var U=z.allowCallsToHelperMissing||C;l.moveHelperToHooks(N,"helperMissing",U),l.moveHelperToHooks(N,"blockHelperMissing",U)}},Y._child=function(z,G,U,xt){if(w.useBlockParams&&!U)throw new s.default("must pass block params");if(w.useDepths&&!xt)throw new s.default("must pass parent depths");return d(N,z,w[z],G,0,U,xt)},Y}function d(w,k,C,L,N,Y,z){function G(U){var xt=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],dt=z;return z&&U!=z[0]&&!(U===w.nullContext&&z[0]===null)&&(dt=[U].concat(z)),C(w,U,w.helpers,w.partials,xt.data||L,Y&&[xt.blockParams].concat(Y),dt)}return G=b(C,G,w,z,L,Y),G.program=k,G.depth=z?z.length:0,G.blockParams=N||0,G}function m(w,k,C){return w?!w.call&&!C.name&&(C.name=w,w=C.partials[w]):C.name==="@partial-block"?w=C.data["partial-block"]:w=C.partials[C.name],w}function p(w,k,C){var L=C.data&&C.data["partial-block"];C.partial=!0,C.ids&&(C.data.contextPath=C.ids[0]||C.data.contextPath);var N=void 0;if(C.fn&&C.fn!==v&&function(){C.data=a.createFrame(C.data);var Y=C.fn;N=C.data["partial-block"]=function(G){var U=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return U.data=a.createFrame(U.data),U.data["partial-block"]=L,Y(G,U)},Y.partials&&(C.partials=r.extend({},C.partials,Y.partials))}(),w===void 0&&N&&(w=N),w===void 0)throw new s.default("The partial "+C.name+" could not be found");if(w instanceof Function)return w(k,C)}function v(){return""}function _(w,k){return(!k||!("root"in k))&&(k=k?a.createFrame(k):{},k.root=w),k}function b(w,k,C,L,N,Y){if(w.decorator){var z={};k=w.decorator(k,z,C,L&&L[0],N,Y,L),r.extend(k,z)}return k}function S(w,k){Object.keys(w).forEach(function(C){var L=w[C];w[C]=O(L,k)})}function O(w,k){var C=k.lookupProperty;return c.wrapHelper(w,function(L){return r.extend({lookupProperty:C},L)})}return _r}var Ea={exports:{}},Qg;function jv(){return Qg||(Qg=1,function(n,t){t.__esModule=!0,t.default=function(e){var r=typeof We<"u"?We:window,i=r.Handlebars;e.noConflict=function(){return r.Handlebars===e&&(r.Handlebars=i),e}},n.exports=t.default}(Ea,Ea.exports)),Ea.exports}var tm;function Ek(){return tm||(tm=1,function(n,t){t.__esModule=!0;function e(S){return S&&S.__esModule?S:{default:S}}function r(S){if(S&&S.__esModule)return S;var O={};if(S!=null)for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(O[w]=S[w]);return O.default=S,O}var i=xh(),s=r(i),a=wk(),l=e(a),c=Jn(),h=e(c),f=mn(),g=r(f),d=Sk(),m=r(d),p=jv(),v=e(p);function _(){var S=new s.HandlebarsEnvironment;return g.extend(S,s),S.SafeString=l.default,S.Exception=h.default,S.Utils=g,S.escapeExpression=g.escapeExpression,S.VM=m,S.template=function(O){return m.template(O,S)},S}var b=_();b.create=_,v.default(b),b.default=b,t.default=b,n.exports=t.default}(ua,ua.exports)),ua.exports}var Aa={exports:{}},em;function Uv(){return em||(em=1,function(n,t){t.__esModule=!0;var e={helpers:{helperExpression:function(i){return i.type==="SubExpression"||(i.type==="MustacheStatement"||i.type==="BlockStatement")&&!!(i.params&&i.params.length||i.hash)},scopedId:function(i){return/^\.|this\b/.test(i.original)},simpleId:function(i){return i.parts.length===1&&!e.helpers.scopedId(i)&&!i.depth}}};t.default=e,n.exports=t.default}(Aa,Aa.exports)),Aa.exports}var Ui={},ka={exports:{}},nm;function Ak(){return nm||(nm=1,function(n,t){t.__esModule=!0;var e=function(){var r={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(l,c,h,f,g,d,m){var p=d.length-1;switch(g){case 1:return d[p-1];case 2:this.$=f.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:f.stripComment(d[p]),strip:f.stripFlags(d[p],d[p]),loc:f.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:f.locInfo(this._$)};break;case 11:this.$=f.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=f.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=f.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:f.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:f.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:f.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:f.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var v=f.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),_=f.prepareProgram([v],d[p-1].loc);_.chained=!0,this.$={strip:d[p-2].strip,program:_,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:f.stripFlags(d[p-2],d[p])};break;case 22:this.$=f.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],f.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=f.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],f.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:f.stripFlags(d[p-4],d[p]),loc:f.locInfo(this._$)};break;case 25:this.$=f.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:f.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:f.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:f.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:f.id(d[p-2]),value:d[p],loc:f.locInfo(this._$)};break;case 32:this.$=f.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:f.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:f.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:f.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:f.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:f.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=f.preparePath(!0,d[p],this._$);break;case 43:this.$=f.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:f.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:f.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);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(l,c){throw new Error(l)},parse:function(l){var c=this,h=[0],f=[null],g=[],d=this.table,m="",p=0,v=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var _=this.lexer.yylloc;g.push(_);var b=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var xt;return xt=c.lexer.lex()||1,typeof xt!="number"&&(xt=c.symbols_[xt]||xt),xt}for(var O,w,k,C,L={},N,Y,z,G;;){if(w=h[h.length-1],this.defaultActions[w]?k=this.defaultActions[w]:((O===null||typeof O>"u")&&(O=S()),k=d[w]&&d[w][O]),typeof k>"u"||!k.length||!k[0]){var U="";{G=[];for(N in d[w])this.terminals_[N]&&N>2&&G.push("'"+this.terminals_[N]+"'");this.lexer.showPosition?U="Parse error on line "+(p+1)+`:
|
|
6
6
|
`+this.lexer.showPosition()+`
|
|
7
|
-
Expecting `+G.join(", ")+", got '"+(this.terminals_[
|
|
7
|
+
Expecting `+G.join(", ")+", got '"+(this.terminals_[O]||O)+"'":U="Parse error on line "+(p+1)+": Unexpected "+(O==1?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(U,{text:this.lexer.match,token:this.terminals_[O]||O,line:this.lexer.yylineno,loc:_,expected:G})}}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+O);switch(k[0]){case 1:h.push(O),f.push(this.lexer.yytext),g.push(this.lexer.yylloc),h.push(k[1]),O=null,v=this.lexer.yyleng,m=this.lexer.yytext,p=this.lexer.yylineno,_=this.lexer.yylloc;break;case 2:if(Y=this.productions_[k[1]][1],L.$=f[f.length-Y],L._$={first_line:g[g.length-(Y||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(Y||1)].first_column,last_column:g[g.length-1].last_column},b&&(L._$.range=[g[g.length-(Y||1)].range[0],g[g.length-1].range[1]]),C=this.performAction.call(L,m,v,p,this.yy,k[1],f,g),typeof C<"u")return C;Y&&(h=h.slice(0,-1*Y*2),f=f.slice(0,-1*Y),g=g.slice(0,-1*Y)),h.push(this.productions_[k[1]][0]),f.push(L.$),g.push(L._$),z=d[h[h.length-2]][h[h.length-1]],h.push(z);break;case 3:return!0}}return!0}},i=function(){var a={EOF:1,parseError:function(c,h){if(this.yy.parser)this.yy.parser.parseError(c,h);else throw new Error(c)},setInput:function(c){return this._input=c,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 c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},unput:function(c){var h=c.length,f=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h-1),this.offset-=h;var g=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),f.length-1&&(this.yylineno-=f.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:f?(f.length===g.length?this.yylloc.first_column:0)+g[g.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-h]),this},more:function(){return this._more=!0,this},less:function(c){this.unput(this.match.slice(c))},pastInput:function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
8
8
|
`+h+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,h,f,g,d;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),p=0;p<m.length&&(f=this._input.match(this.rules[m[p]]),!(f&&(!h||f[0].length>h[0].length)&&(h=f,g=p,!this.options.flex)));p++);return h?(d=h[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+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,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(h[0].length),this.matched+=h[0],c=this.performAction.call(this,this.yy,this,m[g],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c||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 c=this.next();return typeof c<"u"?c:this.lex()},begin:function(c){this.conditionStack.push(c)},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(c){this.begin(c)}};return a.options={},a.performAction=function(c,h,f,g){function d(m,p){return h.yytext=h.yytext.substring(m,h.yyleng-p+m)}switch(f){case 0:if(h.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):h.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),h.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(h.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 h.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return h.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 h.yytext=h.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}();r.lexer=i;function s(){this.yy={}}return s.prototype=r,r.Parser=s,new s}();t.default=e,n.exports=t.default}(wa,wa.exports)),wa.exports}var xa={exports:{}},Sa={exports:{}},Kg;function Lv(){return Kg||(Kg=1,function(n,t){t.__esModule=!0;function e(h){return h&&h.__esModule?h:{default:h}}var r=Yn(),i=e(r);function s(){this.parents=[]}s.prototype={constructor:s,mutating:!1,acceptKey:function(f,g){var d=this.accept(f[g]);if(this.mutating){if(d&&!s.prototype[d.type])throw new i.default('Unexpected node type "'+d.type+'" found when accepting '+g+" on "+f.type);f[g]=d}},acceptRequired:function(f,g){if(this.acceptKey(f,g),!f[g])throw new i.default(f.type+" requires "+g)},acceptArray:function(f){for(var g=0,d=f.length;g<d;g++)this.acceptKey(f,g),f[g]||(f.splice(g,1),g--,d--)},accept:function(f){if(f){if(!this[f.type])throw new i.default("Unknown type: "+f.type,f);this.current&&this.parents.unshift(this.current),this.current=f;var g=this[f.type](f);if(this.current=this.parents.shift(),!this.mutating||g)return g;if(g!==!1)return f}},Program:function(f){this.acceptArray(f.body)},MustacheStatement:a,Decorator:a,BlockStatement:l,DecoratorBlock:l,PartialStatement:c,PartialBlockStatement:function(f){c.call(this,f),this.acceptKey(f,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(f){this.acceptArray(f.pairs)},HashPair:function(f){this.acceptRequired(f,"value")}};function a(h){this.acceptRequired(h,"path"),this.acceptArray(h.params),this.acceptKey(h,"hash")}function l(h){a.call(this,h),this.acceptKey(h,"program"),this.acceptKey(h,"inverse")}function c(h){this.acceptRequired(h,"name"),this.acceptArray(h.params),this.acceptKey(h,"hash")}t.default=s,n.exports=t.default}(Sa,Sa.exports)),Sa.exports}var Xg;function mk(){return Xg||(Xg=1,function(n,t){t.__esModule=!0;function e(f){return f&&f.__esModule?f:{default:f}}var r=Lv(),i=e(r);function s(){var f=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=f}s.prototype=new i.default,s.prototype.Program=function(f){var g=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var m=f.body,p=0,v=m.length;p<v;p++){var b=m[p],_=this.accept(b);if(_){var A=a(m,p,d),C=l(m,p,d),w=_.openStandalone&&A,M=_.closeStandalone&&C,O=_.inlineStandalone&&A&&C;_.close&&c(m,p,!0),_.open&&h(m,p,!0),g&&O&&(c(m,p),h(m,p)&&b.type==="PartialStatement"&&(b.indent=/([ \t]+$)/.exec(m[p-1].original)[1])),g&&w&&(c((b.program||b.inverse).body),h(m,p)),g&&M&&(c(m,p),h((b.inverse||b.program).body))}}return f},s.prototype.BlockStatement=s.prototype.DecoratorBlock=s.prototype.PartialBlockStatement=function(f){this.accept(f.program),this.accept(f.inverse);var g=f.program||f.inverse,d=f.program&&f.inverse,m=d,p=d;if(d&&d.chained)for(m=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var v={open:f.openStrip.open,close:f.closeStrip.close,openStandalone:l(g.body),closeStandalone:a((m||g).body)};if(f.openStrip.close&&c(g.body,null,!0),d){var b=f.inverseStrip;b.open&&h(g.body,null,!0),b.close&&c(m.body,null,!0),f.closeStrip.open&&h(p.body,null,!0),!this.options.ignoreStandalone&&a(g.body)&&l(m.body)&&(h(g.body),c(m.body))}else f.closeStrip.open&&h(g.body,null,!0);return v},s.prototype.Decorator=s.prototype.MustacheStatement=function(f){return f.strip},s.prototype.PartialStatement=s.prototype.CommentStatement=function(f){var g=f.strip||{};return{inlineStandalone:!0,open:g.open,close:g.close}};function a(f,g,d){g===void 0&&(g=f.length);var m=f[g-1],p=f[g-2];if(!m)return d;if(m.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(m.original)}function l(f,g,d){g===void 0&&(g=-1);var m=f[g+1],p=f[g+2];if(!m)return d;if(m.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(m.original)}function c(f,g,d){var m=f[g==null?0:g+1];if(!(!m||m.type!=="ContentStatement"||!d&&m.rightStripped)){var p=m.value;m.value=m.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),m.rightStripped=m.value!==p}}function h(f,g,d){var m=f[g==null?f.length-1:g-1];if(!(!m||m.type!=="ContentStatement"||!d&&m.leftStripped)){var p=m.value;return m.value=m.value.replace(d?/\s+$/:/[ \t]+$/,""),m.leftStripped=m.value!==p,m.leftStripped}}t.default=s,n.exports=t.default}(xa,xa.exports)),xa.exports}var Sn={},Jg;function yk(){if(Jg)return Sn;Jg=1,Sn.__esModule=!0,Sn.SourceLocation=i,Sn.id=s,Sn.stripFlags=a,Sn.stripComment=l,Sn.preparePath=c,Sn.prepareMustache=h,Sn.prepareRawBlock=f,Sn.prepareBlock=g,Sn.prepareProgram=d,Sn.preparePartialBlock=m;function n(p){return p&&p.__esModule?p:{default:p}}var t=Yn(),e=n(t);function r(p,v){if(v=v.path?v.path.original:v,p.path.original!==v){var b={loc:p.path.loc};throw new e.default(p.path.original+" doesn't match "+v,b)}}function i(p,v){this.source=p,this.start={line:v.first_line,column:v.first_column},this.end={line:v.last_line,column:v.last_column}}function s(p){return/^\[.*\]$/.test(p)?p.substring(1,p.length-1):p}function a(p,v){return{open:p.charAt(2)==="~",close:v.charAt(v.length-3)==="~"}}function l(p){return p.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function c(p,v,b){b=this.locInfo(b);for(var _=p?"@":"",A=[],C=0,w=0,M=v.length;w<M;w++){var O=v[w].part,L=v[w].original!==O;if(_+=(v[w].separator||"")+O,!L&&(O===".."||O==="."||O==="this")){if(A.length>0)throw new e.default("Invalid path: "+_,{loc:b});O===".."&&C++}else A.push(O)}return{type:"PathExpression",data:p,depth:C,parts:A,original:_,loc:b}}function h(p,v,b,_,A,C){var w=_.charAt(3)||_.charAt(2),M=w!=="{"&&w!=="&",O=/\*/.test(_);return{type:O?"Decorator":"MustacheStatement",path:p,params:v,hash:b,escaped:M,strip:A,loc:this.locInfo(C)}}function f(p,v,b,_){r(p,b),_=this.locInfo(_);var A={type:"Program",body:v,strip:{},loc:_};return{type:"BlockStatement",path:p.path,params:p.params,hash:p.hash,program:A,openStrip:{},inverseStrip:{},closeStrip:{},loc:_}}function g(p,v,b,_,A,C){_&&_.path&&r(p,_);var w=/\*/.test(p.open);v.blockParams=p.blockParams;var M=void 0,O=void 0;if(b){if(w)throw new e.default("Unexpected inverse block on decorator",b);b.chain&&(b.program.body[0].closeStrip=_.strip),O=b.strip,M=b.program}return A&&(A=M,M=v,v=A),{type:w?"DecoratorBlock":"BlockStatement",path:p.path,params:p.params,hash:p.hash,program:v,inverse:M,openStrip:p.strip,inverseStrip:O,closeStrip:_&&_.strip,loc:this.locInfo(C)}}function d(p,v){if(!v&&p.length){var b=p[0].loc,_=p[p.length-1].loc;b&&_&&(v={source:b.source,start:{line:b.start.line,column:b.start.column},end:{line:_.end.line,column:_.end.column}})}return{type:"Program",body:p,strip:{},loc:v}}function m(p,v,b,_){return r(p,b),{type:"PartialBlockStatement",name:p.path,params:p.params,hash:p.hash,program:v,openStrip:p.strip,closeStrip:b&&b.strip,loc:this.locInfo(_)}}return Sn}var Zg;function vk(){if(Zg)return Ni;Zg=1,Ni.__esModule=!0,Ni.parseWithoutProcessing=f,Ni.parse=g;function n(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(m[p]=d[p]);return m.default=d,m}function t(d){return d&&d.__esModule?d:{default:d}}var e=gk(),r=t(e),i=mk(),s=t(i),a=yk(),l=n(a),c=mn();Ni.parser=r.default;var h={};c.extend(h,l);function f(d,m){if(d.type==="Program")return d;r.default.yy=h,h.locInfo=function(v){return new h.SourceLocation(m&&m.srcName,v)};var p=r.default.parse(d);return p}function g(d,m){var p=f(d,m),v=new s.default(m);return v.accept(p)}return Ni}var ji={},Qg;function bk(){if(Qg)return ji;Qg=1,ji.__esModule=!0,ji.Compiler=l,ji.precompile=c,ji.compile=h;function n(d){return d&&d.__esModule?d:{default:d}}var t=Yn(),e=n(t),r=mn(),i=Ov(),s=n(i),a=[].slice;function l(){}l.prototype={compiler:l,equals:function(m){var p=this.opcodes.length;if(m.opcodes.length!==p)return!1;for(var v=0;v<p;v++){var b=this.opcodes[v],_=m.opcodes[v];if(b.opcode!==_.opcode||!f(b.args,_.args))return!1}p=this.children.length;for(var v=0;v<p;v++)if(!this.children[v].equals(m.children[v]))return!1;return!0},guid:0,compile:function(m,p){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=p,this.stringParams=p.stringParams,this.trackIds=p.trackIds,p.blockParams=p.blockParams||[],p.knownHelpers=r.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},p.knownHelpers),this.accept(m)},compileProgram:function(m){var p=new this.compiler,v=p.compile(m,this.options),b=this.guid++;return this.usePartial=this.usePartial||v.usePartial,this.children[b]=v,this.useDepths=this.useDepths||v.useDepths,b},accept:function(m){if(!this[m.type])throw new e.default("Unknown type: "+m.type,m);this.sourceNode.unshift(m);var p=this[m.type](m);return this.sourceNode.shift(),p},Program:function(m){this.options.blockParams.unshift(m.blockParams);for(var p=m.body,v=p.length,b=0;b<v;b++)this.accept(p[b]);return this.options.blockParams.shift(),this.isSimple=v===1,this.blockParams=m.blockParams?m.blockParams.length:0,this},BlockStatement:function(m){g(m);var p=m.program,v=m.inverse;p=p&&this.compileProgram(p),v=v&&this.compileProgram(v);var b=this.classifySexpr(m);b==="helper"?this.helperSexpr(m,p,v):b==="simple"?(this.simpleSexpr(m),this.opcode("pushProgram",p),this.opcode("pushProgram",v),this.opcode("emptyHash"),this.opcode("blockValue",m.path.original)):(this.ambiguousSexpr(m,p,v),this.opcode("pushProgram",p),this.opcode("pushProgram",v),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(m){var p=m.program&&this.compileProgram(m.program),v=this.setupFullMustacheParams(m,p,void 0),b=m.path;this.useDecorators=!0,this.opcode("registerDecorator",v.length,b.original)},PartialStatement:function(m){this.usePartial=!0;var p=m.program;p&&(p=this.compileProgram(m.program));var v=m.params;if(v.length>1)throw new e.default("Unsupported number of partial arguments: "+v.length,m);v.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):v.push({type:"PathExpression",parts:[],depth:0}));var b=m.name.original,_=m.name.type==="SubExpression";_&&this.accept(m.name),this.setupFullMustacheParams(m,p,void 0,!0);var A=m.indent||"";this.options.preventIndent&&A&&(this.opcode("appendContent",A),A=""),this.opcode("invokePartial",_,b,A),this.opcode("append")},PartialBlockStatement:function(m){this.PartialStatement(m)},MustacheStatement:function(m){this.SubExpression(m),m.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(m){this.DecoratorBlock(m)},ContentStatement:function(m){m.value&&this.opcode("appendContent",m.value)},CommentStatement:function(){},SubExpression:function(m){g(m);var p=this.classifySexpr(m);p==="simple"?this.simpleSexpr(m):p==="helper"?this.helperSexpr(m):this.ambiguousSexpr(m)},ambiguousSexpr:function(m,p,v){var b=m.path,_=b.parts[0],A=p!=null||v!=null;this.opcode("getContext",b.depth),this.opcode("pushProgram",p),this.opcode("pushProgram",v),b.strict=!0,this.accept(b),this.opcode("invokeAmbiguous",_,A)},simpleSexpr:function(m){var p=m.path;p.strict=!0,this.accept(p),this.opcode("resolvePossibleLambda")},helperSexpr:function(m,p,v){var b=this.setupFullMustacheParams(m,p,v),_=m.path,A=_.parts[0];if(this.options.knownHelpers[A])this.opcode("invokeKnownHelper",b.length,A);else{if(this.options.knownHelpersOnly)throw new e.default("You specified knownHelpersOnly, but used the unknown helper "+A,m);_.strict=!0,_.falsy=!0,this.accept(_),this.opcode("invokeHelper",b.length,_.original,s.default.helpers.simpleId(_))}},PathExpression:function(m){this.addDepth(m.depth),this.opcode("getContext",m.depth);var p=m.parts[0],v=s.default.helpers.scopedId(m),b=!m.depth&&!v&&this.blockParamIndex(p);b?this.opcode("lookupBlockParam",b,m.parts):p?m.data?(this.options.data=!0,this.opcode("lookupData",m.depth,m.parts,m.strict)):this.opcode("lookupOnContext",m.parts,m.falsy,m.strict,v):this.opcode("pushContext")},StringLiteral:function(m){this.opcode("pushString",m.value)},NumberLiteral:function(m){this.opcode("pushLiteral",m.value)},BooleanLiteral:function(m){this.opcode("pushLiteral",m.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(m){var p=m.pairs,v=0,b=p.length;for(this.opcode("pushHash");v<b;v++)this.pushParam(p[v].value);for(;v--;)this.opcode("assignToHash",p[v].key);this.opcode("popHash")},opcode:function(m){this.opcodes.push({opcode:m,args:a.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(m){m&&(this.useDepths=!0)},classifySexpr:function(m){var p=s.default.helpers.simpleId(m.path),v=p&&!!this.blockParamIndex(m.path.parts[0]),b=!v&&s.default.helpers.helperExpression(m),_=!v&&(b||p);if(_&&!b){var A=m.path.parts[0],C=this.options;C.knownHelpers[A]?b=!0:C.knownHelpersOnly&&(_=!1)}return b?"helper":_?"ambiguous":"simple"},pushParams:function(m){for(var p=0,v=m.length;p<v;p++)this.pushParam(m[p])},pushParam:function(m){var p=m.value!=null?m.value:m.original||"";if(this.stringParams)p.replace&&(p=p.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),m.depth&&this.addDepth(m.depth),this.opcode("getContext",m.depth||0),this.opcode("pushStringParam",p,m.type),m.type==="SubExpression"&&this.accept(m);else{if(this.trackIds){var v=void 0;if(m.parts&&!s.default.helpers.scopedId(m)&&!m.depth&&(v=this.blockParamIndex(m.parts[0])),v){var b=m.parts.slice(1).join(".");this.opcode("pushId","BlockParam",v,b)}else p=m.original||p,p.replace&&(p=p.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",m.type,p)}this.accept(m)}},setupFullMustacheParams:function(m,p,v,b){var _=m.params;return this.pushParams(_),this.opcode("pushProgram",p),this.opcode("pushProgram",v),m.hash?this.accept(m.hash):this.opcode("emptyHash",b),_},blockParamIndex:function(m){for(var p=0,v=this.options.blockParams.length;p<v;p++){var b=this.options.blockParams[p],_=b&&r.indexOf(b,m);if(b&&_>=0)return[p,_]}}};function c(d,m,p){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);m=m||{},"data"in m||(m.data=!0),m.compat&&(m.useDepths=!0);var v=p.parse(d,m),b=new p.Compiler().compile(v,m);return new p.JavaScriptCompiler().compile(b,m)}function h(d,m,p){if(m===void 0&&(m={}),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);m=r.extend({},m),"data"in m||(m.data=!0),m.compat&&(m.useDepths=!0);var v=void 0;function b(){var A=p.parse(d,m),C=new p.Compiler().compile(A,m),w=new p.JavaScriptCompiler().compile(C,m,void 0,!0);return p.template(w)}function _(A,C){return v||(v=b()),v.call(this,A,C)}return _._setup=function(A){return v||(v=b()),v._setup(A)},_._child=function(A,C,w,M){return v||(v=b()),v._child(A,C,w,M)},_}function f(d,m){if(d===m)return!0;if(r.isArray(d)&&r.isArray(m)&&d.length===m.length){for(var p=0;p<d.length;p++)if(!f(d[p],m[p]))return!1;return!0}}function g(d){if(!d.path.parts){var m=d.path;d.path={type:"PathExpression",data:!1,depth:0,parts:[m.original+""],original:m.original+"",loc:m.loc}}}return ji}var Ea={exports:{}},Aa={exports:{}},Ss={},Xu={},ka={},Ra={},tm;function _k(){if(tm)return Ra;tm=1;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Ra.encode=function(t){if(0<=t&&t<n.length)return n[t];throw new TypeError("Must be between 0 and 63: "+t)},Ra.decode=function(t){var e=65,r=90,i=97,s=122,a=48,l=57,c=43,h=47,f=26,g=52;return e<=t&&t<=r?t-e:i<=t&&t<=s?t-i+f:a<=t&&t<=l?t-a+g:t==c?62:t==h?63:-1},Ra}var em;function Tv(){if(em)return ka;em=1;var n=_k(),t=5,e=1<<t,r=e-1,i=e;function s(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var c=(l&1)===1,h=l>>1;return c?-h:h}return ka.encode=function(c){var h="",f,g=s(c);do f=g&r,g>>>=t,g>0&&(f|=i),h+=n.encode(f);while(g>0);return h},ka.decode=function(c,h,f){var g=c.length,d=0,m=0,p,v;do{if(h>=g)throw new Error("Expected more digits in base 64 VLQ value.");if(v=n.decode(c.charCodeAt(h++)),v===-1)throw new Error("Invalid base64 digit: "+c.charAt(h-1));p=!!(v&i),v&=r,d=d+(v<<m),m+=t}while(p);f.value=a(d),f.rest=h},ka}var Ju={},nm;function so(){return nm||(nm=1,function(n){function t(w,M,O){if(M in w)return w[M];if(arguments.length===3)return O;throw new Error('"'+M+'" is a required argument.')}n.getArg=t;var e=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(w){var M=w.match(e);return M?{scheme:M[1],auth:M[2],host:M[3],port:M[4],path:M[5]}:null}n.urlParse=i;function s(w){var M="";return w.scheme&&(M+=w.scheme+":"),M+="//",w.auth&&(M+=w.auth+"@"),w.host&&(M+=w.host),w.port&&(M+=":"+w.port),w.path&&(M+=w.path),M}n.urlGenerate=s;function a(w){var M=w,O=i(w);if(O){if(!O.path)return w;M=O.path}for(var L=n.isAbsolute(M),N=M.split(/\/+/),Y,z=0,G=N.length-1;G>=0;G--)Y=N[G],Y==="."?N.splice(G,1):Y===".."?z++:z>0&&(Y===""?(N.splice(G+1,z),z=0):(N.splice(G,2),z--));return M=N.join("/"),M===""&&(M=L?"/":"."),O?(O.path=M,s(O)):M}n.normalize=a;function l(w,M){w===""&&(w="."),M===""&&(M=".");var O=i(M),L=i(w);if(L&&(w=L.path||"/"),O&&!O.scheme)return L&&(O.scheme=L.scheme),s(O);if(O||M.match(r))return M;if(L&&!L.host&&!L.path)return L.host=M,s(L);var N=M.charAt(0)==="/"?M:a(w.replace(/\/+$/,"")+"/"+M);return L?(L.path=N,s(L)):N}n.join=l,n.isAbsolute=function(w){return w.charAt(0)==="/"||e.test(w)};function c(w,M){w===""&&(w="."),w=w.replace(/\/$/,"");for(var O=0;M.indexOf(w+"/")!==0;){var L=w.lastIndexOf("/");if(L<0||(w=w.slice(0,L),w.match(/^([^\/]+:\/)?\/*$/)))return M;++O}return Array(O+1).join("../")+M.substr(w.length+1)}n.relative=c;var h=function(){var w=Object.create(null);return!("__proto__"in w)}();function f(w){return w}function g(w){return m(w)?"$"+w:w}n.toSetString=h?f:g;function d(w){return m(w)?w.slice(1):w}n.fromSetString=h?f:d;function m(w){if(!w)return!1;var M=w.length;if(M<9||w.charCodeAt(M-1)!==95||w.charCodeAt(M-2)!==95||w.charCodeAt(M-3)!==111||w.charCodeAt(M-4)!==116||w.charCodeAt(M-5)!==111||w.charCodeAt(M-6)!==114||w.charCodeAt(M-7)!==112||w.charCodeAt(M-8)!==95||w.charCodeAt(M-9)!==95)return!1;for(var O=M-10;O>=0;O--)if(w.charCodeAt(O)!==36)return!1;return!0}function p(w,M,O){var L=b(w.source,M.source);return L!==0||(L=w.originalLine-M.originalLine,L!==0)||(L=w.originalColumn-M.originalColumn,L!==0||O)||(L=w.generatedColumn-M.generatedColumn,L!==0)||(L=w.generatedLine-M.generatedLine,L!==0)?L:b(w.name,M.name)}n.compareByOriginalPositions=p;function v(w,M,O){var L=w.generatedLine-M.generatedLine;return L!==0||(L=w.generatedColumn-M.generatedColumn,L!==0||O)||(L=b(w.source,M.source),L!==0)||(L=w.originalLine-M.originalLine,L!==0)||(L=w.originalColumn-M.originalColumn,L!==0)?L:b(w.name,M.name)}n.compareByGeneratedPositionsDeflated=v;function b(w,M){return w===M?0:w===null?1:M===null?-1:w>M?1:-1}function _(w,M){var O=w.generatedLine-M.generatedLine;return O!==0||(O=w.generatedColumn-M.generatedColumn,O!==0)||(O=b(w.source,M.source),O!==0)||(O=w.originalLine-M.originalLine,O!==0)||(O=w.originalColumn-M.originalColumn,O!==0)?O:b(w.name,M.name)}n.compareByGeneratedPositionsInflated=_;function A(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}n.parseSourceMapInput=A;function C(w,M,O){if(M=M||"",w&&(w[w.length-1]!=="/"&&M[0]!=="/"&&(w+="/"),M=w+M),O){var L=i(O);if(!L)throw new Error("sourceMapURL could not be parsed");if(L.path){var N=L.path.lastIndexOf("/");N>=0&&(L.path=L.path.substring(0,N+1))}M=l(s(L),M)}return a(M)}n.computeSourceURL=C}(Ju)),Ju}var Zu={},rm;function Bv(){if(rm)return Zu;rm=1;var n=so(),t=Object.prototype.hasOwnProperty,e=typeof Map<"u";function r(){this._array=[],this._set=e?new Map:Object.create(null)}return r.fromArray=function(s,a){for(var l=new r,c=0,h=s.length;c<h;c++)l.add(s[c],a);return l},r.prototype.size=function(){return e?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(s,a){var l=e?s:n.toSetString(s),c=e?this.has(s):t.call(this._set,l),h=this._array.length;(!c||a)&&this._array.push(s),c||(e?this._set.set(s,h):this._set[l]=h)},r.prototype.has=function(s){if(e)return this._set.has(s);var a=n.toSetString(s);return t.call(this._set,a)},r.prototype.indexOf=function(s){if(e){var a=this._set.get(s);if(a>=0)return a}else{var l=n.toSetString(s);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+s+'" is not in the set.')},r.prototype.at=function(s){if(s>=0&&s<this._array.length)return this._array[s];throw new Error("No element indexed by "+s)},r.prototype.toArray=function(){return this._array.slice()},Zu.ArraySet=r,Zu}var Qu={},im;function wk(){if(im)return Qu;im=1;var n=so();function t(r,i){var s=r.generatedLine,a=i.generatedLine,l=r.generatedColumn,c=i.generatedColumn;return a>s||a==s&&c>=l||n.compareByGeneratedPositionsInflated(r,i)<=0}function e(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return e.prototype.unsortedForEach=function(i,s){this._array.forEach(i,s)},e.prototype.add=function(i){t(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=!1,this._array.push(i))},e.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Qu.MappingList=e,Qu}var sm;function Iv(){if(sm)return Xu;sm=1;var n=Tv(),t=so(),e=Bv().ArraySet,r=wk().MappingList;function i(s){s||(s={}),this._file=t.getArg(s,"file",null),this._sourceRoot=t.getArg(s,"sourceRoot",null),this._skipValidation=t.getArg(s,"skipValidation",!1),this._sources=new e,this._names=new e,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(a){var l=a.sourceRoot,c=new i({file:a.file,sourceRoot:l});return a.eachMapping(function(h){var f={generated:{line:h.generatedLine,column:h.generatedColumn}};h.source!=null&&(f.source=h.source,l!=null&&(f.source=t.relative(l,f.source)),f.original={line:h.originalLine,column:h.originalColumn},h.name!=null&&(f.name=h.name)),c.addMapping(f)}),a.sources.forEach(function(h){var f=h;l!==null&&(f=t.relative(l,h)),c._sources.has(f)||c._sources.add(f);var g=a.sourceContentFor(h);g!=null&&c.setSourceContent(h,g)}),c},i.prototype.addMapping=function(a){var l=t.getArg(a,"generated"),c=t.getArg(a,"original",null),h=t.getArg(a,"source",null),f=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,c,h,f),h!=null&&(h=String(h),this._sources.has(h)||this._sources.add(h)),f!=null&&(f=String(f),this._names.has(f)||this._names.add(f)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:c!=null&&c.line,originalColumn:c!=null&&c.column,source:h,name:f})},i.prototype.setSourceContent=function(a,l){var c=a;this._sourceRoot!=null&&(c=t.relative(this._sourceRoot,c)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(c)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(c)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(a,l,c){var h=l;if(l==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.`);h=a.file}var f=this._sourceRoot;f!=null&&(h=t.relative(f,h));var g=new e,d=new e;this._mappings.unsortedForEach(function(m){if(m.source===h&&m.originalLine!=null){var p=a.originalPositionFor({line:m.originalLine,column:m.originalColumn});p.source!=null&&(m.source=p.source,c!=null&&(m.source=t.join(c,m.source)),f!=null&&(m.source=t.relative(f,m.source)),m.originalLine=p.line,m.originalColumn=p.column,p.name!=null&&(m.name=p.name))}var v=m.source;v!=null&&!g.has(v)&&g.add(v);var b=m.name;b!=null&&!d.has(b)&&d.add(b)},this),this._sources=g,this._names=d,a.sources.forEach(function(m){var p=a.sourceContentFor(m);p!=null&&(c!=null&&(m=t.join(c,m)),f!=null&&(m=t.relative(f,m)),this.setSourceContent(m,p))},this)},i.prototype._validateMapping=function(a,l,c,h){if(l&&typeof l.line!="number"&&typeof l.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&&!l&&!c&&!h)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&c)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:c,original:l,name:h}))}},i.prototype._serializeMappings=function(){for(var a=0,l=1,c=0,h=0,f=0,g=0,d="",m,p,v,b,_=this._mappings.toArray(),A=0,C=_.length;A<C;A++){if(p=_[A],m="",p.generatedLine!==l)for(a=0;p.generatedLine!==l;)m+=";",l++;else if(A>0){if(!t.compareByGeneratedPositionsInflated(p,_[A-1]))continue;m+=","}m+=n.encode(p.generatedColumn-a),a=p.generatedColumn,p.source!=null&&(b=this._sources.indexOf(p.source),m+=n.encode(b-g),g=b,m+=n.encode(p.originalLine-1-h),h=p.originalLine-1,m+=n.encode(p.originalColumn-c),c=p.originalColumn,p.name!=null&&(v=this._names.indexOf(p.name),m+=n.encode(v-f),f=v)),d+=m}return d},i.prototype._generateSourcesContent=function(a,l){return a.map(function(c){if(!this._sourcesContents)return null;l!=null&&(c=t.relative(l,c));var h=t.toSetString(c);return Object.prototype.hasOwnProperty.call(this._sourcesContents,h)?this._sourcesContents[h]:null},this)},i.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},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},Xu.SourceMapGenerator=i,Xu}var Es={},tc={},om;function xk(){return om||(om=1,function(n){n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2;function t(e,r,i,s,a,l){var c=Math.floor((r-e)/2)+e,h=a(i,s[c],!0);return h===0?c:h>0?r-c>1?t(c,r,i,s,a,l):l==n.LEAST_UPPER_BOUND?r<s.length?r:-1:c:c-e>1?t(e,c,i,s,a,l):l==n.LEAST_UPPER_BOUND?c:e<0?-1:e}n.search=function(r,i,s,a){if(i.length===0)return-1;var l=t(-1,i.length,r,i,s,a||n.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&s(i[l],i[l-1],!0)===0;)--l;return l}}(tc)),tc}var ec={},am;function Sk(){if(am)return ec;am=1;function n(r,i,s){var a=r[i];r[i]=r[s],r[s]=a}function t(r,i){return Math.round(r+Math.random()*(i-r))}function e(r,i,s,a){if(s<a){var l=t(s,a),c=s-1;n(r,l,a);for(var h=r[a],f=s;f<a;f++)i(r[f],h)<=0&&(c+=1,n(r,c,f));n(r,c+1,f);var g=c+1;e(r,i,s,g-1),e(r,i,g+1,a)}}return ec.quickSort=function(r,i){e(r,i,0,r.length-1)},ec}var lm;function Ek(){if(lm)return Es;lm=1;var n=so(),t=xk(),e=Bv().ArraySet,r=Tv(),i=Sk().quickSort;function s(h,f){var g=h;return typeof h=="string"&&(g=n.parseSourceMapInput(h)),g.sections!=null?new c(g,f):new a(g,f)}s.fromSourceMap=function(h,f){return a.fromSourceMap(h,f)},s.prototype._version=3,s.prototype.__generatedMappings=null,Object.defineProperty(s.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),s.prototype.__originalMappings=null,Object.defineProperty(s.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),s.prototype._charIsMappingSeparator=function(f,g){var d=f.charAt(g);return d===";"||d===","},s.prototype._parseMappings=function(f,g){throw new Error("Subclasses must implement _parseMappings")},s.GENERATED_ORDER=1,s.ORIGINAL_ORDER=2,s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.prototype.eachMapping=function(f,g,d){var m=g||null,p=d||s.GENERATED_ORDER,v;switch(p){case s.GENERATED_ORDER:v=this._generatedMappings;break;case s.ORIGINAL_ORDER:v=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var b=this.sourceRoot;v.map(function(_){var A=_.source===null?null:this._sources.at(_.source);return A=n.computeSourceURL(b,A,this._sourceMapURL),{source:A,generatedLine:_.generatedLine,generatedColumn:_.generatedColumn,originalLine:_.originalLine,originalColumn:_.originalColumn,name:_.name===null?null:this._names.at(_.name)}},this).forEach(f,m)},s.prototype.allGeneratedPositionsFor=function(f){var g=n.getArg(f,"line"),d={source:n.getArg(f,"source"),originalLine:g,originalColumn:n.getArg(f,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var m=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var v=this._originalMappings[p];if(f.column===void 0)for(var b=v.originalLine;v&&v.originalLine===b;)m.push({line:n.getArg(v,"generatedLine",null),column:n.getArg(v,"generatedColumn",null),lastColumn:n.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++p];else for(var _=v.originalColumn;v&&v.originalLine===g&&v.originalColumn==_;)m.push({line:n.getArg(v,"generatedLine",null),column:n.getArg(v,"generatedColumn",null),lastColumn:n.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++p]}return m},Es.SourceMapConsumer=s;function a(h,f){var g=h;typeof h=="string"&&(g=n.parseSourceMapInput(h));var d=n.getArg(g,"version"),m=n.getArg(g,"sources"),p=n.getArg(g,"names",[]),v=n.getArg(g,"sourceRoot",null),b=n.getArg(g,"sourcesContent",null),_=n.getArg(g,"mappings"),A=n.getArg(g,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);v&&(v=n.normalize(v)),m=m.map(String).map(n.normalize).map(function(C){return v&&n.isAbsolute(v)&&n.isAbsolute(C)?n.relative(v,C):C}),this._names=e.fromArray(p.map(String),!0),this._sources=e.fromArray(m,!0),this._absoluteSources=this._sources.toArray().map(function(C){return n.computeSourceURL(v,C,f)}),this.sourceRoot=v,this.sourcesContent=b,this._mappings=_,this._sourceMapURL=f,this.file=A}a.prototype=Object.create(s.prototype),a.prototype.consumer=s,a.prototype._findSourceIndex=function(h){var f=h;if(this.sourceRoot!=null&&(f=n.relative(this.sourceRoot,f)),this._sources.has(f))return this._sources.indexOf(f);var g;for(g=0;g<this._absoluteSources.length;++g)if(this._absoluteSources[g]==h)return g;return-1},a.fromSourceMap=function(f,g){var d=Object.create(a.prototype),m=d._names=e.fromArray(f._names.toArray(),!0),p=d._sources=e.fromArray(f._sources.toArray(),!0);d.sourceRoot=f._sourceRoot,d.sourcesContent=f._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=f._file,d._sourceMapURL=g,d._absoluteSources=d._sources.toArray().map(function(O){return n.computeSourceURL(d.sourceRoot,O,g)});for(var v=f._mappings.toArray().slice(),b=d.__generatedMappings=[],_=d.__originalMappings=[],A=0,C=v.length;A<C;A++){var w=v[A],M=new l;M.generatedLine=w.generatedLine,M.generatedColumn=w.generatedColumn,w.source&&(M.source=p.indexOf(w.source),M.originalLine=w.originalLine,M.originalColumn=w.originalColumn,w.name&&(M.name=m.indexOf(w.name)),_.push(M)),b.push(M)}return i(d.__originalMappings,n.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(f,g){for(var d=1,m=0,p=0,v=0,b=0,_=0,A=f.length,C=0,w={},M={},O=[],L=[],N,Y,z,G,U;C<A;)if(f.charAt(C)===";")d++,C++,m=0;else if(f.charAt(C)===",")C++;else{for(N=new l,N.generatedLine=d,G=C;G<A&&!this._charIsMappingSeparator(f,G);G++);if(Y=f.slice(C,G),z=w[Y],z)C+=Y.length;else{for(z=[];C<G;)r.decode(f,C,M),U=M.value,C=M.rest,z.push(U);if(z.length===2)throw new Error("Found a source, but no line and column");if(z.length===3)throw new Error("Found a source and line, but no column");w[Y]=z}N.generatedColumn=m+z[0],m=N.generatedColumn,z.length>1&&(N.source=b+z[1],b+=z[1],N.originalLine=p+z[2],p=N.originalLine,N.originalLine+=1,N.originalColumn=v+z[3],v=N.originalColumn,z.length>4&&(N.name=_+z[4],_+=z[4])),L.push(N),typeof N.originalLine=="number"&&O.push(N)}i(L,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=L,i(O,n.compareByOriginalPositions),this.__originalMappings=O},a.prototype._findMapping=function(f,g,d,m,p,v){if(f[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+f[d]);if(f[m]<0)throw new TypeError("Column must be greater than or equal to 0, got "+f[m]);return t.search(f,g,p,v)},a.prototype.computeColumnSpans=function(){for(var f=0;f<this._generatedMappings.length;++f){var g=this._generatedMappings[f];if(f+1<this._generatedMappings.length){var d=this._generatedMappings[f+1];if(g.generatedLine===d.generatedLine){g.lastGeneratedColumn=d.generatedColumn-1;continue}}g.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(f){var g={generatedLine:n.getArg(f,"line"),generatedColumn:n.getArg(f,"column")},d=this._findMapping(g,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(f,"bias",s.GREATEST_LOWER_BOUND));if(d>=0){var m=this._generatedMappings[d];if(m.generatedLine===g.generatedLine){var p=n.getArg(m,"source",null);p!==null&&(p=this._sources.at(p),p=n.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var v=n.getArg(m,"name",null);return v!==null&&(v=this._names.at(v)),{source:p,line:n.getArg(m,"originalLine",null),column:n.getArg(m,"originalColumn",null),name:v}}}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(f){return f==null}):!1},a.prototype.sourceContentFor=function(f,g){if(!this.sourcesContent)return null;var d=this._findSourceIndex(f);if(d>=0)return this.sourcesContent[d];var m=f;this.sourceRoot!=null&&(m=n.relative(this.sourceRoot,m));var p;if(this.sourceRoot!=null&&(p=n.urlParse(this.sourceRoot))){var v=m.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!p.path||p.path=="/")&&this._sources.has("/"+m))return this.sourcesContent[this._sources.indexOf("/"+m)]}if(g)return null;throw new Error('"'+m+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(f){var g=n.getArg(f,"source");if(g=this._findSourceIndex(g),g<0)return{line:null,column:null,lastColumn:null};var d={source:g,originalLine:n.getArg(f,"line"),originalColumn:n.getArg(f,"column")},m=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(f,"bias",s.GREATEST_LOWER_BOUND));if(m>=0){var p=this._originalMappings[m];if(p.source===d.source)return{line:n.getArg(p,"generatedLine",null),column:n.getArg(p,"generatedColumn",null),lastColumn:n.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Es.BasicSourceMapConsumer=a;function c(h,f){var g=h;typeof h=="string"&&(g=n.parseSourceMapInput(h));var d=n.getArg(g,"version"),m=n.getArg(g,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new e,this._names=new e;var p={line:-1,column:0};this._sections=m.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var b=n.getArg(v,"offset"),_=n.getArg(b,"line"),A=n.getArg(b,"column");if(_<p.line||_===p.line&&A<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=b,{generatedOffset:{generatedLine:_+1,generatedColumn:A+1},consumer:new s(n.getArg(v,"map"),f)}})}return c.prototype=Object.create(s.prototype),c.prototype.constructor=s,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var h=[],f=0;f<this._sections.length;f++)for(var g=0;g<this._sections[f].consumer.sources.length;g++)h.push(this._sections[f].consumer.sources[g]);return h}}),c.prototype.originalPositionFor=function(f){var g={generatedLine:n.getArg(f,"line"),generatedColumn:n.getArg(f,"column")},d=t.search(g,this._sections,function(p,v){var b=p.generatedLine-v.generatedOffset.generatedLine;return b||p.generatedColumn-v.generatedOffset.generatedColumn}),m=this._sections[d];return m?m.consumer.originalPositionFor({line:g.generatedLine-(m.generatedOffset.generatedLine-1),column:g.generatedColumn-(m.generatedOffset.generatedLine===g.generatedLine?m.generatedOffset.generatedColumn-1:0),bias:f.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(f){return f.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(f,g){for(var d=0;d<this._sections.length;d++){var m=this._sections[d],p=m.consumer.sourceContentFor(f,!0);if(p)return p}if(g)return null;throw new Error('"'+f+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(f){for(var g=0;g<this._sections.length;g++){var d=this._sections[g];if(d.consumer._findSourceIndex(n.getArg(f,"source"))!==-1){var m=d.consumer.generatedPositionFor(f);if(m){var p={line:m.line+(d.generatedOffset.generatedLine-1),column:m.column+(d.generatedOffset.generatedLine===m.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},c.prototype._parseMappings=function(f,g){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var m=this._sections[d],p=m.consumer._generatedMappings,v=0;v<p.length;v++){var b=p[v],_=m.consumer._sources.at(b.source);_=n.computeSourceURL(m.consumer.sourceRoot,_,this._sourceMapURL),this._sources.add(_),_=this._sources.indexOf(_);var A=null;b.name&&(A=m.consumer._names.at(b.name),this._names.add(A),A=this._names.indexOf(A));var C={source:_,generatedLine:b.generatedLine+(m.generatedOffset.generatedLine-1),generatedColumn:b.generatedColumn+(m.generatedOffset.generatedLine===b.generatedLine?m.generatedOffset.generatedColumn-1:0),originalLine:b.originalLine,originalColumn:b.originalColumn,name:A};this.__generatedMappings.push(C),typeof C.originalLine=="number"&&this.__originalMappings.push(C)}i(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),i(this.__originalMappings,n.compareByOriginalPositions)},Es.IndexedSourceMapConsumer=c,Es}var nc={},um;function Ak(){if(um)return nc;um=1;var n=Iv().SourceMapGenerator,t=so(),e=/(\r?\n)/,r=10,i="$$$isSourceNode$$$";function s(a,l,c,h,f){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=c??null,this.name=f??null,this[i]=!0,h!=null&&this.add(h)}return s.fromStringWithSourceMap=function(l,c,h){var f=new s,g=l.split(e),d=0,m=function(){var A=w(),C=w()||"";return A+C;function w(){return d<g.length?g[d++]:void 0}},p=1,v=0,b=null;return c.eachMapping(function(A){if(b!==null)if(p<A.generatedLine)_(b,m()),p++,v=0;else{var C=g[d]||"",w=C.substr(0,A.generatedColumn-v);g[d]=C.substr(A.generatedColumn-v),v=A.generatedColumn,_(b,w),b=A;return}for(;p<A.generatedLine;)f.add(m()),p++;if(v<A.generatedColumn){var C=g[d]||"";f.add(C.substr(0,A.generatedColumn)),g[d]=C.substr(A.generatedColumn),v=A.generatedColumn}b=A},this),d<g.length&&(b&&_(b,m()),f.add(g.splice(d).join(""))),c.sources.forEach(function(A){var C=c.sourceContentFor(A);C!=null&&(h!=null&&(A=t.join(h,A)),f.setSourceContent(A,C))}),f;function _(A,C){if(A===null||A.source===void 0)f.add(C);else{var w=h?t.join(h,A.source):A.source;f.add(new s(A.originalLine,A.originalColumn,w,C,A.name))}}},s.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(c){this.add(c)},this);else if(l[i]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},s.prototype.prepend=function(l){if(Array.isArray(l))for(var c=l.length-1;c>=0;c--)this.prepend(l[c]);else if(l[i]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},s.prototype.walk=function(l){for(var c,h=0,f=this.children.length;h<f;h++)c=this.children[h],c[i]?c.walk(l):c!==""&&l(c,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(l){var c,h,f=this.children.length;if(f>0){for(c=[],h=0;h<f-1;h++)c.push(this.children[h]),c.push(l);c.push(this.children[h]),this.children=c}return this},s.prototype.replaceRight=function(l,c){var h=this.children[this.children.length-1];return h[i]?h.replaceRight(l,c):typeof h=="string"?this.children[this.children.length-1]=h.replace(l,c):this.children.push("".replace(l,c)),this},s.prototype.setSourceContent=function(l,c){this.sourceContents[t.toSetString(l)]=c},s.prototype.walkSourceContents=function(l){for(var c=0,h=this.children.length;c<h;c++)this.children[c][i]&&this.children[c].walkSourceContents(l);for(var f=Object.keys(this.sourceContents),c=0,h=f.length;c<h;c++)l(t.fromSetString(f[c]),this.sourceContents[f[c]])},s.prototype.toString=function(){var l="";return this.walk(function(c){l+=c}),l},s.prototype.toStringWithSourceMap=function(l){var c={code:"",line:1,column:0},h=new n(l),f=!1,g=null,d=null,m=null,p=null;return this.walk(function(v,b){c.code+=v,b.source!==null&&b.line!==null&&b.column!==null?((g!==b.source||d!==b.line||m!==b.column||p!==b.name)&&h.addMapping({source:b.source,original:{line:b.line,column:b.column},generated:{line:c.line,column:c.column},name:b.name}),g=b.source,d=b.line,m=b.column,p=b.name,f=!0):f&&(h.addMapping({generated:{line:c.line,column:c.column}}),g=null,f=!1);for(var _=0,A=v.length;_<A;_++)v.charCodeAt(_)===r?(c.line++,c.column=0,_+1===A?(g=null,f=!1):f&&h.addMapping({source:b.source,original:{line:b.line,column:b.column},generated:{line:c.line,column:c.column},name:b.name})):c.column++}),this.walkSourceContents(function(v,b){h.setSourceContent(v,b)}),{code:c.code,map:h}},nc.SourceNode=s,nc}var cm;function kk(){return cm||(cm=1,Ss.SourceMapGenerator=Iv().SourceMapGenerator,Ss.SourceMapConsumer=Ek().SourceMapConsumer,Ss.SourceNode=Ak().SourceNode),Ss}var fm;function Rk(){return fm||(fm=1,function(n,t){t.__esModule=!0;var e=mn(),r=void 0;try{var i=kk();r=i.SourceNode}catch{}r||(r=function(l,c,h,f){this.src="",f&&this.add(f)},r.prototype={add:function(c){e.isArray(c)&&(c=c.join("")),this.src+=c},prepend:function(c){e.isArray(c)&&(c=c.join("")),this.src=c+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function s(l,c,h){if(e.isArray(l)){for(var f=[],g=0,d=l.length;g<d;g++)f.push(c.wrap(l[g],h));return f}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function a(l){this.srcFile=l,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(c,h){this.source.unshift(this.wrap(c,h))},push:function(c,h){this.source.push(this.wrap(c,h))},merge:function(){var c=this.empty();return this.each(function(h){c.add([" ",h,`
|
|
10
|
-
`])}),c},each:function(c){for(var h=0,f=this.source.length;h<f;h++)c(this.source[h])},empty:function(){var c=this.currentLocation||{start:{}};return new r(c.start.line,c.start.column,this.srcFile)},wrap:function(c){var h=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return c instanceof r?c:(c=s(c,this,h),new r(h.start.line,h.start.column,this.srcFile,c))},functionCall:function(c,h,f){return f=this.generateList(f),this.wrap([c,h?"."+h+"(":"(",f,")"])},quotedString:function(c){return'"'+(c+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(c){var h=this,f=[];Object.keys(c).forEach(function(d){var m=s(c[d],h);m!=="undefined"&&f.push([h.quotedString(d),":",m])});var g=this.generateList(f);return g.prepend("{"),g.add("}"),g},generateList:function(c){for(var h=this.empty(),f=0,g=c.length;f<g;f++)f&&h.add(","),h.add(s(c[f],this));return h},generateArray:function(c){var h=this.generateList(c);return h.prepend("["),h.add("]"),h}},t.default=a,n.exports=t.default}(
|
|
11
|
-
`]),this.decorators.push("return fn;"),
|
|
9
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var c=this.next();return typeof c<"u"?c:this.lex()},begin:function(c){this.conditionStack.push(c)},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(c){this.begin(c)}};return a.options={},a.performAction=function(c,h,f,g){function d(m,p){return h.yytext=h.yytext.substring(m,h.yyleng-p+m)}switch(f){case 0:if(h.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):h.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),h.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(h.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 h.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return h.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 h.yytext=h.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}();r.lexer=i;function s(){this.yy={}}return s.prototype=r,r.Parser=s,new s}();t.default=e,n.exports=t.default}(ka,ka.exports)),ka.exports}var Ma={exports:{}},Ra={exports:{}},rm;function qv(){return rm||(rm=1,function(n,t){t.__esModule=!0;function e(h){return h&&h.__esModule?h:{default:h}}var r=Jn(),i=e(r);function s(){this.parents=[]}s.prototype={constructor:s,mutating:!1,acceptKey:function(f,g){var d=this.accept(f[g]);if(this.mutating){if(d&&!s.prototype[d.type])throw new i.default('Unexpected node type "'+d.type+'" found when accepting '+g+" on "+f.type);f[g]=d}},acceptRequired:function(f,g){if(this.acceptKey(f,g),!f[g])throw new i.default(f.type+" requires "+g)},acceptArray:function(f){for(var g=0,d=f.length;g<d;g++)this.acceptKey(f,g),f[g]||(f.splice(g,1),g--,d--)},accept:function(f){if(f){if(!this[f.type])throw new i.default("Unknown type: "+f.type,f);this.current&&this.parents.unshift(this.current),this.current=f;var g=this[f.type](f);if(this.current=this.parents.shift(),!this.mutating||g)return g;if(g!==!1)return f}},Program:function(f){this.acceptArray(f.body)},MustacheStatement:a,Decorator:a,BlockStatement:l,DecoratorBlock:l,PartialStatement:c,PartialBlockStatement:function(f){c.call(this,f),this.acceptKey(f,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(f){this.acceptArray(f.pairs)},HashPair:function(f){this.acceptRequired(f,"value")}};function a(h){this.acceptRequired(h,"path"),this.acceptArray(h.params),this.acceptKey(h,"hash")}function l(h){a.call(this,h),this.acceptKey(h,"program"),this.acceptKey(h,"inverse")}function c(h){this.acceptRequired(h,"name"),this.acceptArray(h.params),this.acceptKey(h,"hash")}t.default=s,n.exports=t.default}(Ra,Ra.exports)),Ra.exports}var im;function kk(){return im||(im=1,function(n,t){t.__esModule=!0;function e(f){return f&&f.__esModule?f:{default:f}}var r=qv(),i=e(r);function s(){var f=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=f}s.prototype=new i.default,s.prototype.Program=function(f){var g=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var m=f.body,p=0,v=m.length;p<v;p++){var _=m[p],b=this.accept(_);if(b){var S=a(m,p,d),O=l(m,p,d),w=b.openStandalone&&S,k=b.closeStandalone&&O,C=b.inlineStandalone&&S&&O;b.close&&c(m,p,!0),b.open&&h(m,p,!0),g&&C&&(c(m,p),h(m,p)&&_.type==="PartialStatement"&&(_.indent=/([ \t]+$)/.exec(m[p-1].original)[1])),g&&w&&(c((_.program||_.inverse).body),h(m,p)),g&&k&&(c(m,p),h((_.inverse||_.program).body))}}return f},s.prototype.BlockStatement=s.prototype.DecoratorBlock=s.prototype.PartialBlockStatement=function(f){this.accept(f.program),this.accept(f.inverse);var g=f.program||f.inverse,d=f.program&&f.inverse,m=d,p=d;if(d&&d.chained)for(m=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var v={open:f.openStrip.open,close:f.closeStrip.close,openStandalone:l(g.body),closeStandalone:a((m||g).body)};if(f.openStrip.close&&c(g.body,null,!0),d){var _=f.inverseStrip;_.open&&h(g.body,null,!0),_.close&&c(m.body,null,!0),f.closeStrip.open&&h(p.body,null,!0),!this.options.ignoreStandalone&&a(g.body)&&l(m.body)&&(h(g.body),c(m.body))}else f.closeStrip.open&&h(g.body,null,!0);return v},s.prototype.Decorator=s.prototype.MustacheStatement=function(f){return f.strip},s.prototype.PartialStatement=s.prototype.CommentStatement=function(f){var g=f.strip||{};return{inlineStandalone:!0,open:g.open,close:g.close}};function a(f,g,d){g===void 0&&(g=f.length);var m=f[g-1],p=f[g-2];if(!m)return d;if(m.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(m.original)}function l(f,g,d){g===void 0&&(g=-1);var m=f[g+1],p=f[g+2];if(!m)return d;if(m.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(m.original)}function c(f,g,d){var m=f[g==null?0:g+1];if(!(!m||m.type!=="ContentStatement"||!d&&m.rightStripped)){var p=m.value;m.value=m.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),m.rightStripped=m.value!==p}}function h(f,g,d){var m=f[g==null?f.length-1:g-1];if(!(!m||m.type!=="ContentStatement"||!d&&m.leftStripped)){var p=m.value;return m.value=m.value.replace(d?/\s+$/:/[ \t]+$/,""),m.leftStripped=m.value!==p,m.leftStripped}}t.default=s,n.exports=t.default}(Ma,Ma.exports)),Ma.exports}var Sn={},sm;function Mk(){if(sm)return Sn;sm=1,Sn.__esModule=!0,Sn.SourceLocation=i,Sn.id=s,Sn.stripFlags=a,Sn.stripComment=l,Sn.preparePath=c,Sn.prepareMustache=h,Sn.prepareRawBlock=f,Sn.prepareBlock=g,Sn.prepareProgram=d,Sn.preparePartialBlock=m;function n(p){return p&&p.__esModule?p:{default:p}}var t=Jn(),e=n(t);function r(p,v){if(v=v.path?v.path.original:v,p.path.original!==v){var _={loc:p.path.loc};throw new e.default(p.path.original+" doesn't match "+v,_)}}function i(p,v){this.source=p,this.start={line:v.first_line,column:v.first_column},this.end={line:v.last_line,column:v.last_column}}function s(p){return/^\[.*\]$/.test(p)?p.substring(1,p.length-1):p}function a(p,v){return{open:p.charAt(2)==="~",close:v.charAt(v.length-3)==="~"}}function l(p){return p.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function c(p,v,_){_=this.locInfo(_);for(var b=p?"@":"",S=[],O=0,w=0,k=v.length;w<k;w++){var C=v[w].part,L=v[w].original!==C;if(b+=(v[w].separator||"")+C,!L&&(C===".."||C==="."||C==="this")){if(S.length>0)throw new e.default("Invalid path: "+b,{loc:_});C===".."&&O++}else S.push(C)}return{type:"PathExpression",data:p,depth:O,parts:S,original:b,loc:_}}function h(p,v,_,b,S,O){var w=b.charAt(3)||b.charAt(2),k=w!=="{"&&w!=="&",C=/\*/.test(b);return{type:C?"Decorator":"MustacheStatement",path:p,params:v,hash:_,escaped:k,strip:S,loc:this.locInfo(O)}}function f(p,v,_,b){r(p,_),b=this.locInfo(b);var S={type:"Program",body:v,strip:{},loc:b};return{type:"BlockStatement",path:p.path,params:p.params,hash:p.hash,program:S,openStrip:{},inverseStrip:{},closeStrip:{},loc:b}}function g(p,v,_,b,S,O){b&&b.path&&r(p,b);var w=/\*/.test(p.open);v.blockParams=p.blockParams;var k=void 0,C=void 0;if(_){if(w)throw new e.default("Unexpected inverse block on decorator",_);_.chain&&(_.program.body[0].closeStrip=b.strip),C=_.strip,k=_.program}return S&&(S=k,k=v,v=S),{type:w?"DecoratorBlock":"BlockStatement",path:p.path,params:p.params,hash:p.hash,program:v,inverse:k,openStrip:p.strip,inverseStrip:C,closeStrip:b&&b.strip,loc:this.locInfo(O)}}function d(p,v){if(!v&&p.length){var _=p[0].loc,b=p[p.length-1].loc;_&&b&&(v={source:_.source,start:{line:_.start.line,column:_.start.column},end:{line:b.end.line,column:b.end.column}})}return{type:"Program",body:p,strip:{},loc:v}}function m(p,v,_,b){return r(p,_),{type:"PartialBlockStatement",name:p.path,params:p.params,hash:p.hash,program:v,openStrip:p.strip,closeStrip:_&&_.strip,loc:this.locInfo(b)}}return Sn}var om;function Rk(){if(om)return Ui;om=1,Ui.__esModule=!0,Ui.parseWithoutProcessing=f,Ui.parse=g;function n(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(m[p]=d[p]);return m.default=d,m}function t(d){return d&&d.__esModule?d:{default:d}}var e=Ak(),r=t(e),i=kk(),s=t(i),a=Mk(),l=n(a),c=mn();Ui.parser=r.default;var h={};c.extend(h,l);function f(d,m){if(d.type==="Program")return d;r.default.yy=h,h.locInfo=function(v){return new h.SourceLocation(m&&m.srcName,v)};var p=r.default.parse(d);return p}function g(d,m){var p=f(d,m),v=new s.default(m);return v.accept(p)}return Ui}var qi={},am;function Ok(){if(am)return qi;am=1,qi.__esModule=!0,qi.Compiler=l,qi.precompile=c,qi.compile=h;function n(d){return d&&d.__esModule?d:{default:d}}var t=Jn(),e=n(t),r=mn(),i=Uv(),s=n(i),a=[].slice;function l(){}l.prototype={compiler:l,equals:function(m){var p=this.opcodes.length;if(m.opcodes.length!==p)return!1;for(var v=0;v<p;v++){var _=this.opcodes[v],b=m.opcodes[v];if(_.opcode!==b.opcode||!f(_.args,b.args))return!1}p=this.children.length;for(var v=0;v<p;v++)if(!this.children[v].equals(m.children[v]))return!1;return!0},guid:0,compile:function(m,p){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=p,this.stringParams=p.stringParams,this.trackIds=p.trackIds,p.blockParams=p.blockParams||[],p.knownHelpers=r.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},p.knownHelpers),this.accept(m)},compileProgram:function(m){var p=new this.compiler,v=p.compile(m,this.options),_=this.guid++;return this.usePartial=this.usePartial||v.usePartial,this.children[_]=v,this.useDepths=this.useDepths||v.useDepths,_},accept:function(m){if(!this[m.type])throw new e.default("Unknown type: "+m.type,m);this.sourceNode.unshift(m);var p=this[m.type](m);return this.sourceNode.shift(),p},Program:function(m){this.options.blockParams.unshift(m.blockParams);for(var p=m.body,v=p.length,_=0;_<v;_++)this.accept(p[_]);return this.options.blockParams.shift(),this.isSimple=v===1,this.blockParams=m.blockParams?m.blockParams.length:0,this},BlockStatement:function(m){g(m);var p=m.program,v=m.inverse;p=p&&this.compileProgram(p),v=v&&this.compileProgram(v);var _=this.classifySexpr(m);_==="helper"?this.helperSexpr(m,p,v):_==="simple"?(this.simpleSexpr(m),this.opcode("pushProgram",p),this.opcode("pushProgram",v),this.opcode("emptyHash"),this.opcode("blockValue",m.path.original)):(this.ambiguousSexpr(m,p,v),this.opcode("pushProgram",p),this.opcode("pushProgram",v),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(m){var p=m.program&&this.compileProgram(m.program),v=this.setupFullMustacheParams(m,p,void 0),_=m.path;this.useDecorators=!0,this.opcode("registerDecorator",v.length,_.original)},PartialStatement:function(m){this.usePartial=!0;var p=m.program;p&&(p=this.compileProgram(m.program));var v=m.params;if(v.length>1)throw new e.default("Unsupported number of partial arguments: "+v.length,m);v.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):v.push({type:"PathExpression",parts:[],depth:0}));var _=m.name.original,b=m.name.type==="SubExpression";b&&this.accept(m.name),this.setupFullMustacheParams(m,p,void 0,!0);var S=m.indent||"";this.options.preventIndent&&S&&(this.opcode("appendContent",S),S=""),this.opcode("invokePartial",b,_,S),this.opcode("append")},PartialBlockStatement:function(m){this.PartialStatement(m)},MustacheStatement:function(m){this.SubExpression(m),m.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(m){this.DecoratorBlock(m)},ContentStatement:function(m){m.value&&this.opcode("appendContent",m.value)},CommentStatement:function(){},SubExpression:function(m){g(m);var p=this.classifySexpr(m);p==="simple"?this.simpleSexpr(m):p==="helper"?this.helperSexpr(m):this.ambiguousSexpr(m)},ambiguousSexpr:function(m,p,v){var _=m.path,b=_.parts[0],S=p!=null||v!=null;this.opcode("getContext",_.depth),this.opcode("pushProgram",p),this.opcode("pushProgram",v),_.strict=!0,this.accept(_),this.opcode("invokeAmbiguous",b,S)},simpleSexpr:function(m){var p=m.path;p.strict=!0,this.accept(p),this.opcode("resolvePossibleLambda")},helperSexpr:function(m,p,v){var _=this.setupFullMustacheParams(m,p,v),b=m.path,S=b.parts[0];if(this.options.knownHelpers[S])this.opcode("invokeKnownHelper",_.length,S);else{if(this.options.knownHelpersOnly)throw new e.default("You specified knownHelpersOnly, but used the unknown helper "+S,m);b.strict=!0,b.falsy=!0,this.accept(b),this.opcode("invokeHelper",_.length,b.original,s.default.helpers.simpleId(b))}},PathExpression:function(m){this.addDepth(m.depth),this.opcode("getContext",m.depth);var p=m.parts[0],v=s.default.helpers.scopedId(m),_=!m.depth&&!v&&this.blockParamIndex(p);_?this.opcode("lookupBlockParam",_,m.parts):p?m.data?(this.options.data=!0,this.opcode("lookupData",m.depth,m.parts,m.strict)):this.opcode("lookupOnContext",m.parts,m.falsy,m.strict,v):this.opcode("pushContext")},StringLiteral:function(m){this.opcode("pushString",m.value)},NumberLiteral:function(m){this.opcode("pushLiteral",m.value)},BooleanLiteral:function(m){this.opcode("pushLiteral",m.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(m){var p=m.pairs,v=0,_=p.length;for(this.opcode("pushHash");v<_;v++)this.pushParam(p[v].value);for(;v--;)this.opcode("assignToHash",p[v].key);this.opcode("popHash")},opcode:function(m){this.opcodes.push({opcode:m,args:a.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(m){m&&(this.useDepths=!0)},classifySexpr:function(m){var p=s.default.helpers.simpleId(m.path),v=p&&!!this.blockParamIndex(m.path.parts[0]),_=!v&&s.default.helpers.helperExpression(m),b=!v&&(_||p);if(b&&!_){var S=m.path.parts[0],O=this.options;O.knownHelpers[S]?_=!0:O.knownHelpersOnly&&(b=!1)}return _?"helper":b?"ambiguous":"simple"},pushParams:function(m){for(var p=0,v=m.length;p<v;p++)this.pushParam(m[p])},pushParam:function(m){var p=m.value!=null?m.value:m.original||"";if(this.stringParams)p.replace&&(p=p.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),m.depth&&this.addDepth(m.depth),this.opcode("getContext",m.depth||0),this.opcode("pushStringParam",p,m.type),m.type==="SubExpression"&&this.accept(m);else{if(this.trackIds){var v=void 0;if(m.parts&&!s.default.helpers.scopedId(m)&&!m.depth&&(v=this.blockParamIndex(m.parts[0])),v){var _=m.parts.slice(1).join(".");this.opcode("pushId","BlockParam",v,_)}else p=m.original||p,p.replace&&(p=p.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",m.type,p)}this.accept(m)}},setupFullMustacheParams:function(m,p,v,_){var b=m.params;return this.pushParams(b),this.opcode("pushProgram",p),this.opcode("pushProgram",v),m.hash?this.accept(m.hash):this.opcode("emptyHash",_),b},blockParamIndex:function(m){for(var p=0,v=this.options.blockParams.length;p<v;p++){var _=this.options.blockParams[p],b=_&&r.indexOf(_,m);if(_&&b>=0)return[p,b]}}};function c(d,m,p){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);m=m||{},"data"in m||(m.data=!0),m.compat&&(m.useDepths=!0);var v=p.parse(d,m),_=new p.Compiler().compile(v,m);return new p.JavaScriptCompiler().compile(_,m)}function h(d,m,p){if(m===void 0&&(m={}),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);m=r.extend({},m),"data"in m||(m.data=!0),m.compat&&(m.useDepths=!0);var v=void 0;function _(){var S=p.parse(d,m),O=new p.Compiler().compile(S,m),w=new p.JavaScriptCompiler().compile(O,m,void 0,!0);return p.template(w)}function b(S,O){return v||(v=_()),v.call(this,S,O)}return b._setup=function(S){return v||(v=_()),v._setup(S)},b._child=function(S,O,w,k){return v||(v=_()),v._child(S,O,w,k)},b}function f(d,m){if(d===m)return!0;if(r.isArray(d)&&r.isArray(m)&&d.length===m.length){for(var p=0;p<d.length;p++)if(!f(d[p],m[p]))return!1;return!0}}function g(d){if(!d.path.parts){var m=d.path;d.path={type:"PathExpression",data:!1,depth:0,parts:[m.original+""],original:m.original+"",loc:m.loc}}}return qi}var Oa={exports:{}},Pa={exports:{}},Ms={},ec={},Ca={},La={},lm;function Pk(){if(lm)return La;lm=1;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return La.encode=function(t){if(0<=t&&t<n.length)return n[t];throw new TypeError("Must be between 0 and 63: "+t)},La.decode=function(t){var e=65,r=90,i=97,s=122,a=48,l=57,c=43,h=47,f=26,g=52;return e<=t&&t<=r?t-e:i<=t&&t<=s?t-i+f:a<=t&&t<=l?t-a+g:t==c?62:t==h?63:-1},La}var um;function Wv(){if(um)return Ca;um=1;var n=Pk(),t=5,e=1<<t,r=e-1,i=e;function s(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var c=(l&1)===1,h=l>>1;return c?-h:h}return Ca.encode=function(c){var h="",f,g=s(c);do f=g&r,g>>>=t,g>0&&(f|=i),h+=n.encode(f);while(g>0);return h},Ca.decode=function(c,h,f){var g=c.length,d=0,m=0,p,v;do{if(h>=g)throw new Error("Expected more digits in base 64 VLQ value.");if(v=n.decode(c.charCodeAt(h++)),v===-1)throw new Error("Invalid base64 digit: "+c.charAt(h-1));p=!!(v&i),v&=r,d=d+(v<<m),m+=t}while(p);f.value=a(d),f.rest=h},Ca}var nc={},cm;function co(){return cm||(cm=1,function(n){function t(w,k,C){if(k in w)return w[k];if(arguments.length===3)return C;throw new Error('"'+k+'" is a required argument.')}n.getArg=t;var e=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(w){var k=w.match(e);return k?{scheme:k[1],auth:k[2],host:k[3],port:k[4],path:k[5]}:null}n.urlParse=i;function s(w){var k="";return w.scheme&&(k+=w.scheme+":"),k+="//",w.auth&&(k+=w.auth+"@"),w.host&&(k+=w.host),w.port&&(k+=":"+w.port),w.path&&(k+=w.path),k}n.urlGenerate=s;function a(w){var k=w,C=i(w);if(C){if(!C.path)return w;k=C.path}for(var L=n.isAbsolute(k),N=k.split(/\/+/),Y,z=0,G=N.length-1;G>=0;G--)Y=N[G],Y==="."?N.splice(G,1):Y===".."?z++:z>0&&(Y===""?(N.splice(G+1,z),z=0):(N.splice(G,2),z--));return k=N.join("/"),k===""&&(k=L?"/":"."),C?(C.path=k,s(C)):k}n.normalize=a;function l(w,k){w===""&&(w="."),k===""&&(k=".");var C=i(k),L=i(w);if(L&&(w=L.path||"/"),C&&!C.scheme)return L&&(C.scheme=L.scheme),s(C);if(C||k.match(r))return k;if(L&&!L.host&&!L.path)return L.host=k,s(L);var N=k.charAt(0)==="/"?k:a(w.replace(/\/+$/,"")+"/"+k);return L?(L.path=N,s(L)):N}n.join=l,n.isAbsolute=function(w){return w.charAt(0)==="/"||e.test(w)};function c(w,k){w===""&&(w="."),w=w.replace(/\/$/,"");for(var C=0;k.indexOf(w+"/")!==0;){var L=w.lastIndexOf("/");if(L<0||(w=w.slice(0,L),w.match(/^([^\/]+:\/)?\/*$/)))return k;++C}return Array(C+1).join("../")+k.substr(w.length+1)}n.relative=c;var h=function(){var w=Object.create(null);return!("__proto__"in w)}();function f(w){return w}function g(w){return m(w)?"$"+w:w}n.toSetString=h?f:g;function d(w){return m(w)?w.slice(1):w}n.fromSetString=h?f:d;function m(w){if(!w)return!1;var k=w.length;if(k<9||w.charCodeAt(k-1)!==95||w.charCodeAt(k-2)!==95||w.charCodeAt(k-3)!==111||w.charCodeAt(k-4)!==116||w.charCodeAt(k-5)!==111||w.charCodeAt(k-6)!==114||w.charCodeAt(k-7)!==112||w.charCodeAt(k-8)!==95||w.charCodeAt(k-9)!==95)return!1;for(var C=k-10;C>=0;C--)if(w.charCodeAt(C)!==36)return!1;return!0}function p(w,k,C){var L=_(w.source,k.source);return L!==0||(L=w.originalLine-k.originalLine,L!==0)||(L=w.originalColumn-k.originalColumn,L!==0||C)||(L=w.generatedColumn-k.generatedColumn,L!==0)||(L=w.generatedLine-k.generatedLine,L!==0)?L:_(w.name,k.name)}n.compareByOriginalPositions=p;function v(w,k,C){var L=w.generatedLine-k.generatedLine;return L!==0||(L=w.generatedColumn-k.generatedColumn,L!==0||C)||(L=_(w.source,k.source),L!==0)||(L=w.originalLine-k.originalLine,L!==0)||(L=w.originalColumn-k.originalColumn,L!==0)?L:_(w.name,k.name)}n.compareByGeneratedPositionsDeflated=v;function _(w,k){return w===k?0:w===null?1:k===null?-1:w>k?1:-1}function b(w,k){var C=w.generatedLine-k.generatedLine;return C!==0||(C=w.generatedColumn-k.generatedColumn,C!==0)||(C=_(w.source,k.source),C!==0)||(C=w.originalLine-k.originalLine,C!==0)||(C=w.originalColumn-k.originalColumn,C!==0)?C:_(w.name,k.name)}n.compareByGeneratedPositionsInflated=b;function S(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}n.parseSourceMapInput=S;function O(w,k,C){if(k=k||"",w&&(w[w.length-1]!=="/"&&k[0]!=="/"&&(w+="/"),k=w+k),C){var L=i(C);if(!L)throw new Error("sourceMapURL could not be parsed");if(L.path){var N=L.path.lastIndexOf("/");N>=0&&(L.path=L.path.substring(0,N+1))}k=l(s(L),k)}return a(k)}n.computeSourceURL=O}(nc)),nc}var rc={},fm;function Hv(){if(fm)return rc;fm=1;var n=co(),t=Object.prototype.hasOwnProperty,e=typeof Map<"u";function r(){this._array=[],this._set=e?new Map:Object.create(null)}return r.fromArray=function(s,a){for(var l=new r,c=0,h=s.length;c<h;c++)l.add(s[c],a);return l},r.prototype.size=function(){return e?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(s,a){var l=e?s:n.toSetString(s),c=e?this.has(s):t.call(this._set,l),h=this._array.length;(!c||a)&&this._array.push(s),c||(e?this._set.set(s,h):this._set[l]=h)},r.prototype.has=function(s){if(e)return this._set.has(s);var a=n.toSetString(s);return t.call(this._set,a)},r.prototype.indexOf=function(s){if(e){var a=this._set.get(s);if(a>=0)return a}else{var l=n.toSetString(s);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+s+'" is not in the set.')},r.prototype.at=function(s){if(s>=0&&s<this._array.length)return this._array[s];throw new Error("No element indexed by "+s)},r.prototype.toArray=function(){return this._array.slice()},rc.ArraySet=r,rc}var ic={},hm;function Ck(){if(hm)return ic;hm=1;var n=co();function t(r,i){var s=r.generatedLine,a=i.generatedLine,l=r.generatedColumn,c=i.generatedColumn;return a>s||a==s&&c>=l||n.compareByGeneratedPositionsInflated(r,i)<=0}function e(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return e.prototype.unsortedForEach=function(i,s){this._array.forEach(i,s)},e.prototype.add=function(i){t(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=!1,this._array.push(i))},e.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},ic.MappingList=e,ic}var dm;function zv(){if(dm)return ec;dm=1;var n=Wv(),t=co(),e=Hv().ArraySet,r=Ck().MappingList;function i(s){s||(s={}),this._file=t.getArg(s,"file",null),this._sourceRoot=t.getArg(s,"sourceRoot",null),this._skipValidation=t.getArg(s,"skipValidation",!1),this._sources=new e,this._names=new e,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(a){var l=a.sourceRoot,c=new i({file:a.file,sourceRoot:l});return a.eachMapping(function(h){var f={generated:{line:h.generatedLine,column:h.generatedColumn}};h.source!=null&&(f.source=h.source,l!=null&&(f.source=t.relative(l,f.source)),f.original={line:h.originalLine,column:h.originalColumn},h.name!=null&&(f.name=h.name)),c.addMapping(f)}),a.sources.forEach(function(h){var f=h;l!==null&&(f=t.relative(l,h)),c._sources.has(f)||c._sources.add(f);var g=a.sourceContentFor(h);g!=null&&c.setSourceContent(h,g)}),c},i.prototype.addMapping=function(a){var l=t.getArg(a,"generated"),c=t.getArg(a,"original",null),h=t.getArg(a,"source",null),f=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,c,h,f),h!=null&&(h=String(h),this._sources.has(h)||this._sources.add(h)),f!=null&&(f=String(f),this._names.has(f)||this._names.add(f)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:c!=null&&c.line,originalColumn:c!=null&&c.column,source:h,name:f})},i.prototype.setSourceContent=function(a,l){var c=a;this._sourceRoot!=null&&(c=t.relative(this._sourceRoot,c)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(c)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(c)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(a,l,c){var h=l;if(l==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.`);h=a.file}var f=this._sourceRoot;f!=null&&(h=t.relative(f,h));var g=new e,d=new e;this._mappings.unsortedForEach(function(m){if(m.source===h&&m.originalLine!=null){var p=a.originalPositionFor({line:m.originalLine,column:m.originalColumn});p.source!=null&&(m.source=p.source,c!=null&&(m.source=t.join(c,m.source)),f!=null&&(m.source=t.relative(f,m.source)),m.originalLine=p.line,m.originalColumn=p.column,p.name!=null&&(m.name=p.name))}var v=m.source;v!=null&&!g.has(v)&&g.add(v);var _=m.name;_!=null&&!d.has(_)&&d.add(_)},this),this._sources=g,this._names=d,a.sources.forEach(function(m){var p=a.sourceContentFor(m);p!=null&&(c!=null&&(m=t.join(c,m)),f!=null&&(m=t.relative(f,m)),this.setSourceContent(m,p))},this)},i.prototype._validateMapping=function(a,l,c,h){if(l&&typeof l.line!="number"&&typeof l.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&&!l&&!c&&!h)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&c)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:c,original:l,name:h}))}},i.prototype._serializeMappings=function(){for(var a=0,l=1,c=0,h=0,f=0,g=0,d="",m,p,v,_,b=this._mappings.toArray(),S=0,O=b.length;S<O;S++){if(p=b[S],m="",p.generatedLine!==l)for(a=0;p.generatedLine!==l;)m+=";",l++;else if(S>0){if(!t.compareByGeneratedPositionsInflated(p,b[S-1]))continue;m+=","}m+=n.encode(p.generatedColumn-a),a=p.generatedColumn,p.source!=null&&(_=this._sources.indexOf(p.source),m+=n.encode(_-g),g=_,m+=n.encode(p.originalLine-1-h),h=p.originalLine-1,m+=n.encode(p.originalColumn-c),c=p.originalColumn,p.name!=null&&(v=this._names.indexOf(p.name),m+=n.encode(v-f),f=v)),d+=m}return d},i.prototype._generateSourcesContent=function(a,l){return a.map(function(c){if(!this._sourcesContents)return null;l!=null&&(c=t.relative(l,c));var h=t.toSetString(c);return Object.prototype.hasOwnProperty.call(this._sourcesContents,h)?this._sourcesContents[h]:null},this)},i.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},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},ec.SourceMapGenerator=i,ec}var Rs={},sc={},pm;function Lk(){return pm||(pm=1,function(n){n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2;function t(e,r,i,s,a,l){var c=Math.floor((r-e)/2)+e,h=a(i,s[c],!0);return h===0?c:h>0?r-c>1?t(c,r,i,s,a,l):l==n.LEAST_UPPER_BOUND?r<s.length?r:-1:c:c-e>1?t(e,c,i,s,a,l):l==n.LEAST_UPPER_BOUND?c:e<0?-1:e}n.search=function(r,i,s,a){if(i.length===0)return-1;var l=t(-1,i.length,r,i,s,a||n.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&s(i[l],i[l-1],!0)===0;)--l;return l}}(sc)),sc}var oc={},gm;function Tk(){if(gm)return oc;gm=1;function n(r,i,s){var a=r[i];r[i]=r[s],r[s]=a}function t(r,i){return Math.round(r+Math.random()*(i-r))}function e(r,i,s,a){if(s<a){var l=t(s,a),c=s-1;n(r,l,a);for(var h=r[a],f=s;f<a;f++)i(r[f],h)<=0&&(c+=1,n(r,c,f));n(r,c+1,f);var g=c+1;e(r,i,s,g-1),e(r,i,g+1,a)}}return oc.quickSort=function(r,i){e(r,i,0,r.length-1)},oc}var mm;function Ik(){if(mm)return Rs;mm=1;var n=co(),t=Lk(),e=Hv().ArraySet,r=Wv(),i=Tk().quickSort;function s(h,f){var g=h;return typeof h=="string"&&(g=n.parseSourceMapInput(h)),g.sections!=null?new c(g,f):new a(g,f)}s.fromSourceMap=function(h,f){return a.fromSourceMap(h,f)},s.prototype._version=3,s.prototype.__generatedMappings=null,Object.defineProperty(s.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),s.prototype.__originalMappings=null,Object.defineProperty(s.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),s.prototype._charIsMappingSeparator=function(f,g){var d=f.charAt(g);return d===";"||d===","},s.prototype._parseMappings=function(f,g){throw new Error("Subclasses must implement _parseMappings")},s.GENERATED_ORDER=1,s.ORIGINAL_ORDER=2,s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.prototype.eachMapping=function(f,g,d){var m=g||null,p=d||s.GENERATED_ORDER,v;switch(p){case s.GENERATED_ORDER:v=this._generatedMappings;break;case s.ORIGINAL_ORDER:v=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;v.map(function(b){var S=b.source===null?null:this._sources.at(b.source);return S=n.computeSourceURL(_,S,this._sourceMapURL),{source:S,generatedLine:b.generatedLine,generatedColumn:b.generatedColumn,originalLine:b.originalLine,originalColumn:b.originalColumn,name:b.name===null?null:this._names.at(b.name)}},this).forEach(f,m)},s.prototype.allGeneratedPositionsFor=function(f){var g=n.getArg(f,"line"),d={source:n.getArg(f,"source"),originalLine:g,originalColumn:n.getArg(f,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var m=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var v=this._originalMappings[p];if(f.column===void 0)for(var _=v.originalLine;v&&v.originalLine===_;)m.push({line:n.getArg(v,"generatedLine",null),column:n.getArg(v,"generatedColumn",null),lastColumn:n.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++p];else for(var b=v.originalColumn;v&&v.originalLine===g&&v.originalColumn==b;)m.push({line:n.getArg(v,"generatedLine",null),column:n.getArg(v,"generatedColumn",null),lastColumn:n.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++p]}return m},Rs.SourceMapConsumer=s;function a(h,f){var g=h;typeof h=="string"&&(g=n.parseSourceMapInput(h));var d=n.getArg(g,"version"),m=n.getArg(g,"sources"),p=n.getArg(g,"names",[]),v=n.getArg(g,"sourceRoot",null),_=n.getArg(g,"sourcesContent",null),b=n.getArg(g,"mappings"),S=n.getArg(g,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);v&&(v=n.normalize(v)),m=m.map(String).map(n.normalize).map(function(O){return v&&n.isAbsolute(v)&&n.isAbsolute(O)?n.relative(v,O):O}),this._names=e.fromArray(p.map(String),!0),this._sources=e.fromArray(m,!0),this._absoluteSources=this._sources.toArray().map(function(O){return n.computeSourceURL(v,O,f)}),this.sourceRoot=v,this.sourcesContent=_,this._mappings=b,this._sourceMapURL=f,this.file=S}a.prototype=Object.create(s.prototype),a.prototype.consumer=s,a.prototype._findSourceIndex=function(h){var f=h;if(this.sourceRoot!=null&&(f=n.relative(this.sourceRoot,f)),this._sources.has(f))return this._sources.indexOf(f);var g;for(g=0;g<this._absoluteSources.length;++g)if(this._absoluteSources[g]==h)return g;return-1},a.fromSourceMap=function(f,g){var d=Object.create(a.prototype),m=d._names=e.fromArray(f._names.toArray(),!0),p=d._sources=e.fromArray(f._sources.toArray(),!0);d.sourceRoot=f._sourceRoot,d.sourcesContent=f._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=f._file,d._sourceMapURL=g,d._absoluteSources=d._sources.toArray().map(function(C){return n.computeSourceURL(d.sourceRoot,C,g)});for(var v=f._mappings.toArray().slice(),_=d.__generatedMappings=[],b=d.__originalMappings=[],S=0,O=v.length;S<O;S++){var w=v[S],k=new l;k.generatedLine=w.generatedLine,k.generatedColumn=w.generatedColumn,w.source&&(k.source=p.indexOf(w.source),k.originalLine=w.originalLine,k.originalColumn=w.originalColumn,w.name&&(k.name=m.indexOf(w.name)),b.push(k)),_.push(k)}return i(d.__originalMappings,n.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(f,g){for(var d=1,m=0,p=0,v=0,_=0,b=0,S=f.length,O=0,w={},k={},C=[],L=[],N,Y,z,G,U;O<S;)if(f.charAt(O)===";")d++,O++,m=0;else if(f.charAt(O)===",")O++;else{for(N=new l,N.generatedLine=d,G=O;G<S&&!this._charIsMappingSeparator(f,G);G++);if(Y=f.slice(O,G),z=w[Y],z)O+=Y.length;else{for(z=[];O<G;)r.decode(f,O,k),U=k.value,O=k.rest,z.push(U);if(z.length===2)throw new Error("Found a source, but no line and column");if(z.length===3)throw new Error("Found a source and line, but no column");w[Y]=z}N.generatedColumn=m+z[0],m=N.generatedColumn,z.length>1&&(N.source=_+z[1],_+=z[1],N.originalLine=p+z[2],p=N.originalLine,N.originalLine+=1,N.originalColumn=v+z[3],v=N.originalColumn,z.length>4&&(N.name=b+z[4],b+=z[4])),L.push(N),typeof N.originalLine=="number"&&C.push(N)}i(L,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=L,i(C,n.compareByOriginalPositions),this.__originalMappings=C},a.prototype._findMapping=function(f,g,d,m,p,v){if(f[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+f[d]);if(f[m]<0)throw new TypeError("Column must be greater than or equal to 0, got "+f[m]);return t.search(f,g,p,v)},a.prototype.computeColumnSpans=function(){for(var f=0;f<this._generatedMappings.length;++f){var g=this._generatedMappings[f];if(f+1<this._generatedMappings.length){var d=this._generatedMappings[f+1];if(g.generatedLine===d.generatedLine){g.lastGeneratedColumn=d.generatedColumn-1;continue}}g.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(f){var g={generatedLine:n.getArg(f,"line"),generatedColumn:n.getArg(f,"column")},d=this._findMapping(g,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(f,"bias",s.GREATEST_LOWER_BOUND));if(d>=0){var m=this._generatedMappings[d];if(m.generatedLine===g.generatedLine){var p=n.getArg(m,"source",null);p!==null&&(p=this._sources.at(p),p=n.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var v=n.getArg(m,"name",null);return v!==null&&(v=this._names.at(v)),{source:p,line:n.getArg(m,"originalLine",null),column:n.getArg(m,"originalColumn",null),name:v}}}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(f){return f==null}):!1},a.prototype.sourceContentFor=function(f,g){if(!this.sourcesContent)return null;var d=this._findSourceIndex(f);if(d>=0)return this.sourcesContent[d];var m=f;this.sourceRoot!=null&&(m=n.relative(this.sourceRoot,m));var p;if(this.sourceRoot!=null&&(p=n.urlParse(this.sourceRoot))){var v=m.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!p.path||p.path=="/")&&this._sources.has("/"+m))return this.sourcesContent[this._sources.indexOf("/"+m)]}if(g)return null;throw new Error('"'+m+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(f){var g=n.getArg(f,"source");if(g=this._findSourceIndex(g),g<0)return{line:null,column:null,lastColumn:null};var d={source:g,originalLine:n.getArg(f,"line"),originalColumn:n.getArg(f,"column")},m=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(f,"bias",s.GREATEST_LOWER_BOUND));if(m>=0){var p=this._originalMappings[m];if(p.source===d.source)return{line:n.getArg(p,"generatedLine",null),column:n.getArg(p,"generatedColumn",null),lastColumn:n.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Rs.BasicSourceMapConsumer=a;function c(h,f){var g=h;typeof h=="string"&&(g=n.parseSourceMapInput(h));var d=n.getArg(g,"version"),m=n.getArg(g,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new e,this._names=new e;var p={line:-1,column:0};this._sections=m.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var _=n.getArg(v,"offset"),b=n.getArg(_,"line"),S=n.getArg(_,"column");if(b<p.line||b===p.line&&S<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=_,{generatedOffset:{generatedLine:b+1,generatedColumn:S+1},consumer:new s(n.getArg(v,"map"),f)}})}return c.prototype=Object.create(s.prototype),c.prototype.constructor=s,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var h=[],f=0;f<this._sections.length;f++)for(var g=0;g<this._sections[f].consumer.sources.length;g++)h.push(this._sections[f].consumer.sources[g]);return h}}),c.prototype.originalPositionFor=function(f){var g={generatedLine:n.getArg(f,"line"),generatedColumn:n.getArg(f,"column")},d=t.search(g,this._sections,function(p,v){var _=p.generatedLine-v.generatedOffset.generatedLine;return _||p.generatedColumn-v.generatedOffset.generatedColumn}),m=this._sections[d];return m?m.consumer.originalPositionFor({line:g.generatedLine-(m.generatedOffset.generatedLine-1),column:g.generatedColumn-(m.generatedOffset.generatedLine===g.generatedLine?m.generatedOffset.generatedColumn-1:0),bias:f.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(f){return f.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(f,g){for(var d=0;d<this._sections.length;d++){var m=this._sections[d],p=m.consumer.sourceContentFor(f,!0);if(p)return p}if(g)return null;throw new Error('"'+f+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(f){for(var g=0;g<this._sections.length;g++){var d=this._sections[g];if(d.consumer._findSourceIndex(n.getArg(f,"source"))!==-1){var m=d.consumer.generatedPositionFor(f);if(m){var p={line:m.line+(d.generatedOffset.generatedLine-1),column:m.column+(d.generatedOffset.generatedLine===m.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},c.prototype._parseMappings=function(f,g){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var m=this._sections[d],p=m.consumer._generatedMappings,v=0;v<p.length;v++){var _=p[v],b=m.consumer._sources.at(_.source);b=n.computeSourceURL(m.consumer.sourceRoot,b,this._sourceMapURL),this._sources.add(b),b=this._sources.indexOf(b);var S=null;_.name&&(S=m.consumer._names.at(_.name),this._names.add(S),S=this._names.indexOf(S));var O={source:b,generatedLine:_.generatedLine+(m.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(m.generatedOffset.generatedLine===_.generatedLine?m.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:S};this.__generatedMappings.push(O),typeof O.originalLine=="number"&&this.__originalMappings.push(O)}i(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),i(this.__originalMappings,n.compareByOriginalPositions)},Rs.IndexedSourceMapConsumer=c,Rs}var ac={},ym;function Bk(){if(ym)return ac;ym=1;var n=zv().SourceMapGenerator,t=co(),e=/(\r?\n)/,r=10,i="$$$isSourceNode$$$";function s(a,l,c,h,f){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=c??null,this.name=f??null,this[i]=!0,h!=null&&this.add(h)}return s.fromStringWithSourceMap=function(l,c,h){var f=new s,g=l.split(e),d=0,m=function(){var S=w(),O=w()||"";return S+O;function w(){return d<g.length?g[d++]:void 0}},p=1,v=0,_=null;return c.eachMapping(function(S){if(_!==null)if(p<S.generatedLine)b(_,m()),p++,v=0;else{var O=g[d]||"",w=O.substr(0,S.generatedColumn-v);g[d]=O.substr(S.generatedColumn-v),v=S.generatedColumn,b(_,w),_=S;return}for(;p<S.generatedLine;)f.add(m()),p++;if(v<S.generatedColumn){var O=g[d]||"";f.add(O.substr(0,S.generatedColumn)),g[d]=O.substr(S.generatedColumn),v=S.generatedColumn}_=S},this),d<g.length&&(_&&b(_,m()),f.add(g.splice(d).join(""))),c.sources.forEach(function(S){var O=c.sourceContentFor(S);O!=null&&(h!=null&&(S=t.join(h,S)),f.setSourceContent(S,O))}),f;function b(S,O){if(S===null||S.source===void 0)f.add(O);else{var w=h?t.join(h,S.source):S.source;f.add(new s(S.originalLine,S.originalColumn,w,O,S.name))}}},s.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(c){this.add(c)},this);else if(l[i]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},s.prototype.prepend=function(l){if(Array.isArray(l))for(var c=l.length-1;c>=0;c--)this.prepend(l[c]);else if(l[i]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},s.prototype.walk=function(l){for(var c,h=0,f=this.children.length;h<f;h++)c=this.children[h],c[i]?c.walk(l):c!==""&&l(c,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(l){var c,h,f=this.children.length;if(f>0){for(c=[],h=0;h<f-1;h++)c.push(this.children[h]),c.push(l);c.push(this.children[h]),this.children=c}return this},s.prototype.replaceRight=function(l,c){var h=this.children[this.children.length-1];return h[i]?h.replaceRight(l,c):typeof h=="string"?this.children[this.children.length-1]=h.replace(l,c):this.children.push("".replace(l,c)),this},s.prototype.setSourceContent=function(l,c){this.sourceContents[t.toSetString(l)]=c},s.prototype.walkSourceContents=function(l){for(var c=0,h=this.children.length;c<h;c++)this.children[c][i]&&this.children[c].walkSourceContents(l);for(var f=Object.keys(this.sourceContents),c=0,h=f.length;c<h;c++)l(t.fromSetString(f[c]),this.sourceContents[f[c]])},s.prototype.toString=function(){var l="";return this.walk(function(c){l+=c}),l},s.prototype.toStringWithSourceMap=function(l){var c={code:"",line:1,column:0},h=new n(l),f=!1,g=null,d=null,m=null,p=null;return this.walk(function(v,_){c.code+=v,_.source!==null&&_.line!==null&&_.column!==null?((g!==_.source||d!==_.line||m!==_.column||p!==_.name)&&h.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:c.line,column:c.column},name:_.name}),g=_.source,d=_.line,m=_.column,p=_.name,f=!0):f&&(h.addMapping({generated:{line:c.line,column:c.column}}),g=null,f=!1);for(var b=0,S=v.length;b<S;b++)v.charCodeAt(b)===r?(c.line++,c.column=0,b+1===S?(g=null,f=!1):f&&h.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:c.line,column:c.column},name:_.name})):c.column++}),this.walkSourceContents(function(v,_){h.setSourceContent(v,_)}),{code:c.code,map:h}},ac.SourceNode=s,ac}var vm;function Dk(){return vm||(vm=1,Ms.SourceMapGenerator=zv().SourceMapGenerator,Ms.SourceMapConsumer=Ik().SourceMapConsumer,Ms.SourceNode=Bk().SourceNode),Ms}var bm;function Fk(){return bm||(bm=1,function(n,t){t.__esModule=!0;var e=mn(),r=void 0;try{var i=Dk();r=i.SourceNode}catch{}r||(r=function(l,c,h,f){this.src="",f&&this.add(f)},r.prototype={add:function(c){e.isArray(c)&&(c=c.join("")),this.src+=c},prepend:function(c){e.isArray(c)&&(c=c.join("")),this.src=c+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function s(l,c,h){if(e.isArray(l)){for(var f=[],g=0,d=l.length;g<d;g++)f.push(c.wrap(l[g],h));return f}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function a(l){this.srcFile=l,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(c,h){this.source.unshift(this.wrap(c,h))},push:function(c,h){this.source.push(this.wrap(c,h))},merge:function(){var c=this.empty();return this.each(function(h){c.add([" ",h,`
|
|
10
|
+
`])}),c},each:function(c){for(var h=0,f=this.source.length;h<f;h++)c(this.source[h])},empty:function(){var c=this.currentLocation||{start:{}};return new r(c.start.line,c.start.column,this.srcFile)},wrap:function(c){var h=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return c instanceof r?c:(c=s(c,this,h),new r(h.start.line,h.start.column,this.srcFile,c))},functionCall:function(c,h,f){return f=this.generateList(f),this.wrap([c,h?"."+h+"(":"(",f,")"])},quotedString:function(c){return'"'+(c+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(c){var h=this,f=[];Object.keys(c).forEach(function(d){var m=s(c[d],h);m!=="undefined"&&f.push([h.quotedString(d),":",m])});var g=this.generateList(f);return g.prepend("{"),g.add("}"),g},generateList:function(c){for(var h=this.empty(),f=0,g=c.length;f<g;f++)f&&h.add(","),h.add(s(c[f],this));return h},generateArray:function(c){var h=this.generateList(c);return h.prepend("["),h.add("]"),h}},t.default=a,n.exports=t.default}(Pa,Pa.exports)),Pa.exports}var _m;function Nk(){return _m||(_m=1,function(n,t){t.__esModule=!0;function e(d){return d&&d.__esModule?d:{default:d}}var r=xh(),i=Jn(),s=e(i),a=mn(),l=Fk(),c=e(l);function h(d){this.value=d}function f(){}f.prototype={nameLookup:function(m,p){return this.internalNameLookup(m,p)},depthedLookup:function(m){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(m),")"]},compilerInfo:function(){var m=r.COMPILER_REVISION,p=r.REVISION_CHANGES[m];return[m,p]},appendToBuffer:function(m,p,v){return a.isArray(m)||(m=[m]),m=this.source.wrap(m,p),this.environment.isSimple?["return ",m,";"]:v?["buffer += ",m,";"]:(m.appendToBuffer=!0,m)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(m,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",m,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(m,p,v,_){this.environment=m,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!_,this.name=this.environment.name,this.isChild=!!v,this.context=v||{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(m,p),this.useDepths=this.useDepths||m.useDepths||m.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||m.useBlockParams;var b=m.opcodes,S=void 0,O=void 0,w=void 0,k=void 0;for(w=0,k=b.length;w<k;w++)S=b[w],this.source.currentLocation=S.loc,O=O||S.loc,this[S.opcode].apply(this,S.args);if(this.source.currentLocation=O,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.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;"),_?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
12
|
`),this.decorators.push(`}
|
|
13
|
-
`),this.decorators=this.decorators.merge()));var
|
|
14
|
-
`,
|
|
13
|
+
`),this.decorators=this.decorators.merge()));var C=this.createFunctionContext(_);if(this.isChild)return C;var L={compiler:this.compilerInfo(),main:C};this.decorators&&(L.main_d=this.decorators,L.useDecorators=!0);var N=this.context,Y=N.programs,z=N.decorators;for(w=0,k=Y.length;w<k;w++)Y[w]&&(L[w]=Y[w],z[w]&&(L[w+"_d"]=z[w],L.useDecorators=!0));return this.environment.usePartial&&(L.usePartial=!0),this.options.data&&(L.useData=!0),this.useDepths&&(L.useDepths=!0),this.useBlockParams&&(L.useBlockParams=!0),this.options.compat&&(L.compat=!0),_?L.compilerOptions=this.options:(L.compiler=JSON.stringify(L.compiler),this.source.currentLocation={start:{line:1,column:0}},L=this.objectLiteral(L),p.srcName?(L=L.toStringWithSourceMap({file:p.destName}),L.map=L.map&&L.map.toString()):L=L.toString()),L},preamble:function(){this.lastContext=0,this.source=new c.default(this.options.srcName),this.decorators=new c.default(this.options.srcName)},createFunctionContext:function(m){var p=this,v="",_=this.stackVars.concat(this.registers.list);_.length>0&&(v+=", "+_.join(", "));var b=0;Object.keys(this.aliases).forEach(function(w){var k=p.aliases[w];k.children&&k.referenceCount>1&&(v+=", alias"+ ++b+"="+w,k.children[0]="alias"+b)}),this.lookupPropertyFunctionIsUsed&&(v+=", "+this.lookupPropertyFunctionVarDeclaration());var S=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&S.push("blockParams"),this.useDepths&&S.push("depths");var O=this.mergeSource(v);return m?(S.push(O),Function.apply(this,S)):this.source.wrap(["function(",S.join(","),`) {
|
|
14
|
+
`,O,"}"])},mergeSource:function(m){var p=this.environment.isSimple,v=!this.forceBuffer,_=void 0,b=void 0,S=void 0,O=void 0;return this.source.each(function(w){w.appendToBuffer?(S?w.prepend(" + "):S=w,O=w):(S&&(b?S.prepend("buffer += "):_=!0,O.add(";"),S=O=void 0),b=!0,p||(v=!1))}),v?S?(S.prepend("return "),O.add(";")):b||this.source.push('return "";'):(m+=", buffer = "+(_?"":this.initializeBuffer()),S?(S.prepend("return buffer + "),O.add(";")):this.source.push("return buffer;")),m&&this.source.prepend("var "+m.substring(2)+(_?"":`;
|
|
15
15
|
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
|
16
16
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
17
17
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -19,58 +19,58 @@ Expecting `+G.join(", ")+", got '"+(this.terminals_[C]||C)+"'":U="Parse error on
|
|
|
19
19
|
}
|
|
20
20
|
return undefined
|
|
21
21
|
}
|
|
22
|
-
`.trim()},blockValue:function(m){var p=this.aliasable("container.hooks.blockHelperMissing"),v=[this.contextName(0)];this.setupHelperArgs(m,0,v);var b=this.popStack();v.splice(1,0,b),this.push(this.source.functionCall(p,"call",v))},ambiguousBlockValue:function(){var m=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var v=this.topStack();p.splice(1,0,v),this.pushSource(["if (!",this.lastHelper,") { ",v," = ",this.source.functionCall(m,"call",p),"}"])},appendContent:function(m){this.pendingContent?m=this.pendingContent+m:this.pendingLocation=this.source.currentLocation,this.pendingContent=m},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var m=this.popStack();this.pushSource(["if (",m," != null) { ",this.appendToBuffer(m,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(m){this.lastContext=m},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(m,p,v,b){var _=0;!b&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(m[_++])):this.pushContext(),this.resolvePath("context",m,_,p,v)},lookupBlockParam:function(m,p){this.useBlockParams=!0,this.push(["blockParams[",m[0],"][",m[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(m,p,v){m?this.pushStackLiteral("container.data(data, "+m+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,v)},resolvePath:function(m,p,v,b,_){var A=this;if(this.options.strict||this.options.assumeObjects){this.push(g(this.options.strict&&_,this,p,m));return}for(var C=p.length;v<C;v++)this.replaceStack(function(w){var M=A.nameLookup(w,p[v],m);return b?[" && ",M]:[" != null ? ",M," : ",w]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(m,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof m=="string"?this.pushString(m):this.pushStackLiteral(m))},emptyHash:function(m){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(m?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var m=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(m.ids)),this.stringParams&&(this.push(this.objectLiteral(m.contexts)),this.push(this.objectLiteral(m.types))),this.push(this.objectLiteral(m.values))},pushString:function(m){this.pushStackLiteral(this.quotedString(m))},pushLiteral:function(m){this.pushStackLiteral(m)},pushProgram:function(m){m!=null?this.pushStackLiteral(this.programExpression(m)):this.pushStackLiteral(null)},registerDecorator:function(m,p){var v=this.nameLookup("decorators",p,"decorator"),b=this.setupHelperArgs(p,m);this.decorators.push(["fn = ",this.decorators.functionCall(v,"",["fn","props","container",b])," || fn;"])},invokeHelper:function(m,p,v){var b=this.popStack(),_=this.setupHelper(m,p),A=[];v&&A.push(_.name),A.push(b),this.options.strict||A.push(this.aliasable("container.hooks.helperMissing"));var C=["(",this.itemsSeparatedBy(A,"||"),")"],w=this.source.functionCall(C,"call",_.callParams);this.push(w)},itemsSeparatedBy:function(m,p){var v=[];v.push(m[0]);for(var b=1;b<m.length;b++)v.push(p,m[b]);return v},invokeKnownHelper:function(m,p){var v=this.setupHelper(m,p);this.push(this.source.functionCall(v.name,"call",v.callParams))},invokeAmbiguous:function(m,p){this.useRegister("helper");var v=this.popStack();this.emptyHash();var b=this.setupHelper(0,m,p),_=this.lastHelper=this.nameLookup("helpers",m,"helper"),A=["(","(helper = ",_," || ",v,")"];this.options.strict||(A[0]="(helper = ",A.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",A,b.paramsInit?["),(",b.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",b.callParams)," : helper))"])},invokePartial:function(m,p,v){var b=[],_=this.setupParams(p,1,b);m&&(p=this.popStack(),delete _.name),v&&(_.indent=JSON.stringify(v)),_.helpers="helpers",_.partials="partials",_.decorators="container.decorators",m?b.unshift(p):b.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(_.depths="depths"),_=this.objectLiteral(_),b.push(_),this.push(this.source.functionCall("container.invokePartial","",b))},assignToHash:function(m){var p=this.popStack(),v=void 0,b=void 0,_=void 0;this.trackIds&&(_=this.popStack()),this.stringParams&&(b=this.popStack(),v=this.popStack());var A=this.hash;v&&(A.contexts[m]=v),b&&(A.types[m]=b),_&&(A.ids[m]=_),A.values[m]=p},pushId:function(m,p,v){m==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(v?" + "+JSON.stringify("."+v):"")):m==="PathExpression"?this.pushString(p):m==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:f,compileChildren:function(m,p){for(var v=m.children,b=void 0,_=void 0,A=0,C=v.length;A<C;A++){b=v[A],_=new this.compiler;var w=this.matchExistingProgram(b);if(w==null){this.context.programs.push("");var M=this.context.programs.length;b.index=M,b.name="program"+M,this.context.programs[M]=_.compile(b,p,this.context,!this.precompile),this.context.decorators[M]=_.decorators,this.context.environments[M]=b,this.useDepths=this.useDepths||_.useDepths,this.useBlockParams=this.useBlockParams||_.useBlockParams,b.useDepths=this.useDepths,b.useBlockParams=this.useBlockParams}else b.index=w.index,b.name="program"+w.index,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams}},matchExistingProgram:function(m){for(var p=0,v=this.context.environments.length;p<v;p++){var b=this.context.environments[p];if(b&&b.equals(m))return b}},programExpression:function(m){var p=this.environment.children[m],v=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&v.push("blockParams"),this.useDepths&&v.push("depths"),"container.program("+v.join(", ")+")"},useRegister:function(m){this.registers[m]||(this.registers[m]=!0,this.registers.list.push(m))},push:function(m){return m instanceof h||(m=this.source.wrap(m)),this.inlineStack.push(m),m},pushStackLiteral:function(m){this.push(new h(m))},pushSource:function(m){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),m&&this.source.push(m)},replaceStack:function(m){var p=["("],v=void 0,b=void 0,_=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var A=this.popStack(!0);if(A instanceof h)v=[A.value],p=["(",v],_=!0;else{b=!0;var C=this.incrStack();p=["((",this.push(C)," = ",A,")"],v=this.topStack()}var w=m.call(this,v);_||this.popStack(),b&&this.stackSlot--,this.push(p.concat(w,")"))},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 m=this.inlineStack;this.inlineStack=[];for(var p=0,v=m.length;p<v;p++){var b=m[p];if(b instanceof h)this.compileStack.push(b);else{var _=this.incrStack();this.pushSource([_," = ",b,";"]),this.compileStack.push(_)}}},isInline:function(){return this.inlineStack.length},popStack:function(m){var p=this.isInline(),v=(p?this.inlineStack:this.compileStack).pop();if(!m&&v instanceof h)return v.value;if(!p){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return v},topStack:function(){var m=this.isInline()?this.inlineStack:this.compileStack,p=m[m.length-1];return p instanceof h?p.value:p},contextName:function(m){return this.useDepths&&m?"depths["+m+"]":"depth"+m},quotedString:function(m){return this.source.quotedString(m)},objectLiteral:function(m){return this.source.objectLiteral(m)},aliasable:function(m){var p=this.aliases[m];return p?(p.referenceCount++,p):(p=this.aliases[m]=this.source.wrap(m),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(m,p,v){var b=[],_=this.setupHelperArgs(p,m,b,v),A=this.nameLookup("helpers",p,"helper"),C=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:b,paramsInit:_,name:A,callParams:[C].concat(b)}},setupParams:function(m,p,v){var b={},_=[],A=[],C=[],w=!v,M=void 0;w&&(v=[]),b.name=this.quotedString(m),b.hash=this.popStack(),this.trackIds&&(b.hashIds=this.popStack()),this.stringParams&&(b.hashTypes=this.popStack(),b.hashContexts=this.popStack());var O=this.popStack(),L=this.popStack();(L||O)&&(b.fn=L||"container.noop",b.inverse=O||"container.noop");for(var N=p;N--;)M=this.popStack(),v[N]=M,this.trackIds&&(C[N]=this.popStack()),this.stringParams&&(A[N]=this.popStack(),_[N]=this.popStack());return w&&(b.args=this.source.generateArray(v)),this.trackIds&&(b.ids=this.source.generateArray(C)),this.stringParams&&(b.types=this.source.generateArray(A),b.contexts=this.source.generateArray(_)),this.options.data&&(b.data="data"),this.useBlockParams&&(b.blockParams="blockParams"),b},setupHelperArgs:function(m,p,v,b){var _=this.setupParams(m,p,v);return _.loc=JSON.stringify(this.source.currentLocation),_=this.objectLiteral(_),b?(this.useRegister("options"),v.push("options"),["options=",_]):v?(v.push(_),""):_}},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(" "),m=f.RESERVED_WORDS={},p=0,v=d.length;p<v;p++)m[d[p]]=!0}(),f.isValidJavaScriptVariableName=function(d){return!f.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function g(d,m,p,v){var b=m.popStack(),_=0,A=p.length;for(d&&A--;_<A;_++)b=m.nameLookup(b,p[_],v);return d?[m.aliasable("container.strict"),"(",b,", ",m.quotedString(p[_]),", ",JSON.stringify(m.source.currentLocation)," )"]:b}t.default=f,n.exports=t.default}(Ea,Ea.exports)),Ea.exports}var dm;function Ck(){return dm||(dm=1,function(n,t){t.__esModule=!0;function e(A){return A&&A.__esModule?A:{default:A}}var r=pk(),i=e(r),s=Ov(),a=e(s),l=vk(),c=bk(),h=Mk(),f=e(h),g=Lv(),d=e(g),m=Pv(),p=e(m),v=i.default.create;function b(){var A=v();return A.compile=function(C,w){return c.compile(C,w,A)},A.precompile=function(C,w){return c.precompile(C,w,A)},A.AST=a.default,A.Compiler=c.Compiler,A.JavaScriptCompiler=f.default,A.Parser=l.parser,A.parse=l.parse,A.parseWithoutProcessing=l.parseWithoutProcessing,A}var _=b();_.create=b,p.default(_),_.Visitor=d.default,_.default=_,t.default=_,n.exports=t.default}(ra,ra.exports)),ra.exports}var Pk=Ck();const Fe=_i(Pk);var Os={exports:{}};/**
|
|
22
|
+
`.trim()},blockValue:function(m){var p=this.aliasable("container.hooks.blockHelperMissing"),v=[this.contextName(0)];this.setupHelperArgs(m,0,v);var _=this.popStack();v.splice(1,0,_),this.push(this.source.functionCall(p,"call",v))},ambiguousBlockValue:function(){var m=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var v=this.topStack();p.splice(1,0,v),this.pushSource(["if (!",this.lastHelper,") { ",v," = ",this.source.functionCall(m,"call",p),"}"])},appendContent:function(m){this.pendingContent?m=this.pendingContent+m:this.pendingLocation=this.source.currentLocation,this.pendingContent=m},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var m=this.popStack();this.pushSource(["if (",m," != null) { ",this.appendToBuffer(m,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(m){this.lastContext=m},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(m,p,v,_){var b=0;!_&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(m[b++])):this.pushContext(),this.resolvePath("context",m,b,p,v)},lookupBlockParam:function(m,p){this.useBlockParams=!0,this.push(["blockParams[",m[0],"][",m[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(m,p,v){m?this.pushStackLiteral("container.data(data, "+m+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,v)},resolvePath:function(m,p,v,_,b){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(g(this.options.strict&&b,this,p,m));return}for(var O=p.length;v<O;v++)this.replaceStack(function(w){var k=S.nameLookup(w,p[v],m);return _?[" && ",k]:[" != null ? ",k," : ",w]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(m,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof m=="string"?this.pushString(m):this.pushStackLiteral(m))},emptyHash:function(m){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(m?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var m=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(m.ids)),this.stringParams&&(this.push(this.objectLiteral(m.contexts)),this.push(this.objectLiteral(m.types))),this.push(this.objectLiteral(m.values))},pushString:function(m){this.pushStackLiteral(this.quotedString(m))},pushLiteral:function(m){this.pushStackLiteral(m)},pushProgram:function(m){m!=null?this.pushStackLiteral(this.programExpression(m)):this.pushStackLiteral(null)},registerDecorator:function(m,p){var v=this.nameLookup("decorators",p,"decorator"),_=this.setupHelperArgs(p,m);this.decorators.push(["fn = ",this.decorators.functionCall(v,"",["fn","props","container",_])," || fn;"])},invokeHelper:function(m,p,v){var _=this.popStack(),b=this.setupHelper(m,p),S=[];v&&S.push(b.name),S.push(_),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var O=["(",this.itemsSeparatedBy(S,"||"),")"],w=this.source.functionCall(O,"call",b.callParams);this.push(w)},itemsSeparatedBy:function(m,p){var v=[];v.push(m[0]);for(var _=1;_<m.length;_++)v.push(p,m[_]);return v},invokeKnownHelper:function(m,p){var v=this.setupHelper(m,p);this.push(this.source.functionCall(v.name,"call",v.callParams))},invokeAmbiguous:function(m,p){this.useRegister("helper");var v=this.popStack();this.emptyHash();var _=this.setupHelper(0,m,p),b=this.lastHelper=this.nameLookup("helpers",m,"helper"),S=["(","(helper = ",b," || ",v,")"];this.options.strict||(S[0]="(helper = ",S.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",S,_.paramsInit?["),(",_.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",_.callParams)," : helper))"])},invokePartial:function(m,p,v){var _=[],b=this.setupParams(p,1,_);m&&(p=this.popStack(),delete b.name),v&&(b.indent=JSON.stringify(v)),b.helpers="helpers",b.partials="partials",b.decorators="container.decorators",m?_.unshift(p):_.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(b.depths="depths"),b=this.objectLiteral(b),_.push(b),this.push(this.source.functionCall("container.invokePartial","",_))},assignToHash:function(m){var p=this.popStack(),v=void 0,_=void 0,b=void 0;this.trackIds&&(b=this.popStack()),this.stringParams&&(_=this.popStack(),v=this.popStack());var S=this.hash;v&&(S.contexts[m]=v),_&&(S.types[m]=_),b&&(S.ids[m]=b),S.values[m]=p},pushId:function(m,p,v){m==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(v?" + "+JSON.stringify("."+v):"")):m==="PathExpression"?this.pushString(p):m==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:f,compileChildren:function(m,p){for(var v=m.children,_=void 0,b=void 0,S=0,O=v.length;S<O;S++){_=v[S],b=new this.compiler;var w=this.matchExistingProgram(_);if(w==null){this.context.programs.push("");var k=this.context.programs.length;_.index=k,_.name="program"+k,this.context.programs[k]=b.compile(_,p,this.context,!this.precompile),this.context.decorators[k]=b.decorators,this.context.environments[k]=_,this.useDepths=this.useDepths||b.useDepths,this.useBlockParams=this.useBlockParams||b.useBlockParams,_.useDepths=this.useDepths,_.useBlockParams=this.useBlockParams}else _.index=w.index,_.name="program"+w.index,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams}},matchExistingProgram:function(m){for(var p=0,v=this.context.environments.length;p<v;p++){var _=this.context.environments[p];if(_&&_.equals(m))return _}},programExpression:function(m){var p=this.environment.children[m],v=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&v.push("blockParams"),this.useDepths&&v.push("depths"),"container.program("+v.join(", ")+")"},useRegister:function(m){this.registers[m]||(this.registers[m]=!0,this.registers.list.push(m))},push:function(m){return m instanceof h||(m=this.source.wrap(m)),this.inlineStack.push(m),m},pushStackLiteral:function(m){this.push(new h(m))},pushSource:function(m){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),m&&this.source.push(m)},replaceStack:function(m){var p=["("],v=void 0,_=void 0,b=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var S=this.popStack(!0);if(S instanceof h)v=[S.value],p=["(",v],b=!0;else{_=!0;var O=this.incrStack();p=["((",this.push(O)," = ",S,")"],v=this.topStack()}var w=m.call(this,v);b||this.popStack(),_&&this.stackSlot--,this.push(p.concat(w,")"))},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 m=this.inlineStack;this.inlineStack=[];for(var p=0,v=m.length;p<v;p++){var _=m[p];if(_ instanceof h)this.compileStack.push(_);else{var b=this.incrStack();this.pushSource([b," = ",_,";"]),this.compileStack.push(b)}}},isInline:function(){return this.inlineStack.length},popStack:function(m){var p=this.isInline(),v=(p?this.inlineStack:this.compileStack).pop();if(!m&&v instanceof h)return v.value;if(!p){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return v},topStack:function(){var m=this.isInline()?this.inlineStack:this.compileStack,p=m[m.length-1];return p instanceof h?p.value:p},contextName:function(m){return this.useDepths&&m?"depths["+m+"]":"depth"+m},quotedString:function(m){return this.source.quotedString(m)},objectLiteral:function(m){return this.source.objectLiteral(m)},aliasable:function(m){var p=this.aliases[m];return p?(p.referenceCount++,p):(p=this.aliases[m]=this.source.wrap(m),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(m,p,v){var _=[],b=this.setupHelperArgs(p,m,_,v),S=this.nameLookup("helpers",p,"helper"),O=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:_,paramsInit:b,name:S,callParams:[O].concat(_)}},setupParams:function(m,p,v){var _={},b=[],S=[],O=[],w=!v,k=void 0;w&&(v=[]),_.name=this.quotedString(m),_.hash=this.popStack(),this.trackIds&&(_.hashIds=this.popStack()),this.stringParams&&(_.hashTypes=this.popStack(),_.hashContexts=this.popStack());var C=this.popStack(),L=this.popStack();(L||C)&&(_.fn=L||"container.noop",_.inverse=C||"container.noop");for(var N=p;N--;)k=this.popStack(),v[N]=k,this.trackIds&&(O[N]=this.popStack()),this.stringParams&&(S[N]=this.popStack(),b[N]=this.popStack());return w&&(_.args=this.source.generateArray(v)),this.trackIds&&(_.ids=this.source.generateArray(O)),this.stringParams&&(_.types=this.source.generateArray(S),_.contexts=this.source.generateArray(b)),this.options.data&&(_.data="data"),this.useBlockParams&&(_.blockParams="blockParams"),_},setupHelperArgs:function(m,p,v,_){var b=this.setupParams(m,p,v);return b.loc=JSON.stringify(this.source.currentLocation),b=this.objectLiteral(b),_?(this.useRegister("options"),v.push("options"),["options=",b]):v?(v.push(b),""):b}},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(" "),m=f.RESERVED_WORDS={},p=0,v=d.length;p<v;p++)m[d[p]]=!0}(),f.isValidJavaScriptVariableName=function(d){return!f.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function g(d,m,p,v){var _=m.popStack(),b=0,S=p.length;for(d&&S--;b<S;b++)_=m.nameLookup(_,p[b],v);return d?[m.aliasable("container.strict"),"(",_,", ",m.quotedString(p[b]),", ",JSON.stringify(m.source.currentLocation)," )"]:_}t.default=f,n.exports=t.default}(Oa,Oa.exports)),Oa.exports}var wm;function jk(){return wm||(wm=1,function(n,t){t.__esModule=!0;function e(S){return S&&S.__esModule?S:{default:S}}var r=Ek(),i=e(r),s=Uv(),a=e(s),l=Rk(),c=Ok(),h=Nk(),f=e(h),g=qv(),d=e(g),m=jv(),p=e(m),v=i.default.create;function _(){var S=v();return S.compile=function(O,w){return c.compile(O,w,S)},S.precompile=function(O,w){return c.precompile(O,w,S)},S.AST=a.default,S.Compiler=c.Compiler,S.JavaScriptCompiler=f.default,S.Parser=l.parser,S.parse=l.parse,S.parseWithoutProcessing=l.parseWithoutProcessing,S}var b=_();b.create=_,p.default(b),b.Visitor=d.default,b.default=b,t.default=b,n.exports=t.default}(la,la.exports)),la.exports}var Uk=jk();const Ie=Jr(Uk);var Fs={exports:{}};/**
|
|
23
23
|
* @license
|
|
24
24
|
* Lodash <https://lodash.com/>
|
|
25
25
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
26
26
|
* Released under MIT license <https://lodash.com/license>
|
|
27
27
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
28
28
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
29
|
-
*/var Ok=Os.exports,pm;function Lk(){return pm||(pm=1,function(n,t){(function(){var e,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",g=1,d=2,m=4,p=1,v=2,b=1,_=2,A=4,C=8,w=16,M=32,O=64,L=128,N=256,Y=512,z=30,G="...",U=800,xt=16,dt=1,st=2,at=3,_t=1/0,bt=9007199254740991,Et=17976931348623157e292,kt=NaN,Ot=4294967295,Lt=Ot-1,Q=Ot>>>1,et=[["ary",L],["bind",b],["bindKey",_],["curry",C],["curryRight",w],["flip",Y],["partial",M],["partialRight",O],["rearg",N]],ot="[object Arguments]",V="[object Array]",X="[object AsyncFunction]",lt="[object Boolean]",mt="[object Date]",yt="[object DOMException]",D="[object Error]",j="[object Function]",ut="[object GeneratorFunction]",St="[object Map]",Ft="[object Number]",Mt="[object Null]",Tt="[object Object]",je="[object Promise]",ft="[object Proxy]",Ce="[object RegExp]",ue="[object Set]",te="[object String]",re="[object Symbol]",Ve="[object Undefined]",ke="[object WeakMap]",on="[object WeakSet]",Ye="[object ArrayBuffer]",ye="[object DataView]",Rn="[object Float32Array]",T="[object Float64Array]",S="[object Int8Array]",k="[object Int16Array]",q="[object Int32Array]",K="[object Uint8Array]",nt="[object Uint8ClampedArray]",ht="[object Uint16Array]",Ut="[object Uint32Array]",ce=/\b__p \+= '';/g,fe=/\b(__p \+=) '' \+/g,de=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ne=/&(?:amp|lt|gt|quot|#39);/g,Jr=/[&<>"']/g,Mn=RegExp(ne.source),os=RegExp(Jr.source),jl=/<%-([\s\S]+?)%>/g,Kn=/<%([\s\S]+?)%>/g,po=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,R=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,J=RegExp(W.source),rt=/^\s+/,pt=/\s/,Vt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,we=/\{\n\/\* \[wrapped with (.+)\] \*/,pe=/,? & /,xe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oe=/[()=,{}\[\]\/\s]/,C_=/\\(\\)?/g,P_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zh=/\w*$/,O_=/^[-+]0x[0-9a-f]+$/i,L_=/^0b[01]+$/i,T_=/^\[object .+?Constructor\]$/,B_=/^0o[0-7]+$/i,I_=/^(?:0|[1-9]\d*)$/,D_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,go=/($^)/,F_=/['\n\r\u2028\u2029\\]/g,mo="\\ud800-\\udfff",N_="\\u0300-\\u036f",j_="\\ufe20-\\ufe2f",U_="\\u20d0-\\u20ff",Qh=N_+j_+U_,td="\\u2700-\\u27bf",ed="a-z\\xdf-\\xf6\\xf8-\\xff",q_="\\xac\\xb1\\xd7\\xf7",W_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",H_="\\u2000-\\u206f",z_=" \\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",nd="A-Z\\xc0-\\xd6\\xd8-\\xde",rd="\\ufe0e\\ufe0f",id=q_+W_+H_+z_,Ul="['’]",V_="["+mo+"]",sd="["+id+"]",yo="["+Qh+"]",od="\\d+",$_="["+td+"]",ad="["+ed+"]",ld="[^"+mo+id+od+td+ed+nd+"]",ql="\\ud83c[\\udffb-\\udfff]",G_="(?:"+yo+"|"+ql+")",ud="[^"+mo+"]",Wl="(?:\\ud83c[\\udde6-\\uddff]){2}",Hl="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+nd+"]",cd="\\u200d",fd="(?:"+ad+"|"+ld+")",Y_="(?:"+Si+"|"+ld+")",hd="(?:"+Ul+"(?:d|ll|m|re|s|t|ve))?",dd="(?:"+Ul+"(?:D|LL|M|RE|S|T|VE))?",pd=G_+"?",gd="["+rd+"]?",K_="(?:"+cd+"(?:"+[ud,Wl,Hl].join("|")+")"+gd+pd+")*",X_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",J_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",md=gd+pd+K_,Z_="(?:"+[$_,Wl,Hl].join("|")+")"+md,Q_="(?:"+[ud+yo+"?",yo,Wl,Hl,V_].join("|")+")",t1=RegExp(Ul,"g"),e1=RegExp(yo,"g"),zl=RegExp(ql+"(?="+ql+")|"+Q_+md,"g"),n1=RegExp([Si+"?"+ad+"+"+hd+"(?="+[sd,Si,"$"].join("|")+")",Y_+"+"+dd+"(?="+[sd,Si+fd,"$"].join("|")+")",Si+"?"+fd+"+"+hd,Si+"+"+dd,J_,X_,od,Z_].join("|"),"g"),r1=RegExp("["+cd+mo+Qh+rd+"]"),i1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,s1=["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"],o1=-1,ve={};ve[Rn]=ve[T]=ve[S]=ve[k]=ve[q]=ve[K]=ve[nt]=ve[ht]=ve[Ut]=!0,ve[ot]=ve[V]=ve[Ye]=ve[lt]=ve[ye]=ve[mt]=ve[D]=ve[j]=ve[St]=ve[Ft]=ve[Tt]=ve[Ce]=ve[ue]=ve[te]=ve[ke]=!1;var ge={};ge[ot]=ge[V]=ge[Ye]=ge[ye]=ge[lt]=ge[mt]=ge[Rn]=ge[T]=ge[S]=ge[k]=ge[q]=ge[St]=ge[Ft]=ge[Tt]=ge[Ce]=ge[ue]=ge[te]=ge[re]=ge[K]=ge[nt]=ge[ht]=ge[Ut]=!0,ge[D]=ge[j]=ge[ke]=!1;var a1={À:"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"},l1={"&":"&","<":"<",">":">",'"':""","'":"'"},u1={"&":"&","<":"<",">":">",""":'"',"'":"'"},c1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},f1=parseFloat,h1=parseInt,yd=typeof He=="object"&&He&&He.Object===Object&&He,d1=typeof self=="object"&&self&&self.Object===Object&&self,Ke=yd||d1||Function("return this")(),Vl=t&&!t.nodeType&&t,Zr=Vl&&!0&&n&&!n.nodeType&&n,vd=Zr&&Zr.exports===Vl,$l=vd&&yd.process,Cn=function(){try{var Z=Zr&&Zr.require&&Zr.require("util").types;return Z||$l&&$l.binding&&$l.binding("util")}catch{}}(),bd=Cn&&Cn.isArrayBuffer,_d=Cn&&Cn.isDate,wd=Cn&&Cn.isMap,xd=Cn&&Cn.isRegExp,Sd=Cn&&Cn.isSet,Ed=Cn&&Cn.isTypedArray;function yn(Z,ct,it){switch(it.length){case 0:return Z.call(ct);case 1:return Z.call(ct,it[0]);case 2:return Z.call(ct,it[0],it[1]);case 3:return Z.call(ct,it[0],it[1],it[2])}return Z.apply(ct,it)}function p1(Z,ct,it,Ct){for(var jt=-1,ie=Z==null?0:Z.length;++jt<ie;){var Ue=Z[jt];ct(Ct,Ue,it(Ue),Z)}return Ct}function Pn(Z,ct){for(var it=-1,Ct=Z==null?0:Z.length;++it<Ct&&ct(Z[it],it,Z)!==!1;);return Z}function g1(Z,ct){for(var it=Z==null?0:Z.length;it--&&ct(Z[it],it,Z)!==!1;);return Z}function Ad(Z,ct){for(var it=-1,Ct=Z==null?0:Z.length;++it<Ct;)if(!ct(Z[it],it,Z))return!1;return!0}function Or(Z,ct){for(var it=-1,Ct=Z==null?0:Z.length,jt=0,ie=[];++it<Ct;){var Ue=Z[it];ct(Ue,it,Z)&&(ie[jt++]=Ue)}return ie}function vo(Z,ct){var it=Z==null?0:Z.length;return!!it&&Ei(Z,ct,0)>-1}function Gl(Z,ct,it){for(var Ct=-1,jt=Z==null?0:Z.length;++Ct<jt;)if(it(ct,Z[Ct]))return!0;return!1}function Se(Z,ct){for(var it=-1,Ct=Z==null?0:Z.length,jt=Array(Ct);++it<Ct;)jt[it]=ct(Z[it],it,Z);return jt}function Lr(Z,ct){for(var it=-1,Ct=ct.length,jt=Z.length;++it<Ct;)Z[jt+it]=ct[it];return Z}function Yl(Z,ct,it,Ct){var jt=-1,ie=Z==null?0:Z.length;for(Ct&&ie&&(it=Z[++jt]);++jt<ie;)it=ct(it,Z[jt],jt,Z);return it}function m1(Z,ct,it,Ct){var jt=Z==null?0:Z.length;for(Ct&&jt&&(it=Z[--jt]);jt--;)it=ct(it,Z[jt],jt,Z);return it}function Kl(Z,ct){for(var it=-1,Ct=Z==null?0:Z.length;++it<Ct;)if(ct(Z[it],it,Z))return!0;return!1}var y1=Xl("length");function v1(Z){return Z.split("")}function b1(Z){return Z.match(xe)||[]}function kd(Z,ct,it){var Ct;return it(Z,function(jt,ie,Ue){if(ct(jt,ie,Ue))return Ct=ie,!1}),Ct}function bo(Z,ct,it,Ct){for(var jt=Z.length,ie=it+(Ct?1:-1);Ct?ie--:++ie<jt;)if(ct(Z[ie],ie,Z))return ie;return-1}function Ei(Z,ct,it){return ct===ct?O1(Z,ct,it):bo(Z,Rd,it)}function _1(Z,ct,it,Ct){for(var jt=it-1,ie=Z.length;++jt<ie;)if(Ct(Z[jt],ct))return jt;return-1}function Rd(Z){return Z!==Z}function Md(Z,ct){var it=Z==null?0:Z.length;return it?Zl(Z,ct)/it:kt}function Xl(Z){return function(ct){return ct==null?e:ct[Z]}}function Jl(Z){return function(ct){return Z==null?e:Z[ct]}}function Cd(Z,ct,it,Ct,jt){return jt(Z,function(ie,Ue,he){it=Ct?(Ct=!1,ie):ct(it,ie,Ue,he)}),it}function w1(Z,ct){var it=Z.length;for(Z.sort(ct);it--;)Z[it]=Z[it].value;return Z}function Zl(Z,ct){for(var it,Ct=-1,jt=Z.length;++Ct<jt;){var ie=ct(Z[Ct]);ie!==e&&(it=it===e?ie:it+ie)}return it}function Ql(Z,ct){for(var it=-1,Ct=Array(Z);++it<Z;)Ct[it]=ct(it);return Ct}function x1(Z,ct){return Se(ct,function(it){return[it,Z[it]]})}function Pd(Z){return Z&&Z.slice(0,Bd(Z)+1).replace(rt,"")}function vn(Z){return function(ct){return Z(ct)}}function tu(Z,ct){return Se(ct,function(it){return Z[it]})}function as(Z,ct){return Z.has(ct)}function Od(Z,ct){for(var it=-1,Ct=Z.length;++it<Ct&&Ei(ct,Z[it],0)>-1;);return it}function Ld(Z,ct){for(var it=Z.length;it--&&Ei(ct,Z[it],0)>-1;);return it}function S1(Z,ct){for(var it=Z.length,Ct=0;it--;)Z[it]===ct&&++Ct;return Ct}var E1=Jl(a1),A1=Jl(l1);function k1(Z){return"\\"+c1[Z]}function R1(Z,ct){return Z==null?e:Z[ct]}function Ai(Z){return r1.test(Z)}function M1(Z){return i1.test(Z)}function C1(Z){for(var ct,it=[];!(ct=Z.next()).done;)it.push(ct.value);return it}function eu(Z){var ct=-1,it=Array(Z.size);return Z.forEach(function(Ct,jt){it[++ct]=[jt,Ct]}),it}function Td(Z,ct){return function(it){return Z(ct(it))}}function Tr(Z,ct){for(var it=-1,Ct=Z.length,jt=0,ie=[];++it<Ct;){var Ue=Z[it];(Ue===ct||Ue===f)&&(Z[it]=f,ie[jt++]=it)}return ie}function _o(Z){var ct=-1,it=Array(Z.size);return Z.forEach(function(Ct){it[++ct]=Ct}),it}function P1(Z){var ct=-1,it=Array(Z.size);return Z.forEach(function(Ct){it[++ct]=[Ct,Ct]}),it}function O1(Z,ct,it){for(var Ct=it-1,jt=Z.length;++Ct<jt;)if(Z[Ct]===ct)return Ct;return-1}function L1(Z,ct,it){for(var Ct=it+1;Ct--;)if(Z[Ct]===ct)return Ct;return Ct}function ki(Z){return Ai(Z)?B1(Z):y1(Z)}function jn(Z){return Ai(Z)?I1(Z):v1(Z)}function Bd(Z){for(var ct=Z.length;ct--&&pt.test(Z.charAt(ct)););return ct}var T1=Jl(u1);function B1(Z){for(var ct=zl.lastIndex=0;zl.test(Z);)++ct;return ct}function I1(Z){return Z.match(zl)||[]}function D1(Z){return Z.match(n1)||[]}var F1=function Z(ct){ct=ct==null?Ke:Ri.defaults(Ke.Object(),ct,Ri.pick(Ke,s1));var it=ct.Array,Ct=ct.Date,jt=ct.Error,ie=ct.Function,Ue=ct.Math,he=ct.Object,nu=ct.RegExp,N1=ct.String,On=ct.TypeError,wo=it.prototype,j1=ie.prototype,Mi=he.prototype,xo=ct["__core-js_shared__"],So=j1.toString,ae=Mi.hasOwnProperty,U1=0,Id=function(){var o=/[^.]+$/.exec(xo&&xo.keys&&xo.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Eo=Mi.toString,q1=So.call(he),W1=Ke._,H1=nu("^"+So.call(ae).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ao=vd?ct.Buffer:e,Br=ct.Symbol,ko=ct.Uint8Array,Dd=Ao?Ao.allocUnsafe:e,Ro=Td(he.getPrototypeOf,he),Fd=he.create,Nd=Mi.propertyIsEnumerable,Mo=wo.splice,jd=Br?Br.isConcatSpreadable:e,ls=Br?Br.iterator:e,Qr=Br?Br.toStringTag:e,Co=function(){try{var o=ii(he,"defineProperty");return o({},"",{}),o}catch{}}(),z1=ct.clearTimeout!==Ke.clearTimeout&&ct.clearTimeout,V1=Ct&&Ct.now!==Ke.Date.now&&Ct.now,$1=ct.setTimeout!==Ke.setTimeout&&ct.setTimeout,Po=Ue.ceil,Oo=Ue.floor,ru=he.getOwnPropertySymbols,G1=Ao?Ao.isBuffer:e,Ud=ct.isFinite,Y1=wo.join,K1=Td(he.keys,he),qe=Ue.max,Je=Ue.min,X1=Ct.now,J1=ct.parseInt,qd=Ue.random,Z1=wo.reverse,iu=ii(ct,"DataView"),us=ii(ct,"Map"),su=ii(ct,"Promise"),Ci=ii(ct,"Set"),cs=ii(ct,"WeakMap"),fs=ii(he,"create"),Lo=cs&&new cs,Pi={},Q1=si(iu),tw=si(us),ew=si(su),nw=si(Ci),rw=si(cs),To=Br?Br.prototype:e,hs=To?To.valueOf:e,Wd=To?To.toString:e;function I(o){if(Pe(o)&&!qt(o)&&!(o instanceof Xt)){if(o instanceof Ln)return o;if(ae.call(o,"__wrapped__"))return Hp(o)}return new Ln(o)}var Oi=function(){function o(){}return function(u){if(!Re(u))return{};if(Fd)return Fd(u);o.prototype=u;var y=new o;return o.prototype=e,y}}();function Bo(){}function Ln(o,u){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=e}I.templateSettings={escape:jl,evaluate:Kn,interpolate:po,variable:"",imports:{_:I}},I.prototype=Bo.prototype,I.prototype.constructor=I,Ln.prototype=Oi(Bo.prototype),Ln.prototype.constructor=Ln;function Xt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ot,this.__views__=[]}function iw(){var o=new Xt(this.__wrapped__);return o.__actions__=an(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=an(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=an(this.__views__),o}function sw(){if(this.__filtered__){var o=new Xt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function ow(){var o=this.__wrapped__.value(),u=this.__dir__,y=qt(o),x=u<0,P=y?o.length:0,F=v2(0,P,this.__views__),H=F.start,$=F.end,tt=$-H,gt=x?$:H-1,vt=this.__iteratees__,wt=vt.length,Rt=0,Pt=Je(tt,this.__takeCount__);if(!y||!x&&P==tt&&Pt==tt)return hp(o,this.__actions__);var It=[];t:for(;tt--&&Rt<Pt;){gt+=u;for(var zt=-1,Dt=o[gt];++zt<wt;){var Gt=vt[zt],Zt=Gt.iteratee,wn=Gt.type,sn=Zt(Dt);if(wn==st)Dt=sn;else if(!sn){if(wn==dt)continue t;break t}}It[Rt++]=Dt}return It}Xt.prototype=Oi(Bo.prototype),Xt.prototype.constructor=Xt;function ti(o){var u=-1,y=o==null?0:o.length;for(this.clear();++u<y;){var x=o[u];this.set(x[0],x[1])}}function aw(){this.__data__=fs?fs(null):{},this.size=0}function lw(o){var u=this.has(o)&&delete this.__data__[o];return this.size-=u?1:0,u}function uw(o){var u=this.__data__;if(fs){var y=u[o];return y===c?e:y}return ae.call(u,o)?u[o]:e}function cw(o){var u=this.__data__;return fs?u[o]!==e:ae.call(u,o)}function fw(o,u){var y=this.__data__;return this.size+=this.has(o)?0:1,y[o]=fs&&u===e?c:u,this}ti.prototype.clear=aw,ti.prototype.delete=lw,ti.prototype.get=uw,ti.prototype.has=cw,ti.prototype.set=fw;function ur(o){var u=-1,y=o==null?0:o.length;for(this.clear();++u<y;){var x=o[u];this.set(x[0],x[1])}}function hw(){this.__data__=[],this.size=0}function dw(o){var u=this.__data__,y=Io(u,o);if(y<0)return!1;var x=u.length-1;return y==x?u.pop():Mo.call(u,y,1),--this.size,!0}function pw(o){var u=this.__data__,y=Io(u,o);return y<0?e:u[y][1]}function gw(o){return Io(this.__data__,o)>-1}function mw(o,u){var y=this.__data__,x=Io(y,o);return x<0?(++this.size,y.push([o,u])):y[x][1]=u,this}ur.prototype.clear=hw,ur.prototype.delete=dw,ur.prototype.get=pw,ur.prototype.has=gw,ur.prototype.set=mw;function cr(o){var u=-1,y=o==null?0:o.length;for(this.clear();++u<y;){var x=o[u];this.set(x[0],x[1])}}function yw(){this.size=0,this.__data__={hash:new ti,map:new(us||ur),string:new ti}}function vw(o){var u=Go(this,o).delete(o);return this.size-=u?1:0,u}function bw(o){return Go(this,o).get(o)}function _w(o){return Go(this,o).has(o)}function ww(o,u){var y=Go(this,o),x=y.size;return y.set(o,u),this.size+=y.size==x?0:1,this}cr.prototype.clear=yw,cr.prototype.delete=vw,cr.prototype.get=bw,cr.prototype.has=_w,cr.prototype.set=ww;function ei(o){var u=-1,y=o==null?0:o.length;for(this.__data__=new cr;++u<y;)this.add(o[u])}function xw(o){return this.__data__.set(o,c),this}function Sw(o){return this.__data__.has(o)}ei.prototype.add=ei.prototype.push=xw,ei.prototype.has=Sw;function Un(o){var u=this.__data__=new ur(o);this.size=u.size}function Ew(){this.__data__=new ur,this.size=0}function Aw(o){var u=this.__data__,y=u.delete(o);return this.size=u.size,y}function kw(o){return this.__data__.get(o)}function Rw(o){return this.__data__.has(o)}function Mw(o,u){var y=this.__data__;if(y instanceof ur){var x=y.__data__;if(!us||x.length<i-1)return x.push([o,u]),this.size=++y.size,this;y=this.__data__=new cr(x)}return y.set(o,u),this.size=y.size,this}Un.prototype.clear=Ew,Un.prototype.delete=Aw,Un.prototype.get=kw,Un.prototype.has=Rw,Un.prototype.set=Mw;function Hd(o,u){var y=qt(o),x=!y&&oi(o),P=!y&&!x&&jr(o),F=!y&&!x&&!P&&Ii(o),H=y||x||P||F,$=H?Ql(o.length,N1):[],tt=$.length;for(var gt in o)(u||ae.call(o,gt))&&!(H&&(gt=="length"||P&&(gt=="offset"||gt=="parent")||F&&(gt=="buffer"||gt=="byteLength"||gt=="byteOffset")||pr(gt,tt)))&&$.push(gt);return $}function zd(o){var u=o.length;return u?o[mu(0,u-1)]:e}function Cw(o,u){return Yo(an(o),ni(u,0,o.length))}function Pw(o){return Yo(an(o))}function ou(o,u,y){(y!==e&&!qn(o[u],y)||y===e&&!(u in o))&&fr(o,u,y)}function ds(o,u,y){var x=o[u];(!(ae.call(o,u)&&qn(x,y))||y===e&&!(u in o))&&fr(o,u,y)}function Io(o,u){for(var y=o.length;y--;)if(qn(o[y][0],u))return y;return-1}function Ow(o,u,y,x){return Ir(o,function(P,F,H){u(x,P,y(P),H)}),x}function Vd(o,u){return o&&Jn(u,$e(u),o)}function Lw(o,u){return o&&Jn(u,un(u),o)}function fr(o,u,y){u=="__proto__"&&Co?Co(o,u,{configurable:!0,enumerable:!0,value:y,writable:!0}):o[u]=y}function au(o,u){for(var y=-1,x=u.length,P=it(x),F=o==null;++y<x;)P[y]=F?e:qu(o,u[y]);return P}function ni(o,u,y){return o===o&&(y!==e&&(o=o<=y?o:y),u!==e&&(o=o>=u?o:u)),o}function Tn(o,u,y,x,P,F){var H,$=u&g,tt=u&d,gt=u&m;if(y&&(H=P?y(o,x,P,F):y(o)),H!==e)return H;if(!Re(o))return o;var vt=qt(o);if(vt){if(H=_2(o),!$)return an(o,H)}else{var wt=Ze(o),Rt=wt==j||wt==ut;if(jr(o))return gp(o,$);if(wt==Tt||wt==ot||Rt&&!P){if(H=tt||Rt?{}:Bp(o),!$)return tt?u2(o,Lw(H,o)):l2(o,Vd(H,o))}else{if(!ge[wt])return P?o:{};H=w2(o,wt,$)}}F||(F=new Un);var Pt=F.get(o);if(Pt)return Pt;F.set(o,H),ug(o)?o.forEach(function(Dt){H.add(Tn(Dt,u,y,Dt,o,F))}):ag(o)&&o.forEach(function(Dt,Gt){H.set(Gt,Tn(Dt,u,y,Gt,o,F))});var It=gt?tt?Ru:ku:tt?un:$e,zt=vt?e:It(o);return Pn(zt||o,function(Dt,Gt){zt&&(Gt=Dt,Dt=o[Gt]),ds(H,Gt,Tn(Dt,u,y,Gt,o,F))}),H}function Tw(o){var u=$e(o);return function(y){return $d(y,o,u)}}function $d(o,u,y){var x=y.length;if(o==null)return!x;for(o=he(o);x--;){var P=y[x],F=u[P],H=o[P];if(H===e&&!(P in o)||!F(H))return!1}return!0}function Gd(o,u,y){if(typeof o!="function")throw new On(a);return _s(function(){o.apply(e,y)},u)}function ps(o,u,y,x){var P=-1,F=vo,H=!0,$=o.length,tt=[],gt=u.length;if(!$)return tt;y&&(u=Se(u,vn(y))),x?(F=Gl,H=!1):u.length>=i&&(F=as,H=!1,u=new ei(u));t:for(;++P<$;){var vt=o[P],wt=y==null?vt:y(vt);if(vt=x||vt!==0?vt:0,H&&wt===wt){for(var Rt=gt;Rt--;)if(u[Rt]===wt)continue t;tt.push(vt)}else F(u,wt,x)||tt.push(vt)}return tt}var Ir=_p(Xn),Yd=_p(uu,!0);function Bw(o,u){var y=!0;return Ir(o,function(x,P,F){return y=!!u(x,P,F),y}),y}function Do(o,u,y){for(var x=-1,P=o.length;++x<P;){var F=o[x],H=u(F);if(H!=null&&($===e?H===H&&!_n(H):y(H,$)))var $=H,tt=F}return tt}function Iw(o,u,y,x){var P=o.length;for(y=Ht(y),y<0&&(y=-y>P?0:P+y),x=x===e||x>P?P:Ht(x),x<0&&(x+=P),x=y>x?0:fg(x);y<x;)o[y++]=u;return o}function Kd(o,u){var y=[];return Ir(o,function(x,P,F){u(x,P,F)&&y.push(x)}),y}function Xe(o,u,y,x,P){var F=-1,H=o.length;for(y||(y=S2),P||(P=[]);++F<H;){var $=o[F];u>0&&y($)?u>1?Xe($,u-1,y,x,P):Lr(P,$):x||(P[P.length]=$)}return P}var lu=wp(),Xd=wp(!0);function Xn(o,u){return o&&lu(o,u,$e)}function uu(o,u){return o&&Xd(o,u,$e)}function Fo(o,u){return Or(u,function(y){return gr(o[y])})}function ri(o,u){u=Fr(u,o);for(var y=0,x=u.length;o!=null&&y<x;)o=o[Zn(u[y++])];return y&&y==x?o:e}function Jd(o,u,y){var x=u(o);return qt(o)?x:Lr(x,y(o))}function nn(o){return o==null?o===e?Ve:Mt:Qr&&Qr in he(o)?y2(o):P2(o)}function cu(o,u){return o>u}function Dw(o,u){return o!=null&&ae.call(o,u)}function Fw(o,u){return o!=null&&u in he(o)}function Nw(o,u,y){return o>=Je(u,y)&&o<qe(u,y)}function fu(o,u,y){for(var x=y?Gl:vo,P=o[0].length,F=o.length,H=F,$=it(F),tt=1/0,gt=[];H--;){var vt=o[H];H&&u&&(vt=Se(vt,vn(u))),tt=Je(vt.length,tt),$[H]=!y&&(u||P>=120&&vt.length>=120)?new ei(H&&vt):e}vt=o[0];var wt=-1,Rt=$[0];t:for(;++wt<P&>.length<tt;){var Pt=vt[wt],It=u?u(Pt):Pt;if(Pt=y||Pt!==0?Pt:0,!(Rt?as(Rt,It):x(gt,It,y))){for(H=F;--H;){var zt=$[H];if(!(zt?as(zt,It):x(o[H],It,y)))continue t}Rt&&Rt.push(It),gt.push(Pt)}}return gt}function jw(o,u,y,x){return Xn(o,function(P,F,H){u(x,y(P),F,H)}),x}function gs(o,u,y){u=Fr(u,o),o=Np(o,u);var x=o==null?o:o[Zn(In(u))];return x==null?e:yn(x,o,y)}function Zd(o){return Pe(o)&&nn(o)==ot}function Uw(o){return Pe(o)&&nn(o)==Ye}function qw(o){return Pe(o)&&nn(o)==mt}function ms(o,u,y,x,P){return o===u?!0:o==null||u==null||!Pe(o)&&!Pe(u)?o!==o&&u!==u:Ww(o,u,y,x,ms,P)}function Ww(o,u,y,x,P,F){var H=qt(o),$=qt(u),tt=H?V:Ze(o),gt=$?V:Ze(u);tt=tt==ot?Tt:tt,gt=gt==ot?Tt:gt;var vt=tt==Tt,wt=gt==Tt,Rt=tt==gt;if(Rt&&jr(o)){if(!jr(u))return!1;H=!0,vt=!1}if(Rt&&!vt)return F||(F=new Un),H||Ii(o)?Op(o,u,y,x,P,F):g2(o,u,tt,y,x,P,F);if(!(y&p)){var Pt=vt&&ae.call(o,"__wrapped__"),It=wt&&ae.call(u,"__wrapped__");if(Pt||It){var zt=Pt?o.value():o,Dt=It?u.value():u;return F||(F=new Un),P(zt,Dt,y,x,F)}}return Rt?(F||(F=new Un),m2(o,u,y,x,P,F)):!1}function Hw(o){return Pe(o)&&Ze(o)==St}function hu(o,u,y,x){var P=y.length,F=P,H=!x;if(o==null)return!F;for(o=he(o);P--;){var $=y[P];if(H&&$[2]?$[1]!==o[$[0]]:!($[0]in o))return!1}for(;++P<F;){$=y[P];var tt=$[0],gt=o[tt],vt=$[1];if(H&&$[2]){if(gt===e&&!(tt in o))return!1}else{var wt=new Un;if(x)var Rt=x(gt,vt,tt,o,u,wt);if(!(Rt===e?ms(vt,gt,p|v,x,wt):Rt))return!1}}return!0}function Qd(o){if(!Re(o)||A2(o))return!1;var u=gr(o)?H1:T_;return u.test(si(o))}function zw(o){return Pe(o)&&nn(o)==Ce}function Vw(o){return Pe(o)&&Ze(o)==ue}function $w(o){return Pe(o)&&ta(o.length)&&!!ve[nn(o)]}function tp(o){return typeof o=="function"?o:o==null?cn:typeof o=="object"?qt(o)?rp(o[0],o[1]):np(o):xg(o)}function du(o){if(!bs(o))return K1(o);var u=[];for(var y in he(o))ae.call(o,y)&&y!="constructor"&&u.push(y);return u}function Gw(o){if(!Re(o))return C2(o);var u=bs(o),y=[];for(var x in o)x=="constructor"&&(u||!ae.call(o,x))||y.push(x);return y}function pu(o,u){return o<u}function ep(o,u){var y=-1,x=ln(o)?it(o.length):[];return Ir(o,function(P,F,H){x[++y]=u(P,F,H)}),x}function np(o){var u=Cu(o);return u.length==1&&u[0][2]?Dp(u[0][0],u[0][1]):function(y){return y===o||hu(y,o,u)}}function rp(o,u){return Ou(o)&&Ip(u)?Dp(Zn(o),u):function(y){var x=qu(y,o);return x===e&&x===u?Wu(y,o):ms(u,x,p|v)}}function No(o,u,y,x,P){o!==u&&lu(u,function(F,H){if(P||(P=new Un),Re(F))Yw(o,u,H,y,No,x,P);else{var $=x?x(Tu(o,H),F,H+"",o,u,P):e;$===e&&($=F),ou(o,H,$)}},un)}function Yw(o,u,y,x,P,F,H){var $=Tu(o,y),tt=Tu(u,y),gt=H.get(tt);if(gt){ou(o,y,gt);return}var vt=F?F($,tt,y+"",o,u,H):e,wt=vt===e;if(wt){var Rt=qt(tt),Pt=!Rt&&jr(tt),It=!Rt&&!Pt&&Ii(tt);vt=tt,Rt||Pt||It?qt($)?vt=$:Te($)?vt=an($):Pt?(wt=!1,vt=gp(tt,!0)):It?(wt=!1,vt=mp(tt,!0)):vt=[]:ws(tt)||oi(tt)?(vt=$,oi($)?vt=hg($):(!Re($)||gr($))&&(vt=Bp(tt))):wt=!1}wt&&(H.set(tt,vt),P(vt,tt,x,F,H),H.delete(tt)),ou(o,y,vt)}function ip(o,u){var y=o.length;if(y)return u+=u<0?y:0,pr(u,y)?o[u]:e}function sp(o,u,y){u.length?u=Se(u,function(F){return qt(F)?function(H){return ri(H,F.length===1?F[0]:F)}:F}):u=[cn];var x=-1;u=Se(u,vn(Bt()));var P=ep(o,function(F,H,$){var tt=Se(u,function(gt){return gt(F)});return{criteria:tt,index:++x,value:F}});return w1(P,function(F,H){return a2(F,H,y)})}function Kw(o,u){return op(o,u,function(y,x){return Wu(o,x)})}function op(o,u,y){for(var x=-1,P=u.length,F={};++x<P;){var H=u[x],$=ri(o,H);y($,H)&&ys(F,Fr(H,o),$)}return F}function Xw(o){return function(u){return ri(u,o)}}function gu(o,u,y,x){var P=x?_1:Ei,F=-1,H=u.length,$=o;for(o===u&&(u=an(u)),y&&($=Se(o,vn(y)));++F<H;)for(var tt=0,gt=u[F],vt=y?y(gt):gt;(tt=P($,vt,tt,x))>-1;)$!==o&&Mo.call($,tt,1),Mo.call(o,tt,1);return o}function ap(o,u){for(var y=o?u.length:0,x=y-1;y--;){var P=u[y];if(y==x||P!==F){var F=P;pr(P)?Mo.call(o,P,1):bu(o,P)}}return o}function mu(o,u){return o+Oo(qd()*(u-o+1))}function Jw(o,u,y,x){for(var P=-1,F=qe(Po((u-o)/(y||1)),0),H=it(F);F--;)H[x?F:++P]=o,o+=y;return H}function yu(o,u){var y="";if(!o||u<1||u>bt)return y;do u%2&&(y+=o),u=Oo(u/2),u&&(o+=o);while(u);return y}function $t(o,u){return Bu(Fp(o,u,cn),o+"")}function Zw(o){return zd(Di(o))}function Qw(o,u){var y=Di(o);return Yo(y,ni(u,0,y.length))}function ys(o,u,y,x){if(!Re(o))return o;u=Fr(u,o);for(var P=-1,F=u.length,H=F-1,$=o;$!=null&&++P<F;){var tt=Zn(u[P]),gt=y;if(tt==="__proto__"||tt==="constructor"||tt==="prototype")return o;if(P!=H){var vt=$[tt];gt=x?x(vt,tt,$):e,gt===e&&(gt=Re(vt)?vt:pr(u[P+1])?[]:{})}ds($,tt,gt),$=$[tt]}return o}var lp=Lo?function(o,u){return Lo.set(o,u),o}:cn,t2=Co?function(o,u){return Co(o,"toString",{configurable:!0,enumerable:!1,value:zu(u),writable:!0})}:cn;function e2(o){return Yo(Di(o))}function Bn(o,u,y){var x=-1,P=o.length;u<0&&(u=-u>P?0:P+u),y=y>P?P:y,y<0&&(y+=P),P=u>y?0:y-u>>>0,u>>>=0;for(var F=it(P);++x<P;)F[x]=o[x+u];return F}function n2(o,u){var y;return Ir(o,function(x,P,F){return y=u(x,P,F),!y}),!!y}function jo(o,u,y){var x=0,P=o==null?x:o.length;if(typeof u=="number"&&u===u&&P<=Q){for(;x<P;){var F=x+P>>>1,H=o[F];H!==null&&!_n(H)&&(y?H<=u:H<u)?x=F+1:P=F}return P}return vu(o,u,cn,y)}function vu(o,u,y,x){var P=0,F=o==null?0:o.length;if(F===0)return 0;u=y(u);for(var H=u!==u,$=u===null,tt=_n(u),gt=u===e;P<F;){var vt=Oo((P+F)/2),wt=y(o[vt]),Rt=wt!==e,Pt=wt===null,It=wt===wt,zt=_n(wt);if(H)var Dt=x||It;else gt?Dt=It&&(x||Rt):$?Dt=It&&Rt&&(x||!Pt):tt?Dt=It&&Rt&&!Pt&&(x||!zt):Pt||zt?Dt=!1:Dt=x?wt<=u:wt<u;Dt?P=vt+1:F=vt}return Je(F,Lt)}function up(o,u){for(var y=-1,x=o.length,P=0,F=[];++y<x;){var H=o[y],$=u?u(H):H;if(!y||!qn($,tt)){var tt=$;F[P++]=H===0?0:H}}return F}function cp(o){return typeof o=="number"?o:_n(o)?kt:+o}function bn(o){if(typeof o=="string")return o;if(qt(o))return Se(o,bn)+"";if(_n(o))return Wd?Wd.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function Dr(o,u,y){var x=-1,P=vo,F=o.length,H=!0,$=[],tt=$;if(y)H=!1,P=Gl;else if(F>=i){var gt=u?null:d2(o);if(gt)return _o(gt);H=!1,P=as,tt=new ei}else tt=u?[]:$;t:for(;++x<F;){var vt=o[x],wt=u?u(vt):vt;if(vt=y||vt!==0?vt:0,H&&wt===wt){for(var Rt=tt.length;Rt--;)if(tt[Rt]===wt)continue t;u&&tt.push(wt),$.push(vt)}else P(tt,wt,y)||(tt!==$&&tt.push(wt),$.push(vt))}return $}function bu(o,u){return u=Fr(u,o),o=Np(o,u),o==null||delete o[Zn(In(u))]}function fp(o,u,y,x){return ys(o,u,y(ri(o,u)),x)}function Uo(o,u,y,x){for(var P=o.length,F=x?P:-1;(x?F--:++F<P)&&u(o[F],F,o););return y?Bn(o,x?0:F,x?F+1:P):Bn(o,x?F+1:0,x?P:F)}function hp(o,u){var y=o;return y instanceof Xt&&(y=y.value()),Yl(u,function(x,P){return P.func.apply(P.thisArg,Lr([x],P.args))},y)}function _u(o,u,y){var x=o.length;if(x<2)return x?Dr(o[0]):[];for(var P=-1,F=it(x);++P<x;)for(var H=o[P],$=-1;++$<x;)$!=P&&(F[P]=ps(F[P]||H,o[$],u,y));return Dr(Xe(F,1),u,y)}function dp(o,u,y){for(var x=-1,P=o.length,F=u.length,H={};++x<P;){var $=x<F?u[x]:e;y(H,o[x],$)}return H}function wu(o){return Te(o)?o:[]}function xu(o){return typeof o=="function"?o:cn}function Fr(o,u){return qt(o)?o:Ou(o,u)?[o]:Wp(se(o))}var r2=$t;function Nr(o,u,y){var x=o.length;return y=y===e?x:y,!u&&y>=x?o:Bn(o,u,y)}var pp=z1||function(o){return Ke.clearTimeout(o)};function gp(o,u){if(u)return o.slice();var y=o.length,x=Dd?Dd(y):new o.constructor(y);return o.copy(x),x}function Su(o){var u=new o.constructor(o.byteLength);return new ko(u).set(new ko(o)),u}function i2(o,u){var y=u?Su(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.byteLength)}function s2(o){var u=new o.constructor(o.source,Zh.exec(o));return u.lastIndex=o.lastIndex,u}function o2(o){return hs?he(hs.call(o)):{}}function mp(o,u){var y=u?Su(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.length)}function yp(o,u){if(o!==u){var y=o!==e,x=o===null,P=o===o,F=_n(o),H=u!==e,$=u===null,tt=u===u,gt=_n(u);if(!$&&!gt&&!F&&o>u||F&&H&&tt&&!$&&!gt||x&&H&&tt||!y&&tt||!P)return 1;if(!x&&!F&&!gt&&o<u||gt&&y&&P&&!x&&!F||$&&y&&P||!H&&P||!tt)return-1}return 0}function a2(o,u,y){for(var x=-1,P=o.criteria,F=u.criteria,H=P.length,$=y.length;++x<H;){var tt=yp(P[x],F[x]);if(tt){if(x>=$)return tt;var gt=y[x];return tt*(gt=="desc"?-1:1)}}return o.index-u.index}function vp(o,u,y,x){for(var P=-1,F=o.length,H=y.length,$=-1,tt=u.length,gt=qe(F-H,0),vt=it(tt+gt),wt=!x;++$<tt;)vt[$]=u[$];for(;++P<H;)(wt||P<F)&&(vt[y[P]]=o[P]);for(;gt--;)vt[$++]=o[P++];return vt}function bp(o,u,y,x){for(var P=-1,F=o.length,H=-1,$=y.length,tt=-1,gt=u.length,vt=qe(F-$,0),wt=it(vt+gt),Rt=!x;++P<vt;)wt[P]=o[P];for(var Pt=P;++tt<gt;)wt[Pt+tt]=u[tt];for(;++H<$;)(Rt||P<F)&&(wt[Pt+y[H]]=o[P++]);return wt}function an(o,u){var y=-1,x=o.length;for(u||(u=it(x));++y<x;)u[y]=o[y];return u}function Jn(o,u,y,x){var P=!y;y||(y={});for(var F=-1,H=u.length;++F<H;){var $=u[F],tt=x?x(y[$],o[$],$,y,o):e;tt===e&&(tt=o[$]),P?fr(y,$,tt):ds(y,$,tt)}return y}function l2(o,u){return Jn(o,Pu(o),u)}function u2(o,u){return Jn(o,Lp(o),u)}function qo(o,u){return function(y,x){var P=qt(y)?p1:Ow,F=u?u():{};return P(y,o,Bt(x,2),F)}}function Li(o){return $t(function(u,y){var x=-1,P=y.length,F=P>1?y[P-1]:e,H=P>2?y[2]:e;for(F=o.length>3&&typeof F=="function"?(P--,F):e,H&&rn(y[0],y[1],H)&&(F=P<3?e:F,P=1),u=he(u);++x<P;){var $=y[x];$&&o(u,$,x,F)}return u})}function _p(o,u){return function(y,x){if(y==null)return y;if(!ln(y))return o(y,x);for(var P=y.length,F=u?P:-1,H=he(y);(u?F--:++F<P)&&x(H[F],F,H)!==!1;);return y}}function wp(o){return function(u,y,x){for(var P=-1,F=he(u),H=x(u),$=H.length;$--;){var tt=H[o?$:++P];if(y(F[tt],tt,F)===!1)break}return u}}function c2(o,u,y){var x=u&b,P=vs(o);function F(){var H=this&&this!==Ke&&this instanceof F?P:o;return H.apply(x?y:this,arguments)}return F}function xp(o){return function(u){u=se(u);var y=Ai(u)?jn(u):e,x=y?y[0]:u.charAt(0),P=y?Nr(y,1).join(""):u.slice(1);return x[o]()+P}}function Ti(o){return function(u){return Yl(_g(bg(u).replace(t1,"")),o,"")}}function vs(o){return function(){var u=arguments;switch(u.length){case 0:return new o;case 1:return new o(u[0]);case 2:return new o(u[0],u[1]);case 3:return new o(u[0],u[1],u[2]);case 4:return new o(u[0],u[1],u[2],u[3]);case 5:return new o(u[0],u[1],u[2],u[3],u[4]);case 6:return new o(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new o(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var y=Oi(o.prototype),x=o.apply(y,u);return Re(x)?x:y}}function f2(o,u,y){var x=vs(o);function P(){for(var F=arguments.length,H=it(F),$=F,tt=Bi(P);$--;)H[$]=arguments[$];var gt=F<3&&H[0]!==tt&&H[F-1]!==tt?[]:Tr(H,tt);if(F-=gt.length,F<y)return Rp(o,u,Wo,P.placeholder,e,H,gt,e,e,y-F);var vt=this&&this!==Ke&&this instanceof P?x:o;return yn(vt,this,H)}return P}function Sp(o){return function(u,y,x){var P=he(u);if(!ln(u)){var F=Bt(y,3);u=$e(u),y=function($){return F(P[$],$,P)}}var H=o(u,y,x);return H>-1?P[F?u[H]:H]:e}}function Ep(o){return dr(function(u){var y=u.length,x=y,P=Ln.prototype.thru;for(o&&u.reverse();x--;){var F=u[x];if(typeof F!="function")throw new On(a);if(P&&!H&&$o(F)=="wrapper")var H=new Ln([],!0)}for(x=H?x:y;++x<y;){F=u[x];var $=$o(F),tt=$=="wrapper"?Mu(F):e;tt&&Lu(tt[0])&&tt[1]==(L|C|M|N)&&!tt[4].length&&tt[9]==1?H=H[$o(tt[0])].apply(H,tt[3]):H=F.length==1&&Lu(F)?H[$]():H.thru(F)}return function(){var gt=arguments,vt=gt[0];if(H&>.length==1&&qt(vt))return H.plant(vt).value();for(var wt=0,Rt=y?u[wt].apply(this,gt):vt;++wt<y;)Rt=u[wt].call(this,Rt);return Rt}})}function Wo(o,u,y,x,P,F,H,$,tt,gt){var vt=u&L,wt=u&b,Rt=u&_,Pt=u&(C|w),It=u&Y,zt=Rt?e:vs(o);function Dt(){for(var Gt=arguments.length,Zt=it(Gt),wn=Gt;wn--;)Zt[wn]=arguments[wn];if(Pt)var sn=Bi(Dt),xn=S1(Zt,sn);if(x&&(Zt=vp(Zt,x,P,Pt)),F&&(Zt=bp(Zt,F,H,Pt)),Gt-=xn,Pt&&Gt<gt){var Be=Tr(Zt,sn);return Rp(o,u,Wo,Dt.placeholder,y,Zt,Be,$,tt,gt-Gt)}var Wn=wt?y:this,yr=Rt?Wn[o]:o;return Gt=Zt.length,$?Zt=O2(Zt,$):It&&Gt>1&&Zt.reverse(),vt&&tt<Gt&&(Zt.length=tt),this&&this!==Ke&&this instanceof Dt&&(yr=zt||vs(yr)),yr.apply(Wn,Zt)}return Dt}function Ap(o,u){return function(y,x){return jw(y,o,u(x),{})}}function Ho(o,u){return function(y,x){var P;if(y===e&&x===e)return u;if(y!==e&&(P=y),x!==e){if(P===e)return x;typeof y=="string"||typeof x=="string"?(y=bn(y),x=bn(x)):(y=cp(y),x=cp(x)),P=o(y,x)}return P}}function Eu(o){return dr(function(u){return u=Se(u,vn(Bt())),$t(function(y){var x=this;return o(u,function(P){return yn(P,x,y)})})})}function zo(o,u){u=u===e?" ":bn(u);var y=u.length;if(y<2)return y?yu(u,o):u;var x=yu(u,Po(o/ki(u)));return Ai(u)?Nr(jn(x),0,o).join(""):x.slice(0,o)}function h2(o,u,y,x){var P=u&b,F=vs(o);function H(){for(var $=-1,tt=arguments.length,gt=-1,vt=x.length,wt=it(vt+tt),Rt=this&&this!==Ke&&this instanceof H?F:o;++gt<vt;)wt[gt]=x[gt];for(;tt--;)wt[gt++]=arguments[++$];return yn(Rt,P?y:this,wt)}return H}function kp(o){return function(u,y,x){return x&&typeof x!="number"&&rn(u,y,x)&&(y=x=e),u=mr(u),y===e?(y=u,u=0):y=mr(y),x=x===e?u<y?1:-1:mr(x),Jw(u,y,x,o)}}function Vo(o){return function(u,y){return typeof u=="string"&&typeof y=="string"||(u=Dn(u),y=Dn(y)),o(u,y)}}function Rp(o,u,y,x,P,F,H,$,tt,gt){var vt=u&C,wt=vt?H:e,Rt=vt?e:H,Pt=vt?F:e,It=vt?e:F;u|=vt?M:O,u&=~(vt?O:M),u&A||(u&=-4);var zt=[o,u,P,Pt,wt,It,Rt,$,tt,gt],Dt=y.apply(e,zt);return Lu(o)&&jp(Dt,zt),Dt.placeholder=x,Up(Dt,o,u)}function Au(o){var u=Ue[o];return function(y,x){if(y=Dn(y),x=x==null?0:Je(Ht(x),292),x&&Ud(y)){var P=(se(y)+"e").split("e"),F=u(P[0]+"e"+(+P[1]+x));return P=(se(F)+"e").split("e"),+(P[0]+"e"+(+P[1]-x))}return u(y)}}var d2=Ci&&1/_o(new Ci([,-0]))[1]==_t?function(o){return new Ci(o)}:Gu;function Mp(o){return function(u){var y=Ze(u);return y==St?eu(u):y==ue?P1(u):x1(u,o(u))}}function hr(o,u,y,x,P,F,H,$){var tt=u&_;if(!tt&&typeof o!="function")throw new On(a);var gt=x?x.length:0;if(gt||(u&=-97,x=P=e),H=H===e?H:qe(Ht(H),0),$=$===e?$:Ht($),gt-=P?P.length:0,u&O){var vt=x,wt=P;x=P=e}var Rt=tt?e:Mu(o),Pt=[o,u,y,x,P,vt,wt,F,H,$];if(Rt&&M2(Pt,Rt),o=Pt[0],u=Pt[1],y=Pt[2],x=Pt[3],P=Pt[4],$=Pt[9]=Pt[9]===e?tt?0:o.length:qe(Pt[9]-gt,0),!$&&u&(C|w)&&(u&=-25),!u||u==b)var It=c2(o,u,y);else u==C||u==w?It=f2(o,u,$):(u==M||u==(b|M))&&!P.length?It=h2(o,u,y,x):It=Wo.apply(e,Pt);var zt=Rt?lp:jp;return Up(zt(It,Pt),o,u)}function Cp(o,u,y,x){return o===e||qn(o,Mi[y])&&!ae.call(x,y)?u:o}function Pp(o,u,y,x,P,F){return Re(o)&&Re(u)&&(F.set(u,o),No(o,u,e,Pp,F),F.delete(u)),o}function p2(o){return ws(o)?e:o}function Op(o,u,y,x,P,F){var H=y&p,$=o.length,tt=u.length;if($!=tt&&!(H&&tt>$))return!1;var gt=F.get(o),vt=F.get(u);if(gt&&vt)return gt==u&&vt==o;var wt=-1,Rt=!0,Pt=y&v?new ei:e;for(F.set(o,u),F.set(u,o);++wt<$;){var It=o[wt],zt=u[wt];if(x)var Dt=H?x(zt,It,wt,u,o,F):x(It,zt,wt,o,u,F);if(Dt!==e){if(Dt)continue;Rt=!1;break}if(Pt){if(!Kl(u,function(Gt,Zt){if(!as(Pt,Zt)&&(It===Gt||P(It,Gt,y,x,F)))return Pt.push(Zt)})){Rt=!1;break}}else if(!(It===zt||P(It,zt,y,x,F))){Rt=!1;break}}return F.delete(o),F.delete(u),Rt}function g2(o,u,y,x,P,F,H){switch(y){case ye:if(o.byteLength!=u.byteLength||o.byteOffset!=u.byteOffset)return!1;o=o.buffer,u=u.buffer;case Ye:return!(o.byteLength!=u.byteLength||!F(new ko(o),new ko(u)));case lt:case mt:case Ft:return qn(+o,+u);case D:return o.name==u.name&&o.message==u.message;case Ce:case te:return o==u+"";case St:var $=eu;case ue:var tt=x&p;if($||($=_o),o.size!=u.size&&!tt)return!1;var gt=H.get(o);if(gt)return gt==u;x|=v,H.set(o,u);var vt=Op($(o),$(u),x,P,F,H);return H.delete(o),vt;case re:if(hs)return hs.call(o)==hs.call(u)}return!1}function m2(o,u,y,x,P,F){var H=y&p,$=ku(o),tt=$.length,gt=ku(u),vt=gt.length;if(tt!=vt&&!H)return!1;for(var wt=tt;wt--;){var Rt=$[wt];if(!(H?Rt in u:ae.call(u,Rt)))return!1}var Pt=F.get(o),It=F.get(u);if(Pt&&It)return Pt==u&&It==o;var zt=!0;F.set(o,u),F.set(u,o);for(var Dt=H;++wt<tt;){Rt=$[wt];var Gt=o[Rt],Zt=u[Rt];if(x)var wn=H?x(Zt,Gt,Rt,u,o,F):x(Gt,Zt,Rt,o,u,F);if(!(wn===e?Gt===Zt||P(Gt,Zt,y,x,F):wn)){zt=!1;break}Dt||(Dt=Rt=="constructor")}if(zt&&!Dt){var sn=o.constructor,xn=u.constructor;sn!=xn&&"constructor"in o&&"constructor"in u&&!(typeof sn=="function"&&sn instanceof sn&&typeof xn=="function"&&xn instanceof xn)&&(zt=!1)}return F.delete(o),F.delete(u),zt}function dr(o){return Bu(Fp(o,e,$p),o+"")}function ku(o){return Jd(o,$e,Pu)}function Ru(o){return Jd(o,un,Lp)}var Mu=Lo?function(o){return Lo.get(o)}:Gu;function $o(o){for(var u=o.name+"",y=Pi[u],x=ae.call(Pi,u)?y.length:0;x--;){var P=y[x],F=P.func;if(F==null||F==o)return P.name}return u}function Bi(o){var u=ae.call(I,"placeholder")?I:o;return u.placeholder}function Bt(){var o=I.iteratee||Vu;return o=o===Vu?tp:o,arguments.length?o(arguments[0],arguments[1]):o}function Go(o,u){var y=o.__data__;return E2(u)?y[typeof u=="string"?"string":"hash"]:y.map}function Cu(o){for(var u=$e(o),y=u.length;y--;){var x=u[y],P=o[x];u[y]=[x,P,Ip(P)]}return u}function ii(o,u){var y=R1(o,u);return Qd(y)?y:e}function y2(o){var u=ae.call(o,Qr),y=o[Qr];try{o[Qr]=e;var x=!0}catch{}var P=Eo.call(o);return x&&(u?o[Qr]=y:delete o[Qr]),P}var Pu=ru?function(o){return o==null?[]:(o=he(o),Or(ru(o),function(u){return Nd.call(o,u)}))}:Yu,Lp=ru?function(o){for(var u=[];o;)Lr(u,Pu(o)),o=Ro(o);return u}:Yu,Ze=nn;(iu&&Ze(new iu(new ArrayBuffer(1)))!=ye||us&&Ze(new us)!=St||su&&Ze(su.resolve())!=je||Ci&&Ze(new Ci)!=ue||cs&&Ze(new cs)!=ke)&&(Ze=function(o){var u=nn(o),y=u==Tt?o.constructor:e,x=y?si(y):"";if(x)switch(x){case Q1:return ye;case tw:return St;case ew:return je;case nw:return ue;case rw:return ke}return u});function v2(o,u,y){for(var x=-1,P=y.length;++x<P;){var F=y[x],H=F.size;switch(F.type){case"drop":o+=H;break;case"dropRight":u-=H;break;case"take":u=Je(u,o+H);break;case"takeRight":o=qe(o,u-H);break}}return{start:o,end:u}}function b2(o){var u=o.match(we);return u?u[1].split(pe):[]}function Tp(o,u,y){u=Fr(u,o);for(var x=-1,P=u.length,F=!1;++x<P;){var H=Zn(u[x]);if(!(F=o!=null&&y(o,H)))break;o=o[H]}return F||++x!=P?F:(P=o==null?0:o.length,!!P&&ta(P)&&pr(H,P)&&(qt(o)||oi(o)))}function _2(o){var u=o.length,y=new o.constructor(u);return u&&typeof o[0]=="string"&&ae.call(o,"index")&&(y.index=o.index,y.input=o.input),y}function Bp(o){return typeof o.constructor=="function"&&!bs(o)?Oi(Ro(o)):{}}function w2(o,u,y){var x=o.constructor;switch(u){case Ye:return Su(o);case lt:case mt:return new x(+o);case ye:return i2(o,y);case Rn:case T:case S:case k:case q:case K:case nt:case ht:case Ut:return mp(o,y);case St:return new x;case Ft:case te:return new x(o);case Ce:return s2(o);case ue:return new x;case re:return o2(o)}}function x2(o,u){var y=u.length;if(!y)return o;var x=y-1;return u[x]=(y>1?"& ":"")+u[x],u=u.join(y>2?", ":" "),o.replace(Vt,`{
|
|
29
|
+
*/var qk=Fs.exports,xm;function Wk(){return xm||(xm=1,function(n,t){(function(){var e,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",g=1,d=2,m=4,p=1,v=2,_=1,b=2,S=4,O=8,w=16,k=32,C=64,L=128,N=256,Y=512,z=30,G="...",U=800,xt=16,dt=1,st=2,at=3,_t=1/0,bt=9007199254740991,Et=17976931348623157e292,kt=NaN,Ct=4294967295,Lt=Ct-1,Q=Ct>>>1,et=[["ary",L],["bind",_],["bindKey",b],["curry",O],["curryRight",w],["flip",Y],["partial",k],["partialRight",C],["rearg",N]],ot="[object Arguments]",V="[object Array]",X="[object AsyncFunction]",lt="[object Boolean]",mt="[object Date]",yt="[object DOMException]",D="[object Error]",j="[object Function]",ut="[object GeneratorFunction]",St="[object Map]",Ft="[object Number]",Rt="[object Null]",Tt="[object Object]",Ne="[object Promise]",ft="[object Proxy]",Oe="[object RegExp]",ue="[object Set]",te="[object String]",re="[object Symbol]",ze="[object Undefined]",ke="[object WeakMap]",on="[object WeakSet]",Ge="[object ArrayBuffer]",ye="[object DataView]",Mn="[object Float32Array]",T="[object Float64Array]",E="[object Int8Array]",M="[object Int16Array]",q="[object Int32Array]",K="[object Uint8Array]",nt="[object Uint8ClampedArray]",ht="[object Uint16Array]",Ut="[object Uint32Array]",ce=/\b__p \+= '';/g,fe=/\b(__p \+=) '' \+/g,de=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ne=/&(?:amp|lt|gt|quot|#39);/g,Qr=/[&<>"']/g,Rn=RegExp(ne.source),cs=RegExp(Qr.source),zl=/<%-([\s\S]+?)%>/g,Zn=/<%([\s\S]+?)%>/g,bo=/<%=([\s\S]+?)%>/g,I=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,R=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,J=RegExp(W.source),rt=/^\s+/,pt=/\s/,Vt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,we=/\{\n\/\* \[wrapped with (.+)\] \*/,pe=/,? & /,xe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oe=/[()=,{}\[\]\/\s]/,j_=/\\(\\)?/g,U_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,od=/\w*$/,q_=/^[-+]0x[0-9a-f]+$/i,W_=/^0b[01]+$/i,H_=/^\[object .+?Constructor\]$/,z_=/^0o[0-7]+$/i,V_=/^(?:0|[1-9]\d*)$/,$_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_o=/($^)/,G_=/['\n\r\u2028\u2029\\]/g,wo="\\ud800-\\udfff",Y_="\\u0300-\\u036f",K_="\\ufe20-\\ufe2f",X_="\\u20d0-\\u20ff",ad=Y_+K_+X_,ld="\\u2700-\\u27bf",ud="a-z\\xdf-\\xf6\\xf8-\\xff",J_="\\xac\\xb1\\xd7\\xf7",Z_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Q_="\\u2000-\\u206f",t1=" \\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",cd="A-Z\\xc0-\\xd6\\xd8-\\xde",fd="\\ufe0e\\ufe0f",hd=J_+Z_+Q_+t1,Vl="['’]",e1="["+wo+"]",dd="["+hd+"]",xo="["+ad+"]",pd="\\d+",n1="["+ld+"]",gd="["+ud+"]",md="[^"+wo+hd+pd+ld+ud+cd+"]",$l="\\ud83c[\\udffb-\\udfff]",r1="(?:"+xo+"|"+$l+")",yd="[^"+wo+"]",Gl="(?:\\ud83c[\\udde6-\\uddff]){2}",Yl="[\\ud800-\\udbff][\\udc00-\\udfff]",Ai="["+cd+"]",vd="\\u200d",bd="(?:"+gd+"|"+md+")",i1="(?:"+Ai+"|"+md+")",_d="(?:"+Vl+"(?:d|ll|m|re|s|t|ve))?",wd="(?:"+Vl+"(?:D|LL|M|RE|S|T|VE))?",xd=r1+"?",Sd="["+fd+"]?",s1="(?:"+vd+"(?:"+[yd,Gl,Yl].join("|")+")"+Sd+xd+")*",o1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ed=Sd+xd+s1,l1="(?:"+[n1,Gl,Yl].join("|")+")"+Ed,u1="(?:"+[yd+xo+"?",xo,Gl,Yl,e1].join("|")+")",c1=RegExp(Vl,"g"),f1=RegExp(xo,"g"),Kl=RegExp($l+"(?="+$l+")|"+u1+Ed,"g"),h1=RegExp([Ai+"?"+gd+"+"+_d+"(?="+[dd,Ai,"$"].join("|")+")",i1+"+"+wd+"(?="+[dd,Ai+bd,"$"].join("|")+")",Ai+"?"+bd+"+"+_d,Ai+"+"+wd,a1,o1,pd,l1].join("|"),"g"),d1=RegExp("["+vd+wo+ad+fd+"]"),p1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,g1=["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"],m1=-1,ve={};ve[Mn]=ve[T]=ve[E]=ve[M]=ve[q]=ve[K]=ve[nt]=ve[ht]=ve[Ut]=!0,ve[ot]=ve[V]=ve[Ge]=ve[lt]=ve[ye]=ve[mt]=ve[D]=ve[j]=ve[St]=ve[Ft]=ve[Tt]=ve[Oe]=ve[ue]=ve[te]=ve[ke]=!1;var ge={};ge[ot]=ge[V]=ge[Ge]=ge[ye]=ge[lt]=ge[mt]=ge[Mn]=ge[T]=ge[E]=ge[M]=ge[q]=ge[St]=ge[Ft]=ge[Tt]=ge[Oe]=ge[ue]=ge[te]=ge[re]=ge[K]=ge[nt]=ge[ht]=ge[Ut]=!0,ge[D]=ge[j]=ge[ke]=!1;var y1={À:"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"},v1={"&":"&","<":"<",">":">",'"':""","'":"'"},b1={"&":"&","<":"<",">":">",""":'"',"'":"'"},_1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},w1=parseFloat,x1=parseInt,Ad=typeof We=="object"&&We&&We.Object===Object&&We,S1=typeof self=="object"&&self&&self.Object===Object&&self,Ye=Ad||S1||Function("return this")(),Xl=t&&!t.nodeType&&t,ti=Xl&&!0&&n&&!n.nodeType&&n,kd=ti&&ti.exports===Xl,Jl=kd&&Ad.process,On=function(){try{var Z=ti&&ti.require&&ti.require("util").types;return Z||Jl&&Jl.binding&&Jl.binding("util")}catch{}}(),Md=On&&On.isArrayBuffer,Rd=On&&On.isDate,Od=On&&On.isMap,Pd=On&&On.isRegExp,Cd=On&&On.isSet,Ld=On&&On.isTypedArray;function yn(Z,ct,it){switch(it.length){case 0:return Z.call(ct);case 1:return Z.call(ct,it[0]);case 2:return Z.call(ct,it[0],it[1]);case 3:return Z.call(ct,it[0],it[1],it[2])}return Z.apply(ct,it)}function E1(Z,ct,it,Ot){for(var Nt=-1,ie=Z==null?0:Z.length;++Nt<ie;){var je=Z[Nt];ct(Ot,je,it(je),Z)}return Ot}function Pn(Z,ct){for(var it=-1,Ot=Z==null?0:Z.length;++it<Ot&&ct(Z[it],it,Z)!==!1;);return Z}function A1(Z,ct){for(var it=Z==null?0:Z.length;it--&&ct(Z[it],it,Z)!==!1;);return Z}function Td(Z,ct){for(var it=-1,Ot=Z==null?0:Z.length;++it<Ot;)if(!ct(Z[it],it,Z))return!1;return!0}function Tr(Z,ct){for(var it=-1,Ot=Z==null?0:Z.length,Nt=0,ie=[];++it<Ot;){var je=Z[it];ct(je,it,Z)&&(ie[Nt++]=je)}return ie}function So(Z,ct){var it=Z==null?0:Z.length;return!!it&&ki(Z,ct,0)>-1}function Zl(Z,ct,it){for(var Ot=-1,Nt=Z==null?0:Z.length;++Ot<Nt;)if(it(ct,Z[Ot]))return!0;return!1}function Se(Z,ct){for(var it=-1,Ot=Z==null?0:Z.length,Nt=Array(Ot);++it<Ot;)Nt[it]=ct(Z[it],it,Z);return Nt}function Ir(Z,ct){for(var it=-1,Ot=ct.length,Nt=Z.length;++it<Ot;)Z[Nt+it]=ct[it];return Z}function Ql(Z,ct,it,Ot){var Nt=-1,ie=Z==null?0:Z.length;for(Ot&&ie&&(it=Z[++Nt]);++Nt<ie;)it=ct(it,Z[Nt],Nt,Z);return it}function k1(Z,ct,it,Ot){var Nt=Z==null?0:Z.length;for(Ot&&Nt&&(it=Z[--Nt]);Nt--;)it=ct(it,Z[Nt],Nt,Z);return it}function tu(Z,ct){for(var it=-1,Ot=Z==null?0:Z.length;++it<Ot;)if(ct(Z[it],it,Z))return!0;return!1}var M1=eu("length");function R1(Z){return Z.split("")}function O1(Z){return Z.match(xe)||[]}function Id(Z,ct,it){var Ot;return it(Z,function(Nt,ie,je){if(ct(Nt,ie,je))return Ot=ie,!1}),Ot}function Eo(Z,ct,it,Ot){for(var Nt=Z.length,ie=it+(Ot?1:-1);Ot?ie--:++ie<Nt;)if(ct(Z[ie],ie,Z))return ie;return-1}function ki(Z,ct,it){return ct===ct?q1(Z,ct,it):Eo(Z,Bd,it)}function P1(Z,ct,it,Ot){for(var Nt=it-1,ie=Z.length;++Nt<ie;)if(Ot(Z[Nt],ct))return Nt;return-1}function Bd(Z){return Z!==Z}function Dd(Z,ct){var it=Z==null?0:Z.length;return it?ru(Z,ct)/it:kt}function eu(Z){return function(ct){return ct==null?e:ct[Z]}}function nu(Z){return function(ct){return Z==null?e:Z[ct]}}function Fd(Z,ct,it,Ot,Nt){return Nt(Z,function(ie,je,he){it=Ot?(Ot=!1,ie):ct(it,ie,je,he)}),it}function C1(Z,ct){var it=Z.length;for(Z.sort(ct);it--;)Z[it]=Z[it].value;return Z}function ru(Z,ct){for(var it,Ot=-1,Nt=Z.length;++Ot<Nt;){var ie=ct(Z[Ot]);ie!==e&&(it=it===e?ie:it+ie)}return it}function iu(Z,ct){for(var it=-1,Ot=Array(Z);++it<Z;)Ot[it]=ct(it);return Ot}function L1(Z,ct){return Se(ct,function(it){return[it,Z[it]]})}function Nd(Z){return Z&&Z.slice(0,Wd(Z)+1).replace(rt,"")}function vn(Z){return function(ct){return Z(ct)}}function su(Z,ct){return Se(ct,function(it){return Z[it]})}function fs(Z,ct){return Z.has(ct)}function jd(Z,ct){for(var it=-1,Ot=Z.length;++it<Ot&&ki(ct,Z[it],0)>-1;);return it}function Ud(Z,ct){for(var it=Z.length;it--&&ki(ct,Z[it],0)>-1;);return it}function T1(Z,ct){for(var it=Z.length,Ot=0;it--;)Z[it]===ct&&++Ot;return Ot}var I1=nu(y1),B1=nu(v1);function D1(Z){return"\\"+_1[Z]}function F1(Z,ct){return Z==null?e:Z[ct]}function Mi(Z){return d1.test(Z)}function N1(Z){return p1.test(Z)}function j1(Z){for(var ct,it=[];!(ct=Z.next()).done;)it.push(ct.value);return it}function ou(Z){var ct=-1,it=Array(Z.size);return Z.forEach(function(Ot,Nt){it[++ct]=[Nt,Ot]}),it}function qd(Z,ct){return function(it){return Z(ct(it))}}function Br(Z,ct){for(var it=-1,Ot=Z.length,Nt=0,ie=[];++it<Ot;){var je=Z[it];(je===ct||je===f)&&(Z[it]=f,ie[Nt++]=it)}return ie}function Ao(Z){var ct=-1,it=Array(Z.size);return Z.forEach(function(Ot){it[++ct]=Ot}),it}function U1(Z){var ct=-1,it=Array(Z.size);return Z.forEach(function(Ot){it[++ct]=[Ot,Ot]}),it}function q1(Z,ct,it){for(var Ot=it-1,Nt=Z.length;++Ot<Nt;)if(Z[Ot]===ct)return Ot;return-1}function W1(Z,ct,it){for(var Ot=it+1;Ot--;)if(Z[Ot]===ct)return Ot;return Ot}function Ri(Z){return Mi(Z)?z1(Z):M1(Z)}function qn(Z){return Mi(Z)?V1(Z):R1(Z)}function Wd(Z){for(var ct=Z.length;ct--&&pt.test(Z.charAt(ct)););return ct}var H1=nu(b1);function z1(Z){for(var ct=Kl.lastIndex=0;Kl.test(Z);)++ct;return ct}function V1(Z){return Z.match(Kl)||[]}function $1(Z){return Z.match(h1)||[]}var G1=function Z(ct){ct=ct==null?Ye:Oi.defaults(Ye.Object(),ct,Oi.pick(Ye,g1));var it=ct.Array,Ot=ct.Date,Nt=ct.Error,ie=ct.Function,je=ct.Math,he=ct.Object,au=ct.RegExp,Y1=ct.String,Cn=ct.TypeError,ko=it.prototype,K1=ie.prototype,Pi=he.prototype,Mo=ct["__core-js_shared__"],Ro=K1.toString,ae=Pi.hasOwnProperty,X1=0,Hd=function(){var o=/[^.]+$/.exec(Mo&&Mo.keys&&Mo.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Oo=Pi.toString,J1=Ro.call(he),Z1=Ye._,Q1=au("^"+Ro.call(ae).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Po=kd?ct.Buffer:e,Dr=ct.Symbol,Co=ct.Uint8Array,zd=Po?Po.allocUnsafe:e,Lo=qd(he.getPrototypeOf,he),Vd=he.create,$d=Pi.propertyIsEnumerable,To=ko.splice,Gd=Dr?Dr.isConcatSpreadable:e,hs=Dr?Dr.iterator:e,ei=Dr?Dr.toStringTag:e,Io=function(){try{var o=oi(he,"defineProperty");return o({},"",{}),o}catch{}}(),tw=ct.clearTimeout!==Ye.clearTimeout&&ct.clearTimeout,ew=Ot&&Ot.now!==Ye.Date.now&&Ot.now,nw=ct.setTimeout!==Ye.setTimeout&&ct.setTimeout,Bo=je.ceil,Do=je.floor,lu=he.getOwnPropertySymbols,rw=Po?Po.isBuffer:e,Yd=ct.isFinite,iw=ko.join,sw=qd(he.keys,he),Ue=je.max,Je=je.min,ow=Ot.now,aw=ct.parseInt,Kd=je.random,lw=ko.reverse,uu=oi(ct,"DataView"),ds=oi(ct,"Map"),cu=oi(ct,"Promise"),Ci=oi(ct,"Set"),ps=oi(ct,"WeakMap"),gs=oi(he,"create"),Fo=ps&&new ps,Li={},uw=ai(uu),cw=ai(ds),fw=ai(cu),hw=ai(Ci),dw=ai(ps),No=Dr?Dr.prototype:e,ms=No?No.valueOf:e,Xd=No?No.toString:e;function B(o){if(Pe(o)&&!qt(o)&&!(o instanceof Xt)){if(o instanceof Ln)return o;if(ae.call(o,"__wrapped__"))return Jp(o)}return new Ln(o)}var Ti=function(){function o(){}return function(u){if(!Me(u))return{};if(Vd)return Vd(u);o.prototype=u;var y=new o;return o.prototype=e,y}}();function jo(){}function Ln(o,u){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=e}B.templateSettings={escape:zl,evaluate:Zn,interpolate:bo,variable:"",imports:{_:B}},B.prototype=jo.prototype,B.prototype.constructor=B,Ln.prototype=Ti(jo.prototype),Ln.prototype.constructor=Ln;function Xt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ct,this.__views__=[]}function pw(){var o=new Xt(this.__wrapped__);return o.__actions__=an(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=an(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=an(this.__views__),o}function gw(){if(this.__filtered__){var o=new Xt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function mw(){var o=this.__wrapped__.value(),u=this.__dir__,y=qt(o),x=u<0,P=y?o.length:0,F=R2(0,P,this.__views__),H=F.start,$=F.end,tt=$-H,gt=x?$:H-1,vt=this.__iteratees__,wt=vt.length,Mt=0,Pt=Je(tt,this.__takeCount__);if(!y||!x&&P==tt&&Pt==tt)return _p(o,this.__actions__);var Bt=[];t:for(;tt--&&Mt<Pt;){gt+=u;for(var zt=-1,Dt=o[gt];++zt<wt;){var Gt=vt[zt],Zt=Gt.iteratee,wn=Gt.type,sn=Zt(Dt);if(wn==st)Dt=sn;else if(!sn){if(wn==dt)continue t;break t}}Bt[Mt++]=Dt}return Bt}Xt.prototype=Ti(jo.prototype),Xt.prototype.constructor=Xt;function ni(o){var u=-1,y=o==null?0:o.length;for(this.clear();++u<y;){var x=o[u];this.set(x[0],x[1])}}function yw(){this.__data__=gs?gs(null):{},this.size=0}function vw(o){var u=this.has(o)&&delete this.__data__[o];return this.size-=u?1:0,u}function bw(o){var u=this.__data__;if(gs){var y=u[o];return y===c?e:y}return ae.call(u,o)?u[o]:e}function _w(o){var u=this.__data__;return gs?u[o]!==e:ae.call(u,o)}function ww(o,u){var y=this.__data__;return this.size+=this.has(o)?0:1,y[o]=gs&&u===e?c:u,this}ni.prototype.clear=yw,ni.prototype.delete=vw,ni.prototype.get=bw,ni.prototype.has=_w,ni.prototype.set=ww;function fr(o){var u=-1,y=o==null?0:o.length;for(this.clear();++u<y;){var x=o[u];this.set(x[0],x[1])}}function xw(){this.__data__=[],this.size=0}function Sw(o){var u=this.__data__,y=Uo(u,o);if(y<0)return!1;var x=u.length-1;return y==x?u.pop():To.call(u,y,1),--this.size,!0}function Ew(o){var u=this.__data__,y=Uo(u,o);return y<0?e:u[y][1]}function Aw(o){return Uo(this.__data__,o)>-1}function kw(o,u){var y=this.__data__,x=Uo(y,o);return x<0?(++this.size,y.push([o,u])):y[x][1]=u,this}fr.prototype.clear=xw,fr.prototype.delete=Sw,fr.prototype.get=Ew,fr.prototype.has=Aw,fr.prototype.set=kw;function hr(o){var u=-1,y=o==null?0:o.length;for(this.clear();++u<y;){var x=o[u];this.set(x[0],x[1])}}function Mw(){this.size=0,this.__data__={hash:new ni,map:new(ds||fr),string:new ni}}function Rw(o){var u=Zo(this,o).delete(o);return this.size-=u?1:0,u}function Ow(o){return Zo(this,o).get(o)}function Pw(o){return Zo(this,o).has(o)}function Cw(o,u){var y=Zo(this,o),x=y.size;return y.set(o,u),this.size+=y.size==x?0:1,this}hr.prototype.clear=Mw,hr.prototype.delete=Rw,hr.prototype.get=Ow,hr.prototype.has=Pw,hr.prototype.set=Cw;function ri(o){var u=-1,y=o==null?0:o.length;for(this.__data__=new hr;++u<y;)this.add(o[u])}function Lw(o){return this.__data__.set(o,c),this}function Tw(o){return this.__data__.has(o)}ri.prototype.add=ri.prototype.push=Lw,ri.prototype.has=Tw;function Wn(o){var u=this.__data__=new fr(o);this.size=u.size}function Iw(){this.__data__=new fr,this.size=0}function Bw(o){var u=this.__data__,y=u.delete(o);return this.size=u.size,y}function Dw(o){return this.__data__.get(o)}function Fw(o){return this.__data__.has(o)}function Nw(o,u){var y=this.__data__;if(y instanceof fr){var x=y.__data__;if(!ds||x.length<i-1)return x.push([o,u]),this.size=++y.size,this;y=this.__data__=new hr(x)}return y.set(o,u),this.size=y.size,this}Wn.prototype.clear=Iw,Wn.prototype.delete=Bw,Wn.prototype.get=Dw,Wn.prototype.has=Fw,Wn.prototype.set=Nw;function Jd(o,u){var y=qt(o),x=!y&&li(o),P=!y&&!x&&qr(o),F=!y&&!x&&!P&&Fi(o),H=y||x||P||F,$=H?iu(o.length,Y1):[],tt=$.length;for(var gt in o)(u||ae.call(o,gt))&&!(H&&(gt=="length"||P&&(gt=="offset"||gt=="parent")||F&&(gt=="buffer"||gt=="byteLength"||gt=="byteOffset")||mr(gt,tt)))&&$.push(gt);return $}function Zd(o){var u=o.length;return u?o[wu(0,u-1)]:e}function jw(o,u){return Qo(an(o),ii(u,0,o.length))}function Uw(o){return Qo(an(o))}function fu(o,u,y){(y!==e&&!Hn(o[u],y)||y===e&&!(u in o))&&dr(o,u,y)}function ys(o,u,y){var x=o[u];(!(ae.call(o,u)&&Hn(x,y))||y===e&&!(u in o))&&dr(o,u,y)}function Uo(o,u){for(var y=o.length;y--;)if(Hn(o[y][0],u))return y;return-1}function qw(o,u,y,x){return Fr(o,function(P,F,H){u(x,P,y(P),H)}),x}function Qd(o,u){return o&&tr(u,Ve(u),o)}function Ww(o,u){return o&&tr(u,un(u),o)}function dr(o,u,y){u=="__proto__"&&Io?Io(o,u,{configurable:!0,enumerable:!0,value:y,writable:!0}):o[u]=y}function hu(o,u){for(var y=-1,x=u.length,P=it(x),F=o==null;++y<x;)P[y]=F?e:$u(o,u[y]);return P}function ii(o,u,y){return o===o&&(y!==e&&(o=o<=y?o:y),u!==e&&(o=o>=u?o:u)),o}function Tn(o,u,y,x,P,F){var H,$=u&g,tt=u&d,gt=u&m;if(y&&(H=P?y(o,x,P,F):y(o)),H!==e)return H;if(!Me(o))return o;var vt=qt(o);if(vt){if(H=P2(o),!$)return an(o,H)}else{var wt=Ze(o),Mt=wt==j||wt==ut;if(qr(o))return Sp(o,$);if(wt==Tt||wt==ot||Mt&&!P){if(H=tt||Mt?{}:Wp(o),!$)return tt?b2(o,Ww(H,o)):v2(o,Qd(H,o))}else{if(!ge[wt])return P?o:{};H=C2(o,wt,$)}}F||(F=new Wn);var Pt=F.get(o);if(Pt)return Pt;F.set(o,H),yg(o)?o.forEach(function(Dt){H.add(Tn(Dt,u,y,Dt,o,F))}):gg(o)&&o.forEach(function(Dt,Gt){H.set(Gt,Tn(Dt,u,y,Gt,o,F))});var Bt=gt?tt?Lu:Cu:tt?un:Ve,zt=vt?e:Bt(o);return Pn(zt||o,function(Dt,Gt){zt&&(Gt=Dt,Dt=o[Gt]),ys(H,Gt,Tn(Dt,u,y,Gt,o,F))}),H}function Hw(o){var u=Ve(o);return function(y){return tp(y,o,u)}}function tp(o,u,y){var x=y.length;if(o==null)return!x;for(o=he(o);x--;){var P=y[x],F=u[P],H=o[P];if(H===e&&!(P in o)||!F(H))return!1}return!0}function ep(o,u,y){if(typeof o!="function")throw new Cn(a);return Es(function(){o.apply(e,y)},u)}function vs(o,u,y,x){var P=-1,F=So,H=!0,$=o.length,tt=[],gt=u.length;if(!$)return tt;y&&(u=Se(u,vn(y))),x?(F=Zl,H=!1):u.length>=i&&(F=fs,H=!1,u=new ri(u));t:for(;++P<$;){var vt=o[P],wt=y==null?vt:y(vt);if(vt=x||vt!==0?vt:0,H&&wt===wt){for(var Mt=gt;Mt--;)if(u[Mt]===wt)continue t;tt.push(vt)}else F(u,wt,x)||tt.push(vt)}return tt}var Fr=Rp(Qn),np=Rp(pu,!0);function zw(o,u){var y=!0;return Fr(o,function(x,P,F){return y=!!u(x,P,F),y}),y}function qo(o,u,y){for(var x=-1,P=o.length;++x<P;){var F=o[x],H=u(F);if(H!=null&&($===e?H===H&&!_n(H):y(H,$)))var $=H,tt=F}return tt}function Vw(o,u,y,x){var P=o.length;for(y=Ht(y),y<0&&(y=-y>P?0:P+y),x=x===e||x>P?P:Ht(x),x<0&&(x+=P),x=y>x?0:bg(x);y<x;)o[y++]=u;return o}function rp(o,u){var y=[];return Fr(o,function(x,P,F){u(x,P,F)&&y.push(x)}),y}function Ke(o,u,y,x,P){var F=-1,H=o.length;for(y||(y=T2),P||(P=[]);++F<H;){var $=o[F];u>0&&y($)?u>1?Ke($,u-1,y,x,P):Ir(P,$):x||(P[P.length]=$)}return P}var du=Op(),ip=Op(!0);function Qn(o,u){return o&&du(o,u,Ve)}function pu(o,u){return o&&ip(o,u,Ve)}function Wo(o,u){return Tr(u,function(y){return yr(o[y])})}function si(o,u){u=jr(u,o);for(var y=0,x=u.length;o!=null&&y<x;)o=o[er(u[y++])];return y&&y==x?o:e}function sp(o,u,y){var x=u(o);return qt(o)?x:Ir(x,y(o))}function nn(o){return o==null?o===e?ze:Rt:ei&&ei in he(o)?M2(o):U2(o)}function gu(o,u){return o>u}function $w(o,u){return o!=null&&ae.call(o,u)}function Gw(o,u){return o!=null&&u in he(o)}function Yw(o,u,y){return o>=Je(u,y)&&o<Ue(u,y)}function mu(o,u,y){for(var x=y?Zl:So,P=o[0].length,F=o.length,H=F,$=it(F),tt=1/0,gt=[];H--;){var vt=o[H];H&&u&&(vt=Se(vt,vn(u))),tt=Je(vt.length,tt),$[H]=!y&&(u||P>=120&&vt.length>=120)?new ri(H&&vt):e}vt=o[0];var wt=-1,Mt=$[0];t:for(;++wt<P&>.length<tt;){var Pt=vt[wt],Bt=u?u(Pt):Pt;if(Pt=y||Pt!==0?Pt:0,!(Mt?fs(Mt,Bt):x(gt,Bt,y))){for(H=F;--H;){var zt=$[H];if(!(zt?fs(zt,Bt):x(o[H],Bt,y)))continue t}Mt&&Mt.push(Bt),gt.push(Pt)}}return gt}function Kw(o,u,y,x){return Qn(o,function(P,F,H){u(x,y(P),F,H)}),x}function bs(o,u,y){u=jr(u,o),o=$p(o,u);var x=o==null?o:o[er(Bn(u))];return x==null?e:yn(x,o,y)}function op(o){return Pe(o)&&nn(o)==ot}function Xw(o){return Pe(o)&&nn(o)==Ge}function Jw(o){return Pe(o)&&nn(o)==mt}function _s(o,u,y,x,P){return o===u?!0:o==null||u==null||!Pe(o)&&!Pe(u)?o!==o&&u!==u:Zw(o,u,y,x,_s,P)}function Zw(o,u,y,x,P,F){var H=qt(o),$=qt(u),tt=H?V:Ze(o),gt=$?V:Ze(u);tt=tt==ot?Tt:tt,gt=gt==ot?Tt:gt;var vt=tt==Tt,wt=gt==Tt,Mt=tt==gt;if(Mt&&qr(o)){if(!qr(u))return!1;H=!0,vt=!1}if(Mt&&!vt)return F||(F=new Wn),H||Fi(o)?jp(o,u,y,x,P,F):A2(o,u,tt,y,x,P,F);if(!(y&p)){var Pt=vt&&ae.call(o,"__wrapped__"),Bt=wt&&ae.call(u,"__wrapped__");if(Pt||Bt){var zt=Pt?o.value():o,Dt=Bt?u.value():u;return F||(F=new Wn),P(zt,Dt,y,x,F)}}return Mt?(F||(F=new Wn),k2(o,u,y,x,P,F)):!1}function Qw(o){return Pe(o)&&Ze(o)==St}function yu(o,u,y,x){var P=y.length,F=P,H=!x;if(o==null)return!F;for(o=he(o);P--;){var $=y[P];if(H&&$[2]?$[1]!==o[$[0]]:!($[0]in o))return!1}for(;++P<F;){$=y[P];var tt=$[0],gt=o[tt],vt=$[1];if(H&&$[2]){if(gt===e&&!(tt in o))return!1}else{var wt=new Wn;if(x)var Mt=x(gt,vt,tt,o,u,wt);if(!(Mt===e?_s(vt,gt,p|v,x,wt):Mt))return!1}}return!0}function ap(o){if(!Me(o)||B2(o))return!1;var u=yr(o)?Q1:H_;return u.test(ai(o))}function t2(o){return Pe(o)&&nn(o)==Oe}function e2(o){return Pe(o)&&Ze(o)==ue}function n2(o){return Pe(o)&&sa(o.length)&&!!ve[nn(o)]}function lp(o){return typeof o=="function"?o:o==null?cn:typeof o=="object"?qt(o)?fp(o[0],o[1]):cp(o):Pg(o)}function vu(o){if(!Ss(o))return sw(o);var u=[];for(var y in he(o))ae.call(o,y)&&y!="constructor"&&u.push(y);return u}function r2(o){if(!Me(o))return j2(o);var u=Ss(o),y=[];for(var x in o)x=="constructor"&&(u||!ae.call(o,x))||y.push(x);return y}function bu(o,u){return o<u}function up(o,u){var y=-1,x=ln(o)?it(o.length):[];return Fr(o,function(P,F,H){x[++y]=u(P,F,H)}),x}function cp(o){var u=Iu(o);return u.length==1&&u[0][2]?zp(u[0][0],u[0][1]):function(y){return y===o||yu(y,o,u)}}function fp(o,u){return Du(o)&&Hp(u)?zp(er(o),u):function(y){var x=$u(y,o);return x===e&&x===u?Gu(y,o):_s(u,x,p|v)}}function Ho(o,u,y,x,P){o!==u&&du(u,function(F,H){if(P||(P=new Wn),Me(F))i2(o,u,H,y,Ho,x,P);else{var $=x?x(Nu(o,H),F,H+"",o,u,P):e;$===e&&($=F),fu(o,H,$)}},un)}function i2(o,u,y,x,P,F,H){var $=Nu(o,y),tt=Nu(u,y),gt=H.get(tt);if(gt){fu(o,y,gt);return}var vt=F?F($,tt,y+"",o,u,H):e,wt=vt===e;if(wt){var Mt=qt(tt),Pt=!Mt&&qr(tt),Bt=!Mt&&!Pt&&Fi(tt);vt=tt,Mt||Pt||Bt?qt($)?vt=$:Le($)?vt=an($):Pt?(wt=!1,vt=Sp(tt,!0)):Bt?(wt=!1,vt=Ep(tt,!0)):vt=[]:As(tt)||li(tt)?(vt=$,li($)?vt=_g($):(!Me($)||yr($))&&(vt=Wp(tt))):wt=!1}wt&&(H.set(tt,vt),P(vt,tt,x,F,H),H.delete(tt)),fu(o,y,vt)}function hp(o,u){var y=o.length;if(y)return u+=u<0?y:0,mr(u,y)?o[u]:e}function dp(o,u,y){u.length?u=Se(u,function(F){return qt(F)?function(H){return si(H,F.length===1?F[0]:F)}:F}):u=[cn];var x=-1;u=Se(u,vn(It()));var P=up(o,function(F,H,$){var tt=Se(u,function(gt){return gt(F)});return{criteria:tt,index:++x,value:F}});return C1(P,function(F,H){return y2(F,H,y)})}function s2(o,u){return pp(o,u,function(y,x){return Gu(o,x)})}function pp(o,u,y){for(var x=-1,P=u.length,F={};++x<P;){var H=u[x],$=si(o,H);y($,H)&&ws(F,jr(H,o),$)}return F}function o2(o){return function(u){return si(u,o)}}function _u(o,u,y,x){var P=x?P1:ki,F=-1,H=u.length,$=o;for(o===u&&(u=an(u)),y&&($=Se(o,vn(y)));++F<H;)for(var tt=0,gt=u[F],vt=y?y(gt):gt;(tt=P($,vt,tt,x))>-1;)$!==o&&To.call($,tt,1),To.call(o,tt,1);return o}function gp(o,u){for(var y=o?u.length:0,x=y-1;y--;){var P=u[y];if(y==x||P!==F){var F=P;mr(P)?To.call(o,P,1):Eu(o,P)}}return o}function wu(o,u){return o+Do(Kd()*(u-o+1))}function a2(o,u,y,x){for(var P=-1,F=Ue(Bo((u-o)/(y||1)),0),H=it(F);F--;)H[x?F:++P]=o,o+=y;return H}function xu(o,u){var y="";if(!o||u<1||u>bt)return y;do u%2&&(y+=o),u=Do(u/2),u&&(o+=o);while(u);return y}function $t(o,u){return ju(Vp(o,u,cn),o+"")}function l2(o){return Zd(Ni(o))}function u2(o,u){var y=Ni(o);return Qo(y,ii(u,0,y.length))}function ws(o,u,y,x){if(!Me(o))return o;u=jr(u,o);for(var P=-1,F=u.length,H=F-1,$=o;$!=null&&++P<F;){var tt=er(u[P]),gt=y;if(tt==="__proto__"||tt==="constructor"||tt==="prototype")return o;if(P!=H){var vt=$[tt];gt=x?x(vt,tt,$):e,gt===e&&(gt=Me(vt)?vt:mr(u[P+1])?[]:{})}ys($,tt,gt),$=$[tt]}return o}var mp=Fo?function(o,u){return Fo.set(o,u),o}:cn,c2=Io?function(o,u){return Io(o,"toString",{configurable:!0,enumerable:!1,value:Ku(u),writable:!0})}:cn;function f2(o){return Qo(Ni(o))}function In(o,u,y){var x=-1,P=o.length;u<0&&(u=-u>P?0:P+u),y=y>P?P:y,y<0&&(y+=P),P=u>y?0:y-u>>>0,u>>>=0;for(var F=it(P);++x<P;)F[x]=o[x+u];return F}function h2(o,u){var y;return Fr(o,function(x,P,F){return y=u(x,P,F),!y}),!!y}function zo(o,u,y){var x=0,P=o==null?x:o.length;if(typeof u=="number"&&u===u&&P<=Q){for(;x<P;){var F=x+P>>>1,H=o[F];H!==null&&!_n(H)&&(y?H<=u:H<u)?x=F+1:P=F}return P}return Su(o,u,cn,y)}function Su(o,u,y,x){var P=0,F=o==null?0:o.length;if(F===0)return 0;u=y(u);for(var H=u!==u,$=u===null,tt=_n(u),gt=u===e;P<F;){var vt=Do((P+F)/2),wt=y(o[vt]),Mt=wt!==e,Pt=wt===null,Bt=wt===wt,zt=_n(wt);if(H)var Dt=x||Bt;else gt?Dt=Bt&&(x||Mt):$?Dt=Bt&&Mt&&(x||!Pt):tt?Dt=Bt&&Mt&&!Pt&&(x||!zt):Pt||zt?Dt=!1:Dt=x?wt<=u:wt<u;Dt?P=vt+1:F=vt}return Je(F,Lt)}function yp(o,u){for(var y=-1,x=o.length,P=0,F=[];++y<x;){var H=o[y],$=u?u(H):H;if(!y||!Hn($,tt)){var tt=$;F[P++]=H===0?0:H}}return F}function vp(o){return typeof o=="number"?o:_n(o)?kt:+o}function bn(o){if(typeof o=="string")return o;if(qt(o))return Se(o,bn)+"";if(_n(o))return Xd?Xd.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function Nr(o,u,y){var x=-1,P=So,F=o.length,H=!0,$=[],tt=$;if(y)H=!1,P=Zl;else if(F>=i){var gt=u?null:S2(o);if(gt)return Ao(gt);H=!1,P=fs,tt=new ri}else tt=u?[]:$;t:for(;++x<F;){var vt=o[x],wt=u?u(vt):vt;if(vt=y||vt!==0?vt:0,H&&wt===wt){for(var Mt=tt.length;Mt--;)if(tt[Mt]===wt)continue t;u&&tt.push(wt),$.push(vt)}else P(tt,wt,y)||(tt!==$&&tt.push(wt),$.push(vt))}return $}function Eu(o,u){return u=jr(u,o),o=$p(o,u),o==null||delete o[er(Bn(u))]}function bp(o,u,y,x){return ws(o,u,y(si(o,u)),x)}function Vo(o,u,y,x){for(var P=o.length,F=x?P:-1;(x?F--:++F<P)&&u(o[F],F,o););return y?In(o,x?0:F,x?F+1:P):In(o,x?F+1:0,x?P:F)}function _p(o,u){var y=o;return y instanceof Xt&&(y=y.value()),Ql(u,function(x,P){return P.func.apply(P.thisArg,Ir([x],P.args))},y)}function Au(o,u,y){var x=o.length;if(x<2)return x?Nr(o[0]):[];for(var P=-1,F=it(x);++P<x;)for(var H=o[P],$=-1;++$<x;)$!=P&&(F[P]=vs(F[P]||H,o[$],u,y));return Nr(Ke(F,1),u,y)}function wp(o,u,y){for(var x=-1,P=o.length,F=u.length,H={};++x<P;){var $=x<F?u[x]:e;y(H,o[x],$)}return H}function ku(o){return Le(o)?o:[]}function Mu(o){return typeof o=="function"?o:cn}function jr(o,u){return qt(o)?o:Du(o,u)?[o]:Xp(se(o))}var d2=$t;function Ur(o,u,y){var x=o.length;return y=y===e?x:y,!u&&y>=x?o:In(o,u,y)}var xp=tw||function(o){return Ye.clearTimeout(o)};function Sp(o,u){if(u)return o.slice();var y=o.length,x=zd?zd(y):new o.constructor(y);return o.copy(x),x}function Ru(o){var u=new o.constructor(o.byteLength);return new Co(u).set(new Co(o)),u}function p2(o,u){var y=u?Ru(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.byteLength)}function g2(o){var u=new o.constructor(o.source,od.exec(o));return u.lastIndex=o.lastIndex,u}function m2(o){return ms?he(ms.call(o)):{}}function Ep(o,u){var y=u?Ru(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.length)}function Ap(o,u){if(o!==u){var y=o!==e,x=o===null,P=o===o,F=_n(o),H=u!==e,$=u===null,tt=u===u,gt=_n(u);if(!$&&!gt&&!F&&o>u||F&&H&&tt&&!$&&!gt||x&&H&&tt||!y&&tt||!P)return 1;if(!x&&!F&&!gt&&o<u||gt&&y&&P&&!x&&!F||$&&y&&P||!H&&P||!tt)return-1}return 0}function y2(o,u,y){for(var x=-1,P=o.criteria,F=u.criteria,H=P.length,$=y.length;++x<H;){var tt=Ap(P[x],F[x]);if(tt){if(x>=$)return tt;var gt=y[x];return tt*(gt=="desc"?-1:1)}}return o.index-u.index}function kp(o,u,y,x){for(var P=-1,F=o.length,H=y.length,$=-1,tt=u.length,gt=Ue(F-H,0),vt=it(tt+gt),wt=!x;++$<tt;)vt[$]=u[$];for(;++P<H;)(wt||P<F)&&(vt[y[P]]=o[P]);for(;gt--;)vt[$++]=o[P++];return vt}function Mp(o,u,y,x){for(var P=-1,F=o.length,H=-1,$=y.length,tt=-1,gt=u.length,vt=Ue(F-$,0),wt=it(vt+gt),Mt=!x;++P<vt;)wt[P]=o[P];for(var Pt=P;++tt<gt;)wt[Pt+tt]=u[tt];for(;++H<$;)(Mt||P<F)&&(wt[Pt+y[H]]=o[P++]);return wt}function an(o,u){var y=-1,x=o.length;for(u||(u=it(x));++y<x;)u[y]=o[y];return u}function tr(o,u,y,x){var P=!y;y||(y={});for(var F=-1,H=u.length;++F<H;){var $=u[F],tt=x?x(y[$],o[$],$,y,o):e;tt===e&&(tt=o[$]),P?dr(y,$,tt):ys(y,$,tt)}return y}function v2(o,u){return tr(o,Bu(o),u)}function b2(o,u){return tr(o,Up(o),u)}function $o(o,u){return function(y,x){var P=qt(y)?E1:qw,F=u?u():{};return P(y,o,It(x,2),F)}}function Ii(o){return $t(function(u,y){var x=-1,P=y.length,F=P>1?y[P-1]:e,H=P>2?y[2]:e;for(F=o.length>3&&typeof F=="function"?(P--,F):e,H&&rn(y[0],y[1],H)&&(F=P<3?e:F,P=1),u=he(u);++x<P;){var $=y[x];$&&o(u,$,x,F)}return u})}function Rp(o,u){return function(y,x){if(y==null)return y;if(!ln(y))return o(y,x);for(var P=y.length,F=u?P:-1,H=he(y);(u?F--:++F<P)&&x(H[F],F,H)!==!1;);return y}}function Op(o){return function(u,y,x){for(var P=-1,F=he(u),H=x(u),$=H.length;$--;){var tt=H[o?$:++P];if(y(F[tt],tt,F)===!1)break}return u}}function _2(o,u,y){var x=u&_,P=xs(o);function F(){var H=this&&this!==Ye&&this instanceof F?P:o;return H.apply(x?y:this,arguments)}return F}function Pp(o){return function(u){u=se(u);var y=Mi(u)?qn(u):e,x=y?y[0]:u.charAt(0),P=y?Ur(y,1).join(""):u.slice(1);return x[o]()+P}}function Bi(o){return function(u){return Ql(Rg(Mg(u).replace(c1,"")),o,"")}}function xs(o){return function(){var u=arguments;switch(u.length){case 0:return new o;case 1:return new o(u[0]);case 2:return new o(u[0],u[1]);case 3:return new o(u[0],u[1],u[2]);case 4:return new o(u[0],u[1],u[2],u[3]);case 5:return new o(u[0],u[1],u[2],u[3],u[4]);case 6:return new o(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new o(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var y=Ti(o.prototype),x=o.apply(y,u);return Me(x)?x:y}}function w2(o,u,y){var x=xs(o);function P(){for(var F=arguments.length,H=it(F),$=F,tt=Di(P);$--;)H[$]=arguments[$];var gt=F<3&&H[0]!==tt&&H[F-1]!==tt?[]:Br(H,tt);if(F-=gt.length,F<y)return Bp(o,u,Go,P.placeholder,e,H,gt,e,e,y-F);var vt=this&&this!==Ye&&this instanceof P?x:o;return yn(vt,this,H)}return P}function Cp(o){return function(u,y,x){var P=he(u);if(!ln(u)){var F=It(y,3);u=Ve(u),y=function($){return F(P[$],$,P)}}var H=o(u,y,x);return H>-1?P[F?u[H]:H]:e}}function Lp(o){return gr(function(u){var y=u.length,x=y,P=Ln.prototype.thru;for(o&&u.reverse();x--;){var F=u[x];if(typeof F!="function")throw new Cn(a);if(P&&!H&&Jo(F)=="wrapper")var H=new Ln([],!0)}for(x=H?x:y;++x<y;){F=u[x];var $=Jo(F),tt=$=="wrapper"?Tu(F):e;tt&&Fu(tt[0])&&tt[1]==(L|O|k|N)&&!tt[4].length&&tt[9]==1?H=H[Jo(tt[0])].apply(H,tt[3]):H=F.length==1&&Fu(F)?H[$]():H.thru(F)}return function(){var gt=arguments,vt=gt[0];if(H&>.length==1&&qt(vt))return H.plant(vt).value();for(var wt=0,Mt=y?u[wt].apply(this,gt):vt;++wt<y;)Mt=u[wt].call(this,Mt);return Mt}})}function Go(o,u,y,x,P,F,H,$,tt,gt){var vt=u&L,wt=u&_,Mt=u&b,Pt=u&(O|w),Bt=u&Y,zt=Mt?e:xs(o);function Dt(){for(var Gt=arguments.length,Zt=it(Gt),wn=Gt;wn--;)Zt[wn]=arguments[wn];if(Pt)var sn=Di(Dt),xn=T1(Zt,sn);if(x&&(Zt=kp(Zt,x,P,Pt)),F&&(Zt=Mp(Zt,F,H,Pt)),Gt-=xn,Pt&&Gt<gt){var Te=Br(Zt,sn);return Bp(o,u,Go,Dt.placeholder,y,Zt,Te,$,tt,gt-Gt)}var zn=wt?y:this,br=Mt?zn[o]:o;return Gt=Zt.length,$?Zt=q2(Zt,$):Bt&&Gt>1&&Zt.reverse(),vt&&tt<Gt&&(Zt.length=tt),this&&this!==Ye&&this instanceof Dt&&(br=zt||xs(br)),br.apply(zn,Zt)}return Dt}function Tp(o,u){return function(y,x){return Kw(y,o,u(x),{})}}function Yo(o,u){return function(y,x){var P;if(y===e&&x===e)return u;if(y!==e&&(P=y),x!==e){if(P===e)return x;typeof y=="string"||typeof x=="string"?(y=bn(y),x=bn(x)):(y=vp(y),x=vp(x)),P=o(y,x)}return P}}function Ou(o){return gr(function(u){return u=Se(u,vn(It())),$t(function(y){var x=this;return o(u,function(P){return yn(P,x,y)})})})}function Ko(o,u){u=u===e?" ":bn(u);var y=u.length;if(y<2)return y?xu(u,o):u;var x=xu(u,Bo(o/Ri(u)));return Mi(u)?Ur(qn(x),0,o).join(""):x.slice(0,o)}function x2(o,u,y,x){var P=u&_,F=xs(o);function H(){for(var $=-1,tt=arguments.length,gt=-1,vt=x.length,wt=it(vt+tt),Mt=this&&this!==Ye&&this instanceof H?F:o;++gt<vt;)wt[gt]=x[gt];for(;tt--;)wt[gt++]=arguments[++$];return yn(Mt,P?y:this,wt)}return H}function Ip(o){return function(u,y,x){return x&&typeof x!="number"&&rn(u,y,x)&&(y=x=e),u=vr(u),y===e?(y=u,u=0):y=vr(y),x=x===e?u<y?1:-1:vr(x),a2(u,y,x,o)}}function Xo(o){return function(u,y){return typeof u=="string"&&typeof y=="string"||(u=Dn(u),y=Dn(y)),o(u,y)}}function Bp(o,u,y,x,P,F,H,$,tt,gt){var vt=u&O,wt=vt?H:e,Mt=vt?e:H,Pt=vt?F:e,Bt=vt?e:F;u|=vt?k:C,u&=~(vt?C:k),u&S||(u&=-4);var zt=[o,u,P,Pt,wt,Bt,Mt,$,tt,gt],Dt=y.apply(e,zt);return Fu(o)&&Gp(Dt,zt),Dt.placeholder=x,Yp(Dt,o,u)}function Pu(o){var u=je[o];return function(y,x){if(y=Dn(y),x=x==null?0:Je(Ht(x),292),x&&Yd(y)){var P=(se(y)+"e").split("e"),F=u(P[0]+"e"+(+P[1]+x));return P=(se(F)+"e").split("e"),+(P[0]+"e"+(+P[1]-x))}return u(y)}}var S2=Ci&&1/Ao(new Ci([,-0]))[1]==_t?function(o){return new Ci(o)}:Zu;function Dp(o){return function(u){var y=Ze(u);return y==St?ou(u):y==ue?U1(u):L1(u,o(u))}}function pr(o,u,y,x,P,F,H,$){var tt=u&b;if(!tt&&typeof o!="function")throw new Cn(a);var gt=x?x.length:0;if(gt||(u&=-97,x=P=e),H=H===e?H:Ue(Ht(H),0),$=$===e?$:Ht($),gt-=P?P.length:0,u&C){var vt=x,wt=P;x=P=e}var Mt=tt?e:Tu(o),Pt=[o,u,y,x,P,vt,wt,F,H,$];if(Mt&&N2(Pt,Mt),o=Pt[0],u=Pt[1],y=Pt[2],x=Pt[3],P=Pt[4],$=Pt[9]=Pt[9]===e?tt?0:o.length:Ue(Pt[9]-gt,0),!$&&u&(O|w)&&(u&=-25),!u||u==_)var Bt=_2(o,u,y);else u==O||u==w?Bt=w2(o,u,$):(u==k||u==(_|k))&&!P.length?Bt=x2(o,u,y,x):Bt=Go.apply(e,Pt);var zt=Mt?mp:Gp;return Yp(zt(Bt,Pt),o,u)}function Fp(o,u,y,x){return o===e||Hn(o,Pi[y])&&!ae.call(x,y)?u:o}function Np(o,u,y,x,P,F){return Me(o)&&Me(u)&&(F.set(u,o),Ho(o,u,e,Np,F),F.delete(u)),o}function E2(o){return As(o)?e:o}function jp(o,u,y,x,P,F){var H=y&p,$=o.length,tt=u.length;if($!=tt&&!(H&&tt>$))return!1;var gt=F.get(o),vt=F.get(u);if(gt&&vt)return gt==u&&vt==o;var wt=-1,Mt=!0,Pt=y&v?new ri:e;for(F.set(o,u),F.set(u,o);++wt<$;){var Bt=o[wt],zt=u[wt];if(x)var Dt=H?x(zt,Bt,wt,u,o,F):x(Bt,zt,wt,o,u,F);if(Dt!==e){if(Dt)continue;Mt=!1;break}if(Pt){if(!tu(u,function(Gt,Zt){if(!fs(Pt,Zt)&&(Bt===Gt||P(Bt,Gt,y,x,F)))return Pt.push(Zt)})){Mt=!1;break}}else if(!(Bt===zt||P(Bt,zt,y,x,F))){Mt=!1;break}}return F.delete(o),F.delete(u),Mt}function A2(o,u,y,x,P,F,H){switch(y){case ye:if(o.byteLength!=u.byteLength||o.byteOffset!=u.byteOffset)return!1;o=o.buffer,u=u.buffer;case Ge:return!(o.byteLength!=u.byteLength||!F(new Co(o),new Co(u)));case lt:case mt:case Ft:return Hn(+o,+u);case D:return o.name==u.name&&o.message==u.message;case Oe:case te:return o==u+"";case St:var $=ou;case ue:var tt=x&p;if($||($=Ao),o.size!=u.size&&!tt)return!1;var gt=H.get(o);if(gt)return gt==u;x|=v,H.set(o,u);var vt=jp($(o),$(u),x,P,F,H);return H.delete(o),vt;case re:if(ms)return ms.call(o)==ms.call(u)}return!1}function k2(o,u,y,x,P,F){var H=y&p,$=Cu(o),tt=$.length,gt=Cu(u),vt=gt.length;if(tt!=vt&&!H)return!1;for(var wt=tt;wt--;){var Mt=$[wt];if(!(H?Mt in u:ae.call(u,Mt)))return!1}var Pt=F.get(o),Bt=F.get(u);if(Pt&&Bt)return Pt==u&&Bt==o;var zt=!0;F.set(o,u),F.set(u,o);for(var Dt=H;++wt<tt;){Mt=$[wt];var Gt=o[Mt],Zt=u[Mt];if(x)var wn=H?x(Zt,Gt,Mt,u,o,F):x(Gt,Zt,Mt,o,u,F);if(!(wn===e?Gt===Zt||P(Gt,Zt,y,x,F):wn)){zt=!1;break}Dt||(Dt=Mt=="constructor")}if(zt&&!Dt){var sn=o.constructor,xn=u.constructor;sn!=xn&&"constructor"in o&&"constructor"in u&&!(typeof sn=="function"&&sn instanceof sn&&typeof xn=="function"&&xn instanceof xn)&&(zt=!1)}return F.delete(o),F.delete(u),zt}function gr(o){return ju(Vp(o,e,tg),o+"")}function Cu(o){return sp(o,Ve,Bu)}function Lu(o){return sp(o,un,Up)}var Tu=Fo?function(o){return Fo.get(o)}:Zu;function Jo(o){for(var u=o.name+"",y=Li[u],x=ae.call(Li,u)?y.length:0;x--;){var P=y[x],F=P.func;if(F==null||F==o)return P.name}return u}function Di(o){var u=ae.call(B,"placeholder")?B:o;return u.placeholder}function It(){var o=B.iteratee||Xu;return o=o===Xu?lp:o,arguments.length?o(arguments[0],arguments[1]):o}function Zo(o,u){var y=o.__data__;return I2(u)?y[typeof u=="string"?"string":"hash"]:y.map}function Iu(o){for(var u=Ve(o),y=u.length;y--;){var x=u[y],P=o[x];u[y]=[x,P,Hp(P)]}return u}function oi(o,u){var y=F1(o,u);return ap(y)?y:e}function M2(o){var u=ae.call(o,ei),y=o[ei];try{o[ei]=e;var x=!0}catch{}var P=Oo.call(o);return x&&(u?o[ei]=y:delete o[ei]),P}var Bu=lu?function(o){return o==null?[]:(o=he(o),Tr(lu(o),function(u){return $d.call(o,u)}))}:Qu,Up=lu?function(o){for(var u=[];o;)Ir(u,Bu(o)),o=Lo(o);return u}:Qu,Ze=nn;(uu&&Ze(new uu(new ArrayBuffer(1)))!=ye||ds&&Ze(new ds)!=St||cu&&Ze(cu.resolve())!=Ne||Ci&&Ze(new Ci)!=ue||ps&&Ze(new ps)!=ke)&&(Ze=function(o){var u=nn(o),y=u==Tt?o.constructor:e,x=y?ai(y):"";if(x)switch(x){case uw:return ye;case cw:return St;case fw:return Ne;case hw:return ue;case dw:return ke}return u});function R2(o,u,y){for(var x=-1,P=y.length;++x<P;){var F=y[x],H=F.size;switch(F.type){case"drop":o+=H;break;case"dropRight":u-=H;break;case"take":u=Je(u,o+H);break;case"takeRight":o=Ue(o,u-H);break}}return{start:o,end:u}}function O2(o){var u=o.match(we);return u?u[1].split(pe):[]}function qp(o,u,y){u=jr(u,o);for(var x=-1,P=u.length,F=!1;++x<P;){var H=er(u[x]);if(!(F=o!=null&&y(o,H)))break;o=o[H]}return F||++x!=P?F:(P=o==null?0:o.length,!!P&&sa(P)&&mr(H,P)&&(qt(o)||li(o)))}function P2(o){var u=o.length,y=new o.constructor(u);return u&&typeof o[0]=="string"&&ae.call(o,"index")&&(y.index=o.index,y.input=o.input),y}function Wp(o){return typeof o.constructor=="function"&&!Ss(o)?Ti(Lo(o)):{}}function C2(o,u,y){var x=o.constructor;switch(u){case Ge:return Ru(o);case lt:case mt:return new x(+o);case ye:return p2(o,y);case Mn:case T:case E:case M:case q:case K:case nt:case ht:case Ut:return Ep(o,y);case St:return new x;case Ft:case te:return new x(o);case Oe:return g2(o);case ue:return new x;case re:return m2(o)}}function L2(o,u){var y=u.length;if(!y)return o;var x=y-1;return u[x]=(y>1?"& ":"")+u[x],u=u.join(y>2?", ":" "),o.replace(Vt,`{
|
|
30
30
|
/* [wrapped with `+u+`] */
|
|
31
|
-
`)}function S2(o){return qt(o)||oi(o)||!!(jd&&o&&o[jd])}function pr(o,u){var y=typeof o;return u=u??bt,!!u&&(y=="number"||y!="symbol"&&I_.test(o))&&o>-1&&o%1==0&&o<u}function rn(o,u,y){if(!Re(y))return!1;var x=typeof u;return(x=="number"?ln(y)&&pr(u,y.length):x=="string"&&u in y)?qn(y[u],o):!1}function Ou(o,u){if(qt(o))return!1;var y=typeof o;return y=="number"||y=="symbol"||y=="boolean"||o==null||_n(o)?!0:E.test(o)||!B.test(o)||u!=null&&o in he(u)}function E2(o){var u=typeof o;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?o!=="__proto__":o===null}function Lu(o){var u=$o(o),y=I[u];if(typeof y!="function"||!(u in Xt.prototype))return!1;if(o===y)return!0;var x=Mu(y);return!!x&&o===x[0]}function A2(o){return!!Id&&Id in o}var k2=xo?gr:Ku;function bs(o){var u=o&&o.constructor,y=typeof u=="function"&&u.prototype||Mi;return o===y}function Ip(o){return o===o&&!Re(o)}function Dp(o,u){return function(y){return y==null?!1:y[o]===u&&(u!==e||o in he(y))}}function R2(o){var u=Zo(o,function(x){return y.size===h&&y.clear(),x}),y=u.cache;return u}function M2(o,u){var y=o[1],x=u[1],P=y|x,F=P<(b|_|L),H=x==L&&y==C||x==L&&y==N&&o[7].length<=u[8]||x==(L|N)&&u[7].length<=u[8]&&y==C;if(!(F||H))return o;x&b&&(o[2]=u[2],P|=y&b?0:A);var $=u[3];if($){var tt=o[3];o[3]=tt?vp(tt,$,u[4]):$,o[4]=tt?Tr(o[3],f):u[4]}return $=u[5],$&&(tt=o[5],o[5]=tt?bp(tt,$,u[6]):$,o[6]=tt?Tr(o[5],f):u[6]),$=u[7],$&&(o[7]=$),x&L&&(o[8]=o[8]==null?u[8]:Je(o[8],u[8])),o[9]==null&&(o[9]=u[9]),o[0]=u[0],o[1]=P,o}function C2(o){var u=[];if(o!=null)for(var y in he(o))u.push(y);return u}function P2(o){return Eo.call(o)}function Fp(o,u,y){return u=qe(u===e?o.length-1:u,0),function(){for(var x=arguments,P=-1,F=qe(x.length-u,0),H=it(F);++P<F;)H[P]=x[u+P];P=-1;for(var $=it(u+1);++P<u;)$[P]=x[P];return $[u]=y(H),yn(o,this,$)}}function Np(o,u){return u.length<2?o:ri(o,Bn(u,0,-1))}function O2(o,u){for(var y=o.length,x=Je(u.length,y),P=an(o);x--;){var F=u[x];o[x]=pr(F,y)?P[F]:e}return o}function Tu(o,u){if(!(u==="constructor"&&typeof o[u]=="function")&&u!="__proto__")return o[u]}var jp=qp(lp),_s=$1||function(o,u){return Ke.setTimeout(o,u)},Bu=qp(t2);function Up(o,u,y){var x=u+"";return Bu(o,x2(x,L2(b2(x),y)))}function qp(o){var u=0,y=0;return function(){var x=X1(),P=xt-(x-y);if(y=x,P>0){if(++u>=U)return arguments[0]}else u=0;return o.apply(e,arguments)}}function Yo(o,u){var y=-1,x=o.length,P=x-1;for(u=u===e?x:u;++y<u;){var F=mu(y,P),H=o[F];o[F]=o[y],o[y]=H}return o.length=u,o}var Wp=R2(function(o){var u=[];return o.charCodeAt(0)===46&&u.push(""),o.replace(R,function(y,x,P,F){u.push(P?F.replace(C_,"$1"):x||y)}),u});function Zn(o){if(typeof o=="string"||_n(o))return o;var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function si(o){if(o!=null){try{return So.call(o)}catch{}try{return o+""}catch{}}return""}function L2(o,u){return Pn(et,function(y){var x="_."+y[0];u&y[1]&&!vo(o,x)&&o.push(x)}),o.sort()}function Hp(o){if(o instanceof Xt)return o.clone();var u=new Ln(o.__wrapped__,o.__chain__);return u.__actions__=an(o.__actions__),u.__index__=o.__index__,u.__values__=o.__values__,u}function T2(o,u,y){(y?rn(o,u,y):u===e)?u=1:u=qe(Ht(u),0);var x=o==null?0:o.length;if(!x||u<1)return[];for(var P=0,F=0,H=it(Po(x/u));P<x;)H[F++]=Bn(o,P,P+=u);return H}function B2(o){for(var u=-1,y=o==null?0:o.length,x=0,P=[];++u<y;){var F=o[u];F&&(P[x++]=F)}return P}function I2(){var o=arguments.length;if(!o)return[];for(var u=it(o-1),y=arguments[0],x=o;x--;)u[x-1]=arguments[x];return Lr(qt(y)?an(y):[y],Xe(u,1))}var D2=$t(function(o,u){return Te(o)?ps(o,Xe(u,1,Te,!0)):[]}),F2=$t(function(o,u){var y=In(u);return Te(y)&&(y=e),Te(o)?ps(o,Xe(u,1,Te,!0),Bt(y,2)):[]}),N2=$t(function(o,u){var y=In(u);return Te(y)&&(y=e),Te(o)?ps(o,Xe(u,1,Te,!0),e,y):[]});function j2(o,u,y){var x=o==null?0:o.length;return x?(u=y||u===e?1:Ht(u),Bn(o,u<0?0:u,x)):[]}function U2(o,u,y){var x=o==null?0:o.length;return x?(u=y||u===e?1:Ht(u),u=x-u,Bn(o,0,u<0?0:u)):[]}function q2(o,u){return o&&o.length?Uo(o,Bt(u,3),!0,!0):[]}function W2(o,u){return o&&o.length?Uo(o,Bt(u,3),!0):[]}function H2(o,u,y,x){var P=o==null?0:o.length;return P?(y&&typeof y!="number"&&rn(o,u,y)&&(y=0,x=P),Iw(o,u,y,x)):[]}function zp(o,u,y){var x=o==null?0:o.length;if(!x)return-1;var P=y==null?0:Ht(y);return P<0&&(P=qe(x+P,0)),bo(o,Bt(u,3),P)}function Vp(o,u,y){var x=o==null?0:o.length;if(!x)return-1;var P=x-1;return y!==e&&(P=Ht(y),P=y<0?qe(x+P,0):Je(P,x-1)),bo(o,Bt(u,3),P,!0)}function $p(o){var u=o==null?0:o.length;return u?Xe(o,1):[]}function z2(o){var u=o==null?0:o.length;return u?Xe(o,_t):[]}function V2(o,u){var y=o==null?0:o.length;return y?(u=u===e?1:Ht(u),Xe(o,u)):[]}function $2(o){for(var u=-1,y=o==null?0:o.length,x={};++u<y;){var P=o[u];x[P[0]]=P[1]}return x}function Gp(o){return o&&o.length?o[0]:e}function G2(o,u,y){var x=o==null?0:o.length;if(!x)return-1;var P=y==null?0:Ht(y);return P<0&&(P=qe(x+P,0)),Ei(o,u,P)}function Y2(o){var u=o==null?0:o.length;return u?Bn(o,0,-1):[]}var K2=$t(function(o){var u=Se(o,wu);return u.length&&u[0]===o[0]?fu(u):[]}),X2=$t(function(o){var u=In(o),y=Se(o,wu);return u===In(y)?u=e:y.pop(),y.length&&y[0]===o[0]?fu(y,Bt(u,2)):[]}),J2=$t(function(o){var u=In(o),y=Se(o,wu);return u=typeof u=="function"?u:e,u&&y.pop(),y.length&&y[0]===o[0]?fu(y,e,u):[]});function Z2(o,u){return o==null?"":Y1.call(o,u)}function In(o){var u=o==null?0:o.length;return u?o[u-1]:e}function Q2(o,u,y){var x=o==null?0:o.length;if(!x)return-1;var P=x;return y!==e&&(P=Ht(y),P=P<0?qe(x+P,0):Je(P,x-1)),u===u?L1(o,u,P):bo(o,Rd,P,!0)}function tx(o,u){return o&&o.length?ip(o,Ht(u)):e}var ex=$t(Yp);function Yp(o,u){return o&&o.length&&u&&u.length?gu(o,u):o}function nx(o,u,y){return o&&o.length&&u&&u.length?gu(o,u,Bt(y,2)):o}function rx(o,u,y){return o&&o.length&&u&&u.length?gu(o,u,e,y):o}var ix=dr(function(o,u){var y=o==null?0:o.length,x=au(o,u);return ap(o,Se(u,function(P){return pr(P,y)?+P:P}).sort(yp)),x});function sx(o,u){var y=[];if(!(o&&o.length))return y;var x=-1,P=[],F=o.length;for(u=Bt(u,3);++x<F;){var H=o[x];u(H,x,o)&&(y.push(H),P.push(x))}return ap(o,P),y}function Iu(o){return o==null?o:Z1.call(o)}function ox(o,u,y){var x=o==null?0:o.length;return x?(y&&typeof y!="number"&&rn(o,u,y)?(u=0,y=x):(u=u==null?0:Ht(u),y=y===e?x:Ht(y)),Bn(o,u,y)):[]}function ax(o,u){return jo(o,u)}function lx(o,u,y){return vu(o,u,Bt(y,2))}function ux(o,u){var y=o==null?0:o.length;if(y){var x=jo(o,u);if(x<y&&qn(o[x],u))return x}return-1}function cx(o,u){return jo(o,u,!0)}function fx(o,u,y){return vu(o,u,Bt(y,2),!0)}function hx(o,u){var y=o==null?0:o.length;if(y){var x=jo(o,u,!0)-1;if(qn(o[x],u))return x}return-1}function dx(o){return o&&o.length?up(o):[]}function px(o,u){return o&&o.length?up(o,Bt(u,2)):[]}function gx(o){var u=o==null?0:o.length;return u?Bn(o,1,u):[]}function mx(o,u,y){return o&&o.length?(u=y||u===e?1:Ht(u),Bn(o,0,u<0?0:u)):[]}function yx(o,u,y){var x=o==null?0:o.length;return x?(u=y||u===e?1:Ht(u),u=x-u,Bn(o,u<0?0:u,x)):[]}function vx(o,u){return o&&o.length?Uo(o,Bt(u,3),!1,!0):[]}function bx(o,u){return o&&o.length?Uo(o,Bt(u,3)):[]}var _x=$t(function(o){return Dr(Xe(o,1,Te,!0))}),wx=$t(function(o){var u=In(o);return Te(u)&&(u=e),Dr(Xe(o,1,Te,!0),Bt(u,2))}),xx=$t(function(o){var u=In(o);return u=typeof u=="function"?u:e,Dr(Xe(o,1,Te,!0),e,u)});function Sx(o){return o&&o.length?Dr(o):[]}function Ex(o,u){return o&&o.length?Dr(o,Bt(u,2)):[]}function Ax(o,u){return u=typeof u=="function"?u:e,o&&o.length?Dr(o,e,u):[]}function Du(o){if(!(o&&o.length))return[];var u=0;return o=Or(o,function(y){if(Te(y))return u=qe(y.length,u),!0}),Ql(u,function(y){return Se(o,Xl(y))})}function Kp(o,u){if(!(o&&o.length))return[];var y=Du(o);return u==null?y:Se(y,function(x){return yn(u,e,x)})}var kx=$t(function(o,u){return Te(o)?ps(o,u):[]}),Rx=$t(function(o){return _u(Or(o,Te))}),Mx=$t(function(o){var u=In(o);return Te(u)&&(u=e),_u(Or(o,Te),Bt(u,2))}),Cx=$t(function(o){var u=In(o);return u=typeof u=="function"?u:e,_u(Or(o,Te),e,u)}),Px=$t(Du);function Ox(o,u){return dp(o||[],u||[],ds)}function Lx(o,u){return dp(o||[],u||[],ys)}var Tx=$t(function(o){var u=o.length,y=u>1?o[u-1]:e;return y=typeof y=="function"?(o.pop(),y):e,Kp(o,y)});function Xp(o){var u=I(o);return u.__chain__=!0,u}function Bx(o,u){return u(o),o}function Ko(o,u){return u(o)}var Ix=dr(function(o){var u=o.length,y=u?o[0]:0,x=this.__wrapped__,P=function(F){return au(F,o)};return u>1||this.__actions__.length||!(x instanceof Xt)||!pr(y)?this.thru(P):(x=x.slice(y,+y+(u?1:0)),x.__actions__.push({func:Ko,args:[P],thisArg:e}),new Ln(x,this.__chain__).thru(function(F){return u&&!F.length&&F.push(e),F}))});function Dx(){return Xp(this)}function Fx(){return new Ln(this.value(),this.__chain__)}function Nx(){this.__values__===e&&(this.__values__=cg(this.value()));var o=this.__index__>=this.__values__.length,u=o?e:this.__values__[this.__index__++];return{done:o,value:u}}function jx(){return this}function Ux(o){for(var u,y=this;y instanceof Bo;){var x=Hp(y);x.__index__=0,x.__values__=e,u?P.__wrapped__=x:u=x;var P=x;y=y.__wrapped__}return P.__wrapped__=o,u}function qx(){var o=this.__wrapped__;if(o instanceof Xt){var u=o;return this.__actions__.length&&(u=new Xt(this)),u=u.reverse(),u.__actions__.push({func:Ko,args:[Iu],thisArg:e}),new Ln(u,this.__chain__)}return this.thru(Iu)}function Wx(){return hp(this.__wrapped__,this.__actions__)}var Hx=qo(function(o,u,y){ae.call(o,y)?++o[y]:fr(o,y,1)});function zx(o,u,y){var x=qt(o)?Ad:Bw;return y&&rn(o,u,y)&&(u=e),x(o,Bt(u,3))}function Vx(o,u){var y=qt(o)?Or:Kd;return y(o,Bt(u,3))}var $x=Sp(zp),Gx=Sp(Vp);function Yx(o,u){return Xe(Xo(o,u),1)}function Kx(o,u){return Xe(Xo(o,u),_t)}function Xx(o,u,y){return y=y===e?1:Ht(y),Xe(Xo(o,u),y)}function Jp(o,u){var y=qt(o)?Pn:Ir;return y(o,Bt(u,3))}function Zp(o,u){var y=qt(o)?g1:Yd;return y(o,Bt(u,3))}var Jx=qo(function(o,u,y){ae.call(o,y)?o[y].push(u):fr(o,y,[u])});function Zx(o,u,y,x){o=ln(o)?o:Di(o),y=y&&!x?Ht(y):0;var P=o.length;return y<0&&(y=qe(P+y,0)),ea(o)?y<=P&&o.indexOf(u,y)>-1:!!P&&Ei(o,u,y)>-1}var Qx=$t(function(o,u,y){var x=-1,P=typeof u=="function",F=ln(o)?it(o.length):[];return Ir(o,function(H){F[++x]=P?yn(u,H,y):gs(H,u,y)}),F}),tS=qo(function(o,u,y){fr(o,y,u)});function Xo(o,u){var y=qt(o)?Se:ep;return y(o,Bt(u,3))}function eS(o,u,y,x){return o==null?[]:(qt(u)||(u=u==null?[]:[u]),y=x?e:y,qt(y)||(y=y==null?[]:[y]),sp(o,u,y))}var nS=qo(function(o,u,y){o[y?0:1].push(u)},function(){return[[],[]]});function rS(o,u,y){var x=qt(o)?Yl:Cd,P=arguments.length<3;return x(o,Bt(u,4),y,P,Ir)}function iS(o,u,y){var x=qt(o)?m1:Cd,P=arguments.length<3;return x(o,Bt(u,4),y,P,Yd)}function sS(o,u){var y=qt(o)?Or:Kd;return y(o,Qo(Bt(u,3)))}function oS(o){var u=qt(o)?zd:Zw;return u(o)}function aS(o,u,y){(y?rn(o,u,y):u===e)?u=1:u=Ht(u);var x=qt(o)?Cw:Qw;return x(o,u)}function lS(o){var u=qt(o)?Pw:e2;return u(o)}function uS(o){if(o==null)return 0;if(ln(o))return ea(o)?ki(o):o.length;var u=Ze(o);return u==St||u==ue?o.size:du(o).length}function cS(o,u,y){var x=qt(o)?Kl:n2;return y&&rn(o,u,y)&&(u=e),x(o,Bt(u,3))}var fS=$t(function(o,u){if(o==null)return[];var y=u.length;return y>1&&rn(o,u[0],u[1])?u=[]:y>2&&rn(u[0],u[1],u[2])&&(u=[u[0]]),sp(o,Xe(u,1),[])}),Jo=V1||function(){return Ke.Date.now()};function hS(o,u){if(typeof u!="function")throw new On(a);return o=Ht(o),function(){if(--o<1)return u.apply(this,arguments)}}function Qp(o,u,y){return u=y?e:u,u=o&&u==null?o.length:u,hr(o,L,e,e,e,e,u)}function tg(o,u){var y;if(typeof u!="function")throw new On(a);return o=Ht(o),function(){return--o>0&&(y=u.apply(this,arguments)),o<=1&&(u=e),y}}var Fu=$t(function(o,u,y){var x=b;if(y.length){var P=Tr(y,Bi(Fu));x|=M}return hr(o,x,u,y,P)}),eg=$t(function(o,u,y){var x=b|_;if(y.length){var P=Tr(y,Bi(eg));x|=M}return hr(u,x,o,y,P)});function ng(o,u,y){u=y?e:u;var x=hr(o,C,e,e,e,e,e,u);return x.placeholder=ng.placeholder,x}function rg(o,u,y){u=y?e:u;var x=hr(o,w,e,e,e,e,e,u);return x.placeholder=rg.placeholder,x}function ig(o,u,y){var x,P,F,H,$,tt,gt=0,vt=!1,wt=!1,Rt=!0;if(typeof o!="function")throw new On(a);u=Dn(u)||0,Re(y)&&(vt=!!y.leading,wt="maxWait"in y,F=wt?qe(Dn(y.maxWait)||0,u):F,Rt="trailing"in y?!!y.trailing:Rt);function Pt(Be){var Wn=x,yr=P;return x=P=e,gt=Be,H=o.apply(yr,Wn),H}function It(Be){return gt=Be,$=_s(Gt,u),vt?Pt(Be):H}function zt(Be){var Wn=Be-tt,yr=Be-gt,Sg=u-Wn;return wt?Je(Sg,F-yr):Sg}function Dt(Be){var Wn=Be-tt,yr=Be-gt;return tt===e||Wn>=u||Wn<0||wt&&yr>=F}function Gt(){var Be=Jo();if(Dt(Be))return Zt(Be);$=_s(Gt,zt(Be))}function Zt(Be){return $=e,Rt&&x?Pt(Be):(x=P=e,H)}function wn(){$!==e&&pp($),gt=0,x=tt=P=$=e}function sn(){return $===e?H:Zt(Jo())}function xn(){var Be=Jo(),Wn=Dt(Be);if(x=arguments,P=this,tt=Be,Wn){if($===e)return It(tt);if(wt)return pp($),$=_s(Gt,u),Pt(tt)}return $===e&&($=_s(Gt,u)),H}return xn.cancel=wn,xn.flush=sn,xn}var dS=$t(function(o,u){return Gd(o,1,u)}),pS=$t(function(o,u,y){return Gd(o,Dn(u)||0,y)});function gS(o){return hr(o,Y)}function Zo(o,u){if(typeof o!="function"||u!=null&&typeof u!="function")throw new On(a);var y=function(){var x=arguments,P=u?u.apply(this,x):x[0],F=y.cache;if(F.has(P))return F.get(P);var H=o.apply(this,x);return y.cache=F.set(P,H)||F,H};return y.cache=new(Zo.Cache||cr),y}Zo.Cache=cr;function Qo(o){if(typeof o!="function")throw new On(a);return function(){var u=arguments;switch(u.length){case 0:return!o.call(this);case 1:return!o.call(this,u[0]);case 2:return!o.call(this,u[0],u[1]);case 3:return!o.call(this,u[0],u[1],u[2])}return!o.apply(this,u)}}function mS(o){return tg(2,o)}var yS=r2(function(o,u){u=u.length==1&&qt(u[0])?Se(u[0],vn(Bt())):Se(Xe(u,1),vn(Bt()));var y=u.length;return $t(function(x){for(var P=-1,F=Je(x.length,y);++P<F;)x[P]=u[P].call(this,x[P]);return yn(o,this,x)})}),Nu=$t(function(o,u){var y=Tr(u,Bi(Nu));return hr(o,M,e,u,y)}),sg=$t(function(o,u){var y=Tr(u,Bi(sg));return hr(o,O,e,u,y)}),vS=dr(function(o,u){return hr(o,N,e,e,e,u)});function bS(o,u){if(typeof o!="function")throw new On(a);return u=u===e?u:Ht(u),$t(o,u)}function _S(o,u){if(typeof o!="function")throw new On(a);return u=u==null?0:qe(Ht(u),0),$t(function(y){var x=y[u],P=Nr(y,0,u);return x&&Lr(P,x),yn(o,this,P)})}function wS(o,u,y){var x=!0,P=!0;if(typeof o!="function")throw new On(a);return Re(y)&&(x="leading"in y?!!y.leading:x,P="trailing"in y?!!y.trailing:P),ig(o,u,{leading:x,maxWait:u,trailing:P})}function xS(o){return Qp(o,1)}function SS(o,u){return Nu(xu(u),o)}function ES(){if(!arguments.length)return[];var o=arguments[0];return qt(o)?o:[o]}function AS(o){return Tn(o,m)}function kS(o,u){return u=typeof u=="function"?u:e,Tn(o,m,u)}function RS(o){return Tn(o,g|m)}function MS(o,u){return u=typeof u=="function"?u:e,Tn(o,g|m,u)}function CS(o,u){return u==null||$d(o,u,$e(u))}function qn(o,u){return o===u||o!==o&&u!==u}var PS=Vo(cu),OS=Vo(function(o,u){return o>=u}),oi=Zd(function(){return arguments}())?Zd:function(o){return Pe(o)&&ae.call(o,"callee")&&!Nd.call(o,"callee")},qt=it.isArray,LS=bd?vn(bd):Uw;function ln(o){return o!=null&&ta(o.length)&&!gr(o)}function Te(o){return Pe(o)&&ln(o)}function TS(o){return o===!0||o===!1||Pe(o)&&nn(o)==lt}var jr=G1||Ku,BS=_d?vn(_d):qw;function IS(o){return Pe(o)&&o.nodeType===1&&!ws(o)}function DS(o){if(o==null)return!0;if(ln(o)&&(qt(o)||typeof o=="string"||typeof o.splice=="function"||jr(o)||Ii(o)||oi(o)))return!o.length;var u=Ze(o);if(u==St||u==ue)return!o.size;if(bs(o))return!du(o).length;for(var y in o)if(ae.call(o,y))return!1;return!0}function FS(o,u){return ms(o,u)}function NS(o,u,y){y=typeof y=="function"?y:e;var x=y?y(o,u):e;return x===e?ms(o,u,e,y):!!x}function ju(o){if(!Pe(o))return!1;var u=nn(o);return u==D||u==yt||typeof o.message=="string"&&typeof o.name=="string"&&!ws(o)}function jS(o){return typeof o=="number"&&Ud(o)}function gr(o){if(!Re(o))return!1;var u=nn(o);return u==j||u==ut||u==X||u==ft}function og(o){return typeof o=="number"&&o==Ht(o)}function ta(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=bt}function Re(o){var u=typeof o;return o!=null&&(u=="object"||u=="function")}function Pe(o){return o!=null&&typeof o=="object"}var ag=wd?vn(wd):Hw;function US(o,u){return o===u||hu(o,u,Cu(u))}function qS(o,u,y){return y=typeof y=="function"?y:e,hu(o,u,Cu(u),y)}function WS(o){return lg(o)&&o!=+o}function HS(o){if(k2(o))throw new jt(s);return Qd(o)}function zS(o){return o===null}function VS(o){return o==null}function lg(o){return typeof o=="number"||Pe(o)&&nn(o)==Ft}function ws(o){if(!Pe(o)||nn(o)!=Tt)return!1;var u=Ro(o);if(u===null)return!0;var y=ae.call(u,"constructor")&&u.constructor;return typeof y=="function"&&y instanceof y&&So.call(y)==q1}var Uu=xd?vn(xd):zw;function $S(o){return og(o)&&o>=-9007199254740991&&o<=bt}var ug=Sd?vn(Sd):Vw;function ea(o){return typeof o=="string"||!qt(o)&&Pe(o)&&nn(o)==te}function _n(o){return typeof o=="symbol"||Pe(o)&&nn(o)==re}var Ii=Ed?vn(Ed):$w;function GS(o){return o===e}function YS(o){return Pe(o)&&Ze(o)==ke}function KS(o){return Pe(o)&&nn(o)==on}var XS=Vo(pu),JS=Vo(function(o,u){return o<=u});function cg(o){if(!o)return[];if(ln(o))return ea(o)?jn(o):an(o);if(ls&&o[ls])return C1(o[ls]());var u=Ze(o),y=u==St?eu:u==ue?_o:Di;return y(o)}function mr(o){if(!o)return o===0?o:0;if(o=Dn(o),o===_t||o===-1/0){var u=o<0?-1:1;return u*Et}return o===o?o:0}function Ht(o){var u=mr(o),y=u%1;return u===u?y?u-y:u:0}function fg(o){return o?ni(Ht(o),0,Ot):0}function Dn(o){if(typeof o=="number")return o;if(_n(o))return kt;if(Re(o)){var u=typeof o.valueOf=="function"?o.valueOf():o;o=Re(u)?u+"":u}if(typeof o!="string")return o===0?o:+o;o=Pd(o);var y=L_.test(o);return y||B_.test(o)?h1(o.slice(2),y?2:8):O_.test(o)?kt:+o}function hg(o){return Jn(o,un(o))}function ZS(o){return o?ni(Ht(o),-9007199254740991,bt):o===0?o:0}function se(o){return o==null?"":bn(o)}var QS=Li(function(o,u){if(bs(u)||ln(u)){Jn(u,$e(u),o);return}for(var y in u)ae.call(u,y)&&ds(o,y,u[y])}),dg=Li(function(o,u){Jn(u,un(u),o)}),na=Li(function(o,u,y,x){Jn(u,un(u),o,x)}),tE=Li(function(o,u,y,x){Jn(u,$e(u),o,x)}),eE=dr(au);function nE(o,u){var y=Oi(o);return u==null?y:Vd(y,u)}var rE=$t(function(o,u){o=he(o);var y=-1,x=u.length,P=x>2?u[2]:e;for(P&&rn(u[0],u[1],P)&&(x=1);++y<x;)for(var F=u[y],H=un(F),$=-1,tt=H.length;++$<tt;){var gt=H[$],vt=o[gt];(vt===e||qn(vt,Mi[gt])&&!ae.call(o,gt))&&(o[gt]=F[gt])}return o}),iE=$t(function(o){return o.push(e,Pp),yn(pg,e,o)});function sE(o,u){return kd(o,Bt(u,3),Xn)}function oE(o,u){return kd(o,Bt(u,3),uu)}function aE(o,u){return o==null?o:lu(o,Bt(u,3),un)}function lE(o,u){return o==null?o:Xd(o,Bt(u,3),un)}function uE(o,u){return o&&Xn(o,Bt(u,3))}function cE(o,u){return o&&uu(o,Bt(u,3))}function fE(o){return o==null?[]:Fo(o,$e(o))}function hE(o){return o==null?[]:Fo(o,un(o))}function qu(o,u,y){var x=o==null?e:ri(o,u);return x===e?y:x}function dE(o,u){return o!=null&&Tp(o,u,Dw)}function Wu(o,u){return o!=null&&Tp(o,u,Fw)}var pE=Ap(function(o,u,y){u!=null&&typeof u.toString!="function"&&(u=Eo.call(u)),o[u]=y},zu(cn)),gE=Ap(function(o,u,y){u!=null&&typeof u.toString!="function"&&(u=Eo.call(u)),ae.call(o,u)?o[u].push(y):o[u]=[y]},Bt),mE=$t(gs);function $e(o){return ln(o)?Hd(o):du(o)}function un(o){return ln(o)?Hd(o,!0):Gw(o)}function yE(o,u){var y={};return u=Bt(u,3),Xn(o,function(x,P,F){fr(y,u(x,P,F),x)}),y}function vE(o,u){var y={};return u=Bt(u,3),Xn(o,function(x,P,F){fr(y,P,u(x,P,F))}),y}var bE=Li(function(o,u,y){No(o,u,y)}),pg=Li(function(o,u,y,x){No(o,u,y,x)}),_E=dr(function(o,u){var y={};if(o==null)return y;var x=!1;u=Se(u,function(F){return F=Fr(F,o),x||(x=F.length>1),F}),Jn(o,Ru(o),y),x&&(y=Tn(y,g|d|m,p2));for(var P=u.length;P--;)bu(y,u[P]);return y});function wE(o,u){return gg(o,Qo(Bt(u)))}var xE=dr(function(o,u){return o==null?{}:Kw(o,u)});function gg(o,u){if(o==null)return{};var y=Se(Ru(o),function(x){return[x]});return u=Bt(u),op(o,y,function(x,P){return u(x,P[0])})}function SE(o,u,y){u=Fr(u,o);var x=-1,P=u.length;for(P||(P=1,o=e);++x<P;){var F=o==null?e:o[Zn(u[x])];F===e&&(x=P,F=y),o=gr(F)?F.call(o):F}return o}function EE(o,u,y){return o==null?o:ys(o,u,y)}function AE(o,u,y,x){return x=typeof x=="function"?x:e,o==null?o:ys(o,u,y,x)}var mg=Mp($e),yg=Mp(un);function kE(o,u,y){var x=qt(o),P=x||jr(o)||Ii(o);if(u=Bt(u,4),y==null){var F=o&&o.constructor;P?y=x?new F:[]:Re(o)?y=gr(F)?Oi(Ro(o)):{}:y={}}return(P?Pn:Xn)(o,function(H,$,tt){return u(y,H,$,tt)}),y}function RE(o,u){return o==null?!0:bu(o,u)}function ME(o,u,y){return o==null?o:fp(o,u,xu(y))}function CE(o,u,y,x){return x=typeof x=="function"?x:e,o==null?o:fp(o,u,xu(y),x)}function Di(o){return o==null?[]:tu(o,$e(o))}function PE(o){return o==null?[]:tu(o,un(o))}function OE(o,u,y){return y===e&&(y=u,u=e),y!==e&&(y=Dn(y),y=y===y?y:0),u!==e&&(u=Dn(u),u=u===u?u:0),ni(Dn(o),u,y)}function LE(o,u,y){return u=mr(u),y===e?(y=u,u=0):y=mr(y),o=Dn(o),Nw(o,u,y)}function TE(o,u,y){if(y&&typeof y!="boolean"&&rn(o,u,y)&&(u=y=e),y===e&&(typeof u=="boolean"?(y=u,u=e):typeof o=="boolean"&&(y=o,o=e)),o===e&&u===e?(o=0,u=1):(o=mr(o),u===e?(u=o,o=0):u=mr(u)),o>u){var x=o;o=u,u=x}if(y||o%1||u%1){var P=qd();return Je(o+P*(u-o+f1("1e-"+((P+"").length-1))),u)}return mu(o,u)}var BE=Ti(function(o,u,y){return u=u.toLowerCase(),o+(y?vg(u):u)});function vg(o){return Hu(se(o).toLowerCase())}function bg(o){return o=se(o),o&&o.replace(D_,E1).replace(e1,"")}function IE(o,u,y){o=se(o),u=bn(u);var x=o.length;y=y===e?x:ni(Ht(y),0,x);var P=y;return y-=u.length,y>=0&&o.slice(y,P)==u}function DE(o){return o=se(o),o&&os.test(o)?o.replace(Jr,A1):o}function FE(o){return o=se(o),o&&J.test(o)?o.replace(W,"\\$&"):o}var NE=Ti(function(o,u,y){return o+(y?"-":"")+u.toLowerCase()}),jE=Ti(function(o,u,y){return o+(y?" ":"")+u.toLowerCase()}),UE=xp("toLowerCase");function qE(o,u,y){o=se(o),u=Ht(u);var x=u?ki(o):0;if(!u||x>=u)return o;var P=(u-x)/2;return zo(Oo(P),y)+o+zo(Po(P),y)}function WE(o,u,y){o=se(o),u=Ht(u);var x=u?ki(o):0;return u&&x<u?o+zo(u-x,y):o}function HE(o,u,y){o=se(o),u=Ht(u);var x=u?ki(o):0;return u&&x<u?zo(u-x,y)+o:o}function zE(o,u,y){return y||u==null?u=0:u&&(u=+u),J1(se(o).replace(rt,""),u||0)}function VE(o,u,y){return(y?rn(o,u,y):u===e)?u=1:u=Ht(u),yu(se(o),u)}function $E(){var o=arguments,u=se(o[0]);return o.length<3?u:u.replace(o[1],o[2])}var GE=Ti(function(o,u,y){return o+(y?"_":"")+u.toLowerCase()});function YE(o,u,y){return y&&typeof y!="number"&&rn(o,u,y)&&(u=y=e),y=y===e?Ot:y>>>0,y?(o=se(o),o&&(typeof u=="string"||u!=null&&!Uu(u))&&(u=bn(u),!u&&Ai(o))?Nr(jn(o),0,y):o.split(u,y)):[]}var KE=Ti(function(o,u,y){return o+(y?" ":"")+Hu(u)});function XE(o,u,y){return o=se(o),y=y==null?0:ni(Ht(y),0,o.length),u=bn(u),o.slice(y,y+u.length)==u}function JE(o,u,y){var x=I.templateSettings;y&&rn(o,u,y)&&(u=e),o=se(o),u=na({},u,x,Cp);var P=na({},u.imports,x.imports,Cp),F=$e(P),H=tu(P,F),$,tt,gt=0,vt=u.interpolate||go,wt="__p += '",Rt=nu((u.escape||go).source+"|"+vt.source+"|"+(vt===po?P_:go).source+"|"+(u.evaluate||go).source+"|$","g"),Pt="//# sourceURL="+(ae.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++o1+"]")+`
|
|
32
|
-
`;o.replace(
|
|
31
|
+
`)}function T2(o){return qt(o)||li(o)||!!(Gd&&o&&o[Gd])}function mr(o,u){var y=typeof o;return u=u??bt,!!u&&(y=="number"||y!="symbol"&&V_.test(o))&&o>-1&&o%1==0&&o<u}function rn(o,u,y){if(!Me(y))return!1;var x=typeof u;return(x=="number"?ln(y)&&mr(u,y.length):x=="string"&&u in y)?Hn(y[u],o):!1}function Du(o,u){if(qt(o))return!1;var y=typeof o;return y=="number"||y=="symbol"||y=="boolean"||o==null||_n(o)?!0:A.test(o)||!I.test(o)||u!=null&&o in he(u)}function I2(o){var u=typeof o;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?o!=="__proto__":o===null}function Fu(o){var u=Jo(o),y=B[u];if(typeof y!="function"||!(u in Xt.prototype))return!1;if(o===y)return!0;var x=Tu(y);return!!x&&o===x[0]}function B2(o){return!!Hd&&Hd in o}var D2=Mo?yr:tc;function Ss(o){var u=o&&o.constructor,y=typeof u=="function"&&u.prototype||Pi;return o===y}function Hp(o){return o===o&&!Me(o)}function zp(o,u){return function(y){return y==null?!1:y[o]===u&&(u!==e||o in he(y))}}function F2(o){var u=ra(o,function(x){return y.size===h&&y.clear(),x}),y=u.cache;return u}function N2(o,u){var y=o[1],x=u[1],P=y|x,F=P<(_|b|L),H=x==L&&y==O||x==L&&y==N&&o[7].length<=u[8]||x==(L|N)&&u[7].length<=u[8]&&y==O;if(!(F||H))return o;x&_&&(o[2]=u[2],P|=y&_?0:S);var $=u[3];if($){var tt=o[3];o[3]=tt?kp(tt,$,u[4]):$,o[4]=tt?Br(o[3],f):u[4]}return $=u[5],$&&(tt=o[5],o[5]=tt?Mp(tt,$,u[6]):$,o[6]=tt?Br(o[5],f):u[6]),$=u[7],$&&(o[7]=$),x&L&&(o[8]=o[8]==null?u[8]:Je(o[8],u[8])),o[9]==null&&(o[9]=u[9]),o[0]=u[0],o[1]=P,o}function j2(o){var u=[];if(o!=null)for(var y in he(o))u.push(y);return u}function U2(o){return Oo.call(o)}function Vp(o,u,y){return u=Ue(u===e?o.length-1:u,0),function(){for(var x=arguments,P=-1,F=Ue(x.length-u,0),H=it(F);++P<F;)H[P]=x[u+P];P=-1;for(var $=it(u+1);++P<u;)$[P]=x[P];return $[u]=y(H),yn(o,this,$)}}function $p(o,u){return u.length<2?o:si(o,In(u,0,-1))}function q2(o,u){for(var y=o.length,x=Je(u.length,y),P=an(o);x--;){var F=u[x];o[x]=mr(F,y)?P[F]:e}return o}function Nu(o,u){if(!(u==="constructor"&&typeof o[u]=="function")&&u!="__proto__")return o[u]}var Gp=Kp(mp),Es=nw||function(o,u){return Ye.setTimeout(o,u)},ju=Kp(c2);function Yp(o,u,y){var x=u+"";return ju(o,L2(x,W2(O2(x),y)))}function Kp(o){var u=0,y=0;return function(){var x=ow(),P=xt-(x-y);if(y=x,P>0){if(++u>=U)return arguments[0]}else u=0;return o.apply(e,arguments)}}function Qo(o,u){var y=-1,x=o.length,P=x-1;for(u=u===e?x:u;++y<u;){var F=wu(y,P),H=o[F];o[F]=o[y],o[y]=H}return o.length=u,o}var Xp=F2(function(o){var u=[];return o.charCodeAt(0)===46&&u.push(""),o.replace(R,function(y,x,P,F){u.push(P?F.replace(j_,"$1"):x||y)}),u});function er(o){if(typeof o=="string"||_n(o))return o;var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function ai(o){if(o!=null){try{return Ro.call(o)}catch{}try{return o+""}catch{}}return""}function W2(o,u){return Pn(et,function(y){var x="_."+y[0];u&y[1]&&!So(o,x)&&o.push(x)}),o.sort()}function Jp(o){if(o instanceof Xt)return o.clone();var u=new Ln(o.__wrapped__,o.__chain__);return u.__actions__=an(o.__actions__),u.__index__=o.__index__,u.__values__=o.__values__,u}function H2(o,u,y){(y?rn(o,u,y):u===e)?u=1:u=Ue(Ht(u),0);var x=o==null?0:o.length;if(!x||u<1)return[];for(var P=0,F=0,H=it(Bo(x/u));P<x;)H[F++]=In(o,P,P+=u);return H}function z2(o){for(var u=-1,y=o==null?0:o.length,x=0,P=[];++u<y;){var F=o[u];F&&(P[x++]=F)}return P}function V2(){var o=arguments.length;if(!o)return[];for(var u=it(o-1),y=arguments[0],x=o;x--;)u[x-1]=arguments[x];return Ir(qt(y)?an(y):[y],Ke(u,1))}var $2=$t(function(o,u){return Le(o)?vs(o,Ke(u,1,Le,!0)):[]}),G2=$t(function(o,u){var y=Bn(u);return Le(y)&&(y=e),Le(o)?vs(o,Ke(u,1,Le,!0),It(y,2)):[]}),Y2=$t(function(o,u){var y=Bn(u);return Le(y)&&(y=e),Le(o)?vs(o,Ke(u,1,Le,!0),e,y):[]});function K2(o,u,y){var x=o==null?0:o.length;return x?(u=y||u===e?1:Ht(u),In(o,u<0?0:u,x)):[]}function X2(o,u,y){var x=o==null?0:o.length;return x?(u=y||u===e?1:Ht(u),u=x-u,In(o,0,u<0?0:u)):[]}function J2(o,u){return o&&o.length?Vo(o,It(u,3),!0,!0):[]}function Z2(o,u){return o&&o.length?Vo(o,It(u,3),!0):[]}function Q2(o,u,y,x){var P=o==null?0:o.length;return P?(y&&typeof y!="number"&&rn(o,u,y)&&(y=0,x=P),Vw(o,u,y,x)):[]}function Zp(o,u,y){var x=o==null?0:o.length;if(!x)return-1;var P=y==null?0:Ht(y);return P<0&&(P=Ue(x+P,0)),Eo(o,It(u,3),P)}function Qp(o,u,y){var x=o==null?0:o.length;if(!x)return-1;var P=x-1;return y!==e&&(P=Ht(y),P=y<0?Ue(x+P,0):Je(P,x-1)),Eo(o,It(u,3),P,!0)}function tg(o){var u=o==null?0:o.length;return u?Ke(o,1):[]}function tx(o){var u=o==null?0:o.length;return u?Ke(o,_t):[]}function ex(o,u){var y=o==null?0:o.length;return y?(u=u===e?1:Ht(u),Ke(o,u)):[]}function nx(o){for(var u=-1,y=o==null?0:o.length,x={};++u<y;){var P=o[u];x[P[0]]=P[1]}return x}function eg(o){return o&&o.length?o[0]:e}function rx(o,u,y){var x=o==null?0:o.length;if(!x)return-1;var P=y==null?0:Ht(y);return P<0&&(P=Ue(x+P,0)),ki(o,u,P)}function ix(o){var u=o==null?0:o.length;return u?In(o,0,-1):[]}var sx=$t(function(o){var u=Se(o,ku);return u.length&&u[0]===o[0]?mu(u):[]}),ox=$t(function(o){var u=Bn(o),y=Se(o,ku);return u===Bn(y)?u=e:y.pop(),y.length&&y[0]===o[0]?mu(y,It(u,2)):[]}),ax=$t(function(o){var u=Bn(o),y=Se(o,ku);return u=typeof u=="function"?u:e,u&&y.pop(),y.length&&y[0]===o[0]?mu(y,e,u):[]});function lx(o,u){return o==null?"":iw.call(o,u)}function Bn(o){var u=o==null?0:o.length;return u?o[u-1]:e}function ux(o,u,y){var x=o==null?0:o.length;if(!x)return-1;var P=x;return y!==e&&(P=Ht(y),P=P<0?Ue(x+P,0):Je(P,x-1)),u===u?W1(o,u,P):Eo(o,Bd,P,!0)}function cx(o,u){return o&&o.length?hp(o,Ht(u)):e}var fx=$t(ng);function ng(o,u){return o&&o.length&&u&&u.length?_u(o,u):o}function hx(o,u,y){return o&&o.length&&u&&u.length?_u(o,u,It(y,2)):o}function dx(o,u,y){return o&&o.length&&u&&u.length?_u(o,u,e,y):o}var px=gr(function(o,u){var y=o==null?0:o.length,x=hu(o,u);return gp(o,Se(u,function(P){return mr(P,y)?+P:P}).sort(Ap)),x});function gx(o,u){var y=[];if(!(o&&o.length))return y;var x=-1,P=[],F=o.length;for(u=It(u,3);++x<F;){var H=o[x];u(H,x,o)&&(y.push(H),P.push(x))}return gp(o,P),y}function Uu(o){return o==null?o:lw.call(o)}function mx(o,u,y){var x=o==null?0:o.length;return x?(y&&typeof y!="number"&&rn(o,u,y)?(u=0,y=x):(u=u==null?0:Ht(u),y=y===e?x:Ht(y)),In(o,u,y)):[]}function yx(o,u){return zo(o,u)}function vx(o,u,y){return Su(o,u,It(y,2))}function bx(o,u){var y=o==null?0:o.length;if(y){var x=zo(o,u);if(x<y&&Hn(o[x],u))return x}return-1}function _x(o,u){return zo(o,u,!0)}function wx(o,u,y){return Su(o,u,It(y,2),!0)}function xx(o,u){var y=o==null?0:o.length;if(y){var x=zo(o,u,!0)-1;if(Hn(o[x],u))return x}return-1}function Sx(o){return o&&o.length?yp(o):[]}function Ex(o,u){return o&&o.length?yp(o,It(u,2)):[]}function Ax(o){var u=o==null?0:o.length;return u?In(o,1,u):[]}function kx(o,u,y){return o&&o.length?(u=y||u===e?1:Ht(u),In(o,0,u<0?0:u)):[]}function Mx(o,u,y){var x=o==null?0:o.length;return x?(u=y||u===e?1:Ht(u),u=x-u,In(o,u<0?0:u,x)):[]}function Rx(o,u){return o&&o.length?Vo(o,It(u,3),!1,!0):[]}function Ox(o,u){return o&&o.length?Vo(o,It(u,3)):[]}var Px=$t(function(o){return Nr(Ke(o,1,Le,!0))}),Cx=$t(function(o){var u=Bn(o);return Le(u)&&(u=e),Nr(Ke(o,1,Le,!0),It(u,2))}),Lx=$t(function(o){var u=Bn(o);return u=typeof u=="function"?u:e,Nr(Ke(o,1,Le,!0),e,u)});function Tx(o){return o&&o.length?Nr(o):[]}function Ix(o,u){return o&&o.length?Nr(o,It(u,2)):[]}function Bx(o,u){return u=typeof u=="function"?u:e,o&&o.length?Nr(o,e,u):[]}function qu(o){if(!(o&&o.length))return[];var u=0;return o=Tr(o,function(y){if(Le(y))return u=Ue(y.length,u),!0}),iu(u,function(y){return Se(o,eu(y))})}function rg(o,u){if(!(o&&o.length))return[];var y=qu(o);return u==null?y:Se(y,function(x){return yn(u,e,x)})}var Dx=$t(function(o,u){return Le(o)?vs(o,u):[]}),Fx=$t(function(o){return Au(Tr(o,Le))}),Nx=$t(function(o){var u=Bn(o);return Le(u)&&(u=e),Au(Tr(o,Le),It(u,2))}),jx=$t(function(o){var u=Bn(o);return u=typeof u=="function"?u:e,Au(Tr(o,Le),e,u)}),Ux=$t(qu);function qx(o,u){return wp(o||[],u||[],ys)}function Wx(o,u){return wp(o||[],u||[],ws)}var Hx=$t(function(o){var u=o.length,y=u>1?o[u-1]:e;return y=typeof y=="function"?(o.pop(),y):e,rg(o,y)});function ig(o){var u=B(o);return u.__chain__=!0,u}function zx(o,u){return u(o),o}function ta(o,u){return u(o)}var Vx=gr(function(o){var u=o.length,y=u?o[0]:0,x=this.__wrapped__,P=function(F){return hu(F,o)};return u>1||this.__actions__.length||!(x instanceof Xt)||!mr(y)?this.thru(P):(x=x.slice(y,+y+(u?1:0)),x.__actions__.push({func:ta,args:[P],thisArg:e}),new Ln(x,this.__chain__).thru(function(F){return u&&!F.length&&F.push(e),F}))});function $x(){return ig(this)}function Gx(){return new Ln(this.value(),this.__chain__)}function Yx(){this.__values__===e&&(this.__values__=vg(this.value()));var o=this.__index__>=this.__values__.length,u=o?e:this.__values__[this.__index__++];return{done:o,value:u}}function Kx(){return this}function Xx(o){for(var u,y=this;y instanceof jo;){var x=Jp(y);x.__index__=0,x.__values__=e,u?P.__wrapped__=x:u=x;var P=x;y=y.__wrapped__}return P.__wrapped__=o,u}function Jx(){var o=this.__wrapped__;if(o instanceof Xt){var u=o;return this.__actions__.length&&(u=new Xt(this)),u=u.reverse(),u.__actions__.push({func:ta,args:[Uu],thisArg:e}),new Ln(u,this.__chain__)}return this.thru(Uu)}function Zx(){return _p(this.__wrapped__,this.__actions__)}var Qx=$o(function(o,u,y){ae.call(o,y)?++o[y]:dr(o,y,1)});function tS(o,u,y){var x=qt(o)?Td:zw;return y&&rn(o,u,y)&&(u=e),x(o,It(u,3))}function eS(o,u){var y=qt(o)?Tr:rp;return y(o,It(u,3))}var nS=Cp(Zp),rS=Cp(Qp);function iS(o,u){return Ke(ea(o,u),1)}function sS(o,u){return Ke(ea(o,u),_t)}function oS(o,u,y){return y=y===e?1:Ht(y),Ke(ea(o,u),y)}function sg(o,u){var y=qt(o)?Pn:Fr;return y(o,It(u,3))}function og(o,u){var y=qt(o)?A1:np;return y(o,It(u,3))}var aS=$o(function(o,u,y){ae.call(o,y)?o[y].push(u):dr(o,y,[u])});function lS(o,u,y,x){o=ln(o)?o:Ni(o),y=y&&!x?Ht(y):0;var P=o.length;return y<0&&(y=Ue(P+y,0)),oa(o)?y<=P&&o.indexOf(u,y)>-1:!!P&&ki(o,u,y)>-1}var uS=$t(function(o,u,y){var x=-1,P=typeof u=="function",F=ln(o)?it(o.length):[];return Fr(o,function(H){F[++x]=P?yn(u,H,y):bs(H,u,y)}),F}),cS=$o(function(o,u,y){dr(o,y,u)});function ea(o,u){var y=qt(o)?Se:up;return y(o,It(u,3))}function fS(o,u,y,x){return o==null?[]:(qt(u)||(u=u==null?[]:[u]),y=x?e:y,qt(y)||(y=y==null?[]:[y]),dp(o,u,y))}var hS=$o(function(o,u,y){o[y?0:1].push(u)},function(){return[[],[]]});function dS(o,u,y){var x=qt(o)?Ql:Fd,P=arguments.length<3;return x(o,It(u,4),y,P,Fr)}function pS(o,u,y){var x=qt(o)?k1:Fd,P=arguments.length<3;return x(o,It(u,4),y,P,np)}function gS(o,u){var y=qt(o)?Tr:rp;return y(o,ia(It(u,3)))}function mS(o){var u=qt(o)?Zd:l2;return u(o)}function yS(o,u,y){(y?rn(o,u,y):u===e)?u=1:u=Ht(u);var x=qt(o)?jw:u2;return x(o,u)}function vS(o){var u=qt(o)?Uw:f2;return u(o)}function bS(o){if(o==null)return 0;if(ln(o))return oa(o)?Ri(o):o.length;var u=Ze(o);return u==St||u==ue?o.size:vu(o).length}function _S(o,u,y){var x=qt(o)?tu:h2;return y&&rn(o,u,y)&&(u=e),x(o,It(u,3))}var wS=$t(function(o,u){if(o==null)return[];var y=u.length;return y>1&&rn(o,u[0],u[1])?u=[]:y>2&&rn(u[0],u[1],u[2])&&(u=[u[0]]),dp(o,Ke(u,1),[])}),na=ew||function(){return Ye.Date.now()};function xS(o,u){if(typeof u!="function")throw new Cn(a);return o=Ht(o),function(){if(--o<1)return u.apply(this,arguments)}}function ag(o,u,y){return u=y?e:u,u=o&&u==null?o.length:u,pr(o,L,e,e,e,e,u)}function lg(o,u){var y;if(typeof u!="function")throw new Cn(a);return o=Ht(o),function(){return--o>0&&(y=u.apply(this,arguments)),o<=1&&(u=e),y}}var Wu=$t(function(o,u,y){var x=_;if(y.length){var P=Br(y,Di(Wu));x|=k}return pr(o,x,u,y,P)}),ug=$t(function(o,u,y){var x=_|b;if(y.length){var P=Br(y,Di(ug));x|=k}return pr(u,x,o,y,P)});function cg(o,u,y){u=y?e:u;var x=pr(o,O,e,e,e,e,e,u);return x.placeholder=cg.placeholder,x}function fg(o,u,y){u=y?e:u;var x=pr(o,w,e,e,e,e,e,u);return x.placeholder=fg.placeholder,x}function hg(o,u,y){var x,P,F,H,$,tt,gt=0,vt=!1,wt=!1,Mt=!0;if(typeof o!="function")throw new Cn(a);u=Dn(u)||0,Me(y)&&(vt=!!y.leading,wt="maxWait"in y,F=wt?Ue(Dn(y.maxWait)||0,u):F,Mt="trailing"in y?!!y.trailing:Mt);function Pt(Te){var zn=x,br=P;return x=P=e,gt=Te,H=o.apply(br,zn),H}function Bt(Te){return gt=Te,$=Es(Gt,u),vt?Pt(Te):H}function zt(Te){var zn=Te-tt,br=Te-gt,Cg=u-zn;return wt?Je(Cg,F-br):Cg}function Dt(Te){var zn=Te-tt,br=Te-gt;return tt===e||zn>=u||zn<0||wt&&br>=F}function Gt(){var Te=na();if(Dt(Te))return Zt(Te);$=Es(Gt,zt(Te))}function Zt(Te){return $=e,Mt&&x?Pt(Te):(x=P=e,H)}function wn(){$!==e&&xp($),gt=0,x=tt=P=$=e}function sn(){return $===e?H:Zt(na())}function xn(){var Te=na(),zn=Dt(Te);if(x=arguments,P=this,tt=Te,zn){if($===e)return Bt(tt);if(wt)return xp($),$=Es(Gt,u),Pt(tt)}return $===e&&($=Es(Gt,u)),H}return xn.cancel=wn,xn.flush=sn,xn}var SS=$t(function(o,u){return ep(o,1,u)}),ES=$t(function(o,u,y){return ep(o,Dn(u)||0,y)});function AS(o){return pr(o,Y)}function ra(o,u){if(typeof o!="function"||u!=null&&typeof u!="function")throw new Cn(a);var y=function(){var x=arguments,P=u?u.apply(this,x):x[0],F=y.cache;if(F.has(P))return F.get(P);var H=o.apply(this,x);return y.cache=F.set(P,H)||F,H};return y.cache=new(ra.Cache||hr),y}ra.Cache=hr;function ia(o){if(typeof o!="function")throw new Cn(a);return function(){var u=arguments;switch(u.length){case 0:return!o.call(this);case 1:return!o.call(this,u[0]);case 2:return!o.call(this,u[0],u[1]);case 3:return!o.call(this,u[0],u[1],u[2])}return!o.apply(this,u)}}function kS(o){return lg(2,o)}var MS=d2(function(o,u){u=u.length==1&&qt(u[0])?Se(u[0],vn(It())):Se(Ke(u,1),vn(It()));var y=u.length;return $t(function(x){for(var P=-1,F=Je(x.length,y);++P<F;)x[P]=u[P].call(this,x[P]);return yn(o,this,x)})}),Hu=$t(function(o,u){var y=Br(u,Di(Hu));return pr(o,k,e,u,y)}),dg=$t(function(o,u){var y=Br(u,Di(dg));return pr(o,C,e,u,y)}),RS=gr(function(o,u){return pr(o,N,e,e,e,u)});function OS(o,u){if(typeof o!="function")throw new Cn(a);return u=u===e?u:Ht(u),$t(o,u)}function PS(o,u){if(typeof o!="function")throw new Cn(a);return u=u==null?0:Ue(Ht(u),0),$t(function(y){var x=y[u],P=Ur(y,0,u);return x&&Ir(P,x),yn(o,this,P)})}function CS(o,u,y){var x=!0,P=!0;if(typeof o!="function")throw new Cn(a);return Me(y)&&(x="leading"in y?!!y.leading:x,P="trailing"in y?!!y.trailing:P),hg(o,u,{leading:x,maxWait:u,trailing:P})}function LS(o){return ag(o,1)}function TS(o,u){return Hu(Mu(u),o)}function IS(){if(!arguments.length)return[];var o=arguments[0];return qt(o)?o:[o]}function BS(o){return Tn(o,m)}function DS(o,u){return u=typeof u=="function"?u:e,Tn(o,m,u)}function FS(o){return Tn(o,g|m)}function NS(o,u){return u=typeof u=="function"?u:e,Tn(o,g|m,u)}function jS(o,u){return u==null||tp(o,u,Ve(u))}function Hn(o,u){return o===u||o!==o&&u!==u}var US=Xo(gu),qS=Xo(function(o,u){return o>=u}),li=op(function(){return arguments}())?op:function(o){return Pe(o)&&ae.call(o,"callee")&&!$d.call(o,"callee")},qt=it.isArray,WS=Md?vn(Md):Xw;function ln(o){return o!=null&&sa(o.length)&&!yr(o)}function Le(o){return Pe(o)&&ln(o)}function HS(o){return o===!0||o===!1||Pe(o)&&nn(o)==lt}var qr=rw||tc,zS=Rd?vn(Rd):Jw;function VS(o){return Pe(o)&&o.nodeType===1&&!As(o)}function $S(o){if(o==null)return!0;if(ln(o)&&(qt(o)||typeof o=="string"||typeof o.splice=="function"||qr(o)||Fi(o)||li(o)))return!o.length;var u=Ze(o);if(u==St||u==ue)return!o.size;if(Ss(o))return!vu(o).length;for(var y in o)if(ae.call(o,y))return!1;return!0}function GS(o,u){return _s(o,u)}function YS(o,u,y){y=typeof y=="function"?y:e;var x=y?y(o,u):e;return x===e?_s(o,u,e,y):!!x}function zu(o){if(!Pe(o))return!1;var u=nn(o);return u==D||u==yt||typeof o.message=="string"&&typeof o.name=="string"&&!As(o)}function KS(o){return typeof o=="number"&&Yd(o)}function yr(o){if(!Me(o))return!1;var u=nn(o);return u==j||u==ut||u==X||u==ft}function pg(o){return typeof o=="number"&&o==Ht(o)}function sa(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=bt}function Me(o){var u=typeof o;return o!=null&&(u=="object"||u=="function")}function Pe(o){return o!=null&&typeof o=="object"}var gg=Od?vn(Od):Qw;function XS(o,u){return o===u||yu(o,u,Iu(u))}function JS(o,u,y){return y=typeof y=="function"?y:e,yu(o,u,Iu(u),y)}function ZS(o){return mg(o)&&o!=+o}function QS(o){if(D2(o))throw new Nt(s);return ap(o)}function tE(o){return o===null}function eE(o){return o==null}function mg(o){return typeof o=="number"||Pe(o)&&nn(o)==Ft}function As(o){if(!Pe(o)||nn(o)!=Tt)return!1;var u=Lo(o);if(u===null)return!0;var y=ae.call(u,"constructor")&&u.constructor;return typeof y=="function"&&y instanceof y&&Ro.call(y)==J1}var Vu=Pd?vn(Pd):t2;function nE(o){return pg(o)&&o>=-9007199254740991&&o<=bt}var yg=Cd?vn(Cd):e2;function oa(o){return typeof o=="string"||!qt(o)&&Pe(o)&&nn(o)==te}function _n(o){return typeof o=="symbol"||Pe(o)&&nn(o)==re}var Fi=Ld?vn(Ld):n2;function rE(o){return o===e}function iE(o){return Pe(o)&&Ze(o)==ke}function sE(o){return Pe(o)&&nn(o)==on}var oE=Xo(bu),aE=Xo(function(o,u){return o<=u});function vg(o){if(!o)return[];if(ln(o))return oa(o)?qn(o):an(o);if(hs&&o[hs])return j1(o[hs]());var u=Ze(o),y=u==St?ou:u==ue?Ao:Ni;return y(o)}function vr(o){if(!o)return o===0?o:0;if(o=Dn(o),o===_t||o===-1/0){var u=o<0?-1:1;return u*Et}return o===o?o:0}function Ht(o){var u=vr(o),y=u%1;return u===u?y?u-y:u:0}function bg(o){return o?ii(Ht(o),0,Ct):0}function Dn(o){if(typeof o=="number")return o;if(_n(o))return kt;if(Me(o)){var u=typeof o.valueOf=="function"?o.valueOf():o;o=Me(u)?u+"":u}if(typeof o!="string")return o===0?o:+o;o=Nd(o);var y=W_.test(o);return y||z_.test(o)?x1(o.slice(2),y?2:8):q_.test(o)?kt:+o}function _g(o){return tr(o,un(o))}function lE(o){return o?ii(Ht(o),-9007199254740991,bt):o===0?o:0}function se(o){return o==null?"":bn(o)}var uE=Ii(function(o,u){if(Ss(u)||ln(u)){tr(u,Ve(u),o);return}for(var y in u)ae.call(u,y)&&ys(o,y,u[y])}),wg=Ii(function(o,u){tr(u,un(u),o)}),aa=Ii(function(o,u,y,x){tr(u,un(u),o,x)}),cE=Ii(function(o,u,y,x){tr(u,Ve(u),o,x)}),fE=gr(hu);function hE(o,u){var y=Ti(o);return u==null?y:Qd(y,u)}var dE=$t(function(o,u){o=he(o);var y=-1,x=u.length,P=x>2?u[2]:e;for(P&&rn(u[0],u[1],P)&&(x=1);++y<x;)for(var F=u[y],H=un(F),$=-1,tt=H.length;++$<tt;){var gt=H[$],vt=o[gt];(vt===e||Hn(vt,Pi[gt])&&!ae.call(o,gt))&&(o[gt]=F[gt])}return o}),pE=$t(function(o){return o.push(e,Np),yn(xg,e,o)});function gE(o,u){return Id(o,It(u,3),Qn)}function mE(o,u){return Id(o,It(u,3),pu)}function yE(o,u){return o==null?o:du(o,It(u,3),un)}function vE(o,u){return o==null?o:ip(o,It(u,3),un)}function bE(o,u){return o&&Qn(o,It(u,3))}function _E(o,u){return o&&pu(o,It(u,3))}function wE(o){return o==null?[]:Wo(o,Ve(o))}function xE(o){return o==null?[]:Wo(o,un(o))}function $u(o,u,y){var x=o==null?e:si(o,u);return x===e?y:x}function SE(o,u){return o!=null&&qp(o,u,$w)}function Gu(o,u){return o!=null&&qp(o,u,Gw)}var EE=Tp(function(o,u,y){u!=null&&typeof u.toString!="function"&&(u=Oo.call(u)),o[u]=y},Ku(cn)),AE=Tp(function(o,u,y){u!=null&&typeof u.toString!="function"&&(u=Oo.call(u)),ae.call(o,u)?o[u].push(y):o[u]=[y]},It),kE=$t(bs);function Ve(o){return ln(o)?Jd(o):vu(o)}function un(o){return ln(o)?Jd(o,!0):r2(o)}function ME(o,u){var y={};return u=It(u,3),Qn(o,function(x,P,F){dr(y,u(x,P,F),x)}),y}function RE(o,u){var y={};return u=It(u,3),Qn(o,function(x,P,F){dr(y,P,u(x,P,F))}),y}var OE=Ii(function(o,u,y){Ho(o,u,y)}),xg=Ii(function(o,u,y,x){Ho(o,u,y,x)}),PE=gr(function(o,u){var y={};if(o==null)return y;var x=!1;u=Se(u,function(F){return F=jr(F,o),x||(x=F.length>1),F}),tr(o,Lu(o),y),x&&(y=Tn(y,g|d|m,E2));for(var P=u.length;P--;)Eu(y,u[P]);return y});function CE(o,u){return Sg(o,ia(It(u)))}var LE=gr(function(o,u){return o==null?{}:s2(o,u)});function Sg(o,u){if(o==null)return{};var y=Se(Lu(o),function(x){return[x]});return u=It(u),pp(o,y,function(x,P){return u(x,P[0])})}function TE(o,u,y){u=jr(u,o);var x=-1,P=u.length;for(P||(P=1,o=e);++x<P;){var F=o==null?e:o[er(u[x])];F===e&&(x=P,F=y),o=yr(F)?F.call(o):F}return o}function IE(o,u,y){return o==null?o:ws(o,u,y)}function BE(o,u,y,x){return x=typeof x=="function"?x:e,o==null?o:ws(o,u,y,x)}var Eg=Dp(Ve),Ag=Dp(un);function DE(o,u,y){var x=qt(o),P=x||qr(o)||Fi(o);if(u=It(u,4),y==null){var F=o&&o.constructor;P?y=x?new F:[]:Me(o)?y=yr(F)?Ti(Lo(o)):{}:y={}}return(P?Pn:Qn)(o,function(H,$,tt){return u(y,H,$,tt)}),y}function FE(o,u){return o==null?!0:Eu(o,u)}function NE(o,u,y){return o==null?o:bp(o,u,Mu(y))}function jE(o,u,y,x){return x=typeof x=="function"?x:e,o==null?o:bp(o,u,Mu(y),x)}function Ni(o){return o==null?[]:su(o,Ve(o))}function UE(o){return o==null?[]:su(o,un(o))}function qE(o,u,y){return y===e&&(y=u,u=e),y!==e&&(y=Dn(y),y=y===y?y:0),u!==e&&(u=Dn(u),u=u===u?u:0),ii(Dn(o),u,y)}function WE(o,u,y){return u=vr(u),y===e?(y=u,u=0):y=vr(y),o=Dn(o),Yw(o,u,y)}function HE(o,u,y){if(y&&typeof y!="boolean"&&rn(o,u,y)&&(u=y=e),y===e&&(typeof u=="boolean"?(y=u,u=e):typeof o=="boolean"&&(y=o,o=e)),o===e&&u===e?(o=0,u=1):(o=vr(o),u===e?(u=o,o=0):u=vr(u)),o>u){var x=o;o=u,u=x}if(y||o%1||u%1){var P=Kd();return Je(o+P*(u-o+w1("1e-"+((P+"").length-1))),u)}return wu(o,u)}var zE=Bi(function(o,u,y){return u=u.toLowerCase(),o+(y?kg(u):u)});function kg(o){return Yu(se(o).toLowerCase())}function Mg(o){return o=se(o),o&&o.replace($_,I1).replace(f1,"")}function VE(o,u,y){o=se(o),u=bn(u);var x=o.length;y=y===e?x:ii(Ht(y),0,x);var P=y;return y-=u.length,y>=0&&o.slice(y,P)==u}function $E(o){return o=se(o),o&&cs.test(o)?o.replace(Qr,B1):o}function GE(o){return o=se(o),o&&J.test(o)?o.replace(W,"\\$&"):o}var YE=Bi(function(o,u,y){return o+(y?"-":"")+u.toLowerCase()}),KE=Bi(function(o,u,y){return o+(y?" ":"")+u.toLowerCase()}),XE=Pp("toLowerCase");function JE(o,u,y){o=se(o),u=Ht(u);var x=u?Ri(o):0;if(!u||x>=u)return o;var P=(u-x)/2;return Ko(Do(P),y)+o+Ko(Bo(P),y)}function ZE(o,u,y){o=se(o),u=Ht(u);var x=u?Ri(o):0;return u&&x<u?o+Ko(u-x,y):o}function QE(o,u,y){o=se(o),u=Ht(u);var x=u?Ri(o):0;return u&&x<u?Ko(u-x,y)+o:o}function tA(o,u,y){return y||u==null?u=0:u&&(u=+u),aw(se(o).replace(rt,""),u||0)}function eA(o,u,y){return(y?rn(o,u,y):u===e)?u=1:u=Ht(u),xu(se(o),u)}function nA(){var o=arguments,u=se(o[0]);return o.length<3?u:u.replace(o[1],o[2])}var rA=Bi(function(o,u,y){return o+(y?"_":"")+u.toLowerCase()});function iA(o,u,y){return y&&typeof y!="number"&&rn(o,u,y)&&(u=y=e),y=y===e?Ct:y>>>0,y?(o=se(o),o&&(typeof u=="string"||u!=null&&!Vu(u))&&(u=bn(u),!u&&Mi(o))?Ur(qn(o),0,y):o.split(u,y)):[]}var sA=Bi(function(o,u,y){return o+(y?" ":"")+Yu(u)});function oA(o,u,y){return o=se(o),y=y==null?0:ii(Ht(y),0,o.length),u=bn(u),o.slice(y,y+u.length)==u}function aA(o,u,y){var x=B.templateSettings;y&&rn(o,u,y)&&(u=e),o=se(o),u=aa({},u,x,Fp);var P=aa({},u.imports,x.imports,Fp),F=Ve(P),H=su(P,F),$,tt,gt=0,vt=u.interpolate||_o,wt="__p += '",Mt=au((u.escape||_o).source+"|"+vt.source+"|"+(vt===bo?U_:_o).source+"|"+(u.evaluate||_o).source+"|$","g"),Pt="//# sourceURL="+(ae.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++m1+"]")+`
|
|
32
|
+
`;o.replace(Mt,function(Dt,Gt,Zt,wn,sn,xn){return Zt||(Zt=wn),wt+=o.slice(gt,xn).replace(G_,D1),Gt&&($=!0,wt+=`' +
|
|
33
33
|
__e(`+Gt+`) +
|
|
34
34
|
'`),sn&&(tt=!0,wt+=`';
|
|
35
35
|
`+sn+`;
|
|
36
36
|
__p += '`),Zt&&(wt+=`' +
|
|
37
37
|
((__t = (`+Zt+`)) == null ? '' : __t) +
|
|
38
38
|
'`),gt=xn+Dt.length,Dt}),wt+=`';
|
|
39
|
-
`;var
|
|
39
|
+
`;var Bt=ae.call(u,"variable")&&u.variable;if(!Bt)wt=`with (obj) {
|
|
40
40
|
`+wt+`
|
|
41
41
|
}
|
|
42
|
-
`;else if(oe.test(
|
|
43
|
-
`+(
|
|
42
|
+
`;else if(oe.test(Bt))throw new Nt(l);wt=(tt?wt.replace(ce,""):wt).replace(fe,"$1").replace(de,"$1;"),wt="function("+(Bt||"obj")+`) {
|
|
43
|
+
`+(Bt?"":`obj || (obj = {});
|
|
44
44
|
`)+"var __t, __p = ''"+($?", __e = _.escape":"")+(tt?`, __j = Array.prototype.join;
|
|
45
45
|
function print() { __p += __j.call(arguments, '') }
|
|
46
46
|
`:`;
|
|
47
47
|
`)+wt+`return __p
|
|
48
|
-
}`;var zt=wg(function(){return ie(F,Pt+"return "+wt).apply(e,H)});if(zt.source=wt,ju(zt))throw zt;return zt}function ZE(o){return se(o).toLowerCase()}function QE(o){return se(o).toUpperCase()}function tA(o,u,y){if(o=se(o),o&&(y||u===e))return Pd(o);if(!o||!(u=bn(u)))return o;var x=jn(o),P=jn(u),F=Od(x,P),H=Ld(x,P)+1;return Nr(x,F,H).join("")}function eA(o,u,y){if(o=se(o),o&&(y||u===e))return o.slice(0,Bd(o)+1);if(!o||!(u=bn(u)))return o;var x=jn(o),P=Ld(x,jn(u))+1;return Nr(x,0,P).join("")}function nA(o,u,y){if(o=se(o),o&&(y||u===e))return o.replace(rt,"");if(!o||!(u=bn(u)))return o;var x=jn(o),P=Od(x,jn(u));return Nr(x,P).join("")}function rA(o,u){var y=z,x=G;if(Re(u)){var P="separator"in u?u.separator:P;y="length"in u?Ht(u.length):y,x="omission"in u?bn(u.omission):x}o=se(o);var F=o.length;if(Ai(o)){var H=jn(o);F=H.length}if(y>=F)return o;var $=y-ki(x);if($<1)return x;var tt=H?Nr(H,0,$).join(""):o.slice(0,$);if(P===e)return tt+x;if(H&&($+=tt.length-$),Uu(P)){if(o.slice($).search(P)){var gt,vt=tt;for(P.global||(P=nu(P.source,se(Zh.exec(P))+"g")),P.lastIndex=0;gt=P.exec(vt);)var wt=gt.index;tt=tt.slice(0,wt===e?$:wt)}}else if(o.indexOf(bn(P),$)!=$){var Rt=tt.lastIndexOf(P);Rt>-1&&(tt=tt.slice(0,Rt))}return tt+x}function iA(o){return o=se(o),o&&Mn.test(o)?o.replace(ne,T1):o}var sA=Ti(function(o,u,y){return o+(y?" ":"")+u.toUpperCase()}),Hu=xp("toUpperCase");function _g(o,u,y){return o=se(o),u=y?e:u,u===e?M1(o)?D1(o):b1(o):o.match(u)||[]}var wg=$t(function(o,u){try{return yn(o,e,u)}catch(y){return ju(y)?y:new jt(y)}}),oA=dr(function(o,u){return Pn(u,function(y){y=Zn(y),fr(o,y,Fu(o[y],o))}),o});function aA(o){var u=o==null?0:o.length,y=Bt();return o=u?Se(o,function(x){if(typeof x[1]!="function")throw new On(a);return[y(x[0]),x[1]]}):[],$t(function(x){for(var P=-1;++P<u;){var F=o[P];if(yn(F[0],this,x))return yn(F[1],this,x)}})}function lA(o){return Tw(Tn(o,g))}function zu(o){return function(){return o}}function uA(o,u){return o==null||o!==o?u:o}var cA=Ep(),fA=Ep(!0);function cn(o){return o}function Vu(o){return tp(typeof o=="function"?o:Tn(o,g))}function hA(o){return np(Tn(o,g))}function dA(o,u){return rp(o,Tn(u,g))}var pA=$t(function(o,u){return function(y){return gs(y,o,u)}}),gA=$t(function(o,u){return function(y){return gs(o,y,u)}});function $u(o,u,y){var x=$e(u),P=Fo(u,x);y==null&&!(Re(u)&&(P.length||!x.length))&&(y=u,u=o,o=this,P=Fo(u,$e(u)));var F=!(Re(y)&&"chain"in y)||!!y.chain,H=gr(o);return Pn(P,function($){var tt=u[$];o[$]=tt,H&&(o.prototype[$]=function(){var gt=this.__chain__;if(F||gt){var vt=o(this.__wrapped__),wt=vt.__actions__=an(this.__actions__);return wt.push({func:tt,args:arguments,thisArg:o}),vt.__chain__=gt,vt}return tt.apply(o,Lr([this.value()],arguments))})}),o}function mA(){return Ke._===this&&(Ke._=W1),this}function Gu(){}function yA(o){return o=Ht(o),$t(function(u){return ip(u,o)})}var vA=Eu(Se),bA=Eu(Ad),_A=Eu(Kl);function xg(o){return Ou(o)?Xl(Zn(o)):Xw(o)}function wA(o){return function(u){return o==null?e:ri(o,u)}}var xA=kp(),SA=kp(!0);function Yu(){return[]}function Ku(){return!1}function EA(){return{}}function AA(){return""}function kA(){return!0}function RA(o,u){if(o=Ht(o),o<1||o>bt)return[];var y=Ot,x=Je(o,Ot);u=Bt(u),o-=Ot;for(var P=Ql(x,u);++y<o;)u(y);return P}function MA(o){return qt(o)?Se(o,Zn):_n(o)?[o]:an(Wp(se(o)))}function CA(o){var u=++U1;return se(o)+u}var PA=Ho(function(o,u){return o+u},0),OA=Au("ceil"),LA=Ho(function(o,u){return o/u},1),TA=Au("floor");function BA(o){return o&&o.length?Do(o,cn,cu):e}function IA(o,u){return o&&o.length?Do(o,Bt(u,2),cu):e}function DA(o){return Md(o,cn)}function FA(o,u){return Md(o,Bt(u,2))}function NA(o){return o&&o.length?Do(o,cn,pu):e}function jA(o,u){return o&&o.length?Do(o,Bt(u,2),pu):e}var UA=Ho(function(o,u){return o*u},1),qA=Au("round"),WA=Ho(function(o,u){return o-u},0);function HA(o){return o&&o.length?Zl(o,cn):0}function zA(o,u){return o&&o.length?Zl(o,Bt(u,2)):0}return I.after=hS,I.ary=Qp,I.assign=QS,I.assignIn=dg,I.assignInWith=na,I.assignWith=tE,I.at=eE,I.before=tg,I.bind=Fu,I.bindAll=oA,I.bindKey=eg,I.castArray=ES,I.chain=Xp,I.chunk=T2,I.compact=B2,I.concat=I2,I.cond=aA,I.conforms=lA,I.constant=zu,I.countBy=Hx,I.create=nE,I.curry=ng,I.curryRight=rg,I.debounce=ig,I.defaults=rE,I.defaultsDeep=iE,I.defer=dS,I.delay=pS,I.difference=D2,I.differenceBy=F2,I.differenceWith=N2,I.drop=j2,I.dropRight=U2,I.dropRightWhile=q2,I.dropWhile=W2,I.fill=H2,I.filter=Vx,I.flatMap=Yx,I.flatMapDeep=Kx,I.flatMapDepth=Xx,I.flatten=$p,I.flattenDeep=z2,I.flattenDepth=V2,I.flip=gS,I.flow=cA,I.flowRight=fA,I.fromPairs=$2,I.functions=fE,I.functionsIn=hE,I.groupBy=Jx,I.initial=Y2,I.intersection=K2,I.intersectionBy=X2,I.intersectionWith=J2,I.invert=pE,I.invertBy=gE,I.invokeMap=Qx,I.iteratee=Vu,I.keyBy=tS,I.keys=$e,I.keysIn=un,I.map=Xo,I.mapKeys=yE,I.mapValues=vE,I.matches=hA,I.matchesProperty=dA,I.memoize=Zo,I.merge=bE,I.mergeWith=pg,I.method=pA,I.methodOf=gA,I.mixin=$u,I.negate=Qo,I.nthArg=yA,I.omit=_E,I.omitBy=wE,I.once=mS,I.orderBy=eS,I.over=vA,I.overArgs=yS,I.overEvery=bA,I.overSome=_A,I.partial=Nu,I.partialRight=sg,I.partition=nS,I.pick=xE,I.pickBy=gg,I.property=xg,I.propertyOf=wA,I.pull=ex,I.pullAll=Yp,I.pullAllBy=nx,I.pullAllWith=rx,I.pullAt=ix,I.range=xA,I.rangeRight=SA,I.rearg=vS,I.reject=sS,I.remove=sx,I.rest=bS,I.reverse=Iu,I.sampleSize=aS,I.set=EE,I.setWith=AE,I.shuffle=lS,I.slice=ox,I.sortBy=fS,I.sortedUniq=dx,I.sortedUniqBy=px,I.split=YE,I.spread=_S,I.tail=gx,I.take=mx,I.takeRight=yx,I.takeRightWhile=vx,I.takeWhile=bx,I.tap=Bx,I.throttle=wS,I.thru=Ko,I.toArray=cg,I.toPairs=mg,I.toPairsIn=yg,I.toPath=MA,I.toPlainObject=hg,I.transform=kE,I.unary=xS,I.union=_x,I.unionBy=wx,I.unionWith=xx,I.uniq=Sx,I.uniqBy=Ex,I.uniqWith=Ax,I.unset=RE,I.unzip=Du,I.unzipWith=Kp,I.update=ME,I.updateWith=CE,I.values=Di,I.valuesIn=PE,I.without=kx,I.words=_g,I.wrap=SS,I.xor=Rx,I.xorBy=Mx,I.xorWith=Cx,I.zip=Px,I.zipObject=Ox,I.zipObjectDeep=Lx,I.zipWith=Tx,I.entries=mg,I.entriesIn=yg,I.extend=dg,I.extendWith=na,$u(I,I),I.add=PA,I.attempt=wg,I.camelCase=BE,I.capitalize=vg,I.ceil=OA,I.clamp=OE,I.clone=AS,I.cloneDeep=RS,I.cloneDeepWith=MS,I.cloneWith=kS,I.conformsTo=CS,I.deburr=bg,I.defaultTo=uA,I.divide=LA,I.endsWith=IE,I.eq=qn,I.escape=DE,I.escapeRegExp=FE,I.every=zx,I.find=$x,I.findIndex=zp,I.findKey=sE,I.findLast=Gx,I.findLastIndex=Vp,I.findLastKey=oE,I.floor=TA,I.forEach=Jp,I.forEachRight=Zp,I.forIn=aE,I.forInRight=lE,I.forOwn=uE,I.forOwnRight=cE,I.get=qu,I.gt=PS,I.gte=OS,I.has=dE,I.hasIn=Wu,I.head=Gp,I.identity=cn,I.includes=Zx,I.indexOf=G2,I.inRange=LE,I.invoke=mE,I.isArguments=oi,I.isArray=qt,I.isArrayBuffer=LS,I.isArrayLike=ln,I.isArrayLikeObject=Te,I.isBoolean=TS,I.isBuffer=jr,I.isDate=BS,I.isElement=IS,I.isEmpty=DS,I.isEqual=FS,I.isEqualWith=NS,I.isError=ju,I.isFinite=jS,I.isFunction=gr,I.isInteger=og,I.isLength=ta,I.isMap=ag,I.isMatch=US,I.isMatchWith=qS,I.isNaN=WS,I.isNative=HS,I.isNil=VS,I.isNull=zS,I.isNumber=lg,I.isObject=Re,I.isObjectLike=Pe,I.isPlainObject=ws,I.isRegExp=Uu,I.isSafeInteger=$S,I.isSet=ug,I.isString=ea,I.isSymbol=_n,I.isTypedArray=Ii,I.isUndefined=GS,I.isWeakMap=YS,I.isWeakSet=KS,I.join=Z2,I.kebabCase=NE,I.last=In,I.lastIndexOf=Q2,I.lowerCase=jE,I.lowerFirst=UE,I.lt=XS,I.lte=JS,I.max=BA,I.maxBy=IA,I.mean=DA,I.meanBy=FA,I.min=NA,I.minBy=jA,I.stubArray=Yu,I.stubFalse=Ku,I.stubObject=EA,I.stubString=AA,I.stubTrue=kA,I.multiply=UA,I.nth=tx,I.noConflict=mA,I.noop=Gu,I.now=Jo,I.pad=qE,I.padEnd=WE,I.padStart=HE,I.parseInt=zE,I.random=TE,I.reduce=rS,I.reduceRight=iS,I.repeat=VE,I.replace=$E,I.result=SE,I.round=qA,I.runInContext=Z,I.sample=oS,I.size=uS,I.snakeCase=GE,I.some=cS,I.sortedIndex=ax,I.sortedIndexBy=lx,I.sortedIndexOf=ux,I.sortedLastIndex=cx,I.sortedLastIndexBy=fx,I.sortedLastIndexOf=hx,I.startCase=KE,I.startsWith=XE,I.subtract=WA,I.sum=HA,I.sumBy=zA,I.template=JE,I.times=RA,I.toFinite=mr,I.toInteger=Ht,I.toLength=fg,I.toLower=ZE,I.toNumber=Dn,I.toSafeInteger=ZS,I.toString=se,I.toUpper=QE,I.trim=tA,I.trimEnd=eA,I.trimStart=nA,I.truncate=rA,I.unescape=iA,I.uniqueId=CA,I.upperCase=sA,I.upperFirst=Hu,I.each=Jp,I.eachRight=Zp,I.first=Gp,$u(I,function(){var o={};return Xn(I,function(u,y){ae.call(I.prototype,y)||(o[y]=u)}),o}(),{chain:!1}),I.VERSION=r,Pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),Pn(["drop","take"],function(o,u){Xt.prototype[o]=function(y){y=y===e?1:qe(Ht(y),0);var x=this.__filtered__&&!u?new Xt(this):this.clone();return x.__filtered__?x.__takeCount__=Je(y,x.__takeCount__):x.__views__.push({size:Je(y,Ot),type:o+(x.__dir__<0?"Right":"")}),x},Xt.prototype[o+"Right"]=function(y){return this.reverse()[o](y).reverse()}}),Pn(["filter","map","takeWhile"],function(o,u){var y=u+1,x=y==dt||y==at;Xt.prototype[o]=function(P){var F=this.clone();return F.__iteratees__.push({iteratee:Bt(P,3),type:y}),F.__filtered__=F.__filtered__||x,F}}),Pn(["head","last"],function(o,u){var y="take"+(u?"Right":"");Xt.prototype[o]=function(){return this[y](1).value()[0]}}),Pn(["initial","tail"],function(o,u){var y="drop"+(u?"":"Right");Xt.prototype[o]=function(){return this.__filtered__?new Xt(this):this[y](1)}}),Xt.prototype.compact=function(){return this.filter(cn)},Xt.prototype.find=function(o){return this.filter(o).head()},Xt.prototype.findLast=function(o){return this.reverse().find(o)},Xt.prototype.invokeMap=$t(function(o,u){return typeof o=="function"?new Xt(this):this.map(function(y){return gs(y,o,u)})}),Xt.prototype.reject=function(o){return this.filter(Qo(Bt(o)))},Xt.prototype.slice=function(o,u){o=Ht(o);var y=this;return y.__filtered__&&(o>0||u<0)?new Xt(y):(o<0?y=y.takeRight(-o):o&&(y=y.drop(o)),u!==e&&(u=Ht(u),y=u<0?y.dropRight(-u):y.take(u-o)),y)},Xt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Xt.prototype.toArray=function(){return this.take(Ot)},Xn(Xt.prototype,function(o,u){var y=/^(?:filter|find|map|reject)|While$/.test(u),x=/^(?:head|last)$/.test(u),P=I[x?"take"+(u=="last"?"Right":""):u],F=x||/^find/.test(u);P&&(I.prototype[u]=function(){var H=this.__wrapped__,$=x?[1]:arguments,tt=H instanceof Xt,gt=$[0],vt=tt||qt(H),wt=function(Gt){var Zt=P.apply(I,Lr([Gt],$));return x&&Rt?Zt[0]:Zt};vt&&y&&typeof gt=="function"&>.length!=1&&(tt=vt=!1);var Rt=this.__chain__,Pt=!!this.__actions__.length,It=F&&!Rt,zt=tt&&!Pt;if(!F&&vt){H=zt?H:new Xt(this);var Dt=o.apply(H,$);return Dt.__actions__.push({func:Ko,args:[wt],thisArg:e}),new Ln(Dt,Rt)}return It&&zt?o.apply(this,$):(Dt=this.thru(wt),It?x?Dt.value()[0]:Dt.value():Dt)})}),Pn(["pop","push","shift","sort","splice","unshift"],function(o){var u=wo[o],y=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",x=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var P=arguments;if(x&&!this.__chain__){var F=this.value();return u.apply(qt(F)?F:[],P)}return this[y](function(H){return u.apply(qt(H)?H:[],P)})}}),Xn(Xt.prototype,function(o,u){var y=I[u];if(y){var x=y.name+"";ae.call(Pi,x)||(Pi[x]=[]),Pi[x].push({name:u,func:y})}}),Pi[Wo(e,_).name]=[{name:"wrapper",func:e}],Xt.prototype.clone=iw,Xt.prototype.reverse=sw,Xt.prototype.value=ow,I.prototype.at=Ix,I.prototype.chain=Dx,I.prototype.commit=Fx,I.prototype.next=Nx,I.prototype.plant=Ux,I.prototype.reverse=qx,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=Wx,I.prototype.first=I.prototype.head,ls&&(I.prototype[ls]=jx),I},Ri=F1();Zr?((Zr.exports=Ri)._=Ri,Vl._=Ri):Ke._=Ri}).call(Ok)}(Os,Os.exports)),Os.exports}var Tk=Lk();const kn=_i(Tk),oo=n=>function(...t){return n(this)(...t)};var Ma={exports:{}},gm;function Bk(){return gm||(gm=1,function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),e.BASE=2166136261;function e(r,i=e.BASE){const s=r.length;for(let a=0;a<s;a++)i^=r.charCodeAt(a),i+=(i<<1)+(i<<4)+(i<<7)+(i<<8)+(i<<24);return i>>>0}t.default=e,n.exports=e}(Ma,Ma.exports)),Ma.exports}var Ik=Bk();const Dk=_i(Ik),yh=(n,t,e="")=>Object.entries(n).reduce((r,[i,s])=>{const a=`${e}${e?".":""}${i}`;return kn.isObject(s)&&!t.includes(a)?r.concat(yh(s,t,a)):r.concat([[a,s]])},[]),ml=n=>`hsl(${Math.floor(Dk(n))/120%360}, 100%, 74%)`,Fk=oo(n=>(t,e,r,{fn:i,inverse:s})=>{const l=(()=>{switch(e){case"eq":return t===r;case"neq":return t!==r;case"lt":return t<r;case"lte":return t<=r;case"gt":return t>r;case"gte":return t>=r;default:return!1}})();return l?i?i(n):s?s(n):l:null}),Nk=oo(()=>(n,t)=>kn.truncate(n,{length:t})),jk=oo(()=>n=>new Date(n).toLocaleTimeString()),Uk=oo(()=>n=>(n/1e3).toFixed(3)),qk=oo(()=>n=>ml(n)),Wk=Object.freeze(Object.defineProperty({__proto__:null,compare:Fk,toColor:qk,toLocaleTime:jk,toSeconds:Uk,truncate:Nk},Symbol.toStringTag,{value:"Module"})),Hk=`
|
|
48
|
+
}`;var zt=Og(function(){return ie(F,Pt+"return "+wt).apply(e,H)});if(zt.source=wt,zu(zt))throw zt;return zt}function lA(o){return se(o).toLowerCase()}function uA(o){return se(o).toUpperCase()}function cA(o,u,y){if(o=se(o),o&&(y||u===e))return Nd(o);if(!o||!(u=bn(u)))return o;var x=qn(o),P=qn(u),F=jd(x,P),H=Ud(x,P)+1;return Ur(x,F,H).join("")}function fA(o,u,y){if(o=se(o),o&&(y||u===e))return o.slice(0,Wd(o)+1);if(!o||!(u=bn(u)))return o;var x=qn(o),P=Ud(x,qn(u))+1;return Ur(x,0,P).join("")}function hA(o,u,y){if(o=se(o),o&&(y||u===e))return o.replace(rt,"");if(!o||!(u=bn(u)))return o;var x=qn(o),P=jd(x,qn(u));return Ur(x,P).join("")}function dA(o,u){var y=z,x=G;if(Me(u)){var P="separator"in u?u.separator:P;y="length"in u?Ht(u.length):y,x="omission"in u?bn(u.omission):x}o=se(o);var F=o.length;if(Mi(o)){var H=qn(o);F=H.length}if(y>=F)return o;var $=y-Ri(x);if($<1)return x;var tt=H?Ur(H,0,$).join(""):o.slice(0,$);if(P===e)return tt+x;if(H&&($+=tt.length-$),Vu(P)){if(o.slice($).search(P)){var gt,vt=tt;for(P.global||(P=au(P.source,se(od.exec(P))+"g")),P.lastIndex=0;gt=P.exec(vt);)var wt=gt.index;tt=tt.slice(0,wt===e?$:wt)}}else if(o.indexOf(bn(P),$)!=$){var Mt=tt.lastIndexOf(P);Mt>-1&&(tt=tt.slice(0,Mt))}return tt+x}function pA(o){return o=se(o),o&&Rn.test(o)?o.replace(ne,H1):o}var gA=Bi(function(o,u,y){return o+(y?" ":"")+u.toUpperCase()}),Yu=Pp("toUpperCase");function Rg(o,u,y){return o=se(o),u=y?e:u,u===e?N1(o)?$1(o):O1(o):o.match(u)||[]}var Og=$t(function(o,u){try{return yn(o,e,u)}catch(y){return zu(y)?y:new Nt(y)}}),mA=gr(function(o,u){return Pn(u,function(y){y=er(y),dr(o,y,Wu(o[y],o))}),o});function yA(o){var u=o==null?0:o.length,y=It();return o=u?Se(o,function(x){if(typeof x[1]!="function")throw new Cn(a);return[y(x[0]),x[1]]}):[],$t(function(x){for(var P=-1;++P<u;){var F=o[P];if(yn(F[0],this,x))return yn(F[1],this,x)}})}function vA(o){return Hw(Tn(o,g))}function Ku(o){return function(){return o}}function bA(o,u){return o==null||o!==o?u:o}var _A=Lp(),wA=Lp(!0);function cn(o){return o}function Xu(o){return lp(typeof o=="function"?o:Tn(o,g))}function xA(o){return cp(Tn(o,g))}function SA(o,u){return fp(o,Tn(u,g))}var EA=$t(function(o,u){return function(y){return bs(y,o,u)}}),AA=$t(function(o,u){return function(y){return bs(o,y,u)}});function Ju(o,u,y){var x=Ve(u),P=Wo(u,x);y==null&&!(Me(u)&&(P.length||!x.length))&&(y=u,u=o,o=this,P=Wo(u,Ve(u)));var F=!(Me(y)&&"chain"in y)||!!y.chain,H=yr(o);return Pn(P,function($){var tt=u[$];o[$]=tt,H&&(o.prototype[$]=function(){var gt=this.__chain__;if(F||gt){var vt=o(this.__wrapped__),wt=vt.__actions__=an(this.__actions__);return wt.push({func:tt,args:arguments,thisArg:o}),vt.__chain__=gt,vt}return tt.apply(o,Ir([this.value()],arguments))})}),o}function kA(){return Ye._===this&&(Ye._=Z1),this}function Zu(){}function MA(o){return o=Ht(o),$t(function(u){return hp(u,o)})}var RA=Ou(Se),OA=Ou(Td),PA=Ou(tu);function Pg(o){return Du(o)?eu(er(o)):o2(o)}function CA(o){return function(u){return o==null?e:si(o,u)}}var LA=Ip(),TA=Ip(!0);function Qu(){return[]}function tc(){return!1}function IA(){return{}}function BA(){return""}function DA(){return!0}function FA(o,u){if(o=Ht(o),o<1||o>bt)return[];var y=Ct,x=Je(o,Ct);u=It(u),o-=Ct;for(var P=iu(x,u);++y<o;)u(y);return P}function NA(o){return qt(o)?Se(o,er):_n(o)?[o]:an(Xp(se(o)))}function jA(o){var u=++X1;return se(o)+u}var UA=Yo(function(o,u){return o+u},0),qA=Pu("ceil"),WA=Yo(function(o,u){return o/u},1),HA=Pu("floor");function zA(o){return o&&o.length?qo(o,cn,gu):e}function VA(o,u){return o&&o.length?qo(o,It(u,2),gu):e}function $A(o){return Dd(o,cn)}function GA(o,u){return Dd(o,It(u,2))}function YA(o){return o&&o.length?qo(o,cn,bu):e}function KA(o,u){return o&&o.length?qo(o,It(u,2),bu):e}var XA=Yo(function(o,u){return o*u},1),JA=Pu("round"),ZA=Yo(function(o,u){return o-u},0);function QA(o){return o&&o.length?ru(o,cn):0}function tk(o,u){return o&&o.length?ru(o,It(u,2)):0}return B.after=xS,B.ary=ag,B.assign=uE,B.assignIn=wg,B.assignInWith=aa,B.assignWith=cE,B.at=fE,B.before=lg,B.bind=Wu,B.bindAll=mA,B.bindKey=ug,B.castArray=IS,B.chain=ig,B.chunk=H2,B.compact=z2,B.concat=V2,B.cond=yA,B.conforms=vA,B.constant=Ku,B.countBy=Qx,B.create=hE,B.curry=cg,B.curryRight=fg,B.debounce=hg,B.defaults=dE,B.defaultsDeep=pE,B.defer=SS,B.delay=ES,B.difference=$2,B.differenceBy=G2,B.differenceWith=Y2,B.drop=K2,B.dropRight=X2,B.dropRightWhile=J2,B.dropWhile=Z2,B.fill=Q2,B.filter=eS,B.flatMap=iS,B.flatMapDeep=sS,B.flatMapDepth=oS,B.flatten=tg,B.flattenDeep=tx,B.flattenDepth=ex,B.flip=AS,B.flow=_A,B.flowRight=wA,B.fromPairs=nx,B.functions=wE,B.functionsIn=xE,B.groupBy=aS,B.initial=ix,B.intersection=sx,B.intersectionBy=ox,B.intersectionWith=ax,B.invert=EE,B.invertBy=AE,B.invokeMap=uS,B.iteratee=Xu,B.keyBy=cS,B.keys=Ve,B.keysIn=un,B.map=ea,B.mapKeys=ME,B.mapValues=RE,B.matches=xA,B.matchesProperty=SA,B.memoize=ra,B.merge=OE,B.mergeWith=xg,B.method=EA,B.methodOf=AA,B.mixin=Ju,B.negate=ia,B.nthArg=MA,B.omit=PE,B.omitBy=CE,B.once=kS,B.orderBy=fS,B.over=RA,B.overArgs=MS,B.overEvery=OA,B.overSome=PA,B.partial=Hu,B.partialRight=dg,B.partition=hS,B.pick=LE,B.pickBy=Sg,B.property=Pg,B.propertyOf=CA,B.pull=fx,B.pullAll=ng,B.pullAllBy=hx,B.pullAllWith=dx,B.pullAt=px,B.range=LA,B.rangeRight=TA,B.rearg=RS,B.reject=gS,B.remove=gx,B.rest=OS,B.reverse=Uu,B.sampleSize=yS,B.set=IE,B.setWith=BE,B.shuffle=vS,B.slice=mx,B.sortBy=wS,B.sortedUniq=Sx,B.sortedUniqBy=Ex,B.split=iA,B.spread=PS,B.tail=Ax,B.take=kx,B.takeRight=Mx,B.takeRightWhile=Rx,B.takeWhile=Ox,B.tap=zx,B.throttle=CS,B.thru=ta,B.toArray=vg,B.toPairs=Eg,B.toPairsIn=Ag,B.toPath=NA,B.toPlainObject=_g,B.transform=DE,B.unary=LS,B.union=Px,B.unionBy=Cx,B.unionWith=Lx,B.uniq=Tx,B.uniqBy=Ix,B.uniqWith=Bx,B.unset=FE,B.unzip=qu,B.unzipWith=rg,B.update=NE,B.updateWith=jE,B.values=Ni,B.valuesIn=UE,B.without=Dx,B.words=Rg,B.wrap=TS,B.xor=Fx,B.xorBy=Nx,B.xorWith=jx,B.zip=Ux,B.zipObject=qx,B.zipObjectDeep=Wx,B.zipWith=Hx,B.entries=Eg,B.entriesIn=Ag,B.extend=wg,B.extendWith=aa,Ju(B,B),B.add=UA,B.attempt=Og,B.camelCase=zE,B.capitalize=kg,B.ceil=qA,B.clamp=qE,B.clone=BS,B.cloneDeep=FS,B.cloneDeepWith=NS,B.cloneWith=DS,B.conformsTo=jS,B.deburr=Mg,B.defaultTo=bA,B.divide=WA,B.endsWith=VE,B.eq=Hn,B.escape=$E,B.escapeRegExp=GE,B.every=tS,B.find=nS,B.findIndex=Zp,B.findKey=gE,B.findLast=rS,B.findLastIndex=Qp,B.findLastKey=mE,B.floor=HA,B.forEach=sg,B.forEachRight=og,B.forIn=yE,B.forInRight=vE,B.forOwn=bE,B.forOwnRight=_E,B.get=$u,B.gt=US,B.gte=qS,B.has=SE,B.hasIn=Gu,B.head=eg,B.identity=cn,B.includes=lS,B.indexOf=rx,B.inRange=WE,B.invoke=kE,B.isArguments=li,B.isArray=qt,B.isArrayBuffer=WS,B.isArrayLike=ln,B.isArrayLikeObject=Le,B.isBoolean=HS,B.isBuffer=qr,B.isDate=zS,B.isElement=VS,B.isEmpty=$S,B.isEqual=GS,B.isEqualWith=YS,B.isError=zu,B.isFinite=KS,B.isFunction=yr,B.isInteger=pg,B.isLength=sa,B.isMap=gg,B.isMatch=XS,B.isMatchWith=JS,B.isNaN=ZS,B.isNative=QS,B.isNil=eE,B.isNull=tE,B.isNumber=mg,B.isObject=Me,B.isObjectLike=Pe,B.isPlainObject=As,B.isRegExp=Vu,B.isSafeInteger=nE,B.isSet=yg,B.isString=oa,B.isSymbol=_n,B.isTypedArray=Fi,B.isUndefined=rE,B.isWeakMap=iE,B.isWeakSet=sE,B.join=lx,B.kebabCase=YE,B.last=Bn,B.lastIndexOf=ux,B.lowerCase=KE,B.lowerFirst=XE,B.lt=oE,B.lte=aE,B.max=zA,B.maxBy=VA,B.mean=$A,B.meanBy=GA,B.min=YA,B.minBy=KA,B.stubArray=Qu,B.stubFalse=tc,B.stubObject=IA,B.stubString=BA,B.stubTrue=DA,B.multiply=XA,B.nth=cx,B.noConflict=kA,B.noop=Zu,B.now=na,B.pad=JE,B.padEnd=ZE,B.padStart=QE,B.parseInt=tA,B.random=HE,B.reduce=dS,B.reduceRight=pS,B.repeat=eA,B.replace=nA,B.result=TE,B.round=JA,B.runInContext=Z,B.sample=mS,B.size=bS,B.snakeCase=rA,B.some=_S,B.sortedIndex=yx,B.sortedIndexBy=vx,B.sortedIndexOf=bx,B.sortedLastIndex=_x,B.sortedLastIndexBy=wx,B.sortedLastIndexOf=xx,B.startCase=sA,B.startsWith=oA,B.subtract=ZA,B.sum=QA,B.sumBy=tk,B.template=aA,B.times=FA,B.toFinite=vr,B.toInteger=Ht,B.toLength=bg,B.toLower=lA,B.toNumber=Dn,B.toSafeInteger=lE,B.toString=se,B.toUpper=uA,B.trim=cA,B.trimEnd=fA,B.trimStart=hA,B.truncate=dA,B.unescape=pA,B.uniqueId=jA,B.upperCase=gA,B.upperFirst=Yu,B.each=sg,B.eachRight=og,B.first=eg,Ju(B,function(){var o={};return Qn(B,function(u,y){ae.call(B.prototype,y)||(o[y]=u)}),o}(),{chain:!1}),B.VERSION=r,Pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){B[o].placeholder=B}),Pn(["drop","take"],function(o,u){Xt.prototype[o]=function(y){y=y===e?1:Ue(Ht(y),0);var x=this.__filtered__&&!u?new Xt(this):this.clone();return x.__filtered__?x.__takeCount__=Je(y,x.__takeCount__):x.__views__.push({size:Je(y,Ct),type:o+(x.__dir__<0?"Right":"")}),x},Xt.prototype[o+"Right"]=function(y){return this.reverse()[o](y).reverse()}}),Pn(["filter","map","takeWhile"],function(o,u){var y=u+1,x=y==dt||y==at;Xt.prototype[o]=function(P){var F=this.clone();return F.__iteratees__.push({iteratee:It(P,3),type:y}),F.__filtered__=F.__filtered__||x,F}}),Pn(["head","last"],function(o,u){var y="take"+(u?"Right":"");Xt.prototype[o]=function(){return this[y](1).value()[0]}}),Pn(["initial","tail"],function(o,u){var y="drop"+(u?"":"Right");Xt.prototype[o]=function(){return this.__filtered__?new Xt(this):this[y](1)}}),Xt.prototype.compact=function(){return this.filter(cn)},Xt.prototype.find=function(o){return this.filter(o).head()},Xt.prototype.findLast=function(o){return this.reverse().find(o)},Xt.prototype.invokeMap=$t(function(o,u){return typeof o=="function"?new Xt(this):this.map(function(y){return bs(y,o,u)})}),Xt.prototype.reject=function(o){return this.filter(ia(It(o)))},Xt.prototype.slice=function(o,u){o=Ht(o);var y=this;return y.__filtered__&&(o>0||u<0)?new Xt(y):(o<0?y=y.takeRight(-o):o&&(y=y.drop(o)),u!==e&&(u=Ht(u),y=u<0?y.dropRight(-u):y.take(u-o)),y)},Xt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Xt.prototype.toArray=function(){return this.take(Ct)},Qn(Xt.prototype,function(o,u){var y=/^(?:filter|find|map|reject)|While$/.test(u),x=/^(?:head|last)$/.test(u),P=B[x?"take"+(u=="last"?"Right":""):u],F=x||/^find/.test(u);P&&(B.prototype[u]=function(){var H=this.__wrapped__,$=x?[1]:arguments,tt=H instanceof Xt,gt=$[0],vt=tt||qt(H),wt=function(Gt){var Zt=P.apply(B,Ir([Gt],$));return x&&Mt?Zt[0]:Zt};vt&&y&&typeof gt=="function"&>.length!=1&&(tt=vt=!1);var Mt=this.__chain__,Pt=!!this.__actions__.length,Bt=F&&!Mt,zt=tt&&!Pt;if(!F&&vt){H=zt?H:new Xt(this);var Dt=o.apply(H,$);return Dt.__actions__.push({func:ta,args:[wt],thisArg:e}),new Ln(Dt,Mt)}return Bt&&zt?o.apply(this,$):(Dt=this.thru(wt),Bt?x?Dt.value()[0]:Dt.value():Dt)})}),Pn(["pop","push","shift","sort","splice","unshift"],function(o){var u=ko[o],y=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",x=/^(?:pop|shift)$/.test(o);B.prototype[o]=function(){var P=arguments;if(x&&!this.__chain__){var F=this.value();return u.apply(qt(F)?F:[],P)}return this[y](function(H){return u.apply(qt(H)?H:[],P)})}}),Qn(Xt.prototype,function(o,u){var y=B[u];if(y){var x=y.name+"";ae.call(Li,x)||(Li[x]=[]),Li[x].push({name:u,func:y})}}),Li[Go(e,b).name]=[{name:"wrapper",func:e}],Xt.prototype.clone=pw,Xt.prototype.reverse=gw,Xt.prototype.value=mw,B.prototype.at=Vx,B.prototype.chain=$x,B.prototype.commit=Gx,B.prototype.next=Yx,B.prototype.plant=Xx,B.prototype.reverse=Jx,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Zx,B.prototype.first=B.prototype.head,hs&&(B.prototype[hs]=Kx),B},Oi=G1();ti?((ti.exports=Oi)._=Oi,Xl._=Oi):Ye._=Oi}).call(qk)}(Fs,Fs.exports)),Fs.exports}var Hk=Wk();const kn=Jr(Hk),fo=n=>function(...t){return n(this)(...t)};var Ta={exports:{}},Sm;function zk(){return Sm||(Sm=1,function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),e.BASE=2166136261;function e(r,i=e.BASE){const s=r.length;for(let a=0;a<s;a++)i^=r.charCodeAt(a),i+=(i<<1)+(i<<4)+(i<<7)+(i<<8)+(i<<24);return i>>>0}t.default=e,n.exports=e}(Ta,Ta.exports)),Ta.exports}var Vk=zk();const $k=Jr(Vk),Sh=(n,t,e="")=>Object.entries(n).reduce((r,[i,s])=>{const a=`${e}${e?".":""}${i}`;return kn.isObject(s)&&!t.includes(a)?r.concat(Sh(s,t,a)):r.concat([[a,s]])},[]),wl=n=>`hsl(${Math.floor($k(n))/120%360}, 100%, 74%)`,Gk=fo(n=>(t,e,r,{fn:i,inverse:s})=>{const l=(()=>{switch(e){case"eq":return t===r;case"neq":return t!==r;case"lt":return t<r;case"lte":return t<=r;case"gt":return t>r;case"gte":return t>=r;default:return!1}})();return l?i?i(n):s?s(n):l:null}),Yk=fo(()=>(n,t)=>kn.truncate(n,{length:t})),Kk=fo(()=>n=>new Date(n).toLocaleTimeString()),Xk=fo(()=>n=>(n/1e3).toFixed(3)),Jk=fo(()=>n=>wl(n)),Zk=Object.freeze(Object.defineProperty({__proto__:null,compare:Gk,toColor:Jk,toLocaleTime:Kk,toSeconds:Xk,truncate:Yk},Symbol.toStringTag,{value:"Module"})),Qk=`
|
|
49
49
|
<div class="segment">
|
|
50
50
|
{{#compare format 'neq' 'short'}}
|
|
51
51
|
<button class="activity">
|
|
52
|
-
{{#if isEnabled}}
|
|
52
|
+
{{#if data.isEnabled}}
|
|
53
53
|
<i class="fas fa-plug"></i>
|
|
54
54
|
{{else}}
|
|
55
55
|
<i class="fas fa-power-off"></i>
|
|
56
56
|
{{/if}}
|
|
57
57
|
</button>
|
|
58
58
|
|
|
59
|
-
<span class="calls-count {{#compare meta.executionsCount 'gt' 0}}active{{/compare}}">
|
|
60
|
-
<i class="fas fa-undo-alt"></i>{{meta.executionsCount}}
|
|
59
|
+
<span class="calls-count {{#compare data.meta.executionsCount 'gt' 0}}active{{/compare}}">
|
|
60
|
+
<i class="fas fa-undo-alt"></i>{{data.meta.executionsCount}}
|
|
61
61
|
</span>
|
|
62
62
|
{{/compare}}
|
|
63
63
|
|
|
64
|
-
<span class="name"><b style="color: {{toColor group}};">{{group}}</b> {{name}}</span>
|
|
64
|
+
<span class="name"><b style="color: {{toColor data.group}};">{{data.group}}</b> {{data.name}}</span>
|
|
65
65
|
</div>
|
|
66
66
|
|
|
67
67
|
{{#compare format 'neq' 'short'}}
|
|
68
|
-
{{#compare meta.tags.length 'gt' 0}}<span class="arrow"><i class="fas fa-chevron-right"></i></span>{{/compare}}
|
|
68
|
+
{{#compare data.meta.tags.length 'gt' 0}}<span class="arrow"><i class="fas fa-chevron-right"></i></span>{{/compare}}
|
|
69
69
|
|
|
70
70
|
<div class="segment">
|
|
71
|
-
{{#each transports}}<span class="transport">{{this}}</span>{{/each}}
|
|
71
|
+
{{#each data.transports}}<span class="transport">{{this}}</span>{{/each}}
|
|
72
72
|
|
|
73
|
-
{{#each meta.tags}}
|
|
73
|
+
{{#each data.meta.tags}}
|
|
74
74
|
{{#compare @index 'lte' 5}}
|
|
75
75
|
{{#if (compare location 'eq' 'outgoing.status')}}
|
|
76
76
|
<span class="status
|
|
@@ -79,25 +79,25 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
79
79
|
"><b>{{value}}</b></span>
|
|
80
80
|
{{else if (compare location 'eq' 'method')}}
|
|
81
81
|
<span class="method" style="color: {{toColor value}};">{{value}}</span>
|
|
82
|
+
{{else if (compare location 'eq' 'path')}}
|
|
83
|
+
{{> metaPath this size=../options.pathSize}}
|
|
82
84
|
{{else}}
|
|
83
|
-
<span class="{{location}}">{{
|
|
85
|
+
<span class="{{location}}">{{this}}</span>
|
|
84
86
|
{{/if}}
|
|
85
87
|
{{/compare}}
|
|
86
88
|
{{/each}}
|
|
87
89
|
</div>
|
|
88
90
|
{{/compare}}
|
|
89
91
|
|
|
90
|
-
{{#with schema.forward}}
|
|
92
|
+
{{#with data.schema.forward}}
|
|
91
93
|
<span class="arrow"><i class="fas fa-chevron-right"></i></span>
|
|
92
94
|
|
|
93
95
|
<div class="segment">
|
|
94
96
|
{{#if baseUrl}}<span class="forward">{{> truncated value=baseUrl length=45}}</span>{{/if}}
|
|
95
97
|
{{#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
98
|
</div>
|
|
99
99
|
{{/with}}
|
|
100
|
-
`,
|
|
100
|
+
`,tM=`
|
|
101
101
|
{{#if (compare value.length 'gt' length)}}
|
|
102
102
|
<span class="truncated">
|
|
103
103
|
<span class="full">{{value}}</span>
|
|
@@ -106,9 +106,25 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
106
106
|
{{else}}
|
|
107
107
|
{{value}}
|
|
108
108
|
{{/if}}
|
|
109
|
-
`,
|
|
109
|
+
`,eM=`
|
|
110
|
+
<span class="path size-{{size}}">
|
|
111
|
+
{{#if (compare size 'eq' 'S')}}
|
|
112
|
+
{{> truncated this length=40}}
|
|
113
|
+
{{else if (compare size 'eq' 'M')}}
|
|
114
|
+
{{> truncated this length=45}}
|
|
115
|
+
{{else if (compare size 'eq' 'L')}}
|
|
116
|
+
{{> truncated this length=55}}
|
|
117
|
+
{{else if (compare size 'eq' 'XL')}}
|
|
118
|
+
{{> truncated this length=65}}
|
|
119
|
+
{{else if (compare size 'eq' 'XXL')}}
|
|
120
|
+
{{> truncated this length=75}}
|
|
121
|
+
{{else}}
|
|
122
|
+
{{value}}
|
|
123
|
+
{{/if}}
|
|
124
|
+
</span>
|
|
125
|
+
`,nM=Qk,rM=tM,iM=eM,sM=Object.freeze(Object.defineProperty({__proto__:null,expectationMeta:nM,metaPath:iM,truncated:rM},Symbol.toStringTag,{value:"Module"})),oM={init:()=>{Object.entries(Zk).forEach(([n,t])=>Ie.registerHelper(n,t)),Object.entries(sM).forEach(([n,t])=>Ie.registerPartial(n,t))}};Wr.extend(ak);oM.init();const aM=`
|
|
110
126
|
<div class="buttons"></div>
|
|
111
|
-
`;var
|
|
127
|
+
`;var Ia={exports:{}},Em;function rs(){if(Em)return Ia.exports;Em=1;var n=typeof Reflect=="object"?Reflect:null,t=n&&typeof n.apply=="function"?n.apply:function(k,C,L){return Function.prototype.apply.call(k,C,L)},e;n&&typeof n.ownKeys=="function"?e=n.ownKeys:Object.getOwnPropertySymbols?e=function(k){return Object.getOwnPropertyNames(k).concat(Object.getOwnPropertySymbols(k))}:e=function(k){return Object.getOwnPropertyNames(k)};function r(w){console&&console.warn&&console.warn(w)}var i=Number.isNaN||function(k){return k!==k};function s(){s.init.call(this)}Ia.exports=s,Ia.exports.once=b,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function l(w){if(typeof w!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof w)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(w){if(typeof w!="number"||w<0||i(w))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+w+".");a=w}}),s.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},s.prototype.setMaxListeners=function(k){if(typeof k!="number"||k<0||i(k))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+k+".");return this._maxListeners=k,this};function c(w){return w._maxListeners===void 0?s.defaultMaxListeners:w._maxListeners}s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(k){for(var C=[],L=1;L<arguments.length;L++)C.push(arguments[L]);var N=k==="error",Y=this._events;if(Y!==void 0)N=N&&Y.error===void 0;else if(!N)return!1;if(N){var z;if(C.length>0&&(z=C[0]),z instanceof Error)throw z;var G=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw G.context=z,G}var U=Y[k];if(U===void 0)return!1;if(typeof U=="function")t(U,this,C);else for(var xt=U.length,dt=p(U,xt),L=0;L<xt;++L)t(dt[L],this,C);return!0};function h(w,k,C,L){var N,Y,z;if(l(C),Y=w._events,Y===void 0?(Y=w._events=Object.create(null),w._eventsCount=0):(Y.newListener!==void 0&&(w.emit("newListener",k,C.listener?C.listener:C),Y=w._events),z=Y[k]),z===void 0)z=Y[k]=C,++w._eventsCount;else if(typeof z=="function"?z=Y[k]=L?[C,z]:[z,C]:L?z.unshift(C):z.push(C),N=c(w),N>0&&z.length>N&&!z.warned){z.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=w,G.type=k,G.count=z.length,r(G)}return w}s.prototype.addListener=function(k,C){return h(this,k,C,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(k,C){return h(this,k,C,!0)};function f(){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 g(w,k,C){var L={fired:!1,wrapFn:void 0,target:w,type:k,listener:C},N=f.bind(L);return N.listener=C,L.wrapFn=N,N}s.prototype.once=function(k,C){return l(C),this.on(k,g(this,k,C)),this},s.prototype.prependOnceListener=function(k,C){return l(C),this.prependListener(k,g(this,k,C)),this},s.prototype.removeListener=function(k,C){var L,N,Y,z,G;if(l(C),N=this._events,N===void 0)return this;if(L=N[k],L===void 0)return this;if(L===C||L.listener===C)--this._eventsCount===0?this._events=Object.create(null):(delete N[k],N.removeListener&&this.emit("removeListener",k,L.listener||C));else if(typeof L!="function"){for(Y=-1,z=L.length-1;z>=0;z--)if(L[z]===C||L[z].listener===C){G=L[z].listener,Y=z;break}if(Y<0)return this;Y===0?L.shift():v(L,Y),L.length===1&&(N[k]=L[0]),N.removeListener!==void 0&&this.emit("removeListener",k,G||C)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(k){var C,L,N;if(L=this._events,L===void 0)return this;if(L.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):L[k]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete L[k]),this;if(arguments.length===0){var Y=Object.keys(L),z;for(N=0;N<Y.length;++N)z=Y[N],z!=="removeListener"&&this.removeAllListeners(z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(C=L[k],typeof C=="function")this.removeListener(k,C);else if(C!==void 0)for(N=C.length-1;N>=0;N--)this.removeListener(k,C[N]);return this};function d(w,k,C){var L=w._events;if(L===void 0)return[];var N=L[k];return N===void 0?[]:typeof N=="function"?C?[N.listener||N]:[N]:C?_(N):p(N,N.length)}s.prototype.listeners=function(k){return d(this,k,!0)},s.prototype.rawListeners=function(k){return d(this,k,!1)},s.listenerCount=function(w,k){return typeof w.listenerCount=="function"?w.listenerCount(k):m.call(w,k)},s.prototype.listenerCount=m;function m(w){var k=this._events;if(k!==void 0){var C=k[w];if(typeof C=="function")return 1;if(C!==void 0)return C.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]};function p(w,k){for(var C=new Array(k),L=0;L<k;++L)C[L]=w[L];return C}function v(w,k){for(;k+1<w.length;k++)w[k]=w[k+1];w.pop()}function _(w){for(var k=new Array(w.length),C=0;C<k.length;++C)k[C]=w[C].listener||w[C];return k}function b(w,k){return new Promise(function(C,L){function N(z){w.removeListener(k,Y),L(z)}function Y(){typeof w.removeListener=="function"&&w.removeListener("error",N),C([].slice.call(arguments))}O(w,k,Y,{once:!0}),k!=="error"&&S(w,N,{once:!0})})}function S(w,k,C){typeof w.on=="function"&&O(w,"error",k,C)}function O(w,k,C,L){if(typeof w.on=="function")L.once?w.once(k,C):w.on(k,C);else if(typeof w.addEventListener=="function")w.addEventListener(k,function N(Y){L.once&&w.removeEventListener(k,N),C(Y)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof w)}return Ia.exports}var Vv=rs();const is=Jr(Vv),lM=`
|
|
112
128
|
<div class="panel {{class}} {{#if width}}width-{{width}}{{/if}} {{#if height}}height-{{height}}{{/if}}">
|
|
113
129
|
{{#if title}}
|
|
114
130
|
<p class="title">
|
|
@@ -120,37 +136,37 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
120
136
|
|
|
121
137
|
<div class="content"></div>
|
|
122
138
|
</div>
|
|
123
|
-
`;class
|
|
139
|
+
`;class Re{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 Re?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 ho{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 ho(t)}}const Am=(()=>{const n={password:String,number:Number,text:String};return(t,e)=>{if(t==="checkbox")return e||null;if(t==="file")return null;const r=e.trim();return r.length?(n[t]??String)(r):null}})();class to{constructor(t,e){this.source=t,this.content=e,this.name=this.source.name,this.size=this.source.size}static async build(t){return new to(t,await t.text())}}class Eh extends Re{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 r=e.getAttribute("data-key"),i=e.getAttribute("cast")??e.getAttribute("type")??"text";if(!r||!("value"in e)||typeof e.value!="string")continue;if(i==="file"){const a=[];for(const l of"files"in e?e.files:new FileList)a.push(await to.build(l));kn.set(t,r,a);continue}if(e.hasAttribute("list")){const a=e.getAttribute("list")??",",l=e.value.split(a).map(c=>Am(i,c)).filter(c=>c!==null);l.length&&kn.set(t,r,l);continue}const s=Am(i,e.value);if(i==="checkbox"&&"checked"in e){e.checked&&kn.set(t,r,s??!0);continue}s!==null&&kn.set(t,r,s)}return t}assign(t){return Sh(t,this.paths).map(([e,r])=>[e,r,this.element.querySelector(`*[data-key="${e}"]`)]).forEach(([e,r,i])=>kn.set(i,"value",Array.isArray(r)?r.join(i.getAttribute("list")??","):r??"")),this}static build(t){return new Eh(t)}}class Ji extends Re{constructor(t,e){super(e),this.key=t,this.client=ho.build(this.key),this.form=Eh.build(this.element)}sync(){const t=this.client.extract()??[];return this.form.assign(t.reduce((e,[r,i])=>kn.set(e,r,i),{})),this}async save(){const t=await this.form.extract();return this.client.store(Sh(t,this.form.paths).filter(([,e])=>Array.isArray(e)?!e.some(r=>typeof r=="object"&&r instanceof to):!(typeof e=="object"&&e instanceof to))),t}clear(){return this.client.clear(),this}static build(t,e){return new Ji(t,e)}}class ar{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 ar(t)}}class ss extends Re{constructor(t){super(t),this.content=new Re(this.element.querySelector("div.content")),this.isInitialized=!1,this.isCompiled=!1,this.controls={main:new Re(this.element.querySelector("div.controls div.main")),additional:new Re(this.element.querySelector("div.controls div.additional"))},this.storage=Ji.build(`config:${this.element.id}`,this.element.querySelector("div.storage")),this.meta={},this.events=new is,this.expander=this.element.querySelector("div.controls button#expand"),this.expander&&ar.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})}compile(){return this.isCompiled?this:(this.isCompiled=!0,this.emit("compile",this))}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 ss(t)}}class uM{constructor(){this.storage=Ji.build("void",document.body),this.shared={}}share(t){return Object.assign(this,{shared:t})}switchStorage(t){return Object.assign(this,{storage:t})}}const cM=Ie.compile(lM);class Mr extends Re{constructor(t={}){super(cM(t)),this.content=new Re(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 Mr(t)}}class Vs extends Re{constructor(t){super(`
|
|
124
140
|
<button
|
|
125
|
-
style="${t!=null&&t.colorify?`color: ${
|
|
141
|
+
style="${t!=null&&t.colorify?`color: ${wl(t.name)}`:""}"
|
|
126
142
|
class="${t.isEnabled?"checked":""}"
|
|
127
143
|
>${t.name}</button>
|
|
128
|
-
`),this.configuration=t,this.events=new
|
|
144
|
+
`),this.configuration=t,this.events=new is,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 Vs(t)}}var $v={},Pl={};Pl.byteLength=dM;Pl.toByteArray=gM;Pl.fromByteArray=vM;var or=[],Un=[],fM=typeof Uint8Array<"u"?Uint8Array:Array,lc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Wi=0,hM=lc.length;Wi<hM;++Wi)or[Wi]=lc[Wi],Un[lc.charCodeAt(Wi)]=Wi;Un[45]=62;Un[95]=63;function Gv(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 r=e===t?0:4-e%4;return[e,r]}function dM(n){var t=Gv(n),e=t[0],r=t[1];return(e+r)*3/4-r}function pM(n,t,e){return(t+e)*3/4-e}function gM(n){var t,e=Gv(n),r=e[0],i=e[1],s=new fM(pM(n,r,i)),a=0,l=i>0?r-4:r,c;for(c=0;c<l;c+=4)t=Un[n.charCodeAt(c)]<<18|Un[n.charCodeAt(c+1)]<<12|Un[n.charCodeAt(c+2)]<<6|Un[n.charCodeAt(c+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=t&255;return i===2&&(t=Un[n.charCodeAt(c)]<<2|Un[n.charCodeAt(c+1)]>>4,s[a++]=t&255),i===1&&(t=Un[n.charCodeAt(c)]<<10|Un[n.charCodeAt(c+1)]<<4|Un[n.charCodeAt(c+2)]>>2,s[a++]=t>>8&255,s[a++]=t&255),s}function mM(n){return or[n>>18&63]+or[n>>12&63]+or[n>>6&63]+or[n&63]}function yM(n,t,e){for(var r,i=[],s=t;s<e;s+=3)r=(n[s]<<16&16711680)+(n[s+1]<<8&65280)+(n[s+2]&255),i.push(mM(r));return i.join("")}function vM(n){for(var t,e=n.length,r=e%3,i=[],s=16383,a=0,l=e-r;a<l;a+=s)i.push(yM(n,a,a+s>l?l:a+s));return r===1?(t=n[e-1],i.push(or[t>>2]+or[t<<4&63]+"==")):r===2&&(t=(n[e-2]<<8)+n[e-1],i.push(or[t>>10]+or[t>>4&63]+or[t<<2&63]+"=")),i.join("")}var Ah={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Ah.read=function(n,t,e,r,i){var s,a,l=i*8-r-1,c=(1<<l)-1,h=c>>1,f=-7,g=e?i-1:0,d=e?-1:1,m=n[t+g];for(g+=d,s=m&(1<<-f)-1,m>>=-f,f+=l;f>0;s=s*256+n[t+g],g+=d,f-=8);for(a=s&(1<<-f)-1,s>>=-f,f+=r;f>0;a=a*256+n[t+g],g+=d,f-=8);if(s===0)s=1-h;else{if(s===c)return a?NaN:(m?-1:1)*(1/0);a=a+Math.pow(2,r),s=s-h}return(m?-1:1)*a*Math.pow(2,s-r)};Ah.write=function(n,t,e,r,i,s){var a,l,c,h=s*8-i-1,f=(1<<h)-1,g=f>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:s-1,p=r?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+g>=1?t+=d/c:t+=d*Math.pow(2,1-g),t*c>=2&&(a++,c/=2),a+g>=f?(l=0,a=f):a+g>=1?(l=(t*c-1)*Math.pow(2,i),a=a+g):(l=t*Math.pow(2,g-1)*Math.pow(2,i),a=0));i>=8;n[e+m]=l&255,m+=p,l/=256,i-=8);for(a=a<<i|l,h+=i;h>0;n[e+m]=a&255,m+=p,a/=256,h-=8);n[e+m-p]|=v*128};/*!
|
|
129
145
|
* The buffer module from node.js, for the browser.
|
|
130
146
|
*
|
|
131
147
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
132
148
|
* @license MIT
|
|
133
|
-
*/(function(n){const t=Al,e=_h,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=f,n.SlowBuffer=M,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i;const{Uint8Array:s,ArrayBuffer:a,SharedArrayBuffer:l}=globalThis;f.TYPED_ARRAY_SUPPORT=c(),!f.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 c(){try{const T=new s(1),S={foo:function(){return 42}};return Object.setPrototypeOf(S,s.prototype),Object.setPrototypeOf(T,S),T.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function h(T){if(T>i)throw new RangeError('The value "'+T+'" is invalid for option "size"');const S=new s(T);return Object.setPrototypeOf(S,f.prototype),S}function f(T,S,k){if(typeof T=="number"){if(typeof S=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(T)}return g(T,S,k)}f.poolSize=8192;function g(T,S,k){if(typeof T=="string")return v(T,S);if(a.isView(T))return _(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(ke(T,a)||T&&ke(T.buffer,a)||typeof l<"u"&&(ke(T,l)||T&&ke(T.buffer,l)))return A(T,S,k);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const q=T.valueOf&&T.valueOf();if(q!=null&&q!==T)return f.from(q,S,k);const K=C(T);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return f.from(T[Symbol.toPrimitive]("string"),S,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}f.from=function(T,S,k){return g(T,S,k)},Object.setPrototypeOf(f.prototype,s.prototype),Object.setPrototypeOf(f,s);function d(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function m(T,S,k){return d(T),T<=0?h(T):S!==void 0?typeof k=="string"?h(T).fill(S,k):h(T).fill(S):h(T)}f.alloc=function(T,S,k){return m(T,S,k)};function p(T){return d(T),h(T<0?0:w(T)|0)}f.allocUnsafe=function(T){return p(T)},f.allocUnsafeSlow=function(T){return p(T)};function v(T,S){if((typeof S!="string"||S==="")&&(S="utf8"),!f.isEncoding(S))throw new TypeError("Unknown encoding: "+S);const k=O(T,S)|0;let q=h(k);const K=q.write(T,S);return K!==k&&(q=q.slice(0,K)),q}function b(T){const S=T.length<0?0:w(T.length)|0,k=h(S);for(let q=0;q<S;q+=1)k[q]=T[q]&255;return k}function _(T){if(ke(T,s)){const S=new s(T);return A(S.buffer,S.byteOffset,S.byteLength)}return b(T)}function A(T,S,k){if(S<0||T.byteLength<S)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<S+(k||0))throw new RangeError('"length" is outside of buffer bounds');let q;return S===void 0&&k===void 0?q=new s(T):k===void 0?q=new s(T,S):q=new s(T,S,k),Object.setPrototypeOf(q,f.prototype),q}function C(T){if(f.isBuffer(T)){const S=w(T.length)|0,k=h(S);return k.length===0||T.copy(k,0,0,S),k}if(T.length!==void 0)return typeof T.length!="number"||on(T.length)?h(0):b(T);if(T.type==="Buffer"&&Array.isArray(T.data))return b(T.data)}function w(T){if(T>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return T|0}function M(T){return+T!=T&&(T=0),f.alloc(+T)}f.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==f.prototype},f.compare=function(S,k){if(ke(S,s)&&(S=f.from(S,S.offset,S.byteLength)),ke(k,s)&&(k=f.from(k,k.offset,k.byteLength)),!f.isBuffer(S)||!f.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===k)return 0;let q=S.length,K=k.length;for(let nt=0,ht=Math.min(q,K);nt<ht;++nt)if(S[nt]!==k[nt]){q=S[nt],K=k[nt];break}return q<K?-1:K<q?1:0},f.isEncoding=function(S){switch(String(S).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}},f.concat=function(S,k){if(!Array.isArray(S))throw new TypeError('"list" argument must be an Array of Buffers');if(S.length===0)return f.alloc(0);let q;if(k===void 0)for(k=0,q=0;q<S.length;++q)k+=S[q].length;const K=f.allocUnsafe(k);let nt=0;for(q=0;q<S.length;++q){let ht=S[q];if(ke(ht,s))nt+ht.length>K.length?(f.isBuffer(ht)||(ht=f.from(ht)),ht.copy(K,nt)):s.prototype.set.call(K,ht,nt);else if(f.isBuffer(ht))ht.copy(K,nt);else throw new TypeError('"list" argument must be an Array of Buffers');nt+=ht.length}return K};function O(T,S){if(f.isBuffer(T))return T.length;if(a.isView(T)||ke(T,a))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const k=T.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&k===0)return 0;let K=!1;for(;;)switch(S){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return Ce(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return re(T).length;default:if(K)return q?-1:Ce(T).length;S=(""+S).toLowerCase(),K=!0}}f.byteLength=O;function L(T,S,k){let q=!1;if((S===void 0||S<0)&&(S=0),S>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,S>>>=0,k<=S))return"";for(T||(T="utf8");;)switch(T){case"hex":return Lt(this,S,k);case"utf8":case"utf-8":return _t(this,S,k);case"ascii":return kt(this,S,k);case"latin1":case"binary":return Ot(this,S,k);case"base64":return at(this,S,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,S,k);default:if(q)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),q=!0}}f.prototype._isBuffer=!0;function N(T,S,k){const q=T[S];T[S]=T[k],T[k]=q}f.prototype.swap16=function(){const S=this.length;if(S%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let k=0;k<S;k+=2)N(this,k,k+1);return this},f.prototype.swap32=function(){const S=this.length;if(S%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let k=0;k<S;k+=4)N(this,k,k+3),N(this,k+1,k+2);return this},f.prototype.swap64=function(){const S=this.length;if(S%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let k=0;k<S;k+=8)N(this,k,k+7),N(this,k+1,k+6),N(this,k+2,k+5),N(this,k+3,k+4);return this},f.prototype.toString=function(){const S=this.length;return S===0?"":arguments.length===0?_t(this,0,S):L.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(S){if(!f.isBuffer(S))throw new TypeError("Argument must be a Buffer");return this===S?!0:f.compare(this,S)===0},f.prototype.inspect=function(){let S="";const k=n.INSPECT_MAX_BYTES;return S=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(S+=" ... "),"<Buffer "+S+">"},r&&(f.prototype[r]=f.prototype.inspect),f.prototype.compare=function(S,k,q,K,nt){if(ke(S,s)&&(S=f.from(S,S.offset,S.byteLength)),!f.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(k===void 0&&(k=0),q===void 0&&(q=S?S.length:0),K===void 0&&(K=0),nt===void 0&&(nt=this.length),k<0||q>S.length||K<0||nt>this.length)throw new RangeError("out of range index");if(K>=nt&&k>=q)return 0;if(K>=nt)return-1;if(k>=q)return 1;if(k>>>=0,q>>>=0,K>>>=0,nt>>>=0,this===S)return 0;let ht=nt-K,Ut=q-k;const ce=Math.min(ht,Ut),fe=this.slice(K,nt),de=S.slice(k,q);for(let ne=0;ne<ce;++ne)if(fe[ne]!==de[ne]){ht=fe[ne],Ut=de[ne];break}return ht<Ut?-1:Ut<ht?1:0};function Y(T,S,k,q,K){if(T.length===0)return-1;if(typeof k=="string"?(q=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,on(k)&&(k=K?0:T.length-1),k<0&&(k=T.length+k),k>=T.length){if(K)return-1;k=T.length-1}else if(k<0)if(K)k=0;else return-1;if(typeof S=="string"&&(S=f.from(S,q)),f.isBuffer(S))return S.length===0?-1:z(T,S,k,q,K);if(typeof S=="number")return S=S&255,typeof s.prototype.indexOf=="function"?K?s.prototype.indexOf.call(T,S,k):s.prototype.lastIndexOf.call(T,S,k):z(T,[S],k,q,K);throw new TypeError("val must be string, number or Buffer")}function z(T,S,k,q,K){let nt=1,ht=T.length,Ut=S.length;if(q!==void 0&&(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(T.length<2||S.length<2)return-1;nt=2,ht/=2,Ut/=2,k/=2}function ce(de,ne){return nt===1?de[ne]:de.readUInt16BE(ne*nt)}let fe;if(K){let de=-1;for(fe=k;fe<ht;fe++)if(ce(T,fe)===ce(S,de===-1?0:fe-de)){if(de===-1&&(de=fe),fe-de+1===Ut)return de*nt}else de!==-1&&(fe-=fe-de),de=-1}else for(k+Ut>ht&&(k=ht-Ut),fe=k;fe>=0;fe--){let de=!0;for(let ne=0;ne<Ut;ne++)if(ce(T,fe+ne)!==ce(S,ne)){de=!1;break}if(de)return fe}return-1}f.prototype.includes=function(S,k,q){return this.indexOf(S,k,q)!==-1},f.prototype.indexOf=function(S,k,q){return Y(this,S,k,q,!0)},f.prototype.lastIndexOf=function(S,k,q){return Y(this,S,k,q,!1)};function G(T,S,k,q){k=Number(k)||0;const K=T.length-k;q?(q=Number(q),q>K&&(q=K)):q=K;const nt=S.length;q>nt/2&&(q=nt/2);let ht;for(ht=0;ht<q;++ht){const Ut=parseInt(S.substr(ht*2,2),16);if(on(Ut))return ht;T[k+ht]=Ut}return ht}function U(T,S,k,q){return Ve(Ce(S,T.length-k),T,k,q)}function xt(T,S,k,q){return Ve(ue(S),T,k,q)}function dt(T,S,k,q){return Ve(re(S),T,k,q)}function st(T,S,k,q){return Ve(te(S,T.length-k),T,k,q)}f.prototype.write=function(S,k,q,K){if(k===void 0)K="utf8",q=this.length,k=0;else if(q===void 0&&typeof k=="string")K=k,q=this.length,k=0;else if(isFinite(k))k=k>>>0,isFinite(q)?(q=q>>>0,K===void 0&&(K="utf8")):(K=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const nt=this.length-k;if((q===void 0||q>nt)&&(q=nt),S.length>0&&(q<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");let ht=!1;for(;;)switch(K){case"hex":return G(this,S,k,q);case"utf8":case"utf-8":return U(this,S,k,q);case"ascii":case"latin1":case"binary":return xt(this,S,k,q);case"base64":return dt(this,S,k,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,S,k,q);default:if(ht)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),ht=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function at(T,S,k){return S===0&&k===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(S,k))}function _t(T,S,k){k=Math.min(T.length,k);const q=[];let K=S;for(;K<k;){const nt=T[K];let ht=null,Ut=nt>239?4:nt>223?3:nt>191?2:1;if(K+Ut<=k){let ce,fe,de,ne;switch(Ut){case 1:nt<128&&(ht=nt);break;case 2:ce=T[K+1],(ce&192)===128&&(ne=(nt&31)<<6|ce&63,ne>127&&(ht=ne));break;case 3:ce=T[K+1],fe=T[K+2],(ce&192)===128&&(fe&192)===128&&(ne=(nt&15)<<12|(ce&63)<<6|fe&63,ne>2047&&(ne<55296||ne>57343)&&(ht=ne));break;case 4:ce=T[K+1],fe=T[K+2],de=T[K+3],(ce&192)===128&&(fe&192)===128&&(de&192)===128&&(ne=(nt&15)<<18|(ce&63)<<12|(fe&63)<<6|de&63,ne>65535&&ne<1114112&&(ht=ne))}}ht===null?(ht=65533,Ut=1):ht>65535&&(ht-=65536,q.push(ht>>>10&1023|55296),ht=56320|ht&1023),q.push(ht),K+=Ut}return Et(q)}const bt=4096;function Et(T){const S=T.length;if(S<=bt)return String.fromCharCode.apply(String,T);let k="",q=0;for(;q<S;)k+=String.fromCharCode.apply(String,T.slice(q,q+=bt));return k}function kt(T,S,k){let q="";k=Math.min(T.length,k);for(let K=S;K<k;++K)q+=String.fromCharCode(T[K]&127);return q}function Ot(T,S,k){let q="";k=Math.min(T.length,k);for(let K=S;K<k;++K)q+=String.fromCharCode(T[K]);return q}function Lt(T,S,k){const q=T.length;(!S||S<0)&&(S=0),(!k||k<0||k>q)&&(k=q);let K="";for(let nt=S;nt<k;++nt)K+=Ye[T[nt]];return K}function Q(T,S,k){const q=T.slice(S,k);let K="";for(let nt=0;nt<q.length-1;nt+=2)K+=String.fromCharCode(q[nt]+q[nt+1]*256);return K}f.prototype.slice=function(S,k){const q=this.length;S=~~S,k=k===void 0?q:~~k,S<0?(S+=q,S<0&&(S=0)):S>q&&(S=q),k<0?(k+=q,k<0&&(k=0)):k>q&&(k=q),k<S&&(k=S);const K=this.subarray(S,k);return Object.setPrototypeOf(K,f.prototype),K};function et(T,S,k){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+S>k)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(S,k,q){S=S>>>0,k=k>>>0,q||et(S,k,this.length);let K=this[S],nt=1,ht=0;for(;++ht<k&&(nt*=256);)K+=this[S+ht]*nt;return K},f.prototype.readUintBE=f.prototype.readUIntBE=function(S,k,q){S=S>>>0,k=k>>>0,q||et(S,k,this.length);let K=this[S+--k],nt=1;for(;k>0&&(nt*=256);)K+=this[S+--k]*nt;return K},f.prototype.readUint8=f.prototype.readUInt8=function(S,k){return S=S>>>0,k||et(S,1,this.length),this[S]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(S,k){return S=S>>>0,k||et(S,2,this.length),this[S]|this[S+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(S,k){return S=S>>>0,k||et(S,2,this.length),this[S]<<8|this[S+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(S,k){return S=S>>>0,k||et(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+this[S+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(S,k){return S=S>>>0,k||et(S,4,this.length),this[S]*16777216+(this[S+1]<<16|this[S+2]<<8|this[S+3])},f.prototype.readBigUInt64LE=ye(function(S){S=S>>>0,Mt(S,"offset");const k=this[S],q=this[S+7];(k===void 0||q===void 0)&&Tt(S,this.length-8);const K=k+this[++S]*2**8+this[++S]*2**16+this[++S]*2**24,nt=this[++S]+this[++S]*2**8+this[++S]*2**16+q*2**24;return BigInt(K)+(BigInt(nt)<<BigInt(32))}),f.prototype.readBigUInt64BE=ye(function(S){S=S>>>0,Mt(S,"offset");const k=this[S],q=this[S+7];(k===void 0||q===void 0)&&Tt(S,this.length-8);const K=k*2**24+this[++S]*2**16+this[++S]*2**8+this[++S],nt=this[++S]*2**24+this[++S]*2**16+this[++S]*2**8+q;return(BigInt(K)<<BigInt(32))+BigInt(nt)}),f.prototype.readIntLE=function(S,k,q){S=S>>>0,k=k>>>0,q||et(S,k,this.length);let K=this[S],nt=1,ht=0;for(;++ht<k&&(nt*=256);)K+=this[S+ht]*nt;return nt*=128,K>=nt&&(K-=Math.pow(2,8*k)),K},f.prototype.readIntBE=function(S,k,q){S=S>>>0,k=k>>>0,q||et(S,k,this.length);let K=k,nt=1,ht=this[S+--K];for(;K>0&&(nt*=256);)ht+=this[S+--K]*nt;return nt*=128,ht>=nt&&(ht-=Math.pow(2,8*k)),ht},f.prototype.readInt8=function(S,k){return S=S>>>0,k||et(S,1,this.length),this[S]&128?(255-this[S]+1)*-1:this[S]},f.prototype.readInt16LE=function(S,k){S=S>>>0,k||et(S,2,this.length);const q=this[S]|this[S+1]<<8;return q&32768?q|4294901760:q},f.prototype.readInt16BE=function(S,k){S=S>>>0,k||et(S,2,this.length);const q=this[S+1]|this[S]<<8;return q&32768?q|4294901760:q},f.prototype.readInt32LE=function(S,k){return S=S>>>0,k||et(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},f.prototype.readInt32BE=function(S,k){return S=S>>>0,k||et(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},f.prototype.readBigInt64LE=ye(function(S){S=S>>>0,Mt(S,"offset");const k=this[S],q=this[S+7];(k===void 0||q===void 0)&&Tt(S,this.length-8);const K=this[S+4]+this[S+5]*2**8+this[S+6]*2**16+(q<<24);return(BigInt(K)<<BigInt(32))+BigInt(k+this[++S]*2**8+this[++S]*2**16+this[++S]*2**24)}),f.prototype.readBigInt64BE=ye(function(S){S=S>>>0,Mt(S,"offset");const k=this[S],q=this[S+7];(k===void 0||q===void 0)&&Tt(S,this.length-8);const K=(k<<24)+this[++S]*2**16+this[++S]*2**8+this[++S];return(BigInt(K)<<BigInt(32))+BigInt(this[++S]*2**24+this[++S]*2**16+this[++S]*2**8+q)}),f.prototype.readFloatLE=function(S,k){return S=S>>>0,k||et(S,4,this.length),e.read(this,S,!0,23,4)},f.prototype.readFloatBE=function(S,k){return S=S>>>0,k||et(S,4,this.length),e.read(this,S,!1,23,4)},f.prototype.readDoubleLE=function(S,k){return S=S>>>0,k||et(S,8,this.length),e.read(this,S,!0,52,8)},f.prototype.readDoubleBE=function(S,k){return S=S>>>0,k||et(S,8,this.length),e.read(this,S,!1,52,8)};function ot(T,S,k,q,K,nt){if(!f.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>K||S<nt)throw new RangeError('"value" argument is out of bounds');if(k+q>T.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(S,k,q,K){if(S=+S,k=k>>>0,q=q>>>0,!K){const Ut=Math.pow(2,8*q)-1;ot(this,S,k,q,Ut,0)}let nt=1,ht=0;for(this[k]=S&255;++ht<q&&(nt*=256);)this[k+ht]=S/nt&255;return k+q},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(S,k,q,K){if(S=+S,k=k>>>0,q=q>>>0,!K){const Ut=Math.pow(2,8*q)-1;ot(this,S,k,q,Ut,0)}let nt=q-1,ht=1;for(this[k+nt]=S&255;--nt>=0&&(ht*=256);)this[k+nt]=S/ht&255;return k+q},f.prototype.writeUint8=f.prototype.writeUInt8=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,1,255,0),this[k]=S&255,k+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,2,65535,0),this[k]=S&255,this[k+1]=S>>>8,k+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,2,65535,0),this[k]=S>>>8,this[k+1]=S&255,k+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,4,4294967295,0),this[k+3]=S>>>24,this[k+2]=S>>>16,this[k+1]=S>>>8,this[k]=S&255,k+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,4,4294967295,0),this[k]=S>>>24,this[k+1]=S>>>16,this[k+2]=S>>>8,this[k+3]=S&255,k+4};function V(T,S,k,q,K){Ft(S,q,K,T,k,7);let nt=Number(S&BigInt(4294967295));T[k++]=nt,nt=nt>>8,T[k++]=nt,nt=nt>>8,T[k++]=nt,nt=nt>>8,T[k++]=nt;let ht=Number(S>>BigInt(32)&BigInt(4294967295));return T[k++]=ht,ht=ht>>8,T[k++]=ht,ht=ht>>8,T[k++]=ht,ht=ht>>8,T[k++]=ht,k}function X(T,S,k,q,K){Ft(S,q,K,T,k,7);let nt=Number(S&BigInt(4294967295));T[k+7]=nt,nt=nt>>8,T[k+6]=nt,nt=nt>>8,T[k+5]=nt,nt=nt>>8,T[k+4]=nt;let ht=Number(S>>BigInt(32)&BigInt(4294967295));return T[k+3]=ht,ht=ht>>8,T[k+2]=ht,ht=ht>>8,T[k+1]=ht,ht=ht>>8,T[k]=ht,k+8}f.prototype.writeBigUInt64LE=ye(function(S,k=0){return V(this,S,k,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=ye(function(S,k=0){return X(this,S,k,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(S,k,q,K){if(S=+S,k=k>>>0,!K){const ce=Math.pow(2,8*q-1);ot(this,S,k,q,ce-1,-ce)}let nt=0,ht=1,Ut=0;for(this[k]=S&255;++nt<q&&(ht*=256);)S<0&&Ut===0&&this[k+nt-1]!==0&&(Ut=1),this[k+nt]=(S/ht>>0)-Ut&255;return k+q},f.prototype.writeIntBE=function(S,k,q,K){if(S=+S,k=k>>>0,!K){const ce=Math.pow(2,8*q-1);ot(this,S,k,q,ce-1,-ce)}let nt=q-1,ht=1,Ut=0;for(this[k+nt]=S&255;--nt>=0&&(ht*=256);)S<0&&Ut===0&&this[k+nt+1]!==0&&(Ut=1),this[k+nt]=(S/ht>>0)-Ut&255;return k+q},f.prototype.writeInt8=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,1,127,-128),S<0&&(S=255+S+1),this[k]=S&255,k+1},f.prototype.writeInt16LE=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,2,32767,-32768),this[k]=S&255,this[k+1]=S>>>8,k+2},f.prototype.writeInt16BE=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,2,32767,-32768),this[k]=S>>>8,this[k+1]=S&255,k+2},f.prototype.writeInt32LE=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,4,2147483647,-2147483648),this[k]=S&255,this[k+1]=S>>>8,this[k+2]=S>>>16,this[k+3]=S>>>24,k+4},f.prototype.writeInt32BE=function(S,k,q){return S=+S,k=k>>>0,q||ot(this,S,k,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[k]=S>>>24,this[k+1]=S>>>16,this[k+2]=S>>>8,this[k+3]=S&255,k+4},f.prototype.writeBigInt64LE=ye(function(S,k=0){return V(this,S,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=ye(function(S,k=0){return X(this,S,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function lt(T,S,k,q,K,nt){if(k+q>T.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function mt(T,S,k,q,K){return S=+S,k=k>>>0,K||lt(T,S,k,4),e.write(T,S,k,q,23,4),k+4}f.prototype.writeFloatLE=function(S,k,q){return mt(this,S,k,!0,q)},f.prototype.writeFloatBE=function(S,k,q){return mt(this,S,k,!1,q)};function yt(T,S,k,q,K){return S=+S,k=k>>>0,K||lt(T,S,k,8),e.write(T,S,k,q,52,8),k+8}f.prototype.writeDoubleLE=function(S,k,q){return yt(this,S,k,!0,q)},f.prototype.writeDoubleBE=function(S,k,q){return yt(this,S,k,!1,q)},f.prototype.copy=function(S,k,q,K){if(!f.isBuffer(S))throw new TypeError("argument should be a Buffer");if(q||(q=0),!K&&K!==0&&(K=this.length),k>=S.length&&(k=S.length),k||(k=0),K>0&&K<q&&(K=q),K===q||S.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(q<0||q>=this.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),S.length-k<K-q&&(K=S.length-k+q);const nt=K-q;return this===S&&typeof s.prototype.copyWithin=="function"?this.copyWithin(k,q,K):s.prototype.set.call(S,this.subarray(q,K),k),nt},f.prototype.fill=function(S,k,q,K){if(typeof S=="string"){if(typeof k=="string"?(K=k,k=0,q=this.length):typeof q=="string"&&(K=q,q=this.length),K!==void 0&&typeof K!="string")throw new TypeError("encoding must be a string");if(typeof K=="string"&&!f.isEncoding(K))throw new TypeError("Unknown encoding: "+K);if(S.length===1){const ht=S.charCodeAt(0);(K==="utf8"&&ht<128||K==="latin1")&&(S=ht)}}else typeof S=="number"?S=S&255:typeof S=="boolean"&&(S=Number(S));if(k<0||this.length<k||this.length<q)throw new RangeError("Out of range index");if(q<=k)return this;k=k>>>0,q=q===void 0?this.length:q>>>0,S||(S=0);let nt;if(typeof S=="number")for(nt=k;nt<q;++nt)this[nt]=S;else{const ht=f.isBuffer(S)?S:f.from(S,K),Ut=ht.length;if(Ut===0)throw new TypeError('The value "'+S+'" is invalid for argument "value"');for(nt=0;nt<q-k;++nt)this[nt+k]=ht[nt%Ut]}return this};const D={};function j(T,S,k){D[T]=class extends k{constructor(){super(),Object.defineProperty(this,"message",{value:S.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(K){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:K,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}j("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),j("ERR_INVALID_ARG_TYPE",function(T,S){return`The "${T}" argument must be of type number. Received type ${typeof S}`},TypeError),j("ERR_OUT_OF_RANGE",function(T,S,k){let q=`The value of "${T}" is out of range.`,K=k;return Number.isInteger(k)&&Math.abs(k)>2**32?K=ut(String(k)):typeof k=="bigint"&&(K=String(k),(k>BigInt(2)**BigInt(32)||k<-(BigInt(2)**BigInt(32)))&&(K=ut(K)),K+="n"),q+=` It must be ${S}. Received ${K}`,q},RangeError);function ut(T){let S="",k=T.length;const q=T[0]==="-"?1:0;for(;k>=q+4;k-=3)S=`_${T.slice(k-3,k)}${S}`;return`${T.slice(0,k)}${S}`}function St(T,S,k){Mt(S,"offset"),(T[S]===void 0||T[S+k]===void 0)&&Tt(S,T.length-(k+1))}function Ft(T,S,k,q,K,nt){if(T>k||T<S){const ht=typeof S=="bigint"?"n":"";let Ut;throw S===0||S===BigInt(0)?Ut=`>= 0${ht} and < 2${ht} ** ${(nt+1)*8}${ht}`:Ut=`>= -(2${ht} ** ${(nt+1)*8-1}${ht}) and < 2 ** ${(nt+1)*8-1}${ht}`,new D.ERR_OUT_OF_RANGE("value",Ut,T)}St(q,K,nt)}function Mt(T,S){if(typeof T!="number")throw new D.ERR_INVALID_ARG_TYPE(S,"number",T)}function Tt(T,S,k){throw Math.floor(T)!==T?(Mt(T,k),new D.ERR_OUT_OF_RANGE("offset","an integer",T)):S<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${S}`,T)}const je=/[^+/0-9A-Za-z-_]/g;function ft(T){if(T=T.split("=")[0],T=T.trim().replace(je,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function Ce(T,S){S=S||1/0;let k;const q=T.length;let K=null;const nt=[];for(let ht=0;ht<q;++ht){if(k=T.charCodeAt(ht),k>55295&&k<57344){if(!K){if(k>56319){(S-=3)>-1&&nt.push(239,191,189);continue}else if(ht+1===q){(S-=3)>-1&&nt.push(239,191,189);continue}K=k;continue}if(k<56320){(S-=3)>-1&&nt.push(239,191,189),K=k;continue}k=(K-55296<<10|k-56320)+65536}else K&&(S-=3)>-1&&nt.push(239,191,189);if(K=null,k<128){if((S-=1)<0)break;nt.push(k)}else if(k<2048){if((S-=2)<0)break;nt.push(k>>6|192,k&63|128)}else if(k<65536){if((S-=3)<0)break;nt.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((S-=4)<0)break;nt.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return nt}function ue(T){const S=[];for(let k=0;k<T.length;++k)S.push(T.charCodeAt(k)&255);return S}function te(T,S){let k,q,K;const nt=[];for(let ht=0;ht<T.length&&!((S-=2)<0);++ht)k=T.charCodeAt(ht),q=k>>8,K=k%256,nt.push(K),nt.push(q);return nt}function re(T){return t.toByteArray(ft(T))}function Ve(T,S,k,q){let K;for(K=0;K<q&&!(K+k>=S.length||K>=T.length);++K)S[K+k]=T[K];return K}function ke(T,S){return T instanceof S||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===S.name}function on(T){return T!==T}const Ye=function(){const T="0123456789abcdef",S=new Array(256);for(let k=0;k<16;++k){const q=k*16;for(let K=0;K<16;++K)S[q+K]=T[k]+T[K]}return S}();function ye(T){return typeof BigInt>"u"?Rn:T}function Rn(){throw new Error("BigInt not supported")}})(Fv);const Ks=Fv.Buffer;var Pa={exports:{}},Oa={exports:{}};function aR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var jv={exports:{}},De=jv.exports={},nr,rr;function zf(){throw new Error("setTimeout has not been defined")}function Vf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?nr=setTimeout:nr=zf}catch{nr=zf}try{typeof clearTimeout=="function"?rr=clearTimeout:rr=Vf}catch{rr=Vf}})();function Uv(n){if(nr===setTimeout)return setTimeout(n,0);if((nr===zf||!nr)&&setTimeout)return nr=setTimeout,setTimeout(n,0);try{return nr(n,0)}catch{try{return nr.call(null,n,0)}catch{return nr.call(this,n,0)}}}function lR(n){if(rr===clearTimeout)return clearTimeout(n);if((rr===Vf||!rr)&&clearTimeout)return rr=clearTimeout,clearTimeout(n);try{return rr(n)}catch{try{return rr.call(null,n)}catch{return rr.call(this,n)}}}var kr=[],Gi=!1,pi,rl=-1;function uR(){!Gi||!pi||(Gi=!1,pi.length?kr=pi.concat(kr):rl=-1,kr.length&&qv())}function qv(){if(!Gi){var n=Uv(uR);Gi=!0;for(var t=kr.length;t;){for(pi=kr,kr=[];++rl<t;)pi&&pi[rl].run();rl=-1,t=kr.length}pi=null,Gi=!1,lR(n)}}De.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];kr.push(new Wv(n,t)),kr.length===1&&!Gi&&Uv(qv)};function Wv(n,t){this.fun=n,this.array=t}Wv.prototype.run=function(){this.fun.apply(null,this.array)};De.title="browser";De.browser=!0;De.env={};De.argv=[];De.version="";De.versions={};function Pr(){}De.on=Pr;De.addListener=Pr;De.once=Pr;De.off=Pr;De.removeListener=Pr;De.removeAllListeners=Pr;De.emit=Pr;De.prependListener=Pr;De.prependOnceListener=Pr;De.listeners=function(n){return[]};De.binding=function(n){throw new Error("process.binding is not supported")};De.cwd=function(){return"/"};De.chdir=function(n){throw new Error("process.chdir is not supported")};De.umask=function(){return 0};var cR=jv.exports;const Qt=aR(cR);var ic={},sc={},oc,vm;function Hv(){return vm||(vm=1,oc=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),r=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[e]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,e);if(l.value!==i||l.enumerable!==!0)return!1}return!0}),oc}var ac,bm;function kl(){if(bm)return ac;bm=1;var n=Hv();return ac=function(){return n()&&!!Symbol.toStringTag},ac}var lc,_m;function zv(){return _m||(_m=1,lc=Object),lc}var uc,wm;function fR(){return wm||(wm=1,uc=Error),uc}var cc,xm;function hR(){return xm||(xm=1,cc=EvalError),cc}var fc,Sm;function dR(){return Sm||(Sm=1,fc=RangeError),fc}var hc,Em;function pR(){return Em||(Em=1,hc=ReferenceError),hc}var dc,Am;function Vv(){return Am||(Am=1,dc=SyntaxError),dc}var pc,km;function lo(){return km||(km=1,pc=TypeError),pc}var gc,Rm;function gR(){return Rm||(Rm=1,gc=URIError),gc}var mc,Mm;function mR(){return Mm||(Mm=1,mc=Math.abs),mc}var yc,Cm;function yR(){return Cm||(Cm=1,yc=Math.floor),yc}var vc,Pm;function vR(){return Pm||(Pm=1,vc=Math.max),vc}var bc,Om;function bR(){return Om||(Om=1,bc=Math.min),bc}var _c,Lm;function _R(){return Lm||(Lm=1,_c=Math.pow),_c}var wc,Tm;function wR(){return Tm||(Tm=1,wc=Math.round),wc}var xc,Bm;function xR(){return Bm||(Bm=1,xc=Number.isNaN||function(t){return t!==t}),xc}var Sc,Im;function SR(){if(Im)return Sc;Im=1;var n=xR();return Sc=function(e){return n(e)||e===0?e:e<0?-1:1},Sc}var Ec,Dm;function ER(){return Dm||(Dm=1,Ec=Object.getOwnPropertyDescriptor),Ec}var Ac,Fm;function ns(){if(Fm)return Ac;Fm=1;var n=ER();if(n)try{n([],"length")}catch{n=null}return Ac=n,Ac}var kc,Nm;function Rl(){if(Nm)return kc;Nm=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return kc=n,kc}var Rc,jm;function AR(){if(jm)return Rc;jm=1;var n=typeof Symbol<"u"&&Symbol,t=Hv();return Rc=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Rc}var Mc,Um;function $v(){return Um||(Um=1,Mc=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Mc}var Cc,qm;function Gv(){if(qm)return Cc;qm=1;var n=zv();return Cc=n.getPrototypeOf||null,Cc}var Pc,Wm;function kR(){if(Wm)return Pc;Wm=1;var n="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,e=Math.max,r="[object Function]",i=function(c,h){for(var f=[],g=0;g<c.length;g+=1)f[g]=c[g];for(var d=0;d<h.length;d+=1)f[d+c.length]=h[d];return f},s=function(c,h){for(var f=[],g=h,d=0;g<c.length;g+=1,d+=1)f[d]=c[g];return f},a=function(l,c){for(var h="",f=0;f<l.length;f+=1)h+=l[f],f+1<l.length&&(h+=c);return h};return Pc=function(c){var h=this;if(typeof h!="function"||t.apply(h)!==r)throw new TypeError(n+h);for(var f=s(arguments,1),g,d=function(){if(this instanceof g){var _=h.apply(this,i(f,arguments));return Object(_)===_?_:this}return h.apply(c,i(f,arguments))},m=e(0,h.length-f.length),p=[],v=0;v<m;v++)p[v]="$"+v;if(g=Function("binder","return function ("+a(p,",")+"){ return binder.apply(this,arguments); }")(d),h.prototype){var b=function(){};b.prototype=h.prototype,g.prototype=new b,b.prototype=null}return g},Pc}var Oc,Hm;function uo(){if(Hm)return Oc;Hm=1;var n=kR();return Oc=Function.prototype.bind||n,Oc}var Lc,zm;function wh(){return zm||(zm=1,Lc=Function.prototype.call),Lc}var Tc,Vm;function xh(){return Vm||(Vm=1,Tc=Function.prototype.apply),Tc}var Bc,$m;function RR(){return $m||($m=1,Bc=typeof Reflect<"u"&&Reflect&&Reflect.apply),Bc}var Ic,Gm;function Yv(){if(Gm)return Ic;Gm=1;var n=uo(),t=xh(),e=wh(),r=RR();return Ic=r||n.call(e,t),Ic}var Dc,Ym;function Sh(){if(Ym)return Dc;Ym=1;var n=uo(),t=lo(),e=wh(),r=Yv();return Dc=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return r(n,e,s)},Dc}var Fc,Km;function MR(){if(Km)return Fc;Km=1;var n=Sh(),t=ns(),e;try{e=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var r=!!e&&t&&t(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return Fc=r&&typeof r.get=="function"?n([r.get]):typeof s=="function"?function(l){return s(l==null?l:i(l))}:!1,Fc}var Nc,Xm;function Eh(){if(Xm)return Nc;Xm=1;var n=$v(),t=Gv(),e=MR();return Nc=n?function(i){return n(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:e?function(i){return e(i)}:null,Nc}var jc,Jm;function Kv(){if(Jm)return jc;Jm=1;var n=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=uo();return jc=e.call(n,t),jc}var Uc,Zm;function Xv(){if(Zm)return Uc;Zm=1;var n,t=zv(),e=fR(),r=hR(),i=dR(),s=pR(),a=Vv(),l=lo(),c=gR(),h=mR(),f=yR(),g=vR(),d=bR(),m=_R(),p=wR(),v=SR(),b=Function,_=function(mt){try{return b('"use strict"; return ('+mt+").constructor;")()}catch{}},A=ns(),C=Rl(),w=function(){throw new l},M=A?function(){try{return arguments.callee,w}catch{try{return A(arguments,"callee").get}catch{return w}}}():w,O=AR()(),L=Eh(),N=Gv(),Y=$v(),z=xh(),G=wh(),U={},xt=typeof Uint8Array>"u"||!L?n:L(Uint8Array),dt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":O&&L?L([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&L?L(L([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!L?n:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!L?n:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&L?L(""[Symbol.iterator]()):n,"%Symbol%":O?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":M,"%TypedArray%":xt,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":G,"%Function.prototype.apply%":z,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":N,"%Math.abs%":h,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":p,"%Math.sign%":v,"%Reflect.getPrototypeOf%":Y};if(L)try{null.error}catch(mt){var st=L(L(mt));dt["%Error.prototype%"]=st}var at=function mt(yt){var D;if(yt==="%AsyncFunction%")D=_("async function () {}");else if(yt==="%GeneratorFunction%")D=_("function* () {}");else if(yt==="%AsyncGeneratorFunction%")D=_("async function* () {}");else if(yt==="%AsyncGenerator%"){var j=mt("%AsyncGeneratorFunction%");j&&(D=j.prototype)}else if(yt==="%AsyncIteratorPrototype%"){var ut=mt("%AsyncGenerator%");ut&&L&&(D=L(ut.prototype))}return dt[yt]=D,D},_t={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bt=uo(),Et=Kv(),kt=bt.call(G,Array.prototype.concat),Ot=bt.call(z,Array.prototype.splice),Lt=bt.call(G,String.prototype.replace),Q=bt.call(G,String.prototype.slice),et=bt.call(G,RegExp.prototype.exec),ot=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,X=function(yt){var D=Q(yt,0,1),j=Q(yt,-1);if(D==="%"&&j!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(j==="%"&&D!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var ut=[];return Lt(yt,ot,function(St,Ft,Mt,Tt){ut[ut.length]=Mt?Lt(Tt,V,"$1"):Ft||St}),ut},lt=function(yt,D){var j=yt,ut;if(Et(_t,j)&&(ut=_t[j],j="%"+ut[0]+"%"),Et(dt,j)){var St=dt[j];if(St===U&&(St=at(j)),typeof St>"u"&&!D)throw new l("intrinsic "+yt+" exists, but is not available. Please file an issue!");return{alias:ut,name:j,value:St}}throw new a("intrinsic "+yt+" does not exist!")};return Uc=function(yt,D){if(typeof yt!="string"||yt.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof D!="boolean")throw new l('"allowMissing" argument must be a boolean');if(et(/^%?[^%]*%?$/,yt)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var j=X(yt),ut=j.length>0?j[0]:"",St=lt("%"+ut+"%",D),Ft=St.name,Mt=St.value,Tt=!1,je=St.alias;je&&(ut=je[0],Ot(j,kt([0,1],je)));for(var ft=1,Ce=!0;ft<j.length;ft+=1){var ue=j[ft],te=Q(ue,0,1),re=Q(ue,-1);if((te==='"'||te==="'"||te==="`"||re==='"'||re==="'"||re==="`")&&te!==re)throw new a("property names with quotes must have matching quotes");if((ue==="constructor"||!Ce)&&(Tt=!0),ut+="."+ue,Ft="%"+ut+"%",Et(dt,Ft))Mt=dt[Ft];else if(Mt!=null){if(!(ue in Mt)){if(!D)throw new l("base intrinsic for "+yt+" exists, but the property is not available.");return}if(A&&ft+1>=j.length){var Ve=A(Mt,ue);Ce=!!Ve,Ce&&"get"in Ve&&!("originalValue"in Ve.get)?Mt=Ve.get:Mt=Mt[ue]}else Ce=Et(Mt,ue),Mt=Mt[ue];Ce&&!Tt&&(dt[Ft]=Mt)}}return Mt},Uc}var qc,Qm;function co(){if(Qm)return qc;Qm=1;var n=Xv(),t=Sh(),e=t([n("%String.prototype.indexOf%")]);return qc=function(i,s){var a=n(i,!!s);return typeof a=="function"&&e(i,".prototype.")>-1?t([a]):a},qc}var Wc,ty;function CR(){if(ty)return Wc;ty=1;var n=kl()(),t=co(),e=t("Object.prototype.toString"),r=function(l){return n&&l&&typeof l=="object"&&Symbol.toStringTag in l?!1:e(l)==="[object Arguments]"},i=function(l){return r(l)?!0:l!==null&&typeof l=="object"&&"length"in l&&typeof l.length=="number"&&l.length>=0&&e(l)!=="[object Array]"&&"callee"in l&&e(l.callee)==="[object Function]"},s=function(){return r(arguments)}();return r.isLegacyArguments=i,Wc=s?r:i,Wc}var Hc,ey;function PR(){if(ey)return Hc;ey=1;var n=co(),t=kl()(),e=Kv(),r=ns(),i;if(t){var s=n("RegExp.prototype.exec"),a={},l=function(){throw a},c={toString:l,valueOf:l};typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=l),i=function(d){if(!d||typeof d!="object")return!1;var m=r(d,"lastIndex"),p=m&&e(m,"value");if(!p)return!1;try{s(d,c)}catch(v){return v===a}}}else{var h=n("Object.prototype.toString"),f="[object RegExp]";i=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:h(d)===f}}return Hc=i,Hc}var zc,ny;function OR(){if(ny)return zc;ny=1;var n=co(),t=PR(),e=n("RegExp.prototype.exec"),r=lo();return zc=function(s){if(!t(s))throw new r("`regex` must be a RegExp");return function(l){return e(s,l)!==null}},zc}var Vc,ry;function LR(){if(ry)return Vc;ry=1;var n=co(),t=OR(),e=t(/^\s*(?:function)?\*/),r=kl()(),i=Eh(),s=n("Object.prototype.toString"),a=n("Function.prototype.toString"),l=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},c;return Vc=function(f){if(typeof f!="function")return!1;if(e(a(f)))return!0;if(!r){var g=s(f);return g==="[object GeneratorFunction]"}if(!i)return!1;if(typeof c>"u"){var d=l();c=d?i(d):!1}return i(f)===c},Vc}var $c,iy;function TR(){if(iy)return $c;iy=1;var n=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,e,r;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},t(function(){throw 42},null,e)}catch(A){A!==r&&(t=null)}else t=null;var i=/^\s*class\b/,s=function(C){try{var w=n.call(C);return i.test(w)}catch{return!1}},a=function(C){try{return s(C)?!1:(n.call(C),!0)}catch{return!1}},l=Object.prototype.toString,c="[object Object]",h="[object Function]",f="[object GeneratorFunction]",g="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",p=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var _=document.all;l.call(_)===l.call(document.all)&&(b=function(C){if((v||!C)&&(typeof C>"u"||typeof C=="object"))try{var w=l.call(C);return(w===g||w===d||w===m||w===c)&&C("")==null}catch{}return!1})}return $c=t?function(C){if(b(C))return!0;if(!C||typeof C!="function"&&typeof C!="object")return!1;try{t(C,null,e)}catch(w){if(w!==r)return!1}return!s(C)&&a(C)}:function(C){if(b(C))return!0;if(!C||typeof C!="function"&&typeof C!="object")return!1;if(p)return a(C);if(s(C))return!1;var w=l.call(C);return w!==h&&w!==f&&!/^\[object HTML/.test(w)?!1:a(C)},$c}var Gc,sy;function BR(){if(sy)return Gc;sy=1;var n=TR(),t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,r=function(c,h,f){for(var g=0,d=c.length;g<d;g++)e.call(c,g)&&(f==null?h(c[g],g,c):h.call(f,c[g],g,c))},i=function(c,h,f){for(var g=0,d=c.length;g<d;g++)f==null?h(c.charAt(g),g,c):h.call(f,c.charAt(g),g,c)},s=function(c,h,f){for(var g in c)e.call(c,g)&&(f==null?h(c[g],g,c):h.call(f,c[g],g,c))};function a(l){return t.call(l)==="[object Array]"}return Gc=function(c,h,f){if(!n(h))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=f),a(c)?r(c,h,g):typeof c=="string"?i(c,h,g):s(c,h,g)},Gc}var Yc,oy;function IR(){return oy||(oy=1,Yc=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Yc}var Kc,ay;function DR(){if(ay)return Kc;ay=1;var n=IR(),t=typeof globalThis>"u"?He:globalThis;return Kc=function(){for(var r=[],i=0;i<n.length;i++)typeof t[n[i]]=="function"&&(r[r.length]=n[i]);return r},Kc}var Xc={exports:{}},Jc,ly;function FR(){if(ly)return Jc;ly=1;var n=Rl(),t=Vv(),e=lo(),r=ns();return Jc=function(s,a,l){if(!s||typeof s!="object"&&typeof s!="function")throw new e("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,d=!!r&&r(s,a);if(n)n(s,a,{configurable:f===null&&d?d.configurable:!f,enumerable:c===null&&d?d.enumerable:!c,value:l,writable:h===null&&d?d.writable:!h});else if(g||!c&&!h&&!f)s[a]=l;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Jc}var Zc,uy;function NR(){if(uy)return Zc;uy=1;var n=Rl(),t=function(){return!!n};return t.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},Zc=t,Zc}var Qc,cy;function jR(){if(cy)return Qc;cy=1;var n=Xv(),t=FR(),e=NR()(),r=ns(),i=lo(),s=n("%Math.floor%");return Qc=function(l,c){if(typeof l!="function")throw new i("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||s(c)!==c)throw new i("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],f=!0,g=!0;if("length"in l&&r){var d=r(l,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(g=!1)}return(f||g||!h)&&(e?t(l,"length",c,!0,!0):t(l,"length",c)),l},Qc}var tf,fy;function UR(){if(fy)return tf;fy=1;var n=uo(),t=xh(),e=Yv();return tf=function(){return e(n,t,arguments)},tf}var hy;function qR(){return hy||(hy=1,function(n){var t=jR(),e=Rl(),r=Sh(),i=UR();n.exports=function(a){var l=r(arguments),c=a.length-(arguments.length-1);return t(l,1+(c>0?c:0),!0)},e?e(n.exports,"apply",{value:i}):n.exports.apply=i}(Xc)),Xc.exports}var ef,dy;function Jv(){if(dy)return ef;dy=1;var n=BR(),t=DR(),e=qR(),r=co(),i=ns(),s=Eh(),a=r("Object.prototype.toString"),l=kl()(),c=typeof globalThis>"u"?He:globalThis,h=t(),f=r("String.prototype.slice"),g=r("Array.prototype.indexOf",!0)||function(b,_){for(var A=0;A<b.length;A+=1)if(b[A]===_)return A;return-1},d={__proto__:null};l&&i&&s?n(h,function(v){var b=new c[v];if(Symbol.toStringTag in b&&s){var _=s(b),A=i(_,Symbol.toStringTag);if(!A&&_){var C=s(_);A=i(C,Symbol.toStringTag)}d["$"+v]=e(A.get)}}):n(h,function(v){var b=new c[v],_=b.slice||b.set;_&&(d["$"+v]=e(_))});var m=function(b){var _=!1;return n(d,function(A,C){if(!_)try{"$"+A(b)===C&&(_=f(C,1))}catch{}}),_},p=function(b){var _=!1;return n(d,function(A,C){if(!_)try{A(b),_=f(C,1)}catch{}}),_};return ef=function(b){if(!b||typeof b!="object")return!1;if(!l){var _=f(a(b),8,-1);return g(h,_)>-1?_:_!=="Object"?!1:p(b)}return i?m(b):null},ef}var nf,py;function WR(){if(py)return nf;py=1;var n=Jv();return nf=function(e){return!!n(e)},nf}var gy;function HR(){return gy||(gy=1,function(n){var t=CR(),e=LR(),r=Jv(),i=WR();function s(ft){return ft.call.bind(ft)}var a=typeof BigInt<"u",l=typeof Symbol<"u",c=s(Object.prototype.toString),h=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),g=s(Boolean.prototype.valueOf);if(a)var d=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function p(ft,Ce){if(typeof ft!="object")return!1;try{return Ce(ft),!0}catch{return!1}}n.isArgumentsObject=t,n.isGeneratorFunction=e,n.isTypedArray=i;function v(ft){return typeof Promise<"u"&&ft instanceof Promise||ft!==null&&typeof ft=="object"&&typeof ft.then=="function"&&typeof ft.catch=="function"}n.isPromise=v;function b(ft){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ft):i(ft)||Q(ft)}n.isArrayBufferView=b;function _(ft){return r(ft)==="Uint8Array"}n.isUint8Array=_;function A(ft){return r(ft)==="Uint8ClampedArray"}n.isUint8ClampedArray=A;function C(ft){return r(ft)==="Uint16Array"}n.isUint16Array=C;function w(ft){return r(ft)==="Uint32Array"}n.isUint32Array=w;function M(ft){return r(ft)==="Int8Array"}n.isInt8Array=M;function O(ft){return r(ft)==="Int16Array"}n.isInt16Array=O;function L(ft){return r(ft)==="Int32Array"}n.isInt32Array=L;function N(ft){return r(ft)==="Float32Array"}n.isFloat32Array=N;function Y(ft){return r(ft)==="Float64Array"}n.isFloat64Array=Y;function z(ft){return r(ft)==="BigInt64Array"}n.isBigInt64Array=z;function G(ft){return r(ft)==="BigUint64Array"}n.isBigUint64Array=G;function U(ft){return c(ft)==="[object Map]"}U.working=typeof Map<"u"&&U(new Map);function xt(ft){return typeof Map>"u"?!1:U.working?U(ft):ft instanceof Map}n.isMap=xt;function dt(ft){return c(ft)==="[object Set]"}dt.working=typeof Set<"u"&&dt(new Set);function st(ft){return typeof Set>"u"?!1:dt.working?dt(ft):ft instanceof Set}n.isSet=st;function at(ft){return c(ft)==="[object WeakMap]"}at.working=typeof WeakMap<"u"&&at(new WeakMap);function _t(ft){return typeof WeakMap>"u"?!1:at.working?at(ft):ft instanceof WeakMap}n.isWeakMap=_t;function bt(ft){return c(ft)==="[object WeakSet]"}bt.working=typeof WeakSet<"u"&&bt(new WeakSet);function Et(ft){return bt(ft)}n.isWeakSet=Et;function kt(ft){return c(ft)==="[object ArrayBuffer]"}kt.working=typeof ArrayBuffer<"u"&&kt(new ArrayBuffer);function Ot(ft){return typeof ArrayBuffer>"u"?!1:kt.working?kt(ft):ft instanceof ArrayBuffer}n.isArrayBuffer=Ot;function Lt(ft){return c(ft)==="[object DataView]"}Lt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Lt(new DataView(new ArrayBuffer(1),0,1));function Q(ft){return typeof DataView>"u"?!1:Lt.working?Lt(ft):ft instanceof DataView}n.isDataView=Q;var et=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ot(ft){return c(ft)==="[object SharedArrayBuffer]"}function V(ft){return typeof et>"u"?!1:(typeof ot.working>"u"&&(ot.working=ot(new et)),ot.working?ot(ft):ft instanceof et)}n.isSharedArrayBuffer=V;function X(ft){return c(ft)==="[object AsyncFunction]"}n.isAsyncFunction=X;function lt(ft){return c(ft)==="[object Map Iterator]"}n.isMapIterator=lt;function mt(ft){return c(ft)==="[object Set Iterator]"}n.isSetIterator=mt;function yt(ft){return c(ft)==="[object Generator]"}n.isGeneratorObject=yt;function D(ft){return c(ft)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=D;function j(ft){return p(ft,h)}n.isNumberObject=j;function ut(ft){return p(ft,f)}n.isStringObject=ut;function St(ft){return p(ft,g)}n.isBooleanObject=St;function Ft(ft){return a&&p(ft,d)}n.isBigIntObject=Ft;function Mt(ft){return l&&p(ft,m)}n.isSymbolObject=Mt;function Tt(ft){return j(ft)||ut(ft)||St(ft)||Ft(ft)||Mt(ft)}n.isBoxedPrimitive=Tt;function je(ft){return typeof Uint8Array<"u"&&(Ot(ft)||V(ft))}n.isAnyArrayBuffer=je,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ft){Object.defineProperty(n,ft,{enumerable:!1,value:function(){throw new Error(ft+" is not supported in userland")}})})}(sc)),sc}var rf,my;function zR(){return my||(my=1,rf=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),rf}var La={exports:{}},yy;function wi(){return yy||(yy=1,typeof Object.create=="function"?La.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:La.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),La.exports}var vy;function rs(){return vy||(vy=1,function(n){var t={},e=Object.getOwnPropertyDescriptors||function(et){for(var ot=Object.keys(et),V={},X=0;X<ot.length;X++)V[ot[X]]=Object.getOwnPropertyDescriptor(et,ot[X]);return V},r=/%[sdj%]/g;n.format=function(Q){if(!O(Q)){for(var et=[],ot=0;ot<arguments.length;ot++)et.push(l(arguments[ot]));return et.join(" ")}for(var ot=1,V=arguments,X=V.length,lt=String(Q).replace(r,function(yt){if(yt==="%%")return"%";if(ot>=X)return yt;switch(yt){case"%s":return String(V[ot++]);case"%d":return Number(V[ot++]);case"%j":try{return JSON.stringify(V[ot++])}catch{return"[Circular]"}default:return yt}}),mt=V[ot];ot<X;mt=V[++ot])C(mt)||!z(mt)?lt+=" "+mt:lt+=" "+l(mt);return lt},n.deprecate=function(Q,et){if(typeof Qt<"u"&&Qt.noDeprecation===!0)return Q;if(typeof Qt>"u")return function(){return n.deprecate(Q,et).apply(this,arguments)};var ot=!1;function V(){if(!ot){if(Qt.throwDeprecation)throw new Error(et);Qt.traceDeprecation?console.trace(et):console.error(et),ot=!0}return Q.apply(this,arguments)}return V};var i={},s=/^$/;if(t.NODE_DEBUG){var a=t.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}n.debuglog=function(Q){if(Q=Q.toUpperCase(),!i[Q])if(s.test(Q)){var et=Qt.pid;i[Q]=function(){var ot=n.format.apply(n,arguments);console.error("%s %d: %s",Q,et,ot)}}else i[Q]=function(){};return i[Q]};function l(Q,et){var ot={seen:[],stylize:h};return arguments.length>=3&&(ot.depth=arguments[2]),arguments.length>=4&&(ot.colors=arguments[3]),A(et)?ot.showHidden=et:et&&n._extend(ot,et),N(ot.showHidden)&&(ot.showHidden=!1),N(ot.depth)&&(ot.depth=2),N(ot.colors)&&(ot.colors=!1),N(ot.customInspect)&&(ot.customInspect=!0),ot.colors&&(ot.stylize=c),g(ot,Q,ot.depth)}n.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(Q,et){var ot=l.styles[et];return ot?"\x1B["+l.colors[ot][0]+"m"+Q+"\x1B["+l.colors[ot][1]+"m":Q}function h(Q,et){return Q}function f(Q){var et={};return Q.forEach(function(ot,V){et[ot]=!0}),et}function g(Q,et,ot){if(Q.customInspect&&et&&xt(et.inspect)&&et.inspect!==n.inspect&&!(et.constructor&&et.constructor.prototype===et)){var V=et.inspect(ot,Q);return O(V)||(V=g(Q,V,ot)),V}var X=d(Q,et);if(X)return X;var lt=Object.keys(et),mt=f(lt);if(Q.showHidden&&(lt=Object.getOwnPropertyNames(et)),U(et)&&(lt.indexOf("message")>=0||lt.indexOf("description")>=0))return m(et);if(lt.length===0){if(xt(et)){var yt=et.name?": "+et.name:"";return Q.stylize("[Function"+yt+"]","special")}if(Y(et))return Q.stylize(RegExp.prototype.toString.call(et),"regexp");if(G(et))return Q.stylize(Date.prototype.toString.call(et),"date");if(U(et))return m(et)}var D="",j=!1,ut=["{","}"];if(_(et)&&(j=!0,ut=["[","]"]),xt(et)){var St=et.name?": "+et.name:"";D=" [Function"+St+"]"}if(Y(et)&&(D=" "+RegExp.prototype.toString.call(et)),G(et)&&(D=" "+Date.prototype.toUTCString.call(et)),U(et)&&(D=" "+m(et)),lt.length===0&&(!j||et.length==0))return ut[0]+D+ut[1];if(ot<0)return Y(et)?Q.stylize(RegExp.prototype.toString.call(et),"regexp"):Q.stylize("[Object]","special");Q.seen.push(et);var Ft;return j?Ft=p(Q,et,ot,mt,lt):Ft=lt.map(function(Mt){return v(Q,et,ot,mt,Mt,j)}),Q.seen.pop(),b(Ft,D,ut)}function d(Q,et){if(N(et))return Q.stylize("undefined","undefined");if(O(et)){var ot="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(ot,"string")}if(M(et))return Q.stylize(""+et,"number");if(A(et))return Q.stylize(""+et,"boolean");if(C(et))return Q.stylize("null","null")}function m(Q){return"["+Error.prototype.toString.call(Q)+"]"}function p(Q,et,ot,V,X){for(var lt=[],mt=0,yt=et.length;mt<yt;++mt)Et(et,String(mt))?lt.push(v(Q,et,ot,V,String(mt),!0)):lt.push("");return X.forEach(function(D){D.match(/^\d+$/)||lt.push(v(Q,et,ot,V,D,!0))}),lt}function v(Q,et,ot,V,X,lt){var mt,yt,D;if(D=Object.getOwnPropertyDescriptor(et,X)||{value:et[X]},D.get?D.set?yt=Q.stylize("[Getter/Setter]","special"):yt=Q.stylize("[Getter]","special"):D.set&&(yt=Q.stylize("[Setter]","special")),Et(V,X)||(mt="["+X+"]"),yt||(Q.seen.indexOf(D.value)<0?(C(ot)?yt=g(Q,D.value,null):yt=g(Q,D.value,ot-1),yt.indexOf(`
|
|
149
|
+
*/(function(n){const t=Pl,e=Ah,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=f,n.SlowBuffer=k,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i;const{Uint8Array:s,ArrayBuffer:a,SharedArrayBuffer:l}=globalThis;f.TYPED_ARRAY_SUPPORT=c(),!f.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 c(){try{const T=new s(1),E={foo:function(){return 42}};return Object.setPrototypeOf(E,s.prototype),Object.setPrototypeOf(T,E),T.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function h(T){if(T>i)throw new RangeError('The value "'+T+'" is invalid for option "size"');const E=new s(T);return Object.setPrototypeOf(E,f.prototype),E}function f(T,E,M){if(typeof T=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(T)}return g(T,E,M)}f.poolSize=8192;function g(T,E,M){if(typeof T=="string")return v(T,E);if(a.isView(T))return b(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(ke(T,a)||T&&ke(T.buffer,a)||typeof l<"u"&&(ke(T,l)||T&&ke(T.buffer,l)))return S(T,E,M);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const q=T.valueOf&&T.valueOf();if(q!=null&&q!==T)return f.from(q,E,M);const K=O(T);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return f.from(T[Symbol.toPrimitive]("string"),E,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}f.from=function(T,E,M){return g(T,E,M)},Object.setPrototypeOf(f.prototype,s.prototype),Object.setPrototypeOf(f,s);function d(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function m(T,E,M){return d(T),T<=0?h(T):E!==void 0?typeof M=="string"?h(T).fill(E,M):h(T).fill(E):h(T)}f.alloc=function(T,E,M){return m(T,E,M)};function p(T){return d(T),h(T<0?0:w(T)|0)}f.allocUnsafe=function(T){return p(T)},f.allocUnsafeSlow=function(T){return p(T)};function v(T,E){if((typeof E!="string"||E==="")&&(E="utf8"),!f.isEncoding(E))throw new TypeError("Unknown encoding: "+E);const M=C(T,E)|0;let q=h(M);const K=q.write(T,E);return K!==M&&(q=q.slice(0,K)),q}function _(T){const E=T.length<0?0:w(T.length)|0,M=h(E);for(let q=0;q<E;q+=1)M[q]=T[q]&255;return M}function b(T){if(ke(T,s)){const E=new s(T);return S(E.buffer,E.byteOffset,E.byteLength)}return _(T)}function S(T,E,M){if(E<0||T.byteLength<E)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<E+(M||0))throw new RangeError('"length" is outside of buffer bounds');let q;return E===void 0&&M===void 0?q=new s(T):M===void 0?q=new s(T,E):q=new s(T,E,M),Object.setPrototypeOf(q,f.prototype),q}function O(T){if(f.isBuffer(T)){const E=w(T.length)|0,M=h(E);return M.length===0||T.copy(M,0,0,E),M}if(T.length!==void 0)return typeof T.length!="number"||on(T.length)?h(0):_(T);if(T.type==="Buffer"&&Array.isArray(T.data))return _(T.data)}function w(T){if(T>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return T|0}function k(T){return+T!=T&&(T=0),f.alloc(+T)}f.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==f.prototype},f.compare=function(E,M){if(ke(E,s)&&(E=f.from(E,E.offset,E.byteLength)),ke(M,s)&&(M=f.from(M,M.offset,M.byteLength)),!f.isBuffer(E)||!f.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===M)return 0;let q=E.length,K=M.length;for(let nt=0,ht=Math.min(q,K);nt<ht;++nt)if(E[nt]!==M[nt]){q=E[nt],K=M[nt];break}return q<K?-1:K<q?1:0},f.isEncoding=function(E){switch(String(E).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}},f.concat=function(E,M){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return f.alloc(0);let q;if(M===void 0)for(M=0,q=0;q<E.length;++q)M+=E[q].length;const K=f.allocUnsafe(M);let nt=0;for(q=0;q<E.length;++q){let ht=E[q];if(ke(ht,s))nt+ht.length>K.length?(f.isBuffer(ht)||(ht=f.from(ht)),ht.copy(K,nt)):s.prototype.set.call(K,ht,nt);else if(f.isBuffer(ht))ht.copy(K,nt);else throw new TypeError('"list" argument must be an Array of Buffers');nt+=ht.length}return K};function C(T,E){if(f.isBuffer(T))return T.length;if(a.isView(T)||ke(T,a))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const M=T.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&M===0)return 0;let K=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return Oe(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M*2;case"hex":return M>>>1;case"base64":return re(T).length;default:if(K)return q?-1:Oe(T).length;E=(""+E).toLowerCase(),K=!0}}f.byteLength=C;function L(T,E,M){let q=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0,E>>>=0,M<=E))return"";for(T||(T="utf8");;)switch(T){case"hex":return Lt(this,E,M);case"utf8":case"utf-8":return _t(this,E,M);case"ascii":return kt(this,E,M);case"latin1":case"binary":return Ct(this,E,M);case"base64":return at(this,E,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,E,M);default:if(q)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),q=!0}}f.prototype._isBuffer=!0;function N(T,E,M){const q=T[E];T[E]=T[M],T[M]=q}f.prototype.swap16=function(){const E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let M=0;M<E;M+=2)N(this,M,M+1);return this},f.prototype.swap32=function(){const E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let M=0;M<E;M+=4)N(this,M,M+3),N(this,M+1,M+2);return this},f.prototype.swap64=function(){const E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let M=0;M<E;M+=8)N(this,M,M+7),N(this,M+1,M+6),N(this,M+2,M+5),N(this,M+3,M+4);return this},f.prototype.toString=function(){const E=this.length;return E===0?"":arguments.length===0?_t(this,0,E):L.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(E){if(!f.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:f.compare(this,E)===0},f.prototype.inspect=function(){let E="";const M=n.INSPECT_MAX_BYTES;return E=this.toString("hex",0,M).replace(/(.{2})/g,"$1 ").trim(),this.length>M&&(E+=" ... "),"<Buffer "+E+">"},r&&(f.prototype[r]=f.prototype.inspect),f.prototype.compare=function(E,M,q,K,nt){if(ke(E,s)&&(E=f.from(E,E.offset,E.byteLength)),!f.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(M===void 0&&(M=0),q===void 0&&(q=E?E.length:0),K===void 0&&(K=0),nt===void 0&&(nt=this.length),M<0||q>E.length||K<0||nt>this.length)throw new RangeError("out of range index");if(K>=nt&&M>=q)return 0;if(K>=nt)return-1;if(M>=q)return 1;if(M>>>=0,q>>>=0,K>>>=0,nt>>>=0,this===E)return 0;let ht=nt-K,Ut=q-M;const ce=Math.min(ht,Ut),fe=this.slice(K,nt),de=E.slice(M,q);for(let ne=0;ne<ce;++ne)if(fe[ne]!==de[ne]){ht=fe[ne],Ut=de[ne];break}return ht<Ut?-1:Ut<ht?1:0};function Y(T,E,M,q,K){if(T.length===0)return-1;if(typeof M=="string"?(q=M,M=0):M>2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),M=+M,on(M)&&(M=K?0:T.length-1),M<0&&(M=T.length+M),M>=T.length){if(K)return-1;M=T.length-1}else if(M<0)if(K)M=0;else return-1;if(typeof E=="string"&&(E=f.from(E,q)),f.isBuffer(E))return E.length===0?-1:z(T,E,M,q,K);if(typeof E=="number")return E=E&255,typeof s.prototype.indexOf=="function"?K?s.prototype.indexOf.call(T,E,M):s.prototype.lastIndexOf.call(T,E,M):z(T,[E],M,q,K);throw new TypeError("val must be string, number or Buffer")}function z(T,E,M,q,K){let nt=1,ht=T.length,Ut=E.length;if(q!==void 0&&(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(T.length<2||E.length<2)return-1;nt=2,ht/=2,Ut/=2,M/=2}function ce(de,ne){return nt===1?de[ne]:de.readUInt16BE(ne*nt)}let fe;if(K){let de=-1;for(fe=M;fe<ht;fe++)if(ce(T,fe)===ce(E,de===-1?0:fe-de)){if(de===-1&&(de=fe),fe-de+1===Ut)return de*nt}else de!==-1&&(fe-=fe-de),de=-1}else for(M+Ut>ht&&(M=ht-Ut),fe=M;fe>=0;fe--){let de=!0;for(let ne=0;ne<Ut;ne++)if(ce(T,fe+ne)!==ce(E,ne)){de=!1;break}if(de)return fe}return-1}f.prototype.includes=function(E,M,q){return this.indexOf(E,M,q)!==-1},f.prototype.indexOf=function(E,M,q){return Y(this,E,M,q,!0)},f.prototype.lastIndexOf=function(E,M,q){return Y(this,E,M,q,!1)};function G(T,E,M,q){M=Number(M)||0;const K=T.length-M;q?(q=Number(q),q>K&&(q=K)):q=K;const nt=E.length;q>nt/2&&(q=nt/2);let ht;for(ht=0;ht<q;++ht){const Ut=parseInt(E.substr(ht*2,2),16);if(on(Ut))return ht;T[M+ht]=Ut}return ht}function U(T,E,M,q){return ze(Oe(E,T.length-M),T,M,q)}function xt(T,E,M,q){return ze(ue(E),T,M,q)}function dt(T,E,M,q){return ze(re(E),T,M,q)}function st(T,E,M,q){return ze(te(E,T.length-M),T,M,q)}f.prototype.write=function(E,M,q,K){if(M===void 0)K="utf8",q=this.length,M=0;else if(q===void 0&&typeof M=="string")K=M,q=this.length,M=0;else if(isFinite(M))M=M>>>0,isFinite(q)?(q=q>>>0,K===void 0&&(K="utf8")):(K=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const nt=this.length-M;if((q===void 0||q>nt)&&(q=nt),E.length>0&&(q<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");let ht=!1;for(;;)switch(K){case"hex":return G(this,E,M,q);case"utf8":case"utf-8":return U(this,E,M,q);case"ascii":case"latin1":case"binary":return xt(this,E,M,q);case"base64":return dt(this,E,M,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,E,M,q);default:if(ht)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),ht=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function at(T,E,M){return E===0&&M===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(E,M))}function _t(T,E,M){M=Math.min(T.length,M);const q=[];let K=E;for(;K<M;){const nt=T[K];let ht=null,Ut=nt>239?4:nt>223?3:nt>191?2:1;if(K+Ut<=M){let ce,fe,de,ne;switch(Ut){case 1:nt<128&&(ht=nt);break;case 2:ce=T[K+1],(ce&192)===128&&(ne=(nt&31)<<6|ce&63,ne>127&&(ht=ne));break;case 3:ce=T[K+1],fe=T[K+2],(ce&192)===128&&(fe&192)===128&&(ne=(nt&15)<<12|(ce&63)<<6|fe&63,ne>2047&&(ne<55296||ne>57343)&&(ht=ne));break;case 4:ce=T[K+1],fe=T[K+2],de=T[K+3],(ce&192)===128&&(fe&192)===128&&(de&192)===128&&(ne=(nt&15)<<18|(ce&63)<<12|(fe&63)<<6|de&63,ne>65535&&ne<1114112&&(ht=ne))}}ht===null?(ht=65533,Ut=1):ht>65535&&(ht-=65536,q.push(ht>>>10&1023|55296),ht=56320|ht&1023),q.push(ht),K+=Ut}return Et(q)}const bt=4096;function Et(T){const E=T.length;if(E<=bt)return String.fromCharCode.apply(String,T);let M="",q=0;for(;q<E;)M+=String.fromCharCode.apply(String,T.slice(q,q+=bt));return M}function kt(T,E,M){let q="";M=Math.min(T.length,M);for(let K=E;K<M;++K)q+=String.fromCharCode(T[K]&127);return q}function Ct(T,E,M){let q="";M=Math.min(T.length,M);for(let K=E;K<M;++K)q+=String.fromCharCode(T[K]);return q}function Lt(T,E,M){const q=T.length;(!E||E<0)&&(E=0),(!M||M<0||M>q)&&(M=q);let K="";for(let nt=E;nt<M;++nt)K+=Ge[T[nt]];return K}function Q(T,E,M){const q=T.slice(E,M);let K="";for(let nt=0;nt<q.length-1;nt+=2)K+=String.fromCharCode(q[nt]+q[nt+1]*256);return K}f.prototype.slice=function(E,M){const q=this.length;E=~~E,M=M===void 0?q:~~M,E<0?(E+=q,E<0&&(E=0)):E>q&&(E=q),M<0?(M+=q,M<0&&(M=0)):M>q&&(M=q),M<E&&(M=E);const K=this.subarray(E,M);return Object.setPrototypeOf(K,f.prototype),K};function et(T,E,M){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+E>M)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(E,M,q){E=E>>>0,M=M>>>0,q||et(E,M,this.length);let K=this[E],nt=1,ht=0;for(;++ht<M&&(nt*=256);)K+=this[E+ht]*nt;return K},f.prototype.readUintBE=f.prototype.readUIntBE=function(E,M,q){E=E>>>0,M=M>>>0,q||et(E,M,this.length);let K=this[E+--M],nt=1;for(;M>0&&(nt*=256);)K+=this[E+--M]*nt;return K},f.prototype.readUint8=f.prototype.readUInt8=function(E,M){return E=E>>>0,M||et(E,1,this.length),this[E]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(E,M){return E=E>>>0,M||et(E,2,this.length),this[E]|this[E+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(E,M){return E=E>>>0,M||et(E,2,this.length),this[E]<<8|this[E+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(E,M){return E=E>>>0,M||et(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(E,M){return E=E>>>0,M||et(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},f.prototype.readBigUInt64LE=ye(function(E){E=E>>>0,Rt(E,"offset");const M=this[E],q=this[E+7];(M===void 0||q===void 0)&&Tt(E,this.length-8);const K=M+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,nt=this[++E]+this[++E]*2**8+this[++E]*2**16+q*2**24;return BigInt(K)+(BigInt(nt)<<BigInt(32))}),f.prototype.readBigUInt64BE=ye(function(E){E=E>>>0,Rt(E,"offset");const M=this[E],q=this[E+7];(M===void 0||q===void 0)&&Tt(E,this.length-8);const K=M*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],nt=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+q;return(BigInt(K)<<BigInt(32))+BigInt(nt)}),f.prototype.readIntLE=function(E,M,q){E=E>>>0,M=M>>>0,q||et(E,M,this.length);let K=this[E],nt=1,ht=0;for(;++ht<M&&(nt*=256);)K+=this[E+ht]*nt;return nt*=128,K>=nt&&(K-=Math.pow(2,8*M)),K},f.prototype.readIntBE=function(E,M,q){E=E>>>0,M=M>>>0,q||et(E,M,this.length);let K=M,nt=1,ht=this[E+--K];for(;K>0&&(nt*=256);)ht+=this[E+--K]*nt;return nt*=128,ht>=nt&&(ht-=Math.pow(2,8*M)),ht},f.prototype.readInt8=function(E,M){return E=E>>>0,M||et(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},f.prototype.readInt16LE=function(E,M){E=E>>>0,M||et(E,2,this.length);const q=this[E]|this[E+1]<<8;return q&32768?q|4294901760:q},f.prototype.readInt16BE=function(E,M){E=E>>>0,M||et(E,2,this.length);const q=this[E+1]|this[E]<<8;return q&32768?q|4294901760:q},f.prototype.readInt32LE=function(E,M){return E=E>>>0,M||et(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},f.prototype.readInt32BE=function(E,M){return E=E>>>0,M||et(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},f.prototype.readBigInt64LE=ye(function(E){E=E>>>0,Rt(E,"offset");const M=this[E],q=this[E+7];(M===void 0||q===void 0)&&Tt(E,this.length-8);const K=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(q<<24);return(BigInt(K)<<BigInt(32))+BigInt(M+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),f.prototype.readBigInt64BE=ye(function(E){E=E>>>0,Rt(E,"offset");const M=this[E],q=this[E+7];(M===void 0||q===void 0)&&Tt(E,this.length-8);const K=(M<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(K)<<BigInt(32))+BigInt(this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+q)}),f.prototype.readFloatLE=function(E,M){return E=E>>>0,M||et(E,4,this.length),e.read(this,E,!0,23,4)},f.prototype.readFloatBE=function(E,M){return E=E>>>0,M||et(E,4,this.length),e.read(this,E,!1,23,4)},f.prototype.readDoubleLE=function(E,M){return E=E>>>0,M||et(E,8,this.length),e.read(this,E,!0,52,8)},f.prototype.readDoubleBE=function(E,M){return E=E>>>0,M||et(E,8,this.length),e.read(this,E,!1,52,8)};function ot(T,E,M,q,K,nt){if(!f.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>K||E<nt)throw new RangeError('"value" argument is out of bounds');if(M+q>T.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(E,M,q,K){if(E=+E,M=M>>>0,q=q>>>0,!K){const Ut=Math.pow(2,8*q)-1;ot(this,E,M,q,Ut,0)}let nt=1,ht=0;for(this[M]=E&255;++ht<q&&(nt*=256);)this[M+ht]=E/nt&255;return M+q},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(E,M,q,K){if(E=+E,M=M>>>0,q=q>>>0,!K){const Ut=Math.pow(2,8*q)-1;ot(this,E,M,q,Ut,0)}let nt=q-1,ht=1;for(this[M+nt]=E&255;--nt>=0&&(ht*=256);)this[M+nt]=E/ht&255;return M+q},f.prototype.writeUint8=f.prototype.writeUInt8=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,1,255,0),this[M]=E&255,M+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,2,65535,0),this[M]=E&255,this[M+1]=E>>>8,M+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,2,65535,0),this[M]=E>>>8,this[M+1]=E&255,M+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,4,4294967295,0),this[M+3]=E>>>24,this[M+2]=E>>>16,this[M+1]=E>>>8,this[M]=E&255,M+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,4,4294967295,0),this[M]=E>>>24,this[M+1]=E>>>16,this[M+2]=E>>>8,this[M+3]=E&255,M+4};function V(T,E,M,q,K){Ft(E,q,K,T,M,7);let nt=Number(E&BigInt(4294967295));T[M++]=nt,nt=nt>>8,T[M++]=nt,nt=nt>>8,T[M++]=nt,nt=nt>>8,T[M++]=nt;let ht=Number(E>>BigInt(32)&BigInt(4294967295));return T[M++]=ht,ht=ht>>8,T[M++]=ht,ht=ht>>8,T[M++]=ht,ht=ht>>8,T[M++]=ht,M}function X(T,E,M,q,K){Ft(E,q,K,T,M,7);let nt=Number(E&BigInt(4294967295));T[M+7]=nt,nt=nt>>8,T[M+6]=nt,nt=nt>>8,T[M+5]=nt,nt=nt>>8,T[M+4]=nt;let ht=Number(E>>BigInt(32)&BigInt(4294967295));return T[M+3]=ht,ht=ht>>8,T[M+2]=ht,ht=ht>>8,T[M+1]=ht,ht=ht>>8,T[M]=ht,M+8}f.prototype.writeBigUInt64LE=ye(function(E,M=0){return V(this,E,M,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=ye(function(E,M=0){return X(this,E,M,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(E,M,q,K){if(E=+E,M=M>>>0,!K){const ce=Math.pow(2,8*q-1);ot(this,E,M,q,ce-1,-ce)}let nt=0,ht=1,Ut=0;for(this[M]=E&255;++nt<q&&(ht*=256);)E<0&&Ut===0&&this[M+nt-1]!==0&&(Ut=1),this[M+nt]=(E/ht>>0)-Ut&255;return M+q},f.prototype.writeIntBE=function(E,M,q,K){if(E=+E,M=M>>>0,!K){const ce=Math.pow(2,8*q-1);ot(this,E,M,q,ce-1,-ce)}let nt=q-1,ht=1,Ut=0;for(this[M+nt]=E&255;--nt>=0&&(ht*=256);)E<0&&Ut===0&&this[M+nt+1]!==0&&(Ut=1),this[M+nt]=(E/ht>>0)-Ut&255;return M+q},f.prototype.writeInt8=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,1,127,-128),E<0&&(E=255+E+1),this[M]=E&255,M+1},f.prototype.writeInt16LE=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,2,32767,-32768),this[M]=E&255,this[M+1]=E>>>8,M+2},f.prototype.writeInt16BE=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,2,32767,-32768),this[M]=E>>>8,this[M+1]=E&255,M+2},f.prototype.writeInt32LE=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,4,2147483647,-2147483648),this[M]=E&255,this[M+1]=E>>>8,this[M+2]=E>>>16,this[M+3]=E>>>24,M+4},f.prototype.writeInt32BE=function(E,M,q){return E=+E,M=M>>>0,q||ot(this,E,M,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[M]=E>>>24,this[M+1]=E>>>16,this[M+2]=E>>>8,this[M+3]=E&255,M+4},f.prototype.writeBigInt64LE=ye(function(E,M=0){return V(this,E,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=ye(function(E,M=0){return X(this,E,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function lt(T,E,M,q,K,nt){if(M+q>T.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function mt(T,E,M,q,K){return E=+E,M=M>>>0,K||lt(T,E,M,4),e.write(T,E,M,q,23,4),M+4}f.prototype.writeFloatLE=function(E,M,q){return mt(this,E,M,!0,q)},f.prototype.writeFloatBE=function(E,M,q){return mt(this,E,M,!1,q)};function yt(T,E,M,q,K){return E=+E,M=M>>>0,K||lt(T,E,M,8),e.write(T,E,M,q,52,8),M+8}f.prototype.writeDoubleLE=function(E,M,q){return yt(this,E,M,!0,q)},f.prototype.writeDoubleBE=function(E,M,q){return yt(this,E,M,!1,q)},f.prototype.copy=function(E,M,q,K){if(!f.isBuffer(E))throw new TypeError("argument should be a Buffer");if(q||(q=0),!K&&K!==0&&(K=this.length),M>=E.length&&(M=E.length),M||(M=0),K>0&&K<q&&(K=q),K===q||E.length===0||this.length===0)return 0;if(M<0)throw new RangeError("targetStart out of bounds");if(q<0||q>=this.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),E.length-M<K-q&&(K=E.length-M+q);const nt=K-q;return this===E&&typeof s.prototype.copyWithin=="function"?this.copyWithin(M,q,K):s.prototype.set.call(E,this.subarray(q,K),M),nt},f.prototype.fill=function(E,M,q,K){if(typeof E=="string"){if(typeof M=="string"?(K=M,M=0,q=this.length):typeof q=="string"&&(K=q,q=this.length),K!==void 0&&typeof K!="string")throw new TypeError("encoding must be a string");if(typeof K=="string"&&!f.isEncoding(K))throw new TypeError("Unknown encoding: "+K);if(E.length===1){const ht=E.charCodeAt(0);(K==="utf8"&&ht<128||K==="latin1")&&(E=ht)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));if(M<0||this.length<M||this.length<q)throw new RangeError("Out of range index");if(q<=M)return this;M=M>>>0,q=q===void 0?this.length:q>>>0,E||(E=0);let nt;if(typeof E=="number")for(nt=M;nt<q;++nt)this[nt]=E;else{const ht=f.isBuffer(E)?E:f.from(E,K),Ut=ht.length;if(Ut===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(nt=0;nt<q-M;++nt)this[nt+M]=ht[nt%Ut]}return this};const D={};function j(T,E,M){D[T]=class extends M{constructor(){super(),Object.defineProperty(this,"message",{value:E.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(K){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:K,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}j("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),j("ERR_INVALID_ARG_TYPE",function(T,E){return`The "${T}" argument must be of type number. Received type ${typeof E}`},TypeError),j("ERR_OUT_OF_RANGE",function(T,E,M){let q=`The value of "${T}" is out of range.`,K=M;return Number.isInteger(M)&&Math.abs(M)>2**32?K=ut(String(M)):typeof M=="bigint"&&(K=String(M),(M>BigInt(2)**BigInt(32)||M<-(BigInt(2)**BigInt(32)))&&(K=ut(K)),K+="n"),q+=` It must be ${E}. Received ${K}`,q},RangeError);function ut(T){let E="",M=T.length;const q=T[0]==="-"?1:0;for(;M>=q+4;M-=3)E=`_${T.slice(M-3,M)}${E}`;return`${T.slice(0,M)}${E}`}function St(T,E,M){Rt(E,"offset"),(T[E]===void 0||T[E+M]===void 0)&&Tt(E,T.length-(M+1))}function Ft(T,E,M,q,K,nt){if(T>M||T<E){const ht=typeof E=="bigint"?"n":"";let Ut;throw E===0||E===BigInt(0)?Ut=`>= 0${ht} and < 2${ht} ** ${(nt+1)*8}${ht}`:Ut=`>= -(2${ht} ** ${(nt+1)*8-1}${ht}) and < 2 ** ${(nt+1)*8-1}${ht}`,new D.ERR_OUT_OF_RANGE("value",Ut,T)}St(q,K,nt)}function Rt(T,E){if(typeof T!="number")throw new D.ERR_INVALID_ARG_TYPE(E,"number",T)}function Tt(T,E,M){throw Math.floor(T)!==T?(Rt(T,M),new D.ERR_OUT_OF_RANGE("offset","an integer",T)):E<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${E}`,T)}const Ne=/[^+/0-9A-Za-z-_]/g;function ft(T){if(T=T.split("=")[0],T=T.trim().replace(Ne,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function Oe(T,E){E=E||1/0;let M;const q=T.length;let K=null;const nt=[];for(let ht=0;ht<q;++ht){if(M=T.charCodeAt(ht),M>55295&&M<57344){if(!K){if(M>56319){(E-=3)>-1&&nt.push(239,191,189);continue}else if(ht+1===q){(E-=3)>-1&&nt.push(239,191,189);continue}K=M;continue}if(M<56320){(E-=3)>-1&&nt.push(239,191,189),K=M;continue}M=(K-55296<<10|M-56320)+65536}else K&&(E-=3)>-1&&nt.push(239,191,189);if(K=null,M<128){if((E-=1)<0)break;nt.push(M)}else if(M<2048){if((E-=2)<0)break;nt.push(M>>6|192,M&63|128)}else if(M<65536){if((E-=3)<0)break;nt.push(M>>12|224,M>>6&63|128,M&63|128)}else if(M<1114112){if((E-=4)<0)break;nt.push(M>>18|240,M>>12&63|128,M>>6&63|128,M&63|128)}else throw new Error("Invalid code point")}return nt}function ue(T){const E=[];for(let M=0;M<T.length;++M)E.push(T.charCodeAt(M)&255);return E}function te(T,E){let M,q,K;const nt=[];for(let ht=0;ht<T.length&&!((E-=2)<0);++ht)M=T.charCodeAt(ht),q=M>>8,K=M%256,nt.push(K),nt.push(q);return nt}function re(T){return t.toByteArray(ft(T))}function ze(T,E,M,q){let K;for(K=0;K<q&&!(K+M>=E.length||K>=T.length);++K)E[K+M]=T[K];return K}function ke(T,E){return T instanceof E||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===E.name}function on(T){return T!==T}const Ge=function(){const T="0123456789abcdef",E=new Array(256);for(let M=0;M<16;++M){const q=M*16;for(let K=0;K<16;++K)E[q+K]=T[M]+T[K]}return E}();function ye(T){return typeof BigInt>"u"?Mn:T}function Mn(){throw new Error("BigInt not supported")}})($v);const eo=$v.Buffer;var Ba={exports:{}},Da={exports:{}};function bM(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yv={exports:{}},De=Yv.exports={},ir,sr;function Xf(){throw new Error("setTimeout has not been defined")}function Jf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ir=setTimeout:ir=Xf}catch{ir=Xf}try{typeof clearTimeout=="function"?sr=clearTimeout:sr=Jf}catch{sr=Jf}})();function Kv(n){if(ir===setTimeout)return setTimeout(n,0);if((ir===Xf||!ir)&&setTimeout)return ir=setTimeout,setTimeout(n,0);try{return ir(n,0)}catch{try{return ir.call(null,n,0)}catch{return ir.call(this,n,0)}}}function _M(n){if(sr===clearTimeout)return clearTimeout(n);if((sr===Jf||!sr)&&clearTimeout)return sr=clearTimeout,clearTimeout(n);try{return sr(n)}catch{try{return sr.call(null,n)}catch{return sr.call(this,n)}}}var Rr=[],Ki=!1,mi,ll=-1;function wM(){!Ki||!mi||(Ki=!1,mi.length?Rr=mi.concat(Rr):ll=-1,Rr.length&&Xv())}function Xv(){if(!Ki){var n=Kv(wM);Ki=!0;for(var t=Rr.length;t;){for(mi=Rr,Rr=[];++ll<t;)mi&&mi[ll].run();ll=-1,t=Rr.length}mi=null,Ki=!1,_M(n)}}De.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];Rr.push(new Jv(n,t)),Rr.length===1&&!Ki&&Kv(Xv)};function Jv(n,t){this.fun=n,this.array=t}Jv.prototype.run=function(){this.fun.apply(null,this.array)};De.title="browser";De.browser=!0;De.env={};De.argv=[];De.version="";De.versions={};function Lr(){}De.on=Lr;De.addListener=Lr;De.once=Lr;De.off=Lr;De.removeListener=Lr;De.removeAllListeners=Lr;De.emit=Lr;De.prependListener=Lr;De.prependOnceListener=Lr;De.listeners=function(n){return[]};De.binding=function(n){throw new Error("process.binding is not supported")};De.cwd=function(){return"/"};De.chdir=function(n){throw new Error("process.chdir is not supported")};De.umask=function(){return 0};var xM=Yv.exports;const Qt=bM(xM);var uc={},cc={},fc,km;function Zv(){return km||(km=1,fc=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),r=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[e]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,e);if(l.value!==i||l.enumerable!==!0)return!1}return!0}),fc}var hc,Mm;function Cl(){if(Mm)return hc;Mm=1;var n=Zv();return hc=function(){return n()&&!!Symbol.toStringTag},hc}var dc,Rm;function Qv(){return Rm||(Rm=1,dc=Object),dc}var pc,Om;function SM(){return Om||(Om=1,pc=Error),pc}var gc,Pm;function EM(){return Pm||(Pm=1,gc=EvalError),gc}var mc,Cm;function AM(){return Cm||(Cm=1,mc=RangeError),mc}var yc,Lm;function kM(){return Lm||(Lm=1,yc=ReferenceError),yc}var vc,Tm;function tb(){return Tm||(Tm=1,vc=SyntaxError),vc}var bc,Im;function po(){return Im||(Im=1,bc=TypeError),bc}var _c,Bm;function MM(){return Bm||(Bm=1,_c=URIError),_c}var wc,Dm;function RM(){return Dm||(Dm=1,wc=Math.abs),wc}var xc,Fm;function OM(){return Fm||(Fm=1,xc=Math.floor),xc}var Sc,Nm;function PM(){return Nm||(Nm=1,Sc=Math.max),Sc}var Ec,jm;function CM(){return jm||(jm=1,Ec=Math.min),Ec}var Ac,Um;function LM(){return Um||(Um=1,Ac=Math.pow),Ac}var kc,qm;function TM(){return qm||(qm=1,kc=Math.round),kc}var Mc,Wm;function IM(){return Wm||(Wm=1,Mc=Number.isNaN||function(t){return t!==t}),Mc}var Rc,Hm;function BM(){if(Hm)return Rc;Hm=1;var n=IM();return Rc=function(e){return n(e)||e===0?e:e<0?-1:1},Rc}var Oc,zm;function DM(){return zm||(zm=1,Oc=Object.getOwnPropertyDescriptor),Oc}var Pc,Vm;function os(){if(Vm)return Pc;Vm=1;var n=DM();if(n)try{n([],"length")}catch{n=null}return Pc=n,Pc}var Cc,$m;function Ll(){if($m)return Cc;$m=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Cc=n,Cc}var Lc,Gm;function FM(){if(Gm)return Lc;Gm=1;var n=typeof Symbol<"u"&&Symbol,t=Zv();return Lc=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Lc}var Tc,Ym;function eb(){return Ym||(Ym=1,Tc=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Tc}var Ic,Km;function nb(){if(Km)return Ic;Km=1;var n=Qv();return Ic=n.getPrototypeOf||null,Ic}var Bc,Xm;function NM(){if(Xm)return Bc;Xm=1;var n="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,e=Math.max,r="[object Function]",i=function(c,h){for(var f=[],g=0;g<c.length;g+=1)f[g]=c[g];for(var d=0;d<h.length;d+=1)f[d+c.length]=h[d];return f},s=function(c,h){for(var f=[],g=h,d=0;g<c.length;g+=1,d+=1)f[d]=c[g];return f},a=function(l,c){for(var h="",f=0;f<l.length;f+=1)h+=l[f],f+1<l.length&&(h+=c);return h};return Bc=function(c){var h=this;if(typeof h!="function"||t.apply(h)!==r)throw new TypeError(n+h);for(var f=s(arguments,1),g,d=function(){if(this instanceof g){var b=h.apply(this,i(f,arguments));return Object(b)===b?b:this}return h.apply(c,i(f,arguments))},m=e(0,h.length-f.length),p=[],v=0;v<m;v++)p[v]="$"+v;if(g=Function("binder","return function ("+a(p,",")+"){ return binder.apply(this,arguments); }")(d),h.prototype){var _=function(){};_.prototype=h.prototype,g.prototype=new _,_.prototype=null}return g},Bc}var Dc,Jm;function go(){if(Jm)return Dc;Jm=1;var n=NM();return Dc=Function.prototype.bind||n,Dc}var Fc,Zm;function kh(){return Zm||(Zm=1,Fc=Function.prototype.call),Fc}var Nc,Qm;function Mh(){return Qm||(Qm=1,Nc=Function.prototype.apply),Nc}var jc,ty;function jM(){return ty||(ty=1,jc=typeof Reflect<"u"&&Reflect&&Reflect.apply),jc}var Uc,ey;function rb(){if(ey)return Uc;ey=1;var n=go(),t=Mh(),e=kh(),r=jM();return Uc=r||n.call(e,t),Uc}var qc,ny;function Rh(){if(ny)return qc;ny=1;var n=go(),t=po(),e=kh(),r=rb();return qc=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return r(n,e,s)},qc}var Wc,ry;function UM(){if(ry)return Wc;ry=1;var n=Rh(),t=os(),e;try{e=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var r=!!e&&t&&t(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return Wc=r&&typeof r.get=="function"?n([r.get]):typeof s=="function"?function(l){return s(l==null?l:i(l))}:!1,Wc}var Hc,iy;function Oh(){if(iy)return Hc;iy=1;var n=eb(),t=nb(),e=UM();return Hc=n?function(i){return n(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:e?function(i){return e(i)}:null,Hc}var zc,sy;function ib(){if(sy)return zc;sy=1;var n=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=go();return zc=e.call(n,t),zc}var Vc,oy;function sb(){if(oy)return Vc;oy=1;var n,t=Qv(),e=SM(),r=EM(),i=AM(),s=kM(),a=tb(),l=po(),c=MM(),h=RM(),f=OM(),g=PM(),d=CM(),m=LM(),p=TM(),v=BM(),_=Function,b=function(mt){try{return _('"use strict"; return ('+mt+").constructor;")()}catch{}},S=os(),O=Ll(),w=function(){throw new l},k=S?function(){try{return arguments.callee,w}catch{try{return S(arguments,"callee").get}catch{return w}}}():w,C=FM()(),L=Oh(),N=nb(),Y=eb(),z=Mh(),G=kh(),U={},xt=typeof Uint8Array>"u"||!L?n:L(Uint8Array),dt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":C&&L?L([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&L?L(L([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C||!L?n:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C||!L?n:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&L?L(""[Symbol.iterator]()):n,"%Symbol%":C?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":k,"%TypedArray%":xt,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":G,"%Function.prototype.apply%":z,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":N,"%Math.abs%":h,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":p,"%Math.sign%":v,"%Reflect.getPrototypeOf%":Y};if(L)try{null.error}catch(mt){var st=L(L(mt));dt["%Error.prototype%"]=st}var at=function mt(yt){var D;if(yt==="%AsyncFunction%")D=b("async function () {}");else if(yt==="%GeneratorFunction%")D=b("function* () {}");else if(yt==="%AsyncGeneratorFunction%")D=b("async function* () {}");else if(yt==="%AsyncGenerator%"){var j=mt("%AsyncGeneratorFunction%");j&&(D=j.prototype)}else if(yt==="%AsyncIteratorPrototype%"){var ut=mt("%AsyncGenerator%");ut&&L&&(D=L(ut.prototype))}return dt[yt]=D,D},_t={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bt=go(),Et=ib(),kt=bt.call(G,Array.prototype.concat),Ct=bt.call(z,Array.prototype.splice),Lt=bt.call(G,String.prototype.replace),Q=bt.call(G,String.prototype.slice),et=bt.call(G,RegExp.prototype.exec),ot=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,X=function(yt){var D=Q(yt,0,1),j=Q(yt,-1);if(D==="%"&&j!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(j==="%"&&D!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var ut=[];return Lt(yt,ot,function(St,Ft,Rt,Tt){ut[ut.length]=Rt?Lt(Tt,V,"$1"):Ft||St}),ut},lt=function(yt,D){var j=yt,ut;if(Et(_t,j)&&(ut=_t[j],j="%"+ut[0]+"%"),Et(dt,j)){var St=dt[j];if(St===U&&(St=at(j)),typeof St>"u"&&!D)throw new l("intrinsic "+yt+" exists, but is not available. Please file an issue!");return{alias:ut,name:j,value:St}}throw new a("intrinsic "+yt+" does not exist!")};return Vc=function(yt,D){if(typeof yt!="string"||yt.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof D!="boolean")throw new l('"allowMissing" argument must be a boolean');if(et(/^%?[^%]*%?$/,yt)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var j=X(yt),ut=j.length>0?j[0]:"",St=lt("%"+ut+"%",D),Ft=St.name,Rt=St.value,Tt=!1,Ne=St.alias;Ne&&(ut=Ne[0],Ct(j,kt([0,1],Ne)));for(var ft=1,Oe=!0;ft<j.length;ft+=1){var ue=j[ft],te=Q(ue,0,1),re=Q(ue,-1);if((te==='"'||te==="'"||te==="`"||re==='"'||re==="'"||re==="`")&&te!==re)throw new a("property names with quotes must have matching quotes");if((ue==="constructor"||!Oe)&&(Tt=!0),ut+="."+ue,Ft="%"+ut+"%",Et(dt,Ft))Rt=dt[Ft];else if(Rt!=null){if(!(ue in Rt)){if(!D)throw new l("base intrinsic for "+yt+" exists, but the property is not available.");return}if(S&&ft+1>=j.length){var ze=S(Rt,ue);Oe=!!ze,Oe&&"get"in ze&&!("originalValue"in ze.get)?Rt=ze.get:Rt=Rt[ue]}else Oe=Et(Rt,ue),Rt=Rt[ue];Oe&&!Tt&&(dt[Ft]=Rt)}}return Rt},Vc}var $c,ay;function mo(){if(ay)return $c;ay=1;var n=sb(),t=Rh(),e=t([n("%String.prototype.indexOf%")]);return $c=function(i,s){var a=n(i,!!s);return typeof a=="function"&&e(i,".prototype.")>-1?t([a]):a},$c}var Gc,ly;function qM(){if(ly)return Gc;ly=1;var n=Cl()(),t=mo(),e=t("Object.prototype.toString"),r=function(l){return n&&l&&typeof l=="object"&&Symbol.toStringTag in l?!1:e(l)==="[object Arguments]"},i=function(l){return r(l)?!0:l!==null&&typeof l=="object"&&"length"in l&&typeof l.length=="number"&&l.length>=0&&e(l)!=="[object Array]"&&"callee"in l&&e(l.callee)==="[object Function]"},s=function(){return r(arguments)}();return r.isLegacyArguments=i,Gc=s?r:i,Gc}var Yc,uy;function WM(){if(uy)return Yc;uy=1;var n=mo(),t=Cl()(),e=ib(),r=os(),i;if(t){var s=n("RegExp.prototype.exec"),a={},l=function(){throw a},c={toString:l,valueOf:l};typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=l),i=function(d){if(!d||typeof d!="object")return!1;var m=r(d,"lastIndex"),p=m&&e(m,"value");if(!p)return!1;try{s(d,c)}catch(v){return v===a}}}else{var h=n("Object.prototype.toString"),f="[object RegExp]";i=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:h(d)===f}}return Yc=i,Yc}var Kc,cy;function HM(){if(cy)return Kc;cy=1;var n=mo(),t=WM(),e=n("RegExp.prototype.exec"),r=po();return Kc=function(s){if(!t(s))throw new r("`regex` must be a RegExp");return function(l){return e(s,l)!==null}},Kc}var Xc,fy;function zM(){if(fy)return Xc;fy=1;var n=mo(),t=HM(),e=t(/^\s*(?:function)?\*/),r=Cl()(),i=Oh(),s=n("Object.prototype.toString"),a=n("Function.prototype.toString"),l=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},c;return Xc=function(f){if(typeof f!="function")return!1;if(e(a(f)))return!0;if(!r){var g=s(f);return g==="[object GeneratorFunction]"}if(!i)return!1;if(typeof c>"u"){var d=l();c=d?i(d):!1}return i(f)===c},Xc}var Jc,hy;function VM(){if(hy)return Jc;hy=1;var n=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,e,r;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},t(function(){throw 42},null,e)}catch(S){S!==r&&(t=null)}else t=null;var i=/^\s*class\b/,s=function(O){try{var w=n.call(O);return i.test(w)}catch{return!1}},a=function(O){try{return s(O)?!1:(n.call(O),!0)}catch{return!1}},l=Object.prototype.toString,c="[object Object]",h="[object Function]",f="[object GeneratorFunction]",g="[object HTMLAllCollection]",d="[object HTML document.all class]",m="[object HTMLCollection]",p=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var b=document.all;l.call(b)===l.call(document.all)&&(_=function(O){if((v||!O)&&(typeof O>"u"||typeof O=="object"))try{var w=l.call(O);return(w===g||w===d||w===m||w===c)&&O("")==null}catch{}return!1})}return Jc=t?function(O){if(_(O))return!0;if(!O||typeof O!="function"&&typeof O!="object")return!1;try{t(O,null,e)}catch(w){if(w!==r)return!1}return!s(O)&&a(O)}:function(O){if(_(O))return!0;if(!O||typeof O!="function"&&typeof O!="object")return!1;if(p)return a(O);if(s(O))return!1;var w=l.call(O);return w!==h&&w!==f&&!/^\[object HTML/.test(w)?!1:a(O)},Jc}var Zc,dy;function $M(){if(dy)return Zc;dy=1;var n=VM(),t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,r=function(c,h,f){for(var g=0,d=c.length;g<d;g++)e.call(c,g)&&(f==null?h(c[g],g,c):h.call(f,c[g],g,c))},i=function(c,h,f){for(var g=0,d=c.length;g<d;g++)f==null?h(c.charAt(g),g,c):h.call(f,c.charAt(g),g,c)},s=function(c,h,f){for(var g in c)e.call(c,g)&&(f==null?h(c[g],g,c):h.call(f,c[g],g,c))};function a(l){return t.call(l)==="[object Array]"}return Zc=function(c,h,f){if(!n(h))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=f),a(c)?r(c,h,g):typeof c=="string"?i(c,h,g):s(c,h,g)},Zc}var Qc,py;function GM(){return py||(py=1,Qc=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Qc}var tf,gy;function YM(){if(gy)return tf;gy=1;var n=GM(),t=typeof globalThis>"u"?We:globalThis;return tf=function(){for(var r=[],i=0;i<n.length;i++)typeof t[n[i]]=="function"&&(r[r.length]=n[i]);return r},tf}var ef={exports:{}},nf,my;function KM(){if(my)return nf;my=1;var n=Ll(),t=tb(),e=po(),r=os();return nf=function(s,a,l){if(!s||typeof s!="object"&&typeof s!="function")throw new e("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,d=!!r&&r(s,a);if(n)n(s,a,{configurable:f===null&&d?d.configurable:!f,enumerable:c===null&&d?d.enumerable:!c,value:l,writable:h===null&&d?d.writable:!h});else if(g||!c&&!h&&!f)s[a]=l;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},nf}var rf,yy;function XM(){if(yy)return rf;yy=1;var n=Ll(),t=function(){return!!n};return t.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},rf=t,rf}var sf,vy;function JM(){if(vy)return sf;vy=1;var n=sb(),t=KM(),e=XM()(),r=os(),i=po(),s=n("%Math.floor%");return sf=function(l,c){if(typeof l!="function")throw new i("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||s(c)!==c)throw new i("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],f=!0,g=!0;if("length"in l&&r){var d=r(l,"length");d&&!d.configurable&&(f=!1),d&&!d.writable&&(g=!1)}return(f||g||!h)&&(e?t(l,"length",c,!0,!0):t(l,"length",c)),l},sf}var of,by;function ZM(){if(by)return of;by=1;var n=go(),t=Mh(),e=rb();return of=function(){return e(n,t,arguments)},of}var _y;function QM(){return _y||(_y=1,function(n){var t=JM(),e=Ll(),r=Rh(),i=ZM();n.exports=function(a){var l=r(arguments),c=a.length-(arguments.length-1);return t(l,1+(c>0?c:0),!0)},e?e(n.exports,"apply",{value:i}):n.exports.apply=i}(ef)),ef.exports}var af,wy;function ob(){if(wy)return af;wy=1;var n=$M(),t=YM(),e=QM(),r=mo(),i=os(),s=Oh(),a=r("Object.prototype.toString"),l=Cl()(),c=typeof globalThis>"u"?We:globalThis,h=t(),f=r("String.prototype.slice"),g=r("Array.prototype.indexOf",!0)||function(_,b){for(var S=0;S<_.length;S+=1)if(_[S]===b)return S;return-1},d={__proto__:null};l&&i&&s?n(h,function(v){var _=new c[v];if(Symbol.toStringTag in _&&s){var b=s(_),S=i(b,Symbol.toStringTag);if(!S&&b){var O=s(b);S=i(O,Symbol.toStringTag)}d["$"+v]=e(S.get)}}):n(h,function(v){var _=new c[v],b=_.slice||_.set;b&&(d["$"+v]=e(b))});var m=function(_){var b=!1;return n(d,function(S,O){if(!b)try{"$"+S(_)===O&&(b=f(O,1))}catch{}}),b},p=function(_){var b=!1;return n(d,function(S,O){if(!b)try{S(_),b=f(O,1)}catch{}}),b};return af=function(_){if(!_||typeof _!="object")return!1;if(!l){var b=f(a(_),8,-1);return g(h,b)>-1?b:b!=="Object"?!1:p(_)}return i?m(_):null},af}var lf,xy;function tR(){if(xy)return lf;xy=1;var n=ob();return lf=function(e){return!!n(e)},lf}var Sy;function eR(){return Sy||(Sy=1,function(n){var t=qM(),e=zM(),r=ob(),i=tR();function s(ft){return ft.call.bind(ft)}var a=typeof BigInt<"u",l=typeof Symbol<"u",c=s(Object.prototype.toString),h=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),g=s(Boolean.prototype.valueOf);if(a)var d=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function p(ft,Oe){if(typeof ft!="object")return!1;try{return Oe(ft),!0}catch{return!1}}n.isArgumentsObject=t,n.isGeneratorFunction=e,n.isTypedArray=i;function v(ft){return typeof Promise<"u"&&ft instanceof Promise||ft!==null&&typeof ft=="object"&&typeof ft.then=="function"&&typeof ft.catch=="function"}n.isPromise=v;function _(ft){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ft):i(ft)||Q(ft)}n.isArrayBufferView=_;function b(ft){return r(ft)==="Uint8Array"}n.isUint8Array=b;function S(ft){return r(ft)==="Uint8ClampedArray"}n.isUint8ClampedArray=S;function O(ft){return r(ft)==="Uint16Array"}n.isUint16Array=O;function w(ft){return r(ft)==="Uint32Array"}n.isUint32Array=w;function k(ft){return r(ft)==="Int8Array"}n.isInt8Array=k;function C(ft){return r(ft)==="Int16Array"}n.isInt16Array=C;function L(ft){return r(ft)==="Int32Array"}n.isInt32Array=L;function N(ft){return r(ft)==="Float32Array"}n.isFloat32Array=N;function Y(ft){return r(ft)==="Float64Array"}n.isFloat64Array=Y;function z(ft){return r(ft)==="BigInt64Array"}n.isBigInt64Array=z;function G(ft){return r(ft)==="BigUint64Array"}n.isBigUint64Array=G;function U(ft){return c(ft)==="[object Map]"}U.working=typeof Map<"u"&&U(new Map);function xt(ft){return typeof Map>"u"?!1:U.working?U(ft):ft instanceof Map}n.isMap=xt;function dt(ft){return c(ft)==="[object Set]"}dt.working=typeof Set<"u"&&dt(new Set);function st(ft){return typeof Set>"u"?!1:dt.working?dt(ft):ft instanceof Set}n.isSet=st;function at(ft){return c(ft)==="[object WeakMap]"}at.working=typeof WeakMap<"u"&&at(new WeakMap);function _t(ft){return typeof WeakMap>"u"?!1:at.working?at(ft):ft instanceof WeakMap}n.isWeakMap=_t;function bt(ft){return c(ft)==="[object WeakSet]"}bt.working=typeof WeakSet<"u"&&bt(new WeakSet);function Et(ft){return bt(ft)}n.isWeakSet=Et;function kt(ft){return c(ft)==="[object ArrayBuffer]"}kt.working=typeof ArrayBuffer<"u"&&kt(new ArrayBuffer);function Ct(ft){return typeof ArrayBuffer>"u"?!1:kt.working?kt(ft):ft instanceof ArrayBuffer}n.isArrayBuffer=Ct;function Lt(ft){return c(ft)==="[object DataView]"}Lt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Lt(new DataView(new ArrayBuffer(1),0,1));function Q(ft){return typeof DataView>"u"?!1:Lt.working?Lt(ft):ft instanceof DataView}n.isDataView=Q;var et=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ot(ft){return c(ft)==="[object SharedArrayBuffer]"}function V(ft){return typeof et>"u"?!1:(typeof ot.working>"u"&&(ot.working=ot(new et)),ot.working?ot(ft):ft instanceof et)}n.isSharedArrayBuffer=V;function X(ft){return c(ft)==="[object AsyncFunction]"}n.isAsyncFunction=X;function lt(ft){return c(ft)==="[object Map Iterator]"}n.isMapIterator=lt;function mt(ft){return c(ft)==="[object Set Iterator]"}n.isSetIterator=mt;function yt(ft){return c(ft)==="[object Generator]"}n.isGeneratorObject=yt;function D(ft){return c(ft)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=D;function j(ft){return p(ft,h)}n.isNumberObject=j;function ut(ft){return p(ft,f)}n.isStringObject=ut;function St(ft){return p(ft,g)}n.isBooleanObject=St;function Ft(ft){return a&&p(ft,d)}n.isBigIntObject=Ft;function Rt(ft){return l&&p(ft,m)}n.isSymbolObject=Rt;function Tt(ft){return j(ft)||ut(ft)||St(ft)||Ft(ft)||Rt(ft)}n.isBoxedPrimitive=Tt;function Ne(ft){return typeof Uint8Array<"u"&&(Ct(ft)||V(ft))}n.isAnyArrayBuffer=Ne,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ft){Object.defineProperty(n,ft,{enumerable:!1,value:function(){throw new Error(ft+" is not supported in userland")}})})}(cc)),cc}var uf,Ey;function nR(){return Ey||(Ey=1,uf=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),uf}var Fa={exports:{}},Ay;function Si(){return Ay||(Ay=1,typeof Object.create=="function"?Fa.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Fa.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),Fa.exports}var ky;function as(){return ky||(ky=1,function(n){var t={},e=Object.getOwnPropertyDescriptors||function(et){for(var ot=Object.keys(et),V={},X=0;X<ot.length;X++)V[ot[X]]=Object.getOwnPropertyDescriptor(et,ot[X]);return V},r=/%[sdj%]/g;n.format=function(Q){if(!C(Q)){for(var et=[],ot=0;ot<arguments.length;ot++)et.push(l(arguments[ot]));return et.join(" ")}for(var ot=1,V=arguments,X=V.length,lt=String(Q).replace(r,function(yt){if(yt==="%%")return"%";if(ot>=X)return yt;switch(yt){case"%s":return String(V[ot++]);case"%d":return Number(V[ot++]);case"%j":try{return JSON.stringify(V[ot++])}catch{return"[Circular]"}default:return yt}}),mt=V[ot];ot<X;mt=V[++ot])O(mt)||!z(mt)?lt+=" "+mt:lt+=" "+l(mt);return lt},n.deprecate=function(Q,et){if(typeof Qt<"u"&&Qt.noDeprecation===!0)return Q;if(typeof Qt>"u")return function(){return n.deprecate(Q,et).apply(this,arguments)};var ot=!1;function V(){if(!ot){if(Qt.throwDeprecation)throw new Error(et);Qt.traceDeprecation?console.trace(et):console.error(et),ot=!0}return Q.apply(this,arguments)}return V};var i={},s=/^$/;if(t.NODE_DEBUG){var a=t.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}n.debuglog=function(Q){if(Q=Q.toUpperCase(),!i[Q])if(s.test(Q)){var et=Qt.pid;i[Q]=function(){var ot=n.format.apply(n,arguments);console.error("%s %d: %s",Q,et,ot)}}else i[Q]=function(){};return i[Q]};function l(Q,et){var ot={seen:[],stylize:h};return arguments.length>=3&&(ot.depth=arguments[2]),arguments.length>=4&&(ot.colors=arguments[3]),S(et)?ot.showHidden=et:et&&n._extend(ot,et),N(ot.showHidden)&&(ot.showHidden=!1),N(ot.depth)&&(ot.depth=2),N(ot.colors)&&(ot.colors=!1),N(ot.customInspect)&&(ot.customInspect=!0),ot.colors&&(ot.stylize=c),g(ot,Q,ot.depth)}n.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(Q,et){var ot=l.styles[et];return ot?"\x1B["+l.colors[ot][0]+"m"+Q+"\x1B["+l.colors[ot][1]+"m":Q}function h(Q,et){return Q}function f(Q){var et={};return Q.forEach(function(ot,V){et[ot]=!0}),et}function g(Q,et,ot){if(Q.customInspect&&et&&xt(et.inspect)&&et.inspect!==n.inspect&&!(et.constructor&&et.constructor.prototype===et)){var V=et.inspect(ot,Q);return C(V)||(V=g(Q,V,ot)),V}var X=d(Q,et);if(X)return X;var lt=Object.keys(et),mt=f(lt);if(Q.showHidden&&(lt=Object.getOwnPropertyNames(et)),U(et)&&(lt.indexOf("message")>=0||lt.indexOf("description")>=0))return m(et);if(lt.length===0){if(xt(et)){var yt=et.name?": "+et.name:"";return Q.stylize("[Function"+yt+"]","special")}if(Y(et))return Q.stylize(RegExp.prototype.toString.call(et),"regexp");if(G(et))return Q.stylize(Date.prototype.toString.call(et),"date");if(U(et))return m(et)}var D="",j=!1,ut=["{","}"];if(b(et)&&(j=!0,ut=["[","]"]),xt(et)){var St=et.name?": "+et.name:"";D=" [Function"+St+"]"}if(Y(et)&&(D=" "+RegExp.prototype.toString.call(et)),G(et)&&(D=" "+Date.prototype.toUTCString.call(et)),U(et)&&(D=" "+m(et)),lt.length===0&&(!j||et.length==0))return ut[0]+D+ut[1];if(ot<0)return Y(et)?Q.stylize(RegExp.prototype.toString.call(et),"regexp"):Q.stylize("[Object]","special");Q.seen.push(et);var Ft;return j?Ft=p(Q,et,ot,mt,lt):Ft=lt.map(function(Rt){return v(Q,et,ot,mt,Rt,j)}),Q.seen.pop(),_(Ft,D,ut)}function d(Q,et){if(N(et))return Q.stylize("undefined","undefined");if(C(et)){var ot="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(ot,"string")}if(k(et))return Q.stylize(""+et,"number");if(S(et))return Q.stylize(""+et,"boolean");if(O(et))return Q.stylize("null","null")}function m(Q){return"["+Error.prototype.toString.call(Q)+"]"}function p(Q,et,ot,V,X){for(var lt=[],mt=0,yt=et.length;mt<yt;++mt)Et(et,String(mt))?lt.push(v(Q,et,ot,V,String(mt),!0)):lt.push("");return X.forEach(function(D){D.match(/^\d+$/)||lt.push(v(Q,et,ot,V,D,!0))}),lt}function v(Q,et,ot,V,X,lt){var mt,yt,D;if(D=Object.getOwnPropertyDescriptor(et,X)||{value:et[X]},D.get?D.set?yt=Q.stylize("[Getter/Setter]","special"):yt=Q.stylize("[Getter]","special"):D.set&&(yt=Q.stylize("[Setter]","special")),Et(V,X)||(mt="["+X+"]"),yt||(Q.seen.indexOf(D.value)<0?(O(ot)?yt=g(Q,D.value,null):yt=g(Q,D.value,ot-1),yt.indexOf(`
|
|
134
150
|
`)>-1&&(lt?yt=yt.split(`
|
|
135
151
|
`).map(function(j){return" "+j}).join(`
|
|
136
152
|
`).slice(2):yt=`
|
|
137
153
|
`+yt.split(`
|
|
138
154
|
`).map(function(j){return" "+j}).join(`
|
|
139
|
-
`))):yt=Q.stylize("[Circular]","special")),N(mt)){if(lt&&X.match(/^\d+$/))return yt;mt=JSON.stringify(""+X),mt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(mt=mt.slice(1,-1),mt=Q.stylize(mt,"name")):(mt=mt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),mt=Q.stylize(mt,"string"))}return mt+": "+yt}function
|
|
155
|
+
`))):yt=Q.stylize("[Circular]","special")),N(mt)){if(lt&&X.match(/^\d+$/))return yt;mt=JSON.stringify(""+X),mt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(mt=mt.slice(1,-1),mt=Q.stylize(mt,"name")):(mt=mt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),mt=Q.stylize(mt,"string"))}return mt+": "+yt}function _(Q,et,ot){var V=Q.reduce(function(X,lt){return lt.indexOf(`
|
|
140
156
|
`)>=0,X+lt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?ot[0]+(et===""?"":et+`
|
|
141
157
|
`)+" "+Q.join(`,
|
|
142
|
-
`)+" "+ot[1]:ot[0]+et+" "+Q.join(", ")+" "+ot[1]}n.types=
|
|
158
|
+
`)+" "+ot[1]:ot[0]+et+" "+Q.join(", ")+" "+ot[1]}n.types=eR();function b(Q){return Array.isArray(Q)}n.isArray=b;function S(Q){return typeof Q=="boolean"}n.isBoolean=S;function O(Q){return Q===null}n.isNull=O;function w(Q){return Q==null}n.isNullOrUndefined=w;function k(Q){return typeof Q=="number"}n.isNumber=k;function C(Q){return typeof Q=="string"}n.isString=C;function L(Q){return typeof Q=="symbol"}n.isSymbol=L;function N(Q){return Q===void 0}n.isUndefined=N;function Y(Q){return z(Q)&&st(Q)==="[object RegExp]"}n.isRegExp=Y,n.types.isRegExp=Y;function z(Q){return typeof Q=="object"&&Q!==null}n.isObject=z;function G(Q){return z(Q)&&st(Q)==="[object Date]"}n.isDate=G,n.types.isDate=G;function U(Q){return z(Q)&&(st(Q)==="[object Error]"||Q instanceof Error)}n.isError=U,n.types.isNativeError=U;function xt(Q){return typeof Q=="function"}n.isFunction=xt;function dt(Q){return Q===null||typeof Q=="boolean"||typeof Q=="number"||typeof Q=="string"||typeof Q=="symbol"||typeof Q>"u"}n.isPrimitive=dt,n.isBuffer=nR();function st(Q){return Object.prototype.toString.call(Q)}function at(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}var _t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function bt(){var Q=new Date,et=[at(Q.getHours()),at(Q.getMinutes()),at(Q.getSeconds())].join(":");return[Q.getDate(),_t[Q.getMonth()],et].join(" ")}n.log=function(){console.log("%s - %s",bt(),n.format.apply(n,arguments))},n.inherits=Si(),n._extend=function(Q,et){if(!et||!z(et))return Q;for(var ot=Object.keys(et),V=ot.length;V--;)Q[ot[V]]=et[ot[V]];return Q};function Et(Q,et){return Object.prototype.hasOwnProperty.call(Q,et)}var kt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(et){if(typeof et!="function")throw new TypeError('The "original" argument must be of type Function');if(kt&&et[kt]){var ot=et[kt];if(typeof ot!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ot,kt,{value:ot,enumerable:!1,writable:!1,configurable:!0}),ot}function ot(){for(var V,X,lt=new Promise(function(D,j){V=D,X=j}),mt=[],yt=0;yt<arguments.length;yt++)mt.push(arguments[yt]);mt.push(function(D,j){D?X(D):V(j)});try{et.apply(this,mt)}catch(D){X(D)}return lt}return Object.setPrototypeOf(ot,Object.getPrototypeOf(et)),kt&&Object.defineProperty(ot,kt,{value:ot,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ot,e(et))},n.promisify.custom=kt;function Ct(Q,et){if(!Q){var ot=new Error("Promise was rejected with a falsy value");ot.reason=Q,Q=ot}return et(Q)}function Lt(Q){if(typeof Q!="function")throw new TypeError('The "original" argument must be of type Function');function et(){for(var ot=[],V=0;V<arguments.length;V++)ot.push(arguments[V]);var X=ot.pop();if(typeof X!="function")throw new TypeError("The last argument must be of type Function");var lt=this,mt=function(){return X.apply(lt,arguments)};Q.apply(this,ot).then(function(yt){Qt.nextTick(mt.bind(null,null,yt))},function(yt){Qt.nextTick(Ct.bind(null,yt,mt))})}return Object.setPrototypeOf(et,Object.getPrototypeOf(Q)),Object.defineProperties(et,e(Q)),et}n.callbackify=Lt}(uc)),uc}var cf,My;function Ph(){if(My)return cf;My=1;var n=[].slice;return cf=function(t,e){if(typeof e=="string"&&(e=t[e]),typeof e!="function")throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}},cf}var ff,Ry;function ab(){return Ry||(Ry=1,ff=rs().EventEmitter),ff}var hf={},Oy;function Tl(){return Oy||(Oy=1,function(n){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},e={};e.byteLength=f,e.toByteArray=d,e.fromByteArray=v;for(var r=[],i=[],s=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=a.length;l<c;++l)r[l]=a[l],i[a.charCodeAt(l)]=l;i[45]=62,i[95]=63;function h(S){var O=S.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=S.indexOf("=");w===-1&&(w=O);var k=w===O?0:4-w%4;return[w,k]}function f(S){var O=h(S),w=O[0],k=O[1];return(w+k)*3/4-k}function g(S,O,w){return(O+w)*3/4-w}function d(S){var O,w=h(S),k=w[0],C=w[1],L=new s(g(S,k,C)),N=0,Y=C>0?k-4:k,z;for(z=0;z<Y;z+=4)O=i[S.charCodeAt(z)]<<18|i[S.charCodeAt(z+1)]<<12|i[S.charCodeAt(z+2)]<<6|i[S.charCodeAt(z+3)],L[N++]=O>>16&255,L[N++]=O>>8&255,L[N++]=O&255;return C===2&&(O=i[S.charCodeAt(z)]<<2|i[S.charCodeAt(z+1)]>>4,L[N++]=O&255),C===1&&(O=i[S.charCodeAt(z)]<<10|i[S.charCodeAt(z+1)]<<4|i[S.charCodeAt(z+2)]>>2,L[N++]=O>>8&255,L[N++]=O&255),L}function m(S){return r[S>>18&63]+r[S>>12&63]+r[S>>6&63]+r[S&63]}function p(S,O,w){for(var k,C=[],L=O;L<w;L+=3)k=(S[L]<<16&16711680)+(S[L+1]<<8&65280)+(S[L+2]&255),C.push(m(k));return C.join("")}function v(S){for(var O,w=S.length,k=w%3,C=[],L=16383,N=0,Y=w-k;N<Y;N+=L)C.push(p(S,N,N+L>Y?Y:N+L));return k===1?(O=S[w-1],C.push(r[O>>2]+r[O<<4&63]+"==")):k===2&&(O=(S[w-2]<<8)+S[w-1],C.push(r[O>>10]+r[O>>4&63]+r[O<<2&63]+"=")),C.join("")}var _={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */_.read=function(S,O,w,k,C){var L,N,Y=C*8-k-1,z=(1<<Y)-1,G=z>>1,U=-7,xt=w?C-1:0,dt=w?-1:1,st=S[O+xt];for(xt+=dt,L=st&(1<<-U)-1,st>>=-U,U+=Y;U>0;L=L*256+S[O+xt],xt+=dt,U-=8);for(N=L&(1<<-U)-1,L>>=-U,U+=k;U>0;N=N*256+S[O+xt],xt+=dt,U-=8);if(L===0)L=1-G;else{if(L===z)return N?NaN:(st?-1:1)*(1/0);N=N+Math.pow(2,k),L=L-G}return(st?-1:1)*N*Math.pow(2,L-k)},_.write=function(S,O,w,k,C,L){var N,Y,z,G=L*8-C-1,U=(1<<G)-1,xt=U>>1,dt=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,st=k?0:L-1,at=k?1:-1,_t=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(Y=isNaN(O)?1:0,N=U):(N=Math.floor(Math.log(O)/Math.LN2),O*(z=Math.pow(2,-N))<1&&(N--,z*=2),N+xt>=1?O+=dt/z:O+=dt*Math.pow(2,1-xt),O*z>=2&&(N++,z/=2),N+xt>=U?(Y=0,N=U):N+xt>=1?(Y=(O*z-1)*Math.pow(2,C),N=N+xt):(Y=O*Math.pow(2,xt-1)*Math.pow(2,C),N=0));C>=8;S[w+st]=Y&255,st+=at,Y/=256,C-=8);for(N=N<<C|Y,G+=C;G>0;S[w+st]=N&255,st+=at,N/=256,G-=8);S[w+st-at]|=_t*128};/*!
|
|
143
159
|
* The buffer module from node.js, for the browser.
|
|
144
160
|
*
|
|
145
161
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
146
162
|
* @license MIT
|
|
147
|
-
*/(function(A){const C=e,w=b,M=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;A.Buffer=U,A.SlowBuffer=Q,A.INSPECT_MAX_BYTES=50;const O=2147483647;A.kMaxLength=O;const{Uint8Array:L,ArrayBuffer:N,SharedArrayBuffer:Y}=globalThis;U.TYPED_ARRAY_SUPPORT=z(),!U.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 z(){try{const B=new L(1),E={foo:function(){return 42}};return Object.setPrototypeOf(E,L.prototype),Object.setPrototypeOf(B,E),B.foo()===42}catch{return!1}}Object.defineProperty(U.prototype,"parent",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.buffer}}),Object.defineProperty(U.prototype,"offset",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.byteOffset}});function G(B){if(B>O)throw new RangeError('The value "'+B+'" is invalid for option "size"');const E=new L(B);return Object.setPrototypeOf(E,U.prototype),E}function U(B,E,R){if(typeof B=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return at(B)}return xt(B,E,R)}U.poolSize=8192;function xt(B,E,R){if(typeof B=="string")return _t(B,E);if(N.isView(B))return Et(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(Mn(B,N)||B&&Mn(B.buffer,N)||typeof Y<"u"&&(Mn(B,Y)||B&&Mn(B.buffer,Y)))return kt(B,E,R);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const W=B.valueOf&&B.valueOf();if(W!=null&&W!==B)return U.from(W,E,R);const J=Ot(B);if(J)return J;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return U.from(B[Symbol.toPrimitive]("string"),E,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}U.from=function(B,E,R){return xt(B,E,R)},Object.setPrototypeOf(U.prototype,L.prototype),Object.setPrototypeOf(U,L);function dt(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function st(B,E,R){return dt(B),B<=0?G(B):E!==void 0?typeof R=="string"?G(B).fill(E,R):G(B).fill(E):G(B)}U.alloc=function(B,E,R){return st(B,E,R)};function at(B){return dt(B),G(B<0?0:Lt(B)|0)}U.allocUnsafe=function(B){return at(B)},U.allocUnsafeSlow=function(B){return at(B)};function _t(B,E){if((typeof E!="string"||E==="")&&(E="utf8"),!U.isEncoding(E))throw new TypeError("Unknown encoding: "+E);const R=et(B,E)|0;let W=G(R);const J=W.write(B,E);return J!==R&&(W=W.slice(0,J)),W}function bt(B){const E=B.length<0?0:Lt(B.length)|0,R=G(E);for(let W=0;W<E;W+=1)R[W]=B[W]&255;return R}function Et(B){if(Mn(B,L)){const E=new L(B);return kt(E.buffer,E.byteOffset,E.byteLength)}return bt(B)}function kt(B,E,R){if(E<0||B.byteLength<E)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<E+(R||0))throw new RangeError('"length" is outside of buffer bounds');let W;return E===void 0&&R===void 0?W=new L(B):R===void 0?W=new L(B,E):W=new L(B,E,R),Object.setPrototypeOf(W,U.prototype),W}function Ot(B){if(U.isBuffer(B)){const E=Lt(B.length)|0,R=G(E);return R.length===0||B.copy(R,0,0,E),R}if(B.length!==void 0)return typeof B.length!="number"||os(B.length)?G(0):bt(B);if(B.type==="Buffer"&&Array.isArray(B.data))return bt(B.data)}function Lt(B){if(B>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return B|0}function Q(B){return+B!=B&&(B=0),U.alloc(+B)}U.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==U.prototype},U.compare=function(E,R){if(Mn(E,L)&&(E=U.from(E,E.offset,E.byteLength)),Mn(R,L)&&(R=U.from(R,R.offset,R.byteLength)),!U.isBuffer(E)||!U.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===R)return 0;let W=E.length,J=R.length;for(let rt=0,pt=Math.min(W,J);rt<pt;++rt)if(E[rt]!==R[rt]){W=E[rt],J=R[rt];break}return W<J?-1:J<W?1:0},U.isEncoding=function(E){switch(String(E).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}},U.concat=function(E,R){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return U.alloc(0);let W;if(R===void 0)for(R=0,W=0;W<E.length;++W)R+=E[W].length;const J=U.allocUnsafe(R);let rt=0;for(W=0;W<E.length;++W){let pt=E[W];if(Mn(pt,L))rt+pt.length>J.length?(U.isBuffer(pt)||(pt=U.from(pt)),pt.copy(J,rt)):L.prototype.set.call(J,pt,rt);else if(U.isBuffer(pt))pt.copy(J,rt);else throw new TypeError('"list" argument must be an Array of Buffers');rt+=pt.length}return J};function et(B,E){if(U.isBuffer(B))return B.length;if(N.isView(B)||Mn(B,N))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const R=B.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&R===0)return 0;let J=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return ce(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R*2;case"hex":return R>>>1;case"base64":return ne(B).length;default:if(J)return W?-1:ce(B).length;E=(""+E).toLowerCase(),J=!0}}U.byteLength=et;function ot(B,E,R){let W=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0,E>>>=0,R<=E))return"";for(B||(B="utf8");;)switch(B){case"hex":return Ce(this,E,R);case"utf8":case"utf-8":return Ft(this,E,R);case"ascii":return je(this,E,R);case"latin1":case"binary":return ft(this,E,R);case"base64":return St(this,E,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,E,R);default:if(W)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),W=!0}}U.prototype._isBuffer=!0;function V(B,E,R){const W=B[E];B[E]=B[R],B[R]=W}U.prototype.swap16=function(){const E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;R<E;R+=2)V(this,R,R+1);return this},U.prototype.swap32=function(){const E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let R=0;R<E;R+=4)V(this,R,R+3),V(this,R+1,R+2);return this},U.prototype.swap64=function(){const E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let R=0;R<E;R+=8)V(this,R,R+7),V(this,R+1,R+6),V(this,R+2,R+5),V(this,R+3,R+4);return this},U.prototype.toString=function(){const E=this.length;return E===0?"":arguments.length===0?Ft(this,0,E):ot.apply(this,arguments)},U.prototype.toLocaleString=U.prototype.toString,U.prototype.equals=function(E){if(!U.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:U.compare(this,E)===0},U.prototype.inspect=function(){let E="";const R=A.INSPECT_MAX_BYTES;return E=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(E+=" ... "),"<Buffer "+E+">"},M&&(U.prototype[M]=U.prototype.inspect),U.prototype.compare=function(E,R,W,J,rt){if(Mn(E,L)&&(E=U.from(E,E.offset,E.byteLength)),!U.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(R===void 0&&(R=0),W===void 0&&(W=E?E.length:0),J===void 0&&(J=0),rt===void 0&&(rt=this.length),R<0||W>E.length||J<0||rt>this.length)throw new RangeError("out of range index");if(J>=rt&&R>=W)return 0;if(J>=rt)return-1;if(R>=W)return 1;if(R>>>=0,W>>>=0,J>>>=0,rt>>>=0,this===E)return 0;let pt=rt-J,Vt=W-R;const we=Math.min(pt,Vt),pe=this.slice(J,rt),xe=E.slice(R,W);for(let oe=0;oe<we;++oe)if(pe[oe]!==xe[oe]){pt=pe[oe],Vt=xe[oe];break}return pt<Vt?-1:Vt<pt?1:0};function X(B,E,R,W,J){if(B.length===0)return-1;if(typeof R=="string"?(W=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,os(R)&&(R=J?0:B.length-1),R<0&&(R=B.length+R),R>=B.length){if(J)return-1;R=B.length-1}else if(R<0)if(J)R=0;else return-1;if(typeof E=="string"&&(E=U.from(E,W)),U.isBuffer(E))return E.length===0?-1:lt(B,E,R,W,J);if(typeof E=="number")return E=E&255,typeof L.prototype.indexOf=="function"?J?L.prototype.indexOf.call(B,E,R):L.prototype.lastIndexOf.call(B,E,R):lt(B,[E],R,W,J);throw new TypeError("val must be string, number or Buffer")}function lt(B,E,R,W,J){let rt=1,pt=B.length,Vt=E.length;if(W!==void 0&&(W=String(W).toLowerCase(),W==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(B.length<2||E.length<2)return-1;rt=2,pt/=2,Vt/=2,R/=2}function we(xe,oe){return rt===1?xe[oe]:xe.readUInt16BE(oe*rt)}let pe;if(J){let xe=-1;for(pe=R;pe<pt;pe++)if(we(B,pe)===we(E,xe===-1?0:pe-xe)){if(xe===-1&&(xe=pe),pe-xe+1===Vt)return xe*rt}else xe!==-1&&(pe-=pe-xe),xe=-1}else for(R+Vt>pt&&(R=pt-Vt),pe=R;pe>=0;pe--){let xe=!0;for(let oe=0;oe<Vt;oe++)if(we(B,pe+oe)!==we(E,oe)){xe=!1;break}if(xe)return pe}return-1}U.prototype.includes=function(E,R,W){return this.indexOf(E,R,W)!==-1},U.prototype.indexOf=function(E,R,W){return X(this,E,R,W,!0)},U.prototype.lastIndexOf=function(E,R,W){return X(this,E,R,W,!1)};function mt(B,E,R,W){R=Number(R)||0;const J=B.length-R;W?(W=Number(W),W>J&&(W=J)):W=J;const rt=E.length;W>rt/2&&(W=rt/2);let pt;for(pt=0;pt<W;++pt){const Vt=parseInt(E.substr(pt*2,2),16);if(os(Vt))return pt;B[R+pt]=Vt}return pt}function yt(B,E,R,W){return Jr(ce(E,B.length-R),B,R,W)}function D(B,E,R,W){return Jr(fe(E),B,R,W)}function j(B,E,R,W){return Jr(ne(E),B,R,W)}function ut(B,E,R,W){return Jr(de(E,B.length-R),B,R,W)}U.prototype.write=function(E,R,W,J){if(R===void 0)J="utf8",W=this.length,R=0;else if(W===void 0&&typeof R=="string")J=R,W=this.length,R=0;else if(isFinite(R))R=R>>>0,isFinite(W)?(W=W>>>0,J===void 0&&(J="utf8")):(J=W,W=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const rt=this.length-R;if((W===void 0||W>rt)&&(W=rt),E.length>0&&(W<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");let pt=!1;for(;;)switch(J){case"hex":return mt(this,E,R,W);case"utf8":case"utf-8":return yt(this,E,R,W);case"ascii":case"latin1":case"binary":return D(this,E,R,W);case"base64":return j(this,E,R,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,E,R,W);default:if(pt)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),pt=!0}},U.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function St(B,E,R){return E===0&&R===B.length?C.fromByteArray(B):C.fromByteArray(B.slice(E,R))}function Ft(B,E,R){R=Math.min(B.length,R);const W=[];let J=E;for(;J<R;){const rt=B[J];let pt=null,Vt=rt>239?4:rt>223?3:rt>191?2:1;if(J+Vt<=R){let we,pe,xe,oe;switch(Vt){case 1:rt<128&&(pt=rt);break;case 2:we=B[J+1],(we&192)===128&&(oe=(rt&31)<<6|we&63,oe>127&&(pt=oe));break;case 3:we=B[J+1],pe=B[J+2],(we&192)===128&&(pe&192)===128&&(oe=(rt&15)<<12|(we&63)<<6|pe&63,oe>2047&&(oe<55296||oe>57343)&&(pt=oe));break;case 4:we=B[J+1],pe=B[J+2],xe=B[J+3],(we&192)===128&&(pe&192)===128&&(xe&192)===128&&(oe=(rt&15)<<18|(we&63)<<12|(pe&63)<<6|xe&63,oe>65535&&oe<1114112&&(pt=oe))}}pt===null?(pt=65533,Vt=1):pt>65535&&(pt-=65536,W.push(pt>>>10&1023|55296),pt=56320|pt&1023),W.push(pt),J+=Vt}return Tt(W)}const Mt=4096;function Tt(B){const E=B.length;if(E<=Mt)return String.fromCharCode.apply(String,B);let R="",W=0;for(;W<E;)R+=String.fromCharCode.apply(String,B.slice(W,W+=Mt));return R}function je(B,E,R){let W="";R=Math.min(B.length,R);for(let J=E;J<R;++J)W+=String.fromCharCode(B[J]&127);return W}function ft(B,E,R){let W="";R=Math.min(B.length,R);for(let J=E;J<R;++J)W+=String.fromCharCode(B[J]);return W}function Ce(B,E,R){const W=B.length;(!E||E<0)&&(E=0),(!R||R<0||R>W)&&(R=W);let J="";for(let rt=E;rt<R;++rt)J+=jl[B[rt]];return J}function ue(B,E,R){const W=B.slice(E,R);let J="";for(let rt=0;rt<W.length-1;rt+=2)J+=String.fromCharCode(W[rt]+W[rt+1]*256);return J}U.prototype.slice=function(E,R){const W=this.length;E=~~E,R=R===void 0?W:~~R,E<0?(E+=W,E<0&&(E=0)):E>W&&(E=W),R<0?(R+=W,R<0&&(R=0)):R>W&&(R=W),R<E&&(R=E);const J=this.subarray(E,R);return Object.setPrototypeOf(J,U.prototype),J};function te(B,E,R){if(B%1!==0||B<0)throw new RangeError("offset is not uint");if(B+E>R)throw new RangeError("Trying to access beyond buffer length")}U.prototype.readUintLE=U.prototype.readUIntLE=function(E,R,W){E=E>>>0,R=R>>>0,W||te(E,R,this.length);let J=this[E],rt=1,pt=0;for(;++pt<R&&(rt*=256);)J+=this[E+pt]*rt;return J},U.prototype.readUintBE=U.prototype.readUIntBE=function(E,R,W){E=E>>>0,R=R>>>0,W||te(E,R,this.length);let J=this[E+--R],rt=1;for(;R>0&&(rt*=256);)J+=this[E+--R]*rt;return J},U.prototype.readUint8=U.prototype.readUInt8=function(E,R){return E=E>>>0,R||te(E,1,this.length),this[E]},U.prototype.readUint16LE=U.prototype.readUInt16LE=function(E,R){return E=E>>>0,R||te(E,2,this.length),this[E]|this[E+1]<<8},U.prototype.readUint16BE=U.prototype.readUInt16BE=function(E,R){return E=E>>>0,R||te(E,2,this.length),this[E]<<8|this[E+1]},U.prototype.readUint32LE=U.prototype.readUInt32LE=function(E,R){return E=E>>>0,R||te(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},U.prototype.readUint32BE=U.prototype.readUInt32BE=function(E,R){return E=E>>>0,R||te(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},U.prototype.readBigUInt64LE=Kn(function(E){E=E>>>0,K(E,"offset");const R=this[E],W=this[E+7];(R===void 0||W===void 0)&&nt(E,this.length-8);const J=R+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,rt=this[++E]+this[++E]*2**8+this[++E]*2**16+W*2**24;return BigInt(J)+(BigInt(rt)<<BigInt(32))}),U.prototype.readBigUInt64BE=Kn(function(E){E=E>>>0,K(E,"offset");const R=this[E],W=this[E+7];(R===void 0||W===void 0)&&nt(E,this.length-8);const J=R*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],rt=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+W;return(BigInt(J)<<BigInt(32))+BigInt(rt)}),U.prototype.readIntLE=function(E,R,W){E=E>>>0,R=R>>>0,W||te(E,R,this.length);let J=this[E],rt=1,pt=0;for(;++pt<R&&(rt*=256);)J+=this[E+pt]*rt;return rt*=128,J>=rt&&(J-=Math.pow(2,8*R)),J},U.prototype.readIntBE=function(E,R,W){E=E>>>0,R=R>>>0,W||te(E,R,this.length);let J=R,rt=1,pt=this[E+--J];for(;J>0&&(rt*=256);)pt+=this[E+--J]*rt;return rt*=128,pt>=rt&&(pt-=Math.pow(2,8*R)),pt},U.prototype.readInt8=function(E,R){return E=E>>>0,R||te(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},U.prototype.readInt16LE=function(E,R){E=E>>>0,R||te(E,2,this.length);const W=this[E]|this[E+1]<<8;return W&32768?W|4294901760:W},U.prototype.readInt16BE=function(E,R){E=E>>>0,R||te(E,2,this.length);const W=this[E+1]|this[E]<<8;return W&32768?W|4294901760:W},U.prototype.readInt32LE=function(E,R){return E=E>>>0,R||te(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},U.prototype.readInt32BE=function(E,R){return E=E>>>0,R||te(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},U.prototype.readBigInt64LE=Kn(function(E){E=E>>>0,K(E,"offset");const R=this[E],W=this[E+7];(R===void 0||W===void 0)&&nt(E,this.length-8);const J=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(W<<24);return(BigInt(J)<<BigInt(32))+BigInt(R+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),U.prototype.readBigInt64BE=Kn(function(E){E=E>>>0,K(E,"offset");const R=this[E],W=this[E+7];(R===void 0||W===void 0)&&nt(E,this.length-8);const J=(R<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(J)<<BigInt(32))+BigInt(this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+W)}),U.prototype.readFloatLE=function(E,R){return E=E>>>0,R||te(E,4,this.length),w.read(this,E,!0,23,4)},U.prototype.readFloatBE=function(E,R){return E=E>>>0,R||te(E,4,this.length),w.read(this,E,!1,23,4)},U.prototype.readDoubleLE=function(E,R){return E=E>>>0,R||te(E,8,this.length),w.read(this,E,!0,52,8)},U.prototype.readDoubleBE=function(E,R){return E=E>>>0,R||te(E,8,this.length),w.read(this,E,!1,52,8)};function re(B,E,R,W,J,rt){if(!U.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>J||E<rt)throw new RangeError('"value" argument is out of bounds');if(R+W>B.length)throw new RangeError("Index out of range")}U.prototype.writeUintLE=U.prototype.writeUIntLE=function(E,R,W,J){if(E=+E,R=R>>>0,W=W>>>0,!J){const Vt=Math.pow(2,8*W)-1;re(this,E,R,W,Vt,0)}let rt=1,pt=0;for(this[R]=E&255;++pt<W&&(rt*=256);)this[R+pt]=E/rt&255;return R+W},U.prototype.writeUintBE=U.prototype.writeUIntBE=function(E,R,W,J){if(E=+E,R=R>>>0,W=W>>>0,!J){const Vt=Math.pow(2,8*W)-1;re(this,E,R,W,Vt,0)}let rt=W-1,pt=1;for(this[R+rt]=E&255;--rt>=0&&(pt*=256);)this[R+rt]=E/pt&255;return R+W},U.prototype.writeUint8=U.prototype.writeUInt8=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,1,255,0),this[R]=E&255,R+1},U.prototype.writeUint16LE=U.prototype.writeUInt16LE=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,2,65535,0),this[R]=E&255,this[R+1]=E>>>8,R+2},U.prototype.writeUint16BE=U.prototype.writeUInt16BE=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,2,65535,0),this[R]=E>>>8,this[R+1]=E&255,R+2},U.prototype.writeUint32LE=U.prototype.writeUInt32LE=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,4,4294967295,0),this[R+3]=E>>>24,this[R+2]=E>>>16,this[R+1]=E>>>8,this[R]=E&255,R+4},U.prototype.writeUint32BE=U.prototype.writeUInt32BE=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,4,4294967295,0),this[R]=E>>>24,this[R+1]=E>>>16,this[R+2]=E>>>8,this[R+3]=E&255,R+4};function Ve(B,E,R,W,J){q(E,W,J,B,R,7);let rt=Number(E&BigInt(4294967295));B[R++]=rt,rt=rt>>8,B[R++]=rt,rt=rt>>8,B[R++]=rt,rt=rt>>8,B[R++]=rt;let pt=Number(E>>BigInt(32)&BigInt(4294967295));return B[R++]=pt,pt=pt>>8,B[R++]=pt,pt=pt>>8,B[R++]=pt,pt=pt>>8,B[R++]=pt,R}function ke(B,E,R,W,J){q(E,W,J,B,R,7);let rt=Number(E&BigInt(4294967295));B[R+7]=rt,rt=rt>>8,B[R+6]=rt,rt=rt>>8,B[R+5]=rt,rt=rt>>8,B[R+4]=rt;let pt=Number(E>>BigInt(32)&BigInt(4294967295));return B[R+3]=pt,pt=pt>>8,B[R+2]=pt,pt=pt>>8,B[R+1]=pt,pt=pt>>8,B[R]=pt,R+8}U.prototype.writeBigUInt64LE=Kn(function(E,R=0){return Ve(this,E,R,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeBigUInt64BE=Kn(function(E,R=0){return ke(this,E,R,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeIntLE=function(E,R,W,J){if(E=+E,R=R>>>0,!J){const we=Math.pow(2,8*W-1);re(this,E,R,W,we-1,-we)}let rt=0,pt=1,Vt=0;for(this[R]=E&255;++rt<W&&(pt*=256);)E<0&&Vt===0&&this[R+rt-1]!==0&&(Vt=1),this[R+rt]=(E/pt>>0)-Vt&255;return R+W},U.prototype.writeIntBE=function(E,R,W,J){if(E=+E,R=R>>>0,!J){const we=Math.pow(2,8*W-1);re(this,E,R,W,we-1,-we)}let rt=W-1,pt=1,Vt=0;for(this[R+rt]=E&255;--rt>=0&&(pt*=256);)E<0&&Vt===0&&this[R+rt+1]!==0&&(Vt=1),this[R+rt]=(E/pt>>0)-Vt&255;return R+W},U.prototype.writeInt8=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,1,127,-128),E<0&&(E=255+E+1),this[R]=E&255,R+1},U.prototype.writeInt16LE=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,2,32767,-32768),this[R]=E&255,this[R+1]=E>>>8,R+2},U.prototype.writeInt16BE=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,2,32767,-32768),this[R]=E>>>8,this[R+1]=E&255,R+2},U.prototype.writeInt32LE=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,4,2147483647,-2147483648),this[R]=E&255,this[R+1]=E>>>8,this[R+2]=E>>>16,this[R+3]=E>>>24,R+4},U.prototype.writeInt32BE=function(E,R,W){return E=+E,R=R>>>0,W||re(this,E,R,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[R]=E>>>24,this[R+1]=E>>>16,this[R+2]=E>>>8,this[R+3]=E&255,R+4},U.prototype.writeBigInt64LE=Kn(function(E,R=0){return Ve(this,E,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),U.prototype.writeBigInt64BE=Kn(function(E,R=0){return ke(this,E,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function on(B,E,R,W,J,rt){if(R+W>B.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function Ye(B,E,R,W,J){return E=+E,R=R>>>0,J||on(B,E,R,4),w.write(B,E,R,W,23,4),R+4}U.prototype.writeFloatLE=function(E,R,W){return Ye(this,E,R,!0,W)},U.prototype.writeFloatBE=function(E,R,W){return Ye(this,E,R,!1,W)};function ye(B,E,R,W,J){return E=+E,R=R>>>0,J||on(B,E,R,8),w.write(B,E,R,W,52,8),R+8}U.prototype.writeDoubleLE=function(E,R,W){return ye(this,E,R,!0,W)},U.prototype.writeDoubleBE=function(E,R,W){return ye(this,E,R,!1,W)},U.prototype.copy=function(E,R,W,J){if(!U.isBuffer(E))throw new TypeError("argument should be a Buffer");if(W||(W=0),!J&&J!==0&&(J=this.length),R>=E.length&&(R=E.length),R||(R=0),J>0&&J<W&&(J=W),J===W||E.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),E.length-R<J-W&&(J=E.length-R+W);const rt=J-W;return this===E&&typeof L.prototype.copyWithin=="function"?this.copyWithin(R,W,J):L.prototype.set.call(E,this.subarray(W,J),R),rt},U.prototype.fill=function(E,R,W,J){if(typeof E=="string"){if(typeof R=="string"?(J=R,R=0,W=this.length):typeof W=="string"&&(J=W,W=this.length),J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!U.isEncoding(J))throw new TypeError("Unknown encoding: "+J);if(E.length===1){const pt=E.charCodeAt(0);(J==="utf8"&&pt<128||J==="latin1")&&(E=pt)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));if(R<0||this.length<R||this.length<W)throw new RangeError("Out of range index");if(W<=R)return this;R=R>>>0,W=W===void 0?this.length:W>>>0,E||(E=0);let rt;if(typeof E=="number")for(rt=R;rt<W;++rt)this[rt]=E;else{const pt=U.isBuffer(E)?E:U.from(E,J),Vt=pt.length;if(Vt===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(rt=0;rt<W-R;++rt)this[rt+R]=pt[rt%Vt]}return this};const Rn={};function T(B,E,R){Rn[B]=class extends R{constructor(){super(),Object.defineProperty(this,"message",{value:E.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,this.stack,delete this.name}get code(){return B}set code(J){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:J,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}T("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(B,E){return`The "${B}" argument must be of type number. Received type ${typeof E}`},TypeError),T("ERR_OUT_OF_RANGE",function(B,E,R){let W=`The value of "${B}" is out of range.`,J=R;return Number.isInteger(R)&&Math.abs(R)>2**32?J=S(String(R)):typeof R=="bigint"&&(J=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(J=S(J)),J+="n"),W+=` It must be ${E}. Received ${J}`,W},RangeError);function S(B){let E="",R=B.length;const W=B[0]==="-"?1:0;for(;R>=W+4;R-=3)E=`_${B.slice(R-3,R)}${E}`;return`${B.slice(0,R)}${E}`}function k(B,E,R){K(E,"offset"),(B[E]===void 0||B[E+R]===void 0)&&nt(E,B.length-(R+1))}function q(B,E,R,W,J,rt){if(B>R||B<E){const pt=typeof E=="bigint"?"n":"";let Vt;throw E===0||E===BigInt(0)?Vt=`>= 0${pt} and < 2${pt} ** ${(rt+1)*8}${pt}`:Vt=`>= -(2${pt} ** ${(rt+1)*8-1}${pt}) and < 2 ** ${(rt+1)*8-1}${pt}`,new Rn.ERR_OUT_OF_RANGE("value",Vt,B)}k(W,J,rt)}function K(B,E){if(typeof B!="number")throw new Rn.ERR_INVALID_ARG_TYPE(E,"number",B)}function nt(B,E,R){throw Math.floor(B)!==B?(K(B,R),new Rn.ERR_OUT_OF_RANGE("offset","an integer",B)):E<0?new Rn.ERR_BUFFER_OUT_OF_BOUNDS:new Rn.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${E}`,B)}const ht=/[^+/0-9A-Za-z-_]/g;function Ut(B){if(B=B.split("=")[0],B=B.trim().replace(ht,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function ce(B,E){E=E||1/0;let R;const W=B.length;let J=null;const rt=[];for(let pt=0;pt<W;++pt){if(R=B.charCodeAt(pt),R>55295&&R<57344){if(!J){if(R>56319){(E-=3)>-1&&rt.push(239,191,189);continue}else if(pt+1===W){(E-=3)>-1&&rt.push(239,191,189);continue}J=R;continue}if(R<56320){(E-=3)>-1&&rt.push(239,191,189),J=R;continue}R=(J-55296<<10|R-56320)+65536}else J&&(E-=3)>-1&&rt.push(239,191,189);if(J=null,R<128){if((E-=1)<0)break;rt.push(R)}else if(R<2048){if((E-=2)<0)break;rt.push(R>>6|192,R&63|128)}else if(R<65536){if((E-=3)<0)break;rt.push(R>>12|224,R>>6&63|128,R&63|128)}else if(R<1114112){if((E-=4)<0)break;rt.push(R>>18|240,R>>12&63|128,R>>6&63|128,R&63|128)}else throw new Error("Invalid code point")}return rt}function fe(B){const E=[];for(let R=0;R<B.length;++R)E.push(B.charCodeAt(R)&255);return E}function de(B,E){let R,W,J;const rt=[];for(let pt=0;pt<B.length&&!((E-=2)<0);++pt)R=B.charCodeAt(pt),W=R>>8,J=R%256,rt.push(J),rt.push(W);return rt}function ne(B){return C.toByteArray(Ut(B))}function Jr(B,E,R,W){let J;for(J=0;J<W&&!(J+R>=E.length||J>=B.length);++J)E[J+R]=B[J];return J}function Mn(B,E){return B instanceof E||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===E.name}function os(B){return B!==B}const jl=function(){const B="0123456789abcdef",E=new Array(256);for(let R=0;R<16;++R){const W=R*16;for(let J=0;J<16;++J)E[W+J]=B[R]+B[J]}return E}();function Kn(B){return typeof BigInt>"u"?po:B}function po(){throw new Error("BigInt not supported")}})(t);const _=t.Buffer;n.Blob=t.Blob,n.BlobOptions=t.BlobOptions,n.Buffer=t.Buffer,n.File=t.File,n.FileOptions=t.FileOptions,n.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,n.SlowBuffer=t.SlowBuffer,n.TranscodeEncoding=t.TranscodeEncoding,n.atob=t.atob,n.btoa=t.btoa,n.constants=t.constants,n.default=_,n.isAscii=t.isAscii,n.isUtf8=t.isUtf8,n.kMaxLength=t.kMaxLength,n.kStringMaxLength=t.kStringMaxLength,n.resolveObjectURL=t.resolveObjectURL,n.transcode=t.transcode}(af)),af}var lf,xy;function VR(){if(xy)return lf;xy=1;function n(p,v){var b=Object.keys(p);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(p);v&&(_=_.filter(function(A){return Object.getOwnPropertyDescriptor(p,A).enumerable})),b.push.apply(b,_)}return b}function t(p){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?n(Object(b),!0).forEach(function(_){e(p,_,b[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(b)):n(Object(b)).forEach(function(_){Object.defineProperty(p,_,Object.getOwnPropertyDescriptor(b,_))})}return p}function e(p,v,b){return v=a(v),v in p?Object.defineProperty(p,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[v]=b,p}function r(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function i(p,v){for(var b=0;b<v.length;b++){var _=v[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(p,a(_.key),_)}}function s(p,v,b){return v&&i(p.prototype,v),Object.defineProperty(p,"prototype",{writable:!1}),p}function a(p){var v=l(p,"string");return typeof v=="symbol"?v:String(v)}function l(p,v){if(typeof p!="object"||p===null)return p;var b=p[Symbol.toPrimitive];if(b!==void 0){var _=b.call(p,v);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}var c=Ml(),h=c.Buffer,f=rs(),g=f.inspect,d=g&&g.custom||"inspect";function m(p,v,b){h.prototype.copy.call(p,v,b)}return lf=function(){function p(){r(this,p),this.head=null,this.tail=null,this.length=0}return s(p,[{key:"push",value:function(b){var _={data:b,next:null};this.length>0?this.tail.next=_:this.head=_,this.tail=_,++this.length}},{key:"unshift",value:function(b){var _={data:b,next:this.head};this.length===0&&(this.tail=_),this.head=_,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var _=this.head,A=""+_.data;_=_.next;)A+=b+_.data;return A}},{key:"concat",value:function(b){if(this.length===0)return h.alloc(0);for(var _=h.allocUnsafe(b>>>0),A=this.head,C=0;A;)m(A.data,_,C),C+=A.data.length,A=A.next;return _}},{key:"consume",value:function(b,_){var A;return b<this.head.data.length?(A=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?A=this.shift():A=_?this._getString(b):this._getBuffer(b),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var _=this.head,A=1,C=_.data;for(b-=C.length;_=_.next;){var w=_.data,M=b>w.length?w.length:b;if(M===w.length?C+=w:C+=w.slice(0,b),b-=M,b===0){M===w.length?(++A,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=w.slice(M));break}++A}return this.length-=A,C}},{key:"_getBuffer",value:function(b){var _=h.allocUnsafe(b),A=this.head,C=1;for(A.data.copy(_),b-=A.data.length;A=A.next;){var w=A.data,M=b>w.length?w.length:b;if(w.copy(_,_.length-b,0,M),b-=M,b===0){M===w.length?(++C,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=w.slice(M));break}++C}return this.length-=C,_}},{key:d,value:function(b,_){return g(this,t(t({},_),{},{depth:0,customInspect:!1}))}}]),p}(),lf}var uf,Sy;function Qv(){if(Sy)return uf;Sy=1;function n(a,l){var c=this,h=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return h||f?(l?l(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Qt.nextTick(i,this,a)):Qt.nextTick(i,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(g){!l&&g?c._writableState?c._writableState.errorEmitted?Qt.nextTick(e,c):(c._writableState.errorEmitted=!0,Qt.nextTick(t,c,g)):Qt.nextTick(t,c,g):l?(Qt.nextTick(e,c),l(g)):Qt.nextTick(e,c)}),this)}function t(a,l){i(a,l),e(a)}function e(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(a,l){a.emit("error",l)}function s(a,l){var c=a._readableState,h=a._writableState;c&&c.autoDestroy||h&&h.autoDestroy?a.destroy(l):a.emit("error",l)}return uf={destroy:n,undestroy:r,errorOrDestroy:s},uf}var cf={},Ey;function is(){if(Ey)return cf;Ey=1;function n(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,l.__proto__=c}var t={};function e(l,c,h){h||(h=Error);function f(d,m,p){return typeof c=="string"?c:c(d,m,p)}var g=function(d){n(m,d);function m(p,v,b){return d.call(this,f(p,v,b))||this}return m}(h);g.prototype.name=h.name,g.prototype.code=l,t[l]=g}function r(l,c){if(Array.isArray(l)){var h=l.length;return l=l.map(function(f){return String(f)}),h>2?"one of ".concat(c," ").concat(l.slice(0,h-1).join(", "),", or ")+l[h-1]:h===2?"one of ".concat(c," ").concat(l[0]," or ").concat(l[1]):"of ".concat(c," ").concat(l[0])}else return"of ".concat(c," ").concat(String(l))}function i(l,c,h){return l.substr(0,c.length)===c}function s(l,c,h){return(h===void 0||h>l.length)&&(h=l.length),l.substring(h-c.length,h)===c}function a(l,c,h){return typeof h!="number"&&(h=0),h+c.length>l.length?!1:l.indexOf(c,h)!==-1}return e("ERR_INVALID_OPT_VALUE",function(l,c){return'The value "'+c+'" is invalid for option "'+l+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(l,c,h){var f;typeof c=="string"&&i(c,"not ")?(f="must not be",c=c.replace(/^not /,"")):f="must be";var g;if(s(l," argument"))g="The ".concat(l," ").concat(f," ").concat(r(c,"type"));else{var d=a(l,".")?"property":"argument";g='The "'.concat(l,'" ').concat(d," ").concat(f," ").concat(r(c,"type"))}return g+=". Received type ".concat(typeof h),g},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(l){return"The "+l+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(l){return"Cannot call "+l+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(l){return"Unknown encoding: "+l},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),cf.codes=t,cf}var ff,Ay;function tb(){if(Ay)return ff;Ay=1;var n=is().codes.ERR_INVALID_OPT_VALUE;function t(r,i,s){return r.highWaterMark!=null?r.highWaterMark:i?r[s]:null}function e(r,i,s,a){var l=t(i,a,s);if(l!=null){if(!(isFinite(l)&&Math.floor(l)===l)||l<0){var c=a?s:"highWaterMark";throw new n(c,l)}return Math.floor(l)}return r.objectMode?16:16*1024}return ff={getHighWaterMark:e},ff}var hf,ky;function $R(){if(ky)return hf;ky=1,hf=n;function n(e,r){if(t("noDeprecation"))return e;var i=!1;function s(){if(!i){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return e.apply(this,arguments)}return s}function t(e){try{if(!He.localStorage)return!1}catch{return!1}var r=He.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}return hf}var df,Ry;function eb(){if(Ry)return df;Ry=1,df=N;function n(V){var X=this;this.next=null,this.entry=null,this.finish=function(){ot(X,V)}}var t;N.WritableState=O;var e={deprecate:$R()},r=Zv(),i=Ml().Buffer,s=(typeof He<"u"?He:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(V){return i.from(V)}function l(V){return i.isBuffer(V)||V instanceof s}var c=Qv(),h=tb(),f=h.getHighWaterMark,g=is().codes,d=g.ERR_INVALID_ARG_TYPE,m=g.ERR_METHOD_NOT_IMPLEMENTED,p=g.ERR_MULTIPLE_CALLBACK,v=g.ERR_STREAM_CANNOT_PIPE,b=g.ERR_STREAM_DESTROYED,_=g.ERR_STREAM_NULL_VALUES,A=g.ERR_STREAM_WRITE_AFTER_END,C=g.ERR_UNKNOWN_ENCODING,w=c.errorOrDestroy;wi()(N,r);function M(){}function O(V,X,lt){t=t||Xi(),V=V||{},typeof lt!="boolean"&&(lt=X instanceof t),this.objectMode=!!V.objectMode,lt&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=f(this,V,"writableHighWaterMark",lt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var mt=V.decodeStrings===!1;this.decodeStrings=!mt,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(yt){at(X,yt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}O.prototype.getBuffer=function(){for(var X=this.bufferedRequest,lt=[];X;)lt.push(X),X=X.next;return lt},function(){try{Object.defineProperty(O.prototype,"buffer",{get:e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(X){return L.call(this,X)?!0:this!==N?!1:X&&X._writableState instanceof O}})):L=function(X){return X instanceof this};function N(V){t=t||Xi();var X=this instanceof t;if(!X&&!L.call(N,this))return new N(V);this._writableState=new O(V,this,X),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),r.call(this)}N.prototype.pipe=function(){w(this,new v)};function Y(V,X){var lt=new A;w(V,lt),Qt.nextTick(X,lt)}function z(V,X,lt,mt){var yt;return lt===null?yt=new _:typeof lt!="string"&&!X.objectMode&&(yt=new d("chunk",["string","Buffer"],lt)),yt?(w(V,yt),Qt.nextTick(mt,yt),!1):!0}N.prototype.write=function(V,X,lt){var mt=this._writableState,yt=!1,D=!mt.objectMode&&l(V);return D&&!i.isBuffer(V)&&(V=a(V)),typeof X=="function"&&(lt=X,X=null),D?X="buffer":X||(X=mt.defaultEncoding),typeof lt!="function"&&(lt=M),mt.ending?Y(this,lt):(D||z(this,mt,V,lt))&&(mt.pendingcb++,yt=U(this,mt,D,V,X,lt)),yt},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&Et(this,V))},N.prototype.setDefaultEncoding=function(X){if(typeof X=="string"&&(X=X.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((X+"").toLowerCase())>-1))throw new C(X);return this._writableState.defaultEncoding=X,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(V,X,lt){return!V.objectMode&&V.decodeStrings!==!1&&typeof X=="string"&&(X=i.from(X,lt)),X}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function U(V,X,lt,mt,yt,D){if(!lt){var j=G(X,mt,yt);mt!==j&&(lt=!0,yt="buffer",mt=j)}var ut=X.objectMode?1:mt.length;X.length+=ut;var St=X.length<X.highWaterMark;if(St||(X.needDrain=!0),X.writing||X.corked){var Ft=X.lastBufferedRequest;X.lastBufferedRequest={chunk:mt,encoding:yt,isBuf:lt,callback:D,next:null},Ft?Ft.next=X.lastBufferedRequest:X.bufferedRequest=X.lastBufferedRequest,X.bufferedRequestCount+=1}else xt(V,X,!1,ut,mt,yt,D);return St}function xt(V,X,lt,mt,yt,D,j){X.writelen=mt,X.writecb=j,X.writing=!0,X.sync=!0,X.destroyed?X.onwrite(new b("write")):lt?V._writev(yt,X.onwrite):V._write(yt,D,X.onwrite),X.sync=!1}function dt(V,X,lt,mt,yt){--X.pendingcb,lt?(Qt.nextTick(yt,mt),Qt.nextTick(Q,V,X),V._writableState.errorEmitted=!0,w(V,mt)):(yt(mt),V._writableState.errorEmitted=!0,w(V,mt),Q(V,X))}function st(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function at(V,X){var lt=V._writableState,mt=lt.sync,yt=lt.writecb;if(typeof yt!="function")throw new p;if(st(lt),X)dt(V,lt,mt,X,yt);else{var D=kt(lt)||V.destroyed;!D&&!lt.corked&&!lt.bufferProcessing&<.bufferedRequest&&Et(V,lt),mt?Qt.nextTick(_t,V,lt,D,yt):_t(V,lt,D,yt)}}function _t(V,X,lt,mt){lt||bt(V,X),X.pendingcb--,mt(),Q(V,X)}function bt(V,X){X.length===0&&X.needDrain&&(X.needDrain=!1,V.emit("drain"))}function Et(V,X){X.bufferProcessing=!0;var lt=X.bufferedRequest;if(V._writev&<&<.next){var mt=X.bufferedRequestCount,yt=new Array(mt),D=X.corkedRequestsFree;D.entry=lt;for(var j=0,ut=!0;lt;)yt[j]=lt,lt.isBuf||(ut=!1),lt=lt.next,j+=1;yt.allBuffers=ut,xt(V,X,!0,X.length,yt,"",D.finish),X.pendingcb++,X.lastBufferedRequest=null,D.next?(X.corkedRequestsFree=D.next,D.next=null):X.corkedRequestsFree=new n(X),X.bufferedRequestCount=0}else{for(;lt;){var St=lt.chunk,Ft=lt.encoding,Mt=lt.callback,Tt=X.objectMode?1:St.length;if(xt(V,X,!1,Tt,St,Ft,Mt),lt=lt.next,X.bufferedRequestCount--,X.writing)break}lt===null&&(X.lastBufferedRequest=null)}X.bufferedRequest=lt,X.bufferProcessing=!1}N.prototype._write=function(V,X,lt){lt(new m("_write()"))},N.prototype._writev=null,N.prototype.end=function(V,X,lt){var mt=this._writableState;return typeof V=="function"?(lt=V,V=null,X=null):typeof X=="function"&&(lt=X,X=null),V!=null&&this.write(V,X),mt.corked&&(mt.corked=1,this.uncork()),mt.ending||et(this,mt,lt),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function kt(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function Ot(V,X){V._final(function(lt){X.pendingcb--,lt&&w(V,lt),X.prefinished=!0,V.emit("prefinish"),Q(V,X)})}function Lt(V,X){!X.prefinished&&!X.finalCalled&&(typeof V._final=="function"&&!X.destroyed?(X.pendingcb++,X.finalCalled=!0,Qt.nextTick(Ot,V,X)):(X.prefinished=!0,V.emit("prefinish")))}function Q(V,X){var lt=kt(X);if(lt&&(Lt(V,X),X.pendingcb===0&&(X.finished=!0,V.emit("finish"),X.autoDestroy))){var mt=V._readableState;(!mt||mt.autoDestroy&&mt.endEmitted)&&V.destroy()}return lt}function et(V,X,lt){X.ending=!0,Q(V,X),lt&&(X.finished?Qt.nextTick(lt):V.once("finish",lt)),X.ended=!0,V.writable=!1}function ot(V,X,lt){var mt=V.entry;for(V.entry=null;mt;){var yt=mt.callback;X.pendingcb--,yt(lt),mt=mt.next}X.corkedRequestsFree.next=V}return Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(X){this._writableState&&(this._writableState.destroyed=X)}}),N.prototype.destroy=c.destroy,N.prototype._undestroy=c.undestroy,N.prototype._destroy=function(V,X){X(V)},df}var pf,My;function Xi(){if(My)return pf;My=1;var n=Object.keys||function(h){var f=[];for(var g in h)f.push(g);return f};pf=a;var t=nb(),e=eb();wi()(a,t);for(var r=n(e.prototype),i=0;i<r.length;i++){var s=r[i];a.prototype[s]||(a.prototype[s]=e.prototype[s])}function a(h){if(!(this instanceof a))return new a(h);t.call(this,h),e.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||Qt.nextTick(c,this)}function c(h){h.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=f,this._writableState.destroyed=f)}}),pf}var gf={},Ta={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Cy;function GR(){return Cy||(Cy=1,function(n,t){var e=Ml(),r=e.Buffer;function i(a,l){for(var c in a)l[c]=a[c]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?n.exports=e:(i(e,t),t.Buffer=s);function s(a,l,c){return r(a,l,c)}s.prototype=Object.create(r.prototype),i(r,s),s.from=function(a,l,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,l,c)},s.alloc=function(a,l,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var h=r(a);return l!==void 0?typeof c=="string"?h.fill(l,c):h.fill(l):h.fill(0),h},s.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},s.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}}(Ta,Ta.exports)),Ta.exports}var Py;function Oy(){if(Py)return gf;Py=1;var n=GR().Buffer,t=n.isEncoding||function(_){switch(_=""+_,_&&_.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function e(_){if(!_)return"utf8";for(var A;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(A)return;_=(""+_).toLowerCase(),A=!0}}function r(_){var A=e(_);if(typeof A!="string"&&(n.isEncoding===t||!t(_)))throw new Error("Unknown encoding: "+_);return A||_}gf.StringDecoder=i;function i(_){this.encoding=r(_);var A;switch(this.encoding){case"utf16le":this.text=g,this.end=d,A=4;break;case"utf8":this.fillLast=c,A=4;break;case"base64":this.text=m,this.end=p,A=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(A)}i.prototype.write=function(_){if(_.length===0)return"";var A,C;if(this.lastNeed){if(A=this.fillLast(_),A===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<_.length?A?A+this.text(_,C):this.text(_,C):A||""},i.prototype.end=f,i.prototype.text=h,i.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length};function s(_){return _<=127?0:_>>5===6?2:_>>4===14?3:_>>3===30?4:_>>6===2?-1:-2}function a(_,A,C){var w=A.length-1;if(w<C)return 0;var M=s(A[w]);return M>=0?(M>0&&(_.lastNeed=M-1),M):--w<C||M===-2?0:(M=s(A[w]),M>=0?(M>0&&(_.lastNeed=M-2),M):--w<C||M===-2?0:(M=s(A[w]),M>=0?(M>0&&(M===2?M=0:_.lastNeed=M-3),M):0))}function l(_,A,C){if((A[0]&192)!==128)return _.lastNeed=0,"�";if(_.lastNeed>1&&A.length>1){if((A[1]&192)!==128)return _.lastNeed=1,"�";if(_.lastNeed>2&&A.length>2&&(A[2]&192)!==128)return _.lastNeed=2,"�"}}function c(_){var A=this.lastTotal-this.lastNeed,C=l(this,_);if(C!==void 0)return C;if(this.lastNeed<=_.length)return _.copy(this.lastChar,A,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,A,0,_.length),this.lastNeed-=_.length}function h(_,A){var C=a(this,_,A);if(!this.lastNeed)return _.toString("utf8",A);this.lastTotal=C;var w=_.length-(C-this.lastNeed);return _.copy(this.lastChar,0,w),_.toString("utf8",A,w)}function f(_){var A=_&&_.length?this.write(_):"";return this.lastNeed?A+"�":A}function g(_,A){if((_.length-A)%2===0){var C=_.toString("utf16le",A);if(C){var w=C.charCodeAt(C.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",A,_.length-1)}function d(_){var A=_&&_.length?this.write(_):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return A+this.lastChar.toString("utf16le",0,C)}return A}function m(_,A){var C=(_.length-A)%3;return C===0?_.toString("base64",A):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",A,_.length-C))}function p(_){var A=_&&_.length?this.write(_):"";return this.lastNeed?A+this.lastChar.toString("base64",0,3-this.lastNeed):A}function v(_){return _.toString(this.encoding)}function b(_){return _&&_.length?this.write(_):""}return gf}var mf,Ly;function kh(){if(Ly)return mf;Ly=1;var n=is().codes.ERR_STREAM_PREMATURE_CLOSE;function t(s){var a=!1;return function(){if(!a){a=!0;for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];s.apply(this,c)}}}function e(){}function r(s){return s.setHeader&&typeof s.abort=="function"}function i(s,a,l){if(typeof a=="function")return i(s,null,a);a||(a={}),l=t(l||e);var c=a.readable||a.readable!==!1&&s.readable,h=a.writable||a.writable!==!1&&s.writable,f=function(){s.writable||d()},g=s._writableState&&s._writableState.finished,d=function(){h=!1,g=!0,c||l.call(s)},m=s._readableState&&s._readableState.endEmitted,p=function(){c=!1,m=!0,h||l.call(s)},v=function(C){l.call(s,C)},b=function(){var C;if(c&&!m)return(!s._readableState||!s._readableState.ended)&&(C=new n),l.call(s,C);if(h&&!g)return(!s._writableState||!s._writableState.ended)&&(C=new n),l.call(s,C)},_=function(){s.req.on("finish",d)};return r(s)?(s.on("complete",d),s.on("abort",b),s.req?_():s.on("request",_)):h&&!s._writableState&&(s.on("end",f),s.on("close",f)),s.on("end",p),s.on("finish",d),a.error!==!1&&s.on("error",v),s.on("close",b),function(){s.removeListener("complete",d),s.removeListener("abort",b),s.removeListener("request",_),s.req&&s.req.removeListener("finish",d),s.removeListener("end",f),s.removeListener("close",f),s.removeListener("finish",d),s.removeListener("end",p),s.removeListener("error",v),s.removeListener("close",b)}}return mf=i,mf}var yf,Ty;function YR(){if(Ty)return yf;Ty=1;var n;function t(C,w,M){return w=e(w),w in C?Object.defineProperty(C,w,{value:M,enumerable:!0,configurable:!0,writable:!0}):C[w]=M,C}function e(C){var w=r(C,"string");return typeof w=="symbol"?w:String(w)}function r(C,w){if(typeof C!="object"||C===null)return C;var M=C[Symbol.toPrimitive];if(M!==void 0){var O=M.call(C,w);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(C)}var i=kh(),s=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),f=Symbol("handlePromise"),g=Symbol("stream");function d(C,w){return{value:C,done:w}}function m(C){var w=C[s];if(w!==null){var M=C[g].read();M!==null&&(C[h]=null,C[s]=null,C[a]=null,w(d(M,!1)))}}function p(C){Qt.nextTick(m,C)}function v(C,w){return function(M,O){C.then(function(){if(w[c]){M(d(void 0,!0));return}w[f](M,O)},O)}}var b=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((n={get stream(){return this[g]},next:function(){var w=this,M=this[l];if(M!==null)return Promise.reject(M);if(this[c])return Promise.resolve(d(void 0,!0));if(this[g].destroyed)return new Promise(function(Y,z){Qt.nextTick(function(){w[l]?z(w[l]):Y(d(void 0,!0))})});var O=this[h],L;if(O)L=new Promise(v(O,this));else{var N=this[g].read();if(N!==null)return Promise.resolve(d(N,!1));L=new Promise(this[f])}return this[h]=L,L}},t(n,Symbol.asyncIterator,function(){return this}),t(n,"return",function(){var w=this;return new Promise(function(M,O){w[g].destroy(null,function(L){if(L){O(L);return}M(d(void 0,!0))})})}),n),b),A=function(w){var M,O=Object.create(_,(M={},t(M,g,{value:w,writable:!0}),t(M,s,{value:null,writable:!0}),t(M,a,{value:null,writable:!0}),t(M,l,{value:null,writable:!0}),t(M,c,{value:w._readableState.endEmitted,writable:!0}),t(M,f,{value:function(N,Y){var z=O[g].read();z?(O[h]=null,O[s]=null,O[a]=null,N(d(z,!1))):(O[s]=N,O[a]=Y)},writable:!0}),M));return O[h]=null,i(w,function(L){if(L&&L.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=O[a];N!==null&&(O[h]=null,O[s]=null,O[a]=null,N(L)),O[l]=L;return}var Y=O[s];Y!==null&&(O[h]=null,O[s]=null,O[a]=null,Y(d(void 0,!0))),O[c]=!0}),w.on("readable",p.bind(null,O)),O};return yf=A,yf}var vf,By;function KR(){return By||(By=1,vf=function(){throw new Error("Readable.from is not available in the browser")}),vf}var bf,Iy;function nb(){if(Iy)return bf;Iy=1,bf=Y;var n;Y.ReadableState=N,ts().EventEmitter;var t=function(j,ut){return j.listeners(ut).length},e=Zv(),r=Ml().Buffer,i=(typeof He<"u"?He:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(D){return r.from(D)}function a(D){return r.isBuffer(D)||D instanceof i}var l=rs(),c;l&&l.debuglog?c=l.debuglog("stream"):c=function(){};var h=VR(),f=Qv(),g=tb(),d=g.getHighWaterMark,m=is().codes,p=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,b=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,A,C,w;wi()(Y,e);var M=f.errorOrDestroy,O=["error","close","destroy","pause","resume"];function L(D,j,ut){if(typeof D.prependListener=="function")return D.prependListener(j,ut);!D._events||!D._events[j]?D.on(j,ut):Array.isArray(D._events[j])?D._events[j].unshift(ut):D._events[j]=[ut,D._events[j]]}function N(D,j,ut){n=n||Xi(),D=D||{},typeof ut!="boolean"&&(ut=j instanceof n),this.objectMode=!!D.objectMode,ut&&(this.objectMode=this.objectMode||!!D.readableObjectMode),this.highWaterMark=d(this,D,"readableHighWaterMark",ut),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=D.emitClose!==!1,this.autoDestroy=!!D.autoDestroy,this.destroyed=!1,this.defaultEncoding=D.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,D.encoding&&(A||(A=Oy().StringDecoder),this.decoder=new A(D.encoding),this.encoding=D.encoding)}function Y(D){if(n=n||Xi(),!(this instanceof Y))return new Y(D);var j=this instanceof n;this._readableState=new N(D,this,j),this.readable=!0,D&&(typeof D.read=="function"&&(this._read=D.read),typeof D.destroy=="function"&&(this._destroy=D.destroy)),e.call(this)}Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(j){this._readableState&&(this._readableState.destroyed=j)}}),Y.prototype.destroy=f.destroy,Y.prototype._undestroy=f.undestroy,Y.prototype._destroy=function(D,j){j(D)},Y.prototype.push=function(D,j){var ut=this._readableState,St;return ut.objectMode?St=!0:typeof D=="string"&&(j=j||ut.defaultEncoding,j!==ut.encoding&&(D=r.from(D,j),j=""),St=!0),z(this,D,j,!1,St)},Y.prototype.unshift=function(D){return z(this,D,null,!0,!1)};function z(D,j,ut,St,Ft){c("readableAddChunk",j);var Mt=D._readableState;if(j===null)Mt.reading=!1,at(D,Mt);else{var Tt;if(Ft||(Tt=U(Mt,j)),Tt)M(D,Tt);else if(Mt.objectMode||j&&j.length>0)if(typeof j!="string"&&!Mt.objectMode&&Object.getPrototypeOf(j)!==r.prototype&&(j=s(j)),St)Mt.endEmitted?M(D,new _):G(D,Mt,j,!0);else if(Mt.ended)M(D,new v);else{if(Mt.destroyed)return!1;Mt.reading=!1,Mt.decoder&&!ut?(j=Mt.decoder.write(j),Mt.objectMode||j.length!==0?G(D,Mt,j,!1):Et(D,Mt)):G(D,Mt,j,!1)}else St||(Mt.reading=!1,Et(D,Mt))}return!Mt.ended&&(Mt.length<Mt.highWaterMark||Mt.length===0)}function G(D,j,ut,St){j.flowing&&j.length===0&&!j.sync?(j.awaitDrain=0,D.emit("data",ut)):(j.length+=j.objectMode?1:ut.length,St?j.buffer.unshift(ut):j.buffer.push(ut),j.needReadable&&_t(D)),Et(D,j)}function U(D,j){var ut;return!a(j)&&typeof j!="string"&&j!==void 0&&!D.objectMode&&(ut=new p("chunk",["string","Buffer","Uint8Array"],j)),ut}Y.prototype.isPaused=function(){return this._readableState.flowing===!1},Y.prototype.setEncoding=function(D){A||(A=Oy().StringDecoder);var j=new A(D);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;for(var ut=this._readableState.buffer.head,St="";ut!==null;)St+=j.write(ut.data),ut=ut.next;return this._readableState.buffer.clear(),St!==""&&this._readableState.buffer.push(St),this._readableState.length=St.length,this};var xt=1073741824;function dt(D){return D>=xt?D=xt:(D--,D|=D>>>1,D|=D>>>2,D|=D>>>4,D|=D>>>8,D|=D>>>16,D++),D}function st(D,j){return D<=0||j.length===0&&j.ended?0:j.objectMode?1:D!==D?j.flowing&&j.length?j.buffer.head.data.length:j.length:(D>j.highWaterMark&&(j.highWaterMark=dt(D)),D<=j.length?D:j.ended?j.length:(j.needReadable=!0,0))}Y.prototype.read=function(D){c("read",D),D=parseInt(D,10);var j=this._readableState,ut=D;if(D!==0&&(j.emittedReadable=!1),D===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return c("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?lt(this):_t(this),null;if(D=st(D,j),D===0&&j.ended)return j.length===0&<(this),null;var St=j.needReadable;c("need readable",St),(j.length===0||j.length-D<j.highWaterMark)&&(St=!0,c("length less than watermark",St)),j.ended||j.reading?(St=!1,c("reading or ended",St)):St&&(c("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(D=st(ut,j)));var Ft;return D>0?Ft=X(D,j):Ft=null,Ft===null?(j.needReadable=j.length<=j.highWaterMark,D=0):(j.length-=D,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),ut!==D&&j.ended&<(this)),Ft!==null&&this.emit("data",Ft),Ft};function at(D,j){if(c("onEofChunk"),!j.ended){if(j.decoder){var ut=j.decoder.end();ut&&ut.length&&(j.buffer.push(ut),j.length+=j.objectMode?1:ut.length)}j.ended=!0,j.sync?_t(D):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,bt(D)))}}function _t(D){var j=D._readableState;c("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(c("emitReadable",j.flowing),j.emittedReadable=!0,Qt.nextTick(bt,D))}function bt(D){var j=D._readableState;c("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(D.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,V(D)}function Et(D,j){j.readingMore||(j.readingMore=!0,Qt.nextTick(kt,D,j))}function kt(D,j){for(;!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0);){var ut=j.length;if(c("maybeReadMore read 0"),D.read(0),ut===j.length)break}j.readingMore=!1}Y.prototype._read=function(D){M(this,new b("_read()"))},Y.prototype.pipe=function(D,j){var ut=this,St=this._readableState;switch(St.pipesCount){case 0:St.pipes=D;break;case 1:St.pipes=[St.pipes,D];break;default:St.pipes.push(D);break}St.pipesCount+=1,c("pipe count=%d opts=%j",St.pipesCount,j);var Ft=(!j||j.end!==!1)&&D!==Qt.stdout&&D!==Qt.stderr,Mt=Ft?je:on;St.endEmitted?Qt.nextTick(Mt):ut.once("end",Mt),D.on("unpipe",Tt);function Tt(Ye,ye){c("onunpipe"),Ye===ut&&ye&&ye.hasUnpiped===!1&&(ye.hasUnpiped=!0,ue())}function je(){c("onend"),D.end()}var ft=Ot(ut);D.on("drain",ft);var Ce=!1;function ue(){c("cleanup"),D.removeListener("close",Ve),D.removeListener("finish",ke),D.removeListener("drain",ft),D.removeListener("error",re),D.removeListener("unpipe",Tt),ut.removeListener("end",je),ut.removeListener("end",on),ut.removeListener("data",te),Ce=!0,St.awaitDrain&&(!D._writableState||D._writableState.needDrain)&&ft()}ut.on("data",te);function te(Ye){c("ondata");var ye=D.write(Ye);c("dest.write",ye),ye===!1&&((St.pipesCount===1&&St.pipes===D||St.pipesCount>1&&yt(St.pipes,D)!==-1)&&!Ce&&(c("false write response, pause",St.awaitDrain),St.awaitDrain++),ut.pause())}function re(Ye){c("onerror",Ye),on(),D.removeListener("error",re),t(D,"error")===0&&M(D,Ye)}L(D,"error",re);function Ve(){D.removeListener("finish",ke),on()}D.once("close",Ve);function ke(){c("onfinish"),D.removeListener("close",Ve),on()}D.once("finish",ke);function on(){c("unpipe"),ut.unpipe(D)}return D.emit("pipe",ut),St.flowing||(c("pipe resume"),ut.resume()),D};function Ot(D){return function(){var ut=D._readableState;c("pipeOnDrain",ut.awaitDrain),ut.awaitDrain&&ut.awaitDrain--,ut.awaitDrain===0&&t(D,"data")&&(ut.flowing=!0,V(D))}}Y.prototype.unpipe=function(D){var j=this._readableState,ut={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return D&&D!==j.pipes?this:(D||(D=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,D&&D.emit("unpipe",this,ut),this);if(!D){var St=j.pipes,Ft=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var Mt=0;Mt<Ft;Mt++)St[Mt].emit("unpipe",this,{hasUnpiped:!1});return this}var Tt=yt(j.pipes,D);return Tt===-1?this:(j.pipes.splice(Tt,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),D.emit("unpipe",this,ut),this)},Y.prototype.on=function(D,j){var ut=e.prototype.on.call(this,D,j),St=this._readableState;return D==="data"?(St.readableListening=this.listenerCount("readable")>0,St.flowing!==!1&&this.resume()):D==="readable"&&!St.endEmitted&&!St.readableListening&&(St.readableListening=St.needReadable=!0,St.flowing=!1,St.emittedReadable=!1,c("on readable",St.length,St.reading),St.length?_t(this):St.reading||Qt.nextTick(Q,this)),ut},Y.prototype.addListener=Y.prototype.on,Y.prototype.removeListener=function(D,j){var ut=e.prototype.removeListener.call(this,D,j);return D==="readable"&&Qt.nextTick(Lt,this),ut},Y.prototype.removeAllListeners=function(D){var j=e.prototype.removeAllListeners.apply(this,arguments);return(D==="readable"||D===void 0)&&Qt.nextTick(Lt,this),j};function Lt(D){var j=D._readableState;j.readableListening=D.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:D.listenerCount("data")>0&&D.resume()}function Q(D){c("readable nexttick read 0"),D.read(0)}Y.prototype.resume=function(){var D=this._readableState;return D.flowing||(c("resume"),D.flowing=!D.readableListening,et(this,D)),D.paused=!1,this};function et(D,j){j.resumeScheduled||(j.resumeScheduled=!0,Qt.nextTick(ot,D,j))}function ot(D,j){c("resume",j.reading),j.reading||D.read(0),j.resumeScheduled=!1,D.emit("resume"),V(D),j.flowing&&!j.reading&&D.read(0)}Y.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(D){var j=D._readableState;for(c("flow",j.flowing);j.flowing&&D.read()!==null;);}Y.prototype.wrap=function(D){var j=this,ut=this._readableState,St=!1;D.on("end",function(){if(c("wrapped end"),ut.decoder&&!ut.ended){var Tt=ut.decoder.end();Tt&&Tt.length&&j.push(Tt)}j.push(null)}),D.on("data",function(Tt){if(c("wrapped data"),ut.decoder&&(Tt=ut.decoder.write(Tt)),!(ut.objectMode&&Tt==null)&&!(!ut.objectMode&&(!Tt||!Tt.length))){var je=j.push(Tt);je||(St=!0,D.pause())}});for(var Ft in D)this[Ft]===void 0&&typeof D[Ft]=="function"&&(this[Ft]=function(je){return function(){return D[je].apply(D,arguments)}}(Ft));for(var Mt=0;Mt<O.length;Mt++)D.on(O[Mt],this.emit.bind(this,O[Mt]));return this._read=function(Tt){c("wrapped _read",Tt),St&&(St=!1,D.resume())},this},typeof Symbol=="function"&&(Y.prototype[Symbol.asyncIterator]=function(){return C===void 0&&(C=YR()),C(this)}),Object.defineProperty(Y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Y.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Y.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(j){this._readableState&&(this._readableState.flowing=j)}}),Y._fromList=X,Object.defineProperty(Y.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function X(D,j){if(j.length===0)return null;var ut;return j.objectMode?ut=j.buffer.shift():!D||D>=j.length?(j.decoder?ut=j.buffer.join(""):j.buffer.length===1?ut=j.buffer.first():ut=j.buffer.concat(j.length),j.buffer.clear()):ut=j.buffer.consume(D,j.decoder),ut}function lt(D){var j=D._readableState;c("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,Qt.nextTick(mt,j,D))}function mt(D,j){if(c("endReadableNT",D.endEmitted,D.length),!D.endEmitted&&D.length===0&&(D.endEmitted=!0,j.readable=!1,j.emit("end"),D.autoDestroy)){var ut=j._writableState;(!ut||ut.autoDestroy&&ut.finished)&&j.destroy()}}typeof Symbol=="function"&&(Y.from=function(D,j){return w===void 0&&(w=KR()),w(Y,D,j)});function yt(D,j){for(var ut=0,St=D.length;ut<St;ut++)if(D[ut]===j)return ut;return-1}return bf}var _f,Dy;function rb(){if(Dy)return _f;Dy=1,_f=l;var n=is().codes,t=n.ERR_METHOD_NOT_IMPLEMENTED,e=n.ERR_MULTIPLE_CALLBACK,r=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=n.ERR_TRANSFORM_WITH_LENGTH_0,s=Xi();wi()(l,s);function a(f,g){var d=this._transformState;d.transforming=!1;var m=d.writecb;if(m===null)return this.emit("error",new e);d.writechunk=null,d.writecb=null,g!=null&&this.push(g),m(f);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function l(f){if(!(this instanceof l))return new l(f);s.call(this,f),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",c)}function c(){var f=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(g,d){h(f,g,d)}):h(this,null,null)}l.prototype.push=function(f,g){return this._transformState.needTransform=!1,s.prototype.push.call(this,f,g)},l.prototype._transform=function(f,g,d){d(new t("_transform()"))},l.prototype._write=function(f,g,d){var m=this._transformState;if(m.writecb=d,m.writechunk=f,m.writeencoding=g,!m.transforming){var p=this._readableState;(m.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},l.prototype._read=function(f){var g=this._transformState;g.writechunk!==null&&!g.transforming?(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform)):g.needTransform=!0},l.prototype._destroy=function(f,g){s.prototype._destroy.call(this,f,function(d){g(d)})};function h(f,g,d){if(g)return f.emit("error",g);if(d!=null&&f.push(d),f._writableState.length)throw new i;if(f._transformState.transforming)throw new r;return f.push(null)}return _f}var wf,Fy;function XR(){if(Fy)return wf;Fy=1,wf=t;var n=rb();wi()(t,n);function t(e){if(!(this instanceof t))return new t(e);n.call(this,e)}return t.prototype._transform=function(e,r,i){i(null,e)},wf}var xf,Ny;function JR(){if(Ny)return xf;Ny=1;var n;function t(d){var m=!1;return function(){m||(m=!0,d.apply(void 0,arguments))}}var e=is().codes,r=e.ERR_MISSING_ARGS,i=e.ERR_STREAM_DESTROYED;function s(d){if(d)throw d}function a(d){return d.setHeader&&typeof d.abort=="function"}function l(d,m,p,v){v=t(v);var b=!1;d.on("close",function(){b=!0}),n===void 0&&(n=kh()),n(d,{readable:m,writable:p},function(A){if(A)return v(A);b=!0,v()});var _=!1;return function(A){if(!b&&!_){if(_=!0,a(d))return d.abort();if(typeof d.destroy=="function")return d.destroy();v(A||new i("pipe"))}}}function c(d){d()}function h(d,m){return d.pipe(m)}function f(d){return!d.length||typeof d[d.length-1]!="function"?s:d.pop()}function g(){for(var d=arguments.length,m=new Array(d),p=0;p<d;p++)m[p]=arguments[p];var v=f(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var b,_=m.map(function(A,C){var w=C<m.length-1,M=C>0;return l(A,w,M,function(O){b||(b=O),O&&_.forEach(c),!w&&(_.forEach(c),v(b))})});return m.reduce(h)}return xf=g,xf}var Sf,jy;function ib(){if(jy)return Sf;jy=1,Sf=e;var n=ts().EventEmitter,t=wi();t(e,n),e.Readable=nb(),e.Writable=eb(),e.Duplex=Xi(),e.Transform=rb(),e.PassThrough=XR(),e.finished=kh(),e.pipeline=JR(),e.Stream=e;function e(){n.call(this)}return e.prototype.pipe=function(r,i){var s=this;function a(m){r.writable&&r.write(m)===!1&&s.pause&&s.pause()}s.on("data",a);function l(){s.readable&&s.resume&&s.resume()}r.on("drain",l),!r._isStdio&&(!i||i.end!==!1)&&(s.on("end",h),s.on("close",f));var c=!1;function h(){c||(c=!0,r.end())}function f(){c||(c=!0,typeof r.destroy=="function"&&r.destroy())}function g(m){if(d(),n.listenerCount(this,"error")===0)throw m}s.on("error",g),r.on("error",g);function d(){s.removeListener("data",a),r.removeListener("drain",l),s.removeListener("end",h),s.removeListener("close",f),s.removeListener("error",g),r.removeListener("error",g),s.removeListener("end",d),s.removeListener("close",d),r.removeListener("close",d)}return s.on("end",d),s.on("close",d),r.on("close",d),r.emit("pipe",s),r},Sf}var Ef,Uy;function ZR(){if(Uy)return Ef;Uy=1;function n(t){return t?(t^Math.random()*16>>t/4).toString(16):("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,n)}return Ef=n,Ef}var Ba={exports:{}},Ia={exports:{}},Af,qy;function QR(){if(qy)return Af;qy=1;var n=1e3,t=n*60,e=t*60,r=e*24,i=r*365.25;Af=function(h,f){return f=f||{},typeof h=="string"?s(h):f.long?l(h):a(h)};function s(h){if(h=""+h,!(h.length>1e4)){var f=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(h);if(f){var g=parseFloat(f[1]),d=(f[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return g*i;case"days":case"day":case"d":return g*r;case"hours":case"hour":case"hrs":case"hr":case"h":return g*e;case"minutes":case"minute":case"mins":case"min":case"m":return g*t;case"seconds":case"second":case"secs":case"sec":case"s":return g*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g}}}}function a(h){return h>=r?Math.round(h/r)+"d":h>=e?Math.round(h/e)+"h":h>=t?Math.round(h/t)+"m":h>=n?Math.round(h/n)+"s":h+"ms"}function l(h){return c(h,r,"day")||c(h,e,"hour")||c(h,t,"minute")||c(h,n,"second")||h+" ms"}function c(h,f,g){if(!(h<f))return h<f*1.5?Math.floor(h/f)+" "+g:Math.ceil(h/f)+" "+g+"s"}return Af}var Wy;function tM(){return Wy||(Wy=1,function(n,t){t=n.exports=s,t.coerce=h,t.disable=l,t.enable=a,t.enabled=c,t.humanize=QR(),t.names=[],t.skips=[],t.formatters={};var e=0,r;function i(){return t.colors[e++%t.colors.length]}function s(f){function g(){}g.enabled=!1;function d(){var p=d,v=+new Date,b=v-(r||v);p.diff=b,p.prev=r,p.curr=v,r=v,p.useColors==null&&(p.useColors=t.useColors()),p.color==null&&p.useColors&&(p.color=i());var _=Array.prototype.slice.call(arguments);_[0]=t.coerce(_[0]),typeof _[0]!="string"&&(_=["%o"].concat(_));var A=0;_[0]=_[0].replace(/%([a-z%])/g,function(w,M){if(w==="%%")return w;A++;var O=t.formatters[M];if(typeof O=="function"){var L=_[A];w=O.call(p,L),_.splice(A,1),A--}return w}),typeof t.formatArgs=="function"&&(_=t.formatArgs.apply(p,_));var C=d.log||t.log||console.log.bind(console);C.apply(p,_)}d.enabled=!0;var m=t.enabled(f)?d:g;return m.namespace=f,m}function a(f){t.save(f);for(var g=(f||"").split(/[\s,]+/),d=g.length,m=0;m<d;m++)g[m]&&(f=g[m].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.substr(1)+"$")):t.names.push(new RegExp("^"+f+"$")))}function l(){t.enable("")}function c(f){var g,d;for(g=0,d=t.skips.length;g<d;g++)if(t.skips[g].test(f))return!1;for(g=0,d=t.names.length;g<d;g++)if(t.names[g].test(f))return!0;return!1}function h(f){return f instanceof Error?f.stack||f.message:f}}(Ia,Ia.exports)),Ia.exports}var Hy;function sb(){return Hy||(Hy=1,function(n,t){t=n.exports=tM(),t.log=i,t.formatArgs=r,t.save=s,t.load=a,t.useColors=e,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function e(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}t.formatters.j=function(c){return JSON.stringify(c)};function r(){var c=arguments,h=this.useColors;if(c[0]=(h?"%c":"")+this.namespace+(h?" %c":" ")+c[0]+(h?"%c ":" ")+"+"+t.humanize(this.diff),!h)return c;var f="color: "+this.color;c=[c[0],f,"color: inherit"].concat(Array.prototype.slice.call(c,1));var g=0,d=0;return c[0].replace(/%[a-z%]/g,function(m){m!=="%%"&&(g++,m==="%c"&&(d=g))}),c.splice(d,0,f),c}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch{}}function a(){var c;try{c=t.storage.debug}catch{}return c}t.enable(a());function l(){try{return window.localStorage}catch{}}}(Ba,Ba.exports)),Ba.exports}var kf,zy;function Rh(){if(zy)return kf;zy=1;var n=rs(),t=ib().Duplex,e=Ah(),r=ZR(),i=sb()("socket.io-stream:iostream");kf=s,n.inherits(s,t);function s(a){if(!(this instanceof s))return new s(a);s.super_.call(this,a),this.options=a,this.id=r(),this.socket=null,this.pushBuffer=[],this.writeBuffer=[],this._readable=!1,this._writable=!1,this.destroyed=!1,this.allowHalfOpen=a&&a.allowHalfOpen||!1,this.on("finish",this._onfinish),this.on("end",this._onend),this.on("error",this._onerror)}return s.prototype.destroy=function(){if(i("destroy"),this.destroyed){i("already destroyed");return}this.readable=this.writable=!1,this.socket&&(i("clean up"),this.socket.cleanup(this.id),this.socket=null),this.destroyed=!0},s.prototype._read=function(a){var l;if(!this.destroyed){if(this.pushBuffer.length){for(;(l=this.pushBuffer.shift())&&l(););return}this._readable=!0,this.socket._read(this.id,a)}},s.prototype._onread=function(a){var l=this.writeBuffer.shift();if(l)return l();this._writable=!0},s.prototype._write=function(a,l,c){var h=this;function f(){h.destroyed||(h._writable=!1,h.socket._write(h.id,a,l,c))}this._writable?f():this.writeBuffer.push(f)},s.prototype._onwrite=function(a,l,c){var h=this;function f(){h._readable=!1;var g=h.push(a||"",l);return c(),g}this._readable?f():this.pushBuffer.push(f)},s.prototype._end=function(){this.pushBuffer.length?this.pushBuffer.push(e(this,"_done")):this._done()},s.prototype._done=function(){return this._readable=!1,this.push(null)},s.prototype._onfinish=function(){if(i("_onfinish"),this.socket&&this.socket._end(this.id),this.writable=!1,this._writableState.ended=!0,!this.readable||this._readableState.ended)return i("_onfinish: ended, destroy %s",this._readableState),this.destroy();i("_onfinish: not ended"),this.allowHalfOpen||(this.push(null),this.readable&&!this._readableState.endEmitted&&this.read(0))},s.prototype._onend=function(){if(i("_onend"),this.readable=!1,this._readableState.ended=!0,!this.writable||this._writableState.finished)return i("_onend: %s",this._writableState),this.destroy();i("_onend: not finished"),this.allowHalfOpen||this.end()},s.prototype._onerror=function(a){!a.remote&&this.socket&&this.socket._error(this.id,a),this.destroy()},kf}var Da={},Vy;function eM(){if(Vy)return Da;Vy=1;var n=rs(),t=ts().EventEmitter,e=Rh();Da.Encoder=r,Da.Decoder=i,n.inherits(r,t);function r(){t.call(this)}r.prototype.encode=function(s){return s instanceof e?this.encodeStream(s):n.isArray(s)?this.encodeArray(s):s&&typeof s=="object"?this.encodeObject(s):s},r.prototype.encodeStream=function(s){this.emit("stream",s);var a={$stream:s.id};return s.options&&(a.options=s.options),a},r.prototype.encodeArray=function(s){for(var a=[],l=0,c=s.length;l<c;l++)a.push(this.encode(s[l]));return a},r.prototype.encodeObject=function(s){var a={};for(var l in s)s.hasOwnProperty(l)&&(a[l]=this.encode(s[l]));return a},n.inherits(i,t);function i(){t.call(this)}return i.prototype.decode=function(s){return s&&s.$stream?this.decodeStream(s):n.isArray(s)?this.decodeArray(s):s&&typeof s=="object"?this.decodeObject(s):s},i.prototype.decodeStream=function(s){var a=new e(s.options);return a.id=s.$stream,this.emit("stream",a),a},i.prototype.decodeArray=function(s){for(var a=[],l=0,c=s.length;l<c;l++)a.push(this.decode(s[l]));return a},i.prototype.decodeObject=function(s){var a={};for(var l in s)s.hasOwnProperty(l)&&(a[l]=this.decode(s[l]));return a},Da}var $y;function nM(){return $y||($y=1,function(n,t){var e=rs(),r=ts().EventEmitter,i=Ah();Rh();var s=eM(),a=sb()("socket.io-stream:socket"),l=r.prototype.emit,c=r.prototype.on,h=Array.prototype.slice;t=n.exports=f,t.event="$stream",t.events=["error","newListener","removeListener"],e.inherits(f,r);function f(g,d){if(!(this instanceof f))return new f(g,d);r.call(this),d=d||{},this.sio=g,this.forceBase64=!!d.forceBase64,this.streams={},this.encoder=new s.Encoder,this.decoder=new s.Decoder;var m=t.event;g.on(m,i(this,l)),g.on(m+"-read",i(this,"_onread")),g.on(m+"-write",i(this,"_onwrite")),g.on(m+"-end",i(this,"_onend")),g.on(m+"-error",i(this,"_onerror")),g.on("error",i(this,l,"error")),g.on("disconnect",i(this,"_ondisconnect")),this.encoder.on("stream",i(this,"_onencode")),this.decoder.on("stream",i(this,"_ondecode"))}f.prototype.$emit=l,f.prototype.emit=function(g){return~t.events.indexOf(g)?l.apply(this,arguments):(this._stream.apply(this,arguments),this)},f.prototype.on=function(g,d){return~t.events.indexOf(g)?c.apply(this,arguments):(this._onstream(g,d),this)},f.prototype._stream=function(g){a("sending new streams");var d=this,m=h.call(arguments,1),p=m[m.length-1];typeof p=="function"&&(m[m.length-1]=function(){var b=h.call(arguments);b=d.decoder.decode(b),p.apply(this,b)}),m=this.encoder.encode(m);var v=this.sio;v.emit.apply(v,[t.event,g].concat(m))},f.prototype._read=function(g,d){this.sio.emit(t.event+"-read",g,d)},f.prototype._write=function(g,d,m,p){Ks.isBuffer(d)&&(this.forceBase64?(m="base64",d=d.toString(m)):He.Buffer||(d.toArrayBuffer?d=d.toArrayBuffer():d=d.buffer)),this.sio.emit(t.event+"-write",g,d,m,p)},f.prototype._end=function(g){this.sio.emit(t.event+"-end",g)},f.prototype._error=function(g,d){this.sio.emit(t.event+"-error",g,d.message||d)},f.prototype._onstream=function(g,d){if(typeof d!="function")throw TypeError("listener must be a function");function m(){a("new streams");var p=this,v=h.call(arguments),b=v[v.length-1];typeof b=="function"&&(v[v.length-1]=function(){var _=h.call(arguments);_=p.encoder.encode(_),b.apply(this,_)}),v=this.decoder.decode(v),d.apply(this,v)}m.listener=d,c.call(this,g,m)},f.prototype._onread=function(g,d){a('read: "%s"',g);var m=this.streams[g];m?m._onread(d):a("ignore invalid stream id")},f.prototype._onwrite=function(g,d,m,p){a('write: "%s"',g);var v=this.streams[g];if(!v){p("invalid stream id: "+g);return}He.ArrayBuffer&&d instanceof ArrayBuffer&&(d=new Ks(new Uint8Array(d))),v._onwrite(d,m,p)},f.prototype._onend=function(g){a('end: "%s"',g);var d=this.streams[g];if(!d){a('ignore non-existent stream id: "%s"',g);return}d._end()},f.prototype._onerror=function(g,d){a('error: "%s", "%s"',g,d);var m=this.streams[g];if(!m){a('invalid stream id: "%s"',g);return}var p=new Error(d);p.remote=!0,m.emit("error",p)},f.prototype._ondisconnect=function(){var g;for(var d in this.streams)g=this.streams[d],g.destroy(),g.emit("close"),g.emit("error",new Error("Connection aborted"))},f.prototype._onencode=function(g){if(g.socket||g.destroyed)throw new Error("stream has already been sent.");var d=g.id;if(this.streams[d])throw new Error("Encoded stream already exists: "+d);this.streams[d]=g,g.socket=this},f.prototype._ondecode=function(g){var d=g.id;if(this.streams[d]){this._error(d,new Error("Decoded stream already exists: "+d));return}this.streams[d]=g,g.socket=this},f.prototype.cleanup=function(g){delete this.streams[g]}}(Oa,Oa.exports)),Oa.exports}var Rf,Gy;function rM(){if(Gy)return Rf;Gy=1;var n=rs(),t=ib().Readable,e=Ah();Rf=r,n.inherits(r,t);function r(i,s){if(!(this instanceof r))return new r(i,s);t.call(this,s),s=s||{},this.blob=i,this.slice=i.slice||i.webkitSlice||i.mozSlice,this.start=0,this.sync=s.synchronous||!1;var a;s.synchronous?a=this.fileReader=new FileReaderSync:a=this.fileReader=new FileReader,a.onload=e(this,"_onload"),a.onerror=e(this,"_onerror")}return r.prototype._read=function(i){var s=this.start,a=this.start=this.start+i,l=this.slice.call(this.blob,s,a);if(l.size)if(this.sync){var c=new Ks(new Uint8Array(this.fileReader.readAsArrayBuffer(l)));this.push(c)}else this.fileReader.readAsArrayBuffer(l);else this.push(null)},r.prototype._onload=function(i){var s=new Ks(new Uint8Array(i.target.result));this.push(s)},r.prototype._onerror=function(i){var s=i.target.error;this.emit("error",s)},Rf}var Yy;function iM(){return Yy||(Yy=1,function(n,t){var e=nM(),r=Rh(),i=rM();t=n.exports=s,t.Buffer=Ks,t.Socket=e,t.IOStream=r,t.forceBase64=!1;function s(a,l){return l=l||{},l.forceBase64==null&&(l.forceBase64=t.forceBase64),a._streamSocket||(a._streamSocket=new e(a,l)),a._streamSocket}t.createStream=function(a){return new r(a)},t.createBlobReadStream=function(a,l){return new i(a,l)}}(Pa,Pa.exports)),Pa.exports}var Mf,Ky;function sM(){return Ky||(Ky=1,Mf=iM()),Mf}var ob=sM();const ab=_i(ob),oM=GA({__proto__:null,default:ab},[ob]),Cf=ab||oM,sr=n=>n,aM=(n=0,t=1)=>(e=t)=>n+=e,lM=Fe.compile(Kk);class Xs extends Oe{constructor(t){super(),this.provided=t,this.buttons={all:js.build({name:"ALL",isEnabled:!0}),provided:sr({})},this.events=new ao,this.panel=new Ar({...this.provided,class:"checkbox-area"}).append(lM(this.provided)),this.area=new Oe(this.panel.element.querySelector("div.buttons")).append(this.buttons.all),this.replace(this.panel),this.buttons.all.on("enable",(e,r)=>r==="click"?this.extract().forEach(i=>i.enable()):null),this.buttons.all.on("disable",(e,r)=>r==="click"?this.extract().forEach(i=>i.disable()):null)}extract(){return Object.values(this.buttons.provided)}provide(...t){return t.forEach(e=>{const r=e instanceof js?e:js.build(e);this.buttons.provided[r.name]=r,this.area.append(r),r.on("enable",(i,s)=>{this.extract().every(a=>a.isEnabled)&&this.buttons.all.enable(),s!=="silent"&&this.emit("enable",i)}),r.on("disable",(i,s)=>{this.extract().some(a=>!a.isEnabled)&&this.buttons.all.disable(),s!=="silent"&&this.emit("disable",i)})}),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 Xs(t)}}const uM=`
|
|
148
|
-
<div class="container expectation" id="{{id}}">
|
|
163
|
+
*/(function(S){const O=e,w=_,k=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;S.Buffer=U,S.SlowBuffer=Q,S.INSPECT_MAX_BYTES=50;const C=2147483647;S.kMaxLength=C;const{Uint8Array:L,ArrayBuffer:N,SharedArrayBuffer:Y}=globalThis;U.TYPED_ARRAY_SUPPORT=z(),!U.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 z(){try{const I=new L(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,L.prototype),Object.setPrototypeOf(I,A),I.foo()===42}catch{return!1}}Object.defineProperty(U.prototype,"parent",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.buffer}}),Object.defineProperty(U.prototype,"offset",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.byteOffset}});function G(I){if(I>C)throw new RangeError('The value "'+I+'" is invalid for option "size"');const A=new L(I);return Object.setPrototypeOf(A,U.prototype),A}function U(I,A,R){if(typeof I=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return at(I)}return xt(I,A,R)}U.poolSize=8192;function xt(I,A,R){if(typeof I=="string")return _t(I,A);if(N.isView(I))return Et(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(Rn(I,N)||I&&Rn(I.buffer,N)||typeof Y<"u"&&(Rn(I,Y)||I&&Rn(I.buffer,Y)))return kt(I,A,R);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const W=I.valueOf&&I.valueOf();if(W!=null&&W!==I)return U.from(W,A,R);const J=Ct(I);if(J)return J;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return U.from(I[Symbol.toPrimitive]("string"),A,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}U.from=function(I,A,R){return xt(I,A,R)},Object.setPrototypeOf(U.prototype,L.prototype),Object.setPrototypeOf(U,L);function dt(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function st(I,A,R){return dt(I),I<=0?G(I):A!==void 0?typeof R=="string"?G(I).fill(A,R):G(I).fill(A):G(I)}U.alloc=function(I,A,R){return st(I,A,R)};function at(I){return dt(I),G(I<0?0:Lt(I)|0)}U.allocUnsafe=function(I){return at(I)},U.allocUnsafeSlow=function(I){return at(I)};function _t(I,A){if((typeof A!="string"||A==="")&&(A="utf8"),!U.isEncoding(A))throw new TypeError("Unknown encoding: "+A);const R=et(I,A)|0;let W=G(R);const J=W.write(I,A);return J!==R&&(W=W.slice(0,J)),W}function bt(I){const A=I.length<0?0:Lt(I.length)|0,R=G(A);for(let W=0;W<A;W+=1)R[W]=I[W]&255;return R}function Et(I){if(Rn(I,L)){const A=new L(I);return kt(A.buffer,A.byteOffset,A.byteLength)}return bt(I)}function kt(I,A,R){if(A<0||I.byteLength<A)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<A+(R||0))throw new RangeError('"length" is outside of buffer bounds');let W;return A===void 0&&R===void 0?W=new L(I):R===void 0?W=new L(I,A):W=new L(I,A,R),Object.setPrototypeOf(W,U.prototype),W}function Ct(I){if(U.isBuffer(I)){const A=Lt(I.length)|0,R=G(A);return R.length===0||I.copy(R,0,0,A),R}if(I.length!==void 0)return typeof I.length!="number"||cs(I.length)?G(0):bt(I);if(I.type==="Buffer"&&Array.isArray(I.data))return bt(I.data)}function Lt(I){if(I>=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return I|0}function Q(I){return+I!=I&&(I=0),U.alloc(+I)}U.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==U.prototype},U.compare=function(A,R){if(Rn(A,L)&&(A=U.from(A,A.offset,A.byteLength)),Rn(R,L)&&(R=U.from(R,R.offset,R.byteLength)),!U.isBuffer(A)||!U.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===R)return 0;let W=A.length,J=R.length;for(let rt=0,pt=Math.min(W,J);rt<pt;++rt)if(A[rt]!==R[rt]){W=A[rt],J=R[rt];break}return W<J?-1:J<W?1:0},U.isEncoding=function(A){switch(String(A).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}},U.concat=function(A,R){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return U.alloc(0);let W;if(R===void 0)for(R=0,W=0;W<A.length;++W)R+=A[W].length;const J=U.allocUnsafe(R);let rt=0;for(W=0;W<A.length;++W){let pt=A[W];if(Rn(pt,L))rt+pt.length>J.length?(U.isBuffer(pt)||(pt=U.from(pt)),pt.copy(J,rt)):L.prototype.set.call(J,pt,rt);else if(U.isBuffer(pt))pt.copy(J,rt);else throw new TypeError('"list" argument must be an Array of Buffers');rt+=pt.length}return J};function et(I,A){if(U.isBuffer(I))return I.length;if(N.isView(I)||Rn(I,N))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const R=I.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&R===0)return 0;let J=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return ce(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R*2;case"hex":return R>>>1;case"base64":return ne(I).length;default:if(J)return W?-1:ce(I).length;A=(""+A).toLowerCase(),J=!0}}U.byteLength=et;function ot(I,A,R){let W=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0,A>>>=0,R<=A))return"";for(I||(I="utf8");;)switch(I){case"hex":return Oe(this,A,R);case"utf8":case"utf-8":return Ft(this,A,R);case"ascii":return Ne(this,A,R);case"latin1":case"binary":return ft(this,A,R);case"base64":return St(this,A,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,A,R);default:if(W)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),W=!0}}U.prototype._isBuffer=!0;function V(I,A,R){const W=I[A];I[A]=I[R],I[R]=W}U.prototype.swap16=function(){const A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;R<A;R+=2)V(this,R,R+1);return this},U.prototype.swap32=function(){const A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let R=0;R<A;R+=4)V(this,R,R+3),V(this,R+1,R+2);return this},U.prototype.swap64=function(){const A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let R=0;R<A;R+=8)V(this,R,R+7),V(this,R+1,R+6),V(this,R+2,R+5),V(this,R+3,R+4);return this},U.prototype.toString=function(){const A=this.length;return A===0?"":arguments.length===0?Ft(this,0,A):ot.apply(this,arguments)},U.prototype.toLocaleString=U.prototype.toString,U.prototype.equals=function(A){if(!U.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:U.compare(this,A)===0},U.prototype.inspect=function(){let A="";const R=S.INSPECT_MAX_BYTES;return A=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(A+=" ... "),"<Buffer "+A+">"},k&&(U.prototype[k]=U.prototype.inspect),U.prototype.compare=function(A,R,W,J,rt){if(Rn(A,L)&&(A=U.from(A,A.offset,A.byteLength)),!U.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(R===void 0&&(R=0),W===void 0&&(W=A?A.length:0),J===void 0&&(J=0),rt===void 0&&(rt=this.length),R<0||W>A.length||J<0||rt>this.length)throw new RangeError("out of range index");if(J>=rt&&R>=W)return 0;if(J>=rt)return-1;if(R>=W)return 1;if(R>>>=0,W>>>=0,J>>>=0,rt>>>=0,this===A)return 0;let pt=rt-J,Vt=W-R;const we=Math.min(pt,Vt),pe=this.slice(J,rt),xe=A.slice(R,W);for(let oe=0;oe<we;++oe)if(pe[oe]!==xe[oe]){pt=pe[oe],Vt=xe[oe];break}return pt<Vt?-1:Vt<pt?1:0};function X(I,A,R,W,J){if(I.length===0)return-1;if(typeof R=="string"?(W=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,cs(R)&&(R=J?0:I.length-1),R<0&&(R=I.length+R),R>=I.length){if(J)return-1;R=I.length-1}else if(R<0)if(J)R=0;else return-1;if(typeof A=="string"&&(A=U.from(A,W)),U.isBuffer(A))return A.length===0?-1:lt(I,A,R,W,J);if(typeof A=="number")return A=A&255,typeof L.prototype.indexOf=="function"?J?L.prototype.indexOf.call(I,A,R):L.prototype.lastIndexOf.call(I,A,R):lt(I,[A],R,W,J);throw new TypeError("val must be string, number or Buffer")}function lt(I,A,R,W,J){let rt=1,pt=I.length,Vt=A.length;if(W!==void 0&&(W=String(W).toLowerCase(),W==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(I.length<2||A.length<2)return-1;rt=2,pt/=2,Vt/=2,R/=2}function we(xe,oe){return rt===1?xe[oe]:xe.readUInt16BE(oe*rt)}let pe;if(J){let xe=-1;for(pe=R;pe<pt;pe++)if(we(I,pe)===we(A,xe===-1?0:pe-xe)){if(xe===-1&&(xe=pe),pe-xe+1===Vt)return xe*rt}else xe!==-1&&(pe-=pe-xe),xe=-1}else for(R+Vt>pt&&(R=pt-Vt),pe=R;pe>=0;pe--){let xe=!0;for(let oe=0;oe<Vt;oe++)if(we(I,pe+oe)!==we(A,oe)){xe=!1;break}if(xe)return pe}return-1}U.prototype.includes=function(A,R,W){return this.indexOf(A,R,W)!==-1},U.prototype.indexOf=function(A,R,W){return X(this,A,R,W,!0)},U.prototype.lastIndexOf=function(A,R,W){return X(this,A,R,W,!1)};function mt(I,A,R,W){R=Number(R)||0;const J=I.length-R;W?(W=Number(W),W>J&&(W=J)):W=J;const rt=A.length;W>rt/2&&(W=rt/2);let pt;for(pt=0;pt<W;++pt){const Vt=parseInt(A.substr(pt*2,2),16);if(cs(Vt))return pt;I[R+pt]=Vt}return pt}function yt(I,A,R,W){return Qr(ce(A,I.length-R),I,R,W)}function D(I,A,R,W){return Qr(fe(A),I,R,W)}function j(I,A,R,W){return Qr(ne(A),I,R,W)}function ut(I,A,R,W){return Qr(de(A,I.length-R),I,R,W)}U.prototype.write=function(A,R,W,J){if(R===void 0)J="utf8",W=this.length,R=0;else if(W===void 0&&typeof R=="string")J=R,W=this.length,R=0;else if(isFinite(R))R=R>>>0,isFinite(W)?(W=W>>>0,J===void 0&&(J="utf8")):(J=W,W=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const rt=this.length-R;if((W===void 0||W>rt)&&(W=rt),A.length>0&&(W<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");let pt=!1;for(;;)switch(J){case"hex":return mt(this,A,R,W);case"utf8":case"utf-8":return yt(this,A,R,W);case"ascii":case"latin1":case"binary":return D(this,A,R,W);case"base64":return j(this,A,R,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,A,R,W);default:if(pt)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),pt=!0}},U.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function St(I,A,R){return A===0&&R===I.length?O.fromByteArray(I):O.fromByteArray(I.slice(A,R))}function Ft(I,A,R){R=Math.min(I.length,R);const W=[];let J=A;for(;J<R;){const rt=I[J];let pt=null,Vt=rt>239?4:rt>223?3:rt>191?2:1;if(J+Vt<=R){let we,pe,xe,oe;switch(Vt){case 1:rt<128&&(pt=rt);break;case 2:we=I[J+1],(we&192)===128&&(oe=(rt&31)<<6|we&63,oe>127&&(pt=oe));break;case 3:we=I[J+1],pe=I[J+2],(we&192)===128&&(pe&192)===128&&(oe=(rt&15)<<12|(we&63)<<6|pe&63,oe>2047&&(oe<55296||oe>57343)&&(pt=oe));break;case 4:we=I[J+1],pe=I[J+2],xe=I[J+3],(we&192)===128&&(pe&192)===128&&(xe&192)===128&&(oe=(rt&15)<<18|(we&63)<<12|(pe&63)<<6|xe&63,oe>65535&&oe<1114112&&(pt=oe))}}pt===null?(pt=65533,Vt=1):pt>65535&&(pt-=65536,W.push(pt>>>10&1023|55296),pt=56320|pt&1023),W.push(pt),J+=Vt}return Tt(W)}const Rt=4096;function Tt(I){const A=I.length;if(A<=Rt)return String.fromCharCode.apply(String,I);let R="",W=0;for(;W<A;)R+=String.fromCharCode.apply(String,I.slice(W,W+=Rt));return R}function Ne(I,A,R){let W="";R=Math.min(I.length,R);for(let J=A;J<R;++J)W+=String.fromCharCode(I[J]&127);return W}function ft(I,A,R){let W="";R=Math.min(I.length,R);for(let J=A;J<R;++J)W+=String.fromCharCode(I[J]);return W}function Oe(I,A,R){const W=I.length;(!A||A<0)&&(A=0),(!R||R<0||R>W)&&(R=W);let J="";for(let rt=A;rt<R;++rt)J+=zl[I[rt]];return J}function ue(I,A,R){const W=I.slice(A,R);let J="";for(let rt=0;rt<W.length-1;rt+=2)J+=String.fromCharCode(W[rt]+W[rt+1]*256);return J}U.prototype.slice=function(A,R){const W=this.length;A=~~A,R=R===void 0?W:~~R,A<0?(A+=W,A<0&&(A=0)):A>W&&(A=W),R<0?(R+=W,R<0&&(R=0)):R>W&&(R=W),R<A&&(R=A);const J=this.subarray(A,R);return Object.setPrototypeOf(J,U.prototype),J};function te(I,A,R){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+A>R)throw new RangeError("Trying to access beyond buffer length")}U.prototype.readUintLE=U.prototype.readUIntLE=function(A,R,W){A=A>>>0,R=R>>>0,W||te(A,R,this.length);let J=this[A],rt=1,pt=0;for(;++pt<R&&(rt*=256);)J+=this[A+pt]*rt;return J},U.prototype.readUintBE=U.prototype.readUIntBE=function(A,R,W){A=A>>>0,R=R>>>0,W||te(A,R,this.length);let J=this[A+--R],rt=1;for(;R>0&&(rt*=256);)J+=this[A+--R]*rt;return J},U.prototype.readUint8=U.prototype.readUInt8=function(A,R){return A=A>>>0,R||te(A,1,this.length),this[A]},U.prototype.readUint16LE=U.prototype.readUInt16LE=function(A,R){return A=A>>>0,R||te(A,2,this.length),this[A]|this[A+1]<<8},U.prototype.readUint16BE=U.prototype.readUInt16BE=function(A,R){return A=A>>>0,R||te(A,2,this.length),this[A]<<8|this[A+1]},U.prototype.readUint32LE=U.prototype.readUInt32LE=function(A,R){return A=A>>>0,R||te(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},U.prototype.readUint32BE=U.prototype.readUInt32BE=function(A,R){return A=A>>>0,R||te(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},U.prototype.readBigUInt64LE=Zn(function(A){A=A>>>0,K(A,"offset");const R=this[A],W=this[A+7];(R===void 0||W===void 0)&&nt(A,this.length-8);const J=R+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,rt=this[++A]+this[++A]*2**8+this[++A]*2**16+W*2**24;return BigInt(J)+(BigInt(rt)<<BigInt(32))}),U.prototype.readBigUInt64BE=Zn(function(A){A=A>>>0,K(A,"offset");const R=this[A],W=this[A+7];(R===void 0||W===void 0)&&nt(A,this.length-8);const J=R*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],rt=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+W;return(BigInt(J)<<BigInt(32))+BigInt(rt)}),U.prototype.readIntLE=function(A,R,W){A=A>>>0,R=R>>>0,W||te(A,R,this.length);let J=this[A],rt=1,pt=0;for(;++pt<R&&(rt*=256);)J+=this[A+pt]*rt;return rt*=128,J>=rt&&(J-=Math.pow(2,8*R)),J},U.prototype.readIntBE=function(A,R,W){A=A>>>0,R=R>>>0,W||te(A,R,this.length);let J=R,rt=1,pt=this[A+--J];for(;J>0&&(rt*=256);)pt+=this[A+--J]*rt;return rt*=128,pt>=rt&&(pt-=Math.pow(2,8*R)),pt},U.prototype.readInt8=function(A,R){return A=A>>>0,R||te(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},U.prototype.readInt16LE=function(A,R){A=A>>>0,R||te(A,2,this.length);const W=this[A]|this[A+1]<<8;return W&32768?W|4294901760:W},U.prototype.readInt16BE=function(A,R){A=A>>>0,R||te(A,2,this.length);const W=this[A+1]|this[A]<<8;return W&32768?W|4294901760:W},U.prototype.readInt32LE=function(A,R){return A=A>>>0,R||te(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},U.prototype.readInt32BE=function(A,R){return A=A>>>0,R||te(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},U.prototype.readBigInt64LE=Zn(function(A){A=A>>>0,K(A,"offset");const R=this[A],W=this[A+7];(R===void 0||W===void 0)&&nt(A,this.length-8);const J=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+(W<<24);return(BigInt(J)<<BigInt(32))+BigInt(R+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24)}),U.prototype.readBigInt64BE=Zn(function(A){A=A>>>0,K(A,"offset");const R=this[A],W=this[A+7];(R===void 0||W===void 0)&&nt(A,this.length-8);const J=(R<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(J)<<BigInt(32))+BigInt(this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+W)}),U.prototype.readFloatLE=function(A,R){return A=A>>>0,R||te(A,4,this.length),w.read(this,A,!0,23,4)},U.prototype.readFloatBE=function(A,R){return A=A>>>0,R||te(A,4,this.length),w.read(this,A,!1,23,4)},U.prototype.readDoubleLE=function(A,R){return A=A>>>0,R||te(A,8,this.length),w.read(this,A,!0,52,8)},U.prototype.readDoubleBE=function(A,R){return A=A>>>0,R||te(A,8,this.length),w.read(this,A,!1,52,8)};function re(I,A,R,W,J,rt){if(!U.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>J||A<rt)throw new RangeError('"value" argument is out of bounds');if(R+W>I.length)throw new RangeError("Index out of range")}U.prototype.writeUintLE=U.prototype.writeUIntLE=function(A,R,W,J){if(A=+A,R=R>>>0,W=W>>>0,!J){const Vt=Math.pow(2,8*W)-1;re(this,A,R,W,Vt,0)}let rt=1,pt=0;for(this[R]=A&255;++pt<W&&(rt*=256);)this[R+pt]=A/rt&255;return R+W},U.prototype.writeUintBE=U.prototype.writeUIntBE=function(A,R,W,J){if(A=+A,R=R>>>0,W=W>>>0,!J){const Vt=Math.pow(2,8*W)-1;re(this,A,R,W,Vt,0)}let rt=W-1,pt=1;for(this[R+rt]=A&255;--rt>=0&&(pt*=256);)this[R+rt]=A/pt&255;return R+W},U.prototype.writeUint8=U.prototype.writeUInt8=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,1,255,0),this[R]=A&255,R+1},U.prototype.writeUint16LE=U.prototype.writeUInt16LE=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,2,65535,0),this[R]=A&255,this[R+1]=A>>>8,R+2},U.prototype.writeUint16BE=U.prototype.writeUInt16BE=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,2,65535,0),this[R]=A>>>8,this[R+1]=A&255,R+2},U.prototype.writeUint32LE=U.prototype.writeUInt32LE=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,4,4294967295,0),this[R+3]=A>>>24,this[R+2]=A>>>16,this[R+1]=A>>>8,this[R]=A&255,R+4},U.prototype.writeUint32BE=U.prototype.writeUInt32BE=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,4,4294967295,0),this[R]=A>>>24,this[R+1]=A>>>16,this[R+2]=A>>>8,this[R+3]=A&255,R+4};function ze(I,A,R,W,J){q(A,W,J,I,R,7);let rt=Number(A&BigInt(4294967295));I[R++]=rt,rt=rt>>8,I[R++]=rt,rt=rt>>8,I[R++]=rt,rt=rt>>8,I[R++]=rt;let pt=Number(A>>BigInt(32)&BigInt(4294967295));return I[R++]=pt,pt=pt>>8,I[R++]=pt,pt=pt>>8,I[R++]=pt,pt=pt>>8,I[R++]=pt,R}function ke(I,A,R,W,J){q(A,W,J,I,R,7);let rt=Number(A&BigInt(4294967295));I[R+7]=rt,rt=rt>>8,I[R+6]=rt,rt=rt>>8,I[R+5]=rt,rt=rt>>8,I[R+4]=rt;let pt=Number(A>>BigInt(32)&BigInt(4294967295));return I[R+3]=pt,pt=pt>>8,I[R+2]=pt,pt=pt>>8,I[R+1]=pt,pt=pt>>8,I[R]=pt,R+8}U.prototype.writeBigUInt64LE=Zn(function(A,R=0){return ze(this,A,R,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeBigUInt64BE=Zn(function(A,R=0){return ke(this,A,R,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeIntLE=function(A,R,W,J){if(A=+A,R=R>>>0,!J){const we=Math.pow(2,8*W-1);re(this,A,R,W,we-1,-we)}let rt=0,pt=1,Vt=0;for(this[R]=A&255;++rt<W&&(pt*=256);)A<0&&Vt===0&&this[R+rt-1]!==0&&(Vt=1),this[R+rt]=(A/pt>>0)-Vt&255;return R+W},U.prototype.writeIntBE=function(A,R,W,J){if(A=+A,R=R>>>0,!J){const we=Math.pow(2,8*W-1);re(this,A,R,W,we-1,-we)}let rt=W-1,pt=1,Vt=0;for(this[R+rt]=A&255;--rt>=0&&(pt*=256);)A<0&&Vt===0&&this[R+rt+1]!==0&&(Vt=1),this[R+rt]=(A/pt>>0)-Vt&255;return R+W},U.prototype.writeInt8=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,1,127,-128),A<0&&(A=255+A+1),this[R]=A&255,R+1},U.prototype.writeInt16LE=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,2,32767,-32768),this[R]=A&255,this[R+1]=A>>>8,R+2},U.prototype.writeInt16BE=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,2,32767,-32768),this[R]=A>>>8,this[R+1]=A&255,R+2},U.prototype.writeInt32LE=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,4,2147483647,-2147483648),this[R]=A&255,this[R+1]=A>>>8,this[R+2]=A>>>16,this[R+3]=A>>>24,R+4},U.prototype.writeInt32BE=function(A,R,W){return A=+A,R=R>>>0,W||re(this,A,R,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[R]=A>>>24,this[R+1]=A>>>16,this[R+2]=A>>>8,this[R+3]=A&255,R+4},U.prototype.writeBigInt64LE=Zn(function(A,R=0){return ze(this,A,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),U.prototype.writeBigInt64BE=Zn(function(A,R=0){return ke(this,A,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function on(I,A,R,W,J,rt){if(R+W>I.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function Ge(I,A,R,W,J){return A=+A,R=R>>>0,J||on(I,A,R,4),w.write(I,A,R,W,23,4),R+4}U.prototype.writeFloatLE=function(A,R,W){return Ge(this,A,R,!0,W)},U.prototype.writeFloatBE=function(A,R,W){return Ge(this,A,R,!1,W)};function ye(I,A,R,W,J){return A=+A,R=R>>>0,J||on(I,A,R,8),w.write(I,A,R,W,52,8),R+8}U.prototype.writeDoubleLE=function(A,R,W){return ye(this,A,R,!0,W)},U.prototype.writeDoubleBE=function(A,R,W){return ye(this,A,R,!1,W)},U.prototype.copy=function(A,R,W,J){if(!U.isBuffer(A))throw new TypeError("argument should be a Buffer");if(W||(W=0),!J&&J!==0&&(J=this.length),R>=A.length&&(R=A.length),R||(R=0),J>0&&J<W&&(J=W),J===W||A.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),A.length-R<J-W&&(J=A.length-R+W);const rt=J-W;return this===A&&typeof L.prototype.copyWithin=="function"?this.copyWithin(R,W,J):L.prototype.set.call(A,this.subarray(W,J),R),rt},U.prototype.fill=function(A,R,W,J){if(typeof A=="string"){if(typeof R=="string"?(J=R,R=0,W=this.length):typeof W=="string"&&(J=W,W=this.length),J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!U.isEncoding(J))throw new TypeError("Unknown encoding: "+J);if(A.length===1){const pt=A.charCodeAt(0);(J==="utf8"&&pt<128||J==="latin1")&&(A=pt)}}else typeof A=="number"?A=A&255:typeof A=="boolean"&&(A=Number(A));if(R<0||this.length<R||this.length<W)throw new RangeError("Out of range index");if(W<=R)return this;R=R>>>0,W=W===void 0?this.length:W>>>0,A||(A=0);let rt;if(typeof A=="number")for(rt=R;rt<W;++rt)this[rt]=A;else{const pt=U.isBuffer(A)?A:U.from(A,J),Vt=pt.length;if(Vt===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(rt=0;rt<W-R;++rt)this[rt+R]=pt[rt%Vt]}return this};const Mn={};function T(I,A,R){Mn[I]=class extends R{constructor(){super(),Object.defineProperty(this,"message",{value:A.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(J){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:J,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}T("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(I,A){return`The "${I}" argument must be of type number. Received type ${typeof A}`},TypeError),T("ERR_OUT_OF_RANGE",function(I,A,R){let W=`The value of "${I}" is out of range.`,J=R;return Number.isInteger(R)&&Math.abs(R)>2**32?J=E(String(R)):typeof R=="bigint"&&(J=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(J=E(J)),J+="n"),W+=` It must be ${A}. Received ${J}`,W},RangeError);function E(I){let A="",R=I.length;const W=I[0]==="-"?1:0;for(;R>=W+4;R-=3)A=`_${I.slice(R-3,R)}${A}`;return`${I.slice(0,R)}${A}`}function M(I,A,R){K(A,"offset"),(I[A]===void 0||I[A+R]===void 0)&&nt(A,I.length-(R+1))}function q(I,A,R,W,J,rt){if(I>R||I<A){const pt=typeof A=="bigint"?"n":"";let Vt;throw A===0||A===BigInt(0)?Vt=`>= 0${pt} and < 2${pt} ** ${(rt+1)*8}${pt}`:Vt=`>= -(2${pt} ** ${(rt+1)*8-1}${pt}) and < 2 ** ${(rt+1)*8-1}${pt}`,new Mn.ERR_OUT_OF_RANGE("value",Vt,I)}M(W,J,rt)}function K(I,A){if(typeof I!="number")throw new Mn.ERR_INVALID_ARG_TYPE(A,"number",I)}function nt(I,A,R){throw Math.floor(I)!==I?(K(I,R),new Mn.ERR_OUT_OF_RANGE("offset","an integer",I)):A<0?new Mn.ERR_BUFFER_OUT_OF_BOUNDS:new Mn.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${A}`,I)}const ht=/[^+/0-9A-Za-z-_]/g;function Ut(I){if(I=I.split("=")[0],I=I.trim().replace(ht,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function ce(I,A){A=A||1/0;let R;const W=I.length;let J=null;const rt=[];for(let pt=0;pt<W;++pt){if(R=I.charCodeAt(pt),R>55295&&R<57344){if(!J){if(R>56319){(A-=3)>-1&&rt.push(239,191,189);continue}else if(pt+1===W){(A-=3)>-1&&rt.push(239,191,189);continue}J=R;continue}if(R<56320){(A-=3)>-1&&rt.push(239,191,189),J=R;continue}R=(J-55296<<10|R-56320)+65536}else J&&(A-=3)>-1&&rt.push(239,191,189);if(J=null,R<128){if((A-=1)<0)break;rt.push(R)}else if(R<2048){if((A-=2)<0)break;rt.push(R>>6|192,R&63|128)}else if(R<65536){if((A-=3)<0)break;rt.push(R>>12|224,R>>6&63|128,R&63|128)}else if(R<1114112){if((A-=4)<0)break;rt.push(R>>18|240,R>>12&63|128,R>>6&63|128,R&63|128)}else throw new Error("Invalid code point")}return rt}function fe(I){const A=[];for(let R=0;R<I.length;++R)A.push(I.charCodeAt(R)&255);return A}function de(I,A){let R,W,J;const rt=[];for(let pt=0;pt<I.length&&!((A-=2)<0);++pt)R=I.charCodeAt(pt),W=R>>8,J=R%256,rt.push(J),rt.push(W);return rt}function ne(I){return O.toByteArray(Ut(I))}function Qr(I,A,R,W){let J;for(J=0;J<W&&!(J+R>=A.length||J>=I.length);++J)A[J+R]=I[J];return J}function Rn(I,A){return I instanceof A||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===A.name}function cs(I){return I!==I}const zl=function(){const I="0123456789abcdef",A=new Array(256);for(let R=0;R<16;++R){const W=R*16;for(let J=0;J<16;++J)A[W+J]=I[R]+I[J]}return A}();function Zn(I){return typeof BigInt>"u"?bo:I}function bo(){throw new Error("BigInt not supported")}})(t);const b=t.Buffer;n.Blob=t.Blob,n.BlobOptions=t.BlobOptions,n.Buffer=t.Buffer,n.File=t.File,n.FileOptions=t.FileOptions,n.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,n.SlowBuffer=t.SlowBuffer,n.TranscodeEncoding=t.TranscodeEncoding,n.atob=t.atob,n.btoa=t.btoa,n.constants=t.constants,n.default=b,n.isAscii=t.isAscii,n.isUtf8=t.isUtf8,n.kMaxLength=t.kMaxLength,n.kStringMaxLength=t.kStringMaxLength,n.resolveObjectURL=t.resolveObjectURL,n.transcode=t.transcode}(hf)),hf}var df,Py;function rR(){if(Py)return df;Py=1;function n(p,v){var _=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);v&&(b=b.filter(function(S){return Object.getOwnPropertyDescriptor(p,S).enumerable})),_.push.apply(_,b)}return _}function t(p){for(var v=1;v<arguments.length;v++){var _=arguments[v]!=null?arguments[v]:{};v%2?n(Object(_),!0).forEach(function(b){e(p,b,_[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(_)):n(Object(_)).forEach(function(b){Object.defineProperty(p,b,Object.getOwnPropertyDescriptor(_,b))})}return p}function e(p,v,_){return v=a(v),v in p?Object.defineProperty(p,v,{value:_,enumerable:!0,configurable:!0,writable:!0}):p[v]=_,p}function r(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function i(p,v){for(var _=0;_<v.length;_++){var b=v[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,a(b.key),b)}}function s(p,v,_){return v&&i(p.prototype,v),Object.defineProperty(p,"prototype",{writable:!1}),p}function a(p){var v=l(p,"string");return typeof v=="symbol"?v:String(v)}function l(p,v){if(typeof p!="object"||p===null)return p;var _=p[Symbol.toPrimitive];if(_!==void 0){var b=_.call(p,v);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}var c=Tl(),h=c.Buffer,f=as(),g=f.inspect,d=g&&g.custom||"inspect";function m(p,v,_){h.prototype.copy.call(p,v,_)}return df=function(){function p(){r(this,p),this.head=null,this.tail=null,this.length=0}return s(p,[{key:"push",value:function(_){var b={data:_,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(_){var b={data:_,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var _=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,_}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(_){if(this.length===0)return"";for(var b=this.head,S=""+b.data;b=b.next;)S+=_+b.data;return S}},{key:"concat",value:function(_){if(this.length===0)return h.alloc(0);for(var b=h.allocUnsafe(_>>>0),S=this.head,O=0;S;)m(S.data,b,O),O+=S.data.length,S=S.next;return b}},{key:"consume",value:function(_,b){var S;return _<this.head.data.length?(S=this.head.data.slice(0,_),this.head.data=this.head.data.slice(_)):_===this.head.data.length?S=this.shift():S=b?this._getString(_):this._getBuffer(_),S}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(_){var b=this.head,S=1,O=b.data;for(_-=O.length;b=b.next;){var w=b.data,k=_>w.length?w.length:_;if(k===w.length?O+=w:O+=w.slice(0,_),_-=k,_===0){k===w.length?(++S,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=w.slice(k));break}++S}return this.length-=S,O}},{key:"_getBuffer",value:function(_){var b=h.allocUnsafe(_),S=this.head,O=1;for(S.data.copy(b),_-=S.data.length;S=S.next;){var w=S.data,k=_>w.length?w.length:_;if(w.copy(b,b.length-_,0,k),_-=k,_===0){k===w.length?(++O,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=w.slice(k));break}++O}return this.length-=O,b}},{key:d,value:function(_,b){return g(this,t(t({},b),{},{depth:0,customInspect:!1}))}}]),p}(),df}var pf,Cy;function lb(){if(Cy)return pf;Cy=1;function n(a,l){var c=this,h=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return h||f?(l?l(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Qt.nextTick(i,this,a)):Qt.nextTick(i,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(g){!l&&g?c._writableState?c._writableState.errorEmitted?Qt.nextTick(e,c):(c._writableState.errorEmitted=!0,Qt.nextTick(t,c,g)):Qt.nextTick(t,c,g):l?(Qt.nextTick(e,c),l(g)):Qt.nextTick(e,c)}),this)}function t(a,l){i(a,l),e(a)}function e(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(a,l){a.emit("error",l)}function s(a,l){var c=a._readableState,h=a._writableState;c&&c.autoDestroy||h&&h.autoDestroy?a.destroy(l):a.emit("error",l)}return pf={destroy:n,undestroy:r,errorOrDestroy:s},pf}var gf={},Ly;function ls(){if(Ly)return gf;Ly=1;function n(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,l.__proto__=c}var t={};function e(l,c,h){h||(h=Error);function f(d,m,p){return typeof c=="string"?c:c(d,m,p)}var g=function(d){n(m,d);function m(p,v,_){return d.call(this,f(p,v,_))||this}return m}(h);g.prototype.name=h.name,g.prototype.code=l,t[l]=g}function r(l,c){if(Array.isArray(l)){var h=l.length;return l=l.map(function(f){return String(f)}),h>2?"one of ".concat(c," ").concat(l.slice(0,h-1).join(", "),", or ")+l[h-1]:h===2?"one of ".concat(c," ").concat(l[0]," or ").concat(l[1]):"of ".concat(c," ").concat(l[0])}else return"of ".concat(c," ").concat(String(l))}function i(l,c,h){return l.substr(0,c.length)===c}function s(l,c,h){return(h===void 0||h>l.length)&&(h=l.length),l.substring(h-c.length,h)===c}function a(l,c,h){return typeof h!="number"&&(h=0),h+c.length>l.length?!1:l.indexOf(c,h)!==-1}return e("ERR_INVALID_OPT_VALUE",function(l,c){return'The value "'+c+'" is invalid for option "'+l+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(l,c,h){var f;typeof c=="string"&&i(c,"not ")?(f="must not be",c=c.replace(/^not /,"")):f="must be";var g;if(s(l," argument"))g="The ".concat(l," ").concat(f," ").concat(r(c,"type"));else{var d=a(l,".")?"property":"argument";g='The "'.concat(l,'" ').concat(d," ").concat(f," ").concat(r(c,"type"))}return g+=". Received type ".concat(typeof h),g},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(l){return"The "+l+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(l){return"Cannot call "+l+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(l){return"Unknown encoding: "+l},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),gf.codes=t,gf}var mf,Ty;function ub(){if(Ty)return mf;Ty=1;var n=ls().codes.ERR_INVALID_OPT_VALUE;function t(r,i,s){return r.highWaterMark!=null?r.highWaterMark:i?r[s]:null}function e(r,i,s,a){var l=t(i,a,s);if(l!=null){if(!(isFinite(l)&&Math.floor(l)===l)||l<0){var c=a?s:"highWaterMark";throw new n(c,l)}return Math.floor(l)}return r.objectMode?16:16*1024}return mf={getHighWaterMark:e},mf}var yf,Iy;function iR(){if(Iy)return yf;Iy=1,yf=n;function n(e,r){if(t("noDeprecation"))return e;var i=!1;function s(){if(!i){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return e.apply(this,arguments)}return s}function t(e){try{if(!We.localStorage)return!1}catch{return!1}var r=We.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}return yf}var vf,By;function cb(){if(By)return vf;By=1,vf=N;function n(V){var X=this;this.next=null,this.entry=null,this.finish=function(){ot(X,V)}}var t;N.WritableState=C;var e={deprecate:iR()},r=ab(),i=Tl().Buffer,s=(typeof We<"u"?We:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(V){return i.from(V)}function l(V){return i.isBuffer(V)||V instanceof s}var c=lb(),h=ub(),f=h.getHighWaterMark,g=ls().codes,d=g.ERR_INVALID_ARG_TYPE,m=g.ERR_METHOD_NOT_IMPLEMENTED,p=g.ERR_MULTIPLE_CALLBACK,v=g.ERR_STREAM_CANNOT_PIPE,_=g.ERR_STREAM_DESTROYED,b=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,O=g.ERR_UNKNOWN_ENCODING,w=c.errorOrDestroy;Si()(N,r);function k(){}function C(V,X,lt){t=t||Zi(),V=V||{},typeof lt!="boolean"&&(lt=X instanceof t),this.objectMode=!!V.objectMode,lt&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=f(this,V,"writableHighWaterMark",lt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var mt=V.decodeStrings===!1;this.decodeStrings=!mt,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(yt){at(X,yt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var X=this.bufferedRequest,lt=[];X;)lt.push(X),X=X.next;return lt},function(){try{Object.defineProperty(C.prototype,"buffer",{get:e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(X){return L.call(this,X)?!0:this!==N?!1:X&&X._writableState instanceof C}})):L=function(X){return X instanceof this};function N(V){t=t||Zi();var X=this instanceof t;if(!X&&!L.call(N,this))return new N(V);this._writableState=new C(V,this,X),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),r.call(this)}N.prototype.pipe=function(){w(this,new v)};function Y(V,X){var lt=new S;w(V,lt),Qt.nextTick(X,lt)}function z(V,X,lt,mt){var yt;return lt===null?yt=new b:typeof lt!="string"&&!X.objectMode&&(yt=new d("chunk",["string","Buffer"],lt)),yt?(w(V,yt),Qt.nextTick(mt,yt),!1):!0}N.prototype.write=function(V,X,lt){var mt=this._writableState,yt=!1,D=!mt.objectMode&&l(V);return D&&!i.isBuffer(V)&&(V=a(V)),typeof X=="function"&&(lt=X,X=null),D?X="buffer":X||(X=mt.defaultEncoding),typeof lt!="function"&&(lt=k),mt.ending?Y(this,lt):(D||z(this,mt,V,lt))&&(mt.pendingcb++,yt=U(this,mt,D,V,X,lt)),yt},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&Et(this,V))},N.prototype.setDefaultEncoding=function(X){if(typeof X=="string"&&(X=X.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((X+"").toLowerCase())>-1))throw new O(X);return this._writableState.defaultEncoding=X,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(V,X,lt){return!V.objectMode&&V.decodeStrings!==!1&&typeof X=="string"&&(X=i.from(X,lt)),X}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function U(V,X,lt,mt,yt,D){if(!lt){var j=G(X,mt,yt);mt!==j&&(lt=!0,yt="buffer",mt=j)}var ut=X.objectMode?1:mt.length;X.length+=ut;var St=X.length<X.highWaterMark;if(St||(X.needDrain=!0),X.writing||X.corked){var Ft=X.lastBufferedRequest;X.lastBufferedRequest={chunk:mt,encoding:yt,isBuf:lt,callback:D,next:null},Ft?Ft.next=X.lastBufferedRequest:X.bufferedRequest=X.lastBufferedRequest,X.bufferedRequestCount+=1}else xt(V,X,!1,ut,mt,yt,D);return St}function xt(V,X,lt,mt,yt,D,j){X.writelen=mt,X.writecb=j,X.writing=!0,X.sync=!0,X.destroyed?X.onwrite(new _("write")):lt?V._writev(yt,X.onwrite):V._write(yt,D,X.onwrite),X.sync=!1}function dt(V,X,lt,mt,yt){--X.pendingcb,lt?(Qt.nextTick(yt,mt),Qt.nextTick(Q,V,X),V._writableState.errorEmitted=!0,w(V,mt)):(yt(mt),V._writableState.errorEmitted=!0,w(V,mt),Q(V,X))}function st(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function at(V,X){var lt=V._writableState,mt=lt.sync,yt=lt.writecb;if(typeof yt!="function")throw new p;if(st(lt),X)dt(V,lt,mt,X,yt);else{var D=kt(lt)||V.destroyed;!D&&!lt.corked&&!lt.bufferProcessing&<.bufferedRequest&&Et(V,lt),mt?Qt.nextTick(_t,V,lt,D,yt):_t(V,lt,D,yt)}}function _t(V,X,lt,mt){lt||bt(V,X),X.pendingcb--,mt(),Q(V,X)}function bt(V,X){X.length===0&&X.needDrain&&(X.needDrain=!1,V.emit("drain"))}function Et(V,X){X.bufferProcessing=!0;var lt=X.bufferedRequest;if(V._writev&<&<.next){var mt=X.bufferedRequestCount,yt=new Array(mt),D=X.corkedRequestsFree;D.entry=lt;for(var j=0,ut=!0;lt;)yt[j]=lt,lt.isBuf||(ut=!1),lt=lt.next,j+=1;yt.allBuffers=ut,xt(V,X,!0,X.length,yt,"",D.finish),X.pendingcb++,X.lastBufferedRequest=null,D.next?(X.corkedRequestsFree=D.next,D.next=null):X.corkedRequestsFree=new n(X),X.bufferedRequestCount=0}else{for(;lt;){var St=lt.chunk,Ft=lt.encoding,Rt=lt.callback,Tt=X.objectMode?1:St.length;if(xt(V,X,!1,Tt,St,Ft,Rt),lt=lt.next,X.bufferedRequestCount--,X.writing)break}lt===null&&(X.lastBufferedRequest=null)}X.bufferedRequest=lt,X.bufferProcessing=!1}N.prototype._write=function(V,X,lt){lt(new m("_write()"))},N.prototype._writev=null,N.prototype.end=function(V,X,lt){var mt=this._writableState;return typeof V=="function"?(lt=V,V=null,X=null):typeof X=="function"&&(lt=X,X=null),V!=null&&this.write(V,X),mt.corked&&(mt.corked=1,this.uncork()),mt.ending||et(this,mt,lt),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function kt(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function Ct(V,X){V._final(function(lt){X.pendingcb--,lt&&w(V,lt),X.prefinished=!0,V.emit("prefinish"),Q(V,X)})}function Lt(V,X){!X.prefinished&&!X.finalCalled&&(typeof V._final=="function"&&!X.destroyed?(X.pendingcb++,X.finalCalled=!0,Qt.nextTick(Ct,V,X)):(X.prefinished=!0,V.emit("prefinish")))}function Q(V,X){var lt=kt(X);if(lt&&(Lt(V,X),X.pendingcb===0&&(X.finished=!0,V.emit("finish"),X.autoDestroy))){var mt=V._readableState;(!mt||mt.autoDestroy&&mt.endEmitted)&&V.destroy()}return lt}function et(V,X,lt){X.ending=!0,Q(V,X),lt&&(X.finished?Qt.nextTick(lt):V.once("finish",lt)),X.ended=!0,V.writable=!1}function ot(V,X,lt){var mt=V.entry;for(V.entry=null;mt;){var yt=mt.callback;X.pendingcb--,yt(lt),mt=mt.next}X.corkedRequestsFree.next=V}return Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(X){this._writableState&&(this._writableState.destroyed=X)}}),N.prototype.destroy=c.destroy,N.prototype._undestroy=c.undestroy,N.prototype._destroy=function(V,X){X(V)},vf}var bf,Dy;function Zi(){if(Dy)return bf;Dy=1;var n=Object.keys||function(h){var f=[];for(var g in h)f.push(g);return f};bf=a;var t=fb(),e=cb();Si()(a,t);for(var r=n(e.prototype),i=0;i<r.length;i++){var s=r[i];a.prototype[s]||(a.prototype[s]=e.prototype[s])}function a(h){if(!(this instanceof a))return new a(h);t.call(this,h),e.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||Qt.nextTick(c,this)}function c(h){h.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=f,this._writableState.destroyed=f)}}),bf}var _f={},Na={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Fy;function sR(){return Fy||(Fy=1,function(n,t){var e=Tl(),r=e.Buffer;function i(a,l){for(var c in a)l[c]=a[c]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?n.exports=e:(i(e,t),t.Buffer=s);function s(a,l,c){return r(a,l,c)}s.prototype=Object.create(r.prototype),i(r,s),s.from=function(a,l,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,l,c)},s.alloc=function(a,l,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var h=r(a);return l!==void 0?typeof c=="string"?h.fill(l,c):h.fill(l):h.fill(0),h},s.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},s.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}}(Na,Na.exports)),Na.exports}var Ny;function jy(){if(Ny)return _f;Ny=1;var n=sR().Buffer,t=n.isEncoding||function(b){switch(b=""+b,b&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function e(b){if(!b)return"utf8";for(var S;;)switch(b){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return b;default:if(S)return;b=(""+b).toLowerCase(),S=!0}}function r(b){var S=e(b);if(typeof S!="string"&&(n.isEncoding===t||!t(b)))throw new Error("Unknown encoding: "+b);return S||b}_f.StringDecoder=i;function i(b){this.encoding=r(b);var S;switch(this.encoding){case"utf16le":this.text=g,this.end=d,S=4;break;case"utf8":this.fillLast=c,S=4;break;case"base64":this.text=m,this.end=p,S=3;break;default:this.write=v,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(S)}i.prototype.write=function(b){if(b.length===0)return"";var S,O;if(this.lastNeed){if(S=this.fillLast(b),S===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<b.length?S?S+this.text(b,O):this.text(b,O):S||""},i.prototype.end=f,i.prototype.text=h,i.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length};function s(b){return b<=127?0:b>>5===6?2:b>>4===14?3:b>>3===30?4:b>>6===2?-1:-2}function a(b,S,O){var w=S.length-1;if(w<O)return 0;var k=s(S[w]);return k>=0?(k>0&&(b.lastNeed=k-1),k):--w<O||k===-2?0:(k=s(S[w]),k>=0?(k>0&&(b.lastNeed=k-2),k):--w<O||k===-2?0:(k=s(S[w]),k>=0?(k>0&&(k===2?k=0:b.lastNeed=k-3),k):0))}function l(b,S,O){if((S[0]&192)!==128)return b.lastNeed=0,"�";if(b.lastNeed>1&&S.length>1){if((S[1]&192)!==128)return b.lastNeed=1,"�";if(b.lastNeed>2&&S.length>2&&(S[2]&192)!==128)return b.lastNeed=2,"�"}}function c(b){var S=this.lastTotal-this.lastNeed,O=l(this,b);if(O!==void 0)return O;if(this.lastNeed<=b.length)return b.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,S,0,b.length),this.lastNeed-=b.length}function h(b,S){var O=a(this,b,S);if(!this.lastNeed)return b.toString("utf8",S);this.lastTotal=O;var w=b.length-(O-this.lastNeed);return b.copy(this.lastChar,0,w),b.toString("utf8",S,w)}function f(b){var S=b&&b.length?this.write(b):"";return this.lastNeed?S+"�":S}function g(b,S){if((b.length-S)%2===0){var O=b.toString("utf16le",S);if(O){var w=O.charCodeAt(O.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",S,b.length-1)}function d(b){var S=b&&b.length?this.write(b):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,O)}return S}function m(b,S){var O=(b.length-S)%3;return O===0?b.toString("base64",S):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",S,b.length-O))}function p(b){var S=b&&b.length?this.write(b):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function v(b){return b.toString(this.encoding)}function _(b){return b&&b.length?this.write(b):""}return _f}var wf,Uy;function Ch(){if(Uy)return wf;Uy=1;var n=ls().codes.ERR_STREAM_PREMATURE_CLOSE;function t(s){var a=!1;return function(){if(!a){a=!0;for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];s.apply(this,c)}}}function e(){}function r(s){return s.setHeader&&typeof s.abort=="function"}function i(s,a,l){if(typeof a=="function")return i(s,null,a);a||(a={}),l=t(l||e);var c=a.readable||a.readable!==!1&&s.readable,h=a.writable||a.writable!==!1&&s.writable,f=function(){s.writable||d()},g=s._writableState&&s._writableState.finished,d=function(){h=!1,g=!0,c||l.call(s)},m=s._readableState&&s._readableState.endEmitted,p=function(){c=!1,m=!0,h||l.call(s)},v=function(O){l.call(s,O)},_=function(){var O;if(c&&!m)return(!s._readableState||!s._readableState.ended)&&(O=new n),l.call(s,O);if(h&&!g)return(!s._writableState||!s._writableState.ended)&&(O=new n),l.call(s,O)},b=function(){s.req.on("finish",d)};return r(s)?(s.on("complete",d),s.on("abort",_),s.req?b():s.on("request",b)):h&&!s._writableState&&(s.on("end",f),s.on("close",f)),s.on("end",p),s.on("finish",d),a.error!==!1&&s.on("error",v),s.on("close",_),function(){s.removeListener("complete",d),s.removeListener("abort",_),s.removeListener("request",b),s.req&&s.req.removeListener("finish",d),s.removeListener("end",f),s.removeListener("close",f),s.removeListener("finish",d),s.removeListener("end",p),s.removeListener("error",v),s.removeListener("close",_)}}return wf=i,wf}var xf,qy;function oR(){if(qy)return xf;qy=1;var n;function t(O,w,k){return w=e(w),w in O?Object.defineProperty(O,w,{value:k,enumerable:!0,configurable:!0,writable:!0}):O[w]=k,O}function e(O){var w=r(O,"string");return typeof w=="symbol"?w:String(w)}function r(O,w){if(typeof O!="object"||O===null)return O;var k=O[Symbol.toPrimitive];if(k!==void 0){var C=k.call(O,w);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(O)}var i=Ch(),s=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),f=Symbol("handlePromise"),g=Symbol("stream");function d(O,w){return{value:O,done:w}}function m(O){var w=O[s];if(w!==null){var k=O[g].read();k!==null&&(O[h]=null,O[s]=null,O[a]=null,w(d(k,!1)))}}function p(O){Qt.nextTick(m,O)}function v(O,w){return function(k,C){O.then(function(){if(w[c]){k(d(void 0,!0));return}w[f](k,C)},C)}}var _=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((n={get stream(){return this[g]},next:function(){var w=this,k=this[l];if(k!==null)return Promise.reject(k);if(this[c])return Promise.resolve(d(void 0,!0));if(this[g].destroyed)return new Promise(function(Y,z){Qt.nextTick(function(){w[l]?z(w[l]):Y(d(void 0,!0))})});var C=this[h],L;if(C)L=new Promise(v(C,this));else{var N=this[g].read();if(N!==null)return Promise.resolve(d(N,!1));L=new Promise(this[f])}return this[h]=L,L}},t(n,Symbol.asyncIterator,function(){return this}),t(n,"return",function(){var w=this;return new Promise(function(k,C){w[g].destroy(null,function(L){if(L){C(L);return}k(d(void 0,!0))})})}),n),_),S=function(w){var k,C=Object.create(b,(k={},t(k,g,{value:w,writable:!0}),t(k,s,{value:null,writable:!0}),t(k,a,{value:null,writable:!0}),t(k,l,{value:null,writable:!0}),t(k,c,{value:w._readableState.endEmitted,writable:!0}),t(k,f,{value:function(N,Y){var z=C[g].read();z?(C[h]=null,C[s]=null,C[a]=null,N(d(z,!1))):(C[s]=N,C[a]=Y)},writable:!0}),k));return C[h]=null,i(w,function(L){if(L&&L.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=C[a];N!==null&&(C[h]=null,C[s]=null,C[a]=null,N(L)),C[l]=L;return}var Y=C[s];Y!==null&&(C[h]=null,C[s]=null,C[a]=null,Y(d(void 0,!0))),C[c]=!0}),w.on("readable",p.bind(null,C)),C};return xf=S,xf}var Sf,Wy;function aR(){return Wy||(Wy=1,Sf=function(){throw new Error("Readable.from is not available in the browser")}),Sf}var Ef,Hy;function fb(){if(Hy)return Ef;Hy=1,Ef=Y;var n;Y.ReadableState=N,rs().EventEmitter;var t=function(j,ut){return j.listeners(ut).length},e=ab(),r=Tl().Buffer,i=(typeof We<"u"?We:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(D){return r.from(D)}function a(D){return r.isBuffer(D)||D instanceof i}var l=as(),c;l&&l.debuglog?c=l.debuglog("stream"):c=function(){};var h=rR(),f=lb(),g=ub(),d=g.getHighWaterMark,m=ls().codes,p=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,b=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,S,O,w;Si()(Y,e);var k=f.errorOrDestroy,C=["error","close","destroy","pause","resume"];function L(D,j,ut){if(typeof D.prependListener=="function")return D.prependListener(j,ut);!D._events||!D._events[j]?D.on(j,ut):Array.isArray(D._events[j])?D._events[j].unshift(ut):D._events[j]=[ut,D._events[j]]}function N(D,j,ut){n=n||Zi(),D=D||{},typeof ut!="boolean"&&(ut=j instanceof n),this.objectMode=!!D.objectMode,ut&&(this.objectMode=this.objectMode||!!D.readableObjectMode),this.highWaterMark=d(this,D,"readableHighWaterMark",ut),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=D.emitClose!==!1,this.autoDestroy=!!D.autoDestroy,this.destroyed=!1,this.defaultEncoding=D.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,D.encoding&&(S||(S=jy().StringDecoder),this.decoder=new S(D.encoding),this.encoding=D.encoding)}function Y(D){if(n=n||Zi(),!(this instanceof Y))return new Y(D);var j=this instanceof n;this._readableState=new N(D,this,j),this.readable=!0,D&&(typeof D.read=="function"&&(this._read=D.read),typeof D.destroy=="function"&&(this._destroy=D.destroy)),e.call(this)}Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(j){this._readableState&&(this._readableState.destroyed=j)}}),Y.prototype.destroy=f.destroy,Y.prototype._undestroy=f.undestroy,Y.prototype._destroy=function(D,j){j(D)},Y.prototype.push=function(D,j){var ut=this._readableState,St;return ut.objectMode?St=!0:typeof D=="string"&&(j=j||ut.defaultEncoding,j!==ut.encoding&&(D=r.from(D,j),j=""),St=!0),z(this,D,j,!1,St)},Y.prototype.unshift=function(D){return z(this,D,null,!0,!1)};function z(D,j,ut,St,Ft){c("readableAddChunk",j);var Rt=D._readableState;if(j===null)Rt.reading=!1,at(D,Rt);else{var Tt;if(Ft||(Tt=U(Rt,j)),Tt)k(D,Tt);else if(Rt.objectMode||j&&j.length>0)if(typeof j!="string"&&!Rt.objectMode&&Object.getPrototypeOf(j)!==r.prototype&&(j=s(j)),St)Rt.endEmitted?k(D,new b):G(D,Rt,j,!0);else if(Rt.ended)k(D,new v);else{if(Rt.destroyed)return!1;Rt.reading=!1,Rt.decoder&&!ut?(j=Rt.decoder.write(j),Rt.objectMode||j.length!==0?G(D,Rt,j,!1):Et(D,Rt)):G(D,Rt,j,!1)}else St||(Rt.reading=!1,Et(D,Rt))}return!Rt.ended&&(Rt.length<Rt.highWaterMark||Rt.length===0)}function G(D,j,ut,St){j.flowing&&j.length===0&&!j.sync?(j.awaitDrain=0,D.emit("data",ut)):(j.length+=j.objectMode?1:ut.length,St?j.buffer.unshift(ut):j.buffer.push(ut),j.needReadable&&_t(D)),Et(D,j)}function U(D,j){var ut;return!a(j)&&typeof j!="string"&&j!==void 0&&!D.objectMode&&(ut=new p("chunk",["string","Buffer","Uint8Array"],j)),ut}Y.prototype.isPaused=function(){return this._readableState.flowing===!1},Y.prototype.setEncoding=function(D){S||(S=jy().StringDecoder);var j=new S(D);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;for(var ut=this._readableState.buffer.head,St="";ut!==null;)St+=j.write(ut.data),ut=ut.next;return this._readableState.buffer.clear(),St!==""&&this._readableState.buffer.push(St),this._readableState.length=St.length,this};var xt=1073741824;function dt(D){return D>=xt?D=xt:(D--,D|=D>>>1,D|=D>>>2,D|=D>>>4,D|=D>>>8,D|=D>>>16,D++),D}function st(D,j){return D<=0||j.length===0&&j.ended?0:j.objectMode?1:D!==D?j.flowing&&j.length?j.buffer.head.data.length:j.length:(D>j.highWaterMark&&(j.highWaterMark=dt(D)),D<=j.length?D:j.ended?j.length:(j.needReadable=!0,0))}Y.prototype.read=function(D){c("read",D),D=parseInt(D,10);var j=this._readableState,ut=D;if(D!==0&&(j.emittedReadable=!1),D===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return c("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?lt(this):_t(this),null;if(D=st(D,j),D===0&&j.ended)return j.length===0&<(this),null;var St=j.needReadable;c("need readable",St),(j.length===0||j.length-D<j.highWaterMark)&&(St=!0,c("length less than watermark",St)),j.ended||j.reading?(St=!1,c("reading or ended",St)):St&&(c("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(D=st(ut,j)));var Ft;return D>0?Ft=X(D,j):Ft=null,Ft===null?(j.needReadable=j.length<=j.highWaterMark,D=0):(j.length-=D,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),ut!==D&&j.ended&<(this)),Ft!==null&&this.emit("data",Ft),Ft};function at(D,j){if(c("onEofChunk"),!j.ended){if(j.decoder){var ut=j.decoder.end();ut&&ut.length&&(j.buffer.push(ut),j.length+=j.objectMode?1:ut.length)}j.ended=!0,j.sync?_t(D):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,bt(D)))}}function _t(D){var j=D._readableState;c("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(c("emitReadable",j.flowing),j.emittedReadable=!0,Qt.nextTick(bt,D))}function bt(D){var j=D._readableState;c("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(D.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,V(D)}function Et(D,j){j.readingMore||(j.readingMore=!0,Qt.nextTick(kt,D,j))}function kt(D,j){for(;!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0);){var ut=j.length;if(c("maybeReadMore read 0"),D.read(0),ut===j.length)break}j.readingMore=!1}Y.prototype._read=function(D){k(this,new _("_read()"))},Y.prototype.pipe=function(D,j){var ut=this,St=this._readableState;switch(St.pipesCount){case 0:St.pipes=D;break;case 1:St.pipes=[St.pipes,D];break;default:St.pipes.push(D);break}St.pipesCount+=1,c("pipe count=%d opts=%j",St.pipesCount,j);var Ft=(!j||j.end!==!1)&&D!==Qt.stdout&&D!==Qt.stderr,Rt=Ft?Ne:on;St.endEmitted?Qt.nextTick(Rt):ut.once("end",Rt),D.on("unpipe",Tt);function Tt(Ge,ye){c("onunpipe"),Ge===ut&&ye&&ye.hasUnpiped===!1&&(ye.hasUnpiped=!0,ue())}function Ne(){c("onend"),D.end()}var ft=Ct(ut);D.on("drain",ft);var Oe=!1;function ue(){c("cleanup"),D.removeListener("close",ze),D.removeListener("finish",ke),D.removeListener("drain",ft),D.removeListener("error",re),D.removeListener("unpipe",Tt),ut.removeListener("end",Ne),ut.removeListener("end",on),ut.removeListener("data",te),Oe=!0,St.awaitDrain&&(!D._writableState||D._writableState.needDrain)&&ft()}ut.on("data",te);function te(Ge){c("ondata");var ye=D.write(Ge);c("dest.write",ye),ye===!1&&((St.pipesCount===1&&St.pipes===D||St.pipesCount>1&&yt(St.pipes,D)!==-1)&&!Oe&&(c("false write response, pause",St.awaitDrain),St.awaitDrain++),ut.pause())}function re(Ge){c("onerror",Ge),on(),D.removeListener("error",re),t(D,"error")===0&&k(D,Ge)}L(D,"error",re);function ze(){D.removeListener("finish",ke),on()}D.once("close",ze);function ke(){c("onfinish"),D.removeListener("close",ze),on()}D.once("finish",ke);function on(){c("unpipe"),ut.unpipe(D)}return D.emit("pipe",ut),St.flowing||(c("pipe resume"),ut.resume()),D};function Ct(D){return function(){var ut=D._readableState;c("pipeOnDrain",ut.awaitDrain),ut.awaitDrain&&ut.awaitDrain--,ut.awaitDrain===0&&t(D,"data")&&(ut.flowing=!0,V(D))}}Y.prototype.unpipe=function(D){var j=this._readableState,ut={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return D&&D!==j.pipes?this:(D||(D=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,D&&D.emit("unpipe",this,ut),this);if(!D){var St=j.pipes,Ft=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var Rt=0;Rt<Ft;Rt++)St[Rt].emit("unpipe",this,{hasUnpiped:!1});return this}var Tt=yt(j.pipes,D);return Tt===-1?this:(j.pipes.splice(Tt,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),D.emit("unpipe",this,ut),this)},Y.prototype.on=function(D,j){var ut=e.prototype.on.call(this,D,j),St=this._readableState;return D==="data"?(St.readableListening=this.listenerCount("readable")>0,St.flowing!==!1&&this.resume()):D==="readable"&&!St.endEmitted&&!St.readableListening&&(St.readableListening=St.needReadable=!0,St.flowing=!1,St.emittedReadable=!1,c("on readable",St.length,St.reading),St.length?_t(this):St.reading||Qt.nextTick(Q,this)),ut},Y.prototype.addListener=Y.prototype.on,Y.prototype.removeListener=function(D,j){var ut=e.prototype.removeListener.call(this,D,j);return D==="readable"&&Qt.nextTick(Lt,this),ut},Y.prototype.removeAllListeners=function(D){var j=e.prototype.removeAllListeners.apply(this,arguments);return(D==="readable"||D===void 0)&&Qt.nextTick(Lt,this),j};function Lt(D){var j=D._readableState;j.readableListening=D.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:D.listenerCount("data")>0&&D.resume()}function Q(D){c("readable nexttick read 0"),D.read(0)}Y.prototype.resume=function(){var D=this._readableState;return D.flowing||(c("resume"),D.flowing=!D.readableListening,et(this,D)),D.paused=!1,this};function et(D,j){j.resumeScheduled||(j.resumeScheduled=!0,Qt.nextTick(ot,D,j))}function ot(D,j){c("resume",j.reading),j.reading||D.read(0),j.resumeScheduled=!1,D.emit("resume"),V(D),j.flowing&&!j.reading&&D.read(0)}Y.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(D){var j=D._readableState;for(c("flow",j.flowing);j.flowing&&D.read()!==null;);}Y.prototype.wrap=function(D){var j=this,ut=this._readableState,St=!1;D.on("end",function(){if(c("wrapped end"),ut.decoder&&!ut.ended){var Tt=ut.decoder.end();Tt&&Tt.length&&j.push(Tt)}j.push(null)}),D.on("data",function(Tt){if(c("wrapped data"),ut.decoder&&(Tt=ut.decoder.write(Tt)),!(ut.objectMode&&Tt==null)&&!(!ut.objectMode&&(!Tt||!Tt.length))){var Ne=j.push(Tt);Ne||(St=!0,D.pause())}});for(var Ft in D)this[Ft]===void 0&&typeof D[Ft]=="function"&&(this[Ft]=function(Ne){return function(){return D[Ne].apply(D,arguments)}}(Ft));for(var Rt=0;Rt<C.length;Rt++)D.on(C[Rt],this.emit.bind(this,C[Rt]));return this._read=function(Tt){c("wrapped _read",Tt),St&&(St=!1,D.resume())},this},typeof Symbol=="function"&&(Y.prototype[Symbol.asyncIterator]=function(){return O===void 0&&(O=oR()),O(this)}),Object.defineProperty(Y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Y.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Y.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(j){this._readableState&&(this._readableState.flowing=j)}}),Y._fromList=X,Object.defineProperty(Y.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function X(D,j){if(j.length===0)return null;var ut;return j.objectMode?ut=j.buffer.shift():!D||D>=j.length?(j.decoder?ut=j.buffer.join(""):j.buffer.length===1?ut=j.buffer.first():ut=j.buffer.concat(j.length),j.buffer.clear()):ut=j.buffer.consume(D,j.decoder),ut}function lt(D){var j=D._readableState;c("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,Qt.nextTick(mt,j,D))}function mt(D,j){if(c("endReadableNT",D.endEmitted,D.length),!D.endEmitted&&D.length===0&&(D.endEmitted=!0,j.readable=!1,j.emit("end"),D.autoDestroy)){var ut=j._writableState;(!ut||ut.autoDestroy&&ut.finished)&&j.destroy()}}typeof Symbol=="function"&&(Y.from=function(D,j){return w===void 0&&(w=aR()),w(Y,D,j)});function yt(D,j){for(var ut=0,St=D.length;ut<St;ut++)if(D[ut]===j)return ut;return-1}return Ef}var Af,zy;function hb(){if(zy)return Af;zy=1,Af=l;var n=ls().codes,t=n.ERR_METHOD_NOT_IMPLEMENTED,e=n.ERR_MULTIPLE_CALLBACK,r=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=n.ERR_TRANSFORM_WITH_LENGTH_0,s=Zi();Si()(l,s);function a(f,g){var d=this._transformState;d.transforming=!1;var m=d.writecb;if(m===null)return this.emit("error",new e);d.writechunk=null,d.writecb=null,g!=null&&this.push(g),m(f);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function l(f){if(!(this instanceof l))return new l(f);s.call(this,f),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",c)}function c(){var f=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(g,d){h(f,g,d)}):h(this,null,null)}l.prototype.push=function(f,g){return this._transformState.needTransform=!1,s.prototype.push.call(this,f,g)},l.prototype._transform=function(f,g,d){d(new t("_transform()"))},l.prototype._write=function(f,g,d){var m=this._transformState;if(m.writecb=d,m.writechunk=f,m.writeencoding=g,!m.transforming){var p=this._readableState;(m.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},l.prototype._read=function(f){var g=this._transformState;g.writechunk!==null&&!g.transforming?(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform)):g.needTransform=!0},l.prototype._destroy=function(f,g){s.prototype._destroy.call(this,f,function(d){g(d)})};function h(f,g,d){if(g)return f.emit("error",g);if(d!=null&&f.push(d),f._writableState.length)throw new i;if(f._transformState.transforming)throw new r;return f.push(null)}return Af}var kf,Vy;function lR(){if(Vy)return kf;Vy=1,kf=t;var n=hb();Si()(t,n);function t(e){if(!(this instanceof t))return new t(e);n.call(this,e)}return t.prototype._transform=function(e,r,i){i(null,e)},kf}var Mf,$y;function uR(){if($y)return Mf;$y=1;var n;function t(d){var m=!1;return function(){m||(m=!0,d.apply(void 0,arguments))}}var e=ls().codes,r=e.ERR_MISSING_ARGS,i=e.ERR_STREAM_DESTROYED;function s(d){if(d)throw d}function a(d){return d.setHeader&&typeof d.abort=="function"}function l(d,m,p,v){v=t(v);var _=!1;d.on("close",function(){_=!0}),n===void 0&&(n=Ch()),n(d,{readable:m,writable:p},function(S){if(S)return v(S);_=!0,v()});var b=!1;return function(S){if(!_&&!b){if(b=!0,a(d))return d.abort();if(typeof d.destroy=="function")return d.destroy();v(S||new i("pipe"))}}}function c(d){d()}function h(d,m){return d.pipe(m)}function f(d){return!d.length||typeof d[d.length-1]!="function"?s:d.pop()}function g(){for(var d=arguments.length,m=new Array(d),p=0;p<d;p++)m[p]=arguments[p];var v=f(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var _,b=m.map(function(S,O){var w=O<m.length-1,k=O>0;return l(S,w,k,function(C){_||(_=C),C&&b.forEach(c),!w&&(b.forEach(c),v(_))})});return m.reduce(h)}return Mf=g,Mf}var Rf,Gy;function db(){if(Gy)return Rf;Gy=1,Rf=e;var n=rs().EventEmitter,t=Si();t(e,n),e.Readable=fb(),e.Writable=cb(),e.Duplex=Zi(),e.Transform=hb(),e.PassThrough=lR(),e.finished=Ch(),e.pipeline=uR(),e.Stream=e;function e(){n.call(this)}return e.prototype.pipe=function(r,i){var s=this;function a(m){r.writable&&r.write(m)===!1&&s.pause&&s.pause()}s.on("data",a);function l(){s.readable&&s.resume&&s.resume()}r.on("drain",l),!r._isStdio&&(!i||i.end!==!1)&&(s.on("end",h),s.on("close",f));var c=!1;function h(){c||(c=!0,r.end())}function f(){c||(c=!0,typeof r.destroy=="function"&&r.destroy())}function g(m){if(d(),n.listenerCount(this,"error")===0)throw m}s.on("error",g),r.on("error",g);function d(){s.removeListener("data",a),r.removeListener("drain",l),s.removeListener("end",h),s.removeListener("close",f),s.removeListener("error",g),r.removeListener("error",g),s.removeListener("end",d),s.removeListener("close",d),r.removeListener("close",d)}return s.on("end",d),s.on("close",d),r.on("close",d),r.emit("pipe",s),r},Rf}var Of,Yy;function cR(){if(Yy)return Of;Yy=1;function n(t){return t?(t^Math.random()*16>>t/4).toString(16):("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,n)}return Of=n,Of}var ja={exports:{}},Ua={exports:{}},Pf,Ky;function fR(){if(Ky)return Pf;Ky=1;var n=1e3,t=n*60,e=t*60,r=e*24,i=r*365.25;Pf=function(h,f){return f=f||{},typeof h=="string"?s(h):f.long?l(h):a(h)};function s(h){if(h=""+h,!(h.length>1e4)){var f=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(h);if(f){var g=parseFloat(f[1]),d=(f[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return g*i;case"days":case"day":case"d":return g*r;case"hours":case"hour":case"hrs":case"hr":case"h":return g*e;case"minutes":case"minute":case"mins":case"min":case"m":return g*t;case"seconds":case"second":case"secs":case"sec":case"s":return g*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g}}}}function a(h){return h>=r?Math.round(h/r)+"d":h>=e?Math.round(h/e)+"h":h>=t?Math.round(h/t)+"m":h>=n?Math.round(h/n)+"s":h+"ms"}function l(h){return c(h,r,"day")||c(h,e,"hour")||c(h,t,"minute")||c(h,n,"second")||h+" ms"}function c(h,f,g){if(!(h<f))return h<f*1.5?Math.floor(h/f)+" "+g:Math.ceil(h/f)+" "+g+"s"}return Pf}var Xy;function hR(){return Xy||(Xy=1,function(n,t){t=n.exports=s,t.coerce=h,t.disable=l,t.enable=a,t.enabled=c,t.humanize=fR(),t.names=[],t.skips=[],t.formatters={};var e=0,r;function i(){return t.colors[e++%t.colors.length]}function s(f){function g(){}g.enabled=!1;function d(){var p=d,v=+new Date,_=v-(r||v);p.diff=_,p.prev=r,p.curr=v,r=v,p.useColors==null&&(p.useColors=t.useColors()),p.color==null&&p.useColors&&(p.color=i());var b=Array.prototype.slice.call(arguments);b[0]=t.coerce(b[0]),typeof b[0]!="string"&&(b=["%o"].concat(b));var S=0;b[0]=b[0].replace(/%([a-z%])/g,function(w,k){if(w==="%%")return w;S++;var C=t.formatters[k];if(typeof C=="function"){var L=b[S];w=C.call(p,L),b.splice(S,1),S--}return w}),typeof t.formatArgs=="function"&&(b=t.formatArgs.apply(p,b));var O=d.log||t.log||console.log.bind(console);O.apply(p,b)}d.enabled=!0;var m=t.enabled(f)?d:g;return m.namespace=f,m}function a(f){t.save(f);for(var g=(f||"").split(/[\s,]+/),d=g.length,m=0;m<d;m++)g[m]&&(f=g[m].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.substr(1)+"$")):t.names.push(new RegExp("^"+f+"$")))}function l(){t.enable("")}function c(f){var g,d;for(g=0,d=t.skips.length;g<d;g++)if(t.skips[g].test(f))return!1;for(g=0,d=t.names.length;g<d;g++)if(t.names[g].test(f))return!0;return!1}function h(f){return f instanceof Error?f.stack||f.message:f}}(Ua,Ua.exports)),Ua.exports}var Jy;function pb(){return Jy||(Jy=1,function(n,t){t=n.exports=hR(),t.log=i,t.formatArgs=r,t.save=s,t.load=a,t.useColors=e,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function e(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}t.formatters.j=function(c){return JSON.stringify(c)};function r(){var c=arguments,h=this.useColors;if(c[0]=(h?"%c":"")+this.namespace+(h?" %c":" ")+c[0]+(h?"%c ":" ")+"+"+t.humanize(this.diff),!h)return c;var f="color: "+this.color;c=[c[0],f,"color: inherit"].concat(Array.prototype.slice.call(c,1));var g=0,d=0;return c[0].replace(/%[a-z%]/g,function(m){m!=="%%"&&(g++,m==="%c"&&(d=g))}),c.splice(d,0,f),c}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch{}}function a(){var c;try{c=t.storage.debug}catch{}return c}t.enable(a());function l(){try{return window.localStorage}catch{}}}(ja,ja.exports)),ja.exports}var Cf,Zy;function Lh(){if(Zy)return Cf;Zy=1;var n=as(),t=db().Duplex,e=Ph(),r=cR(),i=pb()("socket.io-stream:iostream");Cf=s,n.inherits(s,t);function s(a){if(!(this instanceof s))return new s(a);s.super_.call(this,a),this.options=a,this.id=r(),this.socket=null,this.pushBuffer=[],this.writeBuffer=[],this._readable=!1,this._writable=!1,this.destroyed=!1,this.allowHalfOpen=a&&a.allowHalfOpen||!1,this.on("finish",this._onfinish),this.on("end",this._onend),this.on("error",this._onerror)}return s.prototype.destroy=function(){if(i("destroy"),this.destroyed){i("already destroyed");return}this.readable=this.writable=!1,this.socket&&(i("clean up"),this.socket.cleanup(this.id),this.socket=null),this.destroyed=!0},s.prototype._read=function(a){var l;if(!this.destroyed){if(this.pushBuffer.length){for(;(l=this.pushBuffer.shift())&&l(););return}this._readable=!0,this.socket._read(this.id,a)}},s.prototype._onread=function(a){var l=this.writeBuffer.shift();if(l)return l();this._writable=!0},s.prototype._write=function(a,l,c){var h=this;function f(){h.destroyed||(h._writable=!1,h.socket._write(h.id,a,l,c))}this._writable?f():this.writeBuffer.push(f)},s.prototype._onwrite=function(a,l,c){var h=this;function f(){h._readable=!1;var g=h.push(a||"",l);return c(),g}this._readable?f():this.pushBuffer.push(f)},s.prototype._end=function(){this.pushBuffer.length?this.pushBuffer.push(e(this,"_done")):this._done()},s.prototype._done=function(){return this._readable=!1,this.push(null)},s.prototype._onfinish=function(){if(i("_onfinish"),this.socket&&this.socket._end(this.id),this.writable=!1,this._writableState.ended=!0,!this.readable||this._readableState.ended)return i("_onfinish: ended, destroy %s",this._readableState),this.destroy();i("_onfinish: not ended"),this.allowHalfOpen||(this.push(null),this.readable&&!this._readableState.endEmitted&&this.read(0))},s.prototype._onend=function(){if(i("_onend"),this.readable=!1,this._readableState.ended=!0,!this.writable||this._writableState.finished)return i("_onend: %s",this._writableState),this.destroy();i("_onend: not finished"),this.allowHalfOpen||this.end()},s.prototype._onerror=function(a){!a.remote&&this.socket&&this.socket._error(this.id,a),this.destroy()},Cf}var qa={},Qy;function dR(){if(Qy)return qa;Qy=1;var n=as(),t=rs().EventEmitter,e=Lh();qa.Encoder=r,qa.Decoder=i,n.inherits(r,t);function r(){t.call(this)}r.prototype.encode=function(s){return s instanceof e?this.encodeStream(s):n.isArray(s)?this.encodeArray(s):s&&typeof s=="object"?this.encodeObject(s):s},r.prototype.encodeStream=function(s){this.emit("stream",s);var a={$stream:s.id};return s.options&&(a.options=s.options),a},r.prototype.encodeArray=function(s){for(var a=[],l=0,c=s.length;l<c;l++)a.push(this.encode(s[l]));return a},r.prototype.encodeObject=function(s){var a={};for(var l in s)s.hasOwnProperty(l)&&(a[l]=this.encode(s[l]));return a},n.inherits(i,t);function i(){t.call(this)}return i.prototype.decode=function(s){return s&&s.$stream?this.decodeStream(s):n.isArray(s)?this.decodeArray(s):s&&typeof s=="object"?this.decodeObject(s):s},i.prototype.decodeStream=function(s){var a=new e(s.options);return a.id=s.$stream,this.emit("stream",a),a},i.prototype.decodeArray=function(s){for(var a=[],l=0,c=s.length;l<c;l++)a.push(this.decode(s[l]));return a},i.prototype.decodeObject=function(s){var a={};for(var l in s)s.hasOwnProperty(l)&&(a[l]=this.decode(s[l]));return a},qa}var t0;function pR(){return t0||(t0=1,function(n,t){var e=as(),r=rs().EventEmitter,i=Ph();Lh();var s=dR(),a=pb()("socket.io-stream:socket"),l=r.prototype.emit,c=r.prototype.on,h=Array.prototype.slice;t=n.exports=f,t.event="$stream",t.events=["error","newListener","removeListener"],e.inherits(f,r);function f(g,d){if(!(this instanceof f))return new f(g,d);r.call(this),d=d||{},this.sio=g,this.forceBase64=!!d.forceBase64,this.streams={},this.encoder=new s.Encoder,this.decoder=new s.Decoder;var m=t.event;g.on(m,i(this,l)),g.on(m+"-read",i(this,"_onread")),g.on(m+"-write",i(this,"_onwrite")),g.on(m+"-end",i(this,"_onend")),g.on(m+"-error",i(this,"_onerror")),g.on("error",i(this,l,"error")),g.on("disconnect",i(this,"_ondisconnect")),this.encoder.on("stream",i(this,"_onencode")),this.decoder.on("stream",i(this,"_ondecode"))}f.prototype.$emit=l,f.prototype.emit=function(g){return~t.events.indexOf(g)?l.apply(this,arguments):(this._stream.apply(this,arguments),this)},f.prototype.on=function(g,d){return~t.events.indexOf(g)?c.apply(this,arguments):(this._onstream(g,d),this)},f.prototype._stream=function(g){a("sending new streams");var d=this,m=h.call(arguments,1),p=m[m.length-1];typeof p=="function"&&(m[m.length-1]=function(){var _=h.call(arguments);_=d.decoder.decode(_),p.apply(this,_)}),m=this.encoder.encode(m);var v=this.sio;v.emit.apply(v,[t.event,g].concat(m))},f.prototype._read=function(g,d){this.sio.emit(t.event+"-read",g,d)},f.prototype._write=function(g,d,m,p){eo.isBuffer(d)&&(this.forceBase64?(m="base64",d=d.toString(m)):We.Buffer||(d.toArrayBuffer?d=d.toArrayBuffer():d=d.buffer)),this.sio.emit(t.event+"-write",g,d,m,p)},f.prototype._end=function(g){this.sio.emit(t.event+"-end",g)},f.prototype._error=function(g,d){this.sio.emit(t.event+"-error",g,d.message||d)},f.prototype._onstream=function(g,d){if(typeof d!="function")throw TypeError("listener must be a function");function m(){a("new streams");var p=this,v=h.call(arguments),_=v[v.length-1];typeof _=="function"&&(v[v.length-1]=function(){var b=h.call(arguments);b=p.encoder.encode(b),_.apply(this,b)}),v=this.decoder.decode(v),d.apply(this,v)}m.listener=d,c.call(this,g,m)},f.prototype._onread=function(g,d){a('read: "%s"',g);var m=this.streams[g];m?m._onread(d):a("ignore invalid stream id")},f.prototype._onwrite=function(g,d,m,p){a('write: "%s"',g);var v=this.streams[g];if(!v){p("invalid stream id: "+g);return}We.ArrayBuffer&&d instanceof ArrayBuffer&&(d=new eo(new Uint8Array(d))),v._onwrite(d,m,p)},f.prototype._onend=function(g){a('end: "%s"',g);var d=this.streams[g];if(!d){a('ignore non-existent stream id: "%s"',g);return}d._end()},f.prototype._onerror=function(g,d){a('error: "%s", "%s"',g,d);var m=this.streams[g];if(!m){a('invalid stream id: "%s"',g);return}var p=new Error(d);p.remote=!0,m.emit("error",p)},f.prototype._ondisconnect=function(){var g;for(var d in this.streams)g=this.streams[d],g.destroy(),g.emit("close"),g.emit("error",new Error("Connection aborted"))},f.prototype._onencode=function(g){if(g.socket||g.destroyed)throw new Error("stream has already been sent.");var d=g.id;if(this.streams[d])throw new Error("Encoded stream already exists: "+d);this.streams[d]=g,g.socket=this},f.prototype._ondecode=function(g){var d=g.id;if(this.streams[d]){this._error(d,new Error("Decoded stream already exists: "+d));return}this.streams[d]=g,g.socket=this},f.prototype.cleanup=function(g){delete this.streams[g]}}(Da,Da.exports)),Da.exports}var Lf,e0;function gR(){if(e0)return Lf;e0=1;var n=as(),t=db().Readable,e=Ph();Lf=r,n.inherits(r,t);function r(i,s){if(!(this instanceof r))return new r(i,s);t.call(this,s),s=s||{},this.blob=i,this.slice=i.slice||i.webkitSlice||i.mozSlice,this.start=0,this.sync=s.synchronous||!1;var a;s.synchronous?a=this.fileReader=new FileReaderSync:a=this.fileReader=new FileReader,a.onload=e(this,"_onload"),a.onerror=e(this,"_onerror")}return r.prototype._read=function(i){var s=this.start,a=this.start=this.start+i,l=this.slice.call(this.blob,s,a);if(l.size)if(this.sync){var c=new eo(new Uint8Array(this.fileReader.readAsArrayBuffer(l)));this.push(c)}else this.fileReader.readAsArrayBuffer(l);else this.push(null)},r.prototype._onload=function(i){var s=new eo(new Uint8Array(i.target.result));this.push(s)},r.prototype._onerror=function(i){var s=i.target.error;this.emit("error",s)},Lf}var n0;function mR(){return n0||(n0=1,function(n,t){var e=pR(),r=Lh(),i=gR();t=n.exports=s,t.Buffer=eo,t.Socket=e,t.IOStream=r,t.forceBase64=!1;function s(a,l){return l=l||{},l.forceBase64==null&&(l.forceBase64=t.forceBase64),a._streamSocket||(a._streamSocket=new e(a,l)),a._streamSocket}t.createStream=function(a){return new r(a)},t.createBlobReadStream=function(a,l){return new i(a,l)}}(Ba,Ba.exports)),Ba.exports}var Tf,r0;function yR(){return r0||(r0=1,Tf=mR()),Tf}var gb=yR();const mb=Jr(gb),vR=rk({__proto__:null,default:mb},[gb]),If=mb||vR,Yn=n=>n,bR=(n=0,t=1)=>(e=t)=>n+=e,_R=Ie.compile(aM);class Qi extends Re{constructor(t){var e;super(),this.configuration=t,this.buttons={all:Vs.build({name:"ALL",isEnabled:!0}),provided:Yn({})},this.panel=new Mr({...this.configuration,class:`checkbox-area ${this.configuration.class??""}`}).append(_R(this.configuration)),this.area=new Re(this.panel.element.querySelector("div.buttons")).append(this.buttons.all),this.events=new is,this.storage=(e=this.configuration.storage)!=null&&e.key?ho.build(this.configuration.storage.key):null,this.replace(this.panel),this.configuration.type==="radio"&&this.buttons.all.hide(),this.buttons.all.on("enable",(r,i)=>i==="click"?this.extract().forEach(s=>s.enable()):null),this.buttons.all.on("disable",(r,i)=>i==="click"?this.extract().forEach(s=>s.disable()):null)}extract(){return Object.values(this.buttons.provided)}provide(...t){var r;const e=(r=this.storage)==null?void 0:r.extract();return t.forEach(i=>{const s=i instanceof Vs?i:Vs.build(i);this.buttons.provided[s.name]=s,this.area.append(s),e&&(e.enabled.includes(s.name)?s.enable("silent"):s.disable("silent")),s.isEnabled||this.buttons.all.disable(),s.on("enable",(a,l)=>{var h;const c=this.extract();(h=this.storage)==null||h.store({enabled:c.filter(f=>f.isEnabled).map(f=>f.name)}),this.configuration.type==="radio"&&l==="click"&&(c.forEach(f=>f.disable("silent")),a.enable("silent")),c.every(f=>f.isEnabled)&&this.buttons.all.enable(),l!=="silent"&&(this.emit("enable",a),this.emit("switch",c))}),s.on("disable",(a,l)=>{var h;const c=this.extract();if((h=this.storage)==null||h.store({enabled:c.filter(f=>f.isEnabled).map(f=>f.name)}),this.configuration.type==="radio"&&l==="click")return a.enable("silent");c.some(f=>!f.isEnabled)&&this.buttons.all.disable(),l!=="silent"&&(this.emit("disable",a),this.emit("switch",c))})}),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 Qi(t)}}const wR=`
|
|
164
|
+
<div class="container expectation" id="{{data.id}}">
|
|
149
165
|
<div class="meta">{{> expectationMeta this}}</div>
|
|
150
166
|
</div>
|
|
151
|
-
`,
|
|
167
|
+
`,xR=`
|
|
152
168
|
<div class="viewer container"></div>
|
|
153
|
-
`;function
|
|
169
|
+
`;function SR(n,t){var e,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(h){return function(f){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(i=2&f[0]?r.return:f[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,f[1])).done)return i;switch(r=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return a.label++,{value:f[1],done:!1};case 5:a.label++,r=f[1],f=[0];continue;case 7:f=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||f[0]!==6&&f[0]!==2)){a=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){a.label=f[1];break}if(f[0]===6&&a.label<i[1]){a.label=i[1],i=f;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(f);break}i[2]&&a.ops.pop(),a.trys.pop();continue}f=t.call(n,a)}catch(g){f=[6,g],r=0}finally{e=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([c,h])}}}function yb(n){return n===null?"null":typeof n}function Zf(n){return!!n&&typeof n=="object"}function vb(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 bb(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 i0(n){var t="";return Zf(n)?(t=vb(n),Array.isArray(n)&&(t+="["+n.length+"]")):t=bb(yb(n),n,n),typeof t=="string"?'"'+t+'"':t}function pn(n){return"json-formatter-"+n}function qe(n,t,e){var r=document.createElement(n);return t&&r.classList.add(pn(t)),e!==void 0&&(e instanceof Node?r.appendChild(e):r.appendChild(document.createTextNode(String(e)))),r}(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 {
|
|
154
170
|
font-family: monospace;
|
|
155
171
|
}
|
|
156
172
|
.json-formatter-row,
|
|
@@ -344,45 +360,52 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
344
360
|
.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {
|
|
345
361
|
display: block;
|
|
346
362
|
}
|
|
347
|
-
`);var hM=/(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/,dM=/\d{2}:\d{2}:\d{2} GMT-\d{4}/,pM=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,Fa=window.requestAnimationFrame||function(n){return n(),0},qi={hoverPreviewEnabled:!1,hoverPreviewArrayCount:10,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null,maxArrayItems:100,exposePath:!1,afterCopyHandler:function(){}},gM=function(){function n(t,e,r,i,s,a,l,c){e===void 0&&(e=1),r===void 0&&(r=qi),a===void 0&&(a=[]),c===void 0&&(c=1),this.json=t,this.open=e,this.config=r,this.key=i,this.displayKey=s,this.path=a,this.arrayRange=l,this.level=c,this._isOpen=null,this.config.hoverPreviewEnabled===void 0&&(this.config.hoverPreviewEnabled=qi.hoverPreviewEnabled),this.config.hoverPreviewArrayCount===void 0&&(this.config.hoverPreviewArrayCount=qi.hoverPreviewArrayCount),this.config.hoverPreviewFieldCount===void 0&&(this.config.hoverPreviewFieldCount=qi.hoverPreviewFieldCount),this.config.useToJSON===void 0&&(this.config.useToJSON=qi.useToJSON),this.config.maxArrayItems===void 0&&(this.config.maxArrayItems=qi.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"&&(hM.test(this.json)||pM.test(this.json)||dM.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 $f(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 ub(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":lb(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 r=0;r<e;r++){var i=r*this.config.maxArrayItems,s=Math.min(this.json.length-1,i+(this.config.maxArrayItems-1));t.push(i+" … "+s)}}return!this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return[]},enumerable:!1,configurable:!0}),n.prototype.toggleOpen=function(t){var e,r;if(!((r=(e=t.target)===null||e===void 0?void 0:e.classList)===null||r===void 0)&&r.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(pn("open")))},n.prototype.onCopy=function(t){var e,r,i,s,a,l;return i=this,s=void 0,l=function(){return fM(this,function(c){switch(c.label){case 0:return[4,navigator.clipboard.writeText($f(this.json)?JSON.stringify(this.json):this.json)];case 1:return c.sent(),(r=(e=this.config).afterCopyHandler)===null||r===void 0||r.call(e),[2]}})},new((a=void 0)||(a=Promise))(function(c,h){function f(m){try{d(l.next(m))}catch(p){h(p)}}function g(m){try{d(l.throw(m))}catch(p){h(p)}}function d(m){m.done?c(m.value):new a(function(p){p(m.value)}).then(f,g)}d((l=l.apply(i,s||[])).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(pn("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(pn("open")))))},n.prototype.getInlinepreview=function(){var t=this;if(this.isArray){var e=this.json.slice(0,this.config.hoverPreviewArrayCount).map(Xy);return e.length<this.json.length&&e.push("..."),"["+e.join(", ")+"]"}var r=this.keys,i=r.slice(0,this.config.hoverPreviewFieldCount).map(function(a){var l=(a+": "+Xy(t.json[a])).replace(/\n/g,"");return l.length>35?l.substring(0,32)+"...":l}),s=r.length>=this.config.hoverPreviewFieldCount?", …":"";return"{ "+i.join(", ")+s+" }"},n.prototype.render=function(){this.element=We("div","row");var t=this.isObject?We("a","toggler-link"):We("span");if(this.isArrayRange?t.appendChild(We("span","range","["+this.displayKey+"]")):this.hasKey&&(t.appendChild(We("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(We("span","toggler")),this.isObject&&!this.useToJSON){var e=We("span","value"),r=We("span");if(!this.isArrayRange){var i=We("span","constructor-name",this.constructorName);r.appendChild(i)}if(this.isArray&&!this.isArrayRange){var s=We("span");s.appendChild(We("span","bracket","[")),s.appendChild(We("span","number",this.json.length)),s.appendChild(We("span","bracket","]")),r.appendChild(s)}var a=We("span","preview",this.getInlinepreview());r.appendChild(a),e.appendChild(r),t.appendChild(e)}else{(e=this.isUrl?We("a"):We("span")).classList.add(pn(this.type)),this.isDate&&e.classList.add(pn("date")),this.isUrl&&(e.classList.add(pn("url")),e.setAttribute("href",this.json));var l=cb(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(l)),t.appendChild(e)}if(this.isObject&&this.config.hoverPreviewEnabled){var c=We("span","preview-text");c.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(c)}var h=We("div","children");this.isObject&&h.classList.add(pn("object")),this.isArray&&h.classList.add(pn("array")),this.isEmpty&&h.classList.add(pn("empty")),this.config&&this.config.theme&&this.element.classList.add(pn(this.config.theme)),this.isOpen&&this.element.classList.add(pn("open"));var f=We("button","copy");return f.classList.add("fas"),f.classList.add("fa-clone"),f.addEventListener("click",this.onCopy.bind(this)),t.prepend(f),this.element.appendChild(t),this.element.appendChild(h),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 r=this.element.querySelector("div."+pn("children"));if(r&&!this.isEmpty){var i=function(l,c){var h=e.isLargeArray?[c*e.config.maxArrayItems,Math.min(e.json.length-1,c*e.config.maxArrayItems+(e.config.maxArrayItems-1))]:void 0,f=e.isArrayRange?(e.arrayRange[0]+c).toString():l,g=new n(h?e.json.slice(h[0],h[1]+1):e.json[l],e.open-1,e.config,l,f,h?e.path:e.path.concat(f),h,e.level+1);r.appendChild(g.render())};if(t){var s=0,a=function(){var l=e.keys[s];i(l,s),(s+=1)<e.keys.length&&(s>10?a():Fa(a))};Fa(a)}else this.keys.forEach(function(l,c){return i(l,c)})}},n.prototype.removeChildren=function(t){t===void 0&&(t=!1);var e=this.element.querySelector("div."+pn("children"));if(t){var r=0,i=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?i():Fa(i))};Fa(i)}else e&&(e.innerHTML="")},n}();const lr=Object.create(null);lr.open="0";lr.close="1";lr.ping="2";lr.pong="3";lr.message="4";lr.upgrade="5";lr.noop="6";const il=Object.create(null);Object.keys(lr).forEach(n=>{il[lr[n]]=n});const mM={type:"error",data:"parser error"},yM=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",vM=typeof ArrayBuffer=="function",bM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,fb=({type:n,data:t},e,r)=>yM&&t instanceof Blob?e?r(t):Jy(t,r):vM&&(t instanceof ArrayBuffer||bM(t))?e?r(t):Jy(new Blob([t]),r):r(lr[n]+(t||"")),Jy=(n,t)=>{const e=new FileReader;return e.onload=function(){const r=e.result.split(",")[1];t("b"+r)},e.readAsDataURL(n)},Zy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ls=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Zy.length;n++)Ls[Zy.charCodeAt(n)]=n;const _M=n=>{let t=n.length*.75,e=n.length,r,i=0,s,a,l,c;n[n.length-1]==="="&&(t--,n[n.length-2]==="="&&t--);const h=new ArrayBuffer(t),f=new Uint8Array(h);for(r=0;r<e;r+=4)s=Ls[n.charCodeAt(r)],a=Ls[n.charCodeAt(r+1)],l=Ls[n.charCodeAt(r+2)],c=Ls[n.charCodeAt(r+3)],f[i++]=s<<2|a>>4,f[i++]=(a&15)<<4|l>>2,f[i++]=(l&3)<<6|c&63;return h},wM=typeof ArrayBuffer=="function",hb=(n,t)=>{if(typeof n!="string")return{type:"message",data:db(n,t)};const e=n.charAt(0);return e==="b"?{type:"message",data:xM(n.substring(1),t)}:il[e]?n.length>1?{type:il[e],data:n.substring(1)}:{type:il[e]}:mM},xM=(n,t)=>{if(wM){const e=_M(n);return db(e,t)}else return{base64:!0,data:n}},db=(n,t)=>{switch(t){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},pb="",SM=(n,t)=>{const e=n.length,r=new Array(e);let i=0;n.forEach((s,a)=>{fb(s,!1,l=>{r[a]=l,++i===e&&t(r.join(pb))})})},EM=(n,t)=>{const e=n.split(pb),r=[];for(let i=0;i<e.length;i++){const s=hb(e[i],t);if(r.push(s),s.type==="error")break}return r},gb=4;function Ne(n){if(n)return AM(n)}function AM(n){for(var t in Ne.prototype)n[t]=Ne.prototype[t];return n}Ne.prototype.on=Ne.prototype.addEventListener=function(n,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(t),this};Ne.prototype.once=function(n,t){function e(){this.off(n,e),t.apply(this,arguments)}return e.fn=t,this.on(n,e),this};Ne.prototype.off=Ne.prototype.removeListener=Ne.prototype.removeAllListeners=Ne.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 r,i=0;i<e.length;i++)if(r=e[i],r===t||r.fn===t){e.splice(i,1);break}return e.length===0&&delete this._callbacks["$"+n],this};Ne.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),e=this._callbacks["$"+n],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(e){e=e.slice(0);for(var r=0,i=e.length;r<i;++r)e[r].apply(this,t)}return this};Ne.prototype.emitReserved=Ne.prototype.emit;Ne.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Ne.prototype.hasListeners=function(n){return!!this.listeners(n).length};const qr=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function mb(n,...t){return t.reduce((e,r)=>(n.hasOwnProperty(r)&&(e[r]=n[r]),e),{})}const kM=setTimeout,RM=clearTimeout;function Cl(n,t){t.useNativeTimers?(n.setTimeoutFn=kM.bind(qr),n.clearTimeoutFn=RM.bind(qr)):(n.setTimeoutFn=setTimeout.bind(qr),n.clearTimeoutFn=clearTimeout.bind(qr))}const MM=1.33;function CM(n){return typeof n=="string"?PM(n):Math.ceil((n.byteLength||n.size)*MM)}function PM(n){let t=0,e=0;for(let r=0,i=n.length;r<i;r++)t=n.charCodeAt(r),t<128?e+=1:t<2048?e+=2:t<55296||t>=57344?e+=3:(r++,e+=4);return e}class OM extends Error{constructor(t,e,r){super(t),this.description=e,this.context=r,this.type="TransportError"}}class yb extends Ne{constructor(t){super(),this.writable=!1,Cl(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,e,r){return super.emitReserved("error",new OM(t,e,r)),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=hb(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const vb="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Gf=64,LM={};let Qy=0,Na=0,t0;function e0(n){let t="";do t=vb[n%Gf]+t,n=Math.floor(n/Gf);while(n>0);return t}function bb(){const n=e0(+new Date);return n!==t0?(Qy=0,t0=n):n+"."+e0(Qy++)}for(;Na<Gf;Na++)LM[vb[Na]]=Na;function _b(n){let t="";for(let e in n)n.hasOwnProperty(e)&&(t.length&&(t+="&"),t+=encodeURIComponent(e)+"="+encodeURIComponent(n[e]));return t}function TM(n){let t={},e=n.split("&");for(let r=0,i=e.length;r<i;r++){let s=e[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}let wb=!1;try{wb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const BM=wb;function xb(n){const t=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||BM))return new XMLHttpRequest}catch{}if(!t)try{return new qr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function IM(){}const DM=function(){return new xb({xdomain:!1}).responseType!=null}();class FM extends yb{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port,this.xs=t.secure!==r}const e=t&&t.forceBase64;this.supportsBinary=DM&&!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 r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||e()})),this.writable||(r++,this.once("drain",function(){--r||e()}))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const e=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};EM(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,SM(t,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const e=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=bb()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(e==="https"&&Number(this.opts.port)!==443||e==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const i=_b(t),s=this.opts.hostname.indexOf(":")!==-1;return e+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new or(this.uri(),t)}doWrite(t,e){const r=this.request({method:"POST",data:t});r.on("success",e),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(e,r)=>{this.onError("xhr poll error",e,r)}),this.pollXhr=t}}class or extends Ne{constructor(t,e){super(),Cl(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=mb(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 xb(t);try{e.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&e.setRequestHeader(r,this.opts.extraHeaders[r])}}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(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=or.requestsCount++,or.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=IM,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete or.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()}}or.requestsCount=0;or.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",n0);else if(typeof addEventListener=="function"){const n="onpagehide"in qr?"pagehide":"unload";addEventListener(n,n0,!1)}}function n0(){for(let n in or.requests)or.requests.hasOwnProperty(n)&&or.requests[n].abort()}const Sb=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,e)=>e(t,0),ja=qr.WebSocket||qr.MozWebSocket,r0=!0,NM="arraybuffer",i0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class jM extends yb{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,r=i0?{}:mb(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=r0&&!i0?e?new ja(t,e):new ja(t):new ja(t,e,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||NM,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 r=t[e],i=e===t.length-1;fb(r,this.supportsBinary,s=>{const a={};try{r0&&this.ws.send(s)}catch{}i&&Sb(()=>{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 r="";this.opts.port&&(e==="wss"&&Number(this.opts.port)!==443||e==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=bb()),this.supportsBinary||(t.b64=1);const i=_b(t),s=this.opts.hostname.indexOf(":")!==-1;return e+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}check(){return!!ja}}const UM={websocket:jM,polling:FM},qM=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,WM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Yf(n){const t=n,e=n.indexOf("["),r=n.indexOf("]");e!=-1&&r!=-1&&(n=n.substring(0,e)+n.substring(e,r).replace(/:/g,";")+n.substring(r,n.length));let i=qM.exec(n||""),s={},a=14;for(;a--;)s[WM[a]]=i[a]||"";return e!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=HM(s,s.path),s.queryKey=zM(s,s.query),s}function HM(n,t){const e=/\/{2,9}/g,r=t.replace(e,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function zM(n,t){const e={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(e[i]=s)}),e}let Eb=class Vi extends Ne{constructor(t,e={}){super(),t&&typeof t=="object"&&(e=t,t=null),t?(t=Yf(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=Yf(e.host).host),Cl(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=TM(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=gb,e.transport=t,this.id&&(e.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new UM[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Vi.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),r=!1;Vi.priorWebsocketSuccess=!1;const i=()=>{r||(e.send([{type:"ping",data:"probe"}]),e.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;Vi.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),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 s(){r||(r=!0,f(),e.close(),e=null)}const a=g=>{const d=new Error("probe error: "+g);d.transport=e.name,s(),this.emitReserved("upgradeError",d)};function l(){a("transport closed")}function c(){a("socket closed")}function h(g){e&&g.name!==e.name&&s()}const f=()=>{e.removeListener("open",i),e.removeListener("error",a),e.removeListener("close",l),this.off("close",c),this.off("upgrading",h)};e.once("open",i),e.once("error",a),e.once("close",l),this.once("close",c),this.once("upgrading",h),e.open()}onOpen(){if(this.readyState="open",Vi.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 r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(e+=CM(i)),r>0&&e>this.maxPayload)return this.writeBuffer.slice(0,r);e+=2}return this.writeBuffer}write(t,e,r){return this.sendPacket("message",t,e,r),this}send(t,e,r){return this.sendPacket("message",t,e,r),this}sendPacket(t,e,r,i){if(typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:t,data:e,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},r=()=>{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?r():t()}):this.upgrading?r():t()),this}onError(t){Vi.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 r=0;const i=t.length;for(;r<i;r++)~this.transports.indexOf(t[r])&&e.push(t[r]);return e}};Eb.protocol=gb;function VM(n,t="",e){let r=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),r=Yf(n)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(e&&e.port===r.port?"":":"+r.port),r}const $M=typeof ArrayBuffer=="function",GM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Ab=Object.prototype.toString,YM=typeof Blob=="function"||typeof Blob<"u"&&Ab.call(Blob)==="[object BlobConstructor]",KM=typeof File=="function"||typeof File<"u"&&Ab.call(File)==="[object FileConstructor]";function Mh(n){return $M&&(n instanceof ArrayBuffer||GM(n))||YM&&n instanceof Blob||KM&&n instanceof File}function sl(n,t){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let e=0,r=n.length;e<r;e++)if(sl(n[e]))return!0;return!1}if(Mh(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return sl(n.toJSON(),!0);for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&sl(n[e]))return!0;return!1}function XM(n){const t=[],e=n.data,r=n;return r.data=Kf(e,t),r.attachments=t.length,{packet:r,buffers:t}}function Kf(n,t){if(!n)return n;if(Mh(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 r=0;r<n.length;r++)e[r]=Kf(n[r],t);return e}else if(typeof n=="object"&&!(n instanceof Date)){const e={};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=Kf(n[r],t));return e}return n}function JM(n,t){return n.data=Xf(n.data,t),n.attachments=void 0,n}function Xf(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]=Xf(n[e],t);else if(typeof n=="object")for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e]=Xf(n[e],t));return n}const ZM=5;var ee;(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"})(ee||(ee={}));class QM{constructor(t){this.replacer=t}encode(t){return(t.type===ee.EVENT||t.type===ee.ACK)&&sl(t)?(t.type=t.type===ee.EVENT?ee.BINARY_EVENT:ee.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===ee.BINARY_EVENT||t.type===ee.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=XM(t),r=this.encodeAsString(e.packet),i=e.buffers;return i.unshift(r),i}}class Ch extends Ne{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===ee.BINARY_EVENT||e.type===ee.BINARY_ACK?(this.reconstructor=new tC(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(Mh(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 r={type:Number(t.charAt(0))};if(ee[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===ee.BINARY_EVENT||r.type===ee.BINARY_ACK){const s=e+1;for(;t.charAt(++e)!=="-"&&e!=t.length;);const a=t.substring(s,e);if(a!=Number(a)||t.charAt(e)!=="-")throw new Error("Illegal attachments");r.attachments=Number(a)}if(t.charAt(e+1)==="/"){const s=e+1;for(;++e&&!(t.charAt(e)===","||e===t.length););r.nsp=t.substring(s,e)}else r.nsp="/";const i=t.charAt(e+1);if(i!==""&&Number(i)==i){const s=e+1;for(;++e;){const a=t.charAt(e);if(a==null||Number(a)!=a){--e;break}if(e===t.length)break}r.id=Number(t.substring(s,e+1))}if(t.charAt(++e)){const s=this.tryParse(t.substr(e));if(Ch.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,e){switch(t){case ee.CONNECT:return typeof e=="object";case ee.DISCONNECT:return e===void 0;case ee.CONNECT_ERROR:return typeof e=="string"||typeof e=="object";case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(e)&&e.length>0;case ee.ACK:case ee.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class tC{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=JM(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const eC=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ch,Encoder:QM,get PacketType(){return ee},protocol:ZM},Symbol.toStringTag,{value:"Module"}));function zn(n,t,e){return n.on(t,e),function(){n.off(t,e)}}const nC=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class kb extends Ne{constructor(t,e,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[zn(t,"open",this.onopen.bind(this)),zn(t,"packet",this.onpacket.bind(this)),zn(t,"error",this.onerror.bind(this)),zn(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(nC.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');e.unshift(t);const r={type:ee.EVENT,data:e};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const a=this.ids++,l=e.pop();this._registerAckCallback(a,l),r.id=a}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){const r=this.flags.timeout;if(r===void 0){this.acks[t]=e;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);e.call(this,new Error("operation has timed out"))},r);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(i),e.apply(this,[null,...s])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:ee.CONNECT,data:t})}):this.packet({type:ee.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 ee.CONNECT:if(t.data&&t.data.sid){const i=t.data.sid;this.onconnect(i)}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 ee.EVENT:case ee.BINARY_EVENT:this.onevent(t);break;case ee.ACK:case ee.BINARY_ACK:this.onack(t);break;case ee.DISCONNECT:this.ondisconnect();break;case ee.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);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 r of e)r.apply(this,t)}super.emit.apply(this,t)}ack(t){const e=this;let r=!1;return function(...i){r||(r=!0,e.packet({type:ee.ACK,id:t,data:i}))}}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:ee.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 r=0;r<e.length;r++)if(t===e[r])return e.splice(r,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 r=0;r<e.length;r++)if(t===e[r])return e.splice(r,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 r of e)r.apply(this,t.data)}}}function ss(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}ss.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};ss.prototype.reset=function(){this.attempts=0};ss.prototype.setMin=function(n){this.ms=n};ss.prototype.setMax=function(n){this.max=n};ss.prototype.setJitter=function(n){this.jitter=n};class Jf extends Ne{constructor(t,e){var r;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,Cl(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((r=e.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ss({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const i=e.parser||eC;this.encoder=new i.Encoder,this.decoder=new i.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 Eb(this.uri,this.opts);const e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=zn(e,"open",function(){r.onopen(),t&&t()}),s=zn(e,"error",a=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",a),t?t(a):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const a=this._timeout;a===0&&i();const l=this.setTimeoutFn(()=>{i(),e.close(),e.emit("error",new Error("timeout"))},a);this.opts.autoUnref&&l.unref(),this.subs.push(function(){clearTimeout(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(zn(t,"ping",this.onping.bind(this)),zn(t,"data",this.ondata.bind(this)),zn(t,"error",this.onerror.bind(this)),zn(t,"close",this.onclose.bind(this)),zn(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){Sb(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let r=this.nsps[t];return r||(r=new kb(this,t,e),this.nsps[t]=r),r}_destroy(t){const e=Object.keys(this.nsps);for(const r of e)if(this.nsps[r].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let r=0;r<e.length;r++)this.engine.write(e[r],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 r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},e);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const As={};function ol(n,t){typeof n=="object"&&(t=n,n=void 0),t=t||{};const e=VM(n,t.path||"/socket.io"),r=e.source,i=e.id,s=e.path,a=As[i]&&s in As[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return l?c=new Jf(r,t):(As[i]||(As[i]=new Jf(r,t)),c=As[i]),e.query&&!t.query&&(t.query=e.queryKey),c.socket(e.path,t)}Object.assign(ol,{Manager:Jf,Socket:kb,io:ol,connect:ol});class rC extends Jk{constructor(){var t,e;super(...arguments),this.config={history:{limit:100}},this.instances={io:ol(((t=window.DEV)==null?void 0:t.io.origin)??location.origin,{path:((e=window.DEV)==null?void 0:e.io.path)??`${location.pathname.split("/").slice(0,-3).join("/")}/socket.io/`})},this.services={io:{exec:(r,i)=>new Promise(s=>this.instances.io.emit(r,i,s)),subscribe:(r,i)=>this.instances.io.on(r,i)}},this.events=new ao}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 Nt=new rC,iC=Fe.compile(cM);class Pl extends Oe{constructor(t){var e;super(iC({})),this.options=t,this.instance=new gM({},((e=this.options)==null?void 0:e.depth)??3,{theme:"custom",afterCopyHandler:()=>Nt.shared.popups.push("Copied!")}),this.provide({})}provide(t){return this.instance.json=t,this.clear().append(this.instance.render())}static build(t){return new Pl(t)}}const sC=Fe.compile(uM);class Us extends Oe{constructor(t){super(),this.data=t,this.viewer=Pl.build({depth:3}).hide(),this.refresh()}provide(t){return Object.assign(this,{data:t})}refresh(){return this.replace(sC(this.data)).append(this.viewer),this.viewer.provide(kn.pick(this.data,["id","type","transports","schema"])),$r.build(this.element.querySelector("button.activity")).handle(()=>Nt.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 r;return(r=e==null?void 0:e.classList)==null?void 0:r.contains("meta")})&&t.target.nodeName!=="BUTTON"?this.viewer.isHidden?this.viewer.show():this.viewer.hide():null),this}match(t){var e,r;return[this.data.group,this.data.name,(e=this.data.schema.forward)==null?void 0:e.baseUrl,(r=this.data.schema.forward)==null?void 0:r.url,this.data.meta.tags.map(({value:i})=>i).join()].some(i=>i==null?void 0:i.includes(t))}static build(t){return new Us(t)}}const oC=`
|
|
348
|
-
<
|
|
363
|
+
`);var ER=/(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/,AR=/\d{2}:\d{2}:\d{2} GMT-\d{4}/,kR=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,Wa=window.requestAnimationFrame||function(n){return n(),0},Hi={hoverPreviewEnabled:!1,hoverPreviewArrayCount:10,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null,maxArrayItems:100,exposePath:!1,afterCopyHandler:function(){}},MR=function(){function n(t,e,r,i,s,a,l,c){e===void 0&&(e=1),r===void 0&&(r=Hi),a===void 0&&(a=[]),c===void 0&&(c=1),this.json=t,this.open=e,this.config=r,this.key=i,this.displayKey=s,this.path=a,this.arrayRange=l,this.level=c,this._isOpen=null,this.config.hoverPreviewEnabled===void 0&&(this.config.hoverPreviewEnabled=Hi.hoverPreviewEnabled),this.config.hoverPreviewArrayCount===void 0&&(this.config.hoverPreviewArrayCount=Hi.hoverPreviewArrayCount),this.config.hoverPreviewFieldCount===void 0&&(this.config.hoverPreviewFieldCount=Hi.hoverPreviewFieldCount),this.config.useToJSON===void 0&&(this.config.useToJSON=Hi.useToJSON),this.config.maxArrayItems===void 0&&(this.config.maxArrayItems=Hi.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"&&(ER.test(this.json)||kR.test(this.json)||AR.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 Zf(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 vb(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":yb(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 r=0;r<e;r++){var i=r*this.config.maxArrayItems,s=Math.min(this.json.length-1,i+(this.config.maxArrayItems-1));t.push(i+" … "+s)}}return!this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return[]},enumerable:!1,configurable:!0}),n.prototype.toggleOpen=function(t){var e,r;if(!((r=(e=t.target)===null||e===void 0?void 0:e.classList)===null||r===void 0)&&r.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(pn("open")))},n.prototype.onCopy=function(t){var e,r,i,s,a,l;return i=this,s=void 0,l=function(){return SR(this,function(c){switch(c.label){case 0:return[4,navigator.clipboard.writeText(Zf(this.json)?JSON.stringify(this.json):this.json)];case 1:return c.sent(),(r=(e=this.config).afterCopyHandler)===null||r===void 0||r.call(e),[2]}})},new((a=void 0)||(a=Promise))(function(c,h){function f(m){try{d(l.next(m))}catch(p){h(p)}}function g(m){try{d(l.throw(m))}catch(p){h(p)}}function d(m){m.done?c(m.value):new a(function(p){p(m.value)}).then(f,g)}d((l=l.apply(i,s||[])).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(pn("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(pn("open")))))},n.prototype.getInlinepreview=function(){var t=this;if(this.isArray){var e=this.json.slice(0,this.config.hoverPreviewArrayCount).map(i0);return e.length<this.json.length&&e.push("..."),"["+e.join(", ")+"]"}var r=this.keys,i=r.slice(0,this.config.hoverPreviewFieldCount).map(function(a){var l=(a+": "+i0(t.json[a])).replace(/\n/g,"");return l.length>35?l.substring(0,32)+"...":l}),s=r.length>=this.config.hoverPreviewFieldCount?", …":"";return"{ "+i.join(", ")+s+" }"},n.prototype.render=function(){this.element=qe("div","row");var t=this.isObject?qe("a","toggler-link"):qe("span");if(this.isArrayRange?t.appendChild(qe("span","range","["+this.displayKey+"]")):this.hasKey&&(t.appendChild(qe("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(qe("span","toggler")),this.isObject&&!this.useToJSON){var e=qe("span","value"),r=qe("span");if(!this.isArrayRange){var i=qe("span","constructor-name",this.constructorName);r.appendChild(i)}if(this.isArray&&!this.isArrayRange){var s=qe("span");s.appendChild(qe("span","bracket","[")),s.appendChild(qe("span","number",this.json.length)),s.appendChild(qe("span","bracket","]")),r.appendChild(s)}var a=qe("span","preview",this.getInlinepreview());r.appendChild(a),e.appendChild(r),t.appendChild(e)}else{(e=this.isUrl?qe("a"):qe("span")).classList.add(pn(this.type)),this.isDate&&e.classList.add(pn("date")),this.isUrl&&(e.classList.add(pn("url")),e.setAttribute("href",this.json));var l=bb(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(l)),t.appendChild(e)}if(this.isObject&&this.config.hoverPreviewEnabled){var c=qe("span","preview-text");c.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(c)}var h=qe("div","children");this.isObject&&h.classList.add(pn("object")),this.isArray&&h.classList.add(pn("array")),this.isEmpty&&h.classList.add(pn("empty")),this.config&&this.config.theme&&this.element.classList.add(pn(this.config.theme)),this.isOpen&&this.element.classList.add(pn("open"));var f=qe("button","copy");return f.classList.add("fas"),f.classList.add("fa-clone"),f.addEventListener("click",this.onCopy.bind(this)),t.prepend(f),this.element.appendChild(t),this.element.appendChild(h),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 r=this.element.querySelector("div."+pn("children"));if(r&&!this.isEmpty){var i=function(l,c){var h=e.isLargeArray?[c*e.config.maxArrayItems,Math.min(e.json.length-1,c*e.config.maxArrayItems+(e.config.maxArrayItems-1))]:void 0,f=e.isArrayRange?(e.arrayRange[0]+c).toString():l,g=new n(h?e.json.slice(h[0],h[1]+1):e.json[l],e.open-1,e.config,l,f,h?e.path:e.path.concat(f),h,e.level+1);r.appendChild(g.render())};if(t){var s=0,a=function(){var l=e.keys[s];i(l,s),(s+=1)<e.keys.length&&(s>10?a():Wa(a))};Wa(a)}else this.keys.forEach(function(l,c){return i(l,c)})}},n.prototype.removeChildren=function(t){t===void 0&&(t=!1);var e=this.element.querySelector("div."+pn("children"));if(t){var r=0,i=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?i():Wa(i))};Wa(i)}else e&&(e.innerHTML="")},n}();const cr=Object.create(null);cr.open="0";cr.close="1";cr.ping="2";cr.pong="3";cr.message="4";cr.upgrade="5";cr.noop="6";const ul=Object.create(null);Object.keys(cr).forEach(n=>{ul[cr[n]]=n});const RR={type:"error",data:"parser error"},OR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",PR=typeof ArrayBuffer=="function",CR=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,_b=({type:n,data:t},e,r)=>OR&&t instanceof Blob?e?r(t):s0(t,r):PR&&(t instanceof ArrayBuffer||CR(t))?e?r(t):s0(new Blob([t]),r):r(cr[n]+(t||"")),s0=(n,t)=>{const e=new FileReader;return e.onload=function(){const r=e.result.split(",")[1];t("b"+r)},e.readAsDataURL(n)},o0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ns=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<o0.length;n++)Ns[o0.charCodeAt(n)]=n;const LR=n=>{let t=n.length*.75,e=n.length,r,i=0,s,a,l,c;n[n.length-1]==="="&&(t--,n[n.length-2]==="="&&t--);const h=new ArrayBuffer(t),f=new Uint8Array(h);for(r=0;r<e;r+=4)s=Ns[n.charCodeAt(r)],a=Ns[n.charCodeAt(r+1)],l=Ns[n.charCodeAt(r+2)],c=Ns[n.charCodeAt(r+3)],f[i++]=s<<2|a>>4,f[i++]=(a&15)<<4|l>>2,f[i++]=(l&3)<<6|c&63;return h},TR=typeof ArrayBuffer=="function",wb=(n,t)=>{if(typeof n!="string")return{type:"message",data:xb(n,t)};const e=n.charAt(0);return e==="b"?{type:"message",data:IR(n.substring(1),t)}:ul[e]?n.length>1?{type:ul[e],data:n.substring(1)}:{type:ul[e]}:RR},IR=(n,t)=>{if(TR){const e=LR(n);return xb(e,t)}else return{base64:!0,data:n}},xb=(n,t)=>{switch(t){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},Sb="",BR=(n,t)=>{const e=n.length,r=new Array(e);let i=0;n.forEach((s,a)=>{_b(s,!1,l=>{r[a]=l,++i===e&&t(r.join(Sb))})})},DR=(n,t)=>{const e=n.split(Sb),r=[];for(let i=0;i<e.length;i++){const s=wb(e[i],t);if(r.push(s),s.type==="error")break}return r},Eb=4;function Fe(n){if(n)return FR(n)}function FR(n){for(var t in Fe.prototype)n[t]=Fe.prototype[t];return n}Fe.prototype.on=Fe.prototype.addEventListener=function(n,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(t),this};Fe.prototype.once=function(n,t){function e(){this.off(n,e),t.apply(this,arguments)}return e.fn=t,this.on(n,e),this};Fe.prototype.off=Fe.prototype.removeListener=Fe.prototype.removeAllListeners=Fe.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 r,i=0;i<e.length;i++)if(r=e[i],r===t||r.fn===t){e.splice(i,1);break}return e.length===0&&delete this._callbacks["$"+n],this};Fe.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),e=this._callbacks["$"+n],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(e){e=e.slice(0);for(var r=0,i=e.length;r<i;++r)e[r].apply(this,t)}return this};Fe.prototype.emitReserved=Fe.prototype.emit;Fe.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Fe.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Hr=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Ab(n,...t){return t.reduce((e,r)=>(n.hasOwnProperty(r)&&(e[r]=n[r]),e),{})}const NR=setTimeout,jR=clearTimeout;function Il(n,t){t.useNativeTimers?(n.setTimeoutFn=NR.bind(Hr),n.clearTimeoutFn=jR.bind(Hr)):(n.setTimeoutFn=setTimeout.bind(Hr),n.clearTimeoutFn=clearTimeout.bind(Hr))}const UR=1.33;function qR(n){return typeof n=="string"?WR(n):Math.ceil((n.byteLength||n.size)*UR)}function WR(n){let t=0,e=0;for(let r=0,i=n.length;r<i;r++)t=n.charCodeAt(r),t<128?e+=1:t<2048?e+=2:t<55296||t>=57344?e+=3:(r++,e+=4);return e}class HR extends Error{constructor(t,e,r){super(t),this.description=e,this.context=r,this.type="TransportError"}}class kb extends Fe{constructor(t){super(),this.writable=!1,Il(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,e,r){return super.emitReserved("error",new HR(t,e,r)),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=wb(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const Mb="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Qf=64,zR={};let a0=0,Ha=0,l0;function u0(n){let t="";do t=Mb[n%Qf]+t,n=Math.floor(n/Qf);while(n>0);return t}function Rb(){const n=u0(+new Date);return n!==l0?(a0=0,l0=n):n+"."+u0(a0++)}for(;Ha<Qf;Ha++)zR[Mb[Ha]]=Ha;function Ob(n){let t="";for(let e in n)n.hasOwnProperty(e)&&(t.length&&(t+="&"),t+=encodeURIComponent(e)+"="+encodeURIComponent(n[e]));return t}function VR(n){let t={},e=n.split("&");for(let r=0,i=e.length;r<i;r++){let s=e[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}let Pb=!1;try{Pb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const $R=Pb;function Cb(n){const t=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||$R))return new XMLHttpRequest}catch{}if(!t)try{return new Hr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function GR(){}const YR=function(){return new Cb({xdomain:!1}).responseType!=null}();class KR extends kb{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port,this.xs=t.secure!==r}const e=t&&t.forceBase64;this.supportsBinary=YR&&!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 r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||e()})),this.writable||(r++,this.once("drain",function(){--r||e()}))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const e=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};DR(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,BR(t,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const e=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Rb()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(e==="https"&&Number(this.opts.port)!==443||e==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const i=Ob(t),s=this.opts.hostname.indexOf(":")!==-1;return e+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new lr(this.uri(),t)}doWrite(t,e){const r=this.request({method:"POST",data:t});r.on("success",e),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(e,r)=>{this.onError("xhr poll error",e,r)}),this.pollXhr=t}}class lr extends Fe{constructor(t,e){super(),Il(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=Ab(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 Cb(t);try{e.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&e.setRequestHeader(r,this.opts.extraHeaders[r])}}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(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=lr.requestsCount++,lr.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=GR,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete lr.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()}}lr.requestsCount=0;lr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",c0);else if(typeof addEventListener=="function"){const n="onpagehide"in Hr?"pagehide":"unload";addEventListener(n,c0,!1)}}function c0(){for(let n in lr.requests)lr.requests.hasOwnProperty(n)&&lr.requests[n].abort()}const Lb=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,e)=>e(t,0),za=Hr.WebSocket||Hr.MozWebSocket,f0=!0,XR="arraybuffer",h0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class JR extends kb{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,r=h0?{}:Ab(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=f0&&!h0?e?new za(t,e):new za(t):new za(t,e,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||XR,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 r=t[e],i=e===t.length-1;_b(r,this.supportsBinary,s=>{const a={};try{f0&&this.ws.send(s)}catch{}i&&Lb(()=>{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 r="";this.opts.port&&(e==="wss"&&Number(this.opts.port)!==443||e==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Rb()),this.supportsBinary||(t.b64=1);const i=Ob(t),s=this.opts.hostname.indexOf(":")!==-1;return e+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}check(){return!!za}}const ZR={websocket:JR,polling:KR},QR=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tO=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function th(n){const t=n,e=n.indexOf("["),r=n.indexOf("]");e!=-1&&r!=-1&&(n=n.substring(0,e)+n.substring(e,r).replace(/:/g,";")+n.substring(r,n.length));let i=QR.exec(n||""),s={},a=14;for(;a--;)s[tO[a]]=i[a]||"";return e!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=eO(s,s.path),s.queryKey=nO(s,s.query),s}function eO(n,t){const e=/\/{2,9}/g,r=t.replace(e,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function nO(n,t){const e={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(e[i]=s)}),e}let Tb=class $i extends Fe{constructor(t,e={}){super(),t&&typeof t=="object"&&(e=t,t=null),t?(t=th(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=th(e.host).host),Il(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=VR(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=Eb,e.transport=t,this.id&&(e.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new ZR[t](r)}open(){let t;if(this.opts.rememberUpgrade&&$i.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),r=!1;$i.priorWebsocketSuccess=!1;const i=()=>{r||(e.send([{type:"ping",data:"probe"}]),e.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;$i.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),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 s(){r||(r=!0,f(),e.close(),e=null)}const a=g=>{const d=new Error("probe error: "+g);d.transport=e.name,s(),this.emitReserved("upgradeError",d)};function l(){a("transport closed")}function c(){a("socket closed")}function h(g){e&&g.name!==e.name&&s()}const f=()=>{e.removeListener("open",i),e.removeListener("error",a),e.removeListener("close",l),this.off("close",c),this.off("upgrading",h)};e.once("open",i),e.once("error",a),e.once("close",l),this.once("close",c),this.once("upgrading",h),e.open()}onOpen(){if(this.readyState="open",$i.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 r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(e+=qR(i)),r>0&&e>this.maxPayload)return this.writeBuffer.slice(0,r);e+=2}return this.writeBuffer}write(t,e,r){return this.sendPacket("message",t,e,r),this}send(t,e,r){return this.sendPacket("message",t,e,r),this}sendPacket(t,e,r,i){if(typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:t,data:e,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},r=()=>{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?r():t()}):this.upgrading?r():t()),this}onError(t){$i.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 r=0;const i=t.length;for(;r<i;r++)~this.transports.indexOf(t[r])&&e.push(t[r]);return e}};Tb.protocol=Eb;function rO(n,t="",e){let r=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),r=th(n)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(e&&e.port===r.port?"":":"+r.port),r}const iO=typeof ArrayBuffer=="function",sO=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Ib=Object.prototype.toString,oO=typeof Blob=="function"||typeof Blob<"u"&&Ib.call(Blob)==="[object BlobConstructor]",aO=typeof File=="function"||typeof File<"u"&&Ib.call(File)==="[object FileConstructor]";function Th(n){return iO&&(n instanceof ArrayBuffer||sO(n))||oO&&n instanceof Blob||aO&&n instanceof File}function cl(n,t){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let e=0,r=n.length;e<r;e++)if(cl(n[e]))return!0;return!1}if(Th(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return cl(n.toJSON(),!0);for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&cl(n[e]))return!0;return!1}function lO(n){const t=[],e=n.data,r=n;return r.data=eh(e,t),r.attachments=t.length,{packet:r,buffers:t}}function eh(n,t){if(!n)return n;if(Th(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 r=0;r<n.length;r++)e[r]=eh(n[r],t);return e}else if(typeof n=="object"&&!(n instanceof Date)){const e={};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=eh(n[r],t));return e}return n}function uO(n,t){return n.data=nh(n.data,t),n.attachments=void 0,n}function nh(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]=nh(n[e],t);else if(typeof n=="object")for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e]=nh(n[e],t));return n}const cO=5;var ee;(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"})(ee||(ee={}));class fO{constructor(t){this.replacer=t}encode(t){return(t.type===ee.EVENT||t.type===ee.ACK)&&cl(t)?(t.type=t.type===ee.EVENT?ee.BINARY_EVENT:ee.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===ee.BINARY_EVENT||t.type===ee.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=lO(t),r=this.encodeAsString(e.packet),i=e.buffers;return i.unshift(r),i}}class Ih extends Fe{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===ee.BINARY_EVENT||e.type===ee.BINARY_ACK?(this.reconstructor=new hO(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(Th(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 r={type:Number(t.charAt(0))};if(ee[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===ee.BINARY_EVENT||r.type===ee.BINARY_ACK){const s=e+1;for(;t.charAt(++e)!=="-"&&e!=t.length;);const a=t.substring(s,e);if(a!=Number(a)||t.charAt(e)!=="-")throw new Error("Illegal attachments");r.attachments=Number(a)}if(t.charAt(e+1)==="/"){const s=e+1;for(;++e&&!(t.charAt(e)===","||e===t.length););r.nsp=t.substring(s,e)}else r.nsp="/";const i=t.charAt(e+1);if(i!==""&&Number(i)==i){const s=e+1;for(;++e;){const a=t.charAt(e);if(a==null||Number(a)!=a){--e;break}if(e===t.length)break}r.id=Number(t.substring(s,e+1))}if(t.charAt(++e)){const s=this.tryParse(t.substr(e));if(Ih.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,e){switch(t){case ee.CONNECT:return typeof e=="object";case ee.DISCONNECT:return e===void 0;case ee.CONNECT_ERROR:return typeof e=="string"||typeof e=="object";case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(e)&&e.length>0;case ee.ACK:case ee.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class hO{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=uO(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const dO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ih,Encoder:fO,get PacketType(){return ee},protocol:cO},Symbol.toStringTag,{value:"Module"}));function $n(n,t,e){return n.on(t,e),function(){n.off(t,e)}}const pO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Bb extends Fe{constructor(t,e,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,r&&r.auth&&(this.auth=r.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(pO.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');e.unshift(t);const r={type:ee.EVENT,data:e};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const a=this.ids++,l=e.pop();this._registerAckCallback(a,l),r.id=a}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){const r=this.flags.timeout;if(r===void 0){this.acks[t]=e;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);e.call(this,new Error("operation has timed out"))},r);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(i),e.apply(this,[null,...s])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:ee.CONNECT,data:t})}):this.packet({type:ee.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 ee.CONNECT:if(t.data&&t.data.sid){const i=t.data.sid;this.onconnect(i)}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 ee.EVENT:case ee.BINARY_EVENT:this.onevent(t);break;case ee.ACK:case ee.BINARY_ACK:this.onack(t);break;case ee.DISCONNECT:this.ondisconnect();break;case ee.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);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 r of e)r.apply(this,t)}super.emit.apply(this,t)}ack(t){const e=this;let r=!1;return function(...i){r||(r=!0,e.packet({type:ee.ACK,id:t,data:i}))}}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:ee.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 r=0;r<e.length;r++)if(t===e[r])return e.splice(r,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 r=0;r<e.length;r++)if(t===e[r])return e.splice(r,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 r of e)r.apply(this,t.data)}}}function us(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}us.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};us.prototype.reset=function(){this.attempts=0};us.prototype.setMin=function(n){this.ms=n};us.prototype.setMax=function(n){this.max=n};us.prototype.setJitter=function(n){this.jitter=n};class rh extends Fe{constructor(t,e){var r;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,Il(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((r=e.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new us({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const i=e.parser||dO;this.encoder=new i.Encoder,this.decoder=new i.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 Tb(this.uri,this.opts);const e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=$n(e,"open",function(){r.onopen(),t&&t()}),s=$n(e,"error",a=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",a),t?t(a):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const a=this._timeout;a===0&&i();const l=this.setTimeoutFn(()=>{i(),e.close(),e.emit("error",new Error("timeout"))},a);this.opts.autoUnref&&l.unref(),this.subs.push(function(){clearTimeout(l)})}return this.subs.push(i),this.subs.push(s),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){Lb(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let r=this.nsps[t];return r||(r=new Bb(this,t,e),this.nsps[t]=r),r}_destroy(t){const e=Object.keys(this.nsps);for(const r of e)if(this.nsps[r].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let r=0;r<e.length;r++)this.engine.write(e[r],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 r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},e);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Os={};function fl(n,t){typeof n=="object"&&(t=n,n=void 0),t=t||{};const e=rO(n,t.path||"/socket.io"),r=e.source,i=e.id,s=e.path,a=Os[i]&&s in Os[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return l?c=new rh(r,t):(Os[i]||(Os[i]=new rh(r,t)),c=Os[i]),e.query&&!t.query&&(t.query=e.queryKey),c.socket(e.path,t)}Object.assign(fl,{Manager:rh,Socket:Bb,io:fl,connect:fl});class Bh{constructor(){this.storage={"settings:visual:path-size":Yn("M")},this.events=new is,this.memory=ho.build("services:settings"),Object.assign(this.storage,this.memory.extract()??{})}assign(t,e){return this.storage[t]=e,this.memory.store(this.storage),this.emit(`assign:${t}`,e)}get(t){return this.storage[t]}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(){return new Bh}}class Dh{constructor(){this.storage=new Set,this.events=new is}register(t){return this.storage.has(t)||(this.storage.add(t),this.emit("register",t)),this}clear(){return this.storage.clear(),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(){return new Dh}}var Bf,d0;function gO(){if(d0)return Bf;d0=1;var n=function(S){return t(S)&&!e(S)};function t(b){return!!b&&typeof b=="object"}function e(b){var S=Object.prototype.toString.call(b);return S==="[object RegExp]"||S==="[object Date]"||s(b)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function s(b){return b.$$typeof===i}function a(b){return Array.isArray(b)?[]:{}}function l(b,S){return S.clone!==!1&&S.isMergeableObject(b)?v(a(b),b,S):b}function c(b,S,O){return b.concat(S).map(function(w){return l(w,O)})}function h(b,S){if(!S.customMerge)return v;var O=S.customMerge(b);return typeof O=="function"?O:v}function f(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(S){return Object.propertyIsEnumerable.call(b,S)}):[]}function g(b){return Object.keys(b).concat(f(b))}function d(b,S){try{return S in b}catch{return!1}}function m(b,S){return d(b,S)&&!(Object.hasOwnProperty.call(b,S)&&Object.propertyIsEnumerable.call(b,S))}function p(b,S,O){var w={};return O.isMergeableObject(b)&&g(b).forEach(function(k){w[k]=l(b[k],O)}),g(S).forEach(function(k){m(b,k)||(d(b,k)&&O.isMergeableObject(S[k])?w[k]=h(k,O)(b[k],S[k],O):w[k]=l(S[k],O))}),w}function v(b,S,O){O=O||{},O.arrayMerge=O.arrayMerge||c,O.isMergeableObject=O.isMergeableObject||n,O.cloneUnlessOtherwiseSpecified=l;var w=Array.isArray(S),k=Array.isArray(b),C=w===k;return C?w?O.arrayMerge(b,S,O):p(b,S,O):l(S,O)}v.all=function(S,O){if(!Array.isArray(S))throw new Error("first argument should be an array");return S.reduce(function(w,k){return v(w,k,O)},{})};var _=v;return Bf=_,Bf}var mO=gO();const yO=Jr(mO);class Fh{constructor(){this.storage={history:{limit:100}}}assign(t){return this.storage=yO(this.storage,t,{arrayMerge:(e,r)=>r}),this}static build(){return new Fh}}class vO extends uM{constructor(){var t,e;super(...arguments),this.instances={io:fl(((t=window.DEV)==null?void 0:t.io.origin)??location.origin,{path:((e=window.DEV)==null?void 0:e.io.path)??`${location.pathname.split("/").slice(0,-3).join("/")}/socket.io/`})},this.services={settings:Bh.build(),groups:Dh.build(),config:Fh.build(),io:{exec:(r,i)=>new Promise(s=>this.instances.io.emit(r,i,s)),subscribe:(r,i)=>this.instances.io.on(r,i)}}}}const jt=new vO,bO=Ie.compile(xR);class Bl extends Re{constructor(t){var e;super(bO({})),this.options=t,this.instance=new MR({},((e=this.options)==null?void 0:e.depth)??3,{theme:"custom",afterCopyHandler:()=>jt.shared.popups.push("Copied!")}),this.provide({})}provide(t){return this.instance.json=t,this.clear().append(this.instance.render())}static build(t){return new Bl(t)}}const _O=Ie.compile(wR);class $s extends Re{constructor(t,e){super(),this.data=t,this.viewer=Bl.build({depth:3}).hide(),this.refresh(e)}provide(t){return Object.assign(this,{data:t})}refresh(t){return this.replace(_O({options:t,data:this.data})).append(this.viewer),this.viewer.provide(kn.pick(this.data,["id","type","transports","schema"])),ar.build(this.element.querySelector("button.activity")).handle(()=>jt.services.io.exec("expectations:update",{id:this.data.id,set:{isEnabled:!this.data.isEnabled}})),this.element.querySelector("div.meta").addEventListener("click",e=>e.composedPath().some(r=>{var i;return(i=r==null?void 0:r.classList)==null?void 0:i.contains("meta")})&&e.target.nodeName!=="BUTTON"?this.viewer.isHidden?this.viewer.show():this.viewer.hide():null),this}match(t){var e,r;return[this.data.group,this.data.name,(e=this.data.schema.forward)==null?void 0:e.baseUrl,(r=this.data.schema.forward)==null?void 0:r.url,this.data.meta.tags.map(({value:i})=>i).join()].some(i=>i==null?void 0:i.includes(t))}static build(t,e){return new $s(t,e)}}const wO=`
|
|
364
|
+
<p class="separator">{{title}}</p>
|
|
365
|
+
`,xO=Ie.compile(wO);class vi extends Re{highlight(){return this.element.classList.add("highlighted"),this}static build(t){return new vi(xO({title:t}))}}const SO=`
|
|
366
|
+
<div class="container history" id="{{data.id}}">
|
|
349
367
|
<div class="meta">
|
|
350
368
|
<div class="segment">
|
|
351
|
-
<span class="time">{{#toLocaleTime timestamp}}{{/toLocaleTime}}</span>
|
|
369
|
+
<span class="time">{{#toLocaleTime data.timestamp}}{{/toLocaleTime}}</span>
|
|
352
370
|
|
|
353
|
-
{{#if snapshot.error}}
|
|
371
|
+
{{#if data.snapshot.error}}
|
|
354
372
|
<span class="error">
|
|
355
|
-
{{#compare snapshot.error.code.length 'lte' 24}}{{snapshot.error.code}}{{/compare}}
|
|
356
|
-
{{#compare snapshot.error.code.length 'gt' 24}}Error{{/compare}}
|
|
373
|
+
{{#compare data.snapshot.error.code.length 'lte' 24}}{{data.snapshot.error.code}}{{/compare}}
|
|
374
|
+
{{#compare data.snapshot.error.code.length 'gt' 24}}Error{{/compare}}
|
|
357
375
|
</span>
|
|
358
376
|
{{/if}}
|
|
359
377
|
|
|
360
|
-
{{#compare status 'eq' 'pending'}}
|
|
378
|
+
{{#compare data.status 'eq' 'pending'}}
|
|
361
379
|
<span class="pending"><i class="fas fa-hourglass-start"></i></span>
|
|
362
380
|
{{/compare}}
|
|
363
381
|
|
|
364
|
-
{{#compare status 'eq' 'completed'}}
|
|
382
|
+
{{#compare data.status 'eq' 'completed'}}
|
|
365
383
|
<span class="status
|
|
366
|
-
{{#compare snapshot.transport 'eq' 'http'}}
|
|
367
|
-
{{#compare snapshot.outgoing.status 'lt' 400}}green{{/compare}}
|
|
368
|
-
{{#compare snapshot.outgoing.status 'gte' 400}}red{{/compare}}
|
|
384
|
+
{{#compare data.snapshot.transport 'eq' 'http'}}
|
|
385
|
+
{{#compare data.snapshot.outgoing.status 'lt' 400}}green{{/compare}}
|
|
386
|
+
{{#compare data.snapshot.outgoing.status 'gte' 400}}red{{/compare}}
|
|
369
387
|
{{/compare}}
|
|
370
|
-
"><b>{{snapshot.outgoing.status}}</b> {{toSeconds duration}}s</span>
|
|
388
|
+
"><b>{{data.snapshot.outgoing.status}}</b> {{toSeconds data.duration}}s</span>
|
|
371
389
|
{{/compare}}
|
|
372
390
|
|
|
373
|
-
<span class="method" style="color: {{toColor snapshot.incoming.method}};">{{snapshot.incoming.method}}</span>
|
|
374
|
-
|
|
391
|
+
<span class="method" style="color: {{toColor data.snapshot.incoming.method}};">{{data.snapshot.incoming.method}}</span>
|
|
392
|
+
{{> metaPath value=data.snapshot.incoming.path size=options.pathSize}}
|
|
375
393
|
|
|
376
|
-
{{#if snapshot.seed}}<span class="seed">{{snapshot.seed}}</span>{{/if}}
|
|
394
|
+
{{#if data.snapshot.seed}}<span class="seed">{{data.snapshot.seed}}</span>{{/if}}
|
|
377
395
|
</div>
|
|
378
396
|
|
|
379
397
|
<span class="arrow"><i class="fas fa-chevron-right"></i></span>
|
|
380
398
|
|
|
381
|
-
{{#if expectation}}
|
|
382
|
-
{{>expectationMeta expectation format='short'
|
|
399
|
+
{{#if data.expectation}}
|
|
400
|
+
{{>expectationMeta options data=data.expectation format='short'}}
|
|
383
401
|
{{else}}
|
|
384
402
|
<div class="segment"><span class="handled-with red">Nowhere</span></div>
|
|
385
403
|
{{/if}}
|
|
404
|
+
|
|
405
|
+
<div class="segment">
|
|
406
|
+
{{#if data.snapshot.cache.hasWritten}}<span class="cache written"><i class="fas fa-database"></i></span>{{/if}}
|
|
407
|
+
{{#if data.snapshot.cache.hasRead}}<span class="cache read"><i class="fas fa-database"></i></span>{{/if}}
|
|
408
|
+
</div>
|
|
386
409
|
</div>
|
|
387
410
|
|
|
388
411
|
{{!-- {{#if snapshot.messages}}
|
|
@@ -405,7 +428,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
405
428
|
</div>
|
|
406
429
|
{{/if}} --}}
|
|
407
430
|
</div>
|
|
408
|
-
`,
|
|
431
|
+
`,EO=Ie.compile(SO);class Gs extends Re{constructor(t,e){super(),this.data=t,this.viewer=Bl.build({depth:2}).hide(),this.refresh(e)}provide(t){return Object.assign(this,{data:t})}refresh(t){var e,r;return this.replace(EO({options:t,data: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}}},...((e=this.data.snapshot.cache)==null?void 0:e.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},...((r=this.data.snapshot.messages)==null?void 0:r.length)&&{messages:this.data.snapshot.messages}}),this.element.querySelector("div.meta").addEventListener("click",i=>i.composedPath().some(s=>{var a;return(a=s==null?void 0:s.classList)==null?void 0:a.contains("meta")})?this.viewer.isHidden?this.viewer.show():this.viewer.hide():null),this}match(t){var r;const e=[this.data.group,(r=this.data.expectation)==null?void 0:r.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(i=>i==null?void 0:i.includes(t));return e?!0:e||[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(i=>{var s;return(s=JSON.stringify(i))==null?void 0:s.includes(t)})}static build(t,e){return new Gs(t,e)}}class Nh extends Re{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 Nh(t)}}class jh extends Nh{constructor(){super({isPreventedToManualClose:!0}),this.append('<div><p>Ping pong</p><div class="loader"></div></div>').assignId("loader")}static build(){return new jh}}const AO=`
|
|
409
432
|
<div class="popup-message {{level}}">
|
|
410
433
|
{{#compare level 'eq' 'info'}}<i class="fas fa-check"></i>{{/compare}}
|
|
411
434
|
{{#compare level 'eq' 'warning'}}<i class="fas fa-exclamation-triangle"></i>{{/compare}}
|
|
@@ -413,13 +436,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
413
436
|
|
|
414
437
|
<span>{{{message}}}</span>
|
|
415
438
|
</div>
|
|
416
|
-
`,
|
|
439
|
+
`,kO=Ie.compile(AO);class Uh extends Re{constructor(){super(),this.element.classList.add("popups")}push(t,e={}){const r=this.compileHtmlStringToElement(kO({message:t,level:e.level??"info"}));this.element.prepend(r),setTimeout(()=>r.remove(),3e3)}static build(){return new Uh}}const MO=`
|
|
417
440
|
<div class="search">
|
|
418
441
|
<i class="fas fa-search"></i>
|
|
419
442
|
<div class="input" title="{{title}}"><input data-key="search" type="text"></div>
|
|
420
443
|
<button><i class="far fa-times-circle"></i></button>
|
|
421
444
|
</div>
|
|
422
|
-
`,
|
|
445
|
+
`,RO=Ie.compile(MO);class Dl extends Re{constructor(t){super(RO({title:(t==null?void 0:t.title)??"Type something"})),this.options=t,this.events=new Vv.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",kn.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 Dl(t)}}const OO=`
|
|
423
446
|
<header>
|
|
424
447
|
<div id="tabs">
|
|
425
448
|
{{#each tabs}}
|
|
@@ -433,29 +456,29 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
433
456
|
{{/each}}
|
|
434
457
|
</div>
|
|
435
458
|
</header>
|
|
436
|
-
`,
|
|
459
|
+
`,PO=Ie.compile(OO);class qh extends Re{constructor(t){super(PO({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,r)=>kn.set(e,r.id,r),{}),this.events=new is,Object.values(this.sections).forEach(e=>e.on("select",()=>{const r=this.element.querySelector(`button#${e.id}`);this.element.querySelectorAll("div#tabs button").forEach(i=>i.classList.remove("checked")),r==null||r.classList.add("checked")})),this.element.querySelector("div#tabs").addEventListener("click",e=>{var i;const r=e;((i=r.target)==null?void 0:i.nodeName)!=="BUTTON"||!this.sections[r.target.id]||this.emit("select",this.sections[r.target.id])}),this.on("select",e=>{Object.values(this.sections).forEach(r=>r.hide()),jt.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 qh(t)}}const CO=`
|
|
437
460
|
<div class="empty">
|
|
438
461
|
<i class="fas fa-hourglass-start"></i>
|
|
439
462
|
<p>There's still nothing...</p>
|
|
440
463
|
</div>
|
|
441
|
-
`,
|
|
464
|
+
`,LO=Ie.compile(CO);class Fl extends Re{static build(){return new Fl(LO({}))}}/*!
|
|
442
465
|
* @kurkle/color v0.3.4
|
|
443
466
|
* https://github.com/kurkle/color#readme
|
|
444
467
|
* (c) 2024 Jukka Kurkela
|
|
445
468
|
* Released under the MIT License
|
|
446
|
-
*/function
|
|
469
|
+
*/function yo(n){return n+.5|0}const zr=(n,t,e)=>Math.max(Math.min(n,e),t);function js(n){return zr(yo(n*2.55),0,255)}function Yr(n){return zr(yo(n*255),0,255)}function Ar(n){return zr(yo(n/2.55)/100,0,1)}function p0(n){return zr(yo(n*100),0,100)}const Fn={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},ih=[..."0123456789ABCDEF"],TO=n=>ih[n&15],IO=n=>ih[(n&240)>>4]+ih[n&15],Va=n=>(n&240)>>4===(n&15),BO=n=>Va(n.r)&&Va(n.g)&&Va(n.b)&&Va(n.a);function DO(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&Fn[n[1]]*17,g:255&Fn[n[2]]*17,b:255&Fn[n[3]]*17,a:t===5?Fn[n[4]]*17:255}:(t===7||t===9)&&(e={r:Fn[n[1]]<<4|Fn[n[2]],g:Fn[n[3]]<<4|Fn[n[4]],b:Fn[n[5]]<<4|Fn[n[6]],a:t===9?Fn[n[7]]<<4|Fn[n[8]]:255})),e}const FO=(n,t)=>n<255?t(n):"";function NO(n){var t=BO(n)?TO:IO;return n?"#"+t(n.r)+t(n.g)+t(n.b)+FO(n.a,t):void 0}const jO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Db(n,t,e){const r=t*Math.min(e,1-e),i=(s,a=(s+n/30)%12)=>e-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function UO(n,t,e){const r=(i,s=(i+n/60)%6)=>e-e*t*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function qO(n,t,e){const r=Db(n,1,.5);let i;for(t+e>1&&(i=1/(t+e),t*=i,e*=i),i=0;i<3;i++)r[i]*=1-t-e,r[i]+=t;return r}function WO(n,t,e,r,i){return n===i?(t-e)/r+(t<e?6:0):t===i?(e-n)/r+2:(n-t)/r+4}function Wh(n){const e=n.r/255,r=n.g/255,i=n.b/255,s=Math.max(e,r,i),a=Math.min(e,r,i),l=(s+a)/2;let c,h,f;return s!==a&&(f=s-a,h=l>.5?f/(2-s-a):f/(s+a),c=WO(e,r,i,f,s),c=c*60+.5),[c|0,h||0,l]}function Hh(n,t,e,r){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,r)).map(Yr)}function zh(n,t,e){return Hh(Db,n,t,e)}function HO(n,t,e){return Hh(qO,n,t,e)}function zO(n,t,e){return Hh(UO,n,t,e)}function Fb(n){return(n%360+360)%360}function VO(n){const t=jO.exec(n);let e=255,r;if(!t)return;t[5]!==r&&(e=t[6]?js(+t[5]):Yr(+t[5]));const i=Fb(+t[2]),s=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=HO(i,s,a):t[1]==="hsv"?r=zO(i,s,a):r=zh(i,s,a),{r:r[0],g:r[1],b:r[2],a:e}}function $O(n,t){var e=Wh(n);e[0]=Fb(e[0]+t),e=zh(e),n.r=e[0],n.g=e[1],n.b=e[2]}function GO(n){if(!n)return;const t=Wh(n),e=t[0],r=p0(t[1]),i=p0(t[2]);return n.a<255?`hsla(${e}, ${r}%, ${i}%, ${Ar(n.a)})`:`hsl(${e}, ${r}%, ${i}%)`}const g0={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"},m0={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 YO(){const n={},t=Object.keys(m0),e=Object.keys(g0);let r,i,s,a,l;for(r=0;r<t.length;r++){for(a=l=t[r],i=0;i<e.length;i++)s=e[i],l=l.replace(s,g0[s]);s=parseInt(m0[a],16),n[l]=[s>>16&255,s>>8&255,s&255]}return n}let $a;function KO(n){$a||($a=YO(),$a.transparent=[0,0,0,0]);const t=$a[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const XO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function JO(n){const t=XO.exec(n);let e=255,r,i,s;if(t){if(t[7]!==r){const a=+t[7];e=t[8]?js(a):zr(a*255,0,255)}return r=+t[1],i=+t[3],s=+t[5],r=255&(t[2]?js(r):zr(r,0,255)),i=255&(t[4]?js(i):zr(i,0,255)),s=255&(t[6]?js(s):zr(s,0,255)),{r,g:i,b:s,a:e}}}function ZO(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${Ar(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}const Df=n=>n<=.0031308?n*12.92:Math.pow(n,1/2.4)*1.055-.055,zi=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function QO(n,t,e){const r=zi(Ar(n.r)),i=zi(Ar(n.g)),s=zi(Ar(n.b));return{r:Yr(Df(r+e*(zi(Ar(t.r))-r))),g:Yr(Df(i+e*(zi(Ar(t.g))-i))),b:Yr(Df(s+e*(zi(Ar(t.b))-s))),a:n.a+e*(t.a-n.a)}}function Ga(n,t,e){if(n){let r=Wh(n);r[t]=Math.max(0,Math.min(r[t]+r[t]*e,t===0?360:1)),r=zh(r),n.r=r[0],n.g=r[1],n.b=r[2]}}function Nb(n,t){return n&&Object.assign(t||{},n)}function y0(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=Yr(n[3]))):(t=Nb(n,{r:0,g:0,b:0,a:1}),t.a=Yr(t.a)),t}function tP(n){return n.charAt(0)==="r"?JO(n):VO(n)}class no{constructor(t){if(t instanceof no)return t;const e=typeof t;let r;e==="object"?r=y0(t):e==="string"&&(r=DO(t)||KO(t)||tP(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Nb(this._rgb);return t&&(t.a=Ar(t.a)),t}set rgb(t){this._rgb=y0(t)}rgbString(){return this._valid?ZO(this._rgb):void 0}hexString(){return this._valid?NO(this._rgb):void 0}hslString(){return this._valid?GO(this._rgb):void 0}mix(t,e){if(t){const r=this.rgb,i=t.rgb;let s;const a=e===s?.5:e,l=2*a-1,c=r.a-i.a,h=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;s=1-h,r.r=255&h*r.r+s*i.r+.5,r.g=255&h*r.g+s*i.g+.5,r.b=255&h*r.b+s*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=QO(this._rgb,t._rgb,e)),this}clone(){return new no(this.rgb)}alpha(t){return this._rgb.a=Yr(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=yo(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 Ga(this._rgb,2,t),this}darken(t){return Ga(this._rgb,2,-t),this}saturate(t){return Ga(this._rgb,1,t),this}desaturate(t){return Ga(this._rgb,1,-t),this}rotate(t){return $O(this._rgb,t),this}}/*!
|
|
447
470
|
* Chart.js v4.4.8
|
|
448
471
|
* https://www.chartjs.org
|
|
449
472
|
* (c) 2025 Chart.js Contributors
|
|
450
473
|
* Released under the MIT License
|
|
451
|
-
*/function br(){}const NC=(()=>{let n=0;return()=>n++})();function Kt(n){return n==null}function Ee(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 Jt(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function Le(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function En(n,t){return Le(n)?n:t}function Wt(n,t){return typeof n>"u"?t:n}const jC=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,Pb=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*t:+n;function me(n,t,e){if(n&&typeof n.call=="function")return n.apply(e,t)}function le(n,t,e,r){let i,s,a;if(Ee(n))for(s=n.length,i=0;i<s;i++)t.call(e,n[i],i);else if(Jt(n))for(a=Object.keys(n),s=a.length,i=0;i<s;i++)t.call(e,n[a[i]],a[i])}function yl(n,t){let e,r,i,s;if(!n||!t||n.length!==t.length)return!1;for(e=0,r=n.length;e<r;++e)if(i=n[e],s=t[e],i.datasetIndex!==s.datasetIndex||i.index!==s.index)return!1;return!0}function vl(n){if(Ee(n))return n.map(vl);if(Jt(n)){const t=Object.create(null),e=Object.keys(n),r=e.length;let i=0;for(;i<r;++i)t[e[i]]=vl(n[e[i]]);return t}return n}function Ob(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function UC(n,t,e,r){if(!Ob(n))return;const i=t[n],s=e[n];Jt(i)&&Jt(s)?Zs(i,s,r):t[n]=vl(s)}function Zs(n,t,e){const r=Ee(t)?t:[t],i=r.length;if(!Jt(n))return n;e=e||{};const s=e.merger||UC;let a;for(let l=0;l<i;++l){if(a=r[l],!Jt(a))continue;const c=Object.keys(a);for(let h=0,f=c.length;h<f;++h)s(c[h],n,a,e)}return n}function Ws(n,t){return Zs(n,t,{merger:qC})}function qC(n,t,e){if(!Ob(n))return;const r=t[n],i=e[n];Jt(r)&&Jt(i)?Ws(r,i):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=vl(i))}const u0={"":n=>n,x:n=>n.x,y:n=>n.y};function WC(n){const t=n.split("."),e=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(e.push(r),r="");return e}function HC(n){const t=WC(n);return e=>{for(const r of t){if(r==="")break;e=e&&e[r]}return e}}function Yr(n,t){return(u0[t]||(u0[t]=HC(t)))(n)}function Fh(n){return n.charAt(0).toUpperCase()+n.slice(1)}const Qs=n=>typeof n<"u",Kr=n=>typeof n=="function",c0=(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 _e=Math.PI,be=2*_e,VC=be+_e,bl=Number.POSITIVE_INFINITY,$C=_e/180,Ie=_e/2,ai=_e/4,f0=_e*2/3,Hr=Math.log10,ar=Math.sign;function Hs(n,t,e){return Math.abs(n-t)<e}function h0(n){const t=Math.round(n);n=Hs(n,t,n/1e3)?t:n;const e=Math.pow(10,Math.floor(Hr(n))),r=n/e;return(r<=1?1:r<=2?2:r<=5?5:10)*e}function GC(n){const t=[],e=Math.sqrt(n);let r;for(r=1;r<e;r++)n%r===0&&(t.push(r),t.push(n/r));return e===(e|0)&&t.push(e),t.sort((i,s)=>i-s).pop(),t}function YC(n){return typeof n=="symbol"||typeof n=="object"&&n!==null&&!(Symbol.toPrimitive in n||"toString"in n||"valueOf"in n)}function Ji(n){return!YC(n)&&!isNaN(parseFloat(n))&&isFinite(n)}function KC(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}function Lb(n,t,e){let r,i,s;for(r=0,i=n.length;r<i;r++)s=n[r][e],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function Vn(n){return n*(_e/180)}function Nh(n){return n*(180/_e)}function d0(n){if(!Le(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function Tb(n,t){const e=t.x-n.x,r=t.y-n.y,i=Math.sqrt(e*e+r*r);let s=Math.atan2(r,e);return s<-.5*_e&&(s+=be),{angle:s,distance:i}}function Qf(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function XC(n,t){return(n-t+VC)%be-_e}function An(n){return(n%be+be)%be}function to(n,t,e,r){const i=An(n),s=An(t),a=An(e),l=An(s-i),c=An(a-i),h=An(i-s),f=An(i-a);return i===s||i===a||r&&s===a||l>c&&h<f}function Ge(n,t,e){return Math.max(t,Math.min(e,n))}function JC(n){return Ge(n,-32768,32767)}function Rr(n,t,e,r=1e-6){return n>=Math.min(t,e)-r&&n<=Math.max(t,e)+r}function jh(n,t,e){e=e||(a=>n[a]<t);let r=n.length-1,i=0,s;for(;r-i>1;)s=i+r>>1,e(s)?i=s:r=s;return{lo:i,hi:r}}const Mr=(n,t,e,r)=>jh(n,e,r?i=>{const s=n[i][t];return s<e||s===e&&n[i+1][t]===e}:i=>n[i][t]<e),ZC=(n,t,e)=>jh(n,e,r=>n[r][t]>=e);function QC(n,t,e){let r=0,i=n.length;for(;r<i&&n[r]<t;)r++;for(;i>r&&n[i-1]>e;)i--;return r>0||i<n.length?n.slice(r,i):n}const Bb=["push","pop","shift","splice","unshift"];function tP(n,t){if(n._chartjs){n._chartjs.listeners.push(t);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Bb.forEach(e=>{const r="_onData"+Fh(e),i=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...s){const a=i.apply(this,s);return n._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...s)}),a}})})}function p0(n,t){const e=n._chartjs;if(!e)return;const r=e.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(Bb.forEach(s=>{delete n[s]}),delete n._chartjs)}function Ib(n){const t=new Set(n);return t.size===n.length?n:Array.from(t)}const Db=function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame}();function Fb(n,t){let e=[],r=!1;return function(...i){e=i,r||(r=!0,Db.call(window,()=>{r=!1,n.apply(t,e)}))}}function eP(n,t){let e;return function(...r){return t?(clearTimeout(e),e=setTimeout(n,t,r)):n.apply(this,r),t}}const Uh=n=>n==="start"?"left":n==="end"?"right":"center",Qe=(n,t,e)=>n==="start"?t:n==="end"?e:(t+e)/2,nP=(n,t,e,r)=>n===(r?"left":"right")?e:n==="center"?(t+e)/2:t;function Nb(n,t,e){const r=t.length;let i=0,s=r;if(n._sorted){const{iScale:a,vScale:l,_parsed:c}=n,h=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null,f=a.axis,{min:g,max:d,minDefined:m,maxDefined:p}=a.getUserBounds();if(m){if(i=Math.min(Mr(c,f,g).lo,e?r:Mr(t,f,a.getPixelForValue(g)).lo),h){const v=c.slice(0,i+1).reverse().findIndex(b=>!Kt(b[l.axis]));i-=Math.max(0,v)}i=Ge(i,0,r-1)}if(p){let v=Math.max(Mr(c,a.axis,d,!0).hi+1,e?0:Mr(t,f,a.getPixelForValue(d),!0).hi+1);if(h){const b=c.slice(v-1).findIndex(_=>!Kt(_[l.axis]));v+=Math.max(0,b)}s=Ge(v,i,r)-i}else s=r-i}return{start:i,count:s}}function jb(n){const{xScale:t,yScale:e,_scaleRanges:r}=n,i={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!r)return n._scaleRanges=i,!0;const s=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==e.min||r.ymax!==e.max;return Object.assign(r,i),s}const Ha=n=>n===0||n===1,g0=(n,t,e)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-t)*be/e)),m0=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*be/e)+1,zs={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*Ie)+1,easeOutSine:n=>Math.sin(n*Ie),easeInOutSine:n=>-.5*(Math.cos(_e*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=>Ha(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=>Ha(n)?n:g0(n,.075,.3),easeOutElastic:n=>Ha(n)?n:m0(n,.075,.3),easeInOutElastic(n){return Ha(n)?n:n<.5?.5*g0(n*2,.1125,.45):.5+.5*m0(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-zs.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?zs.easeInBounce(n*2)*.5:zs.easeOutBounce(n*2-1)*.5+.5};function qh(n){if(n&&typeof n=="object"){const t=n.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function y0(n){return qh(n)?n:new Js(n)}function Of(n){return qh(n)?n:new Js(n).saturate(.5).darken(.1).hexString()}const rP=["x","y","borderWidth","radius","tension"],iP=["color","borderColor","backgroundColor"];function sP(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:iP},numbers:{type:"number",properties:rP}}),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 oP(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const v0=new Map;function aP(n,t){t=t||{};const e=n+JSON.stringify(t);let r=v0.get(e);return r||(r=new Intl.NumberFormat(n,t),v0.set(e,r)),r}function ho(n,t,e){return aP(t,e).format(n)}const Ub={values(n){return Ee(n)?n:""+n},numeric(n,t,e){if(n===0)return"0";const r=this.chart.options.locale;let i,s=n;if(e.length>1){const h=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(h<1e-4||h>1e15)&&(i="scientific"),s=lP(n,e)}const a=Hr(Math.abs(s)),l=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:i,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),ho(n,r,c)},logarithmic(n,t,e){if(n===0)return"0";const r=e[t].significand||n/Math.pow(10,Math.floor(Hr(n)));return[1,2,3,5,10,15].includes(r)||t>.8*e.length?Ub.numeric.call(this,n,t,e):""}};function lP(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 Tl={formatters:Ub};function uP(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:Tl.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 vi=Object.create(null),th=Object.create(null);function Vs(n,t){if(!t)return n;const e=t.split(".");for(let r=0,i=e.length;r<i;++r){const s=e[r];n=n[s]||(n[s]=Object.create(null))}return n}function Lf(n,t,e){return typeof t=="string"?Zs(Vs(n,t),e):Zs(Vs(n,""),t)}class cP{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=r=>r.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=(r,i)=>Of(i.backgroundColor),this.hoverBorderColor=(r,i)=>Of(i.borderColor),this.hoverColor=(r,i)=>Of(i.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 Lf(this,t,e)}get(t){return Vs(this,t)}describe(t,e){return Lf(th,t,e)}override(t,e){return Lf(vi,t,e)}route(t,e,r,i){const s=Vs(this,t),a=Vs(this,r),l="_"+e;Object.defineProperties(s,{[l]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const c=this[l],h=a[i];return Jt(c)?Object.assign({},h,c):Wt(c,h)},set(c){this[l]=c}}})}apply(t){t.forEach(e=>e(this))}}var Ae=new cP({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[sP,oP,uP]);function fP(n){return!n||Kt(n.size)||Kt(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function _l(n,t,e,r,i){let s=t[i];return s||(s=t[i]=n.measureText(i).width,e.push(i)),s>r&&(r=s),r}function hP(n,t,e,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},s=r.garbageCollect=[],r.font=t),n.save(),n.font=t;let a=0;const l=e.length;let c,h,f,g,d;for(c=0;c<l;c++)if(g=e[c],g!=null&&!Ee(g))a=_l(n,i,s,a,g);else if(Ee(g))for(h=0,f=g.length;h<f;h++)d=g[h],d!=null&&!Ee(d)&&(a=_l(n,i,s,a,d));n.restore();const m=s.length/2;if(m>e.length){for(c=0;c<m;c++)delete i[s[c]];s.splice(0,m)}return a}function li(n,t,e){const r=n.currentDevicePixelRatio,i=e!==0?Math.max(e/2,.5):0;return Math.round((t-i)*r)/r+i}function b0(n,t){!t&&!n||(t=t||n.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,n.width,n.height),t.restore())}function eh(n,t,e,r){qb(n,t,e,r,null)}function qb(n,t,e,r,i){let s,a,l,c,h,f,g,d;const m=t.pointStyle,p=t.rotation,v=t.radius;let b=(p||0)*$C;if(m&&typeof m=="object"&&(s=m.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){n.save(),n.translate(e,r),n.rotate(b),n.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),n.restore();return}if(!(isNaN(v)||v<=0)){switch(n.beginPath(),m){default:i?n.ellipse(e,r,i/2,v,0,0,be):n.arc(e,r,v,0,be),n.closePath();break;case"triangle":f=i?i/2:v,n.moveTo(e+Math.sin(b)*f,r-Math.cos(b)*v),b+=f0,n.lineTo(e+Math.sin(b)*f,r-Math.cos(b)*v),b+=f0,n.lineTo(e+Math.sin(b)*f,r-Math.cos(b)*v),n.closePath();break;case"rectRounded":h=v*.516,c=v-h,a=Math.cos(b+ai)*c,g=Math.cos(b+ai)*(i?i/2-h:c),l=Math.sin(b+ai)*c,d=Math.sin(b+ai)*(i?i/2-h:c),n.arc(e-g,r-l,h,b-_e,b-Ie),n.arc(e+d,r-a,h,b-Ie,b),n.arc(e+g,r+l,h,b,b+Ie),n.arc(e-d,r+a,h,b+Ie,b+_e),n.closePath();break;case"rect":if(!p){c=Math.SQRT1_2*v,f=i?i/2:c,n.rect(e-f,r-c,2*f,2*c);break}b+=ai;case"rectRot":g=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,l=Math.sin(b)*v,d=Math.sin(b)*(i?i/2:v),n.moveTo(e-g,r-l),n.lineTo(e+d,r-a),n.lineTo(e+g,r+l),n.lineTo(e-d,r+a),n.closePath();break;case"crossRot":b+=ai;case"cross":g=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,l=Math.sin(b)*v,d=Math.sin(b)*(i?i/2:v),n.moveTo(e-g,r-l),n.lineTo(e+g,r+l),n.moveTo(e+d,r-a),n.lineTo(e-d,r+a);break;case"star":g=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,l=Math.sin(b)*v,d=Math.sin(b)*(i?i/2:v),n.moveTo(e-g,r-l),n.lineTo(e+g,r+l),n.moveTo(e+d,r-a),n.lineTo(e-d,r+a),b+=ai,g=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,l=Math.sin(b)*v,d=Math.sin(b)*(i?i/2:v),n.moveTo(e-g,r-l),n.lineTo(e+g,r+l),n.moveTo(e+d,r-a),n.lineTo(e-d,r+a);break;case"line":a=i?i/2:Math.cos(b)*v,l=Math.sin(b)*v,n.moveTo(e-a,r-l),n.lineTo(e+a,r+l);break;case"dash":n.moveTo(e,r),n.lineTo(e+Math.cos(b)*(i?i/2:v),r+Math.sin(b)*v);break;case!1:n.closePath();break}n.fill(),t.borderWidth>0&&n.stroke()}}function Cr(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 Bl(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()}function Il(n){n.restore()}function dP(n,t,e,r,i){if(!t)return n.lineTo(e.x,e.y);if(i==="middle"){const s=(t.x+e.x)/2;n.lineTo(s,t.y),n.lineTo(s,e.y)}else i==="after"!=!!r?n.lineTo(t.x,e.y):n.lineTo(e.x,t.y);n.lineTo(e.x,e.y)}function pP(n,t,e,r){if(!t)return n.lineTo(e.x,e.y);n.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?e.cp2x:e.cp1x,r?e.cp2y:e.cp1y,e.x,e.y)}function gP(n,t){t.translation&&n.translate(t.translation[0],t.translation[1]),Kt(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 mP(n,t,e,r,i){if(i.strikethrough||i.underline){const s=n.measureText(r),a=t-s.actualBoundingBoxLeft,l=t+s.actualBoundingBoxRight,c=e-s.actualBoundingBoxAscent,h=e+s.actualBoundingBoxDescent,f=i.strikethrough?(c+h)/2:h;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=i.decorationWidth||2,n.moveTo(a,f),n.lineTo(l,f),n.stroke()}}function yP(n,t){const e=n.fillStyle;n.fillStyle=t.color,n.fillRect(t.left,t.top,t.width,t.height),n.fillStyle=e}function bi(n,t,e,r,i,s={}){const a=Ee(t)?t:[t],l=s.strokeWidth>0&&s.strokeColor!=="";let c,h;for(n.save(),n.font=i.string,gP(n,s),c=0;c<a.length;++c)h=a[c],s.backdrop&&yP(n,s.backdrop),l&&(s.strokeColor&&(n.strokeStyle=s.strokeColor),Kt(s.strokeWidth)||(n.lineWidth=s.strokeWidth),n.strokeText(h,e,r,s.maxWidth)),n.fillText(h,e,r,s.maxWidth),mP(n,e,r,h,s),r+=Number(i.lineHeight);n.restore()}function eo(n,t){const{x:e,y:r,w:i,h:s,radius:a}=t;n.arc(e+a.topLeft,r+a.topLeft,a.topLeft,1.5*_e,_e,!0),n.lineTo(e,r+s-a.bottomLeft),n.arc(e+a.bottomLeft,r+s-a.bottomLeft,a.bottomLeft,_e,Ie,!0),n.lineTo(e+i-a.bottomRight,r+s),n.arc(e+i-a.bottomRight,r+s-a.bottomRight,a.bottomRight,Ie,0,!0),n.lineTo(e+i,r+a.topRight),n.arc(e+i-a.topRight,r+a.topRight,a.topRight,0,-Ie,!0),n.lineTo(e+a.topLeft,r)}const vP=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,bP=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function _P(n,t){const e=(""+n).match(vP);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 wP=n=>+n||0;function Wh(n,t){const e={},r=Jt(t),i=r?Object.keys(t):t,s=Jt(n)?r?a=>Wt(n[a],n[t[a]]):a=>n[a]:()=>n;for(const a of i)e[a]=wP(s(a));return e}function Wb(n){return Wh(n,{top:"y",right:"x",bottom:"y",left:"x"})}function mi(n){return Wh(n,["topLeft","topRight","bottomLeft","bottomRight"])}function en(n){const t=Wb(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ze(n,t){n=n||{},t=t||Ae.font;let e=Wt(n.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let r=Wt(n.style,t.style);r&&!(""+r).match(bP)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Wt(n.family,t.family),lineHeight:_P(Wt(n.lineHeight,t.lineHeight),e),size:e,style:r,weight:Wt(n.weight,t.weight),string:""};return i.string=fP(i),i}function Bs(n,t,e,r){let i,s,a;for(i=0,s=n.length;i<s;++i)if(a=n[i],a!==void 0&&a!==void 0)return a}function xP(n,t,e){const{min:r,max:i}=n,s=Pb(t,(i-r)/2),a=(l,c)=>e&&l===0?0:l+c;return{min:a(r,-Math.abs(s)),max:a(i,s)}}function Xr(n,t){return Object.assign(Object.create(n),t)}function Hh(n,t=[""],e,r,i=()=>n[0]){const s=e||n;typeof r>"u"&&(r=$b("_fallback",n));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:s,_fallback:r,_getTarget:i,override:l=>Hh([l,...n],t,s,r)};return new Proxy(a,{deleteProperty(l,c){return delete l[c],delete l._keys,delete n[0][c],!0},get(l,c){return zb(l,c,()=>PP(c,t,n,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(l,c){return w0(l).includes(c)},ownKeys(l){return w0(l)},set(l,c,h){const f=l._storage||(l._storage=i());return l[c]=f[c]=h,delete l._keys,!0}})}function Zi(n,t,e,r){const i={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:Hb(n,r),setContext:s=>Zi(n,s,e,r),override:s=>Zi(n.override(s),t,e,r)};return new Proxy(i,{deleteProperty(s,a){return delete s[a],delete n[a],!0},get(s,a,l){return zb(s,a,()=>EP(s,a,l))},getOwnPropertyDescriptor(s,a){return s._descriptors.allKeys?Reflect.has(n,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,a)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(s,a){return Reflect.has(n,a)},ownKeys(){return Reflect.ownKeys(n)},set(s,a,l){return n[a]=l,delete s[a],!0}})}function Hb(n,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=n;return{allKeys:i,scriptable:e,indexable:r,isScriptable:Kr(e)?e:()=>e,isIndexable:Kr(r)?r:()=>r}}const SP=(n,t)=>n?n+Fh(t):t,zh=(n,t)=>Jt(t)&&n!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function zb(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t)||t==="constructor")return n[t];const r=e();return n[t]=r,r}function EP(n,t,e){const{_proxy:r,_context:i,_subProxy:s,_descriptors:a}=n;let l=r[t];return Kr(l)&&a.isScriptable(t)&&(l=AP(t,l,n,e)),Ee(l)&&l.length&&(l=kP(t,l,n,a.isIndexable)),zh(t,l)&&(l=Zi(l,i,s&&s[t],a)),l}function AP(n,t,e,r){const{_proxy:i,_context:s,_subProxy:a,_stack:l}=e;if(l.has(n))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+n);l.add(n);let c=t(s,a||r);return l.delete(n),zh(n,c)&&(c=Vh(i._scopes,i,n,c)),c}function kP(n,t,e,r){const{_proxy:i,_context:s,_subProxy:a,_descriptors:l}=e;if(typeof s.index<"u"&&r(n))return t[s.index%t.length];if(Jt(t[0])){const c=t,h=i._scopes.filter(f=>f!==c);t=[];for(const f of c){const g=Vh(h,i,n,f);t.push(Zi(g,s,a&&a[n],l))}}return t}function Vb(n,t,e){return Kr(n)?n(t,e):n}const RP=(n,t)=>n===!0?t:typeof n=="string"?Yr(t,n):void 0;function MP(n,t,e,r,i){for(const s of t){const a=RP(e,s);if(a){n.add(a);const l=Vb(a._fallback,e,i);if(typeof l<"u"&&l!==e&&l!==r)return l}else if(a===!1&&typeof r<"u"&&e!==r)return null}return!1}function Vh(n,t,e,r){const i=t._rootScopes,s=Vb(t._fallback,e,r),a=[...n,...i],l=new Set;l.add(r);let c=_0(l,a,e,s||e,r);return c===null||typeof s<"u"&&s!==e&&(c=_0(l,a,s,c,r),c===null)?!1:Hh(Array.from(l),[""],i,s,()=>CP(t,e,r))}function _0(n,t,e,r,i){for(;e;)e=MP(n,t,e,r,i);return e}function CP(n,t,e){const r=n._getTarget();t in r||(r[t]={});const i=r[t];return Ee(i)&&Jt(e)?e:i||{}}function PP(n,t,e,r){let i;for(const s of t)if(i=$b(SP(s,n),e),typeof i<"u")return zh(n,i)?Vh(e,r,n,i):i}function $b(n,t){for(const e of t){if(!e)continue;const r=e[n];if(typeof r<"u")return r}}function w0(n){let t=n._keys;return t||(t=n._keys=OP(n._scopes)),t}function OP(n){const t=new Set;for(const e of n)for(const r of Object.keys(e).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function Gb(n,t,e,r){const{iScale:i}=n,{key:s="r"}=this._parsing,a=new Array(r);let l,c,h,f;for(l=0,c=r;l<c;++l)h=l+e,f=t[h],a[l]={r:i.parse(Yr(f,s),h)};return a}const LP=Number.EPSILON||1e-14,Qi=(n,t)=>t<n.length&&!n[t].skip&&n[t],Yb=n=>n==="x"?"y":"x";function TP(n,t,e,r){const i=n.skip?t:n,s=t,a=e.skip?t:e,l=Qf(s,i),c=Qf(a,s);let h=l/(l+c),f=c/(l+c);h=isNaN(h)?0:h,f=isNaN(f)?0:f;const g=r*h,d=r*f;return{previous:{x:s.x-g*(a.x-i.x),y:s.y-g*(a.y-i.y)},next:{x:s.x+d*(a.x-i.x),y:s.y+d*(a.y-i.y)}}}function BP(n,t,e){const r=n.length;let i,s,a,l,c,h=Qi(n,0);for(let f=0;f<r-1;++f)if(c=h,h=Qi(n,f+1),!(!c||!h)){if(Hs(t[f],0,LP)){e[f]=e[f+1]=0;continue}i=e[f]/t[f],s=e[f+1]/t[f],l=Math.pow(i,2)+Math.pow(s,2),!(l<=9)&&(a=3/Math.sqrt(l),e[f]=i*a*t[f],e[f+1]=s*a*t[f])}}function IP(n,t,e="x"){const r=Yb(e),i=n.length;let s,a,l,c=Qi(n,0);for(let h=0;h<i;++h){if(a=l,l=c,c=Qi(n,h+1),!l)continue;const f=l[e],g=l[r];a&&(s=(f-a[e])/3,l[`cp1${e}`]=f-s,l[`cp1${r}`]=g-s*t[h]),c&&(s=(c[e]-f)/3,l[`cp2${e}`]=f+s,l[`cp2${r}`]=g+s*t[h])}}function DP(n,t="x"){const e=Yb(t),r=n.length,i=Array(r).fill(0),s=Array(r);let a,l,c,h=Qi(n,0);for(a=0;a<r;++a)if(l=c,c=h,h=Qi(n,a+1),!!c){if(h){const f=h[t]-c[t];i[a]=f!==0?(h[e]-c[e])/f:0}s[a]=l?h?ar(i[a-1])!==ar(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}BP(n,i,s),IP(n,s,t)}function za(n,t,e){return Math.max(Math.min(n,e),t)}function FP(n,t){let e,r,i,s,a,l=Cr(n[0],t);for(e=0,r=n.length;e<r;++e)a=s,s=l,l=e<r-1&&Cr(n[e+1],t),s&&(i=n[e],a&&(i.cp1x=za(i.cp1x,t.left,t.right),i.cp1y=za(i.cp1y,t.top,t.bottom)),l&&(i.cp2x=za(i.cp2x,t.left,t.right),i.cp2y=za(i.cp2y,t.top,t.bottom)))}function NP(n,t,e,r,i){let s,a,l,c;if(t.spanGaps&&(n=n.filter(h=>!h.skip)),t.cubicInterpolationMode==="monotone")DP(n,i);else{let h=r?n[n.length-1]:n[0];for(s=0,a=n.length;s<a;++s)l=n[s],c=TP(h,l,n[Math.min(s+1,a-(r?0:1))%a],t.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,h=l}t.capBezierPoints&&FP(n,e)}function $h(){return typeof window<"u"&&typeof document<"u"}function Gh(n){let t=n.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function wl(n,t,e){let r;return typeof n=="string"?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*t.parentNode[e])):r=n,r}const Dl=n=>n.ownerDocument.defaultView.getComputedStyle(n,null);function jP(n,t){return Dl(n).getPropertyValue(t)}const UP=["top","right","bottom","left"];function yi(n,t,e){const r={};e=e?"-"+e:"";for(let i=0;i<4;i++){const s=UP[i];r[s]=parseFloat(n[t+"-"+s+e])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const qP=(n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot);function WP(n,t){const e=n.touches,r=e&&e.length?e[0]:n,{offsetX:i,offsetY:s}=r;let a=!1,l,c;if(qP(i,s,n.target))l=i,c=s;else{const h=t.getBoundingClientRect();l=r.clientX-h.left,c=r.clientY-h.top,a=!0}return{x:l,y:c,box:a}}function fi(n,t){if("native"in n)return n;const{canvas:e,currentDevicePixelRatio:r}=t,i=Dl(e),s=i.boxSizing==="border-box",a=yi(i,"padding"),l=yi(i,"border","width"),{x:c,y:h,box:f}=WP(n,e),g=a.left+(f&&l.left),d=a.top+(f&&l.top);let{width:m,height:p}=t;return s&&(m-=a.width+l.width,p-=a.height+l.height),{x:Math.round((c-g)/m*e.width/r),y:Math.round((h-d)/p*e.height/r)}}function HP(n,t,e){let r,i;if(t===void 0||e===void 0){const s=n&&Gh(n);if(!s)t=n.clientWidth,e=n.clientHeight;else{const a=s.getBoundingClientRect(),l=Dl(s),c=yi(l,"border","width"),h=yi(l,"padding");t=a.width-h.width-c.width,e=a.height-h.height-c.height,r=wl(l.maxWidth,s,"clientWidth"),i=wl(l.maxHeight,s,"clientHeight")}}return{width:t,height:e,maxWidth:r||bl,maxHeight:i||bl}}const Va=n=>Math.round(n*10)/10;function zP(n,t,e,r){const i=Dl(n),s=yi(i,"margin"),a=wl(i.maxWidth,n,"clientWidth")||bl,l=wl(i.maxHeight,n,"clientHeight")||bl,c=HP(n,t,e);let{width:h,height:f}=c;if(i.boxSizing==="content-box"){const d=yi(i,"border","width"),m=yi(i,"padding");h-=m.width+d.width,f-=m.height+d.height}return h=Math.max(0,h-s.width),f=Math.max(0,r?h/r:f-s.height),h=Va(Math.min(h,a,c.maxWidth)),f=Va(Math.min(f,l,c.maxHeight)),h&&!f&&(f=Va(h/2)),(t!==void 0||e!==void 0)&&r&&c.height&&f>c.height&&(f=c.height,h=Va(Math.floor(f*r))),{width:h,height:f}}function x0(n,t,e){const r=t||1,i=Math.floor(n.height*r),s=Math.floor(n.width*r);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!==r||a.height!==i||a.width!==s?(n.currentDevicePixelRatio=r,a.height=i,a.width=s,n.ctx.setTransform(r,0,0,r,0,0),!0):!1}const VP=function(){let n=!1;try{const t={get passive(){return n=!0,!1}};$h()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return n}();function S0(n,t){const e=jP(n,t),r=e&&e.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function hi(n,t,e,r){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function $P(n,t,e,r){return{x:n.x+e*(t.x-n.x),y:r==="middle"?e<.5?n.y:t.y:r==="after"?e<1?n.y:t.y:e>0?t.y:n.y}}function GP(n,t,e,r){const i={x:n.cp2x,y:n.cp2y},s={x:t.cp1x,y:t.cp1y},a=hi(n,i,e),l=hi(i,s,e),c=hi(s,t,e),h=hi(a,l,e),f=hi(l,c,e);return hi(h,f,e)}const YP=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,r){return e-r},leftForLtr(e,r){return e-r}}},KP=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,t){return n+t},leftForLtr(n,t){return n}}};function Yi(n,t,e){return n?YP(t,e):KP()}function Kb(n,t){let e,r;(t==="ltr"||t==="rtl")&&(e=n.canvas.style,r=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=r)}function Xb(n,t){t!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function Jb(n){return n==="angle"?{between:to,compare:XC,normalize:An}:{between:Rr,compare:(t,e)=>t-e,normalize:t=>t}}function E0({start:n,end:t,count:e,loop:r,style:i}){return{start:n%e,end:t%e,loop:r&&(t-n+1)%e===0,style:i}}function XP(n,t,e){const{property:r,start:i,end:s}=e,{between:a,normalize:l}=Jb(r),c=t.length;let{start:h,end:f,loop:g}=n,d,m;if(g){for(h+=c,f+=c,d=0,m=c;d<m&&a(l(t[h%c][r]),i,s);++d)h--,f--;h%=c,f%=c}return f<h&&(f+=c),{start:h,end:f,loop:g,style:n.style}}function Zb(n,t,e){if(!e)return[n];const{property:r,start:i,end:s}=e,a=t.length,{compare:l,between:c,normalize:h}=Jb(r),{start:f,end:g,loop:d,style:m}=XP(n,t,e),p=[];let v=!1,b=null,_,A,C;const w=()=>c(i,C,_)&&l(i,C)!==0,M=()=>l(s,_)===0||c(s,C,_),O=()=>v||w(),L=()=>!v||M();for(let N=f,Y=f;N<=g;++N)A=t[N%a],!A.skip&&(_=h(A[r]),_!==C&&(v=c(_,i,s),b===null&&O()&&(b=l(_,i)===0?N:Y),b!==null&&L()&&(p.push(E0({start:b,end:N,loop:d,count:a,style:m})),b=null),Y=N,C=_));return b!==null&&p.push(E0({start:b,end:g,loop:d,count:a,style:m})),p}function Qb(n,t){const e=[],r=n.segments;for(let i=0;i<r.length;i++){const s=Zb(r[i],n.points,t);s.length&&e.push(...s)}return e}function JP(n,t,e,r){let i=0,s=t-1;if(e&&!r)for(;i<t&&!n[i].skip;)i++;for(;i<t&&n[i].skip;)i++;for(i%=t,e&&(s+=i);s>i&&n[s%t].skip;)s--;return s%=t,{start:i,end:s}}function ZP(n,t,e,r){const i=n.length,s=[];let a=t,l=n[t],c;for(c=t+1;c<=e;++c){const h=n[c%i];h.skip||h.stop?l.skip||(r=!1,s.push({start:t%i,end:(c-1)%i,loop:r}),t=a=h.stop?c:null):(a=c,l.skip&&(t=c)),l=h}return a!==null&&s.push({start:t%i,end:a%i,loop:r}),s}function QP(n,t){const e=n.points,r=n.options.spanGaps,i=e.length;if(!i)return[];const s=!!n._loop,{start:a,end:l}=JP(e,i,s,r);if(r===!0)return A0(n,[{start:a,end:l,loop:s}],e,t);const c=l<a?l+i:l,h=!!n._fullLoop&&a===0&&l===i-1;return A0(n,ZP(e,a,c,h),e,t)}function A0(n,t,e,r){return!r||!r.setContext||!e?t:tO(n,t,e,r)}function tO(n,t,e,r){const i=n._chart.getContext(),s=k0(n.options),{_datasetIndex:a,options:{spanGaps:l}}=n,c=e.length,h=[];let f=s,g=t[0].start,d=g;function m(p,v,b,_){const A=l?-1:1;if(p!==v){for(p+=c;e[p%c].skip;)p-=A;for(;e[v%c].skip;)v+=A;p%c!==v%c&&(h.push({start:p%c,end:v%c,loop:b,style:_}),f=_,g=v%c)}}for(const p of t){g=l?g:p.start;let v=e[g%c],b;for(d=g+1;d<=p.end;d++){const _=e[d%c];b=k0(r.setContext(Xr(i,{type:"segment",p0:v,p1:_,p0DataIndex:(d-1)%c,p1DataIndex:d%c,datasetIndex:a}))),eO(b,f)&&m(g,d-1,p.loop,f),v=_,f=b}g<d-1&&m(g,d-1,p.loop,f)}return h}function k0(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function eO(n,t){if(!t)return!1;const e=[],r=function(i,s){return qh(s)?(e.includes(s)||e.push(s),e.indexOf(s)):s};return JSON.stringify(n,r)!==JSON.stringify(t,r)}/*!
|
|
474
|
+
*/function wr(){}const eP=(()=>{let n=0;return()=>n++})();function Kt(n){return n==null}function Ee(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 Jt(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function Ce(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function En(n,t){return Ce(n)?n:t}function Wt(n,t){return typeof n>"u"?t:n}const nP=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,jb=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*t:+n;function me(n,t,e){if(n&&typeof n.call=="function")return n.apply(e,t)}function le(n,t,e,r){let i,s,a;if(Ee(n))for(s=n.length,i=0;i<s;i++)t.call(e,n[i],i);else if(Jt(n))for(a=Object.keys(n),s=a.length,i=0;i<s;i++)t.call(e,n[a[i]],a[i])}function xl(n,t){let e,r,i,s;if(!n||!t||n.length!==t.length)return!1;for(e=0,r=n.length;e<r;++e)if(i=n[e],s=t[e],i.datasetIndex!==s.datasetIndex||i.index!==s.index)return!1;return!0}function Sl(n){if(Ee(n))return n.map(Sl);if(Jt(n)){const t=Object.create(null),e=Object.keys(n),r=e.length;let i=0;for(;i<r;++i)t[e[i]]=Sl(n[e[i]]);return t}return n}function Ub(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function rP(n,t,e,r){if(!Ub(n))return;const i=t[n],s=e[n];Jt(i)&&Jt(s)?ro(i,s,r):t[n]=Sl(s)}function ro(n,t,e){const r=Ee(t)?t:[t],i=r.length;if(!Jt(n))return n;e=e||{};const s=e.merger||rP;let a;for(let l=0;l<i;++l){if(a=r[l],!Jt(a))continue;const c=Object.keys(a);for(let h=0,f=c.length;h<f;++h)s(c[h],n,a,e)}return n}function Ys(n,t){return ro(n,t,{merger:iP})}function iP(n,t,e){if(!Ub(n))return;const r=t[n],i=e[n];Jt(r)&&Jt(i)?Ys(r,i):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=Sl(i))}const v0={"":n=>n,x:n=>n.x,y:n=>n.y};function sP(n){const t=n.split("."),e=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(e.push(r),r="");return e}function oP(n){const t=sP(n);return e=>{for(const r of t){if(r==="")break;e=e&&e[r]}return e}}function Kr(n,t){return(v0[t]||(v0[t]=oP(t)))(n)}function Vh(n){return n.charAt(0).toUpperCase()+n.slice(1)}const io=n=>typeof n<"u",Xr=n=>typeof n=="function",b0=(n,t)=>{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;return!0};function aP(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}const _e=Math.PI,be=2*_e,lP=be+_e,El=Number.POSITIVE_INFINITY,uP=_e/180,Be=_e/2,ui=_e/4,_0=_e*2/3,Vr=Math.log10,ur=Math.sign;function Ks(n,t,e){return Math.abs(n-t)<e}function w0(n){const t=Math.round(n);n=Ks(n,t,n/1e3)?t:n;const e=Math.pow(10,Math.floor(Vr(n))),r=n/e;return(r<=1?1:r<=2?2:r<=5?5:10)*e}function cP(n){const t=[],e=Math.sqrt(n);let r;for(r=1;r<e;r++)n%r===0&&(t.push(r),t.push(n/r));return e===(e|0)&&t.push(e),t.sort((i,s)=>i-s).pop(),t}function fP(n){return typeof n=="symbol"||typeof n=="object"&&n!==null&&!(Symbol.toPrimitive in n||"toString"in n||"valueOf"in n)}function ts(n){return!fP(n)&&!isNaN(parseFloat(n))&&isFinite(n)}function hP(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}function qb(n,t,e){let r,i,s;for(r=0,i=n.length;r<i;r++)s=n[r][e],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function Gn(n){return n*(_e/180)}function $h(n){return n*(180/_e)}function x0(n){if(!Ce(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function Wb(n,t){const e=t.x-n.x,r=t.y-n.y,i=Math.sqrt(e*e+r*r);let s=Math.atan2(r,e);return s<-.5*_e&&(s+=be),{angle:s,distance:i}}function sh(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function dP(n,t){return(n-t+lP)%be-_e}function An(n){return(n%be+be)%be}function so(n,t,e,r){const i=An(n),s=An(t),a=An(e),l=An(s-i),c=An(a-i),h=An(i-s),f=An(i-a);return i===s||i===a||r&&s===a||l>c&&h<f}function $e(n,t,e){return Math.max(t,Math.min(e,n))}function pP(n){return $e(n,-32768,32767)}function Or(n,t,e,r=1e-6){return n>=Math.min(t,e)-r&&n<=Math.max(t,e)+r}function Gh(n,t,e){e=e||(a=>n[a]<t);let r=n.length-1,i=0,s;for(;r-i>1;)s=i+r>>1,e(s)?i=s:r=s;return{lo:i,hi:r}}const Pr=(n,t,e,r)=>Gh(n,e,r?i=>{const s=n[i][t];return s<e||s===e&&n[i+1][t]===e}:i=>n[i][t]<e),gP=(n,t,e)=>Gh(n,e,r=>n[r][t]>=e);function mP(n,t,e){let r=0,i=n.length;for(;r<i&&n[r]<t;)r++;for(;i>r&&n[i-1]>e;)i--;return r>0||i<n.length?n.slice(r,i):n}const Hb=["push","pop","shift","splice","unshift"];function yP(n,t){if(n._chartjs){n._chartjs.listeners.push(t);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Hb.forEach(e=>{const r="_onData"+Vh(e),i=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...s){const a=i.apply(this,s);return n._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...s)}),a}})})}function S0(n,t){const e=n._chartjs;if(!e)return;const r=e.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(Hb.forEach(s=>{delete n[s]}),delete n._chartjs)}function zb(n){const t=new Set(n);return t.size===n.length?n:Array.from(t)}const Vb=function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame}();function $b(n,t){let e=[],r=!1;return function(...i){e=i,r||(r=!0,Vb.call(window,()=>{r=!1,n.apply(t,e)}))}}function vP(n,t){let e;return function(...r){return t?(clearTimeout(e),e=setTimeout(n,t,r)):n.apply(this,r),t}}const Yh=n=>n==="start"?"left":n==="end"?"right":"center",Qe=(n,t,e)=>n==="start"?t:n==="end"?e:(t+e)/2,bP=(n,t,e,r)=>n===(r?"left":"right")?e:n==="center"?(t+e)/2:t;function Gb(n,t,e){const r=t.length;let i=0,s=r;if(n._sorted){const{iScale:a,vScale:l,_parsed:c}=n,h=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null,f=a.axis,{min:g,max:d,minDefined:m,maxDefined:p}=a.getUserBounds();if(m){if(i=Math.min(Pr(c,f,g).lo,e?r:Pr(t,f,a.getPixelForValue(g)).lo),h){const v=c.slice(0,i+1).reverse().findIndex(_=>!Kt(_[l.axis]));i-=Math.max(0,v)}i=$e(i,0,r-1)}if(p){let v=Math.max(Pr(c,a.axis,d,!0).hi+1,e?0:Pr(t,f,a.getPixelForValue(d),!0).hi+1);if(h){const _=c.slice(v-1).findIndex(b=>!Kt(b[l.axis]));v+=Math.max(0,_)}s=$e(v,i,r)-i}else s=r-i}return{start:i,count:s}}function Yb(n){const{xScale:t,yScale:e,_scaleRanges:r}=n,i={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!r)return n._scaleRanges=i,!0;const s=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==e.min||r.ymax!==e.max;return Object.assign(r,i),s}const Ya=n=>n===0||n===1,E0=(n,t,e)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-t)*be/e)),A0=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*be/e)+1,Xs={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*Be)+1,easeOutSine:n=>Math.sin(n*Be),easeInOutSine:n=>-.5*(Math.cos(_e*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=>Ya(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=>Ya(n)?n:E0(n,.075,.3),easeOutElastic:n=>Ya(n)?n:A0(n,.075,.3),easeInOutElastic(n){return Ya(n)?n:n<.5?.5*E0(n*2,.1125,.45):.5+.5*A0(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-Xs.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?Xs.easeInBounce(n*2)*.5:Xs.easeOutBounce(n*2-1)*.5+.5};function Kh(n){if(n&&typeof n=="object"){const t=n.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function k0(n){return Kh(n)?n:new no(n)}function Ff(n){return Kh(n)?n:new no(n).saturate(.5).darken(.1).hexString()}const _P=["x","y","borderWidth","radius","tension"],wP=["color","borderColor","backgroundColor"];function xP(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:wP},numbers:{type:"number",properties:_P}}),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 SP(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const M0=new Map;function EP(n,t){t=t||{};const e=n+JSON.stringify(t);let r=M0.get(e);return r||(r=new Intl.NumberFormat(n,t),M0.set(e,r)),r}function vo(n,t,e){return EP(t,e).format(n)}const Kb={values(n){return Ee(n)?n:""+n},numeric(n,t,e){if(n===0)return"0";const r=this.chart.options.locale;let i,s=n;if(e.length>1){const h=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(h<1e-4||h>1e15)&&(i="scientific"),s=AP(n,e)}const a=Vr(Math.abs(s)),l=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:i,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),vo(n,r,c)},logarithmic(n,t,e){if(n===0)return"0";const r=e[t].significand||n/Math.pow(10,Math.floor(Vr(n)));return[1,2,3,5,10,15].includes(r)||t>.8*e.length?Kb.numeric.call(this,n,t,e):""}};function AP(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 Nl={formatters:Kb};function kP(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:Nl.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 wi=Object.create(null),oh=Object.create(null);function Js(n,t){if(!t)return n;const e=t.split(".");for(let r=0,i=e.length;r<i;++r){const s=e[r];n=n[s]||(n[s]=Object.create(null))}return n}function Nf(n,t,e){return typeof t=="string"?ro(Js(n,t),e):ro(Js(n,""),t)}class MP{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=r=>r.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=(r,i)=>Ff(i.backgroundColor),this.hoverBorderColor=(r,i)=>Ff(i.borderColor),this.hoverColor=(r,i)=>Ff(i.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 Nf(this,t,e)}get(t){return Js(this,t)}describe(t,e){return Nf(oh,t,e)}override(t,e){return Nf(wi,t,e)}route(t,e,r,i){const s=Js(this,t),a=Js(this,r),l="_"+e;Object.defineProperties(s,{[l]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const c=this[l],h=a[i];return Jt(c)?Object.assign({},h,c):Wt(c,h)},set(c){this[l]=c}}})}apply(t){t.forEach(e=>e(this))}}var Ae=new MP({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[xP,SP,kP]);function RP(n){return!n||Kt(n.size)||Kt(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function Al(n,t,e,r,i){let s=t[i];return s||(s=t[i]=n.measureText(i).width,e.push(i)),s>r&&(r=s),r}function OP(n,t,e,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},s=r.garbageCollect=[],r.font=t),n.save(),n.font=t;let a=0;const l=e.length;let c,h,f,g,d;for(c=0;c<l;c++)if(g=e[c],g!=null&&!Ee(g))a=Al(n,i,s,a,g);else if(Ee(g))for(h=0,f=g.length;h<f;h++)d=g[h],d!=null&&!Ee(d)&&(a=Al(n,i,s,a,d));n.restore();const m=s.length/2;if(m>e.length){for(c=0;c<m;c++)delete i[s[c]];s.splice(0,m)}return a}function ci(n,t,e){const r=n.currentDevicePixelRatio,i=e!==0?Math.max(e/2,.5):0;return Math.round((t-i)*r)/r+i}function R0(n,t){!t&&!n||(t=t||n.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,n.width,n.height),t.restore())}function ah(n,t,e,r){Xb(n,t,e,r,null)}function Xb(n,t,e,r,i){let s,a,l,c,h,f,g,d;const m=t.pointStyle,p=t.rotation,v=t.radius;let _=(p||0)*uP;if(m&&typeof m=="object"&&(s=m.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){n.save(),n.translate(e,r),n.rotate(_),n.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),n.restore();return}if(!(isNaN(v)||v<=0)){switch(n.beginPath(),m){default:i?n.ellipse(e,r,i/2,v,0,0,be):n.arc(e,r,v,0,be),n.closePath();break;case"triangle":f=i?i/2:v,n.moveTo(e+Math.sin(_)*f,r-Math.cos(_)*v),_+=_0,n.lineTo(e+Math.sin(_)*f,r-Math.cos(_)*v),_+=_0,n.lineTo(e+Math.sin(_)*f,r-Math.cos(_)*v),n.closePath();break;case"rectRounded":h=v*.516,c=v-h,a=Math.cos(_+ui)*c,g=Math.cos(_+ui)*(i?i/2-h:c),l=Math.sin(_+ui)*c,d=Math.sin(_+ui)*(i?i/2-h:c),n.arc(e-g,r-l,h,_-_e,_-Be),n.arc(e+d,r-a,h,_-Be,_),n.arc(e+g,r+l,h,_,_+Be),n.arc(e-d,r+a,h,_+Be,_+_e),n.closePath();break;case"rect":if(!p){c=Math.SQRT1_2*v,f=i?i/2:c,n.rect(e-f,r-c,2*f,2*c);break}_+=ui;case"rectRot":g=Math.cos(_)*(i?i/2:v),a=Math.cos(_)*v,l=Math.sin(_)*v,d=Math.sin(_)*(i?i/2:v),n.moveTo(e-g,r-l),n.lineTo(e+d,r-a),n.lineTo(e+g,r+l),n.lineTo(e-d,r+a),n.closePath();break;case"crossRot":_+=ui;case"cross":g=Math.cos(_)*(i?i/2:v),a=Math.cos(_)*v,l=Math.sin(_)*v,d=Math.sin(_)*(i?i/2:v),n.moveTo(e-g,r-l),n.lineTo(e+g,r+l),n.moveTo(e+d,r-a),n.lineTo(e-d,r+a);break;case"star":g=Math.cos(_)*(i?i/2:v),a=Math.cos(_)*v,l=Math.sin(_)*v,d=Math.sin(_)*(i?i/2:v),n.moveTo(e-g,r-l),n.lineTo(e+g,r+l),n.moveTo(e+d,r-a),n.lineTo(e-d,r+a),_+=ui,g=Math.cos(_)*(i?i/2:v),a=Math.cos(_)*v,l=Math.sin(_)*v,d=Math.sin(_)*(i?i/2:v),n.moveTo(e-g,r-l),n.lineTo(e+g,r+l),n.moveTo(e+d,r-a),n.lineTo(e-d,r+a);break;case"line":a=i?i/2:Math.cos(_)*v,l=Math.sin(_)*v,n.moveTo(e-a,r-l),n.lineTo(e+a,r+l);break;case"dash":n.moveTo(e,r),n.lineTo(e+Math.cos(_)*(i?i/2:v),r+Math.sin(_)*v);break;case!1:n.closePath();break}n.fill(),t.borderWidth>0&&n.stroke()}}function Cr(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 jl(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()}function Ul(n){n.restore()}function PP(n,t,e,r,i){if(!t)return n.lineTo(e.x,e.y);if(i==="middle"){const s=(t.x+e.x)/2;n.lineTo(s,t.y),n.lineTo(s,e.y)}else i==="after"!=!!r?n.lineTo(t.x,e.y):n.lineTo(e.x,t.y);n.lineTo(e.x,e.y)}function CP(n,t,e,r){if(!t)return n.lineTo(e.x,e.y);n.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?e.cp2x:e.cp1x,r?e.cp2y:e.cp1y,e.x,e.y)}function LP(n,t){t.translation&&n.translate(t.translation[0],t.translation[1]),Kt(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 TP(n,t,e,r,i){if(i.strikethrough||i.underline){const s=n.measureText(r),a=t-s.actualBoundingBoxLeft,l=t+s.actualBoundingBoxRight,c=e-s.actualBoundingBoxAscent,h=e+s.actualBoundingBoxDescent,f=i.strikethrough?(c+h)/2:h;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=i.decorationWidth||2,n.moveTo(a,f),n.lineTo(l,f),n.stroke()}}function IP(n,t){const e=n.fillStyle;n.fillStyle=t.color,n.fillRect(t.left,t.top,t.width,t.height),n.fillStyle=e}function xi(n,t,e,r,i,s={}){const a=Ee(t)?t:[t],l=s.strokeWidth>0&&s.strokeColor!=="";let c,h;for(n.save(),n.font=i.string,LP(n,s),c=0;c<a.length;++c)h=a[c],s.backdrop&&IP(n,s.backdrop),l&&(s.strokeColor&&(n.strokeStyle=s.strokeColor),Kt(s.strokeWidth)||(n.lineWidth=s.strokeWidth),n.strokeText(h,e,r,s.maxWidth)),n.fillText(h,e,r,s.maxWidth),TP(n,e,r,h,s),r+=Number(i.lineHeight);n.restore()}function oo(n,t){const{x:e,y:r,w:i,h:s,radius:a}=t;n.arc(e+a.topLeft,r+a.topLeft,a.topLeft,1.5*_e,_e,!0),n.lineTo(e,r+s-a.bottomLeft),n.arc(e+a.bottomLeft,r+s-a.bottomLeft,a.bottomLeft,_e,Be,!0),n.lineTo(e+i-a.bottomRight,r+s),n.arc(e+i-a.bottomRight,r+s-a.bottomRight,a.bottomRight,Be,0,!0),n.lineTo(e+i,r+a.topRight),n.arc(e+i-a.topRight,r+a.topRight,a.topRight,0,-Be,!0),n.lineTo(e+a.topLeft,r)}const BP=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,DP=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function FP(n,t){const e=(""+n).match(BP);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 NP=n=>+n||0;function Xh(n,t){const e={},r=Jt(t),i=r?Object.keys(t):t,s=Jt(n)?r?a=>Wt(n[a],n[t[a]]):a=>n[a]:()=>n;for(const a of i)e[a]=NP(s(a));return e}function Jb(n){return Xh(n,{top:"y",right:"x",bottom:"y",left:"x"})}function bi(n){return Xh(n,["topLeft","topRight","bottomLeft","bottomRight"])}function en(n){const t=Jb(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function He(n,t){n=n||{},t=t||Ae.font;let e=Wt(n.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let r=Wt(n.style,t.style);r&&!(""+r).match(DP)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Wt(n.family,t.family),lineHeight:FP(Wt(n.lineHeight,t.lineHeight),e),size:e,style:r,weight:Wt(n.weight,t.weight),string:""};return i.string=RP(i),i}function Us(n,t,e,r){let i,s,a;for(i=0,s=n.length;i<s;++i)if(a=n[i],a!==void 0&&a!==void 0)return a}function jP(n,t,e){const{min:r,max:i}=n,s=jb(t,(i-r)/2),a=(l,c)=>e&&l===0?0:l+c;return{min:a(r,-Math.abs(s)),max:a(i,s)}}function Zr(n,t){return Object.assign(Object.create(n),t)}function Jh(n,t=[""],e,r,i=()=>n[0]){const s=e||n;typeof r>"u"&&(r=e_("_fallback",n));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:s,_fallback:r,_getTarget:i,override:l=>Jh([l,...n],t,s,r)};return new Proxy(a,{deleteProperty(l,c){return delete l[c],delete l._keys,delete n[0][c],!0},get(l,c){return Qb(l,c,()=>GP(c,t,n,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(l,c){return P0(l).includes(c)},ownKeys(l){return P0(l)},set(l,c,h){const f=l._storage||(l._storage=i());return l[c]=f[c]=h,delete l._keys,!0}})}function es(n,t,e,r){const i={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:Zb(n,r),setContext:s=>es(n,s,e,r),override:s=>es(n.override(s),t,e,r)};return new Proxy(i,{deleteProperty(s,a){return delete s[a],delete n[a],!0},get(s,a,l){return Qb(s,a,()=>qP(s,a,l))},getOwnPropertyDescriptor(s,a){return s._descriptors.allKeys?Reflect.has(n,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,a)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(s,a){return Reflect.has(n,a)},ownKeys(){return Reflect.ownKeys(n)},set(s,a,l){return n[a]=l,delete s[a],!0}})}function Zb(n,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=n;return{allKeys:i,scriptable:e,indexable:r,isScriptable:Xr(e)?e:()=>e,isIndexable:Xr(r)?r:()=>r}}const UP=(n,t)=>n?n+Vh(t):t,Zh=(n,t)=>Jt(t)&&n!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Qb(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t)||t==="constructor")return n[t];const r=e();return n[t]=r,r}function qP(n,t,e){const{_proxy:r,_context:i,_subProxy:s,_descriptors:a}=n;let l=r[t];return Xr(l)&&a.isScriptable(t)&&(l=WP(t,l,n,e)),Ee(l)&&l.length&&(l=HP(t,l,n,a.isIndexable)),Zh(t,l)&&(l=es(l,i,s&&s[t],a)),l}function WP(n,t,e,r){const{_proxy:i,_context:s,_subProxy:a,_stack:l}=e;if(l.has(n))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+n);l.add(n);let c=t(s,a||r);return l.delete(n),Zh(n,c)&&(c=Qh(i._scopes,i,n,c)),c}function HP(n,t,e,r){const{_proxy:i,_context:s,_subProxy:a,_descriptors:l}=e;if(typeof s.index<"u"&&r(n))return t[s.index%t.length];if(Jt(t[0])){const c=t,h=i._scopes.filter(f=>f!==c);t=[];for(const f of c){const g=Qh(h,i,n,f);t.push(es(g,s,a&&a[n],l))}}return t}function t_(n,t,e){return Xr(n)?n(t,e):n}const zP=(n,t)=>n===!0?t:typeof n=="string"?Kr(t,n):void 0;function VP(n,t,e,r,i){for(const s of t){const a=zP(e,s);if(a){n.add(a);const l=t_(a._fallback,e,i);if(typeof l<"u"&&l!==e&&l!==r)return l}else if(a===!1&&typeof r<"u"&&e!==r)return null}return!1}function Qh(n,t,e,r){const i=t._rootScopes,s=t_(t._fallback,e,r),a=[...n,...i],l=new Set;l.add(r);let c=O0(l,a,e,s||e,r);return c===null||typeof s<"u"&&s!==e&&(c=O0(l,a,s,c,r),c===null)?!1:Jh(Array.from(l),[""],i,s,()=>$P(t,e,r))}function O0(n,t,e,r,i){for(;e;)e=VP(n,t,e,r,i);return e}function $P(n,t,e){const r=n._getTarget();t in r||(r[t]={});const i=r[t];return Ee(i)&&Jt(e)?e:i||{}}function GP(n,t,e,r){let i;for(const s of t)if(i=e_(UP(s,n),e),typeof i<"u")return Zh(n,i)?Qh(e,r,n,i):i}function e_(n,t){for(const e of t){if(!e)continue;const r=e[n];if(typeof r<"u")return r}}function P0(n){let t=n._keys;return t||(t=n._keys=YP(n._scopes)),t}function YP(n){const t=new Set;for(const e of n)for(const r of Object.keys(e).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function n_(n,t,e,r){const{iScale:i}=n,{key:s="r"}=this._parsing,a=new Array(r);let l,c,h,f;for(l=0,c=r;l<c;++l)h=l+e,f=t[h],a[l]={r:i.parse(Kr(f,s),h)};return a}const KP=Number.EPSILON||1e-14,ns=(n,t)=>t<n.length&&!n[t].skip&&n[t],r_=n=>n==="x"?"y":"x";function XP(n,t,e,r){const i=n.skip?t:n,s=t,a=e.skip?t:e,l=sh(s,i),c=sh(a,s);let h=l/(l+c),f=c/(l+c);h=isNaN(h)?0:h,f=isNaN(f)?0:f;const g=r*h,d=r*f;return{previous:{x:s.x-g*(a.x-i.x),y:s.y-g*(a.y-i.y)},next:{x:s.x+d*(a.x-i.x),y:s.y+d*(a.y-i.y)}}}function JP(n,t,e){const r=n.length;let i,s,a,l,c,h=ns(n,0);for(let f=0;f<r-1;++f)if(c=h,h=ns(n,f+1),!(!c||!h)){if(Ks(t[f],0,KP)){e[f]=e[f+1]=0;continue}i=e[f]/t[f],s=e[f+1]/t[f],l=Math.pow(i,2)+Math.pow(s,2),!(l<=9)&&(a=3/Math.sqrt(l),e[f]=i*a*t[f],e[f+1]=s*a*t[f])}}function ZP(n,t,e="x"){const r=r_(e),i=n.length;let s,a,l,c=ns(n,0);for(let h=0;h<i;++h){if(a=l,l=c,c=ns(n,h+1),!l)continue;const f=l[e],g=l[r];a&&(s=(f-a[e])/3,l[`cp1${e}`]=f-s,l[`cp1${r}`]=g-s*t[h]),c&&(s=(c[e]-f)/3,l[`cp2${e}`]=f+s,l[`cp2${r}`]=g+s*t[h])}}function QP(n,t="x"){const e=r_(t),r=n.length,i=Array(r).fill(0),s=Array(r);let a,l,c,h=ns(n,0);for(a=0;a<r;++a)if(l=c,c=h,h=ns(n,a+1),!!c){if(h){const f=h[t]-c[t];i[a]=f!==0?(h[e]-c[e])/f:0}s[a]=l?h?ur(i[a-1])!==ur(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}JP(n,i,s),ZP(n,s,t)}function Ka(n,t,e){return Math.max(Math.min(n,e),t)}function tC(n,t){let e,r,i,s,a,l=Cr(n[0],t);for(e=0,r=n.length;e<r;++e)a=s,s=l,l=e<r-1&&Cr(n[e+1],t),s&&(i=n[e],a&&(i.cp1x=Ka(i.cp1x,t.left,t.right),i.cp1y=Ka(i.cp1y,t.top,t.bottom)),l&&(i.cp2x=Ka(i.cp2x,t.left,t.right),i.cp2y=Ka(i.cp2y,t.top,t.bottom)))}function eC(n,t,e,r,i){let s,a,l,c;if(t.spanGaps&&(n=n.filter(h=>!h.skip)),t.cubicInterpolationMode==="monotone")QP(n,i);else{let h=r?n[n.length-1]:n[0];for(s=0,a=n.length;s<a;++s)l=n[s],c=XP(h,l,n[Math.min(s+1,a-(r?0:1))%a],t.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,h=l}t.capBezierPoints&&tC(n,e)}function td(){return typeof window<"u"&&typeof document<"u"}function ed(n){let t=n.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function kl(n,t,e){let r;return typeof n=="string"?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*t.parentNode[e])):r=n,r}const ql=n=>n.ownerDocument.defaultView.getComputedStyle(n,null);function nC(n,t){return ql(n).getPropertyValue(t)}const rC=["top","right","bottom","left"];function _i(n,t,e){const r={};e=e?"-"+e:"";for(let i=0;i<4;i++){const s=rC[i];r[s]=parseFloat(n[t+"-"+s+e])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const iC=(n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot);function sC(n,t){const e=n.touches,r=e&&e.length?e[0]:n,{offsetX:i,offsetY:s}=r;let a=!1,l,c;if(iC(i,s,n.target))l=i,c=s;else{const h=t.getBoundingClientRect();l=r.clientX-h.left,c=r.clientY-h.top,a=!0}return{x:l,y:c,box:a}}function di(n,t){if("native"in n)return n;const{canvas:e,currentDevicePixelRatio:r}=t,i=ql(e),s=i.boxSizing==="border-box",a=_i(i,"padding"),l=_i(i,"border","width"),{x:c,y:h,box:f}=sC(n,e),g=a.left+(f&&l.left),d=a.top+(f&&l.top);let{width:m,height:p}=t;return s&&(m-=a.width+l.width,p-=a.height+l.height),{x:Math.round((c-g)/m*e.width/r),y:Math.round((h-d)/p*e.height/r)}}function oC(n,t,e){let r,i;if(t===void 0||e===void 0){const s=n&&ed(n);if(!s)t=n.clientWidth,e=n.clientHeight;else{const a=s.getBoundingClientRect(),l=ql(s),c=_i(l,"border","width"),h=_i(l,"padding");t=a.width-h.width-c.width,e=a.height-h.height-c.height,r=kl(l.maxWidth,s,"clientWidth"),i=kl(l.maxHeight,s,"clientHeight")}}return{width:t,height:e,maxWidth:r||El,maxHeight:i||El}}const Xa=n=>Math.round(n*10)/10;function aC(n,t,e,r){const i=ql(n),s=_i(i,"margin"),a=kl(i.maxWidth,n,"clientWidth")||El,l=kl(i.maxHeight,n,"clientHeight")||El,c=oC(n,t,e);let{width:h,height:f}=c;if(i.boxSizing==="content-box"){const d=_i(i,"border","width"),m=_i(i,"padding");h-=m.width+d.width,f-=m.height+d.height}return h=Math.max(0,h-s.width),f=Math.max(0,r?h/r:f-s.height),h=Xa(Math.min(h,a,c.maxWidth)),f=Xa(Math.min(f,l,c.maxHeight)),h&&!f&&(f=Xa(h/2)),(t!==void 0||e!==void 0)&&r&&c.height&&f>c.height&&(f=c.height,h=Xa(Math.floor(f*r))),{width:h,height:f}}function C0(n,t,e){const r=t||1,i=Math.floor(n.height*r),s=Math.floor(n.width*r);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!==r||a.height!==i||a.width!==s?(n.currentDevicePixelRatio=r,a.height=i,a.width=s,n.ctx.setTransform(r,0,0,r,0,0),!0):!1}const lC=function(){let n=!1;try{const t={get passive(){return n=!0,!1}};td()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return n}();function L0(n,t){const e=nC(n,t),r=e&&e.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function pi(n,t,e,r){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function uC(n,t,e,r){return{x:n.x+e*(t.x-n.x),y:r==="middle"?e<.5?n.y:t.y:r==="after"?e<1?n.y:t.y:e>0?t.y:n.y}}function cC(n,t,e,r){const i={x:n.cp2x,y:n.cp2y},s={x:t.cp1x,y:t.cp1y},a=pi(n,i,e),l=pi(i,s,e),c=pi(s,t,e),h=pi(a,l,e),f=pi(l,c,e);return pi(h,f,e)}const fC=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,r){return e-r},leftForLtr(e,r){return e-r}}},hC=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,t){return n+t},leftForLtr(n,t){return n}}};function Xi(n,t,e){return n?fC(t,e):hC()}function i_(n,t){let e,r;(t==="ltr"||t==="rtl")&&(e=n.canvas.style,r=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=r)}function s_(n,t){t!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function o_(n){return n==="angle"?{between:so,compare:dP,normalize:An}:{between:Or,compare:(t,e)=>t-e,normalize:t=>t}}function T0({start:n,end:t,count:e,loop:r,style:i}){return{start:n%e,end:t%e,loop:r&&(t-n+1)%e===0,style:i}}function dC(n,t,e){const{property:r,start:i,end:s}=e,{between:a,normalize:l}=o_(r),c=t.length;let{start:h,end:f,loop:g}=n,d,m;if(g){for(h+=c,f+=c,d=0,m=c;d<m&&a(l(t[h%c][r]),i,s);++d)h--,f--;h%=c,f%=c}return f<h&&(f+=c),{start:h,end:f,loop:g,style:n.style}}function a_(n,t,e){if(!e)return[n];const{property:r,start:i,end:s}=e,a=t.length,{compare:l,between:c,normalize:h}=o_(r),{start:f,end:g,loop:d,style:m}=dC(n,t,e),p=[];let v=!1,_=null,b,S,O;const w=()=>c(i,O,b)&&l(i,O)!==0,k=()=>l(s,b)===0||c(s,O,b),C=()=>v||w(),L=()=>!v||k();for(let N=f,Y=f;N<=g;++N)S=t[N%a],!S.skip&&(b=h(S[r]),b!==O&&(v=c(b,i,s),_===null&&C()&&(_=l(b,i)===0?N:Y),_!==null&&L()&&(p.push(T0({start:_,end:N,loop:d,count:a,style:m})),_=null),Y=N,O=b));return _!==null&&p.push(T0({start:_,end:g,loop:d,count:a,style:m})),p}function l_(n,t){const e=[],r=n.segments;for(let i=0;i<r.length;i++){const s=a_(r[i],n.points,t);s.length&&e.push(...s)}return e}function pC(n,t,e,r){let i=0,s=t-1;if(e&&!r)for(;i<t&&!n[i].skip;)i++;for(;i<t&&n[i].skip;)i++;for(i%=t,e&&(s+=i);s>i&&n[s%t].skip;)s--;return s%=t,{start:i,end:s}}function gC(n,t,e,r){const i=n.length,s=[];let a=t,l=n[t],c;for(c=t+1;c<=e;++c){const h=n[c%i];h.skip||h.stop?l.skip||(r=!1,s.push({start:t%i,end:(c-1)%i,loop:r}),t=a=h.stop?c:null):(a=c,l.skip&&(t=c)),l=h}return a!==null&&s.push({start:t%i,end:a%i,loop:r}),s}function mC(n,t){const e=n.points,r=n.options.spanGaps,i=e.length;if(!i)return[];const s=!!n._loop,{start:a,end:l}=pC(e,i,s,r);if(r===!0)return I0(n,[{start:a,end:l,loop:s}],e,t);const c=l<a?l+i:l,h=!!n._fullLoop&&a===0&&l===i-1;return I0(n,gC(e,a,c,h),e,t)}function I0(n,t,e,r){return!r||!r.setContext||!e?t:yC(n,t,e,r)}function yC(n,t,e,r){const i=n._chart.getContext(),s=B0(n.options),{_datasetIndex:a,options:{spanGaps:l}}=n,c=e.length,h=[];let f=s,g=t[0].start,d=g;function m(p,v,_,b){const S=l?-1:1;if(p!==v){for(p+=c;e[p%c].skip;)p-=S;for(;e[v%c].skip;)v+=S;p%c!==v%c&&(h.push({start:p%c,end:v%c,loop:_,style:b}),f=b,g=v%c)}}for(const p of t){g=l?g:p.start;let v=e[g%c],_;for(d=g+1;d<=p.end;d++){const b=e[d%c];_=B0(r.setContext(Zr(i,{type:"segment",p0:v,p1:b,p0DataIndex:(d-1)%c,p1DataIndex:d%c,datasetIndex:a}))),vC(_,f)&&m(g,d-1,p.loop,f),v=b,f=_}g<d-1&&m(g,d-1,p.loop,f)}return h}function B0(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function vC(n,t){if(!t)return!1;const e=[],r=function(i,s){return Kh(s)?(e.includes(s)||e.push(s),e.indexOf(s)):s};return JSON.stringify(n,r)!==JSON.stringify(t,r)}/*!
|
|
452
475
|
* Chart.js v4.4.8
|
|
453
476
|
* https://www.chartjs.org
|
|
454
477
|
* (c) 2025 Chart.js Contributors
|
|
455
478
|
* Released under the MIT License
|
|
456
|
-
*/class nO{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,r,i){const s=e.listeners[i],a=e.duration;s.forEach(l=>l({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(r-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Db.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let a=s.length-1,l=!1,c;for(;a>=0;--a)c=s[a],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(t),l=!0):(s[a]=s[s.length-1],s.pop());l&&(i.draw(),this._notify(i,r,t,"progress")),s.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),e+=s.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let r=e.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,r)),r}listen(t,e,r){this._getAnims(t).listeners[e].push(r)}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((r,i)=>Math.max(r,i._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 r=e.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var _r=new nO;const R0="transparent",rO={boolean(n,t,e){return e>.5?t:n},color(n,t,e){const r=y0(n||R0),i=r.valid&&y0(t||R0);return i&&i.valid?i.mix(r,e).hexString():t},number(n,t,e){return n+(t-n)*e}};class iO{constructor(t,e,r,i){const s=e[r];i=Bs([t.to,i,s,t.from]);const a=Bs([t.from,s,i]);this._active=!0,this._fn=t.fn||rO[t.type||typeof a],this._easing=zs[t.easing]||zs.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=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,a=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Bs([t.to,e,i,t.from]),this._from=Bs([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,r=this._duration,i=this._prop,s=this._from,a=this._loop,l=this._to;let c;if(this._active=s!==l&&(a||e<r),!this._active){this._target[i]=l,this._notify(!0);return}if(e<0){this._target[i]=s;return}c=e/r%2,c=a&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[i]=this._fn(s,l,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,r)=>{t.push({res:e,rej:r})})}_notify(t){const e=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][e]()}}class t_{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Jt(t))return;const e=Object.keys(Ae.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const s=t[i];if(!Jt(s))return;const a={};for(const l of e)a[l]=s[l];(Ee(s.properties)&&s.properties||[i]).forEach(l=>{(l===i||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,e){const r=e.options,i=oO(t,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&sO(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,e){const r=this._properties,i=[],s=t.$animations||(t.$animations={}),a=Object.keys(e),l=Date.now();let c;for(c=a.length-1;c>=0;--c){const h=a[c];if(h.charAt(0)==="$")continue;if(h==="options"){i.push(...this._animateOptions(t,e));continue}const f=e[h];let g=s[h];const d=r.get(h);if(g)if(d&&g.active()){g.update(d,f,l);continue}else g.cancel();if(!d||!d.duration){t[h]=f;continue}s[h]=g=new iO(d,t,h,f),i.push(g)}return i}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const r=this._createAnimations(t,e);if(r.length)return _r.add(this._chart,r),!0}}function sO(n,t){const e=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const s=n[r[i]];s&&s.active()&&e.push(s.wait())}return Promise.all(e)}function oO(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 M0(n,t){const e=n&&n.options||{},r=e.reverse,i=e.min===void 0?t:0,s=e.max===void 0?t:0;return{start:r?s:i,end:r?i:s}}function aO(n,t,e){if(e===!1)return!1;const r=M0(n,e),i=M0(t,e);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function lO(n){let t,e,r,i;return Jt(n)?(t=n.top,e=n.right,r=n.bottom,i=n.left):t=e=r=i=n,{top:t,right:e,bottom:r,left:i,disabled:n===!1}}function e_(n,t){const e=[],r=n._getSortedDatasetMetas(t);let i,s;for(i=0,s=r.length;i<s;++i)e.push(r[i].index);return e}function C0(n,t,e,r={}){const i=n.keys,s=r.mode==="single";let a,l,c,h;if(t===null)return;let f=!1;for(a=0,l=i.length;a<l;++a){if(c=+i[a],c===e){if(f=!0,r.all)continue;break}h=n.values[c],Le(h)&&(s||t===0||ar(t)===ar(h))&&(t+=h)}return!f&&!r.all?0:t}function uO(n,t){const{iScale:e,vScale:r}=t,i=e.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",a=Object.keys(n),l=new Array(a.length);let c,h,f;for(c=0,h=a.length;c<h;++c)f=a[c],l[c]={[i]:f,[s]:n[f]};return l}function Tf(n,t){const e=n&&n.options.stacked;return e||e===void 0&&t.stack!==void 0}function cO(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}function fO(n){const{min:t,max:e,minDefined:r,maxDefined:i}=n.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?e:Number.POSITIVE_INFINITY}}function hO(n,t,e){const r=n[t]||(n[t]={});return r[e]||(r[e]={})}function P0(n,t,e,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const s=n[i.index];if(e&&s>0||!e&&s<0)return i.index}return null}function O0(n,t){const{chart:e,_cachedMeta:r}=n,i=e._stacks||(e._stacks={}),{iScale:s,vScale:a,index:l}=r,c=s.axis,h=a.axis,f=cO(s,a,r),g=t.length;let d;for(let m=0;m<g;++m){const p=t[m],{[c]:v,[h]:b}=p,_=p._stacks||(p._stacks={});d=_[h]=hO(i,f,v),d[l]=b,d._top=P0(d,a,!0,r.type),d._bottom=P0(d,a,!1,r.type);const A=d._visualValues||(d._visualValues={});A[l]=b}}function Bf(n,t){const e=n.scales;return Object.keys(e).filter(r=>e[r].axis===t).shift()}function dO(n,t){return Xr(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function pO(n,t,e){return Xr(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function ks(n,t){const e=n.controller.index,r=n.vScale&&n.vScale.axis;if(r){t=t||n._parsed;for(const i of t){const s=i._stacks;if(!s||s[r]===void 0||s[r][e]===void 0)return;delete s[r][e],s[r]._visualValues!==void 0&&s[r]._visualValues[e]!==void 0&&delete s[r]._visualValues[e]}}}const If=n=>n==="reset"||n==="none",L0=(n,t)=>t?n:Object.assign({},n),gO=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:e_(e,!0),values:null};class $n{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=Tf(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&&ks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,r=this.getDataset(),i=(g,d,m,p)=>g==="x"?d:g==="r"?p:m,s=e.xAxisID=Wt(r.xAxisID,Bf(t,"x")),a=e.yAxisID=Wt(r.yAxisID,Bf(t,"y")),l=e.rAxisID=Wt(r.rAxisID,Bf(t,"r")),c=e.indexAxis,h=e.iAxisID=i(c,s,a,l),f=e.vAxisID=i(c,a,s,l);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(l),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(f)}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&&p0(this._data,this),t._stacked&&ks(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),r=this._data;if(Jt(e)){const i=this._cachedMeta;this._data=uO(e,i)}else if(r!==e){if(r){p0(r,this);const i=this._cachedMeta;ks(i),i._parsed=[]}e&&Object.isExtensible(e)&&tP(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,r=this.getDataset();let i=!1;this._dataCheck();const s=e._stacked;e._stacked=Tf(e.vScale,e),e.stack!==r.stack&&(i=!0,ks(e),e.stack=r.stack),this._resyncElements(t),(i||s!==e._stacked)&&(O0(this,e._parsed),e._stacked=Tf(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:a}=r,l=s.axis;let c=t===0&&e===i.length?!0:r._sorted,h=t>0&&r._parsed[t-1],f,g,d;if(this._parsing===!1)r._parsed=i,r._sorted=!0,d=i;else{Ee(i[t])?d=this.parseArrayData(r,i,t,e):Jt(i[t])?d=this.parseObjectData(r,i,t,e):d=this.parsePrimitiveData(r,i,t,e);const m=()=>g[l]===null||h&&g[l]<h[l];for(f=0;f<e;++f)r._parsed[f+t]=g=d[f],c&&(m()&&(c=!1),h=g);r._sorted=c}a&&O0(this,d)}parsePrimitiveData(t,e,r,i){const{iScale:s,vScale:a}=t,l=s.axis,c=a.axis,h=s.getLabels(),f=s===a,g=new Array(i);let d,m,p;for(d=0,m=i;d<m;++d)p=d+r,g[d]={[l]:f||s.parse(h[p],p),[c]:a.parse(e[p],p)};return g}parseArrayData(t,e,r,i){const{xScale:s,yScale:a}=t,l=new Array(i);let c,h,f,g;for(c=0,h=i;c<h;++c)f=c+r,g=e[f],l[c]={x:s.parse(g[0],f),y:a.parse(g[1],f)};return l}parseObjectData(t,e,r,i){const{xScale:s,yScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=new Array(i);let f,g,d,m;for(f=0,g=i;f<g;++f)d=f+r,m=e[d],h[f]={x:s.parse(Yr(m,l),d),y:a.parse(Yr(m,c),d)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,r){const i=this.chart,s=this._cachedMeta,a=e[t.axis],l={keys:e_(i,!0),values:e._stacks[t.axis]._visualValues};return C0(l,a,s.index,{mode:r})}updateRangeFromParsed(t,e,r,i){const s=r[e.axis];let a=s===null?NaN:s;const l=i&&r._stacks[e.axis];i&&l&&(i.values=l,a=C0(i,s,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const r=this._cachedMeta,i=r._parsed,s=r._sorted&&t===r.iScale,a=i.length,l=this._getOtherScale(t),c=gO(e,r,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:g}=fO(l);let d,m;function p(){m=i[d];const v=m[l.axis];return!Le(m[t.axis])||f>v||g<v}for(d=0;d<a&&!(!p()&&(this.updateRangeFromParsed(h,t,m,c),s));++d);if(s){for(d=a-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(h,t,m,c);break}}return h}getAllParsedValues(t){const e=this._cachedMeta._parsed,r=[];let i,s,a;for(i=0,s=e.length;i<s;++i)a=e[i][t.axis],Le(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,r=e.iScale,i=e.vScale,s=this.getParsed(t);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=lO(Wt(this.options.clip,aO(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,r=this._cachedMeta,i=r.data||[],s=e.chartArea,a=[],l=this._drawStart||0,c=this._drawCount||i.length-l,h=this.options.drawActiveElementsOnTop;let f;for(r.dataset&&r.dataset.draw(t,s,l,c),f=l;f<l+c;++f){const g=i[f];g.hidden||(g.active&&h?a.push(g):g.draw(t,s))}for(f=0;f<a.length;++f)a[f].draw(t,s)}getStyle(t,e){const r=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,e,r){const i=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];s=a.$context||(a.$context=pO(this.getContext(),t,a)),s.parsed=this.getParsed(t),s.raw=i.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=dO(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=r,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",r){const i=e==="active",s=this._cachedDataOpts,a=t+"-"+e,l=s[a],c=this.enableOptionSharing&&Qs(r);if(l)return L0(l,c);const h=this.chart.config,f=h.datasetElementScopeKeys(this._type,t),g=i?[`${t}Hover`,"hover",t,""]:[t,""],d=h.getOptionScopes(this.getDataset(),f),m=Object.keys(Ae.elements[t]),p=()=>this.getContext(r,i,e),v=h.resolveNamedOptions(d,m,p,g);return v.$shared&&(v.$shared=c,s[a]=Object.freeze(L0(v,c))),v}_resolveAnimations(t,e,r){const i=this.chart,s=this._cachedDataOpts,a=`animation-${e}`,l=s[a];if(l)return l;let c;if(i.options.animation!==!1){const f=this.chart.config,g=f.datasetAnimationScopeKeys(this._type,e),d=f.getOptionScopes(this.getDataset(),g);c=f.createResolver(d,this.getContext(t,r,e))}const h=new t_(i,c&&c.animations);return c&&c._cacheable&&(s[a]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||If(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const r=this.resolveDataElementOptions(t,e),i=this._sharedOptions,s=this.getSharedOptions(r),a=this.includeOptions(e,s)||s!==i;return this.updateSharedOptions(s,e,r),{sharedOptions:s,includeOptions:a}}updateElement(t,e,r,i){If(i)?Object.assign(t,r):this._resolveAnimations(e,i).update(t,r)}updateSharedOptions(t,e,r){t&&!If(e)&&this._resolveAnimations(void 0,e).update(t,r)}_setStyle(t,e,r,i){t.active=i;const s=this.getStyle(e,i);this._resolveAnimations(e,r,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,e,r){this._setStyle(t,r,"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,r=this._cachedMeta.data;for(const[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];const i=r.length,s=e.length,a=Math.min(s,i);a&&this.parse(0,a),s>i?this._insertElements(i,s-i,t):s<i&&this._removeElements(s,i-s)}_insertElements(t,e,r=!0){const i=this._cachedMeta,s=i.data,a=t+e;let l;const c=h=>{for(h.length+=e,l=h.length-1;l>=a;l--)h[l]=h[l-e]};for(c(s),l=t;l<a;++l)s[l]=new this.dataElementType;this._parsing&&c(i._parsed),this.parse(t,e),r&&this.updateElements(s,t,e,"reset")}updateElements(t,e,r,i){}_removeElements(t,e){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,e);r._stacked&&ks(r,i)}r.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,r,i]=t;this[e](r,i)}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 r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}At($n,"defaults",{}),At($n,"datasetElementType",null),At($n,"dataElementType",null);function mO(n,t){if(!n._cache.$bar){const e=n.getMatchingVisibleMetas(t);let r=[];for(let i=0,s=e.length;i<s;i++)r=r.concat(e[i].controller.getAllParsedValues(n));n._cache.$bar=Ib(r.sort((i,s)=>i-s))}return n._cache.$bar}function yO(n){const t=n.iScale,e=mO(t,n.type);let r=t._length,i,s,a,l;const c=()=>{a===32767||a===-32768||(Qs(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(i=0,s=e.length;i<s;++i)a=t.getPixelForValue(e[i]),c();for(l=void 0,i=0,s=t.ticks.length;i<s;++i)a=t.getPixelForTick(i),c();return r}function vO(n,t,e,r){const i=e.barThickness;let s,a;return Kt(i)?(s=t.min*e.categoryPercentage,a=e.barPercentage):(s=i*r,a=1),{chunk:s/r,ratio:a,start:t.pixels[n]-s/2}}function bO(n,t,e,r){const i=t.pixels,s=i[n];let a=n>0?i[n-1]:null,l=n<i.length-1?i[n+1]:null;const c=e.categoryPercentage;a===null&&(a=s-(l===null?t.end-t.start:l-s)),l===null&&(l=s+s-a);const h=s-(s-Math.min(a,l))/2*c;return{chunk:Math.abs(l-a)/2*c/r,ratio:e.barPercentage,start:h}}function _O(n,t,e,r){const i=e.parse(n[0],r),s=e.parse(n[1],r),a=Math.min(i,s),l=Math.max(i,s);let c=a,h=l;Math.abs(a)>Math.abs(l)&&(c=l,h=a),t[e.axis]=h,t._custom={barStart:c,barEnd:h,start:i,end:s,min:a,max:l}}function n_(n,t,e,r){return Ee(n)?_O(n,t,e,r):t[e.axis]=e.parse(n,r),t}function T0(n,t,e,r){const i=n.iScale,s=n.vScale,a=i.getLabels(),l=i===s,c=[];let h,f,g,d;for(h=e,f=e+r;h<f;++h)d=t[h],g={},g[i.axis]=l||i.parse(a[h],h),c.push(n_(d,g,s,h));return c}function Df(n){return n&&n.barStart!==void 0&&n.barEnd!==void 0}function wO(n,t,e){return n!==0?ar(n):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function xO(n){let t,e,r,i,s;return n.horizontal?(t=n.base>n.x,e="left",r="right"):(t=n.base<n.y,e="bottom",r="top"),t?(i="end",s="start"):(i="start",s="end"),{start:e,end:r,reverse:t,top:i,bottom:s}}function SO(n,t,e,r){let i=t.borderSkipped;const s={};if(!i){n.borderSkipped=s;return}if(i===!0){n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:l,reverse:c,top:h,bottom:f}=xO(n);i==="middle"&&e&&(n.enableBorderRadius=!0,(e._top||0)===r?i=h:(e._bottom||0)===r?i=f:(s[B0(f,a,l,c)]=!0,i=h)),s[B0(i,a,l,c)]=!0,n.borderSkipped=s}function B0(n,t,e,r){return r?(n=EO(n,t,e),n=I0(n,e,t)):n=I0(n,t,e),n}function EO(n,t,e){return n===t?e:n===e?t:n}function I0(n,t,e){return n==="start"?t:n==="end"?e:n}function AO(n,{inflateAmount:t},e){n.inflateAmount=t==="auto"?e===1?.33:0:t}class al extends $n{parsePrimitiveData(t,e,r,i){return T0(t,e,r,i)}parseArrayData(t,e,r,i){return T0(t,e,r,i)}parseObjectData(t,e,r,i){const{iScale:s,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=s.axis==="x"?l:c,f=a.axis==="x"?l:c,g=[];let d,m,p,v;for(d=r,m=r+i;d<m;++d)v=e[d],p={},p[s.axis]=s.parse(Yr(v,h),d),g.push(n_(Yr(v,f),p,a,d));return g}updateRangeFromParsed(t,e,r,i){super.updateRangeFromParsed(t,e,r,i);const s=r._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:r,vScale:i}=e,s=this.getParsed(t),a=s._custom,l=Df(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(s[i.axis]);return{label:""+r.getLabelForValue(s[r.axis]),value:l}}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,r,i){const s=i==="reset",{index:a,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),h=l.isHorizontal(),f=this._getRuler(),{sharedOptions:g,includeOptions:d}=this._getSharedOptions(e,i);for(let m=e;m<e+r;m++){const p=this.getParsed(m),v=s||Kt(p[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(m),b=this._calculateBarIndexPixels(m,f),_=(p._stacks||{})[l.axis],A={horizontal:h,base:v.base,enableBorderRadius:!_||Df(p._custom)||a===_._top||a===_._bottom,x:h?v.head:b.center,y:h?b.center:v.head,height:h?b.size:Math.abs(v.size),width:h?Math.abs(v.size):b.size};d&&(A.options=g||this.resolveDataElementOptions(m,t[m].active?"active":i));const C=A.options||t[m].options;SO(A,C,_,a),AO(A,C,f.ratio),this.updateElement(t[m],m,A,i)}}_getStacks(t,e){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(f=>f.controller.options.grouped),s=r.options.stacked,a=[],l=this._cachedMeta.controller.getParsed(e),c=l&&l[r.axis],h=f=>{const g=f._parsed.find(m=>m[r.axis]===c),d=g&&g[f.vScale.axis];if(Kt(d)||isNaN(d))return!0};for(const f of i)if(!(e!==void 0&&h(f))&&((s===!1||a.indexOf(f.stack)===-1||s===void 0&&f.stack===void 0)&&a.push(f.stack),f.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,r){const i=this._getStacks(t,r),s=e!==void 0?i.indexOf(e):-1;return s===-1?i.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,r=e.iScale,i=[];let s,a;for(s=0,a=e.data.length;s<a;++s)i.push(r.getPixelForValue(this.getParsed(s)[r.axis],s));const l=t.barThickness;return{min:l||yO(e),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:r,index:i},options:{base:s,minBarLength:a}}=this,l=s||0,c=this.getParsed(t),h=c._custom,f=Df(h);let g=c[e.axis],d=0,m=r?this.applyStack(e,c,r):g,p,v;m!==g&&(d=m-g,m=g),f&&(g=h.barStart,m=h.barEnd-h.barStart,g!==0&&ar(g)!==ar(h.barEnd)&&(d=0),d+=g);const b=!Kt(s)&&!f?s:d;let _=e.getPixelForValue(b);if(this.chart.getDataVisibility(t)?p=e.getPixelForValue(d+m):p=_,v=p-_,Math.abs(v)<a){v=wO(v,e,l)*a,g===l&&(_-=v/2);const A=e.getPixelForDecimal(0),C=e.getPixelForDecimal(1),w=Math.min(A,C),M=Math.max(A,C);_=Math.max(Math.min(_,M),w),p=_+v,r&&!f&&(c._stacks[e.axis]._visualValues[i]=e.getValueForPixel(p)-e.getValueForPixel(_))}if(_===e.getPixelForValue(l)){const A=ar(v)*e.getLineWidthForValue(l)/2;_+=A,v-=A}return{size:v,base:_,head:p,center:p+v/2}}_calculateBarIndexPixels(t,e){const r=e.scale,i=this.options,s=i.skipNull,a=Wt(i.maxBarThickness,1/0);let l,c;if(e.grouped){const h=s?this._getStackCount(t):e.stackCount,f=i.barThickness==="flex"?bO(t,e,i,h):vO(t,e,i,h),g=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);l=f.start+f.chunk*g+f.chunk/2,c=Math.min(a,f.chunk*f.ratio)}else l=r.getPixelForValue(this.getParsed(t)[r.axis],t),c=Math.min(a,e.min*e.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const t=this._cachedMeta,e=t.vScale,r=t.data,i=r.length;let s=0;for(;s<i;++s)this.getParsed(s)[e.axis]!==null&&!r[s].hidden&&r[s].draw(this._ctx)}}At(al,"id","bar"),At(al,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),At(al,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class ll extends $n{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,r,i){const s=super.parsePrimitiveData(t,e,r,i);for(let a=0;a<s.length;a++)s[a]._custom=this.resolveDataElementOptions(a+r).radius;return s}parseArrayData(t,e,r,i){const s=super.parseArrayData(t,e,r,i);for(let a=0;a<s.length;a++){const l=e[r+a];s[a]._custom=Wt(l[2],this.resolveDataElementOptions(a+r).radius)}return s}parseObjectData(t,e,r,i){const s=super.parseObjectData(t,e,r,i);for(let a=0;a<s.length;a++){const l=e[r+a];s[a]._custom=Wt(l&&l.r&&+l.r,this.resolveDataElementOptions(a+r).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let r=t.length-1;r>=0;--r)e=Math.max(e,t[r].size(this.resolveDataElementOptions(r))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:s}=e,a=this.getParsed(t),l=i.getLabelForValue(a.x),c=s.getLabelForValue(a.y),h=a._custom;return{label:r[t]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,r,i){const s=i==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(e,i),f=a.axis,g=l.axis;for(let d=e;d<e+r;d++){const m=t[d],p=!s&&this.getParsed(d),v={},b=v[f]=s?a.getPixelForDecimal(.5):a.getPixelForValue(p[f]),_=v[g]=s?l.getBasePixel():l.getPixelForValue(p[g]);v.skip=isNaN(b)||isNaN(_),h&&(v.options=c||this.resolveDataElementOptions(d,m.active?"active":i),s&&(v.options.radius=0)),this.updateElement(m,d,v,i)}}resolveDataElementOptions(t,e){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const s=i.radius;return e!=="active"&&(i.radius=0),i.radius+=Wt(r&&r._custom,s),i}}At(ll,"id","bubble"),At(ll,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),At(ll,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function kO(n,t,e){let r=1,i=1,s=0,a=0;if(t<be){const l=n,c=l+t,h=Math.cos(l),f=Math.sin(l),g=Math.cos(c),d=Math.sin(c),m=(C,w,M)=>to(C,l,c,!0)?1:Math.max(w,w*e,M,M*e),p=(C,w,M)=>to(C,l,c,!0)?-1:Math.min(w,w*e,M,M*e),v=m(0,h,g),b=m(Ie,f,d),_=p(_e,h,g),A=p(_e+Ie,f,d);r=(v-_)/2,i=(b-A)/2,s=-(v+_)/2,a=-(b+A)/2}return{ratioX:r,ratioY:i,offsetX:s,offsetY:a}}class gi extends $n{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 r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let s=c=>+r[c];if(Jt(r[t])){const{key:c="value"}=this._parsing;s=h=>+Yr(r[h],c)}let a,l;for(a=t,l=t+e;a<l;++a)i._parsed[a]=s(a)}}_getRotation(){return Vn(this.options.rotation-90)}_getCircumference(){return Vn(this.options.circumference)}_getRotationExtents(){let t=be,e=-be;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,s=i._getRotation(),a=i._getCircumference();t=Math.min(t,s),e=Math.max(e,s+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:r}=e,i=this._cachedMeta,s=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-a)/2,0),c=Math.min(jC(this.options.cutout,l),1),h=this._getRingWeight(this.index),{circumference:f,rotation:g}=this._getRotationExtents(),{ratioX:d,ratioY:m,offsetX:p,offsetY:v}=kO(g,f,c),b=(r.width-a)/d,_=(r.height-a)/m,A=Math.max(Math.min(b,_)/2,0),C=Pb(this.options.radius,A),w=Math.max(C*c,0),M=(C-w)/this._getVisibleDatasetWeightTotal();this.offsetX=p*C,this.offsetY=v*C,i.total=this.calculateTotal(),this.outerRadius=C-M*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-M*h,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const r=this.options,i=this._cachedMeta,s=this._getCircumference();return e&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*s/be)}updateElements(t,e,r,i){const s=i==="reset",a=this.chart,l=a.chartArea,h=a.options.animation,f=(l.left+l.right)/2,g=(l.top+l.bottom)/2,d=s&&h.animateScale,m=d?0:this.innerRadius,p=d?0:this.outerRadius,{sharedOptions:v,includeOptions:b}=this._getSharedOptions(e,i);let _=this._getRotation(),A;for(A=0;A<e;++A)_+=this._circumference(A,s);for(A=e;A<e+r;++A){const C=this._circumference(A,s),w=t[A],M={x:f+this.offsetX,y:g+this.offsetY,startAngle:_,endAngle:_+C,circumference:C,outerRadius:p,innerRadius:m};b&&(M.options=v||this.resolveDataElementOptions(A,w.active?"active":i)),_+=C,this.updateElement(w,A,M,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let r=0,i;for(i=0;i<e.length;i++){const s=t._parsed[i];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(i)&&!e[i].hidden&&(r+=Math.abs(s))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?be*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=ho(e._parsed[t],r.options.locale);return{label:i[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const r=this.chart;let i,s,a,l,c;if(!t){for(i=0,s=r.data.datasets.length;i<s;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),t=a.data,l=a.controller;break}}if(!t)return 0;for(i=0,s=t.length;i<s;++i)c=l.resolveDataElementOptions(i),c.borderAlign!=="inner"&&(e=Math.max(e,c.borderWidth||0,c.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let r=0,i=t.length;r<i;++r){const s=this.resolveDataElementOptions(r);e=Math.max(e,s.offset||0,s.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(e+=this._getRingWeight(r));return e}_getRingWeight(t){return Math.max(Wt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}At(gi,"id","doughnut"),At(gi,"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"}),At(gi,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),At(gi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return e.labels.map((s,a)=>{const c=t.getDatasetMeta(0).controller.getStyle(a);return{text:s,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:i,lineWidth:c.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}}}});class ul extends $n{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=e,a=this.chart._animationsDisabled;let{start:l,count:c}=Nb(e,i,a);this._drawStart=l,this._drawCount=c,jb(e)&&(l=0,c=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:h},t),this.updateElements(i,l,c,t)}updateElements(t,e,r,i){const s=i==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,i),d=a.axis,m=l.axis,{spanGaps:p,segment:v}=this.options,b=Ji(p)?p:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||s||i==="none",A=e+r,C=t.length;let w=e>0&&this.getParsed(e-1);for(let M=0;M<C;++M){const O=t[M],L=_?O:{};if(M<e||M>=A){L.skip=!0;continue}const N=this.getParsed(M),Y=Kt(N[m]),z=L[d]=a.getPixelForValue(N[d],M),G=L[m]=s||Y?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,N,c):N[m],M);L.skip=isNaN(z)||isNaN(G)||Y,L.stop=M>0&&Math.abs(N[d]-w[d])>b,v&&(L.parsed=N,L.raw=h.data[M]),g&&(L.options=f||this.resolveDataElementOptions(M,O.active?"active":i)),_||this.updateElement(O,M,L,i),w=N}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,r=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}At(ul,"id","line"),At(ul,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),At(ul,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class $s extends $n{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=ho(e._parsed[t].r,r.options.locale);return{label:i[t]||"",value:s}}parseObjectData(t,e,r,i){return Gb.bind(this)(t,e,r,i)}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((r,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,r=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(i/2,0),a=Math.max(r.cutoutPercentage?s/100*r.cutoutPercentage:1,0),l=(s-a)/t.getVisibleDatasetCount();this.outerRadius=s-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,e,r,i){const s=i==="reset",a=this.chart,c=a.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,g=h.yCenter,d=h.getIndexAngle(0)-.5*_e;let m=d,p;const v=360/this.countVisibleElements();for(p=0;p<e;++p)m+=this._computeAngle(p,i,v);for(p=e;p<e+r;p++){const b=t[p];let _=m,A=m+this._computeAngle(p,i,v),C=a.getDataVisibility(p)?h.getDistanceFromCenterForValue(this.getParsed(p).r):0;m=A,s&&(c.animateScale&&(C=0),c.animateRotate&&(_=A=d));const w={x:f,y:g,innerRadius:0,outerRadius:C,startAngle:_,endAngle:A,options:this.resolveDataElementOptions(p,b.active?"active":i)};this.updateElement(b,p,w,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,r){return this.chart.getDataVisibility(t)?Vn(this.resolveDataElementOptions(t,e).angle||r):0}}At($s,"id","polarArea"),At($s,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),At($s,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return e.labels.map((s,a)=>{const c=t.getDatasetMeta(0).controller.getStyle(a);return{text:s,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:i,lineWidth:c.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class nh extends gi{}At(nh,"id","pie"),At(nh,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class cl extends $n{getLabelAndValue(t){const e=this._cachedMeta.vScale,r=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(r[e.axis])}}parseObjectData(t,e,r,i){return Gb.bind(this)(t,e,r,i)}update(t){const e=this._cachedMeta,r=e.dataset,i=e.data||[],s=e.iScale.getLabels();if(r.points=i,t!=="resize"){const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);const l={_loop:!0,_fullLoop:s.length===i.length,options:a};this.updateElement(r,void 0,l,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,r,i){const s=this._cachedMeta.rScale,a=i==="reset";for(let l=e;l<e+r;l++){const c=t[l],h=this.resolveDataElementOptions(l,c.active?"active":i),f=s.getPointPositionForValue(l,this.getParsed(l).r),g=a?s.xCenter:f.x,d=a?s.yCenter:f.y,m={x:g,y:d,angle:f.angle,skip:isNaN(g)||isNaN(d),options:h};this.updateElement(c,l,m,i)}}}At(cl,"id","radar"),At(cl,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),At(cl,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class fl extends $n{getLabelAndValue(t){const e=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:s}=e,a=this.getParsed(t),l=i.getLabelForValue(a.x),c=s.getLabelForValue(a.y);return{label:r[t]||"",value:"("+l+", "+c+")"}}update(t){const e=this._cachedMeta,{data:r=[]}=e,i=this.chart._animationsDisabled;let{start:s,count:a}=Nb(e,r,i);if(this._drawStart=s,this._drawCount=a,jb(e)&&(s=0,a=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:l,_dataset:c}=e;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;const h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(l,void 0,{animated:!i,options:h},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(r,s,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,r,i){const s=i==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(e,i),g=this.getSharedOptions(f),d=this.includeOptions(i,g),m=a.axis,p=l.axis,{spanGaps:v,segment:b}=this.options,_=Ji(v)?v:Number.POSITIVE_INFINITY,A=this.chart._animationsDisabled||s||i==="none";let C=e>0&&this.getParsed(e-1);for(let w=e;w<e+r;++w){const M=t[w],O=this.getParsed(w),L=A?M:{},N=Kt(O[p]),Y=L[m]=a.getPixelForValue(O[m],w),z=L[p]=s||N?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,O,c):O[p],w);L.skip=isNaN(Y)||isNaN(z)||N,L.stop=w>0&&Math.abs(O[m]-C[m])>_,b&&(L.parsed=O,L.raw=h.data[w]),d&&(L.options=g||this.resolveDataElementOptions(w,M.active?"active":i)),A||this.updateElement(M,w,L,i),C=O}this.updateSharedOptions(g,i,f)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let l=0;for(let c=e.length-1;c>=0;--c)l=Math.max(l,e[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!e.length)return i;const s=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,s,a)/2}}At(fl,"id","scatter"),At(fl,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),At(fl,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var RO=Object.freeze({__proto__:null,BarController:al,BubbleController:ll,DoughnutController:gi,LineController:ul,PieController:nh,PolarAreaController:$s,RadarController:cl,ScatterController:fl});function ui(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Yh{constructor(t){At(this,"options");this.options=t||{}}static override(t){Object.assign(Yh.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 MO={_date:Yh};function CO(n,t,e,r){const{controller:i,data:s,_sorted:a}=n,l=i._cachedMeta.iScale,c=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null;if(l&&t===l.axis&&t!=="r"&&a&&s.length){const h=l._reversePixels?ZC:Mr;if(r){if(i._sharedOptions){const f=s[0],g=typeof f.getRange=="function"&&f.getRange(t);if(g){const d=h(s,t,e-g),m=h(s,t,e+g);return{lo:d.lo,hi:m.hi}}}}else{const f=h(s,t,e);if(c){const{vScale:g}=i._cachedMeta,{_parsed:d}=n,m=d.slice(0,f.lo+1).reverse().findIndex(v=>!Kt(v[g.axis]));f.lo-=Math.max(0,m);const p=d.slice(f.hi).findIndex(v=>!Kt(v[g.axis]));f.hi+=Math.max(0,p)}return f}}return{lo:0,hi:s.length-1}}function Fl(n,t,e,r,i){const s=n.getSortedVisibleDatasetMetas(),a=e[t];for(let l=0,c=s.length;l<c;++l){const{index:h,data:f}=s[l],{lo:g,hi:d}=CO(s[l],t,a,i);for(let m=g;m<=d;++m){const p=f[m];p.skip||r(p,h,m)}}}function PO(n){const t=n.indexOf("x")!==-1,e=n.indexOf("y")!==-1;return function(r,i){const s=t?Math.abs(r.x-i.x):0,a=e?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}function Ff(n,t,e,r,i){const s=[];return!i&&!n.isPointInArea(t)||Fl(n,e,t,function(l,c,h){!i&&!Cr(l,n.chartArea,0)||l.inRange(t.x,t.y,r)&&s.push({element:l,datasetIndex:c,index:h})},!0),s}function OO(n,t,e,r){let i=[];function s(a,l,c){const{startAngle:h,endAngle:f}=a.getProps(["startAngle","endAngle"],r),{angle:g}=Tb(a,{x:t.x,y:t.y});to(g,h,f)&&i.push({element:a,datasetIndex:l,index:c})}return Fl(n,e,t,s),i}function LO(n,t,e,r,i,s){let a=[];const l=PO(e);let c=Number.POSITIVE_INFINITY;function h(f,g,d){const m=f.inRange(t.x,t.y,i);if(r&&!m)return;const p=f.getCenterPoint(i);if(!(!!s||n.isPointInArea(p))&&!m)return;const b=l(t,p);b<c?(a=[{element:f,datasetIndex:g,index:d}],c=b):b===c&&a.push({element:f,datasetIndex:g,index:d})}return Fl(n,e,t,h),a}function Nf(n,t,e,r,i,s){return!s&&!n.isPointInArea(t)?[]:e==="r"&&!r?OO(n,t,e,i):LO(n,t,e,r,i,s)}function D0(n,t,e,r,i){const s=[],a=e==="x"?"inXRange":"inYRange";let l=!1;return Fl(n,e,t,(c,h,f)=>{c[a]&&c[a](t[e],i)&&(s.push({element:c,datasetIndex:h,index:f}),l=l||c.inRange(t.x,t.y,i))}),r&&!l?[]:s}var TO={modes:{index(n,t,e,r){const i=fi(t,n),s=e.axis||"x",a=e.includeInvisible||!1,l=e.intersect?Ff(n,i,s,r,a):Nf(n,i,s,!1,r,a),c=[];return l.length?(n.getSortedVisibleDatasetMetas().forEach(h=>{const f=l[0].index,g=h.data[f];g&&!g.skip&&c.push({element:g,datasetIndex:h.index,index:f})}),c):[]},dataset(n,t,e,r){const i=fi(t,n),s=e.axis||"xy",a=e.includeInvisible||!1;let l=e.intersect?Ff(n,i,s,r,a):Nf(n,i,s,!1,r,a);if(l.length>0){const c=l[0].datasetIndex,h=n.getDatasetMeta(c).data;l=[];for(let f=0;f<h.length;++f)l.push({element:h[f],datasetIndex:c,index:f})}return l},point(n,t,e,r){const i=fi(t,n),s=e.axis||"xy",a=e.includeInvisible||!1;return Ff(n,i,s,r,a)},nearest(n,t,e,r){const i=fi(t,n),s=e.axis||"xy",a=e.includeInvisible||!1;return Nf(n,i,s,e.intersect,r,a)},x(n,t,e,r){const i=fi(t,n);return D0(n,i,"x",e.intersect,r)},y(n,t,e,r){const i=fi(t,n);return D0(n,i,"y",e.intersect,r)}}};const r_=["left","top","right","bottom"];function Rs(n,t){return n.filter(e=>e.pos===t)}function F0(n,t){return n.filter(e=>r_.indexOf(e.pos)===-1&&e.box.axis===t)}function Ms(n,t){return n.sort((e,r)=>{const i=t?r:e,s=t?e:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function BO(n){const t=[];let e,r,i,s,a,l;for(e=0,r=(n||[]).length;e<r;++e)i=n[e],{position:s,options:{stack:a,stackWeight:l=1}}=i,t.push({index:e,box:i,pos:s,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&s+a,stackWeight:l});return t}function IO(n){const t={};for(const e of n){const{stack:r,pos:i,stackWeight:s}=e;if(!r||!r_.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return t}function DO(n,t){const e=IO(n),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let s,a,l;for(s=0,a=n.length;s<a;++s){l=n[s];const{fullSize:c}=l.box,h=e[l.stack],f=h&&l.stackWeight/h.weight;l.horizontal?(l.width=f?f*r:c&&t.availableWidth,l.height=i):(l.width=r,l.height=f?f*i:c&&t.availableHeight)}return e}function FO(n){const t=BO(n),e=Ms(t.filter(h=>h.box.fullSize),!0),r=Ms(Rs(t,"left"),!0),i=Ms(Rs(t,"right")),s=Ms(Rs(t,"top"),!0),a=Ms(Rs(t,"bottom")),l=F0(t,"x"),c=F0(t,"y");return{fullSize:e,leftAndTop:r.concat(s),rightAndBottom:i.concat(c).concat(a).concat(l),chartArea:Rs(t,"chartArea"),vertical:r.concat(i).concat(c),horizontal:s.concat(a).concat(l)}}function N0(n,t,e,r){return Math.max(n[e],t[e])+Math.max(n[r],t[r])}function i_(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 NO(n,t,e,r){const{pos:i,box:s}=e,a=n.maxPadding;if(!Jt(i)){e.size&&(n[i]-=e.size);const g=r[e.stack]||{size:0,count:1};g.size=Math.max(g.size,e.horizontal?s.height:s.width),e.size=g.size/g.count,n[i]+=e.size}s.getPadding&&i_(a,s.getPadding());const l=Math.max(0,t.outerWidth-N0(a,n,"left","right")),c=Math.max(0,t.outerHeight-N0(a,n,"top","bottom")),h=l!==n.w,f=c!==n.h;return n.w=l,n.h=c,e.horizontal?{same:h,other:f}:{same:f,other:h}}function jO(n){const t=n.maxPadding;function e(r){const i=Math.max(t[r]-n[r],0);return n[r]+=i,i}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function UO(n,t){const e=t.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{s[a]=Math.max(t[a],e[a])}),s}return r(n?["left","right"]:["top","bottom"])}function Is(n,t,e,r){const i=[];let s,a,l,c,h,f;for(s=0,a=n.length,h=0;s<a;++s){l=n[s],c=l.box,c.update(l.width||t.w,l.height||t.h,UO(l.horizontal,t));const{same:g,other:d}=NO(t,e,l,r);h|=g&&i.length,f=f||d,c.fullSize||i.push(l)}return h&&Is(i,t,e,r)||f}function $a(n,t,e,r,i){n.top=e,n.left=t,n.right=t+r,n.bottom=e+i,n.width=r,n.height=i}function j0(n,t,e,r){const i=e.padding;let{x:s,y:a}=t;for(const l of n){const c=l.box,h=r[l.stack]||{placed:0,weight:1},f=l.stackWeight/h.weight||1;if(l.horizontal){const g=t.w*f,d=h.size||c.height;Qs(h.start)&&(a=h.start),c.fullSize?$a(c,i.left,a,e.outerWidth-i.right-i.left,d):$a(c,t.left+h.placed,a,g,d),h.start=a,h.placed+=g,a=c.bottom}else{const g=t.h*f,d=h.size||c.width;Qs(h.start)&&(s=h.start),c.fullSize?$a(c,s,i.top,d,e.outerHeight-i.bottom-i.top):$a(c,s,t.top+h.placed,d,g),h.start=s,h.placed+=g,s=c.right}}t.x=s,t.y=a}var tn={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,r){if(!n)return;const i=en(n.options.layout.padding),s=Math.max(t-i.width,0),a=Math.max(e-i.height,0),l=FO(n.boxes),c=l.vertical,h=l.horizontal;le(n.boxes,v=>{typeof v.beforeLayout=="function"&&v.beforeLayout()});const f=c.reduce((v,b)=>b.box.options&&b.box.options.display===!1?v:v+1,0)||1,g=Object.freeze({outerWidth:t,outerHeight:e,padding:i,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/f,hBoxMaxHeight:a/2}),d=Object.assign({},i);i_(d,en(r));const m=Object.assign({maxPadding:d,w:s,h:a,x:i.left,y:i.top},i),p=DO(c.concat(h),g);Is(l.fullSize,m,g,p),Is(c,m,g,p),Is(h,m,g,p)&&Is(c,m,g,p),jO(m),j0(l.leftAndTop,m,g,p),m.x+=m.w,m.y+=m.h,j0(l.rightAndBottom,m,g,p),n.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},le(l.chartArea,v=>{const b=v.box;Object.assign(b,n.chartArea),b.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class s_{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,r){}removeEventListener(t,e,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,r,i){return e=Math.max(0,e||t.width),r=r||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):r)}}isAttached(t){return!0}updateConfig(t){}}class qO extends s_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const hl="$chartjs",WO={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},U0=n=>n===null||n==="";function HO(n,t){const e=n.style,r=n.getAttribute("height"),i=n.getAttribute("width");if(n[hl]={initial:{height:r,width:i,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",U0(i)){const s=S0(n,"width");s!==void 0&&(n.width=s)}if(U0(r))if(n.style.height==="")n.height=n.width/(t||2);else{const s=S0(n,"height");s!==void 0&&(n.height=s)}return n}const o_=VP?{passive:!0}:!1;function zO(n,t,e){n&&n.addEventListener(t,e,o_)}function VO(n,t,e){n&&n.canvas&&n.canvas.removeEventListener(t,e,o_)}function $O(n,t){const e=WO[n.type]||n.type,{x:r,y:i}=fi(n,t);return{type:e,chart:t,native:n,x:r!==void 0?r:null,y:i!==void 0?i:null}}function xl(n,t){for(const e of n)if(e===t||e.contains(t))return!0}function GO(n,t,e){const r=n.canvas,i=new MutationObserver(s=>{let a=!1;for(const l of s)a=a||xl(l.addedNodes,r),a=a&&!xl(l.removedNodes,r);a&&e()});return i.observe(document,{childList:!0,subtree:!0}),i}function YO(n,t,e){const r=n.canvas,i=new MutationObserver(s=>{let a=!1;for(const l of s)a=a||xl(l.removedNodes,r),a=a&&!xl(l.addedNodes,r);a&&e()});return i.observe(document,{childList:!0,subtree:!0}),i}const no=new Map;let q0=0;function a_(){const n=window.devicePixelRatio;n!==q0&&(q0=n,no.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function KO(n,t){no.size||window.addEventListener("resize",a_),no.set(n,t)}function XO(n){no.delete(n),no.size||window.removeEventListener("resize",a_)}function JO(n,t,e){const r=n.canvas,i=r&&Gh(r);if(!i)return;const s=Fb((l,c)=>{const h=i.clientWidth;e(l,c),h<i.clientWidth&&e()},window),a=new ResizeObserver(l=>{const c=l[0],h=c.contentRect.width,f=c.contentRect.height;h===0&&f===0||s(h,f)});return a.observe(i),KO(n,s),a}function jf(n,t,e){e&&e.disconnect(),t==="resize"&&XO(n)}function ZO(n,t,e){const r=n.canvas,i=Fb(s=>{n.ctx!==null&&e($O(s,n))},n);return zO(r,t,i),i}class QO extends s_{acquireContext(t,e){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(HO(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e[hl])return!1;const r=e[hl].initial;["height","width"].forEach(s=>{const a=r[s];Kt(a)?e.removeAttribute(s):e.setAttribute(s,a)});const i=r.style||{};return Object.keys(i).forEach(s=>{e.style[s]=i[s]}),e.width=e.width,delete e[hl],!0}addEventListener(t,e,r){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),a={attach:GO,detach:YO,resize:JO}[e]||ZO;i[e]=a(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),i=r[e];if(!i)return;({attach:jf,detach:jf,resize:jf}[e]||VO)(t,e,i),r[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,i){return zP(t,e,r,i)}isAttached(t){const e=t&&Gh(t);return!!(e&&e.isConnected)}}function tL(n){return!$h()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?qO:QO}class Gn{constructor(){At(this,"x");At(this,"y");At(this,"active",!1);At(this,"options");At(this,"$animations")}tooltipPosition(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}hasValue(){return Ji(this.x)&&Ji(this.y)}getProps(t,e){const r=this.$animations;if(!e||!r)return this;const i={};return t.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}}At(Gn,"defaults",{}),At(Gn,"defaultRoutes");function eL(n,t){const e=n.options.ticks,r=nL(n),i=Math.min(e.maxTicksLimit||r,r),s=e.major.enabled?iL(t):[],a=s.length,l=s[0],c=s[a-1],h=[];if(a>i)return sL(t,h,s,a/i),h;const f=rL(s,t,i);if(a>0){let g,d;const m=a>1?Math.round((c-l)/(a-1)):null;for(Ga(t,h,f,Kt(m)?0:l-m,l),g=0,d=a-1;g<d;g++)Ga(t,h,f,s[g],s[g+1]);return Ga(t,h,f,c,Kt(m)?t.length:c+m),h}return Ga(t,h,f),h}function nL(n){const t=n.options.offset,e=n._tickSize(),r=n._length/e+(t?0:1),i=n._maxLength/e;return Math.floor(Math.min(r,i))}function rL(n,t,e){const r=oL(n),i=t.length/e;if(!r)return Math.max(i,1);const s=GC(r);for(let a=0,l=s.length-1;a<l;a++){const c=s[a];if(c>i)return c}return Math.max(i,1)}function iL(n){const t=[];let e,r;for(e=0,r=n.length;e<r;e++)n[e].major&&t.push(e);return t}function sL(n,t,e,r){let i=0,s=e[0],a;for(r=Math.ceil(r),a=0;a<n.length;a++)a===s&&(t.push(n[a]),i++,s=e[i*r])}function Ga(n,t,e,r,i){const s=Wt(r,0),a=Math.min(Wt(i,n.length),n.length);let l=0,c,h,f;for(e=Math.ceil(e),i&&(c=i-r,e=c/Math.floor(c/e)),f=s;f<0;)l++,f=Math.round(s+l*e);for(h=Math.max(s,0);h<a;h++)h===f&&(t.push(n[h]),l++,f=Math.round(s+l*e))}function oL(n){const t=n.length;let e,r;if(t<2)return!1;for(r=n[0],e=1;e<t;++e)if(n[e]-n[e-1]!==r)return!1;return r}const aL=n=>n==="left"?"right":n==="right"?"left":n,W0=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e,H0=(n,t)=>Math.min(t||n,n);function z0(n,t){const e=[],r=n.length/t,i=n.length;let s=0;for(;s<i;s+=r)e.push(n[Math.floor(s)]);return e}function lL(n,t,e){const r=n.ticks.length,i=Math.min(t,r-1),s=n._startPixel,a=n._endPixel,l=1e-6;let c=n.getPixelForTick(i),h;if(!(e&&(r===1?h=Math.max(c-s,a-c):t===0?h=(n.getPixelForTick(1)-c)/2:h=(c-n.getPixelForTick(i-1))/2,c+=i<t?h:-h,c<s-l||c>a+l)))return c}function uL(n,t){le(n,e=>{const r=e.gc,i=r.length/2;let s;if(i>t){for(s=0;s<i;++s)delete e.data[r[s]];r.splice(0,i)}})}function Cs(n){return n.drawTicks?n.tickLength:0}function V0(n,t){if(!n.display)return 0;const e=ze(n.font,t),r=en(n.padding);return(Ee(n.text)?n.text.length:1)*e.lineHeight+r.height}function cL(n,t){return Xr(n,{scale:t,type:"scale"})}function fL(n,t,e){return Xr(n,{tick:e,index:t,type:"tick"})}function hL(n,t,e){let r=Uh(n);return(e&&t!=="right"||!e&&t==="right")&&(r=aL(r)),r}function dL(n,t,e,r){const{top:i,left:s,bottom:a,right:l,chart:c}=n,{chartArea:h,scales:f}=c;let g=0,d,m,p;const v=a-i,b=l-s;if(n.isHorizontal()){if(m=Qe(r,s,l),Jt(e)){const _=Object.keys(e)[0],A=e[_];p=f[_].getPixelForValue(A)+v-t}else e==="center"?p=(h.bottom+h.top)/2+v-t:p=W0(n,e,t);d=l-s}else{if(Jt(e)){const _=Object.keys(e)[0],A=e[_];m=f[_].getPixelForValue(A)-b+t}else e==="center"?m=(h.left+h.right)/2-b+t:m=W0(n,e,t);p=Qe(r,a,i),g=e==="left"?-Ie:Ie}return{titleX:m,titleY:p,maxWidth:d,rotation:g}}class xi extends Gn{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:r,_suggestedMax:i}=this;return t=En(t,Number.POSITIVE_INFINITY),e=En(e,Number.NEGATIVE_INFINITY),r=En(r,Number.POSITIVE_INFINITY),i=En(i,Number.NEGATIVE_INFINITY),{min:En(t,r),max:En(e,i),minDefined:Le(t),maxDefined:Le(e)}}getMinMax(t){let{min:e,max:r,minDefined:i,maxDefined:s}=this.getUserBounds(),a;if(i&&s)return{min:e,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,h=l.length;c<h;++c)a=l[c].controller.getMinMax(this,t),i||(e=Math.min(e,a.min)),s||(r=Math.max(r,a.max));return e=s&&e>r?r:e,r=i&&e>r?e:r,{min:En(e,En(r,e)),max:En(r,En(e,r))}}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(){me(this.options.beforeUpdate,[this])}update(t,e,r){const{beginAtZero:i,grace:s,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=xP(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?z0(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=eL(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,r;this.isHorizontal()?(e=this.left,r=this.right):(e=this.top,r=this.bottom,t=!t),this._startPixel=e,this._endPixel=r,this._reversePixels=t,this._length=r-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){me(this.options.afterUpdate,[this])}beforeSetDimensions(){me(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(){me(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),me(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){me(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let r,i,s;for(r=0,i=t.length;r<i;r++)s=t[r],s.label=me(e.callback,[s.value,r,t],this)}afterTickToLabelConversion(){me(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){me(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,r=H0(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,s=e.maxRotation;let a=i,l,c,h;if(!this._isVisible()||!e.display||i>=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),g=f.widest.width,d=f.highest.height,m=Ge(this.chart.width-g,0,this.maxWidth);l=t.offset?this.maxWidth/r:m/(r-1),g+6>l&&(l=m/(r-(t.offset?.5:1)),c=this.maxHeight-Cs(t.grid)-e.padding-V0(t.title,this.chart.options.font),h=Math.sqrt(g*g+d*d),a=Nh(Math.min(Math.asin(Ge((f.highest.height+6)/l,-1,1)),Math.asin(Ge(c/h,-1,1))-Math.asin(Ge(d/h,-1,1)))),a=Math.max(i,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){me(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){me(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:r,title:i,grid:s}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const c=V0(i,e.options.font);if(l?(t.width=this.maxWidth,t.height=Cs(s)+c):(t.height=this.maxHeight,t.width=Cs(s)+c),r.display&&this.ticks.length){const{first:h,last:f,widest:g,highest:d}=this._getLabelSizes(),m=r.padding*2,p=Vn(this.labelRotation),v=Math.cos(p),b=Math.sin(p);if(l){const _=r.mirror?0:b*g.width+v*d.height;t.height=Math.min(this.maxHeight,t.height+_+m)}else{const _=r.mirror?0:v*g.width+b*d.height;t.width=Math.min(this.maxWidth,t.width+_+m)}this._calculatePadding(h,f,b,v)}}this._handleMargins(),l?(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,r,i){const{ticks:{align:s,padding:a},position:l}=this.options,c=this.labelRotation!==0,h=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,g=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,m=0;c?h?(d=i*t.width,m=r*e.height):(d=r*t.height,m=i*e.width):s==="start"?m=e.width:s==="end"?d=t.width:s!=="inner"&&(d=t.width/2,m=e.width/2),this.paddingLeft=Math.max((d-f+a)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-g+a)*this.width/(this.width-g),0)}else{let f=e.height/2,g=t.height/2;s==="start"?(f=0,g=t.height):s==="end"&&(f=e.height,g=0),this.paddingTop=f+a,this.paddingBottom=g+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(){me(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,r;for(e=0,r=t.length;e<r;e++)Kt(t[e].label)&&(t.splice(e,1),r--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let r=this.ticks;e<r.length&&(r=z0(r,e)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,r){const{ctx:i,_longestTextCache:s}=this,a=[],l=[],c=Math.floor(e/H0(e,r));let h=0,f=0,g,d,m,p,v,b,_,A,C,w,M;for(g=0;g<e;g+=c){if(p=t[g].label,v=this._resolveTickFontOptions(g),i.font=b=v.string,_=s[b]=s[b]||{data:{},gc:[]},A=v.lineHeight,C=w=0,!Kt(p)&&!Ee(p))C=_l(i,_.data,_.gc,C,p),w=A;else if(Ee(p))for(d=0,m=p.length;d<m;++d)M=p[d],!Kt(M)&&!Ee(M)&&(C=_l(i,_.data,_.gc,C,M),w+=A);a.push(C),l.push(w),h=Math.max(C,h),f=Math.max(w,f)}uL(s,e);const O=a.indexOf(h),L=l.indexOf(f),N=Y=>({width:a[Y]||0,height:l[Y]||0});return{first:N(0),last:N(e-1),widest:N(O),highest:N(L),widths:a,heights:l}}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 JC(this._alignToPixels?li(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 r=e[t];return r.$context||(r.$context=fL(this.getContext(),t,r))}return this.$context||(this.$context=cL(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=Vn(this.labelRotation),r=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),s=this._getLabelSizes(),a=t.autoSkipPadding||0,l=s?s.widest.width+a:0,c=s?s.highest.height+a:0;return this.isHorizontal()?c*r>l*i?l/r:c/i:c*i<l*r?c/r:l/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,r=this.chart,i=this.options,{grid:s,position:a,border:l}=i,c=s.offset,h=this.isHorizontal(),g=this.ticks.length+(c?1:0),d=Cs(s),m=[],p=l.setContext(this.getContext()),v=p.display?p.width:0,b=v/2,_=function(at){return li(r,at,v)};let A,C,w,M,O,L,N,Y,z,G,U,xt;if(a==="top")A=_(this.bottom),L=this.bottom-d,Y=A-b,G=_(t.top)+b,xt=t.bottom;else if(a==="bottom")A=_(this.top),G=t.top,xt=_(t.bottom)-b,L=A+b,Y=this.top+d;else if(a==="left")A=_(this.right),O=this.right-d,N=A-b,z=_(t.left)+b,U=t.right;else if(a==="right")A=_(this.left),z=t.left,U=_(t.right)-b,O=A+b,N=this.left+d;else if(e==="x"){if(a==="center")A=_((t.top+t.bottom)/2+.5);else if(Jt(a)){const at=Object.keys(a)[0],_t=a[at];A=_(this.chart.scales[at].getPixelForValue(_t))}G=t.top,xt=t.bottom,L=A+b,Y=L+d}else if(e==="y"){if(a==="center")A=_((t.left+t.right)/2);else if(Jt(a)){const at=Object.keys(a)[0],_t=a[at];A=_(this.chart.scales[at].getPixelForValue(_t))}O=A-b,N=O-d,z=t.left,U=t.right}const dt=Wt(i.ticks.maxTicksLimit,g),st=Math.max(1,Math.ceil(g/dt));for(C=0;C<g;C+=st){const at=this.getContext(C),_t=s.setContext(at),bt=l.setContext(at),Et=_t.lineWidth,kt=_t.color,Ot=bt.dash||[],Lt=bt.dashOffset,Q=_t.tickWidth,et=_t.tickColor,ot=_t.tickBorderDash||[],V=_t.tickBorderDashOffset;w=lL(this,C,c),w!==void 0&&(M=li(r,w,Et),h?O=N=z=U=M:L=Y=G=xt=M,m.push({tx1:O,ty1:L,tx2:N,ty2:Y,x1:z,y1:G,x2:U,y2:xt,width:Et,color:kt,borderDash:Ot,borderDashOffset:Lt,tickWidth:Q,tickColor:et,tickBorderDash:ot,tickBorderDashOffset:V}))}return this._ticksLength=g,this._borderValue=A,m}_computeLabelItems(t){const e=this.axis,r=this.options,{position:i,ticks:s}=r,a=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:h,padding:f,mirror:g}=s,d=Cs(r.grid),m=d+f,p=g?-f:m,v=-Vn(this.labelRotation),b=[];let _,A,C,w,M,O,L,N,Y,z,G,U,xt="middle";if(i==="top")O=this.bottom-p,L=this._getXAxisLabelAlignment();else if(i==="bottom")O=this.top+p,L=this._getXAxisLabelAlignment();else if(i==="left"){const st=this._getYAxisLabelAlignment(d);L=st.textAlign,M=st.x}else if(i==="right"){const st=this._getYAxisLabelAlignment(d);L=st.textAlign,M=st.x}else if(e==="x"){if(i==="center")O=(t.top+t.bottom)/2+m;else if(Jt(i)){const st=Object.keys(i)[0],at=i[st];O=this.chart.scales[st].getPixelForValue(at)+m}L=this._getXAxisLabelAlignment()}else if(e==="y"){if(i==="center")M=(t.left+t.right)/2-m;else if(Jt(i)){const st=Object.keys(i)[0],at=i[st];M=this.chart.scales[st].getPixelForValue(at)}L=this._getYAxisLabelAlignment(d).textAlign}e==="y"&&(c==="start"?xt="top":c==="end"&&(xt="bottom"));const dt=this._getLabelSizes();for(_=0,A=l.length;_<A;++_){C=l[_],w=C.label;const st=s.setContext(this.getContext(_));N=this.getPixelForTick(_)+s.labelOffset,Y=this._resolveTickFontOptions(_),z=Y.lineHeight,G=Ee(w)?w.length:1;const at=G/2,_t=st.color,bt=st.textStrokeColor,Et=st.textStrokeWidth;let kt=L;a?(M=N,L==="inner"&&(_===A-1?kt=this.options.reverse?"left":"right":_===0?kt=this.options.reverse?"right":"left":kt="center"),i==="top"?h==="near"||v!==0?U=-G*z+z/2:h==="center"?U=-dt.highest.height/2-at*z+z:U=-dt.highest.height+z/2:h==="near"||v!==0?U=z/2:h==="center"?U=dt.highest.height/2-at*z:U=dt.highest.height-G*z,g&&(U*=-1),v!==0&&!st.showLabelBackdrop&&(M+=z/2*Math.sin(v))):(O=N,U=(1-G)*z/2);let Ot;if(st.showLabelBackdrop){const Lt=en(st.backdropPadding),Q=dt.heights[_],et=dt.widths[_];let ot=U-Lt.top,V=0-Lt.left;switch(xt){case"middle":ot-=Q/2;break;case"bottom":ot-=Q;break}switch(L){case"center":V-=et/2;break;case"right":V-=et;break;case"inner":_===A-1?V-=et:_>0&&(V-=et/2);break}Ot={left:V,top:ot,width:et+Lt.width,height:Q+Lt.height,color:st.backdropColor}}b.push({label:w,font:Y,textOffset:U,options:{rotation:v,color:_t,strokeColor:bt,strokeWidth:Et,textAlign:kt,textBaseline:xt,translation:[M,O],backdrop:Ot}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Vn(this.labelRotation))return t==="top"?"left":"right";let i="center";return e.align==="start"?i="left":e.align==="end"?i="right":e.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,a=this._getLabelSizes(),l=t+s,c=a.widest.width;let h,f;return e==="left"?i?(f=this.right+s,r==="near"?h="left":r==="center"?(h="center",f+=c/2):(h="right",f+=c)):(f=this.right-l,r==="near"?h="right":r==="center"?(h="center",f-=c/2):(h="left",f=this.left)):e==="right"?i?(f=this.left+s,r==="near"?h="right":r==="center"?(h="center",f-=c/2):(h="left",f-=c)):(f=this.left+l,r==="near"?h="left":r==="center"?(h="center",f+=c/2):(h="right",f=this.right)):h="right",{textAlign:h,x:f}}_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:r,top:i,width:s,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(r,i,s,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex(s=>s.value===t);return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,a;const l=(c,h,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(h.x,h.y),r.stroke(),r.restore())};if(e.display)for(s=0,a=i.length;s<a;++s){const c=i[s];e.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),e.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:r,grid:i}}=this,s=r.setContext(this.getContext()),a=r.display?s.width:0;if(!a)return;const l=i.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let h,f,g,d;this.isHorizontal()?(h=li(t,this.left,a)-a/2,f=li(t,this.right,l)+l/2,g=d=c):(g=li(t,this.top,a)-a/2,d=li(t,this.bottom,l)+l/2,h=f=c),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(h,g),e.lineTo(f,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Bl(r,i);const s=this.getLabelItems(t);for(const a of s){const l=a.options,c=a.font,h=a.label,f=a.textOffset;bi(r,h,0,f,c,l)}i&&Il(r)}drawTitle(){const{ctx:t,options:{position:e,title:r,reverse:i}}=this;if(!r.display)return;const s=ze(r.font),a=en(r.padding),l=r.align;let c=s.lineHeight/2;e==="bottom"||e==="center"||Jt(e)?(c+=a.bottom,Ee(r.text)&&(c+=s.lineHeight*(r.text.length-1))):c+=a.top;const{titleX:h,titleY:f,maxWidth:g,rotation:d}=dL(this,c,e,l);bi(t,r.text,0,0,s,{color:r.color,maxWidth:g,rotation:d,textAlign:hL(l,e,i),textBaseline:"middle",translation:[h,f]})}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,r=Wt(t.grid&&t.grid.z,-1),i=Wt(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==xi.prototype.draw?[{z:e,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,a;for(s=0,a=e.length;s<a;++s){const l=e[s];l[r]===this.id&&(!t||l.type===t)&&i.push(l)}return i}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return ze(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ya{constructor(t,e,r){this.type=t,this.scope=e,this.override=r,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 r;mL(e)&&(r=this.register(e));const i=this.items,s=t.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in i||(i[s]=t,pL(t,a,r),this.override&&Ae.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,r=t.id,i=this.scope;r in e&&delete e[r],i&&r in Ae[i]&&(delete Ae[i][r],this.override&&delete vi[r])}}function pL(n,t,e){const r=Zs(Object.create(null),[e?Ae.get(e):{},Ae.get(t),n.defaults]);Ae.set(t,r),n.defaultRoutes&&gL(t,n.defaultRoutes),n.descriptors&&Ae.describe(t,n.descriptors)}function gL(n,t){Object.keys(t).forEach(e=>{const r=e.split("."),i=r.pop(),s=[n].concat(r).join("."),a=t[e].split("."),l=a.pop(),c=a.join(".");Ae.route(s,i,c,l)})}function mL(n){return"id"in n&&"defaults"in n}class yL{constructor(){this.controllers=new Ya($n,"datasets",!0),this.elements=new Ya(Gn,"elements"),this.plugins=new Ya(Object,"plugins"),this.scales=new Ya(xi,"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,r){[...e].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(t,s,i):le(i,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,e,r){const i=Fh(t);me(r["before"+i],[],r),e[t](r),me(r["after"+i],[],r)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const r=this._typedRegistries[e];if(r.isForType(t))return r}return this.plugins}_get(t,e,r){const i=e.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var tr=new yL;class vL{constructor(){this._init=[]}notify(t,e,r,i){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(s,t,e,r);return e==="afterDestroy"&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,r,i){i=i||{};for(const s of t){const a=s.plugin,l=a[r],c=[e,i,s.options];if(me(l,c,a)===!1&&i.cancelable)return!1}return!0}invalidate(){Kt(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 r=t&&t.config,i=Wt(r.options&&r.options.plugins,{}),s=bL(r);return i===!1&&!e?[]:wL(t,s,i,e)}_notifyStateChanges(t){const e=this._oldCache||[],r=this._cache,i=(s,a)=>s.filter(l=>!a.some(c=>l.plugin.id===c.plugin.id));this._notify(i(e,r),t,"stop"),this._notify(i(r,e),t,"start")}}function bL(n){const t={},e=[],r=Object.keys(tr.plugins.items);for(let s=0;s<r.length;s++)e.push(tr.getPlugin(r[s]));const i=n.plugins||[];for(let s=0;s<i.length;s++){const a=i[s];e.indexOf(a)===-1&&(e.push(a),t[a.id]=!0)}return{plugins:e,localIds:t}}function _L(n,t){return!t&&n===!1?null:n===!0?{}:n}function wL(n,{plugins:t,localIds:e},r,i){const s=[],a=n.getContext();for(const l of t){const c=l.id,h=_L(r[c],i);h!==null&&s.push({plugin:l,options:xL(n.config,{plugin:l,local:e[c]},h,a)})}return s}function xL(n,{plugin:t,local:e},r,i){const s=n.pluginScopeKeys(t),a=n.getOptionScopes(r,s);return e&&t.defaults&&a.push(t.defaults),n.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function rh(n,t){const e=Ae.datasets[n]||{};return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function SL(n,t){let e=n;return n==="_index_"?e=t:n==="_value_"&&(e=t==="x"?"y":"x"),e}function EL(n,t){return n===t?"_index_":"_value_"}function $0(n){if(n==="x"||n==="y"||n==="r")return n}function AL(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function ih(n,...t){if($0(n))return n;for(const e of t){const r=e.axis||AL(e.position)||n.length>1&&$0(n[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function G0(n,t,e){if(e[t+"AxisID"]===n)return{axis:t}}function kL(n,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(r=>r.xAxisID===n||r.yAxisID===n);if(e.length)return G0(n,"x",e[0])||G0(n,"y",e[0])}return{}}function RL(n,t){const e=vi[n.type]||{scales:{}},r=t.scales||{},i=rh(n.type,t),s=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Jt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=ih(a,l,kL(a,n),Ae.scales[l.type]),h=EL(c,i),f=e.scales||{};s[a]=Ws(Object.create(null),[{axis:c},l,f[c],f[h]])}),n.data.datasets.forEach(a=>{const l=a.type||n.type,c=a.indexAxis||rh(l,t),f=(vi[l]||{}).scales||{};Object.keys(f).forEach(g=>{const d=SL(g,c),m=a[d+"AxisID"]||d;s[m]=s[m]||Object.create(null),Ws(s[m],[{axis:d},r[m],f[g]])})}),Object.keys(s).forEach(a=>{const l=s[a];Ws(l,[Ae.scales[l.type],Ae.scale])}),s}function l_(n){const t=n.options||(n.options={});t.plugins=Wt(t.plugins,{}),t.scales=RL(n,t)}function u_(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function ML(n){return n=n||{},n.data=u_(n.data),l_(n),n}const Y0=new Map,c_=new Set;function Ka(n,t){let e=Y0.get(n);return e||(e=t(),Y0.set(n,e),c_.add(e)),e}const Ps=(n,t,e)=>{const r=Yr(t,e);r!==void 0&&n.add(r)};class CL{constructor(t){this._config=ML(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=u_(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(),l_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ka(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Ka(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Ka(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,r=this.type;return Ka(`${r}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const r=this._scopeCache;let i=r.get(t);return(!i||e)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,e,r){const{options:i,type:s}=this,a=this._cachedScopes(t,r),l=a.get(e);if(l)return l;const c=new Set;e.forEach(f=>{t&&(c.add(t),f.forEach(g=>Ps(c,t,g))),f.forEach(g=>Ps(c,i,g)),f.forEach(g=>Ps(c,vi[s]||{},g)),f.forEach(g=>Ps(c,Ae,g)),f.forEach(g=>Ps(c,th,g))});const h=Array.from(c);return h.length===0&&h.push(Object.create(null)),c_.has(e)&&a.set(e,h),h}chartOptionScopes(){const{options:t,type:e}=this;return[t,vi[e]||{},Ae.datasets[e]||{},{type:e},Ae,th]}resolveNamedOptions(t,e,r,i=[""]){const s={$shared:!0},{resolver:a,subPrefixes:l}=K0(this._resolverCache,t,i);let c=a;if(OL(a,e)){s.$shared=!1,r=Kr(r)?r():r;const h=this.createResolver(t,r,l);c=Zi(a,r,h)}for(const h of e)s[h]=c[h];return s}createResolver(t,e,r=[""],i){const{resolver:s}=K0(this._resolverCache,t,r);return Jt(e)?Zi(s,e,void 0,i):s}}function K0(n,t,e){let r=n.get(t);r||(r=new Map,n.set(t,r));const i=e.join();let s=r.get(i);return s||(s={resolver:Hh(t,e),subPrefixes:e.filter(l=>!l.toLowerCase().includes("hover"))},r.set(i,s)),s}const PL=n=>Jt(n)&&Object.getOwnPropertyNames(n).some(t=>Kr(n[t]));function OL(n,t){const{isScriptable:e,isIndexable:r}=Hb(n);for(const i of t){const s=e(i),a=r(i),l=(a||s)&&n[i];if(s&&(Kr(l)||PL(l))||a&&Ee(l))return!0}return!1}var LL="4.4.8";const TL=["top","bottom","left","right","chartArea"];function X0(n,t){return n==="top"||n==="bottom"||TL.indexOf(n)===-1&&t==="x"}function J0(n,t){return function(e,r){return e[n]===r[n]?e[t]-r[t]:e[n]-r[n]}}function Z0(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),me(e&&e.onComplete,[n],t)}function BL(n){const t=n.chart,e=t.options.animation;me(e&&e.onProgress,[n],t)}function f_(n){return $h()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const dl={},Q0=n=>{const t=f_(n);return Object.values(dl).filter(e=>e.canvas===t).pop()};function IL(n,t,e){const r=Object.keys(n);for(const i of r){const s=+i;if(s>=t){const a=n[i];delete n[i],(e>0||s>t)&&(n[s+e]=a)}}}function DL(n,t,e,r){return!e||n.type==="mouseout"?null:r?t:n}function Xa(n,t,e){return n.options.clip?n[e]:t[e]}function FL(n,t){const{xScale:e,yScale:r}=n;return e&&r?{left:Xa(e,t,"left"),right:Xa(e,t,"right"),top:Xa(r,t,"top"),bottom:Xa(r,t,"bottom")}:t}class Sr{static register(...t){tr.add(...t),tv()}static unregister(...t){tr.remove(...t),tv()}constructor(t,e){const r=this.config=new CL(e),i=f_(t),s=Q0(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||tL(i)),this.platform.updateConfig(r);const l=this.platform.acquireContext(i,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,f=c&&c.width;if(this.id=NC(),this.ctx=l,this.canvas=c,this.width=f,this.height=h,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 vL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=eP(g=>this.update(g),a.resizeDelay||0),this._dataChanges=[],dl[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}_r.listen(this,"complete",Z0),_r.listen(this,"progress",BL),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:r,height:i,_aspectRatio:s}=this;return Kt(t)?e&&s?s:i?r/i: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 tr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():x0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return b0(this.canvas,this.ctx),this}stop(){return _r.stop(this),this}resize(t,e){_r.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,s),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,x0(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),me(r.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};le(e,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,e=t.scales,r=this.scales,i=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let s=[];e&&(s=s.concat(Object.keys(e).map(a=>{const l=e[a],c=ih(a,l),h=c==="r",f=c==="x";return{options:l,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),le(s,a=>{const l=a.options,c=l.id,h=ih(c,l),f=Wt(l.type,a.dtype);(l.position===void 0||X0(l.position,h)!==X0(a.dposition))&&(l.position=a.dposition),i[c]=!0;let g=null;if(c in r&&r[c].type===f)g=r[c];else{const d=tr.getScale(f);g=new d({id:c,type:f,ctx:this.ctx,chart:this}),r[g.id]=g}g.init(l,t)}),le(i,(a,l)=>{a||delete r[l]}),le(r,a=>{tn.configure(this,a,a.options),tn.addBox(this,a)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,r=t.length;if(t.sort((i,s)=>i.index-s.index),r>e){for(let i=e;i<r;++i)this._destroyDatasetMeta(i);t.splice(e,r-e)}this._sortedMetasets=t.slice(0).sort(J0("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((r,i)=>{e.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=e.length;r<i;r++){const s=e[r];let a=this.getDatasetMeta(r);const l=s.type||this.config.type;if(a.type&&a.type!==l&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=l,a.indexAxis=s.indexAxis||rh(l,this.options),a.order=s.order||0,a.index=r,a.label=""+s.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const c=tr.getController(l),{datasetElementType:h,dataElementType:f}=Ae.datasets[l];Object.assign(c,{dataElementType:tr.getElement(f),datasetElementType:h&&tr.getElement(h)}),a.controller=new c(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){le(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 r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let h=0,f=this.data.datasets.length;h<f;h++){const{controller:g}=this.getDatasetMeta(h),d=!i&&s.indexOf(g)===-1;g.buildOrUpdateElements(d),a=Math.max(+g.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||le(s,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(J0("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){le(this.scales,t=>{tn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!c0(e,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of e){const a=r==="_removeElements"?-s:s;IL(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=s=>new Set(t.filter(a=>a[0]===s).map((a,l)=>l+","+a.splice(1).join(","))),i=r(0);for(let s=1;s<e;s++)if(!c0(i,r(s)))return;return Array.from(i).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;tn.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],le(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,r=this.data.datasets.length;e<r;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,r=this.data.datasets.length;e<r;++e)this._updateDataset(e,Kr(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(_r.has(this)?this.attached&&!_r.running(this)&&_r.start(this):(this.draw(),Z0({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}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,r=[];let i,s;for(i=0,s=e.length;i<s;++i){const a=e[i];(!t||a.visible)&&r.push(a)}return r}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,r=t._clip,i=!r.disabled,s=FL(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&Bl(e,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),t.controller.draw(),i&&Il(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Cr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,i){const s=TO.modes[e];return typeof s=="function"?s(this,t,r,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],r=this._metasets;let i=r.filter(s=>s&&s._dataset===e).pop();return i||(i={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},r.push(i)),i}getContext(){return this.$context||(this.$context=Xr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!e.hidden}setDatasetVisibility(t,e){const r=this.getDatasetMeta(t);r.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,r){const i=r?"show":"hide",s=this.getDatasetMeta(t),a=s.controller._resolveAnimations(void 0,i);Qs(e)?(s.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(s,{visible:r}),this.update(l=>l.datasetIndex===t?i: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(),_r.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(),b0(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete dl[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,r=(s,a)=>{e.addEventListener(this,s,a),t[s]=a},i=(s,a,l)=>{s.offsetX=a,s.offsetY=l,this._eventHandler(s)};le(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,r=(c,h)=>{e.addEventListener(this,c,h),t[c]=h},i=(c,h)=>{t[c]&&(e.removeEventListener(this,c,h),delete t[c])},s=(c,h)=>{this.canvas&&this.resize(c,h)};let a;const l=()=>{i("attach",l),this.attached=!0,this.resize(),r("resize",s),r("detach",a)};a=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",l)},e.isAttached(this.canvas)?l():a()}unbindEvents(){le(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},le(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,r){const i=r?"set":"remove";let s,a,l,c;for(e==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){a=t[l];const h=a&&this.getDatasetMeta(a.datasetIndex).controller;h&&h[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],r=t.map(({datasetIndex:s,index:a})=>{const l=this.getDatasetMeta(s);if(!l)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:l.data[a],index:a}});!yl(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(t,e,r){return this._plugins.notify(this,t,e,r)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,r){const i=this.options.hover,s=(c,h)=>c.filter(f=>!h.some(g=>f.datasetIndex===g.datasetIndex&&f.index===g.index)),a=s(e,t),l=r?t:s(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),l.length&&i.mode&&this.updateHoverStyle(l,i.mode,!0)}_eventHandler(t,e){const r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(t,e,r){const{_active:i=[],options:s}=this,a=e,l=this._getActiveElements(t,i,r,a),c=zC(t),h=DL(t,this._lastEvent,r,c);r&&(this._lastEvent=null,me(s.onHover,[t,l,this],this),c&&me(s.onClick,[t,l,this],this));const f=!yl(l,i);return(f||e)&&(this._active=l,this._updateHoverStyles(l,i,e)),this._lastEvent=h,f}_getActiveElements(t,e,r,i){if(t.type==="mouseout")return[];if(!r)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}At(Sr,"defaults",Ae),At(Sr,"instances",dl),At(Sr,"overrides",vi),At(Sr,"registry",tr),At(Sr,"version",LL),At(Sr,"getChart",Q0);function tv(){return le(Sr.instances,n=>n._plugins.invalidate())}function NL(n,t,e){const{startAngle:r,pixelMargin:i,x:s,y:a,outerRadius:l,innerRadius:c}=t;let h=i/l;n.beginPath(),n.arc(s,a,l,r-h,e+h),c>i?(h=i/c,n.arc(s,a,c,e+h,r-h,!0)):n.arc(s,a,i,e+Ie,r-Ie),n.closePath(),n.clip()}function jL(n){return Wh(n,["outerStart","outerEnd","innerStart","innerEnd"])}function UL(n,t,e,r){const i=jL(n.options.borderRadius),s=(e-t)/2,a=Math.min(s,r*t/2),l=c=>{const h=(e-Math.min(s,c))*r/2;return Ge(c,0,Math.min(s,h))};return{outerStart:l(i.outerStart),outerEnd:l(i.outerEnd),innerStart:Ge(i.innerStart,0,a),innerEnd:Ge(i.innerEnd,0,a)}}function Hi(n,t,e,r){return{x:e+n*Math.cos(t),y:r+n*Math.sin(t)}}function Sl(n,t,e,r,i,s){const{x:a,y:l,startAngle:c,pixelMargin:h,innerRadius:f}=t,g=Math.max(t.outerRadius+r+e-h,0),d=f>0?f+r+e+h:0;let m=0;const p=i-c;if(r){const st=f>0?f-r:0,at=g>0?g-r:0,_t=(st+at)/2,bt=_t!==0?p*_t/(_t+r):p;m=(p-bt)/2}const v=Math.max(.001,p*g-e/_e)/g,b=(p-v)/2,_=c+b+m,A=i-b-m,{outerStart:C,outerEnd:w,innerStart:M,innerEnd:O}=UL(t,d,g,A-_),L=g-C,N=g-w,Y=_+C/L,z=A-w/N,G=d+M,U=d+O,xt=_+M/G,dt=A-O/U;if(n.beginPath(),s){const st=(Y+z)/2;if(n.arc(a,l,g,Y,st),n.arc(a,l,g,st,z),w>0){const Et=Hi(N,z,a,l);n.arc(Et.x,Et.y,w,z,A+Ie)}const at=Hi(U,A,a,l);if(n.lineTo(at.x,at.y),O>0){const Et=Hi(U,dt,a,l);n.arc(Et.x,Et.y,O,A+Ie,dt+Math.PI)}const _t=(A-O/d+(_+M/d))/2;if(n.arc(a,l,d,A-O/d,_t,!0),n.arc(a,l,d,_t,_+M/d,!0),M>0){const Et=Hi(G,xt,a,l);n.arc(Et.x,Et.y,M,xt+Math.PI,_-Ie)}const bt=Hi(L,_,a,l);if(n.lineTo(bt.x,bt.y),C>0){const Et=Hi(L,Y,a,l);n.arc(Et.x,Et.y,C,_-Ie,Y)}}else{n.moveTo(a,l);const st=Math.cos(Y)*g+a,at=Math.sin(Y)*g+l;n.lineTo(st,at);const _t=Math.cos(z)*g+a,bt=Math.sin(z)*g+l;n.lineTo(_t,bt)}n.closePath()}function qL(n,t,e,r,i){const{fullCircles:s,startAngle:a,circumference:l}=t;let c=t.endAngle;if(s){Sl(n,t,e,r,c,i);for(let h=0;h<s;++h)n.fill();isNaN(l)||(c=a+(l%be||be))}return Sl(n,t,e,r,c,i),n.fill(),c}function WL(n,t,e,r,i){const{fullCircles:s,startAngle:a,circumference:l,options:c}=t,{borderWidth:h,borderJoinStyle:f,borderDash:g,borderDashOffset:d}=c,m=c.borderAlign==="inner";if(!h)return;n.setLineDash(g||[]),n.lineDashOffset=d,m?(n.lineWidth=h*2,n.lineJoin=f||"round"):(n.lineWidth=h,n.lineJoin=f||"bevel");let p=t.endAngle;if(s){Sl(n,t,e,r,p,i);for(let v=0;v<s;++v)n.stroke();isNaN(l)||(p=a+(l%be||be))}m&&NL(n,t,p),s||(Sl(n,t,e,r,p,i),n.stroke())}class Ds extends Gn{constructor(e){super();At(this,"circumference");At(this,"endAngle");At(this,"fullCircles");At(this,"innerRadius");At(this,"outerRadius");At(this,"pixelMargin");At(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,r,i){const s=this.getProps(["x","y"],i),{angle:a,distance:l}=Tb(s,{x:e,y:r}),{startAngle:c,endAngle:h,innerRadius:f,outerRadius:g,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),m=(this.options.spacing+this.options.borderWidth)/2,p=Wt(d,h-c),v=to(a,c,h)&&c!==h,b=p>=be||v,_=Rr(l,f+m,g+m);return b&&_}getCenterPoint(e){const{x:r,y:i,startAngle:s,endAngle:a,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:h,spacing:f}=this.options,g=(s+a)/2,d=(l+c+f+h)/2;return{x:r+Math.cos(g)*d,y:i+Math.sin(g)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:r,circumference:i}=this,s=(r.offset||0)/4,a=(r.spacing||0)/2,l=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>be?Math.floor(i/be):0,i===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const c=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(c)*s,Math.sin(c)*s);const h=1-Math.sin(Math.min(_e,i||0)),f=s*h;e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,qL(e,this,f,a,l),WL(e,this,f,a,l),e.restore()}}At(Ds,"id","arc"),At(Ds,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),At(Ds,"defaultRoutes",{backgroundColor:"backgroundColor"}),At(Ds,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function h_(n,t,e=t){n.lineCap=Wt(e.borderCapStyle,t.borderCapStyle),n.setLineDash(Wt(e.borderDash,t.borderDash)),n.lineDashOffset=Wt(e.borderDashOffset,t.borderDashOffset),n.lineJoin=Wt(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=Wt(e.borderWidth,t.borderWidth),n.strokeStyle=Wt(e.borderColor,t.borderColor)}function HL(n,t,e){n.lineTo(e.x,e.y)}function zL(n){return n.stepped?dP:n.tension||n.cubicInterpolationMode==="monotone"?pP:HL}function d_(n,t,e={}){const r=n.length,{start:i=0,end:s=r-1}=e,{start:a,end:l}=t,c=Math.max(i,a),h=Math.min(s,l),f=i<a&&s<a||i>l&&s>l;return{count:r,start:c,loop:t.loop,ilen:h<c&&!f?r+h-c:h-c}}function VL(n,t,e,r){const{points:i,options:s}=t,{count:a,start:l,loop:c,ilen:h}=d_(i,e,r),f=zL(s);let{move:g=!0,reverse:d}=r||{},m,p,v;for(m=0;m<=h;++m)p=i[(l+(d?h-m:m))%a],!p.skip&&(g?(n.moveTo(p.x,p.y),g=!1):f(n,v,p,d,s.stepped),v=p);return c&&(p=i[(l+(d?h:0))%a],f(n,v,p,d,s.stepped)),!!c}function $L(n,t,e,r){const i=t.points,{count:s,start:a,ilen:l}=d_(i,e,r),{move:c=!0,reverse:h}=r||{};let f=0,g=0,d,m,p,v,b,_;const A=w=>(a+(h?l-w:w))%s,C=()=>{v!==b&&(n.lineTo(f,b),n.lineTo(f,v),n.lineTo(f,_))};for(c&&(m=i[A(0)],n.moveTo(m.x,m.y)),d=0;d<=l;++d){if(m=i[A(d)],m.skip)continue;const w=m.x,M=m.y,O=w|0;O===p?(M<v?v=M:M>b&&(b=M),f=(g*f+w)/++g):(C(),n.lineTo(w,M),p=O,g=0,v=b=M),_=M}C()}function sh(n){const t=n.options,e=t.borderDash&&t.borderDash.length;return!n._decimated&&!n._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?$L:VL}function GL(n){return n.stepped?$P:n.tension||n.cubicInterpolationMode==="monotone"?GP:hi}function YL(n,t,e,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,e,r)&&i.closePath()),h_(n,t.options),n.stroke(i)}function KL(n,t,e,r){const{segments:i,options:s}=t,a=sh(t);for(const l of i)h_(n,s,l.style),n.beginPath(),a(n,t,l,{start:e,end:e+r-1})&&n.closePath(),n.stroke()}const XL=typeof Path2D=="function";function JL(n,t,e,r){XL&&!t.options.segment?YL(n,t,e,r):KL(n,t,e,r)}class zr extends Gn{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 r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;NP(this._points,r,t,i,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=QP(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,r=t.length;return r&&e[t[r-1].end]}interpolate(t,e){const r=this.options,i=t[e],s=this.points,a=Qb(this,{property:e,start:i,end:i});if(!a.length)return;const l=[],c=GL(r);let h,f;for(h=0,f=a.length;h<f;++h){const{start:g,end:d}=a[h],m=s[g],p=s[d];if(m===p){l.push(m);continue}const v=Math.abs((i-m[e])/(p[e]-m[e])),b=c(m,p,v,r.stepped);b[e]=t[e],l.push(b)}return l.length===1?l[0]:l}pathSegment(t,e,r){return sh(this)(t,this,e,r)}path(t,e,r){const i=this.segments,s=sh(this);let a=this._loop;e=e||0,r=r||this.points.length-e;for(const l of i)a&=s(t,this,l,{start:e,end:e+r-1});return!!a}draw(t,e,r,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),JL(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}At(zr,"id","line"),At(zr,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),At(zr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),At(zr,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function ev(n,t,e,r){const i=n.options,{[e]:s}=n.getProps([e],r);return Math.abs(t-s)<i.radius+i.hitRadius}class pl extends Gn{constructor(e){super();At(this,"parsed");At(this,"skip");At(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,r,i){const s=this.options,{x:a,y:l}=this.getProps(["x","y"],i);return Math.pow(e-a,2)+Math.pow(r-l,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(e,r){return ev(this,e,"x",r)}inYRange(e,r){return ev(this,e,"y",r)}getCenterPoint(e){const{x:r,y:i}=this.getProps(["x","y"],e);return{x:r,y:i}}size(e){e=e||this.options||{};let r=e.radius||0;r=Math.max(r,r&&e.hoverRadius||0);const i=r&&e.borderWidth||0;return(r+i)*2}draw(e,r){const i=this.options;this.skip||i.radius<.1||!Cr(this,r,this.size(i)/2)||(e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.fillStyle=i.backgroundColor,eh(e,i,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}At(pl,"id","point"),At(pl,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),At(pl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function p_(n,t){const{x:e,y:r,base:i,width:s,height:a}=n.getProps(["x","y","base","width","height"],t);let l,c,h,f,g;return n.horizontal?(g=a/2,l=Math.min(e,i),c=Math.max(e,i),h=r-g,f=r+g):(g=s/2,l=e-g,c=e+g,h=Math.min(r,i),f=Math.max(r,i)),{left:l,top:h,right:c,bottom:f}}function Vr(n,t,e,r){return n?0:Ge(t,e,r)}function ZL(n,t,e){const r=n.options.borderWidth,i=n.borderSkipped,s=Wb(r);return{t:Vr(i.top,s.top,0,e),r:Vr(i.right,s.right,0,t),b:Vr(i.bottom,s.bottom,0,e),l:Vr(i.left,s.left,0,t)}}function QL(n,t,e){const{enableBorderRadius:r}=n.getProps(["enableBorderRadius"]),i=n.options.borderRadius,s=mi(i),a=Math.min(t,e),l=n.borderSkipped,c=r||Jt(i);return{topLeft:Vr(!c||l.top||l.left,s.topLeft,0,a),topRight:Vr(!c||l.top||l.right,s.topRight,0,a),bottomLeft:Vr(!c||l.bottom||l.left,s.bottomLeft,0,a),bottomRight:Vr(!c||l.bottom||l.right,s.bottomRight,0,a)}}function tT(n){const t=p_(n),e=t.right-t.left,r=t.bottom-t.top,i=ZL(n,e/2,r/2),s=QL(n,e/2,r/2);return{outer:{x:t.left,y:t.top,w:e,h:r,radius:s},inner:{x:t.left+i.l,y:t.top+i.t,w:e-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,s.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(i.b,i.r))}}}}function Uf(n,t,e,r){const i=t===null,s=e===null,l=n&&!(i&&s)&&p_(n,r);return l&&(i||Rr(t,l.left,l.right))&&(s||Rr(e,l.top,l.bottom))}function eT(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}function nT(n,t){n.rect(t.x,t.y,t.w,t.h)}function qf(n,t,e={}){const r=n.x!==e.x?-t:0,i=n.y!==e.y?-t:0,s=(n.x+n.w!==e.x+e.w?t:0)-r,a=(n.y+n.h!==e.y+e.h?t:0)-i;return{x:n.x+r,y:n.y+i,w:n.w+s,h:n.h+a,radius:n.radius}}class gl extends Gn{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:r,backgroundColor:i}}=this,{inner:s,outer:a}=tT(this),l=eT(a.radius)?eo:nT;t.save(),(a.w!==s.w||a.h!==s.h)&&(t.beginPath(),l(t,qf(a,e,s)),t.clip(),l(t,qf(s,-e,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,qf(s,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,r){return Uf(this,t,e,r)}inXRange(t,e){return Uf(this,t,null,e)}inYRange(t,e){return Uf(this,null,t,e)}getCenterPoint(t){const{x:e,y:r,base:i,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+i)/2:e,y:s?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}At(gl,"id","bar"),At(gl,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),At(gl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var rT=Object.freeze({__proto__:null,ArcElement:Ds,BarElement:gl,LineElement:zr,PointElement:pl});const oh=["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)"],nv=oh.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function g_(n){return oh[n%oh.length]}function m_(n){return nv[n%nv.length]}function iT(n,t){return n.borderColor=g_(t),n.backgroundColor=m_(t),++t}function sT(n,t){return n.backgroundColor=n.data.map(()=>g_(t++)),t}function oT(n,t){return n.backgroundColor=n.data.map(()=>m_(t++)),t}function aT(n){let t=0;return(e,r)=>{const i=n.getDatasetMeta(r).controller;i instanceof gi?t=sT(e,t):i instanceof $s?t=oT(e,t):i&&(t=iT(e,t))}}function rv(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}function lT(n){return n&&(n.borderColor||n.backgroundColor)}function uT(){return Ae.borderColor!=="rgba(0,0,0,0.1)"||Ae.backgroundColor!=="rgba(0,0,0,0.1)"}var cT={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,t,e){if(!e.enabled)return;const{data:{datasets:r},options:i}=n.config,{elements:s}=i,a=rv(r)||lT(i)||s&&rv(s)||uT();if(!e.forceOverride&&a)return;const l=aT(n);r.forEach(l)}};function fT(n,t,e,r,i){const s=i.samples||r;if(s>=e)return n.slice(t,t+e);const a=[],l=(e-2)/(s-2);let c=0;const h=t+e-1;let f=t,g,d,m,p,v;for(a[c++]=n[f],g=0;g<s-2;g++){let b=0,_=0,A;const C=Math.floor((g+1)*l)+1+t,w=Math.min(Math.floor((g+2)*l)+1,e)+t,M=w-C;for(A=C;A<w;A++)b+=n[A].x,_+=n[A].y;b/=M,_/=M;const O=Math.floor(g*l)+1+t,L=Math.min(Math.floor((g+1)*l)+1,e)+t,{x:N,y:Y}=n[f];for(m=p=-1,A=O;A<L;A++)p=.5*Math.abs((N-b)*(n[A].y-Y)-(N-n[A].x)*(_-Y)),p>m&&(m=p,d=n[A],v=A);a[c++]=d,f=v}return a[c++]=n[h],a}function hT(n,t,e,r){let i=0,s=0,a,l,c,h,f,g,d,m,p,v;const b=[],_=t+e-1,A=n[t].x,w=n[_].x-A;for(a=t;a<t+e;++a){l=n[a],c=(l.x-A)/w*r,h=l.y;const M=c|0;if(M===f)h<p?(p=h,g=a):h>v&&(v=h,d=a),i=(s*i+l.x)/++s;else{const O=a-1;if(!Kt(g)&&!Kt(d)){const L=Math.min(g,d),N=Math.max(g,d);L!==m&&L!==O&&b.push({...n[L],x:i}),N!==m&&N!==O&&b.push({...n[N],x:i})}a>0&&O!==m&&b.push(n[O]),b.push(l),f=M,s=0,p=v=h,g=d=m=a}}return b}function y_(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 iv(n){n.data.datasets.forEach(t=>{y_(t)})}function dT(n,t){const e=t.length;let r=0,i;const{iScale:s}=n,{min:a,max:l,minDefined:c,maxDefined:h}=s.getUserBounds();return c&&(r=Ge(Mr(t,s.axis,a).lo,0,e-1)),h?i=Ge(Mr(t,s.axis,l).hi+1,r,e)-r:i=e-r,{start:r,count:i}}var pT={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled){iv(n);return}const r=n.width;n.data.datasets.forEach((i,s)=>{const{_data:a,indexAxis:l}=i,c=n.getDatasetMeta(s),h=a||i.data;if(Bs([l,n.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const f=n.scales[c.xAxisID];if(f.type!=="linear"&&f.type!=="time"||n.options.parsing)return;let{start:g,count:d}=dT(c,h);const m=e.threshold||4*r;if(d<=m){y_(i);return}Kt(a)&&(i._data=h,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let p;switch(e.algorithm){case"lttb":p=fT(h,g,d,r,e);break;case"min-max":p=hT(h,g,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}i._decimated=p})},destroy(n){iv(n)}};function gT(n,t,e){const r=n.segments,i=n.points,s=t.points,a=[];for(const l of r){let{start:c,end:h}=l;h=Kh(c,h,i);const f=ah(e,i[c],i[h],l.loop);if(!t.segments){a.push({source:l,target:f,start:i[c],end:i[h]});continue}const g=Qb(t,f);for(const d of g){const m=ah(e,s[d.start],s[d.end],d.loop),p=Zb(l,i,m);for(const v of p)a.push({source:v,target:d,start:{[e]:sv(f,m,"start",Math.max)},end:{[e]:sv(f,m,"end",Math.min)}})}}return a}function ah(n,t,e,r){if(r)return;let i=t[n],s=e[n];return n==="angle"&&(i=An(i),s=An(s)),{property:n,start:i,end:s}}function mT(n,t){const{x:e=null,y:r=null}=n||{},i=t.points,s=[];return t.segments.forEach(({start:a,end:l})=>{l=Kh(a,l,i);const c=i[a],h=i[l];r!==null?(s.push({x:c.x,y:r}),s.push({x:h.x,y:r})):e!==null&&(s.push({x:e,y:c.y}),s.push({x:e,y:h.y}))}),s}function Kh(n,t,e){for(;t>n;t--){const r=e[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function sv(n,t,e,r){return n&&t?r(n[e],t[e]):n?n[e]:t?t[e]:0}function v_(n,t){let e=[],r=!1;return Ee(n)?(r=!0,e=n):e=mT(n,t),e.length?new zr({points:e,options:{tension:0},_loop:r,_fullLoop:r}):null}function ov(n){return n&&n.fill!==!1}function yT(n,t,e){let i=n[t].fill;const s=[t];let a;if(!e)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!Le(i))return i;if(a=n[i],!a)return!1;if(a.visible)return i;s.push(i),i=a.fill}return!1}function vT(n,t,e){const r=xT(n);if(Jt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Le(i)&&Math.floor(i)===i?bT(r[0],t,i,e):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function bT(n,t,e,r){return(n==="-"||n==="+")&&(e=t+e),e===t||e<0||e>=r?!1:e}function _T(n,t){let e=null;return n==="start"?e=t.bottom:n==="end"?e=t.top:Jt(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}function wT(n,t,e){let r;return n==="start"?r=e:n==="end"?r=t.options.reverse?t.min:t.max:Jt(n)?r=n.value:r=t.getBaseValue(),r}function xT(n){const t=n.options,e=t.fill;let r=Wt(e&&e.target,e);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function ST(n){const{scale:t,index:e,line:r}=n,i=[],s=r.segments,a=r.points,l=ET(t,e);l.push(v_({x:null,y:t.bottom},r));for(let c=0;c<s.length;c++){const h=s[c];for(let f=h.start;f<=h.end;f++)AT(i,a[f],l)}return new zr({points:i,options:{}})}function ET(n,t){const e=[],r=n.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const s=r[i];if(s.index===t)break;s.hidden||e.unshift(s.dataset)}return e}function AT(n,t,e){const r=[];for(let i=0;i<e.length;i++){const s=e[i],{first:a,last:l,point:c}=kT(s,t,"x");if(!(!c||a&&l)){if(a)r.unshift(c);else if(n.push(c),!l)break}}n.push(...r)}function kT(n,t,e){const r=n.interpolate(t,e);if(!r)return{};const i=r[e],s=n.segments,a=n.points;let l=!1,c=!1;for(let h=0;h<s.length;h++){const f=s[h],g=a[f.start][e],d=a[f.end][e];if(Rr(i,g,d)){l=i===g,c=i===d;break}}return{first:l,last:c,point:r}}class b_{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,r){const{x:i,y:s,radius:a}=this;return e=e||{start:0,end:be},t.arc(i,s,a,e.end,e.start,!0),!r.bounds}interpolate(t){const{x:e,y:r,radius:i}=this,s=t.angle;return{x:e+Math.cos(s)*i,y:r+Math.sin(s)*i,angle:s}}}function RT(n){const{chart:t,fill:e,line:r}=n;if(Le(e))return MT(t,e);if(e==="stack")return ST(n);if(e==="shape")return!0;const i=CT(n);return i instanceof b_?i:v_(i,r)}function MT(n,t){const e=n.getDatasetMeta(t);return e&&n.isDatasetVisible(t)?e.dataset:null}function CT(n){return(n.scale||{}).getPointPositionForValue?OT(n):PT(n)}function PT(n){const{scale:t={},fill:e}=n,r=_T(e,t);if(Le(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function OT(n){const{scale:t,fill:e}=n,r=t.options,i=t.getLabels().length,s=r.reverse?t.max:t.min,a=wT(e,t,s),l=[];if(r.grid.circular){const c=t.getPointPositionForValue(0,s);return new b_({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(a)})}for(let c=0;c<i;++c)l.push(t.getPointPositionForValue(c,a));return l}function Wf(n,t,e){const r=RT(t),{line:i,scale:s,axis:a}=t,l=i.options,c=l.fill,h=l.backgroundColor,{above:f=h,below:g=h}=c||{};r&&i.points.length&&(Bl(n,e),LT(n,{line:i,target:r,above:f,below:g,area:e,scale:s,axis:a}),Il(n))}function LT(n,t){const{line:e,target:r,above:i,below:s,area:a,scale:l}=t,c=e._loop?"angle":t.axis;n.save(),c==="x"&&s!==i&&(av(n,r,a.top),lv(n,{line:e,target:r,color:i,scale:l,property:c}),n.restore(),n.save(),av(n,r,a.bottom)),lv(n,{line:e,target:r,color:s,scale:l,property:c}),n.restore()}function av(n,t,e){const{segments:r,points:i}=t;let s=!0,a=!1;n.beginPath();for(const l of r){const{start:c,end:h}=l,f=i[c],g=i[Kh(c,h,i)];s?(n.moveTo(f.x,f.y),s=!1):(n.lineTo(f.x,e),n.lineTo(f.x,f.y)),a=!!t.pathSegment(n,l,{move:a}),a?n.closePath():n.lineTo(g.x,e)}n.lineTo(t.first().x,e),n.closePath(),n.clip()}function lv(n,t){const{line:e,target:r,property:i,color:s,scale:a}=t,l=gT(e,r,i);for(const{source:c,target:h,start:f,end:g}of l){const{style:{backgroundColor:d=s}={}}=c,m=r!==!0;n.save(),n.fillStyle=d,TT(n,a,m&&ah(i,f,g)),n.beginPath();const p=!!e.pathSegment(n,c);let v;if(m){p?n.closePath():uv(n,r,g,i);const b=!!r.pathSegment(n,h,{move:p,reverse:!0});v=p&&b,v||uv(n,r,f,i)}n.closePath(),n.fill(v?"evenodd":"nonzero"),n.restore()}}function TT(n,t,e){const{top:r,bottom:i}=t.chart.chartArea,{property:s,start:a,end:l}=e||{};s==="x"&&(n.beginPath(),n.rect(a,r,l-a,i-r),n.clip())}function uv(n,t,e,r){const i=t.interpolate(e,r);i&&n.lineTo(i.x,i.y)}var BT={id:"filler",afterDatasetsUpdate(n,t,e){const r=(n.data.datasets||[]).length,i=[];let s,a,l,c;for(a=0;a<r;++a)s=n.getDatasetMeta(a),l=s.dataset,c=null,l&&l.options&&l instanceof zr&&(c={visible:n.isDatasetVisible(a),index:a,fill:vT(l,a,r),chart:n,axis:s.controller.options.indexAxis,scale:s.vScale,line:l}),s.$filler=c,i.push(c);for(a=0;a<r;++a)c=i[a],!(!c||c.fill===!1)&&(c.fill=yT(i,a,e.propagate))},beforeDraw(n,t,e){const r=e.drawTime==="beforeDraw",i=n.getSortedVisibleDatasetMetas(),s=n.chartArea;for(let a=i.length-1;a>=0;--a){const l=i[a].$filler;l&&(l.line.updateControlPoints(s,l.axis),r&&l.fill&&Wf(n.ctx,l,s))}},beforeDatasetsDraw(n,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;const r=n.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;ov(s)&&Wf(n.ctx,s,n.chartArea)}},beforeDatasetDraw(n,t,e){const r=t.meta.$filler;!ov(r)||e.drawTime!=="beforeDatasetDraw"||Wf(n.ctx,r,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const cv=(n,t)=>{let{boxHeight:e=t,boxWidth:r=t}=n;return n.usePointStyle&&(e=Math.min(e,t),r=n.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:e,itemHeight:Math.max(t,e)}},IT=(n,t)=>n!==null&&t!==null&&n.datasetIndex===t.datasetIndex&&n.index===t.index;class fv extends Gn{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,r){this.maxWidth=t,this.maxHeight=e,this._margins=r,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=me(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(r=>t.filter(r,this.chart.data))),t.sort&&(e=e.sort((r,i)=>t.sort(r,i,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 r=t.labels,i=ze(r.font),s=i.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=cv(r,s);let h,f;e.font=i.string,this.isHorizontal()?(h=this.maxWidth,f=this._fitRows(a,s,l,c)+10):(f=this.maxHeight,h=this._fitCols(a,i,l,c)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,e,r,i){const{ctx:s,maxWidth:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],h=this.lineWidths=[0],f=i+l;let g=t;s.textAlign="left",s.textBaseline="middle";let d=-1,m=-f;return this.legendItems.forEach((p,v)=>{const b=r+e/2+s.measureText(p.text).width;(v===0||h[h.length-1]+b+2*l>a)&&(g+=f,h[h.length-(v>0?0:1)]=0,m+=f,d++),c[v]={left:0,top:m,row:d,width:b,height:i},h[h.length-1]+=b+l}),g}_fitCols(t,e,r,i){const{ctx:s,maxHeight:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],h=this.columnSizes=[],f=a-t;let g=l,d=0,m=0,p=0,v=0;return this.legendItems.forEach((b,_)=>{const{itemWidth:A,itemHeight:C}=DT(r,e,s,b,i);_>0&&m+C+2*l>f&&(g+=d+l,h.push({width:d,height:m}),p+=d+l,v++,d=m=0),c[_]={left:p,top:m,col:v,width:A,height:C},d=Math.max(d,A),m+=C+l}),g+=d,h.push({width:d,height:m}),g}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:r,labels:{padding:i},rtl:s}}=this,a=Yi(s,this.left,this.width);if(this.isHorizontal()){let l=0,c=Qe(r,this.left+i,this.right-this.lineWidths[l]);for(const h of e)l!==h.row&&(l=h.row,c=Qe(r,this.left+i,this.right-this.lineWidths[l])),h.top+=this.top+t+i,h.left=a.leftForLtr(a.x(c),h.width),c+=h.width+i}else{let l=0,c=Qe(r,this.top+t+i,this.bottom-this.columnSizes[l].height);for(const h of e)h.col!==l&&(l=h.col,c=Qe(r,this.top+t+i,this.bottom-this.columnSizes[l].height)),h.top=c,h.left+=this.left+i,h.left=a.leftForLtr(a.x(h.left),h.width),c+=h.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Bl(t,this),this._draw(),Il(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:r,ctx:i}=this,{align:s,labels:a}=t,l=Ae.color,c=Yi(t.rtl,this.left,this.width),h=ze(a.font),{padding:f}=a,g=h.size,d=g/2;let m;this.drawTitle(),i.textAlign=c.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=h.string;const{boxWidth:p,boxHeight:v,itemHeight:b}=cv(a,g),_=function(O,L,N){if(isNaN(p)||p<=0||isNaN(v)||v<0)return;i.save();const Y=Wt(N.lineWidth,1);if(i.fillStyle=Wt(N.fillStyle,l),i.lineCap=Wt(N.lineCap,"butt"),i.lineDashOffset=Wt(N.lineDashOffset,0),i.lineJoin=Wt(N.lineJoin,"miter"),i.lineWidth=Y,i.strokeStyle=Wt(N.strokeStyle,l),i.setLineDash(Wt(N.lineDash,[])),a.usePointStyle){const z={radius:v*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:Y},G=c.xPlus(O,p/2),U=L+d;qb(i,z,G,U,a.pointStyleWidth&&p)}else{const z=L+Math.max((g-v)/2,0),G=c.leftForLtr(O,p),U=mi(N.borderRadius);i.beginPath(),Object.values(U).some(xt=>xt!==0)?eo(i,{x:G,y:z,w:p,h:v,radius:U}):i.rect(G,z,p,v),i.fill(),Y!==0&&i.stroke()}i.restore()},A=function(O,L,N){bi(i,N.text,O,L+b/2,h,{strikethrough:N.hidden,textAlign:c.textAlign(N.textAlign)})},C=this.isHorizontal(),w=this._computeTitleHeight();C?m={x:Qe(s,this.left+f,this.right-r[0]),y:this.top+f+w,line:0}:m={x:this.left+f,y:Qe(s,this.top+w+f,this.bottom-e[0].height),line:0},Kb(this.ctx,t.textDirection);const M=b+f;this.legendItems.forEach((O,L)=>{i.strokeStyle=O.fontColor,i.fillStyle=O.fontColor;const N=i.measureText(O.text).width,Y=c.textAlign(O.textAlign||(O.textAlign=a.textAlign)),z=p+d+N;let G=m.x,U=m.y;c.setWidth(this.width),C?L>0&&G+z+f>this.right&&(U=m.y+=M,m.line++,G=m.x=Qe(s,this.left+f,this.right-r[m.line])):L>0&&U+M>this.bottom&&(G=m.x=G+e[m.line].width+f,m.line++,U=m.y=Qe(s,this.top+w+f,this.bottom-e[m.line].height));const xt=c.x(G);if(_(xt,U,O),G=nP(Y,G+p+d,C?G+z:this.right,t.rtl),A(c.x(G),U,O),C)m.x+=z+f;else if(typeof O.text!="string"){const dt=h.lineHeight;m.y+=__(O,dt)+f}else m.y+=M}),Xb(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=ze(e.font),i=en(e.padding);if(!e.display)return;const s=Yi(t.rtl,this.left,this.width),a=this.ctx,l=e.position,c=r.size/2,h=i.top+c;let f,g=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),f=this.top+h,g=Qe(t.align,g,this.right-d);else{const p=this.columnSizes.reduce((v,b)=>Math.max(v,b.height),0);f=h+Qe(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const m=Qe(l,g,g+d);a.textAlign=s.textAlign(Uh(l)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=r.string,bi(a,e.text,m,f,r)}_computeTitleHeight(){const t=this.options.title,e=ze(t.font),r=en(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,i,s;if(Rr(t,this.left,this.right)&&Rr(e,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(i=s[r],Rr(t,i.left,i.left+i.width)&&Rr(e,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const e=this.options;if(!jT(t.type,e))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,s=IT(i,r);i&&!s&&me(e.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!s&&me(e.onHover,[t,r,this],this)}else r&&me(e.onClick,[t,r,this],this)}}function DT(n,t,e,r,i){const s=FT(r,n,t,e),a=NT(i,r,t.lineHeight);return{itemWidth:s,itemHeight:a}}function FT(n,t,e,r){let i=n.text;return i&&typeof i!="string"&&(i=i.reduce((s,a)=>s.length>a.length?s:a)),t+e.size/2+r.measureText(i).width}function NT(n,t,e){let r=n;return typeof t.text!="string"&&(r=__(t,e)),r}function __(n,t){const e=n.text?n.text.length:0;return t*e}function jT(n,t){return!!((n==="mousemove"||n==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(n==="click"||n==="mouseup"))}var UT={id:"legend",_element:fv,start(n,t,e){const r=n.legend=new fv({ctx:n.ctx,options:e,chart:n});tn.configure(n,r,e),tn.addBox(n,r)},stop(n){tn.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const r=n.legend;tn.configure(n,r,e),r.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 r=t.datasetIndex,i=e.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),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:r,textAlign:i,color:s,useBorderRadius:a,borderRadius:l}}=n.legend.options;return n._getSortedDatasetMetas().map(c=>{const h=c.controller.getStyle(e?0:void 0),f=en(h.borderWidth);return{text:t[c.index].label,fillStyle:h.backgroundColor,fontColor:s,hidden:!c.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:h.borderColor,pointStyle:r||h.pointStyle,rotation:h.rotation,textAlign:i||h.textAlign,borderRadius:a&&(l||h.borderRadius),datasetIndex:c.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 Xh extends Gn{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 r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const i=Ee(r.text)?r.text.length:1;this._padding=en(r.padding);const s=i*ze(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:r,bottom:i,right:s,options:a}=this,l=a.align;let c=0,h,f,g;return this.isHorizontal()?(f=Qe(l,r,s),g=e+t,h=s-r):(a.position==="left"?(f=r+t,g=Qe(l,i,e),c=_e*-.5):(f=s-t,g=Qe(l,e,i),c=_e*.5),h=i-e),{titleX:f,titleY:g,maxWidth:h,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const r=ze(e.font),s=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:c,rotation:h}=this._drawArgs(s);bi(t,e.text,0,0,r,{color:e.color,maxWidth:c,rotation:h,textAlign:Uh(e.align),textBaseline:"middle",translation:[a,l]})}}function qT(n,t){const e=new Xh({ctx:n.ctx,options:t,chart:n});tn.configure(n,e,t),tn.addBox(n,e),n.titleBlock=e}var WT={id:"title",_element:Xh,start(n,t,e){qT(n,e)},stop(n){const t=n.titleBlock;tn.removeBox(n,t),delete n.titleBlock},beforeUpdate(n,t,e){const r=n.titleBlock;tn.configure(n,r,e),r.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 Ja=new WeakMap;var HT={id:"subtitle",start(n,t,e){const r=new Xh({ctx:n.ctx,options:e,chart:n});tn.configure(n,r,e),tn.addBox(n,r),Ja.set(n,r)},stop(n){tn.removeBox(n,Ja.get(n)),Ja.delete(n)},beforeUpdate(n,t,e){const r=Ja.get(n);tn.configure(n,r,e),r.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 Fs={average(n){if(!n.length)return!1;let t,e,r=new Set,i=0,s=0;for(t=0,e=n.length;t<e;++t){const l=n[t].element;if(l&&l.hasValue()){const c=l.tooltipPosition();r.add(c.x),i+=c.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((l,c)=>l+c)/r.size,y:i/s}},nearest(n,t){if(!n.length)return!1;let e=t.x,r=t.y,i=Number.POSITIVE_INFINITY,s,a,l;for(s=0,a=n.length;s<a;++s){const c=n[s].element;if(c&&c.hasValue()){const h=c.getCenterPoint(),f=Qf(t,h);f<i&&(i=f,l=c)}}if(l){const c=l.tooltipPosition();e=c.x,r=c.y}return{x:e,y:r}}};function Qn(n,t){return t&&(Ee(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function wr(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(`
|
|
479
|
+
*/class bC{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,r,i){const s=e.listeners[i],a=e.duration;s.forEach(l=>l({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(r-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Vb.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let a=s.length-1,l=!1,c;for(;a>=0;--a)c=s[a],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(t),l=!0):(s[a]=s[s.length-1],s.pop());l&&(i.draw(),this._notify(i,r,t,"progress")),s.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),e+=s.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let r=e.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,r)),r}listen(t,e,r){this._getAnims(t).listeners[e].push(r)}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((r,i)=>Math.max(r,i._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 r=e.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Sr=new bC;const D0="transparent",_C={boolean(n,t,e){return e>.5?t:n},color(n,t,e){const r=k0(n||D0),i=r.valid&&k0(t||D0);return i&&i.valid?i.mix(r,e).hexString():t},number(n,t,e){return n+(t-n)*e}};class wC{constructor(t,e,r,i){const s=e[r];i=Us([t.to,i,s,t.from]);const a=Us([t.from,s,i]);this._active=!0,this._fn=t.fn||_C[t.type||typeof a],this._easing=Xs[t.easing]||Xs.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=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,a=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Us([t.to,e,i,t.from]),this._from=Us([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,r=this._duration,i=this._prop,s=this._from,a=this._loop,l=this._to;let c;if(this._active=s!==l&&(a||e<r),!this._active){this._target[i]=l,this._notify(!0);return}if(e<0){this._target[i]=s;return}c=e/r%2,c=a&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[i]=this._fn(s,l,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,r)=>{t.push({res:e,rej:r})})}_notify(t){const e=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][e]()}}class u_{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Jt(t))return;const e=Object.keys(Ae.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const s=t[i];if(!Jt(s))return;const a={};for(const l of e)a[l]=s[l];(Ee(s.properties)&&s.properties||[i]).forEach(l=>{(l===i||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,e){const r=e.options,i=SC(t,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&xC(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,e){const r=this._properties,i=[],s=t.$animations||(t.$animations={}),a=Object.keys(e),l=Date.now();let c;for(c=a.length-1;c>=0;--c){const h=a[c];if(h.charAt(0)==="$")continue;if(h==="options"){i.push(...this._animateOptions(t,e));continue}const f=e[h];let g=s[h];const d=r.get(h);if(g)if(d&&g.active()){g.update(d,f,l);continue}else g.cancel();if(!d||!d.duration){t[h]=f;continue}s[h]=g=new wC(d,t,h,f),i.push(g)}return i}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const r=this._createAnimations(t,e);if(r.length)return Sr.add(this._chart,r),!0}}function xC(n,t){const e=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const s=n[r[i]];s&&s.active()&&e.push(s.wait())}return Promise.all(e)}function SC(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 F0(n,t){const e=n&&n.options||{},r=e.reverse,i=e.min===void 0?t:0,s=e.max===void 0?t:0;return{start:r?s:i,end:r?i:s}}function EC(n,t,e){if(e===!1)return!1;const r=F0(n,e),i=F0(t,e);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function AC(n){let t,e,r,i;return Jt(n)?(t=n.top,e=n.right,r=n.bottom,i=n.left):t=e=r=i=n,{top:t,right:e,bottom:r,left:i,disabled:n===!1}}function c_(n,t){const e=[],r=n._getSortedDatasetMetas(t);let i,s;for(i=0,s=r.length;i<s;++i)e.push(r[i].index);return e}function N0(n,t,e,r={}){const i=n.keys,s=r.mode==="single";let a,l,c,h;if(t===null)return;let f=!1;for(a=0,l=i.length;a<l;++a){if(c=+i[a],c===e){if(f=!0,r.all)continue;break}h=n.values[c],Ce(h)&&(s||t===0||ur(t)===ur(h))&&(t+=h)}return!f&&!r.all?0:t}function kC(n,t){const{iScale:e,vScale:r}=t,i=e.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",a=Object.keys(n),l=new Array(a.length);let c,h,f;for(c=0,h=a.length;c<h;++c)f=a[c],l[c]={[i]:f,[s]:n[f]};return l}function jf(n,t){const e=n&&n.options.stacked;return e||e===void 0&&t.stack!==void 0}function MC(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}function RC(n){const{min:t,max:e,minDefined:r,maxDefined:i}=n.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?e:Number.POSITIVE_INFINITY}}function OC(n,t,e){const r=n[t]||(n[t]={});return r[e]||(r[e]={})}function j0(n,t,e,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const s=n[i.index];if(e&&s>0||!e&&s<0)return i.index}return null}function U0(n,t){const{chart:e,_cachedMeta:r}=n,i=e._stacks||(e._stacks={}),{iScale:s,vScale:a,index:l}=r,c=s.axis,h=a.axis,f=MC(s,a,r),g=t.length;let d;for(let m=0;m<g;++m){const p=t[m],{[c]:v,[h]:_}=p,b=p._stacks||(p._stacks={});d=b[h]=OC(i,f,v),d[l]=_,d._top=j0(d,a,!0,r.type),d._bottom=j0(d,a,!1,r.type);const S=d._visualValues||(d._visualValues={});S[l]=_}}function Uf(n,t){const e=n.scales;return Object.keys(e).filter(r=>e[r].axis===t).shift()}function PC(n,t){return Zr(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function CC(n,t,e){return Zr(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Ps(n,t){const e=n.controller.index,r=n.vScale&&n.vScale.axis;if(r){t=t||n._parsed;for(const i of t){const s=i._stacks;if(!s||s[r]===void 0||s[r][e]===void 0)return;delete s[r][e],s[r]._visualValues!==void 0&&s[r]._visualValues[e]!==void 0&&delete s[r]._visualValues[e]}}}const qf=n=>n==="reset"||n==="none",q0=(n,t)=>t?n:Object.assign({},n),LC=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:c_(e,!0),values:null};class Kn{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=jf(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&&Ps(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,r=this.getDataset(),i=(g,d,m,p)=>g==="x"?d:g==="r"?p:m,s=e.xAxisID=Wt(r.xAxisID,Uf(t,"x")),a=e.yAxisID=Wt(r.yAxisID,Uf(t,"y")),l=e.rAxisID=Wt(r.rAxisID,Uf(t,"r")),c=e.indexAxis,h=e.iAxisID=i(c,s,a,l),f=e.vAxisID=i(c,a,s,l);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(l),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(f)}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&&S0(this._data,this),t._stacked&&Ps(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),r=this._data;if(Jt(e)){const i=this._cachedMeta;this._data=kC(e,i)}else if(r!==e){if(r){S0(r,this);const i=this._cachedMeta;Ps(i),i._parsed=[]}e&&Object.isExtensible(e)&&yP(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,r=this.getDataset();let i=!1;this._dataCheck();const s=e._stacked;e._stacked=jf(e.vScale,e),e.stack!==r.stack&&(i=!0,Ps(e),e.stack=r.stack),this._resyncElements(t),(i||s!==e._stacked)&&(U0(this,e._parsed),e._stacked=jf(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:a}=r,l=s.axis;let c=t===0&&e===i.length?!0:r._sorted,h=t>0&&r._parsed[t-1],f,g,d;if(this._parsing===!1)r._parsed=i,r._sorted=!0,d=i;else{Ee(i[t])?d=this.parseArrayData(r,i,t,e):Jt(i[t])?d=this.parseObjectData(r,i,t,e):d=this.parsePrimitiveData(r,i,t,e);const m=()=>g[l]===null||h&&g[l]<h[l];for(f=0;f<e;++f)r._parsed[f+t]=g=d[f],c&&(m()&&(c=!1),h=g);r._sorted=c}a&&U0(this,d)}parsePrimitiveData(t,e,r,i){const{iScale:s,vScale:a}=t,l=s.axis,c=a.axis,h=s.getLabels(),f=s===a,g=new Array(i);let d,m,p;for(d=0,m=i;d<m;++d)p=d+r,g[d]={[l]:f||s.parse(h[p],p),[c]:a.parse(e[p],p)};return g}parseArrayData(t,e,r,i){const{xScale:s,yScale:a}=t,l=new Array(i);let c,h,f,g;for(c=0,h=i;c<h;++c)f=c+r,g=e[f],l[c]={x:s.parse(g[0],f),y:a.parse(g[1],f)};return l}parseObjectData(t,e,r,i){const{xScale:s,yScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=new Array(i);let f,g,d,m;for(f=0,g=i;f<g;++f)d=f+r,m=e[d],h[f]={x:s.parse(Kr(m,l),d),y:a.parse(Kr(m,c),d)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,r){const i=this.chart,s=this._cachedMeta,a=e[t.axis],l={keys:c_(i,!0),values:e._stacks[t.axis]._visualValues};return N0(l,a,s.index,{mode:r})}updateRangeFromParsed(t,e,r,i){const s=r[e.axis];let a=s===null?NaN:s;const l=i&&r._stacks[e.axis];i&&l&&(i.values=l,a=N0(i,s,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const r=this._cachedMeta,i=r._parsed,s=r._sorted&&t===r.iScale,a=i.length,l=this._getOtherScale(t),c=LC(e,r,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:g}=RC(l);let d,m;function p(){m=i[d];const v=m[l.axis];return!Ce(m[t.axis])||f>v||g<v}for(d=0;d<a&&!(!p()&&(this.updateRangeFromParsed(h,t,m,c),s));++d);if(s){for(d=a-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(h,t,m,c);break}}return h}getAllParsedValues(t){const e=this._cachedMeta._parsed,r=[];let i,s,a;for(i=0,s=e.length;i<s;++i)a=e[i][t.axis],Ce(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,r=e.iScale,i=e.vScale,s=this.getParsed(t);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=AC(Wt(this.options.clip,EC(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,r=this._cachedMeta,i=r.data||[],s=e.chartArea,a=[],l=this._drawStart||0,c=this._drawCount||i.length-l,h=this.options.drawActiveElementsOnTop;let f;for(r.dataset&&r.dataset.draw(t,s,l,c),f=l;f<l+c;++f){const g=i[f];g.hidden||(g.active&&h?a.push(g):g.draw(t,s))}for(f=0;f<a.length;++f)a[f].draw(t,s)}getStyle(t,e){const r=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,e,r){const i=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];s=a.$context||(a.$context=CC(this.getContext(),t,a)),s.parsed=this.getParsed(t),s.raw=i.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=PC(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=r,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",r){const i=e==="active",s=this._cachedDataOpts,a=t+"-"+e,l=s[a],c=this.enableOptionSharing&&io(r);if(l)return q0(l,c);const h=this.chart.config,f=h.datasetElementScopeKeys(this._type,t),g=i?[`${t}Hover`,"hover",t,""]:[t,""],d=h.getOptionScopes(this.getDataset(),f),m=Object.keys(Ae.elements[t]),p=()=>this.getContext(r,i,e),v=h.resolveNamedOptions(d,m,p,g);return v.$shared&&(v.$shared=c,s[a]=Object.freeze(q0(v,c))),v}_resolveAnimations(t,e,r){const i=this.chart,s=this._cachedDataOpts,a=`animation-${e}`,l=s[a];if(l)return l;let c;if(i.options.animation!==!1){const f=this.chart.config,g=f.datasetAnimationScopeKeys(this._type,e),d=f.getOptionScopes(this.getDataset(),g);c=f.createResolver(d,this.getContext(t,r,e))}const h=new u_(i,c&&c.animations);return c&&c._cacheable&&(s[a]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||qf(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const r=this.resolveDataElementOptions(t,e),i=this._sharedOptions,s=this.getSharedOptions(r),a=this.includeOptions(e,s)||s!==i;return this.updateSharedOptions(s,e,r),{sharedOptions:s,includeOptions:a}}updateElement(t,e,r,i){qf(i)?Object.assign(t,r):this._resolveAnimations(e,i).update(t,r)}updateSharedOptions(t,e,r){t&&!qf(e)&&this._resolveAnimations(void 0,e).update(t,r)}_setStyle(t,e,r,i){t.active=i;const s=this.getStyle(e,i);this._resolveAnimations(e,r,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,e,r){this._setStyle(t,r,"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,r=this._cachedMeta.data;for(const[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];const i=r.length,s=e.length,a=Math.min(s,i);a&&this.parse(0,a),s>i?this._insertElements(i,s-i,t):s<i&&this._removeElements(s,i-s)}_insertElements(t,e,r=!0){const i=this._cachedMeta,s=i.data,a=t+e;let l;const c=h=>{for(h.length+=e,l=h.length-1;l>=a;l--)h[l]=h[l-e]};for(c(s),l=t;l<a;++l)s[l]=new this.dataElementType;this._parsing&&c(i._parsed),this.parse(t,e),r&&this.updateElements(s,t,e,"reset")}updateElements(t,e,r,i){}_removeElements(t,e){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,e);r._stacked&&Ps(r,i)}r.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,r,i]=t;this[e](r,i)}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 r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}At(Kn,"defaults",{}),At(Kn,"datasetElementType",null),At(Kn,"dataElementType",null);function TC(n,t){if(!n._cache.$bar){const e=n.getMatchingVisibleMetas(t);let r=[];for(let i=0,s=e.length;i<s;i++)r=r.concat(e[i].controller.getAllParsedValues(n));n._cache.$bar=zb(r.sort((i,s)=>i-s))}return n._cache.$bar}function IC(n){const t=n.iScale,e=TC(t,n.type);let r=t._length,i,s,a,l;const c=()=>{a===32767||a===-32768||(io(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(i=0,s=e.length;i<s;++i)a=t.getPixelForValue(e[i]),c();for(l=void 0,i=0,s=t.ticks.length;i<s;++i)a=t.getPixelForTick(i),c();return r}function BC(n,t,e,r){const i=e.barThickness;let s,a;return Kt(i)?(s=t.min*e.categoryPercentage,a=e.barPercentage):(s=i*r,a=1),{chunk:s/r,ratio:a,start:t.pixels[n]-s/2}}function DC(n,t,e,r){const i=t.pixels,s=i[n];let a=n>0?i[n-1]:null,l=n<i.length-1?i[n+1]:null;const c=e.categoryPercentage;a===null&&(a=s-(l===null?t.end-t.start:l-s)),l===null&&(l=s+s-a);const h=s-(s-Math.min(a,l))/2*c;return{chunk:Math.abs(l-a)/2*c/r,ratio:e.barPercentage,start:h}}function FC(n,t,e,r){const i=e.parse(n[0],r),s=e.parse(n[1],r),a=Math.min(i,s),l=Math.max(i,s);let c=a,h=l;Math.abs(a)>Math.abs(l)&&(c=l,h=a),t[e.axis]=h,t._custom={barStart:c,barEnd:h,start:i,end:s,min:a,max:l}}function f_(n,t,e,r){return Ee(n)?FC(n,t,e,r):t[e.axis]=e.parse(n,r),t}function W0(n,t,e,r){const i=n.iScale,s=n.vScale,a=i.getLabels(),l=i===s,c=[];let h,f,g,d;for(h=e,f=e+r;h<f;++h)d=t[h],g={},g[i.axis]=l||i.parse(a[h],h),c.push(f_(d,g,s,h));return c}function Wf(n){return n&&n.barStart!==void 0&&n.barEnd!==void 0}function NC(n,t,e){return n!==0?ur(n):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function jC(n){let t,e,r,i,s;return n.horizontal?(t=n.base>n.x,e="left",r="right"):(t=n.base<n.y,e="bottom",r="top"),t?(i="end",s="start"):(i="start",s="end"),{start:e,end:r,reverse:t,top:i,bottom:s}}function UC(n,t,e,r){let i=t.borderSkipped;const s={};if(!i){n.borderSkipped=s;return}if(i===!0){n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:l,reverse:c,top:h,bottom:f}=jC(n);i==="middle"&&e&&(n.enableBorderRadius=!0,(e._top||0)===r?i=h:(e._bottom||0)===r?i=f:(s[H0(f,a,l,c)]=!0,i=h)),s[H0(i,a,l,c)]=!0,n.borderSkipped=s}function H0(n,t,e,r){return r?(n=qC(n,t,e),n=z0(n,e,t)):n=z0(n,t,e),n}function qC(n,t,e){return n===t?e:n===e?t:n}function z0(n,t,e){return n==="start"?t:n==="end"?e:n}function WC(n,{inflateAmount:t},e){n.inflateAmount=t==="auto"?e===1?.33:0:t}class hl extends Kn{parsePrimitiveData(t,e,r,i){return W0(t,e,r,i)}parseArrayData(t,e,r,i){return W0(t,e,r,i)}parseObjectData(t,e,r,i){const{iScale:s,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=s.axis==="x"?l:c,f=a.axis==="x"?l:c,g=[];let d,m,p,v;for(d=r,m=r+i;d<m;++d)v=e[d],p={},p[s.axis]=s.parse(Kr(v,h),d),g.push(f_(Kr(v,f),p,a,d));return g}updateRangeFromParsed(t,e,r,i){super.updateRangeFromParsed(t,e,r,i);const s=r._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:r,vScale:i}=e,s=this.getParsed(t),a=s._custom,l=Wf(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(s[i.axis]);return{label:""+r.getLabelForValue(s[r.axis]),value:l}}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,r,i){const s=i==="reset",{index:a,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),h=l.isHorizontal(),f=this._getRuler(),{sharedOptions:g,includeOptions:d}=this._getSharedOptions(e,i);for(let m=e;m<e+r;m++){const p=this.getParsed(m),v=s||Kt(p[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(m),_=this._calculateBarIndexPixels(m,f),b=(p._stacks||{})[l.axis],S={horizontal:h,base:v.base,enableBorderRadius:!b||Wf(p._custom)||a===b._top||a===b._bottom,x:h?v.head:_.center,y:h?_.center:v.head,height:h?_.size:Math.abs(v.size),width:h?Math.abs(v.size):_.size};d&&(S.options=g||this.resolveDataElementOptions(m,t[m].active?"active":i));const O=S.options||t[m].options;UC(S,O,b,a),WC(S,O,f.ratio),this.updateElement(t[m],m,S,i)}}_getStacks(t,e){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(f=>f.controller.options.grouped),s=r.options.stacked,a=[],l=this._cachedMeta.controller.getParsed(e),c=l&&l[r.axis],h=f=>{const g=f._parsed.find(m=>m[r.axis]===c),d=g&&g[f.vScale.axis];if(Kt(d)||isNaN(d))return!0};for(const f of i)if(!(e!==void 0&&h(f))&&((s===!1||a.indexOf(f.stack)===-1||s===void 0&&f.stack===void 0)&&a.push(f.stack),f.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,r){const i=this._getStacks(t,r),s=e!==void 0?i.indexOf(e):-1;return s===-1?i.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,r=e.iScale,i=[];let s,a;for(s=0,a=e.data.length;s<a;++s)i.push(r.getPixelForValue(this.getParsed(s)[r.axis],s));const l=t.barThickness;return{min:l||IC(e),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:r,index:i},options:{base:s,minBarLength:a}}=this,l=s||0,c=this.getParsed(t),h=c._custom,f=Wf(h);let g=c[e.axis],d=0,m=r?this.applyStack(e,c,r):g,p,v;m!==g&&(d=m-g,m=g),f&&(g=h.barStart,m=h.barEnd-h.barStart,g!==0&&ur(g)!==ur(h.barEnd)&&(d=0),d+=g);const _=!Kt(s)&&!f?s:d;let b=e.getPixelForValue(_);if(this.chart.getDataVisibility(t)?p=e.getPixelForValue(d+m):p=b,v=p-b,Math.abs(v)<a){v=NC(v,e,l)*a,g===l&&(b-=v/2);const S=e.getPixelForDecimal(0),O=e.getPixelForDecimal(1),w=Math.min(S,O),k=Math.max(S,O);b=Math.max(Math.min(b,k),w),p=b+v,r&&!f&&(c._stacks[e.axis]._visualValues[i]=e.getValueForPixel(p)-e.getValueForPixel(b))}if(b===e.getPixelForValue(l)){const S=ur(v)*e.getLineWidthForValue(l)/2;b+=S,v-=S}return{size:v,base:b,head:p,center:p+v/2}}_calculateBarIndexPixels(t,e){const r=e.scale,i=this.options,s=i.skipNull,a=Wt(i.maxBarThickness,1/0);let l,c;if(e.grouped){const h=s?this._getStackCount(t):e.stackCount,f=i.barThickness==="flex"?DC(t,e,i,h):BC(t,e,i,h),g=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);l=f.start+f.chunk*g+f.chunk/2,c=Math.min(a,f.chunk*f.ratio)}else l=r.getPixelForValue(this.getParsed(t)[r.axis],t),c=Math.min(a,e.min*e.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const t=this._cachedMeta,e=t.vScale,r=t.data,i=r.length;let s=0;for(;s<i;++s)this.getParsed(s)[e.axis]!==null&&!r[s].hidden&&r[s].draw(this._ctx)}}At(hl,"id","bar"),At(hl,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),At(hl,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class dl extends Kn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,r,i){const s=super.parsePrimitiveData(t,e,r,i);for(let a=0;a<s.length;a++)s[a]._custom=this.resolveDataElementOptions(a+r).radius;return s}parseArrayData(t,e,r,i){const s=super.parseArrayData(t,e,r,i);for(let a=0;a<s.length;a++){const l=e[r+a];s[a]._custom=Wt(l[2],this.resolveDataElementOptions(a+r).radius)}return s}parseObjectData(t,e,r,i){const s=super.parseObjectData(t,e,r,i);for(let a=0;a<s.length;a++){const l=e[r+a];s[a]._custom=Wt(l&&l.r&&+l.r,this.resolveDataElementOptions(a+r).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let r=t.length-1;r>=0;--r)e=Math.max(e,t[r].size(this.resolveDataElementOptions(r))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:s}=e,a=this.getParsed(t),l=i.getLabelForValue(a.x),c=s.getLabelForValue(a.y),h=a._custom;return{label:r[t]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,r,i){const s=i==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(e,i),f=a.axis,g=l.axis;for(let d=e;d<e+r;d++){const m=t[d],p=!s&&this.getParsed(d),v={},_=v[f]=s?a.getPixelForDecimal(.5):a.getPixelForValue(p[f]),b=v[g]=s?l.getBasePixel():l.getPixelForValue(p[g]);v.skip=isNaN(_)||isNaN(b),h&&(v.options=c||this.resolveDataElementOptions(d,m.active?"active":i),s&&(v.options.radius=0)),this.updateElement(m,d,v,i)}}resolveDataElementOptions(t,e){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const s=i.radius;return e!=="active"&&(i.radius=0),i.radius+=Wt(r&&r._custom,s),i}}At(dl,"id","bubble"),At(dl,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),At(dl,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function HC(n,t,e){let r=1,i=1,s=0,a=0;if(t<be){const l=n,c=l+t,h=Math.cos(l),f=Math.sin(l),g=Math.cos(c),d=Math.sin(c),m=(O,w,k)=>so(O,l,c,!0)?1:Math.max(w,w*e,k,k*e),p=(O,w,k)=>so(O,l,c,!0)?-1:Math.min(w,w*e,k,k*e),v=m(0,h,g),_=m(Be,f,d),b=p(_e,h,g),S=p(_e+Be,f,d);r=(v-b)/2,i=(_-S)/2,s=-(v+b)/2,a=-(_+S)/2}return{ratioX:r,ratioY:i,offsetX:s,offsetY:a}}class yi extends Kn{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 r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let s=c=>+r[c];if(Jt(r[t])){const{key:c="value"}=this._parsing;s=h=>+Kr(r[h],c)}let a,l;for(a=t,l=t+e;a<l;++a)i._parsed[a]=s(a)}}_getRotation(){return Gn(this.options.rotation-90)}_getCircumference(){return Gn(this.options.circumference)}_getRotationExtents(){let t=be,e=-be;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,s=i._getRotation(),a=i._getCircumference();t=Math.min(t,s),e=Math.max(e,s+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:r}=e,i=this._cachedMeta,s=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-a)/2,0),c=Math.min(nP(this.options.cutout,l),1),h=this._getRingWeight(this.index),{circumference:f,rotation:g}=this._getRotationExtents(),{ratioX:d,ratioY:m,offsetX:p,offsetY:v}=HC(g,f,c),_=(r.width-a)/d,b=(r.height-a)/m,S=Math.max(Math.min(_,b)/2,0),O=jb(this.options.radius,S),w=Math.max(O*c,0),k=(O-w)/this._getVisibleDatasetWeightTotal();this.offsetX=p*O,this.offsetY=v*O,i.total=this.calculateTotal(),this.outerRadius=O-k*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-k*h,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const r=this.options,i=this._cachedMeta,s=this._getCircumference();return e&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*s/be)}updateElements(t,e,r,i){const s=i==="reset",a=this.chart,l=a.chartArea,h=a.options.animation,f=(l.left+l.right)/2,g=(l.top+l.bottom)/2,d=s&&h.animateScale,m=d?0:this.innerRadius,p=d?0:this.outerRadius,{sharedOptions:v,includeOptions:_}=this._getSharedOptions(e,i);let b=this._getRotation(),S;for(S=0;S<e;++S)b+=this._circumference(S,s);for(S=e;S<e+r;++S){const O=this._circumference(S,s),w=t[S],k={x:f+this.offsetX,y:g+this.offsetY,startAngle:b,endAngle:b+O,circumference:O,outerRadius:p,innerRadius:m};_&&(k.options=v||this.resolveDataElementOptions(S,w.active?"active":i)),b+=O,this.updateElement(w,S,k,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let r=0,i;for(i=0;i<e.length;i++){const s=t._parsed[i];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(i)&&!e[i].hidden&&(r+=Math.abs(s))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?be*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=vo(e._parsed[t],r.options.locale);return{label:i[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const r=this.chart;let i,s,a,l,c;if(!t){for(i=0,s=r.data.datasets.length;i<s;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),t=a.data,l=a.controller;break}}if(!t)return 0;for(i=0,s=t.length;i<s;++i)c=l.resolveDataElementOptions(i),c.borderAlign!=="inner"&&(e=Math.max(e,c.borderWidth||0,c.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let r=0,i=t.length;r<i;++r){const s=this.resolveDataElementOptions(r);e=Math.max(e,s.offset||0,s.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(e+=this._getRingWeight(r));return e}_getRingWeight(t){return Math.max(Wt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}At(yi,"id","doughnut"),At(yi,"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"}),At(yi,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),At(yi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return e.labels.map((s,a)=>{const c=t.getDatasetMeta(0).controller.getStyle(a);return{text:s,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:i,lineWidth:c.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}}}});class pl extends Kn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=e,a=this.chart._animationsDisabled;let{start:l,count:c}=Gb(e,i,a);this._drawStart=l,this._drawCount=c,Yb(e)&&(l=0,c=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:h},t),this.updateElements(i,l,c,t)}updateElements(t,e,r,i){const s=i==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,i),d=a.axis,m=l.axis,{spanGaps:p,segment:v}=this.options,_=ts(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||i==="none",S=e+r,O=t.length;let w=e>0&&this.getParsed(e-1);for(let k=0;k<O;++k){const C=t[k],L=b?C:{};if(k<e||k>=S){L.skip=!0;continue}const N=this.getParsed(k),Y=Kt(N[m]),z=L[d]=a.getPixelForValue(N[d],k),G=L[m]=s||Y?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,N,c):N[m],k);L.skip=isNaN(z)||isNaN(G)||Y,L.stop=k>0&&Math.abs(N[d]-w[d])>_,v&&(L.parsed=N,L.raw=h.data[k]),g&&(L.options=f||this.resolveDataElementOptions(k,C.active?"active":i)),b||this.updateElement(C,k,L,i),w=N}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,r=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}At(pl,"id","line"),At(pl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),At(pl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Zs extends Kn{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=vo(e._parsed[t].r,r.options.locale);return{label:i[t]||"",value:s}}parseObjectData(t,e,r,i){return n_.bind(this)(t,e,r,i)}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((r,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,r=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(i/2,0),a=Math.max(r.cutoutPercentage?s/100*r.cutoutPercentage:1,0),l=(s-a)/t.getVisibleDatasetCount();this.outerRadius=s-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,e,r,i){const s=i==="reset",a=this.chart,c=a.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,g=h.yCenter,d=h.getIndexAngle(0)-.5*_e;let m=d,p;const v=360/this.countVisibleElements();for(p=0;p<e;++p)m+=this._computeAngle(p,i,v);for(p=e;p<e+r;p++){const _=t[p];let b=m,S=m+this._computeAngle(p,i,v),O=a.getDataVisibility(p)?h.getDistanceFromCenterForValue(this.getParsed(p).r):0;m=S,s&&(c.animateScale&&(O=0),c.animateRotate&&(b=S=d));const w={x:f,y:g,innerRadius:0,outerRadius:O,startAngle:b,endAngle:S,options:this.resolveDataElementOptions(p,_.active?"active":i)};this.updateElement(_,p,w,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,r){return this.chart.getDataVisibility(t)?Gn(this.resolveDataElementOptions(t,e).angle||r):0}}At(Zs,"id","polarArea"),At(Zs,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),At(Zs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return e.labels.map((s,a)=>{const c=t.getDatasetMeta(0).controller.getStyle(a);return{text:s,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:i,lineWidth:c.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class lh extends yi{}At(lh,"id","pie"),At(lh,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class gl extends Kn{getLabelAndValue(t){const e=this._cachedMeta.vScale,r=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(r[e.axis])}}parseObjectData(t,e,r,i){return n_.bind(this)(t,e,r,i)}update(t){const e=this._cachedMeta,r=e.dataset,i=e.data||[],s=e.iScale.getLabels();if(r.points=i,t!=="resize"){const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);const l={_loop:!0,_fullLoop:s.length===i.length,options:a};this.updateElement(r,void 0,l,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,r,i){const s=this._cachedMeta.rScale,a=i==="reset";for(let l=e;l<e+r;l++){const c=t[l],h=this.resolveDataElementOptions(l,c.active?"active":i),f=s.getPointPositionForValue(l,this.getParsed(l).r),g=a?s.xCenter:f.x,d=a?s.yCenter:f.y,m={x:g,y:d,angle:f.angle,skip:isNaN(g)||isNaN(d),options:h};this.updateElement(c,l,m,i)}}}At(gl,"id","radar"),At(gl,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),At(gl,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class ml extends Kn{getLabelAndValue(t){const e=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:s}=e,a=this.getParsed(t),l=i.getLabelForValue(a.x),c=s.getLabelForValue(a.y);return{label:r[t]||"",value:"("+l+", "+c+")"}}update(t){const e=this._cachedMeta,{data:r=[]}=e,i=this.chart._animationsDisabled;let{start:s,count:a}=Gb(e,r,i);if(this._drawStart=s,this._drawCount=a,Yb(e)&&(s=0,a=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:l,_dataset:c}=e;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;const h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(l,void 0,{animated:!i,options:h},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(r,s,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,r,i){const s=i==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(e,i),g=this.getSharedOptions(f),d=this.includeOptions(i,g),m=a.axis,p=l.axis,{spanGaps:v,segment:_}=this.options,b=ts(v)?v:Number.POSITIVE_INFINITY,S=this.chart._animationsDisabled||s||i==="none";let O=e>0&&this.getParsed(e-1);for(let w=e;w<e+r;++w){const k=t[w],C=this.getParsed(w),L=S?k:{},N=Kt(C[p]),Y=L[m]=a.getPixelForValue(C[m],w),z=L[p]=s||N?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,C,c):C[p],w);L.skip=isNaN(Y)||isNaN(z)||N,L.stop=w>0&&Math.abs(C[m]-O[m])>b,_&&(L.parsed=C,L.raw=h.data[w]),d&&(L.options=g||this.resolveDataElementOptions(w,k.active?"active":i)),S||this.updateElement(k,w,L,i),O=C}this.updateSharedOptions(g,i,f)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let l=0;for(let c=e.length-1;c>=0;--c)l=Math.max(l,e[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!e.length)return i;const s=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,s,a)/2}}At(ml,"id","scatter"),At(ml,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),At(ml,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var zC=Object.freeze({__proto__:null,BarController:hl,BubbleController:dl,DoughnutController:yi,LineController:pl,PieController:lh,PolarAreaController:Zs,RadarController:gl,ScatterController:ml});function fi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class nd{constructor(t){At(this,"options");this.options=t||{}}static override(t){Object.assign(nd.prototype,t)}init(){}formats(){return fi()}parse(){return fi()}format(){return fi()}add(){return fi()}diff(){return fi()}startOf(){return fi()}endOf(){return fi()}}var VC={_date:nd};function $C(n,t,e,r){const{controller:i,data:s,_sorted:a}=n,l=i._cachedMeta.iScale,c=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null;if(l&&t===l.axis&&t!=="r"&&a&&s.length){const h=l._reversePixels?gP:Pr;if(r){if(i._sharedOptions){const f=s[0],g=typeof f.getRange=="function"&&f.getRange(t);if(g){const d=h(s,t,e-g),m=h(s,t,e+g);return{lo:d.lo,hi:m.hi}}}}else{const f=h(s,t,e);if(c){const{vScale:g}=i._cachedMeta,{_parsed:d}=n,m=d.slice(0,f.lo+1).reverse().findIndex(v=>!Kt(v[g.axis]));f.lo-=Math.max(0,m);const p=d.slice(f.hi).findIndex(v=>!Kt(v[g.axis]));f.hi+=Math.max(0,p)}return f}}return{lo:0,hi:s.length-1}}function Wl(n,t,e,r,i){const s=n.getSortedVisibleDatasetMetas(),a=e[t];for(let l=0,c=s.length;l<c;++l){const{index:h,data:f}=s[l],{lo:g,hi:d}=$C(s[l],t,a,i);for(let m=g;m<=d;++m){const p=f[m];p.skip||r(p,h,m)}}}function GC(n){const t=n.indexOf("x")!==-1,e=n.indexOf("y")!==-1;return function(r,i){const s=t?Math.abs(r.x-i.x):0,a=e?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}function Hf(n,t,e,r,i){const s=[];return!i&&!n.isPointInArea(t)||Wl(n,e,t,function(l,c,h){!i&&!Cr(l,n.chartArea,0)||l.inRange(t.x,t.y,r)&&s.push({element:l,datasetIndex:c,index:h})},!0),s}function YC(n,t,e,r){let i=[];function s(a,l,c){const{startAngle:h,endAngle:f}=a.getProps(["startAngle","endAngle"],r),{angle:g}=Wb(a,{x:t.x,y:t.y});so(g,h,f)&&i.push({element:a,datasetIndex:l,index:c})}return Wl(n,e,t,s),i}function KC(n,t,e,r,i,s){let a=[];const l=GC(e);let c=Number.POSITIVE_INFINITY;function h(f,g,d){const m=f.inRange(t.x,t.y,i);if(r&&!m)return;const p=f.getCenterPoint(i);if(!(!!s||n.isPointInArea(p))&&!m)return;const _=l(t,p);_<c?(a=[{element:f,datasetIndex:g,index:d}],c=_):_===c&&a.push({element:f,datasetIndex:g,index:d})}return Wl(n,e,t,h),a}function zf(n,t,e,r,i,s){return!s&&!n.isPointInArea(t)?[]:e==="r"&&!r?YC(n,t,e,i):KC(n,t,e,r,i,s)}function V0(n,t,e,r,i){const s=[],a=e==="x"?"inXRange":"inYRange";let l=!1;return Wl(n,e,t,(c,h,f)=>{c[a]&&c[a](t[e],i)&&(s.push({element:c,datasetIndex:h,index:f}),l=l||c.inRange(t.x,t.y,i))}),r&&!l?[]:s}var XC={modes:{index(n,t,e,r){const i=di(t,n),s=e.axis||"x",a=e.includeInvisible||!1,l=e.intersect?Hf(n,i,s,r,a):zf(n,i,s,!1,r,a),c=[];return l.length?(n.getSortedVisibleDatasetMetas().forEach(h=>{const f=l[0].index,g=h.data[f];g&&!g.skip&&c.push({element:g,datasetIndex:h.index,index:f})}),c):[]},dataset(n,t,e,r){const i=di(t,n),s=e.axis||"xy",a=e.includeInvisible||!1;let l=e.intersect?Hf(n,i,s,r,a):zf(n,i,s,!1,r,a);if(l.length>0){const c=l[0].datasetIndex,h=n.getDatasetMeta(c).data;l=[];for(let f=0;f<h.length;++f)l.push({element:h[f],datasetIndex:c,index:f})}return l},point(n,t,e,r){const i=di(t,n),s=e.axis||"xy",a=e.includeInvisible||!1;return Hf(n,i,s,r,a)},nearest(n,t,e,r){const i=di(t,n),s=e.axis||"xy",a=e.includeInvisible||!1;return zf(n,i,s,e.intersect,r,a)},x(n,t,e,r){const i=di(t,n);return V0(n,i,"x",e.intersect,r)},y(n,t,e,r){const i=di(t,n);return V0(n,i,"y",e.intersect,r)}}};const h_=["left","top","right","bottom"];function Cs(n,t){return n.filter(e=>e.pos===t)}function $0(n,t){return n.filter(e=>h_.indexOf(e.pos)===-1&&e.box.axis===t)}function Ls(n,t){return n.sort((e,r)=>{const i=t?r:e,s=t?e:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function JC(n){const t=[];let e,r,i,s,a,l;for(e=0,r=(n||[]).length;e<r;++e)i=n[e],{position:s,options:{stack:a,stackWeight:l=1}}=i,t.push({index:e,box:i,pos:s,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&s+a,stackWeight:l});return t}function ZC(n){const t={};for(const e of n){const{stack:r,pos:i,stackWeight:s}=e;if(!r||!h_.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return t}function QC(n,t){const e=ZC(n),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let s,a,l;for(s=0,a=n.length;s<a;++s){l=n[s];const{fullSize:c}=l.box,h=e[l.stack],f=h&&l.stackWeight/h.weight;l.horizontal?(l.width=f?f*r:c&&t.availableWidth,l.height=i):(l.width=r,l.height=f?f*i:c&&t.availableHeight)}return e}function tL(n){const t=JC(n),e=Ls(t.filter(h=>h.box.fullSize),!0),r=Ls(Cs(t,"left"),!0),i=Ls(Cs(t,"right")),s=Ls(Cs(t,"top"),!0),a=Ls(Cs(t,"bottom")),l=$0(t,"x"),c=$0(t,"y");return{fullSize:e,leftAndTop:r.concat(s),rightAndBottom:i.concat(c).concat(a).concat(l),chartArea:Cs(t,"chartArea"),vertical:r.concat(i).concat(c),horizontal:s.concat(a).concat(l)}}function G0(n,t,e,r){return Math.max(n[e],t[e])+Math.max(n[r],t[r])}function d_(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 eL(n,t,e,r){const{pos:i,box:s}=e,a=n.maxPadding;if(!Jt(i)){e.size&&(n[i]-=e.size);const g=r[e.stack]||{size:0,count:1};g.size=Math.max(g.size,e.horizontal?s.height:s.width),e.size=g.size/g.count,n[i]+=e.size}s.getPadding&&d_(a,s.getPadding());const l=Math.max(0,t.outerWidth-G0(a,n,"left","right")),c=Math.max(0,t.outerHeight-G0(a,n,"top","bottom")),h=l!==n.w,f=c!==n.h;return n.w=l,n.h=c,e.horizontal?{same:h,other:f}:{same:f,other:h}}function nL(n){const t=n.maxPadding;function e(r){const i=Math.max(t[r]-n[r],0);return n[r]+=i,i}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function rL(n,t){const e=t.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{s[a]=Math.max(t[a],e[a])}),s}return r(n?["left","right"]:["top","bottom"])}function qs(n,t,e,r){const i=[];let s,a,l,c,h,f;for(s=0,a=n.length,h=0;s<a;++s){l=n[s],c=l.box,c.update(l.width||t.w,l.height||t.h,rL(l.horizontal,t));const{same:g,other:d}=eL(t,e,l,r);h|=g&&i.length,f=f||d,c.fullSize||i.push(l)}return h&&qs(i,t,e,r)||f}function Ja(n,t,e,r,i){n.top=e,n.left=t,n.right=t+r,n.bottom=e+i,n.width=r,n.height=i}function Y0(n,t,e,r){const i=e.padding;let{x:s,y:a}=t;for(const l of n){const c=l.box,h=r[l.stack]||{placed:0,weight:1},f=l.stackWeight/h.weight||1;if(l.horizontal){const g=t.w*f,d=h.size||c.height;io(h.start)&&(a=h.start),c.fullSize?Ja(c,i.left,a,e.outerWidth-i.right-i.left,d):Ja(c,t.left+h.placed,a,g,d),h.start=a,h.placed+=g,a=c.bottom}else{const g=t.h*f,d=h.size||c.width;io(h.start)&&(s=h.start),c.fullSize?Ja(c,s,i.top,d,e.outerHeight-i.bottom-i.top):Ja(c,s,t.top+h.placed,d,g),h.start=s,h.placed+=g,s=c.right}}t.x=s,t.y=a}var tn={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,r){if(!n)return;const i=en(n.options.layout.padding),s=Math.max(t-i.width,0),a=Math.max(e-i.height,0),l=tL(n.boxes),c=l.vertical,h=l.horizontal;le(n.boxes,v=>{typeof v.beforeLayout=="function"&&v.beforeLayout()});const f=c.reduce((v,_)=>_.box.options&&_.box.options.display===!1?v:v+1,0)||1,g=Object.freeze({outerWidth:t,outerHeight:e,padding:i,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/f,hBoxMaxHeight:a/2}),d=Object.assign({},i);d_(d,en(r));const m=Object.assign({maxPadding:d,w:s,h:a,x:i.left,y:i.top},i),p=QC(c.concat(h),g);qs(l.fullSize,m,g,p),qs(c,m,g,p),qs(h,m,g,p)&&qs(c,m,g,p),nL(m),Y0(l.leftAndTop,m,g,p),m.x+=m.w,m.y+=m.h,Y0(l.rightAndBottom,m,g,p),n.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},le(l.chartArea,v=>{const _=v.box;Object.assign(_,n.chartArea),_.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class p_{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,r){}removeEventListener(t,e,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,r,i){return e=Math.max(0,e||t.width),r=r||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):r)}}isAttached(t){return!0}updateConfig(t){}}class iL extends p_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const yl="$chartjs",sL={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},K0=n=>n===null||n==="";function oL(n,t){const e=n.style,r=n.getAttribute("height"),i=n.getAttribute("width");if(n[yl]={initial:{height:r,width:i,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",K0(i)){const s=L0(n,"width");s!==void 0&&(n.width=s)}if(K0(r))if(n.style.height==="")n.height=n.width/(t||2);else{const s=L0(n,"height");s!==void 0&&(n.height=s)}return n}const g_=lC?{passive:!0}:!1;function aL(n,t,e){n&&n.addEventListener(t,e,g_)}function lL(n,t,e){n&&n.canvas&&n.canvas.removeEventListener(t,e,g_)}function uL(n,t){const e=sL[n.type]||n.type,{x:r,y:i}=di(n,t);return{type:e,chart:t,native:n,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Ml(n,t){for(const e of n)if(e===t||e.contains(t))return!0}function cL(n,t,e){const r=n.canvas,i=new MutationObserver(s=>{let a=!1;for(const l of s)a=a||Ml(l.addedNodes,r),a=a&&!Ml(l.removedNodes,r);a&&e()});return i.observe(document,{childList:!0,subtree:!0}),i}function fL(n,t,e){const r=n.canvas,i=new MutationObserver(s=>{let a=!1;for(const l of s)a=a||Ml(l.removedNodes,r),a=a&&!Ml(l.addedNodes,r);a&&e()});return i.observe(document,{childList:!0,subtree:!0}),i}const ao=new Map;let X0=0;function m_(){const n=window.devicePixelRatio;n!==X0&&(X0=n,ao.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function hL(n,t){ao.size||window.addEventListener("resize",m_),ao.set(n,t)}function dL(n){ao.delete(n),ao.size||window.removeEventListener("resize",m_)}function pL(n,t,e){const r=n.canvas,i=r&&ed(r);if(!i)return;const s=$b((l,c)=>{const h=i.clientWidth;e(l,c),h<i.clientWidth&&e()},window),a=new ResizeObserver(l=>{const c=l[0],h=c.contentRect.width,f=c.contentRect.height;h===0&&f===0||s(h,f)});return a.observe(i),hL(n,s),a}function Vf(n,t,e){e&&e.disconnect(),t==="resize"&&dL(n)}function gL(n,t,e){const r=n.canvas,i=$b(s=>{n.ctx!==null&&e(uL(s,n))},n);return aL(r,t,i),i}class mL extends p_{acquireContext(t,e){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(oL(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e[yl])return!1;const r=e[yl].initial;["height","width"].forEach(s=>{const a=r[s];Kt(a)?e.removeAttribute(s):e.setAttribute(s,a)});const i=r.style||{};return Object.keys(i).forEach(s=>{e.style[s]=i[s]}),e.width=e.width,delete e[yl],!0}addEventListener(t,e,r){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),a={attach:cL,detach:fL,resize:pL}[e]||gL;i[e]=a(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),i=r[e];if(!i)return;({attach:Vf,detach:Vf,resize:Vf}[e]||lL)(t,e,i),r[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,i){return aC(t,e,r,i)}isAttached(t){const e=t&&ed(t);return!!(e&&e.isConnected)}}function yL(n){return!td()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?iL:mL}class Xn{constructor(){At(this,"x");At(this,"y");At(this,"active",!1);At(this,"options");At(this,"$animations")}tooltipPosition(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}hasValue(){return ts(this.x)&&ts(this.y)}getProps(t,e){const r=this.$animations;if(!e||!r)return this;const i={};return t.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}}At(Xn,"defaults",{}),At(Xn,"defaultRoutes");function vL(n,t){const e=n.options.ticks,r=bL(n),i=Math.min(e.maxTicksLimit||r,r),s=e.major.enabled?wL(t):[],a=s.length,l=s[0],c=s[a-1],h=[];if(a>i)return xL(t,h,s,a/i),h;const f=_L(s,t,i);if(a>0){let g,d;const m=a>1?Math.round((c-l)/(a-1)):null;for(Za(t,h,f,Kt(m)?0:l-m,l),g=0,d=a-1;g<d;g++)Za(t,h,f,s[g],s[g+1]);return Za(t,h,f,c,Kt(m)?t.length:c+m),h}return Za(t,h,f),h}function bL(n){const t=n.options.offset,e=n._tickSize(),r=n._length/e+(t?0:1),i=n._maxLength/e;return Math.floor(Math.min(r,i))}function _L(n,t,e){const r=SL(n),i=t.length/e;if(!r)return Math.max(i,1);const s=cP(r);for(let a=0,l=s.length-1;a<l;a++){const c=s[a];if(c>i)return c}return Math.max(i,1)}function wL(n){const t=[];let e,r;for(e=0,r=n.length;e<r;e++)n[e].major&&t.push(e);return t}function xL(n,t,e,r){let i=0,s=e[0],a;for(r=Math.ceil(r),a=0;a<n.length;a++)a===s&&(t.push(n[a]),i++,s=e[i*r])}function Za(n,t,e,r,i){const s=Wt(r,0),a=Math.min(Wt(i,n.length),n.length);let l=0,c,h,f;for(e=Math.ceil(e),i&&(c=i-r,e=c/Math.floor(c/e)),f=s;f<0;)l++,f=Math.round(s+l*e);for(h=Math.max(s,0);h<a;h++)h===f&&(t.push(n[h]),l++,f=Math.round(s+l*e))}function SL(n){const t=n.length;let e,r;if(t<2)return!1;for(r=n[0],e=1;e<t;++e)if(n[e]-n[e-1]!==r)return!1;return r}const EL=n=>n==="left"?"right":n==="right"?"left":n,J0=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e,Z0=(n,t)=>Math.min(t||n,n);function Q0(n,t){const e=[],r=n.length/t,i=n.length;let s=0;for(;s<i;s+=r)e.push(n[Math.floor(s)]);return e}function AL(n,t,e){const r=n.ticks.length,i=Math.min(t,r-1),s=n._startPixel,a=n._endPixel,l=1e-6;let c=n.getPixelForTick(i),h;if(!(e&&(r===1?h=Math.max(c-s,a-c):t===0?h=(n.getPixelForTick(1)-c)/2:h=(c-n.getPixelForTick(i-1))/2,c+=i<t?h:-h,c<s-l||c>a+l)))return c}function kL(n,t){le(n,e=>{const r=e.gc,i=r.length/2;let s;if(i>t){for(s=0;s<i;++s)delete e.data[r[s]];r.splice(0,i)}})}function Ts(n){return n.drawTicks?n.tickLength:0}function tv(n,t){if(!n.display)return 0;const e=He(n.font,t),r=en(n.padding);return(Ee(n.text)?n.text.length:1)*e.lineHeight+r.height}function ML(n,t){return Zr(n,{scale:t,type:"scale"})}function RL(n,t,e){return Zr(n,{tick:e,index:t,type:"tick"})}function OL(n,t,e){let r=Yh(n);return(e&&t!=="right"||!e&&t==="right")&&(r=EL(r)),r}function PL(n,t,e,r){const{top:i,left:s,bottom:a,right:l,chart:c}=n,{chartArea:h,scales:f}=c;let g=0,d,m,p;const v=a-i,_=l-s;if(n.isHorizontal()){if(m=Qe(r,s,l),Jt(e)){const b=Object.keys(e)[0],S=e[b];p=f[b].getPixelForValue(S)+v-t}else e==="center"?p=(h.bottom+h.top)/2+v-t:p=J0(n,e,t);d=l-s}else{if(Jt(e)){const b=Object.keys(e)[0],S=e[b];m=f[b].getPixelForValue(S)-_+t}else e==="center"?m=(h.left+h.right)/2-_+t:m=J0(n,e,t);p=Qe(r,a,i),g=e==="left"?-Be:Be}return{titleX:m,titleY:p,maxWidth:d,rotation:g}}class Ei 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:r,_suggestedMax:i}=this;return t=En(t,Number.POSITIVE_INFINITY),e=En(e,Number.NEGATIVE_INFINITY),r=En(r,Number.POSITIVE_INFINITY),i=En(i,Number.NEGATIVE_INFINITY),{min:En(t,r),max:En(e,i),minDefined:Ce(t),maxDefined:Ce(e)}}getMinMax(t){let{min:e,max:r,minDefined:i,maxDefined:s}=this.getUserBounds(),a;if(i&&s)return{min:e,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,h=l.length;c<h;++c)a=l[c].controller.getMinMax(this,t),i||(e=Math.min(e,a.min)),s||(r=Math.max(r,a.max));return e=s&&e>r?r:e,r=i&&e>r?e:r,{min:En(e,En(r,e)),max:En(r,En(e,r))}}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(){me(this.options.beforeUpdate,[this])}update(t,e,r){const{beginAtZero:i,grace:s,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=jP(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?Q0(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=vL(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,r;this.isHorizontal()?(e=this.left,r=this.right):(e=this.top,r=this.bottom,t=!t),this._startPixel=e,this._endPixel=r,this._reversePixels=t,this._length=r-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){me(this.options.afterUpdate,[this])}beforeSetDimensions(){me(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(){me(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),me(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){me(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let r,i,s;for(r=0,i=t.length;r<i;r++)s=t[r],s.label=me(e.callback,[s.value,r,t],this)}afterTickToLabelConversion(){me(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){me(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,r=Z0(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,s=e.maxRotation;let a=i,l,c,h;if(!this._isVisible()||!e.display||i>=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),g=f.widest.width,d=f.highest.height,m=$e(this.chart.width-g,0,this.maxWidth);l=t.offset?this.maxWidth/r:m/(r-1),g+6>l&&(l=m/(r-(t.offset?.5:1)),c=this.maxHeight-Ts(t.grid)-e.padding-tv(t.title,this.chart.options.font),h=Math.sqrt(g*g+d*d),a=$h(Math.min(Math.asin($e((f.highest.height+6)/l,-1,1)),Math.asin($e(c/h,-1,1))-Math.asin($e(d/h,-1,1)))),a=Math.max(i,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){me(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){me(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:r,title:i,grid:s}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const c=tv(i,e.options.font);if(l?(t.width=this.maxWidth,t.height=Ts(s)+c):(t.height=this.maxHeight,t.width=Ts(s)+c),r.display&&this.ticks.length){const{first:h,last:f,widest:g,highest:d}=this._getLabelSizes(),m=r.padding*2,p=Gn(this.labelRotation),v=Math.cos(p),_=Math.sin(p);if(l){const b=r.mirror?0:_*g.width+v*d.height;t.height=Math.min(this.maxHeight,t.height+b+m)}else{const b=r.mirror?0:v*g.width+_*d.height;t.width=Math.min(this.maxWidth,t.width+b+m)}this._calculatePadding(h,f,_,v)}}this._handleMargins(),l?(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,r,i){const{ticks:{align:s,padding:a},position:l}=this.options,c=this.labelRotation!==0,h=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,g=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,m=0;c?h?(d=i*t.width,m=r*e.height):(d=r*t.height,m=i*e.width):s==="start"?m=e.width:s==="end"?d=t.width:s!=="inner"&&(d=t.width/2,m=e.width/2),this.paddingLeft=Math.max((d-f+a)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-g+a)*this.width/(this.width-g),0)}else{let f=e.height/2,g=t.height/2;s==="start"?(f=0,g=t.height):s==="end"&&(f=e.height,g=0),this.paddingTop=f+a,this.paddingBottom=g+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(){me(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,r;for(e=0,r=t.length;e<r;e++)Kt(t[e].label)&&(t.splice(e,1),r--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let r=this.ticks;e<r.length&&(r=Q0(r,e)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,r){const{ctx:i,_longestTextCache:s}=this,a=[],l=[],c=Math.floor(e/Z0(e,r));let h=0,f=0,g,d,m,p,v,_,b,S,O,w,k;for(g=0;g<e;g+=c){if(p=t[g].label,v=this._resolveTickFontOptions(g),i.font=_=v.string,b=s[_]=s[_]||{data:{},gc:[]},S=v.lineHeight,O=w=0,!Kt(p)&&!Ee(p))O=Al(i,b.data,b.gc,O,p),w=S;else if(Ee(p))for(d=0,m=p.length;d<m;++d)k=p[d],!Kt(k)&&!Ee(k)&&(O=Al(i,b.data,b.gc,O,k),w+=S);a.push(O),l.push(w),h=Math.max(O,h),f=Math.max(w,f)}kL(s,e);const C=a.indexOf(h),L=l.indexOf(f),N=Y=>({width:a[Y]||0,height:l[Y]||0});return{first:N(0),last:N(e-1),widest:N(C),highest:N(L),widths:a,heights:l}}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 pP(this._alignToPixels?ci(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 r=e[t];return r.$context||(r.$context=RL(this.getContext(),t,r))}return this.$context||(this.$context=ML(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=Gn(this.labelRotation),r=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),s=this._getLabelSizes(),a=t.autoSkipPadding||0,l=s?s.widest.width+a:0,c=s?s.highest.height+a:0;return this.isHorizontal()?c*r>l*i?l/r:c/i:c*i<l*r?c/r:l/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,r=this.chart,i=this.options,{grid:s,position:a,border:l}=i,c=s.offset,h=this.isHorizontal(),g=this.ticks.length+(c?1:0),d=Ts(s),m=[],p=l.setContext(this.getContext()),v=p.display?p.width:0,_=v/2,b=function(at){return ci(r,at,v)};let S,O,w,k,C,L,N,Y,z,G,U,xt;if(a==="top")S=b(this.bottom),L=this.bottom-d,Y=S-_,G=b(t.top)+_,xt=t.bottom;else if(a==="bottom")S=b(this.top),G=t.top,xt=b(t.bottom)-_,L=S+_,Y=this.top+d;else if(a==="left")S=b(this.right),C=this.right-d,N=S-_,z=b(t.left)+_,U=t.right;else if(a==="right")S=b(this.left),z=t.left,U=b(t.right)-_,C=S+_,N=this.left+d;else if(e==="x"){if(a==="center")S=b((t.top+t.bottom)/2+.5);else if(Jt(a)){const at=Object.keys(a)[0],_t=a[at];S=b(this.chart.scales[at].getPixelForValue(_t))}G=t.top,xt=t.bottom,L=S+_,Y=L+d}else if(e==="y"){if(a==="center")S=b((t.left+t.right)/2);else if(Jt(a)){const at=Object.keys(a)[0],_t=a[at];S=b(this.chart.scales[at].getPixelForValue(_t))}C=S-_,N=C-d,z=t.left,U=t.right}const dt=Wt(i.ticks.maxTicksLimit,g),st=Math.max(1,Math.ceil(g/dt));for(O=0;O<g;O+=st){const at=this.getContext(O),_t=s.setContext(at),bt=l.setContext(at),Et=_t.lineWidth,kt=_t.color,Ct=bt.dash||[],Lt=bt.dashOffset,Q=_t.tickWidth,et=_t.tickColor,ot=_t.tickBorderDash||[],V=_t.tickBorderDashOffset;w=AL(this,O,c),w!==void 0&&(k=ci(r,w,Et),h?C=N=z=U=k:L=Y=G=xt=k,m.push({tx1:C,ty1:L,tx2:N,ty2:Y,x1:z,y1:G,x2:U,y2:xt,width:Et,color:kt,borderDash:Ct,borderDashOffset:Lt,tickWidth:Q,tickColor:et,tickBorderDash:ot,tickBorderDashOffset:V}))}return this._ticksLength=g,this._borderValue=S,m}_computeLabelItems(t){const e=this.axis,r=this.options,{position:i,ticks:s}=r,a=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:h,padding:f,mirror:g}=s,d=Ts(r.grid),m=d+f,p=g?-f:m,v=-Gn(this.labelRotation),_=[];let b,S,O,w,k,C,L,N,Y,z,G,U,xt="middle";if(i==="top")C=this.bottom-p,L=this._getXAxisLabelAlignment();else if(i==="bottom")C=this.top+p,L=this._getXAxisLabelAlignment();else if(i==="left"){const st=this._getYAxisLabelAlignment(d);L=st.textAlign,k=st.x}else if(i==="right"){const st=this._getYAxisLabelAlignment(d);L=st.textAlign,k=st.x}else if(e==="x"){if(i==="center")C=(t.top+t.bottom)/2+m;else if(Jt(i)){const st=Object.keys(i)[0],at=i[st];C=this.chart.scales[st].getPixelForValue(at)+m}L=this._getXAxisLabelAlignment()}else if(e==="y"){if(i==="center")k=(t.left+t.right)/2-m;else if(Jt(i)){const st=Object.keys(i)[0],at=i[st];k=this.chart.scales[st].getPixelForValue(at)}L=this._getYAxisLabelAlignment(d).textAlign}e==="y"&&(c==="start"?xt="top":c==="end"&&(xt="bottom"));const dt=this._getLabelSizes();for(b=0,S=l.length;b<S;++b){O=l[b],w=O.label;const st=s.setContext(this.getContext(b));N=this.getPixelForTick(b)+s.labelOffset,Y=this._resolveTickFontOptions(b),z=Y.lineHeight,G=Ee(w)?w.length:1;const at=G/2,_t=st.color,bt=st.textStrokeColor,Et=st.textStrokeWidth;let kt=L;a?(k=N,L==="inner"&&(b===S-1?kt=this.options.reverse?"left":"right":b===0?kt=this.options.reverse?"right":"left":kt="center"),i==="top"?h==="near"||v!==0?U=-G*z+z/2:h==="center"?U=-dt.highest.height/2-at*z+z:U=-dt.highest.height+z/2:h==="near"||v!==0?U=z/2:h==="center"?U=dt.highest.height/2-at*z:U=dt.highest.height-G*z,g&&(U*=-1),v!==0&&!st.showLabelBackdrop&&(k+=z/2*Math.sin(v))):(C=N,U=(1-G)*z/2);let Ct;if(st.showLabelBackdrop){const Lt=en(st.backdropPadding),Q=dt.heights[b],et=dt.widths[b];let ot=U-Lt.top,V=0-Lt.left;switch(xt){case"middle":ot-=Q/2;break;case"bottom":ot-=Q;break}switch(L){case"center":V-=et/2;break;case"right":V-=et;break;case"inner":b===S-1?V-=et:b>0&&(V-=et/2);break}Ct={left:V,top:ot,width:et+Lt.width,height:Q+Lt.height,color:st.backdropColor}}_.push({label:w,font:Y,textOffset:U,options:{rotation:v,color:_t,strokeColor:bt,strokeWidth:Et,textAlign:kt,textBaseline:xt,translation:[k,C],backdrop:Ct}})}return _}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Gn(this.labelRotation))return t==="top"?"left":"right";let i="center";return e.align==="start"?i="left":e.align==="end"?i="right":e.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,a=this._getLabelSizes(),l=t+s,c=a.widest.width;let h,f;return e==="left"?i?(f=this.right+s,r==="near"?h="left":r==="center"?(h="center",f+=c/2):(h="right",f+=c)):(f=this.right-l,r==="near"?h="right":r==="center"?(h="center",f-=c/2):(h="left",f=this.left)):e==="right"?i?(f=this.left+s,r==="near"?h="right":r==="center"?(h="center",f-=c/2):(h="left",f-=c)):(f=this.left+l,r==="near"?h="left":r==="center"?(h="center",f+=c/2):(h="right",f=this.right)):h="right",{textAlign:h,x:f}}_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:r,top:i,width:s,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(r,i,s,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex(s=>s.value===t);return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,a;const l=(c,h,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(h.x,h.y),r.stroke(),r.restore())};if(e.display)for(s=0,a=i.length;s<a;++s){const c=i[s];e.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),e.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:r,grid:i}}=this,s=r.setContext(this.getContext()),a=r.display?s.width:0;if(!a)return;const l=i.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let h,f,g,d;this.isHorizontal()?(h=ci(t,this.left,a)-a/2,f=ci(t,this.right,l)+l/2,g=d=c):(g=ci(t,this.top,a)-a/2,d=ci(t,this.bottom,l)+l/2,h=f=c),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(h,g),e.lineTo(f,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&jl(r,i);const s=this.getLabelItems(t);for(const a of s){const l=a.options,c=a.font,h=a.label,f=a.textOffset;xi(r,h,0,f,c,l)}i&&Ul(r)}drawTitle(){const{ctx:t,options:{position:e,title:r,reverse:i}}=this;if(!r.display)return;const s=He(r.font),a=en(r.padding),l=r.align;let c=s.lineHeight/2;e==="bottom"||e==="center"||Jt(e)?(c+=a.bottom,Ee(r.text)&&(c+=s.lineHeight*(r.text.length-1))):c+=a.top;const{titleX:h,titleY:f,maxWidth:g,rotation:d}=PL(this,c,e,l);xi(t,r.text,0,0,s,{color:r.color,maxWidth:g,rotation:d,textAlign:OL(l,e,i),textBaseline:"middle",translation:[h,f]})}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,r=Wt(t.grid&&t.grid.z,-1),i=Wt(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ei.prototype.draw?[{z:e,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,a;for(s=0,a=e.length;s<a;++s){const l=e[s];l[r]===this.id&&(!t||l.type===t)&&i.push(l)}return i}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return He(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Qa{constructor(t,e,r){this.type=t,this.scope=e,this.override=r,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 r;TL(e)&&(r=this.register(e));const i=this.items,s=t.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in i||(i[s]=t,CL(t,a,r),this.override&&Ae.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,r=t.id,i=this.scope;r in e&&delete e[r],i&&r in Ae[i]&&(delete Ae[i][r],this.override&&delete wi[r])}}function CL(n,t,e){const r=ro(Object.create(null),[e?Ae.get(e):{},Ae.get(t),n.defaults]);Ae.set(t,r),n.defaultRoutes&&LL(t,n.defaultRoutes),n.descriptors&&Ae.describe(t,n.descriptors)}function LL(n,t){Object.keys(t).forEach(e=>{const r=e.split("."),i=r.pop(),s=[n].concat(r).join("."),a=t[e].split("."),l=a.pop(),c=a.join(".");Ae.route(s,i,c,l)})}function TL(n){return"id"in n&&"defaults"in n}class IL{constructor(){this.controllers=new Qa(Kn,"datasets",!0),this.elements=new Qa(Xn,"elements"),this.plugins=new Qa(Object,"plugins"),this.scales=new Qa(Ei,"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,r){[...e].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(t,s,i):le(i,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,e,r){const i=Vh(t);me(r["before"+i],[],r),e[t](r),me(r["after"+i],[],r)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const r=this._typedRegistries[e];if(r.isForType(t))return r}return this.plugins}_get(t,e,r){const i=e.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var rr=new IL;class BL{constructor(){this._init=[]}notify(t,e,r,i){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(s,t,e,r);return e==="afterDestroy"&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,r,i){i=i||{};for(const s of t){const a=s.plugin,l=a[r],c=[e,i,s.options];if(me(l,c,a)===!1&&i.cancelable)return!1}return!0}invalidate(){Kt(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 r=t&&t.config,i=Wt(r.options&&r.options.plugins,{}),s=DL(r);return i===!1&&!e?[]:NL(t,s,i,e)}_notifyStateChanges(t){const e=this._oldCache||[],r=this._cache,i=(s,a)=>s.filter(l=>!a.some(c=>l.plugin.id===c.plugin.id));this._notify(i(e,r),t,"stop"),this._notify(i(r,e),t,"start")}}function DL(n){const t={},e=[],r=Object.keys(rr.plugins.items);for(let s=0;s<r.length;s++)e.push(rr.getPlugin(r[s]));const i=n.plugins||[];for(let s=0;s<i.length;s++){const a=i[s];e.indexOf(a)===-1&&(e.push(a),t[a.id]=!0)}return{plugins:e,localIds:t}}function FL(n,t){return!t&&n===!1?null:n===!0?{}:n}function NL(n,{plugins:t,localIds:e},r,i){const s=[],a=n.getContext();for(const l of t){const c=l.id,h=FL(r[c],i);h!==null&&s.push({plugin:l,options:jL(n.config,{plugin:l,local:e[c]},h,a)})}return s}function jL(n,{plugin:t,local:e},r,i){const s=n.pluginScopeKeys(t),a=n.getOptionScopes(r,s);return e&&t.defaults&&a.push(t.defaults),n.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function uh(n,t){const e=Ae.datasets[n]||{};return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function UL(n,t){let e=n;return n==="_index_"?e=t:n==="_value_"&&(e=t==="x"?"y":"x"),e}function qL(n,t){return n===t?"_index_":"_value_"}function ev(n){if(n==="x"||n==="y"||n==="r")return n}function WL(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function ch(n,...t){if(ev(n))return n;for(const e of t){const r=e.axis||WL(e.position)||n.length>1&&ev(n[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function nv(n,t,e){if(e[t+"AxisID"]===n)return{axis:t}}function HL(n,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(r=>r.xAxisID===n||r.yAxisID===n);if(e.length)return nv(n,"x",e[0])||nv(n,"y",e[0])}return{}}function zL(n,t){const e=wi[n.type]||{scales:{}},r=t.scales||{},i=uh(n.type,t),s=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Jt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=ch(a,l,HL(a,n),Ae.scales[l.type]),h=qL(c,i),f=e.scales||{};s[a]=Ys(Object.create(null),[{axis:c},l,f[c],f[h]])}),n.data.datasets.forEach(a=>{const l=a.type||n.type,c=a.indexAxis||uh(l,t),f=(wi[l]||{}).scales||{};Object.keys(f).forEach(g=>{const d=UL(g,c),m=a[d+"AxisID"]||d;s[m]=s[m]||Object.create(null),Ys(s[m],[{axis:d},r[m],f[g]])})}),Object.keys(s).forEach(a=>{const l=s[a];Ys(l,[Ae.scales[l.type],Ae.scale])}),s}function y_(n){const t=n.options||(n.options={});t.plugins=Wt(t.plugins,{}),t.scales=zL(n,t)}function v_(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function VL(n){return n=n||{},n.data=v_(n.data),y_(n),n}const rv=new Map,b_=new Set;function tl(n,t){let e=rv.get(n);return e||(e=t(),rv.set(n,e),b_.add(e)),e}const Is=(n,t,e)=>{const r=Kr(t,e);r!==void 0&&n.add(r)};class $L{constructor(t){this._config=VL(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=v_(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(),y_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return tl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return tl(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return tl(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,r=this.type;return tl(`${r}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const r=this._scopeCache;let i=r.get(t);return(!i||e)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,e,r){const{options:i,type:s}=this,a=this._cachedScopes(t,r),l=a.get(e);if(l)return l;const c=new Set;e.forEach(f=>{t&&(c.add(t),f.forEach(g=>Is(c,t,g))),f.forEach(g=>Is(c,i,g)),f.forEach(g=>Is(c,wi[s]||{},g)),f.forEach(g=>Is(c,Ae,g)),f.forEach(g=>Is(c,oh,g))});const h=Array.from(c);return h.length===0&&h.push(Object.create(null)),b_.has(e)&&a.set(e,h),h}chartOptionScopes(){const{options:t,type:e}=this;return[t,wi[e]||{},Ae.datasets[e]||{},{type:e},Ae,oh]}resolveNamedOptions(t,e,r,i=[""]){const s={$shared:!0},{resolver:a,subPrefixes:l}=iv(this._resolverCache,t,i);let c=a;if(YL(a,e)){s.$shared=!1,r=Xr(r)?r():r;const h=this.createResolver(t,r,l);c=es(a,r,h)}for(const h of e)s[h]=c[h];return s}createResolver(t,e,r=[""],i){const{resolver:s}=iv(this._resolverCache,t,r);return Jt(e)?es(s,e,void 0,i):s}}function iv(n,t,e){let r=n.get(t);r||(r=new Map,n.set(t,r));const i=e.join();let s=r.get(i);return s||(s={resolver:Jh(t,e),subPrefixes:e.filter(l=>!l.toLowerCase().includes("hover"))},r.set(i,s)),s}const GL=n=>Jt(n)&&Object.getOwnPropertyNames(n).some(t=>Xr(n[t]));function YL(n,t){const{isScriptable:e,isIndexable:r}=Zb(n);for(const i of t){const s=e(i),a=r(i),l=(a||s)&&n[i];if(s&&(Xr(l)||GL(l))||a&&Ee(l))return!0}return!1}var KL="4.4.8";const XL=["top","bottom","left","right","chartArea"];function sv(n,t){return n==="top"||n==="bottom"||XL.indexOf(n)===-1&&t==="x"}function ov(n,t){return function(e,r){return e[n]===r[n]?e[t]-r[t]:e[n]-r[n]}}function av(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),me(e&&e.onComplete,[n],t)}function JL(n){const t=n.chart,e=t.options.animation;me(e&&e.onProgress,[n],t)}function __(n){return td()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const vl={},lv=n=>{const t=__(n);return Object.values(vl).filter(e=>e.canvas===t).pop()};function ZL(n,t,e){const r=Object.keys(n);for(const i of r){const s=+i;if(s>=t){const a=n[i];delete n[i],(e>0||s>t)&&(n[s+e]=a)}}}function QL(n,t,e,r){return!e||n.type==="mouseout"?null:r?t:n}function el(n,t,e){return n.options.clip?n[e]:t[e]}function t3(n,t){const{xScale:e,yScale:r}=n;return e&&r?{left:el(e,t,"left"),right:el(e,t,"right"),top:el(r,t,"top"),bottom:el(r,t,"bottom")}:t}class kr{static register(...t){rr.add(...t),uv()}static unregister(...t){rr.remove(...t),uv()}constructor(t,e){const r=this.config=new $L(e),i=__(t),s=lv(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||yL(i)),this.platform.updateConfig(r);const l=this.platform.acquireContext(i,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,f=c&&c.width;if(this.id=eP(),this.ctx=l,this.canvas=c,this.width=f,this.height=h,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 BL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=vP(g=>this.update(g),a.resizeDelay||0),this._dataChanges=[],vl[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Sr.listen(this,"complete",av),Sr.listen(this,"progress",JL),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:r,height:i,_aspectRatio:s}=this;return Kt(t)?e&&s?s:i?r/i: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 rr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():C0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return R0(this.canvas,this.ctx),this}stop(){return Sr.stop(this),this}resize(t,e){Sr.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,s),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,C0(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),me(r.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};le(e,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,e=t.scales,r=this.scales,i=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let s=[];e&&(s=s.concat(Object.keys(e).map(a=>{const l=e[a],c=ch(a,l),h=c==="r",f=c==="x";return{options:l,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),le(s,a=>{const l=a.options,c=l.id,h=ch(c,l),f=Wt(l.type,a.dtype);(l.position===void 0||sv(l.position,h)!==sv(a.dposition))&&(l.position=a.dposition),i[c]=!0;let g=null;if(c in r&&r[c].type===f)g=r[c];else{const d=rr.getScale(f);g=new d({id:c,type:f,ctx:this.ctx,chart:this}),r[g.id]=g}g.init(l,t)}),le(i,(a,l)=>{a||delete r[l]}),le(r,a=>{tn.configure(this,a,a.options),tn.addBox(this,a)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,r=t.length;if(t.sort((i,s)=>i.index-s.index),r>e){for(let i=e;i<r;++i)this._destroyDatasetMeta(i);t.splice(e,r-e)}this._sortedMetasets=t.slice(0).sort(ov("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((r,i)=>{e.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=e.length;r<i;r++){const s=e[r];let a=this.getDatasetMeta(r);const l=s.type||this.config.type;if(a.type&&a.type!==l&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=l,a.indexAxis=s.indexAxis||uh(l,this.options),a.order=s.order||0,a.index=r,a.label=""+s.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const c=rr.getController(l),{datasetElementType:h,dataElementType:f}=Ae.datasets[l];Object.assign(c,{dataElementType:rr.getElement(f),datasetElementType:h&&rr.getElement(h)}),a.controller=new c(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){le(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 r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let h=0,f=this.data.datasets.length;h<f;h++){const{controller:g}=this.getDatasetMeta(h),d=!i&&s.indexOf(g)===-1;g.buildOrUpdateElements(d),a=Math.max(+g.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||le(s,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ov("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){le(this.scales,t=>{tn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!b0(e,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of e){const a=r==="_removeElements"?-s:s;ZL(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=s=>new Set(t.filter(a=>a[0]===s).map((a,l)=>l+","+a.splice(1).join(","))),i=r(0);for(let s=1;s<e;s++)if(!b0(i,r(s)))return;return Array.from(i).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;tn.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],le(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,r=this.data.datasets.length;e<r;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,r=this.data.datasets.length;e<r;++e)this._updateDataset(e,Xr(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Sr.has(this)?this.attached&&!Sr.running(this)&&Sr.start(this):(this.draw(),av({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}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,r=[];let i,s;for(i=0,s=e.length;i<s;++i){const a=e[i];(!t||a.visible)&&r.push(a)}return r}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,r=t._clip,i=!r.disabled,s=t3(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&jl(e,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),t.controller.draw(),i&&Ul(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Cr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,i){const s=XC.modes[e];return typeof s=="function"?s(this,t,r,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],r=this._metasets;let i=r.filter(s=>s&&s._dataset===e).pop();return i||(i={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},r.push(i)),i}getContext(){return this.$context||(this.$context=Zr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!e.hidden}setDatasetVisibility(t,e){const r=this.getDatasetMeta(t);r.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,r){const i=r?"show":"hide",s=this.getDatasetMeta(t),a=s.controller._resolveAnimations(void 0,i);io(e)?(s.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(s,{visible:r}),this.update(l=>l.datasetIndex===t?i: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(),Sr.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(),R0(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete vl[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,r=(s,a)=>{e.addEventListener(this,s,a),t[s]=a},i=(s,a,l)=>{s.offsetX=a,s.offsetY=l,this._eventHandler(s)};le(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,r=(c,h)=>{e.addEventListener(this,c,h),t[c]=h},i=(c,h)=>{t[c]&&(e.removeEventListener(this,c,h),delete t[c])},s=(c,h)=>{this.canvas&&this.resize(c,h)};let a;const l=()=>{i("attach",l),this.attached=!0,this.resize(),r("resize",s),r("detach",a)};a=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",l)},e.isAttached(this.canvas)?l():a()}unbindEvents(){le(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},le(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,r){const i=r?"set":"remove";let s,a,l,c;for(e==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){a=t[l];const h=a&&this.getDatasetMeta(a.datasetIndex).controller;h&&h[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],r=t.map(({datasetIndex:s,index:a})=>{const l=this.getDatasetMeta(s);if(!l)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:l.data[a],index:a}});!xl(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(t,e,r){return this._plugins.notify(this,t,e,r)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,r){const i=this.options.hover,s=(c,h)=>c.filter(f=>!h.some(g=>f.datasetIndex===g.datasetIndex&&f.index===g.index)),a=s(e,t),l=r?t:s(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),l.length&&i.mode&&this.updateHoverStyle(l,i.mode,!0)}_eventHandler(t,e){const r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(t,e,r){const{_active:i=[],options:s}=this,a=e,l=this._getActiveElements(t,i,r,a),c=aP(t),h=QL(t,this._lastEvent,r,c);r&&(this._lastEvent=null,me(s.onHover,[t,l,this],this),c&&me(s.onClick,[t,l,this],this));const f=!xl(l,i);return(f||e)&&(this._active=l,this._updateHoverStyles(l,i,e)),this._lastEvent=h,f}_getActiveElements(t,e,r,i){if(t.type==="mouseout")return[];if(!r)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}At(kr,"defaults",Ae),At(kr,"instances",vl),At(kr,"overrides",wi),At(kr,"registry",rr),At(kr,"version",KL),At(kr,"getChart",lv);function uv(){return le(kr.instances,n=>n._plugins.invalidate())}function e3(n,t,e){const{startAngle:r,pixelMargin:i,x:s,y:a,outerRadius:l,innerRadius:c}=t;let h=i/l;n.beginPath(),n.arc(s,a,l,r-h,e+h),c>i?(h=i/c,n.arc(s,a,c,e+h,r-h,!0)):n.arc(s,a,i,e+Be,r-Be),n.closePath(),n.clip()}function n3(n){return Xh(n,["outerStart","outerEnd","innerStart","innerEnd"])}function r3(n,t,e,r){const i=n3(n.options.borderRadius),s=(e-t)/2,a=Math.min(s,r*t/2),l=c=>{const h=(e-Math.min(s,c))*r/2;return $e(c,0,Math.min(s,h))};return{outerStart:l(i.outerStart),outerEnd:l(i.outerEnd),innerStart:$e(i.innerStart,0,a),innerEnd:$e(i.innerEnd,0,a)}}function Vi(n,t,e,r){return{x:e+n*Math.cos(t),y:r+n*Math.sin(t)}}function Rl(n,t,e,r,i,s){const{x:a,y:l,startAngle:c,pixelMargin:h,innerRadius:f}=t,g=Math.max(t.outerRadius+r+e-h,0),d=f>0?f+r+e+h:0;let m=0;const p=i-c;if(r){const st=f>0?f-r:0,at=g>0?g-r:0,_t=(st+at)/2,bt=_t!==0?p*_t/(_t+r):p;m=(p-bt)/2}const v=Math.max(.001,p*g-e/_e)/g,_=(p-v)/2,b=c+_+m,S=i-_-m,{outerStart:O,outerEnd:w,innerStart:k,innerEnd:C}=r3(t,d,g,S-b),L=g-O,N=g-w,Y=b+O/L,z=S-w/N,G=d+k,U=d+C,xt=b+k/G,dt=S-C/U;if(n.beginPath(),s){const st=(Y+z)/2;if(n.arc(a,l,g,Y,st),n.arc(a,l,g,st,z),w>0){const Et=Vi(N,z,a,l);n.arc(Et.x,Et.y,w,z,S+Be)}const at=Vi(U,S,a,l);if(n.lineTo(at.x,at.y),C>0){const Et=Vi(U,dt,a,l);n.arc(Et.x,Et.y,C,S+Be,dt+Math.PI)}const _t=(S-C/d+(b+k/d))/2;if(n.arc(a,l,d,S-C/d,_t,!0),n.arc(a,l,d,_t,b+k/d,!0),k>0){const Et=Vi(G,xt,a,l);n.arc(Et.x,Et.y,k,xt+Math.PI,b-Be)}const bt=Vi(L,b,a,l);if(n.lineTo(bt.x,bt.y),O>0){const Et=Vi(L,Y,a,l);n.arc(Et.x,Et.y,O,b-Be,Y)}}else{n.moveTo(a,l);const st=Math.cos(Y)*g+a,at=Math.sin(Y)*g+l;n.lineTo(st,at);const _t=Math.cos(z)*g+a,bt=Math.sin(z)*g+l;n.lineTo(_t,bt)}n.closePath()}function i3(n,t,e,r,i){const{fullCircles:s,startAngle:a,circumference:l}=t;let c=t.endAngle;if(s){Rl(n,t,e,r,c,i);for(let h=0;h<s;++h)n.fill();isNaN(l)||(c=a+(l%be||be))}return Rl(n,t,e,r,c,i),n.fill(),c}function s3(n,t,e,r,i){const{fullCircles:s,startAngle:a,circumference:l,options:c}=t,{borderWidth:h,borderJoinStyle:f,borderDash:g,borderDashOffset:d}=c,m=c.borderAlign==="inner";if(!h)return;n.setLineDash(g||[]),n.lineDashOffset=d,m?(n.lineWidth=h*2,n.lineJoin=f||"round"):(n.lineWidth=h,n.lineJoin=f||"bevel");let p=t.endAngle;if(s){Rl(n,t,e,r,p,i);for(let v=0;v<s;++v)n.stroke();isNaN(l)||(p=a+(l%be||be))}m&&e3(n,t,p),s||(Rl(n,t,e,r,p,i),n.stroke())}class Ws extends Xn{constructor(e){super();At(this,"circumference");At(this,"endAngle");At(this,"fullCircles");At(this,"innerRadius");At(this,"outerRadius");At(this,"pixelMargin");At(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,r,i){const s=this.getProps(["x","y"],i),{angle:a,distance:l}=Wb(s,{x:e,y:r}),{startAngle:c,endAngle:h,innerRadius:f,outerRadius:g,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),m=(this.options.spacing+this.options.borderWidth)/2,p=Wt(d,h-c),v=so(a,c,h)&&c!==h,_=p>=be||v,b=Or(l,f+m,g+m);return _&&b}getCenterPoint(e){const{x:r,y:i,startAngle:s,endAngle:a,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:h,spacing:f}=this.options,g=(s+a)/2,d=(l+c+f+h)/2;return{x:r+Math.cos(g)*d,y:i+Math.sin(g)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:r,circumference:i}=this,s=(r.offset||0)/4,a=(r.spacing||0)/2,l=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>be?Math.floor(i/be):0,i===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const c=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(c)*s,Math.sin(c)*s);const h=1-Math.sin(Math.min(_e,i||0)),f=s*h;e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,i3(e,this,f,a,l),s3(e,this,f,a,l),e.restore()}}At(Ws,"id","arc"),At(Ws,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),At(Ws,"defaultRoutes",{backgroundColor:"backgroundColor"}),At(Ws,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function w_(n,t,e=t){n.lineCap=Wt(e.borderCapStyle,t.borderCapStyle),n.setLineDash(Wt(e.borderDash,t.borderDash)),n.lineDashOffset=Wt(e.borderDashOffset,t.borderDashOffset),n.lineJoin=Wt(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=Wt(e.borderWidth,t.borderWidth),n.strokeStyle=Wt(e.borderColor,t.borderColor)}function o3(n,t,e){n.lineTo(e.x,e.y)}function a3(n){return n.stepped?PP:n.tension||n.cubicInterpolationMode==="monotone"?CP:o3}function x_(n,t,e={}){const r=n.length,{start:i=0,end:s=r-1}=e,{start:a,end:l}=t,c=Math.max(i,a),h=Math.min(s,l),f=i<a&&s<a||i>l&&s>l;return{count:r,start:c,loop:t.loop,ilen:h<c&&!f?r+h-c:h-c}}function l3(n,t,e,r){const{points:i,options:s}=t,{count:a,start:l,loop:c,ilen:h}=x_(i,e,r),f=a3(s);let{move:g=!0,reverse:d}=r||{},m,p,v;for(m=0;m<=h;++m)p=i[(l+(d?h-m:m))%a],!p.skip&&(g?(n.moveTo(p.x,p.y),g=!1):f(n,v,p,d,s.stepped),v=p);return c&&(p=i[(l+(d?h:0))%a],f(n,v,p,d,s.stepped)),!!c}function u3(n,t,e,r){const i=t.points,{count:s,start:a,ilen:l}=x_(i,e,r),{move:c=!0,reverse:h}=r||{};let f=0,g=0,d,m,p,v,_,b;const S=w=>(a+(h?l-w:w))%s,O=()=>{v!==_&&(n.lineTo(f,_),n.lineTo(f,v),n.lineTo(f,b))};for(c&&(m=i[S(0)],n.moveTo(m.x,m.y)),d=0;d<=l;++d){if(m=i[S(d)],m.skip)continue;const w=m.x,k=m.y,C=w|0;C===p?(k<v?v=k:k>_&&(_=k),f=(g*f+w)/++g):(O(),n.lineTo(w,k),p=C,g=0,v=_=k),b=k}O()}function fh(n){const t=n.options,e=t.borderDash&&t.borderDash.length;return!n._decimated&&!n._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?u3:l3}function c3(n){return n.stepped?uC:n.tension||n.cubicInterpolationMode==="monotone"?cC:pi}function f3(n,t,e,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,e,r)&&i.closePath()),w_(n,t.options),n.stroke(i)}function h3(n,t,e,r){const{segments:i,options:s}=t,a=fh(t);for(const l of i)w_(n,s,l.style),n.beginPath(),a(n,t,l,{start:e,end:e+r-1})&&n.closePath(),n.stroke()}const d3=typeof Path2D=="function";function p3(n,t,e,r){d3&&!t.options.segment?f3(n,t,e,r):h3(n,t,e,r)}class $r 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 r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;eC(this._points,r,t,i,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=mC(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,r=t.length;return r&&e[t[r-1].end]}interpolate(t,e){const r=this.options,i=t[e],s=this.points,a=l_(this,{property:e,start:i,end:i});if(!a.length)return;const l=[],c=c3(r);let h,f;for(h=0,f=a.length;h<f;++h){const{start:g,end:d}=a[h],m=s[g],p=s[d];if(m===p){l.push(m);continue}const v=Math.abs((i-m[e])/(p[e]-m[e])),_=c(m,p,v,r.stepped);_[e]=t[e],l.push(_)}return l.length===1?l[0]:l}pathSegment(t,e,r){return fh(this)(t,this,e,r)}path(t,e,r){const i=this.segments,s=fh(this);let a=this._loop;e=e||0,r=r||this.points.length-e;for(const l of i)a&=s(t,this,l,{start:e,end:e+r-1});return!!a}draw(t,e,r,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),p3(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}At($r,"id","line"),At($r,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),At($r,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),At($r,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function cv(n,t,e,r){const i=n.options,{[e]:s}=n.getProps([e],r);return Math.abs(t-s)<i.radius+i.hitRadius}class bl extends Xn{constructor(e){super();At(this,"parsed");At(this,"skip");At(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,r,i){const s=this.options,{x:a,y:l}=this.getProps(["x","y"],i);return Math.pow(e-a,2)+Math.pow(r-l,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(e,r){return cv(this,e,"x",r)}inYRange(e,r){return cv(this,e,"y",r)}getCenterPoint(e){const{x:r,y:i}=this.getProps(["x","y"],e);return{x:r,y:i}}size(e){e=e||this.options||{};let r=e.radius||0;r=Math.max(r,r&&e.hoverRadius||0);const i=r&&e.borderWidth||0;return(r+i)*2}draw(e,r){const i=this.options;this.skip||i.radius<.1||!Cr(this,r,this.size(i)/2)||(e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.fillStyle=i.backgroundColor,ah(e,i,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}At(bl,"id","point"),At(bl,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),At(bl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function S_(n,t){const{x:e,y:r,base:i,width:s,height:a}=n.getProps(["x","y","base","width","height"],t);let l,c,h,f,g;return n.horizontal?(g=a/2,l=Math.min(e,i),c=Math.max(e,i),h=r-g,f=r+g):(g=s/2,l=e-g,c=e+g,h=Math.min(r,i),f=Math.max(r,i)),{left:l,top:h,right:c,bottom:f}}function Gr(n,t,e,r){return n?0:$e(t,e,r)}function g3(n,t,e){const r=n.options.borderWidth,i=n.borderSkipped,s=Jb(r);return{t:Gr(i.top,s.top,0,e),r:Gr(i.right,s.right,0,t),b:Gr(i.bottom,s.bottom,0,e),l:Gr(i.left,s.left,0,t)}}function m3(n,t,e){const{enableBorderRadius:r}=n.getProps(["enableBorderRadius"]),i=n.options.borderRadius,s=bi(i),a=Math.min(t,e),l=n.borderSkipped,c=r||Jt(i);return{topLeft:Gr(!c||l.top||l.left,s.topLeft,0,a),topRight:Gr(!c||l.top||l.right,s.topRight,0,a),bottomLeft:Gr(!c||l.bottom||l.left,s.bottomLeft,0,a),bottomRight:Gr(!c||l.bottom||l.right,s.bottomRight,0,a)}}function y3(n){const t=S_(n),e=t.right-t.left,r=t.bottom-t.top,i=g3(n,e/2,r/2),s=m3(n,e/2,r/2);return{outer:{x:t.left,y:t.top,w:e,h:r,radius:s},inner:{x:t.left+i.l,y:t.top+i.t,w:e-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,s.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(i.b,i.r))}}}}function $f(n,t,e,r){const i=t===null,s=e===null,l=n&&!(i&&s)&&S_(n,r);return l&&(i||Or(t,l.left,l.right))&&(s||Or(e,l.top,l.bottom))}function v3(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}function b3(n,t){n.rect(t.x,t.y,t.w,t.h)}function Gf(n,t,e={}){const r=n.x!==e.x?-t:0,i=n.y!==e.y?-t:0,s=(n.x+n.w!==e.x+e.w?t:0)-r,a=(n.y+n.h!==e.y+e.h?t:0)-i;return{x:n.x+r,y:n.y+i,w:n.w+s,h:n.h+a,radius:n.radius}}class _l 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:r,backgroundColor:i}}=this,{inner:s,outer:a}=y3(this),l=v3(a.radius)?oo:b3;t.save(),(a.w!==s.w||a.h!==s.h)&&(t.beginPath(),l(t,Gf(a,e,s)),t.clip(),l(t,Gf(s,-e,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Gf(s,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,r){return $f(this,t,e,r)}inXRange(t,e){return $f(this,t,null,e)}inYRange(t,e){return $f(this,null,t,e)}getCenterPoint(t){const{x:e,y:r,base:i,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+i)/2:e,y:s?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}At(_l,"id","bar"),At(_l,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),At(_l,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var _3=Object.freeze({__proto__:null,ArcElement:Ws,BarElement:_l,LineElement:$r,PointElement:bl});const hh=["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)"],fv=hh.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function E_(n){return hh[n%hh.length]}function A_(n){return fv[n%fv.length]}function w3(n,t){return n.borderColor=E_(t),n.backgroundColor=A_(t),++t}function x3(n,t){return n.backgroundColor=n.data.map(()=>E_(t++)),t}function S3(n,t){return n.backgroundColor=n.data.map(()=>A_(t++)),t}function E3(n){let t=0;return(e,r)=>{const i=n.getDatasetMeta(r).controller;i instanceof yi?t=x3(e,t):i instanceof Zs?t=S3(e,t):i&&(t=w3(e,t))}}function hv(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}function A3(n){return n&&(n.borderColor||n.backgroundColor)}function k3(){return Ae.borderColor!=="rgba(0,0,0,0.1)"||Ae.backgroundColor!=="rgba(0,0,0,0.1)"}var M3={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,t,e){if(!e.enabled)return;const{data:{datasets:r},options:i}=n.config,{elements:s}=i,a=hv(r)||A3(i)||s&&hv(s)||k3();if(!e.forceOverride&&a)return;const l=E3(n);r.forEach(l)}};function R3(n,t,e,r,i){const s=i.samples||r;if(s>=e)return n.slice(t,t+e);const a=[],l=(e-2)/(s-2);let c=0;const h=t+e-1;let f=t,g,d,m,p,v;for(a[c++]=n[f],g=0;g<s-2;g++){let _=0,b=0,S;const O=Math.floor((g+1)*l)+1+t,w=Math.min(Math.floor((g+2)*l)+1,e)+t,k=w-O;for(S=O;S<w;S++)_+=n[S].x,b+=n[S].y;_/=k,b/=k;const C=Math.floor(g*l)+1+t,L=Math.min(Math.floor((g+1)*l)+1,e)+t,{x:N,y:Y}=n[f];for(m=p=-1,S=C;S<L;S++)p=.5*Math.abs((N-_)*(n[S].y-Y)-(N-n[S].x)*(b-Y)),p>m&&(m=p,d=n[S],v=S);a[c++]=d,f=v}return a[c++]=n[h],a}function O3(n,t,e,r){let i=0,s=0,a,l,c,h,f,g,d,m,p,v;const _=[],b=t+e-1,S=n[t].x,w=n[b].x-S;for(a=t;a<t+e;++a){l=n[a],c=(l.x-S)/w*r,h=l.y;const k=c|0;if(k===f)h<p?(p=h,g=a):h>v&&(v=h,d=a),i=(s*i+l.x)/++s;else{const C=a-1;if(!Kt(g)&&!Kt(d)){const L=Math.min(g,d),N=Math.max(g,d);L!==m&&L!==C&&_.push({...n[L],x:i}),N!==m&&N!==C&&_.push({...n[N],x:i})}a>0&&C!==m&&_.push(n[C]),_.push(l),f=k,s=0,p=v=h,g=d=m=a}}return _}function k_(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 dv(n){n.data.datasets.forEach(t=>{k_(t)})}function P3(n,t){const e=t.length;let r=0,i;const{iScale:s}=n,{min:a,max:l,minDefined:c,maxDefined:h}=s.getUserBounds();return c&&(r=$e(Pr(t,s.axis,a).lo,0,e-1)),h?i=$e(Pr(t,s.axis,l).hi+1,r,e)-r:i=e-r,{start:r,count:i}}var C3={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled){dv(n);return}const r=n.width;n.data.datasets.forEach((i,s)=>{const{_data:a,indexAxis:l}=i,c=n.getDatasetMeta(s),h=a||i.data;if(Us([l,n.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const f=n.scales[c.xAxisID];if(f.type!=="linear"&&f.type!=="time"||n.options.parsing)return;let{start:g,count:d}=P3(c,h);const m=e.threshold||4*r;if(d<=m){k_(i);return}Kt(a)&&(i._data=h,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let p;switch(e.algorithm){case"lttb":p=R3(h,g,d,r,e);break;case"min-max":p=O3(h,g,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}i._decimated=p})},destroy(n){dv(n)}};function L3(n,t,e){const r=n.segments,i=n.points,s=t.points,a=[];for(const l of r){let{start:c,end:h}=l;h=rd(c,h,i);const f=dh(e,i[c],i[h],l.loop);if(!t.segments){a.push({source:l,target:f,start:i[c],end:i[h]});continue}const g=l_(t,f);for(const d of g){const m=dh(e,s[d.start],s[d.end],d.loop),p=a_(l,i,m);for(const v of p)a.push({source:v,target:d,start:{[e]:pv(f,m,"start",Math.max)},end:{[e]:pv(f,m,"end",Math.min)}})}}return a}function dh(n,t,e,r){if(r)return;let i=t[n],s=e[n];return n==="angle"&&(i=An(i),s=An(s)),{property:n,start:i,end:s}}function T3(n,t){const{x:e=null,y:r=null}=n||{},i=t.points,s=[];return t.segments.forEach(({start:a,end:l})=>{l=rd(a,l,i);const c=i[a],h=i[l];r!==null?(s.push({x:c.x,y:r}),s.push({x:h.x,y:r})):e!==null&&(s.push({x:e,y:c.y}),s.push({x:e,y:h.y}))}),s}function rd(n,t,e){for(;t>n;t--){const r=e[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function pv(n,t,e,r){return n&&t?r(n[e],t[e]):n?n[e]:t?t[e]:0}function M_(n,t){let e=[],r=!1;return Ee(n)?(r=!0,e=n):e=T3(n,t),e.length?new $r({points:e,options:{tension:0},_loop:r,_fullLoop:r}):null}function gv(n){return n&&n.fill!==!1}function I3(n,t,e){let i=n[t].fill;const s=[t];let a;if(!e)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!Ce(i))return i;if(a=n[i],!a)return!1;if(a.visible)return i;s.push(i),i=a.fill}return!1}function B3(n,t,e){const r=j3(n);if(Jt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Ce(i)&&Math.floor(i)===i?D3(r[0],t,i,e):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function D3(n,t,e,r){return(n==="-"||n==="+")&&(e=t+e),e===t||e<0||e>=r?!1:e}function F3(n,t){let e=null;return n==="start"?e=t.bottom:n==="end"?e=t.top:Jt(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}function N3(n,t,e){let r;return n==="start"?r=e:n==="end"?r=t.options.reverse?t.min:t.max:Jt(n)?r=n.value:r=t.getBaseValue(),r}function j3(n){const t=n.options,e=t.fill;let r=Wt(e&&e.target,e);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function U3(n){const{scale:t,index:e,line:r}=n,i=[],s=r.segments,a=r.points,l=q3(t,e);l.push(M_({x:null,y:t.bottom},r));for(let c=0;c<s.length;c++){const h=s[c];for(let f=h.start;f<=h.end;f++)W3(i,a[f],l)}return new $r({points:i,options:{}})}function q3(n,t){const e=[],r=n.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const s=r[i];if(s.index===t)break;s.hidden||e.unshift(s.dataset)}return e}function W3(n,t,e){const r=[];for(let i=0;i<e.length;i++){const s=e[i],{first:a,last:l,point:c}=H3(s,t,"x");if(!(!c||a&&l)){if(a)r.unshift(c);else if(n.push(c),!l)break}}n.push(...r)}function H3(n,t,e){const r=n.interpolate(t,e);if(!r)return{};const i=r[e],s=n.segments,a=n.points;let l=!1,c=!1;for(let h=0;h<s.length;h++){const f=s[h],g=a[f.start][e],d=a[f.end][e];if(Or(i,g,d)){l=i===g,c=i===d;break}}return{first:l,last:c,point:r}}class R_{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,r){const{x:i,y:s,radius:a}=this;return e=e||{start:0,end:be},t.arc(i,s,a,e.end,e.start,!0),!r.bounds}interpolate(t){const{x:e,y:r,radius:i}=this,s=t.angle;return{x:e+Math.cos(s)*i,y:r+Math.sin(s)*i,angle:s}}}function z3(n){const{chart:t,fill:e,line:r}=n;if(Ce(e))return V3(t,e);if(e==="stack")return U3(n);if(e==="shape")return!0;const i=$3(n);return i instanceof R_?i:M_(i,r)}function V3(n,t){const e=n.getDatasetMeta(t);return e&&n.isDatasetVisible(t)?e.dataset:null}function $3(n){return(n.scale||{}).getPointPositionForValue?Y3(n):G3(n)}function G3(n){const{scale:t={},fill:e}=n,r=F3(e,t);if(Ce(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function Y3(n){const{scale:t,fill:e}=n,r=t.options,i=t.getLabels().length,s=r.reverse?t.max:t.min,a=N3(e,t,s),l=[];if(r.grid.circular){const c=t.getPointPositionForValue(0,s);return new R_({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(a)})}for(let c=0;c<i;++c)l.push(t.getPointPositionForValue(c,a));return l}function Yf(n,t,e){const r=z3(t),{line:i,scale:s,axis:a}=t,l=i.options,c=l.fill,h=l.backgroundColor,{above:f=h,below:g=h}=c||{};r&&i.points.length&&(jl(n,e),K3(n,{line:i,target:r,above:f,below:g,area:e,scale:s,axis:a}),Ul(n))}function K3(n,t){const{line:e,target:r,above:i,below:s,area:a,scale:l}=t,c=e._loop?"angle":t.axis;n.save(),c==="x"&&s!==i&&(mv(n,r,a.top),yv(n,{line:e,target:r,color:i,scale:l,property:c}),n.restore(),n.save(),mv(n,r,a.bottom)),yv(n,{line:e,target:r,color:s,scale:l,property:c}),n.restore()}function mv(n,t,e){const{segments:r,points:i}=t;let s=!0,a=!1;n.beginPath();for(const l of r){const{start:c,end:h}=l,f=i[c],g=i[rd(c,h,i)];s?(n.moveTo(f.x,f.y),s=!1):(n.lineTo(f.x,e),n.lineTo(f.x,f.y)),a=!!t.pathSegment(n,l,{move:a}),a?n.closePath():n.lineTo(g.x,e)}n.lineTo(t.first().x,e),n.closePath(),n.clip()}function yv(n,t){const{line:e,target:r,property:i,color:s,scale:a}=t,l=L3(e,r,i);for(const{source:c,target:h,start:f,end:g}of l){const{style:{backgroundColor:d=s}={}}=c,m=r!==!0;n.save(),n.fillStyle=d,X3(n,a,m&&dh(i,f,g)),n.beginPath();const p=!!e.pathSegment(n,c);let v;if(m){p?n.closePath():vv(n,r,g,i);const _=!!r.pathSegment(n,h,{move:p,reverse:!0});v=p&&_,v||vv(n,r,f,i)}n.closePath(),n.fill(v?"evenodd":"nonzero"),n.restore()}}function X3(n,t,e){const{top:r,bottom:i}=t.chart.chartArea,{property:s,start:a,end:l}=e||{};s==="x"&&(n.beginPath(),n.rect(a,r,l-a,i-r),n.clip())}function vv(n,t,e,r){const i=t.interpolate(e,r);i&&n.lineTo(i.x,i.y)}var J3={id:"filler",afterDatasetsUpdate(n,t,e){const r=(n.data.datasets||[]).length,i=[];let s,a,l,c;for(a=0;a<r;++a)s=n.getDatasetMeta(a),l=s.dataset,c=null,l&&l.options&&l instanceof $r&&(c={visible:n.isDatasetVisible(a),index:a,fill:B3(l,a,r),chart:n,axis:s.controller.options.indexAxis,scale:s.vScale,line:l}),s.$filler=c,i.push(c);for(a=0;a<r;++a)c=i[a],!(!c||c.fill===!1)&&(c.fill=I3(i,a,e.propagate))},beforeDraw(n,t,e){const r=e.drawTime==="beforeDraw",i=n.getSortedVisibleDatasetMetas(),s=n.chartArea;for(let a=i.length-1;a>=0;--a){const l=i[a].$filler;l&&(l.line.updateControlPoints(s,l.axis),r&&l.fill&&Yf(n.ctx,l,s))}},beforeDatasetsDraw(n,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;const r=n.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;gv(s)&&Yf(n.ctx,s,n.chartArea)}},beforeDatasetDraw(n,t,e){const r=t.meta.$filler;!gv(r)||e.drawTime!=="beforeDatasetDraw"||Yf(n.ctx,r,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const bv=(n,t)=>{let{boxHeight:e=t,boxWidth:r=t}=n;return n.usePointStyle&&(e=Math.min(e,t),r=n.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:e,itemHeight:Math.max(t,e)}},Z3=(n,t)=>n!==null&&t!==null&&n.datasetIndex===t.datasetIndex&&n.index===t.index;class _v 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,r){this.maxWidth=t,this.maxHeight=e,this._margins=r,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=me(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(r=>t.filter(r,this.chart.data))),t.sort&&(e=e.sort((r,i)=>t.sort(r,i,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 r=t.labels,i=He(r.font),s=i.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=bv(r,s);let h,f;e.font=i.string,this.isHorizontal()?(h=this.maxWidth,f=this._fitRows(a,s,l,c)+10):(f=this.maxHeight,h=this._fitCols(a,i,l,c)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,e,r,i){const{ctx:s,maxWidth:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],h=this.lineWidths=[0],f=i+l;let g=t;s.textAlign="left",s.textBaseline="middle";let d=-1,m=-f;return this.legendItems.forEach((p,v)=>{const _=r+e/2+s.measureText(p.text).width;(v===0||h[h.length-1]+_+2*l>a)&&(g+=f,h[h.length-(v>0?0:1)]=0,m+=f,d++),c[v]={left:0,top:m,row:d,width:_,height:i},h[h.length-1]+=_+l}),g}_fitCols(t,e,r,i){const{ctx:s,maxHeight:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],h=this.columnSizes=[],f=a-t;let g=l,d=0,m=0,p=0,v=0;return this.legendItems.forEach((_,b)=>{const{itemWidth:S,itemHeight:O}=Q3(r,e,s,_,i);b>0&&m+O+2*l>f&&(g+=d+l,h.push({width:d,height:m}),p+=d+l,v++,d=m=0),c[b]={left:p,top:m,col:v,width:S,height:O},d=Math.max(d,S),m+=O+l}),g+=d,h.push({width:d,height:m}),g}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:r,labels:{padding:i},rtl:s}}=this,a=Xi(s,this.left,this.width);if(this.isHorizontal()){let l=0,c=Qe(r,this.left+i,this.right-this.lineWidths[l]);for(const h of e)l!==h.row&&(l=h.row,c=Qe(r,this.left+i,this.right-this.lineWidths[l])),h.top+=this.top+t+i,h.left=a.leftForLtr(a.x(c),h.width),c+=h.width+i}else{let l=0,c=Qe(r,this.top+t+i,this.bottom-this.columnSizes[l].height);for(const h of e)h.col!==l&&(l=h.col,c=Qe(r,this.top+t+i,this.bottom-this.columnSizes[l].height)),h.top=c,h.left+=this.left+i,h.left=a.leftForLtr(a.x(h.left),h.width),c+=h.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;jl(t,this),this._draw(),Ul(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:r,ctx:i}=this,{align:s,labels:a}=t,l=Ae.color,c=Xi(t.rtl,this.left,this.width),h=He(a.font),{padding:f}=a,g=h.size,d=g/2;let m;this.drawTitle(),i.textAlign=c.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=h.string;const{boxWidth:p,boxHeight:v,itemHeight:_}=bv(a,g),b=function(C,L,N){if(isNaN(p)||p<=0||isNaN(v)||v<0)return;i.save();const Y=Wt(N.lineWidth,1);if(i.fillStyle=Wt(N.fillStyle,l),i.lineCap=Wt(N.lineCap,"butt"),i.lineDashOffset=Wt(N.lineDashOffset,0),i.lineJoin=Wt(N.lineJoin,"miter"),i.lineWidth=Y,i.strokeStyle=Wt(N.strokeStyle,l),i.setLineDash(Wt(N.lineDash,[])),a.usePointStyle){const z={radius:v*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:Y},G=c.xPlus(C,p/2),U=L+d;Xb(i,z,G,U,a.pointStyleWidth&&p)}else{const z=L+Math.max((g-v)/2,0),G=c.leftForLtr(C,p),U=bi(N.borderRadius);i.beginPath(),Object.values(U).some(xt=>xt!==0)?oo(i,{x:G,y:z,w:p,h:v,radius:U}):i.rect(G,z,p,v),i.fill(),Y!==0&&i.stroke()}i.restore()},S=function(C,L,N){xi(i,N.text,C,L+_/2,h,{strikethrough:N.hidden,textAlign:c.textAlign(N.textAlign)})},O=this.isHorizontal(),w=this._computeTitleHeight();O?m={x:Qe(s,this.left+f,this.right-r[0]),y:this.top+f+w,line:0}:m={x:this.left+f,y:Qe(s,this.top+w+f,this.bottom-e[0].height),line:0},i_(this.ctx,t.textDirection);const k=_+f;this.legendItems.forEach((C,L)=>{i.strokeStyle=C.fontColor,i.fillStyle=C.fontColor;const N=i.measureText(C.text).width,Y=c.textAlign(C.textAlign||(C.textAlign=a.textAlign)),z=p+d+N;let G=m.x,U=m.y;c.setWidth(this.width),O?L>0&&G+z+f>this.right&&(U=m.y+=k,m.line++,G=m.x=Qe(s,this.left+f,this.right-r[m.line])):L>0&&U+k>this.bottom&&(G=m.x=G+e[m.line].width+f,m.line++,U=m.y=Qe(s,this.top+w+f,this.bottom-e[m.line].height));const xt=c.x(G);if(b(xt,U,C),G=bP(Y,G+p+d,O?G+z:this.right,t.rtl),S(c.x(G),U,C),O)m.x+=z+f;else if(typeof C.text!="string"){const dt=h.lineHeight;m.y+=O_(C,dt)+f}else m.y+=k}),s_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=He(e.font),i=en(e.padding);if(!e.display)return;const s=Xi(t.rtl,this.left,this.width),a=this.ctx,l=e.position,c=r.size/2,h=i.top+c;let f,g=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),f=this.top+h,g=Qe(t.align,g,this.right-d);else{const p=this.columnSizes.reduce((v,_)=>Math.max(v,_.height),0);f=h+Qe(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const m=Qe(l,g,g+d);a.textAlign=s.textAlign(Yh(l)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=r.string,xi(a,e.text,m,f,r)}_computeTitleHeight(){const t=this.options.title,e=He(t.font),r=en(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,i,s;if(Or(t,this.left,this.right)&&Or(e,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(i=s[r],Or(t,i.left,i.left+i.width)&&Or(e,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const e=this.options;if(!nT(t.type,e))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,s=Z3(i,r);i&&!s&&me(e.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!s&&me(e.onHover,[t,r,this],this)}else r&&me(e.onClick,[t,r,this],this)}}function Q3(n,t,e,r,i){const s=tT(r,n,t,e),a=eT(i,r,t.lineHeight);return{itemWidth:s,itemHeight:a}}function tT(n,t,e,r){let i=n.text;return i&&typeof i!="string"&&(i=i.reduce((s,a)=>s.length>a.length?s:a)),t+e.size/2+r.measureText(i).width}function eT(n,t,e){let r=n;return typeof t.text!="string"&&(r=O_(t,e)),r}function O_(n,t){const e=n.text?n.text.length:0;return t*e}function nT(n,t){return!!((n==="mousemove"||n==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(n==="click"||n==="mouseup"))}var rT={id:"legend",_element:_v,start(n,t,e){const r=n.legend=new _v({ctx:n.ctx,options:e,chart:n});tn.configure(n,r,e),tn.addBox(n,r)},stop(n){tn.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const r=n.legend;tn.configure(n,r,e),r.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 r=t.datasetIndex,i=e.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),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:r,textAlign:i,color:s,useBorderRadius:a,borderRadius:l}}=n.legend.options;return n._getSortedDatasetMetas().map(c=>{const h=c.controller.getStyle(e?0:void 0),f=en(h.borderWidth);return{text:t[c.index].label,fillStyle:h.backgroundColor,fontColor:s,hidden:!c.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:h.borderColor,pointStyle:r||h.pointStyle,rotation:h.rotation,textAlign:i||h.textAlign,borderRadius:a&&(l||h.borderRadius),datasetIndex:c.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 id 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 r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const i=Ee(r.text)?r.text.length:1;this._padding=en(r.padding);const s=i*He(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:r,bottom:i,right:s,options:a}=this,l=a.align;let c=0,h,f,g;return this.isHorizontal()?(f=Qe(l,r,s),g=e+t,h=s-r):(a.position==="left"?(f=r+t,g=Qe(l,i,e),c=_e*-.5):(f=s-t,g=Qe(l,e,i),c=_e*.5),h=i-e),{titleX:f,titleY:g,maxWidth:h,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const r=He(e.font),s=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:c,rotation:h}=this._drawArgs(s);xi(t,e.text,0,0,r,{color:e.color,maxWidth:c,rotation:h,textAlign:Yh(e.align),textBaseline:"middle",translation:[a,l]})}}function iT(n,t){const e=new id({ctx:n.ctx,options:t,chart:n});tn.configure(n,e,t),tn.addBox(n,e),n.titleBlock=e}var sT={id:"title",_element:id,start(n,t,e){iT(n,e)},stop(n){const t=n.titleBlock;tn.removeBox(n,t),delete n.titleBlock},beforeUpdate(n,t,e){const r=n.titleBlock;tn.configure(n,r,e),r.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 nl=new WeakMap;var oT={id:"subtitle",start(n,t,e){const r=new id({ctx:n.ctx,options:e,chart:n});tn.configure(n,r,e),tn.addBox(n,r),nl.set(n,r)},stop(n){tn.removeBox(n,nl.get(n)),nl.delete(n)},beforeUpdate(n,t,e){const r=nl.get(n);tn.configure(n,r,e),r.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 Hs={average(n){if(!n.length)return!1;let t,e,r=new Set,i=0,s=0;for(t=0,e=n.length;t<e;++t){const l=n[t].element;if(l&&l.hasValue()){const c=l.tooltipPosition();r.add(c.x),i+=c.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((l,c)=>l+c)/r.size,y:i/s}},nearest(n,t){if(!n.length)return!1;let e=t.x,r=t.y,i=Number.POSITIVE_INFINITY,s,a,l;for(s=0,a=n.length;s<a;++s){const c=n[s].element;if(c&&c.hasValue()){const h=c.getCenterPoint(),f=sh(t,h);f<i&&(i=f,l=c)}}if(l){const c=l.tooltipPosition();e=c.x,r=c.y}return{x:e,y:r}}};function nr(n,t){return t&&(Ee(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function Er(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(`
|
|
457
480
|
`)>-1?n.split(`
|
|
458
|
-
`):n}function zT(n,t){const{element:e,datasetIndex:r,index:i}=t,s=n.getDatasetMeta(r).controller,{label:a,value:l}=s.getLabelAndValue(i);return{chart:n,label:a,parsed:s.getParsed(i),raw:n.data.datasets[r].data[i],formattedValue:l,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:e}}function hv(n,t){const e=n.chart.ctx,{body:r,footer:i,title:s}=n,{boxWidth:a,boxHeight:l}=t,c=ze(t.bodyFont),h=ze(t.titleFont),f=ze(t.footerFont),g=s.length,d=i.length,m=r.length,p=en(t.padding);let v=p.height,b=0,_=r.reduce((w,M)=>w+M.before.length+M.lines.length+M.after.length,0);if(_+=n.beforeBody.length+n.afterBody.length,g&&(v+=g*h.lineHeight+(g-1)*t.titleSpacing+t.titleMarginBottom),_){const w=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;v+=m*w+(_-m)*c.lineHeight+(_-1)*t.bodySpacing}d&&(v+=t.footerMarginTop+d*f.lineHeight+(d-1)*t.footerSpacing);let A=0;const C=function(w){b=Math.max(b,e.measureText(w).width+A)};return e.save(),e.font=h.string,le(n.title,C),e.font=c.string,le(n.beforeBody.concat(n.afterBody),C),A=t.displayColors?a+2+t.boxPadding:0,le(r,w=>{le(w.before,C),le(w.lines,C),le(w.after,C)}),A=0,e.font=f.string,le(n.footer,C),e.restore(),b+=p.width,{width:b,height:v}}function VT(n,t){const{y:e,height:r}=t;return e<r/2?"top":e>n.height-r/2?"bottom":"center"}function $T(n,t,e,r){const{x:i,width:s}=r,a=e.caretSize+e.caretPadding;if(n==="left"&&i+s+a>t.width||n==="right"&&i-s-a<0)return!0}function GT(n,t,e,r){const{x:i,width:s}=e,{width:a,chartArea:{left:l,right:c}}=n;let h="center";return r==="center"?h=i<=(l+c)/2?"left":"right":i<=s/2?h="left":i>=a-s/2&&(h="right"),$T(h,n,t,e)&&(h="center"),h}function dv(n,t,e){const r=e.yAlign||t.yAlign||VT(n,e);return{xAlign:e.xAlign||t.xAlign||GT(n,t,e,r),yAlign:r}}function YT(n,t){let{x:e,width:r}=n;return t==="right"?e-=r:t==="center"&&(e-=r/2),e}function KT(n,t,e){let{y:r,height:i}=n;return t==="top"?r+=e:t==="bottom"?r-=i+e:r-=i/2,r}function pv(n,t,e,r){const{caretSize:i,caretPadding:s,cornerRadius:a}=n,{xAlign:l,yAlign:c}=e,h=i+s,{topLeft:f,topRight:g,bottomLeft:d,bottomRight:m}=mi(a);let p=YT(t,l);const v=KT(t,c,h);return c==="center"?l==="left"?p+=h:l==="right"&&(p-=h):l==="left"?p-=Math.max(f,d)+i:l==="right"&&(p+=Math.max(g,m)+i),{x:Ge(p,0,r.width-t.width),y:Ge(v,0,r.height-t.height)}}function Za(n,t,e){const r=en(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-r.right:n.x+r.left}function gv(n){return Qn([],wr(n))}function XT(n,t,e){return Xr(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function mv(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}const w_={beforeTitle:br,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,r=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return e[t.dataIndex]}return""},afterTitle:br,beforeBody:br,beforeLabel:br,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 Kt(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:br,afterBody:br,beforeFooter:br,footer:br,afterFooter:br};function hn(n,t,e,r){const i=n[t].call(e,r);return typeof i>"u"?w_[t].call(e,r):i}class lh extends Gn{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,r=this.options.setContext(this.getContext()),i=r.enabled&&e.options.animation&&r.animations,s=new t_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=XT(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:r}=e,i=hn(r,"beforeTitle",this,t),s=hn(r,"title",this,t),a=hn(r,"afterTitle",this,t);let l=[];return l=Qn(l,wr(i)),l=Qn(l,wr(s)),l=Qn(l,wr(a)),l}getBeforeBody(t,e){return gv(hn(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:r}=e,i=[];return le(t,s=>{const a={before:[],lines:[],after:[]},l=mv(r,s);Qn(a.before,wr(hn(l,"beforeLabel",this,s))),Qn(a.lines,hn(l,"label",this,s)),Qn(a.after,wr(hn(l,"afterLabel",this,s))),i.push(a)}),i}getAfterBody(t,e){return gv(hn(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:r}=e,i=hn(r,"beforeFooter",this,t),s=hn(r,"footer",this,t),a=hn(r,"afterFooter",this,t);let l=[];return l=Qn(l,wr(i)),l=Qn(l,wr(s)),l=Qn(l,wr(a)),l}_createItems(t){const e=this._active,r=this.chart.data,i=[],s=[],a=[];let l=[],c,h;for(c=0,h=e.length;c<h;++c)l.push(zT(this.chart,e[c]));return t.filter&&(l=l.filter((f,g,d)=>t.filter(f,g,d,r))),t.itemSort&&(l=l.sort((f,g)=>t.itemSort(f,g,r))),le(l,f=>{const g=mv(t.callbacks,f);i.push(hn(g,"labelColor",this,f)),s.push(hn(g,"labelPointStyle",this,f)),a.push(hn(g,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const r=this.options.setContext(this.getContext()),i=this._active;let s,a=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const l=Fs[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const c=this._size=hv(this,r),h=Object.assign({},l,c),f=dv(this.chart,r,h),g=pv(r,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,s={opacity:1,x:g.x,y:g.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,r,i){const s=this.getCaretPosition(t,r,i);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,r){const{xAlign:i,yAlign:s}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:c,topRight:h,bottomLeft:f,bottomRight:g}=mi(l),{x:d,y:m}=t,{width:p,height:v}=e;let b,_,A,C,w,M;return s==="center"?(w=m+v/2,i==="left"?(b=d,_=b-a,C=w+a,M=w-a):(b=d+p,_=b+a,C=w-a,M=w+a),A=b):(i==="left"?_=d+Math.max(c,f)+a:i==="right"?_=d+p-Math.max(h,g)-a:_=this.caretX,s==="top"?(C=m,w=C-a,b=_-a,A=_+a):(C=m+v,w=C+a,b=_+a,A=_-a),M=C),{x1:b,x2:_,x3:A,y1:C,y2:w,y3:M}}drawTitle(t,e,r){const i=this.title,s=i.length;let a,l,c;if(s){const h=Yi(r.rtl,this.x,this.width);for(t.x=Za(this,r.titleAlign,r),e.textAlign=h.textAlign(r.titleAlign),e.textBaseline="middle",a=ze(r.titleFont),l=r.titleSpacing,e.fillStyle=r.titleColor,e.font=a.string,c=0;c<s;++c)e.fillText(i[c],h.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+l,c+1===s&&(t.y+=r.titleMarginBottom-l)}}_drawColorBox(t,e,r,i,s){const a=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:h}=s,f=ze(s.bodyFont),g=Za(this,"left",s),d=i.x(g),m=c<f.lineHeight?(f.lineHeight-c)/2:0,p=e.y+m;if(s.usePointStyle){const v={radius:Math.min(h,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=i.leftForLtr(d,h)+h/2,_=p+c/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,eh(t,v,b,_),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,eh(t,v,b,_)}else{t.lineWidth=Jt(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 v=i.leftForLtr(d,h),b=i.leftForLtr(i.xPlus(d,1),h-2),_=mi(a.borderRadius);Object.values(_).some(A=>A!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,eo(t,{x:v,y:p,w:h,h:c,radius:_}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),eo(t,{x:b,y:p+1,w:h-2,h:c-2,radius:_}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(v,p,h,c),t.strokeRect(v,p,h,c),t.fillStyle=a.backgroundColor,t.fillRect(b,p+1,h-2,c-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,e,r){const{body:i}=this,{bodySpacing:s,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:h,boxPadding:f}=r,g=ze(r.bodyFont);let d=g.lineHeight,m=0;const p=Yi(r.rtl,this.x,this.width),v=function(N){e.fillText(N,p.x(t.x+m),t.y+d/2),t.y+=d+s},b=p.textAlign(a);let _,A,C,w,M,O,L;for(e.textAlign=a,e.textBaseline="middle",e.font=g.string,t.x=Za(this,b,r),e.fillStyle=r.bodyColor,le(this.beforeBody,v),m=l&&b!=="right"?a==="center"?h/2+f:h+2+f:0,w=0,O=i.length;w<O;++w){for(_=i[w],A=this.labelTextColors[w],e.fillStyle=A,le(_.before,v),C=_.lines,l&&C.length&&(this._drawColorBox(e,t,w,p,r),d=Math.max(g.lineHeight,c)),M=0,L=C.length;M<L;++M)v(C[M]),d=g.lineHeight;le(_.after,v)}m=0,d=g.lineHeight,le(this.afterBody,v),t.y-=s}drawFooter(t,e,r){const i=this.footer,s=i.length;let a,l;if(s){const c=Yi(r.rtl,this.x,this.width);for(t.x=Za(this,r.footerAlign,r),t.y+=r.footerMarginTop,e.textAlign=c.textAlign(r.footerAlign),e.textBaseline="middle",a=ze(r.footerFont),e.fillStyle=r.footerColor,e.font=a.string,l=0;l<s;++l)e.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,e,r,i){const{xAlign:s,yAlign:a}=this,{x:l,y:c}=t,{width:h,height:f}=r,{topLeft:g,topRight:d,bottomLeft:m,bottomRight:p}=mi(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(l+g,c),a==="top"&&this.drawCaret(t,e,r,i),e.lineTo(l+h-d,c),e.quadraticCurveTo(l+h,c,l+h,c+d),a==="center"&&s==="right"&&this.drawCaret(t,e,r,i),e.lineTo(l+h,c+f-p),e.quadraticCurveTo(l+h,c+f,l+h-p,c+f),a==="bottom"&&this.drawCaret(t,e,r,i),e.lineTo(l+m,c+f),e.quadraticCurveTo(l,c+f,l,c+f-m),a==="center"&&s==="left"&&this.drawCaret(t,e,r,i),e.lineTo(l,c+g),e.quadraticCurveTo(l,c,l+g,c),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const a=Fs[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=hv(this,t),c=Object.assign({},a,this._size),h=dv(e,t,c),f=pv(t,c,h,e);(i._to!==f.x||s._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=en(e.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,i,e),Kb(t,e.textDirection),s.y+=a.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),Xb(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const r=this._active,i=t.map(({datasetIndex:l,index:c})=>{const h=this.chart.getDatasetMeta(l);if(!h)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:h.data[c],index:c}}),s=!yl(r,i),a=this._positionChanged(i,e);(s||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,r=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],a=this._getActiveElements(t,s,e,r),l=this._positionChanged(a,t),c=e||!yl(a,s)||l;return c&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),c}_getActiveElements(t,e,r,i){const s=this.options;if(t.type==="mouseout")return[];if(!i)return e.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:r,caretY:i,options:s}=this,a=Fs[s.position].call(this,t,e);return a!==!1&&(r!==a.x||i!==a.y)}}At(lh,"positioners",Fs);var JT={id:"tooltip",_element:lh,positioners:Fs,afterInit(n,t,e){e&&(n.tooltip=new lh({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:w_},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"]},ZT=Object.freeze({__proto__:null,Colors:cT,Decimation:pT,Filler:BT,Legend:UT,SubTitle:HT,Title:WT,Tooltip:JT});const QT=(n,t,e,r)=>(typeof t=="string"?(e=n.push(t)-1,r.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function t3(n,t,e,r){const i=n.indexOf(t);if(i===-1)return QT(n,t,e,r);const s=n.lastIndexOf(t);return i!==s?e:i}const e3=(n,t)=>n===null?null:Ge(Math.round(n),0,t);function yv(n){const t=this.getLabels();return n>=0&&n<t.length?t[n]:n}class uh extends xi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const r=this.getLabels();for(const{index:i,label:s}of e)r[i]===s&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Kt(t))return null;const r=this.getLabels();return e=isFinite(e)&&r[e]===t?e:t3(r,t,Wt(e,t),this._addedLabels),e3(e,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),e||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,e=this.max,r=this.options.offset,i=[];let s=this.getLabels();s=t===0&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=e;a++)i.push({value:a});return i}getLabelForValue(t){return yv.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}}At(uh,"id","category"),At(uh,"defaults",{ticks:{callback:yv}});function n3(n,t){const e=[],{bounds:i,step:s,min:a,max:l,precision:c,count:h,maxTicks:f,maxDigits:g,includeBounds:d}=n,m=s||1,p=f-1,{min:v,max:b}=t,_=!Kt(a),A=!Kt(l),C=!Kt(h),w=(b-v)/(g+1);let M=h0((b-v)/p/m)*m,O,L,N,Y;if(M<1e-14&&!_&&!A)return[{value:v},{value:b}];Y=Math.ceil(b/M)-Math.floor(v/M),Y>p&&(M=h0(Y*M/p/m)*m),Kt(c)||(O=Math.pow(10,c),M=Math.ceil(M*O)/O),i==="ticks"?(L=Math.floor(v/M)*M,N=Math.ceil(b/M)*M):(L=v,N=b),_&&A&&s&&KC((l-a)/s,M/1e3)?(Y=Math.round(Math.min((l-a)/M,f)),M=(l-a)/Y,L=a,N=l):C?(L=_?a:L,N=A?l:N,Y=h-1,M=(N-L)/Y):(Y=(N-L)/M,Hs(Y,Math.round(Y),M/1e3)?Y=Math.round(Y):Y=Math.ceil(Y));const z=Math.max(d0(M),d0(L));O=Math.pow(10,Kt(c)?z:c),L=Math.round(L*O)/O,N=Math.round(N*O)/O;let G=0;for(_&&(d&&L!==a?(e.push({value:a}),L<a&&G++,Hs(Math.round((L+G*M)*O)/O,a,vv(a,w,n))&&G++):L<a&&G++);G<Y;++G){const U=Math.round((L+G*M)*O)/O;if(A&&U>l)break;e.push({value:U})}return A&&d&&N!==l?e.length&&Hs(e[e.length-1].value,l,vv(l,w,n))?e[e.length-1].value=l:e.push({value:l}):(!A||N===l)&&e.push({value:N}),e}function vv(n,t,{horizontal:e,minRotation:r}){const i=Vn(r),s=(e?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+n).length;return Math.min(t/s,a)}class El extends xi{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 Kt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const a=c=>i=e?i:c,l=c=>s=r?s:c;if(t){const c=ar(i),h=ar(s);c<0&&h<0?l(0):c>0&&h>0&&a(0)}if(i===s){let c=s===0?1:Math.abs(s*.05);l(s+c),t||a(i-c)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),e=e||11),e&&(i=Math.min(e,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,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},s=this._range||this,a=n3(i,s);return t.bounds==="ticks"&&Lb(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,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-e)/Math.max(t.length-1,1)/2;e-=i,r+=i}this._startValue=e,this._endValue=r,this._valueRange=r-e}getLabelForValue(t){return ho(t,this.chart.options.locale,this.options.ticks.format)}}class ch extends El{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Le(t)?t:0,this.max=Le(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,r=Vn(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}At(ch,"id","linear"),At(ch,"defaults",{ticks:{callback:Tl.formatters.numeric}});const ro=n=>Math.floor(Hr(n)),ci=(n,t)=>Math.pow(10,ro(n)+t);function bv(n){return n/Math.pow(10,ro(n))===1}function _v(n,t,e){const r=Math.pow(10,e),i=Math.floor(n/r);return Math.ceil(t/r)-i}function r3(n,t){const e=t-n;let r=ro(e);for(;_v(n,t,r)>10;)r++;for(;_v(n,t,r)<10;)r--;return Math.min(r,ro(n))}function i3(n,{min:t,max:e}){t=En(n.min,t);const r=[],i=ro(t);let s=r3(t,e),a=s<0?Math.pow(10,Math.abs(s)):1;const l=Math.pow(10,s),c=i>s?Math.pow(10,i):0,h=Math.round((t-c)*a)/a,f=Math.floor((t-c)/l/10)*l*10;let g=Math.floor((h-f)/Math.pow(10,s)),d=En(n.min,Math.round((c+f+g*Math.pow(10,s))*a)/a);for(;d<e;)r.push({value:d,major:bv(d),significand:g}),g>=10?g=g<15?15:20:g++,g>=20&&(s++,g=2,a=s>=0?1:a),d=Math.round((c+f+g*Math.pow(10,s))*a)/a;const m=En(n.max,d);return r.push({value:m,major:bv(m),significand:g}),r}class fh extends xi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const r=El.prototype.parse.apply(this,[t,e]);if(r===0){this._zero=!0;return}return Le(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Le(t)?Math.max(0,t):null,this.max=Le(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Le(this._userMin)&&(this.min=t===ci(this.min,0)?ci(this.min,-1):ci(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let r=this.min,i=this.max;const s=l=>r=t?r:l,a=l=>i=e?i:l;r===i&&(r<=0?(s(1),a(10)):(s(ci(r,-1)),a(ci(i,1)))),r<=0&&s(ci(i,-1)),i<=0&&a(ci(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},r=i3(e,this);return t.bounds==="ticks"&&Lb(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":ho(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Hr(t),this._valueRange=Hr(this.max)-Hr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Hr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}At(fh,"id","logarithmic"),At(fh,"defaults",{ticks:{callback:Tl.formatters.logarithmic,major:{enabled:!0}}});function hh(n){const t=n.ticks;if(t.display&&n.display){const e=en(t.backdropPadding);return Wt(t.font&&t.font.size,Ae.font.size)+e.height}return 0}function s3(n,t,e){return e=Ee(e)?e:[e],{w:hP(n,t.string,e),h:e.length*t.lineHeight}}function wv(n,t,e,r,i){return n===r||n===i?{start:t-e/2,end:t+e/2}:n<r||n>i?{start:t-e,end:t}:{start:t,end:t+e}}function o3(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),r=[],i=[],s=n._pointLabels.length,a=n.options.pointLabels,l=a.centerPointLabels?_e/s:0;for(let c=0;c<s;c++){const h=a.setContext(n.getPointLabelContext(c));i[c]=h.padding;const f=n.getPointPosition(c,n.drawingArea+i[c],l),g=ze(h.font),d=s3(n.ctx,g,n._pointLabels[c]);r[c]=d;const m=An(n.getIndexAngle(c)+l),p=Math.round(Nh(m)),v=wv(p,f.x,d.w,0,180),b=wv(p,f.y,d.h,90,270);a3(e,t,m,v,b)}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=c3(n,r,i)}function a3(n,t,e,r,i){const s=Math.abs(Math.sin(e)),a=Math.abs(Math.cos(e));let l=0,c=0;r.start<t.l?(l=(t.l-r.start)/s,n.l=Math.min(n.l,t.l-l)):r.end>t.r&&(l=(r.end-t.r)/s,n.r=Math.max(n.r,t.r+l)),i.start<t.t?(c=(t.t-i.start)/a,n.t=Math.min(n.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/a,n.b=Math.max(n.b,t.b+c))}function l3(n,t,e){const r=n.drawingArea,{extra:i,additionalAngle:s,padding:a,size:l}=e,c=n.getPointPosition(t,r+i+a,s),h=Math.round(Nh(An(c.angle+Ie))),f=d3(c.y,l.h,h),g=f3(h),d=h3(c.x,l.w,g);return{visible:!0,x:c.x,y:f,textAlign:g,left:d,top:f,right:d+l.w,bottom:f+l.h}}function u3(n,t){if(!t)return!0;const{left:e,top:r,right:i,bottom:s}=n;return!(Cr({x:e,y:r},t)||Cr({x:e,y:s},t)||Cr({x:i,y:r},t)||Cr({x:i,y:s},t))}function c3(n,t,e){const r=[],i=n._pointLabels.length,s=n.options,{centerPointLabels:a,display:l}=s.pointLabels,c={extra:hh(s)/2,additionalAngle:a?_e/i:0};let h;for(let f=0;f<i;f++){c.padding=e[f],c.size=t[f];const g=l3(n,f,c);r.push(g),l==="auto"&&(g.visible=u3(g,h),g.visible&&(h=g))}return r}function f3(n){return n===0||n===180?"center":n<180?"left":"right"}function h3(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function d3(n,t,e){return e===90||e===270?n-=t/2:(e>270||e<90)&&(n-=t),n}function p3(n,t,e){const{left:r,top:i,right:s,bottom:a}=e,{backdropColor:l}=t;if(!Kt(l)){const c=mi(t.borderRadius),h=en(t.backdropPadding);n.fillStyle=l;const f=r-h.left,g=i-h.top,d=s-r+h.width,m=a-i+h.height;Object.values(c).some(p=>p!==0)?(n.beginPath(),eo(n,{x:f,y:g,w:d,h:m,radius:c}),n.fill()):n.fillRect(f,g,d,m)}}function g3(n,t){const{ctx:e,options:{pointLabels:r}}=n;for(let i=t-1;i>=0;i--){const s=n._pointLabelItems[i];if(!s.visible)continue;const a=r.setContext(n.getPointLabelContext(i));p3(e,a,s);const l=ze(a.font),{x:c,y:h,textAlign:f}=s;bi(e,n._pointLabels[i],c,h+l.lineHeight/2,l,{color:a.color,textAlign:f,textBaseline:"middle"})}}function x_(n,t,e,r){const{ctx:i}=n;if(e)i.arc(n.xCenter,n.yCenter,t,0,be);else{let s=n.getPointPosition(0,t);i.moveTo(s.x,s.y);for(let a=1;a<r;a++)s=n.getPointPosition(a,t),i.lineTo(s.x,s.y)}}function m3(n,t,e,r,i){const s=n.ctx,a=t.circular,{color:l,lineWidth:c}=t;!a&&!r||!l||!c||e<0||(s.save(),s.strokeStyle=l,s.lineWidth=c,s.setLineDash(i.dash||[]),s.lineDashOffset=i.dashOffset,s.beginPath(),x_(n,e,a,r),s.closePath(),s.stroke(),s.restore())}function y3(n,t,e){return Xr(n,{label:e,index:t,type:"pointLabel"})}class Ns extends El{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=en(hh(this.options)/2),e=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(e,r)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Le(t)&&!isNaN(t)?t:0,this.max=Le(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/hh(this.options))}generateTickLabels(t){El.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,r)=>{const i=me(this.options.pointLabels.callback,[e,r],this);return i||i===0?i:""}).filter((e,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?o3(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,r,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,r,i))}getIndexAngle(t){const e=be/(this._pointLabels.length||1),r=this.options.startAngle||0;return An(t*e+Vn(r))}getDistanceFromCenterForValue(t){if(Kt(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(Kt(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 r=e[t];return y3(this.getContext(),t,r)}}getPointPosition(t,e,r=0){const i=this.getIndexAngle(t)-Ie+r;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}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:r,right:i,bottom:s}=this._pointLabelItems[t];return{left:e,top:r,right:i,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),x_(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:r,grid:i,border:s}=e,a=this._pointLabels.length;let l,c,h;if(e.pointLabels.display&&g3(this,a),i.display&&this.ticks.forEach((f,g)=>{if(g!==0||g===0&&this.min<0){c=this.getDistanceFromCenterForValue(f.value);const d=this.getContext(g),m=i.setContext(d),p=s.setContext(d);m3(this,m,c,a,p)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const f=r.setContext(this.getPointLabelContext(l)),{color:g,lineWidth:d}=f;!d||!g||(t.lineWidth=d,t.strokeStyle=g,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,c=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),h=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,r=e.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!e.reverse)return;const h=r.setContext(this.getContext(c)),f=ze(h.font);if(s=this.getDistanceFromCenterForValue(this.ticks[c].value),h.showLabelBackdrop){t.font=f.string,a=t.measureText(l.label).width,t.fillStyle=h.backdropColor;const g=en(h.backdropPadding);t.fillRect(-a/2-g.left,-s-f.size/2-g.top,a+g.width,f.size+g.height)}bi(t,l.label,0,-s,f,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),t.restore()}drawTitle(){}}At(Ns,"id","radialLinear"),At(Ns,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Tl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),At(Ns,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),At(Ns,"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}},gn=Object.keys(Nl);function xv(n,t){return n-t}function Sv(n,t){if(Kt(t))return null;const e=n._adapter,{parser:r,round:i,isoWeekday:s}=n._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Le(a)||(a=typeof r=="string"?e.parse(a,r):e.parse(a)),a===null?null:(i&&(a=i==="week"&&(Ji(s)||s===!0)?e.startOf(a,"isoWeek",s):e.startOf(a,i)),+a)}function Ev(n,t,e,r){const i=gn.length;for(let s=gn.indexOf(n);s<i-1;++s){const a=Nl[gn[s]],l=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((e-t)/(l*a.size))<=r)return gn[s]}return gn[i-1]}function v3(n,t,e,r,i){for(let s=gn.length-1;s>=gn.indexOf(e);s--){const a=gn[s];if(Nl[a].common&&n._adapter.diff(i,r,a)>=t-1)return a}return gn[e?gn.indexOf(e):0]}function b3(n){for(let t=gn.indexOf(n)+1,e=gn.length;t<e;++t)if(Nl[gn[t]].common)return gn[t]}function Av(n,t,e){if(!e)n[t]=!0;else if(e.length){const{lo:r,hi:i}=jh(e,t),s=e[r]>=t?e[r]:e[i];n[s]=!0}}function _3(n,t,e,r){const i=n._adapter,s=+i.startOf(t[0].value,r),a=t[t.length-1].value;let l,c;for(l=s;l<=a;l=+i.add(l,1,r))c=e[l],c>=0&&(t[c].major=!0);return t}function kv(n,t,e){const r=[],i={},s=t.length;let a,l;for(a=0;a<s;++a)l=t[a],i[l]=a,r.push({value:l,major:!1});return s===0||!e?r:_3(n,r,i,e)}class io extends xi{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 r=t.time||(t.time={}),i=this._adapter=new MO._date(t.adapters.date);i.init(e),Ws(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:Sv(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,r=t.time.unit||"day";let{min:i,max:s,minDefined:a,maxDefined:l}=this.getUserBounds();function c(h){!a&&!isNaN(h.min)&&(i=Math.min(i,h.min)),!l&&!isNaN(h.max)&&(s=Math.max(s,h.max))}(!a||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),i=Le(i)&&!isNaN(i)?i:+e.startOf(Date.now(),r),s=Le(s)&&!isNaN(s)?s:+e.endOf(Date.now(),r)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],r=t[t.length-1]),{min:e,max:r}}buildTicks(){const t=this.options,e=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,a=this.max,l=QC(i,s,a);return this._unit=e.unit||(r.autoSkip?Ev(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):v3(this,l.length,e.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:b3(this._unit),this.initOffsets(i),t.reverse&&l.reverse(),kv(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e=0,r=0,i,s;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?e=1-i:e=(this.getDecimalForValue(t[1])-i)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;e=Ge(e,0,a),r=Ge(r,0,a),this._offsets={start:e,end:r,factor:1/(e+1+r)}}_generate(){const t=this._adapter,e=this.min,r=this.max,i=this.options,s=i.time,a=s.unit||Ev(s.minUnit,e,r,this._getLabelCapacity(e)),l=Wt(i.ticks.stepSize,1),c=a==="week"?s.isoWeekday:!1,h=Ji(c)||c===!0,f={};let g=e,d,m;if(h&&(g=+t.startOf(g,"isoWeek",c)),g=+t.startOf(g,h?"day":a),t.diff(r,e,a)>1e5*l)throw new Error(e+" and "+r+" are too far apart with stepSize of "+l+" "+a);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(d=g,m=0;d<r;d=+t.add(d,l,a),m++)Av(f,d,p);return(d===r||i.bounds==="ticks"||m===1)&&Av(f,d,p),Object.keys(f).sort(xv).map(v=>+v)}getLabelForValue(t){const e=this._adapter,r=this.options.time;return r.tooltipFormat?e.format(t,r.tooltipFormat):e.format(t,r.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,s=this._unit,a=e||i[s];return this._adapter.format(t,a)}_tickFormatFunction(t,e,r,i){const s=this.options,a=s.ticks.callback;if(a)return me(a,[t,e,r],this);const l=s.time.displayFormats,c=this._unit,h=this._majorUnit,f=c&&l[c],g=h&&l[h],d=r[e],m=h&&g&&d&&d.major;return this._adapter.format(t,i||(m?g:f))}generateTickLabels(t){let e,r,i;for(e=0,r=t.length;e<r;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+r)*e.factor)}getValueForPixel(t){const e=this._offsets,r=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,r=this.ctx.measureText(t).width,i=Vn(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(i),a=Math.sin(i),l=this._resolveTickFontOptions(0).size;return{w:r*s+l*a,h:r*a+l*s}}_getLabelCapacity(t){const e=this.options.time,r=e.displayFormats,i=r[e.unit]||r.millisecond,s=this._tickFormatFunction(t,0,kv(this,[t],this._majorUnit),i),a=this._getLabelSize(s),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],e,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(e=0,r=i.length;e<r;++e)t=t.concat(i[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,r;if(t.length)return t;const i=this.getLabels();for(e=0,r=i.length;e<r;++e)t.push(Sv(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ib(t.sort(xv))}}At(io,"id","time"),At(io,"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 Qa(n,t,e){let r=0,i=n.length-1,s,a,l,c;e?(t>=n[r].pos&&t<=n[i].pos&&({lo:r,hi:i}=Mr(n,"pos",t)),{pos:s,time:l}=n[r],{pos:a,time:c}=n[i]):(t>=n[r].time&&t<=n[i].time&&({lo:r,hi:i}=Mr(n,"time",t)),{time:s,pos:l}=n[r],{time:a,pos:c}=n[i]);const h=a-s;return h?l+(c-l)*(t-s)/h:l}class dh extends io{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=Qa(e,this.min),this._tableRange=Qa(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:r}=this,i=[],s=[];let a,l,c,h,f;for(a=0,l=t.length;a<l;++a)h=t[a],h>=e&&h<=r&&i.push(h);if(i.length<2)return[{time:e,pos:0},{time:r,pos:1}];for(a=0,l=i.length;a<l;++a)f=i[a+1],c=i[a-1],h=i[a],Math.round((f+c)/2)!==h&&s.push({time:h,pos:a/(l-1)});return s}_generate(){const t=this.min,e=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(e)||r.length===1)&&r.push(e),r.sort((i,s)=>i-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),r=this.getLabelTimestamps();return e.length&&r.length?t=this.normalize(e.concat(r)):t=e.length?e:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Qa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,r=this.getDecimalForPixel(t)/e.factor-e.end;return Qa(this._table,r*this._tableRange+this._minPos,!0)}}At(dh,"id","timeseries"),At(dh,"defaults",io.defaults);var w3=Object.freeze({__proto__:null,CategoryScale:uh,LinearScale:ch,LogarithmicScale:fh,RadialLinearScale:Ns,TimeScale:io,TimeSeriesScale:dh});const x3=[RO,rT,ZT,w3];Sr.register(...x3);const S3=n=>sr({L:20,M:10,S:7,XS:5})[n],E3=n=>sr({L:200,M:100,S:60,XS:40})[n];class $i extends Oe{constructor(t){super(),this.provided=t,this.counter=aM(),this.aliases={},this.stack=[],this.points=new Map,this.labels=new Set,this.limits={legend:S3(this.provided.width??"L"),point:this.provided.limit??E3(this.provided.width??"L")},this.source=new Sr(document.createElement("canvas"),{type:"line",data:{labels:sr([]),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=Ar.build({...this.provided,class:"chart"}).replace(this.source.canvas),this.replace(this.panel)}provide(t){t.forEach(r=>{if(this.provided.mode==="aggregation"){const s=this.aliases[r.legend]??this.counter(),a=this.points.get(s)??sr({legend:r.legend,values:{}});return this.aliases[r.legend]||(this.aliases[r.legend]=s,this.points.set(s,a),this.stack.push(s)),Object.entries(r.values).forEach(([l,c])=>{a.values[l]=(a.values[l]??0)+c,this.labels.add(l)})}const i=this.counter();this.stack.push(i),this.points.set(i,r),Object.keys(r.values).forEach(s=>this.labels.add(s))}),this.stack.slice(0,kn.clamp(this.stack.length-this.limits.point,0,1/0)).forEach(r=>{const i=this.points.get(r);i&&kn.unset(this.aliases,i.legend),this.points.delete(r),this.stack.shift()});const e=[...this.points.values()];return this.source.data={labels:e.map(r=>r.legend),datasets:[...this.labels.values()].map(r=>({label:r,data:Array(e.length).fill(null).map((i,s)=>e[s].values[r]??null),tension:.3,pointRadius:2,pointHitRadius:20,pointHoverRadius:5,borderWidth:1,borderColor:ml(r),backgroundColor:ml(r)}))},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 $i(t)}}const A3=`
|
|
481
|
+
`):n}function aT(n,t){const{element:e,datasetIndex:r,index:i}=t,s=n.getDatasetMeta(r).controller,{label:a,value:l}=s.getLabelAndValue(i);return{chart:n,label:a,parsed:s.getParsed(i),raw:n.data.datasets[r].data[i],formattedValue:l,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:e}}function wv(n,t){const e=n.chart.ctx,{body:r,footer:i,title:s}=n,{boxWidth:a,boxHeight:l}=t,c=He(t.bodyFont),h=He(t.titleFont),f=He(t.footerFont),g=s.length,d=i.length,m=r.length,p=en(t.padding);let v=p.height,_=0,b=r.reduce((w,k)=>w+k.before.length+k.lines.length+k.after.length,0);if(b+=n.beforeBody.length+n.afterBody.length,g&&(v+=g*h.lineHeight+(g-1)*t.titleSpacing+t.titleMarginBottom),b){const w=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;v+=m*w+(b-m)*c.lineHeight+(b-1)*t.bodySpacing}d&&(v+=t.footerMarginTop+d*f.lineHeight+(d-1)*t.footerSpacing);let S=0;const O=function(w){_=Math.max(_,e.measureText(w).width+S)};return e.save(),e.font=h.string,le(n.title,O),e.font=c.string,le(n.beforeBody.concat(n.afterBody),O),S=t.displayColors?a+2+t.boxPadding:0,le(r,w=>{le(w.before,O),le(w.lines,O),le(w.after,O)}),S=0,e.font=f.string,le(n.footer,O),e.restore(),_+=p.width,{width:_,height:v}}function lT(n,t){const{y:e,height:r}=t;return e<r/2?"top":e>n.height-r/2?"bottom":"center"}function uT(n,t,e,r){const{x:i,width:s}=r,a=e.caretSize+e.caretPadding;if(n==="left"&&i+s+a>t.width||n==="right"&&i-s-a<0)return!0}function cT(n,t,e,r){const{x:i,width:s}=e,{width:a,chartArea:{left:l,right:c}}=n;let h="center";return r==="center"?h=i<=(l+c)/2?"left":"right":i<=s/2?h="left":i>=a-s/2&&(h="right"),uT(h,n,t,e)&&(h="center"),h}function xv(n,t,e){const r=e.yAlign||t.yAlign||lT(n,e);return{xAlign:e.xAlign||t.xAlign||cT(n,t,e,r),yAlign:r}}function fT(n,t){let{x:e,width:r}=n;return t==="right"?e-=r:t==="center"&&(e-=r/2),e}function hT(n,t,e){let{y:r,height:i}=n;return t==="top"?r+=e:t==="bottom"?r-=i+e:r-=i/2,r}function Sv(n,t,e,r){const{caretSize:i,caretPadding:s,cornerRadius:a}=n,{xAlign:l,yAlign:c}=e,h=i+s,{topLeft:f,topRight:g,bottomLeft:d,bottomRight:m}=bi(a);let p=fT(t,l);const v=hT(t,c,h);return c==="center"?l==="left"?p+=h:l==="right"&&(p-=h):l==="left"?p-=Math.max(f,d)+i:l==="right"&&(p+=Math.max(g,m)+i),{x:$e(p,0,r.width-t.width),y:$e(v,0,r.height-t.height)}}function rl(n,t,e){const r=en(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-r.right:n.x+r.left}function Ev(n){return nr([],Er(n))}function dT(n,t,e){return Zr(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Av(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}const P_={beforeTitle:wr,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,r=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return e[t.dataIndex]}return""},afterTitle:wr,beforeBody:wr,beforeLabel:wr,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 Kt(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:wr,afterBody:wr,beforeFooter:wr,footer:wr,afterFooter:wr};function hn(n,t,e,r){const i=n[t].call(e,r);return typeof i>"u"?P_[t].call(e,r):i}class ph 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,r=this.options.setContext(this.getContext()),i=r.enabled&&e.options.animation&&r.animations,s=new u_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=dT(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:r}=e,i=hn(r,"beforeTitle",this,t),s=hn(r,"title",this,t),a=hn(r,"afterTitle",this,t);let l=[];return l=nr(l,Er(i)),l=nr(l,Er(s)),l=nr(l,Er(a)),l}getBeforeBody(t,e){return Ev(hn(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:r}=e,i=[];return le(t,s=>{const a={before:[],lines:[],after:[]},l=Av(r,s);nr(a.before,Er(hn(l,"beforeLabel",this,s))),nr(a.lines,hn(l,"label",this,s)),nr(a.after,Er(hn(l,"afterLabel",this,s))),i.push(a)}),i}getAfterBody(t,e){return Ev(hn(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:r}=e,i=hn(r,"beforeFooter",this,t),s=hn(r,"footer",this,t),a=hn(r,"afterFooter",this,t);let l=[];return l=nr(l,Er(i)),l=nr(l,Er(s)),l=nr(l,Er(a)),l}_createItems(t){const e=this._active,r=this.chart.data,i=[],s=[],a=[];let l=[],c,h;for(c=0,h=e.length;c<h;++c)l.push(aT(this.chart,e[c]));return t.filter&&(l=l.filter((f,g,d)=>t.filter(f,g,d,r))),t.itemSort&&(l=l.sort((f,g)=>t.itemSort(f,g,r))),le(l,f=>{const g=Av(t.callbacks,f);i.push(hn(g,"labelColor",this,f)),s.push(hn(g,"labelPointStyle",this,f)),a.push(hn(g,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const r=this.options.setContext(this.getContext()),i=this._active;let s,a=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const l=Hs[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const c=this._size=wv(this,r),h=Object.assign({},l,c),f=xv(this.chart,r,h),g=Sv(r,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,s={opacity:1,x:g.x,y:g.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,r,i){const s=this.getCaretPosition(t,r,i);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,r){const{xAlign:i,yAlign:s}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:c,topRight:h,bottomLeft:f,bottomRight:g}=bi(l),{x:d,y:m}=t,{width:p,height:v}=e;let _,b,S,O,w,k;return s==="center"?(w=m+v/2,i==="left"?(_=d,b=_-a,O=w+a,k=w-a):(_=d+p,b=_+a,O=w-a,k=w+a),S=_):(i==="left"?b=d+Math.max(c,f)+a:i==="right"?b=d+p-Math.max(h,g)-a:b=this.caretX,s==="top"?(O=m,w=O-a,_=b-a,S=b+a):(O=m+v,w=O+a,_=b+a,S=b-a),k=O),{x1:_,x2:b,x3:S,y1:O,y2:w,y3:k}}drawTitle(t,e,r){const i=this.title,s=i.length;let a,l,c;if(s){const h=Xi(r.rtl,this.x,this.width);for(t.x=rl(this,r.titleAlign,r),e.textAlign=h.textAlign(r.titleAlign),e.textBaseline="middle",a=He(r.titleFont),l=r.titleSpacing,e.fillStyle=r.titleColor,e.font=a.string,c=0;c<s;++c)e.fillText(i[c],h.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+l,c+1===s&&(t.y+=r.titleMarginBottom-l)}}_drawColorBox(t,e,r,i,s){const a=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:h}=s,f=He(s.bodyFont),g=rl(this,"left",s),d=i.x(g),m=c<f.lineHeight?(f.lineHeight-c)/2:0,p=e.y+m;if(s.usePointStyle){const v={radius:Math.min(h,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},_=i.leftForLtr(d,h)+h/2,b=p+c/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,ah(t,v,_,b),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,ah(t,v,_,b)}else{t.lineWidth=Jt(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 v=i.leftForLtr(d,h),_=i.leftForLtr(i.xPlus(d,1),h-2),b=bi(a.borderRadius);Object.values(b).some(S=>S!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,oo(t,{x:v,y:p,w:h,h:c,radius:b}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),oo(t,{x:_,y:p+1,w:h-2,h:c-2,radius:b}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(v,p,h,c),t.strokeRect(v,p,h,c),t.fillStyle=a.backgroundColor,t.fillRect(_,p+1,h-2,c-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,e,r){const{body:i}=this,{bodySpacing:s,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:h,boxPadding:f}=r,g=He(r.bodyFont);let d=g.lineHeight,m=0;const p=Xi(r.rtl,this.x,this.width),v=function(N){e.fillText(N,p.x(t.x+m),t.y+d/2),t.y+=d+s},_=p.textAlign(a);let b,S,O,w,k,C,L;for(e.textAlign=a,e.textBaseline="middle",e.font=g.string,t.x=rl(this,_,r),e.fillStyle=r.bodyColor,le(this.beforeBody,v),m=l&&_!=="right"?a==="center"?h/2+f:h+2+f:0,w=0,C=i.length;w<C;++w){for(b=i[w],S=this.labelTextColors[w],e.fillStyle=S,le(b.before,v),O=b.lines,l&&O.length&&(this._drawColorBox(e,t,w,p,r),d=Math.max(g.lineHeight,c)),k=0,L=O.length;k<L;++k)v(O[k]),d=g.lineHeight;le(b.after,v)}m=0,d=g.lineHeight,le(this.afterBody,v),t.y-=s}drawFooter(t,e,r){const i=this.footer,s=i.length;let a,l;if(s){const c=Xi(r.rtl,this.x,this.width);for(t.x=rl(this,r.footerAlign,r),t.y+=r.footerMarginTop,e.textAlign=c.textAlign(r.footerAlign),e.textBaseline="middle",a=He(r.footerFont),e.fillStyle=r.footerColor,e.font=a.string,l=0;l<s;++l)e.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,e,r,i){const{xAlign:s,yAlign:a}=this,{x:l,y:c}=t,{width:h,height:f}=r,{topLeft:g,topRight:d,bottomLeft:m,bottomRight:p}=bi(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(l+g,c),a==="top"&&this.drawCaret(t,e,r,i),e.lineTo(l+h-d,c),e.quadraticCurveTo(l+h,c,l+h,c+d),a==="center"&&s==="right"&&this.drawCaret(t,e,r,i),e.lineTo(l+h,c+f-p),e.quadraticCurveTo(l+h,c+f,l+h-p,c+f),a==="bottom"&&this.drawCaret(t,e,r,i),e.lineTo(l+m,c+f),e.quadraticCurveTo(l,c+f,l,c+f-m),a==="center"&&s==="left"&&this.drawCaret(t,e,r,i),e.lineTo(l,c+g),e.quadraticCurveTo(l,c,l+g,c),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const a=Hs[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=wv(this,t),c=Object.assign({},a,this._size),h=xv(e,t,c),f=Sv(t,c,h,e);(i._to!==f.x||s._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=en(e.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,i,e),i_(t,e.textDirection),s.y+=a.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),s_(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const r=this._active,i=t.map(({datasetIndex:l,index:c})=>{const h=this.chart.getDatasetMeta(l);if(!h)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:h.data[c],index:c}}),s=!xl(r,i),a=this._positionChanged(i,e);(s||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,r=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],a=this._getActiveElements(t,s,e,r),l=this._positionChanged(a,t),c=e||!xl(a,s)||l;return c&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),c}_getActiveElements(t,e,r,i){const s=this.options;if(t.type==="mouseout")return[];if(!i)return e.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:r,caretY:i,options:s}=this,a=Hs[s.position].call(this,t,e);return a!==!1&&(r!==a.x||i!==a.y)}}At(ph,"positioners",Hs);var pT={id:"tooltip",_element:ph,positioners:Hs,afterInit(n,t,e){e&&(n.tooltip=new ph({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:P_},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"]},gT=Object.freeze({__proto__:null,Colors:M3,Decimation:C3,Filler:J3,Legend:rT,SubTitle:oT,Title:sT,Tooltip:pT});const mT=(n,t,e,r)=>(typeof t=="string"?(e=n.push(t)-1,r.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function yT(n,t,e,r){const i=n.indexOf(t);if(i===-1)return mT(n,t,e,r);const s=n.lastIndexOf(t);return i!==s?e:i}const vT=(n,t)=>n===null?null:$e(Math.round(n),0,t);function kv(n){const t=this.getLabels();return n>=0&&n<t.length?t[n]:n}class gh extends Ei{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const r=this.getLabels();for(const{index:i,label:s}of e)r[i]===s&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Kt(t))return null;const r=this.getLabels();return e=isFinite(e)&&r[e]===t?e:yT(r,t,Wt(e,t),this._addedLabels),vT(e,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),e||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,e=this.max,r=this.options.offset,i=[];let s=this.getLabels();s=t===0&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=e;a++)i.push({value:a});return i}getLabelForValue(t){return kv.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}}At(gh,"id","category"),At(gh,"defaults",{ticks:{callback:kv}});function bT(n,t){const e=[],{bounds:i,step:s,min:a,max:l,precision:c,count:h,maxTicks:f,maxDigits:g,includeBounds:d}=n,m=s||1,p=f-1,{min:v,max:_}=t,b=!Kt(a),S=!Kt(l),O=!Kt(h),w=(_-v)/(g+1);let k=w0((_-v)/p/m)*m,C,L,N,Y;if(k<1e-14&&!b&&!S)return[{value:v},{value:_}];Y=Math.ceil(_/k)-Math.floor(v/k),Y>p&&(k=w0(Y*k/p/m)*m),Kt(c)||(C=Math.pow(10,c),k=Math.ceil(k*C)/C),i==="ticks"?(L=Math.floor(v/k)*k,N=Math.ceil(_/k)*k):(L=v,N=_),b&&S&&s&&hP((l-a)/s,k/1e3)?(Y=Math.round(Math.min((l-a)/k,f)),k=(l-a)/Y,L=a,N=l):O?(L=b?a:L,N=S?l:N,Y=h-1,k=(N-L)/Y):(Y=(N-L)/k,Ks(Y,Math.round(Y),k/1e3)?Y=Math.round(Y):Y=Math.ceil(Y));const z=Math.max(x0(k),x0(L));C=Math.pow(10,Kt(c)?z:c),L=Math.round(L*C)/C,N=Math.round(N*C)/C;let G=0;for(b&&(d&&L!==a?(e.push({value:a}),L<a&&G++,Ks(Math.round((L+G*k)*C)/C,a,Mv(a,w,n))&&G++):L<a&&G++);G<Y;++G){const U=Math.round((L+G*k)*C)/C;if(S&&U>l)break;e.push({value:U})}return S&&d&&N!==l?e.length&&Ks(e[e.length-1].value,l,Mv(l,w,n))?e[e.length-1].value=l:e.push({value:l}):(!S||N===l)&&e.push({value:N}),e}function Mv(n,t,{horizontal:e,minRotation:r}){const i=Gn(r),s=(e?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+n).length;return Math.min(t/s,a)}class Ol extends Ei{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 Kt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const a=c=>i=e?i:c,l=c=>s=r?s:c;if(t){const c=ur(i),h=ur(s);c<0&&h<0?l(0):c>0&&h>0&&a(0)}if(i===s){let c=s===0?1:Math.abs(s*.05);l(s+c),t||a(i-c)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),e=e||11),e&&(i=Math.min(e,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,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},s=this._range||this,a=bT(i,s);return t.bounds==="ticks"&&qb(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,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-e)/Math.max(t.length-1,1)/2;e-=i,r+=i}this._startValue=e,this._endValue=r,this._valueRange=r-e}getLabelForValue(t){return vo(t,this.chart.options.locale,this.options.ticks.format)}}class mh extends Ol{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Ce(t)?t:0,this.max=Ce(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,r=Gn(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}At(mh,"id","linear"),At(mh,"defaults",{ticks:{callback:Nl.formatters.numeric}});const lo=n=>Math.floor(Vr(n)),hi=(n,t)=>Math.pow(10,lo(n)+t);function Rv(n){return n/Math.pow(10,lo(n))===1}function Ov(n,t,e){const r=Math.pow(10,e),i=Math.floor(n/r);return Math.ceil(t/r)-i}function _T(n,t){const e=t-n;let r=lo(e);for(;Ov(n,t,r)>10;)r++;for(;Ov(n,t,r)<10;)r--;return Math.min(r,lo(n))}function wT(n,{min:t,max:e}){t=En(n.min,t);const r=[],i=lo(t);let s=_T(t,e),a=s<0?Math.pow(10,Math.abs(s)):1;const l=Math.pow(10,s),c=i>s?Math.pow(10,i):0,h=Math.round((t-c)*a)/a,f=Math.floor((t-c)/l/10)*l*10;let g=Math.floor((h-f)/Math.pow(10,s)),d=En(n.min,Math.round((c+f+g*Math.pow(10,s))*a)/a);for(;d<e;)r.push({value:d,major:Rv(d),significand:g}),g>=10?g=g<15?15:20:g++,g>=20&&(s++,g=2,a=s>=0?1:a),d=Math.round((c+f+g*Math.pow(10,s))*a)/a;const m=En(n.max,d);return r.push({value:m,major:Rv(m),significand:g}),r}class yh extends Ei{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const r=Ol.prototype.parse.apply(this,[t,e]);if(r===0){this._zero=!0;return}return Ce(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Ce(t)?Math.max(0,t):null,this.max=Ce(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ce(this._userMin)&&(this.min=t===hi(this.min,0)?hi(this.min,-1):hi(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let r=this.min,i=this.max;const s=l=>r=t?r:l,a=l=>i=e?i:l;r===i&&(r<=0?(s(1),a(10)):(s(hi(r,-1)),a(hi(i,1)))),r<=0&&s(hi(i,-1)),i<=0&&a(hi(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},r=wT(e,this);return t.bounds==="ticks"&&qb(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":vo(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Vr(t),this._valueRange=Vr(this.max)-Vr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Vr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}At(yh,"id","logarithmic"),At(yh,"defaults",{ticks:{callback:Nl.formatters.logarithmic,major:{enabled:!0}}});function vh(n){const t=n.ticks;if(t.display&&n.display){const e=en(t.backdropPadding);return Wt(t.font&&t.font.size,Ae.font.size)+e.height}return 0}function xT(n,t,e){return e=Ee(e)?e:[e],{w:OP(n,t.string,e),h:e.length*t.lineHeight}}function Pv(n,t,e,r,i){return n===r||n===i?{start:t-e/2,end:t+e/2}:n<r||n>i?{start:t-e,end:t}:{start:t,end:t+e}}function ST(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),r=[],i=[],s=n._pointLabels.length,a=n.options.pointLabels,l=a.centerPointLabels?_e/s:0;for(let c=0;c<s;c++){const h=a.setContext(n.getPointLabelContext(c));i[c]=h.padding;const f=n.getPointPosition(c,n.drawingArea+i[c],l),g=He(h.font),d=xT(n.ctx,g,n._pointLabels[c]);r[c]=d;const m=An(n.getIndexAngle(c)+l),p=Math.round($h(m)),v=Pv(p,f.x,d.w,0,180),_=Pv(p,f.y,d.h,90,270);ET(e,t,m,v,_)}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=MT(n,r,i)}function ET(n,t,e,r,i){const s=Math.abs(Math.sin(e)),a=Math.abs(Math.cos(e));let l=0,c=0;r.start<t.l?(l=(t.l-r.start)/s,n.l=Math.min(n.l,t.l-l)):r.end>t.r&&(l=(r.end-t.r)/s,n.r=Math.max(n.r,t.r+l)),i.start<t.t?(c=(t.t-i.start)/a,n.t=Math.min(n.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/a,n.b=Math.max(n.b,t.b+c))}function AT(n,t,e){const r=n.drawingArea,{extra:i,additionalAngle:s,padding:a,size:l}=e,c=n.getPointPosition(t,r+i+a,s),h=Math.round($h(An(c.angle+Be))),f=PT(c.y,l.h,h),g=RT(h),d=OT(c.x,l.w,g);return{visible:!0,x:c.x,y:f,textAlign:g,left:d,top:f,right:d+l.w,bottom:f+l.h}}function kT(n,t){if(!t)return!0;const{left:e,top:r,right:i,bottom:s}=n;return!(Cr({x:e,y:r},t)||Cr({x:e,y:s},t)||Cr({x:i,y:r},t)||Cr({x:i,y:s},t))}function MT(n,t,e){const r=[],i=n._pointLabels.length,s=n.options,{centerPointLabels:a,display:l}=s.pointLabels,c={extra:vh(s)/2,additionalAngle:a?_e/i:0};let h;for(let f=0;f<i;f++){c.padding=e[f],c.size=t[f];const g=AT(n,f,c);r.push(g),l==="auto"&&(g.visible=kT(g,h),g.visible&&(h=g))}return r}function RT(n){return n===0||n===180?"center":n<180?"left":"right"}function OT(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function PT(n,t,e){return e===90||e===270?n-=t/2:(e>270||e<90)&&(n-=t),n}function CT(n,t,e){const{left:r,top:i,right:s,bottom:a}=e,{backdropColor:l}=t;if(!Kt(l)){const c=bi(t.borderRadius),h=en(t.backdropPadding);n.fillStyle=l;const f=r-h.left,g=i-h.top,d=s-r+h.width,m=a-i+h.height;Object.values(c).some(p=>p!==0)?(n.beginPath(),oo(n,{x:f,y:g,w:d,h:m,radius:c}),n.fill()):n.fillRect(f,g,d,m)}}function LT(n,t){const{ctx:e,options:{pointLabels:r}}=n;for(let i=t-1;i>=0;i--){const s=n._pointLabelItems[i];if(!s.visible)continue;const a=r.setContext(n.getPointLabelContext(i));CT(e,a,s);const l=He(a.font),{x:c,y:h,textAlign:f}=s;xi(e,n._pointLabels[i],c,h+l.lineHeight/2,l,{color:a.color,textAlign:f,textBaseline:"middle"})}}function C_(n,t,e,r){const{ctx:i}=n;if(e)i.arc(n.xCenter,n.yCenter,t,0,be);else{let s=n.getPointPosition(0,t);i.moveTo(s.x,s.y);for(let a=1;a<r;a++)s=n.getPointPosition(a,t),i.lineTo(s.x,s.y)}}function TT(n,t,e,r,i){const s=n.ctx,a=t.circular,{color:l,lineWidth:c}=t;!a&&!r||!l||!c||e<0||(s.save(),s.strokeStyle=l,s.lineWidth=c,s.setLineDash(i.dash||[]),s.lineDashOffset=i.dashOffset,s.beginPath(),C_(n,e,a,r),s.closePath(),s.stroke(),s.restore())}function IT(n,t,e){return Zr(n,{label:e,index:t,type:"pointLabel"})}class zs extends Ol{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=en(vh(this.options)/2),e=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(e,r)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Ce(t)&&!isNaN(t)?t:0,this.max=Ce(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/vh(this.options))}generateTickLabels(t){Ol.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,r)=>{const i=me(this.options.pointLabels.callback,[e,r],this);return i||i===0?i:""}).filter((e,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?ST(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,r,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,r,i))}getIndexAngle(t){const e=be/(this._pointLabels.length||1),r=this.options.startAngle||0;return An(t*e+Gn(r))}getDistanceFromCenterForValue(t){if(Kt(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(Kt(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 r=e[t];return IT(this.getContext(),t,r)}}getPointPosition(t,e,r=0){const i=this.getIndexAngle(t)-Be+r;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}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:r,right:i,bottom:s}=this._pointLabelItems[t];return{left:e,top:r,right:i,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),C_(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:r,grid:i,border:s}=e,a=this._pointLabels.length;let l,c,h;if(e.pointLabels.display&<(this,a),i.display&&this.ticks.forEach((f,g)=>{if(g!==0||g===0&&this.min<0){c=this.getDistanceFromCenterForValue(f.value);const d=this.getContext(g),m=i.setContext(d),p=s.setContext(d);TT(this,m,c,a,p)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const f=r.setContext(this.getPointLabelContext(l)),{color:g,lineWidth:d}=f;!d||!g||(t.lineWidth=d,t.strokeStyle=g,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,c=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),h=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,r=e.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!e.reverse)return;const h=r.setContext(this.getContext(c)),f=He(h.font);if(s=this.getDistanceFromCenterForValue(this.ticks[c].value),h.showLabelBackdrop){t.font=f.string,a=t.measureText(l.label).width,t.fillStyle=h.backdropColor;const g=en(h.backdropPadding);t.fillRect(-a/2-g.left,-s-f.size/2-g.top,a+g.width,f.size+g.height)}xi(t,l.label,0,-s,f,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),t.restore()}drawTitle(){}}At(zs,"id","radialLinear"),At(zs,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Nl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),At(zs,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),At(zs,"descriptors",{angleLines:{_fallback:"grid"}});const Hl={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}},gn=Object.keys(Hl);function Cv(n,t){return n-t}function Lv(n,t){if(Kt(t))return null;const e=n._adapter,{parser:r,round:i,isoWeekday:s}=n._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Ce(a)||(a=typeof r=="string"?e.parse(a,r):e.parse(a)),a===null?null:(i&&(a=i==="week"&&(ts(s)||s===!0)?e.startOf(a,"isoWeek",s):e.startOf(a,i)),+a)}function Tv(n,t,e,r){const i=gn.length;for(let s=gn.indexOf(n);s<i-1;++s){const a=Hl[gn[s]],l=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((e-t)/(l*a.size))<=r)return gn[s]}return gn[i-1]}function BT(n,t,e,r,i){for(let s=gn.length-1;s>=gn.indexOf(e);s--){const a=gn[s];if(Hl[a].common&&n._adapter.diff(i,r,a)>=t-1)return a}return gn[e?gn.indexOf(e):0]}function DT(n){for(let t=gn.indexOf(n)+1,e=gn.length;t<e;++t)if(Hl[gn[t]].common)return gn[t]}function Iv(n,t,e){if(!e)n[t]=!0;else if(e.length){const{lo:r,hi:i}=Gh(e,t),s=e[r]>=t?e[r]:e[i];n[s]=!0}}function FT(n,t,e,r){const i=n._adapter,s=+i.startOf(t[0].value,r),a=t[t.length-1].value;let l,c;for(l=s;l<=a;l=+i.add(l,1,r))c=e[l],c>=0&&(t[c].major=!0);return t}function Bv(n,t,e){const r=[],i={},s=t.length;let a,l;for(a=0;a<s;++a)l=t[a],i[l]=a,r.push({value:l,major:!1});return s===0||!e?r:FT(n,r,i,e)}class uo extends Ei{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 r=t.time||(t.time={}),i=this._adapter=new VC._date(t.adapters.date);i.init(e),Ys(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:Lv(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,r=t.time.unit||"day";let{min:i,max:s,minDefined:a,maxDefined:l}=this.getUserBounds();function c(h){!a&&!isNaN(h.min)&&(i=Math.min(i,h.min)),!l&&!isNaN(h.max)&&(s=Math.max(s,h.max))}(!a||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),i=Ce(i)&&!isNaN(i)?i:+e.startOf(Date.now(),r),s=Ce(s)&&!isNaN(s)?s:+e.endOf(Date.now(),r)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],r=t[t.length-1]),{min:e,max:r}}buildTicks(){const t=this.options,e=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,a=this.max,l=mP(i,s,a);return this._unit=e.unit||(r.autoSkip?Tv(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):BT(this,l.length,e.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:DT(this._unit),this.initOffsets(i),t.reverse&&l.reverse(),Bv(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e=0,r=0,i,s;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?e=1-i:e=(this.getDecimalForValue(t[1])-i)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;e=$e(e,0,a),r=$e(r,0,a),this._offsets={start:e,end:r,factor:1/(e+1+r)}}_generate(){const t=this._adapter,e=this.min,r=this.max,i=this.options,s=i.time,a=s.unit||Tv(s.minUnit,e,r,this._getLabelCapacity(e)),l=Wt(i.ticks.stepSize,1),c=a==="week"?s.isoWeekday:!1,h=ts(c)||c===!0,f={};let g=e,d,m;if(h&&(g=+t.startOf(g,"isoWeek",c)),g=+t.startOf(g,h?"day":a),t.diff(r,e,a)>1e5*l)throw new Error(e+" and "+r+" are too far apart with stepSize of "+l+" "+a);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(d=g,m=0;d<r;d=+t.add(d,l,a),m++)Iv(f,d,p);return(d===r||i.bounds==="ticks"||m===1)&&Iv(f,d,p),Object.keys(f).sort(Cv).map(v=>+v)}getLabelForValue(t){const e=this._adapter,r=this.options.time;return r.tooltipFormat?e.format(t,r.tooltipFormat):e.format(t,r.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,s=this._unit,a=e||i[s];return this._adapter.format(t,a)}_tickFormatFunction(t,e,r,i){const s=this.options,a=s.ticks.callback;if(a)return me(a,[t,e,r],this);const l=s.time.displayFormats,c=this._unit,h=this._majorUnit,f=c&&l[c],g=h&&l[h],d=r[e],m=h&&g&&d&&d.major;return this._adapter.format(t,i||(m?g:f))}generateTickLabels(t){let e,r,i;for(e=0,r=t.length;e<r;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+r)*e.factor)}getValueForPixel(t){const e=this._offsets,r=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,r=this.ctx.measureText(t).width,i=Gn(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(i),a=Math.sin(i),l=this._resolveTickFontOptions(0).size;return{w:r*s+l*a,h:r*a+l*s}}_getLabelCapacity(t){const e=this.options.time,r=e.displayFormats,i=r[e.unit]||r.millisecond,s=this._tickFormatFunction(t,0,Bv(this,[t],this._majorUnit),i),a=this._getLabelSize(s),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],e,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(e=0,r=i.length;e<r;++e)t=t.concat(i[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,r;if(t.length)return t;const i=this.getLabels();for(e=0,r=i.length;e<r;++e)t.push(Lv(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return zb(t.sort(Cv))}}At(uo,"id","time"),At(uo,"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 il(n,t,e){let r=0,i=n.length-1,s,a,l,c;e?(t>=n[r].pos&&t<=n[i].pos&&({lo:r,hi:i}=Pr(n,"pos",t)),{pos:s,time:l}=n[r],{pos:a,time:c}=n[i]):(t>=n[r].time&&t<=n[i].time&&({lo:r,hi:i}=Pr(n,"time",t)),{time:s,pos:l}=n[r],{time:a,pos:c}=n[i]);const h=a-s;return h?l+(c-l)*(t-s)/h:l}class bh extends uo{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=il(e,this.min),this._tableRange=il(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:r}=this,i=[],s=[];let a,l,c,h,f;for(a=0,l=t.length;a<l;++a)h=t[a],h>=e&&h<=r&&i.push(h);if(i.length<2)return[{time:e,pos:0},{time:r,pos:1}];for(a=0,l=i.length;a<l;++a)f=i[a+1],c=i[a-1],h=i[a],Math.round((f+c)/2)!==h&&s.push({time:h,pos:a/(l-1)});return s}_generate(){const t=this.min,e=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(e)||r.length===1)&&r.push(e),r.sort((i,s)=>i-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),r=this.getLabelTimestamps();return e.length&&r.length?t=this.normalize(e.concat(r)):t=e.length?e:r,t=this._cache.all=t,t}getDecimalForValue(t){return(il(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,r=this.getDecimalForPixel(t)/e.factor-e.end;return il(this._table,r*this._tableRange+this._minPos,!0)}}At(bh,"id","timeseries"),At(bh,"defaults",uo.defaults);var NT=Object.freeze({__proto__:null,CategoryScale:gh,LinearScale:mh,LogarithmicScale:yh,RadialLinearScale:zs,TimeScale:uo,TimeSeriesScale:bh});const jT=[zC,_3,gT,NT];kr.register(...jT);const UT=n=>Yn({XL:20,L:10,M:8,S:7,XS:5})[n],qT=n=>Yn({XL:200,L:100,M:80,S:60,XS:40})[n];class Gi extends Re{constructor(t){super(),this.provided=t,this.counter=bR(),this.aliases={},this.stack=[],this.points=new Map,this.labels=new Set,this.limits={legend:UT(this.provided.width??"L"),point:this.provided.limit??qT(this.provided.width??"L")},this.source=new kr(document.createElement("canvas"),{type:"line",data:{labels:Yn([]),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=Mr.build({...this.provided,class:"chart"}).replace(this.source.canvas),this.replace(this.panel)}provide(t){t.forEach(r=>{if(this.provided.mode==="aggregation"){const s=this.aliases[r.legend]??this.counter(),a=this.points.get(s)??Yn({legend:r.legend,values:{}});return this.aliases[r.legend]||(this.aliases[r.legend]=s,this.points.set(s,a),this.stack.push(s)),Object.entries(r.values).forEach(([l,c])=>{a.values[l]=(a.values[l]??0)+c,this.labels.add(l)})}const i=this.counter();this.stack.push(i),this.points.set(i,r),Object.keys(r.values).forEach(s=>this.labels.add(s))}),this.stack.slice(0,kn.clamp(this.stack.length-this.limits.point,0,1/0)).forEach(r=>{const i=this.points.get(r);i&&kn.unset(this.aliases,i.legend),this.points.delete(r),this.stack.shift()});const e=[...this.points.values()];return this.source.data={labels:e.map(r=>r.legend),datasets:[...this.labels.values()].map(r=>({label:r,data:Array(e.length).fill(null).map((i,s)=>e[s].values[r]??null),tension:.3,pointRadius:2,pointHitRadius:20,pointHoverRadius:5,borderWidth:1,borderColor:wl(r),backgroundColor:wl(r)}))},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 Gi(t)}}const WT=`
|
|
459
482
|
<section id="expectations">
|
|
460
483
|
<div class="storage"></div>
|
|
461
484
|
|
|
@@ -469,38 +492,38 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
469
492
|
|
|
470
493
|
<div class="content"></div>
|
|
471
494
|
</section>
|
|
472
|
-
`,
|
|
495
|
+
`,HT=Ie.compile(WT),_h=Fl.build(),Xe={storage:new Map,filters:{search:Yn(null),groups:Yn(null)}},Nn={search:Dl.build({title:"Search expectations"}).on("clear",()=>{Xe.filters.search=null,Yi()}).on("input",n=>{Xe.filters.search=n,Yi()}),filter:Qi.build({title:{text:"Groups filter",icon:"fas fa-filter",description:"shows/hides items in the list below"},width:"M"}),switcher:Qi.build({title:{text:"Groups switcher",icon:"fas fa-power-off",description:"turnes on/off items in the list below"},width:"M"})},zT=n=>{let t=n;return Xe.filters.groups&&(t=t.filter(e=>Xe.filters.groups.includes(e.data.group))),Xe.filters.search&&(t=t.filter(e=>e.match(Xe.filters.search))),t},Yi=(n=[...Xe.storage.values()])=>{const t=zT(n.map(e=>e.hide())).map(e=>e.show());n.length===Xe.storage.size&&(t.length?_h.hide():_h.show())},Kf=n=>(n??jt.services.groups.storage).forEach(t=>{var r,i;[...Xe.storage.values()].filter(s=>s.data.group===t).every(s=>!s.data.isEnabled)?(r=Nn.switcher.buttons.provided[t])==null||r.disable("silent"):(i=Nn.switcher.buttons.provided[t])==null||i.enable("silent")}),Bs=()=>({pathSize:jt.services.settings.get("settings:visual:path-size")}),sd=ss.build(HT({})).assignMeta({name:"Expectations",icon:"fas fa-magic"}).once("initialize",n=>{n.append(_h),n.controls.main.append(Nn.search),n.controls.additional.append(Nn.filter),n.controls.additional.append(Nn.switcher),jt.services.groups.on("register",t=>{Nn.switcher.provide({name:t,isEnabled:!0,colorify:!0}),Nn.filter.provide({name:t,isEnabled:!0,colorify:!0})}),Nn.switcher.on("enable",t=>jt.services.io.exec("expectations:group:update",{name:t.name,set:{isEnabled:!0}})),Nn.switcher.on("disable",t=>jt.services.io.exec("expectations:group:update",{name:t.name,set:{isEnabled:!1}})),Nn.filter.on("switch",t=>{Xe.filters.groups=t.filter(e=>e.isEnabled).map(e=>e.name),Yi()}),jt.services.settings.on("assign:settings:visual:path-size",()=>Xe.storage.forEach(t=>t.refresh(Bs()))),jt.services.io.subscribe("expectation:added",t=>{const e=$s.build(t,Bs());Xe.storage.set(t.id,e),jt.services.groups.register(t.group),n.content.append(e),Yi([e]),Kf([e.data.group])}),jt.services.io.subscribe("expectation:updated",t=>{const e=Xe.storage.get(t.id)??$s.build(t,Bs());Xe.storage.has(t.id)&&e.provide(t).refresh(Bs()),n.content.element.querySelector(`div.expectation[id="${t.id}"]`)||(n.content.append(e),Yi([e])),Xe.storage.set(t.id,e),jt.services.groups.register(t.group),Kf([e.data.group])})}).on("initialize",async n=>{jt.services.groups.clear(),n.content.clear(),Nn.switcher.clear(),Nn.filter.clear(),Xe.storage.clear();const{data:t}=await jt.services.io.exec("expectations:get-list");t.forEach(e=>{const r=$s.build(e,Bs());Xe.storage.set(e.id,r),jt.services.groups.register(e.group),n.content.append(r)}),Yi(),Kf()}),VT=`
|
|
473
496
|
<section id="analytics">
|
|
474
497
|
<div class="storage"></div>
|
|
475
498
|
<div class="content container"></div>
|
|
476
499
|
</section>
|
|
477
|
-
|
|
500
|
+
`,$T=Ie.compile(VT),dn={memory:Gi.build({title:{text:"Server memory usage",icon:"fas fa-memory",description:"updates every 5 seconds"},width:"L"}),cache:Gi.build({title:{text:"Cache memory usage",icon:"fas fa-database",description:"updates every 10 minutes"},width:"L"}),containers:Gi.build({title:{text:"Registered containers",icon:"fas fa-box",description:"updates every 5 seconds"},width:"S"}),rate:Gi.build({title:{text:"Requests rate",icon:"fas fa-rocket",description:"updates instantly"},mode:"aggregation",width:"S"})},L_=ss.build($T({})).assignMeta({icon:"fas fa-chart-line"}).once("initialize",n=>{n.content.append(dn.memory),n.content.append(dn.cache),n.content.append(dn.containers),n.content.append(dn.rate),jt.services.io.subscribe("metric:registered",({name:t,point:{timestamp:e,values:r}})=>t in dn?dn[t].provide([{values:r,legend:Wr(e).format("HH:mm")}]):null)}).on("initialize",async()=>{dn.containers.clear(),dn.memory.clear(),dn.cache.clear(),dn.rate.clear();const{data:n}=await jt.services.io.exec("metrics:get");dn.memory.provide(n.memory.map(({timestamp:t,values:e})=>({values:e,legend:Wr(t).format("HH:mm")}))),dn.cache.provide(n.cache.map(({timestamp:t,values:e})=>({values:e,legend:Wr(t).format("HH:mm")}))),dn.rate.provide(n.rate.map(({timestamp:t,values:e})=>({values:e,legend:Wr(t).format("HH:mm")}))),dn.containers.provide(n.containers.map(({timestamp:t,values:e})=>({values:e,legend:Wr(t).format("HH:mm")})))}),GT=`
|
|
478
501
|
<div class="content">
|
|
479
502
|
<div class="input size-M" title="Backup file"><input type="file" data-key="files"></div>
|
|
480
503
|
<div class="input size-XS" title="TTL (seconds)"><input type="text" data-key="ttl" value="3600"></div>
|
|
481
504
|
|
|
482
505
|
<button id="restore"><i class="fas fa-undo"></i>Restore</button>
|
|
483
506
|
</div>
|
|
484
|
-
`,
|
|
507
|
+
`,YT=`
|
|
485
508
|
<div class="content">
|
|
486
509
|
<div class="input size-L" title="prefix"><input type="text" data-key="prefix" value="*"></div>
|
|
487
510
|
<button id="delete"><i class="fas fa-trash-alt"></i>Delete</button>
|
|
488
511
|
</div>
|
|
489
|
-
`,
|
|
512
|
+
`,KT=`
|
|
490
513
|
<div class="content">
|
|
491
514
|
<button id="backup"><i class="fas fa-save"></i>Backup</button>
|
|
492
515
|
</div>
|
|
493
|
-
`,
|
|
516
|
+
`,XT=`
|
|
494
517
|
<section id="settings">
|
|
495
518
|
<div class="storage"></div>
|
|
496
519
|
<div class="content container"></div>
|
|
497
520
|
</section>
|
|
498
|
-
`,
|
|
521
|
+
`,JT=`
|
|
499
522
|
<div class="content">
|
|
500
523
|
<p class="version"><span>Version</span><b>{{version}}</b></p>
|
|
501
524
|
<p class="version"><span>Uptime</span><b>{{uptime}}</b></p>
|
|
502
525
|
</div>
|
|
503
|
-
`,
|
|
526
|
+
`,Qs={cacheRestoration:Ie.compile(GT),cacheDeletion:Ie.compile(YT),cacheBackup:Ie.compile(KT),section:Ie.compile(XT),stats:Ie.compile(JT)},jn={system:{stats:Mr.build({title:{text:"Stats",icon:"fas fa-server"},class:"stats",height:"XS",width:"XS"})},cache:{deletion:Mr.build({title:{text:"Cache deletion",icon:"fas fa-database"},class:"cache",height:"XS",width:"S"}).replace(Qs.cacheDeletion({})),backup:Mr.build({title:{text:"Cache backup",icon:"fas fa-database"},class:"cache",height:"XS",width:"XS"}).replace(Qs.cacheBackup({})),restoration:Mr.build({title:{text:"Cache restoration",icon:"fas fa-database"},class:"cache",height:"XS",width:"M"}).replace(Qs.cacheRestoration({}))},visual:{pathSize:Qi.build({title:{text:"Expectation/history path box size",icon:"fas fa-palette"},storage:{key:"settings:visual:path-size"},class:"visual",type:"radio",height:"XS",width:"S"}).provide({name:"S"},{name:"M",isEnabled:!0},{name:"L"},{name:"XL"},{name:"XXL"},{name:"Unlimited"})}},sl={cache:{deletion:Ji.build("settings:cache:deletion",jn.cache.deletion),restoration:Ji.build("settings:cache:restoration",jn.cache.restoration)}},T_=ss.build(Qs.section({})).assignMeta({icon:"fas fa-cog"}).once("initialize",n=>{n.content.append(vi.build("System")),n.content.append(jn.system.stats),n.content.append(vi.build("Cache")),n.content.append(jn.cache.backup),n.content.append(jn.cache.restoration),n.content.append(jn.cache.deletion),n.content.append(vi.build("Visual")),n.content.append(jn.visual.pathSize),sl.cache.deletion.sync(),sl.cache.restoration.sync(),ar.build(jn.cache.deletion.element.querySelector("button#delete")).handle(async()=>{var r;const t=await sl.cache.deletion.save(),{data:e}=await jt.services.io.exec("cache:delete",{prefix:t.prefix});jt.shared.popups.push(`Deleted <b>${((r=e.redis)==null?void 0:r.count)??0}</b> cache keys`)}),ar.build(jn.cache.backup.element.querySelector("button#backup")).handle(async()=>{const{data:t}=await jt.services.io.exec("cache:backup"),e=document.createElement("a"),r=new Date;e.download=`mock-server-cache-backup-${r.toLocaleDateString()}-${r.getTime()}.txt`,e.href=URL.createObjectURL(new Blob([t],{type:"text"})),e.click()}),ar.build(jn.cache.restoration.element.querySelector("button#restore")).handle(async()=>{var i;const t=await sl.cache.restoration.save();if(!((i=t.files)!=null&&i.length))return jt.shared.popups.push("File is not provided",{level:"warning"});const e=1024*300,r=If.createStream({highWaterMark:e});If(jt.instances.io).emit("cache:restore:stream",r,{ttl:t.ttl}),If.createBlobReadStream(t.files[0].source,{highWaterMark:e}).pipe(r),await new Promise(s=>r.once("finish",s)),jt.shared.popups.push("Restored")}),jn.visual.pathSize.on("enable",t=>jt.services.settings.assign("settings:visual:path-size",t.name))}).on("select",async()=>{const{data:n}=await jt.services.io.exec("stats");jn.system.stats.replace(Qs.stats(n))}),ZT=`
|
|
504
527
|
<section id="history">
|
|
505
528
|
<div class="storage"></div>
|
|
506
529
|
|
|
@@ -514,8 +537,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
514
537
|
|
|
515
538
|
<div class="content"></div>
|
|
516
539
|
</section>
|
|
517
|
-
`,
|
|
540
|
+
`,QT=`
|
|
518
541
|
<div class="buttons">
|
|
542
|
+
<button id="add-separator"><i class="fas fa-comment"></i>Add separator</button>
|
|
543
|
+
<button id="delete-separators"><i class="fas fa-trash-alt"></i>Delete separators</button>
|
|
519
544
|
<button id="clear"><i class="fas fa-trash-alt"></i>Clear list</button>
|
|
520
545
|
</div>
|
|
521
|
-
`,
|
|
546
|
+
`,wh=Fl.build(),I_={section:Ie.compile(ZT),actions:Ie.compile(QT)},Yt={storage:new Map,stack:Yn([]),separators:{date:new Set,custom:new Set},filters:{search:Yn(null),groups:Yn(null)}},xr={search:Dl.build({title:"Search history"}).on("clear",()=>{Yt.filters.search=null,gi()}).on("input",n=>{Yt.filters.search=n,gi()}),filter:Qi.build({title:{text:"Groups filter",icon:"fas fa-filter",description:"shows/hides items in the list below"},width:"M"}),actions:Mr.build({title:{text:"Actions",icon:"fas fa-sliders-h"},class:"actions",width:"M"}).append(I_.actions({}))},tI=n=>{let t=n;return Yt.filters.groups&&(t=t.filter(e=>Yt.filters.groups.includes(e.data.group))),Yt.filters.search&&(t=t.filter(e=>e.match(Yt.filters.search))),t},B_=(n=[...Yt.storage.values()])=>{const t=Date.now(),e={},r={"30 seconds ago":t-30*1e3,"1 minute ago":t-60*1e3,"5 minutes ago":t-5*60*1e3,"15 minutes ago":t-15*60*1e3,"30 minutes ago":t-30*60*1e3,"1 hour ago":t-60*60*1e3,"3 hours ago":t-3*60*60*1e3,"6 hours ago":t-6*60*60*1e3,"12 hours ago":t-12*60*60*1e3},i=Object.keys(r).reverse(),s=+Wr().startOf("day");for(const a of Yt.separators.date.values())Yt.separators.date.delete(a),a.delete();n.sort((a,l)=>l.data.timestamp-a.data.timestamp).forEach(a=>{if(a.isHidden)return null;if(a.data.timestamp<s){const l=Wr(a.data.timestamp).format("DD MMM");return e[l]=e[l]??a,null}for(const l of i){if(e[l])break;if(a.data.timestamp<r[l]){e[l]=a;break}}}),Object.entries(e).forEach(([a,l])=>{const c=vi.build(a);l.element.insertAdjacentElement("beforebegin",c.element),Yt.separators.date.add(c)})},gi=(n=[...Yt.storage.values()])=>{const t=tI(n.map(e=>e.hide())).map(e=>e.show());n.length===Yt.storage.size&&(t.length?wh.hide():wh.show(),B_(t))},Ds=()=>({pathSize:jt.services.settings.get("settings:visual:path-size")}),D_=ss.build(I_.section({})).assignMeta({name:"History",icon:"fas fa-history"}).once("initialize",n=>{n.append(wh),n.controls.main.append(xr.search),n.controls.additional.append(xr.filter),n.controls.additional.append(xr.actions),ar.build(xr.actions.element.querySelector("button#clear")).handle(async()=>{if(!Yt.stack.length)return jt.shared.popups.push("Nothing to clear",{level:"warning"});await jt.services.io.exec("history:delete"),Yt.separators.custom.clear(),Yt.separators.date.clear(),Yt.storage.clear(),Yt.stack=[],n.content.clear(),jt.shared.popups.push("History has cleared"),gi()}),ar.build(xr.actions.element.querySelector("button#add-separator")).handle(()=>{const t=vi.build(`#${Yt.separators.custom.size+1}`).highlight();n.content.prepend(t),Yt.separators.custom.add(t)}),ar.build(xr.actions.element.querySelector("button#delete-separators")).handle(()=>{for(const t of Yt.separators.custom.values())Yt.separators.custom.delete(t),t.delete()}),jt.services.groups.on("register",t=>xr.filter.provide({name:t,isEnabled:!0,colorify:!0})),jt.services.settings.on("assign:settings:visual:path-size",()=>Yt.storage.forEach(t=>t.refresh(Ds()))),xr.filter.on("switch",t=>{Yt.filters.groups=t.filter(e=>e.isEnabled).map(e=>e.name),gi()}),jt.services.io.subscribe("history:added",t=>{var r;const e=Gs.build(t,Ds());if(Yt.storage.set(t.id,e),Yt.stack.push(t.id),Yt.stack.length>jt.services.config.storage.history.limit*jt.services.groups.storage.size){const i=Yt.stack.shift();(r=Yt.storage.get(i))==null||r.delete(),Yt.storage.delete(i)}n.content.prepend(e),gi([e])}),jt.services.io.subscribe("history:updated",t=>{const e=Yt.storage.get(t.id)??Gs.build(t,Ds());Yt.storage.has(t.id)?e.provide(t).refresh(Ds()):Yt.stack.push(t.id),Yt.storage.set(t.id,e),n.element.querySelector(`div.history[id="${t.id}"]`)||(n.content.prepend(e),gi([e]))}),setInterval(()=>B_(),30*1e3)}).on("initialize",async n=>{xr.filter.clear(),Yt.stack=[],n.content.clear(),Yt.storage.clear();const{data:t}=await jt.services.io.exec("history:get-list");t.forEach(e=>{const r=Gs.build(e,Ds());Yt.storage.set(e.id,r),Yt.stack.push(e.id),n.content.append(r)}),gi()}),F_=Object.freeze(Object.defineProperty({__proto__:null,analytics:L_,expectations:sd,history:D_,settings:T_},Symbol.toStringTag,{value:"Module"})),N_=jh.build().show(),eI=qh.build([{type:"section",entity:T_.hide()},{type:"section",entity:L_.hide()},{type:"separator"},{type:"section",entity:sd},{type:"section",entity:D_.hide()}]);jt.switchStorage(sd.storage).share({popups:Uh.build()});document.body.prepend(eI.element);document.body.append(N_.element);document.body.append(jt.shared.popups.element);Object.values(F_).map(n=>n.compile()).forEach(n=>document.body.append(n.element));jt.instances.io.on("connect",async()=>{console.log("WebSocket has connected"),await jt.services.io.exec("ping");const{data:n}=await jt.services.io.exec("config:get");jt.services.config.assign(n),jt.shared.popups.push("Connected!"),Object.values(F_).forEach(t=>t.initialize()),N_.hide()});
|