@carbon/charts 1.11.18 → 1.11.19
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/CHANGELOG.md +11 -0
- package/dist/{_baseEach-9c20c3b4.mjs → _baseEach-76cda8a8.mjs} +2 -2
- package/dist/{_baseEach-9c20c3b4.mjs.map → _baseEach-76cda8a8.mjs.map} +1 -1
- package/dist/{angle-utils-edabc527.mjs → angle-utils-6b17e95b.mjs} +2 -2
- package/dist/{angle-utils-edabc527.mjs.map → angle-utils-6b17e95b.mjs.map} +1 -1
- package/dist/{choropleth-2ac5a535.mjs → choropleth-17b85d55.mjs} +4 -4
- package/dist/{choropleth-2ac5a535.mjs.map → choropleth-17b85d55.mjs.map} +1 -1
- package/dist/{color-scale-utils-149f8038.mjs → color-scale-utils-faf67b75.mjs} +799 -799
- package/dist/{color-scale-utils-149f8038.mjs.map → color-scale-utils-faf67b75.mjs.map} +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/demo/index.mjs +5 -5
- package/dist/{index-38625a66.mjs → index-b0e98af9.mjs} +3 -3
- package/dist/{index-38625a66.mjs.map → index-b0e98af9.mjs.map} +1 -1
- package/dist/index.mjs +8 -8
- package/dist/model/index.mjs +2 -2
- package/dist/services/index.mjs +3 -3
- package/dist/umd/bundle.umd.js +1 -1
- package/dist/umd/bundle.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/umd/bundle.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(M,Tn){typeof exports=="object"&&typeof module<"u"?Tn(exports):typeof define=="function"&&define.amd?define(["exports"],Tn):(M=typeof globalThis<"u"?globalThis:M||self,Tn(M.Charts={}))})(this,function(M){"use strict";function Tn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function Fr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var s=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=e.formattingValues[a]||e.formattingValues[s]}else{var o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[o]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}function zr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;var a=s[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?Kv(o,function(d){return d.test(a)}):Zv(o,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function Zv(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Kv(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Qv(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],s=t.match(e.parsePattern);if(!s)return null;var a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var o=t.slice(i.length);return{value:a,rest:o}}}function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function Nt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function st(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function dt(e){st(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Qi(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Au(e,t){st(2,arguments);var n=dt(e),r=Nt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Eo(e,t){st(2,arguments);var n=dt(e),r=Nt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var a=s.getDate();return i>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function Ji(e,t){st(2,arguments);var n=dt(e).getTime(),r=Nt(t);return new Date(n+r)}var Jv=36e5;function Du(e,t){st(2,arguments);var n=Nt(t);return Ji(e,n*Jv)}var t0={};function ts(){return t0}function xo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Lu(e){st(1,arguments);var t=dt(e);return t.setHours(0,0,0,0),t}var e0=864e5;function n0(e,t){st(2,arguments);var n=Lu(e),r=Lu(t),i=n.getTime()-xo(n),s=r.getTime()-xo(r);return Math.round((i-s)/e0)}var r0=6e4;function So(e,t){st(2,arguments);var n=Nt(t);return Ji(e,n*r0)}function _o(e,t){st(2,arguments);var n=Nt(t);return Ji(e,n*1e3)}function Ru(e,t){st(2,arguments);var n=Nt(t);return Eo(e,n*12)}function Wr(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var i0=6e4,s0=36e5;function a0(e){return st(1,arguments),e instanceof Date||Qi(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function o0(e){if(st(1,arguments),!a0(e)&&typeof e!="number")return!1;var t=dt(e);return!isNaN(Number(t))}function l0(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=n.getFullYear()-r.getFullYear(),s=n.getMonth()-r.getMonth();return i*12+s}function c0(e,t){st(2,arguments);var n=dt(e),r=dt(t);return n.getFullYear()-r.getFullYear()}function Iu(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function u0(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=Iu(n,r),s=Math.abs(n0(n,r));n.setDate(n.getDate()-i*s);var a=+(Iu(n,r)===-i),o=i*(s-a);return o===0?0:o}function wo(e,t){return st(2,arguments),dt(e).getTime()-dt(t).getTime()}var ku={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},h0="trunc";function To(e){return e?ku[e]:ku[h0]}function d0(e,t,n){st(2,arguments);var r=wo(e,t)/s0;return To(n==null?void 0:n.roundingMethod)(r)}function $u(e,t,n){st(2,arguments);var r=wo(e,t)/i0;return To(n==null?void 0:n.roundingMethod)(r)}function f0(e){st(1,arguments);var t=dt(e);return t.setHours(23,59,59,999),t}function p0(e){st(1,arguments);var t=dt(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function g0(e){st(1,arguments);var t=dt(e);return f0(t).getTime()===p0(t).getTime()}function m0(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=Wr(n,r),s=Math.abs(l0(n,r)),a;if(s<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*s);var o=Wr(n,r)===-i;g0(dt(e))&&s===1&&Wr(e,r)===1&&(o=!1),a=i*(s-Number(o))}return a===0?0:a}function Pu(e,t,n){st(2,arguments);var r=wo(e,t)/1e3;return To(n==null?void 0:n.roundingMethod)(r)}function v0(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=Wr(n,r),s=Math.abs(c0(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=Wr(n,r)===-i,o=i*(s-Number(a));return o===0?0:o}function y0(e,t){st(2,arguments);var n=Nt(t);return Ji(e,-n)}var b0=864e5;function E0(e){st(1,arguments);var t=dt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/b0)+1}function es(e){st(1,arguments);var t=1,n=dt(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Nu(e){st(1,arguments);var t=dt(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=es(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=es(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function x0(e){st(1,arguments);var t=Nu(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=es(n);return r}var S0=6048e5;function _0(e){st(1,arguments);var t=dt(e),n=es(t).getTime()-x0(t).getTime();return Math.round(n/S0)+1}function ns(e,t){var n,r,i,s,a,o,l,c;st(1,arguments);var u=ts(),d=Nt((n=(r=(i=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(e),f=h.getUTCDay(),p=(f<d?7:0)+f-d;return h.setUTCDate(h.getUTCDate()-p),h.setUTCHours(0,0,0,0),h}function Uu(e,t){var n,r,i,s,a,o,l,c;st(1,arguments);var u=dt(e),d=u.getUTCFullYear(),h=ts(),f=Nt((n=(r=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,f),p.setUTCHours(0,0,0,0);var g=ns(p,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var m=ns(v,t);return u.getTime()>=g.getTime()?d+1:u.getTime()>=m.getTime()?d:d-1}function w0(e,t){var n,r,i,s,a,o,l,c;st(1,arguments);var u=ts(),d=Nt((n=(r=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Uu(e,t),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var p=ns(f,t);return p}var T0=6048e5;function O0(e,t){st(1,arguments);var n=dt(e),r=ns(n,t).getTime()-w0(n,t).getTime();return Math.round(r/T0)+1}function gt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var M0={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return gt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):gt(r+1,2)},d:function(t,n){return gt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return gt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return gt(t.getUTCHours(),n.length)},m:function(t,n){return gt(t.getUTCMinutes(),n.length)},s:function(t,n){return gt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),s=Math.floor(i*Math.pow(10,r-3));return gt(s,n.length)}};const hn=M0;var nr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},C0={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),s=i>0?i:1-i;return r.ordinalNumber(s,{unit:"year"})}return hn.y(t,n)},Y:function(t,n,r,i){var s=Uu(t,i),a=s>0?s:1-s;if(n==="YY"){var o=a%100;return gt(o,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):gt(a,n.length)},R:function(t,n){var r=Nu(t);return gt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return gt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return gt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return gt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return hn.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return gt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var s=O0(t,i);return n==="wo"?r.ordinalNumber(s,{unit:"week"}):gt(s,n.length)},I:function(t,n,r){var i=_0(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):gt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):hn.d(t,n)},D:function(t,n,r){var i=E0(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):gt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var s=t.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return gt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var s=t.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return gt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return gt(s,n.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),s=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),s;switch(i===12?s=nr.noon:i===0?s=nr.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),s;switch(i>=17?s=nr.evening:i>=12?s=nr.afternoon:i>=4?s=nr.morning:s=nr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return hn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):hn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):gt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):gt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):hn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):hn.s(t,n)},S:function(t,n){return hn.S(t,n)},X:function(t,n,r,i){var s=i._originalDate||t,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Vu(a);case"XXXX":case"XX":return On(a);case"XXXXX":case"XXX":default:return On(a,":")}},x:function(t,n,r,i){var s=i._originalDate||t,a=s.getTimezoneOffset();switch(n){case"x":return Vu(a);case"xxxx":case"xx":return On(a);case"xxxxx":case"xxx":default:return On(a,":")}},O:function(t,n,r,i){var s=i._originalDate||t,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Bu(a,":");case"OOOO":default:return"GMT"+On(a,":")}},z:function(t,n,r,i){var s=i._originalDate||t,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Bu(a,":");case"zzzz":default:return"GMT"+On(a,":")}},t:function(t,n,r,i){var s=i._originalDate||t,a=Math.floor(s.getTime()/1e3);return gt(a,n.length)},T:function(t,n,r,i){var s=i._originalDate||t,a=s.getTime();return gt(a,n.length)}};function Bu(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=r%60;if(s===0)return n+String(i);var a=t||"";return n+String(i)+a+gt(s,2)}function Vu(e,t){if(e%60===0){var n=e>0?"-":"+";return n+gt(Math.abs(e)/60,2)}return On(e,t)}function On(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),s=gt(Math.floor(i/60),2),a=gt(i%60,2);return r+s+n+a}const A0=C0;var Hu=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Gu=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},D0=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return Hu(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Hu(i,n)).replace("{{time}}",Gu(s,n))},L0={p:Gu,P:D0};const R0=L0;var I0=["D","DD"],k0=["YY","YYYY"];function $0(e){return I0.indexOf(e)!==-1}function P0(e){return k0.indexOf(e)!==-1}function Fu(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var N0={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},U0=function(t,n,r){var i,s=N0[t];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const B0=U0;var V0={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},H0={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},G0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F0={date:Tn({formats:V0,defaultWidth:"full"}),time:Tn({formats:H0,defaultWidth:"full"}),dateTime:Tn({formats:G0,defaultWidth:"full"})};const z0=F0;var W0={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},q0=function(t,n,r,i){return W0[t]};const Y0=q0;var X0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},j0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Z0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},K0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Q0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},J0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ty=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ey={ordinalNumber:ty,era:Fr({values:X0,defaultWidth:"wide"}),quarter:Fr({values:j0,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Fr({values:Z0,defaultWidth:"wide"}),day:Fr({values:K0,defaultWidth:"wide"}),dayPeriod:Fr({values:Q0,defaultWidth:"wide",formattingValues:J0,defaultFormattingWidth:"wide"})};const ny=ey;var ry=/^(\d+)(th|st|nd|rd)?/i,iy=/\d+/i,sy={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ay={any:[/^b/i,/^(a|c)/i]},oy={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ly={any:[/1/i,/2/i,/3/i,/4/i]},cy={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},uy={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hy={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},dy={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fy={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},py={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},gy={ordinalNumber:Qv({matchPattern:ry,parsePattern:iy,valueCallback:function(t){return parseInt(t,10)}}),era:zr({matchPatterns:sy,defaultMatchWidth:"wide",parsePatterns:ay,defaultParseWidth:"any"}),quarter:zr({matchPatterns:oy,defaultMatchWidth:"wide",parsePatterns:ly,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:zr({matchPatterns:cy,defaultMatchWidth:"wide",parsePatterns:uy,defaultParseWidth:"any"}),day:zr({matchPatterns:hy,defaultMatchWidth:"wide",parsePatterns:dy,defaultParseWidth:"any"}),dayPeriod:zr({matchPatterns:fy,defaultMatchWidth:"any",parsePatterns:py,defaultParseWidth:"any"})},my={code:"en-US",formatDistance:B0,formatLong:z0,formatRelative:Y0,localize:ny,match:gy,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zu=my;var vy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,by=/^'([^]*?)'?$/,Ey=/''/g,xy=/[a-zA-Z]/;function rr(e,t,n){var r,i,s,a,o,l,c,u,d,h,f,p,g,v,m,y,E,S;st(2,arguments);var _=String(t),x=ts(),C=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:x.locale)!==null&&r!==void 0?r:zu,D=Nt((s=(a=(o=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:x.firstWeekContainsDate)!==null&&a!==void 0?a:(d=x.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var G=Nt((f=(p=(g=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(m=n.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&g!==void 0?g:x.weekStartsOn)!==null&&p!==void 0?p:(E=x.locale)===null||E===void 0||(S=E.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&f!==void 0?f:0);if(!(G>=0&&G<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=dt(e);if(!o0(k))throw new RangeError("Invalid time value");var O=xo(k),R=y0(k,O),I={firstWeekContainsDate:D,weekStartsOn:G,locale:C,_originalDate:k},$=_.match(yy).map(function(T){var B=T[0];if(B==="p"||B==="P"){var N=R0[B];return N(T,C.formatLong)}return T}).join("").match(vy).map(function(T){if(T==="''")return"'";var B=T[0];if(B==="'")return Sy(T);var N=A0[B];if(N)return!(n!=null&&n.useAdditionalWeekYearTokens)&&P0(T)&&Fu(T,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&$0(T)&&Fu(T,t,String(e)),N(R,T,C.localize,I);if(B.match(xy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return T}).join("");return $}function Sy(e){var t=e.match(by);return t?t[1].replace(Ey,"'"):e}function _y(e,t){st(2,arguments);var n=Nt(t);return Au(e,-n)}function wy(e,t){st(2,arguments);var n=Nt(t);return Eo(e,-n)}function Ty(e,t){st(2,arguments);var n=Nt(t);return Du(e,-n)}function Wu(e,t){st(2,arguments);var n=Nt(t);return So(e,-n)}function qu(e,t){st(2,arguments);var n=Nt(t);return _o(e,-n)}function Oy(e,t){st(2,arguments);var n=Nt(t);return Ru(e,-n)}var My=typeof global=="object"&&global&&global.Object===Object&&global;const Yu=My;var Cy=typeof self=="object"&&self&&self.Object===Object&&self,Ay=Yu||Cy||Function("return this")();const Se=Ay;var Dy=Se.Symbol;const me=Dy;var Xu=Object.prototype,Ly=Xu.hasOwnProperty,Ry=Xu.toString,qr=me?me.toStringTag:void 0;function Iy(e){var t=Ly.call(e,qr),n=e[qr];try{e[qr]=void 0;var r=!0}catch{}var i=Ry.call(e);return r&&(t?e[qr]=n:delete e[qr]),i}var ky=Object.prototype,$y=ky.toString;function Py(e){return $y.call(e)}var Ny="[object Null]",Uy="[object Undefined]",ju=me?me.toStringTag:void 0;function Mn(e){return e==null?e===void 0?Uy:Ny:ju&&ju in Object(e)?Iy(e):Py(e)}function Ue(e){return e!=null&&typeof e=="object"}var By="[object Symbol]";function rs(e){return typeof e=="symbol"||Ue(e)&&Mn(e)==By}function Zu(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Vy=Array.isArray;const Ht=Vy;var Hy=1/0,Ku=me?me.prototype:void 0,Qu=Ku?Ku.toString:void 0;function Ju(e){if(typeof e=="string")return e;if(Ht(e))return Zu(e,Ju)+"";if(rs(e))return Qu?Qu.call(e):"";var t=e+"";return t=="0"&&1/e==-Hy?"-0":t}var Gy=/\s/;function Fy(e){for(var t=e.length;t--&&Gy.test(e.charAt(t)););return t}var zy=/^\s+/;function Wy(e){return e&&e.slice(0,Fy(e)+1).replace(zy,"")}function ve(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var th=0/0,qy=/^[-+]0x[0-9a-f]+$/i,Yy=/^0b[01]+$/i,Xy=/^0o[0-7]+$/i,jy=parseInt;function Yr(e){if(typeof e=="number")return e;if(rs(e))return th;if(ve(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ve(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Wy(e);var n=Yy.test(e);return n||Xy.test(e)?jy(e.slice(2),n?2:8):qy.test(e)?th:+e}function Oo(e){return e}var Zy="[object AsyncFunction]",Ky="[object Function]",Qy="[object GeneratorFunction]",Jy="[object Proxy]";function Mo(e){if(!ve(e))return!1;var t=Mn(e);return t==Ky||t==Qy||t==Zy||t==Jy}var t1=Se["__core-js_shared__"];const Co=t1;var eh=function(){var e=/[^.]+$/.exec(Co&&Co.keys&&Co.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function e1(e){return!!eh&&eh in e}var n1=Function.prototype,r1=n1.toString;function Cn(e){if(e!=null){try{return r1.call(e)}catch{}try{return e+""}catch{}}return""}var i1=/[\\^$.*+?()[\]{}|]/g,s1=/^\[object .+?Constructor\]$/,a1=Function.prototype,o1=Object.prototype,l1=a1.toString,c1=o1.hasOwnProperty,u1=RegExp("^"+l1.call(c1).replace(i1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h1(e){if(!ve(e)||e1(e))return!1;var t=Mo(e)?u1:s1;return t.test(Cn(e))}function d1(e,t){return e==null?void 0:e[t]}function An(e,t){var n=d1(e,t);return h1(n)?n:void 0}var f1=An(Se,"WeakMap");const Ao=f1;var nh=Object.create,p1=function(){function e(){}return function(t){if(!ve(t))return{};if(nh)return nh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const g1=p1;function m1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function v1(){}function rh(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var y1=800,b1=16,E1=Date.now;function x1(e){var t=0,n=0;return function(){var r=E1(),i=b1-(r-n);if(n=r,i>0){if(++t>=y1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function S1(e){return function(){return e}}var _1=function(){try{var e=An(Object,"defineProperty");return e({},"",{}),e}catch{}}();const is=_1;var w1=is?function(e,t){return is(e,"toString",{configurable:!0,enumerable:!1,value:S1(t),writable:!0})}:Oo,T1=x1(w1);const O1=T1;function M1(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function C1(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function A1(e){return e!==e}function D1(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function L1(e,t,n){return t===t?D1(e,t,n):C1(e,A1,n)}function R1(e,t){var n=e==null?0:e.length;return!!n&&L1(e,t,0)>-1}var I1=9007199254740991,k1=/^(?:0|[1-9]\d*)$/;function Do(e,t){var n=typeof e;return t=t??I1,!!t&&(n=="number"||n!="symbol"&&k1.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){t=="__proto__"&&is?is(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Xr(e,t){return e===t||e!==e&&t!==t}var $1=Object.prototype,P1=$1.hasOwnProperty;function ih(e,t,n){var r=e[t];(!(P1.call(e,t)&&Xr(r,n))||n===void 0&&!(t in e))&&ss(e,t,n)}function jr(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var o=t[s],l=r?r(n[o],e[o],o,n,e):void 0;l===void 0&&(l=e[o]),i?ss(n,o,l):ih(n,o,l)}return n}var sh=Math.max;function N1(e,t,n){return t=sh(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=sh(r.length-t,0),a=Array(s);++i<s;)a[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(a),m1(e,this,o)}}function ah(e,t){return O1(N1(e,t,Oo),e+"")}var U1=9007199254740991;function Lo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=U1}function Dn(e){return e!=null&&Lo(e.length)&&!Mo(e)}function oh(e,t,n){if(!ve(n))return!1;var r=typeof t;return(r=="number"?Dn(n)&&Do(t,n.length):r=="string"&&t in n)?Xr(n[t],e):!1}function B1(e){return ah(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,a&&oh(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,s)}return t})}var V1=Object.prototype;function as(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||V1;return e===n}function H1(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var G1="[object Arguments]";function lh(e){return Ue(e)&&Mn(e)==G1}var ch=Object.prototype,F1=ch.hasOwnProperty,z1=ch.propertyIsEnumerable,W1=lh(function(){return arguments}())?lh:function(e){return Ue(e)&&F1.call(e,"callee")&&!z1.call(e,"callee")};const ir=W1;function q1(){return!1}var uh=typeof M=="object"&&M&&!M.nodeType&&M,hh=uh&&typeof module=="object"&&module&&!module.nodeType&&module,Y1=hh&&hh.exports===uh,dh=Y1?Se.Buffer:void 0,X1=dh?dh.isBuffer:void 0,j1=X1||q1;const sr=j1;var Z1="[object Arguments]",K1="[object Array]",Q1="[object Boolean]",J1="[object Date]",tb="[object Error]",eb="[object Function]",nb="[object Map]",rb="[object Number]",ib="[object Object]",sb="[object RegExp]",ab="[object Set]",ob="[object String]",lb="[object WeakMap]",cb="[object ArrayBuffer]",ub="[object DataView]",hb="[object Float32Array]",db="[object Float64Array]",fb="[object Int8Array]",pb="[object Int16Array]",gb="[object Int32Array]",mb="[object Uint8Array]",vb="[object Uint8ClampedArray]",yb="[object Uint16Array]",bb="[object Uint32Array]",Tt={};Tt[hb]=Tt[db]=Tt[fb]=Tt[pb]=Tt[gb]=Tt[mb]=Tt[vb]=Tt[yb]=Tt[bb]=!0,Tt[Z1]=Tt[K1]=Tt[cb]=Tt[Q1]=Tt[ub]=Tt[J1]=Tt[tb]=Tt[eb]=Tt[nb]=Tt[rb]=Tt[ib]=Tt[sb]=Tt[ab]=Tt[ob]=Tt[lb]=!1;function Eb(e){return Ue(e)&&Lo(e.length)&&!!Tt[Mn(e)]}function Ro(e){return function(t){return e(t)}}var fh=typeof M=="object"&&M&&!M.nodeType&&M,Zr=fh&&typeof module=="object"&&module&&!module.nodeType&&module,xb=Zr&&Zr.exports===fh,Io=xb&&Yu.process,Sb=function(){try{var e=Zr&&Zr.require&&Zr.require("util").types;return e||Io&&Io.binding&&Io.binding("util")}catch{}}();const ar=Sb;var ph=ar&&ar.isTypedArray,_b=ph?Ro(ph):Eb;const os=_b;var wb=Object.prototype,Tb=wb.hasOwnProperty;function gh(e,t){var n=Ht(e),r=!n&&ir(e),i=!n&&!r&&sr(e),s=!n&&!r&&!i&&os(e),a=n||r||i||s,o=a?H1(e.length,String):[],l=o.length;for(var c in e)(t||Tb.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Do(c,l)))&&o.push(c);return o}function mh(e,t){return function(n){return e(t(n))}}var Ob=mh(Object.keys,Object);const Mb=Ob;var Cb=Object.prototype,Ab=Cb.hasOwnProperty;function vh(e){if(!as(e))return Mb(e);var t=[];for(var n in Object(e))Ab.call(e,n)&&n!="constructor"&&t.push(n);return t}function Kr(e){return Dn(e)?gh(e):vh(e)}function Db(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Lb=Object.prototype,Rb=Lb.hasOwnProperty;function Ib(e){if(!ve(e))return Db(e);var t=as(e),n=[];for(var r in e)r=="constructor"&&(t||!Rb.call(e,r))||n.push(r);return n}function Qr(e){return Dn(e)?gh(e,!0):Ib(e)}var kb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$b=/^\w*$/;function ko(e,t){if(Ht(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rs(e)?!0:$b.test(e)||!kb.test(e)||t!=null&&e in Object(t)}var Pb=An(Object,"create");const Jr=Pb;function Nb(){this.__data__=Jr?Jr(null):{},this.size=0}function Ub(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Bb="__lodash_hash_undefined__",Vb=Object.prototype,Hb=Vb.hasOwnProperty;function Gb(e){var t=this.__data__;if(Jr){var n=t[e];return n===Bb?void 0:n}return Hb.call(t,e)?t[e]:void 0}var Fb=Object.prototype,zb=Fb.hasOwnProperty;function Wb(e){var t=this.__data__;return Jr?t[e]!==void 0:zb.call(t,e)}var qb="__lodash_hash_undefined__";function Yb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jr&&t===void 0?qb:t,this}function Ln(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ln.prototype.clear=Nb,Ln.prototype.delete=Ub,Ln.prototype.get=Gb,Ln.prototype.has=Wb,Ln.prototype.set=Yb;function Xb(){this.__data__=[],this.size=0}function ls(e,t){for(var n=e.length;n--;)if(Xr(e[n][0],t))return n;return-1}var jb=Array.prototype,Zb=jb.splice;function Kb(e){var t=this.__data__,n=ls(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Zb.call(t,n,1),--this.size,!0}function Qb(e){var t=this.__data__,n=ls(t,e);return n<0?void 0:t[n][1]}function Jb(e){return ls(this.__data__,e)>-1}function tE(e,t){var n=this.__data__,r=ls(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ye.prototype.clear=Xb,Ye.prototype.delete=Kb,Ye.prototype.get=Qb,Ye.prototype.has=Jb,Ye.prototype.set=tE;var eE=An(Se,"Map");const ti=eE;function nE(){this.size=0,this.__data__={hash:new Ln,map:new(ti||Ye),string:new Ln}}function rE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cs(e,t){var n=e.__data__;return rE(t)?n[typeof t=="string"?"string":"hash"]:n.map}function iE(e){var t=cs(this,e).delete(e);return this.size-=t?1:0,t}function sE(e){return cs(this,e).get(e)}function aE(e){return cs(this,e).has(e)}function oE(e,t){var n=cs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xe.prototype.clear=nE,Xe.prototype.delete=iE,Xe.prototype.get=sE,Xe.prototype.has=aE,Xe.prototype.set=oE;var lE="Expected a function";function $o(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lE);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=e.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new($o.Cache||Xe),n}$o.Cache=Xe;var cE=500;function uE(e){var t=$o(e,function(r){return n.size===cE&&n.clear(),r}),n=t.cache;return t}var hE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dE=/\\(\\)?/g,fE=uE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hE,function(n,r,i,s){t.push(i?s.replace(dE,"$1"):r||n)}),t});const pE=fE;function ei(e){return e==null?"":Ju(e)}function yh(e,t){return Ht(e)?e:ko(e,t)?[e]:pE(ei(e))}var gE=1/0;function us(e){if(typeof e=="string"||rs(e))return e;var t=e+"";return t=="0"&&1/e==-gE?"-0":t}function bh(e,t){t=yh(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[us(t[n++])];return n&&n==r?e:void 0}function _t(e,t,n){var r=e==null?void 0:bh(e,t);return r===void 0?n:r}function Po(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Eh=me?me.isConcatSpreadable:void 0;function mE(e){return Ht(e)||ir(e)||!!(Eh&&e&&e[Eh])}function hs(e,t,n,r,i){var s=-1,a=e.length;for(n||(n=mE),i||(i=[]);++s<a;){var o=e[s];t>0&&n(o)?t>1?hs(o,t-1,n,r,i):Po(i,o):r||(i[i.length]=o)}return i}function xh(e){var t=e==null?0:e.length;return t?hs(e,1):[]}var vE=mh(Object.getPrototypeOf,Object);const No=vE;var yE="[object Object]",bE=Function.prototype,EE=Object.prototype,Sh=bE.toString,xE=EE.hasOwnProperty,SE=Sh.call(Object);function _E(e){if(!Ue(e)||Mn(e)!=yE)return!1;var t=No(e);if(t===null)return!0;var n=xE.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Sh.call(n)==SE}function wE(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function TE(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:wE(e,t,n)}var OE="\\ud800-\\udfff",ME="\\u0300-\\u036f",CE="\\ufe20-\\ufe2f",AE="\\u20d0-\\u20ff",DE=ME+CE+AE,LE="\\ufe0e\\ufe0f",RE="\\u200d",IE=RegExp("["+RE+OE+DE+LE+"]");function _h(e){return IE.test(e)}function kE(e){return e.split("")}var wh="\\ud800-\\udfff",$E="\\u0300-\\u036f",PE="\\ufe20-\\ufe2f",NE="\\u20d0-\\u20ff",UE=$E+PE+NE,BE="\\ufe0e\\ufe0f",VE="["+wh+"]",Uo="["+UE+"]",Bo="\\ud83c[\\udffb-\\udfff]",HE="(?:"+Uo+"|"+Bo+")",Th="[^"+wh+"]",Oh="(?:\\ud83c[\\udde6-\\uddff]){2}",Mh="[\\ud800-\\udbff][\\udc00-\\udfff]",GE="\\u200d",Ch=HE+"?",Ah="["+BE+"]?",FE="(?:"+GE+"(?:"+[Th,Oh,Mh].join("|")+")"+Ah+Ch+")*",zE=Ah+Ch+FE,WE="(?:"+[Th+Uo+"?",Uo,Oh,Mh,VE].join("|")+")",qE=RegExp(Bo+"(?="+Bo+")|"+WE+zE,"g");function YE(e){return e.match(qE)||[]}function XE(e){return _h(e)?YE(e):kE(e)}function jE(e){return function(t){t=ei(t);var n=_h(t)?XE(t):void 0,r=n?n[0]:t.charAt(0),i=n?TE(n,1).join(""):t.slice(1);return r[e]()+i}}var ZE=jE("toUpperCase");const KE=ZE;function QE(e){return KE(ei(e).toLowerCase())}function JE(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function tx(e){return function(t){return e==null?void 0:e[t]}}var ex={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nx=tx(ex);const rx=nx;var ix=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sx="\\u0300-\\u036f",ax="\\ufe20-\\ufe2f",ox="\\u20d0-\\u20ff",lx=sx+ax+ox,cx="["+lx+"]",ux=RegExp(cx,"g");function hx(e){return e=ei(e),e&&e.replace(ix,rx).replace(ux,"")}var dx=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function fx(e){return e.match(dx)||[]}var px=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function gx(e){return px.test(e)}var Dh="\\ud800-\\udfff",mx="\\u0300-\\u036f",vx="\\ufe20-\\ufe2f",yx="\\u20d0-\\u20ff",bx=mx+vx+yx,Lh="\\u2700-\\u27bf",Rh="a-z\\xdf-\\xf6\\xf8-\\xff",Ex="\\xac\\xb1\\xd7\\xf7",xx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Sx="\\u2000-\\u206f",_x=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ih="A-Z\\xc0-\\xd6\\xd8-\\xde",wx="\\ufe0e\\ufe0f",kh=Ex+xx+Sx+_x,$h="['’]",Ph="["+kh+"]",Tx="["+bx+"]",Nh="\\d+",Ox="["+Lh+"]",Uh="["+Rh+"]",Bh="[^"+Dh+kh+Nh+Lh+Rh+Ih+"]",Mx="\\ud83c[\\udffb-\\udfff]",Cx="(?:"+Tx+"|"+Mx+")",Ax="[^"+Dh+"]",Vh="(?:\\ud83c[\\udde6-\\uddff]){2}",Hh="[\\ud800-\\udbff][\\udc00-\\udfff]",or="["+Ih+"]",Dx="\\u200d",Gh="(?:"+Uh+"|"+Bh+")",Lx="(?:"+or+"|"+Bh+")",Fh="(?:"+$h+"(?:d|ll|m|re|s|t|ve))?",zh="(?:"+$h+"(?:D|LL|M|RE|S|T|VE))?",Wh=Cx+"?",qh="["+wx+"]?",Rx="(?:"+Dx+"(?:"+[Ax,Vh,Hh].join("|")+")"+qh+Wh+")*",Ix="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$x=qh+Wh+Rx,Px="(?:"+[Ox,Vh,Hh].join("|")+")"+$x,Nx=RegExp([or+"?"+Uh+"+"+Fh+"(?="+[Ph,or,"$"].join("|")+")",Lx+"+"+zh+"(?="+[Ph,or+Gh,"$"].join("|")+")",or+"?"+Gh+"+"+Fh,or+"+"+zh,kx,Ix,Nh,Px].join("|"),"g");function Ux(e){return e.match(Nx)||[]}function Bx(e,t,n){return e=ei(e),t=n?void 0:t,t===void 0?gx(e)?Ux(e):fx(e):e.match(t)||[]}var Vx="['’]",Hx=RegExp(Vx,"g");function Yh(e){return function(t){return JE(Bx(hx(t).replace(Hx,"")),e,"")}}var Gx=Yh(function(e,t,n){return t=t.toLowerCase(),e+(n?QE(t):t)});const Fx=Gx;function zx(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function Xh(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Yr(n),n=n===n?n:0),t!==void 0&&(t=Yr(t),t=t===t?t:0),zx(Yr(e),t,n)}function Wx(){this.__data__=new Ye,this.size=0}function qx(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yx(e){return this.__data__.get(e)}function Xx(e){return this.__data__.has(e)}var jx=200;function Zx(e,t){var n=this.__data__;if(n instanceof Ye){var r=n.__data__;if(!ti||r.length<jx-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xe(r)}return n.set(e,t),this.size=n.size,this}function _e(e){var t=this.__data__=new Ye(e);this.size=t.size}_e.prototype.clear=Wx,_e.prototype.delete=qx,_e.prototype.get=Yx,_e.prototype.has=Xx,_e.prototype.set=Zx;function Kx(e,t){return e&&jr(t,Kr(t),e)}function Qx(e,t){return e&&jr(t,Qr(t),e)}var jh=typeof M=="object"&&M&&!M.nodeType&&M,Zh=jh&&typeof module=="object"&&module&&!module.nodeType&&module,Jx=Zh&&Zh.exports===jh,Kh=Jx?Se.Buffer:void 0,Qh=Kh?Kh.allocUnsafe:void 0;function Jh(e,t){if(t)return e.slice();var n=e.length,r=Qh?Qh(n):new e.constructor(n);return e.copy(r),r}function tS(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var a=e[n];t(a,n,e)&&(s[i++]=a)}return s}function td(){return[]}var eS=Object.prototype,nS=eS.propertyIsEnumerable,ed=Object.getOwnPropertySymbols,rS=ed?function(e){return e==null?[]:(e=Object(e),tS(ed(e),function(t){return nS.call(e,t)}))}:td;const Vo=rS;function iS(e,t){return jr(e,Vo(e),t)}var sS=Object.getOwnPropertySymbols,aS=sS?function(e){for(var t=[];e;)Po(t,Vo(e)),e=No(e);return t}:td;const nd=aS;function oS(e,t){return jr(e,nd(e),t)}function rd(e,t,n){var r=t(e);return Ht(e)?r:Po(r,n(e))}function Ho(e){return rd(e,Kr,Vo)}function lS(e){return rd(e,Qr,nd)}var cS=An(Se,"DataView");const Go=cS;var uS=An(Se,"Promise");const Fo=uS;var hS=An(Se,"Set");const lr=hS;var id="[object Map]",dS="[object Object]",sd="[object Promise]",ad="[object Set]",od="[object WeakMap]",ld="[object DataView]",fS=Cn(Go),pS=Cn(ti),gS=Cn(Fo),mS=Cn(lr),vS=Cn(Ao),Rn=Mn;(Go&&Rn(new Go(new ArrayBuffer(1)))!=ld||ti&&Rn(new ti)!=id||Fo&&Rn(Fo.resolve())!=sd||lr&&Rn(new lr)!=ad||Ao&&Rn(new Ao)!=od)&&(Rn=function(e){var t=Mn(e),n=t==dS?e.constructor:void 0,r=n?Cn(n):"";if(r)switch(r){case fS:return ld;case pS:return id;case gS:return sd;case mS:return ad;case vS:return od}return t});const cr=Rn;var yS=Object.prototype,bS=yS.hasOwnProperty;function ES(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bS.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var xS=Se.Uint8Array;const ds=xS;function zo(e){var t=new e.constructor(e.byteLength);return new ds(t).set(new ds(e)),t}function SS(e,t){var n=t?zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var _S=/\w*$/;function wS(e){var t=new e.constructor(e.source,_S.exec(e));return t.lastIndex=e.lastIndex,t}var cd=me?me.prototype:void 0,ud=cd?cd.valueOf:void 0;function TS(e){return ud?Object(ud.call(e)):{}}function hd(e,t){var n=t?zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var OS="[object Boolean]",MS="[object Date]",CS="[object Map]",AS="[object Number]",DS="[object RegExp]",LS="[object Set]",RS="[object String]",IS="[object Symbol]",kS="[object ArrayBuffer]",$S="[object DataView]",PS="[object Float32Array]",NS="[object Float64Array]",US="[object Int8Array]",BS="[object Int16Array]",VS="[object Int32Array]",HS="[object Uint8Array]",GS="[object Uint8ClampedArray]",FS="[object Uint16Array]",zS="[object Uint32Array]";function WS(e,t,n){var r=e.constructor;switch(t){case kS:return zo(e);case OS:case MS:return new r(+e);case $S:return SS(e,n);case PS:case NS:case US:case BS:case VS:case HS:case GS:case FS:case zS:return hd(e,n);case CS:return new r;case AS:case RS:return new r(e);case DS:return wS(e);case LS:return new r;case IS:return TS(e)}}function dd(e){return typeof e.constructor=="function"&&!as(e)?g1(No(e)):{}}var qS="[object Map]";function YS(e){return Ue(e)&&cr(e)==qS}var fd=ar&&ar.isMap,XS=fd?Ro(fd):YS;const jS=XS;var ZS="[object Set]";function KS(e){return Ue(e)&&cr(e)==ZS}var pd=ar&&ar.isSet,QS=pd?Ro(pd):KS;const JS=QS;var t_=1,e_=2,n_=4,gd="[object Arguments]",r_="[object Array]",i_="[object Boolean]",s_="[object Date]",a_="[object Error]",md="[object Function]",o_="[object GeneratorFunction]",l_="[object Map]",c_="[object Number]",vd="[object Object]",u_="[object RegExp]",h_="[object Set]",d_="[object String]",f_="[object Symbol]",p_="[object WeakMap]",g_="[object ArrayBuffer]",m_="[object DataView]",v_="[object Float32Array]",y_="[object Float64Array]",b_="[object Int8Array]",E_="[object Int16Array]",x_="[object Int32Array]",S_="[object Uint8Array]",__="[object Uint8ClampedArray]",w_="[object Uint16Array]",T_="[object Uint32Array]",wt={};wt[gd]=wt[r_]=wt[g_]=wt[m_]=wt[i_]=wt[s_]=wt[v_]=wt[y_]=wt[b_]=wt[E_]=wt[x_]=wt[l_]=wt[c_]=wt[vd]=wt[u_]=wt[h_]=wt[d_]=wt[f_]=wt[S_]=wt[__]=wt[w_]=wt[T_]=!0,wt[a_]=wt[md]=wt[p_]=!1;function fs(e,t,n,r,i,s){var a,o=t&t_,l=t&e_,c=t&n_;if(n&&(a=i?n(e,r,i,s):n(e)),a!==void 0)return a;if(!ve(e))return e;var u=Ht(e);if(u){if(a=ES(e),!o)return rh(e,a)}else{var d=cr(e),h=d==md||d==o_;if(sr(e))return Jh(e,o);if(d==vd||d==gd||h&&!i){if(a=l||h?{}:dd(e),!o)return l?oS(e,Qx(a,e)):iS(e,Kx(a,e))}else{if(!wt[d])return i?e:{};a=WS(e,d,o)}}s||(s=new _e);var f=s.get(e);if(f)return f;s.set(e,a),JS(e)?e.forEach(function(v){a.add(fs(v,t,n,v,e,s))}):jS(e)&&e.forEach(function(v,m){a.set(m,fs(v,t,n,m,e,s))});var p=c?l?lS:Ho:l?Qr:Kr,g=u?void 0:p(e);return M1(g||e,function(v,m){g&&(m=v,v=e[m]),ih(a,m,fs(v,t,n,m,e,s))}),a}var O_=1,M_=4;function je(e){return fs(e,O_|M_)}var C_="__lodash_hash_undefined__";function A_(e){return this.__data__.set(e,C_),this}function D_(e){return this.__data__.has(e)}function ni(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xe;++t<n;)this.add(e[t])}ni.prototype.add=ni.prototype.push=A_,ni.prototype.has=D_;function yd(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function bd(e,t){return e.has(t)}var L_=1,R_=2;function Ed(e,t,n,r,i,s){var a=n&L_,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=n&R_?new ni:void 0;for(s.set(e,t),s.set(t,e);++d<o;){var p=e[d],g=t[d];if(r)var v=a?r(g,p,d,t,e,s):r(p,g,d,e,t,s);if(v!==void 0){if(v)continue;h=!1;break}if(f){if(!yd(t,function(m,y){if(!bd(f,y)&&(p===m||i(p,m,n,r,s)))return f.push(y)})){h=!1;break}}else if(!(p===g||i(p,g,n,r,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function I_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Wo(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var k_=1,$_=2,P_="[object Boolean]",N_="[object Date]",U_="[object Error]",B_="[object Map]",V_="[object Number]",H_="[object RegExp]",G_="[object Set]",F_="[object String]",z_="[object Symbol]",W_="[object ArrayBuffer]",q_="[object DataView]",xd=me?me.prototype:void 0,qo=xd?xd.valueOf:void 0;function Y_(e,t,n,r,i,s,a){switch(n){case q_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case W_:return!(e.byteLength!=t.byteLength||!s(new ds(e),new ds(t)));case P_:case N_:case V_:return Xr(+e,+t);case U_:return e.name==t.name&&e.message==t.message;case H_:case F_:return e==t+"";case B_:var o=I_;case G_:var l=r&k_;if(o||(o=Wo),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=$_,a.set(e,t);var u=Ed(o(e),o(t),r,i,s,a);return a.delete(e),u;case z_:if(qo)return qo.call(e)==qo.call(t)}return!1}var X_=1,j_=Object.prototype,Z_=j_.hasOwnProperty;function K_(e,t,n,r,i,s){var a=n&X_,o=Ho(e),l=o.length,c=Ho(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var h=o[d];if(!(a?h in t:Z_.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var v=a;++d<l;){h=o[d];var m=e[h],y=t[h];if(r)var E=a?r(y,m,h,t,e,s):r(m,y,h,e,t,s);if(!(E===void 0?m===y||i(m,y,n,r,s):E)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var S=e.constructor,_=t.constructor;S!=_&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof _=="function"&&_ instanceof _)&&(g=!1)}return s.delete(e),s.delete(t),g}var Q_=1,Sd="[object Arguments]",_d="[object Array]",ps="[object Object]",J_=Object.prototype,wd=J_.hasOwnProperty;function tw(e,t,n,r,i,s){var a=Ht(e),o=Ht(t),l=a?_d:cr(e),c=o?_d:cr(t);l=l==Sd?ps:l,c=c==Sd?ps:c;var u=l==ps,d=c==ps,h=l==c;if(h&&sr(e)){if(!sr(t))return!1;a=!0,u=!1}if(h&&!u)return s||(s=new _e),a||os(e)?Ed(e,t,n,r,i,s):Y_(e,t,l,n,r,i,s);if(!(n&Q_)){var f=u&&wd.call(e,"__wrapped__"),p=d&&wd.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,v=p?t.value():t;return s||(s=new _e),i(g,v,n,r,s)}}return h?(s||(s=new _e),K_(e,t,n,r,i,s)):!1}function gs(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ue(e)&&!Ue(t)?e!==e&&t!==t:tw(e,t,n,r,gs,i)}var ew=1,nw=2;function rw(e,t,n,r){var i=n.length,s=i,a=!r;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var l=o[0],c=e[l],u=o[1];if(a&&o[2]){if(c===void 0&&!(l in e))return!1}else{var d=new _e;if(r)var h=r(c,u,l,e,t,d);if(!(h===void 0?gs(u,c,ew|nw,r,d):h))return!1}}return!0}function Td(e){return e===e&&!ve(e)}function iw(e){for(var t=Kr(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Td(i)]}return t}function Od(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function sw(e){var t=iw(e);return t.length==1&&t[0][2]?Od(t[0][0],t[0][1]):function(n){return n===e||rw(n,e,t)}}function aw(e,t){return e!=null&&t in Object(e)}function ow(e,t,n){t=yh(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var a=us(t[r]);if(!(s=e!=null&&n(e,a)))break;e=e[a]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&Lo(i)&&Do(a,i)&&(Ht(e)||ir(e)))}function lw(e,t){return e!=null&&ow(e,t,aw)}var cw=1,uw=2;function hw(e,t){return ko(e)&&Td(t)?Od(us(e),t):function(n){var r=_t(n,e);return r===void 0&&r===t?lw(n,e):gs(t,r,cw|uw)}}function dw(e){return function(t){return t==null?void 0:t[e]}}function fw(e){return function(t){return bh(t,e)}}function pw(e){return ko(e)?dw(us(e)):fw(e)}function ms(e){return typeof e=="function"?e:e==null?Oo:typeof e=="object"?Ht(e)?hw(e[0],e[1]):sw(e):pw(e)}function gw(e,t,n,r){for(var i=-1,s=e==null?0:e.length;++i<s;){var a=e[i];t(r,a,n(a),e)}return r}function mw(e){return function(t,n,r){for(var i=-1,s=Object(t),a=r(t),o=a.length;o--;){var l=a[e?o:++i];if(n(s[l],l,s)===!1)break}return t}}var vw=mw();const Md=vw;function yw(e,t){return e&&Md(e,t,Kr)}function bw(e,t){return function(n,r){if(n==null)return n;if(!Dn(n))return e(n,r);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++s<i)&&r(a[s],s,a)!==!1;);return n}}var Ew=bw(yw);const Yo=Ew;function xw(e,t,n,r){return Yo(e,function(i,s,a){t(r,i,n(i),a)}),r}function Sw(e,t){return function(n,r){var i=Ht(n)?gw:xw,s=t?t():{};return i(n,e,ms(r),s)}}var _w=function(){return Se.Date.now()};const Xo=_w;var ww="Expected a function",Tw=Math.max,Ow=Math.min;function vs(e,t,n){var r,i,s,a,o,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(ww);t=Yr(t)||0,ve(n)&&(u=!!n.leading,d="maxWait"in n,s=d?Tw(Yr(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function f(x){var C=r,D=i;return r=i=void 0,c=x,a=e.apply(D,C),a}function p(x){return c=x,o=setTimeout(m,t),u?f(x):a}function g(x){var C=x-l,D=x-c,G=t-C;return d?Ow(G,s-D):G}function v(x){var C=x-l,D=x-c;return l===void 0||C>=t||C<0||d&&D>=s}function m(){var x=Xo();if(v(x))return y(x);o=setTimeout(m,g(x))}function y(x){return o=void 0,h&&r?f(x):(r=i=void 0,a)}function E(){o!==void 0&&clearTimeout(o),c=0,r=l=i=o=void 0}function S(){return o===void 0?a:y(Xo())}function _(){var x=Xo(),C=v(x);if(r=arguments,i=this,l=x,C){if(o===void 0)return p(l);if(d)return clearTimeout(o),o=setTimeout(m,t),f(l)}return o===void 0&&(o=setTimeout(m,t)),a}return _.cancel=E,_.flush=S,_}function jo(e,t,n){(n!==void 0&&!Xr(e[t],n)||n===void 0&&!(t in e))&&ss(e,t,n)}function Zo(e){return Ue(e)&&Dn(e)}function Ko(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Mw(e){return jr(e,Qr(e))}function Cw(e,t,n,r,i,s,a){var o=Ko(e,n),l=Ko(t,n),c=a.get(l);if(c){jo(e,n,c);return}var u=s?s(o,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var h=Ht(l),f=!h&&sr(l),p=!h&&!f&&os(l);u=l,h||f||p?Ht(o)?u=o:Zo(o)?u=rh(o):f?(d=!1,u=Jh(l,!0)):p?(d=!1,u=hd(l,!0)):u=[]:_E(l)||ir(l)?(u=o,ir(o)?u=Mw(o):(!ve(o)||Mo(o))&&(u=dd(l))):d=!1}d&&(a.set(l,u),i(u,l,r,s,a),a.delete(l)),jo(e,n,u)}function Cd(e,t,n,r,i){e!==t&&Md(t,function(s,a){if(i||(i=new _e),ve(s))Cw(e,t,a,n,Cd,r,i);else{var o=r?r(Ko(e,a),s,a+"",e,t,i):void 0;o===void 0&&(o=s),jo(e,a,o)}},Qr)}function Aw(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Dw(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Lw(e,t){var n=-1,r=Dn(e)?Array(e.length):[];return Yo(e,function(i,s,a){r[++n]=t(i,s,a)}),r}function Rw(e,t){var n=Ht(e)?Zu:Lw;return n(e,ms(t))}var Iw=1/0;function kw(e,t){return hs(Rw(e,t),Iw)}function $w(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var Pw=Object.prototype,Nw=Pw.hasOwnProperty,Uw=Sw(function(e,t,n){Nw.call(e,n)?e[n].push(t):ss(e,n,[t])});const Bw=Uw;var Vw="[object Map]",Hw="[object Set]",Gw=Object.prototype,Fw=Gw.hasOwnProperty;function we(e){if(e==null)return!0;if(Dn(e)&&(Ht(e)||typeof e=="string"||typeof e.splice=="function"||sr(e)||os(e)||ir(e)))return!e.length;var t=cr(e);if(t==Vw||t==Hw)return!e.size;if(as(e))return!vh(e).length;for(var n in e)if(Fw.call(e,n))return!1;return!0}function Ad(e,t){return gs(e,t)}var zw=Yh(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const ur=zw;var Ww=B1(function(e,t,n){Cd(e,t,n)});const tt=Ww;function qw(e,t){var n;return Yo(e,function(r,i,s){return n=t(r,i,s),!n}),!!n}function Yw(e,t,n){var r=Ht(e)?yd:qw;return n&&oh(e,t,n)&&(t=void 0),r(e,ms(t))}var Xw=1/0,jw=lr&&1/Wo(new lr([,-0]))[1]==Xw?function(e){return new lr(e)}:v1;const Zw=jw;var Kw=200;function Dd(e,t,n){var r=-1,i=R1,s=e.length,a=!0,o=[],l=o;if(n)a=!1,i=Aw;else if(s>=Kw){var c=t?null:Zw(e);if(c)return Wo(c);a=!1,i=bd,l=new ni}else l=t?[]:o;t:for(;++r<s;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue t;t&&l.push(d),o.push(u)}else i(l,d,n)||(l!==o&&l.push(d),o.push(u))}return o}var Qw=ah(function(e){var t=Dw(e);return Zo(t)&&(t=void 0),Dd(hs(e,1,Zo,!0),ms(t))});const Jw=Qw;function ri(e){return e&&e.length?Dd(e):[]}function In(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tT(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Qo(e){let t,n,r;e.length!==2?(t=In,n=(o,l)=>In(e(o),l),r=(o,l)=>e(o)-l):(t=e===In||e===tT?e:eT,n=e,r=e);function i(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<0?c=d+1:u=d}while(c<u)}return c}function s(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(o,l,c=0,u=o.length){const d=i(o,l,c,u-1);return d>c&&r(o[d-1],l)>-r(o[d],l)?d-1:d}return{left:i,center:a,right:s}}function eT(){return 0}function nT(e){return e===null?NaN:+e}function*rT(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const iT=Qo(In).right;Qo(nT).center;const Jo=iT;function sT(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function Te(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let s of e)(s=t(s,++i,e))!=null&&(n===void 0?s>=s&&(n=r=s):(n>s&&(n=s),r<s&&(r=s)))}return[n,r]}class kn{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const s=n[i],a=t+s,o=Math.abs(t)<Math.abs(s)?t-(a-s):s-(a-t);o&&(n[r++]=o),t=a}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,s,a=0;if(n>0){for(a=t[--n];n>0&&(r=a,i=t[--n],a=r+i,s=i-(a-r),!s););n>0&&(s<0&&t[n-1]<0||s>0&&t[n-1]>0)&&(i=s*2,r=a+i,i==r-a&&(a=r))}return a}}class Ld extends Map{constructor(t,n=lT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Rd(this,t))}has(t){return super.has(Rd(this,t))}set(t,n){return super.set(aT(this,t),n)}delete(t){return super.delete(oT(this,t))}}function Rd({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function aT({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function oT({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function lT(e){return e!==null&&typeof e=="object"?e.valueOf():e}function cT(e){return e}function uT(e=In){if(e===In)return Id;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Id(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var hT=Array.prototype,dT=hT.slice;function tl(e){return()=>e}const fT=Math.sqrt(50),pT=Math.sqrt(10),gT=Math.sqrt(2);function ys(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),a=s>=fT?10:s>=pT?5:s>=gT?2:1;let o,l,c;return i<0?(c=Math.pow(10,-i)/a,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?ys(e,t,n*2):[o,l,c]}function bs(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,a]=r?ys(t,e,n):ys(e,t,n);if(!(s>=i))return[];const o=s-i+1,l=new Array(o);if(r)if(a<0)for(let c=0;c<o;++c)l[c]=(s-c)/-a;else for(let c=0;c<o;++c)l[c]=(s-c)*a;else if(a<0)for(let c=0;c<o;++c)l[c]=(i+c)/-a;else for(let c=0;c<o;++c)l[c]=(i+c)*a;return l}function hr(e,t,n){return t=+t,e=+e,n=+n,ys(e,t,n)[2]}function el(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?hr(t,e,n):hr(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function mT(e,t,n){let r;for(;;){const i=hr(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function vT(e){return Math.max(1,Math.ceil(Math.log(sT(e))/Math.LN2)+1)}function yT(){var e=cT,t=Te,n=vT;function r(i){Array.isArray(i)||(i=Array.from(i));var s,a=i.length,o,l,c=new Array(a);for(s=0;s<a;++s)c[s]=e(i[s],s,i);var u=t(c),d=u[0],h=u[1],f=n(c,d,h);if(!Array.isArray(f)){const E=h,S=+f;if(t===Te&&([d,h]=mT(d,h,S)),f=bs(d,h,S),f[0]<=d&&(l=hr(d,h,S)),f[f.length-1]>=h)if(E>=h&&t===Te){const _=hr(d,h,S);isFinite(_)&&(_>0?h=(Math.floor(h/_)+1)*_:_<0&&(h=(Math.ceil(h*-_)+1)/-_))}else f.pop()}for(var p=f.length,g=0,v=p;f[g]<=d;)++g;for(;f[v-1]>h;)--v;(g||v<p)&&(f=f.slice(g,v),p=v-g);var m=new Array(p+1),y;for(s=0;s<=p;++s)y=m[s]=[],y.x0=s>0?f[s-1]:d,y.x1=s<p?f[s]:h;if(isFinite(l)){if(l>0)for(s=0;s<a;++s)(o=c[s])!=null&&d<=o&&o<=h&&m[Math.min(p,Math.floor((o-d)/l))].push(i[s]);else if(l<0){for(s=0;s<a;++s)if((o=c[s])!=null&&d<=o&&o<=h){const E=Math.floor((d-o)*l);m[Math.min(p,E+(f[E]<=o))].push(i[s])}}}else for(s=0;s<a;++s)(o=c[s])!=null&&d<=o&&o<=h&&m[Jo(f,o,0,p)].push(i[s]);return m}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:tl(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:tl([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:tl(Array.isArray(i)?dT.call(i):i),r):n},r}function $n(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function dn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function kd(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Id:uT(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),f=Math.max(n,Math.floor(t-c*d/l+h)),p=Math.min(r,Math.floor(t+(l-c)*d/l+h));kd(e,t,f,p,i)}const s=e[t];let a=n,o=r;for(ii(e,n,t),i(e[r],s)>0&&ii(e,n,r);a<o;){for(ii(e,a,o),++a,--o;i(e[a],s)<0;)++a;for(;i(e[o],s)>0;)--o}i(e[n],s)===0?ii(e,n,o):(++o,ii(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function ii(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function nl(e,t,n){if(e=Float64Array.from(rT(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return dn(e);if(t>=1)return $n(e);var r,i=(r-1)*t,s=Math.floor(i),a=$n(kd(e,s).subarray(0,s+1)),o=dn(e.subarray(s+1));return a+(o-a)*(i-s)}}function*bT(e){for(const t of e)yield*t}function $d(e){return Array.from(bT(e))}function ET(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function xT(e){return e}var Es=1,xs=2,rl=3,si=4,Pd=1e-6;function ST(e){return"translate("+e+",0)"}function _T(e){return"translate(0,"+e+")"}function wT(e){return t=>+e(t)}function TT(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function OT(){return!this.__axis}function Ss(e,t){var n=[],r=null,i=null,s=6,a=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===Es||e===si?-1:1,u=e===si||e===xs?"x":"y",d=e===Es||e===rl?ST:_T;function h(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),g=i??(t.tickFormat?t.tickFormat.apply(t,n):xT),v=Math.max(s,0)+o,m=t.range(),y=+m[0]+l,E=+m[m.length-1]+l,S=(t.bandwidth?TT:wT)(t.copy(),l),_=f.selection?f.selection():f,x=_.selectAll(".domain").data([null]),C=_.selectAll(".tick").data(p,t).order(),D=C.exit(),G=C.enter().append("g").attr("class","tick"),k=C.select("line"),O=C.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(G),k=k.merge(G.append("line").attr("stroke","currentColor").attr(u+"2",c*s)),O=O.merge(G.append("text").attr("fill","currentColor").attr(u,c*v).attr("dy",e===Es?"0em":e===rl?"0.71em":"0.32em")),f!==_&&(x=x.transition(f),C=C.transition(f),k=k.transition(f),O=O.transition(f),D=D.transition(f).attr("opacity",Pd).attr("transform",function(R){return isFinite(R=S(R))?d(R+l):this.getAttribute("transform")}),G.attr("opacity",Pd).attr("transform",function(R){var I=this.parentNode.__axis;return d((I&&isFinite(I=I(R))?I:S(R))+l)})),D.remove(),x.attr("d",e===si||e===xs?a?"M"+c*a+","+y+"H"+l+"V"+E+"H"+c*a:"M"+l+","+y+"V"+E:a?"M"+y+","+c*a+"V"+l+"H"+E+"V"+c*a:"M"+y+","+l+"H"+E),C.attr("opacity",1).attr("transform",function(R){return d(S(R)+l)}),k.attr(u+"2",c*s),O.attr(u,c*v).text(g),_.filter(OT).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===xs?"start":e===si?"end":"middle"),_.each(function(){this.__axis=S})}return h.scale=function(f){return arguments.length?(t=f,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(f){return arguments.length?(n=f==null?[]:Array.from(f),h):n.slice()},h.tickValues=function(f){return arguments.length?(r=f==null?null:Array.from(f),h):r&&r.slice()},h.tickFormat=function(f){return arguments.length?(i=f,h):i},h.tickSize=function(f){return arguments.length?(s=a=+f,h):s},h.tickSizeInner=function(f){return arguments.length?(s=+f,h):s},h.tickSizeOuter=function(f){return arguments.length?(a=+f,h):a},h.tickPadding=function(f){return arguments.length?(o=+f,h):o},h.offset=function(f){return arguments.length?(l=+f,h):l},h}function MT(e){return Ss(Es,e)}function CT(e){return Ss(xs,e)}function il(e){return Ss(rl,e)}function Nd(e){return Ss(si,e)}var AT={value:()=>{}};function sl(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new _s(n)}function _s(e){this._=e}function DT(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}_s.prototype=sl.prototype={constructor:_s,on:function(e,t){var n=this._,r=DT(e+"",n),i,s=-1,a=r.length;if(arguments.length<2){for(;++s<a;)if((i=(e=r[s]).type)&&(i=LT(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<a;)if(i=(e=r[s]).type)n[i]=Ud(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ud(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new _s(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],r=0,i=s.length;r<i;++r)s[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,s=r.length;i<s;++i)r[i].value.apply(t,n)}};function LT(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ud(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=AT,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var al="http://www.w3.org/1999/xhtml";const Bd={svg:"http://www.w3.org/2000/svg",xhtml:al,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ws(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Bd.hasOwnProperty(t)?{space:Bd[t],local:e}:e}function RT(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===al&&t.documentElement.namespaceURI===al?t.createElement(e):t.createElementNS(n,e)}}function IT(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Vd(e){var t=ws(e);return(t.local?IT:RT)(t)}function kT(){}function ol(e){return e==null?kT:function(){return this.querySelector(e)}}function $T(e){typeof e!="function"&&(e=ol(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=new Array(a),l,c,u=0;u<a;++u)(l=s[u])&&(c=e.call(l,l.__data__,u,s))&&("__data__"in l&&(c.__data__=l.__data__),o[u]=c);return new ue(r,this._parents)}function PT(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function NT(){return[]}function Hd(e){return e==null?NT:function(){return this.querySelectorAll(e)}}function UT(e){return function(){return PT(e.apply(this,arguments))}}function BT(e){typeof e=="function"?e=UT(e):e=Hd(e);for(var t=this._groups,n=t.length,r=[],i=[],s=0;s<n;++s)for(var a=t[s],o=a.length,l,c=0;c<o;++c)(l=a[c])&&(r.push(e.call(l,l.__data__,c,a)),i.push(l));return new ue(r,i)}function Gd(e){return function(){return this.matches(e)}}function Fd(e){return function(t){return t.matches(e)}}var VT=Array.prototype.find;function HT(e){return function(){return VT.call(this.children,e)}}function GT(){return this.firstElementChild}function FT(e){return this.select(e==null?GT:HT(typeof e=="function"?e:Fd(e)))}var zT=Array.prototype.filter;function WT(){return Array.from(this.children)}function qT(e){return function(){return zT.call(this.children,e)}}function YT(e){return this.selectAll(e==null?WT:qT(typeof e=="function"?e:Fd(e)))}function XT(e){typeof e!="function"&&(e=Gd(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=[],l,c=0;c<a;++c)(l=s[c])&&e.call(l,l.__data__,c,s)&&o.push(l);return new ue(r,this._parents)}function zd(e){return new Array(e.length)}function jT(){return new ue(this._enter||this._groups.map(zd),this._parents)}function Ts(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ts.prototype={constructor:Ts,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ZT(e){return function(){return e}}function KT(e,t,n,r,i,s){for(var a=0,o,l=t.length,c=s.length;a<c;++a)(o=t[a])?(o.__data__=s[a],r[a]=o):n[a]=new Ts(e,s[a]);for(;a<l;++a)(o=t[a])&&(i[a]=o)}function QT(e,t,n,r,i,s,a){var o,l,c=new Map,u=t.length,d=s.length,h=new Array(u),f;for(o=0;o<u;++o)(l=t[o])&&(h[o]=f=a.call(l,l.__data__,o,t)+"",c.has(f)?i[o]=l:c.set(f,l));for(o=0;o<d;++o)f=a.call(e,s[o],o,s)+"",(l=c.get(f))?(r[o]=l,l.__data__=s[o],c.delete(f)):n[o]=new Ts(e,s[o]);for(o=0;o<u;++o)(l=t[o])&&c.get(h[o])===l&&(i[o]=l)}function JT(e){return e.__data__}function tO(e,t){if(!arguments.length)return Array.from(this,JT);var n=t?QT:KT,r=this._parents,i=this._groups;typeof e!="function"&&(e=ZT(e));for(var s=i.length,a=new Array(s),o=new Array(s),l=new Array(s),c=0;c<s;++c){var u=r[c],d=i[c],h=d.length,f=eO(e.call(u,u&&u.__data__,c,r)),p=f.length,g=o[c]=new Array(p),v=a[c]=new Array(p),m=l[c]=new Array(h);n(u,d,g,v,m,f,t);for(var y=0,E=0,S,_;y<p;++y)if(S=g[y]){for(y>=E&&(E=y+1);!(_=v[E])&&++E<p;);S._next=_||null}}return a=new ue(a,r),a._enter=o,a._exit=l,a}function eO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function nO(){return new ue(this._exit||this._groups.map(zd),this._parents)}function rO(e,t,n){var r=this.enter(),i=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function iO(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,s=r.length,a=Math.min(i,s),o=new Array(i),l=0;l<a;++l)for(var c=n[l],u=r[l],d=c.length,h=o[l]=new Array(d),f,p=0;p<d;++p)(f=c[p]||u[p])&&(h[p]=f);for(;l<i;++l)o[l]=n[l];return new ue(o,this._parents)}function sO(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,s=r[i],a;--i>=0;)(a=r[i])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function aO(e){e||(e=oO);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var a=n[s],o=a.length,l=i[s]=new Array(o),c,u=0;u<o;++u)(c=a[u])&&(l[u]=c);l.sort(t)}return new ue(i,this._parents).order()}function oO(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function lO(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function cO(){return Array.from(this)}function uO(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length;i<s;++i){var a=r[i];if(a)return a}return null}function hO(){let e=0;for(const t of this)++e;return e}function dO(){return!this.node()}function fO(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],s=0,a=i.length,o;s<a;++s)(o=i[s])&&e.call(o,o.__data__,s,i);return this}function pO(e){return function(){this.removeAttribute(e)}}function gO(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mO(e,t){return function(){this.setAttribute(e,t)}}function vO(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function yO(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function bO(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function EO(e,t){var n=ws(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?gO:pO:typeof t=="function"?n.local?bO:yO:n.local?vO:mO)(n,t))}function Wd(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xO(e){return function(){this.style.removeProperty(e)}}function SO(e,t,n){return function(){this.style.setProperty(e,t,n)}}function _O(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function wO(e,t,n){return arguments.length>1?this.each((t==null?xO:typeof t=="function"?_O:SO)(e,t,n??"")):dr(this.node(),e)}function dr(e,t){return e.style.getPropertyValue(t)||Wd(e).getComputedStyle(e,null).getPropertyValue(t)}function TO(e){return function(){delete this[e]}}function OO(e,t){return function(){this[e]=t}}function MO(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function CO(e,t){return arguments.length>1?this.each((t==null?TO:typeof t=="function"?MO:OO)(e,t)):this.node()[e]}function qd(e){return e.trim().split(/^|\s+/)}function ll(e){return e.classList||new Yd(e)}function Yd(e){this._node=e,this._names=qd(e.getAttribute("class")||"")}Yd.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Xd(e,t){for(var n=ll(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function jd(e,t){for(var n=ll(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function AO(e){return function(){Xd(this,e)}}function DO(e){return function(){jd(this,e)}}function LO(e,t){return function(){(t.apply(this,arguments)?Xd:jd)(this,e)}}function RO(e,t){var n=qd(e+"");if(arguments.length<2){for(var r=ll(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?LO:t?AO:DO)(n,t))}function IO(){this.textContent=""}function kO(e){return function(){this.textContent=e}}function $O(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function PO(e){return arguments.length?this.each(e==null?IO:(typeof e=="function"?$O:kO)(e)):this.node().textContent}function NO(){this.innerHTML=""}function UO(e){return function(){this.innerHTML=e}}function BO(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function VO(e){return arguments.length?this.each(e==null?NO:(typeof e=="function"?BO:UO)(e)):this.node().innerHTML}function HO(){this.nextSibling&&this.parentNode.appendChild(this)}function GO(){return this.each(HO)}function FO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zO(){return this.each(FO)}function WO(e){var t=typeof e=="function"?e:Vd(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function qO(){return null}function YO(e,t){var n=typeof e=="function"?e:Vd(e),r=t==null?qO:typeof t=="function"?t:ol(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function XO(){var e=this.parentNode;e&&e.removeChild(this)}function jO(){return this.each(XO)}function ZO(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function KO(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function QO(e){return this.select(e?KO:ZO)}function JO(e){return arguments.length?this.property("__data__",e):this.node().__data__}function tM(e){return function(t){e.call(this,t,this.__data__)}}function eM(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function nM(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,s;n<i;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function rM(e,t,n){return function(){var r=this.__on,i,s=tM(t);if(r){for(var a=0,o=r.length;a<o;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=t;return}}this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(i):this.__on=[i]}}function iM(e,t,n){var r=eM(e+""),i,s=r.length,a;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,u;l<c;++l)for(i=0,u=o[l];i<s;++i)if((a=r[i]).type===u.type&&a.name===u.name)return u.value}return}for(o=t?rM:nM,i=0;i<s;++i)this.each(o(r[i],t,n));return this}function Zd(e,t,n){var r=Wd(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function sM(e,t){return function(){return Zd(this,e,t)}}function aM(e,t){return function(){return Zd(this,e,t.apply(this,arguments))}}function oM(e,t){return this.each((typeof t=="function"?aM:sM)(e,t))}function*lM(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length,a;i<s;++i)(a=r[i])&&(yield a)}var Kd=[null];function ue(e,t){this._groups=e,this._parents=t}function ai(){return new ue([[document.documentElement]],Kd)}function cM(){return this}ue.prototype=ai.prototype={constructor:ue,select:$T,selectAll:BT,selectChild:FT,selectChildren:YT,filter:XT,data:tO,enter:jT,exit:nO,join:rO,merge:iO,selection:cM,order:sO,sort:aO,call:lO,nodes:cO,node:uO,size:hO,empty:dO,each:fO,attr:EO,style:wO,property:CO,classed:RO,text:PO,html:VO,raise:GO,lower:zO,append:WO,insert:YO,remove:jO,clone:QO,datum:JO,on:iM,dispatch:oM,[Symbol.iterator]:lM};function L(e){return typeof e=="string"?new ue([[document.querySelector(e)]],[document.documentElement]):new ue([[e]],Kd)}function uM(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Pn(e,t){if(e=uM(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const cl={capture:!0,passive:!1};function ul(e){e.preventDefault(),e.stopImmediatePropagation()}function hM(e){var t=e.document.documentElement,n=L(e).on("dragstart.drag",ul,cl);"onselectstart"in t?n.on("selectstart.drag",ul,cl):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function dM(e,t){var n=e.document.documentElement,r=L(e).on("dragstart.drag",null);t&&(r.on("click.drag",ul,cl),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function hl(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function oi(){}var li=.7,Os=1/li,fr="\\s*([+-]?\\d+)\\s*",ci="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fM=/^#([0-9a-f]{3,8})$/,pM=new RegExp(`^rgb\\(${fr},${fr},${fr}\\)$`),gM=new RegExp(`^rgb\\(${Be},${Be},${Be}\\)$`),mM=new RegExp(`^rgba\\(${fr},${fr},${fr},${ci}\\)$`),vM=new RegExp(`^rgba\\(${Be},${Be},${Be},${ci}\\)$`),yM=new RegExp(`^hsl\\(${ci},${Be},${Be}\\)$`),bM=new RegExp(`^hsla\\(${ci},${Be},${Be},${ci}\\)$`),Jd={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};hl(oi,Ze,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tf,formatHex:tf,formatHex8:EM,formatHsl:xM,formatRgb:ef,toString:ef});function tf(){return this.rgb().formatHex()}function EM(){return this.rgb().formatHex8()}function xM(){return of(this).formatHsl()}function ef(){return this.rgb().formatRgb()}function Ze(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fM.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?nf(t):n===3?new re(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ms(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ms(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=pM.exec(e))?new re(t[1],t[2],t[3],1):(t=gM.exec(e))?new re(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mM.exec(e))?Ms(t[1],t[2],t[3],t[4]):(t=vM.exec(e))?Ms(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yM.exec(e))?af(t[1],t[2]/100,t[3]/100,1):(t=bM.exec(e))?af(t[1],t[2]/100,t[3]/100,t[4]):Jd.hasOwnProperty(e)?nf(Jd[e]):e==="transparent"?new re(NaN,NaN,NaN,0):null}function nf(e){return new re(e>>16&255,e>>8&255,e&255,1)}function Ms(e,t,n,r){return r<=0&&(e=t=n=NaN),new re(e,t,n,r)}function SM(e){return e instanceof oi||(e=Ze(e)),e?(e=e.rgb(),new re(e.r,e.g,e.b,e.opacity)):new re}function dl(e,t,n,r){return arguments.length===1?SM(e):new re(e,t,n,r??1)}function re(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}hl(re,dl,Qd(oi,{brighter(e){return e=e==null?Os:Math.pow(Os,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new re(Nn(this.r),Nn(this.g),Nn(this.b),Cs(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:rf,formatHex:rf,formatHex8:_M,formatRgb:sf,toString:sf}));function rf(){return`#${Un(this.r)}${Un(this.g)}${Un(this.b)}`}function _M(){return`#${Un(this.r)}${Un(this.g)}${Un(this.b)}${Un((isNaN(this.opacity)?1:this.opacity)*255)}`}function sf(){const e=Cs(this.opacity);return`${e===1?"rgb(":"rgba("}${Nn(this.r)}, ${Nn(this.g)}, ${Nn(this.b)}${e===1?")":`, ${e})`}`}function Cs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Nn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Un(e){return e=Nn(e),(e<16?"0":"")+e.toString(16)}function af(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Oe(e,t,n,r)}function of(e){if(e instanceof Oe)return new Oe(e.h,e.s,e.l,e.opacity);if(e instanceof oi||(e=Ze(e)),!e)return new Oe;if(e instanceof Oe)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),a=NaN,o=s-i,l=(s+i)/2;return o?(t===s?a=(n-r)/o+(n<r)*6:n===s?a=(r-t)/o+2:a=(t-n)/o+4,o/=l<.5?s+i:2-s-i,a*=60):o=l>0&&l<1?0:a,new Oe(a,o,l,e.opacity)}function fl(e,t,n,r){return arguments.length===1?of(e):new Oe(e,t,n,r??1)}function Oe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hl(Oe,fl,Qd(oi,{brighter(e){return e=e==null?Os:Math.pow(Os,e),new Oe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new Oe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new re(pl(e>=240?e-240:e+120,i,r),pl(e,i,r),pl(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Oe(lf(this.h),As(this.s),As(this.l),Cs(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 e=Cs(this.opacity);return`${e===1?"hsl(":"hsla("}${lf(this.h)}, ${As(this.s)*100}%, ${As(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lf(e){return e=(e||0)%360,e<0?e+360:e}function As(e){return Math.max(0,Math.min(1,e||0))}function pl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const gl=e=>()=>e;function wM(e,t){return function(n){return e+n*t}}function TM(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function OM(e){return(e=+e)==1?cf:function(t,n){return n-t?TM(t,n,e):gl(isNaN(t)?n:t)}}function cf(e,t){var n=t-e;return n?wM(e,n):gl(isNaN(e)?t:e)}const Ds=function e(t){var n=OM(t);function r(i,s){var a=n((i=dl(i)).r,(s=dl(s)).r),o=n(i.g,s.g),l=n(i.b,s.b),c=cf(i.opacity,s.opacity);return function(u){return i.r=a(u),i.g=o(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function MM(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function CM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function AM(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),a;for(a=0;a<r;++a)i[a]=ui(e[a],t[a]);for(;a<n;++a)s[a]=t[a];return function(o){for(a=0;a<r;++a)s[a]=i[a](o);return s}}function DM(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function he(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function LM(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=ui(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var ml=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vl=new RegExp(ml.source,"g");function RM(e){return function(){return e}}function IM(e){return function(t){return e(t)+""}}function uf(e,t){var n=ml.lastIndex=vl.lastIndex=0,r,i,s,a=-1,o=[],l=[];for(e=e+"",t=t+"";(r=ml.exec(e))&&(i=vl.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),o[a]?o[a]+=s:o[++a]=s),(r=r[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:he(r,i)})),n=vl.lastIndex;return n<t.length&&(s=t.slice(n),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?IM(l[0].x):RM(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)o[(d=l[u]).i]=d.x(c);return o.join("")})}function ui(e,t){var n=typeof t,r;return t==null||n==="boolean"?gl(t):(n==="number"?he:n==="string"?(r=Ze(t))?(t=r,Ds):uf:t instanceof Ze?Ds:t instanceof Date?DM:CM(t)?MM:Array.isArray(t)?AM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?LM:he)(e,t)}function hf(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var df=180/Math.PI,yl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ff(e,t,n,r,i,s){var a,o,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:s,rotate:Math.atan2(t,e)*df,skewX:Math.atan(l)*df,scaleX:a,scaleY:o}}var Ls;function kM(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?yl:ff(t.a,t.b,t.c,t.d,t.e,t.f)}function $M(e){return e==null||(Ls||(Ls=document.createElementNS("http://www.w3.org/2000/svg","g")),Ls.setAttribute("transform",e),!(e=Ls.transform.baseVal.consolidate()))?yl:(e=e.matrix,ff(e.a,e.b,e.c,e.d,e.e,e.f))}function pf(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function s(c,u,d,h,f,p){if(c!==d||u!==h){var g=f.push("translate(",null,t,null,n);p.push({i:g-4,x:he(c,d)},{i:g-2,x:he(u,h)})}else(d||h)&&f.push("translate("+d+t+h+n)}function a(c,u,d,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:he(c,u)})):u&&d.push(i(d)+"rotate("+u+r)}function o(c,u,d,h){c!==u?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:he(c,u)}):u&&d.push(i(d)+"skewX("+u+r)}function l(c,u,d,h,f,p){if(c!==d||u!==h){var g=f.push(i(f)+"scale(",null,",",null,")");p.push({i:g-4,x:he(c,d)},{i:g-2,x:he(u,h)})}else(d!==1||h!==1)&&f.push(i(f)+"scale("+d+","+h+")")}return function(c,u){var d=[],h=[];return c=e(c),u=e(u),s(c.translateX,c.translateY,u.translateX,u.translateY,d,h),a(c.rotate,u.rotate,d,h),o(c.skewX,u.skewX,d,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var p=-1,g=h.length,v;++p<g;)d[(v=h[p]).i]=v.x(f);return d.join("")}}}var PM=pf(kM,"px, ","px)","deg)"),NM=pf($M,", ",")",")");function UM(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var pr=0,hi=0,di=0,gf=1e3,Rs,fi,Is=0,Bn=0,ks=0,pi=typeof performance=="object"&&performance.now?performance:Date,mf=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function bl(){return Bn||(mf(BM),Bn=pi.now()+ks)}function BM(){Bn=0}function $s(){this._call=this._time=this._next=null}$s.prototype=vf.prototype={constructor:$s,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?bl():+n)+(t==null?0:+t),!this._next&&fi!==this&&(fi?fi._next=this:Rs=this,fi=this),this._call=e,this._time=n,El()},stop:function(){this._call&&(this._call=null,this._time=1/0,El())}};function vf(e,t,n){var r=new $s;return r.restart(e,t,n),r}function VM(){bl(),++pr;for(var e=Rs,t;e;)(t=Bn-e._time)>=0&&e._call.call(void 0,t),e=e._next;--pr}function yf(){Bn=(Is=pi.now())+ks,pr=hi=0;try{VM()}finally{pr=0,GM(),Bn=0}}function HM(){var e=pi.now(),t=e-Is;t>gf&&(ks-=t,Is=e)}function GM(){for(var e,t=Rs,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Rs=n);fi=e,El(r)}function El(e){if(!pr){hi&&(hi=clearTimeout(hi));var t=e-Bn;t>24?(e<1/0&&(hi=setTimeout(yf,e-pi.now()-ks)),di&&(di=clearInterval(di))):(di||(Is=pi.now(),di=setInterval(HM,gf)),pr=1,mf(yf))}}function bf(e,t,n){var r=new $s;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var FM=sl("start","end","cancel","interrupt"),zM=[],Ef=0,xf=1,xl=2,Ps=3,Sf=4,Sl=5,Ns=6;function Us(e,t,n,r,i,s){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;WM(e,n,{name:t,index:r,group:i,on:FM,tween:zM,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Ef})}function _l(e,t){var n=Me(e,t);if(n.state>Ef)throw new Error("too late; already scheduled");return n}function Ve(e,t){var n=Me(e,t);if(n.state>Ps)throw new Error("too late; already running");return n}function Me(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function WM(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=vf(s,0,n.time);function s(c){n.state=xf,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var u,d,h,f;if(n.state!==xf)return l();for(u in r)if(f=r[u],f.name===n.name){if(f.state===Ps)return bf(a);f.state===Sf?(f.state=Ns,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete r[u]):+u<t&&(f.state=Ns,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete r[u])}if(bf(function(){n.state===Ps&&(n.state=Sf,n.timer.restart(o,n.delay,n.time),o(c))}),n.state=xl,n.on.call("start",e,e.__data__,n.index,n.group),n.state===xl){for(n.state=Ps,i=new Array(h=n.tween.length),u=0,d=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=f);i.length=d+1}}function o(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Sl,1),d=-1,h=i.length;++d<h;)i[d].call(e,u);n.state===Sl&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Ns,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function wl(e,t){var n=e.__transition,r,i,s=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){s=!1;continue}i=r.state>xl&&r.state<Sl,r.state=Ns,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}s&&delete e.__transition}}function qM(e){return this.each(function(){wl(this,e)})}function YM(e,t){var n,r;return function(){var i=Ve(this,e),s=i.tween;if(s!==n){r=n=s;for(var a=0,o=r.length;a<o;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function XM(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=Ve(this,e),a=s.tween;if(a!==r){i=(r=a).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}s.tween=i}}function jM(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Me(this.node(),n).tween,i=0,s=r.length,a;i<s;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?YM:XM)(n,e,t))}function Tl(e,t,n){var r=e._id;return e.each(function(){var i=Ve(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Me(i,r).value[t]}}function _f(e,t){var n;return(typeof t=="number"?he:t instanceof Ze?Ds:(n=Ze(t))?(t=n,Ds):uf)(e,t)}function ZM(e){return function(){this.removeAttribute(e)}}function KM(e){return function(){this.removeAttributeNS(e.space,e.local)}}function QM(e,t,n){var r,i=n+"",s;return function(){var a=this.getAttribute(e);return a===i?null:a===r?s:s=t(r=a,n)}}function JM(e,t,n){var r,i=n+"",s;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?s:s=t(r=a,n)}}function tC(e,t,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o)))}}function eC(e,t,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o)))}}function nC(e,t){var n=ws(e),r=n==="transform"?NM:_f;return this.attrTween(e,typeof t=="function"?(n.local?eC:tC)(n,r,Tl(this,"attr."+e,t)):t==null?(n.local?KM:ZM)(n):(n.local?JM:QM)(n,r,t))}function rC(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function iC(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function sC(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&iC(e,s)),n}return i._value=t,i}function aC(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&rC(e,s)),n}return i._value=t,i}function oC(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=ws(e);return this.tween(n,(r.local?sC:aC)(r,t))}function lC(e,t){return function(){_l(this,e).delay=+t.apply(this,arguments)}}function cC(e,t){return t=+t,function(){_l(this,e).delay=t}}function uC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?lC:cC)(t,e)):Me(this.node(),t).delay}function hC(e,t){return function(){Ve(this,e).duration=+t.apply(this,arguments)}}function dC(e,t){return t=+t,function(){Ve(this,e).duration=t}}function fC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?hC:dC)(t,e)):Me(this.node(),t).duration}function pC(e,t){if(typeof t!="function")throw new Error;return function(){Ve(this,e).ease=t}}function gC(e){var t=this._id;return arguments.length?this.each(pC(t,e)):Me(this.node(),t).ease}function mC(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ve(this,e).ease=n}}function vC(e){if(typeof e!="function")throw new Error;return this.each(mC(this._id,e))}function yC(e){typeof e!="function"&&(e=Gd(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=[],l,c=0;c<a;++c)(l=s[c])&&e.call(l,l.__data__,c,s)&&o.push(l);return new Ke(r,this._parents,this._name,this._id)}function bC(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,s=Math.min(r,i),a=new Array(r),o=0;o<s;++o)for(var l=t[o],c=n[o],u=l.length,d=a[o]=new Array(u),h,f=0;f<u;++f)(h=l[f]||c[f])&&(d[f]=h);for(;o<r;++o)a[o]=t[o];return new Ke(a,this._parents,this._name,this._id)}function EC(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function xC(e,t,n){var r,i,s=EC(t)?_l:Ve;return function(){var a=s(this,e),o=a.on;o!==r&&(i=(r=o).copy()).on(t,n),a.on=i}}function SC(e,t){var n=this._id;return arguments.length<2?Me(this.node(),n).on.on(e):this.each(xC(n,e,t))}function _C(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function wC(){return this.on("end.remove",_C(this._id))}function TC(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ol(e));for(var r=this._groups,i=r.length,s=new Array(i),a=0;a<i;++a)for(var o=r[a],l=o.length,c=s[a]=new Array(l),u,d,h=0;h<l;++h)(u=o[h])&&(d=e.call(u,u.__data__,h,o))&&("__data__"in u&&(d.__data__=u.__data__),c[h]=d,Us(c[h],t,n,h,c,Me(u,n)));return new Ke(s,this._parents,t,n)}function OC(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Hd(e));for(var r=this._groups,i=r.length,s=[],a=[],o=0;o<i;++o)for(var l=r[o],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var h=e.call(u,u.__data__,d,l),f,p=Me(u,n),g=0,v=h.length;g<v;++g)(f=h[g])&&Us(f,t,n,g,h,p);s.push(h),a.push(u)}return new Ke(s,a,t,n)}var MC=ai.prototype.constructor;function CC(){return new MC(this._groups,this._parents)}function AC(e,t){var n,r,i;return function(){var s=dr(this,e),a=(this.style.removeProperty(e),dr(this,e));return s===a?null:s===n&&a===r?i:i=t(n=s,r=a)}}function wf(e){return function(){this.style.removeProperty(e)}}function DC(e,t,n){var r,i=n+"",s;return function(){var a=dr(this,e);return a===i?null:a===r?s:s=t(r=a,n)}}function LC(e,t,n){var r,i,s;return function(){var a=dr(this,e),o=n(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),dr(this,e))),a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o))}}function RC(e,t){var n,r,i,s="style."+t,a="end."+s,o;return function(){var l=Ve(this,e),c=l.on,u=l.value[s]==null?o||(o=wf(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(a,i=u),l.on=r}}function IC(e,t,n){var r=(e+="")=="transform"?PM:_f;return t==null?this.styleTween(e,AC(e,r)).on("end.style."+e,wf(e)):typeof t=="function"?this.styleTween(e,LC(e,r,Tl(this,"style."+e,t))).each(RC(this._id,e)):this.styleTween(e,DC(e,r,t),n).on("end.style."+e,null)}function kC(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function $C(e,t,n){var r,i;function s(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&kC(e,a,n)),r}return s._value=t,s}function PC(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,$C(e,t,n??""))}function NC(e){return function(){this.textContent=e}}function UC(e){return function(){var t=e(this);this.textContent=t??""}}function BC(e){return this.tween("text",typeof e=="function"?UC(Tl(this,"text",e)):NC(e==null?"":e+""))}function VC(e){return function(t){this.textContent=e.call(this,t)}}function HC(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&VC(i)),t}return r._value=e,r}function GC(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,HC(e))}function FC(){for(var e=this._name,t=this._id,n=Tf(),r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,c=0;c<o;++c)if(l=a[c]){var u=Me(l,t);Us(l,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ke(r,this._parents,e,n)}function zC(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(s,a){var o={value:a},l={value:function(){--i===0&&s()}};n.each(function(){var c=Ve(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),c.on=t}),i===0&&s()})}var WC=0;function Ke(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Tf(){return++WC}var Qe=ai.prototype;Ke.prototype={constructor:Ke,select:TC,selectAll:OC,selectChild:Qe.selectChild,selectChildren:Qe.selectChildren,filter:yC,merge:bC,selection:CC,transition:FC,call:Qe.call,nodes:Qe.nodes,node:Qe.node,size:Qe.size,empty:Qe.empty,each:Qe.each,on:SC,attr:nC,attrTween:oC,style:IC,styleTween:PC,text:BC,textTween:GC,remove:wC,tween:jM,delay:uC,duration:fC,ease:gC,easeVarying:vC,end:zC,[Symbol.iterator]:Qe[Symbol.iterator]};const qC=e=>+e;function Of(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var YC={time:null,delay:0,duration:250,ease:Of};function XC(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function jC(e){var t,n;e instanceof Ke?(t=e._id,e=e._name):(t=Tf(),(n=YC).time=bl(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,c=0;c<o;++c)(l=a[c])&&Us(l,e,t,c,a,n||XC(l,t));return new Ke(r,this._parents,e,t)}ai.prototype.interrupt=qM,ai.prototype.transition=jC;const Ol=e=>()=>e;function ZC(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function KC(e){e.stopImmediatePropagation()}function Ml(e){e.preventDefault(),e.stopImmediatePropagation()}var Mf={name:"drag"},Cl={name:"space"},gr={name:"handle"},mr={name:"center"};const{abs:Cf,max:Ft,min:zt}=Math;function Af(e){return[+e[0],+e[1]]}function Df(e){return[Af(e[0]),Af(e[1])]}var Bs={name:"x",handles:["w","e"].map(Vs),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Al={name:"y",handles:["n","s"].map(Vs),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Je={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Lf={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Rf={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},QC={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},JC={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Vs(e){return{type:e}}function tA(e){return!e.ctrlKey&&!e.button}function eA(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function nA(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dl(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function rA(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function If(){return iA(Bs)}function iA(e){var t=eA,n=tA,r=nA,i=!0,s=sl("start","brush","end"),a=6,o;function l(v){var m=v.property("__brush",g).selectAll(".overlay").data([Vs("overlay")]);m.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Je.overlay).merge(m).each(function(){var E=Dl(this).extent;L(this).attr("x",E[0][0]).attr("y",E[0][1]).attr("width",E[1][0]-E[0][0]).attr("height",E[1][1]-E[0][1])}),v.selectAll(".selection").data([Vs("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Je.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var y=v.selectAll(".handle").data(e.handles,function(E){return E.type});y.exit().remove(),y.enter().append("rect").attr("class",function(E){return"handle handle--"+E.type}).attr("cursor",function(E){return Je[E.type]}),v.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(v,m,y){v.tween?v.on("start.brush",function(E){u(this,arguments).beforestart().start(E)}).on("interrupt.brush end.brush",function(E){u(this,arguments).end(E)}).tween("brush",function(){var E=this,S=E.__brush,_=u(E,arguments),x=S.selection,C=e.input(typeof m=="function"?m.apply(this,arguments):m,S.extent),D=ui(x,C);function G(k){S.selection=k===1&&C===null?null:D(k),c.call(E),_.brush()}return x!==null&&C!==null?G:G(1)}):v.each(function(){var E=this,S=arguments,_=E.__brush,x=e.input(typeof m=="function"?m.apply(E,S):m,_.extent),C=u(E,S).beforestart();wl(E),_.selection=x===null?null:x,c.call(E),C.start(y).brush(y).end(y)})},l.clear=function(v,m){l.move(v,null,m)};function c(){var v=L(this),m=Dl(this).selection;m?(v.selectAll(".selection").style("display",null).attr("x",m[0][0]).attr("y",m[0][1]).attr("width",m[1][0]-m[0][0]).attr("height",m[1][1]-m[0][1]),v.selectAll(".handle").style("display",null).attr("x",function(y){return y.type[y.type.length-1]==="e"?m[1][0]-a/2:m[0][0]-a/2}).attr("y",function(y){return y.type[0]==="s"?m[1][1]-a/2:m[0][1]-a/2}).attr("width",function(y){return y.type==="n"||y.type==="s"?m[1][0]-m[0][0]+a:a}).attr("height",function(y){return y.type==="e"||y.type==="w"?m[1][1]-m[0][1]+a:a})):v.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(v,m,y){var E=v.__brush.emitter;return E&&(!y||!E.clean)?E:new d(v,m,y)}function d(v,m,y){this.that=v,this.args=m,this.state=v.__brush,this.active=0,this.clean=y}d.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(v,m){return this.starting?(this.starting=!1,this.emit("start",v,m)):this.emit("brush",v),this},brush:function(v,m){return this.emit("brush",v,m),this},end:function(v,m){return--this.active===0&&(delete this.state.emitter,this.emit("end",v,m)),this},emit:function(v,m,y){var E=L(this.that).datum();s.call(v,this.that,new ZC(v,{sourceEvent:m,target:l,selection:e.output(this.state.selection),mode:y,dispatch:s}),E)}};function h(v){if(o&&!v.touches||!n.apply(this,arguments))return;var m=this,y=v.target.__data__.type,E=(i&&v.metaKey?y="overlay":y)==="selection"?Mf:i&&v.altKey?mr:gr,S=e===Al?null:QC[y],_=e===Bs?null:JC[y],x=Dl(m),C=x.extent,D=x.selection,G=C[0][0],k,O,R=C[0][1],I,$,T=C[1][0],B,N,U=C[1][1],V,q,X=0,J=0,ct,W=S&&_&&i&&v.shiftKey,K,ut,rt=Array.from(v.touches||[v],et=>{const Rt=et.identifier;return et=Pn(et,m),et.point0=et.slice(),et.identifier=Rt,et});wl(m);var Ct=u(m,arguments,!0).beforestart();if(y==="overlay"){D&&(ct=!0);const et=[rt[0],rt[1]||rt[0]];x.selection=D=[[k=e===Al?G:zt(et[0][0],et[1][0]),I=e===Bs?R:zt(et[0][1],et[1][1])],[B=e===Al?T:Ft(et[0][0],et[1][0]),V=e===Bs?U:Ft(et[0][1],et[1][1])]],rt.length>1&&pt(v)}else k=D[0][0],I=D[0][1],B=D[1][0],V=D[1][1];O=k,$=I,N=B,q=V;var Y=L(m).attr("pointer-events","none"),H=Y.selectAll(".overlay").attr("cursor",Je[y]);if(v.touches)Ct.moved=P,Ct.ended=bt;else{var F=L(v.view).on("mousemove.brush",P,!0).on("mouseup.brush",bt,!0);i&&F.on("keydown.brush",ee,!0).on("keyup.brush",ne,!0),hM(v.view)}c.call(m),Ct.start(v,E.name);function P(et){for(const Rt of et.changedTouches||[et])for(const Ki of rt)Ki.identifier===Rt.identifier&&(Ki.cur=Pn(Rt,m));if(W&&!K&&!ut&&rt.length===1){const Rt=rt[0];Cf(Rt.cur[0]-Rt[0])>Cf(Rt.cur[1]-Rt[1])?ut=!0:K=!0}for(const Rt of rt)Rt.cur&&(Rt[0]=Rt.cur[0],Rt[1]=Rt.cur[1]);ct=!0,Ml(et),pt(et)}function pt(et){const Rt=rt[0],Ki=Rt.point0;var wn;switch(X=Rt[0]-Ki[0],J=Rt[1]-Ki[1],E){case Cl:case Mf:{S&&(X=Ft(G-k,zt(T-B,X)),O=k+X,N=B+X),_&&(J=Ft(R-I,zt(U-V,J)),$=I+J,q=V+J);break}case gr:{rt[1]?(S&&(O=Ft(G,zt(T,rt[0][0])),N=Ft(G,zt(T,rt[1][0])),S=1),_&&($=Ft(R,zt(U,rt[0][1])),q=Ft(R,zt(U,rt[1][1])),_=1)):(S<0?(X=Ft(G-k,zt(T-k,X)),O=k+X,N=B):S>0&&(X=Ft(G-B,zt(T-B,X)),O=k,N=B+X),_<0?(J=Ft(R-I,zt(U-I,J)),$=I+J,q=V):_>0&&(J=Ft(R-V,zt(U-V,J)),$=I,q=V+J));break}case mr:{S&&(O=Ft(G,zt(T,k-X*S)),N=Ft(G,zt(T,B+X*S))),_&&($=Ft(R,zt(U,I-J*_)),q=Ft(R,zt(U,V+J*_)));break}}N<O&&(S*=-1,wn=k,k=B,B=wn,wn=O,O=N,N=wn,y in Lf&&H.attr("cursor",Je[y=Lf[y]])),q<$&&(_*=-1,wn=I,I=V,V=wn,wn=$,$=q,q=wn,y in Rf&&H.attr("cursor",Je[y=Rf[y]])),x.selection&&(D=x.selection),K&&(O=D[0][0],N=D[1][0]),ut&&($=D[0][1],q=D[1][1]),(D[0][0]!==O||D[0][1]!==$||D[1][0]!==N||D[1][1]!==q)&&(x.selection=[[O,$],[N,q]],c.call(m),Ct.brush(et,E.name))}function bt(et){if(KC(et),et.touches){if(et.touches.length)return;o&&clearTimeout(o),o=setTimeout(function(){o=null},500)}else dM(et.view,ct),F.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Y.attr("pointer-events","all"),H.attr("cursor",Je.overlay),x.selection&&(D=x.selection),rA(D)&&(x.selection=null,c.call(m)),Ct.end(et,E.name)}function ee(et){switch(et.keyCode){case 16:{W=S&&_;break}case 18:{E===gr&&(S&&(B=N-X*S,k=O+X*S),_&&(V=q-J*_,I=$+J*_),E=mr,pt(et));break}case 32:{(E===gr||E===mr)&&(S<0?B=N-X:S>0&&(k=O-X),_<0?V=q-J:_>0&&(I=$-J),E=Cl,H.attr("cursor",Je.selection),pt(et));break}default:return}Ml(et)}function ne(et){switch(et.keyCode){case 16:{W&&(K=ut=W=!1,pt(et));break}case 18:{E===mr&&(S<0?B=N:S>0&&(k=O),_<0?V=q:_>0&&(I=$),E=gr,pt(et));break}case 32:{E===Cl&&(et.altKey?(S&&(B=N-X*S,k=O+X*S),_&&(V=q-J*_,I=$+J*_),E=mr):(S<0?B=N:S>0&&(k=O),_<0?V=q:_>0&&(I=$),E=gr),H.attr("cursor",Je[y]),pt(et));break}default:return}Ml(et)}}function f(v){u(this,arguments).moved(v)}function p(v){u(this,arguments).ended(v)}function g(){var v=this.__brush||{selection:null};return v.extent=Df(t.apply(this,arguments)),v.dim=e,v}return l.extent=function(v){return arguments.length?(t=typeof v=="function"?v:Ol(Df(v)),l):t},l.filter=function(v){return arguments.length?(n=typeof v=="function"?v:Ol(!!v),l):n},l.touchable=function(v){return arguments.length?(r=typeof v=="function"?v:Ol(!!v),l):r},l.handleSize=function(v){return arguments.length?(a=+v,l):a},l.keyModifiers=function(v){return arguments.length?(i=!!v,l):i},l.on=function(){var v=s.on.apply(s,arguments);return v===s?l:v},l}const Ll=Math.PI,Rl=2*Ll,Vn=1e-6,sA=Rl-Vn;function kf(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function aA(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return kf;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let Il=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?kf:aA(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+a}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,o=this._y1,l=r-t,c=i-n,u=a-t,d=o-n,h=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Vn)if(!(Math.abs(d*l-c*u)>Vn)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let f=r-a,p=i-o,g=l*l+c*c,v=f*f+p*p,m=Math.sqrt(g),y=Math.sqrt(h),E=s*Math.tan((Ll-Math.acos((g+h-v)/(2*m*y)))/2),S=E/y,_=E/m;Math.abs(S-1)>Vn&&this._append`L${t+S*u},${n+S*d}`,this._append`A${s},${s},0,0,${+(d*f>u*p)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,i,s,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(i),l=r*Math.sin(i),c=t+o,u=n+l,d=1^a,h=a?i-s:s-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Vn||Math.abs(this._y1-u)>Vn)&&this._append`L${c},${u}`,r&&(h<0&&(h=h%Rl+Rl),h>sA?this._append`A${r},${r},0,1,${d},${t-o},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:h>Vn&&this._append`A${r},${r},0,${+(h>=Ll)},${d},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Hs(){return new Il}Hs.prototype=Il.prototype;function oA(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Gs(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function vr(e){return e=Gs(Math.abs(e)),e?e[1]:NaN}function lA(e,t){return function(n,r){for(var i=n.length,s=[],a=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),s.push(n.substring(i-=o,i+o)),!((l+=o+1)>r));)o=e[a=(a+1)%e.length];return s.reverse().join(t)}}function cA(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var uA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gi(e){if(!(t=uA.exec(e)))throw new Error("invalid format: "+e);var t;return new kl({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}gi.prototype=kl.prototype;function kl(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}kl.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 hA(e){t:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break t;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var $f;function dA(e,t){var n=Gs(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-($f=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return s===a?r:s>a?r+new Array(s-a+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Gs(e,Math.max(0,t+s-1))[0]}function Pf(e,t){var n=Gs(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Nf={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:oA,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Pf(e*100,t),r:Pf,s:dA,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Uf(e){return e}var Bf=Array.prototype.map,Vf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fA(e){var t=e.grouping===void 0||e.thousands===void 0?Uf:lA(Bf.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?Uf:cA(Bf.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=gi(d);var h=d.fill,f=d.align,p=d.sign,g=d.symbol,v=d.zero,m=d.width,y=d.comma,E=d.precision,S=d.trim,_=d.type;_==="n"?(y=!0,_="g"):Nf[_]||(E===void 0&&(E=12),S=!0,_="g"),(v||h==="0"&&f==="=")&&(v=!0,h="0",f="=");var x=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",C=g==="$"?r:/[%p]/.test(_)?a:"",D=Nf[_],G=/[defgprs%]/.test(_);E=E===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function k(O){var R=x,I=C,$,T,B;if(_==="c")I=D(O)+I,O="";else{O=+O;var N=O<0||1/O<0;if(O=isNaN(O)?l:D(Math.abs(O),E),S&&(O=hA(O)),N&&+O==0&&p!=="+"&&(N=!1),R=(N?p==="("?p:o:p==="-"||p==="("?"":p)+R,I=(_==="s"?Vf[8+$f/3]:"")+I+(N&&p==="("?")":""),G){for($=-1,T=O.length;++$<T;)if(B=O.charCodeAt($),48>B||B>57){I=(B===46?i+O.slice($+1):O.slice($))+I,O=O.slice(0,$);break}}}y&&!v&&(O=t(O,1/0));var U=R.length+O.length+I.length,V=U<m?new Array(m-U+1).join(h):"";switch(y&&v&&(O=t(V+O,V.length?m-I.length:1/0),V=""),f){case"<":O=R+O+I+V;break;case"=":O=R+V+O+I;break;case"^":O=V.slice(0,U=V.length>>1)+R+O+I+V.slice(U);break;default:O=V+R+O+I;break}return s(O)}return k.toString=function(){return d+""},k}function u(d,h){var f=c((d=gi(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(vr(h)/3)))*3,g=Math.pow(10,-p),v=Vf[8+p/3];return function(m){return f(g*m)+v}}return{format:c,formatPrefix:u}}var Fs,$l,Hf;pA({thousands:",",grouping:[3],currency:["$",""]});function pA(e){return Fs=fA(e),$l=Fs.format,Hf=Fs.formatPrefix,Fs}function gA(e){return Math.max(0,-vr(Math.abs(e)))}function mA(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vr(t)/3)))*3-vr(Math.abs(e)))}function vA(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vr(t)-vr(e))+1}var mt=1e-6,Gf=1e-12,lt=Math.PI,ie=lt/2,Ff=lt/4,de=lt*2,Zt=180/lt,Lt=lt/180,vt=Math.abs,zf=Math.atan,Hn=Math.atan2,Et=Math.cos,yA=Math.exp,bA=Math.log,ft=Math.sin,fn=Math.sign||function(e){return e>0?1:e<0?-1:0},Ce=Math.sqrt,EA=Math.tan;function xA(e){return e>1?0:e<-1?lt:Math.acos(e)}function tn(e){return e>1?ie:e<-1?-ie:Math.asin(e)}function ye(){}function zs(e,t){e&&qf.hasOwnProperty(e.type)&&qf[e.type](e,t)}var Wf={Feature:function(e,t){zs(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)zs(n[r].geometry,t)}},qf={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Pl(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Pl(n[r],t,0)},Polygon:function(e,t){Yf(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Yf(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)zs(n[r],t)}};function Pl(e,t,n){var r=-1,i=e.length-n,s;for(t.lineStart();++r<i;)s=e[r],t.point(s[0],s[1],s[2]);t.lineEnd()}function Yf(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Pl(e[n],t,1);t.polygonEnd()}function yr(e,t){e&&Wf.hasOwnProperty(e.type)?Wf[e.type](e,t):zs(e,t)}function Nl(e){return[Hn(e[1],e[0]),tn(e[2])]}function br(e){var t=e[0],n=e[1],r=Et(n);return[r*Et(t),r*ft(t),ft(n)]}function Ws(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function qs(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Ul(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Ys(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Bl(e){var t=Ce(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Vl(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function Hl(e,t){return vt(e)>lt&&(e-=Math.round(e/de)*de),[e,t]}Hl.invert=Hl;function Xf(e,t,n){return(e%=de)?t||n?Vl(Zf(e),Kf(t,n)):Zf(e):t||n?Kf(t,n):Hl}function jf(e){return function(t,n){return t+=e,vt(t)>lt&&(t-=Math.round(t/de)*de),[t,n]}}function Zf(e){var t=jf(e);return t.invert=jf(-e),t}function Kf(e,t){var n=Et(e),r=ft(e),i=Et(t),s=ft(t);function a(o,l){var c=Et(l),u=Et(o)*c,d=ft(o)*c,h=ft(l),f=h*n+u*r;return[Hn(d*i-f*s,u*n-h*r),tn(f*i+d*s)]}return a.invert=function(o,l){var c=Et(l),u=Et(o)*c,d=ft(o)*c,h=ft(l),f=h*i-d*s;return[Hn(d*i+h*s,u*n+f*r),tn(f*n-u*r)]},a}function SA(e){e=Xf(e[0]*Lt,e[1]*Lt,e.length>2?e[2]*Lt:0);function t(n){return n=e(n[0]*Lt,n[1]*Lt),n[0]*=Zt,n[1]*=Zt,n}return t.invert=function(n){return n=e.invert(n[0]*Lt,n[1]*Lt),n[0]*=Zt,n[1]*=Zt,n},t}function _A(e,t,n,r,i,s){if(n){var a=Et(t),o=ft(t),l=r*n;i==null?(i=t+r*de,s=t-l/2):(i=Qf(a,i),s=Qf(a,s),(r>0?i<s:i>s)&&(i+=r*de));for(var c,u=i;r>0?u>s:u<s;u-=l)c=Nl([a,-o*Et(u),-o*ft(u)]),e.point(c[0],c[1])}}function Qf(e,t){t=br(t),t[0]-=e,Bl(t);var n=xA(-t[1]);return((-t[2]<0?-n:n)+de-mt)%de}function Jf(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:ye,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Xs(e,t){return vt(e[0]-t[0])<mt&&vt(e[1]-t[1])<mt}function js(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function tp(e,t,n,r,i){var s=[],a=[],o,l;if(e.forEach(function(p){if(!((g=p.length-1)<=0)){var g,v=p[0],m=p[g],y;if(Xs(v,m)){if(!v[2]&&!m[2]){for(i.lineStart(),o=0;o<g;++o)i.point((v=p[o])[0],v[1]);i.lineEnd();return}m[0]+=2*mt}s.push(y=new js(v,p,null,!0)),a.push(y.o=new js(v,null,y,!1)),s.push(y=new js(m,p,null,!1)),a.push(y.o=new js(m,null,y,!0))}}),!!s.length){for(a.sort(t),ep(s),ep(a),o=0,l=a.length;o<l;++o)a[o].e=n=!n;for(var c=s[0],u,d;;){for(var h=c,f=!0;h.v;)if((h=h.n)===c)return;u=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(o=0,l=u.length;o<l;++o)i.point((d=u[o])[0],d[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(f)for(u=h.p.z,o=u.length-1;o>=0;--o)i.point((d=u[o])[0],d[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,u=h.z,f=!f}while(!h.v);i.lineEnd()}}}function ep(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function Gl(e){return vt(e[0])<=lt?e[0]:fn(e[0])*((vt(e[0])+lt)%de-lt)}function wA(e,t){var n=Gl(t),r=t[1],i=ft(r),s=[ft(n),-Et(n),0],a=0,o=0,l=new kn;i===1?r=ie+mt:i===-1&&(r=-ie-mt);for(var c=0,u=e.length;c<u;++c)if(h=(d=e[c]).length)for(var d,h,f=d[h-1],p=Gl(f),g=f[1]/2+Ff,v=ft(g),m=Et(g),y=0;y<h;++y,p=S,v=x,m=C,f=E){var E=d[y],S=Gl(E),_=E[1]/2+Ff,x=ft(_),C=Et(_),D=S-p,G=D>=0?1:-1,k=G*D,O=k>lt,R=v*x;if(l.add(Hn(R*G*ft(k),m*C+R*Et(k))),a+=O?D+G*de:D,O^p>=n^S>=n){var I=qs(br(f),br(E));Bl(I);var $=qs(s,I);Bl($);var T=(O^D>=0?-1:1)*tn($[2]);(r>T||r===T&&(I[0]||I[1]))&&(o+=O^D>=0?1:-1)}}return(a<-mt||a<mt&&l<-Gf)^o&1}function np(e,t,n,r){return function(i){var s=t(i),a=Jf(),o=t(a),l=!1,c,u,d,h={point:f,lineStart:g,lineEnd:v,polygonStart:function(){h.point=m,h.lineStart=y,h.lineEnd=E,u=[],c=[]},polygonEnd:function(){h.point=f,h.lineStart=g,h.lineEnd=v,u=$d(u);var S=wA(c,r);u.length?(l||(i.polygonStart(),l=!0),tp(u,OA,S,n,i)):S&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(S,_){e(S,_)&&i.point(S,_)}function p(S,_){s.point(S,_)}function g(){h.point=p,s.lineStart()}function v(){h.point=f,s.lineEnd()}function m(S,_){d.push([S,_]),o.point(S,_)}function y(){o.lineStart(),d=[]}function E(){m(d[0][0],d[0][1]),o.lineEnd();var S=o.clean(),_=a.result(),x,C=_.length,D,G,k;if(d.pop(),c.push(d),d=null,!!C){if(S&1){if(G=_[0],(D=G.length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),x=0;x<D;++x)i.point((k=G[x])[0],k[1]);i.lineEnd()}return}C>1&&S&2&&_.push(_.pop().concat(_.shift())),u.push(_.filter(TA))}}return h}}function TA(e){return e.length>1}function OA(e,t){return((e=e.x)[0]<0?e[1]-ie-mt:ie-e[1])-((t=t.x)[0]<0?t[1]-ie-mt:ie-t[1])}const rp=np(function(){return!0},MA,AA,[-lt,-ie]);function MA(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(s,a){var o=s>0?lt:-lt,l=vt(s-t);vt(l-lt)<mt?(e.point(t,n=(n+a)/2>0?ie:-ie),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),e.point(s,n),i=0):r!==o&&l>=lt&&(vt(t-r)<mt&&(t-=r*mt),vt(s-o)<mt&&(s-=o*mt),n=CA(t,n,s,a),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),i=0),e.point(t=s,n=a),r=o},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function CA(e,t,n,r){var i,s,a=ft(e-n);return vt(a)>mt?zf((ft(t)*(s=Et(r))*ft(n)-ft(r)*(i=Et(t))*ft(e))/(i*s*a)):(t+r)/2}function AA(e,t,n,r){var i;if(e==null)i=n*ie,r.point(-lt,i),r.point(0,i),r.point(lt,i),r.point(lt,0),r.point(lt,-i),r.point(0,-i),r.point(-lt,-i),r.point(-lt,0),r.point(-lt,i);else if(vt(e[0]-t[0])>mt){var s=e[0]<t[0]?lt:-lt;i=n*s/2,r.point(-s,i),r.point(0,i),r.point(s,i)}else r.point(t[0],t[1])}function DA(e){var t=Et(e),n=6*Lt,r=t>0,i=vt(t)>mt;function s(u,d,h,f){_A(f,e,n,h,u,d)}function a(u,d){return Et(u)*Et(d)>t}function o(u){var d,h,f,p,g;return{lineStart:function(){p=f=!1,g=1},point:function(v,m){var y=[v,m],E,S=a(v,m),_=r?S?0:c(v,m):S?c(v+(v<0?lt:-lt),m):0;if(!d&&(p=f=S)&&u.lineStart(),S!==f&&(E=l(d,y),(!E||Xs(d,E)||Xs(y,E))&&(y[2]=1)),S!==f)g=0,S?(u.lineStart(),E=l(y,d),u.point(E[0],E[1])):(E=l(d,y),u.point(E[0],E[1],2),u.lineEnd()),d=E;else if(i&&d&&r^S){var x;!(_&h)&&(x=l(y,d,!0))&&(g=0,r?(u.lineStart(),u.point(x[0][0],x[0][1]),u.point(x[1][0],x[1][1]),u.lineEnd()):(u.point(x[1][0],x[1][1]),u.lineEnd(),u.lineStart(),u.point(x[0][0],x[0][1],3)))}S&&(!d||!Xs(d,y))&&u.point(y[0],y[1]),d=y,f=S,h=_},lineEnd:function(){f&&u.lineEnd(),d=null},clean:function(){return g|(p&&f)<<1}}}function l(u,d,h){var f=br(u),p=br(d),g=[1,0,0],v=qs(f,p),m=Ws(v,v),y=v[0],E=m-y*y;if(!E)return!h&&u;var S=t*m/E,_=-t*y/E,x=qs(g,v),C=Ys(g,S),D=Ys(v,_);Ul(C,D);var G=x,k=Ws(C,G),O=Ws(G,G),R=k*k-O*(Ws(C,C)-1);if(!(R<0)){var I=Ce(R),$=Ys(G,(-k-I)/O);if(Ul($,C),$=Nl($),!h)return $;var T=u[0],B=d[0],N=u[1],U=d[1],V;B<T&&(V=T,T=B,B=V);var q=B-T,X=vt(q-lt)<mt,J=X||q<mt;if(!X&&U<N&&(V=N,N=U,U=V),J?X?N+U>0^$[1]<(vt($[0]-T)<mt?N:U):N<=$[1]&&$[1]<=U:q>lt^(T<=$[0]&&$[0]<=B)){var ct=Ys(G,(-k+I)/O);return Ul(ct,C),[$,Nl(ct)]}}}function c(u,d){var h=r?e:lt-e,f=0;return u<-h?f|=1:u>h&&(f|=2),d<-h?f|=4:d>h&&(f|=8),f}return np(a,o,s,r?[0,-e]:[-lt,e-lt])}function LA(e,t,n,r,i,s){var a=e[0],o=e[1],l=t[0],c=t[1],u=0,d=1,h=l-a,f=c-o,p;if(p=n-a,!(!h&&p>0)){if(p/=h,h<0){if(p<u)return;p<d&&(d=p)}else if(h>0){if(p>d)return;p>u&&(u=p)}if(p=i-a,!(!h&&p<0)){if(p/=h,h<0){if(p>d)return;p>u&&(u=p)}else if(h>0){if(p<u)return;p<d&&(d=p)}if(p=r-o,!(!f&&p>0)){if(p/=f,f<0){if(p<u)return;p<d&&(d=p)}else if(f>0){if(p>d)return;p>u&&(u=p)}if(p=s-o,!(!f&&p<0)){if(p/=f,f<0){if(p>d)return;p>u&&(u=p)}else if(f>0){if(p<u)return;p<d&&(d=p)}return u>0&&(e[0]=a+u*h,e[1]=o+u*f),d<1&&(t[0]=a+d*h,t[1]=o+d*f),!0}}}}}var mi=1e9,Zs=-mi;function RA(e,t,n,r){function i(c,u){return e<=c&&c<=n&&t<=u&&u<=r}function s(c,u,d,h){var f=0,p=0;if(c==null||(f=a(c,d))!==(p=a(u,d))||l(c,u)<0^d>0)do h.point(f===0||f===3?e:n,f>1?r:t);while((f=(f+d+4)%4)!==p);else h.point(u[0],u[1])}function a(c,u){return vt(c[0]-e)<mt?u>0?0:3:vt(c[0]-n)<mt?u>0?2:1:vt(c[1]-t)<mt?u>0?1:0:u>0?3:2}function o(c,u){return l(c.x,u.x)}function l(c,u){var d=a(c,1),h=a(u,1);return d!==h?d-h:d===0?u[1]-c[1]:d===1?c[0]-u[0]:d===2?c[1]-u[1]:u[0]-c[0]}return function(c){var u=c,d=Jf(),h,f,p,g,v,m,y,E,S,_,x,C={point:D,lineStart:R,lineEnd:I,polygonStart:k,polygonEnd:O};function D(T,B){i(T,B)&&u.point(T,B)}function G(){for(var T=0,B=0,N=f.length;B<N;++B)for(var U=f[B],V=1,q=U.length,X=U[0],J,ct,W=X[0],K=X[1];V<q;++V)J=W,ct=K,X=U[V],W=X[0],K=X[1],ct<=r?K>r&&(W-J)*(r-ct)>(K-ct)*(e-J)&&++T:K<=r&&(W-J)*(r-ct)<(K-ct)*(e-J)&&--T;return T}function k(){u=d,h=[],f=[],x=!0}function O(){var T=G(),B=x&&T,N=(h=$d(h)).length;(B||N)&&(c.polygonStart(),B&&(c.lineStart(),s(null,null,1,c),c.lineEnd()),N&&tp(h,o,T,s,c),c.polygonEnd()),u=c,h=f=p=null}function R(){C.point=$,f&&f.push(p=[]),_=!0,S=!1,y=E=NaN}function I(){h&&($(g,v),m&&S&&d.rejoin(),h.push(d.result())),C.point=D,S&&u.lineEnd()}function $(T,B){var N=i(T,B);if(f&&p.push([T,B]),_)g=T,v=B,m=N,_=!1,N&&(u.lineStart(),u.point(T,B));else if(N&&S)u.point(T,B);else{var U=[y=Math.max(Zs,Math.min(mi,y)),E=Math.max(Zs,Math.min(mi,E))],V=[T=Math.max(Zs,Math.min(mi,T)),B=Math.max(Zs,Math.min(mi,B))];LA(U,V,e,t,n,r)?(S||(u.lineStart(),u.point(U[0],U[1])),u.point(V[0],V[1]),N||u.lineEnd(),x=!1):N&&(u.lineStart(),u.point(T,B),x=!1)}y=T,E=B,S=N}return C}}const Fl=e=>e;var zl=new kn,Wl=new kn,ip,sp,ql,Yl,pn={point:ye,lineStart:ye,lineEnd:ye,polygonStart:function(){pn.lineStart=IA,pn.lineEnd=$A},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=ye,zl.add(vt(Wl)),Wl=new kn},result:function(){var e=zl/2;return zl=new kn,e}};function IA(){pn.point=kA}function kA(e,t){pn.point=ap,ip=ql=e,sp=Yl=t}function ap(e,t){Wl.add(Yl*e-ql*t),ql=e,Yl=t}function $A(){ap(ip,sp)}const op=pn;var Er=1/0,Ks=Er,vi=-Er,Qs=vi,PA={point:NA,lineStart:ye,lineEnd:ye,polygonStart:ye,polygonEnd:ye,result:function(){var e=[[Er,Ks],[vi,Qs]];return vi=Qs=-(Ks=Er=1/0),e}};function NA(e,t){e<Er&&(Er=e),e>vi&&(vi=e),t<Ks&&(Ks=t),t>Qs&&(Qs=t)}const Js=PA;var Xl=0,jl=0,yi=0,ta=0,ea=0,xr=0,Zl=0,Kl=0,bi=0,lp,cp,He,Ge,Ae={point:Gn,lineStart:up,lineEnd:hp,polygonStart:function(){Ae.lineStart=VA,Ae.lineEnd=HA},polygonEnd:function(){Ae.point=Gn,Ae.lineStart=up,Ae.lineEnd=hp},result:function(){var e=bi?[Zl/bi,Kl/bi]:xr?[ta/xr,ea/xr]:yi?[Xl/yi,jl/yi]:[NaN,NaN];return Xl=jl=yi=ta=ea=xr=Zl=Kl=bi=0,e}};function Gn(e,t){Xl+=e,jl+=t,++yi}function up(){Ae.point=UA}function UA(e,t){Ae.point=BA,Gn(He=e,Ge=t)}function BA(e,t){var n=e-He,r=t-Ge,i=Ce(n*n+r*r);ta+=i*(He+e)/2,ea+=i*(Ge+t)/2,xr+=i,Gn(He=e,Ge=t)}function hp(){Ae.point=Gn}function VA(){Ae.point=GA}function HA(){dp(lp,cp)}function GA(e,t){Ae.point=dp,Gn(lp=He=e,cp=Ge=t)}function dp(e,t){var n=e-He,r=t-Ge,i=Ce(n*n+r*r);ta+=i*(He+e)/2,ea+=i*(Ge+t)/2,xr+=i,i=Ge*e-He*t,Zl+=i*(He+e),Kl+=i*(Ge+t),bi+=i*3,Gn(He=e,Ge=t)}const fp=Ae;function pp(e){this._context=e}pp.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,de);break}}},result:ye};var Ql=new kn,Jl,gp,mp,Ei,xi,na={point:ye,lineStart:function(){na.point=FA},lineEnd:function(){Jl&&vp(gp,mp),na.point=ye},polygonStart:function(){Jl=!0},polygonEnd:function(){Jl=null},result:function(){var e=+Ql;return Ql=new kn,e}};function FA(e,t){na.point=vp,gp=Ei=e,mp=xi=t}function vp(e,t){Ei-=e,xi-=t,Ql.add(Ce(Ei*Ei+xi*xi)),Ei=e,xi=t}const yp=na;let bp,ra,Ep,xp;class Sp{constructor(t){this._append=t==null?_p:zA(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==Ep||this._append!==ra){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,Ep=r,ra=this._append,xp=this._,this._=i}this._+=xp;break}}}result(){const t=this._;return this._="",t.length?t:null}}function _p(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function zA(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return _p;if(t!==bp){const n=10**t;bp=t,ra=function(i){let s=1;this._+=i[0];for(const a=i.length;s<a;++s)this._+=Math.round(arguments[s]*n)/n+i[s]}}return ra}function WA(e,t){let n=3,r=4.5,i,s;function a(o){return o&&(typeof r=="function"&&s.pointRadius(+r.apply(this,arguments)),yr(o,i(s))),s.result()}return a.area=function(o){return yr(o,i(op)),op.result()},a.measure=function(o){return yr(o,i(yp)),yp.result()},a.bounds=function(o){return yr(o,i(Js)),Js.result()},a.centroid=function(o){return yr(o,i(fp)),fp.result()},a.projection=function(o){return arguments.length?(i=o==null?(e=null,Fl):(e=o).stream,a):e},a.context=function(o){return arguments.length?(s=o==null?(t=null,new Sp(n)):new pp(t=o),typeof r!="function"&&s.pointRadius(r),a):t},a.pointRadius=function(o){return arguments.length?(r=typeof o=="function"?o:(s.pointRadius(+o),+o),a):r},a.digits=function(o){if(!arguments.length)return n;if(o==null)n=null;else{const l=Math.floor(o);if(!(l>=0))throw new RangeError(`invalid digits: ${o}`);n=l}return t===null&&(s=new Sp(n)),a},a.projection(e).digits(n).context(t)}function tc(e){return function(t){var n=new ec;for(var r in e)n[r]=e[r];return n.stream=t,n}}function ec(){}ec.prototype={constructor:ec,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function nc(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),yr(n,e.stream(Js)),t(Js.result()),r!=null&&e.clipExtent(r),e}function wp(e,t,n){return nc(e,function(r){var i=t[1][0]-t[0][0],s=t[1][1]-t[0][1],a=Math.min(i/(r[1][0]-r[0][0]),s/(r[1][1]-r[0][1])),o=+t[0][0]+(i-a*(r[1][0]+r[0][0]))/2,l=+t[0][1]+(s-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,l])},n)}function qA(e,t,n){return wp(e,[[0,0],t],n)}function YA(e,t,n){return nc(e,function(r){var i=+t,s=i/(r[1][0]-r[0][0]),a=(i-s*(r[1][0]+r[0][0]))/2,o=-s*r[0][1];e.scale(150*s).translate([a,o])},n)}function XA(e,t,n){return nc(e,function(r){var i=+t,s=i/(r[1][1]-r[0][1]),a=-s*r[0][0],o=(i-s*(r[1][1]+r[0][1]))/2;e.scale(150*s).translate([a,o])},n)}var Tp=16,jA=Et(30*Lt);function Op(e,t){return+t?KA(e,t):ZA(e)}function ZA(e){return tc({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function KA(e,t){function n(r,i,s,a,o,l,c,u,d,h,f,p,g,v){var m=c-r,y=u-i,E=m*m+y*y;if(E>4*t&&g--){var S=a+h,_=o+f,x=l+p,C=Ce(S*S+_*_+x*x),D=tn(x/=C),G=vt(vt(x)-1)<mt||vt(s-d)<mt?(s+d)/2:Hn(_,S),k=e(G,D),O=k[0],R=k[1],I=O-r,$=R-i,T=y*I-m*$;(T*T/E>t||vt((m*I+y*$)/E-.5)>.3||a*h+o*f+l*p<jA)&&(n(r,i,s,a,o,l,O,R,G,S/=C,_/=C,x,g,v),v.point(O,R),n(O,R,G,S,_,x,c,u,d,h,f,p,g,v))}}return function(r){var i,s,a,o,l,c,u,d,h,f,p,g,v={point:m,lineStart:y,lineEnd:S,polygonStart:function(){r.polygonStart(),v.lineStart=_},polygonEnd:function(){r.polygonEnd(),v.lineStart=y}};function m(D,G){D=e(D,G),r.point(D[0],D[1])}function y(){d=NaN,v.point=E,r.lineStart()}function E(D,G){var k=br([D,G]),O=e(D,G);n(d,h,u,f,p,g,d=O[0],h=O[1],u=D,f=k[0],p=k[1],g=k[2],Tp,r),r.point(d,h)}function S(){v.point=m,r.lineEnd()}function _(){y(),v.point=x,v.lineEnd=C}function x(D,G){E(i=D,G),s=d,a=h,o=f,l=p,c=g,v.point=E}function C(){n(d,h,u,f,p,g,s,a,i,o,l,c,Tp,r),v.lineEnd=S,S()}return v}}var QA=tc({point:function(e,t){this.stream.point(e*Lt,t*Lt)}});function JA(e){return tc({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function tD(e,t,n,r,i){function s(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return s.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},s}function Mp(e,t,n,r,i,s){if(!s)return tD(e,t,n,r,i);var a=Et(s),o=ft(s),l=a*e,c=o*e,u=a/e,d=o/e,h=(o*n-a*t)/e,f=(o*t+a*n)/e;function p(g,v){return g*=r,v*=i,[l*g-c*v+t,n-c*g-l*v]}return p.invert=function(g,v){return[r*(u*g-d*v+h),i*(f-d*g-u*v)]},p}function ia(e){return Cp(function(){return e})()}function Cp(e){var t,n=150,r=480,i=250,s=0,a=0,o=0,l=0,c=0,u,d=0,h=1,f=1,p=null,g=rp,v=null,m,y,E,S=Fl,_=.5,x,C,D,G,k;function O(T){return D(T[0]*Lt,T[1]*Lt)}function R(T){return T=D.invert(T[0],T[1]),T&&[T[0]*Zt,T[1]*Zt]}O.stream=function(T){return G&&k===T?G:G=QA(JA(u)(g(x(S(k=T)))))},O.preclip=function(T){return arguments.length?(g=T,p=void 0,$()):g},O.postclip=function(T){return arguments.length?(S=T,v=m=y=E=null,$()):S},O.clipAngle=function(T){return arguments.length?(g=+T?DA(p=T*Lt):(p=null,rp),$()):p*Zt},O.clipExtent=function(T){return arguments.length?(S=T==null?(v=m=y=E=null,Fl):RA(v=+T[0][0],m=+T[0][1],y=+T[1][0],E=+T[1][1]),$()):v==null?null:[[v,m],[y,E]]},O.scale=function(T){return arguments.length?(n=+T,I()):n},O.translate=function(T){return arguments.length?(r=+T[0],i=+T[1],I()):[r,i]},O.center=function(T){return arguments.length?(s=T[0]%360*Lt,a=T[1]%360*Lt,I()):[s*Zt,a*Zt]},O.rotate=function(T){return arguments.length?(o=T[0]%360*Lt,l=T[1]%360*Lt,c=T.length>2?T[2]%360*Lt:0,I()):[o*Zt,l*Zt,c*Zt]},O.angle=function(T){return arguments.length?(d=T%360*Lt,I()):d*Zt},O.reflectX=function(T){return arguments.length?(h=T?-1:1,I()):h<0},O.reflectY=function(T){return arguments.length?(f=T?-1:1,I()):f<0},O.precision=function(T){return arguments.length?(x=Op(C,_=T*T),$()):Ce(_)},O.fitExtent=function(T,B){return wp(O,T,B)},O.fitSize=function(T,B){return qA(O,T,B)},O.fitWidth=function(T,B){return YA(O,T,B)},O.fitHeight=function(T,B){return XA(O,T,B)};function I(){var T=Mp(n,0,0,h,f,d).apply(null,t(s,a)),B=Mp(n,r-T[0],i-T[1],h,f,d);return u=Xf(o,l,c),C=Vl(t,B),D=Vl(u,C),x=Op(C,_),$()}function $(){return G=k=null,O}return function(){return t=e.apply(this,arguments),O.invert=t.invert&&R,I()}}function Ap(e){var t=0,n=lt/3,r=Cp(e),i=r(t,n);return i.parallels=function(s){return arguments.length?r(t=s[0]*Lt,n=s[1]*Lt):[t*Zt,n*Zt]},i}function eD(e){var t=Et(e);function n(r,i){return[r*t,ft(i)/t]}return n.invert=function(r,i){return[r/t,tn(i*t)]},n}function nD(e,t){var n=ft(e),r=(n+ft(t))/2;if(vt(r)<mt)return eD(e);var i=1+n*(2*r-n),s=Ce(i)/r;function a(o,l){var c=Ce(i-2*r*ft(l))/r;return[c*ft(o*=r),s-c*Et(o)]}return a.invert=function(o,l){var c=s-l,u=Hn(o,vt(c))*fn(c);return c*r<0&&(u-=lt*fn(o)*fn(c)),[u/r,tn((i-(o*o+c*c)*r*r)/(2*r))]},a}function Dp(){return Ap(nD).scale(155.424).center([0,33.6442])}function rD(){return Dp().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function rc(e,t){return[e,bA(EA((ie+t)/2))]}rc.invert=function(e,t){return[e,2*zf(yA(t))-ie]};function iD(){return sD(rc).scale(961/de)}function sD(e){var t=ia(e),n=t.center,r=t.scale,i=t.translate,s=t.clipExtent,a=null,o,l,c;t.scale=function(d){return arguments.length?(r(d),u()):r()},t.translate=function(d){return arguments.length?(i(d),u()):i()},t.center=function(d){return arguments.length?(n(d),u()):n()},t.clipExtent=function(d){return arguments.length?(d==null?a=o=l=c=null:(a=+d[0][0],o=+d[0][1],l=+d[1][0],c=+d[1][1]),u()):a==null?null:[[a,o],[l,c]]};function u(){var d=lt*r(),h=t(SA(t.rotate()).invert([0,0]));return s(a==null?[[h[0]-d,h[1]-d],[h[0]+d,h[1]+d]]:e===rc?[[Math.max(h[0]-d,a),o],[Math.min(h[0]+d,l),c]]:[[a,Math.max(h[1]-d,o)],[l,Math.min(h[1]+d,c)]])}return u()}function sa(e,t){return[e,t]}sa.invert=sa;function aD(){return ia(sa).scale(152.63)}function oD(e,t){var n=Et(e),r=e===t?ft(e):(n-Et(t))/(t-e),i=n/r+e;if(vt(r)<mt)return sa;function s(a,o){var l=i-o,c=r*a;return[l*ft(c),i-l*Et(c)]}return s.invert=function(a,o){var l=i-o,c=Hn(a,vt(l))*fn(l);return l*r<0&&(c-=lt*fn(a)*fn(l)),[c/r,i-fn(r)*Ce(a*a+l*l)]},s}function lD(){return Ap(oD).scale(131.154).center([0,13.9389])}var Si=1.340264,_i=-.081106,wi=893e-6,Ti=.003796,aa=Ce(3)/2,cD=12;function Lp(e,t){var n=tn(aa*ft(t)),r=n*n,i=r*r*r;return[e*Et(n)/(aa*(Si+3*_i*r+i*(7*wi+9*Ti*r))),n*(Si+_i*r+i*(wi+Ti*r))]}Lp.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,s=0,a,o,l;s<cD&&(o=n*(Si+_i*r+i*(wi+Ti*r))-t,l=Si+3*_i*r+i*(7*wi+9*Ti*r),n-=a=o/l,r=n*n,i=r*r*r,!(vt(a)<Gf));++s);return[aa*e*(Si+3*_i*r+i*(7*wi+9*Ti*r))/Et(n),tn(ft(n)/aa)]};function uD(){return ia(Lp).scale(177.158)}function Rp(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}Rp.invert=function(e,t){var n=t,r=25,i;do{var s=n*n,a=s*s;n-=i=(n*(1.007226+s*(.015085+a*(-.044475+.028874*s-.005916*a)))-t)/(1.007226+s*(.015085*3+a*(-.044475*7+.028874*9*s-.005916*11*a)))}while(vt(i)>mt&&--r>0);return[e/(.8707+(s=n*n)*(-.131979+s*(-.013791+s*s*s*(.003971-.001529*s)))),n]};function hD(){return ia(Rp).scale(175.295)}function dD(e,t){return e.parent===t.parent?1:2}function fD(e){return e.reduce(pD,0)/e.length}function pD(e,t){return e+t.x}function gD(e){return 1+e.reduce(mD,0)}function mD(e,t){return Math.max(e,t.y)}function vD(e){for(var t;t=e.children;)e=t[0];return e}function yD(e){for(var t;t=e.children;)e=t[t.length-1];return e}function bD(){var e=dD,t=1,n=1,r=!1;function i(s){var a,o=0;s.eachAfter(function(h){var f=h.children;f?(h.x=fD(f),h.y=gD(f)):(h.x=a?o+=e(h,a):0,h.y=0,a=h)});var l=vD(s),c=yD(s),u=l.x-e(l,c)/2,d=c.x+e(c,l)/2;return s.eachAfter(r?function(h){h.x=(h.x-s.x)*t,h.y=(s.y-h.y)*n}:function(h){h.x=(h.x-u)/(d-u)*t,h.y=(1-(s.y?h.y/s.y:1))*n})}return i.separation=function(s){return arguments.length?(e=s,i):e},i.size=function(s){return arguments.length?(r=!1,t=+s[0],n=+s[1],i):r?null:[t,n]},i.nodeSize=function(s){return arguments.length?(r=!0,t=+s[0],n=+s[1],i):r?[t,n]:null},i}function ED(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function xD(){return this.eachAfter(ED)}function SD(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function _D(e,t){for(var n=this,r=[n],i,s,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(s=i.length-1;s>=0;--s)r.push(i[s]);return this}function wD(e,t){for(var n=this,r=[n],i=[],s,a,o,l=-1;n=r.pop();)if(i.push(n),s=n.children)for(a=0,o=s.length;a<o;++a)r.push(s[a]);for(;n=i.pop();)e.call(t,n,++l,this);return this}function TD(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function OD(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function MD(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function CD(e){for(var t=this,n=AD(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function AD(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function DD(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function LD(){return Array.from(this)}function RD(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function ID(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*kD(){var e=this,t,n=[e],r,i,s;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,s=r.length;i<s;++i)n.push(r[i]);while(n.length)}function Oi(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=ND)):t===void 0&&(t=PD);for(var n=new Mi(e),r,i=[n],s,a,o,l;r=i.pop();)if((a=t(r.data))&&(l=(a=Array.from(a)).length))for(r.children=a,o=l-1;o>=0;--o)i.push(s=a[o]=new Mi(a[o])),s.parent=r,s.depth=r.depth+1;return n.eachBefore(BD)}function $D(){return Oi(this).eachBefore(UD)}function PD(e){return e.children}function ND(e){return Array.isArray(e)?e[1]:null}function UD(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function BD(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Mi(e){this.data=e,this.depth=this.height=0,this.parent=null}Mi.prototype=Oi.prototype={constructor:Mi,count:xD,each:SD,eachAfter:wD,eachBefore:_D,find:TD,sum:OD,sort:MD,path:CD,ancestors:DD,descendants:LD,leaves:RD,links:ID,copy:$D,[Symbol.iterator]:kD};function VD(e){return e==null?null:Ip(e)}function Ip(e){if(typeof e!="function")throw new Error;return e}function Fn(){return 0}function Sr(e){return function(){return e}}const HD=1664525,GD=1013904223,kp=4294967296;function FD(){let e=1;return()=>(e=(HD*e+GD)%kp)/kp}function zD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function WD(e,t){let n=e.length,r,i;for(;n;)i=t()*n--|0,r=e[n],e[n]=e[i],e[i]=r;return e}function qD(e,t){for(var n=0,r=(e=WD(Array.from(e),t)).length,i=[],s,a;n<r;)s=e[n],a&&$p(a,s)?++n:(a=XD(i=YD(i,s)),n=0);return a}function YD(e,t){var n,r;if(ic(t,e))return[t];for(n=0;n<e.length;++n)if(oa(t,e[n])&&ic(Ci(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(oa(Ci(e[n],e[r]),t)&&oa(Ci(e[n],t),e[r])&&oa(Ci(e[r],t),e[n])&&ic(Pp(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function oa(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function $p(e,t){var n=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function ic(e,t){for(var n=0;n<t.length;++n)if(!$p(e,t[n]))return!1;return!0}function XD(e){switch(e.length){case 1:return jD(e[0]);case 2:return Ci(e[0],e[1]);case 3:return Pp(e[0],e[1],e[2])}}function jD(e){return{x:e.x,y:e.y,r:e.r}}function Ci(e,t){var n=e.x,r=e.y,i=e.r,s=t.x,a=t.y,o=t.r,l=s-n,c=a-r,u=o-i,d=Math.sqrt(l*l+c*c);return{x:(n+s+l/d*u)/2,y:(r+a+c/d*u)/2,r:(d+i+o)/2}}function Pp(e,t,n){var r=e.x,i=e.y,s=e.r,a=t.x,o=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=r-a,f=r-c,p=i-o,g=i-u,v=l-s,m=d-s,y=r*r+i*i-s*s,E=y-a*a-o*o+l*l,S=y-c*c-u*u+d*d,_=f*p-h*g,x=(p*S-g*E)/(_*2)-r,C=(g*v-p*m)/_,D=(f*E-h*S)/(_*2)-i,G=(h*m-f*v)/_,k=C*C+G*G-1,O=2*(s+x*C+D*G),R=x*x+D*D-s*s,I=-(Math.abs(k)>1e-6?(O+Math.sqrt(O*O-4*k*R))/(2*k):R/O);return{x:r+x+C*I,y:i+D+G*I,r:I}}function Np(e,t,n){var r=e.x-t.x,i,s,a=e.y-t.y,o,l,c=r*r+a*a;c?(s=t.r+n.r,s*=s,l=e.r+n.r,l*=l,s>l?(i=(c+l-s)/(2*c),o=Math.sqrt(Math.max(0,l/c-i*i)),n.x=e.x-i*r-o*a,n.y=e.y-i*a+o*r):(i=(c+s-l)/(2*c),o=Math.sqrt(Math.max(0,s/c-i*i)),n.x=t.x+i*r-o*a,n.y=t.y+i*a+o*r)):(n.x=t.x+n.r,n.y=t.y)}function Up(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Bp(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,s=(t.y*n.r+n.y*t.r)/r;return i*i+s*s}function la(e){this._=e,this.next=null,this.previous=null}function ZD(e,t){if(!(s=(e=zD(e)).length))return 0;var n,r,i,s,a,o,l,c,u,d,h;if(n=e[0],n.x=0,n.y=0,!(s>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(s>2))return n.r+r.r;Np(r,n,i=e[2]),n=new la(n),r=new la(r),i=new la(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(l=3;l<s;++l){Np(n._,r._,i=e[l]),i=new la(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do if(d<=h){if(Up(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue t}d+=c._.r,c=c.next}else{if(Up(u._,i._)){n=u,n.next=r,r.previous=n,--l;continue t}h+=u._.r,u=u.previous}while(c!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,a=Bp(n);(i=i.next)!==r;)(o=Bp(i))<a&&(n=i,a=o);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=qD(n,t),l=0;l<s;++l)n=e[l],n.x-=i.x,n.y-=i.y;return i.r}function KD(e){return Math.sqrt(e.value)}function QD(){var e=null,t=1,n=1,r=Fn;function i(s){const a=FD();return s.x=t/2,s.y=n/2,e?s.eachBefore(Vp(e)).eachAfter(sc(r,.5,a)).eachBefore(Hp(1)):s.eachBefore(Vp(KD)).eachAfter(sc(Fn,1,a)).eachAfter(sc(r,s.r/Math.min(t,n),a)).eachBefore(Hp(Math.min(t,n)/(2*s.r))),s}return i.radius=function(s){return arguments.length?(e=VD(s),i):e},i.size=function(s){return arguments.length?(t=+s[0],n=+s[1],i):[t,n]},i.padding=function(s){return arguments.length?(r=typeof s=="function"?s:Sr(+s),i):r},i}function Vp(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function sc(e,t,n){return function(r){if(i=r.children){var i,s,a=i.length,o=e(r)*t||0,l;if(o)for(s=0;s<a;++s)i[s].r+=o;if(l=ZD(i,n),o)for(s=0;s<a;++s)i[s].r-=o;r.r=l+o}}}function Hp(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function JD(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function tL(e,t,n,r,i){for(var s=e.children,a,o=-1,l=s.length,c=e.value&&(r-t)/e.value;++o<l;)a=s[o],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}function eL(e,t){return e.parent===t.parent?1:2}function ac(e){var t=e.children;return t?t[0]:e.t}function oc(e){var t=e.children;return t?t[t.length-1]:e.t}function nL(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function rL(e){for(var t=0,n=0,r=e.children,i=r.length,s;--i>=0;)s=r[i],s.z+=t,s.m+=t,t+=s.s+(n+=s.c)}function iL(e,t,n){return e.a.parent===t.parent?e.a:n}function ca(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}ca.prototype=Object.create(Mi.prototype);function sL(e){for(var t=new ca(e,0),n,r=[t],i,s,a,o;n=r.pop();)if(s=n._.children)for(n.children=new Array(o=s.length),a=o-1;a>=0;--a)r.push(i=n.children[a]=new ca(s[a],a)),i.parent=n;return(t.parent=new ca(null,0)).children=[t],t}function aL(){var e=eL,t=1,n=1,r=null;function i(c){var u=sL(c);if(u.eachAfter(s),u.parent.m=-u.z,u.eachBefore(a),r)c.eachBefore(l);else{var d=c,h=c,f=c;c.eachBefore(function(y){y.x<d.x&&(d=y),y.x>h.x&&(h=y),y.depth>f.depth&&(f=y)});var p=d===h?1:e(d,h)/2,g=p-d.x,v=t/(h.x+p+g),m=n/(f.depth||1);c.eachBefore(function(y){y.x=(y.x+g)*v,y.y=y.depth*m})}return c}function s(c){var u=c.children,d=c.parent.children,h=c.i?d[c.i-1]:null;if(u){rL(c);var f=(u[0].z+u[u.length-1].z)/2;h?(c.z=h.z+e(c._,h._),c.m=c.z-f):c.z=f}else h&&(c.z=h.z+e(c._,h._));c.parent.A=o(c,h,c.parent.A||d[0])}function a(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function o(c,u,d){if(u){for(var h=c,f=c,p=u,g=h.parent.children[0],v=h.m,m=f.m,y=p.m,E=g.m,S;p=oc(p),h=ac(h),p&&h;)g=ac(g),f=oc(f),f.a=c,S=p.z+y-h.z-v+e(p._,h._),S>0&&(nL(iL(p,c,d),c,S),v+=S,m+=S),y+=p.m,v+=h.m,E+=g.m,m+=f.m;p&&!oc(f)&&(f.t=p,f.m+=y-m),h&&!ac(g)&&(g.t=h,g.m+=v-E,d=c)}return d}function l(c){c.x*=t,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,t=+c[0],n=+c[1],i):r?null:[t,n]},i.nodeSize=function(c){return arguments.length?(r=!0,t=+c[0],n=+c[1],i):r?[t,n]:null},i}function oL(e,t,n,r,i){for(var s=e.children,a,o=-1,l=s.length,c=e.value&&(i-n)/e.value;++o<l;)a=s[o],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}var lL=(1+Math.sqrt(5))/2;function cL(e,t,n,r,i,s){for(var a=[],o=t.children,l,c,u=0,d=0,h=o.length,f,p,g=t.value,v,m,y,E,S,_,x;u<h;){f=i-n,p=s-r;do v=o[d++].value;while(!v&&d<h);for(m=y=v,_=Math.max(p/f,f/p)/(g*e),x=v*v*_,S=Math.max(y/x,x/m);d<h;++d){if(v+=c=o[d].value,c<m&&(m=c),c>y&&(y=c),x=v*v*_,E=Math.max(y/x,x/m),E>S){v-=c;break}S=E}a.push(l={value:v,dice:f<p,children:o.slice(u,d)}),l.dice?tL(l,n,r,i,g?r+=p*v/g:s):oL(l,n,r,g?n+=f*v/g:i,s),g-=v,u=d}return a}const uL=function e(t){function n(r,i,s,a,o){cL(t,r,i,s,a,o)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(lL);function hL(){var e=uL,t=!1,n=1,r=1,i=[0],s=Fn,a=Fn,o=Fn,l=Fn,c=Fn;function u(h){return h.x0=h.y0=0,h.x1=n,h.y1=r,h.eachBefore(d),i=[0],t&&h.eachBefore(JD),h}function d(h){var f=i[h.depth],p=h.x0+f,g=h.y0+f,v=h.x1-f,m=h.y1-f;v<p&&(p=v=(p+v)/2),m<g&&(g=m=(g+m)/2),h.x0=p,h.y0=g,h.x1=v,h.y1=m,h.children&&(f=i[h.depth+1]=s(h)/2,p+=c(h)-f,g+=a(h)-f,v-=o(h)-f,m-=l(h)-f,v<p&&(p=v=(p+v)/2),m<g&&(g=m=(g+m)/2),e(h,p,g,v,m))}return u.round=function(h){return arguments.length?(t=!!h,u):t},u.size=function(h){return arguments.length?(n=+h[0],r=+h[1],u):[n,r]},u.tile=function(h){return arguments.length?(e=Ip(h),u):e},u.padding=function(h){return arguments.length?u.paddingInner(h).paddingOuter(h):u.paddingInner()},u.paddingInner=function(h){return arguments.length?(s=typeof h=="function"?h:Sr(+h),u):s},u.paddingOuter=function(h){return arguments.length?u.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):u.paddingTop()},u.paddingTop=function(h){return arguments.length?(a=typeof h=="function"?h:Sr(+h),u):a},u.paddingRight=function(h){return arguments.length?(o=typeof h=="function"?h:Sr(+h),u):o},u.paddingBottom=function(h){return arguments.length?(l=typeof h=="function"?h:Sr(+h),u):l},u.paddingLeft=function(h){return arguments.length?(c=typeof h=="function"?h:Sr(+h),u):c},u}function _r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Gp=Symbol("implicit");function ua(){var e=new Ld,t=[],n=[],r=Gp;function i(s){let a=e.get(s);if(a===void 0){if(r!==Gp)return r;e.set(s,a=t.push(s)-1)}return n[a%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new Ld;for(const a of s)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return ua(t,n).unknown(r)},_r.apply(i,arguments),i}function Ai(){var e=ua().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,a,o=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var h=t().length,f=i<r,p=f?i:r,g=f?r:i;s=(g-p)/Math.max(1,h-l+c*2),o&&(s=Math.floor(s)),p+=(g-p-s*(h-l))*u,a=s*(1-l),o&&(p=Math.round(p),a=Math.round(a));var v=ET(h).map(function(m){return p+s*m});return n(f?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,o=!0,d()},e.bandwidth=function(){return a},e.step=function(){return s},e.round=function(h){return arguments.length?(o=!!h,d()):o},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),d()):u},e.copy=function(){return Ai(t(),[r,i]).round(o).paddingInner(l).paddingOuter(c).align(u)},_r.apply(d(),arguments)}function dL(e){return function(){return e}}function fL(e){return+e}var Fp=[0,1];function wr(e){return e}function lc(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:dL(isNaN(t)?NaN:.5)}function pL(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function gL(e,t,n){var r=e[0],i=e[1],s=t[0],a=t[1];return i<r?(r=lc(i,r),s=n(a,s)):(r=lc(r,i),s=n(s,a)),function(o){return s(r(o))}}function mL(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=lc(e[a],e[a+1]),s[a]=n(t[a],t[a+1]);return function(o){var l=Jo(e,o,1,r)-1;return s[l](i[l](o))}}function cc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function zp(){var e=Fp,t=Fp,n=ui,r,i,s,a=wr,o,l,c;function u(){var h=Math.min(e.length,t.length);return a!==wr&&(a=pL(e[0],e[h-1])),o=h>2?mL:gL,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?s:(l||(l=o(e.map(r),t,n)))(r(a(h)))}return d.invert=function(h){return a(i((c||(c=o(t,e.map(r),he)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,fL),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=hf,u()},d.clamp=function(h){return arguments.length?(a=h?!0:wr,u()):a!==wr},d.interpolate=function(h){return arguments.length?(n=h,u()):n},d.unknown=function(h){return arguments.length?(s=h,d):s},function(h,f){return r=h,i=f,u()}}function Wp(){return zp()(wr,wr)}function vL(e,t,n,r){var i=el(e,t,n),s;switch(r=gi(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=mA(i,a))&&(r.precision=s),Hf(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=vA(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=gA(i))&&(r.precision=s-(r.type==="%")*2);break}}return $l(r)}function qp(e){var t=e.domain;return e.ticks=function(n){var r=t();return bs(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return vL(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,a=r[i],o=r[s],l,c,u=10;for(o<a&&(c=a,a=o,o=c,c=i,i=s,s=c);u-- >0;){if(c=hr(a,o,n),c===l)return r[i]=a,r[s]=o,t(r);if(c>0)a=Math.floor(a/c)*c,o=Math.ceil(o/c)*c;else if(c<0)a=Math.ceil(a*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function De(){var e=Wp();return e.copy=function(){return cc(e,De())},_r.apply(e,arguments),qp(e)}function Yp(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),e[n]=t.floor(i),e[r]=t.ceil(s),e}function Xp(e){return Math.log(e)}function jp(e){return Math.exp(e)}function yL(e){return-Math.log(-e)}function bL(e){return-Math.exp(-e)}function EL(e){return isFinite(e)?+("1e"+e):e<0?0:e}function xL(e){return e===10?EL:e===Math.E?Math.exp:t=>Math.pow(e,t)}function SL(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Zp(e){return(t,n)=>-e(-t,n)}function _L(e){const t=e(Xp,jp),n=t.domain;let r=10,i,s;function a(){return i=SL(r),s=xL(r),n()[0]<0?(i=Zp(i),s=Zp(s),e(yL,bL)):e(Xp,jp),t}return t.base=function(o){return arguments.length?(r=+o,a()):r},t.domain=function(o){return arguments.length?(n(o),a()):n()},t.ticks=o=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let h=i(c),f=i(u),p,g;const v=o==null?10:+o;let m=[];if(!(r%1)&&f-h<v){if(h=Math.floor(h),f=Math.ceil(f),c>0){for(;h<=f;++h)for(p=1;p<r;++p)if(g=h<0?p/s(-h):p*s(h),!(g<c)){if(g>u)break;m.push(g)}}else for(;h<=f;++h)for(p=r-1;p>=1;--p)if(g=h>0?p/s(-h):p*s(h),!(g<c)){if(g>u)break;m.push(g)}m.length*2<v&&(m=bs(c,u,v))}else m=bs(h,f,Math.min(f-h,v)).map(s);return d?m.reverse():m},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=gi(l)).precision==null&&(l.trim=!0),l=$l(l)),o===1/0)return l;const c=Math.max(1,r*o/t.ticks().length);return u=>{let d=u/s(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(Yp(n(),{floor:o=>s(Math.floor(i(o))),ceil:o=>s(Math.ceil(i(o)))})),t}function Kp(){const e=_L(zp()).domain([1,10]);return e.copy=()=>cc(e,Kp()).base(e.base()),_r.apply(e,arguments),e}function uc(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function a(l){return l!=null&&l<=l?i[Jo(r,l,0,n)]:s}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,o()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(s=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return uc().domain([e,t]).range(i).unknown(s)},_r.apply(qp(a),arguments)}const hc=new Date,dc=new Date;function Ut(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const a=i(s),o=i.ceil(s);return s-a<o-s?a:o},i.offset=(s,a)=>(t(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,o)=>{const l=[];if(s=i.ceil(s),o=o==null?1:Math.floor(o),!(s<a)||!(o>0))return l;let c;do l.push(c=new Date(+s)),t(s,o),e(s);while(c<s&&s<a);return l},i.filter=s=>Ut(a=>{if(a>=a)for(;e(a),!s(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;t(a,-1),!s(a););else for(;--o>=0;)for(;t(a,1),!s(a););}),n&&(i.count=(s,a)=>(hc.setTime(+s),dc.setTime(+a),e(hc),e(dc),Math.floor(n(hc,dc))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const ha=Ut(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ha.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ut(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ha),ha.range;const en=1e3,be=en*60,nn=be*60,rn=nn*24,fc=rn*7,Qp=rn*30,pc=rn*365,Tr=Ut(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*en)},(e,t)=>(t-e)/en,e=>e.getUTCSeconds());Tr.range;const gc=Ut(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*en)},(e,t)=>{e.setTime(+e+t*be)},(e,t)=>(t-e)/be,e=>e.getMinutes());gc.range,Ut(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*be)},(e,t)=>(t-e)/be,e=>e.getUTCMinutes()).range;const mc=Ut(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*en-e.getMinutes()*be)},(e,t)=>{e.setTime(+e+t*nn)},(e,t)=>(t-e)/nn,e=>e.getHours());mc.range,Ut(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*nn)},(e,t)=>(t-e)/nn,e=>e.getUTCHours()).range;const Di=Ut(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*be)/rn,e=>e.getDate()-1);Di.range;const vc=Ut(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/rn,e=>e.getUTCDate()-1);vc.range,Ut(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/rn,e=>Math.floor(e/rn)).range;function zn(e){return Ut(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*be)/fc)}const da=zn(0),fa=zn(1),wL=zn(2),TL=zn(3),Or=zn(4),OL=zn(5),ML=zn(6);da.range,fa.range,wL.range,TL.range,Or.range,OL.range,ML.range;function Wn(e){return Ut(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/fc)}const Jp=Wn(0),pa=Wn(1),CL=Wn(2),AL=Wn(3),Mr=Wn(4),DL=Wn(5),LL=Wn(6);Jp.range,pa.range,CL.range,AL.range,Mr.range,DL.range,LL.range;const yc=Ut(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());yc.range,Ut(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()).range;const sn=Ut(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());sn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ut(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),sn.range;const qn=Ut(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());qn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ut(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),qn.range;function RL(e,t,n,r,i,s){const a=[[Tr,1,en],[Tr,5,5*en],[Tr,15,15*en],[Tr,30,30*en],[s,1,be],[s,5,5*be],[s,15,15*be],[s,30,30*be],[i,1,nn],[i,3,3*nn],[i,6,6*nn],[i,12,12*nn],[r,1,rn],[r,2,2*rn],[n,1,fc],[t,1,Qp],[t,3,3*Qp],[e,1,pc]];function o(c,u,d){const h=u<c;h&&([c,u]=[u,c]);const f=d&&typeof d.range=="function"?d:l(c,u,d),p=f?f.range(c,+u+1):[];return h?p.reverse():p}function l(c,u,d){const h=Math.abs(u-c)/d,f=Qo(([,,v])=>v).right(a,h);if(f===a.length)return e.every(el(c/pc,u/pc,d));if(f===0)return ha.every(Math.max(el(c,u,d),1));const[p,g]=a[h/a[f-1][2]<a[f][2]/h?f-1:f];return p.every(g)}return[o,l]}const[IL,kL]=RL(sn,yc,da,Di,mc,gc);function bc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ec(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Li(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $L(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,a=e.shortDays,o=e.months,l=e.shortMonths,c=Ri(i),u=Ii(i),d=Ri(s),h=Ii(s),f=Ri(a),p=Ii(a),g=Ri(o),v=Ii(o),m=Ri(l),y=Ii(l),E={a:N,A:U,b:V,B:q,c:null,d:sg,e:sg,f:iR,g:pR,G:mR,H:eR,I:nR,j:rR,L:ag,m:sR,M:aR,p:X,q:J,Q:dg,s:fg,S:oR,u:lR,U:cR,V:uR,w:hR,W:dR,x:null,X:null,y:fR,Y:gR,Z:vR,"%":hg},S={a:ct,A:W,b:K,B:ut,c:null,d:lg,e:lg,f:xR,g:LR,G:IR,H:yR,I:bR,j:ER,L:cg,m:SR,M:_R,p:rt,q:Ct,Q:dg,s:fg,S:wR,u:TR,U:OR,V:MR,w:CR,W:AR,x:null,X:null,y:DR,Y:RR,Z:kR,"%":hg},_={a:k,A:O,b:R,B:I,c:$,d:rg,e:rg,f:KL,g:ng,G:eg,H:ig,I:ig,j:YL,L:ZL,m:qL,M:XL,p:G,q:WL,Q:JL,s:tR,S:jL,u:VL,U:HL,V:GL,w:BL,W:FL,x:T,X:B,y:ng,Y:eg,Z:zL,"%":QL};E.x=x(n,E),E.X=x(r,E),E.c=x(t,E),S.x=x(n,S),S.X=x(r,S),S.c=x(t,S);function x(Y,H){return function(F){var P=[],pt=-1,bt=0,ee=Y.length,ne,et,Rt;for(F instanceof Date||(F=new Date(+F));++pt<ee;)Y.charCodeAt(pt)===37&&(P.push(Y.slice(bt,pt)),(et=tg[ne=Y.charAt(++pt)])!=null?ne=Y.charAt(++pt):et=ne==="e"?" ":"0",(Rt=H[ne])&&(ne=Rt(F,et)),P.push(ne),bt=pt+1);return P.push(Y.slice(bt,pt)),P.join("")}}function C(Y,H){return function(F){var P=Li(1900,void 0,1),pt=D(P,Y,F+="",0),bt,ee;if(pt!=F.length)return null;if("Q"in P)return new Date(P.Q);if("s"in P)return new Date(P.s*1e3+("L"in P?P.L:0));if(H&&!("Z"in P)&&(P.Z=0),"p"in P&&(P.H=P.H%12+P.p*12),P.m===void 0&&(P.m="q"in P?P.q:0),"V"in P){if(P.V<1||P.V>53)return null;"w"in P||(P.w=1),"Z"in P?(bt=Ec(Li(P.y,0,1)),ee=bt.getUTCDay(),bt=ee>4||ee===0?pa.ceil(bt):pa(bt),bt=vc.offset(bt,(P.V-1)*7),P.y=bt.getUTCFullYear(),P.m=bt.getUTCMonth(),P.d=bt.getUTCDate()+(P.w+6)%7):(bt=bc(Li(P.y,0,1)),ee=bt.getDay(),bt=ee>4||ee===0?fa.ceil(bt):fa(bt),bt=Di.offset(bt,(P.V-1)*7),P.y=bt.getFullYear(),P.m=bt.getMonth(),P.d=bt.getDate()+(P.w+6)%7)}else("W"in P||"U"in P)&&("w"in P||(P.w="u"in P?P.u%7:"W"in P?1:0),ee="Z"in P?Ec(Li(P.y,0,1)).getUTCDay():bc(Li(P.y,0,1)).getDay(),P.m=0,P.d="W"in P?(P.w+6)%7+P.W*7-(ee+5)%7:P.w+P.U*7-(ee+6)%7);return"Z"in P?(P.H+=P.Z/100|0,P.M+=P.Z%100,Ec(P)):bc(P)}}function D(Y,H,F,P){for(var pt=0,bt=H.length,ee=F.length,ne,et;pt<bt;){if(P>=ee)return-1;if(ne=H.charCodeAt(pt++),ne===37){if(ne=H.charAt(pt++),et=_[ne in tg?H.charAt(pt++):ne],!et||(P=et(Y,F,P))<0)return-1}else if(ne!=F.charCodeAt(P++))return-1}return P}function G(Y,H,F){var P=c.exec(H.slice(F));return P?(Y.p=u.get(P[0].toLowerCase()),F+P[0].length):-1}function k(Y,H,F){var P=f.exec(H.slice(F));return P?(Y.w=p.get(P[0].toLowerCase()),F+P[0].length):-1}function O(Y,H,F){var P=d.exec(H.slice(F));return P?(Y.w=h.get(P[0].toLowerCase()),F+P[0].length):-1}function R(Y,H,F){var P=m.exec(H.slice(F));return P?(Y.m=y.get(P[0].toLowerCase()),F+P[0].length):-1}function I(Y,H,F){var P=g.exec(H.slice(F));return P?(Y.m=v.get(P[0].toLowerCase()),F+P[0].length):-1}function $(Y,H,F){return D(Y,t,H,F)}function T(Y,H,F){return D(Y,n,H,F)}function B(Y,H,F){return D(Y,r,H,F)}function N(Y){return a[Y.getDay()]}function U(Y){return s[Y.getDay()]}function V(Y){return l[Y.getMonth()]}function q(Y){return o[Y.getMonth()]}function X(Y){return i[+(Y.getHours()>=12)]}function J(Y){return 1+~~(Y.getMonth()/3)}function ct(Y){return a[Y.getUTCDay()]}function W(Y){return s[Y.getUTCDay()]}function K(Y){return l[Y.getUTCMonth()]}function ut(Y){return o[Y.getUTCMonth()]}function rt(Y){return i[+(Y.getUTCHours()>=12)]}function Ct(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var H=x(Y+="",E);return H.toString=function(){return Y},H},parse:function(Y){var H=C(Y+="",!1);return H.toString=function(){return Y},H},utcFormat:function(Y){var H=x(Y+="",S);return H.toString=function(){return Y},H},utcParse:function(Y){var H=C(Y+="",!0);return H.toString=function(){return Y},H}}}var tg={"-":"",_:" ",0:"0"},Vt=/^\s*\d+/,PL=/^%/,NL=/[\\^$*+?|[\]().{}]/g;function ht(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function UL(e){return e.replace(NL,"\\$&")}function Ri(e){return new RegExp("^(?:"+e.map(UL).join("|")+")","i")}function Ii(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function BL(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function VL(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function HL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function GL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function FL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function eg(e,t,n){var r=Vt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ng(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function zL(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function WL(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function qL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rg(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function YL(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ig(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function XL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function jL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ZL(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function KL(e,t,n){var r=Vt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function QL(e,t,n){var r=PL.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function JL(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tR(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function sg(e,t){return ht(e.getDate(),t,2)}function eR(e,t){return ht(e.getHours(),t,2)}function nR(e,t){return ht(e.getHours()%12||12,t,2)}function rR(e,t){return ht(1+Di.count(sn(e),e),t,3)}function ag(e,t){return ht(e.getMilliseconds(),t,3)}function iR(e,t){return ag(e,t)+"000"}function sR(e,t){return ht(e.getMonth()+1,t,2)}function aR(e,t){return ht(e.getMinutes(),t,2)}function oR(e,t){return ht(e.getSeconds(),t,2)}function lR(e){var t=e.getDay();return t===0?7:t}function cR(e,t){return ht(da.count(sn(e)-1,e),t,2)}function og(e){var t=e.getDay();return t>=4||t===0?Or(e):Or.ceil(e)}function uR(e,t){return e=og(e),ht(Or.count(sn(e),e)+(sn(e).getDay()===4),t,2)}function hR(e){return e.getDay()}function dR(e,t){return ht(fa.count(sn(e)-1,e),t,2)}function fR(e,t){return ht(e.getFullYear()%100,t,2)}function pR(e,t){return e=og(e),ht(e.getFullYear()%100,t,2)}function gR(e,t){return ht(e.getFullYear()%1e4,t,4)}function mR(e,t){var n=e.getDay();return e=n>=4||n===0?Or(e):Or.ceil(e),ht(e.getFullYear()%1e4,t,4)}function vR(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ht(t/60|0,"0",2)+ht(t%60,"0",2)}function lg(e,t){return ht(e.getUTCDate(),t,2)}function yR(e,t){return ht(e.getUTCHours(),t,2)}function bR(e,t){return ht(e.getUTCHours()%12||12,t,2)}function ER(e,t){return ht(1+vc.count(qn(e),e),t,3)}function cg(e,t){return ht(e.getUTCMilliseconds(),t,3)}function xR(e,t){return cg(e,t)+"000"}function SR(e,t){return ht(e.getUTCMonth()+1,t,2)}function _R(e,t){return ht(e.getUTCMinutes(),t,2)}function wR(e,t){return ht(e.getUTCSeconds(),t,2)}function TR(e){var t=e.getUTCDay();return t===0?7:t}function OR(e,t){return ht(Jp.count(qn(e)-1,e),t,2)}function ug(e){var t=e.getUTCDay();return t>=4||t===0?Mr(e):Mr.ceil(e)}function MR(e,t){return e=ug(e),ht(Mr.count(qn(e),e)+(qn(e).getUTCDay()===4),t,2)}function CR(e){return e.getUTCDay()}function AR(e,t){return ht(pa.count(qn(e)-1,e),t,2)}function DR(e,t){return ht(e.getUTCFullYear()%100,t,2)}function LR(e,t){return e=ug(e),ht(e.getUTCFullYear()%100,t,2)}function RR(e,t){return ht(e.getUTCFullYear()%1e4,t,4)}function IR(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Mr(e):Mr.ceil(e),ht(e.getUTCFullYear()%1e4,t,4)}function kR(){return"+0000"}function hg(){return"%"}function dg(e){return+e}function fg(e){return Math.floor(+e/1e3)}var Cr,pg;$R({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 $R(e){return Cr=$L(e),pg=Cr.format,Cr.parse,Cr.utcFormat,Cr.utcParse,Cr}function PR(e){return new Date(e)}function NR(e){return e instanceof Date?+e:+new Date(+e)}function gg(e,t,n,r,i,s,a,o,l,c){var u=Wp(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),g=c("%I:%M"),v=c("%I %p"),m=c("%a %d"),y=c("%b %d"),E=c("%B"),S=c("%Y");function _(x){return(l(x)<x?f:o(x)<x?p:a(x)<x?g:s(x)<x?v:r(x)<x?i(x)<x?m:y:n(x)<x?E:S)(x)}return u.invert=function(x){return new Date(d(x))},u.domain=function(x){return arguments.length?h(Array.from(x,NR)):h().map(PR)},u.ticks=function(x){var C=h();return e(C[0],C[C.length-1],x??10)},u.tickFormat=function(x,C){return C==null?_:c(C)},u.nice=function(x){var C=h();return(!x||typeof x.range!="function")&&(x=t(C[0],C[C.length-1],x??10)),x?h(Yp(C,x)):u},u.copy=function(){return cc(u,gg(e,t,n,r,i,s,a,o,l,c))},u}function mg(){return _r.apply(gg(IL,kL,sn,yc,da,Di,mc,gc,Tr,pg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function at(e){return function(){return e}}const vg=Math.abs,Wt=Math.atan2,Yn=Math.cos,UR=Math.max,xc=Math.min,Fe=Math.sin,Ar=Math.sqrt,qt=1e-12,ki=Math.PI,ga=ki/2,ma=2*ki;function BR(e){return e>1?0:e<-1?ki:Math.acos(e)}function yg(e){return e>=1?ga:e<=-1?-ga:Math.asin(e)}function va(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Il(t)}function VR(e){return e.innerRadius}function HR(e){return e.outerRadius}function GR(e){return e.startAngle}function FR(e){return e.endAngle}function zR(e){return e&&e.padAngle}function WR(e,t,n,r,i,s,a,o){var l=n-e,c=r-t,u=a-i,d=o-s,h=d*l-u*c;if(!(h*h<qt))return h=(u*(t-s)-d*(e-i))/h,[e+h*l,t+h*c]}function ya(e,t,n,r,i,s,a){var o=e-n,l=t-r,c=(a?s:-s)/Ar(o*o+l*l),u=c*l,d=-c*o,h=e+u,f=t+d,p=n+u,g=r+d,v=(h+p)/2,m=(f+g)/2,y=p-h,E=g-f,S=y*y+E*E,_=i-s,x=h*g-p*f,C=(E<0?-1:1)*Ar(UR(0,_*_*S-x*x)),D=(x*E-y*C)/S,G=(-x*y-E*C)/S,k=(x*E+y*C)/S,O=(-x*y+E*C)/S,R=D-v,I=G-m,$=k-v,T=O-m;return R*R+I*I>$*$+T*T&&(D=k,G=O),{cx:D,cy:G,x01:-u,y01:-d,x11:D*(i/_-1),y11:G*(i/_-1)}}function $i(){var e=VR,t=HR,n=at(0),r=null,i=GR,s=FR,a=zR,o=null,l=va(c);function c(){var u,d,h=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-ga,g=s.apply(this,arguments)-ga,v=vg(g-p),m=g>p;if(o||(o=u=l()),f<h&&(d=f,f=h,h=d),!(f>qt))o.moveTo(0,0);else if(v>ma-qt)o.moveTo(f*Yn(p),f*Fe(p)),o.arc(0,0,f,p,g,!m),h>qt&&(o.moveTo(h*Yn(g),h*Fe(g)),o.arc(0,0,h,g,p,m));else{var y=p,E=g,S=p,_=g,x=v,C=v,D=a.apply(this,arguments)/2,G=D>qt&&(r?+r.apply(this,arguments):Ar(h*h+f*f)),k=xc(vg(f-h)/2,+n.apply(this,arguments)),O=k,R=k,I,$;if(G>qt){var T=yg(G/h*Fe(D)),B=yg(G/f*Fe(D));(x-=T*2)>qt?(T*=m?1:-1,S+=T,_-=T):(x=0,S=_=(p+g)/2),(C-=B*2)>qt?(B*=m?1:-1,y+=B,E-=B):(C=0,y=E=(p+g)/2)}var N=f*Yn(y),U=f*Fe(y),V=h*Yn(_),q=h*Fe(_);if(k>qt){var X=f*Yn(E),J=f*Fe(E),ct=h*Yn(S),W=h*Fe(S),K;if(v<ki)if(K=WR(N,U,ct,W,X,J,V,q)){var ut=N-K[0],rt=U-K[1],Ct=X-K[0],Y=J-K[1],H=1/Fe(BR((ut*Ct+rt*Y)/(Ar(ut*ut+rt*rt)*Ar(Ct*Ct+Y*Y)))/2),F=Ar(K[0]*K[0]+K[1]*K[1]);O=xc(k,(h-F)/(H-1)),R=xc(k,(f-F)/(H+1))}else O=R=0}C>qt?R>qt?(I=ya(ct,W,N,U,f,R,m),$=ya(X,J,V,q,f,R,m),o.moveTo(I.cx+I.x01,I.cy+I.y01),R<k?o.arc(I.cx,I.cy,R,Wt(I.y01,I.x01),Wt($.y01,$.x01),!m):(o.arc(I.cx,I.cy,R,Wt(I.y01,I.x01),Wt(I.y11,I.x11),!m),o.arc(0,0,f,Wt(I.cy+I.y11,I.cx+I.x11),Wt($.cy+$.y11,$.cx+$.x11),!m),o.arc($.cx,$.cy,R,Wt($.y11,$.x11),Wt($.y01,$.x01),!m))):(o.moveTo(N,U),o.arc(0,0,f,y,E,!m)):o.moveTo(N,U),!(h>qt)||!(x>qt)?o.lineTo(V,q):O>qt?(I=ya(V,q,X,J,h,-O,m),$=ya(N,U,ct,W,h,-O,m),o.lineTo(I.cx+I.x01,I.cy+I.y01),O<k?o.arc(I.cx,I.cy,O,Wt(I.y01,I.x01),Wt($.y01,$.x01),!m):(o.arc(I.cx,I.cy,O,Wt(I.y01,I.x01),Wt(I.y11,I.x11),!m),o.arc(0,0,h,Wt(I.cy+I.y11,I.cx+I.x11),Wt($.cy+$.y11,$.cx+$.x11),m),o.arc($.cx,$.cy,O,Wt($.y11,$.x11),Wt($.y01,$.x01),!m))):o.arc(0,0,h,_,S,m)}if(o.closePath(),u)return o=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2-ki/2;return[Yn(d)*u,Fe(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:at(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:at(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:at(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:at(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:at(+u),c):i},c.endAngle=function(u){return arguments.length?(s=typeof u=="function"?u:at(+u),c):s},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:at(+u),c):a},c.context=function(u){return arguments.length?(o=u??null,c):o},c}var qR=Array.prototype.slice;function ba(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bg(e){this._context=e}bg.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ea(e){return new bg(e)}function Sc(e){return e[0]}function _c(e){return e[1]}function Pi(e,t){var n=at(!0),r=null,i=Ea,s=null,a=va(o);e=typeof e=="function"?e:e===void 0?Sc:at(e),t=typeof t=="function"?t:t===void 0?_c:at(t);function o(l){var c,u=(l=ba(l)).length,d,h=!1,f;for(r==null&&(s=i(f=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===h&&((h=!h)?s.lineStart():s.lineEnd()),h&&s.point(+e(d,c,l),+t(d,c,l));if(f)return s=null,f+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:at(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:at(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:at(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(s=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=s=null:s=i(r=l),o):r},o}function wc(e,t,n){var r=null,i=at(!0),s=null,a=Ea,o=null,l=va(c);e=typeof e=="function"?e:e===void 0?Sc:at(+e),t=typeof t=="function"?t:at(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?_c:at(+n);function c(d){var h,f,p,g=(d=ba(d)).length,v,m=!1,y,E=new Array(g),S=new Array(g);for(s==null&&(o=a(y=l())),h=0;h<=g;++h){if(!(h<g&&i(v=d[h],h,d))===m)if(m=!m)f=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),p=h-1;p>=f;--p)o.point(E[p],S[p]);o.lineEnd(),o.areaEnd()}m&&(E[h]=+e(v,h,d),S[h]=+t(v,h,d),o.point(r?+r(v,h,d):E[h],n?+n(v,h,d):S[h]))}if(y)return o=null,y+""||null}function u(){return Pi().defined(i).curve(a).context(s)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:at(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:at(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:at(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,s!=null&&(o=a(s)),c):a},c.context=function(d){return arguments.length?(d==null?s=o=null:o=a(s=d),c):s},c}function YR(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function XR(e){return e}function jR(){var e=XR,t=YR,n=null,r=at(0),i=at(ma),s=at(0);function a(o){var l,c=(o=ba(o)).length,u,d,h=0,f=new Array(c),p=new Array(c),g=+r.apply(this,arguments),v=Math.min(ma,Math.max(-ma,i.apply(this,arguments)-g)),m,y=Math.min(Math.abs(v)/c,s.apply(this,arguments)),E=y*(v<0?-1:1),S;for(l=0;l<c;++l)(S=p[f[l]=l]=+e(o[l],l,o))>0&&(h+=S);for(t!=null?f.sort(function(_,x){return t(p[_],p[x])}):n!=null&&f.sort(function(_,x){return n(o[_],o[x])}),l=0,d=h?(v-c*E)/h:0;l<c;++l,g=m)u=f[l],S=p[u],m=g+(S>0?S*d:0)+E,p[u]={data:o[u],index:l,value:S,startAngle:g,endAngle:m,padAngle:y};return p}return a.value=function(o){return arguments.length?(e=typeof o=="function"?o:at(+o),a):e},a.sortValues=function(o){return arguments.length?(t=o,n=null,a):t},a.sort=function(o){return arguments.length?(n=o,t=null,a):n},a.startAngle=function(o){return arguments.length?(r=typeof o=="function"?o:at(+o),a):r},a.endAngle=function(o){return arguments.length?(i=typeof o=="function"?o:at(+o),a):i},a.padAngle=function(o){return arguments.length?(s=typeof o=="function"?o:at(+o),a):s},a}var ZR=xg(Ea);function Eg(e){this._curve=e}Eg.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function xg(e){function t(n){return new Eg(e(n))}return t._curve=e,t}function KR(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(xg(n)):t()._curve},e}function QR(){return KR(Pi().curve(ZR))}class JR{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function t2(e){return new JR(e,!0)}function e2(e){return e.source}function n2(e){return e.target}function r2(e){let t=e2,n=n2,r=Sc,i=_c,s=null,a=null,o=va(l);function l(){let c;const u=qR.call(arguments),d=t.apply(this,u),h=n.apply(this,u);if(s==null&&(a=e(c=o())),a.lineStart(),u[0]=d,a.point(+r.apply(this,u),+i.apply(this,u)),u[0]=h,a.point(+r.apply(this,u),+i.apply(this,u)),a.lineEnd(),c)return a=null,c+""||null}return l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.x=function(c){return arguments.length?(r=typeof c=="function"?c:at(+c),l):r},l.y=function(c){return arguments.length?(i=typeof c=="function"?c:at(+c),l):i},l.context=function(c){return arguments.length?(c==null?s=a=null:a=e(s=c),l):s},l}function i2(){return r2(t2)}function gn(){}function xa(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Sa(e){this._context=e}Sa.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:xa(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function s2(e){return new Sa(e)}function Sg(e){this._context=e}Sg.prototype={areaStart:gn,areaEnd:gn,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a2(e){return new Sg(e)}function _g(e){this._context=e}_g.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function o2(e){return new _g(e)}function wg(e,t){this._basis=new Sa(e),this._beta=t}wg.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],s=e[n]-r,a=t[n]-i,o=-1,l;++o<=n;)l=o/n,this._basis.point(this._beta*e[o]+(1-this._beta)*(r+l*s),this._beta*t[o]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const l2=function e(t){function n(r){return t===1?new Sa(r):new wg(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function _a(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Tc(e,t){this._context=e,this._k=(1-t)/6}Tc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_a(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_a(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const c2=function e(t){function n(r){return new Tc(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Oc(e,t){this._context=e,this._k=(1-t)/6}Oc.prototype={areaStart:gn,areaEnd:gn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_a(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const u2=function e(t){function n(r){return new Oc(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Mc(e,t){this._context=e,this._k=(1-t)/6}Mc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_a(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const h2=function e(t){function n(r){return new Mc(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Cc(e,t,n){var r=e._x1,i=e._y1,s=e._x2,a=e._y2;if(e._l01_a>qt){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>qt){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,s,a,e._x2,e._y2)}function Tg(e,t){this._context=e,this._alpha=t}Tg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Cc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const d2=function e(t){function n(r){return t?new Tg(r,t):new Tc(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Og(e,t){this._context=e,this._alpha=t}Og.prototype={areaStart:gn,areaEnd:gn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Cc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const f2=function e(t){function n(r){return t?new Og(r,t):new Oc(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Mg(e,t){this._context=e,this._alpha=t}Mg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const p2=function e(t){function n(r){return t?new Mg(r,t):new Mc(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Cg(e){this._context=e}Cg.prototype={areaStart:gn,areaEnd:gn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Ag(e){return new Cg(e)}function Dg(e){return e<0?-1:1}function Lg(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),o=(s*i+a*r)/(r+i);return(Dg(s)+Dg(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(o))||0}function Rg(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ac(e,t,n){var r=e._x0,i=e._y0,s=e._x1,a=e._y1,o=(s-r)/3;e._context.bezierCurveTo(r+o,i+o*t,s-o,a-o*n,s,a)}function wa(e){this._context=e}wa.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:Ac(this,this._t0,Rg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ac(this,Rg(this,n=Lg(this,e,t)),n);break;default:Ac(this,this._t0,n=Lg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ig(e){this._context=new kg(e)}(Ig.prototype=Object.create(wa.prototype)).point=function(e,t){wa.prototype.point.call(this,t,e)};function kg(e){this._context=e}kg.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function g2(e){return new wa(e)}function m2(e){return new Ig(e)}function $g(e){this._context=e}$g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Pg(e),i=Pg(t),s=0,a=1;a<n;++s,++a)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Pg(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),a=new Array(n);for(i[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function v2(e){return new $g(e)}function Ta(e,t){this._context=e,this._t=t}Ta.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function y2(e){return new Ta(e,.5)}function b2(e){return new Ta(e,0)}function E2(e){return new Ta(e,1)}function Ng(e,t){if((a=e.length)>1)for(var n=1,r,i,s=e[t[0]],a,o=s.length;n<a;++n)for(i=s,s=e[t[n]],r=0;r<o;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Ug(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function x2(e,t){return e[t]}function S2(e){const t=[];return t.key=e,t}function Dc(){var e=at([]),t=Ug,n=Ng,r=x2;function i(s){var a=Array.from(e.apply(this,arguments),S2),o,l=a.length,c=-1,u;for(const d of s)for(o=0,++c;o<l;++o)(a[o][c]=[0,+r(d,a[o].key,c,s)]).data=d;for(o=0,u=ba(t(a));o<l;++o)a[u[o]].index=o;return n(a,u),a}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:at(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:at(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?Ug:typeof s=="function"?s:at(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??Ng,i):n},i}function _2(e,t){if((l=e.length)>0)for(var n,r=0,i,s,a,o,l,c=e[t[0]].length;r<c;++r)for(a=o=0,n=0;n<l;++n)(s=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=s):s<0?(i[1]=o,i[0]=o+=s):(i[0]=0,i[1]=s)}function Ni(e,t,n){this.k=e,this.x=t,this.y=n}Ni.prototype={constructor:Ni,scale:function(e){return e===1?this:new Ni(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ni(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Ni.prototype;var Oa=(e=>(e.RENDER_FINISHED="render-finished",e.RESIZE="chart-resize",e.MOUSEOVER="chart-mouseover",e.MOUSEOUT="chart-mouseout",e))(Oa||{}),Ma=(e=>(e.SHOW="show-modal",e.HIDE="hide-modal",e))(Ma||{}),Ca=(e=>(e.UPDATE="model-update",e))(Ca||{}),Bg=(e=>(e.SHOW_OVERFLOW_MENU="show-toolbar-overflow-menu",e.HIDE_OVERFLOW_MENU="hide-toolbar-overflow-menu",e.BUTTON_CLICK="toolbar-button-click",e))(Bg||{}),Aa=(e=>(e.UPDATE="zoom-bar-update",e.SELECTION_START="zoom-bar-selection-start",e.SELECTION_IN_PROGRESS="zoom-bar-selection-in-progress",e.SELECTION_END="zoom-bar-selection-end",e))(Aa||{}),Da=(e=>(e.CHANGE="zoom-domain-change",e))(Da||{}),La=(e=>(e.CANVAS_ZOOM_IN="canvas-zoom-in",e.CANVAS_ZOOM_OUT="canvas-zoom-out",e))(La||{}),Ra=(e=>(e.LABEL_MOUSEOVER="axis-label-mouseover",e.LABEL_MOUSEMOVE="axis-label-mousemove",e.LABEL_CLICK="axis-label-click",e.LABEL_MOUSEOUT="axis-label-mouseout",e.LABEL_FOCUS="axis-label-focus",e.LABEL_BLUR="axis-label-blur",e.RENDER_COMPLETE="axis-render-complete",e))(Ra||{}),Ia=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(Ia||{}),ka=(e=>(e.WORD_MOUSEOVER="wordcloud-word-mouseover",e.WORD_MOUSEMOVE="wordcloud-word-mousemove",e.WORD_CLICK="wordcloud-word-click",e.WORD_MOUSEOUT="wordcloud-word-mouseout",e))(ka||{}),$a=(e=>(e.SLICE_MOUSEOVER="pie-slice-mouseover",e.SLICE_MOUSEMOVE="pie-slice-mousemove",e.SLICE_CLICK="pie-slice-click",e.SLICE_MOUSEOUT="pie-slice-mouseout",e))($a||{}),Pa=(e=>(e.ARC_MOUSEOVER="gauge-arc-mouseover",e.ARC_MOUSEMOVE="gauge-arc-mousemove",e.ARC_CLICK="gauge-arc-click",e.ARC_MOUSEOUT="gauge-arc-mouseout",e))(Pa||{}),Na=(e=>(e.BAR_MOUSEOVER="bar-mouseover",e.BAR_MOUSEMOVE="bar-mousemove",e.BAR_CLICK="bar-click",e.BAR_MOUSEOUT="bar-mouseout",e))(Na||{}),Ua=(e=>(e.BOX_MOUSEOVER="box-mouseover",e.BOX_MOUSEMOVE="box-mousemove",e.BOX_CLICK="box-click",e.BOX_MOUSEOUT="box-mouseout",e.OUTLIER_MOUSEOVER="outlier-mouseover",e.OUTLIER_MOUSEMOVE="outlier-mousemove",e.OUTLIER_CLICK="outlier-click",e.OUTLIER_MOUSEOUT="outlier-mouseout",e))(Ua||{}),Ba=(e=>(e.SCATTER_MOUSEOVER="scatter-mouseover",e.SCATTER_MOUSEMOVE="scatter-mousemove",e.SCATTER_CLICK="scatter-click",e.SCATTER_MOUSEOUT="scatter-mouseout",e))(Ba||{}),Va=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(Va||{}),Ha=(e=>(e.X_AXIS_MOUSEOVER="radar-x-axis-mouseover",e.X_AXIS_MOUSEMOVE="radar-x-axis-mousemove",e.X_AXIS_CLICK="radar-x-axis-click",e.X_AXIS_MOUSEOUT="radar-x-axis-mouseout",e))(Ha||{}),Ga=(e=>(e.NODE_MOUSEOVER="tree-node-mouseover",e.NODE_CLICK="tree-node-click",e.NODE_MOUSEOUT="tree-node-mouseout",e))(Ga||{}),Fa=(e=>(e.LEAF_MOUSEOVER="leaf-mouseover",e.LEAF_MOUSEMOVE="leaf-mousemove",e.LEAF_CLICK="leaf-click",e.LEAF_MOUSEOUT="leaf-mouseout",e))(Fa||{}),Xn=(e=>(e.SHOW="show-tooltip",e.MOVE="move-tooltip",e.HIDE="hide-tooltip",e))(Xn||{}),za=(e=>(e.SHOW="show-threshold",e.HIDE="hide-threshold",e))(za||{}),Vg=(e=>(e.ITEM_HOVER="legend-item-onhover",e.ITEM_CLICK="legend-item-onclick",e.ITEM_MOUSEOUT="legend-item-onmouseout",e.ITEMS_UPDATE="legend-items-update",e))(Vg||{}),Hg=(e=>(e.CIRCLE_MOUSEOVER="circle-leaf-mouseover",e.CIRCLE_CLICK="circle-leaf-click",e.CIRCLE_MOUSEOUT="circle-leaf-mouseout",e.CIRCLE_MOUSEMOVE="circle-leaf-mousemove",e))(Hg||{}),Gg=(e=>(e.NODE_MOUSEOVER="alluvial-node-mouseover",e.NODE_CLICK="alluvial-node-click",e.NODE_MOUSEOUT="alluvial-node-mouseout",e.NODE_MOUSEMOVE="alluvial-node-mousemove",e.LINE_MOUSEOVER="alluvial-line-mouseover",e.LINE_CLICK="alluvial-line-click",e.LINE_MOUSEOUT="alluvial-line-mouseout",e.LINE_MOUSEMOVE="alluvial-line-mousemove",e))(Gg||{}),Fg=(e=>(e.METER_MOUSEOVER="meter-mouseover",e.METER_CLICK="meter-click",e.METER_MOUSEOUT="meter-mouseout",e.METER_MOUSEMOVE="meter-mousemove",e))(Fg||{}),zg=(e=>(e.HEATMAP_MOUSEOVER="heatmap-mouseover",e.HEATMAP_CLICK="heatmap-click",e.HEATMAP_MOUSEOUT="heatmap-mouseout",e.HEATMAP_MOUSEMOVE="hetmap-mousemove",e))(zg||{}),Dr=(e=>(e.CHOROPLETH_MOUSEOVER="choropleth-mouseover",e.CHOROPLETH_CLICK="choropleth-click",e.CHOROPLETH_MOUSEOUT="choropleth-mouseout",e.CHOROPLETH_MOUSEMOVE="choropleth-mousemove",e))(Dr||{});const Wg=Object.freeze(Object.defineProperty({__proto__:null,Alluvial:Gg,Area:Ia,Axis:Ra,Bar:Na,Boxplot:Ua,CanvasZoom:La,Chart:Oa,Choropleth:Dr,CirclePack:Hg,Gauge:Pa,Heatmap:zg,Legend:Vg,Line:Va,Meter:Fg,Modal:Ma,Model:Ca,Pie:$a,Radar:Ha,Scatter:Ba,Threshold:za,Toolbar:Bg,Tooltip:Xn,Tree:Ga,Treemap:Fa,WordCloud:ka,ZoomBar:Aa,ZoomDomain:Da},Symbol.toStringTag,{value:"Module"})),w=Wg;var Z=(e=>(e.HTML="html",e.SVG="svg",e))(Z||{}),Wa=(e=>(e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10",e))(Wa||{}),Q=(e=>(e.BACKGROUND="background",e.FILL="fill",e.STROKE="stroke",e.TOOLTIP="tooltip",e))(Q||{}),z=(e=>(e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e))(z||{}),Ee=(e=>(e.GRAPH_VIEW="graph_view",e.SLIDER_VIEW="slider_view",e))(Ee||{}),fe=(e=>(e.END_LINE="end_line",e.MID_LINE="mid_line",e.FRONT_LINE="front_line",e.NONE="none",e))(fe||{}),Pt=(e=>(e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e))(Pt||{}),j=(e=>(e.TIME="time",e.LINEAR="linear",e.LOG="log",e.LABELS="labels",e.LABELS_RATIO="labels-ratio",e))(j||{}),jn=(e=>(e.RIGHT="right",e.LEFT="left",e.TOP="top",e.BOTTOM="bottom",e))(jn||{}),It=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(It||{}),Zn=(e=>(e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e))(Zn||{}),Ui=(e=>(e.TREE="tree",e.DENDROGRAM="dendrogram",e))(Ui||{}),xt=(e=>(e.ROW="row",e.COLUMN="column",e.ROW_REVERSE="row-reverse",e.COLUMN_REVERSE="column-reverse",e))(xt||{}),nt=(e=>(e.FIXED="fixed",e.PREFERRED="preferred",e.STRETCH="stretch",e))(nt||{}),mn=(e=>(e.CENTER="center",e))(mn||{}),Lr=(e=>(e.LEFT="left",e.RIGHT="right",e))(Lr||{}),kt=(e=>(e.GRID="grid",e.VERT_OR_HORIZ="vertOrHoriz",e.PIE="pie",e.DONUT="donut",e))(kt||{}),Le=(e=>(e.START="start",e.MIDDLE="middle",e.END="end",e))(Le||{}),Re=(e=>(e.BASELINE="baseline",e.MIDDLE="middle",e.HANGING="hanging",e))(Re||{}),vn=(e=>(e.SEMI="semi",e.FULL="full",e))(vn||{}),Bi=(e=>(e.UP="up",e.DOWN="down",e))(Bi||{}),Rr=(e=>(e.SUCCESS="success",e.WARNING="warning",e.DANGER="danger",e))(Rr||{}),Ir=(e=>(e.ALWAYS="always",e.AUTO="auto",e.NEVER="never",e))(Ir||{}),se=(e=>(e.SCATTER="scatter",e.LINE="line",e.SIMPLE_BAR="simple-bar",e.STACKED_BAR="stacked-bar",e.GROUPED_BAR="grouped-bar",e.AREA="area",e.STACKED_AREA="stacked-area",e))(se||{}),Ot=(e=>(e.EXPORT_CSV="Export as CSV",e.EXPORT_PNG="Export as PNG",e.EXPORT_JPG="Export as JPG",e.ZOOM_IN="Zoom in",e.ZOOM_OUT="Zoom out",e.RESET_ZOOM="Reset zoom",e.MAKE_FULLSCREEN="Make fullscreen",e.SHOW_AS_DATATABLE="Show as data-table",e.CUSTOM="Custom",e))(Ot||{}),Vi=(e=>(e.LEFT="left",e.RIGHT="right",e))(Vi||{}),$t=(e=>(e.CHECKBOX="checkbox",e.RADIUS="radius",e.AREA="area",e.SIZE="size",e.LINE="line",e.QUARTILE="quartile",e.ZOOM="zoom",e))($t||{}),kr=(e=>(e.LINEAR="linear",e.QUANTIZE="quantize",e))(kr||{}),Kn=(e=>(e.ON="on",e.AUTO="auto",e.OFF="off",e))(Kn||{}),$r=(e=>(e.DEFAULT="default",e.HOVERABLE="hoverable",e))($r||{}),Ie=(e=>(e.geoEqualEarth="geoEqualEarth",e.geoAlbers="geoAlbers",e.geoConicEqualArea="geoConicEqualArea",e.geoConicEquidistant="geoConicEquidistant",e.geoEquirectangular="geoEquirectangular",e.geoMercator="geoMercator",e.geoNaturalEarth1="geoNaturalEarth1",e))(Ie||{});const Yt="cds",ke={opacity:{unselected:.05,selected:.4}},ze={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1,hover:{rectanglePadding:4}},yn={duration:1e3,ease:Of,zoomLevel:3},bn={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},qa={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},ae={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},Lc={defaultBins:10},Mt={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"},color:{barWidth:300,barHeight:8,axisYTranslation:10}},$e={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},Bt={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36,paddingRight:24},height:{default:8,proportional:16},dividerWidth:2},St={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},an={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},pe={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},Rc={minCellDividerDimension:16,chartPadding:.5},Ya={default:{size:24}},Ic={horizontalOffset:10},Xa={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},qg={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},Kt={height:{[Ee.GRAPH_VIEW]:32,[Ee.SLIDER_VIEW]:10},spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},kc=[{type:$t.RADIUS,name:"Radius"},{type:$t.AREA,name:"Poor area"},{type:$t.AREA,name:"Satisfactory area"},{type:$t.AREA,name:"Great area"},{type:$t.QUARTILE,name:"Quartiles"}],Pr={type:fe.END_LINE,threshold:16,numCharacter:14},w2={enabled:!0,position:jn.BOTTOM,clickable:!0,truncation:Pr,alignment:It.LEFT,order:null,additionalItems:[]},$c={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},Pc={enabled:!0},ja={enabled:!0,showTotal:!0,truncation:Pr,groupLabel:"Group"},Yg={top:{visible:!0,includeZero:!0,truncation:Pr},bottom:{visible:!0,includeZero:!0,truncation:Pr},left:{visible:!0,includeZero:!0,truncation:Pr},right:{visible:!0,includeZero:!0,truncation:Pr}},Nr={addSpaceOnEdges:1,showDayName:!1,localeObject:zu,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},T2=typeof document<"u"&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled),Xt={width:null,height:null,resizable:!0,theme:Wa.WHITE,tooltip:ja,legend:w2,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:[{type:Ot.SHOW_AS_DATATABLE},...T2?[{type:Ot.MAKE_FULLSCREEN}]:[],{type:Ot.EXPORT_CSV},{type:Ot.EXPORT_PNG},{type:Ot.EXPORT_JPG}]}},Xg=tt({},Xt,{thematic:{projection:Ie.geoNaturalEarth1}}),Hi=tt({},Xt,{axes:Yg,timeScale:Nr,grid:$c,ruler:Pc,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:Ee.GRAPH_VIEW}}}),Qn=tt({},Hi,{bars:{maxWidth:16,spacingFactor:.25},timeScale:tt(Nr,{addSpaceOnEdges:1})}),O2=tt({},Qn,{}),M2=tt({},Qn,{}),C2=tt({},Qn,{bars:tt({},Qn.bars,{dividerSize:1.5})}),A2=tt({},Qn,{}),Nc=tt({},Hi,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),D2=Nc,jg=tt({},Nc,{points:{radius:3,filled:!1,enabled:!0}}),Zg=tt({},jg,{timeScale:tt(Nr,{addSpaceOnEdges:0})}),L2=Zg,R2=tt({},Hi,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:e=>{const t=Math.min(e.width,e.height);return[t*3/400,t*25/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:$t.RADIUS,name:"Radius"}]}}),I2=tt({},Hi,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:$t.AREA,name:"Poor area"},{type:$t.AREA,name:"Satisfactory area"},{type:$t.AREA,name:"Great area"},{type:$t.QUARTILE,name:"Quartiles"}]}}),k2=tt({},Qn,{bars:{dividerSize:1.5},timeScale:tt(Nr,{addSpaceOnEdges:0})}),$2=tt({},Xt,{tooltip:tt({},ja,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:e=>{const t=Math.min(e.width,e.height);return[t*20/400,t*75/400]},wordMapsTo:"word"}}),Kg=tt({},Xt,{pie:{labels:{formatter:null,enabled:!0},alignment:It.LEFT,sortFunction:null,valueMapsTo:"value"}}),P2=tt({},Xt,{legend:{enabled:!1},gauge:{type:vn.SEMI,arcWidth:16,deltaArrow:{size:e=>e/8,enabled:!0},showPercentageSymbol:!0,status:null,numberSpacing:10,deltaFontSize:e=>e/8,valueFontSize:e=>e/2.5,numberFormatter:e=>Number(e.toFixed(2))%1!==0?e.toFixed(2).toLocaleString():e.toFixed().toLocaleString(),alignment:It.LEFT}}),N2=tt({},Kg,{donut:{center:{numberFontSize:e=>`${Math.min(e/100*24,24)}px`,titleFontSize:e=>`${Math.min(e/100*15,15)}px`,titleYPosition:e=>Math.min(e/80*20,20),numberFormatter:e=>Math.floor(e).toLocaleString()},alignment:It.LEFT}}),Qg=tt({},Xt,{legend:{enabled:!1,clickable:!1},meter:{showLabels:!0,proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),U2=tt({},Qg,{legend:{enabled:!0}}),B2=tt({},Xt,{radar:{axes:{angle:"key",value:"value"},alignment:It.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:e=>e??"N/A"}}),V2=tt({},Qn,{comboChartTypes:[]}),H2=tt({tree:{type:Ui.TREE}},Xt,{}),G2=tt({},Xt,{data:tt(Xt.data,{groupMapsTo:"name"})}),F2=tt({},Xt,bn,{data:tt(Xt.data,{groupMapsTo:"name"})}),z2=tt({},Xt,{alluvial:{data:tt(Xt.data,{groupMapsTo:"source"}),nodeAlignment:It.CENTER,nodePadding:24,monochrome:!1,nodes:[]}}),W2=tt({},Xt,{axes:Yg,heatmap:{divider:{state:Kn.AUTO},colorLegend:{type:"linear"}}}),q2=tt({},Xg,{choropleth:{colorLegend:{type:"linear"}}}),yt={alluvialChart:z2,areaChart:Zg,axisChart:Hi,boxplotChart:A2,bubbleChart:R2,bulletChart:I2,chart:Xt,circlePackChart:F2,choroplethChart:q2,comboChart:V2,donutChart:N2,gaugeChart:P2,groupedBarChart:M2,heatmapChart:W2,histogramChart:k2,lineChart:jg,lollipopChart:D2,meterChart:Qg,pieChart:Kg,proportionalMeterChart:U2,radarChart:B2,scatterChart:Nc,simpleBarChart:O2,stackedAreaChart:L2,stackedBarChart:C2,thematicChart:Xg,treeChart:H2,treemapChart:G2,wordCloudChart:$2},Y2=Object.freeze(Object.defineProperty({__proto__:null,alluvial:pe,area:ke,axis:ze,baseTooltip:ja,boxplot:ae,canvasZoomSettings:yn,carbonPrefix:Yt,circlePack:bn,color:qa,defaultLegendAdditionalItems:kc,grid:$c,heatmap:Rc,histogram:Lc,legend:Mt,lines:$e,meter:Bt,options:yt,pie:St,radar:an,ruler:Pc,spacers:Ya,timeScale:Nr,toolbar:qg,tooltips:Ic,transitions:Xa,zoomBar:Kt},Symbol.toStringTag,{value:"Module"}));var it=(e=>(e.GRAPHICS_DOCUMENT="graphics-document",e.GRAPHICS_OBJECT="graphics-object",e.GRAPHICS_SYMBOL="graphics-symbol",e.GROUP="group",e.DOCUMENT="document",e.CHECKBOX="checkbox",e.BUTTON="button",e.MENU="menu",e.MENU_ITEM="menuitem",e.IMG="img",e))(it||{});const X2=Object.freeze(Object.defineProperty({__proto__:null,Alignments:It,AreaEvent:Ia,ArrowDirections:Bi,AxisEvent:Ra,AxisFlavor:$r,AxisPositions:z,AxisTitleOrientations:Vi,BarEvent:Na,BoxplotEvent:Ua,CalloutDirections:Lr,CanvasZoomEvent:La,CartesianOrientations:Pt,ChartEvent:Oa,ChartTheme:Wa,ChartTypes:se,ColorClassNameTypes:Q,ColorLegendType:kr,DividerStatus:Kn,DominantBaseline:Re,Events:Wg,GaugeEvent:Pa,GaugeTypes:vn,LayoutAlignItems:mn,LayoutDirection:xt,LayoutGrowth:nt,LegendItemType:$t,LegendOrientations:Zn,LegendPositions:jn,LineEvent:Va,ModalEvent:Ma,ModelEvent:Ca,PieEvent:$a,Projection:Ie,RadarEvent:Ha,RenderTypes:Z,Roles:it,ScaleTypes:j,ScatterEvent:Ba,Skeletons:kt,Statuses:Rr,TextAnchor:Le,ThresholdEvent:za,TickRotations:Ir,ToolbarControlTypes:Ot,TooltipEvent:Xn,TreeEvent:Ga,TreeTypes:Ui,TreemapEvent:Fa,TruncationTypes:fe,WordCloudEvent:ka,ZoomBarTypes:Ee,ZoomDomainEvent:Da,ZoombarEvent:Aa},Symbol.toStringTag,{value:"Module"}));function j2(e,t,n){let r=null;return(...i)=>{const s=this;s.mousePosition=Pn(i[0],n),clearTimeout(r),r=setTimeout(function(){e.apply(s,i)},t)}}function At(e,t){var i;const n=je(e),r=Object.keys(t.axes||{});(i=t==null?void 0:t.toolbar)!=null&&i.controls&&delete n.toolbar.controls,r.length===0&&delete n.axes;for(const s in n.axes)if(r.includes(s)){const a=t.axes[s];(a.primary||a.secondary)&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");const o=a.mapsTo;if(o==null){const l=a.scaleType;l==null?a.mapsTo="value":l===j.TIME?a.mapsTo="date":l===j.LABELS&&(a.mapsTo="key")}}else delete n.axes[s];return Uc(n,t),tt(n,t)}function on(e){if(!e)return;const t=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=e.getAttribute("transform").match(t);if(!n)return null;if(n[0]){const r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}function Gi(e){const n=/\(([^)]+)\)/.exec(e);if(n&&n.length>1){const r=n[1].split(",");if(r.length>1)return{x:parseFloat(r[0]),y:parseFloat(r[1])}}return{x:0,y:0}}function Jg(e,t,n="value"){const r=e/t.reduce((i,s)=>i+s[n],0)*100;return r%1!==0?parseFloat(r.toFixed(1)):r}function Fi(e,t,n){if(n>e.length)return e;if(t===fe.MID_LINE)return e.substr(0,n/2)+"..."+e.substr(-n/2);if(t===fe.FRONT_LINE)return"..."+e.substr(-n);if(t===fe.END_LINE)return e.substr(0,n)+"..."}function Uc(e,t){const n=b(e,"legend","additionalItems"),r=b(t,"legend","additionalItems");if(n&&r){const i=r.map(o=>o.type),s=n.map(o=>o.type),a=kc.filter(o=>s.includes(o.type)&&!i.includes(o.type));e.legend.additionalItems=a,t.legend.additionalItems=Jw(a,r,"name")}}const b=(e,...t)=>{let n=e;if(n){for(const r of t)if(n[r]!==null&&n[r]!==void 0)n=n[r];else return null;return n}return null},tm=(e,t)=>t===Pt.HORIZONTAL?{y0:e.x0,y1:e.x1,x0:e.y0,x1:e.y1}:e,Qt=(e,t)=>{const{x0:n,x1:r,y0:i,y1:s}=tm(e,t);return`M${n},${i}L${n},${s}L${r},${s}L${r},${i}L${n},${i}`};function ln(e,t,n){return n===Pt.VERTICAL?[e,t]:[t,e]}var em=(e=>(e["15seconds"]="15seconds",e.minute="minute",e["30minutes"]="30minutes",e.hourly="hourly",e.daily="daily",e.weekly="weekly",e.monthly="monthly",e.quarterly="quarterly",e.yearly="yearly",e))(em||{});const Za=[["15seconds",15*1e3],["minute",60*1e3],["30minutes",30*60*1e3],["hourly",60*60*1e3],["daily",24*60*60*1e3],["monthly",30*24*60*60*1e3],["quarterly",3*30*24*60*60*1e3],["yearly",12*30*24*60*60*1e3]];function Bc(e,t,n,r,i){const s=t===0,a=Number(rr(new Date(e),"c"))===2,o=Number(rr(new Date(e),"q"))===1,l=t!==0?n[t-1]:null;switch(r){case"15seconds":return s||Ja(e)||Wi(e,l)||En(e);case"minute":return s||Ja(e)||Wi(e,l)||En(e);case"30minutes":return s||Ja(e)||Wi(e,l)||En(e);case"hourly":return s||Ja(e)||Wi(e,l)||En(e);case"daily":return i?s||a||En(e):s||Wi(e,l)||En(e);case"weekly":return s||a||En(e);case"monthly":return s||En(e);case"quarterly":return s||o;case"yearly":return!1;default:throw new Error(`${r} is not a valid time interval.`)}}function Ka(e,t,n,r,i){const s=i.showDayName,a=r==="daily"&&s?"weekly":r,o=new Date(e),l=b(i,"timeIntervalFormats")[a],c=b(l,"primary"),u=b(l,"secondary");let d=Bc(e,t,n,r,s)?c:u;r==="15seconds"&&o.getMilliseconds()!==0&&(d=d.replace("pp","h:mm:ss.SSS a"));const h=i.localeObject;return rr(o,d,{locale:h})}function zi(e){const t=new Date(e);return{M:t.getMonth()+1,d:t.getDate(),H:t.getHours(),m:t.getMinutes(),s:t.getSeconds()}}function Z2(e){if(e)return e.slice(1).map((t,n)=>t-e[n])}function K2(e){const t=Za.reduce((n,[,r],i)=>{const s=Za[n][1],a=Math.abs(s-e),o=Math.abs(r-e);return a<o?n:i},0);return Za[t][0]}function Qa(e,t){if(em[t])return t;if(e.length===1)return"15seconds";const n=Z2(e),r=dn(n);return K2(r)}function Ja(e){const{s:t,m:n,H:r}=zi(e);return r===0&&n===0&&t===0}function Wi(e,t){const n=zi(e).M,r=zi(t).M;return n!==r}function En(e){const{M:t,d:n,s:r,m:i,H:s}=zi(e);return t===1&&n===1&&s===0&&i===0&&r===0}function Vc(e){return e===void 0?"":e.toISOString()}class Pe{constructor(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}getAllDataFromDomain(t){if(!this.getData())return null;const n=this.getOptions();let r=this.getData();const i=this.getDataGroups(),{groupMapsTo:s}=b(n,"data"),a=b(n,"axes");return t&&(r=r.filter(o=>t.includes(o[s]))),a&&Object.keys(a).forEach(o=>{const l=a[o].mapsTo,c=a[o].scaleType;if((c===j.LINEAR||c===j.LOG)&&(r=r.map(u=>({...u,[l]:u[l]===null?u[l]:Number(u[l])}))),l&&a[o].domain)if(c===j.LABELS)r=r.filter(u=>a[o].domain.includes(u[l]));else{const[u,d]=a[o].domain;r=r.filter(h=>!(l in h)||h[l]>=u&&h[l]<=d)}}),r.filter(o=>i.find(l=>l.name===o[s]))}getDisplayData(t){if(!this.get("data"))return null;const{ACTIVE:n}=Mt.items.status,r=this.getDataGroups(t),{groupMapsTo:i}=this.getOptions().data;return this.getAllDataFromDomain(t).filter(a=>r.find(o=>o.name===a[i]&&o.status===n))}getData(){return this.get("data")}isDataEmpty(){return!this.getData().length}setData(t){const n=this.sanitize(je(t)),r=this.generateDataGroups(n);return this.set({data:n,dataGroups:r}),n}getDataGroups(t){return b(this.getOptions(),"data","loading")?[]:t?this.get("dataGroups").filter(r=>t.includes(r.name)):this.get("dataGroups")}getActiveDataGroups(t){const{ACTIVE:n}=Mt.items.status;return this.getDataGroups(t).filter(r=>r.status===n)}getDataGroupNames(t){return this.getDataGroups(t).map(r=>r.name)}getActiveDataGroupNames(t){return this.getActiveDataGroups(t).map(r=>r.name)}aggregateBinDataByGroup(t){return Bw(t,"group")}getBinConfigurations(){const t=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),s=n.axes[r],{groupMapsTo:a}=n.data,{bins:o=Lc.defaultBins}=s,l=Array.isArray(o),c=yT().value(f=>f[i]).thresholds(o)(t);if(l)c[c.length-1].x1=o[o.length-1];else{const f=c[0].x1-c[0].x0;c[c.length-1].x1=+c[c.length-1].x0+f}const u=l?[o[0],o[o.length-1]]:[c[0].x0,c[c.length-1].x1],d=Array.from(new Set(t.map(f=>f[a]))),h=[];return c.forEach(f=>{const p=`${f.x0}-${f.x1}`,g=this.aggregateBinDataByGroup(f);d.forEach(v=>{h.push({group:v,key:p,value:g[v]||0,bin:f.x0})})}),{bins:c,binsDomain:u}}getBinnedStackedData(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getActiveDataGroupNames(),{bins:i}=this.getBinConfigurations(),s=this.getDataValuesGroupedByKeys({bins:i});return Dc().keys(r)(s).map((a,o)=>Object.keys(a).filter(l=>!isNaN(l)).map(l=>{const c=a[l];return c[n]=r[o],c}))}getGroupedData(t){const n=this.getDisplayData(t),r={},{groupMapsTo:i}=this.getOptions().data;return n.map(s=>{const a=s[i];r[a]!==null&&r[a]!==void 0?r[a].push(s):r[a]=[s]}),Object.keys(r).map(s=>({name:s,data:r[s]}))}getStackKeys({bins:t=null,groups:n=null}={bins:null,groups:null}){const r=this.getOptions(),i=this.getDisplayData(n);let s;t?s=t.map(l=>`${l.x0}-${l.x1}`):s=ri(i.map(l=>{const c=this.services.cartesianScales.getDomainIdentifier(l);return l[c]instanceof Date?Vc(l[c]):l[c]&&typeof l[c].toString=="function"?l[c].toString():l[c]}));const a=this.services.cartesianScales.domainAxisPosition,o=r.axes[a].scaleType;return o===j.TIME?s.sort((l,c)=>{const u=new Date(l),d=new Date(c);return u-d}):(o===j.LOG||o===j.LINEAR)&&s.sort((l,c)=>l-c),s}getDataValuesGroupedByKeys({bins:t=null,groups:n=null}){const r=this.getOptions(),{groupMapsTo:i}=r.data,s=this.getDisplayData(n),a=this.getDataGroupNames(),o=this.getStackKeys({bins:t,groups:n});return t?o.map(l=>{const[c,u]=l.split("-"),d={x0:c,x1:u},h=t.find(f=>f.x0.toString()===c.toString());return a.forEach(f=>{d[f]=h.filter(p=>p[i]===f).length}),d}):o.map(l=>{const c={sharedStackKey:l};return a.forEach(u=>{const d=s.find(f=>{const p=this.services.cartesianScales.getDomainIdentifier(f);return f[i]===u&&Object.prototype.hasOwnProperty.call(f,p)&&(f[p]instanceof Date?Vc(f[p])===l:f[p].toString()===l)}),h=this.services.cartesianScales.getRangeIdentifier(c);c[u]=d?d[h]:null}),c})}getStackedData({percentage:t=!1,groups:n=null,divergent:r=!1}){const i=this.getOptions(),{groupMapsTo:s}=i.data,a=this.getActiveDataGroupNames(n),o=this.getDataValuesGroupedByKeys({groups:n});if(t){const c=$w(o.map(u=>[u.sharedStackKey,0]));o.forEach(u=>{a.forEach(d=>{c[u.sharedStackKey]+=u[d]})}),o.forEach(u=>{a.forEach(d=>{const h=c[u.sharedStackKey];c[u.sharedStackKey]?u[d]=u[d]/h*100:u[d]=0})})}return(r?Dc().offset(_2):Dc()).keys(a)(o).map((c,u)=>Object.keys(c).filter(d=>!isNaN(d)).map(d=>{const h=c[d];return h[s]=a[u],h}))}getOptions(){return this.state.options}set(t,n){this.state=Object.assign({},this.state,t);const r=Object.assign({skipUpdate:!1,animate:!0},n);r.skipUpdate||this.update(r.animate)}get(t){return t?this.state[t]:this.state}setOptions(t){const n=this.getOptions();Uc(n,t),this.set({options:tt(n,t)})}update(t=!0){this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(w.Model.UPDATE,{animate:t}))}toggleDataLabel(t){const{ACTIVE:n,DISABLED:r}=Mt.items.status,i=this.getDataGroups(),s=i.some(u=>u.status===r),a=i.filter(u=>u.status===n);if(s)if(a.length===1&&a[0].name===t)i.forEach((u,d)=>{i[d].status=n});else{const u=i.findIndex(d=>d.name===t);i[u].status=i[u].status===r?n:r}else i.forEach((u,d)=>{i[d].status=u.name===t?n:r});const o=i.filter(u=>u.status===n),l=this.getOptions();i.some(u=>u.status===r)?l.data.selectedGroups=o.map(u=>u.name):l.data.selectedGroups=[],this.services.events.dispatchEvent(w.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})}getIsFilled(t,n,r,i){const s=this.getOptions();return s.getIsFilled?s.getIsFilled(t,n,r,i):i}getFillColor(t,n,r){const i=this.getOptions(),s=b(this.colorScale,t);return i.getFillColor?i.getFillColor(t,n,r,s):s}getStrokeColor(t,n,r){const i=this.getOptions(),s=b(this.colorScale,t);return i.getStrokeColor?i.getStrokeColor(t,n,r,s):s}isUserProvidedColorScaleValid(){const t=b(this.getOptions(),"color","scale"),n=this.getDataGroups();return t==null||Object.keys(t).length==0?!1:n.some(r=>Object.keys(t).includes(r.name))}getColorClassName(t){const n=this.colorClassNames(t.dataGroupName);let r=t.originalClassName;return t.classNameTypes.forEach(i=>r=t.originalClassName?`${r} ${i}-${n}`:`${i}-${n}`),r||""}getStatus(){return null}getAllDataGroupsNames(){return this.allDataGroups}transformToTabularData(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");const n=[],{datasets:r,labels:i}=t;return r.forEach(s=>{s.data.forEach((a,o)=>{let l;const c=b(s,"label");if(c===null){const d=b(i,o);d?l=d:l="Ungrouped"}else l=c;const u={group:l,key:i[o]};isNaN(a)?(u.value=a.value,u.date=a.date):u.value=a,n.push(u)})}),n}getTabularDataArray(){return[]}exportToCSV(){const t=this.getTabularDataArray().map(i=>i.map(s=>`"${s==="–"?"–":s}"`));let n="",r="";t.forEach(function(i,s){r=i.join(","),n+=s<t.length?r+`
|
|
1
|
+
(function(M,Tn){typeof exports=="object"&&typeof module<"u"?Tn(exports):typeof define=="function"&&define.amd?define(["exports"],Tn):(M=typeof globalThis<"u"?globalThis:M||self,Tn(M.Charts={}))})(this,function(M){"use strict";function Tn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function Fr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var s=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=e.formattingValues[a]||e.formattingValues[s]}else{var o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[o]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}function zr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;var a=s[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?Kv(o,function(d){return d.test(a)}):Zv(o,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function Zv(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Kv(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Qv(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],s=t.match(e.parsePattern);if(!s)return null;var a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var o=t.slice(i.length);return{value:a,rest:o}}}function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function Nt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function st(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function dt(e){st(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Qi(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Au(e,t){st(2,arguments);var n=dt(e),r=Nt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Eo(e,t){st(2,arguments);var n=dt(e),r=Nt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var a=s.getDate();return i>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function Ji(e,t){st(2,arguments);var n=dt(e).getTime(),r=Nt(t);return new Date(n+r)}var Jv=36e5;function Du(e,t){st(2,arguments);var n=Nt(t);return Ji(e,n*Jv)}var t0={};function ts(){return t0}function xo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Lu(e){st(1,arguments);var t=dt(e);return t.setHours(0,0,0,0),t}var e0=864e5;function n0(e,t){st(2,arguments);var n=Lu(e),r=Lu(t),i=n.getTime()-xo(n),s=r.getTime()-xo(r);return Math.round((i-s)/e0)}var r0=6e4;function So(e,t){st(2,arguments);var n=Nt(t);return Ji(e,n*r0)}function _o(e,t){st(2,arguments);var n=Nt(t);return Ji(e,n*1e3)}function Ru(e,t){st(2,arguments);var n=Nt(t);return Eo(e,n*12)}function Wr(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var i0=6e4,s0=36e5;function a0(e){return st(1,arguments),e instanceof Date||Qi(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function o0(e){if(st(1,arguments),!a0(e)&&typeof e!="number")return!1;var t=dt(e);return!isNaN(Number(t))}function l0(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=n.getFullYear()-r.getFullYear(),s=n.getMonth()-r.getMonth();return i*12+s}function c0(e,t){st(2,arguments);var n=dt(e),r=dt(t);return n.getFullYear()-r.getFullYear()}function Iu(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function u0(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=Iu(n,r),s=Math.abs(n0(n,r));n.setDate(n.getDate()-i*s);var a=+(Iu(n,r)===-i),o=i*(s-a);return o===0?0:o}function wo(e,t){return st(2,arguments),dt(e).getTime()-dt(t).getTime()}var ku={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},h0="trunc";function To(e){return e?ku[e]:ku[h0]}function d0(e,t,n){st(2,arguments);var r=wo(e,t)/s0;return To(n==null?void 0:n.roundingMethod)(r)}function $u(e,t,n){st(2,arguments);var r=wo(e,t)/i0;return To(n==null?void 0:n.roundingMethod)(r)}function f0(e){st(1,arguments);var t=dt(e);return t.setHours(23,59,59,999),t}function p0(e){st(1,arguments);var t=dt(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function g0(e){st(1,arguments);var t=dt(e);return f0(t).getTime()===p0(t).getTime()}function m0(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=Wr(n,r),s=Math.abs(l0(n,r)),a;if(s<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*s);var o=Wr(n,r)===-i;g0(dt(e))&&s===1&&Wr(e,r)===1&&(o=!1),a=i*(s-Number(o))}return a===0?0:a}function Pu(e,t,n){st(2,arguments);var r=wo(e,t)/1e3;return To(n==null?void 0:n.roundingMethod)(r)}function v0(e,t){st(2,arguments);var n=dt(e),r=dt(t),i=Wr(n,r),s=Math.abs(c0(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=Wr(n,r)===-i,o=i*(s-Number(a));return o===0?0:o}function y0(e,t){st(2,arguments);var n=Nt(t);return Ji(e,-n)}var b0=864e5;function E0(e){st(1,arguments);var t=dt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/b0)+1}function es(e){st(1,arguments);var t=1,n=dt(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Nu(e){st(1,arguments);var t=dt(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=es(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=es(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function x0(e){st(1,arguments);var t=Nu(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=es(n);return r}var S0=6048e5;function _0(e){st(1,arguments);var t=dt(e),n=es(t).getTime()-x0(t).getTime();return Math.round(n/S0)+1}function ns(e,t){var n,r,i,s,a,o,l,c;st(1,arguments);var u=ts(),d=Nt((n=(r=(i=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(e),f=h.getUTCDay(),p=(f<d?7:0)+f-d;return h.setUTCDate(h.getUTCDate()-p),h.setUTCHours(0,0,0,0),h}function Uu(e,t){var n,r,i,s,a,o,l,c;st(1,arguments);var u=dt(e),d=u.getUTCFullYear(),h=ts(),f=Nt((n=(r=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,f),p.setUTCHours(0,0,0,0);var g=ns(p,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var m=ns(v,t);return u.getTime()>=g.getTime()?d+1:u.getTime()>=m.getTime()?d:d-1}function w0(e,t){var n,r,i,s,a,o,l,c;st(1,arguments);var u=ts(),d=Nt((n=(r=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Uu(e,t),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var p=ns(f,t);return p}var T0=6048e5;function O0(e,t){st(1,arguments);var n=dt(e),r=ns(n,t).getTime()-w0(n,t).getTime();return Math.round(r/T0)+1}function gt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var M0={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return gt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):gt(r+1,2)},d:function(t,n){return gt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return gt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return gt(t.getUTCHours(),n.length)},m:function(t,n){return gt(t.getUTCMinutes(),n.length)},s:function(t,n){return gt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),s=Math.floor(i*Math.pow(10,r-3));return gt(s,n.length)}};const hn=M0;var nr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},C0={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),s=i>0?i:1-i;return r.ordinalNumber(s,{unit:"year"})}return hn.y(t,n)},Y:function(t,n,r,i){var s=Uu(t,i),a=s>0?s:1-s;if(n==="YY"){var o=a%100;return gt(o,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):gt(a,n.length)},R:function(t,n){var r=Nu(t);return gt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return gt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return gt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return gt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return hn.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return gt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var s=O0(t,i);return n==="wo"?r.ordinalNumber(s,{unit:"week"}):gt(s,n.length)},I:function(t,n,r){var i=_0(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):gt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):hn.d(t,n)},D:function(t,n,r){var i=E0(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):gt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var s=t.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return gt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var s=t.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return gt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return gt(s,n.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),s=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),s;switch(i===12?s=nr.noon:i===0?s=nr.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),s;switch(i>=17?s=nr.evening:i>=12?s=nr.afternoon:i>=4?s=nr.morning:s=nr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return hn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):hn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):gt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):gt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):hn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):hn.s(t,n)},S:function(t,n){return hn.S(t,n)},X:function(t,n,r,i){var s=i._originalDate||t,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Vu(a);case"XXXX":case"XX":return On(a);case"XXXXX":case"XXX":default:return On(a,":")}},x:function(t,n,r,i){var s=i._originalDate||t,a=s.getTimezoneOffset();switch(n){case"x":return Vu(a);case"xxxx":case"xx":return On(a);case"xxxxx":case"xxx":default:return On(a,":")}},O:function(t,n,r,i){var s=i._originalDate||t,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Bu(a,":");case"OOOO":default:return"GMT"+On(a,":")}},z:function(t,n,r,i){var s=i._originalDate||t,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Bu(a,":");case"zzzz":default:return"GMT"+On(a,":")}},t:function(t,n,r,i){var s=i._originalDate||t,a=Math.floor(s.getTime()/1e3);return gt(a,n.length)},T:function(t,n,r,i){var s=i._originalDate||t,a=s.getTime();return gt(a,n.length)}};function Bu(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=r%60;if(s===0)return n+String(i);var a=t||"";return n+String(i)+a+gt(s,2)}function Vu(e,t){if(e%60===0){var n=e>0?"-":"+";return n+gt(Math.abs(e)/60,2)}return On(e,t)}function On(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),s=gt(Math.floor(i/60),2),a=gt(i%60,2);return r+s+n+a}const A0=C0;var Hu=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Gu=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},D0=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return Hu(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Hu(i,n)).replace("{{time}}",Gu(s,n))},L0={p:Gu,P:D0};const R0=L0;var I0=["D","DD"],k0=["YY","YYYY"];function $0(e){return I0.indexOf(e)!==-1}function P0(e){return k0.indexOf(e)!==-1}function Fu(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var N0={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},U0=function(t,n,r){var i,s=N0[t];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const B0=U0;var V0={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},H0={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},G0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F0={date:Tn({formats:V0,defaultWidth:"full"}),time:Tn({formats:H0,defaultWidth:"full"}),dateTime:Tn({formats:G0,defaultWidth:"full"})};const z0=F0;var W0={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},q0=function(t,n,r,i){return W0[t]};const Y0=q0;var X0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},j0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Z0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},K0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Q0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},J0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ty=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ey={ordinalNumber:ty,era:Fr({values:X0,defaultWidth:"wide"}),quarter:Fr({values:j0,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Fr({values:Z0,defaultWidth:"wide"}),day:Fr({values:K0,defaultWidth:"wide"}),dayPeriod:Fr({values:Q0,defaultWidth:"wide",formattingValues:J0,defaultFormattingWidth:"wide"})};const ny=ey;var ry=/^(\d+)(th|st|nd|rd)?/i,iy=/\d+/i,sy={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ay={any:[/^b/i,/^(a|c)/i]},oy={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ly={any:[/1/i,/2/i,/3/i,/4/i]},cy={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},uy={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hy={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},dy={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fy={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},py={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},gy={ordinalNumber:Qv({matchPattern:ry,parsePattern:iy,valueCallback:function(t){return parseInt(t,10)}}),era:zr({matchPatterns:sy,defaultMatchWidth:"wide",parsePatterns:ay,defaultParseWidth:"any"}),quarter:zr({matchPatterns:oy,defaultMatchWidth:"wide",parsePatterns:ly,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:zr({matchPatterns:cy,defaultMatchWidth:"wide",parsePatterns:uy,defaultParseWidth:"any"}),day:zr({matchPatterns:hy,defaultMatchWidth:"wide",parsePatterns:dy,defaultParseWidth:"any"}),dayPeriod:zr({matchPatterns:fy,defaultMatchWidth:"any",parsePatterns:py,defaultParseWidth:"any"})},my={code:"en-US",formatDistance:B0,formatLong:z0,formatRelative:Y0,localize:ny,match:gy,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zu=my;var vy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,by=/^'([^]*?)'?$/,Ey=/''/g,xy=/[a-zA-Z]/;function rr(e,t,n){var r,i,s,a,o,l,c,u,d,h,f,p,g,v,m,y,E,S;st(2,arguments);var _=String(t),x=ts(),C=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:x.locale)!==null&&r!==void 0?r:zu,D=Nt((s=(a=(o=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:x.firstWeekContainsDate)!==null&&a!==void 0?a:(d=x.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var G=Nt((f=(p=(g=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(m=n.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&g!==void 0?g:x.weekStartsOn)!==null&&p!==void 0?p:(E=x.locale)===null||E===void 0||(S=E.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&f!==void 0?f:0);if(!(G>=0&&G<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=dt(e);if(!o0(k))throw new RangeError("Invalid time value");var O=xo(k),R=y0(k,O),I={firstWeekContainsDate:D,weekStartsOn:G,locale:C,_originalDate:k},$=_.match(yy).map(function(T){var B=T[0];if(B==="p"||B==="P"){var N=R0[B];return N(T,C.formatLong)}return T}).join("").match(vy).map(function(T){if(T==="''")return"'";var B=T[0];if(B==="'")return Sy(T);var N=A0[B];if(N)return!(n!=null&&n.useAdditionalWeekYearTokens)&&P0(T)&&Fu(T,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&$0(T)&&Fu(T,t,String(e)),N(R,T,C.localize,I);if(B.match(xy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return T}).join("");return $}function Sy(e){var t=e.match(by);return t?t[1].replace(Ey,"'"):e}function _y(e,t){st(2,arguments);var n=Nt(t);return Au(e,-n)}function wy(e,t){st(2,arguments);var n=Nt(t);return Eo(e,-n)}function Ty(e,t){st(2,arguments);var n=Nt(t);return Du(e,-n)}function Wu(e,t){st(2,arguments);var n=Nt(t);return So(e,-n)}function qu(e,t){st(2,arguments);var n=Nt(t);return _o(e,-n)}function Oy(e,t){st(2,arguments);var n=Nt(t);return Ru(e,-n)}var My=typeof global=="object"&&global&&global.Object===Object&&global;const Yu=My;var Cy=typeof self=="object"&&self&&self.Object===Object&&self,Ay=Yu||Cy||Function("return this")();const Se=Ay;var Dy=Se.Symbol;const me=Dy;var Xu=Object.prototype,Ly=Xu.hasOwnProperty,Ry=Xu.toString,qr=me?me.toStringTag:void 0;function Iy(e){var t=Ly.call(e,qr),n=e[qr];try{e[qr]=void 0;var r=!0}catch{}var i=Ry.call(e);return r&&(t?e[qr]=n:delete e[qr]),i}var ky=Object.prototype,$y=ky.toString;function Py(e){return $y.call(e)}var Ny="[object Null]",Uy="[object Undefined]",ju=me?me.toStringTag:void 0;function Mn(e){return e==null?e===void 0?Uy:Ny:ju&&ju in Object(e)?Iy(e):Py(e)}function Ue(e){return e!=null&&typeof e=="object"}var By="[object Symbol]";function rs(e){return typeof e=="symbol"||Ue(e)&&Mn(e)==By}function Zu(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Vy=Array.isArray;const Ht=Vy;var Hy=1/0,Ku=me?me.prototype:void 0,Qu=Ku?Ku.toString:void 0;function Ju(e){if(typeof e=="string")return e;if(Ht(e))return Zu(e,Ju)+"";if(rs(e))return Qu?Qu.call(e):"";var t=e+"";return t=="0"&&1/e==-Hy?"-0":t}var Gy=/\s/;function Fy(e){for(var t=e.length;t--&&Gy.test(e.charAt(t)););return t}var zy=/^\s+/;function Wy(e){return e&&e.slice(0,Fy(e)+1).replace(zy,"")}function ve(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var th=0/0,qy=/^[-+]0x[0-9a-f]+$/i,Yy=/^0b[01]+$/i,Xy=/^0o[0-7]+$/i,jy=parseInt;function Yr(e){if(typeof e=="number")return e;if(rs(e))return th;if(ve(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ve(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Wy(e);var n=Yy.test(e);return n||Xy.test(e)?jy(e.slice(2),n?2:8):qy.test(e)?th:+e}function Oo(e){return e}var Zy="[object AsyncFunction]",Ky="[object Function]",Qy="[object GeneratorFunction]",Jy="[object Proxy]";function Mo(e){if(!ve(e))return!1;var t=Mn(e);return t==Ky||t==Qy||t==Zy||t==Jy}var t1=Se["__core-js_shared__"];const Co=t1;var eh=function(){var e=/[^.]+$/.exec(Co&&Co.keys&&Co.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function e1(e){return!!eh&&eh in e}var n1=Function.prototype,r1=n1.toString;function Cn(e){if(e!=null){try{return r1.call(e)}catch{}try{return e+""}catch{}}return""}var i1=/[\\^$.*+?()[\]{}|]/g,s1=/^\[object .+?Constructor\]$/,a1=Function.prototype,o1=Object.prototype,l1=a1.toString,c1=o1.hasOwnProperty,u1=RegExp("^"+l1.call(c1).replace(i1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h1(e){if(!ve(e)||e1(e))return!1;var t=Mo(e)?u1:s1;return t.test(Cn(e))}function d1(e,t){return e==null?void 0:e[t]}function An(e,t){var n=d1(e,t);return h1(n)?n:void 0}var f1=An(Se,"WeakMap");const Ao=f1;var nh=Object.create,p1=function(){function e(){}return function(t){if(!ve(t))return{};if(nh)return nh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const g1=p1;function m1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function v1(){}function rh(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var y1=800,b1=16,E1=Date.now;function x1(e){var t=0,n=0;return function(){var r=E1(),i=b1-(r-n);if(n=r,i>0){if(++t>=y1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function S1(e){return function(){return e}}var _1=function(){try{var e=An(Object,"defineProperty");return e({},"",{}),e}catch{}}();const is=_1;var w1=is?function(e,t){return is(e,"toString",{configurable:!0,enumerable:!1,value:S1(t),writable:!0})}:Oo,T1=x1(w1);const O1=T1;function M1(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function C1(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function A1(e){return e!==e}function D1(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function L1(e,t,n){return t===t?D1(e,t,n):C1(e,A1,n)}function R1(e,t){var n=e==null?0:e.length;return!!n&&L1(e,t,0)>-1}var I1=9007199254740991,k1=/^(?:0|[1-9]\d*)$/;function Do(e,t){var n=typeof e;return t=t??I1,!!t&&(n=="number"||n!="symbol"&&k1.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){t=="__proto__"&&is?is(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Xr(e,t){return e===t||e!==e&&t!==t}var $1=Object.prototype,P1=$1.hasOwnProperty;function ih(e,t,n){var r=e[t];(!(P1.call(e,t)&&Xr(r,n))||n===void 0&&!(t in e))&&ss(e,t,n)}function jr(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var o=t[s],l=r?r(n[o],e[o],o,n,e):void 0;l===void 0&&(l=e[o]),i?ss(n,o,l):ih(n,o,l)}return n}var sh=Math.max;function N1(e,t,n){return t=sh(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=sh(r.length-t,0),a=Array(s);++i<s;)a[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(a),m1(e,this,o)}}function ah(e,t){return O1(N1(e,t,Oo),e+"")}var U1=9007199254740991;function Lo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=U1}function Dn(e){return e!=null&&Lo(e.length)&&!Mo(e)}function oh(e,t,n){if(!ve(n))return!1;var r=typeof t;return(r=="number"?Dn(n)&&Do(t,n.length):r=="string"&&t in n)?Xr(n[t],e):!1}function B1(e){return ah(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,a&&oh(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,s)}return t})}var V1=Object.prototype;function as(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||V1;return e===n}function H1(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var G1="[object Arguments]";function lh(e){return Ue(e)&&Mn(e)==G1}var ch=Object.prototype,F1=ch.hasOwnProperty,z1=ch.propertyIsEnumerable,W1=lh(function(){return arguments}())?lh:function(e){return Ue(e)&&F1.call(e,"callee")&&!z1.call(e,"callee")};const ir=W1;function q1(){return!1}var uh=typeof M=="object"&&M&&!M.nodeType&&M,hh=uh&&typeof module=="object"&&module&&!module.nodeType&&module,Y1=hh&&hh.exports===uh,dh=Y1?Se.Buffer:void 0,X1=dh?dh.isBuffer:void 0,j1=X1||q1;const sr=j1;var Z1="[object Arguments]",K1="[object Array]",Q1="[object Boolean]",J1="[object Date]",tb="[object Error]",eb="[object Function]",nb="[object Map]",rb="[object Number]",ib="[object Object]",sb="[object RegExp]",ab="[object Set]",ob="[object String]",lb="[object WeakMap]",cb="[object ArrayBuffer]",ub="[object DataView]",hb="[object Float32Array]",db="[object Float64Array]",fb="[object Int8Array]",pb="[object Int16Array]",gb="[object Int32Array]",mb="[object Uint8Array]",vb="[object Uint8ClampedArray]",yb="[object Uint16Array]",bb="[object Uint32Array]",Tt={};Tt[hb]=Tt[db]=Tt[fb]=Tt[pb]=Tt[gb]=Tt[mb]=Tt[vb]=Tt[yb]=Tt[bb]=!0,Tt[Z1]=Tt[K1]=Tt[cb]=Tt[Q1]=Tt[ub]=Tt[J1]=Tt[tb]=Tt[eb]=Tt[nb]=Tt[rb]=Tt[ib]=Tt[sb]=Tt[ab]=Tt[ob]=Tt[lb]=!1;function Eb(e){return Ue(e)&&Lo(e.length)&&!!Tt[Mn(e)]}function Ro(e){return function(t){return e(t)}}var fh=typeof M=="object"&&M&&!M.nodeType&&M,Zr=fh&&typeof module=="object"&&module&&!module.nodeType&&module,xb=Zr&&Zr.exports===fh,Io=xb&&Yu.process,Sb=function(){try{var e=Zr&&Zr.require&&Zr.require("util").types;return e||Io&&Io.binding&&Io.binding("util")}catch{}}();const ar=Sb;var ph=ar&&ar.isTypedArray,_b=ph?Ro(ph):Eb;const os=_b;var wb=Object.prototype,Tb=wb.hasOwnProperty;function gh(e,t){var n=Ht(e),r=!n&&ir(e),i=!n&&!r&&sr(e),s=!n&&!r&&!i&&os(e),a=n||r||i||s,o=a?H1(e.length,String):[],l=o.length;for(var c in e)(t||Tb.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Do(c,l)))&&o.push(c);return o}function mh(e,t){return function(n){return e(t(n))}}var Ob=mh(Object.keys,Object);const Mb=Ob;var Cb=Object.prototype,Ab=Cb.hasOwnProperty;function vh(e){if(!as(e))return Mb(e);var t=[];for(var n in Object(e))Ab.call(e,n)&&n!="constructor"&&t.push(n);return t}function Kr(e){return Dn(e)?gh(e):vh(e)}function Db(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Lb=Object.prototype,Rb=Lb.hasOwnProperty;function Ib(e){if(!ve(e))return Db(e);var t=as(e),n=[];for(var r in e)r=="constructor"&&(t||!Rb.call(e,r))||n.push(r);return n}function Qr(e){return Dn(e)?gh(e,!0):Ib(e)}var kb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$b=/^\w*$/;function ko(e,t){if(Ht(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rs(e)?!0:$b.test(e)||!kb.test(e)||t!=null&&e in Object(t)}var Pb=An(Object,"create");const Jr=Pb;function Nb(){this.__data__=Jr?Jr(null):{},this.size=0}function Ub(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Bb="__lodash_hash_undefined__",Vb=Object.prototype,Hb=Vb.hasOwnProperty;function Gb(e){var t=this.__data__;if(Jr){var n=t[e];return n===Bb?void 0:n}return Hb.call(t,e)?t[e]:void 0}var Fb=Object.prototype,zb=Fb.hasOwnProperty;function Wb(e){var t=this.__data__;return Jr?t[e]!==void 0:zb.call(t,e)}var qb="__lodash_hash_undefined__";function Yb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jr&&t===void 0?qb:t,this}function Ln(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ln.prototype.clear=Nb,Ln.prototype.delete=Ub,Ln.prototype.get=Gb,Ln.prototype.has=Wb,Ln.prototype.set=Yb;function Xb(){this.__data__=[],this.size=0}function ls(e,t){for(var n=e.length;n--;)if(Xr(e[n][0],t))return n;return-1}var jb=Array.prototype,Zb=jb.splice;function Kb(e){var t=this.__data__,n=ls(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Zb.call(t,n,1),--this.size,!0}function Qb(e){var t=this.__data__,n=ls(t,e);return n<0?void 0:t[n][1]}function Jb(e){return ls(this.__data__,e)>-1}function tE(e,t){var n=this.__data__,r=ls(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ye.prototype.clear=Xb,Ye.prototype.delete=Kb,Ye.prototype.get=Qb,Ye.prototype.has=Jb,Ye.prototype.set=tE;var eE=An(Se,"Map");const ti=eE;function nE(){this.size=0,this.__data__={hash:new Ln,map:new(ti||Ye),string:new Ln}}function rE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cs(e,t){var n=e.__data__;return rE(t)?n[typeof t=="string"?"string":"hash"]:n.map}function iE(e){var t=cs(this,e).delete(e);return this.size-=t?1:0,t}function sE(e){return cs(this,e).get(e)}function aE(e){return cs(this,e).has(e)}function oE(e,t){var n=cs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xe.prototype.clear=nE,Xe.prototype.delete=iE,Xe.prototype.get=sE,Xe.prototype.has=aE,Xe.prototype.set=oE;var lE="Expected a function";function $o(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lE);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=e.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new($o.Cache||Xe),n}$o.Cache=Xe;var cE=500;function uE(e){var t=$o(e,function(r){return n.size===cE&&n.clear(),r}),n=t.cache;return t}var hE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dE=/\\(\\)?/g,fE=uE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hE,function(n,r,i,s){t.push(i?s.replace(dE,"$1"):r||n)}),t});const pE=fE;function ei(e){return e==null?"":Ju(e)}function yh(e,t){return Ht(e)?e:ko(e,t)?[e]:pE(ei(e))}var gE=1/0;function us(e){if(typeof e=="string"||rs(e))return e;var t=e+"";return t=="0"&&1/e==-gE?"-0":t}function bh(e,t){t=yh(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[us(t[n++])];return n&&n==r?e:void 0}function _t(e,t,n){var r=e==null?void 0:bh(e,t);return r===void 0?n:r}function Po(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Eh=me?me.isConcatSpreadable:void 0;function mE(e){return Ht(e)||ir(e)||!!(Eh&&e&&e[Eh])}function hs(e,t,n,r,i){var s=-1,a=e.length;for(n||(n=mE),i||(i=[]);++s<a;){var o=e[s];t>0&&n(o)?t>1?hs(o,t-1,n,r,i):Po(i,o):r||(i[i.length]=o)}return i}function xh(e){var t=e==null?0:e.length;return t?hs(e,1):[]}var vE=mh(Object.getPrototypeOf,Object);const No=vE;var yE="[object Object]",bE=Function.prototype,EE=Object.prototype,Sh=bE.toString,xE=EE.hasOwnProperty,SE=Sh.call(Object);function _E(e){if(!Ue(e)||Mn(e)!=yE)return!1;var t=No(e);if(t===null)return!0;var n=xE.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Sh.call(n)==SE}function wE(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function TE(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:wE(e,t,n)}var OE="\\ud800-\\udfff",ME="\\u0300-\\u036f",CE="\\ufe20-\\ufe2f",AE="\\u20d0-\\u20ff",DE=ME+CE+AE,LE="\\ufe0e\\ufe0f",RE="\\u200d",IE=RegExp("["+RE+OE+DE+LE+"]");function _h(e){return IE.test(e)}function kE(e){return e.split("")}var wh="\\ud800-\\udfff",$E="\\u0300-\\u036f",PE="\\ufe20-\\ufe2f",NE="\\u20d0-\\u20ff",UE=$E+PE+NE,BE="\\ufe0e\\ufe0f",VE="["+wh+"]",Uo="["+UE+"]",Bo="\\ud83c[\\udffb-\\udfff]",HE="(?:"+Uo+"|"+Bo+")",Th="[^"+wh+"]",Oh="(?:\\ud83c[\\udde6-\\uddff]){2}",Mh="[\\ud800-\\udbff][\\udc00-\\udfff]",GE="\\u200d",Ch=HE+"?",Ah="["+BE+"]?",FE="(?:"+GE+"(?:"+[Th,Oh,Mh].join("|")+")"+Ah+Ch+")*",zE=Ah+Ch+FE,WE="(?:"+[Th+Uo+"?",Uo,Oh,Mh,VE].join("|")+")",qE=RegExp(Bo+"(?="+Bo+")|"+WE+zE,"g");function YE(e){return e.match(qE)||[]}function XE(e){return _h(e)?YE(e):kE(e)}function jE(e){return function(t){t=ei(t);var n=_h(t)?XE(t):void 0,r=n?n[0]:t.charAt(0),i=n?TE(n,1).join(""):t.slice(1);return r[e]()+i}}var ZE=jE("toUpperCase");const KE=ZE;function QE(e){return KE(ei(e).toLowerCase())}function JE(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function tx(e){return function(t){return e==null?void 0:e[t]}}var ex={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nx=tx(ex);const rx=nx;var ix=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sx="\\u0300-\\u036f",ax="\\ufe20-\\ufe2f",ox="\\u20d0-\\u20ff",lx=sx+ax+ox,cx="["+lx+"]",ux=RegExp(cx,"g");function hx(e){return e=ei(e),e&&e.replace(ix,rx).replace(ux,"")}var dx=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function fx(e){return e.match(dx)||[]}var px=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function gx(e){return px.test(e)}var Dh="\\ud800-\\udfff",mx="\\u0300-\\u036f",vx="\\ufe20-\\ufe2f",yx="\\u20d0-\\u20ff",bx=mx+vx+yx,Lh="\\u2700-\\u27bf",Rh="a-z\\xdf-\\xf6\\xf8-\\xff",Ex="\\xac\\xb1\\xd7\\xf7",xx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Sx="\\u2000-\\u206f",_x=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ih="A-Z\\xc0-\\xd6\\xd8-\\xde",wx="\\ufe0e\\ufe0f",kh=Ex+xx+Sx+_x,$h="['’]",Ph="["+kh+"]",Tx="["+bx+"]",Nh="\\d+",Ox="["+Lh+"]",Uh="["+Rh+"]",Bh="[^"+Dh+kh+Nh+Lh+Rh+Ih+"]",Mx="\\ud83c[\\udffb-\\udfff]",Cx="(?:"+Tx+"|"+Mx+")",Ax="[^"+Dh+"]",Vh="(?:\\ud83c[\\udde6-\\uddff]){2}",Hh="[\\ud800-\\udbff][\\udc00-\\udfff]",or="["+Ih+"]",Dx="\\u200d",Gh="(?:"+Uh+"|"+Bh+")",Lx="(?:"+or+"|"+Bh+")",Fh="(?:"+$h+"(?:d|ll|m|re|s|t|ve))?",zh="(?:"+$h+"(?:D|LL|M|RE|S|T|VE))?",Wh=Cx+"?",qh="["+wx+"]?",Rx="(?:"+Dx+"(?:"+[Ax,Vh,Hh].join("|")+")"+qh+Wh+")*",Ix="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$x=qh+Wh+Rx,Px="(?:"+[Ox,Vh,Hh].join("|")+")"+$x,Nx=RegExp([or+"?"+Uh+"+"+Fh+"(?="+[Ph,or,"$"].join("|")+")",Lx+"+"+zh+"(?="+[Ph,or+Gh,"$"].join("|")+")",or+"?"+Gh+"+"+Fh,or+"+"+zh,kx,Ix,Nh,Px].join("|"),"g");function Ux(e){return e.match(Nx)||[]}function Bx(e,t,n){return e=ei(e),t=n?void 0:t,t===void 0?gx(e)?Ux(e):fx(e):e.match(t)||[]}var Vx="['’]",Hx=RegExp(Vx,"g");function Yh(e){return function(t){return JE(Bx(hx(t).replace(Hx,"")),e,"")}}var Gx=Yh(function(e,t,n){return t=t.toLowerCase(),e+(n?QE(t):t)});const Fx=Gx;function zx(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function Xh(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Yr(n),n=n===n?n:0),t!==void 0&&(t=Yr(t),t=t===t?t:0),zx(Yr(e),t,n)}function Wx(){this.__data__=new Ye,this.size=0}function qx(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yx(e){return this.__data__.get(e)}function Xx(e){return this.__data__.has(e)}var jx=200;function Zx(e,t){var n=this.__data__;if(n instanceof Ye){var r=n.__data__;if(!ti||r.length<jx-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xe(r)}return n.set(e,t),this.size=n.size,this}function _e(e){var t=this.__data__=new Ye(e);this.size=t.size}_e.prototype.clear=Wx,_e.prototype.delete=qx,_e.prototype.get=Yx,_e.prototype.has=Xx,_e.prototype.set=Zx;function Kx(e,t){return e&&jr(t,Kr(t),e)}function Qx(e,t){return e&&jr(t,Qr(t),e)}var jh=typeof M=="object"&&M&&!M.nodeType&&M,Zh=jh&&typeof module=="object"&&module&&!module.nodeType&&module,Jx=Zh&&Zh.exports===jh,Kh=Jx?Se.Buffer:void 0,Qh=Kh?Kh.allocUnsafe:void 0;function Jh(e,t){if(t)return e.slice();var n=e.length,r=Qh?Qh(n):new e.constructor(n);return e.copy(r),r}function tS(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var a=e[n];t(a,n,e)&&(s[i++]=a)}return s}function td(){return[]}var eS=Object.prototype,nS=eS.propertyIsEnumerable,ed=Object.getOwnPropertySymbols,rS=ed?function(e){return e==null?[]:(e=Object(e),tS(ed(e),function(t){return nS.call(e,t)}))}:td;const Vo=rS;function iS(e,t){return jr(e,Vo(e),t)}var sS=Object.getOwnPropertySymbols,aS=sS?function(e){for(var t=[];e;)Po(t,Vo(e)),e=No(e);return t}:td;const nd=aS;function oS(e,t){return jr(e,nd(e),t)}function rd(e,t,n){var r=t(e);return Ht(e)?r:Po(r,n(e))}function Ho(e){return rd(e,Kr,Vo)}function lS(e){return rd(e,Qr,nd)}var cS=An(Se,"DataView");const Go=cS;var uS=An(Se,"Promise");const Fo=uS;var hS=An(Se,"Set");const lr=hS;var id="[object Map]",dS="[object Object]",sd="[object Promise]",ad="[object Set]",od="[object WeakMap]",ld="[object DataView]",fS=Cn(Go),pS=Cn(ti),gS=Cn(Fo),mS=Cn(lr),vS=Cn(Ao),Rn=Mn;(Go&&Rn(new Go(new ArrayBuffer(1)))!=ld||ti&&Rn(new ti)!=id||Fo&&Rn(Fo.resolve())!=sd||lr&&Rn(new lr)!=ad||Ao&&Rn(new Ao)!=od)&&(Rn=function(e){var t=Mn(e),n=t==dS?e.constructor:void 0,r=n?Cn(n):"";if(r)switch(r){case fS:return ld;case pS:return id;case gS:return sd;case mS:return ad;case vS:return od}return t});const cr=Rn;var yS=Object.prototype,bS=yS.hasOwnProperty;function ES(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bS.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var xS=Se.Uint8Array;const ds=xS;function zo(e){var t=new e.constructor(e.byteLength);return new ds(t).set(new ds(e)),t}function SS(e,t){var n=t?zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var _S=/\w*$/;function wS(e){var t=new e.constructor(e.source,_S.exec(e));return t.lastIndex=e.lastIndex,t}var cd=me?me.prototype:void 0,ud=cd?cd.valueOf:void 0;function TS(e){return ud?Object(ud.call(e)):{}}function hd(e,t){var n=t?zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var OS="[object Boolean]",MS="[object Date]",CS="[object Map]",AS="[object Number]",DS="[object RegExp]",LS="[object Set]",RS="[object String]",IS="[object Symbol]",kS="[object ArrayBuffer]",$S="[object DataView]",PS="[object Float32Array]",NS="[object Float64Array]",US="[object Int8Array]",BS="[object Int16Array]",VS="[object Int32Array]",HS="[object Uint8Array]",GS="[object Uint8ClampedArray]",FS="[object Uint16Array]",zS="[object Uint32Array]";function WS(e,t,n){var r=e.constructor;switch(t){case kS:return zo(e);case OS:case MS:return new r(+e);case $S:return SS(e,n);case PS:case NS:case US:case BS:case VS:case HS:case GS:case FS:case zS:return hd(e,n);case CS:return new r;case AS:case RS:return new r(e);case DS:return wS(e);case LS:return new r;case IS:return TS(e)}}function dd(e){return typeof e.constructor=="function"&&!as(e)?g1(No(e)):{}}var qS="[object Map]";function YS(e){return Ue(e)&&cr(e)==qS}var fd=ar&&ar.isMap,XS=fd?Ro(fd):YS;const jS=XS;var ZS="[object Set]";function KS(e){return Ue(e)&&cr(e)==ZS}var pd=ar&&ar.isSet,QS=pd?Ro(pd):KS;const JS=QS;var t_=1,e_=2,n_=4,gd="[object Arguments]",r_="[object Array]",i_="[object Boolean]",s_="[object Date]",a_="[object Error]",md="[object Function]",o_="[object GeneratorFunction]",l_="[object Map]",c_="[object Number]",vd="[object Object]",u_="[object RegExp]",h_="[object Set]",d_="[object String]",f_="[object Symbol]",p_="[object WeakMap]",g_="[object ArrayBuffer]",m_="[object DataView]",v_="[object Float32Array]",y_="[object Float64Array]",b_="[object Int8Array]",E_="[object Int16Array]",x_="[object Int32Array]",S_="[object Uint8Array]",__="[object Uint8ClampedArray]",w_="[object Uint16Array]",T_="[object Uint32Array]",wt={};wt[gd]=wt[r_]=wt[g_]=wt[m_]=wt[i_]=wt[s_]=wt[v_]=wt[y_]=wt[b_]=wt[E_]=wt[x_]=wt[l_]=wt[c_]=wt[vd]=wt[u_]=wt[h_]=wt[d_]=wt[f_]=wt[S_]=wt[__]=wt[w_]=wt[T_]=!0,wt[a_]=wt[md]=wt[p_]=!1;function fs(e,t,n,r,i,s){var a,o=t&t_,l=t&e_,c=t&n_;if(n&&(a=i?n(e,r,i,s):n(e)),a!==void 0)return a;if(!ve(e))return e;var u=Ht(e);if(u){if(a=ES(e),!o)return rh(e,a)}else{var d=cr(e),h=d==md||d==o_;if(sr(e))return Jh(e,o);if(d==vd||d==gd||h&&!i){if(a=l||h?{}:dd(e),!o)return l?oS(e,Qx(a,e)):iS(e,Kx(a,e))}else{if(!wt[d])return i?e:{};a=WS(e,d,o)}}s||(s=new _e);var f=s.get(e);if(f)return f;s.set(e,a),JS(e)?e.forEach(function(v){a.add(fs(v,t,n,v,e,s))}):jS(e)&&e.forEach(function(v,m){a.set(m,fs(v,t,n,m,e,s))});var p=c?l?lS:Ho:l?Qr:Kr,g=u?void 0:p(e);return M1(g||e,function(v,m){g&&(m=v,v=e[m]),ih(a,m,fs(v,t,n,m,e,s))}),a}var O_=1,M_=4;function je(e){return fs(e,O_|M_)}var C_="__lodash_hash_undefined__";function A_(e){return this.__data__.set(e,C_),this}function D_(e){return this.__data__.has(e)}function ni(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xe;++t<n;)this.add(e[t])}ni.prototype.add=ni.prototype.push=A_,ni.prototype.has=D_;function yd(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function bd(e,t){return e.has(t)}var L_=1,R_=2;function Ed(e,t,n,r,i,s){var a=n&L_,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=n&R_?new ni:void 0;for(s.set(e,t),s.set(t,e);++d<o;){var p=e[d],g=t[d];if(r)var v=a?r(g,p,d,t,e,s):r(p,g,d,e,t,s);if(v!==void 0){if(v)continue;h=!1;break}if(f){if(!yd(t,function(m,y){if(!bd(f,y)&&(p===m||i(p,m,n,r,s)))return f.push(y)})){h=!1;break}}else if(!(p===g||i(p,g,n,r,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function I_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Wo(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var k_=1,$_=2,P_="[object Boolean]",N_="[object Date]",U_="[object Error]",B_="[object Map]",V_="[object Number]",H_="[object RegExp]",G_="[object Set]",F_="[object String]",z_="[object Symbol]",W_="[object ArrayBuffer]",q_="[object DataView]",xd=me?me.prototype:void 0,qo=xd?xd.valueOf:void 0;function Y_(e,t,n,r,i,s,a){switch(n){case q_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case W_:return!(e.byteLength!=t.byteLength||!s(new ds(e),new ds(t)));case P_:case N_:case V_:return Xr(+e,+t);case U_:return e.name==t.name&&e.message==t.message;case H_:case F_:return e==t+"";case B_:var o=I_;case G_:var l=r&k_;if(o||(o=Wo),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=$_,a.set(e,t);var u=Ed(o(e),o(t),r,i,s,a);return a.delete(e),u;case z_:if(qo)return qo.call(e)==qo.call(t)}return!1}var X_=1,j_=Object.prototype,Z_=j_.hasOwnProperty;function K_(e,t,n,r,i,s){var a=n&X_,o=Ho(e),l=o.length,c=Ho(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var h=o[d];if(!(a?h in t:Z_.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var v=a;++d<l;){h=o[d];var m=e[h],y=t[h];if(r)var E=a?r(y,m,h,t,e,s):r(m,y,h,e,t,s);if(!(E===void 0?m===y||i(m,y,n,r,s):E)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var S=e.constructor,_=t.constructor;S!=_&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof _=="function"&&_ instanceof _)&&(g=!1)}return s.delete(e),s.delete(t),g}var Q_=1,Sd="[object Arguments]",_d="[object Array]",ps="[object Object]",J_=Object.prototype,wd=J_.hasOwnProperty;function tw(e,t,n,r,i,s){var a=Ht(e),o=Ht(t),l=a?_d:cr(e),c=o?_d:cr(t);l=l==Sd?ps:l,c=c==Sd?ps:c;var u=l==ps,d=c==ps,h=l==c;if(h&&sr(e)){if(!sr(t))return!1;a=!0,u=!1}if(h&&!u)return s||(s=new _e),a||os(e)?Ed(e,t,n,r,i,s):Y_(e,t,l,n,r,i,s);if(!(n&Q_)){var f=u&&wd.call(e,"__wrapped__"),p=d&&wd.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,v=p?t.value():t;return s||(s=new _e),i(g,v,n,r,s)}}return h?(s||(s=new _e),K_(e,t,n,r,i,s)):!1}function gs(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ue(e)&&!Ue(t)?e!==e&&t!==t:tw(e,t,n,r,gs,i)}var ew=1,nw=2;function rw(e,t,n,r){var i=n.length,s=i,a=!r;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var l=o[0],c=e[l],u=o[1];if(a&&o[2]){if(c===void 0&&!(l in e))return!1}else{var d=new _e;if(r)var h=r(c,u,l,e,t,d);if(!(h===void 0?gs(u,c,ew|nw,r,d):h))return!1}}return!0}function Td(e){return e===e&&!ve(e)}function iw(e){for(var t=Kr(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Td(i)]}return t}function Od(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function sw(e){var t=iw(e);return t.length==1&&t[0][2]?Od(t[0][0],t[0][1]):function(n){return n===e||rw(n,e,t)}}function aw(e,t){return e!=null&&t in Object(e)}function ow(e,t,n){t=yh(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var a=us(t[r]);if(!(s=e!=null&&n(e,a)))break;e=e[a]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&Lo(i)&&Do(a,i)&&(Ht(e)||ir(e)))}function lw(e,t){return e!=null&&ow(e,t,aw)}var cw=1,uw=2;function hw(e,t){return ko(e)&&Td(t)?Od(us(e),t):function(n){var r=_t(n,e);return r===void 0&&r===t?lw(n,e):gs(t,r,cw|uw)}}function dw(e){return function(t){return t==null?void 0:t[e]}}function fw(e){return function(t){return bh(t,e)}}function pw(e){return ko(e)?dw(us(e)):fw(e)}function ms(e){return typeof e=="function"?e:e==null?Oo:typeof e=="object"?Ht(e)?hw(e[0],e[1]):sw(e):pw(e)}function gw(e,t,n,r){for(var i=-1,s=e==null?0:e.length;++i<s;){var a=e[i];t(r,a,n(a),e)}return r}function mw(e){return function(t,n,r){for(var i=-1,s=Object(t),a=r(t),o=a.length;o--;){var l=a[e?o:++i];if(n(s[l],l,s)===!1)break}return t}}var vw=mw();const Md=vw;function yw(e,t){return e&&Md(e,t,Kr)}function bw(e,t){return function(n,r){if(n==null)return n;if(!Dn(n))return e(n,r);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++s<i)&&r(a[s],s,a)!==!1;);return n}}var Ew=bw(yw);const Yo=Ew;function xw(e,t,n,r){return Yo(e,function(i,s,a){t(r,i,n(i),a)}),r}function Sw(e,t){return function(n,r){var i=Ht(n)?gw:xw,s=t?t():{};return i(n,e,ms(r),s)}}var _w=function(){return Se.Date.now()};const Xo=_w;var ww="Expected a function",Tw=Math.max,Ow=Math.min;function vs(e,t,n){var r,i,s,a,o,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(ww);t=Yr(t)||0,ve(n)&&(u=!!n.leading,d="maxWait"in n,s=d?Tw(Yr(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function f(x){var C=r,D=i;return r=i=void 0,c=x,a=e.apply(D,C),a}function p(x){return c=x,o=setTimeout(m,t),u?f(x):a}function g(x){var C=x-l,D=x-c,G=t-C;return d?Ow(G,s-D):G}function v(x){var C=x-l,D=x-c;return l===void 0||C>=t||C<0||d&&D>=s}function m(){var x=Xo();if(v(x))return y(x);o=setTimeout(m,g(x))}function y(x){return o=void 0,h&&r?f(x):(r=i=void 0,a)}function E(){o!==void 0&&clearTimeout(o),c=0,r=l=i=o=void 0}function S(){return o===void 0?a:y(Xo())}function _(){var x=Xo(),C=v(x);if(r=arguments,i=this,l=x,C){if(o===void 0)return p(l);if(d)return clearTimeout(o),o=setTimeout(m,t),f(l)}return o===void 0&&(o=setTimeout(m,t)),a}return _.cancel=E,_.flush=S,_}function jo(e,t,n){(n!==void 0&&!Xr(e[t],n)||n===void 0&&!(t in e))&&ss(e,t,n)}function Zo(e){return Ue(e)&&Dn(e)}function Ko(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Mw(e){return jr(e,Qr(e))}function Cw(e,t,n,r,i,s,a){var o=Ko(e,n),l=Ko(t,n),c=a.get(l);if(c){jo(e,n,c);return}var u=s?s(o,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var h=Ht(l),f=!h&&sr(l),p=!h&&!f&&os(l);u=l,h||f||p?Ht(o)?u=o:Zo(o)?u=rh(o):f?(d=!1,u=Jh(l,!0)):p?(d=!1,u=hd(l,!0)):u=[]:_E(l)||ir(l)?(u=o,ir(o)?u=Mw(o):(!ve(o)||Mo(o))&&(u=dd(l))):d=!1}d&&(a.set(l,u),i(u,l,r,s,a),a.delete(l)),jo(e,n,u)}function Cd(e,t,n,r,i){e!==t&&Md(t,function(s,a){if(i||(i=new _e),ve(s))Cw(e,t,a,n,Cd,r,i);else{var o=r?r(Ko(e,a),s,a+"",e,t,i):void 0;o===void 0&&(o=s),jo(e,a,o)}},Qr)}function Aw(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Dw(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Lw(e,t){var n=-1,r=Dn(e)?Array(e.length):[];return Yo(e,function(i,s,a){r[++n]=t(i,s,a)}),r}function Rw(e,t){var n=Ht(e)?Zu:Lw;return n(e,ms(t))}var Iw=1/0;function kw(e,t){return hs(Rw(e,t),Iw)}function $w(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var Pw=Object.prototype,Nw=Pw.hasOwnProperty,Uw=Sw(function(e,t,n){Nw.call(e,n)?e[n].push(t):ss(e,n,[t])});const Bw=Uw;var Vw="[object Map]",Hw="[object Set]",Gw=Object.prototype,Fw=Gw.hasOwnProperty;function we(e){if(e==null)return!0;if(Dn(e)&&(Ht(e)||typeof e=="string"||typeof e.splice=="function"||sr(e)||os(e)||ir(e)))return!e.length;var t=cr(e);if(t==Vw||t==Hw)return!e.size;if(as(e))return!vh(e).length;for(var n in e)if(Fw.call(e,n))return!1;return!0}function Ad(e,t){return gs(e,t)}var zw=Yh(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const ur=zw;var Ww=B1(function(e,t,n){Cd(e,t,n)});const tt=Ww;function qw(e,t){var n;return Yo(e,function(r,i,s){return n=t(r,i,s),!n}),!!n}function Yw(e,t,n){var r=Ht(e)?yd:qw;return n&&oh(e,t,n)&&(t=void 0),r(e,ms(t))}var Xw=1/0,jw=lr&&1/Wo(new lr([,-0]))[1]==Xw?function(e){return new lr(e)}:v1;const Zw=jw;var Kw=200;function Dd(e,t,n){var r=-1,i=R1,s=e.length,a=!0,o=[],l=o;if(n)a=!1,i=Aw;else if(s>=Kw){var c=t?null:Zw(e);if(c)return Wo(c);a=!1,i=bd,l=new ni}else l=t?[]:o;t:for(;++r<s;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue t;t&&l.push(d),o.push(u)}else i(l,d,n)||(l!==o&&l.push(d),o.push(u))}return o}var Qw=ah(function(e){var t=Dw(e);return Zo(t)&&(t=void 0),Dd(hs(e,1,Zo,!0),ms(t))});const Jw=Qw;function ri(e){return e&&e.length?Dd(e):[]}function In(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tT(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Qo(e){let t,n,r;e.length!==2?(t=In,n=(o,l)=>In(e(o),l),r=(o,l)=>e(o)-l):(t=e===In||e===tT?e:eT,n=e,r=e);function i(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<0?c=d+1:u=d}while(c<u)}return c}function s(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(o,l,c=0,u=o.length){const d=i(o,l,c,u-1);return d>c&&r(o[d-1],l)>-r(o[d],l)?d-1:d}return{left:i,center:a,right:s}}function eT(){return 0}function nT(e){return e===null?NaN:+e}function*rT(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const iT=Qo(In).right;Qo(nT).center;const Jo=iT;function sT(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function Te(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let s of e)(s=t(s,++i,e))!=null&&(n===void 0?s>=s&&(n=r=s):(n>s&&(n=s),r<s&&(r=s)))}return[n,r]}class kn{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const s=n[i],a=t+s,o=Math.abs(t)<Math.abs(s)?t-(a-s):s-(a-t);o&&(n[r++]=o),t=a}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,s,a=0;if(n>0){for(a=t[--n];n>0&&(r=a,i=t[--n],a=r+i,s=i-(a-r),!s););n>0&&(s<0&&t[n-1]<0||s>0&&t[n-1]>0)&&(i=s*2,r=a+i,i==r-a&&(a=r))}return a}}class Ld extends Map{constructor(t,n=lT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Rd(this,t))}has(t){return super.has(Rd(this,t))}set(t,n){return super.set(aT(this,t),n)}delete(t){return super.delete(oT(this,t))}}function Rd({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function aT({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function oT({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function lT(e){return e!==null&&typeof e=="object"?e.valueOf():e}function cT(e){return e}function uT(e=In){if(e===In)return Id;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Id(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var hT=Array.prototype,dT=hT.slice;function tl(e){return()=>e}const fT=Math.sqrt(50),pT=Math.sqrt(10),gT=Math.sqrt(2);function ys(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),a=s>=fT?10:s>=pT?5:s>=gT?2:1;let o,l,c;return i<0?(c=Math.pow(10,-i)/a,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?ys(e,t,n*2):[o,l,c]}function bs(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,a]=r?ys(t,e,n):ys(e,t,n);if(!(s>=i))return[];const o=s-i+1,l=new Array(o);if(r)if(a<0)for(let c=0;c<o;++c)l[c]=(s-c)/-a;else for(let c=0;c<o;++c)l[c]=(s-c)*a;else if(a<0)for(let c=0;c<o;++c)l[c]=(i+c)/-a;else for(let c=0;c<o;++c)l[c]=(i+c)*a;return l}function hr(e,t,n){return t=+t,e=+e,n=+n,ys(e,t,n)[2]}function el(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?hr(t,e,n):hr(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function mT(e,t,n){let r;for(;;){const i=hr(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function vT(e){return Math.max(1,Math.ceil(Math.log(sT(e))/Math.LN2)+1)}function yT(){var e=cT,t=Te,n=vT;function r(i){Array.isArray(i)||(i=Array.from(i));var s,a=i.length,o,l,c=new Array(a);for(s=0;s<a;++s)c[s]=e(i[s],s,i);var u=t(c),d=u[0],h=u[1],f=n(c,d,h);if(!Array.isArray(f)){const E=h,S=+f;if(t===Te&&([d,h]=mT(d,h,S)),f=bs(d,h,S),f[0]<=d&&(l=hr(d,h,S)),f[f.length-1]>=h)if(E>=h&&t===Te){const _=hr(d,h,S);isFinite(_)&&(_>0?h=(Math.floor(h/_)+1)*_:_<0&&(h=(Math.ceil(h*-_)+1)/-_))}else f.pop()}for(var p=f.length,g=0,v=p;f[g]<=d;)++g;for(;f[v-1]>h;)--v;(g||v<p)&&(f=f.slice(g,v),p=v-g);var m=new Array(p+1),y;for(s=0;s<=p;++s)y=m[s]=[],y.x0=s>0?f[s-1]:d,y.x1=s<p?f[s]:h;if(isFinite(l)){if(l>0)for(s=0;s<a;++s)(o=c[s])!=null&&d<=o&&o<=h&&m[Math.min(p,Math.floor((o-d)/l))].push(i[s]);else if(l<0){for(s=0;s<a;++s)if((o=c[s])!=null&&d<=o&&o<=h){const E=Math.floor((d-o)*l);m[Math.min(p,E+(f[E]<=o))].push(i[s])}}}else for(s=0;s<a;++s)(o=c[s])!=null&&d<=o&&o<=h&&m[Jo(f,o,0,p)].push(i[s]);return m}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:tl(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:tl([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:tl(Array.isArray(i)?dT.call(i):i),r):n},r}function $n(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function dn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function kd(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Id:uT(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),f=Math.max(n,Math.floor(t-c*d/l+h)),p=Math.min(r,Math.floor(t+(l-c)*d/l+h));kd(e,t,f,p,i)}const s=e[t];let a=n,o=r;for(ii(e,n,t),i(e[r],s)>0&&ii(e,n,r);a<o;){for(ii(e,a,o),++a,--o;i(e[a],s)<0;)++a;for(;i(e[o],s)>0;)--o}i(e[n],s)===0?ii(e,n,o):(++o,ii(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function ii(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function nl(e,t,n){if(e=Float64Array.from(rT(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return dn(e);if(t>=1)return $n(e);var r,i=(r-1)*t,s=Math.floor(i),a=$n(kd(e,s).subarray(0,s+1)),o=dn(e.subarray(s+1));return a+(o-a)*(i-s)}}function*bT(e){for(const t of e)yield*t}function $d(e){return Array.from(bT(e))}function ET(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function xT(e){return e}var Es=1,xs=2,rl=3,si=4,Pd=1e-6;function ST(e){return"translate("+e+",0)"}function _T(e){return"translate(0,"+e+")"}function wT(e){return t=>+e(t)}function TT(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function OT(){return!this.__axis}function Ss(e,t){var n=[],r=null,i=null,s=6,a=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===Es||e===si?-1:1,u=e===si||e===xs?"x":"y",d=e===Es||e===rl?ST:_T;function h(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),g=i??(t.tickFormat?t.tickFormat.apply(t,n):xT),v=Math.max(s,0)+o,m=t.range(),y=+m[0]+l,E=+m[m.length-1]+l,S=(t.bandwidth?TT:wT)(t.copy(),l),_=f.selection?f.selection():f,x=_.selectAll(".domain").data([null]),C=_.selectAll(".tick").data(p,t).order(),D=C.exit(),G=C.enter().append("g").attr("class","tick"),k=C.select("line"),O=C.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(G),k=k.merge(G.append("line").attr("stroke","currentColor").attr(u+"2",c*s)),O=O.merge(G.append("text").attr("fill","currentColor").attr(u,c*v).attr("dy",e===Es?"0em":e===rl?"0.71em":"0.32em")),f!==_&&(x=x.transition(f),C=C.transition(f),k=k.transition(f),O=O.transition(f),D=D.transition(f).attr("opacity",Pd).attr("transform",function(R){return isFinite(R=S(R))?d(R+l):this.getAttribute("transform")}),G.attr("opacity",Pd).attr("transform",function(R){var I=this.parentNode.__axis;return d((I&&isFinite(I=I(R))?I:S(R))+l)})),D.remove(),x.attr("d",e===si||e===xs?a?"M"+c*a+","+y+"H"+l+"V"+E+"H"+c*a:"M"+l+","+y+"V"+E:a?"M"+y+","+c*a+"V"+l+"H"+E+"V"+c*a:"M"+y+","+l+"H"+E),C.attr("opacity",1).attr("transform",function(R){return d(S(R)+l)}),k.attr(u+"2",c*s),O.attr(u,c*v).text(g),_.filter(OT).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===xs?"start":e===si?"end":"middle"),_.each(function(){this.__axis=S})}return h.scale=function(f){return arguments.length?(t=f,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(f){return arguments.length?(n=f==null?[]:Array.from(f),h):n.slice()},h.tickValues=function(f){return arguments.length?(r=f==null?null:Array.from(f),h):r&&r.slice()},h.tickFormat=function(f){return arguments.length?(i=f,h):i},h.tickSize=function(f){return arguments.length?(s=a=+f,h):s},h.tickSizeInner=function(f){return arguments.length?(s=+f,h):s},h.tickSizeOuter=function(f){return arguments.length?(a=+f,h):a},h.tickPadding=function(f){return arguments.length?(o=+f,h):o},h.offset=function(f){return arguments.length?(l=+f,h):l},h}function MT(e){return Ss(Es,e)}function CT(e){return Ss(xs,e)}function il(e){return Ss(rl,e)}function Nd(e){return Ss(si,e)}var AT={value:()=>{}};function sl(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new _s(n)}function _s(e){this._=e}function DT(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}_s.prototype=sl.prototype={constructor:_s,on:function(e,t){var n=this._,r=DT(e+"",n),i,s=-1,a=r.length;if(arguments.length<2){for(;++s<a;)if((i=(e=r[s]).type)&&(i=LT(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<a;)if(i=(e=r[s]).type)n[i]=Ud(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ud(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new _s(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],r=0,i=s.length;r<i;++r)s[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,s=r.length;i<s;++i)r[i].value.apply(t,n)}};function LT(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ud(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=AT,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var al="http://www.w3.org/1999/xhtml";const Bd={svg:"http://www.w3.org/2000/svg",xhtml:al,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ws(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Bd.hasOwnProperty(t)?{space:Bd[t],local:e}:e}function RT(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===al&&t.documentElement.namespaceURI===al?t.createElement(e):t.createElementNS(n,e)}}function IT(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Vd(e){var t=ws(e);return(t.local?IT:RT)(t)}function kT(){}function ol(e){return e==null?kT:function(){return this.querySelector(e)}}function $T(e){typeof e!="function"&&(e=ol(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=new Array(a),l,c,u=0;u<a;++u)(l=s[u])&&(c=e.call(l,l.__data__,u,s))&&("__data__"in l&&(c.__data__=l.__data__),o[u]=c);return new ue(r,this._parents)}function PT(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function NT(){return[]}function Hd(e){return e==null?NT:function(){return this.querySelectorAll(e)}}function UT(e){return function(){return PT(e.apply(this,arguments))}}function BT(e){typeof e=="function"?e=UT(e):e=Hd(e);for(var t=this._groups,n=t.length,r=[],i=[],s=0;s<n;++s)for(var a=t[s],o=a.length,l,c=0;c<o;++c)(l=a[c])&&(r.push(e.call(l,l.__data__,c,a)),i.push(l));return new ue(r,i)}function Gd(e){return function(){return this.matches(e)}}function Fd(e){return function(t){return t.matches(e)}}var VT=Array.prototype.find;function HT(e){return function(){return VT.call(this.children,e)}}function GT(){return this.firstElementChild}function FT(e){return this.select(e==null?GT:HT(typeof e=="function"?e:Fd(e)))}var zT=Array.prototype.filter;function WT(){return Array.from(this.children)}function qT(e){return function(){return zT.call(this.children,e)}}function YT(e){return this.selectAll(e==null?WT:qT(typeof e=="function"?e:Fd(e)))}function XT(e){typeof e!="function"&&(e=Gd(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=[],l,c=0;c<a;++c)(l=s[c])&&e.call(l,l.__data__,c,s)&&o.push(l);return new ue(r,this._parents)}function zd(e){return new Array(e.length)}function jT(){return new ue(this._enter||this._groups.map(zd),this._parents)}function Ts(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ts.prototype={constructor:Ts,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ZT(e){return function(){return e}}function KT(e,t,n,r,i,s){for(var a=0,o,l=t.length,c=s.length;a<c;++a)(o=t[a])?(o.__data__=s[a],r[a]=o):n[a]=new Ts(e,s[a]);for(;a<l;++a)(o=t[a])&&(i[a]=o)}function QT(e,t,n,r,i,s,a){var o,l,c=new Map,u=t.length,d=s.length,h=new Array(u),f;for(o=0;o<u;++o)(l=t[o])&&(h[o]=f=a.call(l,l.__data__,o,t)+"",c.has(f)?i[o]=l:c.set(f,l));for(o=0;o<d;++o)f=a.call(e,s[o],o,s)+"",(l=c.get(f))?(r[o]=l,l.__data__=s[o],c.delete(f)):n[o]=new Ts(e,s[o]);for(o=0;o<u;++o)(l=t[o])&&c.get(h[o])===l&&(i[o]=l)}function JT(e){return e.__data__}function tO(e,t){if(!arguments.length)return Array.from(this,JT);var n=t?QT:KT,r=this._parents,i=this._groups;typeof e!="function"&&(e=ZT(e));for(var s=i.length,a=new Array(s),o=new Array(s),l=new Array(s),c=0;c<s;++c){var u=r[c],d=i[c],h=d.length,f=eO(e.call(u,u&&u.__data__,c,r)),p=f.length,g=o[c]=new Array(p),v=a[c]=new Array(p),m=l[c]=new Array(h);n(u,d,g,v,m,f,t);for(var y=0,E=0,S,_;y<p;++y)if(S=g[y]){for(y>=E&&(E=y+1);!(_=v[E])&&++E<p;);S._next=_||null}}return a=new ue(a,r),a._enter=o,a._exit=l,a}function eO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function nO(){return new ue(this._exit||this._groups.map(zd),this._parents)}function rO(e,t,n){var r=this.enter(),i=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function iO(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,s=r.length,a=Math.min(i,s),o=new Array(i),l=0;l<a;++l)for(var c=n[l],u=r[l],d=c.length,h=o[l]=new Array(d),f,p=0;p<d;++p)(f=c[p]||u[p])&&(h[p]=f);for(;l<i;++l)o[l]=n[l];return new ue(o,this._parents)}function sO(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,s=r[i],a;--i>=0;)(a=r[i])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function aO(e){e||(e=oO);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var a=n[s],o=a.length,l=i[s]=new Array(o),c,u=0;u<o;++u)(c=a[u])&&(l[u]=c);l.sort(t)}return new ue(i,this._parents).order()}function oO(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function lO(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function cO(){return Array.from(this)}function uO(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length;i<s;++i){var a=r[i];if(a)return a}return null}function hO(){let e=0;for(const t of this)++e;return e}function dO(){return!this.node()}function fO(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],s=0,a=i.length,o;s<a;++s)(o=i[s])&&e.call(o,o.__data__,s,i);return this}function pO(e){return function(){this.removeAttribute(e)}}function gO(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mO(e,t){return function(){this.setAttribute(e,t)}}function vO(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function yO(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function bO(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function EO(e,t){var n=ws(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?gO:pO:typeof t=="function"?n.local?bO:yO:n.local?vO:mO)(n,t))}function Wd(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xO(e){return function(){this.style.removeProperty(e)}}function SO(e,t,n){return function(){this.style.setProperty(e,t,n)}}function _O(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function wO(e,t,n){return arguments.length>1?this.each((t==null?xO:typeof t=="function"?_O:SO)(e,t,n??"")):dr(this.node(),e)}function dr(e,t){return e.style.getPropertyValue(t)||Wd(e).getComputedStyle(e,null).getPropertyValue(t)}function TO(e){return function(){delete this[e]}}function OO(e,t){return function(){this[e]=t}}function MO(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function CO(e,t){return arguments.length>1?this.each((t==null?TO:typeof t=="function"?MO:OO)(e,t)):this.node()[e]}function qd(e){return e.trim().split(/^|\s+/)}function ll(e){return e.classList||new Yd(e)}function Yd(e){this._node=e,this._names=qd(e.getAttribute("class")||"")}Yd.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Xd(e,t){for(var n=ll(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function jd(e,t){for(var n=ll(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function AO(e){return function(){Xd(this,e)}}function DO(e){return function(){jd(this,e)}}function LO(e,t){return function(){(t.apply(this,arguments)?Xd:jd)(this,e)}}function RO(e,t){var n=qd(e+"");if(arguments.length<2){for(var r=ll(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?LO:t?AO:DO)(n,t))}function IO(){this.textContent=""}function kO(e){return function(){this.textContent=e}}function $O(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function PO(e){return arguments.length?this.each(e==null?IO:(typeof e=="function"?$O:kO)(e)):this.node().textContent}function NO(){this.innerHTML=""}function UO(e){return function(){this.innerHTML=e}}function BO(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function VO(e){return arguments.length?this.each(e==null?NO:(typeof e=="function"?BO:UO)(e)):this.node().innerHTML}function HO(){this.nextSibling&&this.parentNode.appendChild(this)}function GO(){return this.each(HO)}function FO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zO(){return this.each(FO)}function WO(e){var t=typeof e=="function"?e:Vd(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function qO(){return null}function YO(e,t){var n=typeof e=="function"?e:Vd(e),r=t==null?qO:typeof t=="function"?t:ol(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function XO(){var e=this.parentNode;e&&e.removeChild(this)}function jO(){return this.each(XO)}function ZO(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function KO(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function QO(e){return this.select(e?KO:ZO)}function JO(e){return arguments.length?this.property("__data__",e):this.node().__data__}function tM(e){return function(t){e.call(this,t,this.__data__)}}function eM(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function nM(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,s;n<i;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function rM(e,t,n){return function(){var r=this.__on,i,s=tM(t);if(r){for(var a=0,o=r.length;a<o;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=t;return}}this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(i):this.__on=[i]}}function iM(e,t,n){var r=eM(e+""),i,s=r.length,a;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,u;l<c;++l)for(i=0,u=o[l];i<s;++i)if((a=r[i]).type===u.type&&a.name===u.name)return u.value}return}for(o=t?rM:nM,i=0;i<s;++i)this.each(o(r[i],t,n));return this}function Zd(e,t,n){var r=Wd(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function sM(e,t){return function(){return Zd(this,e,t)}}function aM(e,t){return function(){return Zd(this,e,t.apply(this,arguments))}}function oM(e,t){return this.each((typeof t=="function"?aM:sM)(e,t))}function*lM(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length,a;i<s;++i)(a=r[i])&&(yield a)}var Kd=[null];function ue(e,t){this._groups=e,this._parents=t}function ai(){return new ue([[document.documentElement]],Kd)}function cM(){return this}ue.prototype=ai.prototype={constructor:ue,select:$T,selectAll:BT,selectChild:FT,selectChildren:YT,filter:XT,data:tO,enter:jT,exit:nO,join:rO,merge:iO,selection:cM,order:sO,sort:aO,call:lO,nodes:cO,node:uO,size:hO,empty:dO,each:fO,attr:EO,style:wO,property:CO,classed:RO,text:PO,html:VO,raise:GO,lower:zO,append:WO,insert:YO,remove:jO,clone:QO,datum:JO,on:iM,dispatch:oM,[Symbol.iterator]:lM};function L(e){return typeof e=="string"?new ue([[document.querySelector(e)]],[document.documentElement]):new ue([[e]],Kd)}function uM(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Pn(e,t){if(e=uM(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const cl={capture:!0,passive:!1};function ul(e){e.preventDefault(),e.stopImmediatePropagation()}function hM(e){var t=e.document.documentElement,n=L(e).on("dragstart.drag",ul,cl);"onselectstart"in t?n.on("selectstart.drag",ul,cl):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function dM(e,t){var n=e.document.documentElement,r=L(e).on("dragstart.drag",null);t&&(r.on("click.drag",ul,cl),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function hl(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function oi(){}var li=.7,Os=1/li,fr="\\s*([+-]?\\d+)\\s*",ci="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fM=/^#([0-9a-f]{3,8})$/,pM=new RegExp(`^rgb\\(${fr},${fr},${fr}\\)$`),gM=new RegExp(`^rgb\\(${Be},${Be},${Be}\\)$`),mM=new RegExp(`^rgba\\(${fr},${fr},${fr},${ci}\\)$`),vM=new RegExp(`^rgba\\(${Be},${Be},${Be},${ci}\\)$`),yM=new RegExp(`^hsl\\(${ci},${Be},${Be}\\)$`),bM=new RegExp(`^hsla\\(${ci},${Be},${Be},${ci}\\)$`),Jd={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};hl(oi,Ze,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tf,formatHex:tf,formatHex8:EM,formatHsl:xM,formatRgb:ef,toString:ef});function tf(){return this.rgb().formatHex()}function EM(){return this.rgb().formatHex8()}function xM(){return of(this).formatHsl()}function ef(){return this.rgb().formatRgb()}function Ze(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fM.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?nf(t):n===3?new re(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ms(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ms(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=pM.exec(e))?new re(t[1],t[2],t[3],1):(t=gM.exec(e))?new re(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mM.exec(e))?Ms(t[1],t[2],t[3],t[4]):(t=vM.exec(e))?Ms(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yM.exec(e))?af(t[1],t[2]/100,t[3]/100,1):(t=bM.exec(e))?af(t[1],t[2]/100,t[3]/100,t[4]):Jd.hasOwnProperty(e)?nf(Jd[e]):e==="transparent"?new re(NaN,NaN,NaN,0):null}function nf(e){return new re(e>>16&255,e>>8&255,e&255,1)}function Ms(e,t,n,r){return r<=0&&(e=t=n=NaN),new re(e,t,n,r)}function SM(e){return e instanceof oi||(e=Ze(e)),e?(e=e.rgb(),new re(e.r,e.g,e.b,e.opacity)):new re}function dl(e,t,n,r){return arguments.length===1?SM(e):new re(e,t,n,r??1)}function re(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}hl(re,dl,Qd(oi,{brighter(e){return e=e==null?Os:Math.pow(Os,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new re(Nn(this.r),Nn(this.g),Nn(this.b),Cs(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:rf,formatHex:rf,formatHex8:_M,formatRgb:sf,toString:sf}));function rf(){return`#${Un(this.r)}${Un(this.g)}${Un(this.b)}`}function _M(){return`#${Un(this.r)}${Un(this.g)}${Un(this.b)}${Un((isNaN(this.opacity)?1:this.opacity)*255)}`}function sf(){const e=Cs(this.opacity);return`${e===1?"rgb(":"rgba("}${Nn(this.r)}, ${Nn(this.g)}, ${Nn(this.b)}${e===1?")":`, ${e})`}`}function Cs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Nn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Un(e){return e=Nn(e),(e<16?"0":"")+e.toString(16)}function af(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Oe(e,t,n,r)}function of(e){if(e instanceof Oe)return new Oe(e.h,e.s,e.l,e.opacity);if(e instanceof oi||(e=Ze(e)),!e)return new Oe;if(e instanceof Oe)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),a=NaN,o=s-i,l=(s+i)/2;return o?(t===s?a=(n-r)/o+(n<r)*6:n===s?a=(r-t)/o+2:a=(t-n)/o+4,o/=l<.5?s+i:2-s-i,a*=60):o=l>0&&l<1?0:a,new Oe(a,o,l,e.opacity)}function fl(e,t,n,r){return arguments.length===1?of(e):new Oe(e,t,n,r??1)}function Oe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hl(Oe,fl,Qd(oi,{brighter(e){return e=e==null?Os:Math.pow(Os,e),new Oe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new Oe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new re(pl(e>=240?e-240:e+120,i,r),pl(e,i,r),pl(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Oe(lf(this.h),As(this.s),As(this.l),Cs(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 e=Cs(this.opacity);return`${e===1?"hsl(":"hsla("}${lf(this.h)}, ${As(this.s)*100}%, ${As(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lf(e){return e=(e||0)%360,e<0?e+360:e}function As(e){return Math.max(0,Math.min(1,e||0))}function pl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const gl=e=>()=>e;function wM(e,t){return function(n){return e+n*t}}function TM(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function OM(e){return(e=+e)==1?cf:function(t,n){return n-t?TM(t,n,e):gl(isNaN(t)?n:t)}}function cf(e,t){var n=t-e;return n?wM(e,n):gl(isNaN(e)?t:e)}const Ds=function e(t){var n=OM(t);function r(i,s){var a=n((i=dl(i)).r,(s=dl(s)).r),o=n(i.g,s.g),l=n(i.b,s.b),c=cf(i.opacity,s.opacity);return function(u){return i.r=a(u),i.g=o(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function MM(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function CM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function AM(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),a;for(a=0;a<r;++a)i[a]=ui(e[a],t[a]);for(;a<n;++a)s[a]=t[a];return function(o){for(a=0;a<r;++a)s[a]=i[a](o);return s}}function DM(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function he(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function LM(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=ui(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var ml=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vl=new RegExp(ml.source,"g");function RM(e){return function(){return e}}function IM(e){return function(t){return e(t)+""}}function uf(e,t){var n=ml.lastIndex=vl.lastIndex=0,r,i,s,a=-1,o=[],l=[];for(e=e+"",t=t+"";(r=ml.exec(e))&&(i=vl.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),o[a]?o[a]+=s:o[++a]=s),(r=r[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:he(r,i)})),n=vl.lastIndex;return n<t.length&&(s=t.slice(n),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?IM(l[0].x):RM(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)o[(d=l[u]).i]=d.x(c);return o.join("")})}function ui(e,t){var n=typeof t,r;return t==null||n==="boolean"?gl(t):(n==="number"?he:n==="string"?(r=Ze(t))?(t=r,Ds):uf:t instanceof Ze?Ds:t instanceof Date?DM:CM(t)?MM:Array.isArray(t)?AM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?LM:he)(e,t)}function hf(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var df=180/Math.PI,yl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ff(e,t,n,r,i,s){var a,o,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:s,rotate:Math.atan2(t,e)*df,skewX:Math.atan(l)*df,scaleX:a,scaleY:o}}var Ls;function kM(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?yl:ff(t.a,t.b,t.c,t.d,t.e,t.f)}function $M(e){return e==null||(Ls||(Ls=document.createElementNS("http://www.w3.org/2000/svg","g")),Ls.setAttribute("transform",e),!(e=Ls.transform.baseVal.consolidate()))?yl:(e=e.matrix,ff(e.a,e.b,e.c,e.d,e.e,e.f))}function pf(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function s(c,u,d,h,f,p){if(c!==d||u!==h){var g=f.push("translate(",null,t,null,n);p.push({i:g-4,x:he(c,d)},{i:g-2,x:he(u,h)})}else(d||h)&&f.push("translate("+d+t+h+n)}function a(c,u,d,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:he(c,u)})):u&&d.push(i(d)+"rotate("+u+r)}function o(c,u,d,h){c!==u?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:he(c,u)}):u&&d.push(i(d)+"skewX("+u+r)}function l(c,u,d,h,f,p){if(c!==d||u!==h){var g=f.push(i(f)+"scale(",null,",",null,")");p.push({i:g-4,x:he(c,d)},{i:g-2,x:he(u,h)})}else(d!==1||h!==1)&&f.push(i(f)+"scale("+d+","+h+")")}return function(c,u){var d=[],h=[];return c=e(c),u=e(u),s(c.translateX,c.translateY,u.translateX,u.translateY,d,h),a(c.rotate,u.rotate,d,h),o(c.skewX,u.skewX,d,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var p=-1,g=h.length,v;++p<g;)d[(v=h[p]).i]=v.x(f);return d.join("")}}}var PM=pf(kM,"px, ","px)","deg)"),NM=pf($M,", ",")",")");function UM(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var pr=0,hi=0,di=0,gf=1e3,Rs,fi,Is=0,Bn=0,ks=0,pi=typeof performance=="object"&&performance.now?performance:Date,mf=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function bl(){return Bn||(mf(BM),Bn=pi.now()+ks)}function BM(){Bn=0}function $s(){this._call=this._time=this._next=null}$s.prototype=vf.prototype={constructor:$s,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?bl():+n)+(t==null?0:+t),!this._next&&fi!==this&&(fi?fi._next=this:Rs=this,fi=this),this._call=e,this._time=n,El()},stop:function(){this._call&&(this._call=null,this._time=1/0,El())}};function vf(e,t,n){var r=new $s;return r.restart(e,t,n),r}function VM(){bl(),++pr;for(var e=Rs,t;e;)(t=Bn-e._time)>=0&&e._call.call(void 0,t),e=e._next;--pr}function yf(){Bn=(Is=pi.now())+ks,pr=hi=0;try{VM()}finally{pr=0,GM(),Bn=0}}function HM(){var e=pi.now(),t=e-Is;t>gf&&(ks-=t,Is=e)}function GM(){for(var e,t=Rs,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Rs=n);fi=e,El(r)}function El(e){if(!pr){hi&&(hi=clearTimeout(hi));var t=e-Bn;t>24?(e<1/0&&(hi=setTimeout(yf,e-pi.now()-ks)),di&&(di=clearInterval(di))):(di||(Is=pi.now(),di=setInterval(HM,gf)),pr=1,mf(yf))}}function bf(e,t,n){var r=new $s;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var FM=sl("start","end","cancel","interrupt"),zM=[],Ef=0,xf=1,xl=2,Ps=3,Sf=4,Sl=5,Ns=6;function Us(e,t,n,r,i,s){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;WM(e,n,{name:t,index:r,group:i,on:FM,tween:zM,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Ef})}function _l(e,t){var n=Me(e,t);if(n.state>Ef)throw new Error("too late; already scheduled");return n}function Ve(e,t){var n=Me(e,t);if(n.state>Ps)throw new Error("too late; already running");return n}function Me(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function WM(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=vf(s,0,n.time);function s(c){n.state=xf,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var u,d,h,f;if(n.state!==xf)return l();for(u in r)if(f=r[u],f.name===n.name){if(f.state===Ps)return bf(a);f.state===Sf?(f.state=Ns,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete r[u]):+u<t&&(f.state=Ns,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete r[u])}if(bf(function(){n.state===Ps&&(n.state=Sf,n.timer.restart(o,n.delay,n.time),o(c))}),n.state=xl,n.on.call("start",e,e.__data__,n.index,n.group),n.state===xl){for(n.state=Ps,i=new Array(h=n.tween.length),u=0,d=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=f);i.length=d+1}}function o(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Sl,1),d=-1,h=i.length;++d<h;)i[d].call(e,u);n.state===Sl&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Ns,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function wl(e,t){var n=e.__transition,r,i,s=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){s=!1;continue}i=r.state>xl&&r.state<Sl,r.state=Ns,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}s&&delete e.__transition}}function qM(e){return this.each(function(){wl(this,e)})}function YM(e,t){var n,r;return function(){var i=Ve(this,e),s=i.tween;if(s!==n){r=n=s;for(var a=0,o=r.length;a<o;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function XM(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=Ve(this,e),a=s.tween;if(a!==r){i=(r=a).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}s.tween=i}}function jM(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Me(this.node(),n).tween,i=0,s=r.length,a;i<s;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?YM:XM)(n,e,t))}function Tl(e,t,n){var r=e._id;return e.each(function(){var i=Ve(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Me(i,r).value[t]}}function _f(e,t){var n;return(typeof t=="number"?he:t instanceof Ze?Ds:(n=Ze(t))?(t=n,Ds):uf)(e,t)}function ZM(e){return function(){this.removeAttribute(e)}}function KM(e){return function(){this.removeAttributeNS(e.space,e.local)}}function QM(e,t,n){var r,i=n+"",s;return function(){var a=this.getAttribute(e);return a===i?null:a===r?s:s=t(r=a,n)}}function JM(e,t,n){var r,i=n+"",s;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?s:s=t(r=a,n)}}function tC(e,t,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o)))}}function eC(e,t,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o)))}}function nC(e,t){var n=ws(e),r=n==="transform"?NM:_f;return this.attrTween(e,typeof t=="function"?(n.local?eC:tC)(n,r,Tl(this,"attr."+e,t)):t==null?(n.local?KM:ZM)(n):(n.local?JM:QM)(n,r,t))}function rC(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function iC(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function sC(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&iC(e,s)),n}return i._value=t,i}function aC(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&rC(e,s)),n}return i._value=t,i}function oC(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=ws(e);return this.tween(n,(r.local?sC:aC)(r,t))}function lC(e,t){return function(){_l(this,e).delay=+t.apply(this,arguments)}}function cC(e,t){return t=+t,function(){_l(this,e).delay=t}}function uC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?lC:cC)(t,e)):Me(this.node(),t).delay}function hC(e,t){return function(){Ve(this,e).duration=+t.apply(this,arguments)}}function dC(e,t){return t=+t,function(){Ve(this,e).duration=t}}function fC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?hC:dC)(t,e)):Me(this.node(),t).duration}function pC(e,t){if(typeof t!="function")throw new Error;return function(){Ve(this,e).ease=t}}function gC(e){var t=this._id;return arguments.length?this.each(pC(t,e)):Me(this.node(),t).ease}function mC(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ve(this,e).ease=n}}function vC(e){if(typeof e!="function")throw new Error;return this.each(mC(this._id,e))}function yC(e){typeof e!="function"&&(e=Gd(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=[],l,c=0;c<a;++c)(l=s[c])&&e.call(l,l.__data__,c,s)&&o.push(l);return new Ke(r,this._parents,this._name,this._id)}function bC(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,s=Math.min(r,i),a=new Array(r),o=0;o<s;++o)for(var l=t[o],c=n[o],u=l.length,d=a[o]=new Array(u),h,f=0;f<u;++f)(h=l[f]||c[f])&&(d[f]=h);for(;o<r;++o)a[o]=t[o];return new Ke(a,this._parents,this._name,this._id)}function EC(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function xC(e,t,n){var r,i,s=EC(t)?_l:Ve;return function(){var a=s(this,e),o=a.on;o!==r&&(i=(r=o).copy()).on(t,n),a.on=i}}function SC(e,t){var n=this._id;return arguments.length<2?Me(this.node(),n).on.on(e):this.each(xC(n,e,t))}function _C(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function wC(){return this.on("end.remove",_C(this._id))}function TC(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ol(e));for(var r=this._groups,i=r.length,s=new Array(i),a=0;a<i;++a)for(var o=r[a],l=o.length,c=s[a]=new Array(l),u,d,h=0;h<l;++h)(u=o[h])&&(d=e.call(u,u.__data__,h,o))&&("__data__"in u&&(d.__data__=u.__data__),c[h]=d,Us(c[h],t,n,h,c,Me(u,n)));return new Ke(s,this._parents,t,n)}function OC(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Hd(e));for(var r=this._groups,i=r.length,s=[],a=[],o=0;o<i;++o)for(var l=r[o],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var h=e.call(u,u.__data__,d,l),f,p=Me(u,n),g=0,v=h.length;g<v;++g)(f=h[g])&&Us(f,t,n,g,h,p);s.push(h),a.push(u)}return new Ke(s,a,t,n)}var MC=ai.prototype.constructor;function CC(){return new MC(this._groups,this._parents)}function AC(e,t){var n,r,i;return function(){var s=dr(this,e),a=(this.style.removeProperty(e),dr(this,e));return s===a?null:s===n&&a===r?i:i=t(n=s,r=a)}}function wf(e){return function(){this.style.removeProperty(e)}}function DC(e,t,n){var r,i=n+"",s;return function(){var a=dr(this,e);return a===i?null:a===r?s:s=t(r=a,n)}}function LC(e,t,n){var r,i,s;return function(){var a=dr(this,e),o=n(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),dr(this,e))),a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o))}}function RC(e,t){var n,r,i,s="style."+t,a="end."+s,o;return function(){var l=Ve(this,e),c=l.on,u=l.value[s]==null?o||(o=wf(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(a,i=u),l.on=r}}function IC(e,t,n){var r=(e+="")=="transform"?PM:_f;return t==null?this.styleTween(e,AC(e,r)).on("end.style."+e,wf(e)):typeof t=="function"?this.styleTween(e,LC(e,r,Tl(this,"style."+e,t))).each(RC(this._id,e)):this.styleTween(e,DC(e,r,t),n).on("end.style."+e,null)}function kC(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function $C(e,t,n){var r,i;function s(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&kC(e,a,n)),r}return s._value=t,s}function PC(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,$C(e,t,n??""))}function NC(e){return function(){this.textContent=e}}function UC(e){return function(){var t=e(this);this.textContent=t??""}}function BC(e){return this.tween("text",typeof e=="function"?UC(Tl(this,"text",e)):NC(e==null?"":e+""))}function VC(e){return function(t){this.textContent=e.call(this,t)}}function HC(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&VC(i)),t}return r._value=e,r}function GC(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,HC(e))}function FC(){for(var e=this._name,t=this._id,n=Tf(),r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,c=0;c<o;++c)if(l=a[c]){var u=Me(l,t);Us(l,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ke(r,this._parents,e,n)}function zC(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(s,a){var o={value:a},l={value:function(){--i===0&&s()}};n.each(function(){var c=Ve(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),c.on=t}),i===0&&s()})}var WC=0;function Ke(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Tf(){return++WC}var Qe=ai.prototype;Ke.prototype={constructor:Ke,select:TC,selectAll:OC,selectChild:Qe.selectChild,selectChildren:Qe.selectChildren,filter:yC,merge:bC,selection:CC,transition:FC,call:Qe.call,nodes:Qe.nodes,node:Qe.node,size:Qe.size,empty:Qe.empty,each:Qe.each,on:SC,attr:nC,attrTween:oC,style:IC,styleTween:PC,text:BC,textTween:GC,remove:wC,tween:jM,delay:uC,duration:fC,ease:gC,easeVarying:vC,end:zC,[Symbol.iterator]:Qe[Symbol.iterator]};const qC=e=>+e;function Of(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var YC={time:null,delay:0,duration:250,ease:Of};function XC(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function jC(e){var t,n;e instanceof Ke?(t=e._id,e=e._name):(t=Tf(),(n=YC).time=bl(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,c=0;c<o;++c)(l=a[c])&&Us(l,e,t,c,a,n||XC(l,t));return new Ke(r,this._parents,e,t)}ai.prototype.interrupt=qM,ai.prototype.transition=jC;const Ol=e=>()=>e;function ZC(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function KC(e){e.stopImmediatePropagation()}function Ml(e){e.preventDefault(),e.stopImmediatePropagation()}var Mf={name:"drag"},Cl={name:"space"},gr={name:"handle"},mr={name:"center"};const{abs:Cf,max:Ft,min:zt}=Math;function Af(e){return[+e[0],+e[1]]}function Df(e){return[Af(e[0]),Af(e[1])]}var Bs={name:"x",handles:["w","e"].map(Vs),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Al={name:"y",handles:["n","s"].map(Vs),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Je={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Lf={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Rf={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},QC={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},JC={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Vs(e){return{type:e}}function tA(e){return!e.ctrlKey&&!e.button}function eA(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function nA(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dl(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function rA(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function If(){return iA(Bs)}function iA(e){var t=eA,n=tA,r=nA,i=!0,s=sl("start","brush","end"),a=6,o;function l(v){var m=v.property("__brush",g).selectAll(".overlay").data([Vs("overlay")]);m.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Je.overlay).merge(m).each(function(){var E=Dl(this).extent;L(this).attr("x",E[0][0]).attr("y",E[0][1]).attr("width",E[1][0]-E[0][0]).attr("height",E[1][1]-E[0][1])}),v.selectAll(".selection").data([Vs("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Je.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var y=v.selectAll(".handle").data(e.handles,function(E){return E.type});y.exit().remove(),y.enter().append("rect").attr("class",function(E){return"handle handle--"+E.type}).attr("cursor",function(E){return Je[E.type]}),v.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(v,m,y){v.tween?v.on("start.brush",function(E){u(this,arguments).beforestart().start(E)}).on("interrupt.brush end.brush",function(E){u(this,arguments).end(E)}).tween("brush",function(){var E=this,S=E.__brush,_=u(E,arguments),x=S.selection,C=e.input(typeof m=="function"?m.apply(this,arguments):m,S.extent),D=ui(x,C);function G(k){S.selection=k===1&&C===null?null:D(k),c.call(E),_.brush()}return x!==null&&C!==null?G:G(1)}):v.each(function(){var E=this,S=arguments,_=E.__brush,x=e.input(typeof m=="function"?m.apply(E,S):m,_.extent),C=u(E,S).beforestart();wl(E),_.selection=x===null?null:x,c.call(E),C.start(y).brush(y).end(y)})},l.clear=function(v,m){l.move(v,null,m)};function c(){var v=L(this),m=Dl(this).selection;m?(v.selectAll(".selection").style("display",null).attr("x",m[0][0]).attr("y",m[0][1]).attr("width",m[1][0]-m[0][0]).attr("height",m[1][1]-m[0][1]),v.selectAll(".handle").style("display",null).attr("x",function(y){return y.type[y.type.length-1]==="e"?m[1][0]-a/2:m[0][0]-a/2}).attr("y",function(y){return y.type[0]==="s"?m[1][1]-a/2:m[0][1]-a/2}).attr("width",function(y){return y.type==="n"||y.type==="s"?m[1][0]-m[0][0]+a:a}).attr("height",function(y){return y.type==="e"||y.type==="w"?m[1][1]-m[0][1]+a:a})):v.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(v,m,y){var E=v.__brush.emitter;return E&&(!y||!E.clean)?E:new d(v,m,y)}function d(v,m,y){this.that=v,this.args=m,this.state=v.__brush,this.active=0,this.clean=y}d.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(v,m){return this.starting?(this.starting=!1,this.emit("start",v,m)):this.emit("brush",v),this},brush:function(v,m){return this.emit("brush",v,m),this},end:function(v,m){return--this.active===0&&(delete this.state.emitter,this.emit("end",v,m)),this},emit:function(v,m,y){var E=L(this.that).datum();s.call(v,this.that,new ZC(v,{sourceEvent:m,target:l,selection:e.output(this.state.selection),mode:y,dispatch:s}),E)}};function h(v){if(o&&!v.touches||!n.apply(this,arguments))return;var m=this,y=v.target.__data__.type,E=(i&&v.metaKey?y="overlay":y)==="selection"?Mf:i&&v.altKey?mr:gr,S=e===Al?null:QC[y],_=e===Bs?null:JC[y],x=Dl(m),C=x.extent,D=x.selection,G=C[0][0],k,O,R=C[0][1],I,$,T=C[1][0],B,N,U=C[1][1],V,q,X=0,J=0,ct,W=S&&_&&i&&v.shiftKey,K,ut,rt=Array.from(v.touches||[v],et=>{const Rt=et.identifier;return et=Pn(et,m),et.point0=et.slice(),et.identifier=Rt,et});wl(m);var Ct=u(m,arguments,!0).beforestart();if(y==="overlay"){D&&(ct=!0);const et=[rt[0],rt[1]||rt[0]];x.selection=D=[[k=e===Al?G:zt(et[0][0],et[1][0]),I=e===Bs?R:zt(et[0][1],et[1][1])],[B=e===Al?T:Ft(et[0][0],et[1][0]),V=e===Bs?U:Ft(et[0][1],et[1][1])]],rt.length>1&&pt(v)}else k=D[0][0],I=D[0][1],B=D[1][0],V=D[1][1];O=k,$=I,N=B,q=V;var Y=L(m).attr("pointer-events","none"),H=Y.selectAll(".overlay").attr("cursor",Je[y]);if(v.touches)Ct.moved=P,Ct.ended=bt;else{var F=L(v.view).on("mousemove.brush",P,!0).on("mouseup.brush",bt,!0);i&&F.on("keydown.brush",ee,!0).on("keyup.brush",ne,!0),hM(v.view)}c.call(m),Ct.start(v,E.name);function P(et){for(const Rt of et.changedTouches||[et])for(const Ki of rt)Ki.identifier===Rt.identifier&&(Ki.cur=Pn(Rt,m));if(W&&!K&&!ut&&rt.length===1){const Rt=rt[0];Cf(Rt.cur[0]-Rt[0])>Cf(Rt.cur[1]-Rt[1])?ut=!0:K=!0}for(const Rt of rt)Rt.cur&&(Rt[0]=Rt.cur[0],Rt[1]=Rt.cur[1]);ct=!0,Ml(et),pt(et)}function pt(et){const Rt=rt[0],Ki=Rt.point0;var wn;switch(X=Rt[0]-Ki[0],J=Rt[1]-Ki[1],E){case Cl:case Mf:{S&&(X=Ft(G-k,zt(T-B,X)),O=k+X,N=B+X),_&&(J=Ft(R-I,zt(U-V,J)),$=I+J,q=V+J);break}case gr:{rt[1]?(S&&(O=Ft(G,zt(T,rt[0][0])),N=Ft(G,zt(T,rt[1][0])),S=1),_&&($=Ft(R,zt(U,rt[0][1])),q=Ft(R,zt(U,rt[1][1])),_=1)):(S<0?(X=Ft(G-k,zt(T-k,X)),O=k+X,N=B):S>0&&(X=Ft(G-B,zt(T-B,X)),O=k,N=B+X),_<0?(J=Ft(R-I,zt(U-I,J)),$=I+J,q=V):_>0&&(J=Ft(R-V,zt(U-V,J)),$=I,q=V+J));break}case mr:{S&&(O=Ft(G,zt(T,k-X*S)),N=Ft(G,zt(T,B+X*S))),_&&($=Ft(R,zt(U,I-J*_)),q=Ft(R,zt(U,V+J*_)));break}}N<O&&(S*=-1,wn=k,k=B,B=wn,wn=O,O=N,N=wn,y in Lf&&H.attr("cursor",Je[y=Lf[y]])),q<$&&(_*=-1,wn=I,I=V,V=wn,wn=$,$=q,q=wn,y in Rf&&H.attr("cursor",Je[y=Rf[y]])),x.selection&&(D=x.selection),K&&(O=D[0][0],N=D[1][0]),ut&&($=D[0][1],q=D[1][1]),(D[0][0]!==O||D[0][1]!==$||D[1][0]!==N||D[1][1]!==q)&&(x.selection=[[O,$],[N,q]],c.call(m),Ct.brush(et,E.name))}function bt(et){if(KC(et),et.touches){if(et.touches.length)return;o&&clearTimeout(o),o=setTimeout(function(){o=null},500)}else dM(et.view,ct),F.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Y.attr("pointer-events","all"),H.attr("cursor",Je.overlay),x.selection&&(D=x.selection),rA(D)&&(x.selection=null,c.call(m)),Ct.end(et,E.name)}function ee(et){switch(et.keyCode){case 16:{W=S&&_;break}case 18:{E===gr&&(S&&(B=N-X*S,k=O+X*S),_&&(V=q-J*_,I=$+J*_),E=mr,pt(et));break}case 32:{(E===gr||E===mr)&&(S<0?B=N-X:S>0&&(k=O-X),_<0?V=q-J:_>0&&(I=$-J),E=Cl,H.attr("cursor",Je.selection),pt(et));break}default:return}Ml(et)}function ne(et){switch(et.keyCode){case 16:{W&&(K=ut=W=!1,pt(et));break}case 18:{E===mr&&(S<0?B=N:S>0&&(k=O),_<0?V=q:_>0&&(I=$),E=gr,pt(et));break}case 32:{E===Cl&&(et.altKey?(S&&(B=N-X*S,k=O+X*S),_&&(V=q-J*_,I=$+J*_),E=mr):(S<0?B=N:S>0&&(k=O),_<0?V=q:_>0&&(I=$),E=gr),H.attr("cursor",Je[y]),pt(et));break}default:return}Ml(et)}}function f(v){u(this,arguments).moved(v)}function p(v){u(this,arguments).ended(v)}function g(){var v=this.__brush||{selection:null};return v.extent=Df(t.apply(this,arguments)),v.dim=e,v}return l.extent=function(v){return arguments.length?(t=typeof v=="function"?v:Ol(Df(v)),l):t},l.filter=function(v){return arguments.length?(n=typeof v=="function"?v:Ol(!!v),l):n},l.touchable=function(v){return arguments.length?(r=typeof v=="function"?v:Ol(!!v),l):r},l.handleSize=function(v){return arguments.length?(a=+v,l):a},l.keyModifiers=function(v){return arguments.length?(i=!!v,l):i},l.on=function(){var v=s.on.apply(s,arguments);return v===s?l:v},l}const Ll=Math.PI,Rl=2*Ll,Vn=1e-6,sA=Rl-Vn;function kf(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function aA(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return kf;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let Il=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?kf:aA(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+a}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,o=this._y1,l=r-t,c=i-n,u=a-t,d=o-n,h=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Vn)if(!(Math.abs(d*l-c*u)>Vn)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let f=r-a,p=i-o,g=l*l+c*c,v=f*f+p*p,m=Math.sqrt(g),y=Math.sqrt(h),E=s*Math.tan((Ll-Math.acos((g+h-v)/(2*m*y)))/2),S=E/y,_=E/m;Math.abs(S-1)>Vn&&this._append`L${t+S*u},${n+S*d}`,this._append`A${s},${s},0,0,${+(d*f>u*p)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,i,s,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(i),l=r*Math.sin(i),c=t+o,u=n+l,d=1^a,h=a?i-s:s-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Vn||Math.abs(this._y1-u)>Vn)&&this._append`L${c},${u}`,r&&(h<0&&(h=h%Rl+Rl),h>sA?this._append`A${r},${r},0,1,${d},${t-o},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:h>Vn&&this._append`A${r},${r},0,${+(h>=Ll)},${d},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Hs(){return new Il}Hs.prototype=Il.prototype;function oA(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Gs(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function vr(e){return e=Gs(Math.abs(e)),e?e[1]:NaN}function lA(e,t){return function(n,r){for(var i=n.length,s=[],a=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),s.push(n.substring(i-=o,i+o)),!((l+=o+1)>r));)o=e[a=(a+1)%e.length];return s.reverse().join(t)}}function cA(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var uA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gi(e){if(!(t=uA.exec(e)))throw new Error("invalid format: "+e);var t;return new kl({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}gi.prototype=kl.prototype;function kl(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}kl.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 hA(e){t:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break t;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var $f;function dA(e,t){var n=Gs(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-($f=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return s===a?r:s>a?r+new Array(s-a+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Gs(e,Math.max(0,t+s-1))[0]}function Pf(e,t){var n=Gs(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Nf={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:oA,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Pf(e*100,t),r:Pf,s:dA,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Uf(e){return e}var Bf=Array.prototype.map,Vf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fA(e){var t=e.grouping===void 0||e.thousands===void 0?Uf:lA(Bf.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?Uf:cA(Bf.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=gi(d);var h=d.fill,f=d.align,p=d.sign,g=d.symbol,v=d.zero,m=d.width,y=d.comma,E=d.precision,S=d.trim,_=d.type;_==="n"?(y=!0,_="g"):Nf[_]||(E===void 0&&(E=12),S=!0,_="g"),(v||h==="0"&&f==="=")&&(v=!0,h="0",f="=");var x=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",C=g==="$"?r:/[%p]/.test(_)?a:"",D=Nf[_],G=/[defgprs%]/.test(_);E=E===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function k(O){var R=x,I=C,$,T,B;if(_==="c")I=D(O)+I,O="";else{O=+O;var N=O<0||1/O<0;if(O=isNaN(O)?l:D(Math.abs(O),E),S&&(O=hA(O)),N&&+O==0&&p!=="+"&&(N=!1),R=(N?p==="("?p:o:p==="-"||p==="("?"":p)+R,I=(_==="s"?Vf[8+$f/3]:"")+I+(N&&p==="("?")":""),G){for($=-1,T=O.length;++$<T;)if(B=O.charCodeAt($),48>B||B>57){I=(B===46?i+O.slice($+1):O.slice($))+I,O=O.slice(0,$);break}}}y&&!v&&(O=t(O,1/0));var U=R.length+O.length+I.length,V=U<m?new Array(m-U+1).join(h):"";switch(y&&v&&(O=t(V+O,V.length?m-I.length:1/0),V=""),f){case"<":O=R+O+I+V;break;case"=":O=R+V+O+I;break;case"^":O=V.slice(0,U=V.length>>1)+R+O+I+V.slice(U);break;default:O=V+R+O+I;break}return s(O)}return k.toString=function(){return d+""},k}function u(d,h){var f=c((d=gi(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(vr(h)/3)))*3,g=Math.pow(10,-p),v=Vf[8+p/3];return function(m){return f(g*m)+v}}return{format:c,formatPrefix:u}}var Fs,$l,Hf;pA({thousands:",",grouping:[3],currency:["$",""]});function pA(e){return Fs=fA(e),$l=Fs.format,Hf=Fs.formatPrefix,Fs}function gA(e){return Math.max(0,-vr(Math.abs(e)))}function mA(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vr(t)/3)))*3-vr(Math.abs(e)))}function vA(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vr(t)-vr(e))+1}var mt=1e-6,Gf=1e-12,lt=Math.PI,ie=lt/2,Ff=lt/4,de=lt*2,Zt=180/lt,Lt=lt/180,vt=Math.abs,zf=Math.atan,Hn=Math.atan2,Et=Math.cos,yA=Math.exp,bA=Math.log,ft=Math.sin,fn=Math.sign||function(e){return e>0?1:e<0?-1:0},Ce=Math.sqrt,EA=Math.tan;function xA(e){return e>1?0:e<-1?lt:Math.acos(e)}function tn(e){return e>1?ie:e<-1?-ie:Math.asin(e)}function ye(){}function zs(e,t){e&&qf.hasOwnProperty(e.type)&&qf[e.type](e,t)}var Wf={Feature:function(e,t){zs(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)zs(n[r].geometry,t)}},qf={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Pl(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Pl(n[r],t,0)},Polygon:function(e,t){Yf(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Yf(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)zs(n[r],t)}};function Pl(e,t,n){var r=-1,i=e.length-n,s;for(t.lineStart();++r<i;)s=e[r],t.point(s[0],s[1],s[2]);t.lineEnd()}function Yf(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Pl(e[n],t,1);t.polygonEnd()}function yr(e,t){e&&Wf.hasOwnProperty(e.type)?Wf[e.type](e,t):zs(e,t)}function Nl(e){return[Hn(e[1],e[0]),tn(e[2])]}function br(e){var t=e[0],n=e[1],r=Et(n);return[r*Et(t),r*ft(t),ft(n)]}function Ws(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function qs(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Ul(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Ys(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Bl(e){var t=Ce(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Vl(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function Hl(e,t){return vt(e)>lt&&(e-=Math.round(e/de)*de),[e,t]}Hl.invert=Hl;function Xf(e,t,n){return(e%=de)?t||n?Vl(Zf(e),Kf(t,n)):Zf(e):t||n?Kf(t,n):Hl}function jf(e){return function(t,n){return t+=e,vt(t)>lt&&(t-=Math.round(t/de)*de),[t,n]}}function Zf(e){var t=jf(e);return t.invert=jf(-e),t}function Kf(e,t){var n=Et(e),r=ft(e),i=Et(t),s=ft(t);function a(o,l){var c=Et(l),u=Et(o)*c,d=ft(o)*c,h=ft(l),f=h*n+u*r;return[Hn(d*i-f*s,u*n-h*r),tn(f*i+d*s)]}return a.invert=function(o,l){var c=Et(l),u=Et(o)*c,d=ft(o)*c,h=ft(l),f=h*i-d*s;return[Hn(d*i+h*s,u*n+f*r),tn(f*n-u*r)]},a}function SA(e){e=Xf(e[0]*Lt,e[1]*Lt,e.length>2?e[2]*Lt:0);function t(n){return n=e(n[0]*Lt,n[1]*Lt),n[0]*=Zt,n[1]*=Zt,n}return t.invert=function(n){return n=e.invert(n[0]*Lt,n[1]*Lt),n[0]*=Zt,n[1]*=Zt,n},t}function _A(e,t,n,r,i,s){if(n){var a=Et(t),o=ft(t),l=r*n;i==null?(i=t+r*de,s=t-l/2):(i=Qf(a,i),s=Qf(a,s),(r>0?i<s:i>s)&&(i+=r*de));for(var c,u=i;r>0?u>s:u<s;u-=l)c=Nl([a,-o*Et(u),-o*ft(u)]),e.point(c[0],c[1])}}function Qf(e,t){t=br(t),t[0]-=e,Bl(t);var n=xA(-t[1]);return((-t[2]<0?-n:n)+de-mt)%de}function Jf(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:ye,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Xs(e,t){return vt(e[0]-t[0])<mt&&vt(e[1]-t[1])<mt}function js(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function tp(e,t,n,r,i){var s=[],a=[],o,l;if(e.forEach(function(p){if(!((g=p.length-1)<=0)){var g,v=p[0],m=p[g],y;if(Xs(v,m)){if(!v[2]&&!m[2]){for(i.lineStart(),o=0;o<g;++o)i.point((v=p[o])[0],v[1]);i.lineEnd();return}m[0]+=2*mt}s.push(y=new js(v,p,null,!0)),a.push(y.o=new js(v,null,y,!1)),s.push(y=new js(m,p,null,!1)),a.push(y.o=new js(m,null,y,!0))}}),!!s.length){for(a.sort(t),ep(s),ep(a),o=0,l=a.length;o<l;++o)a[o].e=n=!n;for(var c=s[0],u,d;;){for(var h=c,f=!0;h.v;)if((h=h.n)===c)return;u=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(o=0,l=u.length;o<l;++o)i.point((d=u[o])[0],d[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(f)for(u=h.p.z,o=u.length-1;o>=0;--o)i.point((d=u[o])[0],d[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,u=h.z,f=!f}while(!h.v);i.lineEnd()}}}function ep(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function Gl(e){return vt(e[0])<=lt?e[0]:fn(e[0])*((vt(e[0])+lt)%de-lt)}function wA(e,t){var n=Gl(t),r=t[1],i=ft(r),s=[ft(n),-Et(n),0],a=0,o=0,l=new kn;i===1?r=ie+mt:i===-1&&(r=-ie-mt);for(var c=0,u=e.length;c<u;++c)if(h=(d=e[c]).length)for(var d,h,f=d[h-1],p=Gl(f),g=f[1]/2+Ff,v=ft(g),m=Et(g),y=0;y<h;++y,p=S,v=x,m=C,f=E){var E=d[y],S=Gl(E),_=E[1]/2+Ff,x=ft(_),C=Et(_),D=S-p,G=D>=0?1:-1,k=G*D,O=k>lt,R=v*x;if(l.add(Hn(R*G*ft(k),m*C+R*Et(k))),a+=O?D+G*de:D,O^p>=n^S>=n){var I=qs(br(f),br(E));Bl(I);var $=qs(s,I);Bl($);var T=(O^D>=0?-1:1)*tn($[2]);(r>T||r===T&&(I[0]||I[1]))&&(o+=O^D>=0?1:-1)}}return(a<-mt||a<mt&&l<-Gf)^o&1}function np(e,t,n,r){return function(i){var s=t(i),a=Jf(),o=t(a),l=!1,c,u,d,h={point:f,lineStart:g,lineEnd:v,polygonStart:function(){h.point=m,h.lineStart=y,h.lineEnd=E,u=[],c=[]},polygonEnd:function(){h.point=f,h.lineStart=g,h.lineEnd=v,u=$d(u);var S=wA(c,r);u.length?(l||(i.polygonStart(),l=!0),tp(u,OA,S,n,i)):S&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(S,_){e(S,_)&&i.point(S,_)}function p(S,_){s.point(S,_)}function g(){h.point=p,s.lineStart()}function v(){h.point=f,s.lineEnd()}function m(S,_){d.push([S,_]),o.point(S,_)}function y(){o.lineStart(),d=[]}function E(){m(d[0][0],d[0][1]),o.lineEnd();var S=o.clean(),_=a.result(),x,C=_.length,D,G,k;if(d.pop(),c.push(d),d=null,!!C){if(S&1){if(G=_[0],(D=G.length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),x=0;x<D;++x)i.point((k=G[x])[0],k[1]);i.lineEnd()}return}C>1&&S&2&&_.push(_.pop().concat(_.shift())),u.push(_.filter(TA))}}return h}}function TA(e){return e.length>1}function OA(e,t){return((e=e.x)[0]<0?e[1]-ie-mt:ie-e[1])-((t=t.x)[0]<0?t[1]-ie-mt:ie-t[1])}const rp=np(function(){return!0},MA,AA,[-lt,-ie]);function MA(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(s,a){var o=s>0?lt:-lt,l=vt(s-t);vt(l-lt)<mt?(e.point(t,n=(n+a)/2>0?ie:-ie),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),e.point(s,n),i=0):r!==o&&l>=lt&&(vt(t-r)<mt&&(t-=r*mt),vt(s-o)<mt&&(s-=o*mt),n=CA(t,n,s,a),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),i=0),e.point(t=s,n=a),r=o},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function CA(e,t,n,r){var i,s,a=ft(e-n);return vt(a)>mt?zf((ft(t)*(s=Et(r))*ft(n)-ft(r)*(i=Et(t))*ft(e))/(i*s*a)):(t+r)/2}function AA(e,t,n,r){var i;if(e==null)i=n*ie,r.point(-lt,i),r.point(0,i),r.point(lt,i),r.point(lt,0),r.point(lt,-i),r.point(0,-i),r.point(-lt,-i),r.point(-lt,0),r.point(-lt,i);else if(vt(e[0]-t[0])>mt){var s=e[0]<t[0]?lt:-lt;i=n*s/2,r.point(-s,i),r.point(0,i),r.point(s,i)}else r.point(t[0],t[1])}function DA(e){var t=Et(e),n=6*Lt,r=t>0,i=vt(t)>mt;function s(u,d,h,f){_A(f,e,n,h,u,d)}function a(u,d){return Et(u)*Et(d)>t}function o(u){var d,h,f,p,g;return{lineStart:function(){p=f=!1,g=1},point:function(v,m){var y=[v,m],E,S=a(v,m),_=r?S?0:c(v,m):S?c(v+(v<0?lt:-lt),m):0;if(!d&&(p=f=S)&&u.lineStart(),S!==f&&(E=l(d,y),(!E||Xs(d,E)||Xs(y,E))&&(y[2]=1)),S!==f)g=0,S?(u.lineStart(),E=l(y,d),u.point(E[0],E[1])):(E=l(d,y),u.point(E[0],E[1],2),u.lineEnd()),d=E;else if(i&&d&&r^S){var x;!(_&h)&&(x=l(y,d,!0))&&(g=0,r?(u.lineStart(),u.point(x[0][0],x[0][1]),u.point(x[1][0],x[1][1]),u.lineEnd()):(u.point(x[1][0],x[1][1]),u.lineEnd(),u.lineStart(),u.point(x[0][0],x[0][1],3)))}S&&(!d||!Xs(d,y))&&u.point(y[0],y[1]),d=y,f=S,h=_},lineEnd:function(){f&&u.lineEnd(),d=null},clean:function(){return g|(p&&f)<<1}}}function l(u,d,h){var f=br(u),p=br(d),g=[1,0,0],v=qs(f,p),m=Ws(v,v),y=v[0],E=m-y*y;if(!E)return!h&&u;var S=t*m/E,_=-t*y/E,x=qs(g,v),C=Ys(g,S),D=Ys(v,_);Ul(C,D);var G=x,k=Ws(C,G),O=Ws(G,G),R=k*k-O*(Ws(C,C)-1);if(!(R<0)){var I=Ce(R),$=Ys(G,(-k-I)/O);if(Ul($,C),$=Nl($),!h)return $;var T=u[0],B=d[0],N=u[1],U=d[1],V;B<T&&(V=T,T=B,B=V);var q=B-T,X=vt(q-lt)<mt,J=X||q<mt;if(!X&&U<N&&(V=N,N=U,U=V),J?X?N+U>0^$[1]<(vt($[0]-T)<mt?N:U):N<=$[1]&&$[1]<=U:q>lt^(T<=$[0]&&$[0]<=B)){var ct=Ys(G,(-k+I)/O);return Ul(ct,C),[$,Nl(ct)]}}}function c(u,d){var h=r?e:lt-e,f=0;return u<-h?f|=1:u>h&&(f|=2),d<-h?f|=4:d>h&&(f|=8),f}return np(a,o,s,r?[0,-e]:[-lt,e-lt])}function LA(e,t,n,r,i,s){var a=e[0],o=e[1],l=t[0],c=t[1],u=0,d=1,h=l-a,f=c-o,p;if(p=n-a,!(!h&&p>0)){if(p/=h,h<0){if(p<u)return;p<d&&(d=p)}else if(h>0){if(p>d)return;p>u&&(u=p)}if(p=i-a,!(!h&&p<0)){if(p/=h,h<0){if(p>d)return;p>u&&(u=p)}else if(h>0){if(p<u)return;p<d&&(d=p)}if(p=r-o,!(!f&&p>0)){if(p/=f,f<0){if(p<u)return;p<d&&(d=p)}else if(f>0){if(p>d)return;p>u&&(u=p)}if(p=s-o,!(!f&&p<0)){if(p/=f,f<0){if(p>d)return;p>u&&(u=p)}else if(f>0){if(p<u)return;p<d&&(d=p)}return u>0&&(e[0]=a+u*h,e[1]=o+u*f),d<1&&(t[0]=a+d*h,t[1]=o+d*f),!0}}}}}var mi=1e9,Zs=-mi;function RA(e,t,n,r){function i(c,u){return e<=c&&c<=n&&t<=u&&u<=r}function s(c,u,d,h){var f=0,p=0;if(c==null||(f=a(c,d))!==(p=a(u,d))||l(c,u)<0^d>0)do h.point(f===0||f===3?e:n,f>1?r:t);while((f=(f+d+4)%4)!==p);else h.point(u[0],u[1])}function a(c,u){return vt(c[0]-e)<mt?u>0?0:3:vt(c[0]-n)<mt?u>0?2:1:vt(c[1]-t)<mt?u>0?1:0:u>0?3:2}function o(c,u){return l(c.x,u.x)}function l(c,u){var d=a(c,1),h=a(u,1);return d!==h?d-h:d===0?u[1]-c[1]:d===1?c[0]-u[0]:d===2?c[1]-u[1]:u[0]-c[0]}return function(c){var u=c,d=Jf(),h,f,p,g,v,m,y,E,S,_,x,C={point:D,lineStart:R,lineEnd:I,polygonStart:k,polygonEnd:O};function D(T,B){i(T,B)&&u.point(T,B)}function G(){for(var T=0,B=0,N=f.length;B<N;++B)for(var U=f[B],V=1,q=U.length,X=U[0],J,ct,W=X[0],K=X[1];V<q;++V)J=W,ct=K,X=U[V],W=X[0],K=X[1],ct<=r?K>r&&(W-J)*(r-ct)>(K-ct)*(e-J)&&++T:K<=r&&(W-J)*(r-ct)<(K-ct)*(e-J)&&--T;return T}function k(){u=d,h=[],f=[],x=!0}function O(){var T=G(),B=x&&T,N=(h=$d(h)).length;(B||N)&&(c.polygonStart(),B&&(c.lineStart(),s(null,null,1,c),c.lineEnd()),N&&tp(h,o,T,s,c),c.polygonEnd()),u=c,h=f=p=null}function R(){C.point=$,f&&f.push(p=[]),_=!0,S=!1,y=E=NaN}function I(){h&&($(g,v),m&&S&&d.rejoin(),h.push(d.result())),C.point=D,S&&u.lineEnd()}function $(T,B){var N=i(T,B);if(f&&p.push([T,B]),_)g=T,v=B,m=N,_=!1,N&&(u.lineStart(),u.point(T,B));else if(N&&S)u.point(T,B);else{var U=[y=Math.max(Zs,Math.min(mi,y)),E=Math.max(Zs,Math.min(mi,E))],V=[T=Math.max(Zs,Math.min(mi,T)),B=Math.max(Zs,Math.min(mi,B))];LA(U,V,e,t,n,r)?(S||(u.lineStart(),u.point(U[0],U[1])),u.point(V[0],V[1]),N||u.lineEnd(),x=!1):N&&(u.lineStart(),u.point(T,B),x=!1)}y=T,E=B,S=N}return C}}const Fl=e=>e;var zl=new kn,Wl=new kn,ip,sp,ql,Yl,pn={point:ye,lineStart:ye,lineEnd:ye,polygonStart:function(){pn.lineStart=IA,pn.lineEnd=$A},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=ye,zl.add(vt(Wl)),Wl=new kn},result:function(){var e=zl/2;return zl=new kn,e}};function IA(){pn.point=kA}function kA(e,t){pn.point=ap,ip=ql=e,sp=Yl=t}function ap(e,t){Wl.add(Yl*e-ql*t),ql=e,Yl=t}function $A(){ap(ip,sp)}const op=pn;var Er=1/0,Ks=Er,vi=-Er,Qs=vi,PA={point:NA,lineStart:ye,lineEnd:ye,polygonStart:ye,polygonEnd:ye,result:function(){var e=[[Er,Ks],[vi,Qs]];return vi=Qs=-(Ks=Er=1/0),e}};function NA(e,t){e<Er&&(Er=e),e>vi&&(vi=e),t<Ks&&(Ks=t),t>Qs&&(Qs=t)}const Js=PA;var Xl=0,jl=0,yi=0,ta=0,ea=0,xr=0,Zl=0,Kl=0,bi=0,lp,cp,He,Ge,Ae={point:Gn,lineStart:up,lineEnd:hp,polygonStart:function(){Ae.lineStart=VA,Ae.lineEnd=HA},polygonEnd:function(){Ae.point=Gn,Ae.lineStart=up,Ae.lineEnd=hp},result:function(){var e=bi?[Zl/bi,Kl/bi]:xr?[ta/xr,ea/xr]:yi?[Xl/yi,jl/yi]:[NaN,NaN];return Xl=jl=yi=ta=ea=xr=Zl=Kl=bi=0,e}};function Gn(e,t){Xl+=e,jl+=t,++yi}function up(){Ae.point=UA}function UA(e,t){Ae.point=BA,Gn(He=e,Ge=t)}function BA(e,t){var n=e-He,r=t-Ge,i=Ce(n*n+r*r);ta+=i*(He+e)/2,ea+=i*(Ge+t)/2,xr+=i,Gn(He=e,Ge=t)}function hp(){Ae.point=Gn}function VA(){Ae.point=GA}function HA(){dp(lp,cp)}function GA(e,t){Ae.point=dp,Gn(lp=He=e,cp=Ge=t)}function dp(e,t){var n=e-He,r=t-Ge,i=Ce(n*n+r*r);ta+=i*(He+e)/2,ea+=i*(Ge+t)/2,xr+=i,i=Ge*e-He*t,Zl+=i*(He+e),Kl+=i*(Ge+t),bi+=i*3,Gn(He=e,Ge=t)}const fp=Ae;function pp(e){this._context=e}pp.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,de);break}}},result:ye};var Ql=new kn,Jl,gp,mp,Ei,xi,na={point:ye,lineStart:function(){na.point=FA},lineEnd:function(){Jl&&vp(gp,mp),na.point=ye},polygonStart:function(){Jl=!0},polygonEnd:function(){Jl=null},result:function(){var e=+Ql;return Ql=new kn,e}};function FA(e,t){na.point=vp,gp=Ei=e,mp=xi=t}function vp(e,t){Ei-=e,xi-=t,Ql.add(Ce(Ei*Ei+xi*xi)),Ei=e,xi=t}const yp=na;let bp,ra,Ep,xp;class Sp{constructor(t){this._append=t==null?_p:zA(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==Ep||this._append!==ra){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,Ep=r,ra=this._append,xp=this._,this._=i}this._+=xp;break}}}result(){const t=this._;return this._="",t.length?t:null}}function _p(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function zA(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return _p;if(t!==bp){const n=10**t;bp=t,ra=function(i){let s=1;this._+=i[0];for(const a=i.length;s<a;++s)this._+=Math.round(arguments[s]*n)/n+i[s]}}return ra}function WA(e,t){let n=3,r=4.5,i,s;function a(o){return o&&(typeof r=="function"&&s.pointRadius(+r.apply(this,arguments)),yr(o,i(s))),s.result()}return a.area=function(o){return yr(o,i(op)),op.result()},a.measure=function(o){return yr(o,i(yp)),yp.result()},a.bounds=function(o){return yr(o,i(Js)),Js.result()},a.centroid=function(o){return yr(o,i(fp)),fp.result()},a.projection=function(o){return arguments.length?(i=o==null?(e=null,Fl):(e=o).stream,a):e},a.context=function(o){return arguments.length?(s=o==null?(t=null,new Sp(n)):new pp(t=o),typeof r!="function"&&s.pointRadius(r),a):t},a.pointRadius=function(o){return arguments.length?(r=typeof o=="function"?o:(s.pointRadius(+o),+o),a):r},a.digits=function(o){if(!arguments.length)return n;if(o==null)n=null;else{const l=Math.floor(o);if(!(l>=0))throw new RangeError(`invalid digits: ${o}`);n=l}return t===null&&(s=new Sp(n)),a},a.projection(e).digits(n).context(t)}function tc(e){return function(t){var n=new ec;for(var r in e)n[r]=e[r];return n.stream=t,n}}function ec(){}ec.prototype={constructor:ec,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function nc(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),yr(n,e.stream(Js)),t(Js.result()),r!=null&&e.clipExtent(r),e}function wp(e,t,n){return nc(e,function(r){var i=t[1][0]-t[0][0],s=t[1][1]-t[0][1],a=Math.min(i/(r[1][0]-r[0][0]),s/(r[1][1]-r[0][1])),o=+t[0][0]+(i-a*(r[1][0]+r[0][0]))/2,l=+t[0][1]+(s-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,l])},n)}function qA(e,t,n){return wp(e,[[0,0],t],n)}function YA(e,t,n){return nc(e,function(r){var i=+t,s=i/(r[1][0]-r[0][0]),a=(i-s*(r[1][0]+r[0][0]))/2,o=-s*r[0][1];e.scale(150*s).translate([a,o])},n)}function XA(e,t,n){return nc(e,function(r){var i=+t,s=i/(r[1][1]-r[0][1]),a=-s*r[0][0],o=(i-s*(r[1][1]+r[0][1]))/2;e.scale(150*s).translate([a,o])},n)}var Tp=16,jA=Et(30*Lt);function Op(e,t){return+t?KA(e,t):ZA(e)}function ZA(e){return tc({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function KA(e,t){function n(r,i,s,a,o,l,c,u,d,h,f,p,g,v){var m=c-r,y=u-i,E=m*m+y*y;if(E>4*t&&g--){var S=a+h,_=o+f,x=l+p,C=Ce(S*S+_*_+x*x),D=tn(x/=C),G=vt(vt(x)-1)<mt||vt(s-d)<mt?(s+d)/2:Hn(_,S),k=e(G,D),O=k[0],R=k[1],I=O-r,$=R-i,T=y*I-m*$;(T*T/E>t||vt((m*I+y*$)/E-.5)>.3||a*h+o*f+l*p<jA)&&(n(r,i,s,a,o,l,O,R,G,S/=C,_/=C,x,g,v),v.point(O,R),n(O,R,G,S,_,x,c,u,d,h,f,p,g,v))}}return function(r){var i,s,a,o,l,c,u,d,h,f,p,g,v={point:m,lineStart:y,lineEnd:S,polygonStart:function(){r.polygonStart(),v.lineStart=_},polygonEnd:function(){r.polygonEnd(),v.lineStart=y}};function m(D,G){D=e(D,G),r.point(D[0],D[1])}function y(){d=NaN,v.point=E,r.lineStart()}function E(D,G){var k=br([D,G]),O=e(D,G);n(d,h,u,f,p,g,d=O[0],h=O[1],u=D,f=k[0],p=k[1],g=k[2],Tp,r),r.point(d,h)}function S(){v.point=m,r.lineEnd()}function _(){y(),v.point=x,v.lineEnd=C}function x(D,G){E(i=D,G),s=d,a=h,o=f,l=p,c=g,v.point=E}function C(){n(d,h,u,f,p,g,s,a,i,o,l,c,Tp,r),v.lineEnd=S,S()}return v}}var QA=tc({point:function(e,t){this.stream.point(e*Lt,t*Lt)}});function JA(e){return tc({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function tD(e,t,n,r,i){function s(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return s.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},s}function Mp(e,t,n,r,i,s){if(!s)return tD(e,t,n,r,i);var a=Et(s),o=ft(s),l=a*e,c=o*e,u=a/e,d=o/e,h=(o*n-a*t)/e,f=(o*t+a*n)/e;function p(g,v){return g*=r,v*=i,[l*g-c*v+t,n-c*g-l*v]}return p.invert=function(g,v){return[r*(u*g-d*v+h),i*(f-d*g-u*v)]},p}function ia(e){return Cp(function(){return e})()}function Cp(e){var t,n=150,r=480,i=250,s=0,a=0,o=0,l=0,c=0,u,d=0,h=1,f=1,p=null,g=rp,v=null,m,y,E,S=Fl,_=.5,x,C,D,G,k;function O(T){return D(T[0]*Lt,T[1]*Lt)}function R(T){return T=D.invert(T[0],T[1]),T&&[T[0]*Zt,T[1]*Zt]}O.stream=function(T){return G&&k===T?G:G=QA(JA(u)(g(x(S(k=T)))))},O.preclip=function(T){return arguments.length?(g=T,p=void 0,$()):g},O.postclip=function(T){return arguments.length?(S=T,v=m=y=E=null,$()):S},O.clipAngle=function(T){return arguments.length?(g=+T?DA(p=T*Lt):(p=null,rp),$()):p*Zt},O.clipExtent=function(T){return arguments.length?(S=T==null?(v=m=y=E=null,Fl):RA(v=+T[0][0],m=+T[0][1],y=+T[1][0],E=+T[1][1]),$()):v==null?null:[[v,m],[y,E]]},O.scale=function(T){return arguments.length?(n=+T,I()):n},O.translate=function(T){return arguments.length?(r=+T[0],i=+T[1],I()):[r,i]},O.center=function(T){return arguments.length?(s=T[0]%360*Lt,a=T[1]%360*Lt,I()):[s*Zt,a*Zt]},O.rotate=function(T){return arguments.length?(o=T[0]%360*Lt,l=T[1]%360*Lt,c=T.length>2?T[2]%360*Lt:0,I()):[o*Zt,l*Zt,c*Zt]},O.angle=function(T){return arguments.length?(d=T%360*Lt,I()):d*Zt},O.reflectX=function(T){return arguments.length?(h=T?-1:1,I()):h<0},O.reflectY=function(T){return arguments.length?(f=T?-1:1,I()):f<0},O.precision=function(T){return arguments.length?(x=Op(C,_=T*T),$()):Ce(_)},O.fitExtent=function(T,B){return wp(O,T,B)},O.fitSize=function(T,B){return qA(O,T,B)},O.fitWidth=function(T,B){return YA(O,T,B)},O.fitHeight=function(T,B){return XA(O,T,B)};function I(){var T=Mp(n,0,0,h,f,d).apply(null,t(s,a)),B=Mp(n,r-T[0],i-T[1],h,f,d);return u=Xf(o,l,c),C=Vl(t,B),D=Vl(u,C),x=Op(C,_),$()}function $(){return G=k=null,O}return function(){return t=e.apply(this,arguments),O.invert=t.invert&&R,I()}}function Ap(e){var t=0,n=lt/3,r=Cp(e),i=r(t,n);return i.parallels=function(s){return arguments.length?r(t=s[0]*Lt,n=s[1]*Lt):[t*Zt,n*Zt]},i}function eD(e){var t=Et(e);function n(r,i){return[r*t,ft(i)/t]}return n.invert=function(r,i){return[r/t,tn(i*t)]},n}function nD(e,t){var n=ft(e),r=(n+ft(t))/2;if(vt(r)<mt)return eD(e);var i=1+n*(2*r-n),s=Ce(i)/r;function a(o,l){var c=Ce(i-2*r*ft(l))/r;return[c*ft(o*=r),s-c*Et(o)]}return a.invert=function(o,l){var c=s-l,u=Hn(o,vt(c))*fn(c);return c*r<0&&(u-=lt*fn(o)*fn(c)),[u/r,tn((i-(o*o+c*c)*r*r)/(2*r))]},a}function Dp(){return Ap(nD).scale(155.424).center([0,33.6442])}function rD(){return Dp().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function rc(e,t){return[e,bA(EA((ie+t)/2))]}rc.invert=function(e,t){return[e,2*zf(yA(t))-ie]};function iD(){return sD(rc).scale(961/de)}function sD(e){var t=ia(e),n=t.center,r=t.scale,i=t.translate,s=t.clipExtent,a=null,o,l,c;t.scale=function(d){return arguments.length?(r(d),u()):r()},t.translate=function(d){return arguments.length?(i(d),u()):i()},t.center=function(d){return arguments.length?(n(d),u()):n()},t.clipExtent=function(d){return arguments.length?(d==null?a=o=l=c=null:(a=+d[0][0],o=+d[0][1],l=+d[1][0],c=+d[1][1]),u()):a==null?null:[[a,o],[l,c]]};function u(){var d=lt*r(),h=t(SA(t.rotate()).invert([0,0]));return s(a==null?[[h[0]-d,h[1]-d],[h[0]+d,h[1]+d]]:e===rc?[[Math.max(h[0]-d,a),o],[Math.min(h[0]+d,l),c]]:[[a,Math.max(h[1]-d,o)],[l,Math.min(h[1]+d,c)]])}return u()}function sa(e,t){return[e,t]}sa.invert=sa;function aD(){return ia(sa).scale(152.63)}function oD(e,t){var n=Et(e),r=e===t?ft(e):(n-Et(t))/(t-e),i=n/r+e;if(vt(r)<mt)return sa;function s(a,o){var l=i-o,c=r*a;return[l*ft(c),i-l*Et(c)]}return s.invert=function(a,o){var l=i-o,c=Hn(a,vt(l))*fn(l);return l*r<0&&(c-=lt*fn(a)*fn(l)),[c/r,i-fn(r)*Ce(a*a+l*l)]},s}function lD(){return Ap(oD).scale(131.154).center([0,13.9389])}var Si=1.340264,_i=-.081106,wi=893e-6,Ti=.003796,aa=Ce(3)/2,cD=12;function Lp(e,t){var n=tn(aa*ft(t)),r=n*n,i=r*r*r;return[e*Et(n)/(aa*(Si+3*_i*r+i*(7*wi+9*Ti*r))),n*(Si+_i*r+i*(wi+Ti*r))]}Lp.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,s=0,a,o,l;s<cD&&(o=n*(Si+_i*r+i*(wi+Ti*r))-t,l=Si+3*_i*r+i*(7*wi+9*Ti*r),n-=a=o/l,r=n*n,i=r*r*r,!(vt(a)<Gf));++s);return[aa*e*(Si+3*_i*r+i*(7*wi+9*Ti*r))/Et(n),tn(ft(n)/aa)]};function uD(){return ia(Lp).scale(177.158)}function Rp(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}Rp.invert=function(e,t){var n=t,r=25,i;do{var s=n*n,a=s*s;n-=i=(n*(1.007226+s*(.015085+a*(-.044475+.028874*s-.005916*a)))-t)/(1.007226+s*(.015085*3+a*(-.044475*7+.028874*9*s-.005916*11*a)))}while(vt(i)>mt&&--r>0);return[e/(.8707+(s=n*n)*(-.131979+s*(-.013791+s*s*s*(.003971-.001529*s)))),n]};function hD(){return ia(Rp).scale(175.295)}function dD(e,t){return e.parent===t.parent?1:2}function fD(e){return e.reduce(pD,0)/e.length}function pD(e,t){return e+t.x}function gD(e){return 1+e.reduce(mD,0)}function mD(e,t){return Math.max(e,t.y)}function vD(e){for(var t;t=e.children;)e=t[0];return e}function yD(e){for(var t;t=e.children;)e=t[t.length-1];return e}function bD(){var e=dD,t=1,n=1,r=!1;function i(s){var a,o=0;s.eachAfter(function(h){var f=h.children;f?(h.x=fD(f),h.y=gD(f)):(h.x=a?o+=e(h,a):0,h.y=0,a=h)});var l=vD(s),c=yD(s),u=l.x-e(l,c)/2,d=c.x+e(c,l)/2;return s.eachAfter(r?function(h){h.x=(h.x-s.x)*t,h.y=(s.y-h.y)*n}:function(h){h.x=(h.x-u)/(d-u)*t,h.y=(1-(s.y?h.y/s.y:1))*n})}return i.separation=function(s){return arguments.length?(e=s,i):e},i.size=function(s){return arguments.length?(r=!1,t=+s[0],n=+s[1],i):r?null:[t,n]},i.nodeSize=function(s){return arguments.length?(r=!0,t=+s[0],n=+s[1],i):r?[t,n]:null},i}function ED(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function xD(){return this.eachAfter(ED)}function SD(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function _D(e,t){for(var n=this,r=[n],i,s,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(s=i.length-1;s>=0;--s)r.push(i[s]);return this}function wD(e,t){for(var n=this,r=[n],i=[],s,a,o,l=-1;n=r.pop();)if(i.push(n),s=n.children)for(a=0,o=s.length;a<o;++a)r.push(s[a]);for(;n=i.pop();)e.call(t,n,++l,this);return this}function TD(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function OD(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function MD(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function CD(e){for(var t=this,n=AD(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function AD(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function DD(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function LD(){return Array.from(this)}function RD(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function ID(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*kD(){var e=this,t,n=[e],r,i,s;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,s=r.length;i<s;++i)n.push(r[i]);while(n.length)}function Oi(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=ND)):t===void 0&&(t=PD);for(var n=new Mi(e),r,i=[n],s,a,o,l;r=i.pop();)if((a=t(r.data))&&(l=(a=Array.from(a)).length))for(r.children=a,o=l-1;o>=0;--o)i.push(s=a[o]=new Mi(a[o])),s.parent=r,s.depth=r.depth+1;return n.eachBefore(BD)}function $D(){return Oi(this).eachBefore(UD)}function PD(e){return e.children}function ND(e){return Array.isArray(e)?e[1]:null}function UD(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function BD(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Mi(e){this.data=e,this.depth=this.height=0,this.parent=null}Mi.prototype=Oi.prototype={constructor:Mi,count:xD,each:SD,eachAfter:wD,eachBefore:_D,find:TD,sum:OD,sort:MD,path:CD,ancestors:DD,descendants:LD,leaves:RD,links:ID,copy:$D,[Symbol.iterator]:kD};function VD(e){return e==null?null:Ip(e)}function Ip(e){if(typeof e!="function")throw new Error;return e}function Fn(){return 0}function Sr(e){return function(){return e}}const HD=1664525,GD=1013904223,kp=4294967296;function FD(){let e=1;return()=>(e=(HD*e+GD)%kp)/kp}function zD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function WD(e,t){let n=e.length,r,i;for(;n;)i=t()*n--|0,r=e[n],e[n]=e[i],e[i]=r;return e}function qD(e,t){for(var n=0,r=(e=WD(Array.from(e),t)).length,i=[],s,a;n<r;)s=e[n],a&&$p(a,s)?++n:(a=XD(i=YD(i,s)),n=0);return a}function YD(e,t){var n,r;if(ic(t,e))return[t];for(n=0;n<e.length;++n)if(oa(t,e[n])&&ic(Ci(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(oa(Ci(e[n],e[r]),t)&&oa(Ci(e[n],t),e[r])&&oa(Ci(e[r],t),e[n])&&ic(Pp(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function oa(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function $p(e,t){var n=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function ic(e,t){for(var n=0;n<t.length;++n)if(!$p(e,t[n]))return!1;return!0}function XD(e){switch(e.length){case 1:return jD(e[0]);case 2:return Ci(e[0],e[1]);case 3:return Pp(e[0],e[1],e[2])}}function jD(e){return{x:e.x,y:e.y,r:e.r}}function Ci(e,t){var n=e.x,r=e.y,i=e.r,s=t.x,a=t.y,o=t.r,l=s-n,c=a-r,u=o-i,d=Math.sqrt(l*l+c*c);return{x:(n+s+l/d*u)/2,y:(r+a+c/d*u)/2,r:(d+i+o)/2}}function Pp(e,t,n){var r=e.x,i=e.y,s=e.r,a=t.x,o=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=r-a,f=r-c,p=i-o,g=i-u,v=l-s,m=d-s,y=r*r+i*i-s*s,E=y-a*a-o*o+l*l,S=y-c*c-u*u+d*d,_=f*p-h*g,x=(p*S-g*E)/(_*2)-r,C=(g*v-p*m)/_,D=(f*E-h*S)/(_*2)-i,G=(h*m-f*v)/_,k=C*C+G*G-1,O=2*(s+x*C+D*G),R=x*x+D*D-s*s,I=-(Math.abs(k)>1e-6?(O+Math.sqrt(O*O-4*k*R))/(2*k):R/O);return{x:r+x+C*I,y:i+D+G*I,r:I}}function Np(e,t,n){var r=e.x-t.x,i,s,a=e.y-t.y,o,l,c=r*r+a*a;c?(s=t.r+n.r,s*=s,l=e.r+n.r,l*=l,s>l?(i=(c+l-s)/(2*c),o=Math.sqrt(Math.max(0,l/c-i*i)),n.x=e.x-i*r-o*a,n.y=e.y-i*a+o*r):(i=(c+s-l)/(2*c),o=Math.sqrt(Math.max(0,s/c-i*i)),n.x=t.x+i*r-o*a,n.y=t.y+i*a+o*r)):(n.x=t.x+n.r,n.y=t.y)}function Up(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Bp(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,s=(t.y*n.r+n.y*t.r)/r;return i*i+s*s}function la(e){this._=e,this.next=null,this.previous=null}function ZD(e,t){if(!(s=(e=zD(e)).length))return 0;var n,r,i,s,a,o,l,c,u,d,h;if(n=e[0],n.x=0,n.y=0,!(s>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(s>2))return n.r+r.r;Np(r,n,i=e[2]),n=new la(n),r=new la(r),i=new la(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(l=3;l<s;++l){Np(n._,r._,i=e[l]),i=new la(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do if(d<=h){if(Up(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue t}d+=c._.r,c=c.next}else{if(Up(u._,i._)){n=u,n.next=r,r.previous=n,--l;continue t}h+=u._.r,u=u.previous}while(c!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,a=Bp(n);(i=i.next)!==r;)(o=Bp(i))<a&&(n=i,a=o);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=qD(n,t),l=0;l<s;++l)n=e[l],n.x-=i.x,n.y-=i.y;return i.r}function KD(e){return Math.sqrt(e.value)}function QD(){var e=null,t=1,n=1,r=Fn;function i(s){const a=FD();return s.x=t/2,s.y=n/2,e?s.eachBefore(Vp(e)).eachAfter(sc(r,.5,a)).eachBefore(Hp(1)):s.eachBefore(Vp(KD)).eachAfter(sc(Fn,1,a)).eachAfter(sc(r,s.r/Math.min(t,n),a)).eachBefore(Hp(Math.min(t,n)/(2*s.r))),s}return i.radius=function(s){return arguments.length?(e=VD(s),i):e},i.size=function(s){return arguments.length?(t=+s[0],n=+s[1],i):[t,n]},i.padding=function(s){return arguments.length?(r=typeof s=="function"?s:Sr(+s),i):r},i}function Vp(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function sc(e,t,n){return function(r){if(i=r.children){var i,s,a=i.length,o=e(r)*t||0,l;if(o)for(s=0;s<a;++s)i[s].r+=o;if(l=ZD(i,n),o)for(s=0;s<a;++s)i[s].r-=o;r.r=l+o}}}function Hp(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function JD(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function tL(e,t,n,r,i){for(var s=e.children,a,o=-1,l=s.length,c=e.value&&(r-t)/e.value;++o<l;)a=s[o],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}function eL(e,t){return e.parent===t.parent?1:2}function ac(e){var t=e.children;return t?t[0]:e.t}function oc(e){var t=e.children;return t?t[t.length-1]:e.t}function nL(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function rL(e){for(var t=0,n=0,r=e.children,i=r.length,s;--i>=0;)s=r[i],s.z+=t,s.m+=t,t+=s.s+(n+=s.c)}function iL(e,t,n){return e.a.parent===t.parent?e.a:n}function ca(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}ca.prototype=Object.create(Mi.prototype);function sL(e){for(var t=new ca(e,0),n,r=[t],i,s,a,o;n=r.pop();)if(s=n._.children)for(n.children=new Array(o=s.length),a=o-1;a>=0;--a)r.push(i=n.children[a]=new ca(s[a],a)),i.parent=n;return(t.parent=new ca(null,0)).children=[t],t}function aL(){var e=eL,t=1,n=1,r=null;function i(c){var u=sL(c);if(u.eachAfter(s),u.parent.m=-u.z,u.eachBefore(a),r)c.eachBefore(l);else{var d=c,h=c,f=c;c.eachBefore(function(y){y.x<d.x&&(d=y),y.x>h.x&&(h=y),y.depth>f.depth&&(f=y)});var p=d===h?1:e(d,h)/2,g=p-d.x,v=t/(h.x+p+g),m=n/(f.depth||1);c.eachBefore(function(y){y.x=(y.x+g)*v,y.y=y.depth*m})}return c}function s(c){var u=c.children,d=c.parent.children,h=c.i?d[c.i-1]:null;if(u){rL(c);var f=(u[0].z+u[u.length-1].z)/2;h?(c.z=h.z+e(c._,h._),c.m=c.z-f):c.z=f}else h&&(c.z=h.z+e(c._,h._));c.parent.A=o(c,h,c.parent.A||d[0])}function a(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function o(c,u,d){if(u){for(var h=c,f=c,p=u,g=h.parent.children[0],v=h.m,m=f.m,y=p.m,E=g.m,S;p=oc(p),h=ac(h),p&&h;)g=ac(g),f=oc(f),f.a=c,S=p.z+y-h.z-v+e(p._,h._),S>0&&(nL(iL(p,c,d),c,S),v+=S,m+=S),y+=p.m,v+=h.m,E+=g.m,m+=f.m;p&&!oc(f)&&(f.t=p,f.m+=y-m),h&&!ac(g)&&(g.t=h,g.m+=v-E,d=c)}return d}function l(c){c.x*=t,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,t=+c[0],n=+c[1],i):r?null:[t,n]},i.nodeSize=function(c){return arguments.length?(r=!0,t=+c[0],n=+c[1],i):r?[t,n]:null},i}function oL(e,t,n,r,i){for(var s=e.children,a,o=-1,l=s.length,c=e.value&&(i-n)/e.value;++o<l;)a=s[o],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}var lL=(1+Math.sqrt(5))/2;function cL(e,t,n,r,i,s){for(var a=[],o=t.children,l,c,u=0,d=0,h=o.length,f,p,g=t.value,v,m,y,E,S,_,x;u<h;){f=i-n,p=s-r;do v=o[d++].value;while(!v&&d<h);for(m=y=v,_=Math.max(p/f,f/p)/(g*e),x=v*v*_,S=Math.max(y/x,x/m);d<h;++d){if(v+=c=o[d].value,c<m&&(m=c),c>y&&(y=c),x=v*v*_,E=Math.max(y/x,x/m),E>S){v-=c;break}S=E}a.push(l={value:v,dice:f<p,children:o.slice(u,d)}),l.dice?tL(l,n,r,i,g?r+=p*v/g:s):oL(l,n,r,g?n+=f*v/g:i,s),g-=v,u=d}return a}const uL=function e(t){function n(r,i,s,a,o){cL(t,r,i,s,a,o)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(lL);function hL(){var e=uL,t=!1,n=1,r=1,i=[0],s=Fn,a=Fn,o=Fn,l=Fn,c=Fn;function u(h){return h.x0=h.y0=0,h.x1=n,h.y1=r,h.eachBefore(d),i=[0],t&&h.eachBefore(JD),h}function d(h){var f=i[h.depth],p=h.x0+f,g=h.y0+f,v=h.x1-f,m=h.y1-f;v<p&&(p=v=(p+v)/2),m<g&&(g=m=(g+m)/2),h.x0=p,h.y0=g,h.x1=v,h.y1=m,h.children&&(f=i[h.depth+1]=s(h)/2,p+=c(h)-f,g+=a(h)-f,v-=o(h)-f,m-=l(h)-f,v<p&&(p=v=(p+v)/2),m<g&&(g=m=(g+m)/2),e(h,p,g,v,m))}return u.round=function(h){return arguments.length?(t=!!h,u):t},u.size=function(h){return arguments.length?(n=+h[0],r=+h[1],u):[n,r]},u.tile=function(h){return arguments.length?(e=Ip(h),u):e},u.padding=function(h){return arguments.length?u.paddingInner(h).paddingOuter(h):u.paddingInner()},u.paddingInner=function(h){return arguments.length?(s=typeof h=="function"?h:Sr(+h),u):s},u.paddingOuter=function(h){return arguments.length?u.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):u.paddingTop()},u.paddingTop=function(h){return arguments.length?(a=typeof h=="function"?h:Sr(+h),u):a},u.paddingRight=function(h){return arguments.length?(o=typeof h=="function"?h:Sr(+h),u):o},u.paddingBottom=function(h){return arguments.length?(l=typeof h=="function"?h:Sr(+h),u):l},u.paddingLeft=function(h){return arguments.length?(c=typeof h=="function"?h:Sr(+h),u):c},u}function _r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Gp=Symbol("implicit");function ua(){var e=new Ld,t=[],n=[],r=Gp;function i(s){let a=e.get(s);if(a===void 0){if(r!==Gp)return r;e.set(s,a=t.push(s)-1)}return n[a%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new Ld;for(const a of s)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return ua(t,n).unknown(r)},_r.apply(i,arguments),i}function Ai(){var e=ua().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,a,o=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var h=t().length,f=i<r,p=f?i:r,g=f?r:i;s=(g-p)/Math.max(1,h-l+c*2),o&&(s=Math.floor(s)),p+=(g-p-s*(h-l))*u,a=s*(1-l),o&&(p=Math.round(p),a=Math.round(a));var v=ET(h).map(function(m){return p+s*m});return n(f?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,o=!0,d()},e.bandwidth=function(){return a},e.step=function(){return s},e.round=function(h){return arguments.length?(o=!!h,d()):o},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),d()):u},e.copy=function(){return Ai(t(),[r,i]).round(o).paddingInner(l).paddingOuter(c).align(u)},_r.apply(d(),arguments)}function dL(e){return function(){return e}}function fL(e){return+e}var Fp=[0,1];function wr(e){return e}function lc(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:dL(isNaN(t)?NaN:.5)}function pL(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function gL(e,t,n){var r=e[0],i=e[1],s=t[0],a=t[1];return i<r?(r=lc(i,r),s=n(a,s)):(r=lc(r,i),s=n(s,a)),function(o){return s(r(o))}}function mL(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=lc(e[a],e[a+1]),s[a]=n(t[a],t[a+1]);return function(o){var l=Jo(e,o,1,r)-1;return s[l](i[l](o))}}function cc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function zp(){var e=Fp,t=Fp,n=ui,r,i,s,a=wr,o,l,c;function u(){var h=Math.min(e.length,t.length);return a!==wr&&(a=pL(e[0],e[h-1])),o=h>2?mL:gL,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?s:(l||(l=o(e.map(r),t,n)))(r(a(h)))}return d.invert=function(h){return a(i((c||(c=o(t,e.map(r),he)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,fL),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=hf,u()},d.clamp=function(h){return arguments.length?(a=h?!0:wr,u()):a!==wr},d.interpolate=function(h){return arguments.length?(n=h,u()):n},d.unknown=function(h){return arguments.length?(s=h,d):s},function(h,f){return r=h,i=f,u()}}function Wp(){return zp()(wr,wr)}function vL(e,t,n,r){var i=el(e,t,n),s;switch(r=gi(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=mA(i,a))&&(r.precision=s),Hf(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=vA(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=gA(i))&&(r.precision=s-(r.type==="%")*2);break}}return $l(r)}function qp(e){var t=e.domain;return e.ticks=function(n){var r=t();return bs(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return vL(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,a=r[i],o=r[s],l,c,u=10;for(o<a&&(c=a,a=o,o=c,c=i,i=s,s=c);u-- >0;){if(c=hr(a,o,n),c===l)return r[i]=a,r[s]=o,t(r);if(c>0)a=Math.floor(a/c)*c,o=Math.ceil(o/c)*c;else if(c<0)a=Math.ceil(a*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function De(){var e=Wp();return e.copy=function(){return cc(e,De())},_r.apply(e,arguments),qp(e)}function Yp(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),e[n]=t.floor(i),e[r]=t.ceil(s),e}function Xp(e){return Math.log(e)}function jp(e){return Math.exp(e)}function yL(e){return-Math.log(-e)}function bL(e){return-Math.exp(-e)}function EL(e){return isFinite(e)?+("1e"+e):e<0?0:e}function xL(e){return e===10?EL:e===Math.E?Math.exp:t=>Math.pow(e,t)}function SL(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Zp(e){return(t,n)=>-e(-t,n)}function _L(e){const t=e(Xp,jp),n=t.domain;let r=10,i,s;function a(){return i=SL(r),s=xL(r),n()[0]<0?(i=Zp(i),s=Zp(s),e(yL,bL)):e(Xp,jp),t}return t.base=function(o){return arguments.length?(r=+o,a()):r},t.domain=function(o){return arguments.length?(n(o),a()):n()},t.ticks=o=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let h=i(c),f=i(u),p,g;const v=o==null?10:+o;let m=[];if(!(r%1)&&f-h<v){if(h=Math.floor(h),f=Math.ceil(f),c>0){for(;h<=f;++h)for(p=1;p<r;++p)if(g=h<0?p/s(-h):p*s(h),!(g<c)){if(g>u)break;m.push(g)}}else for(;h<=f;++h)for(p=r-1;p>=1;--p)if(g=h>0?p/s(-h):p*s(h),!(g<c)){if(g>u)break;m.push(g)}m.length*2<v&&(m=bs(c,u,v))}else m=bs(h,f,Math.min(f-h,v)).map(s);return d?m.reverse():m},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=gi(l)).precision==null&&(l.trim=!0),l=$l(l)),o===1/0)return l;const c=Math.max(1,r*o/t.ticks().length);return u=>{let d=u/s(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(Yp(n(),{floor:o=>s(Math.floor(i(o))),ceil:o=>s(Math.ceil(i(o)))})),t}function Kp(){const e=_L(zp()).domain([1,10]);return e.copy=()=>cc(e,Kp()).base(e.base()),_r.apply(e,arguments),e}function uc(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function a(l){return l!=null&&l<=l?i[Jo(r,l,0,n)]:s}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,o()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(s=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return uc().domain([e,t]).range(i).unknown(s)},_r.apply(qp(a),arguments)}const hc=new Date,dc=new Date;function Ut(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const a=i(s),o=i.ceil(s);return s-a<o-s?a:o},i.offset=(s,a)=>(t(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,o)=>{const l=[];if(s=i.ceil(s),o=o==null?1:Math.floor(o),!(s<a)||!(o>0))return l;let c;do l.push(c=new Date(+s)),t(s,o),e(s);while(c<s&&s<a);return l},i.filter=s=>Ut(a=>{if(a>=a)for(;e(a),!s(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;t(a,-1),!s(a););else for(;--o>=0;)for(;t(a,1),!s(a););}),n&&(i.count=(s,a)=>(hc.setTime(+s),dc.setTime(+a),e(hc),e(dc),Math.floor(n(hc,dc))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const ha=Ut(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ha.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ut(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ha),ha.range;const en=1e3,be=en*60,nn=be*60,rn=nn*24,fc=rn*7,Qp=rn*30,pc=rn*365,Tr=Ut(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*en)},(e,t)=>(t-e)/en,e=>e.getUTCSeconds());Tr.range;const gc=Ut(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*en)},(e,t)=>{e.setTime(+e+t*be)},(e,t)=>(t-e)/be,e=>e.getMinutes());gc.range,Ut(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*be)},(e,t)=>(t-e)/be,e=>e.getUTCMinutes()).range;const mc=Ut(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*en-e.getMinutes()*be)},(e,t)=>{e.setTime(+e+t*nn)},(e,t)=>(t-e)/nn,e=>e.getHours());mc.range,Ut(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*nn)},(e,t)=>(t-e)/nn,e=>e.getUTCHours()).range;const Di=Ut(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*be)/rn,e=>e.getDate()-1);Di.range;const vc=Ut(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/rn,e=>e.getUTCDate()-1);vc.range,Ut(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/rn,e=>Math.floor(e/rn)).range;function zn(e){return Ut(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*be)/fc)}const da=zn(0),fa=zn(1),wL=zn(2),TL=zn(3),Or=zn(4),OL=zn(5),ML=zn(6);da.range,fa.range,wL.range,TL.range,Or.range,OL.range,ML.range;function Wn(e){return Ut(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/fc)}const Jp=Wn(0),pa=Wn(1),CL=Wn(2),AL=Wn(3),Mr=Wn(4),DL=Wn(5),LL=Wn(6);Jp.range,pa.range,CL.range,AL.range,Mr.range,DL.range,LL.range;const yc=Ut(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());yc.range,Ut(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()).range;const sn=Ut(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());sn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ut(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),sn.range;const qn=Ut(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());qn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ut(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),qn.range;function RL(e,t,n,r,i,s){const a=[[Tr,1,en],[Tr,5,5*en],[Tr,15,15*en],[Tr,30,30*en],[s,1,be],[s,5,5*be],[s,15,15*be],[s,30,30*be],[i,1,nn],[i,3,3*nn],[i,6,6*nn],[i,12,12*nn],[r,1,rn],[r,2,2*rn],[n,1,fc],[t,1,Qp],[t,3,3*Qp],[e,1,pc]];function o(c,u,d){const h=u<c;h&&([c,u]=[u,c]);const f=d&&typeof d.range=="function"?d:l(c,u,d),p=f?f.range(c,+u+1):[];return h?p.reverse():p}function l(c,u,d){const h=Math.abs(u-c)/d,f=Qo(([,,v])=>v).right(a,h);if(f===a.length)return e.every(el(c/pc,u/pc,d));if(f===0)return ha.every(Math.max(el(c,u,d),1));const[p,g]=a[h/a[f-1][2]<a[f][2]/h?f-1:f];return p.every(g)}return[o,l]}const[IL,kL]=RL(sn,yc,da,Di,mc,gc);function bc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ec(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Li(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $L(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,a=e.shortDays,o=e.months,l=e.shortMonths,c=Ri(i),u=Ii(i),d=Ri(s),h=Ii(s),f=Ri(a),p=Ii(a),g=Ri(o),v=Ii(o),m=Ri(l),y=Ii(l),E={a:N,A:U,b:V,B:q,c:null,d:sg,e:sg,f:iR,g:pR,G:mR,H:eR,I:nR,j:rR,L:ag,m:sR,M:aR,p:X,q:J,Q:dg,s:fg,S:oR,u:lR,U:cR,V:uR,w:hR,W:dR,x:null,X:null,y:fR,Y:gR,Z:vR,"%":hg},S={a:ct,A:W,b:K,B:ut,c:null,d:lg,e:lg,f:xR,g:LR,G:IR,H:yR,I:bR,j:ER,L:cg,m:SR,M:_R,p:rt,q:Ct,Q:dg,s:fg,S:wR,u:TR,U:OR,V:MR,w:CR,W:AR,x:null,X:null,y:DR,Y:RR,Z:kR,"%":hg},_={a:k,A:O,b:R,B:I,c:$,d:rg,e:rg,f:KL,g:ng,G:eg,H:ig,I:ig,j:YL,L:ZL,m:qL,M:XL,p:G,q:WL,Q:JL,s:tR,S:jL,u:VL,U:HL,V:GL,w:BL,W:FL,x:T,X:B,y:ng,Y:eg,Z:zL,"%":QL};E.x=x(n,E),E.X=x(r,E),E.c=x(t,E),S.x=x(n,S),S.X=x(r,S),S.c=x(t,S);function x(Y,H){return function(F){var P=[],pt=-1,bt=0,ee=Y.length,ne,et,Rt;for(F instanceof Date||(F=new Date(+F));++pt<ee;)Y.charCodeAt(pt)===37&&(P.push(Y.slice(bt,pt)),(et=tg[ne=Y.charAt(++pt)])!=null?ne=Y.charAt(++pt):et=ne==="e"?" ":"0",(Rt=H[ne])&&(ne=Rt(F,et)),P.push(ne),bt=pt+1);return P.push(Y.slice(bt,pt)),P.join("")}}function C(Y,H){return function(F){var P=Li(1900,void 0,1),pt=D(P,Y,F+="",0),bt,ee;if(pt!=F.length)return null;if("Q"in P)return new Date(P.Q);if("s"in P)return new Date(P.s*1e3+("L"in P?P.L:0));if(H&&!("Z"in P)&&(P.Z=0),"p"in P&&(P.H=P.H%12+P.p*12),P.m===void 0&&(P.m="q"in P?P.q:0),"V"in P){if(P.V<1||P.V>53)return null;"w"in P||(P.w=1),"Z"in P?(bt=Ec(Li(P.y,0,1)),ee=bt.getUTCDay(),bt=ee>4||ee===0?pa.ceil(bt):pa(bt),bt=vc.offset(bt,(P.V-1)*7),P.y=bt.getUTCFullYear(),P.m=bt.getUTCMonth(),P.d=bt.getUTCDate()+(P.w+6)%7):(bt=bc(Li(P.y,0,1)),ee=bt.getDay(),bt=ee>4||ee===0?fa.ceil(bt):fa(bt),bt=Di.offset(bt,(P.V-1)*7),P.y=bt.getFullYear(),P.m=bt.getMonth(),P.d=bt.getDate()+(P.w+6)%7)}else("W"in P||"U"in P)&&("w"in P||(P.w="u"in P?P.u%7:"W"in P?1:0),ee="Z"in P?Ec(Li(P.y,0,1)).getUTCDay():bc(Li(P.y,0,1)).getDay(),P.m=0,P.d="W"in P?(P.w+6)%7+P.W*7-(ee+5)%7:P.w+P.U*7-(ee+6)%7);return"Z"in P?(P.H+=P.Z/100|0,P.M+=P.Z%100,Ec(P)):bc(P)}}function D(Y,H,F,P){for(var pt=0,bt=H.length,ee=F.length,ne,et;pt<bt;){if(P>=ee)return-1;if(ne=H.charCodeAt(pt++),ne===37){if(ne=H.charAt(pt++),et=_[ne in tg?H.charAt(pt++):ne],!et||(P=et(Y,F,P))<0)return-1}else if(ne!=F.charCodeAt(P++))return-1}return P}function G(Y,H,F){var P=c.exec(H.slice(F));return P?(Y.p=u.get(P[0].toLowerCase()),F+P[0].length):-1}function k(Y,H,F){var P=f.exec(H.slice(F));return P?(Y.w=p.get(P[0].toLowerCase()),F+P[0].length):-1}function O(Y,H,F){var P=d.exec(H.slice(F));return P?(Y.w=h.get(P[0].toLowerCase()),F+P[0].length):-1}function R(Y,H,F){var P=m.exec(H.slice(F));return P?(Y.m=y.get(P[0].toLowerCase()),F+P[0].length):-1}function I(Y,H,F){var P=g.exec(H.slice(F));return P?(Y.m=v.get(P[0].toLowerCase()),F+P[0].length):-1}function $(Y,H,F){return D(Y,t,H,F)}function T(Y,H,F){return D(Y,n,H,F)}function B(Y,H,F){return D(Y,r,H,F)}function N(Y){return a[Y.getDay()]}function U(Y){return s[Y.getDay()]}function V(Y){return l[Y.getMonth()]}function q(Y){return o[Y.getMonth()]}function X(Y){return i[+(Y.getHours()>=12)]}function J(Y){return 1+~~(Y.getMonth()/3)}function ct(Y){return a[Y.getUTCDay()]}function W(Y){return s[Y.getUTCDay()]}function K(Y){return l[Y.getUTCMonth()]}function ut(Y){return o[Y.getUTCMonth()]}function rt(Y){return i[+(Y.getUTCHours()>=12)]}function Ct(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var H=x(Y+="",E);return H.toString=function(){return Y},H},parse:function(Y){var H=C(Y+="",!1);return H.toString=function(){return Y},H},utcFormat:function(Y){var H=x(Y+="",S);return H.toString=function(){return Y},H},utcParse:function(Y){var H=C(Y+="",!0);return H.toString=function(){return Y},H}}}var tg={"-":"",_:" ",0:"0"},Vt=/^\s*\d+/,PL=/^%/,NL=/[\\^$*+?|[\]().{}]/g;function ht(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function UL(e){return e.replace(NL,"\\$&")}function Ri(e){return new RegExp("^(?:"+e.map(UL).join("|")+")","i")}function Ii(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function BL(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function VL(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function HL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function GL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function FL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function eg(e,t,n){var r=Vt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ng(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function zL(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function WL(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function qL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rg(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function YL(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ig(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function XL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function jL(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ZL(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function KL(e,t,n){var r=Vt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function QL(e,t,n){var r=PL.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function JL(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tR(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function sg(e,t){return ht(e.getDate(),t,2)}function eR(e,t){return ht(e.getHours(),t,2)}function nR(e,t){return ht(e.getHours()%12||12,t,2)}function rR(e,t){return ht(1+Di.count(sn(e),e),t,3)}function ag(e,t){return ht(e.getMilliseconds(),t,3)}function iR(e,t){return ag(e,t)+"000"}function sR(e,t){return ht(e.getMonth()+1,t,2)}function aR(e,t){return ht(e.getMinutes(),t,2)}function oR(e,t){return ht(e.getSeconds(),t,2)}function lR(e){var t=e.getDay();return t===0?7:t}function cR(e,t){return ht(da.count(sn(e)-1,e),t,2)}function og(e){var t=e.getDay();return t>=4||t===0?Or(e):Or.ceil(e)}function uR(e,t){return e=og(e),ht(Or.count(sn(e),e)+(sn(e).getDay()===4),t,2)}function hR(e){return e.getDay()}function dR(e,t){return ht(fa.count(sn(e)-1,e),t,2)}function fR(e,t){return ht(e.getFullYear()%100,t,2)}function pR(e,t){return e=og(e),ht(e.getFullYear()%100,t,2)}function gR(e,t){return ht(e.getFullYear()%1e4,t,4)}function mR(e,t){var n=e.getDay();return e=n>=4||n===0?Or(e):Or.ceil(e),ht(e.getFullYear()%1e4,t,4)}function vR(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ht(t/60|0,"0",2)+ht(t%60,"0",2)}function lg(e,t){return ht(e.getUTCDate(),t,2)}function yR(e,t){return ht(e.getUTCHours(),t,2)}function bR(e,t){return ht(e.getUTCHours()%12||12,t,2)}function ER(e,t){return ht(1+vc.count(qn(e),e),t,3)}function cg(e,t){return ht(e.getUTCMilliseconds(),t,3)}function xR(e,t){return cg(e,t)+"000"}function SR(e,t){return ht(e.getUTCMonth()+1,t,2)}function _R(e,t){return ht(e.getUTCMinutes(),t,2)}function wR(e,t){return ht(e.getUTCSeconds(),t,2)}function TR(e){var t=e.getUTCDay();return t===0?7:t}function OR(e,t){return ht(Jp.count(qn(e)-1,e),t,2)}function ug(e){var t=e.getUTCDay();return t>=4||t===0?Mr(e):Mr.ceil(e)}function MR(e,t){return e=ug(e),ht(Mr.count(qn(e),e)+(qn(e).getUTCDay()===4),t,2)}function CR(e){return e.getUTCDay()}function AR(e,t){return ht(pa.count(qn(e)-1,e),t,2)}function DR(e,t){return ht(e.getUTCFullYear()%100,t,2)}function LR(e,t){return e=ug(e),ht(e.getUTCFullYear()%100,t,2)}function RR(e,t){return ht(e.getUTCFullYear()%1e4,t,4)}function IR(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Mr(e):Mr.ceil(e),ht(e.getUTCFullYear()%1e4,t,4)}function kR(){return"+0000"}function hg(){return"%"}function dg(e){return+e}function fg(e){return Math.floor(+e/1e3)}var Cr,pg;$R({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 $R(e){return Cr=$L(e),pg=Cr.format,Cr.parse,Cr.utcFormat,Cr.utcParse,Cr}function PR(e){return new Date(e)}function NR(e){return e instanceof Date?+e:+new Date(+e)}function gg(e,t,n,r,i,s,a,o,l,c){var u=Wp(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),g=c("%I:%M"),v=c("%I %p"),m=c("%a %d"),y=c("%b %d"),E=c("%B"),S=c("%Y");function _(x){return(l(x)<x?f:o(x)<x?p:a(x)<x?g:s(x)<x?v:r(x)<x?i(x)<x?m:y:n(x)<x?E:S)(x)}return u.invert=function(x){return new Date(d(x))},u.domain=function(x){return arguments.length?h(Array.from(x,NR)):h().map(PR)},u.ticks=function(x){var C=h();return e(C[0],C[C.length-1],x??10)},u.tickFormat=function(x,C){return C==null?_:c(C)},u.nice=function(x){var C=h();return(!x||typeof x.range!="function")&&(x=t(C[0],C[C.length-1],x??10)),x?h(Yp(C,x)):u},u.copy=function(){return cc(u,gg(e,t,n,r,i,s,a,o,l,c))},u}function mg(){return _r.apply(gg(IL,kL,sn,yc,da,Di,mc,gc,Tr,pg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function at(e){return function(){return e}}const vg=Math.abs,Wt=Math.atan2,Yn=Math.cos,UR=Math.max,xc=Math.min,Fe=Math.sin,Ar=Math.sqrt,qt=1e-12,ki=Math.PI,ga=ki/2,ma=2*ki;function BR(e){return e>1?0:e<-1?ki:Math.acos(e)}function yg(e){return e>=1?ga:e<=-1?-ga:Math.asin(e)}function va(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Il(t)}function VR(e){return e.innerRadius}function HR(e){return e.outerRadius}function GR(e){return e.startAngle}function FR(e){return e.endAngle}function zR(e){return e&&e.padAngle}function WR(e,t,n,r,i,s,a,o){var l=n-e,c=r-t,u=a-i,d=o-s,h=d*l-u*c;if(!(h*h<qt))return h=(u*(t-s)-d*(e-i))/h,[e+h*l,t+h*c]}function ya(e,t,n,r,i,s,a){var o=e-n,l=t-r,c=(a?s:-s)/Ar(o*o+l*l),u=c*l,d=-c*o,h=e+u,f=t+d,p=n+u,g=r+d,v=(h+p)/2,m=(f+g)/2,y=p-h,E=g-f,S=y*y+E*E,_=i-s,x=h*g-p*f,C=(E<0?-1:1)*Ar(UR(0,_*_*S-x*x)),D=(x*E-y*C)/S,G=(-x*y-E*C)/S,k=(x*E+y*C)/S,O=(-x*y+E*C)/S,R=D-v,I=G-m,$=k-v,T=O-m;return R*R+I*I>$*$+T*T&&(D=k,G=O),{cx:D,cy:G,x01:-u,y01:-d,x11:D*(i/_-1),y11:G*(i/_-1)}}function $i(){var e=VR,t=HR,n=at(0),r=null,i=GR,s=FR,a=zR,o=null,l=va(c);function c(){var u,d,h=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-ga,g=s.apply(this,arguments)-ga,v=vg(g-p),m=g>p;if(o||(o=u=l()),f<h&&(d=f,f=h,h=d),!(f>qt))o.moveTo(0,0);else if(v>ma-qt)o.moveTo(f*Yn(p),f*Fe(p)),o.arc(0,0,f,p,g,!m),h>qt&&(o.moveTo(h*Yn(g),h*Fe(g)),o.arc(0,0,h,g,p,m));else{var y=p,E=g,S=p,_=g,x=v,C=v,D=a.apply(this,arguments)/2,G=D>qt&&(r?+r.apply(this,arguments):Ar(h*h+f*f)),k=xc(vg(f-h)/2,+n.apply(this,arguments)),O=k,R=k,I,$;if(G>qt){var T=yg(G/h*Fe(D)),B=yg(G/f*Fe(D));(x-=T*2)>qt?(T*=m?1:-1,S+=T,_-=T):(x=0,S=_=(p+g)/2),(C-=B*2)>qt?(B*=m?1:-1,y+=B,E-=B):(C=0,y=E=(p+g)/2)}var N=f*Yn(y),U=f*Fe(y),V=h*Yn(_),q=h*Fe(_);if(k>qt){var X=f*Yn(E),J=f*Fe(E),ct=h*Yn(S),W=h*Fe(S),K;if(v<ki)if(K=WR(N,U,ct,W,X,J,V,q)){var ut=N-K[0],rt=U-K[1],Ct=X-K[0],Y=J-K[1],H=1/Fe(BR((ut*Ct+rt*Y)/(Ar(ut*ut+rt*rt)*Ar(Ct*Ct+Y*Y)))/2),F=Ar(K[0]*K[0]+K[1]*K[1]);O=xc(k,(h-F)/(H-1)),R=xc(k,(f-F)/(H+1))}else O=R=0}C>qt?R>qt?(I=ya(ct,W,N,U,f,R,m),$=ya(X,J,V,q,f,R,m),o.moveTo(I.cx+I.x01,I.cy+I.y01),R<k?o.arc(I.cx,I.cy,R,Wt(I.y01,I.x01),Wt($.y01,$.x01),!m):(o.arc(I.cx,I.cy,R,Wt(I.y01,I.x01),Wt(I.y11,I.x11),!m),o.arc(0,0,f,Wt(I.cy+I.y11,I.cx+I.x11),Wt($.cy+$.y11,$.cx+$.x11),!m),o.arc($.cx,$.cy,R,Wt($.y11,$.x11),Wt($.y01,$.x01),!m))):(o.moveTo(N,U),o.arc(0,0,f,y,E,!m)):o.moveTo(N,U),!(h>qt)||!(x>qt)?o.lineTo(V,q):O>qt?(I=ya(V,q,X,J,h,-O,m),$=ya(N,U,ct,W,h,-O,m),o.lineTo(I.cx+I.x01,I.cy+I.y01),O<k?o.arc(I.cx,I.cy,O,Wt(I.y01,I.x01),Wt($.y01,$.x01),!m):(o.arc(I.cx,I.cy,O,Wt(I.y01,I.x01),Wt(I.y11,I.x11),!m),o.arc(0,0,h,Wt(I.cy+I.y11,I.cx+I.x11),Wt($.cy+$.y11,$.cx+$.x11),m),o.arc($.cx,$.cy,O,Wt($.y11,$.x11),Wt($.y01,$.x01),!m))):o.arc(0,0,h,_,S,m)}if(o.closePath(),u)return o=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2-ki/2;return[Yn(d)*u,Fe(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:at(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:at(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:at(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:at(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:at(+u),c):i},c.endAngle=function(u){return arguments.length?(s=typeof u=="function"?u:at(+u),c):s},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:at(+u),c):a},c.context=function(u){return arguments.length?(o=u??null,c):o},c}var qR=Array.prototype.slice;function ba(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bg(e){this._context=e}bg.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ea(e){return new bg(e)}function Sc(e){return e[0]}function _c(e){return e[1]}function Pi(e,t){var n=at(!0),r=null,i=Ea,s=null,a=va(o);e=typeof e=="function"?e:e===void 0?Sc:at(e),t=typeof t=="function"?t:t===void 0?_c:at(t);function o(l){var c,u=(l=ba(l)).length,d,h=!1,f;for(r==null&&(s=i(f=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===h&&((h=!h)?s.lineStart():s.lineEnd()),h&&s.point(+e(d,c,l),+t(d,c,l));if(f)return s=null,f+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:at(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:at(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:at(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(s=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=s=null:s=i(r=l),o):r},o}function wc(e,t,n){var r=null,i=at(!0),s=null,a=Ea,o=null,l=va(c);e=typeof e=="function"?e:e===void 0?Sc:at(+e),t=typeof t=="function"?t:at(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?_c:at(+n);function c(d){var h,f,p,g=(d=ba(d)).length,v,m=!1,y,E=new Array(g),S=new Array(g);for(s==null&&(o=a(y=l())),h=0;h<=g;++h){if(!(h<g&&i(v=d[h],h,d))===m)if(m=!m)f=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),p=h-1;p>=f;--p)o.point(E[p],S[p]);o.lineEnd(),o.areaEnd()}m&&(E[h]=+e(v,h,d),S[h]=+t(v,h,d),o.point(r?+r(v,h,d):E[h],n?+n(v,h,d):S[h]))}if(y)return o=null,y+""||null}function u(){return Pi().defined(i).curve(a).context(s)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:at(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:at(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:at(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,s!=null&&(o=a(s)),c):a},c.context=function(d){return arguments.length?(d==null?s=o=null:o=a(s=d),c):s},c}function YR(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function XR(e){return e}function jR(){var e=XR,t=YR,n=null,r=at(0),i=at(ma),s=at(0);function a(o){var l,c=(o=ba(o)).length,u,d,h=0,f=new Array(c),p=new Array(c),g=+r.apply(this,arguments),v=Math.min(ma,Math.max(-ma,i.apply(this,arguments)-g)),m,y=Math.min(Math.abs(v)/c,s.apply(this,arguments)),E=y*(v<0?-1:1),S;for(l=0;l<c;++l)(S=p[f[l]=l]=+e(o[l],l,o))>0&&(h+=S);for(t!=null?f.sort(function(_,x){return t(p[_],p[x])}):n!=null&&f.sort(function(_,x){return n(o[_],o[x])}),l=0,d=h?(v-c*E)/h:0;l<c;++l,g=m)u=f[l],S=p[u],m=g+(S>0?S*d:0)+E,p[u]={data:o[u],index:l,value:S,startAngle:g,endAngle:m,padAngle:y};return p}return a.value=function(o){return arguments.length?(e=typeof o=="function"?o:at(+o),a):e},a.sortValues=function(o){return arguments.length?(t=o,n=null,a):t},a.sort=function(o){return arguments.length?(n=o,t=null,a):n},a.startAngle=function(o){return arguments.length?(r=typeof o=="function"?o:at(+o),a):r},a.endAngle=function(o){return arguments.length?(i=typeof o=="function"?o:at(+o),a):i},a.padAngle=function(o){return arguments.length?(s=typeof o=="function"?o:at(+o),a):s},a}var ZR=xg(Ea);function Eg(e){this._curve=e}Eg.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function xg(e){function t(n){return new Eg(e(n))}return t._curve=e,t}function KR(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(xg(n)):t()._curve},e}function QR(){return KR(Pi().curve(ZR))}class JR{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function t2(e){return new JR(e,!0)}function e2(e){return e.source}function n2(e){return e.target}function r2(e){let t=e2,n=n2,r=Sc,i=_c,s=null,a=null,o=va(l);function l(){let c;const u=qR.call(arguments),d=t.apply(this,u),h=n.apply(this,u);if(s==null&&(a=e(c=o())),a.lineStart(),u[0]=d,a.point(+r.apply(this,u),+i.apply(this,u)),u[0]=h,a.point(+r.apply(this,u),+i.apply(this,u)),a.lineEnd(),c)return a=null,c+""||null}return l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.x=function(c){return arguments.length?(r=typeof c=="function"?c:at(+c),l):r},l.y=function(c){return arguments.length?(i=typeof c=="function"?c:at(+c),l):i},l.context=function(c){return arguments.length?(c==null?s=a=null:a=e(s=c),l):s},l}function i2(){return r2(t2)}function gn(){}function xa(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Sa(e){this._context=e}Sa.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:xa(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function s2(e){return new Sa(e)}function Sg(e){this._context=e}Sg.prototype={areaStart:gn,areaEnd:gn,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a2(e){return new Sg(e)}function _g(e){this._context=e}_g.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function o2(e){return new _g(e)}function wg(e,t){this._basis=new Sa(e),this._beta=t}wg.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],s=e[n]-r,a=t[n]-i,o=-1,l;++o<=n;)l=o/n,this._basis.point(this._beta*e[o]+(1-this._beta)*(r+l*s),this._beta*t[o]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const l2=function e(t){function n(r){return t===1?new Sa(r):new wg(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function _a(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Tc(e,t){this._context=e,this._k=(1-t)/6}Tc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_a(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_a(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const c2=function e(t){function n(r){return new Tc(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Oc(e,t){this._context=e,this._k=(1-t)/6}Oc.prototype={areaStart:gn,areaEnd:gn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_a(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const u2=function e(t){function n(r){return new Oc(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Mc(e,t){this._context=e,this._k=(1-t)/6}Mc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_a(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const h2=function e(t){function n(r){return new Mc(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Cc(e,t,n){var r=e._x1,i=e._y1,s=e._x2,a=e._y2;if(e._l01_a>qt){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>qt){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,s,a,e._x2,e._y2)}function Tg(e,t){this._context=e,this._alpha=t}Tg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Cc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const d2=function e(t){function n(r){return t?new Tg(r,t):new Tc(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Og(e,t){this._context=e,this._alpha=t}Og.prototype={areaStart:gn,areaEnd:gn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Cc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const f2=function e(t){function n(r){return t?new Og(r,t):new Oc(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Mg(e,t){this._context=e,this._alpha=t}Mg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const p2=function e(t){function n(r){return t?new Mg(r,t):new Mc(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Cg(e){this._context=e}Cg.prototype={areaStart:gn,areaEnd:gn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Ag(e){return new Cg(e)}function Dg(e){return e<0?-1:1}function Lg(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),o=(s*i+a*r)/(r+i);return(Dg(s)+Dg(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(o))||0}function Rg(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ac(e,t,n){var r=e._x0,i=e._y0,s=e._x1,a=e._y1,o=(s-r)/3;e._context.bezierCurveTo(r+o,i+o*t,s-o,a-o*n,s,a)}function wa(e){this._context=e}wa.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:Ac(this,this._t0,Rg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ac(this,Rg(this,n=Lg(this,e,t)),n);break;default:Ac(this,this._t0,n=Lg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ig(e){this._context=new kg(e)}(Ig.prototype=Object.create(wa.prototype)).point=function(e,t){wa.prototype.point.call(this,t,e)};function kg(e){this._context=e}kg.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function g2(e){return new wa(e)}function m2(e){return new Ig(e)}function $g(e){this._context=e}$g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Pg(e),i=Pg(t),s=0,a=1;a<n;++s,++a)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Pg(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),a=new Array(n);for(i[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function v2(e){return new $g(e)}function Ta(e,t){this._context=e,this._t=t}Ta.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function y2(e){return new Ta(e,.5)}function b2(e){return new Ta(e,0)}function E2(e){return new Ta(e,1)}function Ng(e,t){if((a=e.length)>1)for(var n=1,r,i,s=e[t[0]],a,o=s.length;n<a;++n)for(i=s,s=e[t[n]],r=0;r<o;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Ug(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function x2(e,t){return e[t]}function S2(e){const t=[];return t.key=e,t}function Dc(){var e=at([]),t=Ug,n=Ng,r=x2;function i(s){var a=Array.from(e.apply(this,arguments),S2),o,l=a.length,c=-1,u;for(const d of s)for(o=0,++c;o<l;++o)(a[o][c]=[0,+r(d,a[o].key,c,s)]).data=d;for(o=0,u=ba(t(a));o<l;++o)a[u[o]].index=o;return n(a,u),a}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:at(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:at(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?Ug:typeof s=="function"?s:at(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??Ng,i):n},i}function _2(e,t){if((l=e.length)>0)for(var n,r=0,i,s,a,o,l,c=e[t[0]].length;r<c;++r)for(a=o=0,n=0;n<l;++n)(s=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=s):s<0?(i[1]=o,i[0]=o+=s):(i[0]=0,i[1]=s)}function Ni(e,t,n){this.k=e,this.x=t,this.y=n}Ni.prototype={constructor:Ni,scale:function(e){return e===1?this:new Ni(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ni(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Ni.prototype;var Oa=(e=>(e.RENDER_FINISHED="render-finished",e.RESIZE="chart-resize",e.MOUSEOVER="chart-mouseover",e.MOUSEOUT="chart-mouseout",e))(Oa||{}),Ma=(e=>(e.SHOW="show-modal",e.HIDE="hide-modal",e))(Ma||{}),Ca=(e=>(e.UPDATE="model-update",e))(Ca||{}),Bg=(e=>(e.SHOW_OVERFLOW_MENU="show-toolbar-overflow-menu",e.HIDE_OVERFLOW_MENU="hide-toolbar-overflow-menu",e.BUTTON_CLICK="toolbar-button-click",e))(Bg||{}),Aa=(e=>(e.UPDATE="zoom-bar-update",e.SELECTION_START="zoom-bar-selection-start",e.SELECTION_IN_PROGRESS="zoom-bar-selection-in-progress",e.SELECTION_END="zoom-bar-selection-end",e))(Aa||{}),Da=(e=>(e.CHANGE="zoom-domain-change",e))(Da||{}),La=(e=>(e.CANVAS_ZOOM_IN="canvas-zoom-in",e.CANVAS_ZOOM_OUT="canvas-zoom-out",e))(La||{}),Ra=(e=>(e.LABEL_MOUSEOVER="axis-label-mouseover",e.LABEL_MOUSEMOVE="axis-label-mousemove",e.LABEL_CLICK="axis-label-click",e.LABEL_MOUSEOUT="axis-label-mouseout",e.LABEL_FOCUS="axis-label-focus",e.LABEL_BLUR="axis-label-blur",e.RENDER_COMPLETE="axis-render-complete",e))(Ra||{}),Ia=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(Ia||{}),ka=(e=>(e.WORD_MOUSEOVER="wordcloud-word-mouseover",e.WORD_MOUSEMOVE="wordcloud-word-mousemove",e.WORD_CLICK="wordcloud-word-click",e.WORD_MOUSEOUT="wordcloud-word-mouseout",e))(ka||{}),$a=(e=>(e.SLICE_MOUSEOVER="pie-slice-mouseover",e.SLICE_MOUSEMOVE="pie-slice-mousemove",e.SLICE_CLICK="pie-slice-click",e.SLICE_MOUSEOUT="pie-slice-mouseout",e))($a||{}),Pa=(e=>(e.ARC_MOUSEOVER="gauge-arc-mouseover",e.ARC_MOUSEMOVE="gauge-arc-mousemove",e.ARC_CLICK="gauge-arc-click",e.ARC_MOUSEOUT="gauge-arc-mouseout",e))(Pa||{}),Na=(e=>(e.BAR_MOUSEOVER="bar-mouseover",e.BAR_MOUSEMOVE="bar-mousemove",e.BAR_CLICK="bar-click",e.BAR_MOUSEOUT="bar-mouseout",e))(Na||{}),Ua=(e=>(e.BOX_MOUSEOVER="box-mouseover",e.BOX_MOUSEMOVE="box-mousemove",e.BOX_CLICK="box-click",e.BOX_MOUSEOUT="box-mouseout",e.OUTLIER_MOUSEOVER="outlier-mouseover",e.OUTLIER_MOUSEMOVE="outlier-mousemove",e.OUTLIER_CLICK="outlier-click",e.OUTLIER_MOUSEOUT="outlier-mouseout",e))(Ua||{}),Ba=(e=>(e.SCATTER_MOUSEOVER="scatter-mouseover",e.SCATTER_MOUSEMOVE="scatter-mousemove",e.SCATTER_CLICK="scatter-click",e.SCATTER_MOUSEOUT="scatter-mouseout",e))(Ba||{}),Va=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(Va||{}),Ha=(e=>(e.X_AXIS_MOUSEOVER="radar-x-axis-mouseover",e.X_AXIS_MOUSEMOVE="radar-x-axis-mousemove",e.X_AXIS_CLICK="radar-x-axis-click",e.X_AXIS_MOUSEOUT="radar-x-axis-mouseout",e))(Ha||{}),Ga=(e=>(e.NODE_MOUSEOVER="tree-node-mouseover",e.NODE_CLICK="tree-node-click",e.NODE_MOUSEOUT="tree-node-mouseout",e))(Ga||{}),Fa=(e=>(e.LEAF_MOUSEOVER="leaf-mouseover",e.LEAF_MOUSEMOVE="leaf-mousemove",e.LEAF_CLICK="leaf-click",e.LEAF_MOUSEOUT="leaf-mouseout",e))(Fa||{}),Xn=(e=>(e.SHOW="show-tooltip",e.MOVE="move-tooltip",e.HIDE="hide-tooltip",e))(Xn||{}),za=(e=>(e.SHOW="show-threshold",e.HIDE="hide-threshold",e))(za||{}),Vg=(e=>(e.ITEM_HOVER="legend-item-onhover",e.ITEM_CLICK="legend-item-onclick",e.ITEM_MOUSEOUT="legend-item-onmouseout",e.ITEMS_UPDATE="legend-items-update",e))(Vg||{}),Hg=(e=>(e.CIRCLE_MOUSEOVER="circle-leaf-mouseover",e.CIRCLE_CLICK="circle-leaf-click",e.CIRCLE_MOUSEOUT="circle-leaf-mouseout",e.CIRCLE_MOUSEMOVE="circle-leaf-mousemove",e))(Hg||{}),Gg=(e=>(e.NODE_MOUSEOVER="alluvial-node-mouseover",e.NODE_CLICK="alluvial-node-click",e.NODE_MOUSEOUT="alluvial-node-mouseout",e.NODE_MOUSEMOVE="alluvial-node-mousemove",e.LINE_MOUSEOVER="alluvial-line-mouseover",e.LINE_CLICK="alluvial-line-click",e.LINE_MOUSEOUT="alluvial-line-mouseout",e.LINE_MOUSEMOVE="alluvial-line-mousemove",e))(Gg||{}),Fg=(e=>(e.METER_MOUSEOVER="meter-mouseover",e.METER_CLICK="meter-click",e.METER_MOUSEOUT="meter-mouseout",e.METER_MOUSEMOVE="meter-mousemove",e))(Fg||{}),zg=(e=>(e.HEATMAP_MOUSEOVER="heatmap-mouseover",e.HEATMAP_CLICK="heatmap-click",e.HEATMAP_MOUSEOUT="heatmap-mouseout",e.HEATMAP_MOUSEMOVE="hetmap-mousemove",e))(zg||{}),Dr=(e=>(e.CHOROPLETH_MOUSEOVER="choropleth-mouseover",e.CHOROPLETH_CLICK="choropleth-click",e.CHOROPLETH_MOUSEOUT="choropleth-mouseout",e.CHOROPLETH_MOUSEMOVE="choropleth-mousemove",e))(Dr||{});const Wg=Object.freeze(Object.defineProperty({__proto__:null,Alluvial:Gg,Area:Ia,Axis:Ra,Bar:Na,Boxplot:Ua,CanvasZoom:La,Chart:Oa,Choropleth:Dr,CirclePack:Hg,Gauge:Pa,Heatmap:zg,Legend:Vg,Line:Va,Meter:Fg,Modal:Ma,Model:Ca,Pie:$a,Radar:Ha,Scatter:Ba,Threshold:za,Toolbar:Bg,Tooltip:Xn,Tree:Ga,Treemap:Fa,WordCloud:ka,ZoomBar:Aa,ZoomDomain:Da},Symbol.toStringTag,{value:"Module"})),w=Wg;var Z=(e=>(e.HTML="html",e.SVG="svg",e))(Z||{}),Wa=(e=>(e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10",e))(Wa||{}),Q=(e=>(e.BACKGROUND="background",e.FILL="fill",e.STROKE="stroke",e.TOOLTIP="tooltip",e))(Q||{}),z=(e=>(e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e))(z||{}),Ee=(e=>(e.GRAPH_VIEW="graph_view",e.SLIDER_VIEW="slider_view",e))(Ee||{}),fe=(e=>(e.END_LINE="end_line",e.MID_LINE="mid_line",e.FRONT_LINE="front_line",e.NONE="none",e))(fe||{}),Pt=(e=>(e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e))(Pt||{}),j=(e=>(e.TIME="time",e.LINEAR="linear",e.LOG="log",e.LABELS="labels",e.LABELS_RATIO="labels-ratio",e))(j||{}),jn=(e=>(e.RIGHT="right",e.LEFT="left",e.TOP="top",e.BOTTOM="bottom",e))(jn||{}),It=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(It||{}),Zn=(e=>(e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e))(Zn||{}),Ui=(e=>(e.TREE="tree",e.DENDROGRAM="dendrogram",e))(Ui||{}),xt=(e=>(e.ROW="row",e.COLUMN="column",e.ROW_REVERSE="row-reverse",e.COLUMN_REVERSE="column-reverse",e))(xt||{}),nt=(e=>(e.FIXED="fixed",e.PREFERRED="preferred",e.STRETCH="stretch",e))(nt||{}),mn=(e=>(e.CENTER="center",e))(mn||{}),Lr=(e=>(e.LEFT="left",e.RIGHT="right",e))(Lr||{}),kt=(e=>(e.GRID="grid",e.VERT_OR_HORIZ="vertOrHoriz",e.PIE="pie",e.DONUT="donut",e))(kt||{}),Le=(e=>(e.START="start",e.MIDDLE="middle",e.END="end",e))(Le||{}),Re=(e=>(e.BASELINE="baseline",e.MIDDLE="middle",e.HANGING="hanging",e))(Re||{}),vn=(e=>(e.SEMI="semi",e.FULL="full",e))(vn||{}),Bi=(e=>(e.UP="up",e.DOWN="down",e))(Bi||{}),Rr=(e=>(e.SUCCESS="success",e.WARNING="warning",e.DANGER="danger",e))(Rr||{}),Ir=(e=>(e.ALWAYS="always",e.AUTO="auto",e.NEVER="never",e))(Ir||{}),se=(e=>(e.SCATTER="scatter",e.LINE="line",e.SIMPLE_BAR="simple-bar",e.STACKED_BAR="stacked-bar",e.GROUPED_BAR="grouped-bar",e.AREA="area",e.STACKED_AREA="stacked-area",e))(se||{}),Ot=(e=>(e.EXPORT_CSV="Export as CSV",e.EXPORT_PNG="Export as PNG",e.EXPORT_JPG="Export as JPG",e.ZOOM_IN="Zoom in",e.ZOOM_OUT="Zoom out",e.RESET_ZOOM="Reset zoom",e.MAKE_FULLSCREEN="Make fullscreen",e.SHOW_AS_DATATABLE="Show as data-table",e.CUSTOM="Custom",e))(Ot||{}),Vi=(e=>(e.LEFT="left",e.RIGHT="right",e))(Vi||{}),$t=(e=>(e.CHECKBOX="checkbox",e.RADIUS="radius",e.AREA="area",e.SIZE="size",e.LINE="line",e.QUARTILE="quartile",e.ZOOM="zoom",e))($t||{}),kr=(e=>(e.LINEAR="linear",e.QUANTIZE="quantize",e))(kr||{}),Kn=(e=>(e.ON="on",e.AUTO="auto",e.OFF="off",e))(Kn||{}),$r=(e=>(e.DEFAULT="default",e.HOVERABLE="hoverable",e))($r||{}),Ie=(e=>(e.geoEqualEarth="geoEqualEarth",e.geoAlbers="geoAlbers",e.geoConicEqualArea="geoConicEqualArea",e.geoConicEquidistant="geoConicEquidistant",e.geoEquirectangular="geoEquirectangular",e.geoMercator="geoMercator",e.geoNaturalEarth1="geoNaturalEarth1",e))(Ie||{});const Yt="cds",ke={opacity:{unselected:.05,selected:.4}},ze={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1,hover:{rectanglePadding:4}},yn={duration:1e3,ease:Of,zoomLevel:3},bn={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},qa={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},ae={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},Lc={defaultBins:10},Mt={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"},color:{barWidth:300,barHeight:8,axisYTranslation:10}},$e={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},Bt={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36,paddingRight:24},height:{default:8,proportional:16},dividerWidth:2},St={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},an={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},pe={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},Rc={minCellDividerDimension:16,chartPadding:.5},Ya={default:{size:24}},Ic={horizontalOffset:10},Xa={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},qg={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},Kt={height:{[Ee.GRAPH_VIEW]:32,[Ee.SLIDER_VIEW]:10},spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},kc=[{type:$t.RADIUS,name:"Radius"},{type:$t.AREA,name:"Poor area"},{type:$t.AREA,name:"Satisfactory area"},{type:$t.AREA,name:"Great area"},{type:$t.QUARTILE,name:"Quartiles"}],Pr={type:fe.END_LINE,threshold:16,numCharacter:14},w2={enabled:!0,position:jn.BOTTOM,clickable:!0,truncation:Pr,alignment:It.LEFT,order:null,additionalItems:[]},$c={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},Pc={enabled:!0},ja={enabled:!0,showTotal:!0,truncation:Pr,groupLabel:"Group"},Yg={top:{visible:!0,includeZero:!0,truncation:Pr},bottom:{visible:!0,includeZero:!0,truncation:Pr},left:{visible:!0,includeZero:!0,truncation:Pr},right:{visible:!0,includeZero:!0,truncation:Pr}},Nr={addSpaceOnEdges:1,showDayName:!1,localeObject:zu,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},T2=typeof document<"u"&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled),Xt={width:null,height:null,resizable:!0,theme:Wa.WHITE,tooltip:ja,legend:w2,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:[{type:Ot.SHOW_AS_DATATABLE},...T2?[{type:Ot.MAKE_FULLSCREEN}]:[],{type:Ot.EXPORT_CSV},{type:Ot.EXPORT_PNG},{type:Ot.EXPORT_JPG}]}},Xg=tt({},Xt,{thematic:{projection:Ie.geoNaturalEarth1}}),Hi=tt({},Xt,{axes:Yg,timeScale:Nr,grid:$c,ruler:Pc,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:Ee.GRAPH_VIEW}}}),Qn=tt({},Hi,{bars:{maxWidth:16,spacingFactor:.25},timeScale:tt(Nr,{addSpaceOnEdges:1})}),O2=tt({},Qn,{}),M2=tt({},Qn,{}),C2=tt({},Qn,{bars:tt({},Qn.bars,{dividerSize:1.5})}),A2=tt({},Qn,{}),Nc=tt({},Hi,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),D2=Nc,jg=tt({},Nc,{points:{radius:3,filled:!1,enabled:!0}}),Zg=tt({},jg,{timeScale:tt(Nr,{addSpaceOnEdges:0})}),L2=Zg,R2=tt({},Hi,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:e=>{const t=Math.min(e.width,e.height);return[t*3/400,t*25/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:$t.RADIUS,name:"Radius"}]}}),I2=tt({},Hi,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:$t.AREA,name:"Poor area"},{type:$t.AREA,name:"Satisfactory area"},{type:$t.AREA,name:"Great area"},{type:$t.QUARTILE,name:"Quartiles"}]}}),k2=tt({},Qn,{bars:{dividerSize:1.5},timeScale:tt(Nr,{addSpaceOnEdges:0})}),$2=tt({},Xt,{tooltip:tt({},ja,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:e=>{const t=Math.min(e.width,e.height);return[t*20/400,t*75/400]},wordMapsTo:"word"}}),Kg=tt({},Xt,{pie:{labels:{formatter:null,enabled:!0},alignment:It.LEFT,sortFunction:null,valueMapsTo:"value"}}),P2=tt({},Xt,{legend:{enabled:!1},gauge:{type:vn.SEMI,arcWidth:16,deltaArrow:{size:e=>e/8,enabled:!0},showPercentageSymbol:!0,status:null,numberSpacing:10,deltaFontSize:e=>e/8,valueFontSize:e=>e/2.5,numberFormatter:e=>Number(e.toFixed(2))%1!==0?e.toFixed(2).toLocaleString():e.toFixed().toLocaleString(),alignment:It.LEFT}}),N2=tt({},Kg,{donut:{center:{numberFontSize:e=>`${Math.min(e/100*24,24)}px`,titleFontSize:e=>`${Math.min(e/100*15,15)}px`,titleYPosition:e=>Math.min(e/80*20,20),numberFormatter:e=>Math.floor(e).toLocaleString()},alignment:It.LEFT}}),Qg=tt({},Xt,{legend:{enabled:!1,clickable:!1},meter:{showLabels:!0,proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),U2=tt({},Qg,{legend:{enabled:!0}}),B2=tt({},Xt,{radar:{axes:{angle:"key",value:"value"},alignment:It.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:e=>e??"N/A"}}),V2=tt({},Qn,{comboChartTypes:[]}),H2=tt({tree:{type:Ui.TREE}},Xt,{}),G2=tt({},Xt,{data:tt(Xt.data,{groupMapsTo:"name"})}),F2=tt({},Xt,bn,{data:tt(Xt.data,{groupMapsTo:"name"})}),z2=tt({},Xt,{alluvial:{data:tt(Xt.data,{groupMapsTo:"source"}),nodeAlignment:It.CENTER,nodePadding:24,monochrome:!1,nodes:[]}}),W2=tt({},Xt,{axes:Yg,heatmap:{divider:{state:Kn.AUTO},colorLegend:{type:"linear"}}}),q2=tt({},Xg,{choropleth:{colorLegend:{type:"linear"}}}),yt={alluvialChart:z2,areaChart:Zg,axisChart:Hi,boxplotChart:A2,bubbleChart:R2,bulletChart:I2,chart:Xt,circlePackChart:F2,choroplethChart:q2,comboChart:V2,donutChart:N2,gaugeChart:P2,groupedBarChart:M2,heatmapChart:W2,histogramChart:k2,lineChart:jg,lollipopChart:D2,meterChart:Qg,pieChart:Kg,proportionalMeterChart:U2,radarChart:B2,scatterChart:Nc,simpleBarChart:O2,stackedAreaChart:L2,stackedBarChart:C2,thematicChart:Xg,treeChart:H2,treemapChart:G2,wordCloudChart:$2},Y2=Object.freeze(Object.defineProperty({__proto__:null,alluvial:pe,area:ke,axis:ze,baseTooltip:ja,boxplot:ae,canvasZoomSettings:yn,carbonPrefix:Yt,circlePack:bn,color:qa,defaultLegendAdditionalItems:kc,grid:$c,heatmap:Rc,histogram:Lc,legend:Mt,lines:$e,meter:Bt,options:yt,pie:St,radar:an,ruler:Pc,spacers:Ya,timeScale:Nr,toolbar:qg,tooltips:Ic,transitions:Xa,zoomBar:Kt},Symbol.toStringTag,{value:"Module"}));var it=(e=>(e.GRAPHICS_DOCUMENT="graphics-document",e.GRAPHICS_OBJECT="graphics-object",e.GRAPHICS_SYMBOL="graphics-symbol",e.GROUP="group",e.DOCUMENT="document",e.CHECKBOX="checkbox",e.BUTTON="button",e.MENU="menu",e.MENU_ITEM="menuitem",e.IMG="img",e))(it||{});const X2=Object.freeze(Object.defineProperty({__proto__:null,Alignments:It,AreaEvent:Ia,ArrowDirections:Bi,AxisEvent:Ra,AxisFlavor:$r,AxisPositions:z,AxisTitleOrientations:Vi,BarEvent:Na,BoxplotEvent:Ua,CalloutDirections:Lr,CanvasZoomEvent:La,CartesianOrientations:Pt,ChartEvent:Oa,ChartTheme:Wa,ChartTypes:se,ColorClassNameTypes:Q,ColorLegendType:kr,DividerStatus:Kn,DominantBaseline:Re,Events:Wg,GaugeEvent:Pa,GaugeTypes:vn,LayoutAlignItems:mn,LayoutDirection:xt,LayoutGrowth:nt,LegendItemType:$t,LegendOrientations:Zn,LegendPositions:jn,LineEvent:Va,ModalEvent:Ma,ModelEvent:Ca,PieEvent:$a,Projection:Ie,RadarEvent:Ha,RenderTypes:Z,Roles:it,ScaleTypes:j,ScatterEvent:Ba,Skeletons:kt,Statuses:Rr,TextAnchor:Le,ThresholdEvent:za,TickRotations:Ir,ToolbarControlTypes:Ot,TooltipEvent:Xn,TreeEvent:Ga,TreeTypes:Ui,TreemapEvent:Fa,TruncationTypes:fe,WordCloudEvent:ka,ZoomBarTypes:Ee,ZoomDomainEvent:Da,ZoombarEvent:Aa},Symbol.toStringTag,{value:"Module"}));function j2(e,t,n){let r=null;return function(...i){const s=this;s.mousePosition=Pn(i[0],n),clearTimeout(r),r=setTimeout(function(){e.apply(s,i)},t)}}function At(e,t){var i;const n=je(e),r=Object.keys(t.axes||{});(i=t==null?void 0:t.toolbar)!=null&&i.controls&&delete n.toolbar.controls,r.length===0&&delete n.axes;for(const s in n.axes)if(r.includes(s)){const a=t.axes[s];(a.primary||a.secondary)&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");const o=a.mapsTo;if(o==null){const l=a.scaleType;l==null?a.mapsTo="value":l===j.TIME?a.mapsTo="date":l===j.LABELS&&(a.mapsTo="key")}}else delete n.axes[s];return Uc(n,t),tt(n,t)}function on(e){if(!e)return;const t=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=e.getAttribute("transform").match(t);if(!n)return null;if(n[0]){const r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}function Gi(e){const n=/\(([^)]+)\)/.exec(e);if(n&&n.length>1){const r=n[1].split(",");if(r.length>1)return{x:parseFloat(r[0]),y:parseFloat(r[1])}}return{x:0,y:0}}function Jg(e,t,n="value"){const r=e/t.reduce((i,s)=>i+s[n],0)*100;return r%1!==0?parseFloat(r.toFixed(1)):r}function Fi(e,t,n){if(n>e.length)return e;if(t===fe.MID_LINE)return e.substr(0,n/2)+"..."+e.substr(-n/2);if(t===fe.FRONT_LINE)return"..."+e.substr(-n);if(t===fe.END_LINE)return e.substr(0,n)+"..."}function Uc(e,t){const n=b(e,"legend","additionalItems"),r=b(t,"legend","additionalItems");if(n&&r){const i=r.map(o=>o.type),s=n.map(o=>o.type),a=kc.filter(o=>s.includes(o.type)&&!i.includes(o.type));e.legend.additionalItems=a,t.legend.additionalItems=Jw(a,r,"name")}}const b=(e,...t)=>{let n=e;if(n){for(const r of t)if(n[r]!==null&&n[r]!==void 0)n=n[r];else return null;return n}return null},tm=(e,t)=>t===Pt.HORIZONTAL?{y0:e.x0,y1:e.x1,x0:e.y0,x1:e.y1}:e,Qt=(e,t)=>{const{x0:n,x1:r,y0:i,y1:s}=tm(e,t);return`M${n},${i}L${n},${s}L${r},${s}L${r},${i}L${n},${i}`};function ln(e,t,n){return n===Pt.VERTICAL?[e,t]:[t,e]}var em=(e=>(e["15seconds"]="15seconds",e.minute="minute",e["30minutes"]="30minutes",e.hourly="hourly",e.daily="daily",e.weekly="weekly",e.monthly="monthly",e.quarterly="quarterly",e.yearly="yearly",e))(em||{});const Za=[["15seconds",15*1e3],["minute",60*1e3],["30minutes",30*60*1e3],["hourly",60*60*1e3],["daily",24*60*60*1e3],["monthly",30*24*60*60*1e3],["quarterly",3*30*24*60*60*1e3],["yearly",12*30*24*60*60*1e3]];function Bc(e,t,n,r,i){const s=t===0,a=Number(rr(new Date(e),"c"))===2,o=Number(rr(new Date(e),"q"))===1,l=t!==0?n[t-1]:null;switch(r){case"15seconds":return s||Ja(e)||Wi(e,l)||En(e);case"minute":return s||Ja(e)||Wi(e,l)||En(e);case"30minutes":return s||Ja(e)||Wi(e,l)||En(e);case"hourly":return s||Ja(e)||Wi(e,l)||En(e);case"daily":return i?s||a||En(e):s||Wi(e,l)||En(e);case"weekly":return s||a||En(e);case"monthly":return s||En(e);case"quarterly":return s||o;case"yearly":return!1;default:throw new Error(`${r} is not a valid time interval.`)}}function Ka(e,t,n,r,i){const s=i.showDayName,a=r==="daily"&&s?"weekly":r,o=new Date(e),l=b(i,"timeIntervalFormats")[a],c=b(l,"primary"),u=b(l,"secondary");let d=Bc(e,t,n,r,s)?c:u;r==="15seconds"&&o.getMilliseconds()!==0&&(d=d.replace("pp","h:mm:ss.SSS a"));const h=i.localeObject;return rr(o,d,{locale:h})}function zi(e){const t=new Date(e);return{M:t.getMonth()+1,d:t.getDate(),H:t.getHours(),m:t.getMinutes(),s:t.getSeconds()}}function Z2(e){if(e)return e.slice(1).map((t,n)=>t-e[n])}function K2(e){const t=Za.reduce((n,[,r],i)=>{const s=Za[n][1],a=Math.abs(s-e),o=Math.abs(r-e);return a<o?n:i},0);return Za[t][0]}function Qa(e,t){if(em[t])return t;if(e.length===1)return"15seconds";const n=Z2(e),r=dn(n);return K2(r)}function Ja(e){const{s:t,m:n,H:r}=zi(e);return r===0&&n===0&&t===0}function Wi(e,t){const n=zi(e).M,r=zi(t).M;return n!==r}function En(e){const{M:t,d:n,s:r,m:i,H:s}=zi(e);return t===1&&n===1&&s===0&&i===0&&r===0}function Vc(e){return e===void 0?"":e.toISOString()}class Pe{constructor(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}getAllDataFromDomain(t){if(!this.getData())return null;const n=this.getOptions();let r=this.getData();const i=this.getDataGroups(),{groupMapsTo:s}=b(n,"data"),a=b(n,"axes");return t&&(r=r.filter(o=>t.includes(o[s]))),a&&Object.keys(a).forEach(o=>{const l=a[o].mapsTo,c=a[o].scaleType;if((c===j.LINEAR||c===j.LOG)&&(r=r.map(u=>({...u,[l]:u[l]===null?u[l]:Number(u[l])}))),l&&a[o].domain)if(c===j.LABELS)r=r.filter(u=>a[o].domain.includes(u[l]));else{const[u,d]=a[o].domain;r=r.filter(h=>!(l in h)||h[l]>=u&&h[l]<=d)}}),r.filter(o=>i.find(l=>l.name===o[s]))}getDisplayData(t){if(!this.get("data"))return null;const{ACTIVE:n}=Mt.items.status,r=this.getDataGroups(t),{groupMapsTo:i}=this.getOptions().data;return this.getAllDataFromDomain(t).filter(a=>r.find(o=>o.name===a[i]&&o.status===n))}getData(){return this.get("data")}isDataEmpty(){return!this.getData().length}setData(t){const n=this.sanitize(je(t)),r=this.generateDataGroups(n);return this.set({data:n,dataGroups:r}),n}getDataGroups(t){return b(this.getOptions(),"data","loading")?[]:t?this.get("dataGroups").filter(r=>t.includes(r.name)):this.get("dataGroups")}getActiveDataGroups(t){const{ACTIVE:n}=Mt.items.status;return this.getDataGroups(t).filter(r=>r.status===n)}getDataGroupNames(t){return this.getDataGroups(t).map(r=>r.name)}getActiveDataGroupNames(t){return this.getActiveDataGroups(t).map(r=>r.name)}aggregateBinDataByGroup(t){return Bw(t,"group")}getBinConfigurations(){const t=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),s=n.axes[r],{groupMapsTo:a}=n.data,{bins:o=Lc.defaultBins}=s,l=Array.isArray(o),c=yT().value(f=>f[i]).thresholds(o)(t);if(l)c[c.length-1].x1=o[o.length-1];else{const f=c[0].x1-c[0].x0;c[c.length-1].x1=+c[c.length-1].x0+f}const u=l?[o[0],o[o.length-1]]:[c[0].x0,c[c.length-1].x1],d=Array.from(new Set(t.map(f=>f[a]))),h=[];return c.forEach(f=>{const p=`${f.x0}-${f.x1}`,g=this.aggregateBinDataByGroup(f);d.forEach(v=>{h.push({group:v,key:p,value:g[v]||0,bin:f.x0})})}),{bins:c,binsDomain:u}}getBinnedStackedData(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getActiveDataGroupNames(),{bins:i}=this.getBinConfigurations(),s=this.getDataValuesGroupedByKeys({bins:i});return Dc().keys(r)(s).map((a,o)=>Object.keys(a).filter(l=>!isNaN(l)).map(l=>{const c=a[l];return c[n]=r[o],c}))}getGroupedData(t){const n=this.getDisplayData(t),r={},{groupMapsTo:i}=this.getOptions().data;return n.map(s=>{const a=s[i];r[a]!==null&&r[a]!==void 0?r[a].push(s):r[a]=[s]}),Object.keys(r).map(s=>({name:s,data:r[s]}))}getStackKeys({bins:t=null,groups:n=null}={bins:null,groups:null}){const r=this.getOptions(),i=this.getDisplayData(n);let s;t?s=t.map(l=>`${l.x0}-${l.x1}`):s=ri(i.map(l=>{const c=this.services.cartesianScales.getDomainIdentifier(l);return l[c]instanceof Date?Vc(l[c]):l[c]&&typeof l[c].toString=="function"?l[c].toString():l[c]}));const a=this.services.cartesianScales.domainAxisPosition,o=r.axes[a].scaleType;return o===j.TIME?s.sort((l,c)=>{const u=new Date(l),d=new Date(c);return u-d}):(o===j.LOG||o===j.LINEAR)&&s.sort((l,c)=>l-c),s}getDataValuesGroupedByKeys({bins:t=null,groups:n=null}){const r=this.getOptions(),{groupMapsTo:i}=r.data,s=this.getDisplayData(n),a=this.getDataGroupNames(),o=this.getStackKeys({bins:t,groups:n});return t?o.map(l=>{const[c,u]=l.split("-"),d={x0:c,x1:u},h=t.find(f=>f.x0.toString()===c.toString());return a.forEach(f=>{d[f]=h.filter(p=>p[i]===f).length}),d}):o.map(l=>{const c={sharedStackKey:l};return a.forEach(u=>{const d=s.find(f=>{const p=this.services.cartesianScales.getDomainIdentifier(f);return f[i]===u&&Object.prototype.hasOwnProperty.call(f,p)&&(f[p]instanceof Date?Vc(f[p])===l:f[p].toString()===l)}),h=this.services.cartesianScales.getRangeIdentifier(c);c[u]=d?d[h]:null}),c})}getStackedData({percentage:t=!1,groups:n=null,divergent:r=!1}){const i=this.getOptions(),{groupMapsTo:s}=i.data,a=this.getActiveDataGroupNames(n),o=this.getDataValuesGroupedByKeys({groups:n});if(t){const c=$w(o.map(u=>[u.sharedStackKey,0]));o.forEach(u=>{a.forEach(d=>{c[u.sharedStackKey]+=u[d]})}),o.forEach(u=>{a.forEach(d=>{const h=c[u.sharedStackKey];c[u.sharedStackKey]?u[d]=u[d]/h*100:u[d]=0})})}return(r?Dc().offset(_2):Dc()).keys(a)(o).map((c,u)=>Object.keys(c).filter(d=>!isNaN(d)).map(d=>{const h=c[d];return h[s]=a[u],h}))}getOptions(){return this.state.options}set(t,n){this.state=Object.assign({},this.state,t);const r=Object.assign({skipUpdate:!1,animate:!0},n);r.skipUpdate||this.update(r.animate)}get(t){return t?this.state[t]:this.state}setOptions(t){const n=this.getOptions();Uc(n,t),this.set({options:tt(n,t)})}update(t=!0){this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(w.Model.UPDATE,{animate:t}))}toggleDataLabel(t){const{ACTIVE:n,DISABLED:r}=Mt.items.status,i=this.getDataGroups(),s=i.some(u=>u.status===r),a=i.filter(u=>u.status===n);if(s)if(a.length===1&&a[0].name===t)i.forEach((u,d)=>{i[d].status=n});else{const u=i.findIndex(d=>d.name===t);i[u].status=i[u].status===r?n:r}else i.forEach((u,d)=>{i[d].status=u.name===t?n:r});const o=i.filter(u=>u.status===n),l=this.getOptions();i.some(u=>u.status===r)?l.data.selectedGroups=o.map(u=>u.name):l.data.selectedGroups=[],this.services.events.dispatchEvent(w.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})}getIsFilled(t,n,r,i){const s=this.getOptions();return s.getIsFilled?s.getIsFilled(t,n,r,i):i}getFillColor(t,n,r){const i=this.getOptions(),s=b(this.colorScale,t);return i.getFillColor?i.getFillColor(t,n,r,s):s}getStrokeColor(t,n,r){const i=this.getOptions(),s=b(this.colorScale,t);return i.getStrokeColor?i.getStrokeColor(t,n,r,s):s}isUserProvidedColorScaleValid(){const t=b(this.getOptions(),"color","scale"),n=this.getDataGroups();return t==null||Object.keys(t).length==0?!1:n.some(r=>Object.keys(t).includes(r.name))}getColorClassName(t){const n=this.colorClassNames(t.dataGroupName);let r=t.originalClassName;return t.classNameTypes.forEach(i=>r=t.originalClassName?`${r} ${i}-${n}`:`${i}-${n}`),r||""}getStatus(){return null}getAllDataGroupsNames(){return this.allDataGroups}transformToTabularData(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");const n=[],{datasets:r,labels:i}=t;return r.forEach(s=>{s.data.forEach((a,o)=>{let l;const c=b(s,"label");if(c===null){const d=b(i,o);d?l=d:l="Ungrouped"}else l=c;const u={group:l,key:i[o]};isNaN(a)?(u.value=a.value,u.date=a.date):u.value=a,n.push(u)})}),n}getTabularDataArray(){return[]}exportToCSV(){const t=this.getTabularDataArray().map(i=>i.map(s=>`"${s==="–"?"–":s}"`));let n="",r="";t.forEach(function(i,s){r=i.join(","),n+=s<t.length?r+`
|
|
2
2
|
`:r}),this.services.files.downloadCSV(n,"myChart.csv")}getTabularData(t){return Array.isArray(t)?t:this.transformToTabularData(t)}sanitize(t){return t=this.getTabularData(t),t}updateAllDataGroups(){this.allDataGroups?this.getDataGroupNames().forEach(t=>{this.allDataGroups.indexOf(t)===-1&&this.allDataGroups.push(t)}):this.allDataGroups=this.getDataGroupNames()}generateDataGroups(t){const{groupMapsTo:n}=this.getOptions().data,{ACTIVE:r,DISABLED:i}=Mt.items.status,s=this.getOptions(),a=ri(t.map(l=>l[n]));s.data.selectedGroups.length&&(s.data.selectedGroups.every(c=>a.includes(c))||(s.data.selectedGroups=[]));const o=l=>!s.data.selectedGroups.length||s.data.selectedGroups.includes(l)?r:i;return a.map(l=>({name:l,status:o(l)}))}setCustomColorScale(){if(!this.isUserProvidedColorScaleValid())return;const t=this.getOptions(),n=b(t,"color","scale");Object.keys(n).forEach(i=>{this.allDataGroups.includes(i)||console.warn(`"${i}" does not exist in data groups.`)}),this.allDataGroups.filter(i=>n[i]).forEach(i=>this.colorScale[i]=n[i])}setColorClassNames(){const t=b(this.getOptions(),"color","pairing");let n=b(t,"numberOfVariants");(!n||n<this.allDataGroups.length)&&(n=this.allDataGroups.length);let r=b(t,"option");const i=qa.pairingOptions,s=n>5?14:n,a=`${s}-color`;r=r<=i[a]?r:1;const o=this.allDataGroups.map((l,c)=>`${s}-${r}-${c%14+1}`);this.colorClassNames=ua().range(o).domain(this.allDataGroups)}}function Q2(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const J2=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function cn(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function to(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function tI(e){const t=to(e,"border-left-width"),n=to(e,"border-right-width");return e.clientWidth+t+n}function eI(e){const t=to(e,"border-top-width"),n=to(e,"border-bottom-width");return e.clientHeight+t+n}function nm(e,t={}){const n=t.width||tI(e),r=t.height||eI(e);return{width:n,height:r}}function nI(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const ge=16384;function rI(e){(e.width>ge||e.height>ge)&&(e.width>ge&&e.height>ge?e.width>e.height?(e.height*=ge/e.width,e.width=ge):(e.width*=ge/e.height,e.height=ge):e.width>ge?(e.height*=ge/e.width,e.width=ge):(e.width*=ge/e.height,e.height=ge))}function eo(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function iI(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function sI(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(e),iI(i)}const oe=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||oe(n,t)};function aI(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function oI(e){return cn(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function lI(e,t,n){const r=`.${e}:${t}`,i=n.cssText?aI(n):oI(n);return document.createTextNode(`${r}{${i}}`)}function rm(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(i===""||i==="none")return;const s=J2();try{t.className=`${t.className} ${s}`}catch{return}const a=document.createElement("style");a.appendChild(lI(s,n,r)),t.appendChild(a)}function cI(e,t){rm(e,t,":before"),rm(e,t,":after")}const im="application/font-woff",sm="image/jpeg",uI={woff:im,woff2:im,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:sm,jpeg:sm,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function hI(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Hc(e){const t=hI(e).toLowerCase();return uI[t]||""}function dI(e){return e.split(/,/)[1]}function Gc(e){return e.search(/^(data:)/)!==-1}function am(e,t){return`data:${t};base64,${e}`}async function om(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((s,a)=>{const o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(n({res:r,result:o.result}))}catch(l){a(l)}},o.readAsDataURL(i)})}const Fc={};function fI(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function zc(e,t,n){const r=fI(e,t,n.includeQueryParams);if(Fc[r]!=null)return Fc[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const s=await om(e,n.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),dI(o)));i=am(s,t)}catch(s){i=n.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return Fc[r]=i,i}async function pI(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):eo(t)}async function gI(e,t){if(e.currentSrc){const s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a==null||a.drawImage(e,0,0,s.width,s.height);const o=s.toDataURL();return eo(o)}const n=e.poster,r=Hc(n),i=await zc(n,r,t);return eo(i)}async function mI(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await no(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function vI(e,t){return oe(e,HTMLCanvasElement)?pI(e):oe(e,HTMLVideoElement)?gI(e,t):oe(e,HTMLIFrameElement)?mI(e):e.cloneNode(!1)}const yI=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function bI(e,t,n){var r,i;let s=[];return yI(e)&&e.assignedNodes?s=cn(e.assignedNodes()):oe(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?s=cn(e.contentDocument.body.childNodes):s=cn(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),s.length===0||oe(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>no(o,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function EI(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):cn(r).forEach(i=>{let s=r.getPropertyValue(i);i==="font-size"&&s.endsWith("px")&&(s=`${Math.floor(parseFloat(s.substring(0,s.length-2)))-.1}px`),oe(e,HTMLIFrameElement)&&i==="display"&&s==="inline"&&(s="block"),i==="d"&&t.getAttribute("d")&&(s=`path(${t.getAttribute("d")})`),n.setProperty(i,s,r.getPropertyPriority(i))})}function xI(e,t){oe(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),oe(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function SI(e,t){if(oe(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function _I(e,t){return oe(t,Element)&&(EI(e,t),cI(e,t),xI(e,t),SI(e,t)),t}async function wI(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let s=0;s<n.length;s++){const o=n[s].getAttribute("xlink:href");if(o){const l=e.querySelector(o),c=document.querySelector(o);!l&&c&&!r[o]&&(r[o]=await no(c,t,!0))}}const i=Object.values(r);if(i.length){const s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const o=document.createElementNS(s,"defs");a.appendChild(o);for(let l=0;l<i.length;l++)o.appendChild(i[l]);e.appendChild(a)}return e}async function no(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>vI(r,t)).then(r=>bI(e,r,t)).then(r=>_I(e,r)).then(r=>wI(r,t))}const lm=/url\((['"]?)([^'"]+?)\1\)/g,TI=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,OI=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function MI(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function CI(e){const t=[];return e.replace(lm,(n,r,i)=>(t.push(i),n)),t.filter(n=>!Gc(n))}async function AI(e,t,n,r,i){try{const s=n?Q2(t,n):t,a=Hc(t);let o;if(i){const l=await i(s);o=am(l,a)}else o=await zc(s,a,r);return e.replace(MI(t),`$1${o}$3`)}catch{}return e}function DI(e,{preferredFontFormat:t}){return t?e.replace(OI,n=>{for(;;){const[r,,i]=TI.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function cm(e){return e.search(lm)!==-1}async function um(e,t,n){if(!cm(e))return e;const r=DI(e,n);return CI(r).reduce((s,a)=>s.then(o=>AI(o,a,t,n)),Promise.resolve(r))}async function ro(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const s=await um(i,null,n);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function LI(e,t){await ro("background",e,t)||await ro("background-image",e,t),await ro("mask",e,t)||await ro("mask-image",e,t)}async function RI(e,t){const n=oe(e,HTMLImageElement);if(!(n&&!Gc(e.src))&&!(oe(e,SVGImageElement)&&!Gc(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await zc(r,Hc(r),t);await new Promise((s,a)=>{e.onload=s,e.onerror=a;const o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function II(e,t){const r=cn(e.childNodes).map(i=>hm(i,t));await Promise.all(r).then(()=>e)}async function hm(e,t){oe(e,Element)&&(await LI(e,t),await RI(e,t),await II(e,t))}function kI(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const dm={};async function fm(e){let t=dm[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},dm[e]=t,t}async function pm(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,s=(n.match(/url\([^)]+\)/g)||[]).map(async a=>{let o=a.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),om(o,t.fetchRequestInit,({result:l})=>(n=n.replace(a,`url(${l})`),[a,l]))});return Promise.all(s).then(()=>n)}function gm(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(i,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let l=s.exec(r);if(l===null){if(l=o.exec(r),l===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(l[0])}return t}async function $I(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{cn(i.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1;const l=s.href,c=fm(l).then(u=>pm(u,t)).then(u=>gm(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?o+=1:i.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:d,error:h})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(c)}})}catch(s){const a=e.find(o=>o.href==null)||document.styleSheets[0];i.href!=null&&r.push(fm(i.href).then(o=>pm(o,t)).then(o=>gm(o).forEach(l=>{a.insertRule(l,i.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{cn(i.cssRules||[]).forEach(s=>{n.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s)}}),n))}function PI(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>cm(t.style.getPropertyValue("src")))}async function NI(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=cn(e.ownerDocument.styleSheets),r=await $I(n,t);return PI(r)}async function UI(e,t){const n=await NI(e,t);return(await Promise.all(n.map(i=>{const s=i.parentStyleSheet?i.parentStyleSheet.href:null;return um(i.cssText,s,t)}))).join(`
|
|
3
3
|
`)}async function BI(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await UI(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function VI(e,t={}){const{width:n,height:r}=nm(e,t),i=await no(e,t,!0);return await BI(i,t),await hm(i,t),kI(i,t),await sI(i,n,r)}async function mm(e,t={}){const{width:n,height:r}=nm(e,t),i=await VI(e,t),s=await eo(i),a=document.createElement("canvas"),o=a.getContext("2d"),l=t.pixelRatio||nI(),c=t.canvasWidth||n,u=t.canvasHeight||r;return a.width=c*l,a.height=u*l,t.skipAutoScale||rI(a),a.style.width=`${c}`,a.style.height=`${u}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(s,0,0,a.width,a.height),a}async function HI(e,t={}){return(await mm(e,t)).toDataURL()}async function GI(e,t={}){return(await mm(e,t)).toDataURL("image/jpeg",t.quality||1)}class We{constructor(t,n){this.model=t,this.services=n,this.init()}init(){}update(){}setModel(t){this.model=t}setServices(t){this.services=t}}const FI="DONT_STYLE_ME_css_styles_verifier";class A extends We{constructor(t,n){super(t,n),this.chartID=""}static getHTMLElementSize(t){return{width:t.clientWidth,height:t.clientHeight}}static getSVGElementSize(t,n={useAttrs:!1,useClientDimensions:!1,useBBox:!1,useBoundingRect:!1}){t.attr||(t=L(t));const r={width:0,height:0},i=h=>{h&&Object.keys(r).forEach(f=>{if(h[f]){const p=h[f],g=parseFloat(p);p&&g>r[f]&&(""+p).indexOf("%")===-1&&(r[f]=g)}})},s={width:t.attr("width"),height:t.attr("height")},a=t.node();let o,l,c,u;try{typeof a.getBBox=="function"&&(o=a.getBBox(),l={width:o.width,height:o.height})}catch(h){console.error(h)}try{typeof(a==null?void 0:a.getBoundingClientRect)=="function"&&(c=a.getBoundingClientRect(),u={width:c.width,height:c.height})}catch(h){console.error(h)}let d;if(a instanceof SVGSVGElement&&(d={width:a.clientWidth,height:a.clientHeight}),n){if(n.useAttrs&&(i(s),r.width>0&&r.height>0))return r;if(n.useClientDimensions&&(i(d),r.width>0&&r.height>0))return d;if(n.useBBox&&(i(l),r.width>0&&r.height>0))return l;if(n.useBoundingRect&&(i(u),r.width>0&&r.height>0))return u}try{const h={width:b(t.node(),"width","baseVal","value"),height:b(t.node(),"height","baseVal","value")};i(h)}catch{i(d),i(l),i(s)}return r}static appendOrSelect(t,n){const r=t.select(`${n}`);if(r.empty()){let i=n.split("#"),s,a;return i.length===2?(s=i[0],i=i[1].split("."),a=i[0]):(i=n.split("."),s=i[0]),t.append(s).attr("id",a).attr("class",i.slice(1).join(" "))}return r}init(){this.styleHolderElement(),this.initializeID(),this.addMainContainer(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners(),this.handleFullscreenChange()}getChartID(){return this.chartID}generateElementIDString(t){return`chart-${this.chartID}-${t}`}initializeID(){this.chartID=Math.floor((1+Math.random())*281474976710656).toString(16)}addMainContainer(){const t=this.model.getOptions(),n=b(t,"style","prefix"),r=L(this.getHolder()).append("div").classed(`${Yt}--${n}--chart-wrapper`,!0).attr("id",`chart-${this.getChartID()}`).style("height","100%").style("width","100%");r.append("g").attr("class",FI),this.mainContainer=r.node()}update(){this.styleHolderElement()}styleHolderElement(){const t=this.getHolder(),{width:n,height:r,theme:i}=this.model.getOptions();n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r),L(this.getHolder()).classed(`${Yt}--chart-holder`,!0).attr("data-carbon-theme",i)}getHolder(){return this.model.get("holder")}exportToJPG(){const t=this,n=this.getHolder(),r=L(n);r.classed("filled",!0),GI(this.getMainContainer(),{quality:1,filter:i=>!(i.classList&&i.classList.contains("cds--cc--toolbar"))}).then(function(i){var s;(s=t.services.files)==null||s.downloadImage(i,"myChart.jpg"),r.classed("filled",!1)})}exportToPNG(){const t=this,n=this.getHolder(),r=L(n);r.classed("filled",!0),HI(this.getMainContainer(),{quality:1,filter:i=>!(i.classList&&i.classList.contains("cds--cc--toolbar"))}).then(function(i){var s;(s=t.services.files)==null||s.downloadImage(i,"myChart.png"),r.classed("filled",!1)}).catch(function(i){console.error("oops, something went wrong!",i)})}toggleFullscreen(){const t=this.getHolder();L(t).classed("fullscreen")&&(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}handleFullscreenChange(){document.addEventListener("fullscreenchange",()=>{const t=L(this.getHolder()),n=t.classed("fullscreen");t.classed("fullscreen",!n)})}setSVGMaxHeight(){if(!this.model.getOptions().height){const{height:t}=A.getSVGElementSize(L(this.mainContainer),{useBBox:!0}),n=L(this.mainContainer).attr("class"),r=L(this.mainContainer).selectAll(`.${n} > svg`);let i=0;r.nodes().forEach(function(s){i+=Number(A.getSVGElementSize(L(s),{useBBox:!0}).height)}),i<=t?L(this.mainContainer).attr("height",i):L(this.mainContainer).attr("height","100%")}}getMainContainer(){return this.mainContainer}addHolderListeners(){const t=this.getHolder();t&&L(t).on("mouseover",()=>{var n;(n=this.services.events)==null||n.dispatchEvent(w.Chart.MOUSEOVER)}).on("mouseout",()=>{var n;(n=this.services.events)==null||n.dispatchEvent(w.Chart.MOUSEOUT)})}addResizeListener(){const t=this.getHolder();if(!t)return;let n=t.clientWidth,r=t.clientHeight;const i=vs(()=>{var a;t&&(Math.abs(n-t.clientWidth)>1||Math.abs(r-t.clientHeight)>1)&&(n=t.clientWidth,r=t.clientHeight,(a=this.services.events)==null||a.dispatchEvent(w.Chart.RESIZE))},12.5);new ResizeObserver(i).observe(t)}}class ot{constructor(t,n,r){if(this.type="",this.renderType=Z.HTML,this.id="",this.parent=void 0,this.configs={},this.model=t,this.services=n,r&&(this.configs=r,this.configs.id)){const i=b(this.model.getOptions(),"style","prefix");this.id=`${i}--${this.configs.id}`}this.parent||this.setParent(L(this.services.domUtils.getMainContainer()))}init(){}render(t=!0){console.error("Error: Component did not provide the required render function.")}destroy(){}setModel(t){this.model=t}setServices(t){this.services=t}setParent(t){var r;const n=this.parent;if(this.parent=t,!(n&&n.node()===t.node())&&this.type){const i=b(this.model.getOptions(),"style","prefix");(r=this.parent)==null||r.classed(`${Yt}--${i}--${this.type}`,!0),n&&n.classed(`${Yt}--${i}--${this.type}`,!1)}}getParent(){return this.parent}getComponentContainer(t={withinChartClip:!1}){if(this.type){const n=b(this.model.getOptions(),"style","prefix"),r=this.id?`#${this.id}`:"",i=A.appendOrSelect(this.parent,`${this.renderType===Z.SVG?"svg":"div"}${r}.${Yt}--${n}--${this.type}`);if(t.withinChartClip){const s=this.model.get("chartClipId");if(s){const o=L(`#${s}`).select("rect");o.size()!==0&&parseFloat(o.attr("height"))>0&&i.attr("clip-path",`url(#${s})`)}}return i.attr("width","100%").attr("height","100%")}return this.parent}getOptions(){return this.configs.options?tt({},this.model.getOptions(),this.configs.options):this.model.getOptions()}}const vm=class Xv extends ot{constructor(){super(...arguments),this.type="toolbar",this.renderType=Z.HTML}init(){const t=()=>this.updateOverflowMenu(!1);this.services.events.addEventListener(w.Toolbar.SHOW_OVERFLOW_MENU,()=>{this.renderOverflowMenu(),document.body.addEventListener("click",t)}),this.services.events.addEventListener(w.Toolbar.HIDE_OVERFLOW_MENU,()=>{document.body.removeEventListener("click",t)})}render(t=!0){const n=this.getComponentContainer().attr("role","toolbar").attr("aria-label",`chart-${this.services.domUtils.getChartID()} toolbar`);if(b(this.getOptions(),"data","loading"))n.html(""),this.overflowMenu=null;else{this.overflowMenu||(this.overflowMenu=n.append("div").attr("class","cds--overflow-menu-options cds--overflow-menu--flip cds--overflow-menu-options cds--overflow-menu--flip").attr("tabindex",-1).html("<ul role='menu'></ul>"));const{buttonList:i,overflowMenuItemList:s}=this.getControlConfigs();s&&i.push(this.getOverflowButtonConfig());const a=n.selectAll("div.toolbar-control").data(i,c=>c.id);a.exit().remove();const o=a.enter().append("div").attr("class","toolbar-control cds--overflow-menu cds--overflow-menu").attr("role","button"),l=this;o.merge(a).classed("disabled",c=>c.shouldBeDisabled()).attr("aria-disabled",c=>c.shouldBeDisabled()).attr("aria-label",c=>c.title).html(c=>`
|
|
4
4
|
<button
|