@n1k1t/mock-server 0.1.85 → 0.2.0

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.
Files changed (138) hide show
  1. package/lib/package.json +1 -1
  2. package/lib/src/client/remote.d.ts +3 -1
  3. package/lib/src/client/remote.d.ts.map +1 -1
  4. package/lib/src/config/index.d.ts +1 -1
  5. package/lib/src/config/index.js +3 -3
  6. package/lib/src/expectations/models/expectation.d.ts +7 -2
  7. package/lib/src/expectations/models/expectation.d.ts.map +1 -1
  8. package/lib/src/expectations/models/expectation.js +28 -7
  9. package/lib/src/expectations/models/expectation.js.map +1 -1
  10. package/lib/src/expectations/models/operator.d.ts +2 -2
  11. package/lib/src/expectations/models/operator.d.ts.map +1 -1
  12. package/lib/src/expectations/models/operator.js +2 -2
  13. package/lib/src/expectations/models/operator.js.map +1 -1
  14. package/lib/src/expectations/operators/and.operator.d.ts +2 -2
  15. package/lib/src/expectations/operators/and.operator.d.ts.map +1 -1
  16. package/lib/src/expectations/operators/and.operator.js +2 -1
  17. package/lib/src/expectations/operators/and.operator.js.map +1 -1
  18. package/lib/src/expectations/operators/exec.operator.d.ts +2 -2
  19. package/lib/src/expectations/operators/exec.operator.d.ts.map +1 -1
  20. package/lib/src/expectations/operators/exec.operator.js +1 -1
  21. package/lib/src/expectations/operators/has.operator.d.ts +2 -2
  22. package/lib/src/expectations/operators/has.operator.d.ts.map +1 -1
  23. package/lib/src/expectations/operators/has.operator.js +12 -20
  24. package/lib/src/expectations/operators/has.operator.js.map +1 -1
  25. package/lib/src/expectations/operators/if.operator.d.ts +2 -2
  26. package/lib/src/expectations/operators/if.operator.d.ts.map +1 -1
  27. package/lib/src/expectations/operators/if.operator.js +6 -5
  28. package/lib/src/expectations/operators/if.operator.js.map +1 -1
  29. package/lib/src/expectations/operators/merge.operator.d.ts +2 -2
  30. package/lib/src/expectations/operators/merge.operator.d.ts.map +1 -1
  31. package/lib/src/expectations/operators/merge.operator.js +1 -1
  32. package/lib/src/expectations/operators/not.operator.d.ts +2 -2
  33. package/lib/src/expectations/operators/not.operator.d.ts.map +1 -1
  34. package/lib/src/expectations/operators/not.operator.js +1 -1
  35. package/lib/src/expectations/operators/or.operator.d.ts +2 -2
  36. package/lib/src/expectations/operators/or.operator.d.ts.map +1 -1
  37. package/lib/src/expectations/operators/or.operator.js +2 -1
  38. package/lib/src/expectations/operators/or.operator.js.map +1 -1
  39. package/lib/src/expectations/operators/remove.operator.d.ts +2 -2
  40. package/lib/src/expectations/operators/remove.operator.d.ts.map +1 -1
  41. package/lib/src/expectations/operators/remove.operator.js +1 -1
  42. package/lib/src/expectations/operators/root.operator.d.ts +2 -2
  43. package/lib/src/expectations/operators/root.operator.d.ts.map +1 -1
  44. package/lib/src/expectations/operators/root.operator.js +1 -1
  45. package/lib/src/expectations/operators/set.operator.d.ts +2 -2
  46. package/lib/src/expectations/operators/set.operator.d.ts.map +1 -1
  47. package/lib/src/expectations/operators/set.operator.js +6 -10
  48. package/lib/src/expectations/operators/set.operator.js.map +1 -1
  49. package/lib/src/expectations/operators/switch.operator.d.ts +2 -2
  50. package/lib/src/expectations/operators/switch.operator.d.ts.map +1 -1
  51. package/lib/src/expectations/operators/switch.operator.js +7 -9
  52. package/lib/src/expectations/operators/switch.operator.js.map +1 -1
  53. package/lib/src/expectations/types.d.ts +11 -12
  54. package/lib/src/expectations/types.d.ts.map +1 -1
  55. package/lib/src/expectations/types.js +4 -2
  56. package/lib/src/expectations/types.js.map +1 -1
  57. package/lib/src/expectations/utils/index.d.ts +1 -0
  58. package/lib/src/expectations/utils/index.d.ts.map +1 -1
  59. package/lib/src/expectations/utils/index.js +1 -0
  60. package/lib/src/expectations/utils/index.js.map +1 -1
  61. package/lib/src/expectations/utils/location.d.ts.map +1 -1
  62. package/lib/src/expectations/utils/location.js +7 -3
  63. package/lib/src/expectations/utils/location.js.map +1 -1
  64. package/lib/src/expectations/utils/tags.d.ts +5 -0
  65. package/lib/src/expectations/utils/tags.d.ts.map +1 -0
  66. package/lib/src/expectations/utils/tags.js +49 -0
  67. package/lib/src/expectations/utils/tags.js.map +1 -0
  68. package/lib/src/server/endpoints/config.get.endpoint.d.ts +2 -2
  69. package/lib/src/server/endpoints/expectations-group.update.endpoint.d.ts +5 -1
  70. package/lib/src/server/endpoints/expectations-group.update.endpoint.d.ts.map +1 -1
  71. package/lib/src/server/endpoints/expectations.compact.get-list.endpoint.d.ts +33 -0
  72. package/lib/src/server/endpoints/expectations.compact.get-list.endpoint.d.ts.map +1 -0
  73. package/lib/src/server/endpoints/{expectations.get-list.endpoint.js → expectations.compact.get-list.endpoint.js} +4 -4
  74. package/lib/src/server/endpoints/expectations.compact.get-list.endpoint.js.map +1 -0
  75. package/lib/src/server/endpoints/expectations.create.endpoint.d.ts +5 -1
  76. package/lib/src/server/endpoints/expectations.create.endpoint.d.ts.map +1 -1
  77. package/lib/src/server/endpoints/expectations.get-by-id.endpoint.d.ts +49 -0
  78. package/lib/src/server/endpoints/expectations.get-by-id.endpoint.d.ts.map +1 -0
  79. package/lib/src/server/endpoints/expectations.get-by-id.endpoint.js +21 -0
  80. package/lib/src/server/endpoints/expectations.get-by-id.endpoint.js.map +1 -0
  81. package/lib/src/server/endpoints/expectations.update.endpoint.d.ts +5 -1
  82. package/lib/src/server/endpoints/expectations.update.endpoint.d.ts.map +1 -1
  83. package/lib/src/server/endpoints/history.compact.get-list.endpoint.d.ts +38 -0
  84. package/lib/src/server/endpoints/history.compact.get-list.endpoint.d.ts.map +1 -0
  85. package/lib/src/server/endpoints/{history.get-list.endpoint.js → history.compact.get-list.endpoint.js} +4 -4
  86. package/lib/src/server/endpoints/history.compact.get-list.endpoint.js.map +1 -0
  87. package/lib/src/server/endpoints/history.get-by-id.endpoint.d.ts +52 -0
  88. package/lib/src/server/endpoints/history.get-by-id.endpoint.d.ts.map +1 -0
  89. package/lib/src/server/endpoints/history.get-by-id.endpoint.js +21 -0
  90. package/lib/src/server/endpoints/history.get-by-id.endpoint.js.map +1 -0
  91. package/lib/src/server/endpoints/index.d.ts +4 -2
  92. package/lib/src/server/endpoints/index.d.ts.map +1 -1
  93. package/lib/src/server/endpoints/index.js +9 -5
  94. package/lib/src/server/endpoints/index.js.map +1 -1
  95. package/lib/src/server/endpoints/providers.get-list.endpoint.d.ts +1 -1
  96. package/lib/src/server/models/context/index.d.ts +4 -2
  97. package/lib/src/server/models/context/index.d.ts.map +1 -1
  98. package/lib/src/server/models/context/index.js +16 -15
  99. package/lib/src/server/models/context/index.js.map +1 -1
  100. package/lib/src/server/models/context/utils.d.ts +1 -1
  101. package/lib/src/server/models/context/utils.d.ts.map +1 -1
  102. package/lib/src/server/models/context/utils.js +13 -15
  103. package/lib/src/server/models/context/utils.js.map +1 -1
  104. package/lib/src/server/models/executor/index.d.ts.map +1 -1
  105. package/lib/src/server/models/executor/index.js +22 -30
  106. package/lib/src/server/models/executor/index.js.map +1 -1
  107. package/lib/src/server/models/history/model.d.ts +19 -13
  108. package/lib/src/server/models/history/model.d.ts.map +1 -1
  109. package/lib/src/server/models/history/model.js +69 -17
  110. package/lib/src/server/models/history/model.js.map +1 -1
  111. package/lib/src/server/models/history/storage.js +2 -2
  112. package/lib/src/server/models/history/storage.js.map +1 -1
  113. package/lib/src/server/models/history/types.d.ts +12 -0
  114. package/lib/src/server/models/history/types.d.ts.map +1 -1
  115. package/lib/src/server/models/providers/model.d.ts +1 -1
  116. package/lib/src/server/models/providers/model.d.ts.map +1 -1
  117. package/lib/src/server/models/router.d.ts +1 -1
  118. package/lib/src/server/models/router.d.ts.map +1 -1
  119. package/lib/src/server/models/router.js.map +1 -1
  120. package/lib/src/server/transports/http.transport/executor.d.ts.map +1 -1
  121. package/lib/src/server/transports/http.transport/executor.js +7 -3
  122. package/lib/src/server/transports/http.transport/executor.js.map +1 -1
  123. package/lib/src/server/transports/http.transport/index.js +2 -2
  124. package/lib/src/server/transports/http.transport/index.js.map +1 -1
  125. package/lib/src/server/transports/internal/http.transport/executor.js +1 -1
  126. package/lib/src/server/transports/internal/http.transport/executor.js.map +1 -1
  127. package/lib/src/server/transports/ws.transport/index.js +2 -2
  128. package/lib/src/server/transports/ws.transport/index.js.map +1 -1
  129. package/package.json +1 -1
  130. package/public/assets/{index-WDELzuxC.js → index-C4Ald6Z-.js} +186 -189
  131. package/public/assets/{index-D-g7Ghci.css → index-tl7gtkKo.css} +1 -1
  132. package/public/index.html +2 -2
  133. package/lib/src/server/endpoints/expectations.get-list.endpoint.d.ts +0 -25
  134. package/lib/src/server/endpoints/expectations.get-list.endpoint.d.ts.map +0 -1
  135. package/lib/src/server/endpoints/expectations.get-list.endpoint.js.map +0 -1
  136. package/lib/src/server/endpoints/history.get-list.endpoint.d.ts +0 -30
  137. package/lib/src/server/endpoints/history.get-list.endpoint.d.ts.map +0 -1
  138. package/lib/src/server/endpoints/history.get-list.endpoint.js.map +0 -1
