unleash-server 5.0.0 → 5.0.2

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 (47) hide show
  1. package/dist/lib/db/context-field-store.js +10 -3
  2. package/dist/lib/db/context-field-store.js.map +1 -1
  3. package/dist/lib/error/api-error.d.ts +11 -3
  4. package/dist/lib/error/api-error.js +8 -1
  5. package/dist/lib/error/api-error.js.map +1 -1
  6. package/dist/lib/error/api-error.test.js +11 -0
  7. package/dist/lib/error/api-error.test.js.map +1 -1
  8. package/dist/lib/routes/admin-api/event.js +12 -0
  9. package/dist/lib/routes/admin-api/event.js.map +1 -1
  10. package/dist/lib/routes/admin-api/events.test.js +22 -0
  11. package/dist/lib/routes/admin-api/events.test.js.map +1 -1
  12. package/dist/lib/routes/admin-api/project/project-archive.js +0 -10
  13. package/dist/lib/routes/admin-api/project/project-archive.js.map +1 -1
  14. package/dist/lib/routes/admin-api/project/project-features.js +0 -4
  15. package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
  16. package/dist/lib/routes/admin-api/tag.js +0 -4
  17. package/dist/lib/routes/admin-api/tag.js.map +1 -1
  18. package/dist/lib/types/experimental.d.ts +0 -1
  19. package/dist/lib/types/experimental.js +0 -1
  20. package/dist/lib/types/experimental.js.map +1 -1
  21. package/dist/server-dev.js +0 -1
  22. package/dist/server-dev.js.map +1 -1
  23. package/dist/test/e2e/api/admin/feature-archive.e2e.test.js +0 -1
  24. package/dist/test/e2e/api/admin/feature-archive.e2e.test.js.map +1 -1
  25. package/dist/test/e2e/api/admin/project/features.e2e.test.js +0 -1
  26. package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
  27. package/dist/test/e2e/api/admin/tags.e2e.test.js +0 -1
  28. package/dist/test/e2e/api/admin/tags.e2e.test.js.map +1 -1
  29. package/frontend/build/index.html +1 -1
  30. package/frontend/build/static/{CreateProject-3068c6cc.js → CreateProject-ecbf28c7.js} +1 -1
  31. package/frontend/build/static/{Error-5126b473.js → Error-0161926e.js} +1 -1
  32. package/frontend/build/static/{FeatureArchiveDialog-942cfb36.js → FeatureArchiveDialog-8ba2065f.js} +1 -1
  33. package/frontend/build/static/{FeatureMetricsChart-8ece013b.js → FeatureMetricsChart-82dc2cca.js} +1 -1
  34. package/frontend/build/static/{FeatureViewLazyExport-35333d0a.js → FeatureViewLazyExport-1a3192eb.js} +2 -2
  35. package/frontend/build/static/{LazyAdminExport-f326ef75.js → LazyAdminExport-b4a3d4f0.js} +2 -2
  36. package/frontend/build/static/{LazyProjectExport-677103b2.js → LazyProjectExport-23ec9168.js} +7 -7
  37. package/frontend/build/static/{NetworkOverview-2b96614f.js → NetworkOverview-96260e93.js} +1 -1
  38. package/frontend/build/static/{NetworkTraffic-f41f3193.js → NetworkTraffic-0e7e6d26.js} +1 -1
  39. package/frontend/build/static/{Playground-ea21e876.js → Playground-325b0d90.js} +1 -1
  40. package/frontend/build/static/{StrategyItemContainer-89b76888.js → StrategyItemContainer-af870d19.js} +1 -1
  41. package/frontend/build/static/{chartjs-adapter-date-fns.esm-c4ad9167.js → chartjs-adapter-date-fns.esm-f9aa93ea.js} +1 -1
  42. package/frontend/build/static/{index-e40263f5.js → index-2a2ab5f7.js} +37 -37
  43. package/frontend/build/static/{index-53da3ab8.js → index-9d101e00.js} +1 -1
  44. package/frontend/build/static/{index-8187b023.js → index-a0912377.js} +1 -1
  45. package/frontend/build/static/{unknownify-02b43b97.js → unknownify-cbe206ad.js} +1 -1
  46. package/frontend/build/static/{useProjectRole-7a147557.js → useProjectRole-c87a3043.js} +1 -1
  47. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import{fj as z4,fk as W4,fl as H4,fm as G4,s as fp,r as Lh,j as Cl,bO as q4,fn as j4,fo as $4,C as X4,A as K4,fp as Z4,fq as Q4}from"./index-e40263f5.js";import{v as J4}from"./v4-a960c1f4.js";import{u as tb,a as pp}from"./unknownify-02b43b97.js";function eb(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Dh={},rb={get exports(){return Dh},set exports(t){Dh=t}};(function(t,e){(function(r,i){t.exports=i()})(z4,function(){var r;function i(){return r.apply(null,arguments)}function n(h){return h instanceof Array||Object.prototype.toString.call(h)==="[object Array]"}function s(h){return h!=null&&Object.prototype.toString.call(h)==="[object Object]"}function a(h,y){return Object.prototype.hasOwnProperty.call(h,y)}function o(h){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(h).length===0;for(var y in h)if(a(h,y))return;return 1}function l(h){return h===void 0}function u(h){return typeof h=="number"||Object.prototype.toString.call(h)==="[object Number]"}function d(h){return h instanceof Date||Object.prototype.toString.call(h)==="[object Date]"}function f(h,y){for(var x=[],E=h.length,R=0;R<E;++R)x.push(y(h[R],R));return x}function p(h,y){for(var x in y)a(y,x)&&(h[x]=y[x]);return a(y,"toString")&&(h.toString=y.toString),a(y,"valueOf")&&(h.valueOf=y.valueOf),h}function g(h,y,x,E){return mr(h,y,x,E,!0).utc()}function _(h){return h._pf==null&&(h._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),h._pf}function k(h){if(h._isValid==null){var y=_(h),x=S.call(y.parsedDateParts,function(E){return E!=null}),x=!isNaN(h._d.getTime())&&y.overflow<0&&!y.empty&&!y.invalidEra&&!y.invalidMonth&&!y.invalidWeekday&&!y.weekdayMismatch&&!y.nullInput&&!y.invalidFormat&&!y.userInvalidated&&(!y.meridiem||y.meridiem&&x);if(h._strict&&(x=x&&y.charsLeftOver===0&&y.unusedTokens.length===0&&y.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(h))return x;h._isValid=x}return h._isValid}function w(h){var y=g(NaN);return h!=null?p(_(y),h):_(y).userInvalidated=!0,y}var S=Array.prototype.some||function(h){for(var y=Object(this),x=y.length>>>0,E=0;E<x;E++)if(E in y&&h.call(this,y[E],E,y))return!0;return!1},A=i.momentProperties=[],O=!1;function P(h,y){var x,E,R,nt=A.length;if(l(y._isAMomentObject)||(h._isAMomentObject=y._isAMomentObject),l(y._i)||(h._i=y._i),l(y._f)||(h._f=y._f),l(y._l)||(h._l=y._l),l(y._strict)||(h._strict=y._strict),l(y._tzm)||(h._tzm=y._tzm),l(y._isUTC)||(h._isUTC=y._isUTC),l(y._offset)||(h._offset=y._offset),l(y._pf)||(h._pf=_(y)),l(y._locale)||(h._locale=y._locale),0<nt)for(x=0;x<nt;x++)l(R=y[E=A[x]])||(h[E]=R);return h}function W(h){P(this,h),this._d=new Date(h._d!=null?h._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),O===!1&&(O=!0,i.updateOffset(this),O=!1)}function q(h){return h instanceof W||h!=null&&h._isAMomentObject!=null}function z(h){i.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+h)}function H(h,y){var x=!0;return p(function(){if(i.deprecationHandler!=null&&i.deprecationHandler(null,h),x){for(var E,R,nt=[],yt=arguments.length,Ct=0;Ct<yt;Ct++){if(E="",typeof arguments[Ct]=="object"){for(R in E+=`
1
+ import{fj as z4,fk as W4,fl as H4,fm as G4,s as fp,r as Lh,j as Cl,bO as q4,fn as j4,fo as $4,C as X4,A as K4,fp as Z4,fq as Q4}from"./index-2a2ab5f7.js";import{v as J4}from"./v4-a960c1f4.js";import{u as tb,a as pp}from"./unknownify-cbe206ad.js";function eb(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Dh={},rb={get exports(){return Dh},set exports(t){Dh=t}};(function(t,e){(function(r,i){t.exports=i()})(z4,function(){var r;function i(){return r.apply(null,arguments)}function n(h){return h instanceof Array||Object.prototype.toString.call(h)==="[object Array]"}function s(h){return h!=null&&Object.prototype.toString.call(h)==="[object Object]"}function a(h,y){return Object.prototype.hasOwnProperty.call(h,y)}function o(h){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(h).length===0;for(var y in h)if(a(h,y))return;return 1}function l(h){return h===void 0}function u(h){return typeof h=="number"||Object.prototype.toString.call(h)==="[object Number]"}function d(h){return h instanceof Date||Object.prototype.toString.call(h)==="[object Date]"}function f(h,y){for(var x=[],E=h.length,R=0;R<E;++R)x.push(y(h[R],R));return x}function p(h,y){for(var x in y)a(y,x)&&(h[x]=y[x]);return a(y,"toString")&&(h.toString=y.toString),a(y,"valueOf")&&(h.valueOf=y.valueOf),h}function g(h,y,x,E){return mr(h,y,x,E,!0).utc()}function _(h){return h._pf==null&&(h._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),h._pf}function k(h){if(h._isValid==null){var y=_(h),x=S.call(y.parsedDateParts,function(E){return E!=null}),x=!isNaN(h._d.getTime())&&y.overflow<0&&!y.empty&&!y.invalidEra&&!y.invalidMonth&&!y.invalidWeekday&&!y.weekdayMismatch&&!y.nullInput&&!y.invalidFormat&&!y.userInvalidated&&(!y.meridiem||y.meridiem&&x);if(h._strict&&(x=x&&y.charsLeftOver===0&&y.unusedTokens.length===0&&y.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(h))return x;h._isValid=x}return h._isValid}function w(h){var y=g(NaN);return h!=null?p(_(y),h):_(y).userInvalidated=!0,y}var S=Array.prototype.some||function(h){for(var y=Object(this),x=y.length>>>0,E=0;E<x;E++)if(E in y&&h.call(this,y[E],E,y))return!0;return!1},A=i.momentProperties=[],O=!1;function P(h,y){var x,E,R,nt=A.length;if(l(y._isAMomentObject)||(h._isAMomentObject=y._isAMomentObject),l(y._i)||(h._i=y._i),l(y._f)||(h._f=y._f),l(y._l)||(h._l=y._l),l(y._strict)||(h._strict=y._strict),l(y._tzm)||(h._tzm=y._tzm),l(y._isUTC)||(h._isUTC=y._isUTC),l(y._offset)||(h._offset=y._offset),l(y._pf)||(h._pf=_(y)),l(y._locale)||(h._locale=y._locale),0<nt)for(x=0;x<nt;x++)l(R=y[E=A[x]])||(h[E]=R);return h}function W(h){P(this,h),this._d=new Date(h._d!=null?h._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),O===!1&&(O=!0,i.updateOffset(this),O=!1)}function q(h){return h instanceof W||h!=null&&h._isAMomentObject!=null}function z(h){i.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+h)}function H(h,y){var x=!0;return p(function(){if(i.deprecationHandler!=null&&i.deprecationHandler(null,h),x){for(var E,R,nt=[],yt=arguments.length,Ct=0;Ct<yt;Ct++){if(E="",typeof arguments[Ct]=="object"){for(R in E+=`
2
2
  [`+Ct+"] ",arguments[0])a(arguments[0],R)&&(E+=R+": "+arguments[0][R]+", ");E=E.slice(0,-2)}else E=arguments[Ct];nt.push(E)}z(h+`
3
3
  Arguments: `+Array.prototype.slice.call(nt).join("")+`
4
4
  `+new Error().stack),x=!1}return y.apply(this,arguments)},y)}var N={};function M(h,y){i.deprecationHandler!=null&&i.deprecationHandler(h,y),N[h]||(z(y),N[h]=!0)}function C(h){return typeof Function<"u"&&h instanceof Function||Object.prototype.toString.call(h)==="[object Function]"}function v(h,y){var x,E=p({},h);for(x in y)a(y,x)&&(s(h[x])&&s(y[x])?(E[x]={},p(E[x],h[x]),p(E[x],y[x])):y[x]!=null?E[x]=y[x]:delete E[x]);for(x in h)a(h,x)&&!a(y,x)&&s(h[x])&&(E[x]=p({},E[x]));return E}function D(h){h!=null&&this.set(h)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null;var m=Object.keys||function(h){var y,x=[];for(y in h)a(h,y)&&x.push(y);return x};function Q(h,y,x){var E=""+Math.abs(h);return(0<=h?x?"+":"":"-")+Math.pow(10,Math.max(0,y-E.length)).toString().substr(1)+E}var b=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ct=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Dt={},vt={};function j(h,y,x,E){var R=typeof E=="string"?function(){return this[E]()}:E;h&&(vt[h]=R),y&&(vt[y[0]]=function(){return Q(R.apply(this,arguments),y[1],y[2])}),x&&(vt[x]=function(){return this.localeData().ordinal(R.apply(this,arguments),h)})}function ot(h,y){return h.isValid()?(y=rt(y,h.localeData()),Dt[y]=Dt[y]||function(x){for(var E,R=x.match(b),nt=0,yt=R.length;nt<yt;nt++)vt[R[nt]]?R[nt]=vt[R[nt]]:R[nt]=(E=R[nt]).match(/\[[\s\S]/)?E.replace(/^\[|\]$/g,""):E.replace(/\\/g,"");return function(Ct){for(var Pt="",It=0;It<yt;It++)Pt+=C(R[It])?R[It].call(Ct,x):R[It];return Pt}}(y),Dt[y](h)):h.localeData().invalidDate()}function rt(h,y){var x=5;function E(R){return y.longDateFormat(R)||R}for(ct.lastIndex=0;0<=x&&ct.test(h);)h=h.replace(ct,E),ct.lastIndex=0,--x;return h}var it={};function ut(h,y){var x=h.toLowerCase();it[x]=it[x+"s"]=it[y]=h}function bt(h){return typeof h=="string"?it[h]||it[h.toLowerCase()]:void 0}function K(h){var y,x,E={};for(x in h)a(h,x)&&(y=bt(x))&&(E[y]=h[x]);return E}var Ot={};function Y(h,y){Ot[h]=y}function U(h){return h%4==0&&h%100!=0||h%400==0}function X(h){return h<0?Math.ceil(h)||0:Math.floor(h)}function F(y){var y=+y,x=0;return x=y!=0&&isFinite(y)?X(y):x}function I(h,y){return function(x){return x!=null?(J(this,h,x),i.updateOffset(this,y),this):L(this,h)}}function L(h,y){return h.isValid()?h._d["get"+(h._isUTC?"UTC":"")+y]():NaN}function J(h,y,x){h.isValid()&&!isNaN(x)&&(y==="FullYear"&&U(h.year())&&h.month()===1&&h.date()===29?(x=F(x),h._d["set"+(h._isUTC?"UTC":"")+y](x,h.month(),dt(x,h.month()))):h._d["set"+(h._isUTC?"UTC":"")+y](x))}var T=/\d/,ce=/\d\d/,ht=/\d{3}/,Jn=/\d{4}/,Bn=/[+-]?\d{6}/,V=/\d\d?/,Yt=/\d\d\d\d?/,et=/\d\d\d\d\d\d?/,Mt=/\d{1,3}/,In=/\d{1,4}/,Nn=/[+-]?\d{1,6}/,Tt=/\d+/,gt=/[+-]?\d+/,Et=/Z|[+-]\d\d:?\d\d/gi,wt=/Z|[+-]\d\d(?::?\d\d)?/gi,pt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function st(h,y,x){jt[h]=C(y)?y:function(E,R){return E&&x?x:y}}function le(h,y){return a(jt,h)?jt[h](y._strict,y._locale):new RegExp(Xt(h.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(x,E,R,nt,yt){return E||R||nt||yt})))}function Xt(h){return h.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var jt={},Kt={};function Gt(h,y){var x,E,R=y;for(typeof h=="string"&&(h=[h]),u(y)&&(R=function(nt,yt){yt[y]=F(nt)}),E=h.length,x=0;x<E;x++)Kt[h[x]]=R}function Ee(h,y){Gt(h,function(x,E,R,nt){R._w=R._w||{},y(x,R._w,R,nt)})}var Ht,Vt=0,Ft=1,xt=2,ft=3,Lt=4,_t=5,Ut=6,at=7,ie=8;function dt(h,y){if(isNaN(h)||isNaN(y))return NaN;var x=(y%(x=12)+x)%x;return h+=(y-x)/12,x==1?U(h)?29:28:31-x%7%2}Ht=Array.prototype.indexOf||function(h){for(var y=0;y<this.length;++y)if(this[y]===h)return y;return-1},j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(h){return this.localeData().monthsShort(this,h)}),j("MMMM",0,0,function(h){return this.localeData().months(this,h)}),ut("month","M"),Y("month",8),st("M",V),st("MM",V,ce),st("MMM",function(h,y){return y.monthsShortRegex(h)}),st("MMMM",function(h,y){return y.monthsRegex(h)}),Gt(["M","MM"],function(h,y){y[Ft]=F(h)-1}),Gt(["MMM","MMMM"],function(h,y,x,E){E=x._locale.monthsParse(h,E,x._strict),E!=null?y[Ft]=E:_(x).invalidMonth=h});var ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),de="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),me=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,be=pt,ke=pt;function $t(h,y){var x;if(h.isValid()){if(typeof y=="string"){if(/^\d+$/.test(y))y=F(y);else if(!u(y=h.localeData().monthsParse(y)))return}x=Math.min(h.date(),dt(h.year(),y)),h._d["set"+(h._isUTC?"UTC":"")+"Month"](y,x)}}function ne(h){return h!=null?($t(this,h),i.updateOffset(this,!0),this):L(this,"Month")}function ge(){function h(yt,Ct){return Ct.length-yt.length}for(var y,x=[],E=[],R=[],nt=0;nt<12;nt++)y=g([2e3,nt]),x.push(this.monthsShort(y,"")),E.push(this.months(y,"")),R.push(this.months(y,"")),R.push(this.monthsShort(y,""));for(x.sort(h),E.sort(h),R.sort(h),nt=0;nt<12;nt++)x[nt]=Xt(x[nt]),E[nt]=Xt(E[nt]);for(nt=0;nt<24;nt++)R[nt]=Xt(R[nt]);this._monthsRegex=new RegExp("^("+R.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+E.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+x.join("|")+")","i")}function Qt(h){return U(h)?366:365}j("Y",0,0,function(){var h=this.year();return h<=9999?Q(h,4):"+"+h}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),ut("year","y"),Y("year",1),st("Y",gt),st("YY",V,ce),st("YYYY",In,Jn),st("YYYYY",Nn,Bn),st("YYYYYY",Nn,Bn),Gt(["YYYYY","YYYYYY"],Vt),Gt("YYYY",function(h,y){y[Vt]=h.length===2?i.parseTwoDigitYear(h):F(h)}),Gt("YY",function(h,y){y[Vt]=i.parseTwoDigitYear(h)}),Gt("Y",function(h,y){y[Vt]=parseInt(h,10)}),i.parseTwoDigitYear=function(h){return F(h)+(68<F(h)?1900:2e3)};var ll=I("FullYear",!0);function ii(h,y,x,E,R,nt,yt){var Ct;return h<100&&0<=h?(Ct=new Date(h+400,y,x,E,R,nt,yt),isFinite(Ct.getFullYear())&&Ct.setFullYear(h)):Ct=new Date(h,y,x,E,R,nt,yt),Ct}function Ur(h){var y;return h<100&&0<=h?((y=Array.prototype.slice.call(arguments))[0]=h+400,y=new Date(Date.UTC.apply(null,y)),isFinite(y.getUTCFullYear())&&y.setUTCFullYear(h)):y=new Date(Date.UTC.apply(null,arguments)),y}function De(h,y,x){return x=7+y-x,x-(7+Ur(h,0,x).getUTCDay()-y)%7-1}function ae(h,yt,Ct,E,R){var nt,yt=1+7*(yt-1)+(7+Ct-E)%7+De(h,E,R),Ct=yt<=0?Qt(nt=h-1)+yt:yt>Qt(h)?(nt=h+1,yt-Qt(h)):(nt=h,yt);return{year:nt,dayOfYear:Ct}}function Be(h,y,x){var E,R,nt=De(h.year(),y,x),nt=Math.floor((h.dayOfYear()-nt-1)/7)+1;return nt<1?E=nt+Oe(R=h.year()-1,y,x):nt>Oe(h.year(),y,x)?(E=nt-Oe(h.year(),y,x),R=h.year()+1):(R=h.year(),E=nt),{week:E,year:R}}function Oe(h,R,x){var E=De(h,R,x),R=De(h+1,R,x);return(Qt(h)-E+R)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),ut("week","w"),ut("isoWeek","W"),Y("week",5),Y("isoWeek",5),st("w",V),st("ww",V,ce),st("W",V),st("WW",V,ce),Ee(["w","ww","W","WW"],function(h,y,x,E){y[E.substr(0,1)]=F(h)});function Fe(h,y){return h.slice(y,7).concat(h.slice(0,y))}j("d",0,"do","day"),j("dd",0,0,function(h){return this.localeData().weekdaysMin(this,h)}),j("ddd",0,0,function(h){return this.localeData().weekdaysShort(this,h)}),j("dddd",0,0,function(h){return this.localeData().weekdays(this,h)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),ut("day","d"),ut("weekday","e"),ut("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),st("d",V),st("e",V),st("E",V),st("dd",function(h,y){return y.weekdaysMinRegex(h)}),st("ddd",function(h,y){return y.weekdaysShortRegex(h)}),st("dddd",function(h,y){return y.weekdaysRegex(h)}),Ee(["dd","ddd","dddd"],function(h,y,x,E){E=x._locale.weekdaysParse(h,E,x._strict),E!=null?y.d=E:_(x).invalidWeekday=h}),Ee(["d","e","E"],function(h,y,x,E){y[E]=F(h)});var Pe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tr=pt,zt=pt,Z=pt;function St(){function h(It,ue){return ue.length-It.length}for(var y,x,E,R=[],nt=[],yt=[],Ct=[],Pt=0;Pt<7;Pt++)E=g([2e3,1]).day(Pt),y=Xt(this.weekdaysMin(E,"")),x=Xt(this.weekdaysShort(E,"")),E=Xt(this.weekdays(E,"")),R.push(y),nt.push(x),yt.push(E),Ct.push(y),Ct.push(x),Ct.push(E);R.sort(h),nt.sort(h),yt.sort(h),Ct.sort(h),this._weekdaysRegex=new RegExp("^("+Ct.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+yt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+nt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+R.join("|")+")","i")}function Nt(){return this.hours()%12||12}function fe(h,y){j(h,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),y)})}function Me(h,y){return y._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Nt),j("k",["kk",2],0,function(){return this.hours()||24}),j("hmm",0,0,function(){return""+Nt.apply(this)+Q(this.minutes(),2)}),j("hmmss",0,0,function(){return""+Nt.apply(this)+Q(this.minutes(),2)+Q(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+Q(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+Q(this.minutes(),2)+Q(this.seconds(),2)}),fe("a",!0),fe("A",!1),ut("hour","h"),Y("hour",13),st("a",Me),st("A",Me),st("H",V),st("h",V),st("k",V),st("HH",V,ce),st("hh",V,ce),st("kk",V,ce),st("hmm",Yt),st("hmmss",et),st("Hmm",Yt),st("Hmmss",et),Gt(["H","HH"],ft),Gt(["k","kk"],function(h,y,x){h=F(h),y[ft]=h===24?0:h}),Gt(["a","A"],function(h,y,x){x._isPm=x._locale.isPM(h),x._meridiem=h}),Gt(["h","hh"],function(h,y,x){y[ft]=F(h),_(x).bigHour=!0}),Gt("hmm",function(h,y,x){var E=h.length-2;y[ft]=F(h.substr(0,E)),y[Lt]=F(h.substr(E)),_(x).bigHour=!0}),Gt("hmmss",function(h,y,x){var E=h.length-4,R=h.length-2;y[ft]=F(h.substr(0,E)),y[Lt]=F(h.substr(E,2)),y[_t]=F(h.substr(R)),_(x).bigHour=!0}),Gt("Hmm",function(h,y,x){var E=h.length-2;y[ft]=F(h.substr(0,E)),y[Lt]=F(h.substr(E))}),Gt("Hmmss",function(h,y,x){var E=h.length-4,R=h.length-2;y[ft]=F(h.substr(0,E)),y[Lt]=F(h.substr(E,2)),y[_t]=F(h.substr(R))}),pt=I("Hours",!0);var Le,We={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ee,monthsShort:de,week:{dow:0,doy:6},weekdays:Pe,weekdaysMin:Ge,weekdaysShort:Ie,meridiemParse:/[ap]\.?m?\.?/i},xe={},Ne={};function Ln(h){return h&&h.toLowerCase().replace("_","-")}function Dn(h){for(var y,x,E,R,nt=0;nt<h.length;){for(y=(R=Ln(h[nt]).split("-")).length,x=(x=Ln(h[nt+1]))?x.split("-"):null;0<y;){if(E=Ir(R.slice(0,y).join("-")))return E;if(x&&x.length>=y&&function(yt,Ct){for(var Pt=Math.min(yt.length,Ct.length),It=0;It<Pt;It+=1)if(yt[It]!==Ct[It])return It;return Pt}(R,x)>=y-1)break;y--}nt++}return Le}function Ir(h){var y;if(xe[h]===void 0&&t&&t.exports&&h.match("^[^/\\\\]*$")!=null)try{y=Le._abbr,eb("./locale/"+h),qt(y)}catch{xe[h]=null}return xe[h]}function qt(h,y){return h&&((y=l(y)?oe(h):te(h,y))?Le=y:typeof console<"u"&&console.warn&&console.warn("Locale "+h+" not found. Did you forget to load it?")),Le._abbr}function te(h,y){if(y===null)return delete xe[h],null;var x,E=We;if(y.abbr=h,xe[h]!=null)M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),E=xe[h]._config;else if(y.parentLocale!=null)if(xe[y.parentLocale]!=null)E=xe[y.parentLocale]._config;else{if((x=Ir(y.parentLocale))==null)return Ne[y.parentLocale]||(Ne[y.parentLocale]=[]),Ne[y.parentLocale].push({name:h,config:y}),null;E=x._config}return xe[h]=new D(v(E,y)),Ne[h]&&Ne[h].forEach(function(R){te(R.name,R.config)}),qt(h),xe[h]}function oe(h){var y;if(!(h=h&&h._locale&&h._locale._abbr?h._locale._abbr:h))return Le;if(!n(h)){if(y=Ir(h))return y;h=[h]}return Dn(h)}function Rt(h){var y=h._a;return y&&_(h).overflow===-2&&(y=y[Ft]<0||11<y[Ft]?Ft:y[xt]<1||y[xt]>dt(y[Vt],y[Ft])?xt:y[ft]<0||24<y[ft]||y[ft]===24&&(y[Lt]!==0||y[_t]!==0||y[Ut]!==0)?ft:y[Lt]<0||59<y[Lt]?Lt:y[_t]<0||59<y[_t]?_t:y[Ut]<0||999<y[Ut]?Ut:-1,_(h)._overflowDayOfYear&&(y<Vt||xt<y)&&(y=xt),_(h)._overflowWeeks&&y===-1&&(y=at),_(h)._overflowWeekday&&y===-1&&(y=ie),_(h).overflow=y),h}var Ye=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,G=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xn=/Z|[+-]\d\d(?::?\d\d)?/,tt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_r=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],el=/^\/?Date\((-?\d+)/i,Iu=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,rl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function il(h){var y,x,E,R,nt,yt,Pt=h._i,Ct=Ye.exec(Pt)||G.exec(Pt),Pt=tt.length,It=_r.length;if(Ct){for(_(h).iso=!0,y=0,x=Pt;y<x;y++)if(tt[y][1].exec(Ct[1])){R=tt[y][0],E=tt[y][2]!==!1;break}if(R==null)h._isValid=!1;else{if(Ct[3]){for(y=0,x=It;y<x;y++)if(_r[y][1].exec(Ct[3])){nt=(Ct[2]||" ")+_r[y][0];break}if(nt==null)return void(h._isValid=!1)}if(E||nt==null){if(Ct[4]){if(!Xn.exec(Ct[4]))return void(h._isValid=!1);yt="Z"}h._f=R+(nt||"")+(yt||""),Ma(h)}else h._isValid=!1}}else h._isValid=!1}function er(h,y,x,E,R,nt){return h=[function(yt){yt=parseInt(yt,10);{if(yt<=49)return 2e3+yt;if(yt<=999)return 1900+yt}return yt}(h),de.indexOf(y),parseInt(x,10),parseInt(E,10),parseInt(R,10)],nt&&h.push(parseInt(nt,10)),h}function Li(h){var y,x,E,R,nt=Iu.exec(h._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));nt?(y=er(nt[4],nt[3],nt[2],nt[5],nt[6],nt[7]),x=nt[1],E=y,R=h,x&&Ie.indexOf(x)!==new Date(E[0],E[1],E[2]).getDay()?(_(R).weekdayMismatch=!0,R._isValid=!1):(h._a=y,h._tzm=(x=nt[8],E=nt[9],R=nt[10],x?rl[x]:E?0:60*(((x=parseInt(R,10))-(E=x%100))/100)+E),h._d=Ur.apply(null,h._a),h._d.setUTCMinutes(h._d.getUTCMinutes()-h._tzm),_(h).rfc2822=!0)):h._isValid=!1}function Di(h,y,x){return h??y??x}function Kn(h){var y,x,E,R,nt,yt,Ct,Pt,It,ue,re,He=[];if(!h._d){for(E=h,R=new Date(i.now()),x=E._useUTC?[R.getUTCFullYear(),R.getUTCMonth(),R.getUTCDate()]:[R.getFullYear(),R.getMonth(),R.getDate()],h._w&&h._a[xt]==null&&h._a[Ft]==null&&((R=(E=h)._w).GG!=null||R.W!=null||R.E!=null?(Pt=1,It=4,nt=Di(R.GG,E._a[Vt],Be(Se(),1,4).year),yt=Di(R.W,1),((Ct=Di(R.E,1))<1||7<Ct)&&(ue=!0)):(Pt=E._locale._week.dow,It=E._locale._week.doy,re=Be(Se(),Pt,It),nt=Di(R.gg,E._a[Vt],re.year),yt=Di(R.w,re.week),R.d!=null?((Ct=R.d)<0||6<Ct)&&(ue=!0):R.e!=null?(Ct=R.e+Pt,(R.e<0||6<R.e)&&(ue=!0)):Ct=Pt),yt<1||yt>Oe(nt,Pt,It)?_(E)._overflowWeeks=!0:ue!=null?_(E)._overflowWeekday=!0:(re=ae(nt,yt,Ct,Pt,It),E._a[Vt]=re.year,E._dayOfYear=re.dayOfYear)),h._dayOfYear!=null&&(R=Di(h._a[Vt],x[Vt]),(h._dayOfYear>Qt(R)||h._dayOfYear===0)&&(_(h)._overflowDayOfYear=!0),ue=Ur(R,0,h._dayOfYear),h._a[Ft]=ue.getUTCMonth(),h._a[xt]=ue.getUTCDate()),y=0;y<3&&h._a[y]==null;++y)h._a[y]=He[y]=x[y];for(;y<7;y++)h._a[y]=He[y]=h._a[y]==null?y===2?1:0:h._a[y];h._a[ft]===24&&h._a[Lt]===0&&h._a[_t]===0&&h._a[Ut]===0&&(h._nextDay=!0,h._a[ft]=0),h._d=(h._useUTC?Ur:ii).apply(null,He),nt=h._useUTC?h._d.getUTCDay():h._d.getDay(),h._tzm!=null&&h._d.setUTCMinutes(h._d.getUTCMinutes()-h._tzm),h._nextDay&&(h._a[ft]=24),h._w&&h._w.d!==void 0&&h._w.d!==nt&&(_(h).weekdayMismatch=!0)}}function Ma(h){if(h._f===i.ISO_8601)il(h);else if(h._f===i.RFC_2822)Li(h);else{h._a=[],_(h).empty=!0;for(var y,x,E,R,nt,yt=""+h._i,Ct=yt.length,Pt=0,It=rt(h._f,h._locale).match(b)||[],ue=It.length,re=0;re<ue;re++)x=It[re],(y=(yt.match(le(x,h))||[])[0])&&(0<(E=yt.substr(0,yt.indexOf(y))).length&&_(h).unusedInput.push(E),yt=yt.slice(yt.indexOf(y)+y.length),Pt+=y.length),vt[x]?(y?_(h).empty=!1:_(h).unusedTokens.push(x),E=x,nt=h,(R=y)!=null&&a(Kt,E)&&Kt[E](R,nt._a,nt,E)):h._strict&&!y&&_(h).unusedTokens.push(x);_(h).charsLeftOver=Ct-Pt,0<yt.length&&_(h).unusedInput.push(yt),h._a[ft]<=12&&_(h).bigHour===!0&&0<h._a[ft]&&(_(h).bigHour=void 0),_(h).parsedDateParts=h._a.slice(0),_(h).meridiem=h._meridiem,h._a[ft]=function(He,rr,ai){return ai==null?rr:He.meridiemHour!=null?He.meridiemHour(rr,ai):He.isPM!=null?((He=He.isPM(ai))&&rr<12&&(rr+=12),rr=He||rr!==12?rr:0):rr}(h._locale,h._a[ft],h._meridiem),(Ct=_(h).era)!==null&&(h._a[Vt]=h._locale.erasConvertYear(Ct,h._a[Vt])),Kn(h),Rt(h)}}function nl(h){var y,x,E,R=h._i,nt=h._f;return h._locale=h._locale||oe(h._l),R===null||nt===void 0&&R===""?w({nullInput:!0}):(typeof R=="string"&&(h._i=R=h._locale.preparse(R)),q(R)?new W(Rt(R)):(d(R)?h._d=R:n(nt)?function(yt){var Ct,Pt,It,ue,re,He,rr=!1,ai=yt._f.length;if(ai===0)return _(yt).invalidFormat=!0,yt._d=new Date(NaN);for(ue=0;ue<ai;ue++)re=0,He=!1,Ct=P({},yt),yt._useUTC!=null&&(Ct._useUTC=yt._useUTC),Ct._f=yt._f[ue],Ma(Ct),k(Ct)&&(He=!0),re=(re+=_(Ct).charsLeftOver)+10*_(Ct).unusedTokens.length,_(Ct).score=re,rr?re<It&&(It=re,Pt=Ct):(It==null||re<It||He)&&(It=re,Pt=Ct,He&&(rr=!0));p(yt,Pt||Ct)}(h):nt?Ma(h):l(nt=(R=h)._i)?R._d=new Date(i.now()):d(nt)?R._d=new Date(nt.valueOf()):typeof nt=="string"?(x=R,(y=el.exec(x._i))!==null?x._d=new Date(+y[1]):(il(x),x._isValid===!1&&(delete x._isValid,Li(x),x._isValid===!1&&(delete x._isValid,x._strict?x._isValid=!1:i.createFromInputFallback(x))))):n(nt)?(R._a=f(nt.slice(0),function(yt){return parseInt(yt,10)}),Kn(R)):s(nt)?(y=R)._d||(E=(x=K(y._i)).day===void 0?x.date:x.day,y._a=f([x.year,x.month,E,x.hour,x.minute,x.second,x.millisecond],function(yt){return yt&&parseInt(yt,10)}),Kn(y)):u(nt)?R._d=new Date(nt):i.createFromInputFallback(R),k(h)||(h._d=null),h))}function mr(h,y,x,E,R){var nt={};return y!==!0&&y!==!1||(E=y,y=void 0),x!==!0&&x!==!1||(E=x,x=void 0),(s(h)&&o(h)||n(h)&&h.length===0)&&(h=void 0),nt._isAMomentObject=!0,nt._useUTC=nt._isUTC=R,nt._l=x,nt._i=h,nt._f=y,nt._strict=E,(R=new W(Rt(nl(R=nt))))._nextDay&&(R.add(1,"d"),R._nextDay=void 0),R}function Se(h,y,x,E){return mr(h,y,x,E,!1)}i.createFromInputFallback=H("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(h){h._d=new Date(h._i+(h._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){},Yt=H("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var h=Se.apply(null,arguments);return this.isValid()&&h.isValid()?h<this?this:h:w()}),et=H("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var h=Se.apply(null,arguments);return this.isValid()&&h.isValid()?this<h?this:h:w()});function Cr(h,y){var x,E;if(!(y=y.length===1&&n(y[0])?y[0]:y).length)return Se();for(x=y[0],E=1;E<y.length;++E)y[E].isValid()&&!y[E][h](x)||(x=y[E]);return x}var qi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(y){var y=K(y),x=y.year||0,E=y.quarter||0,R=y.month||0,nt=y.week||y.isoWeek||0,yt=y.day||0,Ct=y.hour||0,Pt=y.minute||0,It=y.second||0,ue=y.millisecond||0;this._isValid=function(re){var He,rr,ai=!1,Uu=qi.length;for(He in re)if(a(re,He)&&(Ht.call(qi,He)===-1||re[He]!=null&&isNaN(re[He])))return!1;for(rr=0;rr<Uu;++rr)if(re[qi[rr]]){if(ai)return!1;parseFloat(re[qi[rr]])!==F(re[qi[rr]])&&(ai=!0)}return!0}(y),this._milliseconds=+ue+1e3*It+6e4*Pt+1e3*Ct*60*60,this._days=+yt+7*nt,this._months=+R+3*E+12*x,this._data={},this._locale=oe(),this._bubble()}function ji(h){return h instanceof ni}function zr(h){return h<0?-1*Math.round(-1*h):Math.round(h)}function Na(h,y){j(h,0,0,function(){var x=this.utcOffset(),E="+";return x<0&&(x=-x,E="-"),E+Q(~~(x/60),2)+y+Q(~~x%60,2)})}Na("Z",":"),Na("ZZ",""),st("Z",wt),st("ZZ",wt),Gt(["Z","ZZ"],function(h,y,x){x._useUTC=!0,x._tzm=Zn(wt,h)});var Bs=/([\+\-]|\d\d)/gi;function Zn(h,x){var x=(x||"").match(h);return x===null?null:(x=60*(h=((x[x.length-1]||[])+"").match(Bs)||["-",0,0])[1]+F(h[2]))===0?0:h[0]==="+"?x:-x}function Wr(h,y){var x;return y._isUTC?(y=y.clone(),x=(q(h)||d(h)?h:Se(h)).valueOf()-y.valueOf(),y._d.setTime(y._d.valueOf()+x),i.updateOffset(y,!1),y):Se(h).local()}function Ou(h){return-Math.round(h._d.getTimezoneOffset())}function gd(){return!!this.isValid()&&this._isUTC&&this._offset===0}i.updateOffset=function(){};var I4=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,O4=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function si(h,y){var x,E=h,R=null;return ji(h)?E={ms:h._milliseconds,d:h._days,M:h._months}:u(h)||!isNaN(+h)?(E={},y?E[y]=+h:E.milliseconds=+h):(R=I4.exec(h))?(x=R[1]==="-"?-1:1,E={y:0,d:F(R[xt])*x,h:F(R[ft])*x,m:F(R[Lt])*x,s:F(R[_t])*x,ms:F(zr(1e3*R[Ut]))*x}):(R=O4.exec(h))?(x=R[1]==="-"?-1:1,E={y:Qn(R[2],x),M:Qn(R[3],x),w:Qn(R[4],x),d:Qn(R[5],x),h:Qn(R[6],x),m:Qn(R[7],x),s:Qn(R[8],x)}):E==null?E={}:typeof E=="object"&&("from"in E||"to"in E)&&(y=function(nt,yt){var Ct;return!nt.isValid()||!yt.isValid()?{milliseconds:0,months:0}:(yt=Wr(yt,nt),nt.isBefore(yt)?Ct=yd(nt,yt):((Ct=yd(yt,nt)).milliseconds=-Ct.milliseconds,Ct.months=-Ct.months),Ct)}(Se(E.from),Se(E.to)),(E={}).ms=y.milliseconds,E.M=y.months),R=new ni(E),ji(h)&&a(h,"_locale")&&(R._locale=h._locale),ji(h)&&a(h,"_isValid")&&(R._isValid=h._isValid),R}function Qn(h,y){return h=h&&parseFloat(h.replace(",",".")),(isNaN(h)?0:h)*y}function yd(h,y){var x={};return x.months=y.month()-h.month()+12*(y.year()-h.year()),h.clone().add(x.months,"M").isAfter(y)&&--x.months,x.milliseconds=+y-+h.clone().add(x.months,"M"),x}function md(h,y){return function(x,E){var R;return E===null||isNaN(+E)||(M(y,"moment()."+y+"(period, number) is deprecated. Please use moment()."+y+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),R=x,x=E,E=R),bd(this,si(x,E),h),this}}function bd(h,yt,x,E){var R=yt._milliseconds,nt=zr(yt._days),yt=zr(yt._months);h.isValid()&&(E=E==null||E,yt&&$t(h,L(h,"Month")+yt*x),nt&&J(h,"Date",L(h,"Date")+nt*x),R&&h._d.setTime(h._d.valueOf()+R*x),E&&i.updateOffset(h,nt||yt))}si.fn=ni.prototype,si.invalid=function(){return si(NaN)},ee=md(1,"add"),Pe=md(-1,"subtract");function _d(h){return typeof h=="string"||h instanceof String}function R4(h){return q(h)||d(h)||_d(h)||u(h)||function(y){var x=n(y),E=!1;return x&&(E=y.filter(function(R){return!u(R)&&_d(y)}).length===0),x&&E}(h)||function(y){var x,E,R=s(y)&&!o(y),nt=!1,yt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Ct=yt.length;for(x=0;x<Ct;x+=1)E=yt[x],nt=nt||a(y,E);return R&&nt}(h)||h==null}function sl(h,R){if(h.date()<R.date())return-sl(R,h);var x=12*(R.year()-h.year())+(R.month()-h.month()),E=h.clone().add(x,"months"),R=R-E<0?(R-E)/(E-h.clone().add(x-1,"months")):(R-E)/(h.clone().add(1+x,"months")-E);return-(x+R)||0}function xd(h){return h===void 0?this._locale._abbr:((h=oe(h))!=null&&(this._locale=h),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Ge=H("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(h){return h===void 0?this.localeData():this.locale(h)});function vd(){return this._locale}var kd=126227808e5;function Is(h,y){return(h%y+y)%y}function wd(h,y,x){return h<100&&0<=h?new Date(h+400,y,x)-kd:new Date(h,y,x).valueOf()}function Td(h,y,x){return h<100&&0<=h?Date.UTC(h+400,y,x)-kd:Date.UTC(h,y,x)}function Ru(h,y){return y.erasAbbrRegex(h)}function Fu(){for(var h=[],y=[],x=[],E=[],R=this.eras(),nt=0,yt=R.length;nt<yt;++nt)y.push(Xt(R[nt].name)),h.push(Xt(R[nt].abbr)),x.push(Xt(R[nt].narrow)),E.push(Xt(R[nt].name)),E.push(Xt(R[nt].abbr)),E.push(Xt(R[nt].narrow));this._erasRegex=new RegExp("^("+E.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+y.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+h.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+x.join("|")+")","i")}function al(h,y){j(0,[h,h.length],0,y)}function Ed(h,y,x,E,R){var nt;return h==null?Be(this,E,R).year:(nt=Oe(h,E,R),function(yt,Ct,Pt,It,ue){return yt=ae(yt,Ct,Pt,It,ue),Ct=Ur(yt.year,0,yt.dayOfYear),this.year(Ct.getUTCFullYear()),this.month(Ct.getUTCMonth()),this.date(Ct.getUTCDate()),this}.call(this,h,y=nt<y?nt:y,x,E,R))}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),st("N",Ru),st("NN",Ru),st("NNN",Ru),st("NNNN",function(h,y){return y.erasNameRegex(h)}),st("NNNNN",function(h,y){return y.erasNarrowRegex(h)}),Gt(["N","NN","NNN","NNNN","NNNNN"],function(h,y,x,E){E=x._locale.erasParse(h,E,x._strict),E?_(x).era=E:_(x).invalidEra=h}),st("y",Tt),st("yy",Tt),st("yyy",Tt),st("yyyy",Tt),st("yo",function(h,y){return y._eraYearOrdinalRegex||Tt}),Gt(["y","yy","yyy","yyyy"],Vt),Gt(["yo"],function(h,y,x,E){var R;x._locale._eraYearOrdinalRegex&&(R=h.match(x._locale._eraYearOrdinalRegex)),x._locale.eraYearOrdinalParse?y[Vt]=x._locale.eraYearOrdinalParse(h,R):y[Vt]=parseInt(h,10)}),j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),al("gggg","weekYear"),al("ggggg","weekYear"),al("GGGG","isoWeekYear"),al("GGGGG","isoWeekYear"),ut("weekYear","gg"),ut("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),st("G",gt),st("g",gt),st("GG",V,ce),st("gg",V,ce),st("GGGG",In,Jn),st("gggg",In,Jn),st("GGGGG",Nn,Bn),st("ggggg",Nn,Bn),Ee(["gggg","ggggg","GGGG","GGGGG"],function(h,y,x,E){y[E.substr(0,2)]=F(h)}),Ee(["gg","GG"],function(h,y,x,E){y[E]=i.parseTwoDigitYear(h)}),j("Q",0,"Qo","quarter"),ut("quarter","Q"),Y("quarter",7),st("Q",T),Gt("Q",function(h,y){y[Ft]=3*(F(h)-1)}),j("D",["DD",2],"Do","date"),ut("date","D"),Y("date",9),st("D",V),st("DD",V,ce),st("Do",function(h,y){return h?y._dayOfMonthOrdinalParse||y._ordinalParse:y._dayOfMonthOrdinalParseLenient}),Gt(["D","DD"],xt),Gt("Do",function(h,y){y[xt]=F(h.match(V)[0])}),In=I("Date",!0),j("DDD",["DDDD",3],"DDDo","dayOfYear"),ut("dayOfYear","DDD"),Y("dayOfYear",4),st("DDD",Mt),st("DDDD",ht),Gt(["DDD","DDDD"],function(h,y,x){x._dayOfYear=F(h)}),j("m",["mm",2],0,"minute"),ut("minute","m"),Y("minute",14),st("m",V),st("mm",V,ce),Gt(["m","mm"],Lt);var Mn,Jn=I("Minutes",!1),Nn=(j("s",["ss",2],0,"second"),ut("second","s"),Y("second",15),st("s",V),st("ss",V,ce),Gt(["s","ss"],_t),I("Seconds",!1));for(j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ut("millisecond","ms"),Y("millisecond",16),st("S",Mt,T),st("SS",Mt,ce),st("SSS",Mt,ht),Mn="SSSS";Mn.length<=9;Mn+="S")st(Mn,Tt);function F4(h,y){y[Ut]=F(1e3*("0."+h))}for(Mn="S";Mn.length<=9;Mn+="S")Gt(Mn,F4);Bn=I("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName"),T=W.prototype;function Cd(h){return h}T.add=ee,T.calendar=function(x,R){arguments.length===1&&(arguments[0]?R4(arguments[0])?(x=arguments[0],R=void 0):function(nt){for(var yt=s(nt)&&!o(nt),Ct=!1,Pt=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],It=0;It<Pt.length;It+=1)Ct=Ct||a(nt,Pt[It]);return yt&&Ct}(arguments[0])&&(R=arguments[0],x=void 0):R=x=void 0);var x=x||Se(),E=Wr(x,this).startOf("day"),E=i.calendarFormat(this,E)||"sameElse",R=R&&(C(R[E])?R[E].call(this,x):R[E]);return this.format(R||this.localeData().calendar(E,this,Se(x)))},T.clone=function(){return new W(this)},T.diff=function(h,y,x){var E,R,nt;if(!this.isValid())return NaN;if(!(E=Wr(h,this)).isValid())return NaN;switch(R=6e4*(E.utcOffset()-this.utcOffset()),y=bt(y)){case"year":nt=sl(this,E)/12;break;case"month":nt=sl(this,E);break;case"quarter":nt=sl(this,E)/3;break;case"second":nt=(this-E)/1e3;break;case"minute":nt=(this-E)/6e4;break;case"hour":nt=(this-E)/36e5;break;case"day":nt=(this-E-R)/864e5;break;case"week":nt=(this-E-R)/6048e5;break;default:nt=this-E}return x?nt:X(nt)},T.endOf=function(h){var y,x;if((h=bt(h))===void 0||h==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?Td:wd,h){case"year":y=x(this.year()+1,0,1)-1;break;case"quarter":y=x(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":y=x(this.year(),this.month()+1,1)-1;break;case"week":y=x(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":y=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":y=x(this.year(),this.month(),this.date()+1)-1;break;case"hour":y=this._d.valueOf(),y+=36e5-Is(y+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":y=this._d.valueOf(),y+=6e4-Is(y,6e4)-1;break;case"second":y=this._d.valueOf(),y+=1e3-Is(y,1e3)-1;break}return this._d.setTime(y),i.updateOffset(this,!0),this},T.format=function(h){return h=h||(this.isUtc()?i.defaultFormatUtc:i.defaultFormat),h=ot(this,h),this.localeData().postformat(h)},T.from=function(h,y){return this.isValid()&&(q(h)&&h.isValid()||Se(h).isValid())?si({to:this,from:h}).locale(this.locale()).humanize(!y):this.localeData().invalidDate()},T.fromNow=function(h){return this.from(Se(),h)},T.to=function(h,y){return this.isValid()&&(q(h)&&h.isValid()||Se(h).isValid())?si({from:this,to:h}).locale(this.locale()).humanize(!y):this.localeData().invalidDate()},T.toNow=function(h){return this.to(Se(),h)},T.get=function(h){return C(this[h=bt(h)])?this[h]():this},T.invalidAt=function(){return _(this).overflow},T.isAfter=function(h,y){return h=q(h)?h:Se(h),!(!this.isValid()||!h.isValid())&&((y=bt(y)||"millisecond")==="millisecond"?this.valueOf()>h.valueOf():h.valueOf()<this.clone().startOf(y).valueOf())},T.isBefore=function(h,y){return h=q(h)?h:Se(h),!(!this.isValid()||!h.isValid())&&((y=bt(y)||"millisecond")==="millisecond"?this.valueOf()<h.valueOf():this.clone().endOf(y).valueOf()<h.valueOf())},T.isBetween=function(h,y,x,E){return h=q(h)?h:Se(h),y=q(y)?y:Se(y),!!(this.isValid()&&h.isValid()&&y.isValid())&&((E=E||"()")[0]==="("?this.isAfter(h,x):!this.isBefore(h,x))&&(E[1]===")"?this.isBefore(y,x):!this.isAfter(y,x))},T.isSame=function(x,y){var x=q(x)?x:Se(x);return!(!this.isValid()||!x.isValid())&&((y=bt(y)||"millisecond")==="millisecond"?this.valueOf()===x.valueOf():(x=x.valueOf(),this.clone().startOf(y).valueOf()<=x&&x<=this.clone().endOf(y).valueOf()))},T.isSameOrAfter=function(h,y){return this.isSame(h,y)||this.isAfter(h,y)},T.isSameOrBefore=function(h,y){return this.isSame(h,y)||this.isBefore(h,y)},T.isValid=function(){return k(this)},T.lang=Ge,T.locale=xd,T.localeData=vd,T.max=et,T.min=Yt,T.parsingFlags=function(){return p({},_(this))},T.set=function(h,y){if(typeof h=="object")for(var x=function(nt){var yt,Ct=[];for(yt in nt)a(nt,yt)&&Ct.push({unit:yt,priority:Ot[yt]});return Ct.sort(function(Pt,It){return Pt.priority-It.priority}),Ct}(h=K(h)),E=x.length,R=0;R<E;R++)this[x[R].unit](h[x[R].unit]);else if(C(this[h=bt(h)]))return this[h](y);return this},T.startOf=function(h){var y,x;if((h=bt(h))===void 0||h==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?Td:wd,h){case"year":y=x(this.year(),0,1);break;case"quarter":y=x(this.year(),this.month()-this.month()%3,1);break;case"month":y=x(this.year(),this.month(),1);break;case"week":y=x(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":y=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":y=x(this.year(),this.month(),this.date());break;case"hour":y=this._d.valueOf(),y-=Is(y+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":y=this._d.valueOf(),y-=Is(y,6e4);break;case"second":y=this._d.valueOf(),y-=Is(y,1e3);break}return this._d.setTime(y),i.updateOffset(this,!0),this},T.subtract=Pe,T.toArray=function(){var h=this;return[h.year(),h.month(),h.date(),h.hour(),h.minute(),h.second(),h.millisecond()]},T.toObject=function(){var h=this;return{years:h.year(),months:h.month(),date:h.date(),hours:h.hours(),minutes:h.minutes(),seconds:h.seconds(),milliseconds:h.milliseconds()}},T.toDate=function(){return new Date(this.valueOf())},T.toISOString=function(h){if(!this.isValid())return null;var y=(h=h!==!0)?this.clone().utc():this;return y.year()<0||9999<y.year()?ot(y,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ot(y,"Z")):ot(y,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},T.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var h,y="moment",x="";return this.isLocal()||(y=this.utcOffset()===0?"moment.utc":"moment.parseZone",x="Z"),y="["+y+'("]',h=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(y+h+"-MM-DD[T]HH:mm:ss.SSS"+(x+'[")]'))},typeof Symbol<"u"&&Symbol.for!=null&&(T[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},T.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},T.eraName=function(){for(var h,y=this.localeData().eras(),x=0,E=y.length;x<E;++x)if(h=this.clone().startOf("day").valueOf(),y[x].since<=h&&h<=y[x].until||y[x].until<=h&&h<=y[x].since)return y[x].name;return""},T.eraNarrow=function(){for(var h,y=this.localeData().eras(),x=0,E=y.length;x<E;++x)if(h=this.clone().startOf("day").valueOf(),y[x].since<=h&&h<=y[x].until||y[x].until<=h&&h<=y[x].since)return y[x].narrow;return""},T.eraAbbr=function(){for(var h,y=this.localeData().eras(),x=0,E=y.length;x<E;++x)if(h=this.clone().startOf("day").valueOf(),y[x].since<=h&&h<=y[x].until||y[x].until<=h&&h<=y[x].since)return y[x].abbr;return""},T.eraYear=function(){for(var h,y,x=this.localeData().eras(),E=0,R=x.length;E<R;++E)if(h=x[E].since<=x[E].until?1:-1,y=this.clone().startOf("day").valueOf(),x[E].since<=y&&y<=x[E].until||x[E].until<=y&&y<=x[E].since)return(this.year()-i(x[E].since).year())*h+x[E].offset;return this.year()},T.year=ll,T.isLeapYear=function(){return U(this.year())},T.weekYear=function(h){return Ed.call(this,h,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},T.isoWeekYear=function(h){return Ed.call(this,h,this.isoWeek(),this.isoWeekday(),1,4)},T.quarter=T.quarters=function(h){return h==null?Math.ceil((this.month()+1)/3):this.month(3*(h-1)+this.month()%3)},T.month=ne,T.daysInMonth=function(){return dt(this.year(),this.month())},T.week=T.weeks=function(h){var y=this.localeData().week(this);return h==null?y:this.add(7*(h-y),"d")},T.isoWeek=T.isoWeeks=function(h){var y=Be(this,1,4).week;return h==null?y:this.add(7*(h-y),"d")},T.weeksInYear=function(){var h=this.localeData()._week;return Oe(this.year(),h.dow,h.doy)},T.weeksInWeekYear=function(){var h=this.localeData()._week;return Oe(this.weekYear(),h.dow,h.doy)},T.isoWeeksInYear=function(){return Oe(this.year(),1,4)},T.isoWeeksInISOWeekYear=function(){return Oe(this.isoWeekYear(),1,4)},T.date=In,T.day=T.days=function(h){if(!this.isValid())return h!=null?this:NaN;var y,x,E=this._isUTC?this._d.getUTCDay():this._d.getDay();return h!=null?(y=h,x=this.localeData(),h=typeof y!="string"?y:isNaN(y)?typeof(y=x.weekdaysParse(y))=="number"?y:null:parseInt(y,10),this.add(h-E,"d")):E},T.weekday=function(h){if(!this.isValid())return h!=null?this:NaN;var y=(this.day()+7-this.localeData()._week.dow)%7;return h==null?y:this.add(h-y,"d")},T.isoWeekday=function(h){return this.isValid()?h!=null?(y=h,x=this.localeData(),x=typeof y=="string"?x.weekdaysParse(y)%7||7:isNaN(y)?null:y,this.day(this.day()%7?x:x-7)):this.day()||7:h!=null?this:NaN;var y,x},T.dayOfYear=function(h){var y=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return h==null?y:this.add(h-y,"d")},T.hour=T.hours=pt,T.minute=T.minutes=Jn,T.second=T.seconds=Nn,T.millisecond=T.milliseconds=Bn,T.utcOffset=function(h,y,x){var E,R=this._offset||0;if(!this.isValid())return h!=null?this:NaN;if(h==null)return this._isUTC?R:Ou(this);if(typeof h=="string"){if((h=Zn(wt,h))===null)return this}else Math.abs(h)<16&&!x&&(h*=60);return!this._isUTC&&y&&(E=Ou(this)),this._offset=h,this._isUTC=!0,E!=null&&this.add(E,"m"),R!==h&&(!y||this._changeInProgress?bd(this,si(h-R,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this},T.utc=function(h){return this.utcOffset(0,h)},T.local=function(h){return this._isUTC&&(this.utcOffset(0,h),this._isUTC=!1,h&&this.subtract(Ou(this),"m")),this},T.parseZone=function(){var h;return this._tzm!=null?this.utcOffset(this._tzm,!1,!0):typeof this._i=="string"&&((h=Zn(Et,this._i))!=null?this.utcOffset(h):this.utcOffset(0,!0)),this},T.hasAlignedHourOffset=function(h){return!!this.isValid()&&(h=h?Se(h).utcOffset():0,(this.utcOffset()-h)%60==0)},T.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},T.isLocal=function(){return!!this.isValid()&&!this._isUTC},T.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},T.isUtc=gd,T.isUTC=gd,T.zoneAbbr=function(){return this._isUTC?"UTC":""},T.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},T.dates=H("dates accessor is deprecated. Use date instead.",In),T.months=H("months accessor is deprecated. Use month instead",ne),T.years=H("years accessor is deprecated. Use year instead",ll),T.zone=H("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(h,y){return h!=null?(this.utcOffset(h=typeof h!="string"?-h:h,y),this):-this.utcOffset()}),T.isDSTShifted=H("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var h,y={};return P(y,this),(y=nl(y))._a?(h=(y._isUTC?g:Se)(y._a),this._isDSTShifted=this.isValid()&&0<function(x,E,R){for(var nt=Math.min(x.length,E.length),yt=Math.abs(x.length-E.length),Ct=0,Pt=0;Pt<nt;Pt++)(R&&x[Pt]!==E[Pt]||!R&&F(x[Pt])!==F(E[Pt]))&&Ct++;return Ct+yt}(y._a,h.toArray())):this._isDSTShifted=!1,this._isDSTShifted}),ce=D.prototype;function ol(h,y,x,nt){var R=oe(),nt=g().set(nt,y);return R[x](nt,h)}function Sd(h,y,x){if(u(h)&&(y=h,h=void 0),h=h||"",y!=null)return ol(h,y,x,"month");for(var E=[],R=0;R<12;R++)E[R]=ol(h,R,x,"month");return E}function Pu(h,y,x,E){y=(typeof h=="boolean"?u(y)&&(x=y,y=void 0):(y=h,h=!1,u(x=y)&&(x=y,y=void 0)),y||"");var R,nt=oe(),yt=h?nt._week.dow:0,Ct=[];if(x!=null)return ol(y,(x+yt)%7,E,"day");for(R=0;R<7;R++)Ct[R]=ol(y,(R+yt)%7,E,"day");return Ct}ce.calendar=function(h,y,x){return C(h=this._calendar[h]||this._calendar.sameElse)?h.call(y,x):h},ce.longDateFormat=function(h){var y=this._longDateFormat[h],x=this._longDateFormat[h.toUpperCase()];return y||!x?y:(this._longDateFormat[h]=x.match(b).map(function(E){return E==="MMMM"||E==="MM"||E==="DD"||E==="dddd"?E.slice(1):E}).join(""),this._longDateFormat[h])},ce.invalidDate=function(){return this._invalidDate},ce.ordinal=function(h){return this._ordinal.replace("%d",h)},ce.preparse=Cd,ce.postformat=Cd,ce.relativeTime=function(h,y,x,E){var R=this._relativeTime[x];return C(R)?R(h,y,x,E):R.replace(/%d/i,h)},ce.pastFuture=function(h,y){return C(h=this._relativeTime[0<h?"future":"past"])?h(y):h.replace(/%s/i,y)},ce.set=function(h){var y,x;for(x in h)a(h,x)&&(C(y=h[x])?this[x]=y:this["_"+x]=y);this._config=h,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ce.eras=function(h,y){for(var x,E=this._eras||oe("en")._eras,R=0,nt=E.length;R<nt;++R){switch(typeof E[R].since){case"string":x=i(E[R].since).startOf("day"),E[R].since=x.valueOf();break}switch(typeof E[R].until){case"undefined":E[R].until=1/0;break;case"string":x=i(E[R].until).startOf("day").valueOf(),E[R].until=x.valueOf();break}}return E},ce.erasParse=function(h,y,x){var E,R,nt,yt,Ct,Pt=this.eras();for(h=h.toUpperCase(),E=0,R=Pt.length;E<R;++E)if(nt=Pt[E].name.toUpperCase(),yt=Pt[E].abbr.toUpperCase(),Ct=Pt[E].narrow.toUpperCase(),x)switch(y){case"N":case"NN":case"NNN":if(yt===h)return Pt[E];break;case"NNNN":if(nt===h)return Pt[E];break;case"NNNNN":if(Ct===h)return Pt[E];break}else if(0<=[nt,yt,Ct].indexOf(h))return Pt[E]},ce.erasConvertYear=function(h,y){var x=h.since<=h.until?1:-1;return y===void 0?i(h.since).year():i(h.since).year()+(y-h.offset)*x},ce.erasAbbrRegex=function(h){return a(this,"_erasAbbrRegex")||Fu.call(this),h?this._erasAbbrRegex:this._erasRegex},ce.erasNameRegex=function(h){return a(this,"_erasNameRegex")||Fu.call(this),h?this._erasNameRegex:this._erasRegex},ce.erasNarrowRegex=function(h){return a(this,"_erasNarrowRegex")||Fu.call(this),h?this._erasNarrowRegex:this._erasRegex},ce.months=function(h,y){return h?(n(this._months)?this._months:this._months[(this._months.isFormat||me).test(y)?"format":"standalone"])[h.month()]:n(this._months)?this._months:this._months.standalone},ce.monthsShort=function(h,y){return h?(n(this._monthsShort)?this._monthsShort:this._monthsShort[me.test(y)?"format":"standalone"])[h.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ce.monthsParse=function(h,y,x){var E,R;if(this._monthsParseExact)return function(re,yt,Ct){var Pt,It,ue,re=re.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Pt=0;Pt<12;++Pt)ue=g([2e3,Pt]),this._shortMonthsParse[Pt]=this.monthsShort(ue,"").toLocaleLowerCase(),this._longMonthsParse[Pt]=this.months(ue,"").toLocaleLowerCase();return Ct?yt==="MMM"?(It=Ht.call(this._shortMonthsParse,re))!==-1?It:null:(It=Ht.call(this._longMonthsParse,re))!==-1?It:null:yt==="MMM"?(It=Ht.call(this._shortMonthsParse,re))!==-1||(It=Ht.call(this._longMonthsParse,re))!==-1?It:null:(It=Ht.call(this._longMonthsParse,re))!==-1||(It=Ht.call(this._shortMonthsParse,re))!==-1?It:null}.call(this,h,y,x);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),E=0;E<12;E++)if(R=g([2e3,E]),x&&!this._longMonthsParse[E]&&(this._longMonthsParse[E]=new RegExp("^"+this.months(R,"").replace(".","")+"$","i"),this._shortMonthsParse[E]=new RegExp("^"+this.monthsShort(R,"").replace(".","")+"$","i")),x||this._monthsParse[E]||(R="^"+this.months(R,"")+"|^"+this.monthsShort(R,""),this._monthsParse[E]=new RegExp(R.replace(".",""),"i")),x&&y==="MMMM"&&this._longMonthsParse[E].test(h)||x&&y==="MMM"&&this._shortMonthsParse[E].test(h)||!x&&this._monthsParse[E].test(h))return E},ce.monthsRegex=function(h){return this._monthsParseExact?(a(this,"_monthsRegex")||ge.call(this),h?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ke),this._monthsStrictRegex&&h?this._monthsStrictRegex:this._monthsRegex)},ce.monthsShortRegex=function(h){return this._monthsParseExact?(a(this,"_monthsRegex")||ge.call(this),h?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=be),this._monthsShortStrictRegex&&h?this._monthsShortStrictRegex:this._monthsShortRegex)},ce.week=function(h){return Be(h,this._week.dow,this._week.doy).week},ce.firstDayOfYear=function(){return this._week.doy},ce.firstDayOfWeek=function(){return this._week.dow},ce.weekdays=function(h,y){return y=n(this._weekdays)?this._weekdays:this._weekdays[h&&h!==!0&&this._weekdays.isFormat.test(y)?"format":"standalone"],h===!0?Fe(y,this._week.dow):h?y[h.day()]:y},ce.weekdaysMin=function(h){return h===!0?Fe(this._weekdaysMin,this._week.dow):h?this._weekdaysMin[h.day()]:this._weekdaysMin},ce.weekdaysShort=function(h){return h===!0?Fe(this._weekdaysShort,this._week.dow):h?this._weekdaysShort[h.day()]:this._weekdaysShort},ce.weekdaysParse=function(h,y,x){var E,R;if(this._weekdaysParseExact)return function(re,yt,Ct){var Pt,It,ue,re=re.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Pt=0;Pt<7;++Pt)ue=g([2e3,1]).day(Pt),this._minWeekdaysParse[Pt]=this.weekdaysMin(ue,"").toLocaleLowerCase(),this._shortWeekdaysParse[Pt]=this.weekdaysShort(ue,"").toLocaleLowerCase(),this._weekdaysParse[Pt]=this.weekdays(ue,"").toLocaleLowerCase();return Ct?yt==="dddd"?(It=Ht.call(this._weekdaysParse,re))!==-1?It:null:yt==="ddd"?(It=Ht.call(this._shortWeekdaysParse,re))!==-1?It:null:(It=Ht.call(this._minWeekdaysParse,re))!==-1?It:null:yt==="dddd"?(It=Ht.call(this._weekdaysParse,re))!==-1||(It=Ht.call(this._shortWeekdaysParse,re))!==-1||(It=Ht.call(this._minWeekdaysParse,re))!==-1?It:null:yt==="ddd"?(It=Ht.call(this._shortWeekdaysParse,re))!==-1||(It=Ht.call(this._weekdaysParse,re))!==-1||(It=Ht.call(this._minWeekdaysParse,re))!==-1?It:null:(It=Ht.call(this._minWeekdaysParse,re))!==-1||(It=Ht.call(this._weekdaysParse,re))!==-1||(It=Ht.call(this._shortWeekdaysParse,re))!==-1?It:null}.call(this,h,y,x);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),E=0;E<7;E++)if(R=g([2e3,1]).day(E),x&&!this._fullWeekdaysParse[E]&&(this._fullWeekdaysParse[E]=new RegExp("^"+this.weekdays(R,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[E]=new RegExp("^"+this.weekdaysShort(R,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[E]=new RegExp("^"+this.weekdaysMin(R,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[E]||(R="^"+this.weekdays(R,"")+"|^"+this.weekdaysShort(R,"")+"|^"+this.weekdaysMin(R,""),this._weekdaysParse[E]=new RegExp(R.replace(".",""),"i")),x&&y==="dddd"&&this._fullWeekdaysParse[E].test(h)||x&&y==="ddd"&&this._shortWeekdaysParse[E].test(h)||x&&y==="dd"&&this._minWeekdaysParse[E].test(h)||!x&&this._weekdaysParse[E].test(h))return E},ce.weekdaysRegex=function(h){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||St.call(this),h?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=tr),this._weekdaysStrictRegex&&h?this._weekdaysStrictRegex:this._weekdaysRegex)},ce.weekdaysShortRegex=function(h){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||St.call(this),h?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=zt),this._weekdaysShortStrictRegex&&h?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ce.weekdaysMinRegex=function(h){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||St.call(this),h?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Z),this._weekdaysMinStrictRegex&&h?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ce.isPM=function(h){return(h+"").toLowerCase().charAt(0)==="p"},ce.meridiem=function(h,y,x){return 11<h?x?"pm":"PM":x?"am":"AM"},qt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(h){var y=h%10;return h+(F(h%100/10)===1?"th":y==1?"st":y==2?"nd":y==3?"rd":"th")}}),i.lang=H("moment.lang is deprecated. Use moment.locale instead.",qt),i.langData=H("moment.langData is deprecated. Use moment.localeData instead.",oe);var $i=Math.abs;function Ad(h,y,x,E){return y=si(y,x),h._milliseconds+=E*y._milliseconds,h._days+=E*y._days,h._months+=E*y._months,h._bubble()}function Ld(h){return h<0?Math.floor(h):Math.ceil(h)}function Dd(h){return 4800*h/146097}function Yu(h){return 146097*h/4800}function Xi(h){return function(){return this.as(h)}}Mt=Xi("ms"),ht=Xi("s"),ee=Xi("m"),et=Xi("h"),Yt=Xi("d"),Pe=Xi("w"),pt=Xi("M"),Jn=Xi("Q"),Nn=Xi("y");function ts(h){return function(){return this.isValid()?this._data[h]:NaN}}var Bn=ts("milliseconds"),In=ts("seconds"),ll=ts("minutes"),ce=ts("hours"),P4=ts("days"),Y4=ts("months"),V4=ts("years"),Ki=Math.round,Os={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function U4(h,y,x,E){var It=si(h).abs(),ue=Ki(It.as("s")),R=Ki(It.as("m")),nt=Ki(It.as("h")),yt=Ki(It.as("d")),Ct=Ki(It.as("M")),Pt=Ki(It.as("w")),It=Ki(It.as("y")),ue=(ue<=x.ss?["s",ue]:ue<x.s&&["ss",ue])||R<=1&&["m"]||R<x.m&&["mm",R]||nt<=1&&["h"]||nt<x.h&&["hh",nt]||yt<=1&&["d"]||yt<x.d&&["dd",yt];return(ue=(ue=x.w!=null?ue||Pt<=1&&["w"]||Pt<x.w&&["ww",Pt]:ue)||Ct<=1&&["M"]||Ct<x.M&&["MM",Ct]||It<=1&&["y"]||["yy",It])[2]=y,ue[3]=0<+h,ue[4]=E,function(re,He,rr,ai,Uu){return Uu.relativeTime(He||1,!!rr,re,ai)}.apply(null,ue)}var Vu=Math.abs;function Rs(h){return(0<h)-(h<0)||+h}function cl(){if(!this.isValid())return this.localeData().invalidDate();var h,y,x,E,R,nt,yt,Ct=Vu(this._milliseconds)/1e3,Pt=Vu(this._days),It=Vu(this._months),ue=this.asSeconds();return ue?(h=X(Ct/60),y=X(h/60),Ct%=60,h%=60,x=X(It/12),It%=12,E=Ct?Ct.toFixed(3).replace(/\.?0+$/,""):"",R=Rs(this._months)!==Rs(ue)?"-":"",nt=Rs(this._days)!==Rs(ue)?"-":"",yt=Rs(this._milliseconds)!==Rs(ue)?"-":"",(ue<0?"-":"")+"P"+(x?R+x+"Y":"")+(It?R+It+"M":"")+(Pt?nt+Pt+"D":"")+(y||h||Ct?"T":"")+(y?yt+y+"H":"")+(h?yt+h+"M":"")+(Ct?yt+E+"S":"")):"P0D"}var Ce=ni.prototype;return Ce.isValid=function(){return this._isValid},Ce.abs=function(){var h=this._data;return this._milliseconds=$i(this._milliseconds),this._days=$i(this._days),this._months=$i(this._months),h.milliseconds=$i(h.milliseconds),h.seconds=$i(h.seconds),h.minutes=$i(h.minutes),h.hours=$i(h.hours),h.months=$i(h.months),h.years=$i(h.years),this},Ce.add=function(h,y){return Ad(this,h,y,1)},Ce.subtract=function(h,y){return Ad(this,h,y,-1)},Ce.as=function(h){if(!this.isValid())return NaN;var y,x,E=this._milliseconds;if((h=bt(h))==="month"||h==="quarter"||h==="year")switch(y=this._days+E/864e5,x=this._months+Dd(y),h){case"month":return x;case"quarter":return x/3;case"year":return x/12}else switch(y=this._days+Math.round(Yu(this._months)),h){case"week":return y/7+E/6048e5;case"day":return y+E/864e5;case"hour":return 24*y+E/36e5;case"minute":return 1440*y+E/6e4;case"second":return 86400*y+E/1e3;case"millisecond":return Math.floor(864e5*y)+E;default:throw new Error("Unknown unit "+h)}},Ce.asMilliseconds=Mt,Ce.asSeconds=ht,Ce.asMinutes=ee,Ce.asHours=et,Ce.asDays=Yt,Ce.asWeeks=Pe,Ce.asMonths=pt,Ce.asQuarters=Jn,Ce.asYears=Nn,Ce.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*F(this._months/12):NaN},Ce._bubble=function(){var h=this._milliseconds,y=this._days,x=this._months,E=this._data;return 0<=h&&0<=y&&0<=x||h<=0&&y<=0&&x<=0||(h+=864e5*Ld(Yu(x)+y),x=y=0),E.milliseconds=h%1e3,h=X(h/1e3),E.seconds=h%60,h=X(h/60),E.minutes=h%60,h=X(h/60),E.hours=h%24,y+=X(h/24),x+=h=X(Dd(y)),y-=Ld(Yu(h)),h=X(x/12),x%=12,E.days=y,E.months=x,E.years=h,this},Ce.clone=function(){return si(this)},Ce.get=function(h){return h=bt(h),this.isValid()?this[h+"s"]():NaN},Ce.milliseconds=Bn,Ce.seconds=In,Ce.minutes=ll,Ce.hours=ce,Ce.days=P4,Ce.weeks=function(){return X(this.days()/7)},Ce.months=Y4,Ce.years=V4,Ce.humanize=function(h,y){if(!this.isValid())return this.localeData().invalidDate();var x=!1,E=Os;return typeof h=="object"&&(y=h,h=!1),typeof h=="boolean"&&(x=h),typeof y=="object"&&(E=Object.assign({},Os,y),y.s!=null&&y.ss==null&&(E.ss=y.s-1)),h=this.localeData(),y=U4(this,!x,E,h),x&&(y=h.pastFuture(+this,y)),h.postformat(y)},Ce.toISOString=cl,Ce.toString=cl,Ce.toJSON=cl,Ce.locale=xd,Ce.localeData=vd,Ce.toIsoString=H("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cl),Ce.lang=Ge,j("X",0,0,"unix"),j("x",0,0,"valueOf"),st("x",gt),st("X",/[+-]?\d+(\.\d{1,3})?/),Gt("X",function(h,y,x){x._d=new Date(1e3*parseFloat(h))}),Gt("x",function(h,y,x){x._d=new Date(F(h))}),i.version="2.29.4",r=Se,i.fn=T,i.min=function(){return Cr("isBefore",[].slice.call(arguments,0))},i.max=function(){return Cr("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=g,i.unix=function(h){return Se(1e3*h)},i.months=function(h,y){return Sd(h,y,"months")},i.isDate=d,i.locale=qt,i.invalid=w,i.duration=si,i.isMoment=q,i.weekdays=function(h,y,x){return Pu(h,y,x,"weekdays")},i.parseZone=function(){return Se.apply(null,arguments).parseZone()},i.localeData=oe,i.isDuration=ji,i.monthsShort=function(h,y){return Sd(h,y,"monthsShort")},i.weekdaysMin=function(h,y,x){return Pu(h,y,x,"weekdaysMin")},i.defineLocale=te,i.updateLocale=function(h,y){var x,E;return y!=null?(E=We,xe[h]!=null&&xe[h].parentLocale!=null?xe[h].set(v(xe[h]._config,y)):(y=v(E=(x=Ir(h))!=null?x._config:E,y),x==null&&(y.abbr=h),(E=new D(y)).parentLocale=xe[h],xe[h]=E),qt(h)):xe[h]!=null&&(xe[h].parentLocale!=null?(xe[h]=xe[h].parentLocale,h===qt()&&qt(h)):xe[h]!=null&&delete xe[h]),xe[h]},i.locales=function(){return m(xe)},i.weekdaysShort=function(h,y,x){return Pu(h,y,x,"weekdaysShort")},i.normalizeUnits=bt,i.relativeTimeRounding=function(h){return h===void 0?Ki:typeof h=="function"&&(Ki=h,!0)},i.relativeTimeThreshold=function(h,y){return Os[h]!==void 0&&(y===void 0?Os[h]:(Os[h]=y,h==="s"&&(Os.ss=y-1),!0))},i.calendarFormat=function(h,y){return(h=h.diff(y,"days",!0))<-6?"sameElse":h<-1?"lastWeek":h<0?"lastDay":h<1?"sameDay":h<2?"nextDay":h<7?"nextWeek":"sameElse"},i.prototype=T,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i})})(rb);const mi=Dh;var G1={};Object.defineProperty(G1,"__esModule",{value:!0});var kn=G1.sanitizeUrl=void 0,ib=/^([^\w]*)(javascript|data|vbscript)/im,nb=/&#(\w+)(^\w|;)?/g,sb=/&(newline|tab);/gi,ab=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,ob=/^.+(:|&colon;)/gim,lb=[".","/"];function cb(t){return lb.indexOf(t[0])>-1}function ub(t){return t.replace(nb,function(e,r){return String.fromCharCode(r)})}function hb(t){var e=ub(t||"").replace(sb,"").replace(ab,"").trim();if(!e)return"about:blank";if(cb(e))return e;var r=e.match(ob);if(!r)return e;var i=r[0];return ib.test(i)?"about:blank":e}kn=G1.sanitizeUrl=hb;function Sl(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function db(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function q1(t){let e,r,i;t.length!==2?(e=Sl,r=(o,l)=>Sl(t(o),l),i=(o,l)=>t(o)-l):(e=t===Sl||t===db?t:fb,r=t,i=t);function n(o,l,u=0,d=o.length){if(u<d){if(e(l,l)!==0)return d;do{const f=u+d>>>1;r(o[f],l)<0?u=f+1:d=f}while(u<d)}return u}function s(o,l,u=0,d=o.length){if(u<d){if(e(l,l)!==0)return d;do{const f=u+d>>>1;r(o[f],l)<=0?u=f+1:d=f}while(u<d)}return u}function a(o,l,u=0,d=o.length){const f=n(o,l,u,d-1);return f>u&&i(o[f-1],l)>-i(o[f],l)?f-1:f}return{left:n,center:a,right:s}}function fb(){return 0}function pb(t){return t===null?NaN:+t}const gb=q1(Sl),yb=gb.right;q1(pb).center;const mb=yb;class Md extends Map{constructor(e,r=xb){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[i,n]of e)this.set(i,n)}get(e){return super.get(Nd(this,e))}has(e){return super.has(Nd(this,e))}set(e,r){return super.set(bb(this,e),r)}delete(e){return super.delete(_b(this,e))}}function Nd({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):r}function bb({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function _b({_intern:t,_key:e},r){const i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function xb(t){return t!==null&&typeof t=="object"?t.valueOf():t}var Mh=Math.sqrt(50),Nh=Math.sqrt(10),Bh=Math.sqrt(2);function vb(t,e,r){var i,n=-1,s,a,o;if(e=+e,t=+t,r=+r,t===e&&r>0)return[t];if((i=e<t)&&(s=t,t=e,e=s),(o=gp(t,e,r))===0||!isFinite(o))return[];if(o>0){let l=Math.round(t/o),u=Math.round(e/o);for(l*o<t&&++l,u*o>e&&--u,a=new Array(s=u-l+1);++n<s;)a[n]=(l+n)*o}else{o=-o;let l=Math.round(t*o),u=Math.round(e*o);for(l/o<t&&++l,u/o>e&&--u,a=new Array(s=u-l+1);++n<s;)a[n]=(l+n)/o}return i&&a.reverse(),a}function gp(t,e,r){var i=(e-t)/Math.max(0,r),n=Math.floor(Math.log(i)/Math.LN10),s=i/Math.pow(10,n);return n>=0?(s>=Mh?10:s>=Nh?5:s>=Bh?2:1)*Math.pow(10,n):-Math.pow(10,-n)/(s>=Mh?10:s>=Nh?5:s>=Bh?2:1)}function Ih(t,e,r){var i=Math.abs(e-t)/Math.max(0,r),n=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/n;return s>=Mh?n*=10:s>=Nh?n*=5:s>=Bh&&(n*=2),e<t?-n:n}function kb(t,e){let r;if(e===void 0)for(const i of t)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}function wb(t,e){let r;if(e===void 0)for(const i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}function Tb(t){return t}var Al=1,zu=2,Oh=3,ul=4,Bd=1e-6;function Eb(t){return"translate("+t+",0)"}function Cb(t){return"translate(0,"+t+")"}function Sb(t){return e=>+t(e)}function Ab(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Lb(){return!this.__axis}function yp(t,e){var r=[],i=null,n=null,s=6,a=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Al||t===ul?-1:1,d=t===ul||t===zu?"x":"y",f=t===Al||t===Oh?Eb:Cb;function p(g){var _=i??(e.ticks?e.ticks.apply(e,r):e.domain()),k=n??(e.tickFormat?e.tickFormat.apply(e,r):Tb),w=Math.max(s,0)+o,S=e.range(),A=+S[0]+l,O=+S[S.length-1]+l,P=(e.bandwidth?Ab:Sb)(e.copy(),l),W=g.selection?g.selection():g,q=W.selectAll(".domain").data([null]),z=W.selectAll(".tick").data(_,e).order(),H=z.exit(),N=z.enter().append("g").attr("class","tick"),M=z.select("line"),C=z.select("text");q=q.merge(q.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),z=z.merge(N),M=M.merge(N.append("line").attr("stroke","currentColor").attr(d+"2",u*s)),C=C.merge(N.append("text").attr("fill","currentColor").attr(d,u*w).attr("dy",t===Al?"0em":t===Oh?"0.71em":"0.32em")),g!==W&&(q=q.transition(g),z=z.transition(g),M=M.transition(g),C=C.transition(g),H=H.transition(g).attr("opacity",Bd).attr("transform",function(v){return isFinite(v=P(v))?f(v+l):this.getAttribute("transform")}),N.attr("opacity",Bd).attr("transform",function(v){var D=this.parentNode.__axis;return f((D&&isFinite(D=D(v))?D:P(v))+l)})),H.remove(),q.attr("d",t===ul||t===zu?a?"M"+u*a+","+A+"H"+l+"V"+O+"H"+u*a:"M"+l+","+A+"V"+O:a?"M"+A+","+u*a+"V"+l+"H"+O+"V"+u*a:"M"+A+","+l+"H"+O),z.attr("opacity",1).attr("transform",function(v){return f(P(v)+l)}),M.attr(d+"2",u*s),C.attr(d,u*w).text(k),W.filter(Lb).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===zu?"start":t===ul?"end":"middle"),W.each(function(){this.__axis=P})}return p.scale=function(g){return arguments.length?(e=g,p):e},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(g){return arguments.length?(r=g==null?[]:Array.from(g),p):r.slice()},p.tickValues=function(g){return arguments.length?(i=g==null?null:Array.from(g),p):i&&i.slice()},p.tickFormat=function(g){return arguments.length?(n=g,p):n},p.tickSize=function(g){return arguments.length?(s=a=+g,p):s},p.tickSizeInner=function(g){return arguments.length?(s=+g,p):s},p.tickSizeOuter=function(g){return arguments.length?(a=+g,p):a},p.tickPadding=function(g){return arguments.length?(o=+g,p):o},p.offset=function(g){return arguments.length?(l=+g,p):l},p}function Db(t){return yp(Al,t)}function Mb(t){return yp(Oh,t)}var Nb={value:()=>{}};function mp(){for(var t=0,e=arguments.length,r={},i;t<e;++t){if(!(i=arguments[t]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Ll(r)}function Ll(t){this._=t}function Bb(t,e){return t.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Ll.prototype=mp.prototype={constructor:Ll,on:function(t,e){var r=this._,i=Bb(t+"",r),n,s=-1,a=i.length;if(arguments.length<2){for(;++s<a;)if((n=(t=i[s]).type)&&(n=Ib(r[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=i[s]).type)r[n]=Id(r[n],t.name,e);else if(e==null)for(n in r)r[n]=Id(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Ll(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,s;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],i=0,n=s.length;i<n;++i)s[i].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],n=0,s=i.length;n<s;++n)i[n].value.apply(e,r)}};function Ib(t,e){for(var r=0,i=t.length,n;r<i;++r)if((n=t[r]).name===e)return n.value}function Id(t,e,r){for(var i=0,n=t.length;i<n;++i)if(t[i].name===e){t[i]=Nb,t=t.slice(0,i).concat(t.slice(i+1));break}return r!=null&&t.push({name:e,value:r}),t}var Rh="http://www.w3.org/1999/xhtml";const Od={svg:"http://www.w3.org/2000/svg",xhtml:Rh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $c(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Od.hasOwnProperty(e)?{space:Od[e],local:t}:t}function Ob(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Rh&&e.documentElement.namespaceURI===Rh?e.createElement(t):e.createElementNS(r,t)}}function Rb(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function bp(t){var e=$c(t);return(e.local?Rb:Ob)(e)}function Fb(){}function j1(t){return t==null?Fb:function(){return this.querySelector(t)}}function Pb(t){typeof t!="function"&&(t=j1(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],a=s.length,o=i[n]=new Array(a),l,u,d=0;d<a;++d)(l=s[d])&&(u=t.call(l,l.__data__,d,s))&&("__data__"in l&&(u.__data__=l.__data__),o[d]=u);return new Nr(i,this._parents)}function _p(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Yb(){return[]}function xp(t){return t==null?Yb:function(){return this.querySelectorAll(t)}}function Vb(t){return function(){return _p(t.apply(this,arguments))}}function Ub(t){typeof t=="function"?t=Vb(t):t=xp(t);for(var e=this._groups,r=e.length,i=[],n=[],s=0;s<r;++s)for(var a=e[s],o=a.length,l,u=0;u<o;++u)(l=a[u])&&(i.push(t.call(l,l.__data__,u,a)),n.push(l));return new Nr(i,n)}function vp(t){return function(){return this.matches(t)}}function kp(t){return function(e){return e.matches(t)}}var zb=Array.prototype.find;function Wb(t){return function(){return zb.call(this.children,t)}}function Hb(){return this.firstElementChild}function Gb(t){return this.select(t==null?Hb:Wb(typeof t=="function"?t:kp(t)))}var qb=Array.prototype.filter;function jb(){return Array.from(this.children)}function $b(t){return function(){return qb.call(this.children,t)}}function Xb(t){return this.selectAll(t==null?jb:$b(typeof t=="function"?t:kp(t)))}function Kb(t){typeof t!="function"&&(t=vp(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],a=s.length,o=i[n]=[],l,u=0;u<a;++u)(l=s[u])&&t.call(l,l.__data__,u,s)&&o.push(l);return new Nr(i,this._parents)}function wp(t){return new Array(t.length)}function Zb(){return new Nr(this._enter||this._groups.map(wp),this._parents)}function Xl(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Xl.prototype={constructor:Xl,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Qb(t){return function(){return t}}function Jb(t,e,r,i,n,s){for(var a=0,o,l=e.length,u=s.length;a<u;++a)(o=e[a])?(o.__data__=s[a],i[a]=o):r[a]=new Xl(t,s[a]);for(;a<l;++a)(o=e[a])&&(n[a]=o)}function t5(t,e,r,i,n,s,a){var o,l,u=new Map,d=e.length,f=s.length,p=new Array(d),g;for(o=0;o<d;++o)(l=e[o])&&(p[o]=g=a.call(l,l.__data__,o,e)+"",u.has(g)?n[o]=l:u.set(g,l));for(o=0;o<f;++o)g=a.call(t,s[o],o,s)+"",(l=u.get(g))?(i[o]=l,l.__data__=s[o],u.delete(g)):r[o]=new Xl(t,s[o]);for(o=0;o<d;++o)(l=e[o])&&u.get(p[o])===l&&(n[o]=l)}function e5(t){return t.__data__}function r5(t,e){if(!arguments.length)return Array.from(this,e5);var r=e?t5:Jb,i=this._parents,n=this._groups;typeof t!="function"&&(t=Qb(t));for(var s=n.length,a=new Array(s),o=new Array(s),l=new Array(s),u=0;u<s;++u){var d=i[u],f=n[u],p=f.length,g=i5(t.call(d,d&&d.__data__,u,i)),_=g.length,k=o[u]=new Array(_),w=a[u]=new Array(_),S=l[u]=new Array(p);r(d,f,k,w,S,g,e);for(var A=0,O=0,P,W;A<_;++A)if(P=k[A]){for(A>=O&&(O=A+1);!(W=w[O])&&++O<_;);P._next=W||null}}return a=new Nr(a,i),a._enter=o,a._exit=l,a}function i5(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function n5(){return new Nr(this._exit||this._groups.map(wp),this._parents)}function s5(t,e,r){var i=this.enter(),n=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),r==null?s.remove():r(s),i&&n?i.merge(n).order():n}function a5(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,n=r.length,s=i.length,a=Math.min(n,s),o=new Array(n),l=0;l<a;++l)for(var u=r[l],d=i[l],f=u.length,p=o[l]=new Array(f),g,_=0;_<f;++_)(g=u[_]||d[_])&&(p[_]=g);for(;l<n;++l)o[l]=r[l];return new Nr(o,this._parents)}function o5(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i=t[e],n=i.length-1,s=i[n],a;--n>=0;)(a=i[n])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function l5(t){t||(t=c5);function e(f,p){return f&&p?t(f.__data__,p.__data__):!f-!p}for(var r=this._groups,i=r.length,n=new Array(i),s=0;s<i;++s){for(var a=r[s],o=a.length,l=n[s]=new Array(o),u,d=0;d<o;++d)(u=a[d])&&(l[d]=u);l.sort(e)}return new Nr(n,this._parents).order()}function c5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function u5(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function h5(){return Array.from(this)}function d5(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,s=i.length;n<s;++n){var a=i[n];if(a)return a}return null}function f5(){let t=0;for(const e of this)++t;return t}function p5(){return!this.node()}function g5(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var n=e[r],s=0,a=n.length,o;s<a;++s)(o=n[s])&&t.call(o,o.__data__,s,n);return this}function y5(t){return function(){this.removeAttribute(t)}}function m5(t){return function(){this.removeAttributeNS(t.space,t.local)}}function b5(t,e){return function(){this.setAttribute(t,e)}}function _5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function x5(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function v5(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function k5(t,e){var r=$c(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?m5:y5:typeof e=="function"?r.local?v5:x5:r.local?_5:b5)(r,e))}function Tp(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function w5(t){return function(){this.style.removeProperty(t)}}function T5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function E5(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function C5(t,e,r){return arguments.length>1?this.each((e==null?w5:typeof e=="function"?E5:T5)(t,e,r??"")):ra(this.node(),t)}function ra(t,e){return t.style.getPropertyValue(e)||Tp(t).getComputedStyle(t,null).getPropertyValue(e)}function S5(t){return function(){delete this[t]}}function A5(t,e){return function(){this[t]=e}}function L5(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function D5(t,e){return arguments.length>1?this.each((e==null?S5:typeof e=="function"?L5:A5)(t,e)):this.node()[t]}function Ep(t){return t.trim().split(/^|\s+/)}function $1(t){return t.classList||new Cp(t)}function Cp(t){this._node=t,this._names=Ep(t.getAttribute("class")||"")}Cp.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Sp(t,e){for(var r=$1(t),i=-1,n=e.length;++i<n;)r.add(e[i])}function Ap(t,e){for(var r=$1(t),i=-1,n=e.length;++i<n;)r.remove(e[i])}function M5(t){return function(){Sp(this,t)}}function N5(t){return function(){Ap(this,t)}}function B5(t,e){return function(){(e.apply(this,arguments)?Sp:Ap)(this,t)}}function I5(t,e){var r=Ep(t+"");if(arguments.length<2){for(var i=$1(this.node()),n=-1,s=r.length;++n<s;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof e=="function"?B5:e?M5:N5)(r,e))}function O5(){this.textContent=""}function R5(t){return function(){this.textContent=t}}function F5(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function P5(t){return arguments.length?this.each(t==null?O5:(typeof t=="function"?F5:R5)(t)):this.node().textContent}function Y5(){this.innerHTML=""}function V5(t){return function(){this.innerHTML=t}}function U5(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function z5(t){return arguments.length?this.each(t==null?Y5:(typeof t=="function"?U5:V5)(t)):this.node().innerHTML}function W5(){this.nextSibling&&this.parentNode.appendChild(this)}function H5(){return this.each(W5)}function G5(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function q5(){return this.each(G5)}function j5(t){var e=typeof t=="function"?t:bp(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function $5(){return null}function X5(t,e){var r=typeof t=="function"?t:bp(t),i=e==null?$5:typeof e=="function"?e:j1(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function K5(){var t=this.parentNode;t&&t.removeChild(this)}function Z5(){return this.each(K5)}function Q5(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function J5(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function t_(t){return this.select(t?J5:Q5)}function e_(t){return arguments.length?this.property("__data__",t):this.node().__data__}function r_(t){return function(e){t.call(this,e,this.__data__)}}function i_(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function n_(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,n=e.length,s;r<n;++r)s=e[r],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++i]=s;++i?e.length=i:delete this.__on}}}function s_(t,e,r){return function(){var i=this.__on,n,s=r_(e);if(i){for(var a=0,o=i.length;a<o;++a)if((n=i[a]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=r),n.value=e;return}}this.addEventListener(t.type,s,r),n={type:t.type,name:t.name,value:e,listener:s,options:r},i?i.push(n):this.__on=[n]}}function a_(t,e,r){var i=i_(t+""),n,s=i.length,a;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,u=o.length,d;l<u;++l)for(n=0,d=o[l];n<s;++n)if((a=i[n]).type===d.type&&a.name===d.name)return d.value}return}for(o=e?s_:n_,n=0;n<s;++n)this.each(o(i[n],e,r));return this}function Lp(t,e,r){var i=Tp(t),n=i.CustomEvent;typeof n=="function"?n=new n(e,r):(n=i.document.createEvent("Event"),r?(n.initEvent(e,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function o_(t,e){return function(){return Lp(this,t,e)}}function l_(t,e){return function(){return Lp(this,t,e.apply(this,arguments))}}function c_(t,e){return this.each((typeof e=="function"?l_:o_)(t,e))}function*u_(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,s=i.length,a;n<s;++n)(a=i[n])&&(yield a)}var X1=[null];function Nr(t,e){this._groups=t,this._parents=e}function Uo(){return new Nr([[document.documentElement]],X1)}function h_(){return this}Nr.prototype=Uo.prototype={constructor:Nr,select:Pb,selectAll:Ub,selectChild:Gb,selectChildren:Xb,filter:Kb,data:r5,enter:Zb,exit:n5,join:s5,merge:a5,selection:h_,order:o5,sort:l5,call:u5,nodes:h5,node:d5,size:f5,empty:p5,each:g5,attr:k5,style:C5,property:D5,classed:I5,text:P5,html:z5,raise:H5,lower:q5,append:j5,insert:X5,remove:Z5,clone:t_,datum:e_,on:a_,dispatch:c_,[Symbol.iterator]:u_};function At(t){return typeof t=="string"?new Nr([[document.querySelector(t)]],[document.documentElement]):new Nr([[t]],X1)}function K1(t){return typeof t=="string"?new Nr([document.querySelectorAll(t)],[document.documentElement]):new Nr([_p(t)],X1)}function zo(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Xc(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function Ts(){}var uo=.7,Kl=1/uo,Xs="\\s*([+-]?\\d+)\\s*",ho="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d_=/^#([0-9a-f]{3,8})$/,f_=new RegExp(`^rgb\\(${Xs},${Xs},${Xs}\\)$`),p_=new RegExp(`^rgb\\(${Fi},${Fi},${Fi}\\)$`),g_=new RegExp(`^rgba\\(${Xs},${Xs},${Xs},${ho}\\)$`),y_=new RegExp(`^rgba\\(${Fi},${Fi},${Fi},${ho}\\)$`),m_=new RegExp(`^hsl\\(${ho},${Fi},${Fi}\\)$`),b_=new RegExp(`^hsla\\(${ho},${Fi},${Fi},${ho}\\)$`),Rd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};zo(Ts,ds,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Fd,formatHex:Fd,formatHex8:__,formatHsl:x_,formatRgb:Pd,toString:Pd});function Fd(){return this.rgb().formatHex()}function __(){return this.rgb().formatHex8()}function x_(){return Mp(this).formatHsl()}function Pd(){return this.rgb().formatRgb()}function ds(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=d_.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Yd(e):r===3?new wr(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?hl(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?hl(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=f_.exec(t))?new wr(e[1],e[2],e[3],1):(e=p_.exec(t))?new wr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=g_.exec(t))?hl(e[1],e[2],e[3],e[4]):(e=y_.exec(t))?hl(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=m_.exec(t))?zd(e[1],e[2]/100,e[3]/100,1):(e=b_.exec(t))?zd(e[1],e[2]/100,e[3]/100,e[4]):Rd.hasOwnProperty(t)?Yd(Rd[t]):t==="transparent"?new wr(NaN,NaN,NaN,0):null}function Yd(t){return new wr(t>>16&255,t>>8&255,t&255,1)}function hl(t,e,r,i){return i<=0&&(t=e=r=NaN),new wr(t,e,r,i)}function Dp(t){return t instanceof Ts||(t=ds(t)),t?(t=t.rgb(),new wr(t.r,t.g,t.b,t.opacity)):new wr}function Fh(t,e,r,i){return arguments.length===1?Dp(t):new wr(t,e,r,i??1)}function wr(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}zo(wr,Fh,Xc(Ts,{brighter(t){return t=t==null?Kl:Math.pow(Kl,t),new wr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?uo:Math.pow(uo,t),new wr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new wr(us(this.r),us(this.g),us(this.b),Zl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Vd,formatHex:Vd,formatHex8:v_,formatRgb:Ud,toString:Ud}));function Vd(){return`#${cs(this.r)}${cs(this.g)}${cs(this.b)}`}function v_(){return`#${cs(this.r)}${cs(this.g)}${cs(this.b)}${cs((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ud(){const t=Zl(this.opacity);return`${t===1?"rgb(":"rgba("}${us(this.r)}, ${us(this.g)}, ${us(this.b)}${t===1?")":`, ${t})`}`}function Zl(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function us(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function cs(t){return t=us(t),(t<16?"0":"")+t.toString(16)}function zd(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ui(t,e,r,i)}function Mp(t){if(t instanceof ui)return new ui(t.h,t.s,t.l,t.opacity);if(t instanceof Ts||(t=ds(t)),!t)return new ui;if(t instanceof ui)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),s=Math.max(e,r,i),a=NaN,o=s-n,l=(s+n)/2;return o?(e===s?a=(r-i)/o+(r<i)*6:r===s?a=(i-e)/o+2:a=(e-r)/o+4,o/=l<.5?s+n:2-s-n,a*=60):o=l>0&&l<1?0:a,new ui(a,o,l,t.opacity)}function k_(t,e,r,i){return arguments.length===1?Mp(t):new ui(t,e,r,i??1)}function ui(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}zo(ui,k_,Xc(Ts,{brighter(t){return t=t==null?Kl:Math.pow(Kl,t),new ui(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?uo:Math.pow(uo,t),new ui(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new wr(Wu(t>=240?t-240:t+120,n,i),Wu(t,n,i),Wu(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new ui(Wd(this.h),dl(this.s),dl(this.l),Zl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Zl(this.opacity);return`${t===1?"hsl(":"hsla("}${Wd(this.h)}, ${dl(this.s)*100}%, ${dl(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Wd(t){return t=(t||0)%360,t<0?t+360:t}function dl(t){return Math.max(0,Math.min(1,t||0))}function Wu(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const w_=Math.PI/180,T_=180/Math.PI,Ql=18,Np=.96422,Bp=1,Ip=.82521,Op=4/29,Ks=6/29,Rp=3*Ks*Ks,E_=Ks*Ks*Ks;function Fp(t){if(t instanceof Pi)return new Pi(t.l,t.a,t.b,t.opacity);if(t instanceof ln)return Pp(t);t instanceof wr||(t=Dp(t));var e=ju(t.r),r=ju(t.g),i=ju(t.b),n=Hu((.2225045*e+.7168786*r+.0606169*i)/Bp),s,a;return e===r&&r===i?s=a=n:(s=Hu((.4360747*e+.3850649*r+.1430804*i)/Np),a=Hu((.0139322*e+.0971045*r+.7141733*i)/Ip)),new Pi(116*n-16,500*(s-n),200*(n-a),t.opacity)}function C_(t,e,r,i){return arguments.length===1?Fp(t):new Pi(t,e,r,i??1)}function Pi(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}zo(Pi,C_,Xc(Ts,{brighter(t){return new Pi(this.l+Ql*(t??1),this.a,this.b,this.opacity)},darker(t){return new Pi(this.l-Ql*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=Np*Gu(e),t=Bp*Gu(t),r=Ip*Gu(r),new wr(qu(3.1338561*e-1.6168667*t-.4906146*r),qu(-.9787684*e+1.9161415*t+.033454*r),qu(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function Hu(t){return t>E_?Math.pow(t,1/3):t/Rp+Op}function Gu(t){return t>Ks?t*t*t:Rp*(t-Op)}function qu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ju(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function S_(t){if(t instanceof ln)return new ln(t.h,t.c,t.l,t.opacity);if(t instanceof Pi||(t=Fp(t)),t.a===0&&t.b===0)return new ln(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*T_;return new ln(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ph(t,e,r,i){return arguments.length===1?S_(t):new ln(t,e,r,i??1)}function ln(t,e,r,i){this.h=+t,this.c=+e,this.l=+r,this.opacity=+i}function Pp(t){if(isNaN(t.h))return new Pi(t.l,0,0,t.opacity);var e=t.h*w_;return new Pi(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}zo(ln,Ph,Xc(Ts,{brighter(t){return new ln(this.h,this.c,this.l+Ql*(t??1),this.opacity)},darker(t){return new ln(this.h,this.c,this.l-Ql*(t??1),this.opacity)},rgb(){return Pp(this).rgb()}}));const Kc=t=>()=>t;function Yp(t,e){return function(r){return t+r*e}}function A_(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function L_(t,e){var r=e-t;return r?Yp(t,r>180||r<-180?r-360*Math.round(r/360):r):Kc(isNaN(t)?e:t)}function D_(t){return(t=+t)==1?Qa:function(e,r){return r-e?A_(e,r,t):Kc(isNaN(e)?r:e)}}function Qa(t,e){var r=e-t;return r?Yp(t,r):Kc(isNaN(t)?e:t)}const Jl=function t(e){var r=D_(e);function i(n,s){var a=r((n=Fh(n)).r,(s=Fh(s)).r),o=r(n.g,s.g),l=r(n.b,s.b),u=Qa(n.opacity,s.opacity);return function(d){return n.r=a(d),n.g=o(d),n.b=l(d),n.opacity=u(d),n+""}}return i.gamma=t,i}(1);function M_(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,i=e.slice(),n;return function(s){for(n=0;n<r;++n)i[n]=t[n]*(1-s)+e[n]*s;return i}}function N_(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function B_(t,e){var r=e?e.length:0,i=t?Math.min(r,t.length):0,n=new Array(i),s=new Array(r),a;for(a=0;a<i;++a)n[a]=Z1(t[a],e[a]);for(;a<r;++a)s[a]=e[a];return function(o){for(a=0;a<i;++a)s[a]=n[a](o);return s}}function I_(t,e){var r=new Date;return t=+t,e=+e,function(i){return r.setTime(t*(1-i)+e*i),r}}function ci(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function O_(t,e){var r={},i={},n;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(n in e)n in t?r[n]=Z1(t[n],e[n]):i[n]=e[n];return function(s){for(n in r)i[n]=r[n](s);return i}}var Yh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$u=new RegExp(Yh.source,"g");function R_(t){return function(){return t}}function F_(t){return function(e){return t(e)+""}}function Vp(t,e){var r=Yh.lastIndex=$u.lastIndex=0,i,n,s,a=-1,o=[],l=[];for(t=t+"",e=e+"";(i=Yh.exec(t))&&(n=$u.exec(e));)(s=n.index)>r&&(s=e.slice(r,s),o[a]?o[a]+=s:o[++a]=s),(i=i[0])===(n=n[0])?o[a]?o[a]+=n:o[++a]=n:(o[++a]=null,l.push({i:a,x:ci(i,n)})),r=$u.lastIndex;return r<e.length&&(s=e.slice(r),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?F_(l[0].x):R_(e):(e=l.length,function(u){for(var d=0,f;d<e;++d)o[(f=l[d]).i]=f.x(u);return o.join("")})}function Z1(t,e){var r=typeof e,i;return e==null||r==="boolean"?Kc(e):(r==="number"?ci:r==="string"?(i=ds(e))?(e=i,Jl):Vp:e instanceof ds?Jl:e instanceof Date?I_:N_(e)?M_:Array.isArray(e)?B_:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?O_:ci)(t,e)}function P_(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var Hd=180/Math.PI,Vh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Up(t,e,r,i,n,s){var a,o,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(o=Math.sqrt(r*r+i*i))&&(r/=o,i/=o,l/=o),t*i<e*r&&(t=-t,e=-e,l=-l,a=-a),{translateX:n,translateY:s,rotate:Math.atan2(e,t)*Hd,skewX:Math.atan(l)*Hd,scaleX:a,scaleY:o}}var fl;function Y_(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Vh:Up(e.a,e.b,e.c,e.d,e.e,e.f)}function V_(t){return t==null||(fl||(fl=document.createElementNS("http://www.w3.org/2000/svg","g")),fl.setAttribute("transform",t),!(t=fl.transform.baseVal.consolidate()))?Vh:(t=t.matrix,Up(t.a,t.b,t.c,t.d,t.e,t.f))}function zp(t,e,r,i){function n(u){return u.length?u.pop()+" ":""}function s(u,d,f,p,g,_){if(u!==f||d!==p){var k=g.push("translate(",null,e,null,r);_.push({i:k-4,x:ci(u,f)},{i:k-2,x:ci(d,p)})}else(f||p)&&g.push("translate("+f+e+p+r)}function a(u,d,f,p){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),p.push({i:f.push(n(f)+"rotate(",null,i)-2,x:ci(u,d)})):d&&f.push(n(f)+"rotate("+d+i)}function o(u,d,f,p){u!==d?p.push({i:f.push(n(f)+"skewX(",null,i)-2,x:ci(u,d)}):d&&f.push(n(f)+"skewX("+d+i)}function l(u,d,f,p,g,_){if(u!==f||d!==p){var k=g.push(n(g)+"scale(",null,",",null,")");_.push({i:k-4,x:ci(u,f)},{i:k-2,x:ci(d,p)})}else(f!==1||p!==1)&&g.push(n(g)+"scale("+f+","+p+")")}return function(u,d){var f=[],p=[];return u=t(u),d=t(d),s(u.translateX,u.translateY,d.translateX,d.translateY,f,p),a(u.rotate,d.rotate,f,p),o(u.skewX,d.skewX,f,p),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,f,p),u=d=null,function(g){for(var _=-1,k=p.length,w;++_<k;)f[(w=p[_]).i]=w.x(g);return f.join("")}}}var U_=zp(Y_,"px, ","px)","deg)"),z_=zp(V_,", ",")",")");function W_(t){return function(e,r){var i=t((e=Ph(e)).h,(r=Ph(r)).h),n=Qa(e.c,r.c),s=Qa(e.l,r.l),a=Qa(e.opacity,r.opacity);return function(o){return e.h=i(o),e.c=n(o),e.l=s(o),e.opacity=a(o),e+""}}}const H_=W_(L_);var ia=0,Ga=0,Ba=0,Wp=1e3,tc,qa,ec=0,fs=0,Zc=0,fo=typeof performance=="object"&&performance.now?performance:Date,Hp=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Q1(){return fs||(Hp(G_),fs=fo.now()+Zc)}function G_(){fs=0}function rc(){this._call=this._time=this._next=null}rc.prototype=Gp.prototype={constructor:rc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Q1():+r)+(e==null?0:+e),!this._next&&qa!==this&&(qa?qa._next=this:tc=this,qa=this),this._call=t,this._time=r,Uh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Uh())}};function Gp(t,e,r){var i=new rc;return i.restart(t,e,r),i}function q_(){Q1(),++ia;for(var t=tc,e;t;)(e=fs-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ia}function Gd(){fs=(ec=fo.now())+Zc,ia=Ga=0;try{q_()}finally{ia=0,$_(),fs=0}}function j_(){var t=fo.now(),e=t-ec;e>Wp&&(Zc-=e,ec=t)}function $_(){for(var t,e=tc,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:tc=r);qa=t,Uh(i)}function Uh(t){if(!ia){Ga&&(Ga=clearTimeout(Ga));var e=t-fs;e>24?(t<1/0&&(Ga=setTimeout(Gd,t-fo.now()-Zc)),Ba&&(Ba=clearInterval(Ba))):(Ba||(ec=fo.now(),Ba=setInterval(j_,Wp)),ia=1,Hp(Gd))}}function qd(t,e,r){var i=new rc;return e=e==null?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,r),i}var X_=mp("start","end","cancel","interrupt"),K_=[],qp=0,jd=1,zh=2,Dl=3,$d=4,Wh=5,Ml=6;function Qc(t,e,r,i,n,s){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;Z_(t,r,{name:e,index:i,group:n,on:X_,tween:K_,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:qp})}function J1(t,e){var r=ki(t,e);if(r.state>qp)throw new Error("too late; already scheduled");return r}function Wi(t,e){var r=ki(t,e);if(r.state>Dl)throw new Error("too late; already running");return r}function ki(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Z_(t,e,r){var i=t.__transition,n;i[e]=r,r.timer=Gp(s,0,r.time);function s(u){r.state=jd,r.timer.restart(a,r.delay,r.time),r.delay<=u&&a(u-r.delay)}function a(u){var d,f,p,g;if(r.state!==jd)return l();for(d in i)if(g=i[d],g.name===r.name){if(g.state===Dl)return qd(a);g.state===$d?(g.state=Ml,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete i[d]):+d<e&&(g.state=Ml,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete i[d])}if(qd(function(){r.state===Dl&&(r.state=$d,r.timer.restart(o,r.delay,r.time),o(u))}),r.state=zh,r.on.call("start",t,t.__data__,r.index,r.group),r.state===zh){for(r.state=Dl,n=new Array(p=r.tween.length),d=0,f=-1;d<p;++d)(g=r.tween[d].value.call(t,t.__data__,r.index,r.group))&&(n[++f]=g);n.length=f+1}}function o(u){for(var d=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=Wh,1),f=-1,p=n.length;++f<p;)n[f].call(t,d);r.state===Wh&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){r.state=Ml,r.timer.stop(),delete i[e];for(var u in i)return;delete t.__transition}}function Q_(t,e){var r=t.__transition,i,n,s=!0,a;if(r){e=e==null?null:e+"";for(a in r){if((i=r[a]).name!==e){s=!1;continue}n=i.state>zh&&i.state<Wh,i.state=Ml,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[a]}s&&delete t.__transition}}function J_(t){return this.each(function(){Q_(this,t)})}function tx(t,e){var r,i;return function(){var n=Wi(this,t),s=n.tween;if(s!==r){i=r=s;for(var a=0,o=i.length;a<o;++a)if(i[a].name===e){i=i.slice(),i.splice(a,1);break}}n.tween=i}}function ex(t,e,r){var i,n;if(typeof r!="function")throw new Error;return function(){var s=Wi(this,t),a=s.tween;if(a!==i){n=(i=a).slice();for(var o={name:e,value:r},l=0,u=n.length;l<u;++l)if(n[l].name===e){n[l]=o;break}l===u&&n.push(o)}s.tween=n}}function rx(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i=ki(this.node(),r).tween,n=0,s=i.length,a;n<s;++n)if((a=i[n]).name===t)return a.value;return null}return this.each((e==null?tx:ex)(r,t,e))}function t0(t,e,r){var i=t._id;return t.each(function(){var n=Wi(this,i);(n.value||(n.value={}))[e]=r.apply(this,arguments)}),function(n){return ki(n,i).value[e]}}function jp(t,e){var r;return(typeof e=="number"?ci:e instanceof ds?Jl:(r=ds(e))?(e=r,Jl):Vp)(t,e)}function ix(t){return function(){this.removeAttribute(t)}}function nx(t){return function(){this.removeAttributeNS(t.space,t.local)}}function sx(t,e,r){var i,n=r+"",s;return function(){var a=this.getAttribute(t);return a===n?null:a===i?s:s=e(i=a,r)}}function ax(t,e,r){var i,n=r+"",s;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n?null:a===i?s:s=e(i=a,r)}}function ox(t,e,r){var i,n,s;return function(){var a,o=r(this),l;return o==null?void this.removeAttribute(t):(a=this.getAttribute(t),l=o+"",a===l?null:a===i&&l===n?s:(n=l,s=e(i=a,o)))}}function lx(t,e,r){var i,n,s;return function(){var a,o=r(this),l;return o==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),l=o+"",a===l?null:a===i&&l===n?s:(n=l,s=e(i=a,o)))}}function cx(t,e){var r=$c(t),i=r==="transform"?z_:jp;return this.attrTween(t,typeof e=="function"?(r.local?lx:ox)(r,i,t0(this,"attr."+t,e)):e==null?(r.local?nx:ix)(r):(r.local?ax:sx)(r,i,e))}function ux(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function hx(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function dx(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&hx(t,s)),r}return n._value=e,n}function fx(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&ux(t,s)),r}return n._value=e,n}function px(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var i=$c(t);return this.tween(r,(i.local?dx:fx)(i,e))}function gx(t,e){return function(){J1(this,t).delay=+e.apply(this,arguments)}}function yx(t,e){return e=+e,function(){J1(this,t).delay=e}}function mx(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?gx:yx)(e,t)):ki(this.node(),e).delay}function bx(t,e){return function(){Wi(this,t).duration=+e.apply(this,arguments)}}function _x(t,e){return e=+e,function(){Wi(this,t).duration=e}}function xx(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bx:_x)(e,t)):ki(this.node(),e).duration}function vx(t,e){if(typeof e!="function")throw new Error;return function(){Wi(this,t).ease=e}}function kx(t){var e=this._id;return arguments.length?this.each(vx(e,t)):ki(this.node(),e).ease}function wx(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Wi(this,t).ease=r}}function Tx(t){if(typeof t!="function")throw new Error;return this.each(wx(this._id,t))}function Ex(t){typeof t!="function"&&(t=vp(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],a=s.length,o=i[n]=[],l,u=0;u<a;++u)(l=s[u])&&t.call(l,l.__data__,u,s)&&o.push(l);return new mn(i,this._parents,this._name,this._id)}function Cx(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,n=r.length,s=Math.min(i,n),a=new Array(i),o=0;o<s;++o)for(var l=e[o],u=r[o],d=l.length,f=a[o]=new Array(d),p,g=0;g<d;++g)(p=l[g]||u[g])&&(f[g]=p);for(;o<i;++o)a[o]=e[o];return new mn(a,this._parents,this._name,this._id)}function Sx(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function Ax(t,e,r){var i,n,s=Sx(e)?J1:Wi;return function(){var a=s(this,t),o=a.on;o!==i&&(n=(i=o).copy()).on(e,r),a.on=n}}function Lx(t,e){var r=this._id;return arguments.length<2?ki(this.node(),r).on.on(t):this.each(Ax(r,t,e))}function Dx(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Mx(){return this.on("end.remove",Dx(this._id))}function Nx(t){var e=this._name,r=this._id;typeof t!="function"&&(t=j1(t));for(var i=this._groups,n=i.length,s=new Array(n),a=0;a<n;++a)for(var o=i[a],l=o.length,u=s[a]=new Array(l),d,f,p=0;p<l;++p)(d=o[p])&&(f=t.call(d,d.__data__,p,o))&&("__data__"in d&&(f.__data__=d.__data__),u[p]=f,Qc(u[p],e,r,p,u,ki(d,r)));return new mn(s,this._parents,e,r)}function Bx(t){var e=this._name,r=this._id;typeof t!="function"&&(t=xp(t));for(var i=this._groups,n=i.length,s=[],a=[],o=0;o<n;++o)for(var l=i[o],u=l.length,d,f=0;f<u;++f)if(d=l[f]){for(var p=t.call(d,d.__data__,f,l),g,_=ki(d,r),k=0,w=p.length;k<w;++k)(g=p[k])&&Qc(g,e,r,k,p,_);s.push(p),a.push(d)}return new mn(s,a,e,r)}var Ix=Uo.prototype.constructor;function Ox(){return new Ix(this._groups,this._parents)}function Rx(t,e){var r,i,n;return function(){var s=ra(this,t),a=(this.style.removeProperty(t),ra(this,t));return s===a?null:s===r&&a===i?n:n=e(r=s,i=a)}}function $p(t){return function(){this.style.removeProperty(t)}}function Fx(t,e,r){var i,n=r+"",s;return function(){var a=ra(this,t);return a===n?null:a===i?s:s=e(i=a,r)}}function Px(t,e,r){var i,n,s;return function(){var a=ra(this,t),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(t),ra(this,t))),a===l?null:a===i&&l===n?s:(n=l,s=e(i=a,o))}}function Yx(t,e){var r,i,n,s="style."+e,a="end."+s,o;return function(){var l=Wi(this,t),u=l.on,d=l.value[s]==null?o||(o=$p(e)):void 0;(u!==r||n!==d)&&(i=(r=u).copy()).on(a,n=d),l.on=i}}function Vx(t,e,r){var i=(t+="")=="transform"?U_:jp;return e==null?this.styleTween(t,Rx(t,i)).on("end.style."+t,$p(t)):typeof e=="function"?this.styleTween(t,Px(t,i,t0(this,"style."+t,e))).each(Yx(this._id,t)):this.styleTween(t,Fx(t,i,e),r).on("end.style."+t,null)}function Ux(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function zx(t,e,r){var i,n;function s(){var a=e.apply(this,arguments);return a!==n&&(i=(n=a)&&Ux(t,a,r)),i}return s._value=e,s}function Wx(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,zx(t,e,r??""))}function Hx(t){return function(){this.textContent=t}}function Gx(t){return function(){var e=t(this);this.textContent=e??""}}function qx(t){return this.tween("text",typeof t=="function"?Gx(t0(this,"text",t)):Hx(t==null?"":t+""))}function jx(t){return function(e){this.textContent=t.call(this,e)}}function $x(t){var e,r;function i(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&jx(n)),e}return i._value=t,i}function Xx(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,$x(t))}function Kx(){for(var t=this._name,e=this._id,r=Xp(),i=this._groups,n=i.length,s=0;s<n;++s)for(var a=i[s],o=a.length,l,u=0;u<o;++u)if(l=a[u]){var d=ki(l,e);Qc(l,t,r,u,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new mn(i,this._parents,t,r)}function Zx(){var t,e,r=this,i=r._id,n=r.size();return new Promise(function(s,a){var o={value:a},l={value:function(){--n===0&&s()}};r.each(function(){var u=Wi(this,i),d=u.on;d!==t&&(e=(t=d).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),u.on=e}),n===0&&s()})}var Qx=0;function mn(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function Xp(){return++Qx}var Zi=Uo.prototype;mn.prototype={constructor:mn,select:Nx,selectAll:Bx,selectChild:Zi.selectChild,selectChildren:Zi.selectChildren,filter:Ex,merge:Cx,selection:Ox,transition:Kx,call:Zi.call,nodes:Zi.nodes,node:Zi.node,size:Zi.size,empty:Zi.empty,each:Zi.each,on:Lx,attr:cx,attrTween:px,style:Vx,styleTween:Wx,text:qx,textTween:Xx,remove:Mx,tween:rx,delay:mx,duration:xx,ease:kx,easeVarying:Tx,end:Zx,[Symbol.iterator]:Zi[Symbol.iterator]};function Jx(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var tv={time:null,delay:0,duration:250,ease:Jx};function ev(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function rv(t){var e,r;t instanceof mn?(e=t._id,t=t._name):(e=Xp(),(r=tv).time=Q1(),t=t==null?null:t+"");for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var a=i[s],o=a.length,l,u=0;u<o;++u)(l=a[u])&&Qc(l,t,e,u,a,r||ev(l,e));return new mn(i,this._parents,t,e)}Uo.prototype.interrupt=J_;Uo.prototype.transition=rv;const Hh=Math.PI,Gh=2*Hh,ss=1e-6,iv=Gh-ss;function Kp(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function nv(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Kp;const r=10**e;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class sv{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Kp:nv(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,i,n){this._append`Q${+e},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(e,r,i,n,s,a){this._append`C${+e},${+r},${+i},${+n},${this._x1=+s},${this._y1=+a}`}arcTo(e,r,i,n,s){if(e=+e,r=+r,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,o=this._y1,l=i-e,u=n-r,d=a-e,f=o-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(p>ss)if(!(Math.abs(f*l-u*d)>ss)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let g=i-a,_=n-o,k=l*l+u*u,w=g*g+_*_,S=Math.sqrt(k),A=Math.sqrt(p),O=s*Math.tan((Hh-Math.acos((k+p-w)/(2*S*A)))/2),P=O/A,W=O/S;Math.abs(P-1)>ss&&this._append`L${e+P*d},${r+P*f}`,this._append`A${s},${s},0,0,${+(f*g>d*_)},${this._x1=e+W*l},${this._y1=r+W*u}`}}arc(e,r,i,n,s,a){if(e=+e,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),l=i*Math.sin(n),u=e+o,d=r+l,f=1^a,p=a?n-s:s-n;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>ss||Math.abs(this._y1-d)>ss)&&this._append`L${u},${d}`,i&&(p<0&&(p=p%Gh+Gh),p>iv?this._append`A${i},${i},0,1,${f},${e-o},${r-l}A${i},${i},0,1,${f},${this._x1=u},${this._y1=d}`:p>ss&&this._append`A${i},${i},0,${+(p>=Hh)},${f},${this._x1=e+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}rect(e,r,i,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function av(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function ov(t,e){return fetch(t,e).then(av)}function lv(t){return(e,r)=>ov(e,r).then(i=>new DOMParser().parseFromString(i,t))}var cv=lv("image/svg+xml");function uv(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function ic(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function na(t){return t=ic(Math.abs(t)),t?t[1]:NaN}function hv(t,e){return function(r,i){for(var n=r.length,s=[],a=0,o=t[0],l=0;n>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),s.push(r.substring(n-=o,n+o)),!((l+=o+1)>i));)o=t[a=(a+1)%t.length];return s.reverse().join(e)}}function dv(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var fv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nc(t){if(!(e=fv.exec(t)))throw new Error("invalid format: "+t);var e;return new e0({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}nc.prototype=e0.prototype;function e0(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}e0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function pv(t){t:for(var e=t.length,r=1,i=-1,n;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":i===0&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(n+1):t}var Zp;function gv(t,e){var r=ic(t,e);if(!r)return t+"";var i=r[0],n=r[1],s=n-(Zp=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,a=i.length;return s===a?i:s>a?i+new Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+ic(t,Math.max(0,e+s-1))[0]}function Xd(t,e){var r=ic(t,e);if(!r)return t+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}const Kd={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:uv,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Xd(t*100,e),r:Xd,s:gv,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Zd(t){return t}var Qd=Array.prototype.map,Jd=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function yv(t){var e=t.grouping===void 0||t.thousands===void 0?Zd:hv(Qd.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Zd:dv(Qd.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(f){f=nc(f);var p=f.fill,g=f.align,_=f.sign,k=f.symbol,w=f.zero,S=f.width,A=f.comma,O=f.precision,P=f.trim,W=f.type;W==="n"?(A=!0,W="g"):Kd[W]||(O===void 0&&(O=12),P=!0,W="g"),(w||p==="0"&&g==="=")&&(w=!0,p="0",g="=");var q=k==="$"?r:k==="#"&&/[boxX]/.test(W)?"0"+W.toLowerCase():"",z=k==="$"?i:/[%p]/.test(W)?a:"",H=Kd[W],N=/[defgprs%]/.test(W);O=O===void 0?6:/[gprs]/.test(W)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function M(C){var v=q,D=z,m,Q,b;if(W==="c")D=H(C)+D,C="";else{C=+C;var ct=C<0||1/C<0;if(C=isNaN(C)?l:H(Math.abs(C),O),P&&(C=pv(C)),ct&&+C==0&&_!=="+"&&(ct=!1),v=(ct?_==="("?_:o:_==="-"||_==="("?"":_)+v,D=(W==="s"?Jd[8+Zp/3]:"")+D+(ct&&_==="("?")":""),N){for(m=-1,Q=C.length;++m<Q;)if(b=C.charCodeAt(m),48>b||b>57){D=(b===46?n+C.slice(m+1):C.slice(m))+D,C=C.slice(0,m);break}}}A&&!w&&(C=e(C,1/0));var Dt=v.length+C.length+D.length,vt=Dt<S?new Array(S-Dt+1).join(p):"";switch(A&&w&&(C=e(vt+C,vt.length?S-D.length:1/0),vt=""),g){case"<":C=v+C+D+vt;break;case"=":C=v+vt+C+D;break;case"^":C=vt.slice(0,Dt=vt.length>>1)+v+C+D+vt.slice(Dt);break;default:C=vt+v+C+D;break}return s(C)}return M.toString=function(){return f+""},M}function d(f,p){var g=u((f=nc(f),f.type="f",f)),_=Math.max(-8,Math.min(8,Math.floor(na(p)/3)))*3,k=Math.pow(10,-_),w=Jd[8+_/3];return function(S){return g(k*S)+w}}return{format:u,formatPrefix:d}}var pl,Qp,Jp;mv({thousands:",",grouping:[3],currency:["$",""]});function mv(t){return pl=yv(t),Qp=pl.format,Jp=pl.formatPrefix,pl}function bv(t){return Math.max(0,-na(Math.abs(t)))}function _v(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(na(e)/3)))*3-na(Math.abs(t)))}function xv(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,na(e)-na(t))+1}function r0(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const tf=Symbol("implicit");function tg(){var t=new Md,e=[],r=[],i=tf;function n(s){let a=t.get(s);if(a===void 0){if(i!==tf)return i;t.set(s,a=e.push(s)-1)}return r[a%r.length]}return n.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new Md;for(const a of s)t.has(a)||t.set(a,e.push(a)-1);return n},n.range=function(s){return arguments.length?(r=Array.from(s),n):r.slice()},n.unknown=function(s){return arguments.length?(i=s,n):i},n.copy=function(){return tg(e,r).unknown(i)},r0.apply(n,arguments),n}function vv(t){return function(){return t}}function kv(t){return+t}var ef=[0,1];function Us(t){return t}function qh(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:vv(isNaN(e)?NaN:.5)}function wv(t,e){var r;return t>e&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function Tv(t,e,r){var i=t[0],n=t[1],s=e[0],a=e[1];return n<i?(i=qh(n,i),s=r(a,s)):(i=qh(i,n),s=r(s,a)),function(o){return s(i(o))}}function Ev(t,e,r){var i=Math.min(t.length,e.length)-1,n=new Array(i),s=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)n[a]=qh(t[a],t[a+1]),s[a]=r(e[a],e[a+1]);return function(o){var l=mb(t,o,1,i)-1;return s[l](n[l](o))}}function eg(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Cv(){var t=ef,e=ef,r=Z1,i,n,s,a=Us,o,l,u;function d(){var p=Math.min(t.length,e.length);return a!==Us&&(a=wv(t[0],t[p-1])),o=p>2?Ev:Tv,l=u=null,f}function f(p){return p==null||isNaN(p=+p)?s:(l||(l=o(t.map(i),e,r)))(i(a(p)))}return f.invert=function(p){return a(n((u||(u=o(e,t.map(i),ci)))(p)))},f.domain=function(p){return arguments.length?(t=Array.from(p,kv),d()):t.slice()},f.range=function(p){return arguments.length?(e=Array.from(p),d()):e.slice()},f.rangeRound=function(p){return e=Array.from(p),r=P_,d()},f.clamp=function(p){return arguments.length?(a=p?!0:Us,d()):a!==Us},f.interpolate=function(p){return arguments.length?(r=p,d()):r},f.unknown=function(p){return arguments.length?(s=p,f):s},function(p,g){return i=p,n=g,d()}}function rg(){return Cv()(Us,Us)}function Sv(t,e,r,i){var n=Ih(t,e,r),s;switch(i=nc(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(s=_v(n,a))&&(i.precision=s),Jp(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=xv(n,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=bv(n))&&(i.precision=s-(i.type==="%")*2);break}}return Qp(i)}function Av(t){var e=t.domain;return t.ticks=function(r){var i=e();return vb(i[0],i[i.length-1],r??10)},t.tickFormat=function(r,i){var n=e();return Sv(n[0],n[n.length-1],r??10,i)},t.nice=function(r){r==null&&(r=10);var i=e(),n=0,s=i.length-1,a=i[n],o=i[s],l,u,d=10;for(o<a&&(u=a,a=o,o=u,u=n,n=s,s=u);d-- >0;){if(u=gp(a,o,r),u===l)return i[n]=a,i[s]=o,e(i);if(u>0)a=Math.floor(a/u)*u,o=Math.ceil(o/u)*u;else if(u<0)a=Math.ceil(a*u)/u,o=Math.floor(o*u)/u;else break;l=u}return t},t}function ig(){var t=rg();return t.copy=function(){return eg(t,ig())},r0.apply(t,arguments),Av(t)}function Lv(t,e){t=t.slice();var r=0,i=t.length-1,n=t[r],s=t[i],a;return s<n&&(a=r,r=i,i=a,a=n,n=s,s=a),t[r]=e.floor(n),t[i]=e.ceil(s),t}const Xu=new Date,Ku=new Date;function hr(t,e,r,i){function n(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return n.floor=s=>(t(s=new Date(+s)),s),n.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),n.round=s=>{const a=n(s),o=n.ceil(s);return s-a<o-s?a:o},n.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),n.range=(s,a,o)=>{const l=[];if(s=n.ceil(s),o=o==null?1:Math.floor(o),!(s<a)||!(o>0))return l;let u;do l.push(u=new Date(+s)),e(s,o),t(s);while(u<s&&s<a);return l},n.filter=s=>hr(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;e(a,-1),!s(a););else for(;--o>=0;)for(;e(a,1),!s(a););}),r&&(n.count=(s,a)=>(Xu.setTime(+s),Ku.setTime(+a),t(Xu),t(Ku),Math.floor(r(Xu,Ku))),n.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?n.filter(i?a=>i(a)%s===0:a=>n.count(0,a)%s===0):n)),n}const sc=hr(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);sc.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?hr(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):sc);sc.range;const cn=1e3,Jr=cn*60,un=Jr*60,bn=un*24,i0=bn*7,rf=bn*30,Zu=bn*365,zs=hr(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*cn)},(t,e)=>(e-t)/cn,t=>t.getUTCSeconds());zs.range;const po=hr(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*cn)},(t,e)=>{t.setTime(+t+e*Jr)},(t,e)=>(e-t)/Jr,t=>t.getMinutes());po.range;const Dv=hr(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Jr)},(t,e)=>(e-t)/Jr,t=>t.getUTCMinutes());Dv.range;const go=hr(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*cn-t.getMinutes()*Jr)},(t,e)=>{t.setTime(+t+e*un)},(t,e)=>(e-t)/un,t=>t.getHours());go.range;const Mv=hr(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*un)},(t,e)=>(e-t)/un,t=>t.getUTCHours());Mv.range;const ps=hr(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Jr)/bn,t=>t.getDate()-1);ps.range;const n0=hr(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/bn,t=>t.getUTCDate()-1);n0.range;const Nv=hr(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/bn,t=>Math.floor(t/bn));Nv.range;function Es(t){return hr(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Jr)/i0)}const sa=Es(0),ac=Es(1),Bv=Es(2),Iv=Es(3),aa=Es(4),Ov=Es(5),Rv=Es(6);sa.range;ac.range;Bv.range;Iv.range;aa.range;Ov.range;Rv.range;function Cs(t){return hr(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/i0)}const ng=Cs(0),oc=Cs(1),Fv=Cs(2),Pv=Cs(3),oa=Cs(4),Yv=Cs(5),Vv=Cs(6);ng.range;oc.range;Fv.range;Pv.range;oa.range;Yv.range;Vv.range;const yo=hr(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());yo.range;const Uv=hr(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Uv.range;const _n=hr(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());_n.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:hr(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});_n.range;const gs=hr(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());gs.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:hr(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});gs.range;function zv(t,e,r,i,n,s){const a=[[zs,1,cn],[zs,5,5*cn],[zs,15,15*cn],[zs,30,30*cn],[s,1,Jr],[s,5,5*Jr],[s,15,15*Jr],[s,30,30*Jr],[n,1,un],[n,3,3*un],[n,6,6*un],[n,12,12*un],[i,1,bn],[i,2,2*bn],[r,1,i0],[e,1,rf],[e,3,3*rf],[t,1,Zu]];function o(u,d,f){const p=d<u;p&&([u,d]=[d,u]);const g=f&&typeof f.range=="function"?f:l(u,d,f),_=g?g.range(u,+d+1):[];return p?_.reverse():_}function l(u,d,f){const p=Math.abs(d-u)/f,g=q1(([,,w])=>w).right(a,p);if(g===a.length)return t.every(Ih(u/Zu,d/Zu,f));if(g===0)return sc.every(Math.max(Ih(u,d,f),1));const[_,k]=a[p/a[g-1][2]<a[g][2]/p?g-1:g];return _.every(k)}return[o,l]}const[Wv,Hv]=zv(_n,yo,sa,ps,go,po);function Qu(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ju(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ia(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function Gv(t){var e=t.dateTime,r=t.date,i=t.time,n=t.periods,s=t.days,a=t.shortDays,o=t.months,l=t.shortMonths,u=Oa(n),d=Ra(n),f=Oa(s),p=Ra(s),g=Oa(a),_=Ra(a),k=Oa(o),w=Ra(o),S=Oa(l),A=Ra(l),O={a:ct,A:Dt,b:vt,B:j,c:null,d:cf,e:cf,f:p6,g:T6,G:C6,H:h6,I:d6,j:f6,L:sg,m:g6,M:y6,p:ot,q:rt,Q:df,s:ff,S:m6,u:b6,U:_6,V:x6,w:v6,W:k6,x:null,X:null,y:w6,Y:E6,Z:S6,"%":hf},P={a:it,A:ut,b:bt,B:K,c:null,d:uf,e:uf,f:M6,g:U6,G:W6,H:A6,I:L6,j:D6,L:og,m:N6,M:B6,p:Ot,q:Y,Q:df,s:ff,S:I6,u:O6,U:R6,V:F6,w:P6,W:Y6,x:null,X:null,y:V6,Y:z6,Z:H6,"%":hf},W={a:M,A:C,b:v,B:D,c:m,d:of,e:of,f:o6,g:af,G:sf,H:lf,I:lf,j:i6,L:a6,m:r6,M:n6,p:N,q:e6,Q:c6,s:u6,S:s6,u:Kv,U:Zv,V:Qv,w:Xv,W:Jv,x:Q,X:b,y:af,Y:sf,Z:t6,"%":l6};O.x=q(r,O),O.X=q(i,O),O.c=q(e,O),P.x=q(r,P),P.X=q(i,P),P.c=q(e,P);function q(U,X){return function(F){var I=[],L=-1,J=0,T=U.length,ht,V,Yt;for(F instanceof Date||(F=new Date(+F));++L<T;)U.charCodeAt(L)===37&&(I.push(U.slice(J,L)),(V=nf[ht=U.charAt(++L)])!=null?ht=U.charAt(++L):V=ht==="e"?" ":"0",(Yt=X[ht])&&(ht=Yt(F,V)),I.push(ht),J=L+1);return I.push(U.slice(J,L)),I.join("")}}function z(U,X){return function(F){var I=Ia(1900,void 0,1),L=H(I,U,F+="",0),J,T;if(L!=F.length)return null;if("Q"in I)return new Date(I.Q);if("s"in I)return new Date(I.s*1e3+("L"in I?I.L:0));if(X&&!("Z"in I)&&(I.Z=0),"p"in I&&(I.H=I.H%12+I.p*12),I.m===void 0&&(I.m="q"in I?I.q:0),"V"in I){if(I.V<1||I.V>53)return null;"w"in I||(I.w=1),"Z"in I?(J=Ju(Ia(I.y,0,1)),T=J.getUTCDay(),J=T>4||T===0?oc.ceil(J):oc(J),J=n0.offset(J,(I.V-1)*7),I.y=J.getUTCFullYear(),I.m=J.getUTCMonth(),I.d=J.getUTCDate()+(I.w+6)%7):(J=Qu(Ia(I.y,0,1)),T=J.getDay(),J=T>4||T===0?ac.ceil(J):ac(J),J=ps.offset(J,(I.V-1)*7),I.y=J.getFullYear(),I.m=J.getMonth(),I.d=J.getDate()+(I.w+6)%7)}else("W"in I||"U"in I)&&("w"in I||(I.w="u"in I?I.u%7:"W"in I?1:0),T="Z"in I?Ju(Ia(I.y,0,1)).getUTCDay():Qu(Ia(I.y,0,1)).getDay(),I.m=0,I.d="W"in I?(I.w+6)%7+I.W*7-(T+5)%7:I.w+I.U*7-(T+6)%7);return"Z"in I?(I.H+=I.Z/100|0,I.M+=I.Z%100,Ju(I)):Qu(I)}}function H(U,X,F,I){for(var L=0,J=X.length,T=F.length,ht,V;L<J;){if(I>=T)return-1;if(ht=X.charCodeAt(L++),ht===37){if(ht=X.charAt(L++),V=W[ht in nf?X.charAt(L++):ht],!V||(I=V(U,F,I))<0)return-1}else if(ht!=F.charCodeAt(I++))return-1}return I}function N(U,X,F){var I=u.exec(X.slice(F));return I?(U.p=d.get(I[0].toLowerCase()),F+I[0].length):-1}function M(U,X,F){var I=g.exec(X.slice(F));return I?(U.w=_.get(I[0].toLowerCase()),F+I[0].length):-1}function C(U,X,F){var I=f.exec(X.slice(F));return I?(U.w=p.get(I[0].toLowerCase()),F+I[0].length):-1}function v(U,X,F){var I=S.exec(X.slice(F));return I?(U.m=A.get(I[0].toLowerCase()),F+I[0].length):-1}function D(U,X,F){var I=k.exec(X.slice(F));return I?(U.m=w.get(I[0].toLowerCase()),F+I[0].length):-1}function m(U,X,F){return H(U,e,X,F)}function Q(U,X,F){return H(U,r,X,F)}function b(U,X,F){return H(U,i,X,F)}function ct(U){return a[U.getDay()]}function Dt(U){return s[U.getDay()]}function vt(U){return l[U.getMonth()]}function j(U){return o[U.getMonth()]}function ot(U){return n[+(U.getHours()>=12)]}function rt(U){return 1+~~(U.getMonth()/3)}function it(U){return a[U.getUTCDay()]}function ut(U){return s[U.getUTCDay()]}function bt(U){return l[U.getUTCMonth()]}function K(U){return o[U.getUTCMonth()]}function Ot(U){return n[+(U.getUTCHours()>=12)]}function Y(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var X=q(U+="",O);return X.toString=function(){return U},X},parse:function(U){var X=z(U+="",!1);return X.toString=function(){return U},X},utcFormat:function(U){var X=q(U+="",P);return X.toString=function(){return U},X},utcParse:function(U){var X=z(U+="",!0);return X.toString=function(){return U},X}}}var nf={"-":"",_:" ",0:"0"},yr=/^\s*\d+/,qv=/^%/,jv=/[\\^$*+?|[\]().{}]/g;function Ae(t,e,r){var i=t<0?"-":"",n=(i?-t:t)+"",s=n.length;return i+(s<r?new Array(r-s+1).join(e)+n:n)}function $v(t){return t.replace(jv,"\\$&")}function Oa(t){return new RegExp("^(?:"+t.map($v).join("|")+")","i")}function Ra(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function Xv(t,e,r){var i=yr.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function Kv(t,e,r){var i=yr.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function Zv(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function Qv(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function Jv(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function sf(t,e,r){var i=yr.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function af(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function t6(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function e6(t,e,r){var i=yr.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function r6(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function of(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function i6(t,e,r){var i=yr.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function lf(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function n6(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function s6(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function a6(t,e,r){var i=yr.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function o6(t,e,r){var i=yr.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function l6(t,e,r){var i=qv.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function c6(t,e,r){var i=yr.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function u6(t,e,r){var i=yr.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function cf(t,e){return Ae(t.getDate(),e,2)}function h6(t,e){return Ae(t.getHours(),e,2)}function d6(t,e){return Ae(t.getHours()%12||12,e,2)}function f6(t,e){return Ae(1+ps.count(_n(t),t),e,3)}function sg(t,e){return Ae(t.getMilliseconds(),e,3)}function p6(t,e){return sg(t,e)+"000"}function g6(t,e){return Ae(t.getMonth()+1,e,2)}function y6(t,e){return Ae(t.getMinutes(),e,2)}function m6(t,e){return Ae(t.getSeconds(),e,2)}function b6(t){var e=t.getDay();return e===0?7:e}function _6(t,e){return Ae(sa.count(_n(t)-1,t),e,2)}function ag(t){var e=t.getDay();return e>=4||e===0?aa(t):aa.ceil(t)}function x6(t,e){return t=ag(t),Ae(aa.count(_n(t),t)+(_n(t).getDay()===4),e,2)}function v6(t){return t.getDay()}function k6(t,e){return Ae(ac.count(_n(t)-1,t),e,2)}function w6(t,e){return Ae(t.getFullYear()%100,e,2)}function T6(t,e){return t=ag(t),Ae(t.getFullYear()%100,e,2)}function E6(t,e){return Ae(t.getFullYear()%1e4,e,4)}function C6(t,e){var r=t.getDay();return t=r>=4||r===0?aa(t):aa.ceil(t),Ae(t.getFullYear()%1e4,e,4)}function S6(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ae(e/60|0,"0",2)+Ae(e%60,"0",2)}function uf(t,e){return Ae(t.getUTCDate(),e,2)}function A6(t,e){return Ae(t.getUTCHours(),e,2)}function L6(t,e){return Ae(t.getUTCHours()%12||12,e,2)}function D6(t,e){return Ae(1+n0.count(gs(t),t),e,3)}function og(t,e){return Ae(t.getUTCMilliseconds(),e,3)}function M6(t,e){return og(t,e)+"000"}function N6(t,e){return Ae(t.getUTCMonth()+1,e,2)}function B6(t,e){return Ae(t.getUTCMinutes(),e,2)}function I6(t,e){return Ae(t.getUTCSeconds(),e,2)}function O6(t){var e=t.getUTCDay();return e===0?7:e}function R6(t,e){return Ae(ng.count(gs(t)-1,t),e,2)}function lg(t){var e=t.getUTCDay();return e>=4||e===0?oa(t):oa.ceil(t)}function F6(t,e){return t=lg(t),Ae(oa.count(gs(t),t)+(gs(t).getUTCDay()===4),e,2)}function P6(t){return t.getUTCDay()}function Y6(t,e){return Ae(oc.count(gs(t)-1,t),e,2)}function V6(t,e){return Ae(t.getUTCFullYear()%100,e,2)}function U6(t,e){return t=lg(t),Ae(t.getUTCFullYear()%100,e,2)}function z6(t,e){return Ae(t.getUTCFullYear()%1e4,e,4)}function W6(t,e){var r=t.getUTCDay();return t=r>=4||r===0?oa(t):oa.ceil(t),Ae(t.getUTCFullYear()%1e4,e,4)}function H6(){return"+0000"}function hf(){return"%"}function df(t){return+t}function ff(t){return Math.floor(+t/1e3)}var Fs,lc;G6({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function G6(t){return Fs=Gv(t),lc=Fs.format,Fs.parse,Fs.utcFormat,Fs.utcParse,Fs}function q6(t){return new Date(t)}function j6(t){return t instanceof Date?+t:+new Date(+t)}function cg(t,e,r,i,n,s,a,o,l,u){var d=rg(),f=d.invert,p=d.domain,g=u(".%L"),_=u(":%S"),k=u("%I:%M"),w=u("%I %p"),S=u("%a %d"),A=u("%b %d"),O=u("%B"),P=u("%Y");function W(q){return(l(q)<q?g:o(q)<q?_:a(q)<q?k:s(q)<q?w:i(q)<q?n(q)<q?S:A:r(q)<q?O:P)(q)}return d.invert=function(q){return new Date(f(q))},d.domain=function(q){return arguments.length?p(Array.from(q,j6)):p().map(q6)},d.ticks=function(q){var z=p();return t(z[0],z[z.length-1],q??10)},d.tickFormat=function(q,z){return z==null?W:u(z)},d.nice=function(q){var z=p();return(!q||typeof q.range!="function")&&(q=e(z[0],z[z.length-1],q??10)),q?p(Lv(z,q)):d},d.copy=function(){return eg(d,cg(t,e,r,i,n,s,a,o,l,u))},d}function $6(){return r0.apply(cg(Wv,Hv,_n,yo,sa,ps,go,po,zs,lc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ke(t){return function(){return t}}const pf=Math.abs,xr=Math.atan2,es=Math.cos,X6=Math.max,th=Math.min,Mi=Math.sin,Ws=Math.sqrt,Or=1e-12,mo=Math.PI,cc=mo/2,Nl=2*mo;function K6(t){return t>1?0:t<-1?mo:Math.acos(t)}function gf(t){return t>=1?cc:t<=-1?-cc:Math.asin(t)}function ug(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new sv(e)}function Z6(t){return t.innerRadius}function Q6(t){return t.outerRadius}function J6(t){return t.startAngle}function tk(t){return t.endAngle}function ek(t){return t&&t.padAngle}function rk(t,e,r,i,n,s,a,o){var l=r-t,u=i-e,d=a-n,f=o-s,p=f*l-d*u;if(!(p*p<Or))return p=(d*(e-s)-f*(t-n))/p,[t+p*l,e+p*u]}function gl(t,e,r,i,n,s,a){var o=t-r,l=e-i,u=(a?s:-s)/Ws(o*o+l*l),d=u*l,f=-u*o,p=t+d,g=e+f,_=r+d,k=i+f,w=(p+_)/2,S=(g+k)/2,A=_-p,O=k-g,P=A*A+O*O,W=n-s,q=p*k-_*g,z=(O<0?-1:1)*Ws(X6(0,W*W*P-q*q)),H=(q*O-A*z)/P,N=(-q*A-O*z)/P,M=(q*O+A*z)/P,C=(-q*A+O*z)/P,v=H-w,D=N-S,m=M-w,Q=C-S;return v*v+D*D>m*m+Q*Q&&(H=M,N=C),{cx:H,cy:N,x01:-d,y01:-f,x11:H*(n/W-1),y11:N*(n/W-1)}}function jh(){var t=Z6,e=Q6,r=Ke(0),i=null,n=J6,s=tk,a=ek,o=null,l=ug(u);function u(){var d,f,p=+t.apply(this,arguments),g=+e.apply(this,arguments),_=n.apply(this,arguments)-cc,k=s.apply(this,arguments)-cc,w=pf(k-_),S=k>_;if(o||(o=d=l()),g<p&&(f=g,g=p,p=f),!(g>Or))o.moveTo(0,0);else if(w>Nl-Or)o.moveTo(g*es(_),g*Mi(_)),o.arc(0,0,g,_,k,!S),p>Or&&(o.moveTo(p*es(k),p*Mi(k)),o.arc(0,0,p,k,_,S));else{var A=_,O=k,P=_,W=k,q=w,z=w,H=a.apply(this,arguments)/2,N=H>Or&&(i?+i.apply(this,arguments):Ws(p*p+g*g)),M=th(pf(g-p)/2,+r.apply(this,arguments)),C=M,v=M,D,m;if(N>Or){var Q=gf(N/p*Mi(H)),b=gf(N/g*Mi(H));(q-=Q*2)>Or?(Q*=S?1:-1,P+=Q,W-=Q):(q=0,P=W=(_+k)/2),(z-=b*2)>Or?(b*=S?1:-1,A+=b,O-=b):(z=0,A=O=(_+k)/2)}var ct=g*es(A),Dt=g*Mi(A),vt=p*es(W),j=p*Mi(W);if(M>Or){var ot=g*es(O),rt=g*Mi(O),it=p*es(P),ut=p*Mi(P),bt;if(w<mo)if(bt=rk(ct,Dt,it,ut,ot,rt,vt,j)){var K=ct-bt[0],Ot=Dt-bt[1],Y=ot-bt[0],U=rt-bt[1],X=1/Mi(K6((K*Y+Ot*U)/(Ws(K*K+Ot*Ot)*Ws(Y*Y+U*U)))/2),F=Ws(bt[0]*bt[0]+bt[1]*bt[1]);C=th(M,(p-F)/(X-1)),v=th(M,(g-F)/(X+1))}else C=v=0}z>Or?v>Or?(D=gl(it,ut,ct,Dt,g,v,S),m=gl(ot,rt,vt,j,g,v,S),o.moveTo(D.cx+D.x01,D.cy+D.y01),v<M?o.arc(D.cx,D.cy,v,xr(D.y01,D.x01),xr(m.y01,m.x01),!S):(o.arc(D.cx,D.cy,v,xr(D.y01,D.x01),xr(D.y11,D.x11),!S),o.arc(0,0,g,xr(D.cy+D.y11,D.cx+D.x11),xr(m.cy+m.y11,m.cx+m.x11),!S),o.arc(m.cx,m.cy,v,xr(m.y11,m.x11),xr(m.y01,m.x01),!S))):(o.moveTo(ct,Dt),o.arc(0,0,g,A,O,!S)):o.moveTo(ct,Dt),!(p>Or)||!(q>Or)?o.lineTo(vt,j):C>Or?(D=gl(vt,j,ot,rt,p,-C,S),m=gl(ct,Dt,it,ut,p,-C,S),o.lineTo(D.cx+D.x01,D.cy+D.y01),C<M?o.arc(D.cx,D.cy,C,xr(D.y01,D.x01),xr(m.y01,m.x01),!S):(o.arc(D.cx,D.cy,C,xr(D.y01,D.x01),xr(D.y11,D.x11),!S),o.arc(0,0,p,xr(D.cy+D.y11,D.cx+D.x11),xr(m.cy+m.y11,m.cx+m.x11),S),o.arc(m.cx,m.cy,C,xr(m.y11,m.x11),xr(m.y01,m.x01),!S))):o.arc(0,0,p,W,P,S)}if(o.closePath(),d)return o=null,d+""||null}return u.centroid=function(){var d=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,f=(+n.apply(this,arguments)+ +s.apply(this,arguments))/2-mo/2;return[es(f)*d,Mi(f)*d]},u.innerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:Ke(+d),u):t},u.outerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:Ke(+d),u):e},u.cornerRadius=function(d){return arguments.length?(r=typeof d=="function"?d:Ke(+d),u):r},u.padRadius=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:Ke(+d),u):i},u.startAngle=function(d){return arguments.length?(n=typeof d=="function"?d:Ke(+d),u):n},u.endAngle=function(d){return arguments.length?(s=typeof d=="function"?d:Ke(+d),u):s},u.padAngle=function(d){return arguments.length?(a=typeof d=="function"?d:Ke(+d),u):a},u.context=function(d){return arguments.length?(o=d??null,u):o},u}function hg(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function dg(t){this._context=t}dg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function jr(t){return new dg(t)}function ik(t){return t[0]}function nk(t){return t[1]}function Ta(t,e){var r=Ke(!0),i=null,n=jr,s=null,a=ug(o);t=typeof t=="function"?t:t===void 0?ik:Ke(t),e=typeof e=="function"?e:e===void 0?nk:Ke(e);function o(l){var u,d=(l=hg(l)).length,f,p=!1,g;for(i==null&&(s=n(g=a())),u=0;u<=d;++u)!(u<d&&r(f=l[u],u,l))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+t(f,u,l),+e(f,u,l));if(g)return s=null,g+""||null}return o.x=function(l){return arguments.length?(t=typeof l=="function"?l:Ke(+l),o):t},o.y=function(l){return arguments.length?(e=typeof l=="function"?l:Ke(+l),o):e},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ke(!!l),o):r},o.curve=function(l){return arguments.length?(n=l,i!=null&&(s=n(i)),o):n},o.context=function(l){return arguments.length?(l==null?i=s=null:s=n(i=l),o):i},o}function sk(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function ak(t){return t}function ok(){var t=ak,e=sk,r=null,i=Ke(0),n=Ke(Nl),s=Ke(0);function a(o){var l,u=(o=hg(o)).length,d,f,p=0,g=new Array(u),_=new Array(u),k=+i.apply(this,arguments),w=Math.min(Nl,Math.max(-Nl,n.apply(this,arguments)-k)),S,A=Math.min(Math.abs(w)/u,s.apply(this,arguments)),O=A*(w<0?-1:1),P;for(l=0;l<u;++l)(P=_[g[l]=l]=+t(o[l],l,o))>0&&(p+=P);for(e!=null?g.sort(function(W,q){return e(_[W],_[q])}):r!=null&&g.sort(function(W,q){return r(o[W],o[q])}),l=0,f=p?(w-u*O)/p:0;l<u;++l,k=S)d=g[l],P=_[d],S=k+(P>0?P*f:0)+O,_[d]={data:o[d],index:l,value:P,startAngle:k,endAngle:S,padAngle:A};return _}return a.value=function(o){return arguments.length?(t=typeof o=="function"?o:Ke(+o),a):t},a.sortValues=function(o){return arguments.length?(e=o,r=null,a):e},a.sort=function(o){return arguments.length?(r=o,e=null,a):r},a.startAngle=function(o){return arguments.length?(i=typeof o=="function"?o:Ke(+o),a):i},a.endAngle=function(o){return arguments.length?(n=typeof o=="function"?o:Ke(+o),a):n},a.padAngle=function(o){return arguments.length?(s=typeof o=="function"?o:Ke(+o),a):s},a}function uc(){}function hc(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function fg(t){this._context=t}fg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:hc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:hc(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function la(t){return new fg(t)}function pg(t){this._context=t}pg.prototype={areaStart:uc,areaEnd:uc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:hc(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function lk(t){return new pg(t)}function gg(t){this._context=t}gg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:hc(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ck(t){return new gg(t)}function yg(t){this._context=t}yg.prototype={areaStart:uc,areaEnd:uc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function uk(t){return new yg(t)}function yf(t){return t<0?-1:1}function mf(t,e,r){var i=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(i||n<0&&-0),a=(r-t._y1)/(n||i<0&&-0),o=(s*n+a*i)/(i+n);return(yf(s)+yf(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(o))||0}function bf(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function eh(t,e,r){var i=t._x0,n=t._y0,s=t._x1,a=t._y1,o=(s-i)/3;t._context.bezierCurveTo(i+o,n+o*e,s-o,a-o*r,s,a)}function dc(t){this._context=t}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:eh(this,this._t0,bf(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,eh(this,bf(this,r=mf(this,t,e)),r);break;default:eh(this,this._t0,r=mf(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function mg(t){this._context=new bg(t)}(mg.prototype=Object.create(dc.prototype)).point=function(t,e){dc.prototype.point.call(this,e,t)};function bg(t){this._context=t}bg.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,n,s){this._context.bezierCurveTo(e,t,i,r,s,n)}};function hk(t){return new dc(t)}function dk(t){return new mg(t)}function _g(t){this._context=t}_g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=_f(t),n=_f(e),s=0,a=1;a<r;++s,++a)this._context.bezierCurveTo(i[0][s],n[0][s],i[1][s],n[1][s],t[a],e[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function _f(t){var e,r=t.length-1,i,n=new Array(r),s=new Array(r),a=new Array(r);for(n[0]=0,s[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)n[e]=1,s[e]=4,a[e]=4*t[e]+2*t[e+1];for(n[r-1]=2,s[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)i=n[e]/s[e-1],s[e]-=i,a[e]-=i*a[e-1];for(n[r-1]=a[r-1]/s[r-1],e=r-2;e>=0;--e)n[e]=(a[e]-n[e+1])/s[e];for(s[r-1]=(t[r]+n[r-1])/2,e=0;e<r-1;++e)s[e]=2*t[e+1]-n[e+1];return[n,s]}function fk(t){return new _g(t)}function Jc(t,e){this._context=t,this._t=e}Jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function pk(t){return new Jc(t,.5)}function gk(t){return new Jc(t,0)}function yk(t){return new Jc(t,1)}function ja(t,e,r){this.k=t,this.x=e,this.y=r}ja.prototype={constructor:ja,scale:function(t){return t===1?this:new ja(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ja(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ja.prototype;/*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE */function Rn(t){return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rn(t)}function $h(t,e){return $h=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},$h(t,e)}function mk(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(t,e,r){return mk()?Bl=Reflect.construct:Bl=function(n,s,a){var o=[null];o.push.apply(o,s);var l=Function.bind.apply(n,o),u=new l;return a&&$h(u,a.prototype),u},Bl.apply(null,arguments)}function li(t){return bk(t)||_k(t)||xk(t)||vk()}function bk(t){if(Array.isArray(t))return Xh(t)}function _k(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function xk(t,e){if(t){if(typeof t=="string")return Xh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xh(t,e)}}function Xh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function vk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -1 +1 @@
1
- var f=Object.defineProperty;var C=(t,e,r)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var o=(t,e,r)=>(C(t,typeof e!="symbol"?e+"":e,r),r);import{bz as k,u as v,r as d,bO as w,j as s,C as P,A as S,fi as u}from"./index-e40263f5.js";import{u as T,a as g}from"./unknownify-02b43b97.js";import{L as A,C as I,a as M,b as L,P as N,c as R,T as q,p as _,e as D,f as E}from"./chartjs-adapter-date-fns.esm-c4ad9167.js";import{B as j}from"./useProjectRole-7a147557.js";import"./index-8187b023.js";import"./index-53da3ab8.js";class z{constructor(e){o(this,"current",0);o(this,"all");this.all=e}next(){const e=this.all[this.current];return this.current=(this.current+1)%this.all.length,e}}const m=["circle","rect","rectRounded","rectRot","triangle"],B=(t,e)=>t.map(r=>({x:r[0],y:e(r[1])})),H=(t,e)=>({locale:e.locale,responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},color:t.palette.text.secondary,plugins:{tooltip:{backgroundColor:t.palette.background.paper,bodyColor:t.palette.text.primary,titleColor:t.palette.action.active,borderColor:t.palette.primary.main,borderWidth:1,padding:10,boxPadding:5,usePointStyle:!0,callbacks:{title:r=>u(1e3*r[0].parsed.x,e.locale)},itemSort:(r,i)=>i.parsed.y-r.parsed.y},legend:{position:"bottom",align:"start",labels:{boxWidth:10,boxHeight:10,usePointStyle:!0,padding:24}},title:{text:"Top 10 requests per second in the last 6 hours",position:"top",align:"start",display:!0,font:{size:16,weight:"400"},color:t.palette.text.primary,padding:{bottom:32}}},scales:{y:{type:"linear",title:{display:!0,text:"Requests per second",color:t.palette.text.secondary},suggestedMin:0,ticks:{precision:0,color:t.palette.text.secondary},grid:{color:t.palette.divider,borderColor:t.palette.divider}},x:{type:"time",time:{unit:"minute"},grid:{display:!0,color:t.palette.divider,borderColor:t.palette.divider},ticks:{callback:(r,i,a)=>u(a[i].value*1e3,e.locale)}}}});class O{constructor(e){o(this,"items");o(this,"picked",new Map);this.items=new z(e)}pick(e){return this.picked.has(e)||this.picked.set(e,this.items.next()),this.picked.get(e)}}const W=(t,e)=>{var r;if((r=e==null?void 0:e.data)!=null&&r.result){const i=new O([t.palette.success,t.palette.error,t.palette.primary,t.palette.warning]);return e.data.result.map((a,y)=>{var c,p;const n=g((c=a.metric)==null?void 0:c.endpoint),b=g((p=a.metric)==null?void 0:p.appName),l=i.pick(n),h=a.values||[];return{label:`${n}: ${b}`,borderColor:l.main,backgroundColor:l.main,data:B(h,x=>parseFloat(x)),elements:{point:{radius:4,pointStyle:m[y%m.length]},line:{borderDash:[8,4]}}}})}return[]},V=()=>{const{locationSettings:t}=k(),{metrics:e}=T(),r=v(),i=d.useMemo(()=>H(r,t),[r,t]);w("Network - Traffic");const a=d.useMemo(()=>({datasets:W(r,e)}),[r,e,t]);return s(P,{condition:a.datasets.length===0,show:s(S,{severity:"warning",children:"No data available."}),elseShow:s(j,{sx:{display:"grid",gap:4},children:s("div",{style:{height:400},children:s(A,{data:a,options:i,"aria-label":"An instance metrics line chart with two lines: requests per second for admin API and requests per second for client API"})})})})};I.register(M,L,N,R,q,_,D,E);export{V as NetworkTraffic,V as default};
1
+ var f=Object.defineProperty;var C=(t,e,r)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var o=(t,e,r)=>(C(t,typeof e!="symbol"?e+"":e,r),r);import{bz as k,u as v,r as d,bO as w,j as s,C as P,A as S,fi as u}from"./index-2a2ab5f7.js";import{u as T,a as g}from"./unknownify-cbe206ad.js";import{L as A,C as I,a as M,b as L,P as N,c as R,T as q,p as _,e as D,f as E}from"./chartjs-adapter-date-fns.esm-f9aa93ea.js";import{B as j}from"./useProjectRole-c87a3043.js";import"./index-a0912377.js";import"./index-9d101e00.js";class z{constructor(e){o(this,"current",0);o(this,"all");this.all=e}next(){const e=this.all[this.current];return this.current=(this.current+1)%this.all.length,e}}const m=["circle","rect","rectRounded","rectRot","triangle"],B=(t,e)=>t.map(r=>({x:r[0],y:e(r[1])})),H=(t,e)=>({locale:e.locale,responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},color:t.palette.text.secondary,plugins:{tooltip:{backgroundColor:t.palette.background.paper,bodyColor:t.palette.text.primary,titleColor:t.palette.action.active,borderColor:t.palette.primary.main,borderWidth:1,padding:10,boxPadding:5,usePointStyle:!0,callbacks:{title:r=>u(1e3*r[0].parsed.x,e.locale)},itemSort:(r,i)=>i.parsed.y-r.parsed.y},legend:{position:"bottom",align:"start",labels:{boxWidth:10,boxHeight:10,usePointStyle:!0,padding:24}},title:{text:"Top 10 requests per second in the last 6 hours",position:"top",align:"start",display:!0,font:{size:16,weight:"400"},color:t.palette.text.primary,padding:{bottom:32}}},scales:{y:{type:"linear",title:{display:!0,text:"Requests per second",color:t.palette.text.secondary},suggestedMin:0,ticks:{precision:0,color:t.palette.text.secondary},grid:{color:t.palette.divider,borderColor:t.palette.divider}},x:{type:"time",time:{unit:"minute"},grid:{display:!0,color:t.palette.divider,borderColor:t.palette.divider},ticks:{callback:(r,i,a)=>u(a[i].value*1e3,e.locale)}}}});class O{constructor(e){o(this,"items");o(this,"picked",new Map);this.items=new z(e)}pick(e){return this.picked.has(e)||this.picked.set(e,this.items.next()),this.picked.get(e)}}const W=(t,e)=>{var r;if((r=e==null?void 0:e.data)!=null&&r.result){const i=new O([t.palette.success,t.palette.error,t.palette.primary,t.palette.warning]);return e.data.result.map((a,y)=>{var c,p;const n=g((c=a.metric)==null?void 0:c.endpoint),b=g((p=a.metric)==null?void 0:p.appName),l=i.pick(n),h=a.values||[];return{label:`${n}: ${b}`,borderColor:l.main,backgroundColor:l.main,data:B(h,x=>parseFloat(x)),elements:{point:{radius:4,pointStyle:m[y%m.length]},line:{borderDash:[8,4]}}}})}return[]},V=()=>{const{locationSettings:t}=k(),{metrics:e}=T(),r=v(),i=d.useMemo(()=>H(r,t),[r,t]);w("Network - Traffic");const a=d.useMemo(()=>({datasets:W(r,e)}),[r,e,t]);return s(P,{condition:a.datasets.length===0,show:s(S,{severity:"warning",children:"No data available."}),elseShow:s(j,{sx:{display:"grid",gap:4},children:s("div",{style:{height:400},children:s(A,{data:a,options:i,"aria-label":"An instance metrics line chart with two lines: requests per second for admin API and requests per second for client API"})})})})};I.register(M,L,N,R,q,_,D,E);export{V as NetworkTraffic,V as default};