unleash-server 4.22.2 → 4.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/db/project-store.js +2 -1
- package/dist/lib/db/project-store.js.map +1 -1
- package/dist/lib/services/project-service.js +1 -1
- package/dist/lib/services/project-service.js.map +1 -1
- package/dist/lib/types/model.d.ts +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +6 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/proxy/proxy.e2e.test.js +1 -1
- package/dist/test/e2e/api/proxy/proxy.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/api-token-service.e2e.test.js +1 -0
- package/dist/test/e2e/services/api-token-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/project-service.e2e.test.js +44 -0
- package/dist/test/e2e/services/project-service.e2e.test.js.map +1 -1
- package/dist/test/fixtures/fake-project-store.js +1 -0
- package/dist/test/fixtures/fake-project-store.js.map +1 -1
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/{CreateProject-51932050.js → CreateProject-a2c9a780.js} +1 -1
- package/frontend/build/static/{Error-e6e1194a.js → Error-38b8cdc0.js} +1 -1
- package/frontend/build/static/{ExpandMore-d71bbced.js → ExpandMore-ee840700.js} +1 -1
- package/frontend/build/static/{FeatureArchiveDialog-fd71aac2.js → FeatureArchiveDialog-0d7ae6c3.js} +1 -1
- package/frontend/build/static/{FeatureMetricsChart-66e2ebdf.js → FeatureMetricsChart-ed667dfd.js} +1 -1
- package/frontend/build/static/FeatureViewLazyExport-1b33033a.js +7 -0
- package/frontend/build/static/{LazyAdminExport-17ef1739.js → LazyAdminExport-f1db04ed.js} +2 -2
- package/frontend/build/static/{LazyProjectExport-96365c31.js → LazyProjectExport-984413bf.js} +1 -1
- package/frontend/build/static/{NetworkOverview-02d7cec9.js → NetworkOverview-c9972cf4.js} +1 -1
- package/frontend/build/static/{NetworkTraffic-ea8ea762.js → NetworkTraffic-b4d65658.js} +1 -1
- package/frontend/build/static/{Playground-1b14c01c.js → Playground-82d86aa7.js} +1 -1
- package/frontend/build/static/{StrategyItemContainer-7ce39bda.js → StrategyItemContainer-72e360fd.js} +1 -1
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-8ccfeb24.js → chartjs-adapter-date-fns.esm-00d0c032.js} +1 -1
- package/frontend/build/static/{index-17782336.js → index-78310b22.js} +1 -1
- package/frontend/build/static/{index-1d165488.js → index-99d4171f.js} +61 -61
- package/frontend/build/static/{index-96dcc77e.js → index-c65a88d1.js} +1 -1
- package/frontend/build/static/{unknownify-132fbce3.js → unknownify-9d8df72f.js} +1 -1
- package/frontend/build/static/{useProjectRole-f048973d.js → useProjectRole-dba93dda.js} +1 -1
- package/package.json +1 -1
- package/frontend/build/static/FeatureViewLazyExport-3403c2b4.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{fx as j4,fy as $4,fz as X4,fA as K4,s as pp,r as Lh,j as Cl,bL as Z4,fB as Q4,C as J4,A as tb,fC as eb}from"./index-
|
|
1
|
+
import{fx as j4,fy as $4,fz as X4,fA as K4,s as pp,r as Lh,j as Cl,bL as Z4,fB as Q4,C as J4,A as tb,fC as eb}from"./index-99d4171f.js";import{v as rb}from"./v4-a960c1f4.js";import{u as ib,a as gp}from"./unknownify-9d8df72f.js";function nb(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={},sb={get exports(){return Dh},set exports(t){Dh=t}};(function(t,e){(function(r,i){t.exports=i()})(j4,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}/,ts=/\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,ts),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,nb("./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)?)?$/,Kn=/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(!Kn.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 Zn(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])),Zn(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)}),Zn(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)}),Zn(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=Qn(wt,h)});var Bs=/([\+\-]|\d\d)/gi;function Qn(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 yd(){return!!this.isValid()&&this._isUTC&&this._offset===0}i.updateOffset=function(){};var Y4=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,V4=/^(-|\+)?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=Y4.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=V4.exec(h))?(x=R[1]==="-"?-1:1,E={y:Jn(R[2],x),M:Jn(R[3],x),w:Jn(R[4],x),d:Jn(R[5],x),h:Jn(R[6],x),m:Jn(R[7],x),s:Jn(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=md(nt,yt):((Ct=md(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 Jn(h,y){return h=h&&parseFloat(h.replace(",",".")),(isNaN(h)?0:h)*y}function md(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 bd(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),_d(this,si(x,E),h),this}}function _d(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=bd(1,"add"),Pe=bd(-1,"subtract");function xd(h){return typeof h=="string"||h instanceof String}function U4(h){return q(h)||d(h)||xd(h)||u(h)||function(y){var x=n(y),E=!1;return x&&(E=y.filter(function(R){return!u(R)&&xd(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 vd(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 kd(){return this._locale}var wd=126227808e5;function Is(h,y){return(h%y+y)%y}function Td(h,y,x){return h<100&&0<=h?new Date(h+400,y,x)-wd:new Date(h,y,x).valueOf()}function Ed(h,y,x){return h<100&&0<=h?Date.UTC(h+400,y,x)-wd: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 Cd(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,ts),st("gggg",In,ts),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,ts=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 z4(h,y){y[Ut]=F(1e3*("0."+h))}for(Mn="S";Mn.length<=9;Mn+="S")Gt(Mn,z4);Bn=I("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName"),T=W.prototype;function Sd(h){return h}T.add=ee,T.calendar=function(x,R){arguments.length===1&&(arguments[0]?U4(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?Ed:Td,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=vd,T.localeData=kd,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?Ed:Td,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 Cd.call(this,h,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},T.isoWeekYear=function(h){return Cd.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=ts,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=Qn(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?_d(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=Qn(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=yd,T.isUTC=yd,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 Ad(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=Sd,ce.postformat=Sd,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 Ld(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 Dd(h){return h<0?Math.floor(h):Math.ceil(h)}function Md(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"),ts=Xi("Q"),Nn=Xi("y");function es(h){return function(){return this.isValid()?this._data[h]:NaN}}var Bn=es("milliseconds"),In=es("seconds"),ll=es("minutes"),ce=es("hours"),W4=es("days"),H4=es("months"),G4=es("years"),Ki=Math.round,Os={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function q4(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 Ld(this,h,y,1)},Ce.subtract=function(h,y){return Ld(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+Md(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=ts,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*Dd(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(Md(y)),y-=Dd(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=W4,Ce.weeks=function(){return X(this.days()/7)},Ce.months=H4,Ce.years=G4,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=q4(this,!x,E,h),x&&(y=h.pastFuture(+this,y)),h.postformat(y)},Ce.toISOString=cl,Ce.toString=cl,Ce.toJSON=cl,Ce.locale=vd,Ce.localeData=kd,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 Ad(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 Ad(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})})(sb);const mi=Dh;var G1={};Object.defineProperty(G1,"__esModule",{value:!0});var kn=G1.sanitizeUrl=void 0,ab=/^([^\w]*)(javascript|data|vbscript)/im,ob=/&#(\w+)(^\w|;)?/g,lb=/&(newline|tab);/gi,cb=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,ub=/^.+(:|:)/gim,hb=[".","/"];function db(t){return hb.indexOf(t[0])>-1}function fb(t){return t.replace(ob,function(e,r){return String.fromCharCode(r)})}function pb(t){var e=fb(t||"").replace(lb,"").replace(cb,"").trim();if(!e)return"about:blank";if(db(e))return e;var r=e.match(ub);if(!r)return e;var i=r[0];return ab.test(i)?"about:blank":e}kn=G1.sanitizeUrl=pb;function Sl(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gb(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===gb?t:yb,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 yb(){return 0}function mb(t){return t===null?NaN:+t}const bb=q1(Sl),_b=bb.right;q1(mb).center;const xb=_b;class Nd extends Map{constructor(e,r=wb){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(Bd(this,e))}has(e){return super.has(Bd(this,e))}set(e,r){return super.set(vb(this,e),r)}delete(e){return super.delete(kb(this,e))}}function Bd({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):r}function vb({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function kb({_intern:t,_key:e},r){const i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function wb(t){return t!==null&&typeof t=="object"?t.valueOf():t}var Mh=Math.sqrt(50),Nh=Math.sqrt(10),Bh=Math.sqrt(2);function Tb(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=yp(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 yp(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 Eb(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 Cb(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 Sb(t){return t}var Al=1,zu=2,Oh=3,ul=4,Id=1e-6;function Ab(t){return"translate("+t+",0)"}function Lb(t){return"translate(0,"+t+")"}function Db(t){return e=>+t(e)}function Mb(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Nb(){return!this.__axis}function mp(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?Ab:Lb;function p(g){var _=i??(e.ticks?e.ticks.apply(e,r):e.domain()),k=n??(e.tickFormat?e.tickFormat.apply(e,r):Sb),w=Math.max(s,0)+o,S=e.range(),A=+S[0]+l,O=+S[S.length-1]+l,P=(e.bandwidth?Mb:Db)(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",Id).attr("transform",function(v){return isFinite(v=P(v))?f(v+l):this.getAttribute("transform")}),N.attr("opacity",Id).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(Nb).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 Bb(t){return mp(Al,t)}function Ib(t){return mp(Oh,t)}var Ob={value:()=>{}};function bp(){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 Rb(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=bp.prototype={constructor:Ll,on:function(t,e){var r=this._,i=Rb(t+"",r),n,s=-1,a=i.length;if(arguments.length<2){for(;++s<a;)if((n=(t=i[s]).type)&&(n=Fb(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]=Od(r[n],t.name,e);else if(e==null)for(n in r)r[n]=Od(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 Fb(t,e){for(var r=0,i=t.length,n;r<i;++r)if((n=t[r]).name===e)return n.value}function Od(t,e,r){for(var i=0,n=t.length;i<n;++i)if(t[i].name===e){t[i]=Ob,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 Rd={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)),Rd.hasOwnProperty(e)?{space:Rd[e],local:t}:t}function Pb(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 Yb(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _p(t){var e=$c(t);return(e.local?Yb:Pb)(e)}function Vb(){}function j1(t){return t==null?Vb:function(){return this.querySelector(t)}}function Ub(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 xp(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function zb(){return[]}function vp(t){return t==null?zb:function(){return this.querySelectorAll(t)}}function Wb(t){return function(){return xp(t.apply(this,arguments))}}function Hb(t){typeof t=="function"?t=Wb(t):t=vp(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 kp(t){return function(){return this.matches(t)}}function wp(t){return function(e){return e.matches(t)}}var Gb=Array.prototype.find;function qb(t){return function(){return Gb.call(this.children,t)}}function jb(){return this.firstElementChild}function $b(t){return this.select(t==null?jb:qb(typeof t=="function"?t:wp(t)))}var Xb=Array.prototype.filter;function Kb(){return Array.from(this.children)}function Zb(t){return function(){return Xb.call(this.children,t)}}function Qb(t){return this.selectAll(t==null?Kb:Zb(typeof t=="function"?t:wp(t)))}function Jb(t){typeof t!="function"&&(t=kp(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 Tp(t){return new Array(t.length)}function t5(){return new Nr(this._enter||this._groups.map(Tp),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 e5(t){return function(){return t}}function r5(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 i5(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 n5(t){return t.__data__}function s5(t,e){if(!arguments.length)return Array.from(this,n5);var r=e?i5:r5,i=this._parents,n=this._groups;typeof t!="function"&&(t=e5(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=a5(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 a5(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function o5(){return new Nr(this._exit||this._groups.map(Tp),this._parents)}function l5(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 c5(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 u5(){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 h5(t){t||(t=d5);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 d5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function f5(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function p5(){return Array.from(this)}function g5(){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 y5(){let t=0;for(const e of this)++t;return t}function m5(){return!this.node()}function b5(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 _5(t){return function(){this.removeAttribute(t)}}function x5(t){return function(){this.removeAttributeNS(t.space,t.local)}}function v5(t,e){return function(){this.setAttribute(t,e)}}function k5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function w5(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function T5(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 E5(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?x5:_5:typeof e=="function"?r.local?T5:w5:r.local?k5:v5)(r,e))}function Ep(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function C5(t){return function(){this.style.removeProperty(t)}}function S5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function A5(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function L5(t,e,r){return arguments.length>1?this.each((e==null?C5:typeof e=="function"?A5:S5)(t,e,r??"")):ra(this.node(),t)}function ra(t,e){return t.style.getPropertyValue(e)||Ep(t).getComputedStyle(t,null).getPropertyValue(e)}function D5(t){return function(){delete this[t]}}function M5(t,e){return function(){this[t]=e}}function N5(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function B5(t,e){return arguments.length>1?this.each((e==null?D5:typeof e=="function"?N5:M5)(t,e)):this.node()[t]}function Cp(t){return t.trim().split(/^|\s+/)}function $1(t){return t.classList||new Sp(t)}function Sp(t){this._node=t,this._names=Cp(t.getAttribute("class")||"")}Sp.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 Ap(t,e){for(var r=$1(t),i=-1,n=e.length;++i<n;)r.add(e[i])}function Lp(t,e){for(var r=$1(t),i=-1,n=e.length;++i<n;)r.remove(e[i])}function I5(t){return function(){Ap(this,t)}}function O5(t){return function(){Lp(this,t)}}function R5(t,e){return function(){(e.apply(this,arguments)?Ap:Lp)(this,t)}}function F5(t,e){var r=Cp(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"?R5:e?I5:O5)(r,e))}function P5(){this.textContent=""}function Y5(t){return function(){this.textContent=t}}function V5(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function U5(t){return arguments.length?this.each(t==null?P5:(typeof t=="function"?V5:Y5)(t)):this.node().textContent}function z5(){this.innerHTML=""}function W5(t){return function(){this.innerHTML=t}}function H5(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function G5(t){return arguments.length?this.each(t==null?z5:(typeof t=="function"?H5:W5)(t)):this.node().innerHTML}function q5(){this.nextSibling&&this.parentNode.appendChild(this)}function j5(){return this.each(q5)}function $5(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function X5(){return this.each($5)}function K5(t){var e=typeof t=="function"?t:_p(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Z5(){return null}function Q5(t,e){var r=typeof t=="function"?t:_p(t),i=e==null?Z5:typeof e=="function"?e:j1(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function J5(){var t=this.parentNode;t&&t.removeChild(this)}function t_(){return this.each(J5)}function e_(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function r_(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function i_(t){return this.select(t?r_:e_)}function n_(t){return arguments.length?this.property("__data__",t):this.node().__data__}function s_(t){return function(e){t.call(this,e,this.__data__)}}function a_(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 o_(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 l_(t,e,r){return function(){var i=this.__on,n,s=s_(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 c_(t,e,r){var i=a_(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?l_:o_,n=0;n<s;++n)this.each(o(i[n],e,r));return this}function Dp(t,e,r){var i=Ep(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 u_(t,e){return function(){return Dp(this,t,e)}}function h_(t,e){return function(){return Dp(this,t,e.apply(this,arguments))}}function d_(t,e){return this.each((typeof e=="function"?h_:u_)(t,e))}function*f_(){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 p_(){return this}Nr.prototype=Uo.prototype={constructor:Nr,select:Ub,selectAll:Hb,selectChild:$b,selectChildren:Qb,filter:Jb,data:s5,enter:t5,exit:o5,join:l5,merge:c5,selection:p_,order:u5,sort:h5,call:f5,nodes:p5,node:g5,size:y5,empty:m5,each:b5,attr:E5,style:L5,property:B5,classed:F5,text:U5,html:G5,raise:j5,lower:X5,append:K5,insert:Q5,remove:t_,clone:i_,datum:n_,on:c_,dispatch:d_,[Symbol.iterator]:f_};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([xp(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*",g_=/^#([0-9a-f]{3,8})$/,y_=new RegExp(`^rgb\\(${Xs},${Xs},${Xs}\\)$`),m_=new RegExp(`^rgb\\(${Fi},${Fi},${Fi}\\)$`),b_=new RegExp(`^rgba\\(${Xs},${Xs},${Xs},${ho}\\)$`),__=new RegExp(`^rgba\\(${Fi},${Fi},${Fi},${ho}\\)$`),x_=new RegExp(`^hsl\\(${ho},${Fi},${Fi}\\)$`),v_=new RegExp(`^hsla\\(${ho},${Fi},${Fi},${ho}\\)$`),Fd={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,fs,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Pd,formatHex:Pd,formatHex8:k_,formatHsl:w_,formatRgb:Yd,toString:Yd});function Pd(){return this.rgb().formatHex()}function k_(){return this.rgb().formatHex8()}function w_(){return Np(this).formatHsl()}function Yd(){return this.rgb().formatRgb()}function fs(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=g_.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Vd(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=y_.exec(t))?new wr(e[1],e[2],e[3],1):(e=m_.exec(t))?new wr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=b_.exec(t))?hl(e[1],e[2],e[3],e[4]):(e=__.exec(t))?hl(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=x_.exec(t))?Wd(e[1],e[2]/100,e[3]/100,1):(e=v_.exec(t))?Wd(e[1],e[2]/100,e[3]/100,e[4]):Fd.hasOwnProperty(t)?Vd(Fd[t]):t==="transparent"?new wr(NaN,NaN,NaN,0):null}function Vd(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 Mp(t){return t instanceof Ts||(t=fs(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?Mp(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(hs(this.r),hs(this.g),hs(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:Ud,formatHex:Ud,formatHex8:T_,formatRgb:zd,toString:zd}));function Ud(){return`#${us(this.r)}${us(this.g)}${us(this.b)}`}function T_(){return`#${us(this.r)}${us(this.g)}${us(this.b)}${us((isNaN(this.opacity)?1:this.opacity)*255)}`}function zd(){const t=Zl(this.opacity);return`${t===1?"rgb(":"rgba("}${hs(this.r)}, ${hs(this.g)}, ${hs(this.b)}${t===1?")":`, ${t})`}`}function Zl(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function hs(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function us(t){return t=hs(t),(t<16?"0":"")+t.toString(16)}function Wd(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 Np(t){if(t instanceof ui)return new ui(t.h,t.s,t.l,t.opacity);if(t instanceof Ts||(t=fs(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 E_(t,e,r,i){return arguments.length===1?Np(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,E_,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(Hd(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("}${Hd(this.h)}, ${dl(this.s)*100}%, ${dl(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Hd(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 C_=Math.PI/180,S_=180/Math.PI,Ql=18,Bp=.96422,Ip=1,Op=.82521,Rp=4/29,Ks=6/29,Fp=3*Ks*Ks,A_=Ks*Ks*Ks;function Pp(t){if(t instanceof Pi)return new Pi(t.l,t.a,t.b,t.opacity);if(t instanceof ln)return Yp(t);t instanceof wr||(t=Mp(t));var e=ju(t.r),r=ju(t.g),i=ju(t.b),n=Hu((.2225045*e+.7168786*r+.0606169*i)/Ip),s,a;return e===r&&r===i?s=a=n:(s=Hu((.4360747*e+.3850649*r+.1430804*i)/Bp),a=Hu((.0139322*e+.0971045*r+.7141733*i)/Op)),new Pi(116*n-16,500*(s-n),200*(n-a),t.opacity)}function L_(t,e,r,i){return arguments.length===1?Pp(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,L_,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=Bp*Gu(e),t=Ip*Gu(t),r=Op*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>A_?Math.pow(t,1/3):t/Fp+Rp}function Gu(t){return t>Ks?t*t*t:Fp*(t-Rp)}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 D_(t){if(t instanceof ln)return new ln(t.h,t.c,t.l,t.opacity);if(t instanceof Pi||(t=Pp(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)*S_;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?D_(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 Yp(t){if(isNaN(t.h))return new Pi(t.l,0,0,t.opacity);var e=t.h*C_;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 Yp(this).rgb()}}));const Kc=t=>()=>t;function Vp(t,e){return function(r){return t+r*e}}function M_(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 N_(t,e){var r=e-t;return r?Vp(t,r>180||r<-180?r-360*Math.round(r/360):r):Kc(isNaN(t)?e:t)}function B_(t){return(t=+t)==1?Qa:function(e,r){return r-e?M_(e,r,t):Kc(isNaN(e)?r:e)}}function Qa(t,e){var r=e-t;return r?Vp(t,r):Kc(isNaN(t)?e:t)}const Jl=function t(e){var r=B_(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 I_(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 O_(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function R_(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 F_(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 P_(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 Y_(t){return function(){return t}}function V_(t){return function(e){return t(e)+""}}function Up(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]?V_(l[0].x):Y_(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=fs(e))?(e=i,Jl):Up:e instanceof fs?Jl:e instanceof Date?F_:O_(e)?I_:Array.isArray(e)?R_:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?P_:ci)(t,e)}function U_(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var Gd=180/Math.PI,Vh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zp(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)*Gd,skewX:Math.atan(l)*Gd,scaleX:a,scaleY:o}}var fl;function z_(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Vh:zp(e.a,e.b,e.c,e.d,e.e,e.f)}function W_(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,zp(t.a,t.b,t.c,t.d,t.e,t.f))}function Wp(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 H_=Wp(z_,"px, ","px)","deg)"),G_=Wp(W_,", ",")",")");function q_(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 j_=q_(N_);var ia=0,Ga=0,Ba=0,Hp=1e3,tc,qa,ec=0,ps=0,Zc=0,fo=typeof performance=="object"&&performance.now?performance:Date,Gp=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Q1(){return ps||(Gp($_),ps=fo.now()+Zc)}function $_(){ps=0}function rc(){this._call=this._time=this._next=null}rc.prototype=qp.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 qp(t,e,r){var i=new rc;return i.restart(t,e,r),i}function X_(){Q1(),++ia;for(var t=tc,e;t;)(e=ps-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ia}function qd(){ps=(ec=fo.now())+Zc,ia=Ga=0;try{X_()}finally{ia=0,Z_(),ps=0}}function K_(){var t=fo.now(),e=t-ec;e>Hp&&(Zc-=e,ec=t)}function Z_(){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-ps;e>24?(t<1/0&&(Ga=setTimeout(qd,t-fo.now()-Zc)),Ba&&(Ba=clearInterval(Ba))):(Ba||(ec=fo.now(),Ba=setInterval(K_,Hp)),ia=1,Gp(qd))}}function jd(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 Q_=bp("start","end","cancel","interrupt"),J_=[],jp=0,$d=1,zh=2,Dl=3,Xd=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;tx(t,r,{name:e,index:i,group:n,on:Q_,tween:J_,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:jp})}function J1(t,e){var r=ki(t,e);if(r.state>jp)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 tx(t,e,r){var i=t.__transition,n;i[e]=r,r.timer=qp(s,0,r.time);function s(u){r.state=$d,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!==$d)return l();for(d in i)if(g=i[d],g.name===r.name){if(g.state===Dl)return jd(a);g.state===Xd?(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(jd(function(){r.state===Dl&&(r.state=Xd,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 ex(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 rx(t){return this.each(function(){ex(this,t)})}function ix(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 nx(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 sx(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?ix:nx)(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 $p(t,e){var r;return(typeof e=="number"?ci:e instanceof fs?Jl:(r=fs(e))?(e=r,Jl):Up)(t,e)}function ax(t){return function(){this.removeAttribute(t)}}function ox(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lx(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 cx(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 ux(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 hx(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 dx(t,e){var r=$c(t),i=r==="transform"?G_:$p;return this.attrTween(t,typeof e=="function"?(r.local?hx:ux)(r,i,t0(this,"attr."+t,e)):e==null?(r.local?ox:ax)(r):(r.local?cx:lx)(r,i,e))}function fx(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function px(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function gx(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&px(t,s)),r}return n._value=e,n}function yx(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&fx(t,s)),r}return n._value=e,n}function mx(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?gx:yx)(i,e))}function bx(t,e){return function(){J1(this,t).delay=+e.apply(this,arguments)}}function _x(t,e){return e=+e,function(){J1(this,t).delay=e}}function xx(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bx:_x)(e,t)):ki(this.node(),e).delay}function vx(t,e){return function(){Wi(this,t).duration=+e.apply(this,arguments)}}function kx(t,e){return e=+e,function(){Wi(this,t).duration=e}}function wx(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?vx:kx)(e,t)):ki(this.node(),e).duration}function Tx(t,e){if(typeof e!="function")throw new Error;return function(){Wi(this,t).ease=e}}function Ex(t){var e=this._id;return arguments.length?this.each(Tx(e,t)):ki(this.node(),e).ease}function Cx(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Wi(this,t).ease=r}}function Sx(t){if(typeof t!="function")throw new Error;return this.each(Cx(this._id,t))}function Ax(t){typeof t!="function"&&(t=kp(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 Lx(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 Dx(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 Mx(t,e,r){var i,n,s=Dx(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 Nx(t,e){var r=this._id;return arguments.length<2?ki(this.node(),r).on.on(t):this.each(Mx(r,t,e))}function Bx(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Ix(){return this.on("end.remove",Bx(this._id))}function Ox(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 Rx(t){var e=this._name,r=this._id;typeof t!="function"&&(t=vp(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 Fx=Uo.prototype.constructor;function Px(){return new Fx(this._groups,this._parents)}function Yx(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 Xp(t){return function(){this.style.removeProperty(t)}}function Vx(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 Ux(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 zx(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=Xp(e)):void 0;(u!==r||n!==d)&&(i=(r=u).copy()).on(a,n=d),l.on=i}}function Wx(t,e,r){var i=(t+="")=="transform"?H_:$p;return e==null?this.styleTween(t,Yx(t,i)).on("end.style."+t,Xp(t)):typeof e=="function"?this.styleTween(t,Ux(t,i,t0(this,"style."+t,e))).each(zx(this._id,t)):this.styleTween(t,Vx(t,i,e),r).on("end.style."+t,null)}function Hx(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function Gx(t,e,r){var i,n;function s(){var a=e.apply(this,arguments);return a!==n&&(i=(n=a)&&Hx(t,a,r)),i}return s._value=e,s}function qx(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,Gx(t,e,r??""))}function jx(t){return function(){this.textContent=t}}function $x(t){return function(){var e=t(this);this.textContent=e??""}}function Xx(t){return this.tween("text",typeof t=="function"?$x(t0(this,"text",t)):jx(t==null?"":t+""))}function Kx(t){return function(e){this.textContent=t.call(this,e)}}function Zx(t){var e,r;function i(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&Kx(n)),e}return i._value=t,i}function Qx(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,Zx(t))}function Jx(){for(var t=this._name,e=this._id,r=Kp(),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 tv(){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 ev=0;function mn(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function Kp(){return++ev}var Zi=Uo.prototype;mn.prototype={constructor:mn,select:Ox,selectAll:Rx,selectChild:Zi.selectChild,selectChildren:Zi.selectChildren,filter:Ax,merge:Lx,selection:Px,transition:Jx,call:Zi.call,nodes:Zi.nodes,node:Zi.node,size:Zi.size,empty:Zi.empty,each:Zi.each,on:Nx,attr:dx,attrTween:mx,style:Wx,styleTween:qx,text:Xx,textTween:Qx,remove:Ix,tween:sx,delay:xx,duration:wx,ease:Ex,easeVarying:Sx,end:tv,[Symbol.iterator]:Zi[Symbol.iterator]};function rv(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var iv={time:null,delay:0,duration:250,ease:rv};function nv(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 sv(t){var e,r;t instanceof mn?(e=t._id,t=t._name):(e=Kp(),(r=iv).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||nv(l,e));return new mn(i,this._parents,t,e)}Uo.prototype.interrupt=rx;Uo.prototype.transition=sv;const Hh=Math.PI,Gh=2*Hh,as=1e-6,av=Gh-as;function Zp(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function ov(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Zp;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 lv{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Zp:ov(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>as)if(!(Math.abs(f*l-u*d)>as)||!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)>as&&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)>as||Math.abs(this._y1-d)>as)&&this._append`L${u},${d}`,i&&(p<0&&(p=p%Gh+Gh),p>av?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>as&&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 cv(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function uv(t,e){return fetch(t,e).then(cv)}function hv(t){return(e,r)=>uv(e,r).then(i=>new DOMParser().parseFromString(i,t))}var dv=hv("image/svg+xml");function fv(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 pv(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 gv(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var yv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nc(t){if(!(e=yv.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 mv(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 Qp;function bv(t,e){var r=ic(t,e);if(!r)return t+"";var i=r[0],n=r[1],s=n-(Qp=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 Kd(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 Zd={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:fv,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)=>Kd(t*100,e),r:Kd,s:bv,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Qd(t){return t}var Jd=Array.prototype.map,tf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _v(t){var e=t.grouping===void 0||t.thousands===void 0?Qd:pv(Jd.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?Qd:gv(Jd.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"):Zd[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=Zd[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=mv(C)),ct&&+C==0&&_!=="+"&&(ct=!1),v=(ct?_==="("?_:o:_==="-"||_==="("?"":_)+v,D=(W==="s"?tf[8+Qp/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=tf[8+_/3];return function(S){return g(k*S)+w}}return{format:u,formatPrefix:d}}var pl,Jp,tg;xv({thousands:",",grouping:[3],currency:["$",""]});function xv(t){return pl=_v(t),Jp=pl.format,tg=pl.formatPrefix,pl}function vv(t){return Math.max(0,-na(Math.abs(t)))}function kv(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(na(e)/3)))*3-na(Math.abs(t)))}function wv(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 ef=Symbol("implicit");function eg(){var t=new Nd,e=[],r=[],i=ef;function n(s){let a=t.get(s);if(a===void 0){if(i!==ef)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 Nd;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 eg(e,r).unknown(i)},r0.apply(n,arguments),n}function Tv(t){return function(){return t}}function Ev(t){return+t}var rf=[0,1];function Us(t){return t}function qh(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:Tv(isNaN(e)?NaN:.5)}function Cv(t,e){var r;return t>e&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function Sv(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 Av(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=xb(t,o,1,i)-1;return s[l](n[l](o))}}function rg(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Lv(){var t=rf,e=rf,r=Z1,i,n,s,a=Us,o,l,u;function d(){var p=Math.min(t.length,e.length);return a!==Us&&(a=Cv(t[0],t[p-1])),o=p>2?Av:Sv,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,Ev),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=U_,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 ig(){return Lv()(Us,Us)}function Dv(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=kv(n,a))&&(i.precision=s),tg(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=wv(n,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=vv(n))&&(i.precision=s-(i.type==="%")*2);break}}return Jp(i)}function Mv(t){var e=t.domain;return t.ticks=function(r){var i=e();return Tb(i[0],i[i.length-1],r??10)},t.tickFormat=function(r,i){var n=e();return Dv(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=yp(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 ng(){var t=ig();return t.copy=function(){return rg(t,ng())},r0.apply(t,arguments),Mv(t)}function Nv(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,nf=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 sg=hr(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Jr)},(t,e)=>(e-t)/Jr,t=>t.getUTCMinutes());sg.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 ag=hr(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*un)},(t,e)=>(e-t)/un,t=>t.getUTCHours());ag.range;const gs=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);gs.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 og=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));og.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 s0=Cs(0),oc=Cs(1),Fv=Cs(2),Pv=Cs(3),oa=Cs(4),Yv=Cs(5),Vv=Cs(6);s0.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 lg=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());lg.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 Hn=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());Hn.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)});Hn.range;function cg(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,nf],[e,3,3*nf],[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]}cg(Hn,lg,s0,og,ag,sg);const[Uv,zv]=cg(_n,yo,sa,gs,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 Wv(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:uf,e:uf,f:d6,g:k6,G:T6,H:c6,I:u6,j:h6,L:ug,m:f6,M:p6,p:ot,q:rt,Q:ff,s:pf,S:g6,u:y6,U:m6,V:b6,w:_6,W:x6,x:null,X:null,y:v6,Y:w6,Z:E6,"%":df},P={a:it,A:ut,b:bt,B:K,c:null,d:hf,e:hf,f:L6,g:Y6,G:U6,H:C6,I:S6,j:A6,L:dg,m:D6,M:M6,p:Ot,q:Y,Q:ff,s:pf,S:N6,u:B6,U:I6,V:O6,w:R6,W:F6,x:null,X:null,y:P6,Y:V6,Z:z6,"%":df},W={a:M,A:C,b:v,B:D,c:m,d:lf,e:lf,f:s6,g:of,G:af,H:cf,I:cf,j:e6,L:n6,m:t6,M:r6,p:N,q:Jv,Q:o6,s:l6,S:i6,u:$v,U:Xv,V:Kv,w:jv,W:Zv,x:Q,X:b,y:of,Y:af,Z:Qv,"%":a6};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=sf[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=gs.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 sf?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 sf={"-":"",_:" ",0:"0"},yr=/^\s*\d+/,Hv=/^%/,Gv=/[\\^$*+?|[\]().{}]/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 qv(t){return t.replace(Gv,"\\$&")}function Oa(t){return new RegExp("^(?:"+t.map(qv).join("|")+")","i")}function Ra(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function jv(t,e,r){var i=yr.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function $v(t,e,r){var i=yr.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function Xv(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function Kv(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function Zv(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function af(t,e,r){var i=yr.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function of(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 Qv(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 Jv(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 t6(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 lf(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function e6(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 cf(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.H=+i[0],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],r+i[0].length):-1}function i6(t,e,r){var i=yr.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function n6(t,e,r){var i=yr.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function s6(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 a6(t,e,r){var i=Hv.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function o6(t,e,r){var i=yr.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function l6(t,e,r){var i=yr.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function uf(t,e){return Ae(t.getDate(),e,2)}function c6(t,e){return Ae(t.getHours(),e,2)}function u6(t,e){return Ae(t.getHours()%12||12,e,2)}function h6(t,e){return Ae(1+gs.count(_n(t),t),e,3)}function ug(t,e){return Ae(t.getMilliseconds(),e,3)}function d6(t,e){return ug(t,e)+"000"}function f6(t,e){return Ae(t.getMonth()+1,e,2)}function p6(t,e){return Ae(t.getMinutes(),e,2)}function g6(t,e){return Ae(t.getSeconds(),e,2)}function y6(t){var e=t.getDay();return e===0?7:e}function m6(t,e){return Ae(sa.count(_n(t)-1,t),e,2)}function hg(t){var e=t.getDay();return e>=4||e===0?aa(t):aa.ceil(t)}function b6(t,e){return t=hg(t),Ae(aa.count(_n(t),t)+(_n(t).getDay()===4),e,2)}function _6(t){return t.getDay()}function x6(t,e){return Ae(ac.count(_n(t)-1,t),e,2)}function v6(t,e){return Ae(t.getFullYear()%100,e,2)}function k6(t,e){return t=hg(t),Ae(t.getFullYear()%100,e,2)}function w6(t,e){return Ae(t.getFullYear()%1e4,e,4)}function T6(t,e){var r=t.getDay();return t=r>=4||r===0?aa(t):aa.ceil(t),Ae(t.getFullYear()%1e4,e,4)}function E6(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ae(e/60|0,"0",2)+Ae(e%60,"0",2)}function hf(t,e){return Ae(t.getUTCDate(),e,2)}function C6(t,e){return Ae(t.getUTCHours(),e,2)}function S6(t,e){return Ae(t.getUTCHours()%12||12,e,2)}function A6(t,e){return Ae(1+n0.count(Hn(t),t),e,3)}function dg(t,e){return Ae(t.getUTCMilliseconds(),e,3)}function L6(t,e){return dg(t,e)+"000"}function D6(t,e){return Ae(t.getUTCMonth()+1,e,2)}function M6(t,e){return Ae(t.getUTCMinutes(),e,2)}function N6(t,e){return Ae(t.getUTCSeconds(),e,2)}function B6(t){var e=t.getUTCDay();return e===0?7:e}function I6(t,e){return Ae(s0.count(Hn(t)-1,t),e,2)}function fg(t){var e=t.getUTCDay();return e>=4||e===0?oa(t):oa.ceil(t)}function O6(t,e){return t=fg(t),Ae(oa.count(Hn(t),t)+(Hn(t).getUTCDay()===4),e,2)}function R6(t){return t.getUTCDay()}function F6(t,e){return Ae(oc.count(Hn(t)-1,t),e,2)}function P6(t,e){return Ae(t.getUTCFullYear()%100,e,2)}function Y6(t,e){return t=fg(t),Ae(t.getUTCFullYear()%100,e,2)}function V6(t,e){return Ae(t.getUTCFullYear()%1e4,e,4)}function U6(t,e){var r=t.getUTCDay();return t=r>=4||r===0?oa(t):oa.ceil(t),Ae(t.getUTCFullYear()%1e4,e,4)}function z6(){return"+0000"}function df(){return"%"}function ff(t){return+t}function pf(t){return Math.floor(+t/1e3)}var Fs,lc;W6({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 W6(t){return Fs=Wv(t),lc=Fs.format,Fs.parse,Fs.utcFormat,Fs.utcParse,Fs}function H6(t){return new Date(t)}function G6(t){return t instanceof Date?+t:+new Date(+t)}function pg(t,e,r,i,n,s,a,o,l,u){var d=ig(),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,G6)):p().map(H6)},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(Nv(z,q)):d},d.copy=function(){return rg(d,pg(t,e,r,i,n,s,a,o,l,u))},d}function q6(){return r0.apply(pg(Uv,zv,_n,yo,sa,gs,go,po,zs,lc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ke(t){return function(){return t}}const gf=Math.abs,xr=Math.atan2,rs=Math.cos,j6=Math.max,th=Math.min,Mi=Math.sin,Ws=Math.sqrt,Or=1e-12,mo=Math.PI,cc=mo/2,Nl=2*mo;function $6(t){return t>1?0:t<-1?mo:Math.acos(t)}function yf(t){return t>=1?cc:t<=-1?-cc:Math.asin(t)}function gg(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 lv(e)}function X6(t){return t.innerRadius}function K6(t){return t.outerRadius}function Z6(t){return t.startAngle}function Q6(t){return t.endAngle}function J6(t){return t&&t.padAngle}function tk(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(j6(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=X6,e=K6,r=Ke(0),i=null,n=Z6,s=Q6,a=J6,o=null,l=gg(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=gf(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*rs(_),g*Mi(_)),o.arc(0,0,g,_,k,!S),p>Or&&(o.moveTo(p*rs(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(gf(g-p)/2,+r.apply(this,arguments)),C=M,v=M,D,m;if(N>Or){var Q=yf(N/p*Mi(H)),b=yf(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*rs(A),Dt=g*Mi(A),vt=p*rs(W),j=p*Mi(W);if(M>Or){var ot=g*rs(O),rt=g*Mi(O),it=p*rs(P),ut=p*Mi(P),bt;if(w<mo)if(bt=tk(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($6((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[rs(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 yg(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function mg(t){this._context=t}mg.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 mg(t)}function ek(t){return t[0]}function rk(t){return t[1]}function Ta(t,e){var r=Ke(!0),i=null,n=jr,s=null,a=gg(o);t=typeof t=="function"?t:t===void 0?ek:Ke(t),e=typeof e=="function"?e:e===void 0?rk:Ke(e);function o(l){var u,d=(l=yg(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 ik(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function nk(t){return t}function sk(){var t=nk,e=ik,r=null,i=Ke(0),n=Ke(Nl),s=Ke(0);function a(o){var l,u=(o=yg(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 bg(t){this._context=t}bg.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 bg(t)}function _g(t){this._context=t}_g.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 ak(t){return new _g(t)}function xg(t){this._context=t}xg.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 ok(t){return new xg(t)}function vg(t){this._context=t}vg.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 lk(t){return new vg(t)}function mf(t){return t<0?-1:1}function bf(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(mf(s)+mf(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(o))||0}function _f(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,_f(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,_f(this,r=bf(this,t,e)),r);break;default:eh(this,this._t0,r=bf(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function kg(t){this._context=new wg(t)}(kg.prototype=Object.create(dc.prototype)).point=function(t,e){dc.prototype.point.call(this,e,t)};function wg(t){this._context=t}wg.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 ck(t){return new dc(t)}function uk(t){return new kg(t)}function Tg(t){this._context=t}Tg.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=xf(t),n=xf(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 xf(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 hk(t){return new Tg(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 dk(t){return new Jc(t,.5)}function fk(t){return new Jc(t,0)}function pk(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 gk(){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 gk()?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 yk(t)||mk(t)||bk(t)||_k()}function yk(t){if(Array.isArray(t))return Xh(t)}function mk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function bk(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 _k(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var b=Object.defineProperty;var f=(t,e,a)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var s=(t,e,a)=>(f(t,typeof e!="symbol"?e+"":e,a),a);import{bw as x,r as d,bL as k,j as n,C,A as w,c5 as r,fa as u}from"./index-
|
|
1
|
+
var b=Object.defineProperty;var f=(t,e,a)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var s=(t,e,a)=>(f(t,typeof e!="symbol"?e+"":e,a),a);import{bw as x,r as d,bL as k,j as n,C,A as w,c5 as r,fa as u}from"./index-99d4171f.js";import{u as P,a as m}from"./unknownify-9d8df72f.js";import{L as v,C as S,a as A,b as I,P as L,c as M,T,p as N,e as q,f as _}from"./chartjs-adapter-date-fns.esm-00d0c032.js";import{B as D}from"./useProjectRole-dba93dda.js";import"./index-78310b22.js";import"./index-c65a88d1.js";class E{constructor(e){s(this,"current",0);s(this,"all");this.all=e}next(){const e=this.all[this.current];return this.current=(this.current+1)%this.all.length,e}}const R=(t,e)=>t.map(a=>({x:a[0],y:e(a[1])})),j=t=>({locale:t.locale,responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{tooltip:{backgroundColor:r.palette.background.paper,bodyColor:r.palette.text.primary,titleColor:r.palette.action.active,borderColor:r.palette.primary.main,borderWidth:1,padding:10,boxPadding:5,usePointStyle:!0,callbacks:{title:e=>u(1e3*e[0].parsed.x,t.locale)},itemSort:(e,a)=>a.parsed.y-e.parsed.y},legend:{position:"top",align:"end",labels:{boxWidth:10,boxHeight:10,usePointStyle:!0}},title:{text:"Top 10 requests per second in the last 6 hours",position:"top",align:"start",display:!0,font:{size:16,weight:"400"}}},scales:{y:{type:"linear",title:{display:!0,text:"Requests per second"},suggestedMin:0,ticks:{precision:0}},x:{type:"time",time:{unit:"minute"},grid:{display:!0},ticks:{callback:(e,a,i)=>u(i[a].value*1e3,t.locale)}}}});class B{constructor(e){s(this,"items");s(this,"picked",new Map);this.items=new E(e)}pick(e){return this.picked.has(e)||this.picked.set(e,this.items.next()),this.picked.get(e)}}const H=t=>{var e;if((e=t==null?void 0:t.data)!=null&&e.result){const a=new B([r.palette.success,r.palette.error,r.palette.primary,r.palette.warning]);return t.data.result.map(i=>{var c,p;const o=m((c=i.metric)==null?void 0:c.endpoint),h=m((p=i.metric)==null?void 0:p.appName),l=a.pick(o),g=i.values||[];return{label:`${o}: ${h}`,borderColor:l.main,backgroundColor:l.main,data:R(g,y=>parseFloat(y)),elements:{point:{radius:4,pointStyle:"circle"},line:{borderDash:[8,4]}}}})}return[]},K=()=>{const{locationSettings:t}=x(),{metrics:e}=P(),a=d.useMemo(()=>j(t),[t]);k("Network - Traffic");const i=d.useMemo(()=>({datasets:H(e)}),[e,t]);return n(C,{condition:i.datasets.length===0,show:n(w,{severity:"warning",children:"No data available."}),elseShow:n(D,{sx:{display:"grid",gap:4},children:n("div",{style:{height:400},children:n(v,{data:i,options:a,"aria-label":"An instance metrics line chart with two lines: requests per second for admin API and requests per second for client API"})})})})};S.register(A,I,L,M,T,N,q,_);export{K as NetworkTraffic,K as default};
|