@@ -1,13 +1,13 @@
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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},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.
1
+ var nk=Object.defineProperty;var rk=(n,t,e)=>t in n?nk(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var At=(n,t,e)=>rk(n,typeof t!="symbol"?t+"":t,e);function ik(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 Si(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ll={exports:{}},sk=ll.exports,Tg;function ok(){return Tg||(Tg=1,function(n,t){(function(e,r){n.exports=r()})(sk,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)}}})}(ll)),ll.exports}var ak=ok();const lk=Si(ak);var ul={exports:{}},uk=ul.exports,Ig;function ck(){return Ig||(Ig=1,function(n,t){(function(e,r){n.exports=r()})(uk,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})}(ul)),ul.exports}var fk=ck();const Hr=Si(fk);var ca={exports:{}},fa={exports:{}},$n={},hn={},Bg;function yn(){if(Bg)return hn;Bg=1,hn.__esModule=!0,hn.extend=i,hn.indexOf=c,hn.escapeExpression=h,hn.isEmpty=f,hn.createFrame=g,hn.blockParams=d,hn.appendContextPath=m;var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},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;hn.toString=s;var a=function(v){return typeof v=="function"};a(/x/)&&(hn.isFunction=a=function(p){return typeof p=="function"&&s.call(p)==="[object Function]"}),hn.isFunction=a;var l=Array.isArray||function(p){return p&&typeof p=="object"?s.call(p)==="[object Array]":!1};hn.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 hn}var ha={exports:{}},Dg;function Zn(){return Dg||(Dg=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}(ha,ha.exports)),ha.exports}var Rs={},da={exports:{}},Fg;function hk(){return Fg||(Fg=1,function(n,t){t.__esModule=!0;var e=yn();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}(da,da.exports)),da.exports}var pa={exports:{}},Ng;function dk(){return Ng||(Ng=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var r=yn(),i=Zn(),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}(pa,pa.exports)),pa.exports}var ga={exports:{}},jg;function pk(){return jg||(jg=1,function(n,t){t.__esModule=!0;function e(s){return s&&s.__esModule?s:{default:s}}var r=Zn(),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}(ga,ga.exports)),ga.exports}var ma={exports:{}},Ug;function gk(){return Ug||(Ug=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var r=yn(),i=Zn(),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}(ma,ma.exports)),ma.exports}var ya={exports:{}},qg;function mk(){return qg||(qg=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}(ya,ya.exports)),ya.exports}var va={exports:{}},Wg;function yk(){return Wg||(Wg=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}(va,va.exports)),va.exports}var ba={exports:{}},Hg;function vk(){return Hg||(Hg=1,function(n,t){t.__esModule=!0;function e(a){return a&&a.__esModule?a:{default:a}}var r=yn(),i=Zn(),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}(ba,ba.exports)),ba.exports}var zg;function Fv(){if(zg)return Rs;zg=1,Rs.__esModule=!0,Rs.registerDefaultHelpers=v,Rs.moveHelperToHooks=_;function n(b){return b&&b.__esModule?b:{default:b}}var t=hk(),e=n(t),r=dk(),i=n(r),s=pk(),a=n(s),l=gk(),c=n(l),h=mk(),f=n(h),g=yk(),d=n(g),m=vk(),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 Rs}var _a={},wa={exports:{}},Vg;function bk(){return Vg||(Vg=1,function(n,t){t.__esModule=!0;var e=yn();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}(wa,wa.exports)),wa.exports}var $g;function _k(){if($g)return _a;$g=1,_a.__esModule=!0,_a.registerDefaultDecorators=r;function n(i){return i&&i.__esModule?i:{default:i}}var t=bk(),e=n(t);function r(i){e.default(i)}return _a}var xa={exports:{}},Gg;function Nv(){return Gg||(Gg=1,function(n,t){t.__esModule=!0;var e=yn(),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}(xa,xa.exports)),xa.exports}var Ui={},Sa={},Yg;function wk(){if(Yg)return Sa;Yg=1,Sa.__esModule=!0,Sa.createNewLookupObject=t;var n=yn();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 Sa}var Kg;function jv(){if(Kg)return Ui;Kg=1,Ui.__esModule=!0,Ui.createProtoAccessControl=s,Ui.resultIsAllowed=a,Ui.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=wk(),e=Nv(),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 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(`
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 Ui}var Xg;function Sh(){if(Xg)return $n;Xg=1,$n.__esModule=!0,$n.HandlebarsEnvironment=p;function n(_){return _&&_.__esModule?_:{default:_}}var t=yn(),e=Zn(),r=n(e),i=Fv(),s=_k(),a=Nv(),l=n(a),c=jv(),h="4.7.7";$n.VERSION=h;var f=8;$n.COMPILER_REVISION=f;var g=7;$n.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"};$n.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 $n.log=v,$n.createFrame=t.createFrame,$n.logger=l.default,$n}var Ea={exports:{}},Jg;function xk(){return Jg||(Jg=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}(Ea,Ea.exports)),Ea.exports}var xr={},Aa={},Zg;function Sk(){if(Zg)return Aa;Zg=1,Aa.__esModule=!0,Aa.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 Aa}var Qg;function Ek(){if(Qg)return xr;Qg=1,xr.__esModule=!0,xr.checkRevision=f,xr.template=g,xr.wrapProgram=d,xr.resolvePartial=m,xr.invokePartial=p,xr.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=yn(),r=t(e),i=Zn(),s=n(i),a=Sh(),l=Fv(),c=Sk(),h=jv();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: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)+`:
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 xr}var ka={exports:{}},tm;function Uv(){return tm||(tm=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}(ka,ka.exports)),ka.exports}var em;function Ak(){return em||(em=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=Sh(),s=r(i),a=xk(),l=e(a),c=Zn(),h=e(c),f=yn(),g=r(f),d=Ek(),m=r(d),p=Uv(),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}(fa,fa.exports)),fa.exports}var Ra={exports:{}},nm;function qv(){return nm||(nm=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}(Ra,Ra.exports)),Ra.exports}var qi={},Ma={exports:{}},rm;function kk(){return rm||(rm=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
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}(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(),`;
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}(Ma,Ma.exports)),Ma.exports}var Oa={exports:{}},Pa={exports:{}},im;function Wv(){return im||(im=1,function(n,t){t.__esModule=!0;function e(h){return h&&h.__esModule?h:{default:h}}var r=Zn(),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}(Pa,Pa.exports)),Pa.exports}var sm;function Rk(){return sm||(sm=1,function(n,t){t.__esModule=!0;function e(f){return f&&f.__esModule?f:{default:f}}var r=Wv(),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}(Oa,Oa.exports)),Oa.exports}var En={},om;function Mk(){if(om)return En;om=1,En.__esModule=!0,En.SourceLocation=i,En.id=s,En.stripFlags=a,En.stripComment=l,En.preparePath=c,En.prepareMustache=h,En.prepareRawBlock=f,En.prepareBlock=g,En.prepareProgram=d,En.preparePartialBlock=m;function n(p){return p&&p.__esModule?p:{default:p}}var t=Zn(),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 En}var am;function Ok(){if(am)return qi;am=1,qi.__esModule=!0,qi.parseWithoutProcessing=f,qi.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=kk(),r=t(e),i=Rk(),s=t(i),a=Mk(),l=n(a),c=yn();qi.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 qi}var Wi={},lm;function Pk(){if(lm)return Wi;lm=1,Wi.__esModule=!0,Wi.Compiler=l,Wi.precompile=c,Wi.compile=h;function n(d){return d&&d.__esModule?d:{default:d}}var t=Zn(),e=n(t),r=yn(),i=qv(),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 Wi}var Ca={exports:{}},La={exports:{}},Ms={},nc={},Ta={},Ia={},um;function Ck(){if(um)return Ia;um=1;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Ia.encode=function(t){if(0<=t&&t<n.length)return n[t];throw new TypeError("Must be between 0 and 63: "+t)},Ia.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},Ia}var cm;function Hv(){if(cm)return Ta;cm=1;var n=Ck(),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 Ta.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},Ta.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},Ta}var rc={},fm;function ho(){return fm||(fm=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}(rc)),rc}var ic={},hm;function zv(){if(hm)return ic;hm=1;var n=ho(),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()},ic.ArraySet=r,ic}var sc={},dm;function Lk(){if(dm)return sc;dm=1;var n=ho();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},sc.MappingList=e,sc}var pm;function Vv(){if(pm)return nc;pm=1;var n=Hv(),t=ho(),e=zv().ArraySet,r=Lk().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())},nc.SourceMapGenerator=i,nc}var Os={},oc={},gm;function Tk(){return gm||(gm=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}}(oc)),oc}var ac={},mm;function Ik(){if(mm)return ac;mm=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 ac.quickSort=function(r,i){e(r,i,0,r.length-1)},ac}var ym;function Bk(){if(ym)return Os;ym=1;var n=ho(),t=Tk(),e=zv().ArraySet,r=Hv(),i=Ik().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},Os.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}},Os.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)},Os.IndexedSourceMapConsumer=c,Os}var lc={},vm;function Dk(){if(vm)return lc;vm=1;var n=Vv().SourceMapGenerator,t=ho(),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}},lc.SourceNode=s,lc}var bm;function Fk(){return bm||(bm=1,Ms.SourceMapGenerator=Vv().SourceMapGenerator,Ms.SourceMapConsumer=Bk().SourceMapConsumer,Ms.SourceNode=Dk().SourceNode),Ms}var _m;function Nk(){return _m||(_m=1,function(n,t){t.__esModule=!0;var e=yn(),r=void 0;try{var i=Fk();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}(La,La.exports)),La.exports}var wm;function jk(){return wm||(wm=1,function(n,t){t.__esModule=!0;function e(d){return d&&d.__esModule?d:{default:d}}var r=Sh(),i=Zn(),s=e(i),a=yn(),l=Nk(),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
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
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(","),`) {
@@ -19,33 +19,33 @@ Expecting `+G.join(", ")+", got '"+(this.terminals_[O]||O)+"'":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 _=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:{}};/**
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}(Ca,Ca.exports)),Ca.exports}var xm;function Uk(){return xm||(xm=1,function(n,t){t.__esModule=!0;function e(S){return S&&S.__esModule?S:{default:S}}var r=Ak(),i=e(r),s=qv(),a=e(s),l=Ok(),c=Pk(),h=jk(),f=e(h),g=Wv(),d=e(g),m=Uv(),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}(ca,ca.exports)),ca.exports}var qk=Uk();const Ie=Si(qk);var Ns={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 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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},b1={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_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&&gt.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&&gt.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,`{
29
+ */var Wk=Ns.exports,Sm;function Hk(){return Sm||(Sm=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]",Mt="[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]",an="[object WeakSet]",Ge="[object ArrayBuffer]",ye="[object DataView]",On="[object Float32Array]",T="[object Float64Array]",E="[object Int8Array]",R="[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,Pn=RegExp(ne.source),fs=RegExp(Qr.source),Vl=/<%-([\s\S]+?)%>/g,Qn=/<%([\s\S]+?)%>/g,wo=/<%=([\s\S]+?)%>/g,I=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,M=/[^.[\]]+|\[(?:(-?\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]/,U_=/\\(\\)?/g,q_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ad=/\w*$/,W_=/^[-+]0x[0-9a-f]+$/i,H_=/^0b[01]+$/i,z_=/^\[object .+?Constructor\]$/,V_=/^0o[0-7]+$/i,$_=/^(?:0|[1-9]\d*)$/,G_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xo=/($^)/,Y_=/['\n\r\u2028\u2029\\]/g,So="\\ud800-\\udfff",K_="\\u0300-\\u036f",X_="\\ufe20-\\ufe2f",J_="\\u20d0-\\u20ff",ld=K_+X_+J_,ud="\\u2700-\\u27bf",cd="a-z\\xdf-\\xf6\\xf8-\\xff",Z_="\\xac\\xb1\\xd7\\xf7",Q_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",t1="\\u2000-\\u206f",e1=" \\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",fd="A-Z\\xc0-\\xd6\\xd8-\\xde",hd="\\ufe0e\\ufe0f",dd=Z_+Q_+t1+e1,$l="['’]",n1="["+So+"]",pd="["+dd+"]",Eo="["+ld+"]",gd="\\d+",r1="["+ud+"]",md="["+cd+"]",yd="[^"+So+dd+gd+ud+cd+fd+"]",Gl="\\ud83c[\\udffb-\\udfff]",i1="(?:"+Eo+"|"+Gl+")",vd="[^"+So+"]",Yl="(?:\\ud83c[\\udde6-\\uddff]){2}",Kl="[\\ud800-\\udbff][\\udc00-\\udfff]",ki="["+fd+"]",bd="\\u200d",_d="(?:"+md+"|"+yd+")",s1="(?:"+ki+"|"+yd+")",wd="(?:"+$l+"(?:d|ll|m|re|s|t|ve))?",xd="(?:"+$l+"(?:D|LL|M|RE|S|T|VE))?",Sd=i1+"?",Ed="["+hd+"]?",o1="(?:"+bd+"(?:"+[vd,Yl,Kl].join("|")+")"+Ed+Sd+")*",a1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ad=Ed+Sd+o1,u1="(?:"+[r1,Yl,Kl].join("|")+")"+Ad,c1="(?:"+[vd+Eo+"?",Eo,Yl,Kl,n1].join("|")+")",f1=RegExp($l,"g"),h1=RegExp(Eo,"g"),Xl=RegExp(Gl+"(?="+Gl+")|"+c1+Ad,"g"),d1=RegExp([ki+"?"+md+"+"+wd+"(?="+[pd,ki,"$"].join("|")+")",s1+"+"+xd+"(?="+[pd,ki+_d,"$"].join("|")+")",ki+"?"+_d+"+"+wd,ki+"+"+xd,l1,a1,gd,u1].join("|"),"g"),p1=RegExp("["+bd+So+ld+hd+"]"),g1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,m1=["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"],y1=-1,ve={};ve[On]=ve[T]=ve[E]=ve[R]=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[On]=ge[T]=ge[E]=ge[R]=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 v1={À:"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"},b1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_1={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},w1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},x1=parseFloat,S1=parseInt,kd=typeof We=="object"&&We&&We.Object===Object&&We,E1=typeof self=="object"&&self&&self.Object===Object&&self,Ye=kd||E1||Function("return this")(),Jl=t&&!t.nodeType&&t,ti=Jl&&!0&&n&&!n.nodeType&&n,Rd=ti&&ti.exports===Jl,Zl=Rd&&kd.process,Cn=function(){try{var Z=ti&&ti.require&&ti.require("util").types;return Z||Zl&&Zl.binding&&Zl.binding("util")}catch{}}(),Md=Cn&&Cn.isArrayBuffer,Od=Cn&&Cn.isDate,Pd=Cn&&Cn.isMap,Cd=Cn&&Cn.isRegExp,Ld=Cn&&Cn.isSet,Td=Cn&&Cn.isTypedArray;function vn(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 A1(Z,ct,it,Ot){for(var jt=-1,ie=Z==null?0:Z.length;++jt<ie;){var je=Z[jt];ct(Ot,je,it(je),Z)}return Ot}function Ln(Z,ct){for(var it=-1,Ot=Z==null?0:Z.length;++it<Ot&&ct(Z[it],it,Z)!==!1;);return Z}function k1(Z,ct){for(var it=Z==null?0:Z.length;it--&&ct(Z[it],it,Z)!==!1;);return Z}function Id(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 Ir(Z,ct){for(var it=-1,Ot=Z==null?0:Z.length,jt=0,ie=[];++it<Ot;){var je=Z[it];ct(je,it,Z)&&(ie[jt++]=je)}return ie}function Ao(Z,ct){var it=Z==null?0:Z.length;return!!it&&Ri(Z,ct,0)>-1}function Ql(Z,ct,it){for(var Ot=-1,jt=Z==null?0:Z.length;++Ot<jt;)if(it(ct,Z[Ot]))return!0;return!1}function Se(Z,ct){for(var it=-1,Ot=Z==null?0:Z.length,jt=Array(Ot);++it<Ot;)jt[it]=ct(Z[it],it,Z);return jt}function Br(Z,ct){for(var it=-1,Ot=ct.length,jt=Z.length;++it<Ot;)Z[jt+it]=ct[it];return Z}function tu(Z,ct,it,Ot){var jt=-1,ie=Z==null?0:Z.length;for(Ot&&ie&&(it=Z[++jt]);++jt<ie;)it=ct(it,Z[jt],jt,Z);return it}function R1(Z,ct,it,Ot){var jt=Z==null?0:Z.length;for(Ot&&jt&&(it=Z[--jt]);jt--;)it=ct(it,Z[jt],jt,Z);return it}function eu(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=nu("length");function O1(Z){return Z.split("")}function P1(Z){return Z.match(xe)||[]}function Bd(Z,ct,it){var Ot;return it(Z,function(jt,ie,je){if(ct(jt,ie,je))return Ot=ie,!1}),Ot}function ko(Z,ct,it,Ot){for(var jt=Z.length,ie=it+(Ot?1:-1);Ot?ie--:++ie<jt;)if(ct(Z[ie],ie,Z))return ie;return-1}function Ri(Z,ct,it){return ct===ct?W1(Z,ct,it):ko(Z,Dd,it)}function C1(Z,ct,it,Ot){for(var jt=it-1,ie=Z.length;++jt<ie;)if(Ot(Z[jt],ct))return jt;return-1}function Dd(Z){return Z!==Z}function Fd(Z,ct){var it=Z==null?0:Z.length;return it?iu(Z,ct)/it:kt}function nu(Z){return function(ct){return ct==null?e:ct[Z]}}function ru(Z){return function(ct){return Z==null?e:Z[ct]}}function Nd(Z,ct,it,Ot,jt){return jt(Z,function(ie,je,he){it=Ot?(Ot=!1,ie):ct(it,ie,je,he)}),it}function L1(Z,ct){var it=Z.length;for(Z.sort(ct);it--;)Z[it]=Z[it].value;return Z}function iu(Z,ct){for(var it,Ot=-1,jt=Z.length;++Ot<jt;){var ie=ct(Z[Ot]);ie!==e&&(it=it===e?ie:it+ie)}return it}function su(Z,ct){for(var it=-1,Ot=Array(Z);++it<Z;)Ot[it]=ct(it);return Ot}function T1(Z,ct){return Se(ct,function(it){return[it,Z[it]]})}function jd(Z){return Z&&Z.slice(0,Hd(Z)+1).replace(rt,"")}function bn(Z){return function(ct){return Z(ct)}}function ou(Z,ct){return Se(ct,function(it){return Z[it]})}function hs(Z,ct){return Z.has(ct)}function Ud(Z,ct){for(var it=-1,Ot=Z.length;++it<Ot&&Ri(ct,Z[it],0)>-1;);return it}function qd(Z,ct){for(var it=Z.length;it--&&Ri(ct,Z[it],0)>-1;);return it}function I1(Z,ct){for(var it=Z.length,Ot=0;it--;)Z[it]===ct&&++Ot;return Ot}var B1=ru(v1),D1=ru(b1);function F1(Z){return"\\"+w1[Z]}function N1(Z,ct){return Z==null?e:Z[ct]}function Mi(Z){return p1.test(Z)}function j1(Z){return g1.test(Z)}function U1(Z){for(var ct,it=[];!(ct=Z.next()).done;)it.push(ct.value);return it}function au(Z){var ct=-1,it=Array(Z.size);return Z.forEach(function(Ot,jt){it[++ct]=[jt,Ot]}),it}function Wd(Z,ct){return function(it){return Z(ct(it))}}function Dr(Z,ct){for(var it=-1,Ot=Z.length,jt=0,ie=[];++it<Ot;){var je=Z[it];(je===ct||je===f)&&(Z[it]=f,ie[jt++]=it)}return ie}function Ro(Z){var ct=-1,it=Array(Z.size);return Z.forEach(function(Ot){it[++ct]=Ot}),it}function q1(Z){var ct=-1,it=Array(Z.size);return Z.forEach(function(Ot){it[++ct]=[Ot,Ot]}),it}function W1(Z,ct,it){for(var Ot=it-1,jt=Z.length;++Ot<jt;)if(Z[Ot]===ct)return Ot;return-1}function H1(Z,ct,it){for(var Ot=it+1;Ot--;)if(Z[Ot]===ct)return Ot;return Ot}function Oi(Z){return Mi(Z)?V1(Z):M1(Z)}function Wn(Z){return Mi(Z)?$1(Z):O1(Z)}function Hd(Z){for(var ct=Z.length;ct--&&pt.test(Z.charAt(ct)););return ct}var z1=ru(_1);function V1(Z){for(var ct=Xl.lastIndex=0;Xl.test(Z);)++ct;return ct}function $1(Z){return Z.match(Xl)||[]}function G1(Z){return Z.match(d1)||[]}var Y1=function Z(ct){ct=ct==null?Ye:Pi.defaults(Ye.Object(),ct,Pi.pick(Ye,m1));var it=ct.Array,Ot=ct.Date,jt=ct.Error,ie=ct.Function,je=ct.Math,he=ct.Object,lu=ct.RegExp,K1=ct.String,Tn=ct.TypeError,Mo=it.prototype,X1=ie.prototype,Ci=he.prototype,Oo=ct["__core-js_shared__"],Po=X1.toString,ae=Ci.hasOwnProperty,J1=0,zd=function(){var o=/[^.]+$/.exec(Oo&&Oo.keys&&Oo.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Co=Ci.toString,Z1=Po.call(he),Q1=Ye._,tw=lu("^"+Po.call(ae).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lo=Rd?ct.Buffer:e,Fr=ct.Symbol,To=ct.Uint8Array,Vd=Lo?Lo.allocUnsafe:e,Io=Wd(he.getPrototypeOf,he),$d=he.create,Gd=Ci.propertyIsEnumerable,Bo=Mo.splice,Yd=Fr?Fr.isConcatSpreadable:e,ds=Fr?Fr.iterator:e,ei=Fr?Fr.toStringTag:e,Do=function(){try{var o=oi(he,"defineProperty");return o({},"",{}),o}catch{}}(),ew=ct.clearTimeout!==Ye.clearTimeout&&ct.clearTimeout,nw=Ot&&Ot.now!==Ye.Date.now&&Ot.now,rw=ct.setTimeout!==Ye.setTimeout&&ct.setTimeout,Fo=je.ceil,No=je.floor,uu=he.getOwnPropertySymbols,iw=Lo?Lo.isBuffer:e,Kd=ct.isFinite,sw=Mo.join,ow=Wd(he.keys,he),Ue=je.max,Ze=je.min,aw=Ot.now,lw=ct.parseInt,Xd=je.random,uw=Mo.reverse,cu=oi(ct,"DataView"),ps=oi(ct,"Map"),fu=oi(ct,"Promise"),Li=oi(ct,"Set"),gs=oi(ct,"WeakMap"),ms=oi(he,"create"),jo=gs&&new gs,Ti={},cw=ai(cu),fw=ai(ps),hw=ai(fu),dw=ai(Li),pw=ai(gs),Uo=Fr?Fr.prototype:e,ys=Uo?Uo.valueOf:e,Jd=Uo?Uo.toString:e;function B(o){if(Pe(o)&&!qt(o)&&!(o instanceof Xt)){if(o instanceof In)return o;if(ae.call(o,"__wrapped__"))return Zp(o)}return new In(o)}var Ii=function(){function o(){}return function(u){if(!Re(u))return{};if($d)return $d(u);o.prototype=u;var y=new o;return o.prototype=e,y}}();function qo(){}function In(o,u){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=e}B.templateSettings={escape:Vl,evaluate:Qn,interpolate:wo,variable:"",imports:{_:B}},B.prototype=qo.prototype,B.prototype.constructor=B,In.prototype=Ii(qo.prototype),In.prototype.constructor=In;function Xt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ct,this.__views__=[]}function gw(){var o=new Xt(this.__wrapped__);return o.__actions__=ln(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=ln(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=ln(this.__views__),o}function mw(){if(this.__filtered__){var o=new Xt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function yw(){var o=this.__wrapped__.value(),u=this.__dir__,y=qt(o),x=u<0,P=y?o.length:0,F=O2(0,P,this.__views__),H=F.start,$=F.end,tt=$-H,gt=x?$:H-1,vt=this.__iteratees__,wt=vt.length,Rt=0,Pt=Ze(tt,this.__takeCount__);if(!y||!x&&P==tt&&Pt==tt)return wp(o,this.__actions__);var Bt=[];t:for(;tt--&&Rt<Pt;){gt+=u;for(var zt=-1,Dt=o[gt];++zt<wt;){var Gt=vt[zt],Zt=Gt.iteratee,xn=Gt.type,on=Zt(Dt);if(xn==st)Dt=on;else if(!on){if(xn==dt)continue t;break t}}Bt[Rt++]=Dt}return Bt}Xt.prototype=Ii(qo.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 vw(){this.__data__=ms?ms(null):{},this.size=0}function bw(o){var u=this.has(o)&&delete this.__data__[o];return this.size-=u?1:0,u}function _w(o){var u=this.__data__;if(ms){var y=u[o];return y===c?e:y}return ae.call(u,o)?u[o]:e}function ww(o){var u=this.__data__;return ms?u[o]!==e:ae.call(u,o)}function xw(o,u){var y=this.__data__;return this.size+=this.has(o)?0:1,y[o]=ms&&u===e?c:u,this}ni.prototype.clear=vw,ni.prototype.delete=bw,ni.prototype.get=_w,ni.prototype.has=ww,ni.prototype.set=xw;function dr(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 Sw(){this.__data__=[],this.size=0}function Ew(o){var u=this.__data__,y=Wo(u,o);if(y<0)return!1;var x=u.length-1;return y==x?u.pop():Bo.call(u,y,1),--this.size,!0}function Aw(o){var u=this.__data__,y=Wo(u,o);return y<0?e:u[y][1]}function kw(o){return Wo(this.__data__,o)>-1}function Rw(o,u){var y=this.__data__,x=Wo(y,o);return x<0?(++this.size,y.push([o,u])):y[x][1]=u,this}dr.prototype.clear=Sw,dr.prototype.delete=Ew,dr.prototype.get=Aw,dr.prototype.has=kw,dr.prototype.set=Rw;function pr(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(ps||dr),string:new ni}}function Ow(o){var u=ta(this,o).delete(o);return this.size-=u?1:0,u}function Pw(o){return ta(this,o).get(o)}function Cw(o){return ta(this,o).has(o)}function Lw(o,u){var y=ta(this,o),x=y.size;return y.set(o,u),this.size+=y.size==x?0:1,this}pr.prototype.clear=Mw,pr.prototype.delete=Ow,pr.prototype.get=Pw,pr.prototype.has=Cw,pr.prototype.set=Lw;function ri(o){var u=-1,y=o==null?0:o.length;for(this.__data__=new pr;++u<y;)this.add(o[u])}function Tw(o){return this.__data__.set(o,c),this}function Iw(o){return this.__data__.has(o)}ri.prototype.add=ri.prototype.push=Tw,ri.prototype.has=Iw;function Hn(o){var u=this.__data__=new dr(o);this.size=u.size}function Bw(){this.__data__=new dr,this.size=0}function Dw(o){var u=this.__data__,y=u.delete(o);return this.size=u.size,y}function Fw(o){return this.__data__.get(o)}function Nw(o){return this.__data__.has(o)}function jw(o,u){var y=this.__data__;if(y instanceof dr){var x=y.__data__;if(!ps||x.length<i-1)return x.push([o,u]),this.size=++y.size,this;y=this.__data__=new pr(x)}return y.set(o,u),this.size=y.size,this}Hn.prototype.clear=Bw,Hn.prototype.delete=Dw,Hn.prototype.get=Fw,Hn.prototype.has=Nw,Hn.prototype.set=jw;function Zd(o,u){var y=qt(o),x=!y&&li(o),P=!y&&!x&&Wr(o),F=!y&&!x&&!P&&Ni(o),H=y||x||P||F,$=H?su(o.length,K1):[],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")||vr(gt,tt)))&&$.push(gt);return $}function Qd(o){var u=o.length;return u?o[xu(0,u-1)]:e}function Uw(o,u){return ea(ln(o),ii(u,0,o.length))}function qw(o){return ea(ln(o))}function hu(o,u,y){(y!==e&&!zn(o[u],y)||y===e&&!(u in o))&&gr(o,u,y)}function vs(o,u,y){var x=o[u];(!(ae.call(o,u)&&zn(x,y))||y===e&&!(u in o))&&gr(o,u,y)}function Wo(o,u){for(var y=o.length;y--;)if(zn(o[y][0],u))return y;return-1}function Ww(o,u,y,x){return Nr(o,function(P,F,H){u(x,P,y(P),H)}),x}function tp(o,u){return o&&er(u,Ve(u),o)}function Hw(o,u){return o&&er(u,cn(u),o)}function gr(o,u,y){u=="__proto__"&&Do?Do(o,u,{configurable:!0,enumerable:!0,value:y,writable:!0}):o[u]=y}function du(o,u){for(var y=-1,x=u.length,P=it(x),F=o==null;++y<x;)P[y]=F?e:Gu(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 Bn(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=C2(o),!$)return ln(o,H)}else{var wt=Qe(o),Rt=wt==j||wt==ut;if(Wr(o))return Ep(o,$);if(wt==Tt||wt==ot||Rt&&!P){if(H=tt||Rt?{}:Hp(o),!$)return tt?_2(o,Hw(H,o)):b2(o,tp(H,o))}else{if(!ge[wt])return P?o:{};H=L2(o,wt,$)}}F||(F=new Hn);var Pt=F.get(o);if(Pt)return Pt;F.set(o,H),vg(o)?o.forEach(function(Dt){H.add(Bn(Dt,u,y,Dt,o,F))}):mg(o)&&o.forEach(function(Dt,Gt){H.set(Gt,Bn(Dt,u,y,Gt,o,F))});var Bt=gt?tt?Tu:Lu:tt?cn:Ve,zt=vt?e:Bt(o);return Ln(zt||o,function(Dt,Gt){zt&&(Gt=Dt,Dt=o[Gt]),vs(H,Gt,Bn(Dt,u,y,Gt,o,F))}),H}function zw(o){var u=Ve(o);return function(y){return ep(y,o,u)}}function ep(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 np(o,u,y){if(typeof o!="function")throw new Tn(a);return As(function(){o.apply(e,y)},u)}function bs(o,u,y,x){var P=-1,F=Ao,H=!0,$=o.length,tt=[],gt=u.length;if(!$)return tt;y&&(u=Se(u,bn(y))),x?(F=Ql,H=!1):u.length>=i&&(F=hs,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 Rt=gt;Rt--;)if(u[Rt]===wt)continue t;tt.push(vt)}else F(u,wt,x)||tt.push(vt)}return tt}var Nr=Op(tr),rp=Op(gu,!0);function Vw(o,u){var y=!0;return Nr(o,function(x,P,F){return y=!!u(x,P,F),y}),y}function Ho(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&&!wn(H):y(H,$)))var $=H,tt=F}return tt}function $w(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:_g(x);y<x;)o[y++]=u;return o}function ip(o,u){var y=[];return Nr(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=I2),P||(P=[]);++F<H;){var $=o[F];u>0&&y($)?u>1?Ke($,u-1,y,x,P):Br(P,$):x||(P[P.length]=$)}return P}var pu=Pp(),sp=Pp(!0);function tr(o,u){return o&&pu(o,u,Ve)}function gu(o,u){return o&&sp(o,u,Ve)}function zo(o,u){return Ir(u,function(y){return br(o[y])})}function si(o,u){u=Ur(u,o);for(var y=0,x=u.length;o!=null&&y<x;)o=o[nr(u[y++])];return y&&y==x?o:e}function op(o,u,y){var x=u(o);return qt(o)?x:Br(x,y(o))}function rn(o){return o==null?o===e?ze:Mt:ei&&ei in he(o)?M2(o):q2(o)}function mu(o,u){return o>u}function Gw(o,u){return o!=null&&ae.call(o,u)}function Yw(o,u){return o!=null&&u in he(o)}function Kw(o,u,y){return o>=Ze(u,y)&&o<Ue(u,y)}function yu(o,u,y){for(var x=y?Ql:Ao,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,bn(u))),tt=Ze(vt.length,tt),$[H]=!y&&(u||P>=120&&vt.length>=120)?new ri(H&&vt):e}vt=o[0];var wt=-1,Rt=$[0];t:for(;++wt<P&&gt.length<tt;){var Pt=vt[wt],Bt=u?u(Pt):Pt;if(Pt=y||Pt!==0?Pt:0,!(Rt?hs(Rt,Bt):x(gt,Bt,y))){for(H=F;--H;){var zt=$[H];if(!(zt?hs(zt,Bt):x(o[H],Bt,y)))continue t}Rt&&Rt.push(Bt),gt.push(Pt)}}return gt}function Xw(o,u,y,x){return tr(o,function(P,F,H){u(x,y(P),F,H)}),x}function _s(o,u,y){u=Ur(u,o),o=Gp(o,u);var x=o==null?o:o[nr(Fn(u))];return x==null?e:vn(x,o,y)}function ap(o){return Pe(o)&&rn(o)==ot}function Jw(o){return Pe(o)&&rn(o)==Ge}function Zw(o){return Pe(o)&&rn(o)==mt}function ws(o,u,y,x,P){return o===u?!0:o==null||u==null||!Pe(o)&&!Pe(u)?o!==o&&u!==u:Qw(o,u,y,x,ws,P)}function Qw(o,u,y,x,P,F){var H=qt(o),$=qt(u),tt=H?V:Qe(o),gt=$?V:Qe(u);tt=tt==ot?Tt:tt,gt=gt==ot?Tt:gt;var vt=tt==Tt,wt=gt==Tt,Rt=tt==gt;if(Rt&&Wr(o)){if(!Wr(u))return!1;H=!0,vt=!1}if(Rt&&!vt)return F||(F=new Hn),H||Ni(o)?Up(o,u,y,x,P,F):k2(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 Hn),P(zt,Dt,y,x,F)}}return Rt?(F||(F=new Hn),R2(o,u,y,x,P,F)):!1}function t2(o){return Pe(o)&&Qe(o)==St}function vu(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 Hn;if(x)var Rt=x(gt,vt,tt,o,u,wt);if(!(Rt===e?ws(vt,gt,p|v,x,wt):Rt))return!1}}return!0}function lp(o){if(!Re(o)||D2(o))return!1;var u=br(o)?tw:z_;return u.test(ai(o))}function e2(o){return Pe(o)&&rn(o)==Oe}function n2(o){return Pe(o)&&Qe(o)==ue}function r2(o){return Pe(o)&&aa(o.length)&&!!ve[rn(o)]}function up(o){return typeof o=="function"?o:o==null?fn:typeof o=="object"?qt(o)?hp(o[0],o[1]):fp(o):Cg(o)}function bu(o){if(!Es(o))return ow(o);var u=[];for(var y in he(o))ae.call(o,y)&&y!="constructor"&&u.push(y);return u}function i2(o){if(!Re(o))return U2(o);var u=Es(o),y=[];for(var x in o)x=="constructor"&&(u||!ae.call(o,x))||y.push(x);return y}function _u(o,u){return o<u}function cp(o,u){var y=-1,x=un(o)?it(o.length):[];return Nr(o,function(P,F,H){x[++y]=u(P,F,H)}),x}function fp(o){var u=Bu(o);return u.length==1&&u[0][2]?Vp(u[0][0],u[0][1]):function(y){return y===o||vu(y,o,u)}}function hp(o,u){return Fu(o)&&zp(u)?Vp(nr(o),u):function(y){var x=Gu(y,o);return x===e&&x===u?Yu(y,o):ws(u,x,p|v)}}function Vo(o,u,y,x,P){o!==u&&pu(u,function(F,H){if(P||(P=new Hn),Re(F))s2(o,u,H,y,Vo,x,P);else{var $=x?x(ju(o,H),F,H+"",o,u,P):e;$===e&&($=F),hu(o,H,$)}},cn)}function s2(o,u,y,x,P,F,H){var $=ju(o,y),tt=ju(u,y),gt=H.get(tt);if(gt){hu(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&&Wr(tt),Bt=!Rt&&!Pt&&Ni(tt);vt=tt,Rt||Pt||Bt?qt($)?vt=$:Le($)?vt=ln($):Pt?(wt=!1,vt=Ep(tt,!0)):Bt?(wt=!1,vt=Ap(tt,!0)):vt=[]:ks(tt)||li(tt)?(vt=$,li($)?vt=wg($):(!Re($)||br($))&&(vt=Hp(tt))):wt=!1}wt&&(H.set(tt,vt),P(vt,tt,x,F,H),H.delete(tt)),hu(o,y,vt)}function dp(o,u){var y=o.length;if(y)return u+=u<0?y:0,vr(u,y)?o[u]:e}function pp(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=[fn];var x=-1;u=Se(u,bn(It()));var P=cp(o,function(F,H,$){var tt=Se(u,function(gt){return gt(F)});return{criteria:tt,index:++x,value:F}});return L1(P,function(F,H){return v2(F,H,y)})}function o2(o,u){return gp(o,u,function(y,x){return Yu(o,x)})}function gp(o,u,y){for(var x=-1,P=u.length,F={};++x<P;){var H=u[x],$=si(o,H);y($,H)&&xs(F,Ur(H,o),$)}return F}function a2(o){return function(u){return si(u,o)}}function wu(o,u,y,x){var P=x?C1:Ri,F=-1,H=u.length,$=o;for(o===u&&(u=ln(u)),y&&($=Se(o,bn(y)));++F<H;)for(var tt=0,gt=u[F],vt=y?y(gt):gt;(tt=P($,vt,tt,x))>-1;)$!==o&&Bo.call($,tt,1),Bo.call(o,tt,1);return o}function mp(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;vr(P)?Bo.call(o,P,1):Au(o,P)}}return o}function xu(o,u){return o+No(Xd()*(u-o+1))}function l2(o,u,y,x){for(var P=-1,F=Ue(Fo((u-o)/(y||1)),0),H=it(F);F--;)H[x?F:++P]=o,o+=y;return H}function Su(o,u){var y="";if(!o||u<1||u>bt)return y;do u%2&&(y+=o),u=No(u/2),u&&(o+=o);while(u);return y}function $t(o,u){return Uu($p(o,u,fn),o+"")}function u2(o){return Qd(ji(o))}function c2(o,u){var y=ji(o);return ea(y,ii(u,0,y.length))}function xs(o,u,y,x){if(!Re(o))return o;u=Ur(u,o);for(var P=-1,F=u.length,H=F-1,$=o;$!=null&&++P<F;){var tt=nr(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:vr(u[P+1])?[]:{})}vs($,tt,gt),$=$[tt]}return o}var yp=jo?function(o,u){return jo.set(o,u),o}:fn,f2=Do?function(o,u){return Do(o,"toString",{configurable:!0,enumerable:!1,value:Xu(u),writable:!0})}:fn;function h2(o){return ea(ji(o))}function Dn(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 d2(o,u){var y;return Nr(o,function(x,P,F){return y=u(x,P,F),!y}),!!y}function $o(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&&!wn(H)&&(y?H<=u:H<u)?x=F+1:P=F}return P}return Eu(o,u,fn,y)}function Eu(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=wn(u),gt=u===e;P<F;){var vt=No((P+F)/2),wt=y(o[vt]),Rt=wt!==e,Pt=wt===null,Bt=wt===wt,zt=wn(wt);if(H)var Dt=x||Bt;else gt?Dt=Bt&&(x||Rt):$?Dt=Bt&&Rt&&(x||!Pt):tt?Dt=Bt&&Rt&&!Pt&&(x||!zt):Pt||zt?Dt=!1:Dt=x?wt<=u:wt<u;Dt?P=vt+1:F=vt}return Ze(F,Lt)}function vp(o,u){for(var y=-1,x=o.length,P=0,F=[];++y<x;){var H=o[y],$=u?u(H):H;if(!y||!zn($,tt)){var tt=$;F[P++]=H===0?0:H}}return F}function bp(o){return typeof o=="number"?o:wn(o)?kt:+o}function _n(o){if(typeof o=="string")return o;if(qt(o))return Se(o,_n)+"";if(wn(o))return Jd?Jd.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function jr(o,u,y){var x=-1,P=Ao,F=o.length,H=!0,$=[],tt=$;if(y)H=!1,P=Ql;else if(F>=i){var gt=u?null:E2(o);if(gt)return Ro(gt);H=!1,P=hs,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 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 Au(o,u){return u=Ur(u,o),o=Gp(o,u),o==null||delete o[nr(Fn(u))]}function _p(o,u,y,x){return xs(o,u,y(si(o,u)),x)}function Go(o,u,y,x){for(var P=o.length,F=x?P:-1;(x?F--:++F<P)&&u(o[F],F,o););return y?Dn(o,x?0:F,x?F+1:P):Dn(o,x?F+1:0,x?P:F)}function wp(o,u){var y=o;return y instanceof Xt&&(y=y.value()),tu(u,function(x,P){return P.func.apply(P.thisArg,Br([x],P.args))},y)}function ku(o,u,y){var x=o.length;if(x<2)return x?jr(o[0]):[];for(var P=-1,F=it(x);++P<x;)for(var H=o[P],$=-1;++$<x;)$!=P&&(F[P]=bs(F[P]||H,o[$],u,y));return jr(Ke(F,1),u,y)}function xp(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 Ru(o){return Le(o)?o:[]}function Mu(o){return typeof o=="function"?o:fn}function Ur(o,u){return qt(o)?o:Fu(o,u)?[o]:Jp(se(o))}var p2=$t;function qr(o,u,y){var x=o.length;return y=y===e?x:y,!u&&y>=x?o:Dn(o,u,y)}var Sp=ew||function(o){return Ye.clearTimeout(o)};function Ep(o,u){if(u)return o.slice();var y=o.length,x=Vd?Vd(y):new o.constructor(y);return o.copy(x),x}function Ou(o){var u=new o.constructor(o.byteLength);return new To(u).set(new To(o)),u}function g2(o,u){var y=u?Ou(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.byteLength)}function m2(o){var u=new o.constructor(o.source,ad.exec(o));return u.lastIndex=o.lastIndex,u}function y2(o){return ys?he(ys.call(o)):{}}function Ap(o,u){var y=u?Ou(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.length)}function kp(o,u){if(o!==u){var y=o!==e,x=o===null,P=o===o,F=wn(o),H=u!==e,$=u===null,tt=u===u,gt=wn(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 v2(o,u,y){for(var x=-1,P=o.criteria,F=u.criteria,H=P.length,$=y.length;++x<H;){var tt=kp(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 Rp(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),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 ln(o,u){var y=-1,x=o.length;for(u||(u=it(x));++y<x;)u[y]=o[y];return u}function er(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?gr(y,$,tt):vs(y,$,tt)}return y}function b2(o,u){return er(o,Du(o),u)}function _2(o,u){return er(o,qp(o),u)}function Yo(o,u){return function(y,x){var P=qt(y)?A1:Ww,F=u?u():{};return P(y,o,It(x,2),F)}}function Bi(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&&sn(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 Op(o,u){return function(y,x){if(y==null)return y;if(!un(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 Pp(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 w2(o,u,y){var x=u&_,P=Ss(o);function F(){var H=this&&this!==Ye&&this instanceof F?P:o;return H.apply(x?y:this,arguments)}return F}function Cp(o){return function(u){u=se(u);var y=Mi(u)?Wn(u):e,x=y?y[0]:u.charAt(0),P=y?qr(y,1).join(""):u.slice(1);return x[o]()+P}}function Di(o){return function(u){return tu(Og(Mg(u).replace(f1,"")),o,"")}}function Ss(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=Ii(o.prototype),x=o.apply(y,u);return Re(x)?x:y}}function x2(o,u,y){var x=Ss(o);function P(){for(var F=arguments.length,H=it(F),$=F,tt=Fi(P);$--;)H[$]=arguments[$];var gt=F<3&&H[0]!==tt&&H[F-1]!==tt?[]:Dr(H,tt);if(F-=gt.length,F<y)return Dp(o,u,Ko,P.placeholder,e,H,gt,e,e,y-F);var vt=this&&this!==Ye&&this instanceof P?x:o;return vn(vt,this,H)}return P}function Lp(o){return function(u,y,x){var P=he(u);if(!un(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 Tp(o){return yr(function(u){var y=u.length,x=y,P=In.prototype.thru;for(o&&u.reverse();x--;){var F=u[x];if(typeof F!="function")throw new Tn(a);if(P&&!H&&Qo(F)=="wrapper")var H=new In([],!0)}for(x=H?x:y;++x<y;){F=u[x];var $=Qo(F),tt=$=="wrapper"?Iu(F):e;tt&&Nu(tt[0])&&tt[1]==(L|O|k|N)&&!tt[4].length&&tt[9]==1?H=H[Qo(tt[0])].apply(H,tt[3]):H=F.length==1&&Nu(F)?H[$]():H.thru(F)}return function(){var gt=arguments,vt=gt[0];if(H&&gt.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 Ko(o,u,y,x,P,F,H,$,tt,gt){var vt=u&L,wt=u&_,Rt=u&b,Pt=u&(O|w),Bt=u&Y,zt=Rt?e:Ss(o);function Dt(){for(var Gt=arguments.length,Zt=it(Gt),xn=Gt;xn--;)Zt[xn]=arguments[xn];if(Pt)var on=Fi(Dt),Sn=I1(Zt,on);if(x&&(Zt=Rp(Zt,x,P,Pt)),F&&(Zt=Mp(Zt,F,H,Pt)),Gt-=Sn,Pt&&Gt<gt){var Te=Dr(Zt,on);return Dp(o,u,Ko,Dt.placeholder,y,Zt,Te,$,tt,gt-Gt)}var Vn=wt?y:this,wr=Rt?Vn[o]:o;return Gt=Zt.length,$?Zt=W2(Zt,$):Bt&&Gt>1&&Zt.reverse(),vt&&tt<Gt&&(Zt.length=tt),this&&this!==Ye&&this instanceof Dt&&(wr=zt||Ss(wr)),wr.apply(Vn,Zt)}return Dt}function Ip(o,u){return function(y,x){return Xw(y,o,u(x),{})}}function Xo(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=_n(y),x=_n(x)):(y=bp(y),x=bp(x)),P=o(y,x)}return P}}function Pu(o){return yr(function(u){return u=Se(u,bn(It())),$t(function(y){var x=this;return o(u,function(P){return vn(P,x,y)})})})}function Jo(o,u){u=u===e?" ":_n(u);var y=u.length;if(y<2)return y?Su(u,o):u;var x=Su(u,Fo(o/Oi(u)));return Mi(u)?qr(Wn(x),0,o).join(""):x.slice(0,o)}function S2(o,u,y,x){var P=u&_,F=Ss(o);function H(){for(var $=-1,tt=arguments.length,gt=-1,vt=x.length,wt=it(vt+tt),Rt=this&&this!==Ye&&this instanceof H?F:o;++gt<vt;)wt[gt]=x[gt];for(;tt--;)wt[gt++]=arguments[++$];return vn(Rt,P?y:this,wt)}return H}function Bp(o){return function(u,y,x){return x&&typeof x!="number"&&sn(u,y,x)&&(y=x=e),u=_r(u),y===e?(y=u,u=0):y=_r(y),x=x===e?u<y?1:-1:_r(x),l2(u,y,x,o)}}function Zo(o){return function(u,y){return typeof u=="string"&&typeof y=="string"||(u=Nn(u),y=Nn(y)),o(u,y)}}function Dp(o,u,y,x,P,F,H,$,tt,gt){var vt=u&O,wt=vt?H:e,Rt=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,Rt,$,tt,gt],Dt=y.apply(e,zt);return Nu(o)&&Yp(Dt,zt),Dt.placeholder=x,Kp(Dt,o,u)}function Cu(o){var u=je[o];return function(y,x){if(y=Nn(y),x=x==null?0:Ze(Ht(x),292),x&&Kd(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 E2=Li&&1/Ro(new Li([,-0]))[1]==_t?function(o){return new Li(o)}:Qu;function Fp(o){return function(u){var y=Qe(u);return y==St?au(u):y==ue?q1(u):T1(u,o(u))}}function mr(o,u,y,x,P,F,H,$){var tt=u&b;if(!tt&&typeof o!="function")throw new Tn(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 Rt=tt?e:Iu(o),Pt=[o,u,y,x,P,vt,wt,F,H,$];if(Rt&&j2(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:Ue(Pt[9]-gt,0),!$&&u&(O|w)&&(u&=-25),!u||u==_)var Bt=w2(o,u,y);else u==O||u==w?Bt=x2(o,u,$):(u==k||u==(_|k))&&!P.length?Bt=S2(o,u,y,x):Bt=Ko.apply(e,Pt);var zt=Rt?yp:Yp;return Kp(zt(Bt,Pt),o,u)}function Np(o,u,y,x){return o===e||zn(o,Ci[y])&&!ae.call(x,y)?u:o}function jp(o,u,y,x,P,F){return Re(o)&&Re(u)&&(F.set(u,o),Vo(o,u,e,jp,F),F.delete(u)),o}function A2(o){return ks(o)?e:o}function Up(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 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;Rt=!1;break}if(Pt){if(!eu(u,function(Gt,Zt){if(!hs(Pt,Zt)&&(Bt===Gt||P(Bt,Gt,y,x,F)))return Pt.push(Zt)})){Rt=!1;break}}else if(!(Bt===zt||P(Bt,zt,y,x,F))){Rt=!1;break}}return F.delete(o),F.delete(u),Rt}function k2(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 To(o),new To(u)));case lt:case mt:case Ft:return zn(+o,+u);case D:return o.name==u.name&&o.message==u.message;case Oe:case te:return o==u+"";case St:var $=au;case ue:var tt=x&p;if($||($=Ro),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=Up($(o),$(u),x,P,F,H);return H.delete(o),vt;case re:if(ys)return ys.call(o)==ys.call(u)}return!1}function R2(o,u,y,x,P,F){var H=y&p,$=Lu(o),tt=$.length,gt=Lu(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),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;){Rt=$[wt];var Gt=o[Rt],Zt=u[Rt];if(x)var xn=H?x(Zt,Gt,Rt,u,o,F):x(Gt,Zt,Rt,o,u,F);if(!(xn===e?Gt===Zt||P(Gt,Zt,y,x,F):xn)){zt=!1;break}Dt||(Dt=Rt=="constructor")}if(zt&&!Dt){var on=o.constructor,Sn=u.constructor;on!=Sn&&"constructor"in o&&"constructor"in u&&!(typeof on=="function"&&on instanceof on&&typeof Sn=="function"&&Sn instanceof Sn)&&(zt=!1)}return F.delete(o),F.delete(u),zt}function yr(o){return Uu($p(o,e,eg),o+"")}function Lu(o){return op(o,Ve,Du)}function Tu(o){return op(o,cn,qp)}var Iu=jo?function(o){return jo.get(o)}:Qu;function Qo(o){for(var u=o.name+"",y=Ti[u],x=ae.call(Ti,u)?y.length:0;x--;){var P=y[x],F=P.func;if(F==null||F==o)return P.name}return u}function Fi(o){var u=ae.call(B,"placeholder")?B:o;return u.placeholder}function It(){var o=B.iteratee||Ju;return o=o===Ju?up:o,arguments.length?o(arguments[0],arguments[1]):o}function ta(o,u){var y=o.__data__;return B2(u)?y[typeof u=="string"?"string":"hash"]:y.map}function Bu(o){for(var u=Ve(o),y=u.length;y--;){var x=u[y],P=o[x];u[y]=[x,P,zp(P)]}return u}function oi(o,u){var y=N1(o,u);return lp(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=Co.call(o);return x&&(u?o[ei]=y:delete o[ei]),P}var Du=uu?function(o){return o==null?[]:(o=he(o),Ir(uu(o),function(u){return Gd.call(o,u)}))}:tc,qp=uu?function(o){for(var u=[];o;)Br(u,Du(o)),o=Io(o);return u}:tc,Qe=rn;(cu&&Qe(new cu(new ArrayBuffer(1)))!=ye||ps&&Qe(new ps)!=St||fu&&Qe(fu.resolve())!=Ne||Li&&Qe(new Li)!=ue||gs&&Qe(new gs)!=ke)&&(Qe=function(o){var u=rn(o),y=u==Tt?o.constructor:e,x=y?ai(y):"";if(x)switch(x){case cw:return ye;case fw:return St;case hw:return Ne;case dw:return ue;case pw:return ke}return u});function O2(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=Ze(u,o+H);break;case"takeRight":o=Ue(o,u-H);break}}return{start:o,end:u}}function P2(o){var u=o.match(we);return u?u[1].split(pe):[]}function Wp(o,u,y){u=Ur(u,o);for(var x=-1,P=u.length,F=!1;++x<P;){var H=nr(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&&aa(P)&&vr(H,P)&&(qt(o)||li(o)))}function C2(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 Hp(o){return typeof o.constructor=="function"&&!Es(o)?Ii(Io(o)):{}}function L2(o,u,y){var x=o.constructor;switch(u){case Ge:return Ou(o);case lt:case mt:return new x(+o);case ye:return g2(o,y);case On:case T:case E:case R:case q:case K:case nt:case ht:case Ut:return Ap(o,y);case St:return new x;case Ft:case te:return new x(o);case Oe:return m2(o);case ue:return new x;case re:return y2(o)}}function T2(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 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+=`' +
31
+ `)}function I2(o){return qt(o)||li(o)||!!(Yd&&o&&o[Yd])}function vr(o,u){var y=typeof o;return u=u??bt,!!u&&(y=="number"||y!="symbol"&&$_.test(o))&&o>-1&&o%1==0&&o<u}function sn(o,u,y){if(!Re(y))return!1;var x=typeof u;return(x=="number"?un(y)&&vr(u,y.length):x=="string"&&u in y)?zn(y[u],o):!1}function Fu(o,u){if(qt(o))return!1;var y=typeof o;return y=="number"||y=="symbol"||y=="boolean"||o==null||wn(o)?!0:A.test(o)||!I.test(o)||u!=null&&o in he(u)}function B2(o){var u=typeof o;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?o!=="__proto__":o===null}function Nu(o){var u=Qo(o),y=B[u];if(typeof y!="function"||!(u in Xt.prototype))return!1;if(o===y)return!0;var x=Iu(y);return!!x&&o===x[0]}function D2(o){return!!zd&&zd in o}var F2=Oo?br:ec;function Es(o){var u=o&&o.constructor,y=typeof u=="function"&&u.prototype||Ci;return o===y}function zp(o){return o===o&&!Re(o)}function Vp(o,u){return function(y){return y==null?!1:y[o]===u&&(u!==e||o in he(y))}}function N2(o){var u=sa(o,function(x){return y.size===h&&y.clear(),x}),y=u.cache;return u}function j2(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?Rp(tt,$,u[4]):$,o[4]=tt?Dr(o[3],f):u[4]}return $=u[5],$&&(tt=o[5],o[5]=tt?Mp(tt,$,u[6]):$,o[6]=tt?Dr(o[5],f):u[6]),$=u[7],$&&(o[7]=$),x&L&&(o[8]=o[8]==null?u[8]:Ze(o[8],u[8])),o[9]==null&&(o[9]=u[9]),o[0]=u[0],o[1]=P,o}function U2(o){var u=[];if(o!=null)for(var y in he(o))u.push(y);return u}function q2(o){return Co.call(o)}function $p(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),vn(o,this,$)}}function Gp(o,u){return u.length<2?o:si(o,Dn(u,0,-1))}function W2(o,u){for(var y=o.length,x=Ze(u.length,y),P=ln(o);x--;){var F=u[x];o[x]=vr(F,y)?P[F]:e}return o}function ju(o,u){if(!(u==="constructor"&&typeof o[u]=="function")&&u!="__proto__")return o[u]}var Yp=Xp(yp),As=rw||function(o,u){return Ye.setTimeout(o,u)},Uu=Xp(f2);function Kp(o,u,y){var x=u+"";return Uu(o,T2(x,H2(P2(x),y)))}function Xp(o){var u=0,y=0;return function(){var x=aw(),P=xt-(x-y);if(y=x,P>0){if(++u>=U)return arguments[0]}else u=0;return o.apply(e,arguments)}}function ea(o,u){var y=-1,x=o.length,P=x-1;for(u=u===e?x:u;++y<u;){var F=xu(y,P),H=o[F];o[F]=o[y],o[y]=H}return o.length=u,o}var Jp=N2(function(o){var u=[];return o.charCodeAt(0)===46&&u.push(""),o.replace(M,function(y,x,P,F){u.push(P?F.replace(U_,"$1"):x||y)}),u});function nr(o){if(typeof o=="string"||wn(o))return o;var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function ai(o){if(o!=null){try{return Po.call(o)}catch{}try{return o+""}catch{}}return""}function H2(o,u){return Ln(et,function(y){var x="_."+y[0];u&y[1]&&!Ao(o,x)&&o.push(x)}),o.sort()}function Zp(o){if(o instanceof Xt)return o.clone();var u=new In(o.__wrapped__,o.__chain__);return u.__actions__=ln(o.__actions__),u.__index__=o.__index__,u.__values__=o.__values__,u}function z2(o,u,y){(y?sn(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(Fo(x/u));P<x;)H[F++]=Dn(o,P,P+=u);return H}function V2(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 $2(){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 Br(qt(y)?ln(y):[y],Ke(u,1))}var G2=$t(function(o,u){return Le(o)?bs(o,Ke(u,1,Le,!0)):[]}),Y2=$t(function(o,u){var y=Fn(u);return Le(y)&&(y=e),Le(o)?bs(o,Ke(u,1,Le,!0),It(y,2)):[]}),K2=$t(function(o,u){var y=Fn(u);return Le(y)&&(y=e),Le(o)?bs(o,Ke(u,1,Le,!0),e,y):[]});function X2(o,u,y){var x=o==null?0:o.length;return x?(u=y||u===e?1:Ht(u),Dn(o,u<0?0:u,x)):[]}function J2(o,u,y){var x=o==null?0:o.length;return x?(u=y||u===e?1:Ht(u),u=x-u,Dn(o,0,u<0?0:u)):[]}function Z2(o,u){return o&&o.length?Go(o,It(u,3),!0,!0):[]}function Q2(o,u){return o&&o.length?Go(o,It(u,3),!0):[]}function tx(o,u,y,x){var P=o==null?0:o.length;return P?(y&&typeof y!="number"&&sn(o,u,y)&&(y=0,x=P),$w(o,u,y,x)):[]}function Qp(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)),ko(o,It(u,3),P)}function tg(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):Ze(P,x-1)),ko(o,It(u,3),P,!0)}function eg(o){var u=o==null?0:o.length;return u?Ke(o,1):[]}function ex(o){var u=o==null?0:o.length;return u?Ke(o,_t):[]}function nx(o,u){var y=o==null?0:o.length;return y?(u=u===e?1:Ht(u),Ke(o,u)):[]}function rx(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 ng(o){return o&&o.length?o[0]:e}function ix(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)),Ri(o,u,P)}function sx(o){var u=o==null?0:o.length;return u?Dn(o,0,-1):[]}var ox=$t(function(o){var u=Se(o,Ru);return u.length&&u[0]===o[0]?yu(u):[]}),ax=$t(function(o){var u=Fn(o),y=Se(o,Ru);return u===Fn(y)?u=e:y.pop(),y.length&&y[0]===o[0]?yu(y,It(u,2)):[]}),lx=$t(function(o){var u=Fn(o),y=Se(o,Ru);return u=typeof u=="function"?u:e,u&&y.pop(),y.length&&y[0]===o[0]?yu(y,e,u):[]});function ux(o,u){return o==null?"":sw.call(o,u)}function Fn(o){var u=o==null?0:o.length;return u?o[u-1]:e}function cx(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):Ze(P,x-1)),u===u?H1(o,u,P):ko(o,Dd,P,!0)}function fx(o,u){return o&&o.length?dp(o,Ht(u)):e}var hx=$t(rg);function rg(o,u){return o&&o.length&&u&&u.length?wu(o,u):o}function dx(o,u,y){return o&&o.length&&u&&u.length?wu(o,u,It(y,2)):o}function px(o,u,y){return o&&o.length&&u&&u.length?wu(o,u,e,y):o}var gx=yr(function(o,u){var y=o==null?0:o.length,x=du(o,u);return mp(o,Se(u,function(P){return vr(P,y)?+P:P}).sort(kp)),x});function mx(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 mp(o,P),y}function qu(o){return o==null?o:uw.call(o)}function yx(o,u,y){var x=o==null?0:o.length;return x?(y&&typeof y!="number"&&sn(o,u,y)?(u=0,y=x):(u=u==null?0:Ht(u),y=y===e?x:Ht(y)),Dn(o,u,y)):[]}function vx(o,u){return $o(o,u)}function bx(o,u,y){return Eu(o,u,It(y,2))}function _x(o,u){var y=o==null?0:o.length;if(y){var x=$o(o,u);if(x<y&&zn(o[x],u))return x}return-1}function wx(o,u){return $o(o,u,!0)}function xx(o,u,y){return Eu(o,u,It(y,2),!0)}function Sx(o,u){var y=o==null?0:o.length;if(y){var x=$o(o,u,!0)-1;if(zn(o[x],u))return x}return-1}function Ex(o){return o&&o.length?vp(o):[]}function Ax(o,u){return o&&o.length?vp(o,It(u,2)):[]}function kx(o){var u=o==null?0:o.length;return u?Dn(o,1,u):[]}function Rx(o,u,y){return o&&o.length?(u=y||u===e?1:Ht(u),Dn(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,Dn(o,u<0?0:u,x)):[]}function Ox(o,u){return o&&o.length?Go(o,It(u,3),!1,!0):[]}function Px(o,u){return o&&o.length?Go(o,It(u,3)):[]}var Cx=$t(function(o){return jr(Ke(o,1,Le,!0))}),Lx=$t(function(o){var u=Fn(o);return Le(u)&&(u=e),jr(Ke(o,1,Le,!0),It(u,2))}),Tx=$t(function(o){var u=Fn(o);return u=typeof u=="function"?u:e,jr(Ke(o,1,Le,!0),e,u)});function Ix(o){return o&&o.length?jr(o):[]}function Bx(o,u){return o&&o.length?jr(o,It(u,2)):[]}function Dx(o,u){return u=typeof u=="function"?u:e,o&&o.length?jr(o,e,u):[]}function Wu(o){if(!(o&&o.length))return[];var u=0;return o=Ir(o,function(y){if(Le(y))return u=Ue(y.length,u),!0}),su(u,function(y){return Se(o,nu(y))})}function ig(o,u){if(!(o&&o.length))return[];var y=Wu(o);return u==null?y:Se(y,function(x){return vn(u,e,x)})}var Fx=$t(function(o,u){return Le(o)?bs(o,u):[]}),Nx=$t(function(o){return ku(Ir(o,Le))}),jx=$t(function(o){var u=Fn(o);return Le(u)&&(u=e),ku(Ir(o,Le),It(u,2))}),Ux=$t(function(o){var u=Fn(o);return u=typeof u=="function"?u:e,ku(Ir(o,Le),e,u)}),qx=$t(Wu);function Wx(o,u){return xp(o||[],u||[],vs)}function Hx(o,u){return xp(o||[],u||[],xs)}var zx=$t(function(o){var u=o.length,y=u>1?o[u-1]:e;return y=typeof y=="function"?(o.pop(),y):e,ig(o,y)});function sg(o){var u=B(o);return u.__chain__=!0,u}function Vx(o,u){return u(o),o}function na(o,u){return u(o)}var $x=yr(function(o){var u=o.length,y=u?o[0]:0,x=this.__wrapped__,P=function(F){return du(F,o)};return u>1||this.__actions__.length||!(x instanceof Xt)||!vr(y)?this.thru(P):(x=x.slice(y,+y+(u?1:0)),x.__actions__.push({func:na,args:[P],thisArg:e}),new In(x,this.__chain__).thru(function(F){return u&&!F.length&&F.push(e),F}))});function Gx(){return sg(this)}function Yx(){return new In(this.value(),this.__chain__)}function Kx(){this.__values__===e&&(this.__values__=bg(this.value()));var o=this.__index__>=this.__values__.length,u=o?e:this.__values__[this.__index__++];return{done:o,value:u}}function Xx(){return this}function Jx(o){for(var u,y=this;y instanceof qo;){var x=Zp(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 Zx(){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:na,args:[qu],thisArg:e}),new In(u,this.__chain__)}return this.thru(qu)}function Qx(){return wp(this.__wrapped__,this.__actions__)}var tS=Yo(function(o,u,y){ae.call(o,y)?++o[y]:gr(o,y,1)});function eS(o,u,y){var x=qt(o)?Id:Vw;return y&&sn(o,u,y)&&(u=e),x(o,It(u,3))}function nS(o,u){var y=qt(o)?Ir:ip;return y(o,It(u,3))}var rS=Lp(Qp),iS=Lp(tg);function sS(o,u){return Ke(ra(o,u),1)}function oS(o,u){return Ke(ra(o,u),_t)}function aS(o,u,y){return y=y===e?1:Ht(y),Ke(ra(o,u),y)}function og(o,u){var y=qt(o)?Ln:Nr;return y(o,It(u,3))}function ag(o,u){var y=qt(o)?k1:rp;return y(o,It(u,3))}var lS=Yo(function(o,u,y){ae.call(o,y)?o[y].push(u):gr(o,y,[u])});function uS(o,u,y,x){o=un(o)?o:ji(o),y=y&&!x?Ht(y):0;var P=o.length;return y<0&&(y=Ue(P+y,0)),la(o)?y<=P&&o.indexOf(u,y)>-1:!!P&&Ri(o,u,y)>-1}var cS=$t(function(o,u,y){var x=-1,P=typeof u=="function",F=un(o)?it(o.length):[];return Nr(o,function(H){F[++x]=P?vn(u,H,y):_s(H,u,y)}),F}),fS=Yo(function(o,u,y){gr(o,y,u)});function ra(o,u){var y=qt(o)?Se:cp;return y(o,It(u,3))}function hS(o,u,y,x){return o==null?[]:(qt(u)||(u=u==null?[]:[u]),y=x?e:y,qt(y)||(y=y==null?[]:[y]),pp(o,u,y))}var dS=Yo(function(o,u,y){o[y?0:1].push(u)},function(){return[[],[]]});function pS(o,u,y){var x=qt(o)?tu:Nd,P=arguments.length<3;return x(o,It(u,4),y,P,Nr)}function gS(o,u,y){var x=qt(o)?R1:Nd,P=arguments.length<3;return x(o,It(u,4),y,P,rp)}function mS(o,u){var y=qt(o)?Ir:ip;return y(o,oa(It(u,3)))}function yS(o){var u=qt(o)?Qd:u2;return u(o)}function vS(o,u,y){(y?sn(o,u,y):u===e)?u=1:u=Ht(u);var x=qt(o)?Uw:c2;return x(o,u)}function bS(o){var u=qt(o)?qw:h2;return u(o)}function _S(o){if(o==null)return 0;if(un(o))return la(o)?Oi(o):o.length;var u=Qe(o);return u==St||u==ue?o.size:bu(o).length}function wS(o,u,y){var x=qt(o)?eu:d2;return y&&sn(o,u,y)&&(u=e),x(o,It(u,3))}var xS=$t(function(o,u){if(o==null)return[];var y=u.length;return y>1&&sn(o,u[0],u[1])?u=[]:y>2&&sn(u[0],u[1],u[2])&&(u=[u[0]]),pp(o,Ke(u,1),[])}),ia=nw||function(){return Ye.Date.now()};function SS(o,u){if(typeof u!="function")throw new Tn(a);return o=Ht(o),function(){if(--o<1)return u.apply(this,arguments)}}function lg(o,u,y){return u=y?e:u,u=o&&u==null?o.length:u,mr(o,L,e,e,e,e,u)}function ug(o,u){var y;if(typeof u!="function")throw new Tn(a);return o=Ht(o),function(){return--o>0&&(y=u.apply(this,arguments)),o<=1&&(u=e),y}}var Hu=$t(function(o,u,y){var x=_;if(y.length){var P=Dr(y,Fi(Hu));x|=k}return mr(o,x,u,y,P)}),cg=$t(function(o,u,y){var x=_|b;if(y.length){var P=Dr(y,Fi(cg));x|=k}return mr(u,x,o,y,P)});function fg(o,u,y){u=y?e:u;var x=mr(o,O,e,e,e,e,e,u);return x.placeholder=fg.placeholder,x}function hg(o,u,y){u=y?e:u;var x=mr(o,w,e,e,e,e,e,u);return x.placeholder=hg.placeholder,x}function dg(o,u,y){var x,P,F,H,$,tt,gt=0,vt=!1,wt=!1,Rt=!0;if(typeof o!="function")throw new Tn(a);u=Nn(u)||0,Re(y)&&(vt=!!y.leading,wt="maxWait"in y,F=wt?Ue(Nn(y.maxWait)||0,u):F,Rt="trailing"in y?!!y.trailing:Rt);function Pt(Te){var Vn=x,wr=P;return x=P=e,gt=Te,H=o.apply(wr,Vn),H}function Bt(Te){return gt=Te,$=As(Gt,u),vt?Pt(Te):H}function zt(Te){var Vn=Te-tt,wr=Te-gt,Lg=u-Vn;return wt?Ze(Lg,F-wr):Lg}function Dt(Te){var Vn=Te-tt,wr=Te-gt;return tt===e||Vn>=u||Vn<0||wt&&wr>=F}function Gt(){var Te=ia();if(Dt(Te))return Zt(Te);$=As(Gt,zt(Te))}function Zt(Te){return $=e,Rt&&x?Pt(Te):(x=P=e,H)}function xn(){$!==e&&Sp($),gt=0,x=tt=P=$=e}function on(){return $===e?H:Zt(ia())}function Sn(){var Te=ia(),Vn=Dt(Te);if(x=arguments,P=this,tt=Te,Vn){if($===e)return Bt(tt);if(wt)return Sp($),$=As(Gt,u),Pt(tt)}return $===e&&($=As(Gt,u)),H}return Sn.cancel=xn,Sn.flush=on,Sn}var ES=$t(function(o,u){return np(o,1,u)}),AS=$t(function(o,u,y){return np(o,Nn(u)||0,y)});function kS(o){return mr(o,Y)}function sa(o,u){if(typeof o!="function"||u!=null&&typeof u!="function")throw new Tn(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(sa.Cache||pr),y}sa.Cache=pr;function oa(o){if(typeof o!="function")throw new Tn(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 RS(o){return ug(2,o)}var MS=p2(function(o,u){u=u.length==1&&qt(u[0])?Se(u[0],bn(It())):Se(Ke(u,1),bn(It()));var y=u.length;return $t(function(x){for(var P=-1,F=Ze(x.length,y);++P<F;)x[P]=u[P].call(this,x[P]);return vn(o,this,x)})}),zu=$t(function(o,u){var y=Dr(u,Fi(zu));return mr(o,k,e,u,y)}),pg=$t(function(o,u){var y=Dr(u,Fi(pg));return mr(o,C,e,u,y)}),OS=yr(function(o,u){return mr(o,N,e,e,e,u)});function PS(o,u){if(typeof o!="function")throw new Tn(a);return u=u===e?u:Ht(u),$t(o,u)}function CS(o,u){if(typeof o!="function")throw new Tn(a);return u=u==null?0:Ue(Ht(u),0),$t(function(y){var x=y[u],P=qr(y,0,u);return x&&Br(P,x),vn(o,this,P)})}function LS(o,u,y){var x=!0,P=!0;if(typeof o!="function")throw new Tn(a);return Re(y)&&(x="leading"in y?!!y.leading:x,P="trailing"in y?!!y.trailing:P),dg(o,u,{leading:x,maxWait:u,trailing:P})}function TS(o){return lg(o,1)}function IS(o,u){return zu(Mu(u),o)}function BS(){if(!arguments.length)return[];var o=arguments[0];return qt(o)?o:[o]}function DS(o){return Bn(o,m)}function FS(o,u){return u=typeof u=="function"?u:e,Bn(o,m,u)}function NS(o){return Bn(o,g|m)}function jS(o,u){return u=typeof u=="function"?u:e,Bn(o,g|m,u)}function US(o,u){return u==null||ep(o,u,Ve(u))}function zn(o,u){return o===u||o!==o&&u!==u}var qS=Zo(mu),WS=Zo(function(o,u){return o>=u}),li=ap(function(){return arguments}())?ap:function(o){return Pe(o)&&ae.call(o,"callee")&&!Gd.call(o,"callee")},qt=it.isArray,HS=Md?bn(Md):Jw;function un(o){return o!=null&&aa(o.length)&&!br(o)}function Le(o){return Pe(o)&&un(o)}function zS(o){return o===!0||o===!1||Pe(o)&&rn(o)==lt}var Wr=iw||ec,VS=Od?bn(Od):Zw;function $S(o){return Pe(o)&&o.nodeType===1&&!ks(o)}function GS(o){if(o==null)return!0;if(un(o)&&(qt(o)||typeof o=="string"||typeof o.splice=="function"||Wr(o)||Ni(o)||li(o)))return!o.length;var u=Qe(o);if(u==St||u==ue)return!o.size;if(Es(o))return!bu(o).length;for(var y in o)if(ae.call(o,y))return!1;return!0}function YS(o,u){return ws(o,u)}function KS(o,u,y){y=typeof y=="function"?y:e;var x=y?y(o,u):e;return x===e?ws(o,u,e,y):!!x}function Vu(o){if(!Pe(o))return!1;var u=rn(o);return u==D||u==yt||typeof o.message=="string"&&typeof o.name=="string"&&!ks(o)}function XS(o){return typeof o=="number"&&Kd(o)}function br(o){if(!Re(o))return!1;var u=rn(o);return u==j||u==ut||u==X||u==ft}function gg(o){return typeof o=="number"&&o==Ht(o)}function aa(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 mg=Pd?bn(Pd):t2;function JS(o,u){return o===u||vu(o,u,Bu(u))}function ZS(o,u,y){return y=typeof y=="function"?y:e,vu(o,u,Bu(u),y)}function QS(o){return yg(o)&&o!=+o}function tE(o){if(F2(o))throw new jt(s);return lp(o)}function eE(o){return o===null}function nE(o){return o==null}function yg(o){return typeof o=="number"||Pe(o)&&rn(o)==Ft}function ks(o){if(!Pe(o)||rn(o)!=Tt)return!1;var u=Io(o);if(u===null)return!0;var y=ae.call(u,"constructor")&&u.constructor;return typeof y=="function"&&y instanceof y&&Po.call(y)==Z1}var $u=Cd?bn(Cd):e2;function rE(o){return gg(o)&&o>=-9007199254740991&&o<=bt}var vg=Ld?bn(Ld):n2;function la(o){return typeof o=="string"||!qt(o)&&Pe(o)&&rn(o)==te}function wn(o){return typeof o=="symbol"||Pe(o)&&rn(o)==re}var Ni=Td?bn(Td):r2;function iE(o){return o===e}function sE(o){return Pe(o)&&Qe(o)==ke}function oE(o){return Pe(o)&&rn(o)==an}var aE=Zo(_u),lE=Zo(function(o,u){return o<=u});function bg(o){if(!o)return[];if(un(o))return la(o)?Wn(o):ln(o);if(ds&&o[ds])return U1(o[ds]());var u=Qe(o),y=u==St?au:u==ue?Ro:ji;return y(o)}function _r(o){if(!o)return o===0?o:0;if(o=Nn(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=_r(o),y=u%1;return u===u?y?u-y:u:0}function _g(o){return o?ii(Ht(o),0,Ct):0}function Nn(o){if(typeof o=="number")return o;if(wn(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=jd(o);var y=H_.test(o);return y||V_.test(o)?S1(o.slice(2),y?2:8):W_.test(o)?kt:+o}function wg(o){return er(o,cn(o))}function uE(o){return o?ii(Ht(o),-9007199254740991,bt):o===0?o:0}function se(o){return o==null?"":_n(o)}var cE=Bi(function(o,u){if(Es(u)||un(u)){er(u,Ve(u),o);return}for(var y in u)ae.call(u,y)&&vs(o,y,u[y])}),xg=Bi(function(o,u){er(u,cn(u),o)}),ua=Bi(function(o,u,y,x){er(u,cn(u),o,x)}),fE=Bi(function(o,u,y,x){er(u,Ve(u),o,x)}),hE=yr(du);function dE(o,u){var y=Ii(o);return u==null?y:tp(y,u)}var pE=$t(function(o,u){o=he(o);var y=-1,x=u.length,P=x>2?u[2]:e;for(P&&sn(u[0],u[1],P)&&(x=1);++y<x;)for(var F=u[y],H=cn(F),$=-1,tt=H.length;++$<tt;){var gt=H[$],vt=o[gt];(vt===e||zn(vt,Ci[gt])&&!ae.call(o,gt))&&(o[gt]=F[gt])}return o}),gE=$t(function(o){return o.push(e,jp),vn(Sg,e,o)});function mE(o,u){return Bd(o,It(u,3),tr)}function yE(o,u){return Bd(o,It(u,3),gu)}function vE(o,u){return o==null?o:pu(o,It(u,3),cn)}function bE(o,u){return o==null?o:sp(o,It(u,3),cn)}function _E(o,u){return o&&tr(o,It(u,3))}function wE(o,u){return o&&gu(o,It(u,3))}function xE(o){return o==null?[]:zo(o,Ve(o))}function SE(o){return o==null?[]:zo(o,cn(o))}function Gu(o,u,y){var x=o==null?e:si(o,u);return x===e?y:x}function EE(o,u){return o!=null&&Wp(o,u,Gw)}function Yu(o,u){return o!=null&&Wp(o,u,Yw)}var AE=Ip(function(o,u,y){u!=null&&typeof u.toString!="function"&&(u=Co.call(u)),o[u]=y},Xu(fn)),kE=Ip(function(o,u,y){u!=null&&typeof u.toString!="function"&&(u=Co.call(u)),ae.call(o,u)?o[u].push(y):o[u]=[y]},It),RE=$t(_s);function Ve(o){return un(o)?Zd(o):bu(o)}function cn(o){return un(o)?Zd(o,!0):i2(o)}function ME(o,u){var y={};return u=It(u,3),tr(o,function(x,P,F){gr(y,u(x,P,F),x)}),y}function OE(o,u){var y={};return u=It(u,3),tr(o,function(x,P,F){gr(y,P,u(x,P,F))}),y}var PE=Bi(function(o,u,y){Vo(o,u,y)}),Sg=Bi(function(o,u,y,x){Vo(o,u,y,x)}),CE=yr(function(o,u){var y={};if(o==null)return y;var x=!1;u=Se(u,function(F){return F=Ur(F,o),x||(x=F.length>1),F}),er(o,Tu(o),y),x&&(y=Bn(y,g|d|m,A2));for(var P=u.length;P--;)Au(y,u[P]);return y});function LE(o,u){return Eg(o,oa(It(u)))}var TE=yr(function(o,u){return o==null?{}:o2(o,u)});function Eg(o,u){if(o==null)return{};var y=Se(Tu(o),function(x){return[x]});return u=It(u),gp(o,y,function(x,P){return u(x,P[0])})}function IE(o,u,y){u=Ur(u,o);var x=-1,P=u.length;for(P||(P=1,o=e);++x<P;){var F=o==null?e:o[nr(u[x])];F===e&&(x=P,F=y),o=br(F)?F.call(o):F}return o}function BE(o,u,y){return o==null?o:xs(o,u,y)}function DE(o,u,y,x){return x=typeof x=="function"?x:e,o==null?o:xs(o,u,y,x)}var Ag=Fp(Ve),kg=Fp(cn);function FE(o,u,y){var x=qt(o),P=x||Wr(o)||Ni(o);if(u=It(u,4),y==null){var F=o&&o.constructor;P?y=x?new F:[]:Re(o)?y=br(F)?Ii(Io(o)):{}:y={}}return(P?Ln:tr)(o,function(H,$,tt){return u(y,H,$,tt)}),y}function NE(o,u){return o==null?!0:Au(o,u)}function jE(o,u,y){return o==null?o:_p(o,u,Mu(y))}function UE(o,u,y,x){return x=typeof x=="function"?x:e,o==null?o:_p(o,u,Mu(y),x)}function ji(o){return o==null?[]:ou(o,Ve(o))}function qE(o){return o==null?[]:ou(o,cn(o))}function WE(o,u,y){return y===e&&(y=u,u=e),y!==e&&(y=Nn(y),y=y===y?y:0),u!==e&&(u=Nn(u),u=u===u?u:0),ii(Nn(o),u,y)}function HE(o,u,y){return u=_r(u),y===e?(y=u,u=0):y=_r(y),o=Nn(o),Kw(o,u,y)}function zE(o,u,y){if(y&&typeof y!="boolean"&&sn(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=_r(o),u===e?(u=o,o=0):u=_r(u)),o>u){var x=o;o=u,u=x}if(y||o%1||u%1){var P=Xd();return Ze(o+P*(u-o+x1("1e-"+((P+"").length-1))),u)}return xu(o,u)}var VE=Di(function(o,u,y){return u=u.toLowerCase(),o+(y?Rg(u):u)});function Rg(o){return Ku(se(o).toLowerCase())}function Mg(o){return o=se(o),o&&o.replace(G_,B1).replace(h1,"")}function $E(o,u,y){o=se(o),u=_n(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 GE(o){return o=se(o),o&&fs.test(o)?o.replace(Qr,D1):o}function YE(o){return o=se(o),o&&J.test(o)?o.replace(W,"\\$&"):o}var KE=Di(function(o,u,y){return o+(y?"-":"")+u.toLowerCase()}),XE=Di(function(o,u,y){return o+(y?" ":"")+u.toLowerCase()}),JE=Cp("toLowerCase");function ZE(o,u,y){o=se(o),u=Ht(u);var x=u?Oi(o):0;if(!u||x>=u)return o;var P=(u-x)/2;return Jo(No(P),y)+o+Jo(Fo(P),y)}function QE(o,u,y){o=se(o),u=Ht(u);var x=u?Oi(o):0;return u&&x<u?o+Jo(u-x,y):o}function tA(o,u,y){o=se(o),u=Ht(u);var x=u?Oi(o):0;return u&&x<u?Jo(u-x,y)+o:o}function eA(o,u,y){return y||u==null?u=0:u&&(u=+u),lw(se(o).replace(rt,""),u||0)}function nA(o,u,y){return(y?sn(o,u,y):u===e)?u=1:u=Ht(u),Su(se(o),u)}function rA(){var o=arguments,u=se(o[0]);return o.length<3?u:u.replace(o[1],o[2])}var iA=Di(function(o,u,y){return o+(y?"_":"")+u.toLowerCase()});function sA(o,u,y){return y&&typeof y!="number"&&sn(o,u,y)&&(u=y=e),y=y===e?Ct:y>>>0,y?(o=se(o),o&&(typeof u=="string"||u!=null&&!$u(u))&&(u=_n(u),!u&&Mi(o))?qr(Wn(o),0,y):o.split(u,y)):[]}var oA=Di(function(o,u,y){return o+(y?" ":"")+Ku(u)});function aA(o,u,y){return o=se(o),y=y==null?0:ii(Ht(y),0,o.length),u=_n(u),o.slice(y,y+u.length)==u}function lA(o,u,y){var x=B.templateSettings;y&&sn(o,u,y)&&(u=e),o=se(o),u=ua({},u,x,Np);var P=ua({},u.imports,x.imports,Np),F=Ve(P),H=ou(P,F),$,tt,gt=0,vt=u.interpolate||xo,wt="__p += '",Rt=lu((u.escape||xo).source+"|"+vt.source+"|"+(vt===wo?q_:xo).source+"|"+(u.evaluate||xo).source+"|$","g"),Pt="//# sourceURL="+(ae.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y1+"]")+`
32
+ `;o.replace(Rt,function(Dt,Gt,Zt,xn,on,Sn){return Zt||(Zt=xn),wt+=o.slice(gt,Sn).replace(Y_,F1),Gt&&($=!0,wt+=`' +
33
33
  __e(`+Gt+`) +
34
- '`),sn&&(tt=!0,wt+=`';
35
- `+sn+`;
34
+ '`),on&&(tt=!0,wt+=`';
35
+ `+on+`;
36
36
  __p += '`),Zt&&(wt+=`' +
37
37
  ((__t = (`+Zt+`)) == null ? '' : __t) +
38
- '`),gt=xn+Dt.length,Dt}),wt+=`';
38
+ '`),gt=Sn+Dt.length,Dt}),wt+=`';
39
39
  `;var Bt=ae.call(u,"variable")&&u.variable;if(!Bt)wt=`with (obj) {
40
40
  `+wt+`
41
41
  }
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")+`) {
42
+ `;else if(oe.test(Bt))throw new jt(l);wt=(tt?wt.replace(ce,""):wt).replace(fe,"$1").replace(de,"$1;"),wt="function("+(Bt||"obj")+`) {
43
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=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"&&gt.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=`
48
+ }`;var zt=Pg(function(){return ie(F,Pt+"return "+wt).apply(e,H)});if(zt.source=wt,Vu(zt))throw zt;return zt}function uA(o){return se(o).toLowerCase()}function cA(o){return se(o).toUpperCase()}function fA(o,u,y){if(o=se(o),o&&(y||u===e))return jd(o);if(!o||!(u=_n(u)))return o;var x=Wn(o),P=Wn(u),F=Ud(x,P),H=qd(x,P)+1;return qr(x,F,H).join("")}function hA(o,u,y){if(o=se(o),o&&(y||u===e))return o.slice(0,Hd(o)+1);if(!o||!(u=_n(u)))return o;var x=Wn(o),P=qd(x,Wn(u))+1;return qr(x,0,P).join("")}function dA(o,u,y){if(o=se(o),o&&(y||u===e))return o.replace(rt,"");if(!o||!(u=_n(u)))return o;var x=Wn(o),P=Ud(x,Wn(u));return qr(x,P).join("")}function pA(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?_n(u.omission):x}o=se(o);var F=o.length;if(Mi(o)){var H=Wn(o);F=H.length}if(y>=F)return o;var $=y-Oi(x);if($<1)return x;var tt=H?qr(H,0,$).join(""):o.slice(0,$);if(P===e)return tt+x;if(H&&($+=tt.length-$),$u(P)){if(o.slice($).search(P)){var gt,vt=tt;for(P.global||(P=lu(P.source,se(ad.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(_n(P),$)!=$){var Rt=tt.lastIndexOf(P);Rt>-1&&(tt=tt.slice(0,Rt))}return tt+x}function gA(o){return o=se(o),o&&Pn.test(o)?o.replace(ne,z1):o}var mA=Di(function(o,u,y){return o+(y?" ":"")+u.toUpperCase()}),Ku=Cp("toUpperCase");function Og(o,u,y){return o=se(o),u=y?e:u,u===e?j1(o)?G1(o):P1(o):o.match(u)||[]}var Pg=$t(function(o,u){try{return vn(o,e,u)}catch(y){return Vu(y)?y:new jt(y)}}),yA=yr(function(o,u){return Ln(u,function(y){y=nr(y),gr(o,y,Hu(o[y],o))}),o});function vA(o){var u=o==null?0:o.length,y=It();return o=u?Se(o,function(x){if(typeof x[1]!="function")throw new Tn(a);return[y(x[0]),x[1]]}):[],$t(function(x){for(var P=-1;++P<u;){var F=o[P];if(vn(F[0],this,x))return vn(F[1],this,x)}})}function bA(o){return zw(Bn(o,g))}function Xu(o){return function(){return o}}function _A(o,u){return o==null||o!==o?u:o}var wA=Tp(),xA=Tp(!0);function fn(o){return o}function Ju(o){return up(typeof o=="function"?o:Bn(o,g))}function SA(o){return fp(Bn(o,g))}function EA(o,u){return hp(o,Bn(u,g))}var AA=$t(function(o,u){return function(y){return _s(y,o,u)}}),kA=$t(function(o,u){return function(y){return _s(o,y,u)}});function Zu(o,u,y){var x=Ve(u),P=zo(u,x);y==null&&!(Re(u)&&(P.length||!x.length))&&(y=u,u=o,o=this,P=zo(u,Ve(u)));var F=!(Re(y)&&"chain"in y)||!!y.chain,H=br(o);return Ln(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__=ln(this.__actions__);return wt.push({func:tt,args:arguments,thisArg:o}),vt.__chain__=gt,vt}return tt.apply(o,Br([this.value()],arguments))})}),o}function RA(){return Ye._===this&&(Ye._=Q1),this}function Qu(){}function MA(o){return o=Ht(o),$t(function(u){return dp(u,o)})}var OA=Pu(Se),PA=Pu(Id),CA=Pu(eu);function Cg(o){return Fu(o)?nu(nr(o)):a2(o)}function LA(o){return function(u){return o==null?e:si(o,u)}}var TA=Bp(),IA=Bp(!0);function tc(){return[]}function ec(){return!1}function BA(){return{}}function DA(){return""}function FA(){return!0}function NA(o,u){if(o=Ht(o),o<1||o>bt)return[];var y=Ct,x=Ze(o,Ct);u=It(u),o-=Ct;for(var P=su(x,u);++y<o;)u(y);return P}function jA(o){return qt(o)?Se(o,nr):wn(o)?[o]:ln(Jp(se(o)))}function UA(o){var u=++J1;return se(o)+u}var qA=Xo(function(o,u){return o+u},0),WA=Cu("ceil"),HA=Xo(function(o,u){return o/u},1),zA=Cu("floor");function VA(o){return o&&o.length?Ho(o,fn,mu):e}function $A(o,u){return o&&o.length?Ho(o,It(u,2),mu):e}function GA(o){return Fd(o,fn)}function YA(o,u){return Fd(o,It(u,2))}function KA(o){return o&&o.length?Ho(o,fn,_u):e}function XA(o,u){return o&&o.length?Ho(o,It(u,2),_u):e}var JA=Xo(function(o,u){return o*u},1),ZA=Cu("round"),QA=Xo(function(o,u){return o-u},0);function tk(o){return o&&o.length?iu(o,fn):0}function ek(o,u){return o&&o.length?iu(o,It(u,2)):0}return B.after=SS,B.ary=lg,B.assign=cE,B.assignIn=xg,B.assignInWith=ua,B.assignWith=fE,B.at=hE,B.before=ug,B.bind=Hu,B.bindAll=yA,B.bindKey=cg,B.castArray=BS,B.chain=sg,B.chunk=z2,B.compact=V2,B.concat=$2,B.cond=vA,B.conforms=bA,B.constant=Xu,B.countBy=tS,B.create=dE,B.curry=fg,B.curryRight=hg,B.debounce=dg,B.defaults=pE,B.defaultsDeep=gE,B.defer=ES,B.delay=AS,B.difference=G2,B.differenceBy=Y2,B.differenceWith=K2,B.drop=X2,B.dropRight=J2,B.dropRightWhile=Z2,B.dropWhile=Q2,B.fill=tx,B.filter=nS,B.flatMap=sS,B.flatMapDeep=oS,B.flatMapDepth=aS,B.flatten=eg,B.flattenDeep=ex,B.flattenDepth=nx,B.flip=kS,B.flow=wA,B.flowRight=xA,B.fromPairs=rx,B.functions=xE,B.functionsIn=SE,B.groupBy=lS,B.initial=sx,B.intersection=ox,B.intersectionBy=ax,B.intersectionWith=lx,B.invert=AE,B.invertBy=kE,B.invokeMap=cS,B.iteratee=Ju,B.keyBy=fS,B.keys=Ve,B.keysIn=cn,B.map=ra,B.mapKeys=ME,B.mapValues=OE,B.matches=SA,B.matchesProperty=EA,B.memoize=sa,B.merge=PE,B.mergeWith=Sg,B.method=AA,B.methodOf=kA,B.mixin=Zu,B.negate=oa,B.nthArg=MA,B.omit=CE,B.omitBy=LE,B.once=RS,B.orderBy=hS,B.over=OA,B.overArgs=MS,B.overEvery=PA,B.overSome=CA,B.partial=zu,B.partialRight=pg,B.partition=dS,B.pick=TE,B.pickBy=Eg,B.property=Cg,B.propertyOf=LA,B.pull=hx,B.pullAll=rg,B.pullAllBy=dx,B.pullAllWith=px,B.pullAt=gx,B.range=TA,B.rangeRight=IA,B.rearg=OS,B.reject=mS,B.remove=mx,B.rest=PS,B.reverse=qu,B.sampleSize=vS,B.set=BE,B.setWith=DE,B.shuffle=bS,B.slice=yx,B.sortBy=xS,B.sortedUniq=Ex,B.sortedUniqBy=Ax,B.split=sA,B.spread=CS,B.tail=kx,B.take=Rx,B.takeRight=Mx,B.takeRightWhile=Ox,B.takeWhile=Px,B.tap=Vx,B.throttle=LS,B.thru=na,B.toArray=bg,B.toPairs=Ag,B.toPairsIn=kg,B.toPath=jA,B.toPlainObject=wg,B.transform=FE,B.unary=TS,B.union=Cx,B.unionBy=Lx,B.unionWith=Tx,B.uniq=Ix,B.uniqBy=Bx,B.uniqWith=Dx,B.unset=NE,B.unzip=Wu,B.unzipWith=ig,B.update=jE,B.updateWith=UE,B.values=ji,B.valuesIn=qE,B.without=Fx,B.words=Og,B.wrap=IS,B.xor=Nx,B.xorBy=jx,B.xorWith=Ux,B.zip=qx,B.zipObject=Wx,B.zipObjectDeep=Hx,B.zipWith=zx,B.entries=Ag,B.entriesIn=kg,B.extend=xg,B.extendWith=ua,Zu(B,B),B.add=qA,B.attempt=Pg,B.camelCase=VE,B.capitalize=Rg,B.ceil=WA,B.clamp=WE,B.clone=DS,B.cloneDeep=NS,B.cloneDeepWith=jS,B.cloneWith=FS,B.conformsTo=US,B.deburr=Mg,B.defaultTo=_A,B.divide=HA,B.endsWith=$E,B.eq=zn,B.escape=GE,B.escapeRegExp=YE,B.every=eS,B.find=rS,B.findIndex=Qp,B.findKey=mE,B.findLast=iS,B.findLastIndex=tg,B.findLastKey=yE,B.floor=zA,B.forEach=og,B.forEachRight=ag,B.forIn=vE,B.forInRight=bE,B.forOwn=_E,B.forOwnRight=wE,B.get=Gu,B.gt=qS,B.gte=WS,B.has=EE,B.hasIn=Yu,B.head=ng,B.identity=fn,B.includes=uS,B.indexOf=ix,B.inRange=HE,B.invoke=RE,B.isArguments=li,B.isArray=qt,B.isArrayBuffer=HS,B.isArrayLike=un,B.isArrayLikeObject=Le,B.isBoolean=zS,B.isBuffer=Wr,B.isDate=VS,B.isElement=$S,B.isEmpty=GS,B.isEqual=YS,B.isEqualWith=KS,B.isError=Vu,B.isFinite=XS,B.isFunction=br,B.isInteger=gg,B.isLength=aa,B.isMap=mg,B.isMatch=JS,B.isMatchWith=ZS,B.isNaN=QS,B.isNative=tE,B.isNil=nE,B.isNull=eE,B.isNumber=yg,B.isObject=Re,B.isObjectLike=Pe,B.isPlainObject=ks,B.isRegExp=$u,B.isSafeInteger=rE,B.isSet=vg,B.isString=la,B.isSymbol=wn,B.isTypedArray=Ni,B.isUndefined=iE,B.isWeakMap=sE,B.isWeakSet=oE,B.join=ux,B.kebabCase=KE,B.last=Fn,B.lastIndexOf=cx,B.lowerCase=XE,B.lowerFirst=JE,B.lt=aE,B.lte=lE,B.max=VA,B.maxBy=$A,B.mean=GA,B.meanBy=YA,B.min=KA,B.minBy=XA,B.stubArray=tc,B.stubFalse=ec,B.stubObject=BA,B.stubString=DA,B.stubTrue=FA,B.multiply=JA,B.nth=fx,B.noConflict=RA,B.noop=Qu,B.now=ia,B.pad=ZE,B.padEnd=QE,B.padStart=tA,B.parseInt=eA,B.random=zE,B.reduce=pS,B.reduceRight=gS,B.repeat=nA,B.replace=rA,B.result=IE,B.round=ZA,B.runInContext=Z,B.sample=yS,B.size=_S,B.snakeCase=iA,B.some=wS,B.sortedIndex=vx,B.sortedIndexBy=bx,B.sortedIndexOf=_x,B.sortedLastIndex=wx,B.sortedLastIndexBy=xx,B.sortedLastIndexOf=Sx,B.startCase=oA,B.startsWith=aA,B.subtract=QA,B.sum=tk,B.sumBy=ek,B.template=lA,B.times=NA,B.toFinite=_r,B.toInteger=Ht,B.toLength=_g,B.toLower=uA,B.toNumber=Nn,B.toSafeInteger=uE,B.toString=se,B.toUpper=cA,B.trim=fA,B.trimEnd=hA,B.trimStart=dA,B.truncate=pA,B.unescape=gA,B.uniqueId=UA,B.upperCase=mA,B.upperFirst=Ku,B.each=og,B.eachRight=ag,B.first=ng,Zu(B,function(){var o={};return tr(B,function(u,y){ae.call(B.prototype,y)||(o[y]=u)}),o}(),{chain:!1}),B.VERSION=r,Ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){B[o].placeholder=B}),Ln(["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__=Ze(y,x.__takeCount__):x.__views__.push({size:Ze(y,Ct),type:o+(x.__dir__<0?"Right":"")}),x},Xt.prototype[o+"Right"]=function(y){return this.reverse()[o](y).reverse()}}),Ln(["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}}),Ln(["head","last"],function(o,u){var y="take"+(u?"Right":"");Xt.prototype[o]=function(){return this[y](1).value()[0]}}),Ln(["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(fn)},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 _s(y,o,u)})}),Xt.prototype.reject=function(o){return this.filter(oa(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)},tr(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,Br([Gt],$));return x&&Rt?Zt[0]:Zt};vt&&y&&typeof gt=="function"&&gt.length!=1&&(tt=vt=!1);var Rt=this.__chain__,Pt=!!this.__actions__.length,Bt=F&&!Rt,zt=tt&&!Pt;if(!F&&vt){H=zt?H:new Xt(this);var Dt=o.apply(H,$);return Dt.__actions__.push({func:na,args:[wt],thisArg:e}),new In(Dt,Rt)}return Bt&&zt?o.apply(this,$):(Dt=this.thru(wt),Bt?x?Dt.value()[0]:Dt.value():Dt)})}),Ln(["pop","push","shift","sort","splice","unshift"],function(o){var u=Mo[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)})}}),tr(Xt.prototype,function(o,u){var y=B[u];if(y){var x=y.name+"";ae.call(Ti,x)||(Ti[x]=[]),Ti[x].push({name:u,func:y})}}),Ti[Ko(e,b).name]=[{name:"wrapper",func:e}],Xt.prototype.clone=gw,Xt.prototype.reverse=mw,Xt.prototype.value=yw,B.prototype.at=$x,B.prototype.chain=Gx,B.prototype.commit=Yx,B.prototype.next=Kx,B.prototype.plant=Jx,B.prototype.reverse=Zx,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Qx,B.prototype.first=B.prototype.head,ds&&(B.prototype[ds]=Xx),B},Pi=Y1();ti?((ti.exports=Pi)._=Pi,Jl._=Pi):Ye._=Pi}).call(Wk)}(Ns,Ns.exports)),Ns.exports}var zk=Hk();const Mn=Si(zk),po=n=>function(...t){return n(this)(...t)},Eh=(n,t,e="")=>Object.entries(n).reduce((r,[i,s])=>{const a=`${e}${e?".":""}${i}`;return Mn.isObject(s)&&!t.includes(a)?r.concat(Eh(s,t,a)):r.concat([[a,s]])},[]),eo=(()=>{const n=new Map([["default",new Map]]),t=[6,0,3,15,9,12],e=Array.from({length:18},(r,i)=>`hsl(${t[i%t.length]++*20}, 100%, 74%)`);return(r,i="default")=>{const s=n.get(i)??new Map,a=s.get(r);if(a)return a;s.size||n.set(i,s);const l=e.at(s.size%e.length);return s.set(r,l),l}})(),Vk=po(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}),$k=po(()=>n=>(n/1e3).toFixed(3)),Gk=po(()=>(n,t)=>Mn.truncate(n,{length:t})),Yk=po(()=>n=>new Date(n).toLocaleTimeString()),Kk=po(()=>(n,t)=>eo(n,t)),Xk=Object.freeze(Object.defineProperty({__proto__:null,compare:Vk,toColor:Kk,toLocaleTime:Yk,toSeconds:$k,truncate:Gk},Symbol.toStringTag,{value:"Module"})),Jk=`
49
49
  <div class="segment">
50
50
  {{#compare format 'neq' 'short'}}
51
51
  <button class="activity">
@@ -56,48 +56,44 @@ function print() { __p += __j.call(arguments, '') }
56
56
  {{/if}}
57
57
  </button>
58
58
 
59
- <span class="calls-count {{#compare data.meta.executionsCount 'gt' 0}}active{{/compare}}">
60
- <i class="fas fa-undo-alt"></i>{{data.meta.executionsCount}}
59
+ <span class="calls-count {{#compare data.meta.metrics.executions 'gt' 0}}active{{/compare}}">
60
+ <i class="fas fa-undo-alt"></i>{{data.meta.metrics.executions}}
61
61
  </span>
62
62
  {{/compare}}
63
63
 
64
- <span class="name"><b style="color: {{toColor data.group}};">{{data.group}}</b> {{data.name}}</span>
64
+ <span class="name"><b style="color: {{toColor data.group 'group'}};">{{data.group}}</b> {{data.name}}</span>
65
65
  </div>
66
66
 
67
67
  {{#compare format 'neq' 'short'}}
68
- {{#compare data.meta.tags.length 'gt' 0}}<span class="arrow"><i class="fas fa-chevron-right"></i></span>{{/compare}}
69
-
70
68
  <div class="segment">
71
69
  {{#each data.transports}}<span class="transport">{{this}}</span>{{/each}}
72
70
 
73
- {{#each data.meta.tags}}
74
- {{#compare @index 'lte' 5}}
75
- {{#if (compare location 'eq' 'outgoing.status')}}
76
- <span class="status
77
- {{#compare value 'lt' 400}}green{{/compare}}
78
- {{#compare value 'gte' 400}}red{{/compare}}
79
- "><b>{{value}}</b></span>
80
- {{else if (compare location 'eq' 'method')}}
81
- <span class="method" style="color: {{toColor value}};">{{value}}</span>
82
- {{else if (compare location 'eq' 'path')}}
83
- {{> metaPath this size=../options.pathSize}}
84
- {{else}}
85
- <span class="{{location}}">{{this}}</span>
86
- {{/if}}
87
- {{/compare}}
71
+ {{#each data.meta.tags.incoming.method}}
72
+ <span class="method" style="color: {{toColor this 'method'}};">{{this}}</span>
73
+ {{/each}}
74
+
75
+ {{#each data.meta.tags.incoming.path}}
76
+ {{> metaPath value=this size=../options.pathSize}}
77
+ {{/each}}
78
+
79
+ {{#each data.meta.tags.incoming.error}}
80
+ <span class="error">{{this}}</span>
81
+ {{/each}}
82
+
83
+ {{#each data.meta.tags.outgoing.status}}
84
+ <span class="status {{#compare this 'lt' 400}}green{{/compare}} {{#compare this 'gte' 400}}red{{/compare}}">
85
+ <b>{{this}}</b>
86
+ </span>
88
87
  {{/each}}
89
88
  </div>
90
89
  {{/compare}}
91
90
 
92
- {{#with data.schema.forward}}
93
- <span class="arrow"><i class="fas fa-chevron-right"></i></span>
94
-
91
+ {{#with data.meta.tags.forward.url}}
95
92
  <div class="segment">
96
- {{#if baseUrl}}<span class="forward">{{> truncated value=baseUrl length=45}}</span>{{/if}}
97
- {{#if url}}<span class="forward">{{> truncated value=url length=45}}</span>{{/if}}
93
+ <span class="forward">{{> truncated value=this length=45}}</span>
98
94
  </div>
99
95
  {{/with}}
100
- `,tM=`
96
+ `,Zk=`
101
97
  {{#if (compare value.length 'gt' length)}}
102
98
  <span class="truncated">
103
99
  <span class="full">{{value}}</span>
@@ -106,7 +102,7 @@ function print() { __p += __j.call(arguments, '') }
106
102
  {{else}}
107
103
  {{value}}
108
104
  {{/if}}
109
- `,eM=`
105
+ `,Qk=`
110
106
  <span class="path size-{{size}}">
111
107
  {{#if (compare size 'eq' 'S')}}
112
108
  {{> truncated this length=40}}
@@ -122,9 +118,9 @@ function print() { __p += __j.call(arguments, '') }
122
118
  {{value}}
123
119
  {{/if}}
124
120
  </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=`
121
+ `,tR=Jk,eR=Zk,nR=Qk,rR=Object.freeze(Object.defineProperty({__proto__:null,expectationMeta:tR,metaPath:nR,truncated:eR},Symbol.toStringTag,{value:"Module"})),iR={init:()=>{Object.entries(Xk).forEach(([n,t])=>Ie.registerHelper(n,t)),Object.entries(rR).forEach(([n,t])=>Ie.registerPartial(n,t))}};Hr.extend(lk);iR.init();const sR=`
126
122
  <div class="buttons"></div>
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=`
123
+ `;var Ba={exports:{}},Em;function is(){if(Em)return Ba.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)}Ba.exports=s,Ba.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 Ba.exports}var $v=is();const ss=Si($v),oR=`
128
124
  <div class="panel {{class}} {{#if width}}width-{{width}}{{/if}} {{#if height}}height-{{height}}{{/if}}">
129
125
  {{#if title}}
130
126
  <p class="title">
@@ -136,17 +132,16 @@ function print() { __p += __j.call(arguments, '') }
136
132
 
137
133
  <div class="content"></div>
138
134
  </div>
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(`
140
- <button
141
- style="${t!=null&&t.colorify?`color: ${wl(t.name)}`:""}"
142
- class="${t.isEnabled?"checked":""}"
143
- >${t.name}</button>
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};/*!
135
+ `;class Me{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}identify(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 Me?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 go{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 go(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 no{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 no(t,await t.text())}}class Ah extends Me{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 no.build(l));Mn.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&&Mn.set(t,r,l);continue}const s=Am(i,e.value);if(i==="checkbox"&&"checked"in e){e.checked&&Mn.set(t,r,s??!0);continue}s!==null&&Mn.set(t,r,s)}return t}assign(t){return Eh(t,this.paths).map(([e,r])=>[e,r,this.element.querySelector(`*[data-key="${e}"]`)]).forEach(([e,r,i])=>Mn.set(i,"value",Array.isArray(r)?r.join(i.getAttribute("list")??","):r??"")),this}static build(t){return new Ah(t)}}class Zi extends Me{constructor(t,e){super(e),this.key=t,this.client=go.build(this.key),this.form=Ah.build(this.element)}sync(){const t=this.client.extract()??[];return this.form.assign(t.reduce((e,[r,i])=>Mn.set(e,r,i),{})),this}async save(){const t=await this.form.extract();return this.client.store(Eh(t,this.form.paths).filter(([,e])=>Array.isArray(e)?!e.some(r=>typeof r=="object"&&r instanceof no):!(typeof e=="object"&&e instanceof no))),t}clear(){return this.client.clear(),this}static build(t,e){return new Zi(t,e)}}class ur{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 ur(t)}}class os extends Me{constructor(t){super(t),this.content=new Me(this.element.querySelector("div.content")),this.isInitialized=!1,this.isCompiled=!1,this.controls={main:new Me(this.element.querySelector("div.controls div.main")),additional:new Me(this.element.querySelector("div.controls div.additional"))},this.storage=Zi.build(`config:${this.element.id}`,this.element.querySelector("div.storage")),this.meta={},this.events=new ss,this.expander=this.element.querySelector("div.controls button#expand"),this.expander&&ur.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 os(t)}}class aR{constructor(){this.storage=Zi.build("void",document.body),this.shared={}}share(t){return Object.assign(this,{shared:t})}switchStorage(t){return Object.assign(this,{storage:t})}}const lR=Ie.compile(oR);class Mr extends Me{constructor(t={}){super(lR(t)),this.content=new Me(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 $s extends Me{constructor(t){const e=t.colorify?typeof t.colorify=="object"?eo(t.name,t.colorify.prefix):eo(t.name):null;super(`
136
+ <button style="${e?`color: ${e}`:""}" class="${t.isEnabled?"checked":""}">
137
+ ${t.name}
138
+ </button>
139
+ `),this.configuration=t,this.events=new ss,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 $s(t)}}var Gv={},Cl={};Cl.byteLength=fR;Cl.toByteArray=dR;Cl.fromByteArray=mR;var lr=[],qn=[],uR=typeof Uint8Array<"u"?Uint8Array:Array,uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Hi=0,cR=uc.length;Hi<cR;++Hi)lr[Hi]=uc[Hi],qn[uc.charCodeAt(Hi)]=Hi;qn[45]=62;qn[95]=63;function Yv(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 fR(n){var t=Yv(n),e=t[0],r=t[1];return(e+r)*3/4-r}function hR(n,t,e){return(t+e)*3/4-e}function dR(n){var t,e=Yv(n),r=e[0],i=e[1],s=new uR(hR(n,r,i)),a=0,l=i>0?r-4:r,c;for(c=0;c<l;c+=4)t=qn[n.charCodeAt(c)]<<18|qn[n.charCodeAt(c+1)]<<12|qn[n.charCodeAt(c+2)]<<6|qn[n.charCodeAt(c+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=t&255;return i===2&&(t=qn[n.charCodeAt(c)]<<2|qn[n.charCodeAt(c+1)]>>4,s[a++]=t&255),i===1&&(t=qn[n.charCodeAt(c)]<<10|qn[n.charCodeAt(c+1)]<<4|qn[n.charCodeAt(c+2)]>>2,s[a++]=t>>8&255,s[a++]=t&255),s}function pR(n){return lr[n>>18&63]+lr[n>>12&63]+lr[n>>6&63]+lr[n&63]}function gR(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(pR(r));return i.join("")}function mR(n){for(var t,e=n.length,r=e%3,i=[],s=16383,a=0,l=e-r;a<l;a+=s)i.push(gR(n,a,a+s>l?l:a+s));return r===1?(t=n[e-1],i.push(lr[t>>2]+lr[t<<4&63]+"==")):r===2&&(t=(n[e-2]<<8)+n[e-1],i.push(lr[t>>10]+lr[t>>4&63]+lr[t<<2&63]+"=")),i.join("")}var kh={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */kh.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)};kh.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};/*!
145
140
  * The buffer module from node.js, for the browser.
146
141
  *
147
142
  * @author Feross Aboukhadijeh <https://feross.org>
148
143
  * @license MIT
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(`
144
+ */(function(n){const t=Cl,e=kh,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,R){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,R)}f.poolSize=8192;function g(T,E,R){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,R);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,R);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,R);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,R){return g(T,E,R)},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,R){return d(T),T<=0?h(T):E!==void 0?typeof R=="string"?h(T).fill(E,R):h(T).fill(E):h(T)}f.alloc=function(T,E,R){return m(T,E,R)};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 R=C(T,E)|0;let q=h(R);const K=q.write(T,E);return K!==R&&(q=q.slice(0,K)),q}function _(T){const E=T.length<0?0:w(T.length)|0,R=h(E);for(let q=0;q<E;q+=1)R[q]=T[q]&255;return R}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,R){if(E<0||T.byteLength<E)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<E+(R||0))throw new RangeError('"length" is outside of buffer bounds');let q;return E===void 0&&R===void 0?q=new s(T):R===void 0?q=new s(T,E):q=new s(T,E,R),Object.setPrototypeOf(q,f.prototype),q}function O(T){if(f.isBuffer(T)){const E=w(T.length)|0,R=h(E);return R.length===0||T.copy(R,0,0,E),R}if(T.length!==void 0)return typeof T.length!="number"||an(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,R){if(ke(E,s)&&(E=f.from(E,E.offset,E.byteLength)),ke(R,s)&&(R=f.from(R,R.offset,R.byteLength)),!f.isBuffer(E)||!f.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===R)return 0;let q=E.length,K=R.length;for(let nt=0,ht=Math.min(q,K);nt<ht;++nt)if(E[nt]!==R[nt]){q=E[nt],K=R[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,R){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(R===void 0)for(R=0,q=0;q<E.length;++q)R+=E[q].length;const K=f.allocUnsafe(R);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 R=T.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&R===0)return 0;let K=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return Oe(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R*2;case"hex":return R>>>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,R){let q=!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(T||(T="utf8");;)switch(T){case"hex":return Lt(this,E,R);case"utf8":case"utf-8":return _t(this,E,R);case"ascii":return kt(this,E,R);case"latin1":case"binary":return Ct(this,E,R);case"base64":return at(this,E,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,E,R);default:if(q)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),q=!0}}f.prototype._isBuffer=!0;function N(T,E,R){const q=T[E];T[E]=T[R],T[R]=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 R=0;R<E;R+=2)N(this,R,R+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 R=0;R<E;R+=4)N(this,R,R+3),N(this,R+1,R+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 R=0;R<E;R+=8)N(this,R,R+7),N(this,R+1,R+6),N(this,R+2,R+5),N(this,R+3,R+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 R=n.INSPECT_MAX_BYTES;return E=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(E+=" ... "),"<Buffer "+E+">"},r&&(f.prototype[r]=f.prototype.inspect),f.prototype.compare=function(E,R,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(R===void 0&&(R=0),q===void 0&&(q=E?E.length:0),K===void 0&&(K=0),nt===void 0&&(nt=this.length),R<0||q>E.length||K<0||nt>this.length)throw new RangeError("out of range index");if(K>=nt&&R>=q)return 0;if(K>=nt)return-1;if(R>=q)return 1;if(R>>>=0,q>>>=0,K>>>=0,nt>>>=0,this===E)return 0;let ht=nt-K,Ut=q-R;const ce=Math.min(ht,Ut),fe=this.slice(K,nt),de=E.slice(R,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,R,q,K){if(T.length===0)return-1;if(typeof R=="string"?(q=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,an(R)&&(R=K?0:T.length-1),R<0&&(R=T.length+R),R>=T.length){if(K)return-1;R=T.length-1}else if(R<0)if(K)R=0;else return-1;if(typeof E=="string"&&(E=f.from(E,q)),f.isBuffer(E))return E.length===0?-1:z(T,E,R,q,K);if(typeof E=="number")return E=E&255,typeof s.prototype.indexOf=="function"?K?s.prototype.indexOf.call(T,E,R):s.prototype.lastIndexOf.call(T,E,R):z(T,[E],R,q,K);throw new TypeError("val must be string, number or Buffer")}function z(T,E,R,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,R/=2}function ce(de,ne){return nt===1?de[ne]:de.readUInt16BE(ne*nt)}let fe;if(K){let de=-1;for(fe=R;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(R+Ut>ht&&(R=ht-Ut),fe=R;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,R,q){return this.indexOf(E,R,q)!==-1},f.prototype.indexOf=function(E,R,q){return Y(this,E,R,q,!0)},f.prototype.lastIndexOf=function(E,R,q){return Y(this,E,R,q,!1)};function G(T,E,R,q){R=Number(R)||0;const K=T.length-R;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(an(Ut))return ht;T[R+ht]=Ut}return ht}function U(T,E,R,q){return ze(Oe(E,T.length-R),T,R,q)}function xt(T,E,R,q){return ze(ue(E),T,R,q)}function dt(T,E,R,q){return ze(re(E),T,R,q)}function st(T,E,R,q){return ze(te(E,T.length-R),T,R,q)}f.prototype.write=function(E,R,q,K){if(R===void 0)K="utf8",q=this.length,R=0;else if(q===void 0&&typeof R=="string")K=R,q=this.length,R=0;else if(isFinite(R))R=R>>>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-R;if((q===void 0||q>nt)&&(q=nt),E.length>0&&(q<0||R<0)||R>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,R,q);case"utf8":case"utf-8":return U(this,E,R,q);case"ascii":case"latin1":case"binary":return xt(this,E,R,q);case"base64":return dt(this,E,R,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,E,R,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,R){return E===0&&R===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(E,R))}function _t(T,E,R){R=Math.min(T.length,R);const q=[];let K=E;for(;K<R;){const nt=T[K];let ht=null,Ut=nt>239?4:nt>223?3:nt>191?2:1;if(K+Ut<=R){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 R="",q=0;for(;q<E;)R+=String.fromCharCode.apply(String,T.slice(q,q+=bt));return R}function kt(T,E,R){let q="";R=Math.min(T.length,R);for(let K=E;K<R;++K)q+=String.fromCharCode(T[K]&127);return q}function Ct(T,E,R){let q="";R=Math.min(T.length,R);for(let K=E;K<R;++K)q+=String.fromCharCode(T[K]);return q}function Lt(T,E,R){const q=T.length;(!E||E<0)&&(E=0),(!R||R<0||R>q)&&(R=q);let K="";for(let nt=E;nt<R;++nt)K+=Ge[T[nt]];return K}function Q(T,E,R){const q=T.slice(E,R);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,R){const q=this.length;E=~~E,R=R===void 0?q:~~R,E<0?(E+=q,E<0&&(E=0)):E>q&&(E=q),R<0?(R+=q,R<0&&(R=0)):R>q&&(R=q),R<E&&(R=E);const K=this.subarray(E,R);return Object.setPrototypeOf(K,f.prototype),K};function et(T,E,R){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+E>R)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(E,R,q){E=E>>>0,R=R>>>0,q||et(E,R,this.length);let K=this[E],nt=1,ht=0;for(;++ht<R&&(nt*=256);)K+=this[E+ht]*nt;return K},f.prototype.readUintBE=f.prototype.readUIntBE=function(E,R,q){E=E>>>0,R=R>>>0,q||et(E,R,this.length);let K=this[E+--R],nt=1;for(;R>0&&(nt*=256);)K+=this[E+--R]*nt;return K},f.prototype.readUint8=f.prototype.readUInt8=function(E,R){return E=E>>>0,R||et(E,1,this.length),this[E]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(E,R){return E=E>>>0,R||et(E,2,this.length),this[E]|this[E+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(E,R){return E=E>>>0,R||et(E,2,this.length),this[E]<<8|this[E+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(E,R){return E=E>>>0,R||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,R){return E=E>>>0,R||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,Mt(E,"offset");const R=this[E],q=this[E+7];(R===void 0||q===void 0)&&Tt(E,this.length-8);const K=R+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,Mt(E,"offset");const R=this[E],q=this[E+7];(R===void 0||q===void 0)&&Tt(E,this.length-8);const K=R*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,R,q){E=E>>>0,R=R>>>0,q||et(E,R,this.length);let K=this[E],nt=1,ht=0;for(;++ht<R&&(nt*=256);)K+=this[E+ht]*nt;return nt*=128,K>=nt&&(K-=Math.pow(2,8*R)),K},f.prototype.readIntBE=function(E,R,q){E=E>>>0,R=R>>>0,q||et(E,R,this.length);let K=R,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*R)),ht},f.prototype.readInt8=function(E,R){return E=E>>>0,R||et(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},f.prototype.readInt16LE=function(E,R){E=E>>>0,R||et(E,2,this.length);const q=this[E]|this[E+1]<<8;return q&32768?q|4294901760:q},f.prototype.readInt16BE=function(E,R){E=E>>>0,R||et(E,2,this.length);const q=this[E+1]|this[E]<<8;return q&32768?q|4294901760:q},f.prototype.readInt32LE=function(E,R){return E=E>>>0,R||et(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},f.prototype.readInt32BE=function(E,R){return E=E>>>0,R||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,Mt(E,"offset");const R=this[E],q=this[E+7];(R===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(R+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),f.prototype.readBigInt64BE=ye(function(E){E=E>>>0,Mt(E,"offset");const R=this[E],q=this[E+7];(R===void 0||q===void 0)&&Tt(E,this.length-8);const K=(R<<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,R){return E=E>>>0,R||et(E,4,this.length),e.read(this,E,!0,23,4)},f.prototype.readFloatBE=function(E,R){return E=E>>>0,R||et(E,4,this.length),e.read(this,E,!1,23,4)},f.prototype.readDoubleLE=function(E,R){return E=E>>>0,R||et(E,8,this.length),e.read(this,E,!0,52,8)},f.prototype.readDoubleBE=function(E,R){return E=E>>>0,R||et(E,8,this.length),e.read(this,E,!1,52,8)};function ot(T,E,R,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(R+q>T.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(E,R,q,K){if(E=+E,R=R>>>0,q=q>>>0,!K){const Ut=Math.pow(2,8*q)-1;ot(this,E,R,q,Ut,0)}let nt=1,ht=0;for(this[R]=E&255;++ht<q&&(nt*=256);)this[R+ht]=E/nt&255;return R+q},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(E,R,q,K){if(E=+E,R=R>>>0,q=q>>>0,!K){const Ut=Math.pow(2,8*q)-1;ot(this,E,R,q,Ut,0)}let nt=q-1,ht=1;for(this[R+nt]=E&255;--nt>=0&&(ht*=256);)this[R+nt]=E/ht&255;return R+q},f.prototype.writeUint8=f.prototype.writeUInt8=function(E,R,q){return E=+E,R=R>>>0,q||ot(this,E,R,1,255,0),this[R]=E&255,R+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(E,R,q){return E=+E,R=R>>>0,q||ot(this,E,R,2,65535,0),this[R]=E&255,this[R+1]=E>>>8,R+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(E,R,q){return E=+E,R=R>>>0,q||ot(this,E,R,2,65535,0),this[R]=E>>>8,this[R+1]=E&255,R+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(E,R,q){return E=+E,R=R>>>0,q||ot(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},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(E,R,q){return E=+E,R=R>>>0,q||ot(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 V(T,E,R,q,K){Ft(E,q,K,T,R,7);let nt=Number(E&BigInt(4294967295));T[R++]=nt,nt=nt>>8,T[R++]=nt,nt=nt>>8,T[R++]=nt,nt=nt>>8,T[R++]=nt;let ht=Number(E>>BigInt(32)&BigInt(4294967295));return T[R++]=ht,ht=ht>>8,T[R++]=ht,ht=ht>>8,T[R++]=ht,ht=ht>>8,T[R++]=ht,R}function X(T,E,R,q,K){Ft(E,q,K,T,R,7);let nt=Number(E&BigInt(4294967295));T[R+7]=nt,nt=nt>>8,T[R+6]=nt,nt=nt>>8,T[R+5]=nt,nt=nt>>8,T[R+4]=nt;let ht=Number(E>>BigInt(32)&BigInt(4294967295));return T[R+3]=ht,ht=ht>>8,T[R+2]=ht,ht=ht>>8,T[R+1]=ht,ht=ht>>8,T[R]=ht,R+8}f.prototype.writeBigUInt64LE=ye(function(E,R=0){return V(this,E,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=ye(function(E,R=0){return X(this,E,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(E,R,q,K){if(E=+E,R=R>>>0,!K){const ce=Math.pow(2,8*q-1);ot(this,E,R,q,ce-1,-ce)}let nt=0,ht=1,Ut=0;for(this[R]=E&255;++nt<q&&(ht*=256);)E<0&&Ut===0&&this[R+nt-1]!==0&&(Ut=1),this[R+nt]=(E/ht>>0)-Ut&255;return R+q},f.prototype.writeIntBE=function(E,R,q,K){if(E=+E,R=R>>>0,!K){const ce=Math.pow(2,8*q-1);ot(this,E,R,q,ce-1,-ce)}let nt=q-1,ht=1,Ut=0;for(this[R+nt]=E&255;--nt>=0&&(ht*=256);)E<0&&Ut===0&&this[R+nt+1]!==0&&(Ut=1),this[R+nt]=(E/ht>>0)-Ut&255;return R+q},f.prototype.writeInt8=function(E,R,q){return E=+E,R=R>>>0,q||ot(this,E,R,1,127,-128),E<0&&(E=255+E+1),this[R]=E&255,R+1},f.prototype.writeInt16LE=function(E,R,q){return E=+E,R=R>>>0,q||ot(this,E,R,2,32767,-32768),this[R]=E&255,this[R+1]=E>>>8,R+2},f.prototype.writeInt16BE=function(E,R,q){return E=+E,R=R>>>0,q||ot(this,E,R,2,32767,-32768),this[R]=E>>>8,this[R+1]=E&255,R+2},f.prototype.writeInt32LE=function(E,R,q){return E=+E,R=R>>>0,q||ot(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},f.prototype.writeInt32BE=function(E,R,q){return E=+E,R=R>>>0,q||ot(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},f.prototype.writeBigInt64LE=ye(function(E,R=0){return V(this,E,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=ye(function(E,R=0){return X(this,E,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function lt(T,E,R,q,K,nt){if(R+q>T.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function mt(T,E,R,q,K){return E=+E,R=R>>>0,K||lt(T,E,R,4),e.write(T,E,R,q,23,4),R+4}f.prototype.writeFloatLE=function(E,R,q){return mt(this,E,R,!0,q)},f.prototype.writeFloatBE=function(E,R,q){return mt(this,E,R,!1,q)};function yt(T,E,R,q,K){return E=+E,R=R>>>0,K||lt(T,E,R,8),e.write(T,E,R,q,52,8),R+8}f.prototype.writeDoubleLE=function(E,R,q){return yt(this,E,R,!0,q)},f.prototype.writeDoubleBE=function(E,R,q){return yt(this,E,R,!1,q)},f.prototype.copy=function(E,R,q,K){if(!f.isBuffer(E))throw new TypeError("argument should be a Buffer");if(q||(q=0),!K&&K!==0&&(K=this.length),R>=E.length&&(R=E.length),R||(R=0),K>0&&K<q&&(K=q),K===q||E.length===0||this.length===0)return 0;if(R<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-R<K-q&&(K=E.length-R+q);const nt=K-q;return this===E&&typeof s.prototype.copyWithin=="function"?this.copyWithin(R,q,K):s.prototype.set.call(E,this.subarray(q,K),R),nt},f.prototype.fill=function(E,R,q,K){if(typeof E=="string"){if(typeof R=="string"?(K=R,R=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(R<0||this.length<R||this.length<q)throw new RangeError("Out of range index");if(q<=R)return this;R=R>>>0,q=q===void 0?this.length:q>>>0,E||(E=0);let nt;if(typeof E=="number")for(nt=R;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-R;++nt)this[nt+R]=ht[nt%Ut]}return this};const D={};function j(T,E,R){D[T]=class extends R{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,R){let q=`The value of "${T}" is out of range.`,K=R;return Number.isInteger(R)&&Math.abs(R)>2**32?K=ut(String(R)):typeof R=="bigint"&&(K=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(K=ut(K)),K+="n"),q+=` It must be ${E}. Received ${K}`,q},RangeError);function ut(T){let E="",R=T.length;const q=T[0]==="-"?1:0;for(;R>=q+4;R-=3)E=`_${T.slice(R-3,R)}${E}`;return`${T.slice(0,R)}${E}`}function St(T,E,R){Mt(E,"offset"),(T[E]===void 0||T[E+R]===void 0)&&Tt(E,T.length-(R+1))}function Ft(T,E,R,q,K,nt){if(T>R||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 Mt(T,E){if(typeof T!="number")throw new D.ERR_INVALID_ARG_TYPE(E,"number",T)}function Tt(T,E,R){throw Math.floor(T)!==T?(Mt(T,R),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 R;const q=T.length;let K=null;const nt=[];for(let ht=0;ht<q;++ht){if(R=T.charCodeAt(ht),R>55295&&R<57344){if(!K){if(R>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=R;continue}if(R<56320){(E-=3)>-1&&nt.push(239,191,189),K=R;continue}R=(K-55296<<10|R-56320)+65536}else K&&(E-=3)>-1&&nt.push(239,191,189);if(K=null,R<128){if((E-=1)<0)break;nt.push(R)}else if(R<2048){if((E-=2)<0)break;nt.push(R>>6|192,R&63|128)}else if(R<65536){if((E-=3)<0)break;nt.push(R>>12|224,R>>6&63|128,R&63|128)}else if(R<1114112){if((E-=4)<0)break;nt.push(R>>18|240,R>>12&63|128,R>>6&63|128,R&63|128)}else throw new Error("Invalid code point")}return nt}function ue(T){const E=[];for(let R=0;R<T.length;++R)E.push(T.charCodeAt(R)&255);return E}function te(T,E){let R,q,K;const nt=[];for(let ht=0;ht<T.length&&!((E-=2)<0);++ht)R=T.charCodeAt(ht),q=R>>8,K=R%256,nt.push(K),nt.push(q);return nt}function re(T){return t.toByteArray(ft(T))}function ze(T,E,R,q){let K;for(K=0;K<q&&!(K+R>=E.length||K>=T.length);++K)E[K+R]=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 an(T){return T!==T}const Ge=function(){const T="0123456789abcdef",E=new Array(256);for(let R=0;R<16;++R){const q=R*16;for(let K=0;K<16;++K)E[q+K]=T[R]+T[K]}return E}();function ye(T){return typeof BigInt>"u"?On:T}function On(){throw new Error("BigInt not supported")}})(Gv);const ro=Gv.Buffer;var Da={exports:{}},Fa={exports:{}};function yR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Kv={exports:{}},De=Kv.exports={},or,ar;function Jf(){throw new Error("setTimeout has not been defined")}function Zf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?or=setTimeout:or=Jf}catch{or=Jf}try{typeof clearTimeout=="function"?ar=clearTimeout:ar=Zf}catch{ar=Zf}})();function Xv(n){if(or===setTimeout)return setTimeout(n,0);if((or===Jf||!or)&&setTimeout)return or=setTimeout,setTimeout(n,0);try{return or(n,0)}catch{try{return or.call(null,n,0)}catch{return or.call(this,n,0)}}}function vR(n){if(ar===clearTimeout)return clearTimeout(n);if((ar===Zf||!ar)&&clearTimeout)return ar=clearTimeout,clearTimeout(n);try{return ar(n)}catch{try{return ar.call(null,n)}catch{return ar.call(this,n)}}}var Or=[],Xi=!1,mi,cl=-1;function bR(){!Xi||!mi||(Xi=!1,mi.length?Or=mi.concat(Or):cl=-1,Or.length&&Jv())}function Jv(){if(!Xi){var n=Xv(bR);Xi=!0;for(var t=Or.length;t;){for(mi=Or,Or=[];++cl<t;)mi&&mi[cl].run();cl=-1,t=Or.length}mi=null,Xi=!1,vR(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];Or.push(new Zv(n,t)),Or.length===1&&!Xi&&Xv(Jv)};function Zv(n,t){this.fun=n,this.array=t}Zv.prototype.run=function(){this.fun.apply(null,this.array)};De.title="browser";De.browser=!0;De.env={};De.argv=[];De.version="";De.versions={};function Tr(){}De.on=Tr;De.addListener=Tr;De.once=Tr;De.off=Tr;De.removeListener=Tr;De.removeAllListeners=Tr;De.emit=Tr;De.prependListener=Tr;De.prependOnceListener=Tr;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 _R=Kv.exports;const Qt=yR(_R);var cc={},fc={},hc,km;function Qv(){return km||(km=1,hc=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}),hc}var dc,Rm;function Ll(){if(Rm)return dc;Rm=1;var n=Qv();return dc=function(){return n()&&!!Symbol.toStringTag},dc}var pc,Mm;function tb(){return Mm||(Mm=1,pc=Object),pc}var gc,Om;function wR(){return Om||(Om=1,gc=Error),gc}var mc,Pm;function xR(){return Pm||(Pm=1,mc=EvalError),mc}var yc,Cm;function SR(){return Cm||(Cm=1,yc=RangeError),yc}var vc,Lm;function ER(){return Lm||(Lm=1,vc=ReferenceError),vc}var bc,Tm;function eb(){return Tm||(Tm=1,bc=SyntaxError),bc}var _c,Im;function mo(){return Im||(Im=1,_c=TypeError),_c}var wc,Bm;function AR(){return Bm||(Bm=1,wc=URIError),wc}var xc,Dm;function kR(){return Dm||(Dm=1,xc=Math.abs),xc}var Sc,Fm;function RR(){return Fm||(Fm=1,Sc=Math.floor),Sc}var Ec,Nm;function MR(){return Nm||(Nm=1,Ec=Math.max),Ec}var Ac,jm;function OR(){return jm||(jm=1,Ac=Math.min),Ac}var kc,Um;function PR(){return Um||(Um=1,kc=Math.pow),kc}var Rc,qm;function CR(){return qm||(qm=1,Rc=Math.round),Rc}var Mc,Wm;function LR(){return Wm||(Wm=1,Mc=Number.isNaN||function(t){return t!==t}),Mc}var Oc,Hm;function TR(){if(Hm)return Oc;Hm=1;var n=LR();return Oc=function(e){return n(e)||e===0?e:e<0?-1:1},Oc}var Pc,zm;function IR(){return zm||(zm=1,Pc=Object.getOwnPropertyDescriptor),Pc}var Cc,Vm;function as(){if(Vm)return Cc;Vm=1;var n=IR();if(n)try{n([],"length")}catch{n=null}return Cc=n,Cc}var Lc,$m;function Tl(){if($m)return Lc;$m=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Lc=n,Lc}var Tc,Gm;function BR(){if(Gm)return Tc;Gm=1;var n=typeof Symbol<"u"&&Symbol,t=Qv();return Tc=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Tc}var Ic,Ym;function nb(){return Ym||(Ym=1,Ic=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ic}var Bc,Km;function rb(){if(Km)return Bc;Km=1;var n=tb();return Bc=n.getPrototypeOf||null,Bc}var Dc,Xm;function DR(){if(Xm)return Dc;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 Dc=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},Dc}var Fc,Jm;function yo(){if(Jm)return Fc;Jm=1;var n=DR();return Fc=Function.prototype.bind||n,Fc}var Nc,Zm;function Rh(){return Zm||(Zm=1,Nc=Function.prototype.call),Nc}var jc,Qm;function Mh(){return Qm||(Qm=1,jc=Function.prototype.apply),jc}var Uc,ty;function FR(){return ty||(ty=1,Uc=typeof Reflect<"u"&&Reflect&&Reflect.apply),Uc}var qc,ey;function ib(){if(ey)return qc;ey=1;var n=yo(),t=Mh(),e=Rh(),r=FR();return qc=r||n.call(e,t),qc}var Wc,ny;function Oh(){if(ny)return Wc;ny=1;var n=yo(),t=mo(),e=Rh(),r=ib();return Wc=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return r(n,e,s)},Wc}var Hc,ry;function NR(){if(ry)return Hc;ry=1;var n=Oh(),t=as(),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 Hc=r&&typeof r.get=="function"?n([r.get]):typeof s=="function"?function(l){return s(l==null?l:i(l))}:!1,Hc}var zc,iy;function Ph(){if(iy)return zc;iy=1;var n=nb(),t=rb(),e=NR();return zc=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,zc}var Vc,sy;function sb(){if(sy)return Vc;sy=1;var n=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=yo();return Vc=e.call(n,t),Vc}var $c,oy;function ob(){if(oy)return $c;oy=1;var n,t=tb(),e=wR(),r=xR(),i=SR(),s=ER(),a=eb(),l=mo(),c=AR(),h=kR(),f=RR(),g=MR(),d=OR(),m=PR(),p=CR(),v=TR(),_=Function,b=function(mt){try{return _('"use strict"; return ('+mt+").constructor;")()}catch{}},S=as(),O=Tl(),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=BR()(),L=Ph(),N=rb(),Y=nb(),z=Mh(),G=Rh(),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=yo(),Et=sb(),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,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 $c=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,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))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(S&&ft+1>=j.length){var ze=S(Mt,ue);Oe=!!ze,Oe&&"get"in ze&&!("originalValue"in ze.get)?Mt=ze.get:Mt=Mt[ue]}else Oe=Et(Mt,ue),Mt=Mt[ue];Oe&&!Tt&&(dt[Ft]=Mt)}}return Mt},$c}var Gc,ay;function vo(){if(ay)return Gc;ay=1;var n=ob(),t=Oh(),e=t([n("%String.prototype.indexOf%")]);return Gc=function(i,s){var a=n(i,!!s);return typeof a=="function"&&e(i,".prototype.")>-1?t([a]):a},Gc}var Yc,ly;function jR(){if(ly)return Yc;ly=1;var n=Ll()(),t=vo(),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,Yc=s?r:i,Yc}var Kc,uy;function UR(){if(uy)return Kc;uy=1;var n=vo(),t=Ll()(),e=sb(),r=as(),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 Kc=i,Kc}var Xc,cy;function qR(){if(cy)return Xc;cy=1;var n=vo(),t=UR(),e=n("RegExp.prototype.exec"),r=mo();return Xc=function(s){if(!t(s))throw new r("`regex` must be a RegExp");return function(l){return e(s,l)!==null}},Xc}var Jc,fy;function WR(){if(fy)return Jc;fy=1;var n=vo(),t=qR(),e=t(/^\s*(?:function)?\*/),r=Ll()(),i=Ph(),s=n("Object.prototype.toString"),a=n("Function.prototype.toString"),l=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},c;return Jc=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},Jc}var Zc,hy;function HR(){if(hy)return Zc;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 Zc=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)},Zc}var Qc,dy;function zR(){if(dy)return Qc;dy=1;var n=HR(),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 Qc=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)},Qc}var tf,py;function VR(){return py||(py=1,tf=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),tf}var ef,gy;function $R(){if(gy)return ef;gy=1;var n=VR(),t=typeof globalThis>"u"?We:globalThis;return ef=function(){for(var r=[],i=0;i<n.length;i++)typeof t[n[i]]=="function"&&(r[r.length]=n[i]);return r},ef}var nf={exports:{}},rf,my;function GR(){if(my)return rf;my=1;var n=Tl(),t=eb(),e=mo(),r=as();return rf=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.")},rf}var sf,yy;function YR(){if(yy)return sf;yy=1;var n=Tl(),t=function(){return!!n};return t.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},sf=t,sf}var of,vy;function KR(){if(vy)return of;vy=1;var n=ob(),t=GR(),e=YR()(),r=as(),i=mo(),s=n("%Math.floor%");return of=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},of}var af,by;function XR(){if(by)return af;by=1;var n=yo(),t=Mh(),e=ib();return af=function(){return e(n,t,arguments)},af}var _y;function JR(){return _y||(_y=1,function(n){var t=KR(),e=Tl(),r=Oh(),i=XR();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}(nf)),nf.exports}var lf,wy;function ab(){if(wy)return lf;wy=1;var n=zR(),t=$R(),e=JR(),r=vo(),i=as(),s=Ph(),a=r("Object.prototype.toString"),l=Ll()(),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 lf=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},lf}var uf,xy;function ZR(){if(xy)return uf;xy=1;var n=ab();return uf=function(e){return!!n(e)},uf}var Sy;function QR(){return Sy||(Sy=1,function(n){var t=jR(),e=WR(),r=ab(),i=ZR();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 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 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")}})})}(fc)),fc}var cf,Ey;function tM(){return Ey||(Ey=1,cf=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),cf}var Na={exports:{}},Ay;function Ei(){return Ay||(Ay=1,typeof Object.create=="function"?Na.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Na.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),Na.exports}var ky;function ls(){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(Mt){return v(Q,et,ot,mt,Mt,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(`
150
145
  `)>-1&&(lt?yt=yt.split(`
151
146
  `).map(function(j){return" "+j}).join(`
152
147
  `).slice(2):yt=`
@@ -155,18 +150,84 @@ function print() { __p += __j.call(arguments, '') }
155
150
  `))):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(`
156
151
  `)>=0,X+lt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?ot[0]+(et===""?"":et+`
157
152
  `)+" "+Q.join(`,
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};/*!
153
+ `)+" "+ot[1]:ot[0]+et+" "+Q.join(", ")+" "+ot[1]}n.types=QR();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=tM();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=Ei(),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}(cc)),cc}var ff,Ry;function Ch(){if(Ry)return ff;Ry=1;var n=[].slice;return ff=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)))}},ff}var hf,My;function lb(){return My||(My=1,hf=is().EventEmitter),hf}var df={},Oy;function Il(){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};/*!
159
154
  * The buffer module from node.js, for the browser.
160
155
  *
161
156
  * @author Feross Aboukhadijeh <https://feross.org>
162
157
  * @license MIT
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&&lt.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&&lt&&lt.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&&lt(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&&lt(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=`
158
+ */(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,M){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,M)}U.poolSize=8192;function xt(I,A,M){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(Pn(I,N)||I&&Pn(I.buffer,N)||typeof Y<"u"&&(Pn(I,Y)||I&&Pn(I.buffer,Y)))return kt(I,A,M);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,M);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,M);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,M){return xt(I,A,M)},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,M){return dt(I),I<=0?G(I):A!==void 0?typeof M=="string"?G(I).fill(A,M):G(I).fill(A):G(I)}U.alloc=function(I,A,M){return st(I,A,M)};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 M=et(I,A)|0;let W=G(M);const J=W.write(I,A);return J!==M&&(W=W.slice(0,J)),W}function bt(I){const A=I.length<0?0:Lt(I.length)|0,M=G(A);for(let W=0;W<A;W+=1)M[W]=I[W]&255;return M}function Et(I){if(Pn(I,L)){const A=new L(I);return kt(A.buffer,A.byteOffset,A.byteLength)}return bt(I)}function kt(I,A,M){if(A<0||I.byteLength<A)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<A+(M||0))throw new RangeError('"length" is outside of buffer bounds');let W;return A===void 0&&M===void 0?W=new L(I):M===void 0?W=new L(I,A):W=new L(I,A,M),Object.setPrototypeOf(W,U.prototype),W}function Ct(I){if(U.isBuffer(I)){const A=Lt(I.length)|0,M=G(A);return M.length===0||I.copy(M,0,0,A),M}if(I.length!==void 0)return typeof I.length!="number"||fs(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,M){if(Pn(A,L)&&(A=U.from(A,A.offset,A.byteLength)),Pn(M,L)&&(M=U.from(M,M.offset,M.byteLength)),!U.isBuffer(A)||!U.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===M)return 0;let W=A.length,J=M.length;for(let rt=0,pt=Math.min(W,J);rt<pt;++rt)if(A[rt]!==M[rt]){W=A[rt],J=M[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,M){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(M===void 0)for(M=0,W=0;W<A.length;++W)M+=A[W].length;const J=U.allocUnsafe(M);let rt=0;for(W=0;W<A.length;++W){let pt=A[W];if(Pn(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)||Pn(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 M=I.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&M===0)return 0;let J=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return ce(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M*2;case"hex":return M>>>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,M){let W=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0,A>>>=0,M<=A))return"";for(I||(I="utf8");;)switch(I){case"hex":return Oe(this,A,M);case"utf8":case"utf-8":return Ft(this,A,M);case"ascii":return Ne(this,A,M);case"latin1":case"binary":return ft(this,A,M);case"base64":return St(this,A,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,A,M);default:if(W)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),W=!0}}U.prototype._isBuffer=!0;function V(I,A,M){const W=I[A];I[A]=I[M],I[M]=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 M=0;M<A;M+=2)V(this,M,M+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 M=0;M<A;M+=4)V(this,M,M+3),V(this,M+1,M+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 M=0;M<A;M+=8)V(this,M,M+7),V(this,M+1,M+6),V(this,M+2,M+5),V(this,M+3,M+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 M=S.INSPECT_MAX_BYTES;return A=this.toString("hex",0,M).replace(/(.{2})/g,"$1 ").trim(),this.length>M&&(A+=" ... "),"<Buffer "+A+">"},k&&(U.prototype[k]=U.prototype.inspect),U.prototype.compare=function(A,M,W,J,rt){if(Pn(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(M===void 0&&(M=0),W===void 0&&(W=A?A.length:0),J===void 0&&(J=0),rt===void 0&&(rt=this.length),M<0||W>A.length||J<0||rt>this.length)throw new RangeError("out of range index");if(J>=rt&&M>=W)return 0;if(J>=rt)return-1;if(M>=W)return 1;if(M>>>=0,W>>>=0,J>>>=0,rt>>>=0,this===A)return 0;let pt=rt-J,Vt=W-M;const we=Math.min(pt,Vt),pe=this.slice(J,rt),xe=A.slice(M,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,M,W,J){if(I.length===0)return-1;if(typeof M=="string"?(W=M,M=0):M>2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),M=+M,fs(M)&&(M=J?0:I.length-1),M<0&&(M=I.length+M),M>=I.length){if(J)return-1;M=I.length-1}else if(M<0)if(J)M=0;else return-1;if(typeof A=="string"&&(A=U.from(A,W)),U.isBuffer(A))return A.length===0?-1:lt(I,A,M,W,J);if(typeof A=="number")return A=A&255,typeof L.prototype.indexOf=="function"?J?L.prototype.indexOf.call(I,A,M):L.prototype.lastIndexOf.call(I,A,M):lt(I,[A],M,W,J);throw new TypeError("val must be string, number or Buffer")}function lt(I,A,M,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,M/=2}function we(xe,oe){return rt===1?xe[oe]:xe.readUInt16BE(oe*rt)}let pe;if(J){let xe=-1;for(pe=M;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(M+Vt>pt&&(M=pt-Vt),pe=M;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,M,W){return this.indexOf(A,M,W)!==-1},U.prototype.indexOf=function(A,M,W){return X(this,A,M,W,!0)},U.prototype.lastIndexOf=function(A,M,W){return X(this,A,M,W,!1)};function mt(I,A,M,W){M=Number(M)||0;const J=I.length-M;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(fs(Vt))return pt;I[M+pt]=Vt}return pt}function yt(I,A,M,W){return Qr(ce(A,I.length-M),I,M,W)}function D(I,A,M,W){return Qr(fe(A),I,M,W)}function j(I,A,M,W){return Qr(ne(A),I,M,W)}function ut(I,A,M,W){return Qr(de(A,I.length-M),I,M,W)}U.prototype.write=function(A,M,W,J){if(M===void 0)J="utf8",W=this.length,M=0;else if(W===void 0&&typeof M=="string")J=M,W=this.length,M=0;else if(isFinite(M))M=M>>>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-M;if((W===void 0||W>rt)&&(W=rt),A.length>0&&(W<0||M<0)||M>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,M,W);case"utf8":case"utf-8":return yt(this,A,M,W);case"ascii":case"latin1":case"binary":return D(this,A,M,W);case"base64":return j(this,A,M,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,A,M,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,M){return A===0&&M===I.length?O.fromByteArray(I):O.fromByteArray(I.slice(A,M))}function Ft(I,A,M){M=Math.min(I.length,M);const W=[];let J=A;for(;J<M;){const rt=I[J];let pt=null,Vt=rt>239?4:rt>223?3:rt>191?2:1;if(J+Vt<=M){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 Mt=4096;function Tt(I){const A=I.length;if(A<=Mt)return String.fromCharCode.apply(String,I);let M="",W=0;for(;W<A;)M+=String.fromCharCode.apply(String,I.slice(W,W+=Mt));return M}function Ne(I,A,M){let W="";M=Math.min(I.length,M);for(let J=A;J<M;++J)W+=String.fromCharCode(I[J]&127);return W}function ft(I,A,M){let W="";M=Math.min(I.length,M);for(let J=A;J<M;++J)W+=String.fromCharCode(I[J]);return W}function Oe(I,A,M){const W=I.length;(!A||A<0)&&(A=0),(!M||M<0||M>W)&&(M=W);let J="";for(let rt=A;rt<M;++rt)J+=Vl[I[rt]];return J}function ue(I,A,M){const W=I.slice(A,M);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,M){const W=this.length;A=~~A,M=M===void 0?W:~~M,A<0?(A+=W,A<0&&(A=0)):A>W&&(A=W),M<0?(M+=W,M<0&&(M=0)):M>W&&(M=W),M<A&&(M=A);const J=this.subarray(A,M);return Object.setPrototypeOf(J,U.prototype),J};function te(I,A,M){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+A>M)throw new RangeError("Trying to access beyond buffer length")}U.prototype.readUintLE=U.prototype.readUIntLE=function(A,M,W){A=A>>>0,M=M>>>0,W||te(A,M,this.length);let J=this[A],rt=1,pt=0;for(;++pt<M&&(rt*=256);)J+=this[A+pt]*rt;return J},U.prototype.readUintBE=U.prototype.readUIntBE=function(A,M,W){A=A>>>0,M=M>>>0,W||te(A,M,this.length);let J=this[A+--M],rt=1;for(;M>0&&(rt*=256);)J+=this[A+--M]*rt;return J},U.prototype.readUint8=U.prototype.readUInt8=function(A,M){return A=A>>>0,M||te(A,1,this.length),this[A]},U.prototype.readUint16LE=U.prototype.readUInt16LE=function(A,M){return A=A>>>0,M||te(A,2,this.length),this[A]|this[A+1]<<8},U.prototype.readUint16BE=U.prototype.readUInt16BE=function(A,M){return A=A>>>0,M||te(A,2,this.length),this[A]<<8|this[A+1]},U.prototype.readUint32LE=U.prototype.readUInt32LE=function(A,M){return A=A>>>0,M||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,M){return A=A>>>0,M||te(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},U.prototype.readBigUInt64LE=Qn(function(A){A=A>>>0,K(A,"offset");const M=this[A],W=this[A+7];(M===void 0||W===void 0)&&nt(A,this.length-8);const J=M+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=Qn(function(A){A=A>>>0,K(A,"offset");const M=this[A],W=this[A+7];(M===void 0||W===void 0)&&nt(A,this.length-8);const J=M*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,M,W){A=A>>>0,M=M>>>0,W||te(A,M,this.length);let J=this[A],rt=1,pt=0;for(;++pt<M&&(rt*=256);)J+=this[A+pt]*rt;return rt*=128,J>=rt&&(J-=Math.pow(2,8*M)),J},U.prototype.readIntBE=function(A,M,W){A=A>>>0,M=M>>>0,W||te(A,M,this.length);let J=M,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*M)),pt},U.prototype.readInt8=function(A,M){return A=A>>>0,M||te(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},U.prototype.readInt16LE=function(A,M){A=A>>>0,M||te(A,2,this.length);const W=this[A]|this[A+1]<<8;return W&32768?W|4294901760:W},U.prototype.readInt16BE=function(A,M){A=A>>>0,M||te(A,2,this.length);const W=this[A+1]|this[A]<<8;return W&32768?W|4294901760:W},U.prototype.readInt32LE=function(A,M){return A=A>>>0,M||te(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},U.prototype.readInt32BE=function(A,M){return A=A>>>0,M||te(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},U.prototype.readBigInt64LE=Qn(function(A){A=A>>>0,K(A,"offset");const M=this[A],W=this[A+7];(M===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(M+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24)}),U.prototype.readBigInt64BE=Qn(function(A){A=A>>>0,K(A,"offset");const M=this[A],W=this[A+7];(M===void 0||W===void 0)&&nt(A,this.length-8);const J=(M<<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,M){return A=A>>>0,M||te(A,4,this.length),w.read(this,A,!0,23,4)},U.prototype.readFloatBE=function(A,M){return A=A>>>0,M||te(A,4,this.length),w.read(this,A,!1,23,4)},U.prototype.readDoubleLE=function(A,M){return A=A>>>0,M||te(A,8,this.length),w.read(this,A,!0,52,8)},U.prototype.readDoubleBE=function(A,M){return A=A>>>0,M||te(A,8,this.length),w.read(this,A,!1,52,8)};function re(I,A,M,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(M+W>I.length)throw new RangeError("Index out of range")}U.prototype.writeUintLE=U.prototype.writeUIntLE=function(A,M,W,J){if(A=+A,M=M>>>0,W=W>>>0,!J){const Vt=Math.pow(2,8*W)-1;re(this,A,M,W,Vt,0)}let rt=1,pt=0;for(this[M]=A&255;++pt<W&&(rt*=256);)this[M+pt]=A/rt&255;return M+W},U.prototype.writeUintBE=U.prototype.writeUIntBE=function(A,M,W,J){if(A=+A,M=M>>>0,W=W>>>0,!J){const Vt=Math.pow(2,8*W)-1;re(this,A,M,W,Vt,0)}let rt=W-1,pt=1;for(this[M+rt]=A&255;--rt>=0&&(pt*=256);)this[M+rt]=A/pt&255;return M+W},U.prototype.writeUint8=U.prototype.writeUInt8=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,1,255,0),this[M]=A&255,M+1},U.prototype.writeUint16LE=U.prototype.writeUInt16LE=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,2,65535,0),this[M]=A&255,this[M+1]=A>>>8,M+2},U.prototype.writeUint16BE=U.prototype.writeUInt16BE=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,2,65535,0),this[M]=A>>>8,this[M+1]=A&255,M+2},U.prototype.writeUint32LE=U.prototype.writeUInt32LE=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,4,4294967295,0),this[M+3]=A>>>24,this[M+2]=A>>>16,this[M+1]=A>>>8,this[M]=A&255,M+4},U.prototype.writeUint32BE=U.prototype.writeUInt32BE=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,4,4294967295,0),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4};function ze(I,A,M,W,J){q(A,W,J,I,M,7);let rt=Number(A&BigInt(4294967295));I[M++]=rt,rt=rt>>8,I[M++]=rt,rt=rt>>8,I[M++]=rt,rt=rt>>8,I[M++]=rt;let pt=Number(A>>BigInt(32)&BigInt(4294967295));return I[M++]=pt,pt=pt>>8,I[M++]=pt,pt=pt>>8,I[M++]=pt,pt=pt>>8,I[M++]=pt,M}function ke(I,A,M,W,J){q(A,W,J,I,M,7);let rt=Number(A&BigInt(4294967295));I[M+7]=rt,rt=rt>>8,I[M+6]=rt,rt=rt>>8,I[M+5]=rt,rt=rt>>8,I[M+4]=rt;let pt=Number(A>>BigInt(32)&BigInt(4294967295));return I[M+3]=pt,pt=pt>>8,I[M+2]=pt,pt=pt>>8,I[M+1]=pt,pt=pt>>8,I[M]=pt,M+8}U.prototype.writeBigUInt64LE=Qn(function(A,M=0){return ze(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeBigUInt64BE=Qn(function(A,M=0){return ke(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeIntLE=function(A,M,W,J){if(A=+A,M=M>>>0,!J){const we=Math.pow(2,8*W-1);re(this,A,M,W,we-1,-we)}let rt=0,pt=1,Vt=0;for(this[M]=A&255;++rt<W&&(pt*=256);)A<0&&Vt===0&&this[M+rt-1]!==0&&(Vt=1),this[M+rt]=(A/pt>>0)-Vt&255;return M+W},U.prototype.writeIntBE=function(A,M,W,J){if(A=+A,M=M>>>0,!J){const we=Math.pow(2,8*W-1);re(this,A,M,W,we-1,-we)}let rt=W-1,pt=1,Vt=0;for(this[M+rt]=A&255;--rt>=0&&(pt*=256);)A<0&&Vt===0&&this[M+rt+1]!==0&&(Vt=1),this[M+rt]=(A/pt>>0)-Vt&255;return M+W},U.prototype.writeInt8=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,1,127,-128),A<0&&(A=255+A+1),this[M]=A&255,M+1},U.prototype.writeInt16LE=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,2,32767,-32768),this[M]=A&255,this[M+1]=A>>>8,M+2},U.prototype.writeInt16BE=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,2,32767,-32768),this[M]=A>>>8,this[M+1]=A&255,M+2},U.prototype.writeInt32LE=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,4,2147483647,-2147483648),this[M]=A&255,this[M+1]=A>>>8,this[M+2]=A>>>16,this[M+3]=A>>>24,M+4},U.prototype.writeInt32BE=function(A,M,W){return A=+A,M=M>>>0,W||re(this,A,M,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4},U.prototype.writeBigInt64LE=Qn(function(A,M=0){return ze(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),U.prototype.writeBigInt64BE=Qn(function(A,M=0){return ke(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function an(I,A,M,W,J,rt){if(M+W>I.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function Ge(I,A,M,W,J){return A=+A,M=M>>>0,J||an(I,A,M,4),w.write(I,A,M,W,23,4),M+4}U.prototype.writeFloatLE=function(A,M,W){return Ge(this,A,M,!0,W)},U.prototype.writeFloatBE=function(A,M,W){return Ge(this,A,M,!1,W)};function ye(I,A,M,W,J){return A=+A,M=M>>>0,J||an(I,A,M,8),w.write(I,A,M,W,52,8),M+8}U.prototype.writeDoubleLE=function(A,M,W){return ye(this,A,M,!0,W)},U.prototype.writeDoubleBE=function(A,M,W){return ye(this,A,M,!1,W)},U.prototype.copy=function(A,M,W,J){if(!U.isBuffer(A))throw new TypeError("argument should be a Buffer");if(W||(W=0),!J&&J!==0&&(J=this.length),M>=A.length&&(M=A.length),M||(M=0),J>0&&J<W&&(J=W),J===W||A.length===0||this.length===0)return 0;if(M<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-M<J-W&&(J=A.length-M+W);const rt=J-W;return this===A&&typeof L.prototype.copyWithin=="function"?this.copyWithin(M,W,J):L.prototype.set.call(A,this.subarray(W,J),M),rt},U.prototype.fill=function(A,M,W,J){if(typeof A=="string"){if(typeof M=="string"?(J=M,M=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(M<0||this.length<M||this.length<W)throw new RangeError("Out of range index");if(W<=M)return this;M=M>>>0,W=W===void 0?this.length:W>>>0,A||(A=0);let rt;if(typeof A=="number")for(rt=M;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-M;++rt)this[rt+M]=pt[rt%Vt]}return this};const On={};function T(I,A,M){On[I]=class extends M{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,M){let W=`The value of "${I}" is out of range.`,J=M;return Number.isInteger(M)&&Math.abs(M)>2**32?J=E(String(M)):typeof M=="bigint"&&(J=String(M),(M>BigInt(2)**BigInt(32)||M<-(BigInt(2)**BigInt(32)))&&(J=E(J)),J+="n"),W+=` It must be ${A}. Received ${J}`,W},RangeError);function E(I){let A="",M=I.length;const W=I[0]==="-"?1:0;for(;M>=W+4;M-=3)A=`_${I.slice(M-3,M)}${A}`;return`${I.slice(0,M)}${A}`}function R(I,A,M){K(A,"offset"),(I[A]===void 0||I[A+M]===void 0)&&nt(A,I.length-(M+1))}function q(I,A,M,W,J,rt){if(I>M||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 On.ERR_OUT_OF_RANGE("value",Vt,I)}R(W,J,rt)}function K(I,A){if(typeof I!="number")throw new On.ERR_INVALID_ARG_TYPE(A,"number",I)}function nt(I,A,M){throw Math.floor(I)!==I?(K(I,M),new On.ERR_OUT_OF_RANGE("offset","an integer",I)):A<0?new On.ERR_BUFFER_OUT_OF_BOUNDS:new On.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 M;const W=I.length;let J=null;const rt=[];for(let pt=0;pt<W;++pt){if(M=I.charCodeAt(pt),M>55295&&M<57344){if(!J){if(M>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=M;continue}if(M<56320){(A-=3)>-1&&rt.push(239,191,189),J=M;continue}M=(J-55296<<10|M-56320)+65536}else J&&(A-=3)>-1&&rt.push(239,191,189);if(J=null,M<128){if((A-=1)<0)break;rt.push(M)}else if(M<2048){if((A-=2)<0)break;rt.push(M>>6|192,M&63|128)}else if(M<65536){if((A-=3)<0)break;rt.push(M>>12|224,M>>6&63|128,M&63|128)}else if(M<1114112){if((A-=4)<0)break;rt.push(M>>18|240,M>>12&63|128,M>>6&63|128,M&63|128)}else throw new Error("Invalid code point")}return rt}function fe(I){const A=[];for(let M=0;M<I.length;++M)A.push(I.charCodeAt(M)&255);return A}function de(I,A){let M,W,J;const rt=[];for(let pt=0;pt<I.length&&!((A-=2)<0);++pt)M=I.charCodeAt(pt),W=M>>8,J=M%256,rt.push(J),rt.push(W);return rt}function ne(I){return O.toByteArray(Ut(I))}function Qr(I,A,M,W){let J;for(J=0;J<W&&!(J+M>=A.length||J>=I.length);++J)A[J+M]=I[J];return J}function Pn(I,A){return I instanceof A||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===A.name}function fs(I){return I!==I}const Vl=function(){const I="0123456789abcdef",A=new Array(256);for(let M=0;M<16;++M){const W=M*16;for(let J=0;J<16;++J)A[W+J]=I[M]+I[J]}return A}();function Qn(I){return typeof BigInt>"u"?wo:I}function wo(){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}(df)),df}var pf,Py;function eM(){if(Py)return pf;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=Il(),h=c.Buffer,f=ls(),g=f.inspect,d=g&&g.custom||"inspect";function m(p,v,_){h.prototype.copy.call(p,v,_)}return pf=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}(),pf}var gf,Cy;function ub(){if(Cy)return gf;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 gf={destroy:n,undestroy:r,errorOrDestroy:s},gf}var mf={},Ly;function us(){if(Ly)return mf;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"),mf.codes=t,mf}var yf,Ty;function cb(){if(Ty)return yf;Ty=1;var n=us().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 yf={getHighWaterMark:e},yf}var vf,Iy;function nM(){if(Iy)return vf;Iy=1,vf=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 vf}var bf,By;function fb(){if(By)return bf;By=1,bf=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:nM()},r=lb(),i=Il().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=ub(),h=cb(),f=h.getHighWaterMark,g=us().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;Ei()(N,r);function k(){}function C(V,X,lt){t=t||Qi(),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||Qi();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&&lt.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&&lt&&lt.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 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)},bf}var _f,Dy;function Qi(){if(Dy)return _f;Dy=1;var n=Object.keys||function(h){var f=[];for(var g in h)f.push(g);return f};_f=a;var t=hb(),e=fb();Ei()(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)}}),_f}var wf={},ja={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Fy;function rM(){return Fy||(Fy=1,function(n,t){var e=Il(),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)}}(ja,ja.exports)),ja.exports}var Ny;function jy(){if(Ny)return wf;Ny=1;var n=rM().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}wf.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 wf}var xf,Uy;function Lh(){if(Uy)return xf;Uy=1;var n=us().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 xf=i,xf}var Sf,qy;function iM(){if(qy)return Sf;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=Lh(),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 Sf=S,Sf}var Ef,Wy;function sM(){return Wy||(Wy=1,Ef=function(){throw new Error("Readable.from is not available in the browser")}),Ef}var Af,Hy;function hb(){if(Hy)return Af;Hy=1,Af=Y;var n;Y.ReadableState=N,is().EventEmitter;var t=function(j,ut){return j.listeners(ut).length},e=lb(),r=Il().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=ls(),c;l&&l.debuglog?c=l.debuglog("stream"):c=function(){};var h=eM(),f=ub(),g=cb(),d=g.getHighWaterMark,m=us().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;Ei()(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||Qi(),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||Qi(),!(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)k(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?k(D,new b):G(D,Mt,j,!0);else if(Mt.ended)k(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){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&&lt(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&&lt(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,Mt=Ft?Ne:an;St.endEmitted?Qt.nextTick(Mt):ut.once("end",Mt),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",an),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),an(),D.removeListener("error",re),t(D,"error")===0&&k(D,Ge)}L(D,"error",re);function ze(){D.removeListener("finish",ke),an()}D.once("close",ze);function ke(){c("onfinish"),D.removeListener("close",ze),an()}D.once("finish",ke);function an(){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 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 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 Mt=0;Mt<C.length;Mt++)D.on(C[Mt],this.emit.bind(this,C[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 O===void 0&&(O=iM()),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=sM()),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 Af}var kf,zy;function db(){if(zy)return kf;zy=1,kf=l;var n=us().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=Qi();Ei()(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 kf}var Rf,Vy;function oM(){if(Vy)return Rf;Vy=1,Rf=t;var n=db();Ei()(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)},Rf}var Mf,$y;function aM(){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=us().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=Lh()),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 Of,Gy;function pb(){if(Gy)return Of;Gy=1,Of=e;var n=is().EventEmitter,t=Ei();t(e,n),e.Readable=hb(),e.Writable=fb(),e.Duplex=Qi(),e.Transform=db(),e.PassThrough=oM(),e.finished=Lh(),e.pipeline=aM(),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},Of}var Pf,Yy;function lM(){if(Yy)return Pf;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 Pf=n,Pf}var Ua={exports:{}},qa={exports:{}},Cf,Ky;function uM(){if(Ky)return Cf;Ky=1;var n=1e3,t=n*60,e=t*60,r=e*24,i=r*365.25;Cf=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 Cf}var Xy;function cM(){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=uM(),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}}(qa,qa.exports)),qa.exports}var Jy;function gb(){return Jy||(Jy=1,function(n,t){t=n.exports=cM(),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{}}}(Ua,Ua.exports)),Ua.exports}var Lf,Zy;function Th(){if(Zy)return Lf;Zy=1;var n=ls(),t=pb().Duplex,e=Ch(),r=lM(),i=gb()("socket.io-stream:iostream");Lf=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()},Lf}var Wa={},Qy;function fM(){if(Qy)return Wa;Qy=1;var n=ls(),t=is().EventEmitter,e=Th();Wa.Encoder=r,Wa.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},Wa}var t0;function hM(){return t0||(t0=1,function(n,t){var e=ls(),r=is().EventEmitter,i=Ch();Th();var s=fM(),a=gb()("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){ro.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 ro(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]}}(Fa,Fa.exports)),Fa.exports}var Tf,e0;function dM(){if(e0)return Tf;e0=1;var n=ls(),t=pb().Readable,e=Ch();Tf=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 ro(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 ro(new Uint8Array(i.target.result));this.push(s)},r.prototype._onerror=function(i){var s=i.target.error;this.emit("error",s)},Tf}var n0;function pM(){return n0||(n0=1,function(n,t){var e=hM(),r=Th(),i=dM();t=n.exports=s,t.Buffer=ro,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)}}(Da,Da.exports)),Da.exports}var If,r0;function gM(){return r0||(r0=1,If=pM()),If}var mb=gM();const yb=Si(mb),mM=ik({__proto__:null,default:yb},[mb]),Bf=yb||mM,Kn=n=>n,yM=(n=0,t=1)=>(e=t)=>n+=e,vM=Ie.compile(sR);class ts extends Me{constructor(t){var e;super(),this.configuration=t,this.buttons={all:$s.build({name:"ALL",isEnabled:!0}),provided:Kn({})},this.panel=new Mr({...this.configuration,class:`checkbox-area ${this.configuration.class??""}`}).append(vM(this.configuration)),this.area=new Me(this.panel.element.querySelector("div.buttons")).append(this.buttons.all),this.events=new ss,this.storage=(e=this.configuration.storage)!=null&&e.key?go.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 $s?i:$s.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}trigger(){return this.emit("switch",this.extract())}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 ts(t)}}const bM=`
159
+ <p class="separator">{{title}}</p>
160
+ `,_M=Ie.compile(bM);class vi extends Me{highlight(){return this.element.classList.add("highlighted"),this}static build(t){return new vi(_M({title:t}))}}class Ih extends Me{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 Ih(t)}}class Bh extends Ih{constructor(){super({isPreventedToManualClose:!0}),this.append('<div><p>Ping pong</p><div class="loader"></div></div>').identify("loader")}static build(){return new Bh}}const wM=`
161
+ <div class="popup-message {{level}}">
162
+ {{#compare level 'eq' 'info'}}<i class="fas fa-check"></i>{{/compare}}
163
+ {{#compare level 'eq' 'warning'}}<i class="fas fa-exclamation-triangle"></i>{{/compare}}
164
+ {{#compare level 'eq' 'error'}}<i class="fas fa-times"></i>{{/compare}}
165
+
166
+ <span>{{{message}}}</span>
167
+ </div>
168
+ `,xM=Ie.compile(wM);class Dh extends Me{constructor(){super(),this.element.classList.add("popups")}push(t,e={}){const r=this.compileHtmlStringToElement(xM({message:t,level:e.level??"info"}));this.element.prepend(r),setTimeout(()=>r.remove(),3e3)}static build(){return new Dh}}const SM=`
169
+ <div class="search">
170
+ <i class="fas fa-search"></i>
171
+ <div class="input" title="{{title}}"><input data-key="search" type="text"></div>
172
+ <button><i class="far fa-times-circle"></i></button>
173
+ </div>
174
+ `,EM=Ie.compile(SM);class Bl extends Me{constructor(t){super(EM({title:(t==null?void 0:t.title)??"Type something"})),this.options=t,this.events=new $v.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",Mn.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 Bl(t)}}const AM=`
175
+ <header>
176
+ <div id="tabs">
177
+ {{#each tabs}}
178
+ {{#compare type 'eq' 'separator'}}<hr>{{/compare}}
179
+
180
+ {{#compare type 'eq' 'section'}}
181
+ <button class="{{#unless entity.meta.name}}icon-only{{/unless}} {{#if isSelected}}checked{{/if}}" id="{{id}}">
182
+ <i class="{{entity.meta.icon}}"></i>{{entity.meta.name}}
183
+ </button>
184
+ {{/compare}}
185
+ {{/each}}
186
+ </div>
187
+ </header>
188
+ `,hr=Object.create(null);hr.open="0";hr.close="1";hr.ping="2";hr.pong="3";hr.message="4";hr.upgrade="5";hr.noop="6";const fl=Object.create(null);Object.keys(hr).forEach(n=>{fl[hr[n]]=n});const kM={type:"error",data:"parser error"},RM=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",MM=typeof ArrayBuffer=="function",OM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,vb=({type:n,data:t},e,r)=>RM&&t instanceof Blob?e?r(t):i0(t,r):MM&&(t instanceof ArrayBuffer||OM(t))?e?r(t):i0(new Blob([t]),r):r(hr[n]+(t||"")),i0=(n,t)=>{const e=new FileReader;return e.onload=function(){const r=e.result.split(",")[1];t("b"+r)},e.readAsDataURL(n)},s0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",js=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<s0.length;n++)js[s0.charCodeAt(n)]=n;const PM=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=js[n.charCodeAt(r)],a=js[n.charCodeAt(r+1)],l=js[n.charCodeAt(r+2)],c=js[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},CM=typeof ArrayBuffer=="function",bb=(n,t)=>{if(typeof n!="string")return{type:"message",data:_b(n,t)};const e=n.charAt(0);return e==="b"?{type:"message",data:LM(n.substring(1),t)}:fl[e]?n.length>1?{type:fl[e],data:n.substring(1)}:{type:fl[e]}:kM},LM=(n,t)=>{if(CM){const e=PM(n);return _b(e,t)}else return{base64:!0,data:n}},_b=(n,t)=>{switch(t){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},wb="",TM=(n,t)=>{const e=n.length,r=new Array(e);let i=0;n.forEach((s,a)=>{vb(s,!1,l=>{r[a]=l,++i===e&&t(r.join(wb))})})},IM=(n,t)=>{const e=n.split(wb),r=[];for(let i=0;i<e.length;i++){const s=bb(e[i],t);if(r.push(s),s.type==="error")break}return r},xb=4;function Fe(n){if(n)return BM(n)}function BM(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 zr=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Sb(n,...t){return t.reduce((e,r)=>(n.hasOwnProperty(r)&&(e[r]=n[r]),e),{})}const DM=setTimeout,FM=clearTimeout;function Dl(n,t){t.useNativeTimers?(n.setTimeoutFn=DM.bind(zr),n.clearTimeoutFn=FM.bind(zr)):(n.setTimeoutFn=setTimeout.bind(zr),n.clearTimeoutFn=clearTimeout.bind(zr))}const NM=1.33;function jM(n){return typeof n=="string"?UM(n):Math.ceil((n.byteLength||n.size)*NM)}function UM(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 qM extends Error{constructor(t,e,r){super(t),this.description=e,this.context=r,this.type="TransportError"}}class Eb extends Fe{constructor(t){super(),this.writable=!1,Dl(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,e,r){return super.emitReserved("error",new qM(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=bb(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const Ab="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Qf=64,WM={};let o0=0,Ha=0,a0;function l0(n){let t="";do t=Ab[n%Qf]+t,n=Math.floor(n/Qf);while(n>0);return t}function kb(){const n=l0(+new Date);return n!==a0?(o0=0,a0=n):n+"."+l0(o0++)}for(;Ha<Qf;Ha++)WM[Ab[Ha]]=Ha;function Rb(n){let t="";for(let e in n)n.hasOwnProperty(e)&&(t.length&&(t+="&"),t+=encodeURIComponent(e)+"="+encodeURIComponent(n[e]));return t}function HM(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 Mb=!1;try{Mb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const zM=Mb;function Ob(n){const t=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||zM))return new XMLHttpRequest}catch{}if(!t)try{return new zr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function VM(){}const $M=function(){return new Ob({xdomain:!1}).responseType!=null}();class GM extends Eb{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=$M&&!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)};IM(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,TM(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]=kb()),!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=Rb(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 cr(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 cr extends Fe{constructor(t,e){super(),Dl(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=Sb(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 Ob(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=cr.requestsCount++,cr.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=VM,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete cr.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()}}cr.requestsCount=0;cr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",u0);else if(typeof addEventListener=="function"){const n="onpagehide"in zr?"pagehide":"unload";addEventListener(n,u0,!1)}}function u0(){for(let n in cr.requests)cr.requests.hasOwnProperty(n)&&cr.requests[n].abort()}const Pb=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,e)=>e(t,0),za=zr.WebSocket||zr.MozWebSocket,c0=!0,YM="arraybuffer",f0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class KM extends Eb{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=f0?{}:Sb(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=c0&&!f0?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||YM,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;vb(r,this.supportsBinary,s=>{const a={};try{c0&&this.ws.send(s)}catch{}i&&Pb(()=>{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]=kb()),this.supportsBinary||(t.b64=1);const i=Rb(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 XM={websocket:KM,polling:GM},JM=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ZM=["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=JM.exec(n||""),s={},a=14;for(;a--;)s[ZM[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=QM(s,s.path),s.queryKey=tO(s,s.query),s}function QM(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 tO(n,t){const e={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(e[i]=s)}),e}let Cb=class Gi 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),Dl(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=HM(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=xb,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 XM[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Gi.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;Gi.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;Gi.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",Gi.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+=jM(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){Gi.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}};Cb.protocol=xb;function eO(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 nO=typeof ArrayBuffer=="function",rO=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Lb=Object.prototype.toString,iO=typeof Blob=="function"||typeof Blob<"u"&&Lb.call(Blob)==="[object BlobConstructor]",sO=typeof File=="function"||typeof File<"u"&&Lb.call(File)==="[object FileConstructor]";function Fh(n){return nO&&(n instanceof ArrayBuffer||rO(n))||iO&&n instanceof Blob||sO&&n instanceof File}function hl(n,t){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let e=0,r=n.length;e<r;e++)if(hl(n[e]))return!0;return!1}if(Fh(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return hl(n.toJSON(),!0);for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&hl(n[e]))return!0;return!1}function oO(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(Fh(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 aO(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 lO=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 uO{constructor(t){this.replacer=t}encode(t){return(t.type===ee.EVENT||t.type===ee.ACK)&&hl(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=oO(t),r=this.encodeAsString(e.packet),i=e.buffers;return i.unshift(r),i}}class Nh 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 cO(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(Fh(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(Nh.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 cO{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=aO(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const fO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Nh,Encoder:uO,get PacketType(){return ee},protocol:lO},Symbol.toStringTag,{value:"Module"}));function Gn(n,t,e){return n.on(t,e),function(){n.off(t,e)}}const hO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Tb 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=[Gn(t,"open",this.onopen.bind(this)),Gn(t,"packet",this.onpacket.bind(this)),Gn(t,"error",this.onerror.bind(this)),Gn(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(hO.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 cs(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}cs.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};cs.prototype.reset=function(){this.attempts=0};cs.prototype.setMin=function(n){this.ms=n};cs.prototype.setMax=function(n){this.max=n};cs.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,Dl(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 cs({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||fO;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 Cb(this.uri,this.opts);const e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Gn(e,"open",function(){r.onopen(),t&&t()}),s=Gn(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(Gn(t,"ping",this.onping.bind(this)),Gn(t,"data",this.ondata.bind(this)),Gn(t,"error",this.onerror.bind(this)),Gn(t,"close",this.onclose.bind(this)),Gn(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){Pb(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let r=this.nsps[t];return r||(r=new Tb(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 Ps={};function dl(n,t){typeof n=="object"&&(t=n,n=void 0),t=t||{};const e=eO(n,t.path||"/socket.io"),r=e.source,i=e.id,s=e.path,a=Ps[i]&&s in Ps[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return l?c=new rh(r,t):(Ps[i]||(Ps[i]=new rh(r,t)),c=Ps[i]),e.query&&!t.query&&(t.query=e.queryKey),c.socket(e.path,t)}Object.assign(dl,{Manager:rh,Socket:Tb,io:dl,connect:dl});class jh{constructor(){this.storage={"settings:visual:path-size":Kn("M")},this.events=new ss,this.memory=go.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 jh}}class Uh{constructor(){this.storage=new Set,this.events=new ss}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 Uh}}var Df,h0;function dO(){if(h0)return Df;h0=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 Df=_,Df}var pO=dO();const gO=Si(pO);class qh{constructor(){this.storage={history:{limit:100}}}assign(t){return this.storage=gO(this.storage,t,{arrayMerge:(e,r)=>r}),this}static build(){return new qh}}class mO extends aR{constructor(){var t,e;super(...arguments),this.instances={io:dl(((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:jh.build(),groups:Uh.build(),config:qh.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 Nt=new mO,yO=Ie.compile(AM);class Wh extends Me{constructor(t){super(yO({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)=>Mn.set(e,r.id,r),{}),this.events=new ss,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()),Nt.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 Wh(t)}}const vO=`
189
+ <div class="empty">
190
+ <i class="fas fa-hourglass-start"></i>
191
+ <p>There's still nothing...</p>
192
+ </div>
193
+ `,bO=Ie.compile(vO);class Fl extends Me{static build(){return new Fl(bO({}))}}/*!
194
+ * @kurkle/color v0.3.4
195
+ * https://github.com/kurkle/color#readme
196
+ * (c) 2024 Jukka Kurkela
197
+ * Released under the MIT License
198
+ */function bo(n){return n+.5|0}const Vr=(n,t,e)=>Math.max(Math.min(n,e),t);function Us(n){return Vr(bo(n*2.55),0,255)}function Kr(n){return Vr(bo(n*255),0,255)}function kr(n){return Vr(bo(n/2.55)/100,0,1)}function d0(n){return Vr(bo(n*100),0,100)}const jn={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"],_O=n=>ih[n&15],wO=n=>ih[(n&240)>>4]+ih[n&15],Va=n=>(n&240)>>4===(n&15),xO=n=>Va(n.r)&&Va(n.g)&&Va(n.b)&&Va(n.a);function SO(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&jn[n[1]]*17,g:255&jn[n[2]]*17,b:255&jn[n[3]]*17,a:t===5?jn[n[4]]*17:255}:(t===7||t===9)&&(e={r:jn[n[1]]<<4|jn[n[2]],g:jn[n[3]]<<4|jn[n[4]],b:jn[n[5]]<<4|jn[n[6]],a:t===9?jn[n[7]]<<4|jn[n[8]]:255})),e}const EO=(n,t)=>n<255?t(n):"";function AO(n){var t=xO(n)?_O:wO;return n?"#"+t(n.r)+t(n.g)+t(n.b)+EO(n.a,t):void 0}const kO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ib(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 RO(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 MO(n,t,e){const r=Ib(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 OO(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 Hh(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=OO(e,r,i,f,s),c=c*60+.5),[c|0,h||0,l]}function zh(n,t,e,r){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,r)).map(Kr)}function Vh(n,t,e){return zh(Ib,n,t,e)}function PO(n,t,e){return zh(MO,n,t,e)}function CO(n,t,e){return zh(RO,n,t,e)}function Bb(n){return(n%360+360)%360}function LO(n){const t=kO.exec(n);let e=255,r;if(!t)return;t[5]!==r&&(e=t[6]?Us(+t[5]):Kr(+t[5]));const i=Bb(+t[2]),s=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=PO(i,s,a):t[1]==="hsv"?r=CO(i,s,a):r=Vh(i,s,a),{r:r[0],g:r[1],b:r[2],a:e}}function TO(n,t){var e=Hh(n);e[0]=Bb(e[0]+t),e=Vh(e),n.r=e[0],n.g=e[1],n.b=e[2]}function IO(n){if(!n)return;const t=Hh(n),e=t[0],r=d0(t[1]),i=d0(t[2]);return n.a<255?`hsla(${e}, ${r}%, ${i}%, ${kr(n.a)})`:`hsl(${e}, ${r}%, ${i}%)`}const p0={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"},g0={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 BO(){const n={},t=Object.keys(g0),e=Object.keys(p0);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,p0[s]);s=parseInt(g0[a],16),n[l]=[s>>16&255,s>>8&255,s&255]}return n}let $a;function DO(n){$a||($a=BO(),$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 FO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function NO(n){const t=FO.exec(n);let e=255,r,i,s;if(t){if(t[7]!==r){const a=+t[7];e=t[8]?Us(a):Vr(a*255,0,255)}return r=+t[1],i=+t[3],s=+t[5],r=255&(t[2]?Us(r):Vr(r,0,255)),i=255&(t[4]?Us(i):Vr(i,0,255)),s=255&(t[6]?Us(s):Vr(s,0,255)),{r,g:i,b:s,a:e}}}function jO(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${kr(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}const Ff=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 UO(n,t,e){const r=zi(kr(n.r)),i=zi(kr(n.g)),s=zi(kr(n.b));return{r:Kr(Ff(r+e*(zi(kr(t.r))-r))),g:Kr(Ff(i+e*(zi(kr(t.g))-i))),b:Kr(Ff(s+e*(zi(kr(t.b))-s))),a:n.a+e*(t.a-n.a)}}function Ga(n,t,e){if(n){let r=Hh(n);r[t]=Math.max(0,Math.min(r[t]+r[t]*e,t===0?360:1)),r=Vh(r),n.r=r[0],n.g=r[1],n.b=r[2]}}function Db(n,t){return n&&Object.assign(t||{},n)}function m0(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=Kr(n[3]))):(t=Db(n,{r:0,g:0,b:0,a:1}),t.a=Kr(t.a)),t}function qO(n){return n.charAt(0)==="r"?NO(n):LO(n)}class io{constructor(t){if(t instanceof io)return t;const e=typeof t;let r;e==="object"?r=m0(t):e==="string"&&(r=SO(t)||DO(t)||qO(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Db(this._rgb);return t&&(t.a=kr(t.a)),t}set rgb(t){this._rgb=m0(t)}rgbString(){return this._valid?jO(this._rgb):void 0}hexString(){return this._valid?AO(this._rgb):void 0}hslString(){return this._valid?IO(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=UO(this._rgb,t._rgb,e)),this}clone(){return new io(this.rgb)}alpha(t){return this._rgb.a=Kr(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=bo(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 TO(this._rgb,t),this}}/*!
199
+ * Chart.js v4.4.8
200
+ * https://www.chartjs.org
201
+ * (c) 2025 Chart.js Contributors
202
+ * Released under the MIT License
203
+ */function Sr(){}const WO=(()=>{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 kn(n,t){return Ce(n)?n:t}function Wt(n,t){return typeof n>"u"?t:n}const HO=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,Fb=(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 Sl(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 El(n){if(Ee(n))return n.map(El);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]]=El(n[e[i]]);return t}return n}function Nb(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function zO(n,t,e,r){if(!Nb(n))return;const i=t[n],s=e[n];Jt(i)&&Jt(s)?so(i,s,r):t[n]=El(s)}function so(n,t,e){const r=Ee(t)?t:[t],i=r.length;if(!Jt(n))return n;e=e||{};const s=e.merger||zO;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 Gs(n,t){return so(n,t,{merger:VO})}function VO(n,t,e){if(!Nb(n))return;const r=t[n],i=e[n];Jt(r)&&Jt(i)?Gs(r,i):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=El(i))}const y0={"":n=>n,x:n=>n.x,y:n=>n.y};function $O(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 GO(n){const t=$O(n);return e=>{for(const r of t){if(r==="")break;e=e&&e[r]}return e}}function Xr(n,t){return(y0[t]||(y0[t]=GO(t)))(n)}function $h(n){return n.charAt(0).toUpperCase()+n.slice(1)}const oo=n=>typeof n<"u",Jr=n=>typeof n=="function",v0=(n,t)=>{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;return!0};function YO(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}const _e=Math.PI,be=2*_e,KO=be+_e,Al=Number.POSITIVE_INFINITY,XO=_e/180,Be=_e/2,ui=_e/4,b0=_e*2/3,$r=Math.log10,fr=Math.sign;function Ys(n,t,e){return Math.abs(n-t)<e}function _0(n){const t=Math.round(n);n=Ys(n,t,n/1e3)?t:n;const e=Math.pow(10,Math.floor($r(n))),r=n/e;return(r<=1?1:r<=2?2:r<=5?5:10)*e}function JO(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 ZO(n){return typeof n=="symbol"||typeof n=="object"&&n!==null&&!(Symbol.toPrimitive in n||"toString"in n||"valueOf"in n)}function es(n){return!ZO(n)&&!isNaN(parseFloat(n))&&isFinite(n)}function QO(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}function jb(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 Yn(n){return n*(_e/180)}function Gh(n){return n*(180/_e)}function w0(n){if(!Ce(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function Ub(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 tP(n,t){return(n-t+KO)%be-_e}function Rn(n){return(n%be+be)%be}function ao(n,t,e,r){const i=Rn(n),s=Rn(t),a=Rn(e),l=Rn(s-i),c=Rn(a-i),h=Rn(i-s),f=Rn(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 eP(n){return $e(n,-32768,32767)}function Pr(n,t,e,r=1e-6){return n>=Math.min(t,e)-r&&n<=Math.max(t,e)+r}function Yh(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 Cr=(n,t,e,r)=>Yh(n,e,r?i=>{const s=n[i][t];return s<e||s===e&&n[i+1][t]===e}:i=>n[i][t]<e),nP=(n,t,e)=>Yh(n,e,r=>n[r][t]>=e);function rP(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 qb=["push","pop","shift","splice","unshift"];function iP(n,t){if(n._chartjs){n._chartjs.listeners.push(t);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),qb.forEach(e=>{const r="_onData"+$h(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 x0(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)&&(qb.forEach(s=>{delete n[s]}),delete n._chartjs)}function Wb(n){const t=new Set(n);return t.size===n.length?n:Array.from(t)}const Hb=function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame}();function zb(n,t){let e=[],r=!1;return function(...i){e=i,r||(r=!0,Hb.call(window,()=>{r=!1,n.apply(t,e)}))}}function sP(n,t){let e;return function(...r){return t?(clearTimeout(e),e=setTimeout(n,t,r)):n.apply(this,r),t}}const Kh=n=>n==="start"?"left":n==="end"?"right":"center",tn=(n,t,e)=>n==="start"?t:n==="end"?e:(t+e)/2,oP=(n,t,e,r)=>n===(r?"left":"right")?e:n==="center"?(t+e)/2:t;function Vb(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(Cr(c,f,g).lo,e?r:Cr(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(Cr(c,a.axis,d,!0).hi+1,e?0:Cr(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 $b(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,S0=(n,t,e)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-t)*be/e)),E0=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*be/e)+1,Ks={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:S0(n,.075,.3),easeOutElastic:n=>Ya(n)?n:E0(n,.075,.3),easeInOutElastic(n){return Ya(n)?n:n<.5?.5*S0(n*2,.1125,.45):.5+.5*E0(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-Ks.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?Ks.easeInBounce(n*2)*.5:Ks.easeOutBounce(n*2-1)*.5+.5};function Xh(n){if(n&&typeof n=="object"){const t=n.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function A0(n){return Xh(n)?n:new io(n)}function Nf(n){return Xh(n)?n:new io(n).saturate(.5).darken(.1).hexString()}const aP=["x","y","borderWidth","radius","tension"],lP=["color","borderColor","backgroundColor"];function uP(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:lP},numbers:{type:"number",properties:aP}}),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 cP(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const k0=new Map;function fP(n,t){t=t||{};const e=n+JSON.stringify(t);let r=k0.get(e);return r||(r=new Intl.NumberFormat(n,t),k0.set(e,r)),r}function _o(n,t,e){return fP(t,e).format(n)}const Gb={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=hP(n,e)}const a=$r(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),_o(n,r,c)},logarithmic(n,t,e){if(n===0)return"0";const r=e[t].significand||n/Math.pow(10,Math.floor($r(n)));return[1,2,3,5,10,15].includes(r)||t>.8*e.length?Gb.numeric.call(this,n,t,e):""}};function hP(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:Gb};function dP(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 Xs(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 jf(n,t,e){return typeof t=="string"?so(Xs(n,t),e):so(Xs(n,""),t)}class pP{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)=>Nf(i.backgroundColor),this.hoverBorderColor=(r,i)=>Nf(i.borderColor),this.hoverColor=(r,i)=>Nf(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 jf(this,t,e)}get(t){return Xs(this,t)}describe(t,e){return jf(oh,t,e)}override(t,e){return jf(wi,t,e)}route(t,e,r,i){const s=Xs(this,t),a=Xs(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 pP({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[uP,cP,dP]);function gP(n){return!n||Kt(n.size)||Kt(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function kl(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 mP(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=kl(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=kl(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){Yb(n,t,e,r,null)}function Yb(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)*XO;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),_+=b0,n.lineTo(e+Math.sin(_)*f,r-Math.cos(_)*v),_+=b0,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 Lr(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 yP(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 vP(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 bP(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 _P(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 wP(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,bP(n,s),c=0;c<a.length;++c)h=a[c],s.backdrop&&wP(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),_P(n,e,r,h,s),r+=Number(i.lineHeight);n.restore()}function lo(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 xP=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,SP=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function EP(n,t){const e=(""+n).match(xP);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 AP=n=>+n||0;function Jh(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]=AP(s(a));return e}function Kb(n){return Jh(n,{top:"y",right:"x",bottom:"y",left:"x"})}function bi(n){return Jh(n,["topLeft","topRight","bottomLeft","bottomRight"])}function nn(n){const t=Kb(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(SP)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Wt(n.family,t.family),lineHeight:EP(Wt(n.lineHeight,t.lineHeight),e),size:e,style:r,weight:Wt(n.weight,t.weight),string:""};return i.string=gP(i),i}function qs(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 kP(n,t,e){const{min:r,max:i}=n,s=Fb(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 Zh(n,t=[""],e,r,i=()=>n[0]){const s=e||n;typeof r>"u"&&(r=Qb("_fallback",n));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:s,_fallback:r,_getTarget:i,override:l=>Zh([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 Jb(l,c,()=>IP(c,t,n,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(l,c){return O0(l).includes(c)},ownKeys(l){return O0(l)},set(l,c,h){const f=l._storage||(l._storage=i());return l[c]=f[c]=h,delete l._keys,!0}})}function ns(n,t,e,r){const i={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:Xb(n,r),setContext:s=>ns(n,s,e,r),override:s=>ns(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 Jb(s,a,()=>MP(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 Xb(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:Jr(e)?e:()=>e,isIndexable:Jr(r)?r:()=>r}}const RP=(n,t)=>n?n+$h(t):t,Qh=(n,t)=>Jt(t)&&n!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Jb(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t)||t==="constructor")return n[t];const r=e();return n[t]=r,r}function MP(n,t,e){const{_proxy:r,_context:i,_subProxy:s,_descriptors:a}=n;let l=r[t];return Jr(l)&&a.isScriptable(t)&&(l=OP(t,l,n,e)),Ee(l)&&l.length&&(l=PP(t,l,n,a.isIndexable)),Qh(t,l)&&(l=ns(l,i,s&&s[t],a)),l}function OP(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),Qh(n,c)&&(c=td(i._scopes,i,n,c)),c}function PP(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=td(h,i,n,f);t.push(ns(g,s,a&&a[n],l))}}return t}function Zb(n,t,e){return Jr(n)?n(t,e):n}const CP=(n,t)=>n===!0?t:typeof n=="string"?Xr(t,n):void 0;function LP(n,t,e,r,i){for(const s of t){const a=CP(e,s);if(a){n.add(a);const l=Zb(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 td(n,t,e,r){const i=t._rootScopes,s=Zb(t._fallback,e,r),a=[...n,...i],l=new Set;l.add(r);let c=M0(l,a,e,s||e,r);return c===null||typeof s<"u"&&s!==e&&(c=M0(l,a,s,c,r),c===null)?!1:Zh(Array.from(l),[""],i,s,()=>TP(t,e,r))}function M0(n,t,e,r,i){for(;e;)e=LP(n,t,e,r,i);return e}function TP(n,t,e){const r=n._getTarget();t in r||(r[t]={});const i=r[t];return Ee(i)&&Jt(e)?e:i||{}}function IP(n,t,e,r){let i;for(const s of t)if(i=Qb(RP(s,n),e),typeof i<"u")return Qh(n,i)?td(e,r,n,i):i}function Qb(n,t){for(const e of t){if(!e)continue;const r=e[n];if(typeof r<"u")return r}}function O0(n){let t=n._keys;return t||(t=n._keys=BP(n._scopes)),t}function BP(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 t_(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(Xr(f,s),h)};return a}const DP=Number.EPSILON||1e-14,rs=(n,t)=>t<n.length&&!n[t].skip&&n[t],e_=n=>n==="x"?"y":"x";function FP(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 NP(n,t,e){const r=n.length;let i,s,a,l,c,h=rs(n,0);for(let f=0;f<r-1;++f)if(c=h,h=rs(n,f+1),!(!c||!h)){if(Ys(t[f],0,DP)){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 jP(n,t,e="x"){const r=e_(e),i=n.length;let s,a,l,c=rs(n,0);for(let h=0;h<i;++h){if(a=l,l=c,c=rs(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 UP(n,t="x"){const e=e_(t),r=n.length,i=Array(r).fill(0),s=Array(r);let a,l,c,h=rs(n,0);for(a=0;a<r;++a)if(l=c,c=h,h=rs(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?fr(i[a-1])!==fr(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}NP(n,i,s),jP(n,s,t)}function Ka(n,t,e){return Math.max(Math.min(n,e),t)}function qP(n,t){let e,r,i,s,a,l=Lr(n[0],t);for(e=0,r=n.length;e<r;++e)a=s,s=l,l=e<r-1&&Lr(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 WP(n,t,e,r,i){let s,a,l,c;if(t.spanGaps&&(n=n.filter(h=>!h.skip)),t.cubicInterpolationMode==="monotone")UP(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=FP(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&&qP(n,e)}function ed(){return typeof window<"u"&&typeof document<"u"}function nd(n){let t=n.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Rl(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 HP(n,t){return ql(n).getPropertyValue(t)}const zP=["top","right","bottom","left"];function _i(n,t,e){const r={};e=e?"-"+e:"";for(let i=0;i<4;i++){const s=zP[i];r[s]=parseFloat(n[t+"-"+s+e])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const VP=(n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot);function $P(n,t){const e=n.touches,r=e&&e.length?e[0]:n,{offsetX:i,offsetY:s}=r;let a=!1,l,c;if(VP(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}=$P(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 GP(n,t,e){let r,i;if(t===void 0||e===void 0){const s=n&&nd(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=Rl(l.maxWidth,s,"clientWidth"),i=Rl(l.maxHeight,s,"clientHeight")}}return{width:t,height:e,maxWidth:r||Al,maxHeight:i||Al}}const Xa=n=>Math.round(n*10)/10;function YP(n,t,e,r){const i=ql(n),s=_i(i,"margin"),a=Rl(i.maxWidth,n,"clientWidth")||Al,l=Rl(i.maxHeight,n,"clientHeight")||Al,c=GP(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 P0(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 KP=function(){let n=!1;try{const t={get passive(){return n=!0,!1}};ed()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return n}();function C0(n,t){const e=HP(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 XP(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 JP(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 ZP=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}}},QP=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,t){return n+t},leftForLtr(n,t){return n}}};function Ji(n,t,e){return n?ZP(t,e):QP()}function n_(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 r_(n,t){t!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function i_(n){return n==="angle"?{between:ao,compare:tP,normalize:Rn}:{between:Pr,compare:(t,e)=>t-e,normalize:t=>t}}function L0({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 tC(n,t,e){const{property:r,start:i,end:s}=e,{between:a,normalize:l}=i_(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 s_(n,t,e){if(!e)return[n];const{property:r,start:i,end:s}=e,a=t.length,{compare:l,between:c,normalize:h}=i_(r),{start:f,end:g,loop:d,style:m}=tC(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(L0({start:_,end:N,loop:d,count:a,style:m})),_=null),Y=N,O=b));return _!==null&&p.push(L0({start:_,end:g,loop:d,count:a,style:m})),p}function o_(n,t){const e=[],r=n.segments;for(let i=0;i<r.length;i++){const s=s_(r[i],n.points,t);s.length&&e.push(...s)}return e}function eC(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 nC(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 rC(n,t){const e=n.points,r=n.options.spanGaps,i=e.length;if(!i)return[];const s=!!n._loop,{start:a,end:l}=eC(e,i,s,r);if(r===!0)return T0(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 T0(n,nC(e,a,c,h),e,t)}function T0(n,t,e,r){return!r||!r.setContext||!e?t:iC(n,t,e,r)}function iC(n,t,e,r){const i=n._chart.getContext(),s=I0(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];_=I0(r.setContext(Zr(i,{type:"segment",p0:v,p1:b,p0DataIndex:(d-1)%c,p1DataIndex:d%c,datasetIndex:a}))),sC(_,f)&&m(g,d-1,p.loop,f),v=b,f=_}g<d-1&&m(g,d-1,p.loop,f)}return h}function I0(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function sC(n,t){if(!t)return!1;const e=[],r=function(i,s){return Xh(s)?(e.includes(s)||e.push(s),e.indexOf(s)):s};return JSON.stringify(n,r)!==JSON.stringify(t,r)}/*!
204
+ * Chart.js v4.4.8
205
+ * https://www.chartjs.org
206
+ * (c) 2025 Chart.js Contributors
207
+ * Released under the MIT License
208
+ */class oC{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=Hb.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 Er=new oC;const B0="transparent",aC={boolean(n,t,e){return e>.5?t:n},color(n,t,e){const r=A0(n||B0),i=r.valid&&A0(t||B0);return i&&i.valid?i.mix(r,e).hexString():t},number(n,t,e){return n+(t-n)*e}};class lC{constructor(t,e,r,i){const s=e[r];i=qs([t.to,i,s,t.from]);const a=qs([t.from,s,i]);this._active=!0,this._fn=t.fn||aC[t.type||typeof a],this._easing=Ks[t.easing]||Ks.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=qs([t.to,e,i,t.from]),this._from=qs([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 a_{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=cC(t,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&uC(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 lC(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 Er.add(this._chart,r),!0}}function uC(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 cC(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 D0(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 fC(n,t,e){if(e===!1)return!1;const r=D0(n,e),i=D0(t,e);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function hC(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 l_(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 F0(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||fr(t)===fr(h))&&(t+=h)}return!f&&!r.all?0:t}function dC(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 Uf(n,t){const e=n&&n.options.stacked;return e||e===void 0&&t.stack!==void 0}function pC(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}function gC(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 mC(n,t,e){const r=n[t]||(n[t]={});return r[e]||(r[e]={})}function N0(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 j0(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=pC(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]=mC(i,f,v),d[l]=_,d._top=N0(d,a,!0,r.type),d._bottom=N0(d,a,!1,r.type);const S=d._visualValues||(d._visualValues={});S[l]=_}}function qf(n,t){const e=n.scales;return Object.keys(e).filter(r=>e[r].axis===t).shift()}function yC(n,t){return Zr(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function vC(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 Cs(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 Wf=n=>n==="reset"||n==="none",U0=(n,t)=>t?n:Object.assign({},n),bC=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:l_(e,!0),values:null};class Xn{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=Uf(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&&Cs(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,qf(t,"x")),a=e.yAxisID=Wt(r.yAxisID,qf(t,"y")),l=e.rAxisID=Wt(r.rAxisID,qf(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&&x0(this._data,this),t._stacked&&Cs(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),r=this._data;if(Jt(e)){const i=this._cachedMeta;this._data=dC(e,i)}else if(r!==e){if(r){x0(r,this);const i=this._cachedMeta;Cs(i),i._parsed=[]}e&&Object.isExtensible(e)&&iP(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=Uf(e.vScale,e),e.stack!==r.stack&&(i=!0,Cs(e),e.stack=r.stack),this._resyncElements(t),(i||s!==e._stacked)&&(j0(this,e._parsed),e._stacked=Uf(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&&j0(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(Xr(m,l),d),y:a.parse(Xr(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:l_(i,!0),values:e._stacks[t.axis]._visualValues};return F0(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=F0(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=bC(e,r,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:g}=gC(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=hC(Wt(this.options.clip,fC(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=vC(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=yC(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&&oo(r);if(l)return U0(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(U0(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 a_(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||Wf(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){Wf(i)?Object.assign(t,r):this._resolveAnimations(e,i).update(t,r)}updateSharedOptions(t,e,r){t&&!Wf(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&&Cs(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(Xn,"defaults",{}),At(Xn,"datasetElementType",null),At(Xn,"dataElementType",null);function _C(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=Wb(r.sort((i,s)=>i-s))}return n._cache.$bar}function wC(n){const t=n.iScale,e=_C(t,n.type);let r=t._length,i,s,a,l;const c=()=>{a===32767||a===-32768||(oo(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 xC(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 SC(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 EC(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 u_(n,t,e,r){return Ee(n)?EC(n,t,e,r):t[e.axis]=e.parse(n,r),t}function q0(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(u_(d,g,s,h));return c}function Hf(n){return n&&n.barStart!==void 0&&n.barEnd!==void 0}function AC(n,t,e){return n!==0?fr(n):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function kC(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 RC(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}=kC(n);i==="middle"&&e&&(n.enableBorderRadius=!0,(e._top||0)===r?i=h:(e._bottom||0)===r?i=f:(s[W0(f,a,l,c)]=!0,i=h)),s[W0(i,a,l,c)]=!0,n.borderSkipped=s}function W0(n,t,e,r){return r?(n=MC(n,t,e),n=H0(n,e,t)):n=H0(n,t,e),n}function MC(n,t,e){return n===t?e:n===e?t:n}function H0(n,t,e){return n==="start"?t:n==="end"?e:n}function OC(n,{inflateAmount:t},e){n.inflateAmount=t==="auto"?e===1?.33:0:t}class pl extends Xn{parsePrimitiveData(t,e,r,i){return q0(t,e,r,i)}parseArrayData(t,e,r,i){return q0(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(Xr(v,h),d),g.push(u_(Xr(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=Hf(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||Hf(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;RC(S,O,b,a),OC(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||wC(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=Hf(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&&fr(g)!==fr(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=AC(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=fr(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"?SC(t,e,i,h):xC(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(pl,"id","bar"),At(pl,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),At(pl,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class gl extends Xn{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(gl,"id","bubble"),At(gl,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),At(gl,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function PC(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)=>ao(O,l,c,!0)?1:Math.max(w,w*e,k,k*e),p=(O,w,k)=>ao(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 Xn{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=>+Xr(r[h],c)}let a,l;for(a=t,l=t+e;a<l;++a)i._parsed[a]=s(a)}}_getRotation(){return Yn(this.options.rotation-90)}_getCircumference(){return Yn(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(HO(this.options.cutout,l),1),h=this._getRingWeight(this.index),{circumference:f,rotation:g}=this._getRotationExtents(),{ratioX:d,ratioY:m,offsetX:p,offsetY:v}=PC(g,f,c),_=(r.width-a)/d,b=(r.height-a)/m,S=Math.max(Math.min(_,b)/2,0),O=Fb(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=_o(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 ml extends Xn{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}=Vb(e,i,a);this._drawStart=l,this._drawCount=c,$b(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,_=es(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(ml,"id","line"),At(ml,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),At(ml,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Js extends Xn{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=_o(e._parsed[t].r,r.options.locale);return{label:i[t]||"",value:s}}parseObjectData(t,e,r,i){return t_.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)?Yn(this.resolveDataElementOptions(t,e).angle||r):0}}At(Js,"id","polarArea"),At(Js,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),At(Js,"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 yl extends Xn{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 t_.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(yl,"id","radar"),At(yl,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),At(yl,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class vl extends Xn{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}=Vb(e,r,i);if(this._drawStart=s,this._drawCount=a,$b(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=es(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(vl,"id","scatter"),At(vl,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),At(vl,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var CC=Object.freeze({__proto__:null,BarController:pl,BubbleController:gl,DoughnutController:yi,LineController:ml,PieController:lh,PolarAreaController:Js,RadarController:yl,ScatterController:vl});function fi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class rd{constructor(t){At(this,"options");this.options=t||{}}static override(t){Object.assign(rd.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 LC={_date:rd};function TC(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?nP:Cr;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}=TC(s[l],t,a,i);for(let m=g;m<=d;++m){const p=f[m];p.skip||r(p,h,m)}}}function IC(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 zf(n,t,e,r,i){const s=[];return!i&&!n.isPointInArea(t)||Wl(n,e,t,function(l,c,h){!i&&!Lr(l,n.chartArea,0)||l.inRange(t.x,t.y,r)&&s.push({element:l,datasetIndex:c,index:h})},!0),s}function BC(n,t,e,r){let i=[];function s(a,l,c){const{startAngle:h,endAngle:f}=a.getProps(["startAngle","endAngle"],r),{angle:g}=Ub(a,{x:t.x,y:t.y});ao(g,h,f)&&i.push({element:a,datasetIndex:l,index:c})}return Wl(n,e,t,s),i}function DC(n,t,e,r,i,s){let a=[];const l=IC(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 Vf(n,t,e,r,i,s){return!s&&!n.isPointInArea(t)?[]:e==="r"&&!r?BC(n,t,e,i):DC(n,t,e,r,i,s)}function z0(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 FC={modes:{index(n,t,e,r){const i=di(t,n),s=e.axis||"x",a=e.includeInvisible||!1,l=e.intersect?zf(n,i,s,r,a):Vf(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?zf(n,i,s,r,a):Vf(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 zf(n,i,s,r,a)},nearest(n,t,e,r){const i=di(t,n),s=e.axis||"xy",a=e.includeInvisible||!1;return Vf(n,i,s,e.intersect,r,a)},x(n,t,e,r){const i=di(t,n);return z0(n,i,"x",e.intersect,r)},y(n,t,e,r){const i=di(t,n);return z0(n,i,"y",e.intersect,r)}}};const c_=["left","top","right","bottom"];function Ls(n,t){return n.filter(e=>e.pos===t)}function V0(n,t){return n.filter(e=>c_.indexOf(e.pos)===-1&&e.box.axis===t)}function Ts(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 NC(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 jC(n){const t={};for(const e of n){const{stack:r,pos:i,stackWeight:s}=e;if(!r||!c_.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 UC(n,t){const e=jC(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 qC(n){const t=NC(n),e=Ts(t.filter(h=>h.box.fullSize),!0),r=Ts(Ls(t,"left"),!0),i=Ts(Ls(t,"right")),s=Ts(Ls(t,"top"),!0),a=Ts(Ls(t,"bottom")),l=V0(t,"x"),c=V0(t,"y");return{fullSize:e,leftAndTop:r.concat(s),rightAndBottom:i.concat(c).concat(a).concat(l),chartArea:Ls(t,"chartArea"),vertical:r.concat(i).concat(c),horizontal:s.concat(a).concat(l)}}function $0(n,t,e,r){return Math.max(n[e],t[e])+Math.max(n[r],t[r])}function f_(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 WC(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&&f_(a,s.getPadding());const l=Math.max(0,t.outerWidth-$0(a,n,"left","right")),c=Math.max(0,t.outerHeight-$0(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 HC(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 zC(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 Ws(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,zC(l.horizontal,t));const{same:g,other:d}=WC(t,e,l,r);h|=g&&i.length,f=f||d,c.fullSize||i.push(l)}return h&&Ws(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 G0(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;oo(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;oo(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 en={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=nn(n.options.layout.padding),s=Math.max(t-i.width,0),a=Math.max(e-i.height,0),l=qC(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);f_(d,nn(r));const m=Object.assign({maxPadding:d,w:s,h:a,x:i.left,y:i.top},i),p=UC(c.concat(h),g);Ws(l.fullSize,m,g,p),Ws(c,m,g,p),Ws(h,m,g,p)&&Ws(c,m,g,p),HC(m),G0(l.leftAndTop,m,g,p),m.x+=m.w,m.y+=m.h,G0(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 h_{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 VC extends h_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const bl="$chartjs",$C={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Y0=n=>n===null||n==="";function GC(n,t){const e=n.style,r=n.getAttribute("height"),i=n.getAttribute("width");if(n[bl]={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",Y0(i)){const s=C0(n,"width");s!==void 0&&(n.width=s)}if(Y0(r))if(n.style.height==="")n.height=n.width/(t||2);else{const s=C0(n,"height");s!==void 0&&(n.height=s)}return n}const d_=KP?{passive:!0}:!1;function YC(n,t,e){n&&n.addEventListener(t,e,d_)}function KC(n,t,e){n&&n.canvas&&n.canvas.removeEventListener(t,e,d_)}function XC(n,t){const e=$C[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 JC(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 ZC(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 uo=new Map;let K0=0;function p_(){const n=window.devicePixelRatio;n!==K0&&(K0=n,uo.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function QC(n,t){uo.size||window.addEventListener("resize",p_),uo.set(n,t)}function tL(n){uo.delete(n),uo.size||window.removeEventListener("resize",p_)}function eL(n,t,e){const r=n.canvas,i=r&&nd(r);if(!i)return;const s=zb((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),QC(n,s),a}function $f(n,t,e){e&&e.disconnect(),t==="resize"&&tL(n)}function nL(n,t,e){const r=n.canvas,i=zb(s=>{n.ctx!==null&&e(XC(s,n))},n);return YC(r,t,i),i}class rL extends h_{acquireContext(t,e){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(GC(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e[bl])return!1;const r=e[bl].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[bl],!0}addEventListener(t,e,r){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),a={attach:JC,detach:ZC,resize:eL}[e]||nL;i[e]=a(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),i=r[e];if(!i)return;({attach:$f,detach:$f,resize:$f}[e]||KC)(t,e,i),r[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,i){return YP(t,e,r,i)}isAttached(t){const e=t&&nd(t);return!!(e&&e.isConnected)}}function iL(n){return!ed()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?VC:rL}class Jn{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 es(this.x)&&es(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(Jn,"defaults",{}),At(Jn,"defaultRoutes");function sL(n,t){const e=n.options.ticks,r=oL(n),i=Math.min(e.maxTicksLimit||r,r),s=e.major.enabled?lL(t):[],a=s.length,l=s[0],c=s[a-1],h=[];if(a>i)return uL(t,h,s,a/i),h;const f=aL(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 oL(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 aL(n,t,e){const r=cL(n),i=t.length/e;if(!r)return Math.max(i,1);const s=JO(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 lL(n){const t=[];let e,r;for(e=0,r=n.length;e<r;e++)n[e].major&&t.push(e);return t}function uL(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 cL(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 fL=n=>n==="left"?"right":n==="right"?"left":n,X0=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e,J0=(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 hL(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 dL(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 Is(n){return n.drawTicks?n.tickLength:0}function Q0(n,t){if(!n.display)return 0;const e=He(n.font,t),r=nn(n.padding);return(Ee(n.text)?n.text.length:1)*e.lineHeight+r.height}function pL(n,t){return Zr(n,{scale:t,type:"scale"})}function gL(n,t,e){return Zr(n,{tick:e,index:t,type:"tick"})}function mL(n,t,e){let r=Kh(n);return(e&&t!=="right"||!e&&t==="right")&&(r=fL(r)),r}function yL(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=tn(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=X0(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=X0(n,e,t);p=tn(r,a,i),g=e==="left"?-Be:Be}return{titleX:m,titleY:p,maxWidth:d,rotation:g}}class Ai extends Jn{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=kn(t,Number.POSITIVE_INFINITY),e=kn(e,Number.NEGATIVE_INFINITY),r=kn(r,Number.POSITIVE_INFINITY),i=kn(i,Number.NEGATIVE_INFINITY),{min:kn(t,r),max:kn(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:kn(e,kn(r,e)),max:kn(r,kn(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=kP(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=sL(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=J0(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-Is(t.grid)-e.padding-Q0(t.title,this.chart.options.font),h=Math.sqrt(g*g+d*d),a=Gh(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=Q0(i,e.options.font);if(l?(t.width=this.maxWidth,t.height=Is(s)+c):(t.height=this.maxHeight,t.width=Is(s)+c),r.display&&this.ticks.length){const{first:h,last:f,widest:g,highest:d}=this._getLabelSizes(),m=r.padding*2,p=Yn(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=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/J0(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=kl(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=kl(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)}dL(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 eP(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=gL(this.getContext(),t,r))}return this.$context||(this.$context=pL(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=Yn(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=Is(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=hL(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=Is(r.grid),m=d+f,p=g?-f:m,v=-Yn(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=nn(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(-Yn(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=nn(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}=yL(this,c,e,l);xi(t,r.text,0,0,s,{color:r.color,maxWidth:g,rotation:d,textAlign:mL(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!==Ai.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;_L(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,vL(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 vL(n,t,e){const r=so(Object.create(null),[e?Ae.get(e):{},Ae.get(t),n.defaults]);Ae.set(t,r),n.defaultRoutes&&bL(t,n.defaultRoutes),n.descriptors&&Ae.describe(t,n.descriptors)}function bL(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 _L(n){return"id"in n&&"defaults"in n}class wL{constructor(){this.controllers=new Qa(Xn,"datasets",!0),this.elements=new Qa(Jn,"elements"),this.plugins=new Qa(Object,"plugins"),this.scales=new Qa(Ai,"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=$h(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 sr=new wL;class xL{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=SL(r);return i===!1&&!e?[]:AL(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 SL(n){const t={},e=[],r=Object.keys(sr.plugins.items);for(let s=0;s<r.length;s++)e.push(sr.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 EL(n,t){return!t&&n===!1?null:n===!0?{}:n}function AL(n,{plugins:t,localIds:e},r,i){const s=[],a=n.getContext();for(const l of t){const c=l.id,h=EL(r[c],i);h!==null&&s.push({plugin:l,options:kL(n.config,{plugin:l,local:e[c]},h,a)})}return s}function kL(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 RL(n,t){let e=n;return n==="_index_"?e=t:n==="_value_"&&(e=t==="x"?"y":"x"),e}function ML(n,t){return n===t?"_index_":"_value_"}function tv(n){if(n==="x"||n==="y"||n==="r")return n}function OL(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function ch(n,...t){if(tv(n))return n;for(const e of t){const r=e.axis||OL(e.position)||n.length>1&&tv(n[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function ev(n,t,e){if(e[t+"AxisID"]===n)return{axis:t}}function PL(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 ev(n,"x",e[0])||ev(n,"y",e[0])}return{}}function CL(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,PL(a,n),Ae.scales[l.type]),h=ML(c,i),f=e.scales||{};s[a]=Gs(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=RL(g,c),m=a[d+"AxisID"]||d;s[m]=s[m]||Object.create(null),Gs(s[m],[{axis:d},r[m],f[g]])})}),Object.keys(s).forEach(a=>{const l=s[a];Gs(l,[Ae.scales[l.type],Ae.scale])}),s}function g_(n){const t=n.options||(n.options={});t.plugins=Wt(t.plugins,{}),t.scales=CL(n,t)}function m_(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function LL(n){return n=n||{},n.data=m_(n.data),g_(n),n}const nv=new Map,y_=new Set;function tl(n,t){let e=nv.get(n);return e||(e=t(),nv.set(n,e),y_.add(e)),e}const Bs=(n,t,e)=>{const r=Xr(t,e);r!==void 0&&n.add(r)};class TL{constructor(t){this._config=LL(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=m_(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(),g_(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=>Bs(c,t,g))),f.forEach(g=>Bs(c,i,g)),f.forEach(g=>Bs(c,wi[s]||{},g)),f.forEach(g=>Bs(c,Ae,g)),f.forEach(g=>Bs(c,oh,g))});const h=Array.from(c);return h.length===0&&h.push(Object.create(null)),y_.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}=rv(this._resolverCache,t,i);let c=a;if(BL(a,e)){s.$shared=!1,r=Jr(r)?r():r;const h=this.createResolver(t,r,l);c=ns(a,r,h)}for(const h of e)s[h]=c[h];return s}createResolver(t,e,r=[""],i){const{resolver:s}=rv(this._resolverCache,t,r);return Jt(e)?ns(s,e,void 0,i):s}}function rv(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:Zh(t,e),subPrefixes:e.filter(l=>!l.toLowerCase().includes("hover"))},r.set(i,s)),s}const IL=n=>Jt(n)&&Object.getOwnPropertyNames(n).some(t=>Jr(n[t]));function BL(n,t){const{isScriptable:e,isIndexable:r}=Xb(n);for(const i of t){const s=e(i),a=r(i),l=(a||s)&&n[i];if(s&&(Jr(l)||IL(l))||a&&Ee(l))return!0}return!1}var DL="4.4.8";const FL=["top","bottom","left","right","chartArea"];function iv(n,t){return n==="top"||n==="bottom"||FL.indexOf(n)===-1&&t==="x"}function sv(n,t){return function(e,r){return e[n]===r[n]?e[t]-r[t]:e[n]-r[n]}}function ov(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),me(e&&e.onComplete,[n],t)}function NL(n){const t=n.chart,e=t.options.animation;me(e&&e.onProgress,[n],t)}function v_(n){return ed()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const _l={},av=n=>{const t=v_(n);return Object.values(_l).filter(e=>e.canvas===t).pop()};function jL(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 UL(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 qL(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 Rr{static register(...t){sr.add(...t),lv()}static unregister(...t){sr.remove(...t),lv()}constructor(t,e){const r=this.config=new TL(e),i=v_(t),s=av(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||iL(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=WO(),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 xL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=sP(g=>this.update(g),a.resizeDelay||0),this._dataChanges=[],_l[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Er.listen(this,"complete",ov),Er.listen(this,"progress",NL),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 sr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():P0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return R0(this.canvas,this.ctx),this}stop(){return Er.stop(this),this}resize(t,e){Er.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,P0(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||iv(l.position,h)!==iv(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=sr.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=>{en.configure(this,a,a.options),en.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(sv("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=sr.getController(l),{datasetElementType:h,dataElementType:f}=Ae.datasets[l];Object.assign(c,{dataElementType:sr.getElement(f),datasetElementType:h&&sr.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(sv("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=>{en.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!v0(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;jL(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(!v0(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;en.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,Jr(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&&(Er.has(this)?this.attached&&!Er.running(this)&&Er.start(this):(this.draw(),ov({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=qL(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 Lr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,i){const s=FC.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);oo(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(),Er.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 _l[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}});!Sl(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=YO(t),h=UL(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=!Sl(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(Rr,"defaults",Ae),At(Rr,"instances",_l),At(Rr,"overrides",wi),At(Rr,"registry",sr),At(Rr,"version",DL),At(Rr,"getChart",av);function lv(){return le(Rr.instances,n=>n._plugins.invalidate())}function WL(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 HL(n){return Jh(n,["outerStart","outerEnd","innerStart","innerEnd"])}function zL(n,t,e,r){const i=HL(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 Ol(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}=zL(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 VL(n,t,e,r,i){const{fullCircles:s,startAngle:a,circumference:l}=t;let c=t.endAngle;if(s){Ol(n,t,e,r,c,i);for(let h=0;h<s;++h)n.fill();isNaN(l)||(c=a+(l%be||be))}return Ol(n,t,e,r,c,i),n.fill(),c}function $L(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){Ol(n,t,e,r,p,i);for(let v=0;v<s;++v)n.stroke();isNaN(l)||(p=a+(l%be||be))}m&&WL(n,t,p),s||(Ol(n,t,e,r,p,i),n.stroke())}class Hs extends Jn{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}=Ub(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=ao(a,c,h)&&c!==h,_=p>=be||v,b=Pr(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,VL(e,this,f,a,l),$L(e,this,f,a,l),e.restore()}}At(Hs,"id","arc"),At(Hs,"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(Hs,"defaultRoutes",{backgroundColor:"backgroundColor"}),At(Hs,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function b_(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 GL(n,t,e){n.lineTo(e.x,e.y)}function YL(n){return n.stepped?yP:n.tension||n.cubicInterpolationMode==="monotone"?vP:GL}function __(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 KL(n,t,e,r){const{points:i,options:s}=t,{count:a,start:l,loop:c,ilen:h}=__(i,e,r),f=YL(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 XL(n,t,e,r){const i=t.points,{count:s,start:a,ilen:l}=__(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?XL:KL}function JL(n){return n.stepped?XP:n.tension||n.cubicInterpolationMode==="monotone"?JP:pi}function ZL(n,t,e,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,e,r)&&i.closePath()),b_(n,t.options),n.stroke(i)}function QL(n,t,e,r){const{segments:i,options:s}=t,a=fh(t);for(const l of i)b_(n,s,l.style),n.beginPath(),a(n,t,l,{start:e,end:e+r-1})&&n.closePath(),n.stroke()}const t3=typeof Path2D=="function";function e3(n,t,e,r){t3&&!t.options.segment?ZL(n,t,e,r):QL(n,t,e,r)}class Gr extends Jn{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;WP(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=rC(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=o_(this,{property:e,start:i,end:i});if(!a.length)return;const l=[],c=JL(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(),e3(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}At(Gr,"id","line"),At(Gr,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),At(Gr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),At(Gr,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function uv(n,t,e,r){const i=n.options,{[e]:s}=n.getProps([e],r);return Math.abs(t-s)<i.radius+i.hitRadius}class wl extends Jn{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 uv(this,e,"x",r)}inYRange(e,r){return uv(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||!Lr(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(wl,"id","point"),At(wl,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),At(wl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function w_(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 Yr(n,t,e,r){return n?0:$e(t,e,r)}function n3(n,t,e){const r=n.options.borderWidth,i=n.borderSkipped,s=Kb(r);return{t:Yr(i.top,s.top,0,e),r:Yr(i.right,s.right,0,t),b:Yr(i.bottom,s.bottom,0,e),l:Yr(i.left,s.left,0,t)}}function r3(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:Yr(!c||l.top||l.left,s.topLeft,0,a),topRight:Yr(!c||l.top||l.right,s.topRight,0,a),bottomLeft:Yr(!c||l.bottom||l.left,s.bottomLeft,0,a),bottomRight:Yr(!c||l.bottom||l.right,s.bottomRight,0,a)}}function i3(n){const t=w_(n),e=t.right-t.left,r=t.bottom-t.top,i=n3(n,e/2,r/2),s=r3(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 Gf(n,t,e,r){const i=t===null,s=e===null,l=n&&!(i&&s)&&w_(n,r);return l&&(i||Pr(t,l.left,l.right))&&(s||Pr(e,l.top,l.bottom))}function s3(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}function o3(n,t){n.rect(t.x,t.y,t.w,t.h)}function Yf(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 xl extends Jn{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}=i3(this),l=s3(a.radius)?lo:o3;t.save(),(a.w!==s.w||a.h!==s.h)&&(t.beginPath(),l(t,Yf(a,e,s)),t.clip(),l(t,Yf(s,-e,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Yf(s,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,r){return Gf(this,t,e,r)}inXRange(t,e){return Gf(this,t,null,e)}inYRange(t,e){return Gf(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(xl,"id","bar"),At(xl,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),At(xl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var a3=Object.freeze({__proto__:null,ArcElement:Hs,BarElement:xl,LineElement:Gr,PointElement:wl});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)"],cv=hh.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function x_(n){return hh[n%hh.length]}function S_(n){return cv[n%cv.length]}function l3(n,t){return n.borderColor=x_(t),n.backgroundColor=S_(t),++t}function u3(n,t){return n.backgroundColor=n.data.map(()=>x_(t++)),t}function c3(n,t){return n.backgroundColor=n.data.map(()=>S_(t++)),t}function f3(n){let t=0;return(e,r)=>{const i=n.getDatasetMeta(r).controller;i instanceof yi?t=u3(e,t):i instanceof Js?t=c3(e,t):i&&(t=l3(e,t))}}function fv(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}function h3(n){return n&&(n.borderColor||n.backgroundColor)}function d3(){return Ae.borderColor!=="rgba(0,0,0,0.1)"||Ae.backgroundColor!=="rgba(0,0,0,0.1)"}var p3={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=fv(r)||h3(i)||s&&fv(s)||d3();if(!e.forceOverride&&a)return;const l=f3(n);r.forEach(l)}};function g3(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 m3(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 E_(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 hv(n){n.data.datasets.forEach(t=>{E_(t)})}function y3(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(Cr(t,s.axis,a).lo,0,e-1)),h?i=$e(Cr(t,s.axis,l).hi+1,r,e)-r:i=e-r,{start:r,count:i}}var v3={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled){hv(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(qs([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}=y3(c,h);const m=e.threshold||4*r;if(d<=m){E_(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=g3(h,g,d,r,e);break;case"min-max":p=m3(h,g,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}i._decimated=p})},destroy(n){hv(n)}};function b3(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=id(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=o_(t,f);for(const d of g){const m=dh(e,s[d.start],s[d.end],d.loop),p=s_(l,i,m);for(const v of p)a.push({source:v,target:d,start:{[e]:dv(f,m,"start",Math.max)},end:{[e]:dv(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=Rn(i),s=Rn(s)),{property:n,start:i,end:s}}function _3(n,t){const{x:e=null,y:r=null}=n||{},i=t.points,s=[];return t.segments.forEach(({start:a,end:l})=>{l=id(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 id(n,t,e){for(;t>n;t--){const r=e[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function dv(n,t,e,r){return n&&t?r(n[e],t[e]):n?n[e]:t?t[e]:0}function A_(n,t){let e=[],r=!1;return Ee(n)?(r=!0,e=n):e=_3(n,t),e.length?new Gr({points:e,options:{tension:0},_loop:r,_fullLoop:r}):null}function pv(n){return n&&n.fill!==!1}function w3(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 x3(n,t,e){const r=k3(n);if(Jt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Ce(i)&&Math.floor(i)===i?S3(r[0],t,i,e):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function S3(n,t,e,r){return(n==="-"||n==="+")&&(e=t+e),e===t||e<0||e>=r?!1:e}function E3(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 A3(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 k3(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 R3(n){const{scale:t,index:e,line:r}=n,i=[],s=r.segments,a=r.points,l=M3(t,e);l.push(A_({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++)O3(i,a[f],l)}return new Gr({points:i,options:{}})}function M3(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 O3(n,t,e){const r=[];for(let i=0;i<e.length;i++){const s=e[i],{first:a,last:l,point:c}=P3(s,t,"x");if(!(!c||a&&l)){if(a)r.unshift(c);else if(n.push(c),!l)break}}n.push(...r)}function P3(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(Pr(i,g,d)){l=i===g,c=i===d;break}}return{first:l,last:c,point:r}}class k_{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 C3(n){const{chart:t,fill:e,line:r}=n;if(Ce(e))return L3(t,e);if(e==="stack")return R3(n);if(e==="shape")return!0;const i=T3(n);return i instanceof k_?i:A_(i,r)}function L3(n,t){const e=n.getDatasetMeta(t);return e&&n.isDatasetVisible(t)?e.dataset:null}function T3(n){return(n.scale||{}).getPointPositionForValue?B3(n):I3(n)}function I3(n){const{scale:t={},fill:e}=n,r=E3(e,t);if(Ce(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function B3(n){const{scale:t,fill:e}=n,r=t.options,i=t.getLabels().length,s=r.reverse?t.max:t.min,a=A3(e,t,s),l=[];if(r.grid.circular){const c=t.getPointPositionForValue(0,s);return new k_({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 Kf(n,t,e){const r=C3(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),D3(n,{line:i,target:r,above:f,below:g,area:e,scale:s,axis:a}),Ul(n))}function D3(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&&(gv(n,r,a.top),mv(n,{line:e,target:r,color:i,scale:l,property:c}),n.restore(),n.save(),gv(n,r,a.bottom)),mv(n,{line:e,target:r,color:s,scale:l,property:c}),n.restore()}function gv(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[id(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 mv(n,t){const{line:e,target:r,property:i,color:s,scale:a}=t,l=b3(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,F3(n,a,m&&dh(i,f,g)),n.beginPath();const p=!!e.pathSegment(n,c);let v;if(m){p?n.closePath():yv(n,r,g,i);const _=!!r.pathSegment(n,h,{move:p,reverse:!0});v=p&&_,v||yv(n,r,f,i)}n.closePath(),n.fill(v?"evenodd":"nonzero"),n.restore()}}function F3(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 yv(n,t,e,r){const i=t.interpolate(e,r);i&&n.lineTo(i.x,i.y)}var N3={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 Gr&&(c={visible:n.isDatasetVisible(a),index:a,fill:x3(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=w3(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&&Kf(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;pv(s)&&Kf(n.ctx,s,n.chartArea)}},beforeDatasetDraw(n,t,e){const r=t.meta.$filler;!pv(r)||e.drawTime!=="beforeDatasetDraw"||Kf(n.ctx,r,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const vv=(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)}},j3=(n,t)=>n!==null&&t!==null&&n.datasetIndex===t.datasetIndex&&n.index===t.index;class bv extends Jn{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}=vv(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}=U3(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=Ji(s,this.left,this.width);if(this.isHorizontal()){let l=0,c=tn(r,this.left+i,this.right-this.lineWidths[l]);for(const h of e)l!==h.row&&(l=h.row,c=tn(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=tn(r,this.top+t+i,this.bottom-this.columnSizes[l].height);for(const h of e)h.col!==l&&(l=h.col,c=tn(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=Ji(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:_}=vv(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;Yb(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)?lo(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:tn(s,this.left+f,this.right-r[0]),y:this.top+f+w,line:0}:m={x:this.left+f,y:tn(s,this.top+w+f,this.bottom-e[0].height),line:0},n_(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=tn(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=tn(s,this.top+w+f,this.bottom-e[m.line].height));const xt=c.x(G);if(b(xt,U,C),G=oP(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+=R_(C,dt)+f}else m.y+=k}),r_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=He(e.font),i=nn(e.padding);if(!e.display)return;const s=Ji(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=tn(t.align,g,this.right-d);else{const p=this.columnSizes.reduce((v,_)=>Math.max(v,_.height),0);f=h+tn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const m=tn(l,g,g+d);a.textAlign=s.textAlign(Kh(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=nn(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,i,s;if(Pr(t,this.left,this.right)&&Pr(e,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(i=s[r],Pr(t,i.left,i.left+i.width)&&Pr(e,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const e=this.options;if(!H3(t.type,e))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,s=j3(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 U3(n,t,e,r,i){const s=q3(r,n,t,e),a=W3(i,r,t.lineHeight);return{itemWidth:s,itemHeight:a}}function q3(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 W3(n,t,e){let r=n;return typeof t.text!="string"&&(r=R_(t,e)),r}function R_(n,t){const e=n.text?n.text.length:0;return t*e}function H3(n,t){return!!((n==="mousemove"||n==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(n==="click"||n==="mouseup"))}var z3={id:"legend",_element:bv,start(n,t,e){const r=n.legend=new bv({ctx:n.ctx,options:e,chart:n});en.configure(n,r,e),en.addBox(n,r)},stop(n){en.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const r=n.legend;en.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=nn(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 sd extends Jn{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=nn(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=tn(l,r,s),g=e+t,h=s-r):(a.position==="left"?(f=r+t,g=tn(l,i,e),c=_e*-.5):(f=s-t,g=tn(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:Kh(e.align),textBaseline:"middle",translation:[a,l]})}}function V3(n,t){const e=new sd({ctx:n.ctx,options:t,chart:n});en.configure(n,e,t),en.addBox(n,e),n.titleBlock=e}var $3={id:"title",_element:sd,start(n,t,e){V3(n,e)},stop(n){const t=n.titleBlock;en.removeBox(n,t),delete n.titleBlock},beforeUpdate(n,t,e){const r=n.titleBlock;en.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 G3={id:"subtitle",start(n,t,e){const r=new sd({ctx:n.ctx,options:e,chart:n});en.configure(n,r,e),en.addBox(n,r),nl.set(n,r)},stop(n){en.removeBox(n,nl.get(n)),nl.delete(n)},beforeUpdate(n,t,e){const r=nl.get(n);en.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 zs={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 ir(n,t){return t&&(Ee(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function Ar(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(`
209
+ `)>-1?n.split(`
210
+ `):n}function Y3(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 _v(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=nn(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 K3(n,t){const{y:e,height:r}=t;return e<r/2?"top":e>n.height-r/2?"bottom":"center"}function X3(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 J3(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"),X3(h,n,t,e)&&(h="center"),h}function wv(n,t,e){const r=e.yAlign||t.yAlign||K3(n,e);return{xAlign:e.xAlign||t.xAlign||J3(n,t,e,r),yAlign:r}}function Z3(n,t){let{x:e,width:r}=n;return t==="right"?e-=r:t==="center"&&(e-=r/2),e}function Q3(n,t,e){let{y:r,height:i}=n;return t==="top"?r+=e:t==="bottom"?r-=i+e:r-=i/2,r}function xv(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=Z3(t,l);const v=Q3(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=nn(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-r.right:n.x+r.left}function Sv(n){return ir([],Ar(n))}function tT(n,t,e){return Zr(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Ev(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}const M_={beforeTitle:Sr,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:Sr,beforeBody:Sr,beforeLabel:Sr,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:Sr,afterBody:Sr,beforeFooter:Sr,footer:Sr,afterFooter:Sr};function dn(n,t,e,r){const i=n[t].call(e,r);return typeof i>"u"?M_[t].call(e,r):i}class ph extends Jn{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 a_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=tT(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:r}=e,i=dn(r,"beforeTitle",this,t),s=dn(r,"title",this,t),a=dn(r,"afterTitle",this,t);let l=[];return l=ir(l,Ar(i)),l=ir(l,Ar(s)),l=ir(l,Ar(a)),l}getBeforeBody(t,e){return Sv(dn(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:r}=e,i=[];return le(t,s=>{const a={before:[],lines:[],after:[]},l=Ev(r,s);ir(a.before,Ar(dn(l,"beforeLabel",this,s))),ir(a.lines,dn(l,"label",this,s)),ir(a.after,Ar(dn(l,"afterLabel",this,s))),i.push(a)}),i}getAfterBody(t,e){return Sv(dn(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:r}=e,i=dn(r,"beforeFooter",this,t),s=dn(r,"footer",this,t),a=dn(r,"afterFooter",this,t);let l=[];return l=ir(l,Ar(i)),l=ir(l,Ar(s)),l=ir(l,Ar(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(Y3(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=Ev(t.callbacks,f);i.push(dn(g,"labelColor",this,f)),s.push(dn(g,"labelPointStyle",this,f)),a.push(dn(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=zs[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=_v(this,r),h=Object.assign({},l,c),f=wv(this.chart,r,h),g=xv(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=Ji(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,lo(t,{x:v,y:p,w:h,h:c,radius:b}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),lo(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=Ji(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=Ji(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=zs[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=_v(this,t),c=Object.assign({},a,this._size),h=wv(e,t,c),f=xv(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=nn(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),n_(t,e.textDirection),s.y+=a.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),r_(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=!Sl(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||!Sl(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=zs[s.position].call(this,t,e);return a!==!1&&(r!==a.x||i!==a.y)}}At(ph,"positioners",zs);var eT={id:"tooltip",_element:ph,positioners:zs,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:M_},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"]},nT=Object.freeze({__proto__:null,Colors:p3,Decimation:v3,Filler:N3,Legend:z3,SubTitle:G3,Title:$3,Tooltip:eT});const rT=(n,t,e,r)=>(typeof t=="string"?(e=n.push(t)-1,r.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function iT(n,t,e,r){const i=n.indexOf(t);if(i===-1)return rT(n,t,e,r);const s=n.lastIndexOf(t);return i!==s?e:i}const sT=(n,t)=>n===null?null:$e(Math.round(n),0,t);function Av(n){const t=this.getLabels();return n>=0&&n<t.length?t[n]:n}class gh extends Ai{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:iT(r,t,Wt(e,t),this._addedLabels),sT(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 Av.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:Av}});function oT(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=_0((_-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=_0(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&&QO((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,Ys(Y,Math.round(Y),k/1e3)?Y=Math.round(Y):Y=Math.ceil(Y));const z=Math.max(w0(k),w0(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++,Ys(Math.round((L+G*k)*C)/C,a,kv(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&&Ys(e[e.length-1].value,l,kv(l,w,n))?e[e.length-1].value=l:e.push({value:l}):(!S||N===l)&&e.push({value:N}),e}function kv(n,t,{horizontal:e,minRotation:r}){const i=Yn(r),s=(e?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+n).length;return Math.min(t/s,a)}class Pl extends Ai{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=fr(i),h=fr(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=oT(i,s);return t.bounds==="ticks"&&jb(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 _o(t,this.chart.options.locale,this.options.ticks.format)}}class mh extends Pl{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=Yn(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 co=n=>Math.floor($r(n)),hi=(n,t)=>Math.pow(10,co(n)+t);function Rv(n){return n/Math.pow(10,co(n))===1}function Mv(n,t,e){const r=Math.pow(10,e),i=Math.floor(n/r);return Math.ceil(t/r)-i}function aT(n,t){const e=t-n;let r=co(e);for(;Mv(n,t,r)>10;)r++;for(;Mv(n,t,r)<10;)r--;return Math.min(r,co(n))}function lT(n,{min:t,max:e}){t=kn(n.min,t);const r=[],i=co(t);let s=aT(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=kn(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=kn(n.max,d);return r.push({value:m,major:Rv(m),significand:g}),r}class yh extends Ai{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const r=Pl.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=lT(e,this);return t.bounds==="ticks"&&jb(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":_o(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=$r(t),this._valueRange=$r(this.max)-$r(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:($r(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=nn(t.backdropPadding);return Wt(t.font&&t.font.size,Ae.font.size)+e.height}return 0}function uT(n,t,e){return e=Ee(e)?e:[e],{w:mP(n,t.string,e),h:e.length*t.lineHeight}}function Ov(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 cT(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=uT(n.ctx,g,n._pointLabels[c]);r[c]=d;const m=Rn(n.getIndexAngle(c)+l),p=Math.round(Gh(m)),v=Ov(p,f.x,d.w,0,180),_=Ov(p,f.y,d.h,90,270);fT(e,t,m,v,_)}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=pT(n,r,i)}function fT(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 hT(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(Gh(Rn(c.angle+Be))),f=yT(c.y,l.h,h),g=gT(h),d=mT(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 dT(n,t){if(!t)return!0;const{left:e,top:r,right:i,bottom:s}=n;return!(Lr({x:e,y:r},t)||Lr({x:e,y:s},t)||Lr({x:i,y:r},t)||Lr({x:i,y:s},t))}function pT(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=hT(n,f,c);r.push(g),l==="auto"&&(g.visible=dT(g,h),g.visible&&(h=g))}return r}function gT(n){return n===0||n===180?"center":n<180?"left":"right"}function mT(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function yT(n,t,e){return e===90||e===270?n-=t/2:(e>270||e<90)&&(n-=t),n}function vT(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=nn(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(),lo(n,{x:f,y:g,w:d,h:m,radius:c}),n.fill()):n.fillRect(f,g,d,m)}}function bT(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));vT(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 O_(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 _T(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(),O_(n,e,a,r),s.closePath(),s.stroke(),s.restore())}function wT(n,t,e){return Zr(n,{label:e,index:t,type:"pointLabel"})}class Vs extends Pl{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=nn(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){Pl.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?cT(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 Rn(t*e+Yn(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 wT(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(),O_(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&&bT(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);_T(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=nn(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(Vs,"id","radialLinear"),At(Vs,"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(Vs,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),At(Vs,"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}},mn=Object.keys(Hl);function Pv(n,t){return n-t}function Cv(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"&&(es(s)||s===!0)?e.startOf(a,"isoWeek",s):e.startOf(a,i)),+a)}function Lv(n,t,e,r){const i=mn.length;for(let s=mn.indexOf(n);s<i-1;++s){const a=Hl[mn[s]],l=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((e-t)/(l*a.size))<=r)return mn[s]}return mn[i-1]}function xT(n,t,e,r,i){for(let s=mn.length-1;s>=mn.indexOf(e);s--){const a=mn[s];if(Hl[a].common&&n._adapter.diff(i,r,a)>=t-1)return a}return mn[e?mn.indexOf(e):0]}function ST(n){for(let t=mn.indexOf(n)+1,e=mn.length;t<e;++t)if(Hl[mn[t]].common)return mn[t]}function Tv(n,t,e){if(!e)n[t]=!0;else if(e.length){const{lo:r,hi:i}=Yh(e,t),s=e[r]>=t?e[r]:e[i];n[s]=!0}}function ET(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 Iv(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:ET(n,r,i,e)}class fo extends Ai{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 LC._date(t.adapters.date);i.init(e),Gs(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:Cv(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=rP(i,s,a);return this._unit=e.unit||(r.autoSkip?Lv(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):xT(this,l.length,e.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:ST(this._unit),this.initOffsets(i),t.reverse&&l.reverse(),Iv(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||Lv(s.minUnit,e,r,this._getLabelCapacity(e)),l=Wt(i.ticks.stepSize,1),c=a==="week"?s.isoWeekday:!1,h=es(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++)Tv(f,d,p);return(d===r||i.bounds==="ticks"||m===1)&&Tv(f,d,p),Object.keys(f).sort(Pv).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=Yn(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,Iv(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(Cv(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Wb(t.sort(Pv))}}At(fo,"id","time"),At(fo,"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}=Cr(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}=Cr(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 fo{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",fo.defaults);var AT=Object.freeze({__proto__:null,CategoryScale:gh,LinearScale:mh,LogarithmicScale:yh,RadialLinearScale:Vs,TimeScale:fo,TimeSeriesScale:bh});const kT=[CC,a3,nT,AT];Rr.register(...kT);let sl;const RT=new Uint8Array(16);function MT(){if(!sl&&(sl=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sl))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sl(RT)}const Xe=[];for(let n=0;n<256;++n)Xe.push((n+256).toString(16).slice(1));function OT(n,t=0){return(Xe[n[t+0]]+Xe[n[t+1]]+Xe[n[t+2]]+Xe[n[t+3]]+"-"+Xe[n[t+4]]+Xe[n[t+5]]+"-"+Xe[n[t+6]]+Xe[n[t+7]]+"-"+Xe[n[t+8]]+Xe[n[t+9]]+"-"+Xe[n[t+10]]+Xe[n[t+11]]+Xe[n[t+12]]+Xe[n[t+13]]+Xe[n[t+14]]+Xe[n[t+15]]).toLowerCase()}const PT=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bv={randomUUID:PT};function CT(n,t,e){if(Bv.randomUUID&&!n)return Bv.randomUUID();n=n||{};const r=n.random||(n.rng||MT)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,OT(r)}const LT=n=>Kn({XL:20,L:10,M:8,S:7,XS:5})[n],TT=n=>Kn({XL:200,L:100,M:80,S:60,XS:40})[n];class Yi extends Me{constructor(t){super(),this.provided=t,this.revision=CT(),this.counter=yM(),this.aliases={},this.stack=[],this.points=new Map,this.labels=new Set,this.limits={legend:LT(this.provided.width??"L"),point:this.provided.limit??TT(this.provided.width??"L")},this.source=new Rr(document.createElement("canvas"),{type:"line",data:{labels:Kn([]),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)??Kn({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,Mn.clamp(this.stack.length-this.limits.point,0,1/0)).forEach(r=>{const i=this.points.get(r);i&&Mn.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:eo(r,`chart:${this.revision}`),backgroundColor:eo(r,`chart:${this.revision}`)}))},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 Yi(t)}}const IT=`
211
+ <section id="expectations">
212
+ <div class="storage"></div>
213
+
214
+ <div class="controls">
215
+ <div class="main">
216
+ <button class="icon-only" id="expand"><i class="fas fa-chevron-down"></i></button>
217
+ </div>
218
+
219
+ <div class="additional container hidden"></div>
220
+ </div>
221
+
222
+ <div class="content"></div>
223
+ </section>
224
+ `,BT=`
164
225
  <div class="container expectation" id="{{data.id}}">
165
226
  <div class="meta">{{> expectationMeta this}}</div>
166
227
  </div>
167
- `,xR=`
228
+ `,DT=`
168
229
  <div class="viewer container"></div>
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 {
230
+ `;function FT(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 P_(n){return n===null?"null":typeof n}function _h(n){return!!n&&typeof n=="object"}function C_(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 L_(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 Dv(n){var t="";return _h(n)?(t=C_(n),Array.isArray(n)&&(t+="["+n.length+"]")):t=L_(P_(n),n,n),typeof t=="string"?'"'+t+'"':t}function gn(n){return"json-formatter-"+n}function qe(n,t,e){var r=document.createElement(n);return t&&r.classList.add(gn(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 {
170
231
  font-family: monospace;
171
232
  }
172
233
  .json-formatter-row,
@@ -360,18 +421,67 @@ function print() { __p += __j.call(arguments, '') }
360
421
  .json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {
361
422
  display: block;
362
423
  }
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=`
424
+ `);var NT=/(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/,jT=/\d{2}:\d{2}:\d{2} GMT-\d{4}/,UT=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,ol=window.requestAnimationFrame||function(n){return n(),0},$i={hoverPreviewEnabled:!1,hoverPreviewArrayCount:10,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null,maxArrayItems:100,exposePath:!1,afterCopyHandler:function(){}},qT=function(){function n(t,e,r,i,s,a,l,c){e===void 0&&(e=1),r===void 0&&(r=$i),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=$i.hoverPreviewEnabled),this.config.hoverPreviewArrayCount===void 0&&(this.config.hoverPreviewArrayCount=$i.hoverPreviewArrayCount),this.config.hoverPreviewFieldCount===void 0&&(this.config.hoverPreviewFieldCount=$i.hoverPreviewFieldCount),this.config.useToJSON===void 0&&(this.config.useToJSON=$i.useToJSON),this.config.maxArrayItems===void 0&&(this.config.maxArrayItems=$i.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"&&(NT.test(this.json)||UT.test(this.json)||jT.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 _h(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 C_(this.json)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":P_(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(gn("open")))},n.prototype.onCopy=function(t){var e,r,i,s,a,l;return i=this,s=void 0,l=function(){return FT(this,function(c){switch(c.label){case 0:return[4,navigator.clipboard.writeText(_h(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(gn("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(gn("open")))))},n.prototype.getInlinepreview=function(){var t=this;if(this.isArray){var e=this.json.slice(0,this.config.hoverPreviewArrayCount).map(Dv);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+": "+Dv(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(gn(this.type)),this.isDate&&e.classList.add(gn("date")),this.isUrl&&(e.classList.add(gn("url")),e.setAttribute("href",this.json));var l=L_(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(gn("object")),this.isArray&&h.classList.add(gn("array")),this.isEmpty&&h.classList.add(gn("empty")),this.config&&this.config.theme&&this.element.classList.add(gn(this.config.theme)),this.isOpen&&this.element.classList.add(gn("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."+gn("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():ol(a))};ol(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."+gn("children"));if(t){var r=0,i=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?i():ol(i))};ol(i)}else e&&(e.innerHTML="")},n}();const WT=Ie.compile(DT);class zl extends Me{constructor(t){var e;super(WT({})),this.options=t,this.instance=new qT({},((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 zl(t)}}const HT=Ie.compile(BT);class Zs extends Me{constructor(t,e){super(),this.data=t,this.options=e,this.viewer=zl.build({depth:3}).hide(),this.refresh(e)}provide(t){return Object.assign(this,{data:t})}assign(t){return Object.assign(this,t)}refresh(t=this.options){return this.assign({options:t}).replace(HT({options:t,data:this.data})).append(this.viewer),this.viewer.provide(Mn.pick(this.data,["id","type","transports","schema"])),ur.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",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.expand():this.viewer.hide():null),this}match(t){var e,r,i,s,a,l,c,h,f;return[this.data.group,this.data.name,(e=this.data.meta.tags.forward)==null?void 0:e.url,(i=(r=this.data.meta.tags.incoming)==null?void 0:r.path)==null?void 0:i.join(),(a=(s=this.data.meta.tags.incoming)==null?void 0:s.error)==null?void 0:a.join(),(c=(l=this.data.meta.tags.incoming)==null?void 0:l.method)==null?void 0:c.join(),(f=(h=this.data.meta.tags.outgoing)==null?void 0:h.status)==null?void 0:f.join()].some(g=>g==null?void 0:g.includes(t))}async expand(){if(this.data.format==="compact"){const t=await Nt.services.io.exec("expectations:get-by-id",{id:this.data.id}).catch(e=>console.error(e));this.data=(t==null?void 0:t.data)??this.data,this.refresh()}this.viewer.show()}static build(t,e){return new Zs(t,e)}}const zT=Ie.compile(IT),wh=Fl.build(),Je={storage:new Map,filters:{search:Kn(null),groups:Kn(null)}},An={search:Bl.build({title:"Search expectations"}).on("clear",()=>{Je.filters.search=null,Ki()}).on("input",n=>{Je.filters.search=n,Ki()}),filter:ts.build({title:{text:"Groups filter",icon:"fas fa-filter",description:"shows/hides items in the list below"},storage:{key:"expectations:filters:groups"},width:"L"}),switcher:ts.build({title:{text:"Groups switcher",icon:"fas fa-power-off",description:"turnes on/off items in the list below"},width:"L"})},VT=n=>{let t=n;return Je.filters.groups&&(t=t.filter(e=>Je.filters.groups.includes(e.data.group))),Je.filters.search&&(t=t.filter(e=>e.match(Je.filters.search))),t},Ki=(n=[...Je.storage.values()])=>{const t=VT(n.map(e=>e.hide())).map(e=>e.show());n.length===Je.storage.size&&(t.length?wh.hide():wh.show())},Xf=n=>(n??Nt.services.groups.storage).forEach(t=>{var r,i;[...Je.storage.values()].filter(s=>s.data.group===t).every(s=>!s.data.isEnabled)?(r=An.switcher.buttons.provided[t])==null||r.disable("silent"):(i=An.switcher.buttons.provided[t])==null||i.enable("silent")}),Ds=()=>({pathSize:Nt.services.settings.get("settings:visual:path-size")}),od=os.build(zT({})).assignMeta({name:"Expectations",icon:"fas fa-magic"}).once("initialize",n=>{n.append(wh),n.controls.main.append(An.search),n.controls.additional.append(An.filter),n.controls.additional.append(An.switcher),Nt.services.groups.on("register",t=>{An.switcher.provide({name:t,isEnabled:!0,colorify:{prefix:"group"}}),An.filter.provide({name:t,isEnabled:!0,colorify:{prefix:"group"}})}),An.switcher.on("enable",t=>Nt.services.io.exec("expectations:group:update",{name:t.name,set:{isEnabled:!0}})),An.switcher.on("disable",t=>Nt.services.io.exec("expectations:group:update",{name:t.name,set:{isEnabled:!1}})),An.filter.on("switch",t=>{Je.filters.groups=t.filter(e=>e.isEnabled).map(e=>e.name),Ki()}),Nt.services.settings.on("assign:settings:visual:path-size",()=>Je.storage.forEach(t=>t.refresh(Ds()))),Nt.services.io.subscribe("expectation:added",t=>{const e=Zs.build(t,Ds());Je.storage.set(t.id,e),Nt.services.groups.register(t.group),n.content.append(e),Ki([e]),Xf([e.data.group])}),Nt.services.io.subscribe("expectation:updated",t=>{const e=Je.storage.get(t.id)??Zs.build(t,Ds());Je.storage.has(t.id)&&e.provide(t).refresh(Ds()),n.content.element.querySelector(`div.expectation[id="${t.id}"]`)||(n.content.append(e),Ki([e])),Je.storage.set(t.id,e),Nt.services.groups.register(t.group),Xf([e.data.group])})}).on("initialize",async n=>{Nt.services.groups.clear(),n.content.clear(),An.switcher.clear(),An.filter.clear(),Je.storage.clear();const{data:t}=await Nt.services.io.exec("expectations:compact:get-list");t.forEach(e=>{const r=Zs.build(e,Ds());Je.storage.set(e.id,r),Nt.services.groups.register(e.group),n.content.append(r)}),An.filter.trigger(),Ki(),Xf()}),$T=`
425
+ <section id="analytics">
426
+ <div class="storage"></div>
427
+ <div class="content container"></div>
428
+ </section>
429
+ `,GT=Ie.compile($T),pn={memory:Yi.build({title:{text:"Server memory usage",icon:"fas fa-memory",description:"updates every 5 seconds"},width:"L"}),cache:Yi.build({title:{text:"Cache memory usage",icon:"fas fa-database",description:"updates every 10 minutes"},width:"L"}),containers:Yi.build({title:{text:"Registered containers",icon:"fas fa-box",description:"updates every 5 seconds"},width:"S"}),rate:Yi.build({title:{text:"Requests rate",icon:"fas fa-rocket",description:"updates instantly"},mode:"aggregation",width:"S"})},T_=os.build(GT({})).assignMeta({icon:"fas fa-chart-line"}).once("initialize",n=>{n.content.append(pn.memory),n.content.append(pn.cache),n.content.append(pn.containers),n.content.append(pn.rate),Nt.services.io.subscribe("metric:registered",({name:t,point:{timestamp:e,values:r}})=>t in pn?pn[t].provide([{values:r,legend:Hr(e).format("HH:mm")}]):null)}).on("initialize",async()=>{pn.containers.clear(),pn.memory.clear(),pn.cache.clear(),pn.rate.clear();const{data:n}=await Nt.services.io.exec("metrics:get");pn.memory.provide(n.memory.map(({timestamp:t,values:e})=>({values:e,legend:Hr(t).format("HH:mm")}))),pn.cache.provide(n.cache.map(({timestamp:t,values:e})=>({values:e,legend:Hr(t).format("HH:mm")}))),pn.rate.provide(n.rate.map(({timestamp:t,values:e})=>({values:e,legend:Hr(t).format("HH:mm")}))),pn.containers.provide(n.containers.map(({timestamp:t,values:e})=>({values:e,legend:Hr(t).format("HH:mm")})))}),YT=`
430
+ <div class="content">
431
+ <div class="input size-M" title="Backup file"><input type="file" data-key="files"></div>
432
+ <div class="input size-XS" title="TTL (seconds)"><input type="text" data-key="ttl" value="3600"></div>
433
+
434
+ <button id="restore"><i class="fas fa-undo"></i>Restore</button>
435
+ </div>
436
+ `,KT=`
437
+ <div class="content">
438
+ <div class="input size-L" title="prefix"><input type="text" data-key="prefix" value="*"></div>
439
+ <button id="delete"><i class="fas fa-trash-alt"></i>Delete</button>
440
+ </div>
441
+ `,XT=`
442
+ <div class="content">
443
+ <button id="backup"><i class="fas fa-save"></i>Backup</button>
444
+ </div>
445
+ `,JT=`
446
+ <section id="settings">
447
+ <div class="storage"></div>
448
+ <div class="content container"></div>
449
+ </section>
450
+ `,ZT=`
451
+ <div class="content">
452
+ <p class="version"><span>Version</span><b>{{version}}</b></p>
453
+ <p class="version"><span>Uptime</span><b>{{uptime}}</b></p>
454
+ </div>
455
+ `,Qs={cacheRestoration:Ie.compile(YT),cacheDeletion:Ie.compile(KT),cacheBackup:Ie.compile(XT),section:Ie.compile(JT),stats:Ie.compile(ZT)},Un={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:ts.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"})}},al={cache:{deletion:Zi.build("settings:cache:deletion",Un.cache.deletion),restoration:Zi.build("settings:cache:restoration",Un.cache.restoration)}},I_=os.build(Qs.section({})).assignMeta({icon:"fas fa-cog"}).once("initialize",n=>{n.content.append(vi.build("System")),n.content.append(Un.system.stats),n.content.append(vi.build("Cache")),n.content.append(Un.cache.backup),n.content.append(Un.cache.restoration),n.content.append(Un.cache.deletion),n.content.append(vi.build("Visual")),n.content.append(Un.visual.pathSize),al.cache.deletion.sync(),al.cache.restoration.sync(),ur.build(Un.cache.deletion.element.querySelector("button#delete")).handle(async()=>{var r;const t=await al.cache.deletion.save(),{data:e}=await Nt.services.io.exec("cache:delete",{prefix:t.prefix});Nt.shared.popups.push(`Deleted <b>${((r=e.redis)==null?void 0:r.count)??0}</b> cache keys`)}),ur.build(Un.cache.backup.element.querySelector("button#backup")).handle(async()=>{const{data:t}=await Nt.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()}),ur.build(Un.cache.restoration.element.querySelector("button#restore")).handle(async()=>{var i;const t=await al.cache.restoration.save();if(!((i=t.files)!=null&&i.length))return Nt.shared.popups.push("File is not provided",{level:"warning"});const e=1024*300,r=Bf.createStream({highWaterMark:e});Bf(Nt.instances.io).emit("cache:restore:stream",r,{ttl:t.ttl}),Bf.createBlobReadStream(t.files[0].source,{highWaterMark:e}).pipe(r),await new Promise(s=>r.once("finish",s)),Nt.shared.popups.push("Restored")}),Un.visual.pathSize.on("enable",t=>Nt.services.settings.assign("settings:visual:path-size",t.name))}).on("select",async()=>{const{data:n}=await Nt.services.io.exec("stats");Un.system.stats.replace(Qs.stats(n))}),QT=`
456
+ <section id="history">
457
+ <div class="storage"></div>
458
+
459
+ <div class="controls">
460
+ <div class="main">
461
+ <button class="icon-only" id="expand"><i class="fas fa-chevron-down"></i></button>
462
+ </div>
463
+
464
+ <div class="additional container hidden"></div>
465
+ </div>
466
+
467
+ <div class="content"></div>
468
+ </section>
469
+ `,tI=`
470
+ <div class="buttons">
471
+ <button id="add-separator"><i class="fas fa-comment"></i>Add separator</button>
472
+ <button id="delete-separators"><i class="fas fa-trash-alt"></i>Delete separators</button>
473
+ <button id="clear"><i class="fas fa-trash-alt"></i>Clear list</button>
474
+ </div>
475
+ `,eI=`
366
476
  <div class="container history" id="{{data.id}}">
367
477
  <div class="meta">
368
478
  <div class="segment">
369
479
  <span class="time">{{#toLocaleTime data.timestamp}}{{/toLocaleTime}}</span>
370
480
 
371
- {{#if data.snapshot.error}}
481
+ {{#if data.meta.tags.error}}
372
482
  <span class="error">
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}}
483
+ {{#compare data.meta.tags.error.code.length 'lte' 24}}{{data.meta.tags.error.code}}{{/compare}}
484
+ {{#compare data.meta.tags.error.code.length 'gt' 24}}Error{{/compare}}
375
485
  </span>
376
486
  {{/if}}
377
487
 
@@ -380,22 +490,24 @@ function print() { __p += __j.call(arguments, '') }
380
490
  {{/compare}}
381
491
 
382
492
  {{#compare data.status 'eq' 'completed'}}
383
- <span class="status
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}}
387
- {{/compare}}
388
- "><b>{{data.snapshot.outgoing.status}}</b> {{toSeconds data.duration}}s</span>
493
+ {{#unless data.meta.tags.error}}
494
+ <span class="status
495
+ {{#compare data.meta.tags.transport 'eq' 'http'}}
496
+ {{#compare data.meta.tags.outgoing.status 'lt' 400}}green{{/compare}}
497
+ {{#compare data.meta.tags.outgoing.status 'gte' 400}}red{{/compare}}
498
+ {{/compare}}
499
+ "><b>{{data.meta.tags.outgoing.status}}</b> {{toSeconds data.meta.metrics.duration}}s</span>
500
+ {{/unless}}
389
501
  {{/compare}}
390
502
 
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}}
503
+ <span class="method" style="color: {{toColor data.meta.tags.incoming.method 'method'}};">
504
+ {{data.meta.tags.incoming.method}}
505
+ </span>
393
506
 
394
- {{#if data.snapshot.seed}}<span class="seed">{{data.snapshot.seed}}</span>{{/if}}
507
+ {{> metaPath value=data.meta.tags.incoming.path size=options.pathSize}}
508
+ {{#if data.meta.tags.seed}}<span class="seed">{{data.meta.tags.seed}}</span>{{/if}}
395
509
  </div>
396
510
 
397
- <span class="arrow"><i class="fas fa-chevron-right"></i></span>
398
-
399
511
  {{#if data.expectation}}
400
512
  {{>expectationMeta options data=data.expectation format='short'}}
401
513
  {{else}}
@@ -403,8 +515,8 @@ function print() { __p += __j.call(arguments, '') }
403
515
  {{/if}}
404
516
 
405
517
  <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}}
518
+ {{#if data.meta.tags.cache.hasWritten}}<span class="cache written"><i class="fas fa-database"></i></span>{{/if}}
519
+ {{#if data.meta.tags.cache.hasRead}}<span class="cache read"><i class="fas fa-database"></i></span>{{/if}}
408
520
  </div>
409
521
  </div>
410
522
 
@@ -428,119 +540,4 @@ function print() { __p += __j.call(arguments, '') }
428
540
  </div>
429
541
  {{/if}} --}}
430
542
  </div>
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;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,...this.data.snapshot.seed&&{seed:this.data.snapshot.seed},...this.data.snapshot.container&&{container:this.data.snapshot.container},...Object.keys(this.data.snapshot.flags).length&&{flags:this.data.snapshot.flags},...Object.keys(this.data.snapshot.state).length&&{state:this.data.snapshot.state},...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}}},...(this.data.snapshot.cache.hasRead||this.data.snapshot.cache.hasWritten)&&{cache:this.data.snapshot.cache},incoming:this.data.snapshot.incoming,...this.data.snapshot.error&&{error:this.data.snapshot.error},...this.data.status==="completed"&&{outgoing:this.data.snapshot.outgoing},...this.data.snapshot.forwarded&&{forwarded:this.data.snapshot.forwarded},...((e=this.data.snapshot.messages)==null?void 0:e.length)&&{messages:this.data.snapshot.messages}}),this.element.querySelector("div.meta").addEventListener("click",r=>r.composedPath().some(i=>{var s;return(s=i==null?void 0:i.classList)==null?void 0:s.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=`
432
- <div class="popup-message {{level}}">
433
- {{#compare level 'eq' 'info'}}<i class="fas fa-check"></i>{{/compare}}
434
- {{#compare level 'eq' 'warning'}}<i class="fas fa-exclamation-triangle"></i>{{/compare}}
435
- {{#compare level 'eq' 'error'}}<i class="fas fa-times"></i>{{/compare}}
436
-
437
- <span>{{{message}}}</span>
438
- </div>
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=`
440
- <div class="search">
441
- <i class="fas fa-search"></i>
442
- <div class="input" title="{{title}}"><input data-key="search" type="text"></div>
443
- <button><i class="far fa-times-circle"></i></button>
444
- </div>
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=`
446
- <header>
447
- <div id="tabs">
448
- {{#each tabs}}
449
- {{#compare type 'eq' 'separator'}}<hr>{{/compare}}
450
-
451
- {{#compare type 'eq' 'section'}}
452
- <button class="{{#unless entity.meta.name}}icon-only{{/unless}} {{#if isSelected}}checked{{/if}}" id="{{id}}">
453
- <i class="{{entity.meta.icon}}"></i>{{entity.meta.name}}
454
- </button>
455
- {{/compare}}
456
- {{/each}}
457
- </div>
458
- </header>
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=`
460
- <div class="empty">
461
- <i class="fas fa-hourglass-start"></i>
462
- <p>There's still nothing...</p>
463
- </div>
464
- `,LO=Ie.compile(CO);class Fl extends Re{static build(){return new Fl(LO({}))}}/*!
465
- * @kurkle/color v0.3.4
466
- * https://github.com/kurkle/color#readme
467
- * (c) 2024 Jukka Kurkela
468
- * Released under the MIT License
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}}/*!
470
- * Chart.js v4.4.8
471
- * https://www.chartjs.org
472
- * (c) 2025 Chart.js Contributors
473
- * Released under the MIT License
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)}/*!
475
- * Chart.js v4.4.8
476
- * https://www.chartjs.org
477
- * (c) 2025 Chart.js Contributors
478
- * Released under the MIT License
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(`
480
- `)>-1?n.split(`
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&&LT(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=`
482
- <section id="expectations">
483
- <div class="storage"></div>
484
-
485
- <div class="controls">
486
- <div class="main">
487
- <button class="icon-only" id="expand"><i class="fas fa-chevron-down"></i></button>
488
- </div>
489
-
490
- <div class="additional container hidden"></div>
491
- </div>
492
-
493
- <div class="content"></div>
494
- </section>
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=`
496
- <section id="analytics">
497
- <div class="storage"></div>
498
- <div class="content container"></div>
499
- </section>
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=`
501
- <div class="content">
502
- <div class="input size-M" title="Backup file"><input type="file" data-key="files"></div>
503
- <div class="input size-XS" title="TTL (seconds)"><input type="text" data-key="ttl" value="3600"></div>
504
-
505
- <button id="restore"><i class="fas fa-undo"></i>Restore</button>
506
- </div>
507
- `,YT=`
508
- <div class="content">
509
- <div class="input size-L" title="prefix"><input type="text" data-key="prefix" value="*"></div>
510
- <button id="delete"><i class="fas fa-trash-alt"></i>Delete</button>
511
- </div>
512
- `,KT=`
513
- <div class="content">
514
- <button id="backup"><i class="fas fa-save"></i>Backup</button>
515
- </div>
516
- `,XT=`
517
- <section id="settings">
518
- <div class="storage"></div>
519
- <div class="content container"></div>
520
- </section>
521
- `,JT=`
522
- <div class="content">
523
- <p class="version"><span>Version</span><b>{{version}}</b></p>
524
- <p class="version"><span>Uptime</span><b>{{uptime}}</b></p>
525
- </div>
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=`
527
- <section id="history">
528
- <div class="storage"></div>
529
-
530
- <div class="controls">
531
- <div class="main">
532
- <button class="icon-only" id="expand"><i class="fas fa-chevron-down"></i></button>
533
- </div>
534
-
535
- <div class="additional container hidden"></div>
536
- </div>
537
-
538
- <div class="content"></div>
539
- </section>
540
- `,QT=`
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>
544
- <button id="clear"><i class="fas fa-trash-alt"></i>Clear list</button>
545
- </div>
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()});
543
+ `,nI=Ie.compile(eI);class to extends Me{constructor(t,e){super(),this.data=t,this.options=e,this.viewer=zl.build({depth:2}).hide(),this.refresh(e)}provide(t){return Object.assign(this,{data:t})}assign(t){return Object.assign(this,t)}refresh(t=this.options){var e;return this.assign({options:t}).replace(nI({options:t,data:this.data})).append(this.viewer),this.data.format==="plain"&&this.viewer.provide({event:this.data.snapshot.event,transport:this.data.snapshot.transport,...this.data.snapshot.seed&&{seed:this.data.snapshot.seed},...this.data.snapshot.container&&{container:this.data.snapshot.container},...Object.keys(this.data.snapshot.flags).length&&{flags:this.data.snapshot.flags},...Object.keys(this.data.snapshot.state).length&&{state:this.data.snapshot.state},...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}}},...(this.data.snapshot.cache.hasRead||this.data.snapshot.cache.hasWritten)&&{cache:this.data.snapshot.cache},incoming:this.data.snapshot.incoming,...this.data.snapshot.error&&{error:this.data.snapshot.error},...this.data.status==="completed"&&{outgoing:this.data.snapshot.outgoing},...this.data.snapshot.forwarded&&{forwarded:this.data.snapshot.forwarded},...((e=this.data.snapshot.messages)==null?void 0:e.length)&&{messages:this.data.snapshot.messages}}),this.element.querySelector("div.meta").addEventListener("click",r=>r.composedPath().some(i=>{var s;return(s=i==null?void 0:i.classList)==null?void 0:s.contains("meta")})?this.viewer.isHidden?this.expand():this.viewer.hide():null),this}match(t){var e,r,i,s;return[this.data.group,(e=this.data.expectation)==null?void 0:e.name,this.data.meta.tags.incoming.path,this.data.meta.tags.incoming.method,(r=this.data.meta.tags.error)==null?void 0:r.code,(i=this.data.meta.tags.error)==null?void 0:i.message,String(((s=this.data.meta.tags.outgoing)==null?void 0:s.status)??""),String(this.data.meta.tags.seed??"")].some(a=>a==null?void 0:a.includes(t))}async expand(){if(this.data.format==="compact"){const t=await Nt.services.io.exec("history:get-by-id",{id:this.data.id}).catch(e=>console.error(e));this.data=(t==null?void 0:t.data)??this.data,this.refresh()}this.viewer.show()}static build(t,e){return new to(t,e)}}const xh=Fl.build(),B_={section:Ie.compile(QT),actions:Ie.compile(tI)},Yt={storage:new Map,stack:Kn([]),separators:{date:new Set,custom:new Set},filters:{search:Kn(null),groups:Kn(null)}},rr={search:Bl.build({title:"Search history"}).on("clear",()=>{Yt.filters.search=null,gi()}).on("input",n=>{Yt.filters.search=n,gi()}),filter:ts.build({title:{text:"Groups filter",icon:"fas fa-filter",description:"shows/hides items in the list below"},storage:{key:"history:filters:groups"},width:"L"}),actions:Mr.build({title:{text:"Actions",icon:"fas fa-sliders-h"},class:"actions",width:"L"}).append(B_.actions({}))},rI=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},D_=(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=+Hr().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=Hr(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=rI(n.map(e=>e.hide())).map(e=>e.show());n.length===Yt.storage.size&&(t.length?xh.hide():xh.show(),D_(t))},Fs=()=>({pathSize:Nt.services.settings.get("settings:visual:path-size")}),F_=os.build(B_.section({})).assignMeta({name:"History",icon:"fas fa-history"}).once("initialize",n=>{n.append(xh),n.controls.main.append(rr.search),n.controls.additional.append(rr.filter),n.controls.additional.append(rr.actions),ur.build(rr.actions.element.querySelector("button#clear")).handle(async()=>{if(!Yt.stack.length)return Nt.shared.popups.push("Nothing to clear",{level:"warning"});await Nt.services.io.exec("history:delete"),Yt.separators.custom.clear(),Yt.separators.date.clear(),Yt.storage.clear(),Yt.stack=[],n.content.clear(),Nt.shared.popups.push("History has cleared"),gi()}),ur.build(rr.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)}),ur.build(rr.actions.element.querySelector("button#delete-separators")).handle(()=>{for(const t of Yt.separators.custom.values())Yt.separators.custom.delete(t),t.delete()}),Nt.services.groups.on("register",t=>rr.filter.provide({name:t,isEnabled:!0,colorify:{prefix:"group"}})),Nt.services.settings.on("assign:settings:visual:path-size",()=>Yt.storage.forEach(t=>t.refresh(Fs()))),rr.filter.on("switch",t=>{Yt.filters.groups=t.filter(e=>e.isEnabled).map(e=>e.name),gi()}),Nt.services.io.subscribe("history:added",t=>{var r;const e=to.build(t,Fs());if(Yt.storage.set(t.id,e),Yt.stack.push(t.id),Yt.stack.length>Nt.services.config.storage.history.limit*Nt.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])}),Nt.services.io.subscribe("history:updated",t=>{const e=Yt.storage.get(t.id)??to.build(t,Fs());Yt.storage.has(t.id)?e.provide(t).refresh(Fs()):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(()=>D_(),30*1e3)}).on("initialize",async n=>{rr.filter.clear(),Yt.stack=[],n.content.clear(),Yt.storage.clear();const{data:t}=await Nt.services.io.exec("history:compact:get-list");t.forEach(e=>{const r=to.build(e,Fs());Yt.storage.set(e.id,r),Yt.stack.push(e.id),n.content.append(r)}),rr.filter.trigger(),gi()}),N_=Object.freeze(Object.defineProperty({__proto__:null,analytics:T_,expectations:od,history:F_,settings:I_},Symbol.toStringTag,{value:"Module"})),j_=Bh.build().show(),iI=Wh.build([{type:"section",entity:I_.hide()},{type:"section",entity:T_.hide()},{type:"separator"},{type:"section",entity:od},{type:"section",entity:F_.hide()}]);Nt.switchStorage(od.storage).share({popups:Dh.build()});document.body.prepend(iI.element);document.body.append(j_.element);document.body.append(Nt.shared.popups.element);Object.values(N_).map(n=>n.compile()).forEach(n=>document.body.append(n.element));Nt.instances.io.on("connect",async()=>{console.log("WebSocket has connected"),await Nt.services.io.exec("ping");const{data:n}=await Nt.services.io.exec("config:get");Nt.services.config.assign(n),Nt.shared.popups.push("Connected!"),Object.values(N_).forEach(t=>t.initialize()),j_.hide()});