@mesh.ai/rabbit 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/rabbit-design-system.es.js +18107 -0
- package/dist/rabbit-design-system.umd.js +37 -0
- package/dist/src/lib/components/atoms/Checkbox/index.d.ts +4 -0
- package/dist/src/lib/components/atoms/Tooltip/index.d.ts +8 -0
- package/dist/src/lib/components/atoms/charts/charts/line/components/ChartAxisTooltip.d.ts +6 -0
- package/dist/src/lib/components/atoms/charts/charts/line/components/ChartNodeTooltip.d.ts +18 -0
- package/dist/src/lib/components/atoms/charts/charts/line/index.d.ts +4 -0
- package/dist/src/lib/components/atoms/charts/charts/line/types.d.ts +56 -0
- package/dist/src/lib/components/atoms/charts/utils/chartColors.d.ts +15 -0
- package/dist/src/lib/components/atoms/index.d.ts +1 -0
- package/dist/src/lib/components/index.d.ts +1 -0
- package/dist/src/lib/index.d.ts +1 -0
- package/dist/src/lib/storybook-utils.d.ts +4 -0
- package/dist/src/lib/utils/index.d.ts +2 -0
- package/dist/style.css +1 -0
- package/dist/tailwind.config.d.ts +0 -0
- package/dist/vite.config.d.ts +3 -0
- package/package.json +44 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
(function(Kt,re){typeof exports=="object"&&typeof module<"u"?re(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],re):(Kt=typeof globalThis<"u"?globalThis:Kt||self,re(Kt["rabbit-design-system"]={},Kt["react/jsx-runtime"],Kt.React,Kt.ReactDOM))})(this,function(Kt,re,g,cr){"use strict";function Sf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Re=Sf(g),E0=Sf(cr),NL="";var ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Tu={exports:{}},bo={exports:{}},$e={};/** @license React v16.13.1
|
|
2
|
+
* react-is.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/var Tf;function A0(){if(Tf)return $e;Tf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(y){if(typeof y=="object"&&y!==null){var O=y.$$typeof;switch(O){case t:switch(y=y.type,y){case l:case s:case r:case i:case o:case f:return y;default:switch(y=y&&y.$$typeof,y){case u:case c:case p:case h:case a:return y;default:return O}}case n:return O}}}function $(y){return x(y)===s}return $e.AsyncMode=l,$e.ConcurrentMode=s,$e.ContextConsumer=u,$e.ContextProvider=a,$e.Element=t,$e.ForwardRef=c,$e.Fragment=r,$e.Lazy=p,$e.Memo=h,$e.Portal=n,$e.Profiler=i,$e.StrictMode=o,$e.Suspense=f,$e.isAsyncMode=function(y){return $(y)||x(y)===l},$e.isConcurrentMode=$,$e.isContextConsumer=function(y){return x(y)===u},$e.isContextProvider=function(y){return x(y)===a},$e.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},$e.isForwardRef=function(y){return x(y)===c},$e.isFragment=function(y){return x(y)===r},$e.isLazy=function(y){return x(y)===p},$e.isMemo=function(y){return x(y)===h},$e.isPortal=function(y){return x(y)===n},$e.isProfiler=function(y){return x(y)===i},$e.isStrictMode=function(y){return x(y)===o},$e.isSuspense=function(y){return x(y)===f},$e.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===s||y===i||y===o||y===f||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===h||y.$$typeof===a||y.$$typeof===u||y.$$typeof===c||y.$$typeof===b||y.$$typeof===w||y.$$typeof===_||y.$$typeof===m)},$e.typeOf=x,$e}var Me={};/** @license React v16.13.1
|
|
9
|
+
* react-is.development.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/var Cf;function D0(){return Cf||(Cf=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(C){return typeof C=="string"||typeof C=="function"||C===r||C===s||C===i||C===o||C===f||C===d||typeof C=="object"&&C!==null&&(C.$$typeof===p||C.$$typeof===h||C.$$typeof===a||C.$$typeof===u||C.$$typeof===c||C.$$typeof===b||C.$$typeof===w||C.$$typeof===_||C.$$typeof===m)}function $(C){if(typeof C=="object"&&C!==null){var he=C.$$typeof;switch(he){case t:var pe=C.type;switch(pe){case l:case s:case r:case i:case o:case f:return pe;default:var Ee=pe&&pe.$$typeof;switch(Ee){case u:case c:case p:case h:case a:return Ee;default:return he}}case n:return he}}}var y=l,O=s,E=u,k=a,S=t,L=c,A=r,D=p,W=h,B=n,te=i,Y=o,se=f,ce=!1;function fe(C){return ce||(ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(C)||$(C)===l}function I(C){return $(C)===s}function q(C){return $(C)===u}function J(C){return $(C)===a}function G(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function Z(C){return $(C)===c}function X(C){return $(C)===r}function ne(C){return $(C)===p}function ae(C){return $(C)===h}function de(C){return $(C)===n}function F(C){return $(C)===i}function H(C){return $(C)===o}function ue(C){return $(C)===f}Me.AsyncMode=y,Me.ConcurrentMode=O,Me.ContextConsumer=E,Me.ContextProvider=k,Me.Element=S,Me.ForwardRef=L,Me.Fragment=A,Me.Lazy=D,Me.Memo=W,Me.Portal=B,Me.Profiler=te,Me.StrictMode=Y,Me.Suspense=se,Me.isAsyncMode=fe,Me.isConcurrentMode=I,Me.isContextConsumer=q,Me.isContextProvider=J,Me.isElement=G,Me.isForwardRef=Z,Me.isFragment=X,Me.isLazy=ne,Me.isMemo=ae,Me.isPortal=de,Me.isProfiler=F,Me.isStrictMode=H,Me.isSuspense=ue,Me.isValidElementType=x,Me.typeOf=$}()),Me}var kf;function Ef(){return kf||(kf=1,process.env.NODE_ENV==="production"?bo.exports=A0():bo.exports=D0()),bo.exports}/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var Cu,Af;function N0(){if(Af)return Cu;Af=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(l.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(c){s[c]=c}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cu=o()?Object.assign:function(i,a){for(var u,l=r(i),s,c=1;c<arguments.length;c++){u=Object(arguments[c]);for(var f in u)t.call(u,f)&&(l[f]=u[f]);if(e){s=e(u);for(var d=0;d<s.length;d++)n.call(u,s[d])&&(l[s[d]]=u[s[d]])}}return l},Cu}var ku,Df;function Eu(){if(Df)return ku;Df=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ku=e,ku}var Au,Nf;function Lf(){return Nf||(Nf=1,Au=Function.call.bind(Object.prototype.hasOwnProperty)),Au}var Du,If;function L0(){if(If)return Du;If=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Eu(),n={},r=Lf();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,u,l,s){if(process.env.NODE_ENV!=="production"){for(var c in i)if(r(i,c)){var f;try{if(typeof i[c]!="function"){var d=Error((l||"React class")+": "+u+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=i[c](a,c,l,u,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=s?s():"";e("Failed "+u+" type: "+f.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Du=o,Du}var Nu,jf;function I0(){if(jf)return Nu;jf=1;var e=Ef(),t=N0(),n=Eu(),r=Lf(),o=L0(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Nu=function(u,l){var s=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(I){var q=I&&(s&&I[s]||I[c]);if(typeof q=="function")return q}var d="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:_(),arrayOf:x,element:$(),elementType:y(),instanceOf:O,node:L(),objectOf:k,oneOf:E,oneOfType:S,shape:D,exact:W};function p(I,q){return I===q?I!==0||1/I===1/q:I!==I&&q!==q}function m(I,q){this.message=I,this.data=q&&typeof q=="object"?q:{},this.stack=""}m.prototype=Error.prototype;function b(I){if(process.env.NODE_ENV!=="production")var q={},J=0;function G(X,ne,ae,de,F,H,ue){if(de=de||d,H=H||ae,ue!==n){if(l){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=de+":"+ae;!q[he]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),q[he]=!0,J++)}}return ne[ae]==null?X?ne[ae]===null?new m("The "+F+" `"+H+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new m("The "+F+" `"+H+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:I(ne,ae,de,F,H)}var Z=G.bind(null,!1);return Z.isRequired=G.bind(null,!0),Z}function w(I){function q(J,G,Z,X,ne,ae){var de=J[G],F=Y(de);if(F!==I){var H=se(de);return new m("Invalid "+X+" `"+ne+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return b(q)}function _(){return b(a)}function x(I){function q(J,G,Z,X,ne){if(typeof I!="function")return new m("Property `"+ne+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ae=J[G];if(!Array.isArray(ae)){var de=Y(ae);return new m("Invalid "+X+" `"+ne+"` of type "+("`"+de+"` supplied to `"+Z+"`, expected an array."))}for(var F=0;F<ae.length;F++){var H=I(ae,F,Z,X,ne+"["+F+"]",n);if(H instanceof Error)return H}return null}return b(q)}function $(){function I(q,J,G,Z,X){var ne=q[J];if(!u(ne)){var ae=Y(ne);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ae+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return b(I)}function y(){function I(q,J,G,Z,X){var ne=q[J];if(!e.isValidElementType(ne)){var ae=Y(ne);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ae+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return b(I)}function O(I){function q(J,G,Z,X,ne){if(!(J[G]instanceof I)){var ae=I.name||d,de=fe(J[G]);return new m("Invalid "+X+" `"+ne+"` of type "+("`"+de+"` supplied to `"+Z+"`, expected ")+("instance of `"+ae+"`."))}return null}return b(q)}function E(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function q(J,G,Z,X,ne){for(var ae=J[G],de=0;de<I.length;de++)if(p(ae,I[de]))return null;var F=JSON.stringify(I,function(ue,C){var he=se(C);return he==="symbol"?String(C):C});return new m("Invalid "+X+" `"+ne+"` of value `"+String(ae)+"` "+("supplied to `"+Z+"`, expected one of "+F+"."))}return b(q)}function k(I){function q(J,G,Z,X,ne){if(typeof I!="function")return new m("Property `"+ne+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ae=J[G],de=Y(ae);if(de!=="object")return new m("Invalid "+X+" `"+ne+"` of type "+("`"+de+"` supplied to `"+Z+"`, expected an object."));for(var F in ae)if(r(ae,F)){var H=I(ae,F,Z,X,ne+"."+F,n);if(H instanceof Error)return H}return null}return b(q)}function S(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var q=0;q<I.length;q++){var J=I[q];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ce(J)+" at index "+q+"."),a}function G(Z,X,ne,ae,de){for(var F=[],H=0;H<I.length;H++){var ue=I[H],C=ue(Z,X,ne,ae,de,n);if(C==null)return null;C.data&&r(C.data,"expectedType")&&F.push(C.data.expectedType)}var he=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+ae+" `"+de+"` supplied to "+("`"+ne+"`"+he+"."))}return b(G)}function L(){function I(q,J,G,Z,X){return B(q[J])?null:new m("Invalid "+Z+" `"+X+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return b(I)}function A(I,q,J,G,Z){return new m((I||"React class")+": "+q+" type `"+J+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function D(I){function q(J,G,Z,X,ne){var ae=J[G],de=Y(ae);if(de!=="object")return new m("Invalid "+X+" `"+ne+"` of type `"+de+"` "+("supplied to `"+Z+"`, expected `object`."));for(var F in I){var H=I[F];if(typeof H!="function")return A(Z,X,ne,F,se(H));var ue=H(ae,F,Z,X,ne+"."+F,n);if(ue)return ue}return null}return b(q)}function W(I){function q(J,G,Z,X,ne){var ae=J[G],de=Y(ae);if(de!=="object")return new m("Invalid "+X+" `"+ne+"` of type `"+de+"` "+("supplied to `"+Z+"`, expected `object`."));var F=t({},J[G],I);for(var H in F){var ue=I[H];if(r(I,H)&&typeof ue!="function")return A(Z,X,ne,H,se(ue));if(!ue)return new m("Invalid "+X+" `"+ne+"` key `"+H+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(J[G],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var C=ue(ae,H,Z,X,ne+"."+H,n);if(C)return C}return null}return b(q)}function B(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(B);if(I===null||u(I))return!0;var q=f(I);if(q){var J=q.call(I),G;if(q!==I.entries){for(;!(G=J.next()).done;)if(!B(G.value))return!1}else for(;!(G=J.next()).done;){var Z=G.value;if(Z&&!B(Z[1]))return!1}}else return!1;return!0;default:return!1}}function te(I,q){return I==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function Y(I){var q=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":te(q,I)?"symbol":q}function se(I){if(typeof I>"u"||I===null)return""+I;var q=Y(I);if(q==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return q}function ce(I){var q=se(I);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function fe(I){return!I.constructor||!I.constructor.name?d:I.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Nu}var Lu,Wf;function j0(){if(Wf)return Lu;Wf=1;var e=Eu();function t(){}function n(){}return n.resetWarningCache=t,Lu=function(){function r(a,u,l,s,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Lu}if(process.env.NODE_ENV!=="production"){var W0=Ef(),F0=!0;Tu.exports=I0()(W0.isElement,F0)}else Tu.exports=j0()();var _o=Tu.exports;const U=fr(_o);var Ff={exports:{}};/*!
|
|
21
|
+
Copyright (c) 2018 Jed Watson.
|
|
22
|
+
Licensed under the MIT License (MIT), see
|
|
23
|
+
http://jedwatson.github.io/classnames
|
|
24
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var u=n.apply(null,i);u&&r.push(u)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ff);var fi=Ff.exports;const Zt=fr(fi);var R0=["top","left","transform","className","children","innerRef"];function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iu.apply(this,arguments)}function z0(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function di(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,i=e.transform,a=e.className,u=e.children,l=e.innerRef,s=z0(e,R0);return g.createElement("g",Iu({ref:l,className:Zt("visx-group",a),transform:i||"translate("+o+", "+n+")"},s),u)}di.propTypes={top:U.number,left:U.number,transform:U.string,className:U.string,children:U.node,innerRef:U.oneOfType([U.string,U.func,U.object])};const q0=Object.freeze(Object.defineProperty({__proto__:null,Group:di},Symbol.toStringTag,{value:"Module"}));var B0=Rf;function Rf(e,t,n){e instanceof RegExp&&(e=zf(e,n)),t instanceof RegExp&&(t=zf(t,n));var r=qf(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function zf(e,t){var n=t.match(e);return n?n[0]:null}Rf.range=qf;function qf(e,t,n){var r,o,i,a,u,l=n.indexOf(e),s=n.indexOf(t,l+1),c=l;if(l>=0&&s>0){for(r=[],i=n.length;c>=0&&!u;)c==l?(r.push(c),l=n.indexOf(e,c+1)):r.length==1?u=[r.pop(),s]:(o=r.pop(),o<i&&(i=o,a=s),s=n.indexOf(t,c+1)),c=l<s&&l>=0?l:s;r.length&&(u=[i,a])}return u}var U0=Bf;function Bf(e,t,n){e instanceof RegExp&&(e=Uf(e,n)),t instanceof RegExp&&(t=Uf(t,n));var r=Hf(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Uf(e,t){var n=t.match(e);return n?n[0]:null}Bf.range=Hf;function Hf(e,t,n){var r,o,i,a,u,l=n.indexOf(e),s=n.indexOf(t,l+1),c=l;if(l>=0&&s>0){if(e===t)return[l,s];for(r=[],i=n.length;c>=0&&!u;)c==l?(r.push(c),l=n.indexOf(e,c+1)):r.length==1?u=[r.pop(),s]:(o=r.pop(),o<i&&(i=o,a=s),s=n.indexOf(t,c+1)),c=l<s&&l>=0?l:s;r.length&&(u=[i,a])}return u}var H0=U0,Y0=Yf;function Yf(e,t,n){var r=e;return G0(e,t).reduce(function(o,i){return o.replace(i.functionIdentifier+"("+i.matches.body+")",V0(i.matches.body,i.functionIdentifier,n,r,t))},e)}function G0(e,t){var n=[],r=typeof t=="string"?new RegExp("\\b("+t+")\\("):t;do{var o=r.exec(e);if(!o)return n;if(o[1]===void 0)throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var i=o[1],a=o.index,u=H0("(",")",e.substring(a));if(!u||u.start!==o[0].length-1)throw new SyntaxError(i+"(): missing closing ')' in the value '"+e+"'");n.push({matches:u,functionIdentifier:i}),e=u.post}while(r.test(e));return n}function V0(e,t,n,r,o){return n(Yf(e,o,n),t,r)}var Ve=function(e){this.value=e};Ve.math={isDegree:!0,acos:function(e){return Ve.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return Ve.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return Ve.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var n=1,r=e-t,o=t;o<r&&(o=r,r=t);for(var i=o+1;i<=e;i++)n*=i;return n/Ve.math.fact(r)},changeSign:function(e){return-e},cos:function(e){return Ve.math.isDegree&&(e=Ve.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,o=e;o<=t;o++)r*=Number(n.postfixEval({n:o}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,o=e;o<=t;o++)r+=Number(n.postfixEval({n:o}));return r},sin:function(e){return Ve.math.isDegree&&(e=Ve.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return Ve.math.isDegree&&(e=Ve.math.toRadian(e)),Math.tan(e)},tanh:function(e){return Ve.sinha(e)/Ve.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},Ve.Exception=function(e){this.message=e};var X0=Ve,ve=X0;function Xe(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}for(var vn=[{token:"sin",show:"sin",type:0,value:ve.math.sin},{token:"cos",show:"cos",type:0,value:ve.math.cos},{token:"tan",show:"tan",type:0,value:ve.math.tan},{token:"pi",show:"π",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:ve.math.P},{token:"C",show:"C",type:10,value:ve.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:ve.math.asin},{token:"acos",show:"acos",type:0,value:ve.math.acos},{token:"atan",show:"atan",type:0,value:ve.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:ve.math.cosh},{token:"acosh",show:"acosh",type:0,value:ve.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"÷",type:2,value:ve.math.div},{token:"!",show:"!",type:7,value:ve.math.fact},{token:"tanh",show:"tanh",type:0,value:ve.math.tanh},{token:"atanh",show:"atanh",type:0,value:ve.math.atanh},{token:"Mod",show:" Mod ",type:2,value:ve.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"×",type:2,value:ve.math.mul},{token:"sinh",show:"sinh",type:0,value:ve.math.sinh},{token:"asinh",show:"asinh",type:0,value:ve.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:ve.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:ve.math.add},{token:"-",show:"-",type:9,value:ve.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"Σ",type:12,value:ve.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"Π",type:12,value:ve.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:ve.math.and}],ju={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},wo=0;wo<vn.length;wo++)vn[wo].precedence=ju[vn[wo].type];var Ft={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},dr={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},K0={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},Ot={},hi={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},Z0={1:!0},Ke=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function Q0(e,t,n,r){for(var o=0;o<r;o++)if(e[n+o]!==t[o])return!1;return!0}ve.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},ve.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,r=-1;e[t].type===ve.tokenTypes.FUNCTION_WITH_N_ARGS&&e[t].numberOfArguments===void 0&&(e[t].numberOfArguments=2),Ke[n]=Ke[n]||[];for(var o=0;o<Ke[n].length;o++)if(e[t].token===Ke[n][o]){r=Gf(Ke[n][o],vn);break}r===-1?(vn.push(e[t]),e[t].precedence=ju[e[t].type],Ke.length<=e[t].token.length&&(Ke[e[t].token.length]=[]),Ke[e[t].token.length].push(e[t].token)):(vn[r]=e[t],e[t].precedence=ju[e[t].type])}};function Gf(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}function J0(e){for(var t=[],n=e.length,r,o,i,a=0;a<n;a++)if(!(a<n-1&&e[a]===" "&&e[a+1]===" ")){for(r="",o=e.length-a>Ke.length-2?Ke.length-1:e.length-a;o>0;o--)if(Ke[o]!==void 0)for(i=0;i<Ke[o].length;i++)Q0(e,Ke[o][i],a,o)&&(r=Ke[o][i],i=Ke[o].length,o=0);if(a+=r.length-1,r==="")throw new ve.Exception("Can't understand after "+e.slice(a));t.push(vn[Gf(r,vn)])}return t}var eb={value:ve.math.changeSign,type:0,pre:21,show:"-"},xo={value:")",show:")",type:5,pre:0},pi={value:"(",type:4,pre:0,show:"("};ve.lex=function(e,t){var n=[pi],r=[],o=e,i=Ft,a=0,u=Ot,l="",s;typeof t<"u"&&ve.addToken(t);var c={},f=J0(o);for(s=0;s<f.length;s++){var d=f[s];if(d.type===14){if(s>0&&s<f.length-1&&f[s+1].type===1&&(f[s-1].type===1||f[s-1].type===6))throw new ve.Exception("Unexpected Space");continue}var h=d.token,p=d.type,m=d.value,b=d.precedence,w=d.show,_=n[n.length-1],x;for(x=r.length;x--&&r[x]===0;)if([0,2,3,4,5,9,11,12,13].indexOf(p)!==-1){if(i[p]!==!0)throw new ve.Exception(h+" is not allowed after "+l);n.push(xo),i=dr,u=hi,r.pop()}if(i[p]!==!0)throw new ve.Exception(h+" is not allowed after "+l);if(u[p]===!0&&(p=2,m=ve.math.mul,w="×",b=3,s=s-1),c={value:m,type:p,pre:b,show:w,numberOfArguments:d.numberOfArguments},p===0)i=Ft,u=Ot,Xe(r,2),n.push(c),f[s+1].type!==4&&(n.push(pi),r.push(2));else if(p===1)_.type===1?(_.value+=m,Xe(r,1)):n.push(c),i=dr,u=K0;else if(p===2)i=Ft,u=Ot,Xe(r,2),n.push(c);else if(p===3)n.push(c),i=dr,u=hi;else if(p===4)Xe(r,1),a++,i=Ft,u=Ot,n.push(c);else if(p===5){if(!a)throw new ve.Exception("Closing parenthesis are more than opening one, wait What!!!");a--,i=dr,u=hi,n.push(c),Xe(r,1)}else if(p===6){if(_.hasDec)throw new ve.Exception("Two decimals are not allowed in one number");_.type!==1&&(_={value:0,type:1,pre:0},n.push(_)),i=Z0,Xe(r,1),u=Ot,_.value+=m,_.hasDec=!0}else p===7&&(i=dr,u=hi,Xe(r,1),n.push(c));p===8?(i=Ft,u=Ot,Xe(r,d.numberOfArguments+2),n.push(c),f[s+1].type!==4&&(n.push(pi),r.push(d.numberOfArguments+2))):p===9?(_.type===9?_.value===ve.math.add?(_.value=m,_.show=w,Xe(r,1)):_.value===ve.math.sub&&w==="-"&&(_.value=ve.math.add,_.show="+",Xe(r,1)):_.type!==5&&_.type!==7&&_.type!==1&&_.type!==3&&_.type!==13?h==="-"&&(i=Ft,u=Ot,Xe(r,2).push(2),n.push(eb),n.push(pi)):(n.push(c),Xe(r,2)),i=Ft,u=Ot):p===10?(i=Ft,u=Ot,Xe(r,2),n.push(c)):p===11?(i=Ft,u=Ot,n.push(c)):p===12?(i=Ft,u=Ot,Xe(r,6),n.push(c),f[s+1].type!==4&&(n.push(pi),r.push(6))):p===13&&(i=dr,u=hi,n.push(c)),Xe(r,-1),l=h}for(x=r.length;x--;)n.push(xo);if(i[5]!==!0)throw new ve.Exception("complete the expression");for(;a--;)n.push(xo);return n.push(xo),new ve(n)};var tb=ve,Wu=tb;Wu.prototype.toPostfix=function(){for(var e=[],t,n,r,o,i,a=[{value:"(",type:4,pre:0}],u=this.value,l=1;l<u.length;l++)if(u[l].type===1||u[l].type===3||u[l].type===13)u[l].type===1&&(u[l].value=Number(u[l].value)),e.push(u[l]);else if(u[l].type===4)a.push(u[l]);else if(u[l].type===5)for(;(n=a.pop()).type!==4;)e.push(n);else if(u[l].type===11){for(;(n=a.pop()).type!==4;)e.push(n);a.push(n)}else{t=u[l],o=t.pre,i=a[a.length-1],r=i.pre;var s=i.value=="Math.pow"&&t.value=="Math.pow";if(o>r)a.push(t);else{for(;r>=o&&!s||s&&o<r;)n=a.pop(),i=a[a.length-1],e.push(n),r=i.pre,s=t.value=="Math.pow"&&i.value=="Math.pow";a.push(t)}}return new Wu(e)};var nb=Wu,vi=nb;vi.prototype.postfixEval=function(e){e=e||{},e.PI=Math.PI,e.E=Math.E;for(var t=[],n,r,o,i=this.value,a=typeof e.n<"u",u=0;u<i.length;u++)if(i[u].type===1)t.push({value:i[u].value,type:1});else if(i[u].type===3)t.push({value:e[i[u].value],type:1});else if(i[u].type===0)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(i[u]):t[t.length-1].value=i[u].value(t[t.length-1].value);else if(i[u].type===7)typeof t[t.length-1].type>"u"?t[t.length-1].value.push(i[u]):t[t.length-1].value=i[u].value(t[t.length-1].value);else if(i[u].type===8){for(var l=[],s=0;s<i[u].numberOfArguments;s++)l.push(t.pop().value);t.push({type:1,value:i[u].value.apply(i[u],l.reverse())})}else i[u].type===10?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r.value=r.concat(n),r.value.push(i[u]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(i[u]),t.push(n)):t.push({type:1,value:i[u].value(r.value,n.value)})):i[u].type===2||i[u].type===9?(n=t.pop(),r=t.pop(),typeof r.type>"u"?(r=r.concat(n),r.push(i[u]),t.push(r)):typeof n.type>"u"?(n.unshift(r),n.push(i[u]),t.push(n)):t.push({type:1,value:i[u].value(r.value,n.value)})):i[u].type===12?(n=t.pop(),typeof n.type<"u"&&(n=[n]),r=t.pop(),o=t.pop(),t.push({type:1,value:i[u].value(o.value,r.value,new vi(n))})):i[u].type===13&&(a?t.push({value:e[i[u].value],type:3}):t.push([i[u]]));if(t.length>1)throw new vi.Exception("Uncaught Syntax error");return t[0].value>1e15?"Infinity":parseFloat(t[0].value.toFixed(15))},vi.eval=function(e,t,n){return typeof t>"u"?this.lex(e).toPostfix().postfixEval():typeof n>"u"?typeof t.length<"u"?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)};var rb=vi,Vf=rb;Vf.prototype.formulaEval=function(){for(var e,t,n,r=[],o=this.value,i=0;i<o.length;i++)o[i].type===1||o[i].type===3?r.push({value:o[i].type===3?o[i].show:o[i].value,type:1}):o[i].type===13?r.push({value:o[i].show,type:1}):o[i].type===0?r[r.length-1]={value:o[i].show+(o[i].show!="-"?"(":"")+r[r.length-1].value+(o[i].show!="-"?")":""),type:0}:o[i].type===7?r[r.length-1]={value:(r[r.length-1].type!=1?"(":"")+r[r.length-1].value+(r[r.length-1].type!=1?")":"")+o[i].show,type:7}:o[i].type===10?(e=r.pop(),t=r.pop(),o[i].show==="P"||o[i].show==="C"?r.push({value:"<sup>"+t.value+"</sup>"+o[i].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+"<sup>"+e.value+"</sup>",type:1})):o[i].type===2||o[i].type===9?(e=r.pop(),t=r.pop(),r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+o[i].show+(e.type!=1?"(":"")+e.value+(e.type!=1?")":""),type:o[i].type})):o[i].type===12&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:o[i].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value};var ib=Vf,ob=B0,ab=Y0,ub=ib,lb=100,sb=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g,Fu,cb=fb;function fb(e,t){Fu=0,t=Math.pow(10,t===void 0?5:t),e=e.replace(/\n+/g," ");function n(o,i,a){if(Fu++>lb)throw Fu=0,new Error("Call stack overflow for "+a);if(o==="")throw new Error(i+"(): '"+a+"' must contain a non-whitespace string");o=r(o,a);var u=db(o);if(u.length>1||o.indexOf("var(")>-1)return i+"("+o+")";var l=u[0]||"";l==="%"&&(o=o.replace(/\b[0-9\.]+%/g,function(f){return parseFloat(f.slice(0,-1))*.01}));var s=o.replace(new RegExp(l,"gi"),""),c;try{c=ub.eval(s)}catch{return i+"("+o+")"}return l==="%"&&(c*=100),(i.length||l==="%")&&(c=Math.round(c*t)/t),c+=l,c}function r(o,i){o=o.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var a="",u=o,l;l=sb.exec(u);){l[0].index>0&&(a+=u.substring(0,l[0].index));var s=ob("(",")",u.substring([0].index));if(s.body==="")throw new Error("'"+o+"' must contain a non-whitespace string");var c=n(s.body,"",i);a+=s.pre+c,u=s.post}return a+u}return ab(e,/((?:\-[a-z]+\-)?calc)\(/,n)}function db(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);o;)!o||!o[1]||(n.indexOf(o[1].toLowerCase())===-1&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}const Ru=fr(cb);var hb=typeof ci=="object"&&ci&&ci.Object===Object&&ci,pb=hb,vb=pb,mb=typeof self=="object"&&self&&self.Object===Object&&self,gb=vb||mb||Function("return this")(),Oo=gb,yb=Oo,bb=yb.Symbol,Xf=bb,Kf=Xf,Zf=Object.prototype,_b=Zf.hasOwnProperty,wb=Zf.toString,mi=Kf?Kf.toStringTag:void 0;function xb(e){var t=_b.call(e,mi),n=e[mi];try{e[mi]=void 0;var r=!0}catch{}var o=wb.call(e);return r&&(t?e[mi]=n:delete e[mi]),o}var Ob=xb,Pb=Object.prototype,$b=Pb.toString;function Mb(e){return $b.call(e)}var Sb=Mb,Qf=Xf,Tb=Ob,Cb=Sb,kb="[object Null]",Eb="[object Undefined]",Jf=Qf?Qf.toStringTag:void 0;function Ab(e){return e==null?e===void 0?Eb:kb:Jf&&Jf in Object(e)?Tb(e):Cb(e)}var ed=Ab;function Db(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Po=Db,Nb=ed,Lb=Po,Ib="[object AsyncFunction]",jb="[object Function]",Wb="[object GeneratorFunction]",Fb="[object Proxy]";function Rb(e){if(!Lb(e))return!1;var t=Nb(e);return t==jb||t==Wb||t==Ib||t==Fb}var zb=Rb,qb=Oo,Bb=qb["__core-js_shared__"],Ub=Bb,zu=Ub,td=function(){var e=/[^.]+$/.exec(zu&&zu.keys&&zu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Hb(e){return!!td&&td in e}var Yb=Hb,Gb=Function.prototype,Vb=Gb.toString;function Xb(e){if(e!=null){try{return Vb.call(e)}catch{}try{return e+""}catch{}}return""}var Kb=Xb,Zb=zb,Qb=Yb,Jb=Po,e_=Kb,t_=/[\\^$.*+?()[\]{}|]/g,n_=/^\[object .+?Constructor\]$/,r_=Function.prototype,i_=Object.prototype,o_=r_.toString,a_=i_.hasOwnProperty,u_=RegExp("^"+o_.call(a_).replace(t_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l_(e){if(!Jb(e)||Qb(e))return!1;var t=Zb(e)?u_:n_;return t.test(e_(e))}var s_=l_;function c_(e,t){return e==null?void 0:e[t]}var f_=c_,d_=s_,h_=f_;function p_(e,t){var n=h_(e,t);return d_(n)?n:void 0}var nd=p_,v_=nd,m_=v_(Object,"create"),$o=m_,rd=$o;function g_(){this.__data__=rd?rd(null):{},this.size=0}var y_=g_;function b_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var __=b_,w_=$o,x_="__lodash_hash_undefined__",O_=Object.prototype,P_=O_.hasOwnProperty;function $_(e){var t=this.__data__;if(w_){var n=t[e];return n===x_?void 0:n}return P_.call(t,e)?t[e]:void 0}var M_=$_,S_=$o,T_=Object.prototype,C_=T_.hasOwnProperty;function k_(e){var t=this.__data__;return S_?t[e]!==void 0:C_.call(t,e)}var E_=k_,A_=$o,D_="__lodash_hash_undefined__";function N_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=A_&&t===void 0?D_:t,this}var L_=N_,I_=y_,j_=__,W_=M_,F_=E_,R_=L_;function hr(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])}}hr.prototype.clear=I_,hr.prototype.delete=j_,hr.prototype.get=W_,hr.prototype.has=F_,hr.prototype.set=R_;var z_=hr;function q_(){this.__data__=[],this.size=0}var B_=q_;function U_(e,t){return e===t||e!==e&&t!==t}var H_=U_,Y_=H_;function G_(e,t){for(var n=e.length;n--;)if(Y_(e[n][0],t))return n;return-1}var Mo=G_,V_=Mo,X_=Array.prototype,K_=X_.splice;function Z_(e){var t=this.__data__,n=V_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():K_.call(t,n,1),--this.size,!0}var Q_=Z_,J_=Mo;function e1(e){var t=this.__data__,n=J_(t,e);return n<0?void 0:t[n][1]}var t1=e1,n1=Mo;function r1(e){return n1(this.__data__,e)>-1}var i1=r1,o1=Mo;function a1(e,t){var n=this.__data__,r=o1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var u1=a1,l1=B_,s1=Q_,c1=t1,f1=i1,d1=u1;function pr(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])}}pr.prototype.clear=l1,pr.prototype.delete=s1,pr.prototype.get=c1,pr.prototype.has=f1,pr.prototype.set=d1;var h1=pr,p1=nd,v1=Oo,m1=p1(v1,"Map"),g1=m1,id=z_,y1=h1,b1=g1;function _1(){this.size=0,this.__data__={hash:new id,map:new(b1||y1),string:new id}}var w1=_1;function x1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var O1=x1,P1=O1;function $1(e,t){var n=e.__data__;return P1(t)?n[typeof t=="string"?"string":"hash"]:n.map}var So=$1,M1=So;function S1(e){var t=M1(this,e).delete(e);return this.size-=t?1:0,t}var T1=S1,C1=So;function k1(e){return C1(this,e).get(e)}var E1=k1,A1=So;function D1(e){return A1(this,e).has(e)}var N1=D1,L1=So;function I1(e,t){var n=L1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var j1=I1,W1=w1,F1=T1,R1=E1,z1=N1,q1=j1;function vr(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])}}vr.prototype.clear=W1,vr.prototype.delete=F1,vr.prototype.get=R1,vr.prototype.has=z1,vr.prototype.set=q1;var B1=vr,od=B1,U1="Expected a function";function qu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(U1);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(qu.Cache||od),n}qu.Cache=od;var H1=qu;const Y1=fr(H1);var ad="__react_svg_text_measurement_id";function G1(e,t){try{var n=document.getElementById(ad);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",n=document.createElementNS("http://www.w3.org/2000/svg","text"),n.setAttribute("id",ad),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch{return null}}const ud=Y1(G1,function(e,t){return e+"_"+JSON.stringify(t)});var V1=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function X1(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Bu(e){return typeof e=="number"}function ld(e){return typeof e=="number"&&Number.isFinite(e)||typeof e=="string"}function K1(e){var t=e.verticalAnchor,n=t===void 0?"end":t,r=e.scaleToFit,o=r===void 0?!1:r,i=e.angle,a=e.width,u=e.lineHeight,l=u===void 0?"1em":u,s=e.capHeight,c=s===void 0?"0.71em":s,f=e.children,d=e.style,h=X1(e,V1),p=h.x,m=p===void 0?0:p,b=h.y,w=b===void 0?0:b,_=!ld(m)||!ld(w),x=g.useMemo(function(){var S=f==null?[]:f.toString().split(/(?:(?!\u00A0+)\s+)/);return{wordsWithWidth:S.map(function(L){return{word:L,wordWidth:ud(L,d)||0}}),spaceWidth:ud(" ",d)||0}},[f,d]),$=x.wordsWithWidth,y=x.spaceWidth,O=g.useMemo(function(){return _?[]:a||o?$.reduce(function(S,L){var A=L.word,D=L.wordWidth,W=S[S.length-1];if(W&&(a==null||o||(W.width||0)+D+y<a))W.words.push(A),W.width=W.width||0,W.width+=D+y;else{var B={words:[A],width:D};S.push(B)}return S},[]):[{words:f==null?[]:f.toString().split(/(?:(?!\u00A0+)\s+)/)}]},[_,a,o,f,$,y]),E=g.useMemo(function(){var S=_?"":Ru(n==="start"?"calc("+c+")":n==="middle"?"calc("+(O.length-1)/2+" * -"+l+" + ("+c+" / 2))":"calc("+(O.length-1)+" * -"+l+")");return S},[_,n,c,O.length,l]),k=g.useMemo(function(){var S=[];if(_)return"";if(Bu(m)&&Bu(w)&&Bu(a)&&o&&O.length>0){var L=O[0].width||1,A=o==="shrink-only"?Math.min(a/L,1):a/L,D=A,W=m-A*m,B=w-D*w;S.push("matrix("+A+", 0, 0, "+D+", "+W+", "+B+")")}return i&&S.push("rotate("+i+", "+m+", "+w+")"),S.length>0?S.join(" "):""},[_,m,w,a,o,O,i]);return{wordsByLines:O,startDy:E,transform:k}}var Z1=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uu.apply(this,arguments)}function Q1(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var J1={overflow:"visible"};function sd(e){var t=e.dx,n=t===void 0?0:t,r=e.dy,o=r===void 0?0:r,i=e.textAnchor,a=i===void 0?"start":i,u=e.innerRef,l=e.innerTextRef;e.verticalAnchor,e.angle;var s=e.lineHeight,c=s===void 0?"1em":s;e.scaleToFit,e.capHeight,e.width;var f=Q1(e,Z1),d=f.x,h=d===void 0?0:d,p=f.fontSize,m=K1(e),b=m.wordsByLines,w=m.startDy,_=m.transform;return g.createElement("svg",{ref:u,x:n,y:o,fontSize:p,style:J1},b.length>0?g.createElement("text",Uu({ref:l,transform:_},f,{textAnchor:a}),b.map(function(x,$){return g.createElement("tspan",{key:$,x:h,dy:$===0?w:c},x.words.join(" "))})):null)}function Hu(e,t,n){var r,o,i,a,u;t==null&&(t=100);function l(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,n||(u=e.apply(i,o),i=o=null))}var s=function(){i=this,o=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(u=e.apply(i,o),i=o=null),u};return s.clear=function(){r&&(clearTimeout(r),r=null)},s.flush=function(){r&&(u=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},s}Hu.debounce=Hu;var ew=Hu;const cd=fr(ew);function tw(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const i=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,u]=g.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=g.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),s=t?typeof t=="number"?t:t.scroll:null,c=t?typeof t=="number"?t:t.resize:null,f=g.useRef(!1);g.useEffect(()=>(f.current=!0,()=>void(f.current=!1)));const[d,h,p]=g.useMemo(()=>{const _=()=>{if(!l.current.element)return;const{left:x,top:$,width:y,height:O,bottom:E,right:k,x:S,y:L}=l.current.element.getBoundingClientRect(),A={left:x,top:$,width:y,height:O,bottom:E,right:k,x:S,y:L};l.current.element instanceof HTMLElement&&o&&(A.height=l.current.element.offsetHeight,A.width=l.current.element.offsetWidth),Object.freeze(A),f.current&&!ow(l.current.lastBounds,A)&&u(l.current.lastBounds=A)};return[_,c?cd(_,c):_,s?cd(_,s):_]},[u,o,s,c]);function m(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(_=>_.removeEventListener("scroll",p,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function b(){l.current.element&&(l.current.resizeObserver=new i(p),l.current.resizeObserver.observe(l.current.element),n&&l.current.scrollContainers&&l.current.scrollContainers.forEach(_=>_.addEventListener("scroll",p,{capture:!0,passive:!0})))}const w=_=>{!_||_===l.current.element||(m(),l.current.element=_,l.current.scrollContainers=fd(_),b())};return rw(p,!!n),nw(h),g.useEffect(()=>{m(),b()},[n,p,h]),g.useEffect(()=>m,[]),[w,a,d]}function nw(e){g.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function rw(e,t){g.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function fd(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some(i=>i==="auto"||i==="scroll")&&t.push(e),[...t,...fd(e.parentElement)]}const iw=["x","y","top","bottom","left","right","width","height"],ow=(e,t)=>iw.every(n=>e[n]===t[n]);var mr=function(){function e(n){var r=n.x,o=r===void 0?0:r,i=n.y,a=i===void 0?0:i;this.x=0,this.y=0,this.x=o,this.y=a}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}();function aw(e,t){return new mr({x:e.x+t.x,y:e.y+t.y})}function uw(e,t){return new mr({x:e.x-t.x,y:e.y-t.y})}const dd=yo(Object.freeze(Object.defineProperty({__proto__:null,Point:mr,subtractPoints:uw,sumPoints:aw},Symbol.toStringTag,{value:"Module"})));function lw(e){return!!e&&e instanceof Element}function sw(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function cw(e){return!!e&&"createSVGPoint"in e}function fw(e){return!!e&&"getScreenCTM"in e}function dw(e){return!!e&&"changedTouches"in e}function hw(e){return!!e&&"clientX"in e}function pw(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gi.apply(this,arguments)}var Yu={x:0,y:0};function vw(e){if(!e)return gi({},Yu);if(dw(e))return e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:gi({},Yu);if(hw(e))return{x:e.clientX,y:e.clientY};var t=e==null?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:gi({},Yu)}function hd(e,t){if(!e||!t)return null;var n=vw(t),r=sw(e)?e.ownerSVGElement:e,o=fw(r)?r.getScreenCTM():null;if(cw(r)&&o){var i=r.createSVGPoint();return i.x=n.x,i.y=n.y,i=i.matrixTransform(o.inverse()),new mr({x:i.x,y:i.y})}var a=e.getBoundingClientRect();return new mr({x:n.x-a.left-e.clientLeft,y:n.y-a.top-e.clientTop})}function mw(e,t){if(lw(e)&&t)return hd(e,t);if(pw(e)){var n=e,r=n.target;if(r)return hd(r,n)}return null}var pd={},To={},vt={},Pt={},mt={};Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=gw;function gw(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}var Co={},ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=yw;function yw(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}Object.defineProperty(Co,"__esModule",{value:!0}),Co.default=_w;var Gu=vd(mt),bw=vd(ko);function vd(e){return e&&e.__esModule?e:{default:e}}function _w(e){let t,n,r;e.length!==2?(t=Gu.default,n=(u,l)=>(0,Gu.default)(e(u),l),r=(u,l)=>e(u)-l):(t=e===Gu.default||e===bw.default?e:ww,n=e,r=e);function o(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;n(u[f],l)<0?s=f+1:c=f}while(s<c)}return s}function i(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;n(u[f],l)<=0?s=f+1:c=f}while(s<c)}return s}function a(u,l,s=0,c=u.length){const f=o(u,l,s,c-1);return f>s&&r(u[f-1],l)>-r(u[f],l)?f-1:f}return{left:o,center:a,right:i}}function ww(){return 0}var yi={};Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=xw,yi.numbers=Ow;function xw(e){return e===null?NaN:+e}function*Ow(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)}}Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.default=Pt.bisectRight=Pt.bisectLeft=Pt.bisectCenter=void 0;var Pw=Vu(mt),md=Vu(Co),$w=Vu(yi);function Vu(e){return e&&e.__esModule?e:{default:e}}const gd=(0,md.default)(Pw.default),yd=gd.right;Pt.bisectRight=yd;const Mw=gd.left;Pt.bisectLeft=Mw;const Sw=(0,md.default)($w.default).center;Pt.bisectCenter=Sw;var Tw=yd;Pt.default=Tw;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.blur=Cw,Nn.blurImage=Nn.blur2=void 0;function Cw(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const r=Xu(t),o=e.slice();return r(e,o,0,n,1),r(o,e,0,n,1),r(e,o,0,n,1),e}const kw=bd(Xu);Nn.blur2=kw;const Ew=bd(Aw);Nn.blurImage=Ew;function bd(e){return function(t,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:o,width:i,height:a}=t;if(!((i=Math.floor(i))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(a!==void 0?a:o.length/i))>=0))throw new RangeError("invalid height");if(!i||!a||!n&&!r)return t;const u=n&&e(n),l=r&&e(r),s=o.slice();return u&&l?(gr(u,s,o,i,a),gr(u,o,s,i,a),gr(u,s,o,i,a),yr(l,o,s,i,a),yr(l,s,o,i,a),yr(l,o,s,i,a)):u?(gr(u,o,s,i,a),gr(u,s,o,i,a),gr(u,o,s,i,a)):l&&(yr(l,o,s,i,a),yr(l,s,o,i,a),yr(l,o,s,i,a)),t}}function gr(e,t,n,r,o){for(let i=0,a=r*o;i<a;)e(t,n,i,i+=r,1)}function yr(e,t,n,r,o){for(let i=0,a=r*o;i<r;++i)e(t,n,i,i+a,r)}function Aw(e){const t=Xu(e);return(n,r,o,i,a)=>{o<<=2,i<<=2,a<<=2,t(n,r,o+0,i+0,a),t(n,r,o+1,i+1,a),t(n,r,o+2,i+2,a),t(n,r,o+3,i+3,a)}}function Xu(e){const t=Math.floor(e);if(t===e)return Dw(e);const n=e-t,r=2*e+1;return(o,i,a,u,l)=>{if(!((u-=l)>=a))return;let s=t*i[a];const c=l*t,f=c+l;for(let d=a,h=a+c;d<h;d+=l)s+=i[Math.min(u,d)];for(let d=a,h=u;d<=h;d+=l)s+=i[Math.min(u,d+c)],o[d]=(s+n*(i[Math.max(a,d-f)]+i[Math.min(u,d+f)]))/r,s-=i[Math.max(a,d-c)]}}function Dw(e){const t=2*e+1;return(n,r,o,i,a)=>{if(!((i-=a)>=o))return;let u=e*r[o];const l=a*e;for(let s=o,c=o+l;s<c;s+=a)u+=r[Math.min(i,s)];for(let s=o,c=i;s<=c;s+=a)u+=r[Math.min(i,s+l)],n[s]=u/t,u-=r[Math.max(o,s-l)]}}var br={};Object.defineProperty(br,"__esModule",{value:!0}),br.default=Nw;function Nw(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 o of e)(o=t(o,++r,e))!=null&&(o=+o)>=o&&++n}return n}var Ku={};Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.default=Fw;function Lw(e){return e.length|0}function Iw(e){return!(e>0)}function jw(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function Ww(e){return t=>e(...t)}function Fw(...e){const t=typeof e[e.length-1]=="function"&&Ww(e.pop());e=e.map(jw);const n=e.map(Lw),r=e.length-1,o=new Array(r+1).fill(0),i=[];if(r<0||n.some(Iw))return i;for(;;){i.push(o.map((u,l)=>e[l][u]));let a=r;for(;++o[a]===n[a];){if(a===0)return t?i.map(t):i;o[a--]=0}}}var Zu={};Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.default=Rw;function Rw(e,t){var n=0,r=0;return Float64Array.from(e,t===void 0?o=>n+=+o||0:o=>n+=+t(o,r++,e)||0)}var Eo={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.default=zw;function zw(e,t){let n=0,r,o=0,i=0;if(t===void 0)for(let a of e)a!=null&&(a=+a)>=a&&(r=a-o,o+=r/++n,i+=r*(a-o));else{let a=-1;for(let u of e)(u=t(u,++a,e))!=null&&(u=+u)>=u&&(r=u-o,o+=r/++n,i+=r*(u-o))}if(n>1)return i/(n-1)}Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=Uw;var qw=Bw(Ao);function Bw(e){return e&&e.__esModule?e:{default:e}}function Uw(e,t){const n=(0,qw.default)(e,t);return n&&Math.sqrt(n)}var Do={};Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=Hw;function Hw(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let i of e)(i=t(i,++o,e))!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}var _r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.Adder=void 0,_r.fcumsum=Gw,_r.fsum=Yw;class Qu{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let o=0;o<this._n&&o<32;o++){const i=n[o],a=t+i,u=Math.abs(t)<Math.abs(i)?t-(a-i):i-(a-t);u&&(n[r++]=u),t=a}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,o,i,a=0;if(n>0){for(a=t[--n];n>0&&(r=a,o=t[--n],a=r+o,i=o-(a-r),!i););n>0&&(i<0&&t[n-1]<0||i>0&&t[n-1]>0)&&(o=i*2,r=a+o,o==r-a&&(a=r))}return a}}_r.Adder=Qu;function Yw(e,t){const n=new Qu;if(t===void 0)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&n.add(o)}return+n}function Gw(e,t){const n=new Qu;let r=-1;return Float64Array.from(e,t===void 0?o=>n.add(+o||0):o=>n.add(+t(o,++r,e)||0))}var $t={},gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.InternSet=gt.InternMap=void 0;class Vw extends Map{constructor(t,n=xd){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(Ju(this,t))}has(t){return super.has(Ju(this,t))}set(t,n){return super.set(_d(this,t),n)}delete(t){return super.delete(wd(this,t))}}gt.InternMap=Vw;class Xw extends Set{constructor(t,n=xd){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(Ju(this,t))}add(t){return super.add(_d(this,t))}delete(t){return super.delete(wd(this,t))}}gt.InternSet=Xw;function Ju({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function _d({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function wd({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function xd(e){return e!==null&&typeof e=="object"?e.valueOf():e}var No={};Object.defineProperty(No,"__esModule",{value:!0}),No.default=Kw;function Kw(e){return e}Object.defineProperty($t,"__esModule",{value:!0}),$t.default=Jw,$t.flatGroup=ex,$t.flatRollup=tx,$t.groups=Od,$t.index=rx,$t.indexes=ix,$t.rollup=nx,$t.rollups=$d;var Zw=gt,bi=Qw(No);function Qw(e){return e&&e.__esModule?e:{default:e}}function Jw(e,...t){return wr(e,bi.default,bi.default,t)}function Od(e,...t){return wr(e,Array.from,bi.default,t)}function Pd(e,t){for(let n=1,r=t.length;n<r;++n)e=e.flatMap(o=>o.pop().map(([i,a])=>[...o,i,a]));return e}function ex(e,...t){return Pd(Od(e,...t),t)}function tx(e,t,...n){return Pd($d(e,t,...n),n)}function nx(e,t,...n){return wr(e,bi.default,t,n)}function $d(e,t,...n){return wr(e,Array.from,t,n)}function rx(e,...t){return wr(e,bi.default,Md,t)}function ix(e,...t){return wr(e,Array.from,Md,t)}function Md(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function wr(e,t,n,r){return function o(i,a){if(a>=r.length)return n(i);const u=new Zw.InternMap,l=r[a++];let s=-1;for(const c of i){const f=l(c,++s,i),d=u.get(f);d?d.push(c):u.set(f,[c])}for(const[c,f]of u)u.set(c,o(f,a));return t(u)}(e,0)}var el={},Qt={},Lo={};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=ox;function ox(e,t){return Array.from(t,n=>e[n])}Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.ascendingDefined=Io,Qt.compareDefined=Cd,Qt.default=ux;var Sd=Td(mt),ax=Td(Lo);function Td(e){return e&&e.__esModule?e:{default:e}}function ux(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(o,i)=>i);return t.length>1?(t=t.map(o=>e.map(o)),r.sort((o,i)=>{for(const a of t){const u=Io(a[o],a[i]);if(u)return u}})):(n=e.map(n),r.sort((o,i)=>Io(n[o],n[i]))),(0,ax.default)(e,r)}return e.sort(Cd(n))}function Cd(e=Sd.default){if(e===Sd.default)return Io;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 Io(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}Object.defineProperty(el,"__esModule",{value:!0}),el.default=sx;var tl=Dd(mt),kd=lx($t),Ed=Dd(Qt);function Ad(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ad=function(r){return r?n:t})(e)}function lx(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ad(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Dd(e){return e&&e.__esModule?e:{default:e}}function sx(e,t,n){return(t.length!==2?(0,Ed.default)((0,kd.rollup)(e,t,n),([r,o],[i,a])=>(0,tl.default)(o,a)||(0,tl.default)(r,i)):(0,Ed.default)((0,kd.default)(e,n),([r,o],[i,a])=>t(o,a)||(0,tl.default)(r,i))).map(([r])=>r)}var nl={},xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.slice=xr.map=void 0;var Nd=Array.prototype,cx=Nd.slice;xr.slice=cx;var fx=Nd.map;xr.map=fx;var rl={};Object.defineProperty(rl,"__esModule",{value:!0}),rl.default=dx;function dx(e){return()=>e}var jo={},Ln={};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.default=hx,Ln.tickIncrement=Ld,Ln.tickStep=px;var il=Math.sqrt(50),ol=Math.sqrt(10),al=Math.sqrt(2);function hx(e,t,n){var r,o=-1,i,a,u;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),(u=Ld(e,t,n))===0||!isFinite(u))return[];if(u>0){let l=Math.round(e/u),s=Math.round(t/u);for(l*u<e&&++l,s*u>t&&--s,a=new Array(i=s-l+1);++o<i;)a[o]=(l+o)*u}else{u=-u;let l=Math.round(e*u),s=Math.round(t*u);for(l/u<e&&++l,s/u>t&&--s,a=new Array(i=s-l+1);++o<i;)a[o]=(l+o)/u}return r&&a.reverse(),a}function Ld(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=il?10:i>=ol?5:i>=al?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=il?10:i>=ol?5:i>=al?2:1)}function px(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=il?o*=10:i>=ol?o*=5:i>=al&&(o*=2),t<e?-o:o}Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=mx;var vx=Ln;function mx(e,t,n){let r;for(;;){const o=(0,vx.tickIncrement)(e,t,n);if(o===r||o===0||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.default=bx;var gx=yx(br);function yx(e){return e&&e.__esModule?e:{default:e}}function bx(e){return Math.ceil(Math.log((0,gx.default)(e))/Math.LN2)+1}Object.defineProperty(nl,"__esModule",{value:!0}),nl.default=Mx;var _x=xr,wx=Or(Pt),ul=Or(rl),ll=Or(Do),xx=Or(No),Ox=Or(jo),sl=$x(Ln),Px=Or(Wo);function Id(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Id=function(r){return r?n:t})(e)}function $x(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Id(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Or(e){return e&&e.__esModule?e:{default:e}}function Mx(){var e=xx.default,t=ll.default,n=Px.default;function r(o){Array.isArray(o)||(o=Array.from(o));var i,a=o.length,u,l,s=new Array(a);for(i=0;i<a;++i)s[i]=e(o[i],i,o);var c=t(s),f=c[0],d=c[1],h=n(s,f,d);if(!Array.isArray(h)){const x=d,$=+h;if(t===ll.default&&([f,d]=(0,Ox.default)(f,d,$)),h=(0,sl.default)(f,d,$),h[0]<=f&&(l=(0,sl.tickIncrement)(f,d,$)),h[h.length-1]>=d)if(x>=d&&t===ll.default){const y=(0,sl.tickIncrement)(f,d,$);isFinite(y)&&(y>0?d=(Math.floor(d/y)+1)*y:y<0&&(d=(Math.ceil(d*-y)+1)/-y))}else h.pop()}for(var p=h.length,m=0,b=p;h[m]<=f;)++m;for(;h[b-1]>d;)--b;(m||b<p)&&(h=h.slice(m,b),p=b-m);var w=new Array(p+1),_;for(i=0;i<=p;++i)_=w[i]=[],_.x0=i>0?h[i-1]:f,_.x1=i<p?h[i]:d;if(isFinite(l)){if(l>0)for(i=0;i<a;++i)(u=s[i])!=null&&f<=u&&u<=d&&w[Math.min(p,Math.floor((u-f)/l))].push(o[i]);else if(l<0){for(i=0;i<a;++i)if((u=s[i])!=null&&f<=u&&u<=d){const x=Math.floor((f-u)*l);w[Math.min(p,x+(h[x]<=u))].push(o[i])}}}else for(i=0;i<a;++i)(u=s[i])!=null&&f<=u&&u<=d&&w[(0,wx.default)(h,u,0,p)].push(o[i]);return w}return r.value=function(o){return arguments.length?(e=typeof o=="function"?o:(0,ul.default)(o),r):e},r.domain=function(o){return arguments.length?(t=typeof o=="function"?o:(0,ul.default)([o[0],o[1]]),r):t},r.thresholds=function(o){return arguments.length?(n=typeof o=="function"?o:(0,ul.default)(Array.isArray(o)?_x.slice.call(o):o),r):n},r}var cl={},In={},Fo={};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=Sx;function Sx(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 o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}var _i={};Object.defineProperty(_i,"__esModule",{value:!0}),_i.default=Tx;function Tx(e,t){let n,r=-1,o=-1;if(t===void 0)for(const i of e)++o,i!=null&&(n<i||n===void 0&&i>=i)&&(n=i,r=o);else for(let i of e)(i=t(i,++o,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i,r=o);return r}var wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.default=Cx;function Cx(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 o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}var xi={};Object.defineProperty(xi,"__esModule",{value:!0}),xi.default=kx;function kx(e,t){let n,r=-1,o=-1;if(t===void 0)for(const i of e)++o,i!=null&&(n>i||n===void 0&&i>=i)&&(n=i,r=o);else for(let i of e)(i=t(i,++o,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i,r=o);return r}var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=Wd;var jd=Qt;function Wd(e,t,n=0,r=1/0,o){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(o=o===void 0?jd.ascendingDefined:(0,jd.compareDefined)(o);r>n;){if(r-n>600){const l=r-n+1,s=t-n+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(s-l/2<0?-1:1),h=Math.max(n,Math.floor(t-s*f/l+d)),p=Math.min(r,Math.floor(t+(l-s)*f/l+d));Wd(e,t,h,p,o)}const i=e[t];let a=n,u=r;for(Oi(e,n,t),o(e[r],i)>0&&Oi(e,n,r);a<u;){for(Oi(e,a,u),++a,--u;o(e[a],i)<0;)++a;for(;o(e[u],i)>0;)--u}o(e[n],i)===0?Oi(e,n,u):(++u,Oi(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Oi(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}var zo={};Object.defineProperty(zo,"__esModule",{value:!0}),zo.default=Ax;var fl=Ex(mt);function Ex(e){return e&&e.__esModule?e:{default:e}}function Ax(e,t=fl.default){let n,r=!1;if(t.length===1){let o;for(const i of e){const a=t(i);(r?(0,fl.default)(a,o)>0:(0,fl.default)(a,a)===0)&&(n=i,o=a,r=!0)}}else for(const o of e)(r?t(o,n)>0:t(o,o)===0)&&(n=o,r=!0);return n}Object.defineProperty(In,"__esModule",{value:!0}),In.default=Wx,In.quantileIndex=Rx,In.quantileSorted=Fx;var Fd=Pr(Fo),Dx=Pr(_i),Rd=Pr(wi),Nx=Pr(xi),zd=Pr(Ro),dl=jx(yi),Lx=Qt,Ix=Pr(zo);function qd(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(qd=function(r){return r?n:t})(e)}function jx(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=qd(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Pr(e){return e&&e.__esModule?e:{default:e}}function Wx(e,t,n){if(e=Float64Array.from((0,dl.numbers)(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return(0,Rd.default)(e);if(t>=1)return(0,Fd.default)(e);var r,o=(r-1)*t,i=Math.floor(o),a=(0,Fd.default)((0,zd.default)(e,i).subarray(0,i+1)),u=(0,Rd.default)(e.subarray(i+1));return a+(u-a)*(o-i)}}function Fx(e,t,n=dl.default){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),u=+n(e[i+1],i+1,e);return a+(u-a)*(o-i)}}function Rx(e,t,n){if(e=Float64Array.from((0,dl.numbers)(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return(0,Nx.default)(e);if(t>=1)return(0,Dx.default)(e);var r,o=Math.floor((r-1)*t),i=(u,l)=>(0,Lx.ascendingDefined)(e[u],e[l]),a=(0,zd.default)(Uint32Array.from(e,(u,l)=>l),o,0,r-1,i);return(0,Ix.default)(a.subarray(0,o+1),u=>e[u])}}Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=qx;var zx=Ud(br),Bd=Ud(In);function Ud(e){return e&&e.__esModule?e:{default:e}}function qx(e,t,n){return Math.ceil((n-t)/(2*((0,Bd.default)(e,.75)-(0,Bd.default)(e,.25))*Math.pow((0,zx.default)(e),-1/3)))}var hl={};Object.defineProperty(hl,"__esModule",{value:!0}),hl.default=Hx;var Bx=Hd(br),Ux=Hd(Eo);function Hd(e){return e&&e.__esModule?e:{default:e}}function Hx(e,t,n){return Math.ceil((n-t)*Math.cbrt((0,Bx.default)(e))/(3.49*(0,Ux.default)(e)))}var pl={};Object.defineProperty(pl,"__esModule",{value:!0}),pl.default=Yx;function Yx(e,t){let n=0,r=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of e)(i=t(i,++o,e))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}var qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=Vx,qo.medianIndex=Xx;var Yd=Gx(In);function Gd(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Gd=function(r){return r?n:t})(e)}function Gx(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Gd(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Vx(e,t){return(0,Yd.default)(e,.5,t)}function Xx(e,t){return(0,Yd.quantileIndex)(e,.5,t)}var vl={};Object.defineProperty(vl,"__esModule",{value:!0}),vl.default=Zx;function*Kx(e){for(const t of e)yield*t}function Zx(e){return Array.from(Kx(e))}var ml={};Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=Jx;var Qx=gt;function Jx(e,t){const n=new Qx.InternMap;if(t===void 0)for(let i of e)i!=null&&i>=i&&n.set(i,(n.get(i)||0)+1);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&a>=a&&n.set(a,(n.get(a)||0)+1)}let r,o=0;for(const[i,a]of n)a>o&&(o=a,r=i);return r}var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=eO,Bo.pair=Vd;function eO(e,t=Vd){const n=[];let r,o=!1;for(const i of e)o&&n.push(t(r,i)),r=i,o=!0;return n}function Vd(e,t){return[e,t]}var gl={};Object.defineProperty(gl,"__esModule",{value:!0}),gl.default=tO;function tO(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}var yl={};Object.defineProperty(yl,"__esModule",{value:!0}),yl.default=rO;var bl=nO(mt),Xd=Qt;function nO(e){return e&&e.__esModule?e:{default:e}}function rO(e,t=bl.default){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let n=Array.from(e);const r=new Float64Array(n.length);t.length!==2&&(n=n.map(t),t=bl.default);const o=(u,l)=>t(n[u],n[l]);let i,a;return Uint32Array.from(n,(u,l)=>l).sort(t===bl.default?(u,l)=>(0,Xd.ascendingDefined)(n[u],n[l]):(0,Xd.compareDefined)(o)).forEach((u,l)=>{const s=o(u,i===void 0?u:i);s>=0?((i===void 0||s>0)&&(i=u,a=l),r[u]=a):r[u]=NaN}),r}var _l={};Object.defineProperty(_l,"__esModule",{value:!0}),_l.default=oO;var wl=iO(mt);function iO(e){return e&&e.__esModule?e:{default:e}}function oO(e,t=wl.default){let n,r=!1;if(t.length===1){let o;for(const i of e){const a=t(i);(r?(0,wl.default)(a,o)<0:(0,wl.default)(a,a)===0)&&(n=i,o=a,r=!0)}}else for(const o of e)(r?t(o,n)<0:t(o,o)===0)&&(n=o,r=!0);return n}var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=lO;var aO=Kd(mt),uO=Kd(xi);function Kd(e){return e&&e.__esModule?e:{default:e}}function lO(e,t=aO.default){if(t.length===1)return(0,uO.default)(e,t);let n,r=-1,o=-1;for(const i of e)++o,(r<0?t(i,i)===0:t(i,n)<0)&&(n=i,r=o);return r}var xl={};Object.defineProperty(xl,"__esModule",{value:!0}),xl.default=fO;var sO=Zd(mt),cO=Zd(_i);function Zd(e){return e&&e.__esModule?e:{default:e}}function fO(e,t=sO.default){if(t.length===1)return(0,cO.default)(e,t);let n,r=-1,o=-1;for(const i of e)++o,(r<0?t(i,i)===0:t(i,n)>0)&&(n=i,r=o);return r}var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.default=pO;var dO=hO(Uo);function hO(e){return e&&e.__esModule?e:{default:e}}function pO(e,t){const n=(0,dO.default)(e,t);return n<0?void 0:n}var Pi={};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=void 0,Pi.shuffler=Qd;var vO=Qd(Math.random);Pi.default=vO;function Qd(e){return function(n,r=0,o=n.length){let i=o-(r=+r);for(;i;){const a=e()*i--|0,u=n[i+r];n[i+r]=n[a+r],n[a+r]=u}return n}}var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=mO;function mO(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.default=bO;var gO=yO(wi);function yO(e){return e&&e.__esModule?e:{default:e}}function bO(e){if(!(i=e.length))return[];for(var t=-1,n=(0,gO.default)(e,_O),r=new Array(n);++t<n;)for(var o=-1,i,a=r[t]=new Array(i);++o<i;)a[o]=e[o][t];return r}function _O(e){return e.length}var $l={};Object.defineProperty($l,"__esModule",{value:!0}),$l.default=OO;var wO=xO(Ho);function xO(e){return e&&e.__esModule?e:{default:e}}function OO(){return(0,wO.default)(arguments)}var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=PO;function PO(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.default=$O;function $O(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.default=MO;function MO(e,t){if(typeof t!="function")throw new TypeError("test is not a function");const n=[];let r=-1;for(const o of e)t(o,++r,e)&&n.push(o);return n}var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=SO;function SO(e,t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof t!="function")throw new TypeError("mapper is not a function");return Array.from(e,(n,r)=>t(n,r,e))}var kl={};Object.defineProperty(kl,"__esModule",{value:!0}),kl.default=TO;function TO(e,t,n){if(typeof t!="function")throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let o,i,a=-1;if(arguments.length<3){if({done:o,value:n}=r.next(),o)return;++a}for(;{done:o,value:i}=r.next(),!o;)n=t(n,i,++a,e);return n}var El={};Object.defineProperty(El,"__esModule",{value:!0}),El.default=CO;function CO(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}var Al={};Object.defineProperty(Al,"__esModule",{value:!0}),Al.default=EO;var kO=gt;function EO(e,...t){e=new kO.InternSet(e);for(const n of t)for(const r of n)e.delete(r);return e}var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.default=DO;var AO=gt;function DO(e,t){const n=t[Symbol.iterator](),r=new AO.InternSet;for(const o of e){if(r.has(o))return!1;let i,a;for(;({value:i,done:a}=n.next())&&!a;){if(Object.is(o,i))return!1;r.add(i)}}return!0}var Nl={};Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.default=NO;var Ll=gt;function NO(e,...t){e=new Ll.InternSet(e),t=t.map(LO);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function LO(e){return e instanceof Ll.InternSet?e:new Ll.InternSet(e)}var Il={},Yo={};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=IO;function IO(e,t){const n=e[Symbol.iterator](),r=new Set;for(const o of t){const i=Jd(o);if(r.has(i))continue;let a,u;for(;{value:a,done:u}=n.next();){if(u)return!1;const l=Jd(a);if(r.add(l),Object.is(i,l))break}}return!0}function Jd(e){return e!==null&&typeof e=="object"?e.valueOf():e}Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=FO;var jO=WO(Yo);function WO(e){return e&&e.__esModule?e:{default:e}}function FO(e,t){return(0,jO.default)(t,e)}var jl={};Object.defineProperty(jl,"__esModule",{value:!0}),jl.default=zO;var RO=gt;function zO(...e){const t=new RO.InternSet;for(const n of e)for(const r of n)t.add(r);return t}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Adder",{enumerable:!0,get:function(){return f.Adder}}),Object.defineProperty(e,"InternMap",{enumerable:!0,get:function(){return ur.InternMap}}),Object.defineProperty(e,"InternSet",{enumerable:!0,get:function(){return ur.InternSet}}),Object.defineProperty(e,"ascending",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"bin",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"bisect",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"bisectCenter",{enumerable:!0,get:function(){return t.bisectCenter}}),Object.defineProperty(e,"bisectLeft",{enumerable:!0,get:function(){return t.bisectLeft}}),Object.defineProperty(e,"bisectRight",{enumerable:!0,get:function(){return t.bisectRight}}),Object.defineProperty(e,"bisector",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"blur",{enumerable:!0,get:function(){return o.blur}}),Object.defineProperty(e,"blur2",{enumerable:!0,get:function(){return o.blur2}}),Object.defineProperty(e,"blurImage",{enumerable:!0,get:function(){return o.blurImage}}),Object.defineProperty(e,"count",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"cross",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"cumsum",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"descending",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"deviation",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return Ee.default}}),Object.defineProperty(e,"disjoint",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(e,"every",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(e,"extent",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"fcumsum",{enumerable:!0,get:function(){return f.fcumsum}}),Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"flatGroup",{enumerable:!0,get:function(){return d.flatGroup}}),Object.defineProperty(e,"flatRollup",{enumerable:!0,get:function(){return d.flatRollup}}),Object.defineProperty(e,"fsum",{enumerable:!0,get:function(){return f.fsum}}),Object.defineProperty(e,"greatest",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"greatestIndex",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"group",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"groupSort",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"groups",{enumerable:!0,get:function(){return d.groups}}),Object.defineProperty(e,"histogram",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"index",{enumerable:!0,get:function(){return d.index}}),Object.defineProperty(e,"indexes",{enumerable:!0,get:function(){return d.indexes}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return Ye.default}}),Object.defineProperty(e,"least",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"leastIndex",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"map",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"maxIndex",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"mean",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"median",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"medianIndex",{enumerable:!0,get:function(){return y.medianIndex}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"minIndex",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"mode",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"nice",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"permute",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"quantile",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"quantileIndex",{enumerable:!0,get:function(){return W.quantileIndex}}),Object.defineProperty(e,"quantileSorted",{enumerable:!0,get:function(){return W.quantileSorted}}),Object.defineProperty(e,"quickselect",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"range",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"rank",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"reverse",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(e,"rollup",{enumerable:!0,get:function(){return d.rollup}}),Object.defineProperty(e,"rollups",{enumerable:!0,get:function(){return d.rollups}}),Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"shuffle",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"shuffler",{enumerable:!0,get:function(){return J.shuffler}}),Object.defineProperty(e,"some",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"sort",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(e,"subset",{enumerable:!0,get:function(){return Yt.default}}),Object.defineProperty(e,"sum",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"superset",{enumerable:!0,get:function(){return An.default}}),Object.defineProperty(e,"thresholdFreedmanDiaconis",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"thresholdScott",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"thresholdSturges",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"tickIncrement",{enumerable:!0,get:function(){return Z.tickIncrement}}),Object.defineProperty(e,"tickStep",{enumerable:!0,get:function(){return Z.tickStep}}),Object.defineProperty(e,"ticks",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"transpose",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return rt.default}}),Object.defineProperty(e,"variance",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return ae.default}});var t=Wt(Pt),n=le(mt),r=le(Co),o=Nn,i=le(br),a=le(Ku),u=le(Zu),l=le(ko),s=le(Eo),c=le(Do),f=_r,d=Wt($t),h=le(el),p=le(nl),m=le(cl),b=le(hl),w=le(Wo),_=le(Fo),x=le(_i),$=le(pl),y=Wt(qo),O=le(vl),E=le(wi),k=le(xi),S=le(ml),L=le(jo),A=le(Bo),D=le(Lo),W=Wt(In),B=le(Ro),te=le(gl),Y=le(yl),se=le(_l),ce=le(Uo),fe=le(zo),I=le(xl),q=le(Ol),J=Wt(Pi),G=le(Pl),Z=Wt(Ln),X=le(Ho),ne=le(Ao),ae=le($l),de=le(Ml),F=le(Sl),H=le(Tl),ue=le(Cl),C=le(kl),he=le(El),pe=le(Qt),Ee=le(Al),Ae=le(Dl),Ye=le(Nl),Yt=le(Il),An=le(Yo),rt=le(jl),ur=gt;function le(Se){return Se&&Se.__esModule?Se:{default:Se}}function De(Se){if(typeof WeakMap!="function")return null;var Gt=new WeakMap,Le=new WeakMap;return(De=function(Ge){return Ge?Le:Gt})(Se)}function Wt(Se,Gt){if(!Gt&&Se&&Se.__esModule)return Se;if(Se===null||typeof Se!="object"&&typeof Se!="function")return{default:Se};var Le=De(Gt);if(Le&&Le.has(Se))return Le.get(Se);var Ge={},cn=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ct in Se)if(ct!=="default"&&Object.prototype.hasOwnProperty.call(Se,ct)){var Vt=cn?Object.getOwnPropertyDescriptor(Se,ct):null;Vt&&(Vt.get||Vt.set)?Object.defineProperty(Ge,ct,Vt):Ge[ct]=Se[ct]}return Ge.default=Se,Le&&Le.set(Se,Ge),Ge}})(vt);var ze={};Object.defineProperty(ze,"__esModule",{value:!0}),ze.initInterpolator=BO,ze.initRange=qO;function qO(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function BO(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}var $r={};Object.defineProperty($r,"__esModule",{value:!0}),$r.default=th,$r.implicit=void 0;var eh=vt,UO=ze;const Wl=Symbol("implicit");$r.implicit=Wl;function th(){var e=new eh.InternMap,t=[],n=[],r=Wl;function o(i){let a=e.get(i);if(a===void 0){if(r!==Wl)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new eh.InternMap;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return th(t,n).unknown(r)},UO.initRange.apply(o,arguments),o}Object.defineProperty(To,"__esModule",{value:!0}),To.default=Fl,To.point=XO;var HO=vt,YO=ze,GO=VO($r);function VO(e){return e&&e.__esModule?e:{default:e}}function Fl(){var e=(0,GO.default)().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,u=!1,l=0,s=0,c=.5;delete e.unknown;function f(){var d=t().length,h=o<r,p=h?o:r,m=h?r:o;i=(m-p)/Math.max(1,d-l+s*2),u&&(i=Math.floor(i)),p+=(m-p-i*(d-l))*c,a=i*(1-l),u&&(p=Math.round(p),a=Math.round(a));var b=(0,HO.range)(d).map(function(w){return p+i*w});return n(h?b.reverse():b)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,o]=d,r=+r,o=+o,f()):[r,o]},e.rangeRound=function(d){return[r,o]=d,r=+r,o=+o,u=!0,f()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(d){return arguments.length?(u=!!d,f()):u},e.padding=function(d){return arguments.length?(l=Math.min(1,s=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(s=+d,f()):s},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Fl(t(),[r,o]).round(u).paddingInner(l).paddingOuter(s).align(c)},YO.initRange.apply(f(),arguments)}function nh(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return nh(t())},e}function XO(){return nh(Fl.apply(null,arguments).paddingInner(1))}var Rl={},Mt={},at={},$i={},Go={},jn={},Ze={},Mr={};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.default=KO,Mr.extend=ZO;function KO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ZO(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.Color=Sr,Ze.Rgb=Qe,Ze.darker=Ze.brighter=void 0,Ze.default=Vo,Ze.hsl=hh,Ze.hslConvert=zl,Ze.rgb=sh,Ze.rgbConvert=lh;var Mi=QO(Mr);function rh(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(rh=function(r){return r?n:t})(e)}function QO(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=rh(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Sr(){}var Tr=.7;Ze.darker=Tr;var Si=1/Tr;Ze.brighter=Si;var Cr="\\s*([+-]?\\d+)\\s*",Ti="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",JO=/^#([0-9a-f]{3,8})$/,eP=new RegExp(`^rgb\\(${Cr},${Cr},${Cr}\\)$`),tP=new RegExp(`^rgb\\(${Rt},${Rt},${Rt}\\)$`),nP=new RegExp(`^rgba\\(${Cr},${Cr},${Cr},${Ti}\\)$`),rP=new RegExp(`^rgba\\(${Rt},${Rt},${Rt},${Ti}\\)$`),iP=new RegExp(`^hsl\\(${Ti},${Rt},${Rt}\\)$`),oP=new RegExp(`^hsla\\(${Ti},${Rt},${Rt},${Ti}\\)$`),ih={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};(0,Mi.default)(Sr,Vo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oh,formatHex:oh,formatHex8:aP,formatHsl:uP,formatRgb:ah,toString:ah});function oh(){return this.rgb().formatHex()}function aP(){return this.rgb().formatHex8()}function uP(){return zl(this).formatHsl()}function ah(){return this.rgb().formatRgb()}function Vo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=JO.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uh(t):n===3?new Qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Xo(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Xo(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=eP.exec(e))?new Qe(t[1],t[2],t[3],1):(t=tP.exec(e))?new Qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nP.exec(e))?Xo(t[1],t[2],t[3],t[4]):(t=rP.exec(e))?Xo(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iP.exec(e))?dh(t[1],t[2]/100,t[3]/100,1):(t=oP.exec(e))?dh(t[1],t[2]/100,t[3]/100,t[4]):ih.hasOwnProperty(e)?uh(ih[e]):e==="transparent"?new Qe(NaN,NaN,NaN,0):null}function uh(e){return new Qe(e>>16&255,e>>8&255,e&255,1)}function Xo(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qe(e,t,n,r)}function lh(e){return e instanceof Sr||(e=Vo(e)),e?(e=e.rgb(),new Qe(e.r,e.g,e.b,e.opacity)):new Qe}function sh(e,t,n,r){return arguments.length===1?lh(e):new Qe(e,t,n,r??1)}function Qe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}(0,Mi.default)(Qe,sh,(0,Mi.extend)(Sr,{brighter(e){return e=e==null?Si:Math.pow(Si,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tr:Math.pow(Tr,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qe(Wn(this.r),Wn(this.g),Wn(this.b),Ko(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:ch,formatHex:ch,formatHex8:lP,formatRgb:fh,toString:fh}));function ch(){return`#${Fn(this.r)}${Fn(this.g)}${Fn(this.b)}`}function lP(){return`#${Fn(this.r)}${Fn(this.g)}${Fn(this.b)}${Fn((isNaN(this.opacity)?1:this.opacity)*255)}`}function fh(){const e=Ko(this.opacity);return`${e===1?"rgb(":"rgba("}${Wn(this.r)}, ${Wn(this.g)}, ${Wn(this.b)}${e===1?")":`, ${e})`}`}function Ko(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fn(e){return e=Wn(e),(e<16?"0":"")+e.toString(16)}function dh(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new St(e,t,n,r)}function zl(e){if(e instanceof St)return new St(e.h,e.s,e.l,e.opacity);if(e instanceof Sr||(e=Vo(e)),!e)return new St;if(e instanceof St)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,u=i-o,l=(i+o)/2;return u?(t===i?a=(n-r)/u+(n<r)*6:n===i?a=(r-t)/u+2:a=(t-n)/u+4,u/=l<.5?i+o:2-i-o,a*=60):u=l>0&&l<1?0:a,new St(a,u,l,e.opacity)}function hh(e,t,n,r){return arguments.length===1?zl(e):new St(e,t,n,r??1)}function St(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,Mi.default)(St,hh,(0,Mi.extend)(Sr,{brighter(e){return e=e==null?Si:Math.pow(Si,e),new St(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tr:Math.pow(Tr,e),new St(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,o=2*n-r;return new Qe(ql(e>=240?e-240:e+120,o,r),ql(e,o,r),ql(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new St(ph(this.h),Zo(this.s),Zo(this.l),Ko(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=Ko(this.opacity);return`${e===1?"hsl(":"hsla("}${ph(this.h)}, ${Zo(this.s)*100}%, ${Zo(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ph(e){return e=(e||0)%360,e<0?e+360:e}function Zo(e){return Math.max(0,Math.min(1,e||0))}function ql(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var mn={},Rn={};Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.radians=Rn.degrees=void 0;const sP=Math.PI/180;Rn.radians=sP;const cP=180/Math.PI;Rn.degrees=cP,Object.defineProperty(mn,"__esModule",{value:!0}),mn.Hcl=Tt,mn.Lab=yt,mn.default=Oh,mn.gray=hP,mn.hcl=$h,mn.lch=pP;var Qo=fP(Mr),Ci=Ze,vh=Rn;function mh(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(mh=function(r){return r?n:t})(e)}function fP(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=mh(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}const Jo=18,gh=.96422,yh=1,bh=.82521,_h=4/29,kr=6/29,wh=3*kr*kr,dP=kr*kr*kr;function xh(e){if(e instanceof yt)return new yt(e.l,e.a,e.b,e.opacity);if(e instanceof Tt)return Mh(e);e instanceof Ci.Rgb||(e=(0,Ci.rgbConvert)(e));var t=Yl(e.r),n=Yl(e.g),r=Yl(e.b),o=Bl((.2225045*t+.7168786*n+.0606169*r)/yh),i,a;return t===n&&n===r?i=a=o:(i=Bl((.4360747*t+.3850649*n+.1430804*r)/gh),a=Bl((.0139322*t+.0971045*n+.7141733*r)/bh)),new yt(116*o-16,500*(i-o),200*(o-a),e.opacity)}function hP(e,t){return new yt(e,0,0,t??1)}function Oh(e,t,n,r){return arguments.length===1?xh(e):new yt(e,t,n,r??1)}function yt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}(0,Qo.default)(yt,Oh,(0,Qo.extend)(Ci.Color,{brighter(e){return new yt(this.l+Jo*(e??1),this.a,this.b,this.opacity)},darker(e){return new yt(this.l-Jo*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=gh*Ul(t),e=yh*Ul(e),n=bh*Ul(n),new Ci.Rgb(Hl(3.1338561*t-1.6168667*e-.4906146*n),Hl(-.9787684*t+1.9161415*e+.033454*n),Hl(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Bl(e){return e>dP?Math.pow(e,1/3):e/wh+_h}function Ul(e){return e>kr?e*e*e:wh*(e-_h)}function Hl(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Yl(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ph(e){if(e instanceof Tt)return new Tt(e.h,e.c,e.l,e.opacity);if(e instanceof yt||(e=xh(e)),e.a===0&&e.b===0)return new Tt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*vh.degrees;return new Tt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function pP(e,t,n,r){return arguments.length===1?Ph(e):new Tt(n,t,e,r??1)}function $h(e,t,n,r){return arguments.length===1?Ph(e):new Tt(e,t,n,r??1)}function Tt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Mh(e){if(isNaN(e.h))return new yt(e.l,0,0,e.opacity);var t=e.h*vh.radians;return new yt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}(0,Qo.default)(Tt,$h,(0,Qo.extend)(Ci.Color,{brighter(e){return new Tt(this.h,this.c,this.l+Jo*(e??1),this.opacity)},darker(e){return new Tt(this.h,this.c,this.l-Jo*(e??1),this.opacity)},rgb(){return Mh(this).rgb()}}));var ea={};Object.defineProperty(ea,"__esModule",{value:!0}),ea.Cubehelix=yn,ea.default=Nh;var Sh=vP(Mr),gn=Ze,Th=Rn;function Ch(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ch=function(r){return r?n:t})(e)}function vP(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ch(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var kh=-.14861,Gl=1.78277,Vl=-.29227,ta=-.90649,ki=1.97294,Eh=ki*ta,Ah=ki*Gl,Dh=Gl*Vl-ta*kh;function mP(e){if(e instanceof yn)return new yn(e.h,e.s,e.l,e.opacity);e instanceof gn.Rgb||(e=(0,gn.rgbConvert)(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Dh*r+Eh*t-Ah*n)/(Dh+Eh-Ah),i=r-o,a=(ki*(n-o)-Vl*i)/ta,u=Math.sqrt(a*a+i*i)/(ki*o*(1-o)),l=u?Math.atan2(a,i)*Th.degrees-120:NaN;return new yn(l<0?l+360:l,u,o,e.opacity)}function Nh(e,t,n,r){return arguments.length===1?mP(e):new yn(e,t,n,r??1)}function yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,Sh.default)(yn,Nh,(0,Sh.extend)(gn.Color,{brighter(e){return e=e==null?gn.brighter:Math.pow(gn.brighter,e),new yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gn.darker:Math.pow(gn.darker,e),new yn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Th.radians,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new gn.Rgb(255*(t+n*(kh*r+Gl*o)),255*(t+n*(Vl*r+ta*o)),255*(t+n*(ki*r)),this.opacity)}})),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"color",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"cubehelix",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"gray",{enumerable:!0,get:function(){return n.gray}}),Object.defineProperty(e,"hcl",{enumerable:!0,get:function(){return n.hcl}}),Object.defineProperty(e,"hsl",{enumerable:!0,get:function(){return t.hsl}}),Object.defineProperty(e,"lab",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"lch",{enumerable:!0,get:function(){return n.lch}}),Object.defineProperty(e,"rgb",{enumerable:!0,get:function(){return t.rgb}});var t=a(Ze),n=a(mn),r=o(ea);function o(u){return u&&u.__esModule?u:{default:u}}function i(u){if(typeof WeakMap!="function")return null;var l=new WeakMap,s=new WeakMap;return(i=function(c){return c?s:l})(u)}function a(u,l){if(!l&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var s=i(l);if(s&&s.has(u))return s.get(u);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in u)if(d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)){var h=f?Object.getOwnPropertyDescriptor(u,d):null;h&&(h.get||h.set)?Object.defineProperty(c,d,h):c[d]=u[d]}return c.default=u,s&&s.set(u,c),c}}(jn);var Jt={},Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.basis=Lh,Er.default=gP;function Lh(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function gP(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,u=r<t-1?e[r+2]:2*i-o;return Lh((n-r/t)*t,a,o,i,u)}}var na={};Object.defineProperty(na,"__esModule",{value:!0}),na.default=bP;var yP=Er;function bP(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],u=e[(r+2)%t];return(0,yP.basis)((n-r/t)*t,o,i,a,u)}}var zt={},Ei={};Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=void 0;var _P=e=>()=>e;Ei.default=_P,Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=jh,zt.gamma=PP,zt.hue=OP;var Xl=wP(Ei);function wP(e){return e&&e.__esModule?e:{default:e}}function Ih(e,t){return function(n){return e+n*t}}function xP(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 OP(e,t){var n=t-e;return n?Ih(e,n>180||n<-180?n-360*Math.round(n/360):n):(0,Xl.default)(isNaN(e)?t:e)}function PP(e){return(e=+e)==1?jh:function(t,n){return n-t?xP(t,n,e):(0,Xl.default)(isNaN(t)?n:t)}}function jh(e,t){var n=t-e;return n?Ih(e,n):(0,Xl.default)(isNaN(e)?t:e)}Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.rgbBasisClosed=Jt.rgbBasis=Jt.default=void 0;var Kl=jn,$P=Rh(Er),MP=Rh(na),Wh=SP(zt);function Fh(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Fh=function(r){return r?n:t})(e)}function SP(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Fh(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Rh(e){return e&&e.__esModule?e:{default:e}}var TP=function e(t){var n=(0,Wh.gamma)(t);function r(o,i){var a=n((o=(0,Kl.rgb)(o)).r,(i=(0,Kl.rgb)(i)).r),u=n(o.g,i.g),l=n(o.b,i.b),s=(0,Wh.default)(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=u(c),o.b=l(c),o.opacity=s(c),o+""}}return r.gamma=e,r}(1);Jt.default=TP;function zh(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),i=new Array(n),a,u;for(a=0;a<n;++a)u=(0,Kl.rgb)(t[a]),r[a]=u.r||0,o[a]=u.g||0,i[a]=u.b||0;return r=e(r),o=e(o),i=e(i),u.opacity=1,function(l){return u.r=r(l),u.g=o(l),u.b=i(l),u+""}}}var CP=zh($P.default);Jt.rgbBasis=CP;var kP=zh(MP.default);Jt.rgbBasisClosed=kP;var Ai={},Ar={};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.default=EP,Ar.isNumberArray=AP;function EP(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function AP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var qh;function Bh(){if(qh)return Ai;qh=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=i,Ai.genericArray=a;var e=o(aa()),t=r(Ar);function n(u){if(typeof WeakMap!="function")return null;var l=new WeakMap,s=new WeakMap;return(n=function(c){return c?s:l})(u)}function r(u,l){if(!l&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var s=n(l);if(s&&s.has(u))return s.get(u);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in u)if(d!=="default"&&Object.prototype.hasOwnProperty.call(u,d)){var h=f?Object.getOwnPropertyDescriptor(u,d):null;h&&(h.get||h.set)?Object.defineProperty(c,d,h):c[d]=u[d]}return c.default=u,s&&s.set(u,c),c}function o(u){return u&&u.__esModule?u:{default:u}}function i(u,l){return((0,t.isNumberArray)(l)?t.default:a)(u,l)}function a(u,l){var s=l?l.length:0,c=u?Math.min(s,u.length):0,f=new Array(c),d=new Array(s),h;for(h=0;h<c;++h)f[h]=(0,e.default)(u[h],l[h]);for(;h<s;++h)d[h]=l[h];return function(p){for(h=0;h<c;++h)d[h]=f[h](p);return d}}return Ai}var ra={};Object.defineProperty(ra,"__esModule",{value:!0}),ra.default=DP;function DP(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.default=NP;function NP(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var ia={},Uh;function Hh(){if(Uh)return ia;Uh=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.default=n;var e=t(aa());function t(r){return r&&r.__esModule?r:{default:r}}function n(r,o){var i={},a={},u;(r===null||typeof r!="object")&&(r={}),(o===null||typeof o!="object")&&(o={});for(u in o)u in r?i[u]=(0,e.default)(r[u],o[u]):a[u]=o[u];return function(l){for(u in i)a[u]=i[u](l);return a}}return ia}var oa={};Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=FP;var LP=IP(Dr);function IP(e){return e&&e.__esModule?e:{default:e}}var Zl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ql=new RegExp(Zl.source,"g");function jP(e){return function(){return e}}function WP(e){return function(t){return e(t)+""}}function FP(e,t){var n=Zl.lastIndex=Ql.lastIndex=0,r,o,i,a=-1,u=[],l=[];for(e=e+"",t=t+"";(r=Zl.exec(e))&&(o=Ql.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),u[a]?u[a]+=i:u[++a]=i),(r=r[0])===(o=o[0])?u[a]?u[a]+=o:u[++a]=o:(u[++a]=null,l.push({i:a,x:(0,LP.default)(r,o)})),n=Ql.lastIndex;return n<t.length&&(i=t.slice(n),u[a]?u[a]+=i:u[++a]=i),u.length<2?l[0]?WP(l[0].x):jP(t):(t=l.length,function(s){for(var c=0,f;c<t;++c)u[(f=l[c]).i]=f.x(s);return u.join("")})}var Yh;function aa(){if(Yh)return Go;Yh=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=d;var e=jn,t=f(Jt),n=Bh(),r=f(ra),o=f(Dr),i=f(Hh()),a=f(oa),u=f(Ei),l=c(Ar);function s(h){if(typeof WeakMap!="function")return null;var p=new WeakMap,m=new WeakMap;return(s=function(b){return b?m:p})(h)}function c(h,p){if(!p&&h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var m=s(p);if(m&&m.has(h))return m.get(h);var b={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in h)if(_!=="default"&&Object.prototype.hasOwnProperty.call(h,_)){var x=w?Object.getOwnPropertyDescriptor(h,_):null;x&&(x.get||x.set)?Object.defineProperty(b,_,x):b[_]=h[_]}return b.default=h,m&&m.set(h,b),b}function f(h){return h&&h.__esModule?h:{default:h}}function d(h,p){var m=typeof p,b;return p==null||m==="boolean"?(0,u.default)(p):(m==="number"?o.default:m==="string"?(b=(0,e.color)(p))?(p=b,t.default):a.default:p instanceof e.color?t.default:p instanceof Date?r.default:(0,l.isNumberArray)(p)?l.default:Array.isArray(p)?n.genericArray:typeof p.valueOf!="function"&&typeof p.toString!="function"||isNaN(p)?i.default:o.default)(h,p)}return Go}var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.default=RP;function RP(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var es={};Object.defineProperty(es,"__esModule",{value:!0}),es.default=qP;var zP=zt;function qP(e,t){var n=(0,zP.hue)(+e,+t);return function(r){var o=n(r);return o-360*Math.floor(o/360)}}var ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.default=BP;function BP(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Nr={},ua={},Di={};Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=HP,Di.identity=void 0;var Gh=180/Math.PI,UP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};Di.identity=UP;function HP(e,t,n,r,o,i){var a,u,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,l/=u),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*Gh,skewX:Math.atan(l)*Gh,scaleX:a,scaleY:u}}Object.defineProperty(ua,"__esModule",{value:!0}),ua.parseCss=GP,ua.parseSvg=VP;var Ni=YP(Di);function Vh(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Vh=function(r){return r?n:t})(e)}function YP(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Vh(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var la;function GP(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ni.identity:(0,Ni.default)(t.a,t.b,t.c,t.d,t.e,t.f)}function VP(e){return e==null||(la||(la=document.createElementNS("http://www.w3.org/2000/svg","g")),la.setAttribute("transform",e),!(e=la.transform.baseVal.consolidate()))?Ni.identity:(e=e.matrix,(0,Ni.default)(e.a,e.b,e.c,e.d,e.e,e.f))}Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.interpolateTransformSvg=Nr.interpolateTransformCss=void 0;var Lr=XP(Dr),Xh=ua;function XP(e){return e&&e.__esModule?e:{default:e}}function Kh(e,t,n,r){function o(s){return s.length?s.pop()+" ":""}function i(s,c,f,d,h,p){if(s!==f||c!==d){var m=h.push("translate(",null,t,null,n);p.push({i:m-4,x:(0,Lr.default)(s,f)},{i:m-2,x:(0,Lr.default)(c,d)})}else(f||d)&&h.push("translate("+f+t+d+n)}function a(s,c,f,d){s!==c?(s-c>180?c+=360:c-s>180&&(s+=360),d.push({i:f.push(o(f)+"rotate(",null,r)-2,x:(0,Lr.default)(s,c)})):c&&f.push(o(f)+"rotate("+c+r)}function u(s,c,f,d){s!==c?d.push({i:f.push(o(f)+"skewX(",null,r)-2,x:(0,Lr.default)(s,c)}):c&&f.push(o(f)+"skewX("+c+r)}function l(s,c,f,d,h,p){if(s!==f||c!==d){var m=h.push(o(h)+"scale(",null,",",null,")");p.push({i:m-4,x:(0,Lr.default)(s,f)},{i:m-2,x:(0,Lr.default)(c,d)})}else(f!==1||d!==1)&&h.push(o(h)+"scale("+f+","+d+")")}return function(s,c){var f=[],d=[];return s=e(s),c=e(c),i(s.translateX,s.translateY,c.translateX,c.translateY,f,d),a(s.rotate,c.rotate,f,d),u(s.skewX,c.skewX,f,d),l(s.scaleX,s.scaleY,c.scaleX,c.scaleY,f,d),s=c=null,function(h){for(var p=-1,m=d.length,b;++p<m;)f[(b=d[p]).i]=b.x(h);return f.join("")}}}var KP=Kh(Xh.parseCss,"px, ","px)","deg)");Nr.interpolateTransformCss=KP;var ZP=Kh(Xh.parseSvg,", ",")",")");Nr.interpolateTransformSvg=ZP;var sa={};Object.defineProperty(sa,"__esModule",{value:!0}),sa.default=void 0;var QP=1e-12;function Zh(e){return((e=Math.exp(e))+1/e)/2}function JP(e){return((e=Math.exp(e))-1/e)/2}function e$(e){return((e=Math.exp(2*e))-1)/(e+1)}var t$=function e(t,n,r){function o(i,a){var u=i[0],l=i[1],s=i[2],c=a[0],f=a[1],d=a[2],h=c-u,p=f-l,m=h*h+p*p,b,w;if(m<QP)w=Math.log(d/s)/t,b=function(E){return[u+E*h,l+E*p,s*Math.exp(t*E*w)]};else{var _=Math.sqrt(m),x=(d*d-s*s+r*m)/(2*s*n*_),$=(d*d-s*s-r*m)/(2*d*n*_),y=Math.log(Math.sqrt(x*x+1)-x),O=Math.log(Math.sqrt($*$+1)-$);w=(O-y)/t,b=function(E){var k=E*w,S=Zh(y),L=s/(n*_)*(S*e$(t*k+y)-JP(y));return[u+L*h,l+L*p,s*S/Zh(t*k+y)]}}return b.duration=w*1e3*t/Math.SQRT2,b}return o.rho=function(i){var a=Math.max(.001,+i),u=a*a,l=u*u;return e(a,u,l)},o}(Math.SQRT2,2,4);sa.default=t$;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.hslLong=Ir.default=void 0;var Qh=jn,Li=n$(zt);function Jh(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Jh=function(r){return r?n:t})(e)}function n$(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Jh(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function ep(e){return function(t,n){var r=e((t=(0,Qh.hsl)(t)).h,(n=(0,Qh.hsl)(n)).h),o=(0,Li.default)(t.s,n.s),i=(0,Li.default)(t.l,n.l),a=(0,Li.default)(t.opacity,n.opacity);return function(u){return t.h=r(u),t.s=o(u),t.l=i(u),t.opacity=a(u),t+""}}}var r$=ep(Li.hue);Ir.default=r$;var i$=ep(Li.default);Ir.hslLong=i$;var ns={};Object.defineProperty(ns,"__esModule",{value:!0}),ns.default=a$;var tp=jn,ca=o$(zt);function o$(e){return e&&e.__esModule?e:{default:e}}function a$(e,t){var n=(0,ca.default)((e=(0,tp.lab)(e)).l,(t=(0,tp.lab)(t)).l),r=(0,ca.default)(e.a,t.a),o=(0,ca.default)(e.b,t.b),i=(0,ca.default)(e.opacity,t.opacity);return function(a){return e.l=n(a),e.a=r(a),e.b=o(a),e.opacity=i(a),e+""}}var jr={};Object.defineProperty(jr,"__esModule",{value:!0}),jr.hclLong=jr.default=void 0;var np=jn,Ii=u$(zt);function rp(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(rp=function(r){return r?n:t})(e)}function u$(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=rp(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function ip(e){return function(t,n){var r=e((t=(0,np.hcl)(t)).h,(n=(0,np.hcl)(n)).h),o=(0,Ii.default)(t.c,n.c),i=(0,Ii.default)(t.l,n.l),a=(0,Ii.default)(t.opacity,n.opacity);return function(u){return t.h=r(u),t.c=o(u),t.l=i(u),t.opacity=a(u),t+""}}}var l$=ip(Ii.hue);jr.default=l$;var s$=ip(Ii.default);jr.hclLong=s$;var Wr={};Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.default=Wr.cubehelixLong=void 0;var op=jn,ji=c$(zt);function ap(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ap=function(r){return r?n:t})(e)}function c$(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ap(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function up(e){return function t(n){n=+n;function r(o,i){var a=e((o=(0,op.cubehelix)(o)).h,(i=(0,op.cubehelix)(i)).h),u=(0,ji.default)(o.s,i.s),l=(0,ji.default)(o.l,i.l),s=(0,ji.default)(o.opacity,i.opacity);return function(c){return o.h=a(c),o.s=u(c),o.l=l(Math.pow(c,n)),o.opacity=s(c),o+""}}return r.gamma=t,r}(1)}var f$=up(ji.hue);Wr.default=f$;var d$=up(ji.default);Wr.cubehelixLong=d$;var rs={};Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=v$;var h$=p$(aa());function p$(e){return e&&e.__esModule?e:{default:e}}function v$(e,t){t===void 0&&(t=e,e=h$.default);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(a){var u=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[u](a-u)}}var is={};Object.defineProperty(is,"__esModule",{value:!0}),is.default=m$;function m$(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return x.cubehelixLong}}),Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return _.hclLong}}),Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return b.hslLong}}),Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"interpolateRgbBasis",{enumerable:!0,get:function(){return m.rgbBasis}}),Object.defineProperty(e,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return m.rgbBasisClosed}}),Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return h.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return h.interpolateTransformSvg}}),Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return y.default}});var t=k(aa()),n=k(Bh()),r=k(Er),o=k(na),i=k(ra),a=k(Jl),u=k(es),l=k(Dr),s=k(Ar),c=k(Hh()),f=k(ts),d=k(oa),h=Nr,p=k(sa),m=E(Jt),b=E(Ir),w=k(ns),_=E(jr),x=E(Wr),$=k(rs),y=k(is);function O(S){if(typeof WeakMap!="function")return null;var L=new WeakMap,A=new WeakMap;return(O=function(D){return D?A:L})(S)}function E(S,L){if(!L&&S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var A=O(L);if(A&&A.has(S))return A.get(S);var D={},W=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in S)if(B!=="default"&&Object.prototype.hasOwnProperty.call(S,B)){var te=W?Object.getOwnPropertyDescriptor(S,B):null;te&&(te.get||te.set)?Object.defineProperty(D,B,te):D[B]=S[B]}return D.default=S,A&&A.set(S,D),D}function k(S){return S&&S.__esModule?S:{default:S}}})($i);var os={};Object.defineProperty(os,"__esModule",{value:!0}),os.default=g$;function g$(e){return function(){return e}}var Wi={};Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=y$;function y$(e){return+e}Object.defineProperty(at,"__esModule",{value:!0}),at.copy=$$,at.default=M$,at.identity=zn,at.transformer=cp;var b$=vt,as=$i,_$=lp(os),w$=lp(Wi);function lp(e){return e&&e.__esModule?e:{default:e}}var sp=[0,1];function zn(e){return e}function us(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(0,_$.default)(isNaN(t)?NaN:.5)}function x$(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function O$(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=us(o,r),i=n(a,i)):(r=us(r,o),i=n(i,a)),function(u){return i(r(u))}}function P$(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=us(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(u){var l=(0,b$.bisect)(e,u,1,r)-1;return i[l](o[l](u))}}function $$(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function cp(){var e=sp,t=sp,n=as.interpolate,r,o,i,a=zn,u,l,s;function c(){var d=Math.min(e.length,t.length);return a!==zn&&(a=x$(e[0],e[d-1])),u=d>2?P$:O$,l=s=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=u(e.map(r),t,n)))(r(a(d)))}return f.invert=function(d){return a(o((s||(s=u(t,e.map(r),as.interpolateNumber)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,w$.default),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=as.interpolateRound,c()},f.clamp=function(d){return arguments.length?(a=d?!0:zn,c()):a!==zn},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return r=d,o=h,c()}}function M$(){return cp()(zn,zn)}var fa={},ls={},en={},da={},Fr={},qn={};Object.defineProperty(qn,"__esModule",{value:!0}),qn.default=S$,qn.formatDecimalParts=T$;function S$(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function T$(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)]}Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.default=k$;var C$=qn;function k$(e){return e=(0,C$.formatDecimalParts)(Math.abs(e)),e?e[1]:NaN}var ss={};Object.defineProperty(ss,"__esModule",{value:!0}),ss.default=E$;function E$(e,t){return function(n,r){for(var o=n.length,i=[],a=0,u=e[0],l=0;o>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),i.push(n.substring(o-=u,o+u)),!((l+=u+1)>r));)u=e[a=(a+1)%e.length];return i.reverse().join(t)}}var cs={};Object.defineProperty(cs,"__esModule",{value:!0}),cs.default=A$;function A$(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Fi={};Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.FormatSpecifier=ha,Fi.default=fp;var D$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fp(e){if(!(t=D$.exec(e)))throw new Error("invalid format: "+e);var t;return new ha({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]})}fp.prototype=ha.prototype;function ha(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+""}ha.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};var fs={};Object.defineProperty(fs,"__esModule",{value:!0}),fs.default=N$;function N$(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var pa={},Bn={};Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.default=L$,Bn.prefixExponent=void 0;var dp=qn,hp;Bn.prefixExponent=hp;function L$(e,t){var n=(0,dp.formatDecimalParts)(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Bn.prefixExponent=hp=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+(0,dp.formatDecimalParts)(e,Math.max(0,t+i-1))[0]}var ds={};Object.defineProperty(ds,"__esModule",{value:!0}),ds.default=j$;var I$=qn;function j$(e,t){var n=(0,I$.formatDecimalParts)(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Object.defineProperty(pa,"__esModule",{value:!0}),pa.default=void 0;var W$=hs(qn),F$=hs(Bn),pp=hs(ds);function hs(e){return e&&e.__esModule?e:{default:e}}var R$={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:W$.default,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)=>(0,pp.default)(e*100,t),r:pp.default,s:F$.default,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};pa.default=R$;var ps={};Object.defineProperty(ps,"__esModule",{value:!0}),ps.default=z$;function z$(e){return e}Object.defineProperty(da,"__esModule",{value:!0}),da.default=G$;var q$=Un(Fr),B$=Un(ss),U$=Un(cs),vp=Un(Fi),H$=Un(fs),mp=Un(pa),Y$=Bn,gp=Un(ps);function Un(e){return e&&e.__esModule?e:{default:e}}var yp=Array.prototype.map,bp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function G$(e){var t=e.grouping===void 0||e.thousands===void 0?gp.default:(0,B$.default)(yp.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?gp.default:(0,U$.default)(yp.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(f){f=(0,vp.default)(f);var d=f.fill,h=f.align,p=f.sign,m=f.symbol,b=f.zero,w=f.width,_=f.comma,x=f.precision,$=f.trim,y=f.type;y==="n"?(_=!0,y="g"):mp.default[y]||(x===void 0&&(x=12),$=!0,y="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var O=m==="$"?n:m==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",E=m==="$"?r:/[%p]/.test(y)?a:"",k=mp.default[y],S=/[defgprs%]/.test(y);x=x===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function L(A){var D=O,W=E,B,te,Y;if(y==="c")W=k(A)+W,A="";else{A=+A;var se=A<0||1/A<0;if(A=isNaN(A)?l:k(Math.abs(A),x),$&&(A=(0,H$.default)(A)),se&&+A==0&&p!=="+"&&(se=!1),D=(se?p==="("?p:u:p==="-"||p==="("?"":p)+D,W=(y==="s"?bp[8+Y$.prefixExponent/3]:"")+W+(se&&p==="("?")":""),S){for(B=-1,te=A.length;++B<te;)if(Y=A.charCodeAt(B),48>Y||Y>57){W=(Y===46?o+A.slice(B+1):A.slice(B))+W,A=A.slice(0,B);break}}}_&&!b&&(A=t(A,1/0));var ce=D.length+A.length+W.length,fe=ce<w?new Array(w-ce+1).join(d):"";switch(_&&b&&(A=t(fe+A,fe.length?w-W.length:1/0),fe=""),h){case"<":A=D+A+W+fe;break;case"=":A=D+fe+A+W;break;case"^":A=fe.slice(0,ce=fe.length>>1)+D+A+W+fe.slice(ce);break;default:A=fe+D+A+W;break}return i(A)}return L.toString=function(){return f+""},L}function c(f,d){var h=s((f=(0,vp.default)(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor((0,q$.default)(d)/3)))*3,m=Math.pow(10,-p),b=bp[8+p/3];return function(w){return h(m*w)+b}}return{format:s,formatPrefix:c}}Object.defineProperty(en,"__esModule",{value:!0}),en.default=xp,en.formatPrefix=en.format=void 0;var V$=X$(da);function X$(e){return e&&e.__esModule?e:{default:e}}var va,_p;en.format=_p;var wp;en.formatPrefix=wp,xp({thousands:",",grouping:[3],currency:["$",""]});function xp(e){return va=(0,V$.default)(e),en.format=_p=va.format,en.formatPrefix=wp=va.formatPrefix,va}var vs={};Object.defineProperty(vs,"__esModule",{value:!0}),vs.default=Q$;var K$=Z$(Fr);function Z$(e){return e&&e.__esModule?e:{default:e}}function Q$(e){return Math.max(0,-(0,K$.default)(Math.abs(e)))}var ms={};Object.defineProperty(ms,"__esModule",{value:!0}),ms.default=eM;var Op=J$(Fr);function J$(e){return e&&e.__esModule?e:{default:e}}function eM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor((0,Op.default)(t)/3)))*3-(0,Op.default)(Math.abs(e)))}var gs={};Object.defineProperty(gs,"__esModule",{value:!0}),gs.default=nM;var Pp=tM(Fr);function tM(e){return e&&e.__esModule?e:{default:e}}function nM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,Pp.default)(t)-(0,Pp.default)(e))+1}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"FormatSpecifier",{enumerable:!0,get:function(){return r.FormatSpecifier}}),Object.defineProperty(e,"format",{enumerable:!0,get:function(){return t.format}}),Object.defineProperty(e,"formatDefaultLocale",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"formatLocale",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"formatPrefix",{enumerable:!0,get:function(){return t.formatPrefix}}),Object.defineProperty(e,"formatSpecifier",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"precisionFixed",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"precisionPrefix",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"precisionRound",{enumerable:!0,get:function(){return a.default}});var t=s(en),n=u(da),r=s(Fi),o=u(vs),i=u(ms),a=u(gs);function u(c){return c&&c.__esModule?c:{default:c}}function l(c){if(typeof WeakMap!="function")return null;var f=new WeakMap,d=new WeakMap;return(l=function(h){return h?d:f})(c)}function s(c,f){if(!f&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=l(f);if(d&&d.has(c))return d.get(c);var h={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in c)if(m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)){var b=p?Object.getOwnPropertyDescriptor(c,m):null;b&&(b.get||b.set)?Object.defineProperty(h,m,b):h[m]=c[m]}return h.default=c,d&&d.set(c,h),h}})(ls),Object.defineProperty(fa,"__esModule",{value:!0}),fa.default=iM;var rM=vt,Rr=ls;function iM(e,t,n,r){var o=(0,rM.tickStep)(e,t,n),i;switch(r=(0,Rr.formatSpecifier)(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=(0,Rr.precisionPrefix)(o,a))&&(r.precision=i),(0,Rr.formatPrefix)(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=(0,Rr.precisionRound)(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=(0,Rr.precisionFixed)(o))&&(r.precision=i-(r.type==="%")*2);break}}return(0,Rr.format)(r)}Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=Cp,Mt.linearish=Tp;var $p=vt,Mp=lM(at),oM=ze,aM=uM(fa);function uM(e){return e&&e.__esModule?e:{default:e}}function Sp(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Sp=function(r){return r?n:t})(e)}function lM(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Sp(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Tp(e){var t=e.domain;return e.ticks=function(n){var r=t();return(0,$p.ticks)(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return(0,aM.default)(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],u=r[i],l,s,c=10;for(u<a&&(s=a,a=u,u=s,s=o,o=i,i=s);c-- >0;){if(s=(0,$p.tickIncrement)(a,u,n),s===l)return r[o]=a,r[i]=u,t(r);if(s>0)a=Math.floor(a/s)*s,u=Math.ceil(u/s)*s;else if(s<0)a=Math.ceil(a*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function Cp(){var e=(0,Mp.default)();return e.copy=function(){return(0,Mp.copy)(e,Cp())},oM.initRange.apply(e,arguments),Tp(e)}Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=Ep;var sM=Mt,kp=cM(Wi);function cM(e){return e&&e.__esModule?e:{default:e}}function Ep(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,kp.default),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Ep(e).unknown(t)},e=arguments.length?Array.from(e,kp.default):[0,1],(0,sM.linearish)(n)}var zr={},ma={};Object.defineProperty(ma,"__esModule",{value:!0}),ma.default=fM;function fM(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}Object.defineProperty(zr,"__esModule",{value:!0}),zr.default=Fp,zr.loggish=Wp;var Ap=vt,Dp=ls,dM=pM(ma),Np=at,hM=ze;function pM(e){return e&&e.__esModule?e:{default:e}}function Lp(e){return Math.log(e)}function Ip(e){return Math.exp(e)}function vM(e){return-Math.log(-e)}function mM(e){return-Math.exp(-e)}function gM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function yM(e){return e===10?gM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function bM(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 jp(e){return(t,n)=>-e(-t,n)}function Wp(e){const t=e(Lp,Ip),n=t.domain;let r=10,o,i;function a(){return o=bM(r),i=yM(r),n()[0]<0?(o=jp(o),i=jp(i),e(vM,mM)):e(Lp,Ip),t}return t.base=function(u){return arguments.length?(r=+u,a()):r},t.domain=function(u){return arguments.length?(n(u),a()):n()},t.ticks=u=>{const l=n();let s=l[0],c=l[l.length-1];const f=c<s;f&&([s,c]=[c,s]);let d=o(s),h=o(c),p,m;const b=u==null?10:+u;let w=[];if(!(r%1)&&h-d<b){if(d=Math.floor(d),h=Math.ceil(h),s>0){for(;d<=h;++d)for(p=1;p<r;++p)if(m=d<0?p/i(-d):p*i(d),!(m<s)){if(m>c)break;w.push(m)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(m=d>0?p/i(-d):p*i(d),!(m<s)){if(m>c)break;w.push(m)}w.length*2<b&&(w=(0,Ap.ticks)(s,c,b))}else w=(0,Ap.ticks)(d,h,Math.min(h-d,b)).map(i);return f?w.reverse():w},t.tickFormat=(u,l)=>{if(u==null&&(u=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=(0,Dp.formatSpecifier)(l)).precision==null&&(l.trim=!0),l=(0,Dp.format)(l)),u===1/0)return l;const s=Math.max(1,r*u/t.ticks().length);return c=>{let f=c/i(Math.round(o(c)));return f*r<r-.5&&(f*=r),f<=s?l(c):""}},t.nice=()=>n((0,dM.default)(n(),{floor:u=>i(Math.floor(o(u))),ceil:u=>i(Math.ceil(o(u)))})),t}function Fp(){const e=Wp((0,Np.transformer)()).domain([1,10]);return e.copy=()=>(0,Np.copy)(e,Fp()).base(e.base()),hM.initRange.apply(e,arguments),e}var qr={};Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=Up,qr.symlogish=Bp;var _M=Mt,Rp=at,wM=ze;function zp(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function qp(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bp(e){var t=1,n=e(zp(t),qp(t));return n.constant=function(r){return arguments.length?e(zp(t=+r),qp(t)):t},(0,_M.linearish)(n)}function Up(){var e=Bp((0,Rp.transformer)());return e.copy=function(){return(0,Rp.copy)(e,Up()).constant(e.constant())},wM.initRange.apply(e,arguments)}var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=ys,Hn.powish=Yp,Hn.sqrt=MM;var xM=Mt,Br=at,OM=ze;function Hp(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function PM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function $M(e){return e<0?-e*e:e*e}function Yp(e){var t=e(Br.identity,Br.identity),n=1;function r(){return n===1?e(Br.identity,Br.identity):n===.5?e(PM,$M):e(Hp(n),Hp(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},(0,xM.linearish)(t)}function ys(){var e=Yp((0,Br.transformer)());return e.copy=function(){return(0,Br.copy)(e,ys()).exponent(e.exponent())},OM.initRange.apply(e,arguments),e}function MM(){return ys.apply(null,arguments).exponent(.5)}var bs={};Object.defineProperty(bs,"__esModule",{value:!0}),bs.default=Xp;var SM=Gp(at),TM=ze,CM=Mt,kM=Gp(Wi);function Gp(e){return e&&e.__esModule?e:{default:e}}function Vp(e){return Math.sign(e)*e*e}function EM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Xp(){var e=(0,SM.default)(),t=[0,1],n=!1,r;function o(i){var a=EM(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(Vp(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,kM.default)).map(Vp)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Xp(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},TM.initRange.apply(o,arguments),(0,CM.linearish)(o)}var _s={};Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=Kp;var ws=vt,AM=ze;function Kp(){var e=[],t=[],n=[],r;function o(){var a=0,u=Math.max(1,t.length);for(n=new Array(u-1);++a<u;)n[a-1]=(0,ws.quantileSorted)(e,a/u);return i}function i(a){return a==null||isNaN(a=+a)?r:t[(0,ws.bisect)(n,a)]}return i.invertExtent=function(a){var u=t.indexOf(a);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let u of a)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(ws.ascending),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return Kp().domain(e).range(t).unknown(r)},AM.initRange.apply(i,arguments)}var xs={};Object.defineProperty(xs,"__esModule",{value:!0}),xs.default=Zp;var DM=vt,NM=Mt,LM=ze;function Zp(){var e=0,t=1,n=1,r=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[(0,DM.bisect)(r,l,0,n)]:i}function u(){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,u()):[e,t]},a.range=function(l){return arguments.length?(n=(o=Array.from(l)).length-1,u()):o.slice()},a.invertExtent=function(l){var s=o.indexOf(l);return s<0?[NaN,NaN]:s<1?[e,r[0]]:s>=n?[r[n-1],t]:[r[s-1],r[s]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Zp().domain([e,t]).range(o).unknown(i)},LM.initRange.apply((0,NM.linearish)(a),arguments)}var Os={};Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=Qp;var IM=vt,jM=ze;function Qp(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[(0,IM.bisect)(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Qp().domain(e).range(t).unknown(n)},jM.initRange.apply(o,arguments)}var Ri={},zi={},Ct={};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.timeInterval=Jp;const Ps=new Date,$s=new Date;function Jp(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),u=o.ceil(i);return i-a<u-i?a:u},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,u)=>{const l=[];if(i=o.ceil(i),u=u==null?1:Math.floor(u),!(i<a)||!(u>0))return l;let s;do l.push(s=new Date(+i)),t(i,u),e(i);while(s<i&&i<a);return l},o.filter=i=>Jp(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,u)=>{if(a>=a)if(u<0)for(;++u<=0;)for(;t(a,-1),!i(a););else for(;--u>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(Ps.setTime(+i),$s.setTime(+a),e(Ps),e($s),Math.floor(n(Ps,$s))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.milliseconds=Yn.millisecond=void 0;var ev=Ct;const ga=(0,ev.timeInterval)(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Yn.millisecond=ga,ga.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?(0,ev.timeInterval)(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ga);const WM=ga.range;Yn.milliseconds=WM;var Gn={},Ie={};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.durationYear=Ie.durationWeek=Ie.durationSecond=Ie.durationMonth=Ie.durationMinute=Ie.durationHour=Ie.durationDay=void 0;const tv=1e3;Ie.durationSecond=tv;const nv=tv*60;Ie.durationMinute=nv;const rv=nv*60;Ie.durationHour=rv;const ya=rv*24;Ie.durationDay=ya;const FM=ya*7;Ie.durationWeek=FM;const RM=ya*30;Ie.durationMonth=RM;const zM=ya*365;Ie.durationYear=zM,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.seconds=Gn.second=void 0;var qM=Ct,iv=Ie;const ov=(0,qM.timeInterval)(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*iv.durationSecond)},(e,t)=>(t-e)/iv.durationSecond,e=>e.getUTCSeconds());Gn.second=ov;const BM=ov.range;Gn.seconds=BM;var kt={};Object.defineProperty(kt,"__esModule",{value:!0}),kt.utcMinutes=kt.utcMinute=kt.timeMinutes=kt.timeMinute=void 0;var av=Ct,qi=Ie;const uv=(0,av.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*qi.durationSecond)},(e,t)=>{e.setTime(+e+t*qi.durationMinute)},(e,t)=>(t-e)/qi.durationMinute,e=>e.getMinutes());kt.timeMinute=uv;const UM=uv.range;kt.timeMinutes=UM;const lv=(0,av.timeInterval)(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*qi.durationMinute)},(e,t)=>(t-e)/qi.durationMinute,e=>e.getUTCMinutes());kt.utcMinute=lv;const HM=lv.range;kt.utcMinutes=HM;var Et={};Object.defineProperty(Et,"__esModule",{value:!0}),Et.utcHours=Et.utcHour=Et.timeHours=Et.timeHour=void 0;var sv=Ct,Ur=Ie;const cv=(0,sv.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ur.durationSecond-e.getMinutes()*Ur.durationMinute)},(e,t)=>{e.setTime(+e+t*Ur.durationHour)},(e,t)=>(t-e)/Ur.durationHour,e=>e.getHours());Et.timeHour=cv;const YM=cv.range;Et.timeHours=YM;const fv=(0,sv.timeInterval)(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ur.durationHour)},(e,t)=>(t-e)/Ur.durationHour,e=>e.getUTCHours());Et.utcHour=fv;const GM=fv.range;Et.utcHours=GM;var Je={};Object.defineProperty(Je,"__esModule",{value:!0}),Je.utcDays=Je.utcDay=Je.unixDays=Je.unixDay=Je.timeDays=Je.timeDay=void 0;var Ms=Ct,Bi=Ie;const dv=(0,Ms.timeInterval)(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bi.durationMinute)/Bi.durationDay,e=>e.getDate()-1);Je.timeDay=dv;const VM=dv.range;Je.timeDays=VM;const hv=(0,Ms.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bi.durationDay,e=>e.getUTCDate()-1);Je.utcDay=hv;const XM=hv.range;Je.utcDays=XM;const pv=(0,Ms.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bi.durationDay,e=>Math.floor(e/Bi.durationDay));Je.unixDay=pv;const KM=pv.range;Je.unixDays=KM;var ie={};Object.defineProperty(ie,"__esModule",{value:!0}),ie.utcWednesdays=ie.utcWednesday=ie.utcTuesdays=ie.utcTuesday=ie.utcThursdays=ie.utcThursday=ie.utcSundays=ie.utcSunday=ie.utcSaturdays=ie.utcSaturday=ie.utcMondays=ie.utcMonday=ie.utcFridays=ie.utcFriday=ie.timeWednesdays=ie.timeWednesday=ie.timeTuesdays=ie.timeTuesday=ie.timeThursdays=ie.timeThursday=ie.timeSundays=ie.timeSunday=ie.timeSaturdays=ie.timeSaturday=ie.timeMondays=ie.timeMonday=ie.timeFridays=ie.timeFriday=void 0;var vv=Ct,Ss=Ie;function Vn(e){return(0,vv.timeInterval)(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())*Ss.durationMinute)/Ss.durationWeek)}const mv=Vn(0);ie.timeSunday=mv;const gv=Vn(1);ie.timeMonday=gv;const yv=Vn(2);ie.timeTuesday=yv;const bv=Vn(3);ie.timeWednesday=bv;const _v=Vn(4);ie.timeThursday=_v;const wv=Vn(5);ie.timeFriday=wv;const xv=Vn(6);ie.timeSaturday=xv;const ZM=mv.range;ie.timeSundays=ZM;const QM=gv.range;ie.timeMondays=QM;const JM=yv.range;ie.timeTuesdays=JM;const eS=bv.range;ie.timeWednesdays=eS;const tS=_v.range;ie.timeThursdays=tS;const nS=wv.range;ie.timeFridays=nS;const rS=xv.range;ie.timeSaturdays=rS;function Xn(e){return(0,vv.timeInterval)(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)/Ss.durationWeek)}const Ov=Xn(0);ie.utcSunday=Ov;const Pv=Xn(1);ie.utcMonday=Pv;const $v=Xn(2);ie.utcTuesday=$v;const Mv=Xn(3);ie.utcWednesday=Mv;const Sv=Xn(4);ie.utcThursday=Sv;const Tv=Xn(5);ie.utcFriday=Tv;const Cv=Xn(6);ie.utcSaturday=Cv;const iS=Ov.range;ie.utcSundays=iS;const oS=Pv.range;ie.utcMondays=oS;const aS=$v.range;ie.utcTuesdays=aS;const uS=Mv.range;ie.utcWednesdays=uS;const lS=Sv.range;ie.utcThursdays=lS;const sS=Tv.range;ie.utcFridays=sS;const cS=Cv.range;ie.utcSaturdays=cS;var At={};Object.defineProperty(At,"__esModule",{value:!0}),At.utcMonths=At.utcMonth=At.timeMonths=At.timeMonth=void 0;var kv=Ct;const Ev=(0,kv.timeInterval)(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());At.timeMonth=Ev;const fS=Ev.range;At.timeMonths=fS;const Av=(0,kv.timeInterval)(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());At.utcMonth=Av;const dS=Av.range;At.utcMonths=dS;var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.utcYears=Dt.utcYear=Dt.timeYears=Dt.timeYear=void 0;var ba=Ct;const Ts=(0,ba.timeInterval)(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());Dt.timeYear=Ts,Ts.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:(0,ba.timeInterval)(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)});const hS=Ts.range;Dt.timeYears=hS;const Cs=(0,ba.timeInterval)(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());Dt.utcYear=Cs,Cs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:(0,ba.timeInterval)(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)});const pS=Cs.range;Dt.utcYears=pS;var qt={};Object.defineProperty(qt,"__esModule",{value:!0}),qt.utcTicks=qt.utcTickInterval=qt.timeTicks=qt.timeTickInterval=void 0;var ks=vt,We=Ie,vS=Yn,_a=Gn,Dv=kt,Nv=Et,Lv=Je,Iv=ie,jv=At,Wv=Dt;function Fv(e,t,n,r,o,i){const a=[[_a.second,1,We.durationSecond],[_a.second,5,5*We.durationSecond],[_a.second,15,15*We.durationSecond],[_a.second,30,30*We.durationSecond],[i,1,We.durationMinute],[i,5,5*We.durationMinute],[i,15,15*We.durationMinute],[i,30,30*We.durationMinute],[o,1,We.durationHour],[o,3,3*We.durationHour],[o,6,6*We.durationHour],[o,12,12*We.durationHour],[r,1,We.durationDay],[r,2,2*We.durationDay],[n,1,We.durationWeek],[t,1,We.durationMonth],[t,3,3*We.durationMonth],[e,1,We.durationYear]];function u(s,c,f){const d=c<s;d&&([s,c]=[c,s]);const h=f&&typeof f.range=="function"?f:l(s,c,f),p=h?h.range(s,+c+1):[];return d?p.reverse():p}function l(s,c,f){const d=Math.abs(c-s)/f,h=(0,ks.bisector)(([,,b])=>b).right(a,d);if(h===a.length)return e.every((0,ks.tickStep)(s/We.durationYear,c/We.durationYear,f));if(h===0)return vS.millisecond.every(Math.max((0,ks.tickStep)(s,c,f),1));const[p,m]=a[d/a[h-1][2]<a[h][2]/d?h-1:h];return p.every(m)}return[u,l]}const[mS,gS]=Fv(Wv.utcYear,jv.utcMonth,Iv.utcSunday,Lv.unixDay,Nv.utcHour,Dv.utcMinute);qt.utcTickInterval=gS,qt.utcTicks=mS;const[yS,bS]=Fv(Wv.timeYear,jv.timeMonth,Iv.timeSunday,Lv.timeDay,Nv.timeHour,Dv.timeMinute);qt.timeTickInterval=bS,qt.timeTicks=yS,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"timeDay",{enumerable:!0,get:function(){return a.timeDay}}),Object.defineProperty(e,"timeDays",{enumerable:!0,get:function(){return a.timeDays}}),Object.defineProperty(e,"timeFriday",{enumerable:!0,get:function(){return u.timeFriday}}),Object.defineProperty(e,"timeFridays",{enumerable:!0,get:function(){return u.timeFridays}}),Object.defineProperty(e,"timeHour",{enumerable:!0,get:function(){return i.timeHour}}),Object.defineProperty(e,"timeHours",{enumerable:!0,get:function(){return i.timeHours}}),Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return t.timeInterval}}),Object.defineProperty(e,"timeMillisecond",{enumerable:!0,get:function(){return n.millisecond}}),Object.defineProperty(e,"timeMilliseconds",{enumerable:!0,get:function(){return n.milliseconds}}),Object.defineProperty(e,"timeMinute",{enumerable:!0,get:function(){return o.timeMinute}}),Object.defineProperty(e,"timeMinutes",{enumerable:!0,get:function(){return o.timeMinutes}}),Object.defineProperty(e,"timeMonday",{enumerable:!0,get:function(){return u.timeMonday}}),Object.defineProperty(e,"timeMondays",{enumerable:!0,get:function(){return u.timeMondays}}),Object.defineProperty(e,"timeMonth",{enumerable:!0,get:function(){return l.timeMonth}}),Object.defineProperty(e,"timeMonths",{enumerable:!0,get:function(){return l.timeMonths}}),Object.defineProperty(e,"timeSaturday",{enumerable:!0,get:function(){return u.timeSaturday}}),Object.defineProperty(e,"timeSaturdays",{enumerable:!0,get:function(){return u.timeSaturdays}}),Object.defineProperty(e,"timeSecond",{enumerable:!0,get:function(){return r.second}}),Object.defineProperty(e,"timeSeconds",{enumerable:!0,get:function(){return r.seconds}}),Object.defineProperty(e,"timeSunday",{enumerable:!0,get:function(){return u.timeSunday}}),Object.defineProperty(e,"timeSundays",{enumerable:!0,get:function(){return u.timeSundays}}),Object.defineProperty(e,"timeThursday",{enumerable:!0,get:function(){return u.timeThursday}}),Object.defineProperty(e,"timeThursdays",{enumerable:!0,get:function(){return u.timeThursdays}}),Object.defineProperty(e,"timeTickInterval",{enumerable:!0,get:function(){return c.timeTickInterval}}),Object.defineProperty(e,"timeTicks",{enumerable:!0,get:function(){return c.timeTicks}}),Object.defineProperty(e,"timeTuesday",{enumerable:!0,get:function(){return u.timeTuesday}}),Object.defineProperty(e,"timeTuesdays",{enumerable:!0,get:function(){return u.timeTuesdays}}),Object.defineProperty(e,"timeWednesday",{enumerable:!0,get:function(){return u.timeWednesday}}),Object.defineProperty(e,"timeWednesdays",{enumerable:!0,get:function(){return u.timeWednesdays}}),Object.defineProperty(e,"timeWeek",{enumerable:!0,get:function(){return u.timeSunday}}),Object.defineProperty(e,"timeWeeks",{enumerable:!0,get:function(){return u.timeSundays}}),Object.defineProperty(e,"timeYear",{enumerable:!0,get:function(){return s.timeYear}}),Object.defineProperty(e,"timeYears",{enumerable:!0,get:function(){return s.timeYears}}),Object.defineProperty(e,"unixDay",{enumerable:!0,get:function(){return a.unixDay}}),Object.defineProperty(e,"unixDays",{enumerable:!0,get:function(){return a.unixDays}}),Object.defineProperty(e,"utcDay",{enumerable:!0,get:function(){return a.utcDay}}),Object.defineProperty(e,"utcDays",{enumerable:!0,get:function(){return a.utcDays}}),Object.defineProperty(e,"utcFriday",{enumerable:!0,get:function(){return u.utcFriday}}),Object.defineProperty(e,"utcFridays",{enumerable:!0,get:function(){return u.utcFridays}}),Object.defineProperty(e,"utcHour",{enumerable:!0,get:function(){return i.utcHour}}),Object.defineProperty(e,"utcHours",{enumerable:!0,get:function(){return i.utcHours}}),Object.defineProperty(e,"utcMillisecond",{enumerable:!0,get:function(){return n.millisecond}}),Object.defineProperty(e,"utcMilliseconds",{enumerable:!0,get:function(){return n.milliseconds}}),Object.defineProperty(e,"utcMinute",{enumerable:!0,get:function(){return o.utcMinute}}),Object.defineProperty(e,"utcMinutes",{enumerable:!0,get:function(){return o.utcMinutes}}),Object.defineProperty(e,"utcMonday",{enumerable:!0,get:function(){return u.utcMonday}}),Object.defineProperty(e,"utcMondays",{enumerable:!0,get:function(){return u.utcMondays}}),Object.defineProperty(e,"utcMonth",{enumerable:!0,get:function(){return l.utcMonth}}),Object.defineProperty(e,"utcMonths",{enumerable:!0,get:function(){return l.utcMonths}}),Object.defineProperty(e,"utcSaturday",{enumerable:!0,get:function(){return u.utcSaturday}}),Object.defineProperty(e,"utcSaturdays",{enumerable:!0,get:function(){return u.utcSaturdays}}),Object.defineProperty(e,"utcSecond",{enumerable:!0,get:function(){return r.second}}),Object.defineProperty(e,"utcSeconds",{enumerable:!0,get:function(){return r.seconds}}),Object.defineProperty(e,"utcSunday",{enumerable:!0,get:function(){return u.utcSunday}}),Object.defineProperty(e,"utcSundays",{enumerable:!0,get:function(){return u.utcSundays}}),Object.defineProperty(e,"utcThursday",{enumerable:!0,get:function(){return u.utcThursday}}),Object.defineProperty(e,"utcThursdays",{enumerable:!0,get:function(){return u.utcThursdays}}),Object.defineProperty(e,"utcTickInterval",{enumerable:!0,get:function(){return c.utcTickInterval}}),Object.defineProperty(e,"utcTicks",{enumerable:!0,get:function(){return c.utcTicks}}),Object.defineProperty(e,"utcTuesday",{enumerable:!0,get:function(){return u.utcTuesday}}),Object.defineProperty(e,"utcTuesdays",{enumerable:!0,get:function(){return u.utcTuesdays}}),Object.defineProperty(e,"utcWednesday",{enumerable:!0,get:function(){return u.utcWednesday}}),Object.defineProperty(e,"utcWednesdays",{enumerable:!0,get:function(){return u.utcWednesdays}}),Object.defineProperty(e,"utcWeek",{enumerable:!0,get:function(){return u.utcSunday}}),Object.defineProperty(e,"utcWeeks",{enumerable:!0,get:function(){return u.utcSundays}}),Object.defineProperty(e,"utcYear",{enumerable:!0,get:function(){return s.utcYear}}),Object.defineProperty(e,"utcYears",{enumerable:!0,get:function(){return s.utcYears}});var t=Ct,n=Yn,r=Gn,o=kt,i=Et,a=Je,u=ie,l=At,s=Dt,c=qt}(zi);var Es={},Be={},wa={};Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=_S;var we=zi;function As(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 Ds(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 Ui(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _S(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,u=e.months,l=e.shortMonths,s=Hi(o),c=Yi(o),f=Hi(i),d=Yi(i),h=Hi(a),p=Yi(a),m=Hi(u),b=Yi(u),w=Hi(l),_=Yi(l),x={a:se,A:ce,b:fe,B:I,c:null,d:Hv,e:Hv,f:BS,g:JS,G:tT,H:RS,I:zS,j:qS,L:Yv,m:US,M:HS,p:q,q:J,Q:Qv,s:Jv,S:YS,u:GS,U:VS,V:XS,w:KS,W:ZS,x:null,X:null,y:QS,Y:eT,Z:nT,"%":Zv},$={a:G,A:Z,b:X,B:ne,c:null,d:Vv,e:Vv,f:aT,g:mT,G:yT,H:rT,I:iT,j:oT,L:Xv,m:uT,M:lT,p:ae,q:de,Q:Qv,s:Jv,S:sT,u:cT,U:fT,V:dT,w:hT,W:pT,x:null,X:null,y:vT,Y:gT,Z:bT,"%":Zv},y={a:L,A,b:D,B:W,c:B,d:Bv,e:Bv,f:IS,g:qv,G:zv,H:Uv,I:Uv,j:AS,L:LS,m:ES,M:DS,p:S,q:kS,Q:WS,s:FS,S:NS,u:$S,U:MS,V:SS,w:PS,W:TS,x:te,X:Y,y:qv,Y:zv,Z:CS,"%":jS};x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),$.x=O(n,$),$.X=O(r,$),$.c=O(t,$);function O(F,H){return function(ue){var C=[],he=-1,pe=0,Ee=F.length,Ae,Ye,Yt;for(ue instanceof Date||(ue=new Date(+ue));++he<Ee;)F.charCodeAt(he)===37&&(C.push(F.slice(pe,he)),(Ye=Rv[Ae=F.charAt(++he)])!=null?Ae=F.charAt(++he):Ye=Ae==="e"?" ":"0",(Yt=H[Ae])&&(Ae=Yt(ue,Ye)),C.push(Ae),pe=he+1);return C.push(F.slice(pe,he)),C.join("")}}function E(F,H){return function(ue){var C=Ui(1900,void 0,1),he=k(C,F,ue+="",0),pe,Ee;if(he!=ue.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(H&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(pe=Ds(Ui(C.y,0,1)),Ee=pe.getUTCDay(),pe=Ee>4||Ee===0?we.utcMonday.ceil(pe):(0,we.utcMonday)(pe),pe=we.utcDay.offset(pe,(C.V-1)*7),C.y=pe.getUTCFullYear(),C.m=pe.getUTCMonth(),C.d=pe.getUTCDate()+(C.w+6)%7):(pe=As(Ui(C.y,0,1)),Ee=pe.getDay(),pe=Ee>4||Ee===0?we.timeMonday.ceil(pe):(0,we.timeMonday)(pe),pe=we.timeDay.offset(pe,(C.V-1)*7),C.y=pe.getFullYear(),C.m=pe.getMonth(),C.d=pe.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),Ee="Z"in C?Ds(Ui(C.y,0,1)).getUTCDay():As(Ui(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(Ee+5)%7:C.w+C.U*7-(Ee+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Ds(C)):As(C)}}function k(F,H,ue,C){for(var he=0,pe=H.length,Ee=ue.length,Ae,Ye;he<pe;){if(C>=Ee)return-1;if(Ae=H.charCodeAt(he++),Ae===37){if(Ae=H.charAt(he++),Ye=y[Ae in Rv?H.charAt(he++):Ae],!Ye||(C=Ye(F,ue,C))<0)return-1}else if(Ae!=ue.charCodeAt(C++))return-1}return C}function S(F,H,ue){var C=s.exec(H.slice(ue));return C?(F.p=c.get(C[0].toLowerCase()),ue+C[0].length):-1}function L(F,H,ue){var C=h.exec(H.slice(ue));return C?(F.w=p.get(C[0].toLowerCase()),ue+C[0].length):-1}function A(F,H,ue){var C=f.exec(H.slice(ue));return C?(F.w=d.get(C[0].toLowerCase()),ue+C[0].length):-1}function D(F,H,ue){var C=w.exec(H.slice(ue));return C?(F.m=_.get(C[0].toLowerCase()),ue+C[0].length):-1}function W(F,H,ue){var C=m.exec(H.slice(ue));return C?(F.m=b.get(C[0].toLowerCase()),ue+C[0].length):-1}function B(F,H,ue){return k(F,t,H,ue)}function te(F,H,ue){return k(F,n,H,ue)}function Y(F,H,ue){return k(F,r,H,ue)}function se(F){return a[F.getDay()]}function ce(F){return i[F.getDay()]}function fe(F){return l[F.getMonth()]}function I(F){return u[F.getMonth()]}function q(F){return o[+(F.getHours()>=12)]}function J(F){return 1+~~(F.getMonth()/3)}function G(F){return a[F.getUTCDay()]}function Z(F){return i[F.getUTCDay()]}function X(F){return l[F.getUTCMonth()]}function ne(F){return u[F.getUTCMonth()]}function ae(F){return o[+(F.getUTCHours()>=12)]}function de(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var H=O(F+="",x);return H.toString=function(){return F},H},parse:function(F){var H=E(F+="",!1);return H.toString=function(){return F},H},utcFormat:function(F){var H=O(F+="",$);return H.toString=function(){return F},H},utcParse:function(F){var H=E(F+="",!0);return H.toString=function(){return F},H}}}var Rv={"-":"",_:" ",0:"0"},qe=/^\s*\d+/,wS=/^%/,xS=/[\\^$*+?|[\]().{}]/g;function xe(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function OS(e){return e.replace(xS,"\\$&")}function Hi(e){return new RegExp("^(?:"+e.map(OS).join("|")+")","i")}function Yi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function PS(e,t,n){var r=qe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function $S(e,t,n){var r=qe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function MS(e,t,n){var r=qe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function SS(e,t,n){var r=qe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function TS(e,t,n){var r=qe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zv(e,t,n){var r=qe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function qv(e,t,n){var r=qe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function CS(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 kS(e,t,n){var r=qe.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function ES(e,t,n){var r=qe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Bv(e,t,n){var r=qe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function AS(e,t,n){var r=qe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Uv(e,t,n){var r=qe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function DS(e,t,n){var r=qe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function NS(e,t,n){var r=qe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function LS(e,t,n){var r=qe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IS(e,t,n){var r=qe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function jS(e,t,n){var r=wS.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function WS(e,t,n){var r=qe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function FS(e,t,n){var r=qe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Hv(e,t){return xe(e.getDate(),t,2)}function RS(e,t){return xe(e.getHours(),t,2)}function zS(e,t){return xe(e.getHours()%12||12,t,2)}function qS(e,t){return xe(1+we.timeDay.count((0,we.timeYear)(e),e),t,3)}function Yv(e,t){return xe(e.getMilliseconds(),t,3)}function BS(e,t){return Yv(e,t)+"000"}function US(e,t){return xe(e.getMonth()+1,t,2)}function HS(e,t){return xe(e.getMinutes(),t,2)}function YS(e,t){return xe(e.getSeconds(),t,2)}function GS(e){var t=e.getDay();return t===0?7:t}function VS(e,t){return xe(we.timeSunday.count((0,we.timeYear)(e)-1,e),t,2)}function Gv(e){var t=e.getDay();return t>=4||t===0?(0,we.timeThursday)(e):we.timeThursday.ceil(e)}function XS(e,t){return e=Gv(e),xe(we.timeThursday.count((0,we.timeYear)(e),e)+((0,we.timeYear)(e).getDay()===4),t,2)}function KS(e){return e.getDay()}function ZS(e,t){return xe(we.timeMonday.count((0,we.timeYear)(e)-1,e),t,2)}function QS(e,t){return xe(e.getFullYear()%100,t,2)}function JS(e,t){return e=Gv(e),xe(e.getFullYear()%100,t,2)}function eT(e,t){return xe(e.getFullYear()%1e4,t,4)}function tT(e,t){var n=e.getDay();return e=n>=4||n===0?(0,we.timeThursday)(e):we.timeThursday.ceil(e),xe(e.getFullYear()%1e4,t,4)}function nT(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xe(t/60|0,"0",2)+xe(t%60,"0",2)}function Vv(e,t){return xe(e.getUTCDate(),t,2)}function rT(e,t){return xe(e.getUTCHours(),t,2)}function iT(e,t){return xe(e.getUTCHours()%12||12,t,2)}function oT(e,t){return xe(1+we.utcDay.count((0,we.utcYear)(e),e),t,3)}function Xv(e,t){return xe(e.getUTCMilliseconds(),t,3)}function aT(e,t){return Xv(e,t)+"000"}function uT(e,t){return xe(e.getUTCMonth()+1,t,2)}function lT(e,t){return xe(e.getUTCMinutes(),t,2)}function sT(e,t){return xe(e.getUTCSeconds(),t,2)}function cT(e){var t=e.getUTCDay();return t===0?7:t}function fT(e,t){return xe(we.utcSunday.count((0,we.utcYear)(e)-1,e),t,2)}function Kv(e){var t=e.getUTCDay();return t>=4||t===0?(0,we.utcThursday)(e):we.utcThursday.ceil(e)}function dT(e,t){return e=Kv(e),xe(we.utcThursday.count((0,we.utcYear)(e),e)+((0,we.utcYear)(e).getUTCDay()===4),t,2)}function hT(e){return e.getUTCDay()}function pT(e,t){return xe(we.utcMonday.count((0,we.utcYear)(e)-1,e),t,2)}function vT(e,t){return xe(e.getUTCFullYear()%100,t,2)}function mT(e,t){return e=Kv(e),xe(e.getUTCFullYear()%100,t,2)}function gT(e,t){return xe(e.getUTCFullYear()%1e4,t,4)}function yT(e,t){var n=e.getUTCDay();return e=n>=4||n===0?(0,we.utcThursday)(e):we.utcThursday.ceil(e),xe(e.getUTCFullYear()%1e4,t,4)}function bT(){return"+0000"}function Zv(){return"%"}function Qv(e){return+e}function Jv(e){return Math.floor(+e/1e3)}Object.defineProperty(Be,"__esModule",{value:!0}),Be.default=im,Be.utcParse=Be.utcFormat=Be.timeParse=Be.timeFormat=void 0;var _T=wT(wa);function wT(e){return e&&e.__esModule?e:{default:e}}var Hr,em;Be.timeFormat=em;var tm;Be.timeParse=tm;var nm;Be.utcFormat=nm;var rm;Be.utcParse=rm,im({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 im(e){return Hr=(0,_T.default)(e),Be.timeFormat=em=Hr.format,Be.timeParse=tm=Hr.parse,Be.utcFormat=nm=Hr.utcFormat,Be.utcParse=rm=Hr.utcParse,Hr}var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.isoSpecifier=Kn.default=void 0;var xT=Be,om="%Y-%m-%dT%H:%M:%S.%LZ";Kn.isoSpecifier=om;function OT(e){return e.toISOString()}var PT=Date.prototype.toISOString?OT:(0,xT.utcFormat)(om),$T=PT;Kn.default=$T;var xa={};Object.defineProperty(xa,"__esModule",{value:!0}),xa.default=void 0;var MT=Kn,ST=Be;function TT(e){var t=new Date(e);return isNaN(t)?null:t}var CT=+new Date("2000-01-01T00:00:00.000Z")?TT:(0,ST.utcParse)(MT.isoSpecifier),kT=CT;xa.default=kT,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isoFormat",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"isoParse",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"timeFormat",{enumerable:!0,get:function(){return t.timeFormat}}),Object.defineProperty(e,"timeFormatDefaultLocale",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"timeFormatLocale",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"timeParse",{enumerable:!0,get:function(){return t.timeParse}}),Object.defineProperty(e,"utcFormat",{enumerable:!0,get:function(){return t.utcFormat}}),Object.defineProperty(e,"utcParse",{enumerable:!0,get:function(){return t.utcParse}});var t=u(Be),n=i(wa),r=i(Kn),o=i(xa);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if(typeof WeakMap!="function")return null;var s=new WeakMap,c=new WeakMap;return(a=function(f){return f?c:s})(l)}function u(l,s){if(!s&&l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var c=a(s);if(c&&c.has(l))return c.get(l);var f={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in l)if(h!=="default"&&Object.prototype.hasOwnProperty.call(l,h)){var p=d?Object.getOwnPropertyDescriptor(l,h):null;p&&(p.get||p.set)?Object.defineProperty(f,h,p):f[h]=l[h]}return f.default=l,c&&c.set(l,f),f}}(Es),Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.calendar=Ns,Ri.default=WT;var tn=zi,ET=Es,am=LT(at),AT=ze,DT=NT(ma);function NT(e){return e&&e.__esModule?e:{default:e}}function um(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(um=function(r){return r?n:t})(e)}function LT(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=um(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function IT(e){return new Date(e)}function jT(e){return e instanceof Date?+e:+new Date(+e)}function Ns(e,t,n,r,o,i,a,u,l,s){var c=(0,am.default)(),f=c.invert,d=c.domain,h=s(".%L"),p=s(":%S"),m=s("%I:%M"),b=s("%I %p"),w=s("%a %d"),_=s("%b %d"),x=s("%B"),$=s("%Y");function y(O){return(l(O)<O?h:u(O)<O?p:a(O)<O?m:i(O)<O?b:r(O)<O?o(O)<O?w:_:n(O)<O?x:$)(O)}return c.invert=function(O){return new Date(f(O))},c.domain=function(O){return arguments.length?d(Array.from(O,jT)):d().map(IT)},c.ticks=function(O){var E=d();return e(E[0],E[E.length-1],O??10)},c.tickFormat=function(O,E){return E==null?y:s(E)},c.nice=function(O){var E=d();return(!O||typeof O.range!="function")&&(O=t(E[0],E[E.length-1],O??10)),O?d((0,DT.default)(E,O)):c},c.copy=function(){return(0,am.copy)(c,Ns(e,t,n,r,o,i,a,u,l,s))},c}function WT(){return AT.initRange.apply(Ns(tn.timeTicks,tn.timeTickInterval,tn.timeYear,tn.timeMonth,tn.timeWeek,tn.timeDay,tn.timeHour,tn.timeMinute,tn.timeSecond,ET.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Ls={};Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.default=qT;var nn=zi,FT=Es,RT=Ri,zT=ze;function qT(){return zT.initRange.apply((0,RT.calendar)(nn.utcTicks,nn.utcTickInterval,nn.utcYear,nn.utcMonth,nn.utcWeek,nn.utcDay,nn.utcHour,nn.utcMinute,nn.utcSecond,FT.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}var rn={};Object.defineProperty(rn,"__esModule",{value:!0}),rn.copy=Gi,rn.default=cm,rn.sequentialLog=fm,rn.sequentialPow=Is,rn.sequentialSqrt=GT,rn.sequentialSymlog=dm;var lm=$i,sm=at,Oa=ze,BT=Mt,UT=zr,HT=qr,YT=Hn;function Pa(){var e=0,t=1,n,r,o,i,a=sm.identity,u=!1,l;function s(f){return f==null||isNaN(f=+f)?l:a(o===0?.5:(f=(i(f)-n)*o,u?Math.max(0,Math.min(1,f)):f))}s.domain=function(f){return arguments.length?([e,t]=f,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),s):[e,t]},s.clamp=function(f){return arguments.length?(u=!!f,s):u},s.interpolator=function(f){return arguments.length?(a=f,s):a};function c(f){return function(d){var h,p;return arguments.length?([h,p]=d,a=f(h,p),s):[a(0),a(1)]}}return s.range=c(lm.interpolate),s.rangeRound=c(lm.interpolateRound),s.unknown=function(f){return arguments.length?(l=f,s):l},function(f){return i=f,n=f(e),r=f(t),o=n===r?0:1/(r-n),s}}function Gi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function cm(){var e=(0,BT.linearish)(Pa()(sm.identity));return e.copy=function(){return Gi(e,cm())},Oa.initInterpolator.apply(e,arguments)}function fm(){var e=(0,UT.loggish)(Pa()).domain([1,10]);return e.copy=function(){return Gi(e,fm()).base(e.base())},Oa.initInterpolator.apply(e,arguments)}function dm(){var e=(0,HT.symlogish)(Pa());return e.copy=function(){return Gi(e,dm()).constant(e.constant())},Oa.initInterpolator.apply(e,arguments)}function Is(){var e=(0,YT.powish)(Pa());return e.copy=function(){return Gi(e,Is()).exponent(e.exponent())},Oa.initInterpolator.apply(e,arguments)}function GT(){return Is.apply(null,arguments).exponent(.5)}var js={};Object.defineProperty(js,"__esModule",{value:!0}),js.default=hm;var Ws=vt,VT=at,XT=ze;function hm(){var e=[],t=VT.identity;function n(r){if(r!=null&&!isNaN(r=+r))return t(((0,Ws.bisect)(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Ws.ascending),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>(0,Ws.quantile)(e,i/r))},n.copy=function(){return hm(t).domain(e)},XT.initInterpolator.apply(n,arguments)}var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.default=vm,Zn.divergingLog=mm,Zn.divergingPow=Rs,Zn.divergingSqrt=e2,Zn.divergingSymlog=gm;var Fs=$i,pm=at,$a=ze,KT=Mt,ZT=zr,Ma=rn,QT=qr,JT=Hn;function Sa(){var e=0,t=.5,n=1,r=1,o,i,a,u,l,s=pm.identity,c,f=!1,d;function h(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-i)*(r*m<r*i?u:l),s(f?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t,n]=m,o=c(e=+e),i=c(t=+t),a=c(n=+n),u=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,h):[e,t,n]},h.clamp=function(m){return arguments.length?(f=!!m,h):f},h.interpolator=function(m){return arguments.length?(s=m,h):s};function p(m){return function(b){var w,_,x;return arguments.length?([w,_,x]=b,s=(0,Fs.piecewise)(m,[w,_,x]),h):[s(0),s(.5),s(1)]}}return h.range=p(Fs.interpolate),h.rangeRound=p(Fs.interpolateRound),h.unknown=function(m){return arguments.length?(d=m,h):d},function(m){return c=m,o=m(e),i=m(t),a=m(n),u=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,h}}function vm(){var e=(0,KT.linearish)(Sa()(pm.identity));return e.copy=function(){return(0,Ma.copy)(e,vm())},$a.initInterpolator.apply(e,arguments)}function mm(){var e=(0,ZT.loggish)(Sa()).domain([.1,1,10]);return e.copy=function(){return(0,Ma.copy)(e,mm()).base(e.base())},$a.initInterpolator.apply(e,arguments)}function gm(){var e=(0,QT.symlogish)(Sa());return e.copy=function(){return(0,Ma.copy)(e,gm()).constant(e.constant())},$a.initInterpolator.apply(e,arguments)}function Rs(){var e=(0,JT.powish)(Sa());return e.copy=function(){return(0,Ma.copy)(e,Rs()).exponent(e.exponent())},$a.initInterpolator.apply(e,arguments)}function e2(){return Rs.apply(null,arguments).exponent(.5)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"scaleBand",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"scaleDiverging",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"scaleDivergingLog",{enumerable:!0,get:function(){return b.divergingLog}}),Object.defineProperty(e,"scaleDivergingPow",{enumerable:!0,get:function(){return b.divergingPow}}),Object.defineProperty(e,"scaleDivergingSqrt",{enumerable:!0,get:function(){return b.divergingSqrt}}),Object.defineProperty(e,"scaleDivergingSymlog",{enumerable:!0,get:function(){return b.divergingSymlog}}),Object.defineProperty(e,"scaleIdentity",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"scaleImplicit",{enumerable:!0,get:function(){return a.implicit}}),Object.defineProperty(e,"scaleLinear",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"scaleLog",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"scaleOrdinal",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"scalePoint",{enumerable:!0,get:function(){return t.point}}),Object.defineProperty(e,"scalePow",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"scaleQuantile",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"scaleQuantize",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"scaleRadial",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"scaleSequential",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"scaleSequentialLog",{enumerable:!0,get:function(){return p.sequentialLog}}),Object.defineProperty(e,"scaleSequentialPow",{enumerable:!0,get:function(){return p.sequentialPow}}),Object.defineProperty(e,"scaleSequentialQuantile",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"scaleSequentialSqrt",{enumerable:!0,get:function(){return p.sequentialSqrt}}),Object.defineProperty(e,"scaleSequentialSymlog",{enumerable:!0,get:function(){return p.sequentialSymlog}}),Object.defineProperty(e,"scaleSqrt",{enumerable:!0,get:function(){return u.sqrt}}),Object.defineProperty(e,"scaleSymlog",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"scaleThreshold",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"scaleTime",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"scaleUtc",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"tickFormat",{enumerable:!0,get:function(){return w.default}});var t=$(To),n=_(Rl),r=_(Mt),o=_(zr),i=_(qr),a=$($r),u=$(Hn),l=_(bs),s=_(_s),c=_(xs),f=_(Os),d=_(Ri),h=_(Ls),p=$(rn),m=_(js),b=$(Zn),w=_(fa);function _(y){return y&&y.__esModule?y:{default:y}}function x(y){if(typeof WeakMap!="function")return null;var O=new WeakMap,E=new WeakMap;return(x=function(k){return k?E:O})(y)}function $(y,O){if(!O&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var E=x(O);if(E&&E.has(y))return E.get(y);var k={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in y)if(L!=="default"&&Object.prototype.hasOwnProperty.call(y,L)){var A=S?Object.getOwnPropertyDescriptor(y,L):null;A&&(A.get||A.set)?Object.defineProperty(k,L,A):k[L]=y[L]}return k.default=y,E&&E.set(y,k),k}})(pd);var et=pd;function t2(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}function n2(e,t){t.range&&("padding"in e,e.range(t.range))}function r2(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}function i2(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}function o2(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}function a2(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}function u2(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}var Nt=$i,ym={lab:Nt.interpolateLab,hcl:Nt.interpolateHcl,"hcl-long":Nt.interpolateHclLong,hsl:Nt.interpolateHsl,"hsl-long":Nt.interpolateHslLong,cubehelix:Nt.interpolateCubehelix,"cubehelix-long":Nt.interpolateCubehelixLong,rgb:Nt.interpolateRgb};function l2(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return ym[e]}var t=e.type,n=e.gamma,r=ym[t];return typeof n>"u"?r:r.gamma(n)}function s2(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=l2(t.interpolate);e.interpolate(n)}}var tt=zi,c2=new Date(Date.UTC(2020,1,2,3,4,5)),f2="%Y-%m-%d %H:%M";function bm(e){var t=e.tickFormat(1,f2)(c2);return t==="2020-02-02 03:04"}var _m={day:tt.timeDay,hour:tt.timeHour,minute:tt.timeMinute,month:tt.timeMonth,second:tt.timeSecond,week:tt.timeWeek,year:tt.timeYear},wm={day:tt.utcDay,hour:tt.utcHour,minute:tt.utcMinute,month:tt.utcMonth,second:tt.utcSecond,week:tt.utcWeek,year:tt.utcYear};function d2(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=bm(r);if(typeof n=="string")r.nice(o?wm[n]:_m[n]);else{var i=n.interval,a=n.step,u=(o?wm[i]:_m[i]).every(a);u!=null&&r.nice(u)}}}}function h2(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}function p2(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}function v2(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(Nt.interpolateRound))}function m2(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}function g2(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],i=o<r,a=i?[o,r]:[r,o],u=a[0],l=a[1],s=[Math.min(0,u),Math.max(0,l)];e.domain(i?s.reverse():s)}}var xm=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],y2={domain:t2,nice:d2,zero:g2,interpolate:s2,round:v2,align:r2,base:i2,clamp:o2,constant:a2,exponent:u2,padding:h2,range:n2,reverse:p2,unknown:m2};function nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=xm.filter(function(i){return r.has(i)});return function(a,u){return typeof u<"u"&&o.forEach(function(l){y2[l](a,u)}),a}}var b2=nt("domain","range","reverse","align","padding","round");function Om(e){return b2(et.scaleBand(),e)}var _2=nt("domain","range","reverse","align","padding","round");function Pm(e){return _2(et.scalePoint(),e)}var w2=nt("domain","range","reverse","clamp","interpolate","nice","round","zero");function zs(e){return w2(et.scaleLinear(),e)}var x2=nt("domain","range","clamp","nice","round","unknown");function O2(e){return x2(et.scaleRadial(),e)}var P2=nt("domain","range","reverse","clamp","interpolate","nice","round");function $m(e){return P2(et.scaleTime(),e)}var $2=nt("domain","range","reverse","clamp","interpolate","nice","round");function Mm(e){return $2(et.scaleUtc(),e)}var M2=nt("domain","range","reverse","base","clamp","interpolate","nice","round");function Sm(e){return M2(et.scaleLog(),e)}var S2=nt("domain","range","reverse","clamp","exponent","interpolate","nice","round","zero");function Tm(e){return S2(et.scalePow(),e)}var T2=nt("domain","range","reverse","unknown");function Cm(e){return T2(et.scaleOrdinal(),e)}var C2=nt("domain","range","reverse","nice","zero");function km(e){return C2(et.scaleQuantize(),e)}var k2=nt("domain","range","reverse");function Em(e){return k2(et.scaleQuantile(),e)}var E2=nt("domain","range","reverse","clamp","constant","nice","zero","round");function Am(e){return E2(et.scaleSymlog(),e)}var A2=nt("domain","range","reverse");function Dm(e){return A2(et.scaleThreshold(),e)}var D2=nt("domain","range","reverse","clamp","interpolate","nice","round","zero");function Nm(e){return D2(et.scaleSqrt(),e)}function Vi(e){if(typeof e<"u"&&"type"in e)switch(e.type){case"linear":return zs(e);case"log":return Sm(e);case"pow":return Tm(e);case"sqrt":return Nm(e);case"symlog":return Am(e);case"time":return $m(e);case"utc":return Mm(e);case"quantile":return Em(e);case"quantize":return km(e);case"threshold":return Dm(e);case"ordinal":return Cm(e);case"point":return Pm(e);case"band":return Om(e)}return zs(e)}var N2=nt.apply(void 0,xm);function L2(e,t){return N2(e.copy(),t)}function I2(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?e.exponent()===.5?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?bm(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}function Lm(e){if((typeof e=="function"||typeof e=="object"&&e)&&"valueOf"in e){var t=e.valueOf();if(typeof t=="number")return t}return e}function Im(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter(function(r,o,i){return t==null||i.length<=t||o%Math.round((i.length-1)/t)===0})}function jm(e){return e==null?void 0:e.toString()}var j2=new Set(["linear","pow","quantize","sqrt","symlog"]);function qs(e){return j2.has(e.type)}const W2=Object.freeze(Object.defineProperty({__proto__:null,coerceNumber:Lm,createScale:Vi,getTicks:Im,inferScaleType:I2,scaleBand:Om,scaleCanBeZeroed:qs,scaleLinear:zs,scaleLog:Sm,scaleOrdinal:Cm,scalePoint:Pm,scalePower:Tm,scaleQuantile:Em,scaleQuantize:km,scaleRadial:O2,scaleSqrt:Nm,scaleSymlog:Am,scaleThreshold:Dm,scaleTime:$m,scaleUtc:Mm,toString:jm,updateScale:L2},Symbol.toStringTag,{value:"Module"}));var F2=g.createContext({});const Bt=F2;function Bs(e){var t,n=e;return n&&"bandwidth"in n&&(t=n==null?void 0:n.bandwidth())!=null?t:0}function ut(e){return e!=null&&typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}const Wm=yo(q0),Fm=yo(W2);var Us=Math.PI,Hs=2*Us,Qn=1e-6,R2=Hs-Qn;function Ys(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Yr(){return new Ys}Ys.prototype=Yr.prototype={constructor:Ys,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,u=n-e,l=r-t,s=i-e,c=a-t,f=s*s+c*c;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>Qn)if(!(Math.abs(c*u-l*s)>Qn)||!o)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=n-i,h=r-a,p=u*u+l*l,m=d*d+h*h,b=Math.sqrt(p),w=Math.sqrt(f),_=o*Math.tan((Us-Math.acos((p+f-m)/(2*b*w)))/2),x=_/w,$=_/b;Math.abs(x-1)>Qn&&(this._+="L"+(e+x*s)+","+(t+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*d>s*h)+","+(this._x1=e+$*u)+","+(this._y1=t+$*l)}},arc:function(e,t,n,r,o,i){e=+e,t=+t,n=+n,i=!!i;var a=n*Math.cos(r),u=n*Math.sin(r),l=e+a,s=t+u,c=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+s:(Math.abs(this._x1-l)>Qn||Math.abs(this._y1-s)>Qn)&&(this._+="L"+l+","+s),n&&(f<0&&(f=f%Hs+Hs),f>R2?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-u)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=s):f>Qn&&(this._+="A"+n+","+n+",0,"+ +(f>=Us)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function ye(e){return function(){return e}}var Rm=Math.abs,Ue=Math.atan2,Jn=Math.cos,z2=Math.max,Gs=Math.min,Ut=Math.sin,Gr=Math.sqrt,He=1e-12,bn=Math.PI,Ta=bn/2,_n=2*bn;function q2(e){return e>1?0:e<-1?bn:Math.acos(e)}function zm(e){return e>=1?Ta:e<=-1?-Ta:Math.asin(e)}function B2(e){return e.innerRadius}function U2(e){return e.outerRadius}function H2(e){return e.startAngle}function Y2(e){return e.endAngle}function G2(e){return e&&e.padAngle}function V2(e,t,n,r,o,i,a,u){var l=n-e,s=r-t,c=a-o,f=u-i,d=f*l-c*s;if(!(d*d<He))return d=(c*(t-i)-f*(e-o))/d,[e+d*l,t+d*s]}function Ca(e,t,n,r,o,i,a){var u=e-n,l=t-r,s=(a?i:-i)/Gr(u*u+l*l),c=s*l,f=-s*u,d=e+c,h=t+f,p=n+c,m=r+f,b=(d+p)/2,w=(h+m)/2,_=p-d,x=m-h,$=_*_+x*x,y=o-i,O=d*m-p*h,E=(x<0?-1:1)*Gr(z2(0,y*y*$-O*O)),k=(O*x-_*E)/$,S=(-O*_-x*E)/$,L=(O*x+_*E)/$,A=(-O*_+x*E)/$,D=k-b,W=S-w,B=L-b,te=A-w;return D*D+W*W>B*B+te*te&&(k=L,S=A),{cx:k,cy:S,x01:-c,y01:-f,x11:k*(o/y-1),y11:S*(o/y-1)}}function X2(){var e=B2,t=U2,n=ye(0),r=null,o=H2,i=Y2,a=G2,u=null;function l(){var s,c,f=+e.apply(this,arguments),d=+t.apply(this,arguments),h=o.apply(this,arguments)-Ta,p=i.apply(this,arguments)-Ta,m=Rm(p-h),b=p>h;if(u||(u=s=Yr()),d<f&&(c=d,d=f,f=c),!(d>He))u.moveTo(0,0);else if(m>_n-He)u.moveTo(d*Jn(h),d*Ut(h)),u.arc(0,0,d,h,p,!b),f>He&&(u.moveTo(f*Jn(p),f*Ut(p)),u.arc(0,0,f,p,h,b));else{var w=h,_=p,x=h,$=p,y=m,O=m,E=a.apply(this,arguments)/2,k=E>He&&(r?+r.apply(this,arguments):Gr(f*f+d*d)),S=Gs(Rm(d-f)/2,+n.apply(this,arguments)),L=S,A=S,D,W;if(k>He){var B=zm(k/f*Ut(E)),te=zm(k/d*Ut(E));(y-=B*2)>He?(B*=b?1:-1,x+=B,$-=B):(y=0,x=$=(h+p)/2),(O-=te*2)>He?(te*=b?1:-1,w+=te,_-=te):(O=0,w=_=(h+p)/2)}var Y=d*Jn(w),se=d*Ut(w),ce=f*Jn($),fe=f*Ut($);if(S>He){var I=d*Jn(_),q=d*Ut(_),J=f*Jn(x),G=f*Ut(x),Z;if(m<bn&&(Z=V2(Y,se,J,G,I,q,ce,fe))){var X=Y-Z[0],ne=se-Z[1],ae=I-Z[0],de=q-Z[1],F=1/Ut(q2((X*ae+ne*de)/(Gr(X*X+ne*ne)*Gr(ae*ae+de*de)))/2),H=Gr(Z[0]*Z[0]+Z[1]*Z[1]);L=Gs(S,(f-H)/(F-1)),A=Gs(S,(d-H)/(F+1))}}O>He?A>He?(D=Ca(J,G,Y,se,d,A,b),W=Ca(I,q,ce,fe,d,A,b),u.moveTo(D.cx+D.x01,D.cy+D.y01),A<S?u.arc(D.cx,D.cy,A,Ue(D.y01,D.x01),Ue(W.y01,W.x01),!b):(u.arc(D.cx,D.cy,A,Ue(D.y01,D.x01),Ue(D.y11,D.x11),!b),u.arc(0,0,d,Ue(D.cy+D.y11,D.cx+D.x11),Ue(W.cy+W.y11,W.cx+W.x11),!b),u.arc(W.cx,W.cy,A,Ue(W.y11,W.x11),Ue(W.y01,W.x01),!b))):(u.moveTo(Y,se),u.arc(0,0,d,w,_,!b)):u.moveTo(Y,se),!(f>He)||!(y>He)?u.lineTo(ce,fe):L>He?(D=Ca(ce,fe,I,q,f,-L,b),W=Ca(Y,se,J,G,f,-L,b),u.lineTo(D.cx+D.x01,D.cy+D.y01),L<S?u.arc(D.cx,D.cy,L,Ue(D.y01,D.x01),Ue(W.y01,W.x01),!b):(u.arc(D.cx,D.cy,L,Ue(D.y01,D.x01),Ue(D.y11,D.x11),!b),u.arc(0,0,f,Ue(D.cy+D.y11,D.cx+D.x11),Ue(W.cy+W.y11,W.cx+W.x11),b),u.arc(W.cx,W.cy,L,Ue(W.y11,W.x11),Ue(W.y01,W.x01),!b))):u.arc(0,0,f,$,x,b)}if(u.closePath(),s)return u=null,s+""||null}return l.centroid=function(){var s=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-bn/2;return[Jn(c)*s,Ut(c)*s]},l.innerRadius=function(s){return arguments.length?(e=typeof s=="function"?s:ye(+s),l):e},l.outerRadius=function(s){return arguments.length?(t=typeof s=="function"?s:ye(+s),l):t},l.cornerRadius=function(s){return arguments.length?(n=typeof s=="function"?s:ye(+s),l):n},l.padRadius=function(s){return arguments.length?(r=s==null?null:typeof s=="function"?s:ye(+s),l):r},l.startAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ye(+s),l):o},l.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ye(+s),l):i},l.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:ye(+s),l):a},l.context=function(s){return arguments.length?(u=s??null,l):u},l}function qm(e){this._context=e}qm.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 ka(e){return new qm(e)}function Vs(e){return e[0]}function Xs(e){return e[1]}function Ks(){var e=Vs,t=Xs,n=ye(!0),r=null,o=ka,i=null;function a(u){var l,s=u.length,c,f=!1,d;for(r==null&&(i=o(d=Yr())),l=0;l<=s;++l)!(l<s&&n(c=u[l],l,u))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(c,l,u),+t(c,l,u));if(d)return i=null,d+""||null}return a.x=function(u){return arguments.length?(e=typeof u=="function"?u:ye(+u),a):e},a.y=function(u){return arguments.length?(t=typeof u=="function"?u:ye(+u),a):t},a.defined=function(u){return arguments.length?(n=typeof u=="function"?u:ye(!!u),a):n},a.curve=function(u){return arguments.length?(o=u,r!=null&&(i=o(r)),a):o},a.context=function(u){return arguments.length?(u==null?r=i=null:i=o(r=u),a):r},a}function Bm(){var e=Vs,t=null,n=ye(0),r=Xs,o=ye(!0),i=null,a=ka,u=null;function l(c){var f,d,h,p=c.length,m,b=!1,w,_=new Array(p),x=new Array(p);for(i==null&&(u=a(w=Yr())),f=0;f<=p;++f){if(!(f<p&&o(m=c[f],f,c))===b)if(b=!b)d=f,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=f-1;h>=d;--h)u.point(_[h],x[h]);u.lineEnd(),u.areaEnd()}b&&(_[f]=+e(m,f,c),x[f]=+n(m,f,c),u.point(t?+t(m,f,c):_[f],r?+r(m,f,c):x[f]))}if(w)return u=null,w+""||null}function s(){return Ks().defined(o).curve(a).context(i)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),t=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),l):e},l.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:ye(+c),l):t},l.y=function(c){return arguments.length?(n=typeof c=="function"?c:ye(+c),r=null,l):n},l.y0=function(c){return arguments.length?(n=typeof c=="function"?c:ye(+c),l):n},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ye(+c),l):r},l.lineX0=l.lineY0=function(){return s().x(e).y(n)},l.lineY1=function(){return s().x(e).y(r)},l.lineX1=function(){return s().x(t).y(n)},l.defined=function(c){return arguments.length?(o=typeof c=="function"?c:ye(!!c),l):o},l.curve=function(c){return arguments.length?(a=c,i!=null&&(u=a(i)),l):a},l.context=function(c){return arguments.length?(c==null?i=u=null:u=a(i=c),l):i},l}function K2(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Z2(e){return e}function Q2(){var e=Z2,t=K2,n=null,r=ye(0),o=ye(_n),i=ye(0);function a(u){var l,s=u.length,c,f,d=0,h=new Array(s),p=new Array(s),m=+r.apply(this,arguments),b=Math.min(_n,Math.max(-_n,o.apply(this,arguments)-m)),w,_=Math.min(Math.abs(b)/s,i.apply(this,arguments)),x=_*(b<0?-1:1),$;for(l=0;l<s;++l)($=p[h[l]=l]=+e(u[l],l,u))>0&&(d+=$);for(t!=null?h.sort(function(y,O){return t(p[y],p[O])}):n!=null&&h.sort(function(y,O){return n(u[y],u[O])}),l=0,f=d?(b-s*x)/d:0;l<s;++l,m=w)c=h[l],$=p[c],w=m+($>0?$*f:0)+x,p[c]={data:u[c],index:l,value:$,startAngle:m,endAngle:w,padAngle:_};return p}return a.value=function(u){return arguments.length?(e=typeof u=="function"?u:ye(+u),a):e},a.sortValues=function(u){return arguments.length?(t=u,n=null,a):t},a.sort=function(u){return arguments.length?(n=u,t=null,a):n},a.startAngle=function(u){return arguments.length?(r=typeof u=="function"?u:ye(+u),a):r},a.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:ye(+u),a):o},a.padAngle=function(u){return arguments.length?(i=typeof u=="function"?u:ye(+u),a):i},a}var Um=Zs(ka);function Hm(e){this._curve=e}Hm.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 Zs(e){function t(n){return new Hm(e(n))}return t._curve=e,t}function Xi(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(Zs(n)):t()._curve},e}function Ym(){return Xi(Ks().curve(Um))}function Gm(){var e=Bm().curve(Um),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Xi(n())},delete e.lineX0,e.lineEndAngle=function(){return Xi(r())},delete e.lineX1,e.lineInnerRadius=function(){return Xi(o())},delete e.lineY0,e.lineOuterRadius=function(){return Xi(i())},delete e.lineY1,e.curve=function(a){return arguments.length?t(Zs(a)):t()._curve},e}function Ki(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var Qs=Array.prototype.slice;function J2(e){return e.source}function eC(e){return e.target}function Js(e){var t=J2,n=eC,r=Vs,o=Xs,i=null;function a(){var u,l=Qs.call(arguments),s=t.apply(this,l),c=n.apply(this,l);if(i||(i=u=Yr()),e(i,+r.apply(this,(l[0]=s,l)),+o.apply(this,l),+r.apply(this,(l[0]=c,l)),+o.apply(this,l)),u)return i=null,u+""||null}return a.source=function(u){return arguments.length?(t=u,a):t},a.target=function(u){return arguments.length?(n=u,a):n},a.x=function(u){return arguments.length?(r=typeof u=="function"?u:ye(+u),a):r},a.y=function(u){return arguments.length?(o=typeof u=="function"?u:ye(+u),a):o},a.context=function(u){return arguments.length?(i=u??null,a):i},a}function tC(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function nC(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function rC(e,t,n,r,o){var i=Ki(t,n),a=Ki(t,n=(n+o)/2),u=Ki(r,n),l=Ki(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],u[0],u[1],l[0],l[1])}function iC(){return Js(tC)}function oC(){return Js(nC)}function aC(){var e=Js(rC);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const ec={draw:function(e,t){var n=Math.sqrt(t/bn);e.moveTo(n,0),e.arc(0,0,n,0,_n)}},Vm={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var Xm=Math.sqrt(1/3),uC=Xm*2;const Km={draw:function(e,t){var n=Math.sqrt(t/uC),r=n*Xm;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var lC=.8908130915292852,Zm=Math.sin(bn/10)/Math.sin(7*bn/10),sC=Math.sin(_n/10)*Zm,cC=-Math.cos(_n/10)*Zm;const Qm={draw:function(e,t){var n=Math.sqrt(t*lC),r=sC*n,o=cC*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=_n*i/5,u=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-u*n),e.lineTo(u*r-l*o,l*r+u*o)}e.closePath()}},Jm={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var tc=Math.sqrt(3);const eg={draw:function(e,t){var n=-Math.sqrt(t/(tc*3));e.moveTo(0,n*2),e.lineTo(-tc*n,-n),e.lineTo(tc*n,-n),e.closePath()}};var bt=-.5,_t=Math.sqrt(3)/2,nc=1/Math.sqrt(12),fC=(nc/2+1)*3;const tg={draw:function(e,t){var n=Math.sqrt(t/fC),r=n/2,o=n*nc,i=r,a=n*nc+n,u=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(u,l),e.lineTo(bt*r-_t*o,_t*r+bt*o),e.lineTo(bt*i-_t*a,_t*i+bt*a),e.lineTo(bt*u-_t*l,_t*u+bt*l),e.lineTo(bt*r+_t*o,bt*o-_t*r),e.lineTo(bt*i+_t*a,bt*a-_t*i),e.lineTo(bt*u+_t*l,bt*l-_t*u),e.closePath()}};var dC=[ec,Vm,Km,Jm,Qm,eg,tg];function hC(){var e=ye(ec),t=ye(64),n=null;function r(){var o;if(n||(n=o=Yr()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return r.type=function(o){return arguments.length?(e=typeof o=="function"?o:ye(o),r):e},r.size=function(o){return arguments.length?(t=typeof o=="function"?o:ye(+o),r):t},r.context=function(o){return arguments.length?(n=o??null,r):n},r}function wn(){}function Ea(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 Aa(e){this._context=e}Aa.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:Ea(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:Ea(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pC(e){return new Aa(e)}function ng(e){this._context=e}ng.prototype={areaStart:wn,areaEnd:wn,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:Ea(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vC(e){return new ng(e)}function rg(e){this._context=e}rg.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:Ea(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mC(e){return new rg(e)}function ig(e,t){this._basis=new Aa(e),this._beta=t}ig.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],o=t[0],i=e[n]-r,a=t[n]-o,u=-1,l;++u<=n;)l=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(r+l*i),this._beta*t[u]+(1-this._beta)*(o+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const gC=function e(t){function n(r){return t===1?new Aa(r):new ig(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Da(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 rc(e,t){this._context=e,this._k=(1-t)/6}rc.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:Da(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:Da(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 yC=function e(t){function n(r){return new rc(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ic(e,t){this._context=e,this._k=(1-t)/6}ic.prototype={areaStart:wn,areaEnd:wn,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:Da(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 bC=function e(t){function n(r){return new ic(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: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:Da(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 _C=function e(t){function n(r){return new oc(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ac(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>He){var u=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*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>He){var s=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*s+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*s+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function og(e,t){this._context=e,this._alpha=t}og.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:ac(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 wC=function e(t){function n(r){return t?new og(r,t):new rc(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ag(e,t){this._context=e,this._alpha=t}ag.prototype={areaStart:wn,areaEnd:wn,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:ac(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 xC=function e(t){function n(r){return t?new ag(r,t):new ic(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ug(e,t){this._context=e,this._alpha=t}ug.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:ac(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 OC=function e(t){function n(r){return t?new ug(r,t):new oc(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function lg(e){this._context=e}lg.prototype={areaStart:wn,areaEnd:wn,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 PC(e){return new lg(e)}function sg(e){return e<0?-1:1}function cg(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),u=(i*o+a*r)/(r+o);return(sg(i)+sg(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function fg(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function uc(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,u=(i-r)/3;e._context.bezierCurveTo(r+u,o+u*t,i-u,a-u*n,i,a)}function Na(e){this._context=e}Na.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:uc(this,this._t0,fg(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,uc(this,fg(this,n=cg(this,e,t)),n);break;default:uc(this,this._t0,n=cg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function dg(e){this._context=new hg(e)}(dg.prototype=Object.create(Na.prototype)).point=function(e,t){Na.prototype.point.call(this,t,e)};function hg(e){this._context=e}hg.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,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function $C(e){return new Na(e)}function MC(e){return new dg(e)}function pg(e){this._context=e}pg.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=vg(e),o=vg(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],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 vg(e){var t,n=e.length-1,r,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function SC(e){return new pg(e)}function La(e,t){this._context=e,this._t=t}La.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 TC(e){return new La(e,.5)}function CC(e){return new La(e,0)}function kC(e){return new La(e,1)}function Vr(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,u=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<u;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function Xr(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function EC(e,t){return e[t]}function AC(){var e=ye([]),t=Xr,n=Vr,r=EC;function o(i){var a=e.apply(this,arguments),u,l=i.length,s=a.length,c=new Array(s),f;for(u=0;u<s;++u){for(var d=a[u],h=c[u]=new Array(l),p=0,m;p<l;++p)h[p]=m=[0,+r(i[p],d,p,i)],m.data=i[p];h.key=d}for(u=0,f=t(c);u<s;++u)c[f[u]].index=u;return n(c,f),c}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ye(Qs.call(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:ye(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?Xr:typeof i=="function"?i:ye(Qs.call(i)),o):t},o.offset=function(i){return arguments.length?(n=i??Vr,o):n},o}function DC(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}Vr(e,t)}}function NC(e,t){if((l=e.length)>0)for(var n,r=0,o,i,a,u,l,s=e[t[0]].length;r<s;++r)for(a=u=0,n=0;n<l;++n)(i=(o=e[t[n]][r])[1]-o[0])>0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=u,o[0]=u+=i):(o[0]=0,o[1]=i)}function LC(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,u=0;a<o;++a)u+=e[a][n][1]||0;r[n][1]+=r[n][0]=-u/2}Vr(e,t)}}function IC(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var u=0,l=0,s=0;u<a;++u){for(var c=e[t[u]],f=c[r][1]||0,d=c[r-1][1]||0,h=(f-d)/2,p=0;p<u;++p){var m=e[t[p]],b=m[r][1]||0,w=m[r-1][1]||0;h+=b-w}l+=f,s+=h*f}o[r-1][1]+=o[r-1][0]=n,l&&(n-=s/l)}o[r-1][1]+=o[r-1][0]=n,Vr(e,t)}}function mg(e){var t=e.map(jC);return Xr(e).sort(function(n,r){return t[n]-t[r]})}function jC(e){for(var t=-1,n=0,r=e.length,o,i=-1/0;++t<r;)(o=+e[t][1])>i&&(i=o,n=t);return n}function gg(e){var t=e.map(yg);return Xr(e).sort(function(n,r){return t[n]-t[r]})}function yg(e){for(var t=0,n=-1,r=e.length,o;++n<r;)(o=+e[n][1])&&(t+=o);return t}function WC(e){return gg(e).reverse()}function FC(e){var t=e.length,n,r,o=e.map(yg),i=mg(e),a=0,u=0,l=[],s=[];for(n=0;n<t;++n)r=i[n],a<u?(a+=o[r],l.push(r)):(u+=o[r],s.push(r));return s.reverse().concat(l)}function RC(e){return Xr(e).reverse()}const zC=Object.freeze(Object.defineProperty({__proto__:null,arc:X2,area:Bm,areaRadial:Gm,curveBasis:pC,curveBasisClosed:vC,curveBasisOpen:mC,curveBundle:gC,curveCardinal:yC,curveCardinalClosed:bC,curveCardinalOpen:_C,curveCatmullRom:wC,curveCatmullRomClosed:xC,curveCatmullRomOpen:OC,curveLinear:ka,curveLinearClosed:PC,curveMonotoneX:$C,curveMonotoneY:MC,curveNatural:SC,curveStep:TC,curveStepAfter:kC,curveStepBefore:CC,line:Ks,lineRadial:Ym,linkHorizontal:iC,linkRadial:aC,linkVertical:oC,pie:Q2,pointRadial:Ki,radialArea:Gm,radialLine:Ym,stack:AC,stackOffsetDiverging:NC,stackOffsetExpand:DC,stackOffsetNone:Vr,stackOffsetSilhouette:LC,stackOffsetWiggle:IC,stackOrderAppearance:mg,stackOrderAscending:gg,stackOrderDescending:WC,stackOrderInsideOut:FC,stackOrderNone:Xr,stackOrderReverse:RC,symbol:hC,symbolCircle:ec,symbolCross:Vm,symbolDiamond:Km,symbolSquare:Jm,symbolStar:Qm,symbolTriangle:eg,symbolWye:tg,symbols:dC},Symbol.toStringTag,{value:"Module"}));var qC=["from","to","fill","className","innerRef"];function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lc.apply(this,arguments)}function BC(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function bg(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,i=e.fill,a=i===void 0?"transparent":i,u=e.className,l=e.innerRef,s=BC(e,qC),c=n.x===o.x||n.y===o.y;return g.createElement("line",lc({ref:l,className:Zt("visx-line",u),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:a,shapeRendering:c?"crispEdges":"auto"},s))}var UC=["AxisComponent"];function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ia.apply(this,arguments)}function HC(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function YC(e){var t,n,r,o,i,a,u,l=e.AxisComponent,s=HC(e,UC),c=g.useContext(Bt),f=c.theme,d=c.xScale,h=c.yScale,p=c.margin,m=c.width,b=c.height,w=s.orientation,_=g.useMemo(function(){var k,S,L,A;return w==="left"||w==="right"?f==null||(k=f.axisStyles)==null||(S=k.y)==null?void 0:S[w]:f==null||(L=f.axisStyles)==null||(A=L.x)==null?void 0:A[w]},[f,w]),x=s.tickLabelProps,$=g.useMemo(function(){return x||_?function(k,S,L){return Ia({},_==null?void 0:_.tickLabel,{width:w==="left"||w==="right"?p==null?void 0:p[w]:void 0},typeof x=="function"?x(k,S,L):x)}:void 0},[x,_,w,p]),y=w==="bottom"?(b??0)-((t=p==null?void 0:p.bottom)!=null?t:0):w==="top"&&(n=p==null?void 0:p.top)!=null?n:0,O=w==="left"?(r=p==null?void 0:p.left)!=null?r:0:w==="right"?(m??0)-((o=p==null?void 0:p.right)!=null?o:0):0,E=w==="left"||w==="right"?h:d;return E?g.createElement(l,Ia({top:y,left:O,labelProps:_==null?void 0:_.axisLabel,stroke:_==null||(i=_.axisLine)==null?void 0:i.stroke,strokeWidth:_==null||(a=_.axisLine)==null?void 0:a.strokeWidth,tickLength:_==null?void 0:_.tickLength,tickStroke:_==null||(u=_.tickLine)==null?void 0:u.stroke},s,{tickLabelProps:$,scale:E})):null}var ja={};ja.__esModule=!0,ja.default=ZC;var GC=_g(g),VC=_g(fi),XC=["from","to","fill","className","innerRef"];function _g(e){return e&&e.__esModule?e:{default:e}}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sc.apply(this,arguments)}function KC(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ZC(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,o=r===void 0?{x:1,y:1}:r,i=e.fill,a=i===void 0?"transparent":i,u=e.className,l=e.innerRef,s=KC(e,XC),c=n.x===o.x||n.y===o.y;return GC.default.createElement("line",sc({ref:l,className:(0,VC.default)("visx-line",u),x1:n.x,y1:n.y,x2:o.x,y2:o.y,fill:a,shapeRendering:c?"crispEdges":"auto"},s))}var Wa={};Wa.__esModule=!0,Wa.default=QC;function QC(e){return"bandwidth"in e?e.bandwidth():0}var JC=$g,wg=Zi(_o),xg=Zi(g),ek=Zi(fi),tk=Zi(ja),nk=Wm,Og=dd,Pg=Fm,rk=Zi(Wa),ik=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function Zi(e){return e&&e.__esModule?e:{default:e}}function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cc.apply(this,arguments)}function ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function $g(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,i=e.scale,a=e.width,u=e.stroke,l=u===void 0?"#eaf0f6":u,s=e.strokeWidth,c=s===void 0?1:s,f=e.strokeDasharray,d=e.className,h=e.children,p=e.numTicks,m=p===void 0?10:p,b=e.lineStyle,w=e.offset,_=e.tickValues,x=ok(e,ik),$=_??(0,Pg.getTicks)(i,m),y=(w??0)+(0,rk.default)(i)/2,O=$.map(function(E,k){var S,L=((S=(0,Pg.coerceNumber)(i(E)))!=null?S:0)+y;return{index:k,from:new Og.Point({x:0,y:L}),to:new Og.Point({x:a,y:L})}});return xg.default.createElement(nk.Group,{className:(0,ek.default)("visx-rows",d),top:n,left:o},h?h({lines:O}):O.map(function(E){var k=E.from,S=E.to,L=E.index;return xg.default.createElement(tk.default,cc({key:"row-line-"+L,from:k,to:S,stroke:l,strokeWidth:c,strokeDasharray:f,style:b},x))}))}$g.propTypes={tickValues:wg.default.array,width:wg.default.number.isRequired};var ak=kg,Mg=Qi(_o),Sg=Qi(g),uk=Qi(fi),lk=Qi(ja),sk=Wm,Tg=dd,Cg=Fm,ck=Qi(Wa),fk=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function Qi(e){return e&&e.__esModule?e:{default:e}}function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fc.apply(this,arguments)}function dk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function kg(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,i=e.scale,a=e.height,u=e.stroke,l=u===void 0?"#eaf0f6":u,s=e.strokeWidth,c=s===void 0?1:s,f=e.strokeDasharray,d=e.className,h=e.numTicks,p=h===void 0?10:h,m=e.lineStyle,b=e.offset,w=e.tickValues,_=e.children,x=dk(e,fk),$=w??(0,Cg.getTicks)(i,p),y=(b??0)+(0,ck.default)(i)/2,O=$.map(function(E,k){var S,L=((S=(0,Cg.coerceNumber)(i(E)))!=null?S:0)+y;return{index:k,from:new Tg.Point({x:L,y:0}),to:new Tg.Point({x:L,y:a})}});return Sg.default.createElement(sk.Group,{className:(0,uk.default)("visx-columns",d),top:n,left:o},_?_({lines:O}):O.map(function(E){var k=E.from,S=E.to,L=E.index;return Sg.default.createElement(lk.default,fc({key:"column-line-"+L,from:k,to:S,stroke:l,strokeWidth:c,strokeDasharray:f,style:m},x))}))}kg.propTypes={tickValues:Mg.default.array,height:Mg.default.number.isRequired};var hk=["rows","columns","GridRowsComponent","GridColumnsComponent"];function Fa(){return Fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fa.apply(this,arguments)}function pk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Eg(e){var t=e.rows,n=t===void 0?!0:t,r=e.columns,o=r===void 0?!0:r,i=e.GridRowsComponent,a=e.GridColumnsComponent,u=pk(e,hk),l=g.useContext(Bt),s=l.theme,c=l.xScale,f=l.yScale,d=l.margin,h=l.innerWidth,p=l.innerHeight,m=s==null?void 0:s.gridStyles;return g.createElement(g.Fragment,null,n&&f&&h!=null&&g.createElement(i,Fa({left:d==null?void 0:d.left,lineStyle:m,width:h,scale:f},u)),o&&c&&p!=null&&g.createElement(a,Fa({top:d==null?void 0:d.top,lineStyle:m,height:p,scale:c},u)))}Eg.propTypes={rows:U.bool,columns:U.bool};var vk={top:"top",left:"left",right:"right",bottom:"bottom"};const Lt=vk;function mk(e){var t=e.labelOffset,n=e.labelProps,r=e.orientation,o=e.range,i=e.tickLabelFontSize,a=e.tickLength,u=r===Lt.left||r===Lt.top?-1:1,l,s,c;if(r===Lt.top||r===Lt.bottom){var f=r===Lt.bottom&&typeof n.fontSize=="number"?n.fontSize:0;l=(Number(o[0])+Number(o[o.length-1]))/2,s=u*(a+t+i+f)}else l=u*((Number(o[0])+Number(o[o.length-1]))/2),s=-(a+t),c="rotate("+u*90+")";return{x:l,y:s,transform:c}}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ji.apply(this,arguments)}function gk(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,o=e.tickClassName,i=e.tickComponent,a=e.tickLabelProps,u=e.tickStroke,l=u===void 0?"#222":u,s=e.tickTransform,c=e.ticks,f=e.strokeWidth,d=e.tickLineProps;return c.map(function(h){var p,m=h.value,b=h.index,w=h.from,_=h.to,x=h.formattedValue,$=(p=a[b])!=null?p:{},y=Math.max(10,typeof $.fontSize=="number"&&$.fontSize||0),O=_.y+(n&&r!==Lt.top?y:0);return g.createElement(di,{key:"visx-tick-"+m+"-"+b,className:Zt("visx-axis-tick",o),transform:s},!t&&g.createElement(bg,Ji({from:w,to:_,stroke:l,strokeWidth:f,strokeLinecap:"square"},d)),i?i(Ji({},$,{x:_.x,y:O,formattedValue:x})):g.createElement(sd,Ji({x:_.x,y:O},$),x))})}function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ra.apply(this,arguments)}var Ag={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function yk(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,o=e.hideAxisLine,i=e.hideTicks,a=e.horizontal,u=e.label,l=u===void 0?"":u,s=e.labelClassName,c=e.labelOffset,f=c===void 0?14:c,d=e.labelProps,h=d===void 0?Ag:d,p=e.orientation,m=p===void 0?Lt.bottom:p,b=e.scale,w=e.stroke,_=w===void 0?"#222":w,x=e.strokeDasharray,$=e.strokeWidth,y=$===void 0?1:$,O=e.tickClassName,E=e.tickComponent,k=e.tickLineProps,S=e.tickLabelProps,L=e.tickLength,A=L===void 0?8:L,D=e.tickStroke,W=D===void 0?"#222":D,B=e.tickTransform,te=e.ticks,Y=e.ticksComponent,se=Y===void 0?gk:Y,ce=Ra({},Ag,typeof S=="object"?S:null),fe=te.map(function(q){var J=q.value,G=q.index;return typeof S=="function"?S(J,G,te):ce}),I=Math.max.apply(Math,[10].concat(fe.map(function(q){return typeof q.fontSize=="number"?q.fontSize:0})));return g.createElement(g.Fragment,null,se({hideTicks:i,horizontal:a,orientation:m,scale:b,tickClassName:O,tickComponent:E,tickLabelProps:fe,tickStroke:W,tickTransform:B,ticks:te,strokeWidth:y,tickLineProps:k}),!o&&g.createElement(bg,{className:Zt("visx-axis-line",n),from:t,to:r,stroke:_,strokeWidth:y,strokeDasharray:x}),l&&g.createElement(sd,Ra({className:Zt("visx-axis-label",s)},mk({labelOffset:f,labelProps:h,orientation:m,range:b.range(),tickLabelFontSize:I,tickLength:A}),h),l))}function bk(e,t){t===void 0&&(t="center");var n=e;if(t!=="start"&&"bandwidth"in n){var r=n.bandwidth();return t==="center"&&(r/=2),n.round()&&(r=Math.round(r)),function(o){var i=n(o);return typeof i=="number"?i+r:i}}return e}function _k(e){var t=e;return"tickFormat"in t?t.tickFormat():jm}function za(e,t){var n=e.x,r=e.y;return new mr(t?{x:n,y:r}:{x:r,y:n})}function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dc.apply(this,arguments)}var hc=0;function wk(e){return e===void 0&&(e=hc),typeof e=="number"?{start:e,end:e}:dc({start:hc,end:hc},e)}var xk=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pc.apply(this,arguments)}function Ok(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Pk(e){var t=e.children,n=t===void 0?yk:t,r=e.axisClassName,o=e.hideAxisLine,i=o===void 0?!1:o,a=e.hideTicks,u=a===void 0?!1:a,l=e.hideZero,s=l===void 0?!1:l,c=e.left,f=c===void 0?0:c,d=e.numTicks,h=d===void 0?10:d,p=e.orientation,m=p===void 0?Lt.bottom:p,b=e.rangePadding,w=b===void 0?0:b,_=e.scale,x=e.tickFormat,$=e.tickLength,y=$===void 0?8:$,O=e.tickValues,E=e.top,k=E===void 0?0:E,S=Ok(e,xk),L=x??_k(_),A=m===Lt.left,D=m===Lt.top,W=D||m===Lt.bottom,B=bk(_),te=A||D?-1:1,Y=_.range(),se=wk(w),ce=za({x:Number(Y[0])+.5-se.start,y:0},W),fe=za({x:Number(Y[Y.length-1])+.5+se.end,y:0},W),I=(O??Im(_,h)).filter(function(J){return!s||J!==0&&J!=="0"}).map(function(J,G){return{value:J,index:G}}),q=I.map(function(J){var G=J.value,Z=J.index,X=Lm(B(G));return{value:G,index:Z,from:za({x:X,y:0},W),to:za({x:X,y:y*te},W),formattedValue:L(G,Z,I)}});return g.createElement(di,{className:Zt("visx-axis",r),top:k,left:f},n(pc({},S,{axisFromPoint:ce,axisToPoint:fe,hideAxisLine:i,hideTicks:u,hideZero:s,horizontal:W,numTicks:h,orientation:m,rangePadding:w,scale:_,tickFormat:L,tickLength:y,tickPosition:B,tickSign:te,ticks:q})))}function vc(){return vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vc.apply(this,arguments)}function Dg(e){return g.createElement(YC,vc({AxisComponent:Pk},e))}function mc(){return mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mc.apply(this,arguments)}function $k(e){return g.createElement(Eg,mc({GridRowsComponent:JC,GridColumnsComponent:ak},e))}var Mk=["tooltipOpen"];function Sk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qa.apply(this,arguments)}function Tk(e){var t=g.useState(qa({tooltipOpen:!1},e)),n=t[0],r=t[1],o=g.useCallback(function(a){return r(typeof a=="function"?function(u){u.tooltipOpen;var l=Sk(u,Mk);return qa({},a(l),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:a.tooltipLeft,tooltipTop:a.tooltipTop,tooltipData:a.tooltipData})},[r]),i=g.useCallback(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:o,hideTooltip:i}}function Ck(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gc(e,t)}function gc(e,t){return gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gc(e,t)}var Ng=function(e){Ck(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return!this.node&&typeof document<"u"&&(this.node=document.createElement("div"),this.props.zIndex!=null&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?cr.createPortal(this.props.children,this.node):null},t}(g.PureComponent);Ng.propTypes={zIndex:U.oneOfType([U.number,U.string])};var kk=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ba.apply(this,arguments)}function Ek(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var yc={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},Ua=g.forwardRef(function(e,t){var n=e.className,r=e.top,o=e.left,i=e.offsetLeft,a=i===void 0?10:i,u=e.offsetTop,l=u===void 0?10:u,s=e.style,c=s===void 0?yc:s,f=e.children,d=e.unstyled,h=d===void 0?!1:d,p=e.applyPositionStyle,m=p===void 0?!1:p,b=Ek(e,kk);return g.createElement("div",Ba({ref:t,className:Zt("visx-tooltip",n),style:Ba({top:r==null||l==null?r:r+l,left:o==null||a==null?o:o+a},m&&{position:"absolute"},!h&&c)},b),f)});Ua.propTypes={children:U.node,className:U.string,left:U.number,offsetLeft:U.number,offsetTop:U.number,top:U.number,applyPositionStyle:U.bool,unstyled:U.bool},Ua.displayName="Tooltip";function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bc.apply(this,arguments)}function Ak(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_c(e,t)}function _c(e,t){return _c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_c(e,t)}var Lg={top:0,right:0,bottom:0,left:0,width:0,height:0};function Nk(e){var t;return t=function(n){Dk(r,n);function r(i){var a;return a=n.call(this,i)||this,a.state={rect:void 0,parentRect:void 0},a.nodeRef=g.createRef(),a.getRects=a.getRects.bind(Ak(a)),a}var o=r.prototype;return o.componentDidMount=function(){var a,u=this;this.node=(a=this.nodeRef)!=null&&a.current?this.nodeRef.current:cr.findDOMNode(this),this.setState(function(){return u.getRects()})},o.getRects=function(){if(!this.node)return this.state;var a=this.node,u=a.parentNode,l=a.getBoundingClientRect?a.getBoundingClientRect():Lg,s=u!=null&&u.getBoundingClientRect?u.getBoundingClientRect():Lg;return{rect:l,parentRect:s}},o.render=function(){return g.createElement(e,bc({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(g.PureComponent),t.displayName="withBoundingRects("+(e.displayName||"")+")",t}var Ig=g.createContext({isFlippedVertically:!1,isFlippedHorizontally:!1}),Lk=Ig.Provider;Ig.Consumer;var Ik=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha.apply(this,arguments)}function jk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function jg(e){var t=e.children;e.getRects;var n=e.left,r=n===void 0?0:n,o=e.offsetLeft,i=o===void 0?10:o,a=e.offsetTop,u=a===void 0?10:a,l=e.parentRect,s=e.rect,c=e.style,f=c===void 0?yc:c,d=e.top,h=d===void 0?0:d,p=e.unstyled,m=p===void 0?!1:p,b=e.nodeRef,w=jk(e,Ik),_,x=!1,$=!1;if(s&&l){var y=r,O=h;if(l.width){var E=y+i+s.width-l.width,k=s.width-y-i;x=E>0&&E>k}else{var S=y+i+s.width-window.innerWidth,L=s.width-y-i;x=S>0&&S>L}if(l.height){var A=O+u+s.height-l.height,D=s.height-O-u;$=A>0&&A>D}else $=O+u+s.height>window.innerHeight;y=x?y-s.width-i:y+i,O=$?O-s.height-u:O+u,y=Math.round(y),O=Math.round(O),_="translate("+y+"px, "+O+"px)"}return g.createElement(Ua,Ha({ref:b,style:Ha({left:0,top:0,transform:_},!m&&f)},w),g.createElement(Lk,{value:{isFlippedVertically:!$,isFlippedHorizontally:!x}},t))}jg.propTypes={nodeRef:U.oneOfType([U.string,U.func,U.object])};const Wk=Nk(jg);var Fk=["detectBounds","zIndex"],Rk=["left","top","detectBounds","zIndex"];function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wc.apply(this,arguments)}function Wg(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function zk(e){var t=e===void 0?{}:e,n=t.detectBounds,r=n===void 0?!0:n,o=t.zIndex,i=Wg(t,Fk),a=tw(i),u=a[0],l=a[1],s=a[2],c=g.useState(!1),f=c[0],d=c[1];g.useEffect(function(){d(!1)},[]);var h=g.useMemo(function(){return function(p){var m=p.left,b=m===void 0?0:m,w=p.top,_=w===void 0?0:w,x=p.detectBounds,$=p.zIndex,y=Wg(p,Rk),O=x??r,E=$??o,k=O?Wk:Ua,S=f?0:window.scrollX,L=f?0:window.scrollY,A=b+(l.left||0)+S,D=_+(l.top||0)+L;return g.createElement(Ng,{zIndex:E},g.createElement(k,wc({left:A,top:D},y)))}},[r,o,l.left,l.top,f]);return{containerRef:u,containerBounds:l,forceRefreshBounds:s,TooltipInPortal:h}}var qk=g.createContext(null);const eo=qk;var Bk=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],Uk=["x","y"];function Fg(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on.apply(this,arguments)}var xc={position:"absolute",pointerEvents:"none",fontSize:0,lineHeight:0},Hk={position:"absolute",left:0,top:0,opacity:0,width:0,height:0,pointerEvents:"none"};function Rg(e){var t=g.useContext(Bt)||{},n=t.theme;return g.createElement("circle",on({cx:e.x,cy:e.y,r:e.size,fill:e.color,stroke:n==null?void 0:n.backgroundColor,strokeWidth:1.5,paintOrder:"fill"},e.glyphStyle))}Rg.propTypes={isNearestDatum:U.bool.isRequired};function Yk(e){return g.createElement(Rg,e)}function zg(e){var t,n,r,o,i,a,u,l,s,c,f,d,h,p=e.debounce,m=e.detectBounds,b=e.horizontalCrosshairStyle,w=e.glyphStyle,_=e.renderTooltip,x=e.renderGlyph,$=x===void 0?Yk:x,y=e.resizeObserverPolyfill,O=e.scroll,E=O===void 0?!0:O,k=e.showDatumGlyph,S=k===void 0?!1:k,L=e.showHorizontalCrosshair,A=L===void 0?!1:L,D=e.showSeriesGlyphs,W=D===void 0?!1:D,B=e.showVerticalCrosshair,te=B===void 0?!1:B,Y=e.snapTooltipToDatumX,se=Y===void 0?!1:Y,ce=e.snapTooltipToDatumY,fe=ce===void 0?!1:ce,I=e.verticalCrosshairStyle,q=e.zIndex,J=Fg(e,Bk),G=g.useContext(Bt)||{},Z=G.colorScale,X=G.theme,ne=G.innerHeight,ae=G.innerWidth,de=G.margin,F=G.xScale,H=G.yScale,ue=G.dataRegistry,C=G.resizeObserverPolyfill,he=g.useContext(eo),pe=zk({debounce:p,detectBounds:m,polyfill:C||y,scroll:E,zIndex:q}),Ee=pe.containerRef,Ae=pe.TooltipInPortal,Ye=pe.forceRefreshBounds,Yt=g.useCallback(function(it){var xt;Ee((xt=it==null?void 0:it.parentElement)!=null?xt:null)},[Ee]),An=he!=null&&he.tooltipOpen?_(on({},he,{colorScale:Z})):null,rt=(he==null?void 0:he.tooltipOpen)&&An!=null,ur=g.useRef(!1);g.useEffect(function(){rt&&!ur.current&&Ye(),ur.current=rt},[rt,Ye]);var le=he==null?void 0:he.tooltipLeft,De=he==null?void 0:he.tooltipTop,Wt=F?Bs(F):0,Se=H?Bs(H):0,Gt=g.useCallback(function(it,xt){var dn,hn,pt=ue==null?void 0:ue.get(it),lr=pt==null?void 0:pt.xAccessor,sr=pt==null?void 0:pt.yAccessor,ui=F&&lr?(dn=Number(F(lr(xt)))+Wt/2)!=null?dn:0:void 0,li=H&&sr?(hn=Number(H(sr(xt)))+Se/2)!=null?hn:0:void 0;return{left:ui,top:li}},[ue,Wt,Se,F,H]),Le=he==null||(t=he.tooltipData)==null?void 0:t.nearestDatum,Ge=(n=Le==null?void 0:Le.key)!=null?n:"";if(rt&&Le&&(se||fe)){var cn=Gt(Ge,Le.datum),ct=cn.left,Vt=cn.top;le=se&&ut(ct)?ct:le,De=fe&&ut(Vt)?Vt:De}var ai=[];if(rt&&(S||W)){var mu,gu=Number((mu=w==null?void 0:w.radius)!=null?mu:4);if(W){var po,yu;Object.values((po=he==null||(yu=he.tooltipData)==null?void 0:yu.datumByKey)!=null?po:{}).forEach(function(it){var xt,dn,hn,pt=it.key,lr=it.datum,sr=it.index,ui=(xt=(dn=Z==null?void 0:Z(pt))!=null?dn:X==null||(hn=X.htmlLabel)==null?void 0:hn.color)!=null?xt:"#222",li=Gt(pt,lr),Ou=li.left,Pu=li.top;!ut(Ou)||!ut(Pu)||ai.push({key:pt,color:ui,datum:lr,index:sr,size:gu,x:Ou,y:Pu,glyphStyle:w,isNearestDatum:Le?Le.key===pt:!1})})}else if(Le){var bu=Gt(Ge,Le.datum),Xt=bu.left,fn=bu.top;if(ut(Xt)&&ut(fn)){var vo,mo,go,_u,wu,ht,xu=(vo=(mo=(go=(_u=Ge&&(Z==null?void 0:Z(Ge)))!=null?_u:null)!=null?go:X==null||(wu=X.gridStyles)==null?void 0:wu.stroke)!=null?mo:X==null||(ht=X.htmlLabel)==null?void 0:ht.color)!=null?vo:"#222";ai.push({key:Ge,color:xu,datum:Le.datum,index:Le.index,size:gu,x:Xt,y:fn,glyphStyle:w,isNearestDatum:!0})}}}return g.createElement(g.Fragment,null,g.createElement("svg",{ref:Yt,style:Hk}),rt&&g.createElement(g.Fragment,null,te&&g.createElement(Ae,{className:"visx-crosshair visx-crosshair-vertical",left:le,top:de==null?void 0:de.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:xc},g.createElement("svg",{width:"1",height:ne,overflow:"visible"},g.createElement("line",on({x1:0,x2:0,y1:0,y2:ne,strokeWidth:1.5,stroke:(r=(o=X==null||(i=X.gridStyles)==null?void 0:i.stroke)!=null?o:X==null||(a=X.htmlLabel)==null?void 0:a.color)!=null?r:"#222"},I)))),A&&g.createElement(Ae,{className:"visx-crosshair visx-crosshair-horizontal",left:de==null?void 0:de.left,top:De,offsetLeft:0,offsetTop:0,detectBounds:!1,style:xc},g.createElement("svg",{width:ae,height:"1",overflow:"visible"},g.createElement("line",on({x1:0,x2:ae,y1:0,y2:0,strokeWidth:1.5,stroke:(u=(l=X==null||(s=X.gridStyles)==null?void 0:s.stroke)!=null?l:X==null||(c=X.htmlLabel)==null?void 0:c.color)!=null?u:"#222"},b)))),ai.map(function(it,xt){var dn=it.x,hn=it.y,pt=Fg(it,Uk);return g.createElement(Ae,{key:xt,className:"visx-tooltip-glyph",left:dn,top:hn,offsetLeft:0,offsetTop:0,detectBounds:!1,style:xc},g.createElement("svg",{overflow:"visible"},$(on({x:0,y:0},pt))))}),g.createElement(Ae,on({left:le,top:De,style:on({},yc,{background:(f=X==null?void 0:X.backgroundColor)!=null?f:"white",boxShadow:"0 1px 2px "+(X!=null&&(d=X.htmlLabel)!=null&&d.color?(X==null||(h=X.htmlLabel)==null?void 0:h.color)+"55":"#22222255")},X==null?void 0:X.htmlLabel)},J),An)))}zg.propTypes={renderTooltip:U.func.isRequired,renderGlyph:U.func,snapTooltipToDatumX:U.bool,snapTooltipToDatumY:U.bool,showVerticalCrosshair:U.bool,showHorizontalCrosshair:U.bool,showDatumGlyph:U.bool,showSeriesGlyphs:U.bool};function qg(e){var t=g.useContext(eo);return t!=null&&t.tooltipOpen?g.createElement(zg,e):null}qg.propTypes={renderTooltip:U.func.isRequired,renderGlyph:U.func,snapTooltipToDatumX:U.bool,snapTooltipToDatumY:U.bool,showVerticalCrosshair:U.bool,showHorizontalCrosshair:U.bool,showDatumGlyph:U.bool,showSeriesGlyphs:U.bool};var Gk=Oo,Vk=function(){return Gk.Date.now()},Xk=Vk,Kk=/\s/;function Zk(e){for(var t=e.length;t--&&Kk.test(e.charAt(t)););return t}var Qk=Zk,Jk=Qk,eE=/^\s+/;function tE(e){return e&&e.slice(0,Jk(e)+1).replace(eE,"")}var nE=tE;function rE(e){return e!=null&&typeof e=="object"}var iE=rE,oE=ed,aE=iE,uE="[object Symbol]";function lE(e){return typeof e=="symbol"||aE(e)&&oE(e)==uE}var sE=lE,cE=nE,Bg=Po,fE=sE,Ug=0/0,dE=/^[-+]0x[0-9a-f]+$/i,hE=/^0b[01]+$/i,pE=/^0o[0-7]+$/i,vE=parseInt;function mE(e){if(typeof e=="number")return e;if(fE(e))return Ug;if(Bg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Bg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=cE(e);var n=hE.test(e);return n||pE.test(e)?vE(e.slice(2),n?2:8):dE.test(e)?Ug:+e}var gE=mE,yE=Po,Oc=Xk,Hg=gE,bE="Expected a function",_E=Math.max,wE=Math.min;function xE(e,t,n){var r,o,i,a,u,l,s=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(bE);t=Hg(t)||0,yE(n)&&(c=!!n.leading,f="maxWait"in n,i=f?_E(Hg(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(O){var E=r,k=o;return r=o=void 0,s=O,a=e.apply(k,E),a}function p(O){return s=O,u=setTimeout(w,t),c?h(O):a}function m(O){var E=O-l,k=O-s,S=t-E;return f?wE(S,i-k):S}function b(O){var E=O-l,k=O-s;return l===void 0||E>=t||E<0||f&&k>=i}function w(){var O=Oc();if(b(O))return _(O);u=setTimeout(w,m(O))}function _(O){return u=void 0,d&&r?h(O):(r=o=void 0,a)}function x(){u!==void 0&&clearTimeout(u),s=0,r=l=o=u=void 0}function $(){return u===void 0?a:_(Oc())}function y(){var O=Oc(),E=b(O);if(r=arguments,o=this,l=O,E){if(u===void 0)return p(l);if(f)return clearTimeout(u),u=setTimeout(w,t),h(l)}return u===void 0&&(u=setTimeout(w,t)),a}return y.cancel=x,y.flush=$,y}var Yg=xE;const Gg=fr(Yg);var OE=Kg,xn=Xg(_o),PE=Xg(Yg),Kr=ME(g),$E=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Vg(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Vg=function(o){return o?n:t})(e)}function ME(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Vg(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Xg(e){return e&&e.__esModule?e:{default:e}}function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ya.apply(this,arguments)}function SE(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var TE=[],CE={width:"100%",height:"100%"};function Kg(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,i=e.ignoreDimensions,a=i===void 0?TE:i,u=e.parentSizeStyles,l=u===void 0?CE:u,s=e.enableDebounceLeadingCall,c=s===void 0?!0:s,f=e.resizeObserverPolyfill,d=SE(e,$E),h=(0,Kr.useRef)(null),p=(0,Kr.useRef)(0),m=(0,Kr.useState)({width:0,height:0,top:0,left:0}),b=m[0],w=m[1],_=(0,Kr.useMemo)(function(){var x=Array.isArray(a)?a:[a];return(0,PE.default)(function($){w(function(y){var O=Object.keys(y),E=O.filter(function(S){return y[S]!==$[S]}),k=E.every(function(S){return x.includes(S)});return k?y:$})},o,{leading:c})},[o,c,a]);return(0,Kr.useEffect)(function(){var x=f||window.ResizeObserver,$=new x(function(y){y.forEach(function(O){var E,k=(E=O==null?void 0:O.contentRect)!=null?E:{},S=k.left,L=k.top,A=k.width,D=k.height;p.current=window.requestAnimationFrame(function(){_({width:A,height:D,top:L,left:S})})})});return h.current&&$.observe(h.current),function(){window.cancelAnimationFrame(p.current),$.disconnect(),_.cancel()}},[_,f]),Kr.default.createElement("div",Ya({style:l,ref:h,className:t},d),n(Ya({},b,{ref:h.current,resize:_})))}Kg.propTypes={className:xn.default.string,debounceTime:xn.default.number,enableDebounceLeadingCall:xn.default.bool,ignoreDimensions:xn.default.oneOfType([xn.default.any,xn.default.arrayOf(xn.default.any)]),children:xn.default.func.isRequired};var kE=g.createContext(null);const Zg=kE;function On(e,t,n){var r=g.useContext(Zg),o=g.useRef();o.current=n;var i=g.useCallback(function(a,u,l){r&&r.emit(a,{event:u,svgPoint:mw(u),source:l})},[r]);return g.useEffect(function(){if(r&&e&&t){var a=function(l){var s;(!o.current||l!=null&&l.source&&(s=o.current)!=null&&s.includes(l.source))&&t(l)};return r.on(e,a),function(){return r==null?void 0:r.off(e,a)}}},[r,e,t]),r?i:null}function EE(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}function AE(e){var t=e.children,n=g.useMemo(function(){return EE()},[]);return g.createElement(Zg.Provider,{value:n},t)}function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pc.apply(this,arguments)}function Qg(e){var t=e.hideTooltipDebounceMs,n=t===void 0?400:t,r=e.children,o=Tk(void 0),i=o.tooltipOpen,a=o.tooltipLeft,u=o.tooltipTop,l=o.tooltipData,s=o.updateTooltip,c=o.hideTooltip,f=g.useRef(null);function d(){f.current&&(f.current.cancel(),f.current=null)}g.useEffect(function(){return d},[]);var h=g.useRef(function(b){var w=b.svgPoint,_=b.index,x=b.key,$=b.datum,y=b.distanceX,O=b.distanceY;d();var E=ut(y)?y:1/0,k=ut(O)?O:1/0,S=Math.sqrt(Math.pow(E,2)+Math.pow(k,2));s(function(L){var A,D,W,B=L.tooltipData,te=B!=null&&B.nearestDatum&&ut(B.nearestDatum.distance)?B.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:w==null?void 0:w.x,tooltipTop:w==null?void 0:w.y,tooltipData:{nearestDatum:((A=B==null||(D=B.nearestDatum)==null?void 0:D.key)!=null?A:"")!==x&&te<S?B==null?void 0:B.nearestDatum:{key:x,index:_,datum:$,distance:S},datumByKey:Pc({},B==null?void 0:B.datumByKey,(W={},W[x]={datum:$,index:_,key:x},W))}}})}),p=g.useCallback(function(){f.current=Gg(c,n),f.current()},[c,n]),m=g.useMemo(function(){return{tooltipOpen:i,tooltipLeft:a,tooltipTop:u,tooltipData:l,updateTooltip:s,showTooltip:h.current,hideTooltip:p}},[p,l,a,i,u,s]);return g.createElement(eo.Provider,{value:m},r)}Qg.propTypes={hideTooltipDebounceMs:U.number,children:U.node.isRequired};var to={},$c={};$c.__esModule=!0,$c.default=DE;function DE(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}var Mc={};Mc.__esModule=!0,Mc.default=NE;function NE(e,t){t.range&&("padding"in e,e.range(t.range))}var Sc={};Sc.__esModule=!0,Sc.default=LE;function LE(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}var Tc={};Tc.__esModule=!0,Tc.default=IE;function IE(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}var Cc={};Cc.__esModule=!0,Cc.default=jE;function jE(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}var kc={};kc.__esModule=!0,kc.default=WE;function WE(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}var Ec={};Ec.__esModule=!0,Ec.default=FE;function FE(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}var Ac={},Dc={};Dc.__esModule=!0,Dc.default=RE;var Pn=Nt,Jg={lab:Pn.interpolateLab,hcl:Pn.interpolateHcl,"hcl-long":Pn.interpolateHclLong,hsl:Pn.interpolateHsl,"hsl-long":Pn.interpolateHslLong,cubehelix:Pn.interpolateCubehelix,"cubehelix-long":Pn.interpolateCubehelixLong,rgb:Pn.interpolateRgb};function RE(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return Jg[e]}var t=e.type,n=e.gamma,r=Jg[t];return typeof n>"u"?r:r.gamma(n)}Ac.__esModule=!0,Ac.default=BE;var zE=qE(Dc);function qE(e){return e&&e.__esModule?e:{default:e}}function BE(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){var n=(0,zE.default)(t.interpolate);e.interpolate(n)}}var Nc={},Lc={};Lc.__esModule=!0,Lc.default=YE;var UE=new Date(Date.UTC(2020,1,2,3,4,5)),HE="%Y-%m-%d %H:%M";function YE(e){var t=e.tickFormat(1,HE)(UE);return t==="2020-02-02 03:04"}Nc.__esModule=!0,Nc.default=XE;var lt=tt,GE=VE(Lc);function VE(e){return e&&e.__esModule?e:{default:e}}var ey={day:lt.timeDay,hour:lt.timeHour,minute:lt.timeMinute,month:lt.timeMonth,second:lt.timeSecond,week:lt.timeWeek,year:lt.timeYear},ty={day:lt.utcDay,hour:lt.utcHour,minute:lt.utcMinute,month:lt.utcMonth,second:lt.utcSecond,week:lt.utcWeek,year:lt.utcYear};function XE(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,o=(0,GE.default)(r);if(typeof n=="string")r.nice(o?ty[n]:ey[n]);else{var i=n.interval,a=n.step,u=(o?ty[i]:ey[i]).every(a);u!=null&&r.nice(u)}}}}var Ic={};Ic.__esModule=!0,Ic.default=KE;function KE(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}var jc={};jc.__esModule=!0,jc.default=ZE;function ZE(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}var Wc={};Wc.__esModule=!0,Wc.default=JE;var QE=Nt;function JE(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(QE.interpolateRound))}var Fc={};Fc.__esModule=!0,Fc.default=eA;function eA(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}var Rc={};Rc.__esModule=!0,Rc.default=tA;function tA(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],o=n[1],i=o<r,a=i?[o,r]:[r,o],u=a[0],l=a[1],s=[Math.min(0,u),Math.max(0,l)];e.domain(i?s.reverse():s)}}to.__esModule=!0,to.ALL_OPERATORS=void 0,to.default=gA;var nA=st($c),rA=st(Mc),iA=st(Sc),oA=st(Tc),aA=st(Cc),uA=st(kc),lA=st(Ec),sA=st(Ac),cA=st(Nc),fA=st(Ic),dA=st(jc),hA=st(Wc),pA=st(Fc),vA=st(Rc);function st(e){return e&&e.__esModule?e:{default:e}}var ny=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"];to.ALL_OPERATORS=ny;var mA={domain:nA.default,nice:cA.default,zero:vA.default,interpolate:sA.default,round:hA.default,align:iA.default,base:oA.default,clamp:aA.default,constant:uA.default,exponent:lA.default,padding:fA.default,range:rA.default,reverse:dA.default,unknown:pA.default};function gA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=ny.filter(function(i){return r.has(i)});return function(a,u){return typeof u<"u"&&o.forEach(function(l){mA[l](a,u)}),a}}var yA=OA,bA=et,_A=wA(to);function wA(e){return e&&e.__esModule?e:{default:e}}var xA=(0,_A.default)("domain","range","reverse","unknown");function OA(e){return xA((0,bA.scaleOrdinal)(),e)}var $n={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},no=$n.gray,zc=no[7],PA=[$n.cyan[9],$n.cyan[3],$n.yellow[5],$n.red[4],$n.grape[8],$n.grape[5],$n.pink[9]];function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ce.apply(this,arguments)}var qc={fontFamily:"-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",fontWeight:700,fontSize:12,textAnchor:"middle",pointerEvents:"none",letterSpacing:.4};function $A(e){var t,n,r,o,i,a,u=Ce({},qc,{fill:zc,stroke:"none"},e.svgLabelBig),l=Ce({},qc,{fontWeight:200,fontSize:11,fill:zc,stroke:"none"},e.svgLabelSmall),s=Ce({color:(t=(n=(r=(o=e.htmlLabel)==null?void 0:o.color)!=null?r:(i=e.svgLabelBig)==null?void 0:i.fill)!=null?n:(a=e.svgLabelSmall)==null?void 0:a.fill)!=null?t:zc},qc,e.htmlLabel);return{backgroundColor:e.backgroundColor,colors:[].concat(e.colors),htmlLabel:Ce({},s),svgLabelSmall:Ce({},l),svgLabelBig:Ce({},u),gridStyles:Ce({stroke:e.gridColor,strokeWidth:1},e.gridStyles),axisStyles:{x:{top:{axisLabel:Ce({},u,{dy:"-0.25em"}),axisLine:Ce({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Ce({},l,{dy:"-0.25em"}),tickLength:e.tickLength,tickLine:Ce({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)},bottom:{axisLabel:Ce({},u,{dy:"-0.25em"}),axisLine:Ce({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Ce({},l,{dy:"0.125em"}),tickLength:e.tickLength,tickLine:Ce({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)}},y:{left:{axisLabel:Ce({},u,{dx:"-1.25em"}),axisLine:Ce({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Ce({},l,{textAnchor:"end",dx:"-0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Ce({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)},right:{axisLabel:Ce({},u,{dx:"1.25em"}),axisLine:Ce({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Ce({},l,{textAnchor:"start",dx:"0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Ce({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)}}}}}const MA=$A({backgroundColor:"#fff",colors:PA,tickLength:4,svgLabelSmall:{fill:no[7]},svgLabelBig:{fill:no[9]},gridColor:no[5],gridColorDark:no[9]});var SA=g.createContext(MA);const TA=SA;var CA=function(){function e(){this.registry={},this.registryKeys=[]}var t=e.prototype;return t.registerData=function(r){var o=this,i=Array.isArray(r)?r:[r];i.forEach(function(a){a.key in o.registry&&o.registry[a.key]!=null&&console.debug("Overriding data registry key",a.key),o.registry[a.key]=a,o.registryKeys=Object.keys(o.registry)})},t.unregisterData=function(r){var o=this,i=Array.isArray(r)?r:[r];i.forEach(function(a){delete o.registry[a],o.registryKeys=Object.keys(o.registry)})},t.entries=function(){return Object.values(this.registry)},t.get=function(r){return this.registry[r]},t.keys=function(){return this.registryKeys},e}();function kA(){var e=g.useState(Math.random()),t=e[1],n=g.useMemo(function(){return new CA},[]);return g.useMemo(function(){return{registerData:function(){n.registerData.apply(n,arguments),t(Math.random())},unregisterData:function(){n.unregisterData.apply(n,arguments),t(Math.random())},entries:function(){return n.entries()},get:function(o){return n.get(o)},keys:function(){return n.keys()}}},[n])}var Bc={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};function EA(e){var t=g.useState({width:(e==null?void 0:e.width)==null?Bc.width:e.width,height:(e==null?void 0:e.height)==null?Bc.height:e.height,margin:(e==null?void 0:e.margin)==null?Bc.margin:e.margin}),n=t[0],r=t[1],o=g.useCallback(function(i){(i.width!==n.width||i.height!==n.height||i.margin.left!==n.margin.left||i.margin.right!==n.margin.right||i.margin.top!==n.margin.top||i.margin.bottom!==n.margin.bottom)&&r(i)},[n.width,n.height,n.margin.left,n.margin.right,n.margin.bottom,n.margin.top]);return[n,o]}function Ga(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function AA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Uc(e){let t,n,r;e.length!==2?(t=Ga,n=(u,l)=>Ga(e(u),l),r=(u,l)=>e(u)-l):(t=e===Ga||e===AA?e:DA,n=e,r=e);function o(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;n(u[f],l)<0?s=f+1:c=f}while(s<c)}return s}function i(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;n(u[f],l)<=0?s=f+1:c=f}while(s<c)}return s}function a(u,l,s=0,c=u.length){const f=o(u,l,s,c-1);return f>s&&r(u[f-1],l)>-r(u[f],l)?f-1:f}return{left:o,center:a,right:i}}function DA(){return 0}function NA(e){return e===null?NaN:+e}const LA=Uc(Ga).left;Uc(NA).center;function ry(e,t){let n,r;if(t===void 0)for(const o of e)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let i of e)(i=t(i,++o,e))!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}function IA(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function Hc(e){return(e==null?void 0:e.type)==="band"||(e==null?void 0:e.type)==="ordinal"||(e==null?void 0:e.type)==="point"}function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zr.apply(this,arguments)}function jA(e){var t=e.dataRegistry,n=e.xRange,r=e.xScaleConfig,o=e.yRange,i=e.yScaleConfig,a=t.keys(),u=n[0],l=n[1],s=o[0],c=o[1],f=g.useMemo(function(){var h=a.map(function(w){return t.get(w)}),p=h.reduce(function(w,_){return _?w.concat(_.data.map(function(x){return _.xAccessor(x)})):w},[]);if(p.length!==0){var m=Hc(r)?p:ry(p),b=qs(r)?Vi(Zr({range:[u,l],domain:m,zero:!0},r)):Vi(Zr({range:[u,l],domain:m},r));return h.forEach(function(w){w!=null&&w.xScale&&(b=w.xScale(b))}),b}},[t,r,a,u,l]),d=g.useMemo(function(){var h=a.map(function(w){return t.get(w)}),p=h.reduce(function(w,_){return _?w.concat(_.data.map(function(x){return _.yAccessor(x)})):w},[]);if(p.length!==0){var m=Hc(i)?p:ry(p),b=qs(i)?Vi(Zr({range:[s,c],domain:m,zero:!0},i)):Vi(Zr({range:[s,c],domain:m},i));return h.forEach(function(w){w!=null&&w.yScale&&(b=w.yScale(b))}),b}},[t,i,a,s,c]);return{xScale:f,yScale:d}}function Yc(e){var t=e.initialDimensions,n=e.theme,r=e.xScale,o=e.yScale,i=e.children,a=e.horizontal,u=a===void 0?"auto":a,l=e.resizeObserverPolyfill,s=g.useContext(TA),c=n||s,f=EA(t),d=f[0],h=d.width,p=d.height,m=d.margin,b=f[1],w=Math.max(0,h-m.left-m.right),_=Math.max(0,p-m.top-m.bottom),x=kA(),$=jA({dataRegistry:x,xScaleConfig:r,yScaleConfig:o,xRange:[m.left,Math.max(0,h-m.right)],yRange:[Math.max(0,p-m.bottom),m.top]}),y=$.xScale,O=$.yScale,E=x.keys(),k=g.useMemo(function(){return yA({domain:E,range:c.colors})},[E,c.colors]),S=u==="auto"?Hc(o)||o.type==="time"||o.type==="utc":u,L=g.useMemo(function(){return{dataRegistry:x,registerData:x.registerData,unregisterData:x.unregisterData,xScale:y,yScale:O,colorScale:k,theme:c,width:h,height:p,margin:m,innerWidth:w,innerHeight:_,setDimensions:b,horizontal:S,resizeObserverPolyfill:l}},[k,x,p,S,_,w,m,b,c,h,y,O,l]);return g.createElement(Bt.Provider,{value:L},i)}Yc.propTypes={children:U.node.isRequired,horizontal:U.oneOfType([U.bool,U.oneOf(["auto"])])};function iy(e){var t=e.source,n=e.onPointerOut,r=n===void 0?!0:n,o=e.onPointerMove,i=o===void 0?!0:o,a=e.onPointerUp,u=a===void 0?!0:a,l=e.onPointerDown,s=l===void 0?!0:l,c=e.onFocus,f=c===void 0?!1:c,d=e.onBlur,h=d===void 0?!1:d,p=On(),m=g.useCallback(function(y){return p==null?void 0:p("pointermove",y,t)},[p,t]),b=g.useCallback(function(y){return p==null?void 0:p("pointerout",y,t)},[p,t]),w=g.useCallback(function(y){return p==null?void 0:p("pointerup",y,t)},[p,t]),_=g.useCallback(function(y){return p==null?void 0:p("pointerdown",y,t)},[p,t]),x=g.useCallback(function(y){return p==null?void 0:p("focus",y,t)},[p,t]),$=g.useCallback(function(y){return p==null?void 0:p("blur",y,t)},[p,t]);return{onPointerMove:i?m:void 0,onFocus:f?x:void 0,onBlur:h?$:void 0,onPointerOut:r?b:void 0,onPointerUp:u?w:void 0,onPointerDown:s?_:void 0}}var WA="GLYPHSERIES_EVENT_SOURCE",FA="LINESERIES_EVENT_SOURCE",Va="XYCHART_EVENT_SOURCE";function oy(e){return!!e&&("clientX"in e||"changedTouches"in e)}function RA(e){return!!e&&!oy(e)}function ay(e){var t=e.scale,n=e.accessor,r=e.scaledValue,o=e.data,i=t,a,u;if("invert"in i&&typeof i.invert=="function"){var l=Uc(n).left,s=Number(i.invert(r)),c=l(o,s),f=o[c-1],d=o[c];a=!f||Math.abs(s-n(f))>Math.abs(s-n(d))?d:f,u=a===f?c-1:c}else if("step"in i&&typeof i.step<"u"){var h=t.domain(),p=t.range().map(Number),m=[].concat(p).sort(function(O,E){return O-E}),b=IA(m[0],m[1],i.step()),w=LA(b,r),_=p[0]<p[1]?h:h.reverse(),x=_[w-1],$=o.findIndex(function(O){return String(n(O))===String(x)});a=o[$],u=$}else return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;if(a==null||u==null)return null;var y=Math.abs(Number(i(n(a)))-r);return{datum:a,index:u,distance:y}}function zA(e){var t=e.xScale,n=e.xAccessor,r=e.yScale,o=e.yAccessor,i=e.point,a=e.data;if(!i)return null;var u=ay({scale:t,accessor:n,scaledValue:i.x,data:a});return u?{datum:u.datum,index:u.index,distanceX:u.distance,distanceY:Math.abs(Number(r(o(u.datum)))-i.y)}:null}function qA(e){var t=e.yScale,n=e.yAccessor,r=e.xScale,o=e.xAccessor,i=e.point,a=e.data;if(!i)return null;var u=ay({scale:t,accessor:n,scaledValue:i.y,data:a});return u?{datum:u.datum,index:u.index,distanceY:u.distance,distanceX:Math.abs(Number(r(o(u.datum)))-i.x)}:null}function Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gc.apply(this,arguments)}var Vc="__POINTER_EVENTS_ALL",Xa="__POINTER_EVENTS_NEAREST";function uy(e){var t=e.dataKey,n=e.findNearestDatum,r=e.onBlur,o=e.onFocus,i=e.onPointerMove,a=e.onPointerOut,u=e.onPointerUp,l=e.onPointerDown,s=e.allowedSources,c=g.useContext(Bt),f=c.width,d=c.height,h=c.horizontal,p=c.dataRegistry,m=c.xScale,b=c.yScale,w=n||(h?qA:zA),_=g.useCallback(function(S){var L=S||{},A=L.svgPoint,D=L.event,W={},B=null,te=1/0;if(S&&D&&A&&f&&d&&m&&b){var Y,se=t===Xa||t===Vc,ce=se?(Y=p==null?void 0:p.keys())!=null?Y:[]:Array.isArray(t)?t:[t];ce.forEach(function(I){var q=p==null?void 0:p.get(I);if(q){var J=w({dataKey:I,data:q.data,height:d,point:A,width:f,xAccessor:q.xAccessor,xScale:m,yAccessor:q.yAccessor,yScale:b});if(J&&(W[I]=Gc({key:I,svgPoint:A,event:D},J),t===Xa)){var G,Z,X=Math.sqrt(((G=J.distanceX)!=null?G:Math.pow(1/0,2))+((Z=J.distanceY)!=null?Z:Math.pow(1/0,2)));B=X<te?W[I]:B,te=Math.min(te,X)}}});var fe=t===Xa?[B]:t===Vc||Array.isArray(t)?Object.values(W):[W[t]];return fe.filter(function(I){return I})}return[]},[t,p,m,b,f,d,w]),x=g.useCallback(function(S){i&&_(S).forEach(function(L){return i(L)})},[_,i]),$=g.useCallback(function(S){u&&_(S).forEach(function(L){return u(L)})},[_,u]),y=g.useCallback(function(S){l&&_(S).forEach(function(L){return l(L)})},[_,l]),O=g.useCallback(function(S){o&&_(S).forEach(function(L){return o(L)})},[_,o]),E=g.useCallback(function(S){var L=S==null?void 0:S.event;L&&oy(L)&&a&&a(L)},[a]),k=g.useCallback(function(S){var L=S==null?void 0:S.event;L&&RA(L)&&r&&r(L)},[r]);On("pointermove",i?x:void 0,s),On("pointerout",a?E:void 0,s),On("pointerup",u?$:void 0,s),On("pointerdown",l?y:void 0,s),On("focus",o?O:void 0,s),On("blur",r?k:void 0,s)}function Ka(){return Ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ka.apply(this,arguments)}var BA={top:50,right:50,bottom:50,left:50},UA=[Va];function Qr(e){var t=e.accessibilityLabel,n=t===void 0?"XYChart":t,r=e.captureEvents,o=r===void 0?!0:r,i=e.children,a=e.height,u=e.horizontal,l=e.margin,s=l===void 0?BA:l,c=e.onPointerMove,f=e.onPointerOut,d=e.onPointerUp,h=e.onPointerDown,p=e.pointerEventsDataKey,m=p===void 0?"nearest":p,b=e.theme,w=e.width,_=e.xScale,x=e.yScale,$=e.resizeObserverPolyfill,y=g.useContext(Bt),O=y.setDimensions,E=y.resizeObserverPolyfill,k=g.useContext(eo),S=On();g.useEffect(function(){O&&w!=null&&a!=null&&w>0&&a>0&&O({width:w,height:a,margin:s})},[O,w,a,s]);var L=iy({source:Va});return uy({dataKey:m==="nearest"?Xa:Vc,onPointerMove:c,onPointerOut:f,onPointerUp:d,onPointerDown:h,allowedSources:UA}),O?w==null||a==null?g.createElement(OE,{resizeObserverPolyfill:E},function(A){return g.createElement(Qr,Ka({},e,{width:e.width==null?A.width:e.width,height:e.height==null?A.height:e.height}))}):k==null?g.createElement(Qg,null,g.createElement(Qr,e)):S==null?g.createElement(AE,null,g.createElement(Qr,e)):w<=0||a<=0?(console.info("XYChart has a zero width or height, bailing",{width:w,height:a}),null):g.createElement("svg",{width:w,height:a,"aria-label":n},i,o&&g.createElement("rect",Ka({x:s.left,y:s.top,width:w-s.left-s.right,height:a-s.top-s.bottom,fill:"transparent"},L))):!_||!x?(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null):g.createElement(Yc,{xScale:_,yScale:x,theme:b,initialDimensions:{width:w,height:a,margin:s},horizontal:u,resizeObserverPolyfill:$},g.createElement(Qr,e))}Qr.propTypes={accessibilityLabel:U.string,captureEvents:U.bool,width:U.number,height:U.number,children:U.node.isRequired,horizontal:U.oneOfType([U.bool,U.oneOf(["auto"])]),onPointerMove:U.func,onPointerOut:U.func,onPointerUp:U.func,onPointerDown:U.func,pointerEventsDataKey:U.oneOf(["all","nearest"])};var Mn={};const Xc=yo(zC);var Kc={};Kc.__esModule=!0,Kc.default=HA;function HA(e,t){e(t)}var er={};er.__esModule=!0,er.STACK_ORDER_NAMES=er.STACK_ORDERS=void 0,er.default=GA;var ro=Xc,Za={ascending:ro.stackOrderAscending,descending:ro.stackOrderDescending,insideout:ro.stackOrderInsideOut,none:ro.stackOrderNone,reverse:ro.stackOrderReverse};er.STACK_ORDERS=Za;var YA=Object.keys(Za);er.STACK_ORDER_NAMES=YA;function GA(e){return e&&Za[e]||Za.none}var tr={};tr.__esModule=!0,tr.STACK_OFFSET_NAMES=tr.STACK_OFFSETS=void 0,tr.default=XA;var io=Xc,Qa={expand:io.stackOffsetExpand,diverging:io.stackOffsetDiverging,none:io.stackOffsetNone,silhouette:io.stackOffsetSilhouette,wiggle:io.stackOffsetWiggle};tr.STACK_OFFSETS=Qa;var VA=Object.keys(Qa);tr.STACK_OFFSET_NAMES=VA;function XA(e){return e&&Qa[e]||Qa.none}Mn.__esModule=!0,Mn.arc=QA,Mn.area=JA,Mn.line=eD,Mn.pie=tD,Mn.radialLine=nD,Mn.stack=rD;var Jr=Xc,je=Zc(Kc),KA=Zc(er),ZA=Zc(tr);function Zc(e){return e&&e.__esModule?e:{default:e}}function QA(e){var t=e===void 0?{}:e,n=t.innerRadius,r=t.outerRadius,o=t.cornerRadius,i=t.startAngle,a=t.endAngle,u=t.padAngle,l=t.padRadius,s=(0,Jr.arc)();return n!=null&&(0,je.default)(s.innerRadius,n),r!=null&&(0,je.default)(s.outerRadius,r),o!=null&&(0,je.default)(s.cornerRadius,o),i!=null&&(0,je.default)(s.startAngle,i),a!=null&&(0,je.default)(s.endAngle,a),u!=null&&(0,je.default)(s.padAngle,u),l!=null&&(0,je.default)(s.padRadius,l),s}function JA(e){var t=e===void 0?{}:e,n=t.x,r=t.x0,o=t.x1,i=t.y,a=t.y0,u=t.y1,l=t.defined,s=t.curve,c=(0,Jr.area)();return n&&(0,je.default)(c.x,n),r&&(0,je.default)(c.x0,r),o&&(0,je.default)(c.x1,o),i&&(0,je.default)(c.y,i),a&&(0,je.default)(c.y0,a),u&&(0,je.default)(c.y1,u),l&&c.defined(l),s&&c.curve(s),c}function eD(e){var t=e===void 0?{}:e,n=t.x,r=t.y,o=t.defined,i=t.curve,a=(0,Jr.line)();return n&&(0,je.default)(a.x,n),r&&(0,je.default)(a.y,r),o&&a.defined(o),i&&a.curve(i),a}function tD(e){var t=e===void 0?{}:e,n=t.startAngle,r=t.endAngle,o=t.padAngle,i=t.value,a=t.sort,u=t.sortValues,l=(0,Jr.pie)();return(a===null||a!=null)&&l.sort(a),(u===null||u!=null)&&l.sortValues(u),i!=null&&l.value(i),o!=null&&(0,je.default)(l.padAngle,o),n!=null&&(0,je.default)(l.startAngle,n),r!=null&&(0,je.default)(l.endAngle,r),l}function nD(e){var t=e===void 0?{}:e,n=t.angle,r=t.radius,o=t.defined,i=t.curve,a=(0,Jr.radialLine)();return n&&(0,je.default)(a.angle,n),r&&(0,je.default)(a.radius,r),o&&a.defined(o),i&&a.curve(i),a}function rD(e){var t=e.keys,n=e.value,r=e.order,o=e.offset,i=(0,Jr.stack)();return t&&i.keys(t),n&&(0,je.default)(i.value,n),r&&i.order((0,KA.default)(r)),o&&i.offset((0,ZA.default)(o)),i}var iD=sD,Qc=ly(g),oD=ly(fi),aD=Mn,uD=["children","data","x","y","fill","className","curve","innerRef","defined"];function ly(e){return e&&e.__esModule?e:{default:e}}function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jc.apply(this,arguments)}function lD(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function sD(e){var t=e.children,n=e.data,r=n===void 0?[]:n,o=e.x,i=e.y,a=e.fill,u=a===void 0?"transparent":a,l=e.className,s=e.curve,c=e.innerRef,f=e.defined,d=f===void 0?function(){return!0}:f,h=lD(e,uD),p=(0,aD.line)({x:o,y:i,defined:d,curve:s});return t?Qc.default.createElement(Qc.default.Fragment,null,t({path:p})):Qc.default.createElement("path",Jc({ref:c,className:(0,oD.default)("visx-linepath",l),d:p(r)||"",fill:u,strokeLinecap:"round"},h))}function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ef.apply(this,arguments)}function sy(e){function t(n){var r=n.dataKey,o=n.data,i=n.xAccessor,a=n.yAccessor,u=g.useContext(Bt),l=u.xScale,s=u.yScale,c=u.dataRegistry;g.useEffect(function(){return c&&c.registerData({key:r,data:o,xAccessor:i,yAccessor:a}),function(){return c==null?void 0:c.unregisterData(r)}},[c,r,o,i,a]);var f=c==null?void 0:c.get(r);if(!l||!s||!f)return null;var d=e;return g.createElement(d,ef({},n,{xScale:l,yScale:s,data:f.data,xAccessor:f.xAccessor,yAccessor:f.yAccessor}))}return t}function Ja(e,t,n){return n===void 0&&(n="center"),function(r){var o=e(t(r));if(ut(o)){var i=(n==="start"?0:Bs(e))/(n==="center"?2:1);return o+i}return NaN}}function cy(e){var t,n=e.dataKey,r=e.enableEvents,o=e.findNearestDatum,i=e.onBlur,a=e.onFocus,u=e.onPointerMove,l=e.onPointerOut,s=e.onPointerUp,c=e.onPointerDown,f=e.source,d=e.allowedSources,h=(t=g.useContext(eo))!=null?t:{},p=h.showTooltip,m=h.hideTooltip,b=g.useCallback(function(y){p(y),u&&u(y)},[p,u]),w=g.useCallback(function(y){p(y),a&&a(y)},[p,a]),_=g.useCallback(function(y){m(),y&&l&&l(y)},[m,l]),x=g.useCallback(function(y){m(),y&&i&&i(y)},[m,i]),$=g.useCallback(function(y){p(y),c&&c(y)},[p,c]);return uy({dataKey:n,findNearestDatum:o,onBlur:r?x:void 0,onFocus:r?w:void 0,onPointerMove:r?b:void 0,onPointerOut:r?_:void 0,onPointerUp:r?s:void 0,onPointerDown:r?$:void 0,allowedSources:d}),iy({source:f,onBlur:!!i&&r,onFocus:!!a&&r,onPointerMove:!!u&&r,onPointerOut:!!l&&r,onPointerUp:!!s&&r,onPointerDown:!!c&&r})}function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tf.apply(this,arguments)}function nf(e){var t,n,r,o=e.colorAccessor,i=e.data,a=e.dataKey,u=e.onBlur,l=e.onFocus,s=e.onPointerMove,c=e.onPointerOut,f=e.onPointerUp,d=e.onPointerDown,h=e.enableEvents,p=h===void 0?!0:h,m=e.renderGlyphs,b=e.size,w=b===void 0?8:b,_=e.xAccessor,x=e.xScale,$=e.yAccessor,y=e.yScale,O=g.useContext(Bt),E=O.colorScale,k=O.theme,S=O.horizontal,L=g.useMemo(function(){return Ja(x,_)},[x,_]),A=g.useMemo(function(){return Ja(y,$)},[y,$]),D=(t=(n=E==null?void 0:E(a))!=null?n:k==null||(r=k.colors)==null?void 0:r[0])!=null?t:"#222",W=WA+"-"+a,B=cy({dataKey:a,enableEvents:p,onBlur:u,onFocus:l,onPointerMove:s,onPointerOut:c,onPointerUp:f,onPointerDown:d,source:W,allowedSources:[Va,W]}),te=g.useMemo(function(){return i.map(function(Y,se){var ce,fe=L(Y);if(!ut(fe))return null;var I=A(Y);return ut(I)?{key:""+se,x:fe,y:I,color:(ce=o==null?void 0:o(Y,se))!=null?ce:D,size:typeof w=="function"?w(Y):w,datum:Y}:null}).filter(function(Y){return Y})},[D,o,i,L,A,w]);return g.createElement(g.Fragment,null,m(tf({glyphs:te,xScale:x,yScale:y,horizontal:S},B)))}nf.propTypes={colorAccessor:U.func,size:U.oneOfType([U.number,U.func]),renderGlyphs:U.func.isRequired};const cD=sy(nf);function fy(e){var t=e.key,n=e.color,r=e.x,o=e.y,i=e.size,a=e.onBlur,u=e.onFocus,l=e.onPointerMove,s=e.onPointerOut,c=e.onPointerUp;return g.createElement("circle",{className:"visx-circle-glyph",key:t,tabIndex:a||u?0:void 0,fill:n,r:i/2,cx:r,cy:o,onBlur:a,onFocus:u,onPointerMove:l,onPointerOut:s,onPointerUp:c})}var fD=["renderGlyph"];function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eu.apply(this,arguments)}function dD(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function hD(e){var t=e.renderGlyph,n=t===void 0?fy:t,r=dD(e,fD),o=g.useCallback(function(i){var a=i.glyphs,u=i.onPointerMove,l=i.onPointerOut,s=i.onPointerUp,c=i.onFocus,f=i.onBlur;return a.map(function(d){return g.createElement(g.Fragment,{key:d.key},n(eu({},d,{onPointerMove:u,onPointerOut:l,onPointerUp:s,onFocus:c,onBlur:f})))})},[n]);return g.createElement(cD,eu({},r,{renderGlyphs:o}))}var pD=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oo.apply(this,arguments)}function vD(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function dy(e){var t,n,r,o=e.colorAccessor,i=e.curve,a=e.data,u=e.dataKey,l=e.onBlur,s=e.onFocus,c=e.onPointerMove,f=e.onPointerOut,d=e.onPointerUp,h=e.onPointerDown,p=e.enableEvents,m=p===void 0?!0:p,b=e.xAccessor,w=e.xScale,_=e.yAccessor,x=e.yScale,$=e.PathComponent,y=$===void 0?"path":$,O=vD(e,pD),E=g.useContext(Bt),k=E.colorScale,S=E.theme,L=g.useMemo(function(){return Ja(w,b)},[w,b]),A=g.useMemo(function(){return Ja(x,_)},[x,_]),D=g.useCallback(function(ce){return ut(w(b(ce)))&&ut(x(_(ce)))},[w,b,x,_]),W=(t=(n=k==null?void 0:k(u))!=null?n:S==null||(r=S.colors)==null?void 0:r[0])!=null?t:"#222",B=FA+"-"+u,te=cy({dataKey:u,enableEvents:m,onBlur:l,onFocus:s,onPointerMove:c,onPointerOut:f,onPointerUp:d,onPointerDown:h,source:B,allowedSources:[Va,B]}),Y=!!(s||l),se=g.useCallback(function(ce){var fe=ce.glyphs;return Y?fe.map(function(I){return g.createElement(g.Fragment,{key:I.key},fy(oo({},I,{color:"transparent",onFocus:te.onFocus,onBlur:te.onBlur})))}):null},[Y,te.onFocus,te.onBlur]);return g.createElement(g.Fragment,null,g.createElement(iD,oo({x:L,y:A,defined:D,curve:i},O),function(ce){var fe,I=ce.path;return g.createElement(y,oo({stroke:(fe=o==null?void 0:o(u))!=null?fe:W,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},O,{d:I(a)||""},te))}),Y&&g.createElement(nf,{dataKey:u,data:a,xAccessor:b,yAccessor:_,xScale:w,yScale:x,renderGlyphs:se}))}dy.propTypes={colorAccessor:U.func};const mD=sy(dy);function gD(e){return g.createElement(mD,e)}var rf={exports:{}};(function(e,t){(function(n,r){r(t)})(ci,function(n){var r,o=Object.defineProperty,i=Object.defineProperties,a=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=Math.pow,f=(v,P,M)=>P in v?o(v,P,{enumerable:!0,configurable:!0,writable:!0,value:M}):v[P]=M,d=(v,P)=>{for(var M in P||(P={}))l.call(P,M)&&f(v,M,P[M]);if(u)for(var M of u(P))s.call(P,M)&&f(v,M,P[M]);return v},h=(v,P)=>i(v,a(P)),p=(v,P)=>{var M={};for(var T in v)l.call(v,T)&&P.indexOf(T)<0&&(M[T]=v[T]);if(v!=null&&u)for(var T of u(v))P.indexOf(T)<0&&s.call(v,T)&&(M[T]=v[T]);return M},m=(v,P,M)=>new Promise((T,j)=>{var z=V=>{try{R(M.next(V))}catch(K){j(K)}},N=V=>{try{R(M.throw(V))}catch(K){j(K)}},R=V=>V.done?T(V.value):Promise.resolve(V.value).then(z,N);R((M=M.apply(v,P)).next())});function b(v,P){return v[13]=1,v[14]=P>>8,v[15]=P&255,v[16]=P>>8,v[17]=P&255,v}const w="p".charCodeAt(0),_="H".charCodeAt(0),x="Y".charCodeAt(0),$="s".charCodeAt(0);let y;function O(){const v=new Int32Array(256);for(let P=0;P<256;P++){let M=P;for(let T=0;T<8;T++)M=M&1?3988292384^M>>>1:M>>>1;v[P]=M}return v}function E(v){let P=-1;y||(y=O());for(let M=0;M<v.length;M++)P=y[(P^v[M])&255]^P>>>8;return P^-1}function k(v){const P=v.length-1;for(let M=P;M>=4;M--)if(v[M-4]===9&&v[M-3]===w&&v[M-2]===_&&v[M-1]===x&&v[M]===$)return M-3;return 0}function S(v,P,M=!1){const T=new Uint8Array(13);P*=39.3701,T[0]=w,T[1]=_,T[2]=x,T[3]=$,T[4]=P>>>24,T[5]=P>>>16,T[6]=P>>>8,T[7]=P&255,T[8]=T[4],T[9]=T[5],T[10]=T[6],T[11]=T[7],T[12]=1;const j=E(T),z=new Uint8Array(4);if(z[0]=j>>>24,z[1]=j>>>16,z[2]=j>>>8,z[3]=j&255,M){const N=k(v);return v.set(T,N),v.set(z,N+13),v}else{const N=new Uint8Array(4);N[0]=0,N[1]=0,N[2]=0,N[3]=9;const R=new Uint8Array(54);return R.set(v,0),R.set(N,33),R.set(T,37),R.set(z,50),R}}const L="AAlwSFlz",A="AAAJcEhZ",D="AAAACXBI";function W(v){let P=v.indexOf(L);return P===-1&&(P=v.indexOf(A)),P===-1&&(P=v.indexOf(D)),P}const B="[modern-screenshot]",te=typeof window<"u",Y=te&&"Worker"in window,se=te&&"atob"in window,ce=te&&"btoa"in window,fe=te?(r=window.navigator)==null?void 0:r.userAgent:"",I=fe.includes("Chrome"),q=fe.includes("AppleWebKit")&&!I,J=fe.includes("Firefox"),G=v=>v&&"__CONTEXT__"in v,Z=v=>v.constructor.name==="CSSFontFaceRule",X=v=>v.constructor.name==="CSSImportRule",ne=v=>v.nodeType===1,ae=v=>typeof v.className=="object",de=v=>ae(v)&&v.tagName==="svg",F=v=>ae(v)&&v.tagName==="image",H=v=>ne(v)&&typeof v.style<"u"&&!ae(v),ue=v=>v.nodeType===8,C=v=>v.nodeType===3,he=v=>v.tagName==="IMG",pe=v=>v.tagName==="VIDEO",Ee=v=>v.tagName==="CANVAS",Ae=v=>v.tagName==="TEXTAREA",Ye=v=>v.tagName==="INPUT",Yt=v=>v.tagName==="STYLE",An=v=>v.tagName==="SCRIPT",rt=v=>v.tagName==="SELECT",ur=v=>v.tagName==="SLOT",le=v=>v.tagName==="IFRAME",De=(...v)=>console.warn(B,...v),Wt=v=>console.time(`${B} ${v}`),Se=v=>console.timeEnd(`${B} ${v}`),Gt=v=>{var P;const M=(P=v==null?void 0:v.createElement)==null?void 0:P.call(v,"canvas");return M&&(M.height=M.width=1),M&&"toDataURL"in M&&!!M.toDataURL("image/webp").includes("image/webp")},Le=v=>v.startsWith("data:");function Ge(v,P){if(v.match(/^[a-z]+:\/\//i))return v;if(te&&v.match(/^\/\//))return window.location.protocol+v;if(v.match(/^[a-z]+:/i)||!te)return v;const M=cn().implementation.createHTMLDocument(),T=M.createElement("base"),j=M.createElement("a");return M.head.appendChild(T),M.body.appendChild(j),P&&(T.href=P),j.href=v,j.href}function cn(v){var P;return(P=v&&ne(v)?v==null?void 0:v.ownerDocument:v)!=null?P:window.document}const ct="http://www.w3.org/2000/svg";function Vt(v,P,M){const T=cn(M).createElementNS(ct,"svg");return T.setAttributeNS(null,"width",v.toString()),T.setAttributeNS(null,"height",P.toString()),T.setAttributeNS(null,"viewBox",`0 0 ${v} ${P}`),T}function ai(v,P){let M=new XMLSerializer().serializeToString(v);return P&&(M=M.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/ug,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(M)}`}function mu(v,P="image/png",M=1){return m(this,null,function*(){try{return yield new Promise((T,j)=>{v.toBlob(z=>{z?T(z):j(new Error("Blob is null"))},P,M)})}catch(T){if(se)return De("Failed canvas to blob",{type:P,quality:M},T),gu(v.toDataURL(P,M));throw T}})}function gu(v){var P,M;const[T,j]=v.split(","),z=(M=(P=T.match(/data:(.+);/))==null?void 0:P[1])!=null?M:void 0,N=window.atob(j),R=N.length,V=new Uint8Array(R);for(let K=0;K<R;K+=1)V[K]=N.charCodeAt(K);return new Blob([V],{type:z})}function po(v,P){return new Promise((M,T)=>{const j=new FileReader;j.onload=()=>M(j.result),j.onerror=()=>T(j.error),j.onabort=()=>T(new Error(`Failed read blob to ${P}`)),P==="dataUrl"?j.readAsDataURL(v):P==="arrayBuffer"&&j.readAsArrayBuffer(v)})}const yu=v=>po(v,"dataUrl"),bu=v=>po(v,"arrayBuffer");function Xt(v,P){const M=cn(P).createElement("img");return M.decoding="sync",M.loading="eager",M.src=v,M}function fn(v,P){return new Promise(M=>{const{timeout:T,ownerDocument:j,onError:z}=P??{},N=typeof v=="string"?Xt(v,cn(j)):v;let R=null,V=null;function K(){M(N),R&&clearTimeout(R),V==null||V()}if(T&&(R=setTimeout(K,T)),pe(N)){const Q=N.currentSrc||N.src;if(!Q)return N.poster?fn(N.poster,P).then(M):K();if(N.readyState>=2)return K();const oe=K,ee=ge=>{De("Failed video load",Q,ge),z==null||z(ge),K()};V=()=>{N.removeEventListener("loadeddata",oe),N.removeEventListener("error",ee)},N.addEventListener("loadeddata",oe,{once:!0}),N.addEventListener("error",ee,{once:!0})}else{const Q=F(N)?N.href.baseVal:N.currentSrc||N.src;if(!Q)return K();const oe=()=>m(this,null,function*(){if(he(N)&&"decode"in N)try{yield N.decode()}catch(ge){De("Failed to decode image, trying to render anyway",N.dataset.originalSrc||Q,ge)}K()}),ee=ge=>{De("Failed image load",N.dataset.originalSrc||Q,ge),K()};if(he(N)&&N.complete)return oe();V=()=>{N.removeEventListener("load",oe),N.removeEventListener("error",ee)},N.addEventListener("load",oe,{once:!0}),N.addEventListener("error",ee,{once:!0})}})}function vo(v,P){return m(this,null,function*(){H(v)&&(he(v)||pe(v)?yield fn(v,{timeout:P}):yield Promise.all(["img","video"].flatMap(M=>Array.from(v.querySelectorAll(M)).map(T=>fn(T,{timeout:P})))))})}const mo=function(){let v=0;const P=()=>`0000${(Math.random()*c(36,4)<<0).toString(36)}`.slice(-4);return()=>(v+=1,`u${P()}${v}`)}();function go(v){return v==null?void 0:v.split(",").map(P=>P.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}function _u(v){return{time:P=>v&&Wt(P),timeEnd:P=>v&&Se(P),warn:(...P)=>v&&De(...P)}}function wu(v){return{cache:v?"no-cache":"force-cache"}}function ht(v,P){return m(this,null,function*(){return G(v)?v:xu(v,h(d({},P),{autoDestruct:!0}))})}function xu(v,P){return m(this,null,function*(){var M,T,j,z,N;const{scale:R=1,workerUrl:V,workerNumber:K=1}=P||{},Q=!!(P!=null&&P.debug),oe=(M=P==null?void 0:P.features)!=null?M:!0,ee=(T=v.ownerDocument)!=null?T:te?window.document:void 0,ge=(z=(j=v.ownerDocument)==null?void 0:j.defaultView)!=null?z:te?window:void 0,me=new Map,_e=h(d({width:0,height:0,quality:1,type:"image/png",scale:R,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:Q,fetch:d({requestInit:wu((N=P==null?void 0:P.fetch)==null?void 0:N.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},P==null?void 0:P.fetch),font:{},drawImageInterval:100,workerUrl:null,workerNumber:K,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,autoDestruct:!1},P),{__CONTEXT__:!0,log:_u(Q),node:v,ownerDocument:ee,ownerWindow:ge,dpi:R===1?null:96*R,svgStyleElement:it(ee),svgDefsElement:ee==null?void 0:ee.createElementNS(ct,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...new Array(Y&&V&&K?K:0)].map(()=>{try{const Ne=new Worker(V);return Ne.onmessage=Te=>m(this,null,function*(){var ot,pn,Dn,C0;const{url:Mf,result:k0}=Te.data;k0?(pn=(ot=me.get(Mf))==null?void 0:ot.resolve)==null||pn.call(ot,k0):(C0=(Dn=me.get(Mf))==null?void 0:Dn.reject)==null||C0.call(Dn,new Error(`Error receiving message from worker: ${Mf}`))}),Ne.onmessageerror=Te=>{var ot,pn;const{url:Dn}=Te.data;(pn=(ot=me.get(Dn))==null?void 0:ot.reject)==null||pn.call(ot,new Error(`Error receiving message from worker: ${Dn}`))},Ne}catch(Ne){return De("Failed to new Worker",Ne),null}}).filter(Boolean),fontFamilies:new Set,fontCssTexts:new Map,acceptOfImage:`${[Gt(ee)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:me,drawImageCount:0,tasks:[],features:oe,isEnable:Ne=>{var Te;return typeof oe=="boolean"?oe:(Te=oe[Ne])!=null?Te:!0}});_e.log.time("wait until load"),yield vo(v,_e.timeout),_e.log.timeEnd("wait until load");const{width:Oe,height:Pe}=xt(v,_e);return _e.width=Oe,_e.height=Pe,_e})}function it(v){if(!v)return;const P=v.createElement("style"),M=P.ownerDocument.createTextNode(`
|
|
25
|
+
.______background-clip--text {
|
|
26
|
+
background-clip: text;
|
|
27
|
+
-webkit-background-clip: text;
|
|
28
|
+
}
|
|
29
|
+
`);return P.appendChild(M),P}function xt(v,P){let{width:M,height:T}=P;if(ne(v)&&(!M||!T)){const j=v.getBoundingClientRect();M=M||j.width||Number(v.getAttribute("width"))||0,T=T||j.height||Number(v.getAttribute("height"))||0}return{width:M,height:T}}function dn(v,P){return m(this,null,function*(){const{log:M,timeout:T,drawImageCount:j,drawImageInterval:z}=P;M.time("image to canvas");const N=yield fn(v,{timeout:T}),{canvas:R,context2d:V}=hn(v.ownerDocument,P),K=()=>{try{V==null||V.drawImage(N,0,0,R.width,R.height)}catch(Q){De("Failed to drawImage",Q)}};if(K(),P.isEnable("fixSvgXmlDecode"))for(let Q=0;Q<j;Q++)yield new Promise(oe=>{setTimeout(()=>{K(),oe()},Q+z)});return P.drawImageCount=0,M.timeEnd("image to canvas"),R})}function hn(v,P){const{width:M,height:T,scale:j,backgroundColor:z,maximumCanvasSize:N}=P,R=v.createElement("canvas");R.width=Math.floor(M*j),R.height=Math.floor(T*j),R.style.width=`${M}px`,R.style.height=`${T}px`,N&&(R.width>N||R.height>N)&&(R.width>N&&R.height>N?R.width>R.height?(R.height*=N/R.width,R.width=N):(R.width*=N/R.height,R.height=N):R.width>N?(R.height*=N/R.width,R.width=N):(R.width*=N/R.height,R.height=N));const V=R.getContext("2d");return V&&z&&(V.fillStyle=z,V.fillRect(0,0,R.width,R.height)),{canvas:R,context2d:V}}const pt=["width","height"],lr=["stroke","fill"];function sr(v,P,M){var T;const{defaultComputedStyles:j,ownerDocument:z}=M,N=v.nodeName.toLowerCase(),R=ae(v)&&N!=="svg",V=R?lr.map(Pe=>[Pe,v.getAttribute(Pe)]).filter(([,Pe])=>Pe!==null):[],K=[R&&"svg",N,V.map((Pe,Ne)=>`${Pe}=${Ne}`).join(","),P].filter(Boolean).join(":");if(j.has(K))return j.get(K);let Q=M.sandbox;if(!Q)try{z&&(Q=z.createElement("iframe"),Q.id=`__SANDBOX__-${mo()}`,Q.width="0",Q.height="0",Q.style.visibility="hidden",Q.style.position="fixed",z.body.appendChild(Q),(T=Q.contentWindow)==null||T.document.write('<!DOCTYPE html><meta charset="UTF-8"><title></title><body>'),M.sandbox=Q)}catch(Pe){De("Failed to create iframe sandbox",Pe)}if(!Q)return new Map;const oe=Q.contentWindow;if(!oe)return new Map;const ee=oe.document;let ge,me;R?(ge=ee.createElementNS(ct,"svg"),me=ge.ownerDocument.createElementNS(ge.namespaceURI,N),V.forEach(([Pe,Ne])=>{me.setAttributeNS(null,Pe,Ne)}),ge.appendChild(me)):ge=me=ee.createElement(N),me.textContent=" ",ee.body.appendChild(ge);const _e=oe.getComputedStyle(me,P),Oe=new Map;for(let Pe=_e.length,Ne=0;Ne<Pe;Ne++){const Te=_e.item(Ne);pt.includes(Te)||Oe.set(Te,_e.getPropertyValue(Te))}return ee.body.removeChild(ge),j.set(K,Oe),Oe}function ui(v,P){var M;const T=new Map,j=[],z=new Map;for(let N=v.length,R=0;R<N;R++){const V=v.item(R),K=v.getPropertyValue(V),Q=v.getPropertyPriority(V),oe=V.lastIndexOf("-"),ee=oe>-1?V.substring(0,oe):void 0;if(ee){let ge=z.get(ee);ge||(ge=new Map,z.set(ee,ge)),ge.set(V,[K,Q])}P.get(V)===K&&!Q||(ee?j.push(ee):T.set(V,[K,Q]))}for(let N=j.length,R=0;R<N;R++)(M=z.get(j[R]))==null||M.forEach((V,K)=>T.set(K,V));return T}const li=[":before",":after"],Ou=[":-webkit-scrollbar",":-webkit-scrollbar-button",":-webkit-scrollbar-thumb",":-webkit-scrollbar-track",":-webkit-scrollbar-track-piece",":-webkit-scrollbar-corner",":-webkit-resizer"];function Pu(v,P,M,T){const{ownerWindow:j,svgStyleElement:z,svgStyles:N}=T;if(!z||!j)return;function R(V){var K;const Q=j.getComputedStyle(v,V);let oe=Q.getPropertyValue("content");if(!oe||oe==="none")return;oe=oe.replace(/(')|(")|(counter\(.+\))/g,"");const ee=[mo()],ge=sr(v,V,T),me=[`content: '${oe}';`],_e=ui(Q,ge);if(_e.delete("content"),_e.delete("-webkit-locale"),((K=_e.get("background-clip"))==null?void 0:K[0])==="text"&&P.classList.add("______background-clip--text"),_e.forEach(([Ne,Te],ot)=>{me.push(`${ot}: ${Ne}${Te?" !important":""};`)}),me.length===1)return;try{P.className=[P.className,...ee].join(" ")}catch{return}const Oe=me.join(`
|
|
30
|
+
`);let Pe=N.get(Oe);Pe||(Pe=[],N.set(Oe,Pe)),Pe.push(`.${ee[0]}:${V}`)}li.forEach(R),M&&Ou.forEach(R)}function uL(v,P){Ae(v)&&(P.innerHTML=v.value),(Ae(v)||Ye(v)||rt(v))&&P.setAttribute("value",v.value)}function lL(v,P,M,T){var j,z,N,R;const{ownerWindow:V}=T,K=P.style,Q=V.getComputedStyle(v),oe=sr(v,null,T),ee=ui(Q,oe);return ee.delete("transition-property"),ee.delete("all"),ee.delete("d"),ee.delete("content"),M&&(ee.delete("margin-top"),ee.delete("margin-right"),ee.delete("margin-bottom"),ee.delete("margin-left"),ee.delete("margin-block-start"),ee.delete("margin-block-end"),ee.delete("margin-inline-start"),ee.delete("margin-inline-end"),ee.set("box-sizing",["border-box",""])),((j=ee.get("background-clip"))==null?void 0:j[0])==="text"&&P.classList.add("______background-clip--text"),I&&(ee.has("font-kerning")||ee.set("font-kerning",["normal",""]),(((z=ee.get("overflow-x"))==null?void 0:z[0])==="hidden"||((N=ee.get("overflow-y"))==null?void 0:N[0])==="hidden")&&((R=ee.get("text-overflow"))==null?void 0:R[0])==="ellipsis"&&v.scrollWidth===v.clientWidth&&ee.set("text-overflow",["clip",""])),ee.forEach(([ge,me],_e)=>{K.setProperty(_e,ge,me)}),ee}function sL(v,P){return m(this,null,function*(){var M,T,j;const{ownerDocument:z,svgDefsElement:N}=P,R=(T=(M=v.querySelectorAll)==null?void 0:M.call(v,"use"))!=null?T:[];if(R.length)for(let V=R.length,K=0;K<V;K++){const Q=R[K],oe=(j=Q.getAttribute("xlink:href"))!=null?j:Q.getAttribute("href");if(oe&&oe.startsWith("#")){const ee=z==null?void 0:z.querySelector(`svg ${oe}`);if(!ee||N!=null&&N.querySelector(oe))continue;N==null||N.appendChild(yield $u(ee,P))}}return v.cloneNode(!1)})}function cL(v,P){var M;try{if((M=v==null?void 0:v.contentDocument)!=null&&M.body)return $u(v.contentDocument.body,P)}catch(T){De("Failed to clone iframe",T)}return v.cloneNode(!1)}function g0(v){if(v.ownerDocument)try{const j=v.toDataURL();if(j!=="data:,")return Xt(j,v.ownerDocument)}catch{}const P=v.cloneNode(!1),M=v.getContext("2d"),T=P.getContext("2d");try{return M&&T&&T.putImageData(M.getImageData(0,0,v.width,v.height),0,0),P}catch(j){De("Failed to clone canvas",j)}return P}function fL(v){return m(this,null,function*(){if(v.ownerDocument&&!v.currentSrc&&v.poster)return Xt(v.poster,v.ownerDocument);const P=v.cloneNode(!1);P.crossOrigin="anonymous",v.currentSrc&&v.currentSrc!==v.src&&(P.src=v.currentSrc);const M=P.ownerDocument;if(M){let T=!0;if(yield fn(P,{onError:()=>T=!1}),!T)return v.poster?Xt(v.poster,v.ownerDocument):P;P.currentTime=v.currentTime,yield new Promise(z=>{P.addEventListener("seeked",z,{once:!0})});const j=M.createElement("canvas");j.width=v.offsetWidth,j.height=v.offsetHeight;try{const z=j.getContext("2d");z&&z.drawImage(P,0,0,j.width,j.height)}catch(z){return De("Failed to clone video",z),v.poster?Xt(v.poster,v.ownerDocument):P}return g0(j)}return P})}function dL(v){const P=v.cloneNode(!1);return v.currentSrc&&v.currentSrc!==v.src&&(P.src=v.currentSrc,P.srcset=""),P.loading==="lazy"&&(P.loading="eager"),P}function hL(v,P){return Ee(v)?g0(v):le(v)?cL(v,P):he(v)?dL(v):pe(v)?fL(v):de(v)?sL(v,P):v.cloneNode(!1)}function y0(v,P,M){return m(this,null,function*(){ne(P)&&(Yt(P)||An(P))||M.filter&&!M.filter(P)||v.appendChild(yield $u(P,M))})}function b0(v,P,M){return m(this,null,function*(){var T,j;const z=(j=ne(v)?(T=v.shadowRoot)==null?void 0:T.firstChild:void 0)!=null?j:v.firstChild;for(let N=z;N;N=N.nextSibling)if(!ue(N))if(ne(N)&&ur(N)&&typeof N.assignedNodes=="function"){const R=N.assignedNodes();for(let V=0;V<R.length;V++)yield y0(P,R[V],M)}else yield y0(P,N,M)})}function pL(v,P){const{backgroundColor:M,width:T,height:j,style:z}=P,N=v.style;if(M&&N.setProperty("background-color",M,"important"),T&&N.setProperty("width",`${T}px`,"important"),j&&N.setProperty("height",`${j}px`,"important"),z)for(const R in z)N[R]=z[R]}const vL=/^[\w-:]+$/;function $u(v,P,M=!1){return m(this,null,function*(){var T,j,z,N;const{ownerDocument:R,ownerWindow:V,fontFamilies:K}=P;if(R&&C(v))return R.createTextNode(v.data);if(R&&V&&ne(v)&&(H(v)||ae(v))){const oe=yield hL(v,P);if(P.isEnable("removeAbnormalAttributes")){const me=oe.getAttributeNames();for(let _e=me.length,Oe=0;Oe<_e;Oe++){const Pe=me[Oe];vL.test(Pe)||oe.removeAttribute(Pe)}}const ee=lL(v,oe,M,P);M&&pL(oe,P);let ge=!1;if(P.isEnable("copyScrollbar")){const me=[(T=ee.get("overflow-x"))==null?void 0:T[0],(j=ee.get("overflow-y"))==null?void 0:j[1]];ge=me.includes("scroll")||(me.includes("auto")||me.includes("overlay"))&&(v.scrollHeight>v.clientHeight||v.scrollWidth>v.clientWidth)}return Pu(v,oe,ge,P),uL(v,oe),(N=go((z=ee.get("font-family"))==null?void 0:z[0]))==null||N.forEach(me=>K.add(me)),pe(v)||(yield b0(v,oe,P)),oe}const Q=v.cloneNode(!1);return yield b0(v,Q,P),Q})}function _0(v){if(v.ownerDocument=void 0,v.ownerWindow=void 0,v.svgStyleElement=void 0,v.svgDefsElement=void 0,v.svgStyles.clear(),v.defaultComputedStyles.clear(),v.sandbox){try{v.sandbox.remove()}catch{}v.sandbox=void 0}v.workers=[],v.fontFamilies.clear(),v.fontCssTexts.clear(),v.requests.clear(),v.tasks=[]}function mL(v){const P=v,{url:M,timeout:T,responseType:j}=P,z=p(P,["url","timeout","responseType"]),N=new AbortController,R=T?setTimeout(()=>N.abort(),T):void 0;return fetch(M,d({signal:N.signal},z)).then(V=>{if(!V.ok)throw new Error("Failed fetch, not 2xx response",{cause:V});switch(j){case"dataUrl":return V.blob().then(yu);case"text":default:return V.text()}}).finally(()=>clearTimeout(R))}function Mu(v,P){const{url:M,requestType:T="text",responseType:j="text",imageDom:z}=P;let N=M;const{timeout:R,acceptOfImage:V,requests:K,fetch:{requestInit:Q,bypassingCache:oe,placeholderImage:ee},workers:ge}=v;T==="image"&&(q||J)&&v.drawImageCount++;let me=K.get(M);if(!me){oe&&(N+=(/\?/.test(N)?"&":"?")+new Date().getTime());const _e=d({url:N,timeout:R,responseType:j,headers:T==="image"?{accept:V}:void 0},Q);me={type:T,resolve:void 0,reject:void 0,response:null},me.response=(!q&&M.startsWith("http")&&ge.length?new Promise((Oe,Pe)=>{ge[K.size&ge.length-1].postMessage(d({rawUrl:M},_e)),me.resolve=Oe,me.reject=Pe}):mL(_e)).catch(Oe=>{if(K.delete(M),T==="image"&&ee)return De("Failed to fetch image base64, trying to use placeholder image",N),typeof ee=="string"?ee:ee(z);throw Oe}),K.set(M,me)}return me.response}function w0(v,P,M,T){return m(this,null,function*(){if(!x0(v))return v;for(const[j,z]of gL(v,P))try{const N=yield Mu(M,{url:z,requestType:T?"image":"text",responseType:"dataUrl"});v=v.replace(yL(j),`$1${N}$3`)}catch(N){De("Failed to fetch css data url",j,N)}return v})}function x0(v){return/url\((['"]?)([^'"]+?)\1\)/.test(v)}const O0=/url\((['"]?)([^'"]+?)\1\)/g;function gL(v,P){const M=[];return v.replace(O0,(T,j,z)=>(M.push([z,Ge(z,P)]),T)),M.filter(([T])=>!Le(T))}function yL(v){const P=v.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${P})(['"]?\\))`,"g")}function bL(v,P){return m(this,null,function*(){const{ownerDocument:M,svgStyleElement:T,fontFamilies:j,fontCssTexts:z,tasks:N,font:R}=P;if(!(!M||!T||!j.size))if(R&&R.cssText){const V=$0(R.cssText,P);T.appendChild(M.createTextNode(`${V}
|
|
31
|
+
`))}else{const V=Array.from(M.styleSheets).filter(K=>{try{return"cssRules"in K&&!!K.cssRules.length}catch(Q){return De(`Error while reading CSS rules from ${K.href}`,Q),!1}});yield Promise.all(V.flatMap(K=>Array.from(K.cssRules).map((Q,oe)=>m(this,null,function*(){if(X(Q)){let ee=oe+1;const ge=Q.href;let me="";try{me=yield Mu(P,{url:ge,requestType:"text",responseType:"text"})}catch(Oe){De(`Error fetch remote css import from ${ge}`,Oe)}const _e=me.replace(O0,(Oe,Pe,Ne)=>Oe.replace(Ne,Ge(Ne,ge)));for(const Oe of wL(_e))try{K.insertRule(Oe,Oe.startsWith("@import")?ee+=1:K.cssRules.length)}catch(Pe){De("Error inserting rule from remote css import",{rule:Oe,error:Pe})}}})))),V.flatMap(K=>Array.from(K.cssRules)).filter(K=>{var Q;return Z(K)&&x0(K.style.getPropertyValue("src"))&&((Q=go(K.style.getPropertyValue("font-family")))==null?void 0:Q.some(oe=>j.has(oe)))}).forEach(K=>{const Q=K,oe=z.get(Q.cssText);oe?T.appendChild(M.createTextNode(`${oe}
|
|
32
|
+
`)):N.push(w0(Q.cssText,Q.parentStyleSheet?Q.parentStyleSheet.href:null,P).then(ee=>{ee=$0(ee,P),z.set(Q.cssText,ee),T.appendChild(M.createTextNode(`${ee}
|
|
33
|
+
`))}))})}})}const _L=/(\/\*[\s\S]*?\*\/)/gi,P0=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function wL(v){if(v==null)return[];const P=[];let M=v.replace(_L,"");for(;;){const z=P0.exec(M);if(!z)break;P.push(z[0])}M=M.replace(P0,"");const T=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,j=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let z=T.exec(M);if(z)j.lastIndex=T.lastIndex;else if(z=j.exec(M),z)T.lastIndex=j.lastIndex;else break;P.push(z[0])}return P}const xL=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,OL=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function $0(v,P){const{font:M}=P,T=M?M==null?void 0:M.preferredFormat:void 0;return T?v.replace(OL,j=>{for(;;){const[z,,N]=xL.exec(j)||[];if(!N)return"";if(N===T)return`src: ${z};`}}):v}function PL(v,P){if(he(v)){const M=v.currentSrc||v.src;if(!Le(M))return[Mu(P,{url:M,imageDom:v,requestType:"image",responseType:"dataUrl"}).then(T=>{T&&(v.srcset="",v.dataset.originalSrc=M,v.src=T||"")})];(q||J)&&P.drawImageCount++}else if(ae(v)&&!Le(v.href.baseVal)){const M=v.href.baseVal;return[Mu(P,{url:M,imageDom:v,requestType:"image",responseType:"dataUrl"}).then(T=>{T&&(v.dataset.originalSrc=M,v.href.baseVal=T||"")})]}return[]}const $L=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function ML(v,P){return $L.map(M=>{const T=v.getPropertyValue(M);return T?((q||J)&&P.drawImageCount++,w0(T,null,P,!0).then(j=>{!j||T===j||v.setProperty(M,j,v.getPropertyPriority(M))})):null}).filter(Boolean)}function M0(v,P){const{tasks:M}=P;ne(v)&&(he(v)||F(v))&&M.push(...PL(v,P)),H(v)&&M.push(...ML(v.style,P)),v.childNodes.forEach(T=>{M0(T,P)})}function S0(v,P){return m(this,null,function*(){const M=yield ht(v,P);if(ne(M.node)&&ae(M.node))return M.node;const{ownerDocument:T,log:j,tasks:z,svgStyleElement:N,svgDefsElement:R,svgStyles:V,font:K,progress:Q,autoDestruct:oe,onCloneNode:ee,onEmbedNode:ge,onCreateForeignObjectSvg:me}=M;j.time("clone node");const _e=yield $u(M.node,M,!0);if(N&&T){let ot="";V.forEach((pn,Dn)=>{ot+=`${pn.join(`,
|
|
34
|
+
`)} {
|
|
35
|
+
${Dn}
|
|
36
|
+
}
|
|
37
|
+
`}),N.appendChild(T.createTextNode(ot))}j.timeEnd("clone node"),ee==null||ee(_e),K!==!1&&ne(_e)&&(j.time("embed web font"),yield bL(_e,M),j.timeEnd("embed web font")),j.time("embed node"),M0(_e,M);const Oe=z.length;let Pe=0;const Ne=()=>m(this,null,function*(){for(;;){const ot=z.pop();if(!ot)break;try{yield ot}catch(pn){De("Failed to run task",pn)}Q==null||Q(++Pe,Oe)}});Q==null||Q(Pe,Oe),yield Promise.all([...Array(4)].map(Ne)),j.timeEnd("embed node"),ge==null||ge(_e);const Te=SL(_e,M);return R&&Te.insertBefore(R,Te.children[0]),N&&Te.insertBefore(N,Te.children[0]),oe&&_0(M),me==null||me(Te),Te})}function SL(v,P){const{width:M,height:T}=P,j=Vt(M,T,v.ownerDocument),z=j.ownerDocument.createElementNS(j.namespaceURI,"foreignObject");return z.setAttributeNS(null,"x","0%"),z.setAttributeNS(null,"y","0%"),z.setAttributeNS(null,"width","100%"),z.setAttributeNS(null,"height","100%"),z.append(v),j.appendChild(z),j}function Su(v,P){return m(this,null,function*(){var M;const T=yield ht(v,P),j=yield S0(T),z=ai(j,T.isEnable("removeControlCharacter"));T.autoDestruct||(T.svgStyleElement=it(T.ownerDocument),T.svgDefsElement=(M=T.ownerDocument)==null?void 0:M.createElementNS(ct,"defs"),T.svgStyles.clear());const N=Xt(z,j.ownerDocument);return yield dn(N,T)})}function TL(v,P){return m(this,null,function*(){const M=yield ht(v,P),{log:T,type:j,quality:z,dpi:N}=M,R=yield Su(M);T.time("canvas to blob");const V=yield mu(R,j,z);if(["image/png","image/jpeg"].includes(j)&&N){const K=yield bu(V.slice(0,33));let Q=new Uint8Array(K);return j==="image/png"?Q=S(Q,N):j==="image/jpeg"&&(Q=b(Q,N)),new Blob([Q,V.slice(33)],{type:j})}return T.timeEnd("canvas to blob"),V})}function si(v,P){return m(this,null,function*(){const M=yield ht(v,P),{log:T,quality:j,type:z,dpi:N}=M,R=yield Su(M);T.time("canvas to data url");let V=R.toDataURL(z,j);if(["image/png","image/jpeg"].includes(z)&&N&&se&&ce){const[K,Q]=V.split(",");let oe=0,ee=!1;if(z==="image/png"){const Te=W(Q);Te>=0?(oe=Math.ceil((Te+28)/3)*4,ee=!0):oe=33/3*4}else z==="image/jpeg"&&(oe=18/3*4);const ge=Q.substring(0,oe),me=Q.substring(oe),_e=window.atob(ge),Oe=new Uint8Array(_e.length);for(let Te=0;Te<Oe.length;Te++)Oe[Te]=_e.charCodeAt(Te);const Pe=z==="image/png"?S(Oe,N,ee):b(Oe,N),Ne=window.btoa(String.fromCharCode(...Pe));V=[K,",",Ne,me].join("")}return T.timeEnd("canvas to data url"),V})}function T0(v,P){return m(this,null,function*(){const M=yield ht(v,P),{width:T,height:j,ownerDocument:z}=M,N=yield si(M),R=Vt(T,j,z),V=R.ownerDocument.createElementNS(R.namespaceURI,"image");return V.setAttributeNS(null,"href",N),V.setAttributeNS(null,"height","100%"),V.setAttributeNS(null,"width","100%"),R.appendChild(V),ai(R,M.isEnable("removeControlCharacter"))})}function CL(v,P){return m(this,null,function*(){const M=yield ht(v,P),{ownerDocument:T,width:j,height:z,scale:N,type:R}=M,V=R==="image/svg+xml"?yield T0(M):yield si(M),K=Xt(V,T);return K.width=Math.floor(j*N),K.height=Math.floor(z*N),K.style.width=`${j}px`,K.style.height=`${z}px`,K})}function kL(v,P){return m(this,null,function*(){return si(yield ht(v,h(d({},P),{type:"image/jpeg"})))})}function EL(v,P){return m(this,null,function*(){const M=yield ht(v,P),T=yield Su(M);return T.getContext("2d").getImageData(0,0,T.width,T.height).data})}function AL(v,P){return m(this,null,function*(){return si(yield ht(v,h(d({},P),{type:"image/png"})))})}function DL(v,P){return m(this,null,function*(){return si(yield ht(v,h(d({},P),{type:"image/webp"})))})}n.createContext=xu,n.destroyContext=_0,n.domToBlob=TL,n.domToCanvas=Su,n.domToDataUrl=si,n.domToForeignObjectSvg=S0,n.domToImage=CL,n.domToJpeg=kL,n.domToPixel=EL,n.domToPng=AL,n.domToSvg=T0,n.domToWebp=DL,n.loadMedia=fn,n.waitUntilLoad=vo,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(rf,rf.exports);var yD=rf.exports;function hy(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,i=e.className,a=e.children;return g.createElement(di,{className:Zt("visx-glyph",i),top:n,left:o},a)}hy.propTypes={top:U.number,left:U.number,className:U.string,children:U.node};var bD=["top","left","className"];function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},of.apply(this,arguments)}function _D(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function af(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,i=e.className,a=_D(e,bD);return g.createElement(hy,{top:n,left:o},g.createElement("circle",of({className:Zt("visx-glyph-dot",i)},a)))}af.propTypes={className:U.string,top:U.number,left:U.number,r:U.number,cx:U.number,cy:U.number};var wD=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tu.apply(this,arguments)}function xD(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var OD=[],PD={width:"100%",height:"100%"};function py(e){var t=e.className,n=e.children,r=e.debounceTime,o=r===void 0?300:r,i=e.ignoreDimensions,a=i===void 0?OD:i,u=e.parentSizeStyles,l=u===void 0?PD:u,s=e.enableDebounceLeadingCall,c=s===void 0?!0:s,f=e.resizeObserverPolyfill,d=xD(e,wD),h=g.useRef(null),p=g.useRef(0),m=g.useState({width:0,height:0,top:0,left:0}),b=m[0],w=m[1],_=g.useMemo(function(){var x=Array.isArray(a)?a:[a];return Gg(function($){w(function(y){var O=Object.keys(y),E=O.filter(function(S){return y[S]!==$[S]}),k=E.every(function(S){return x.includes(S)});return k?y:$})},o,{leading:c})},[o,c,a]);return g.useEffect(function(){var x=f||window.ResizeObserver,$=new x(function(y){y.forEach(function(O){var E,k=(E=O==null?void 0:O.contentRect)!=null?E:{},S=k.left,L=k.top,A=k.width,D=k.height;p.current=window.requestAnimationFrame(function(){_({width:A,height:D,top:L,left:S})})})});return h.current&&$.observe(h.current),function(){window.cancelAnimationFrame(p.current),$.disconnect(),_.cancel()}},[_,f]),g.createElement("div",tu({style:l,ref:h,className:t},d),n(tu({},b,{ref:h.current,resize:_})))}py.propTypes={className:U.string,debounceTime:U.number,enableDebounceLeadingCall:U.bool,ignoreDimensions:U.oneOfType([U.any,U.arrayOf(U.any)]),children:U.func.isRequired};function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fe.apply(this,arguments)}function $D(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function vy(...e){return t=>e.forEach(n=>$D(n,t))}function nr(...e){return g.useCallback(vy(...e),e)}function uf(e,t=[]){let n=[];function r(i,a){const u=g.createContext(a),l=n.length;n=[...n,a];function s(f){const{scope:d,children:h,...p}=f,m=(d==null?void 0:d[e][l])||u,b=g.useMemo(()=>p,Object.values(p));return g.createElement(m.Provider,{value:b},h)}function c(f,d){const h=(d==null?void 0:d[e][l])||u,p=g.useContext(h);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return s.displayName=i+"Provider",[s,c]}const o=()=>{const i=n.map(a=>g.createContext(a));return function(u){const l=(u==null?void 0:u[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[r,MD(o,...t)]}function MD(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((u,{useScope:l,scopeName:s})=>{const f=l(i)[`__scope${s}`];return{...u,...f}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function It(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ei(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function my({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=SD({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,u=ei(n),l=g.useCallback(s=>{if(i){const f=typeof s=="function"?s(e):s;f!==e&&u(f)}else o(s)},[i,e,o,u]);return[a,l]}function SD({defaultProp:e,onChange:t}){const n=g.useState(e),[r]=n,o=g.useRef(r),i=ei(t);return g.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function TD(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const ti=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function gy(e){const[t,n]=g.useState(void 0);return ti(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,u;if("borderBoxSize"in i){const l=i.borderBoxSize,s=Array.isArray(l)?l[0]:l;a=s.inlineSize,u=s.blockSize}else a=e.offsetWidth,u=e.offsetHeight;n({width:a,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function CD(e,t){return g.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const nu=e=>{const{present:t,children:n}=e,r=kD(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=nr(r.ref,o.ref);return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};nu.displayName="Presence";function kD(e){const[t,n]=g.useState(),r=g.useRef({}),o=g.useRef(e),i=g.useRef("none"),a=e?"mounted":"unmounted",[u,l]=CD(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const s=ru(r.current);i.current=u==="mounted"?s:"none"},[u]),ti(()=>{const s=r.current,c=o.current;if(c!==e){const d=i.current,h=ru(s);e?l("MOUNT"):h==="none"||(s==null?void 0:s.display)==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ti(()=>{if(t){const s=f=>{const h=ru(r.current).includes(f.animationName);f.target===t&&h&&cr.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=ru(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:g.useCallback(s=>{s&&(r.current=getComputedStyle(s)),n(s)},[])}}function ru(e){return(e==null?void 0:e.animationName)||"none"}const yy=g.forwardRef((e,t)=>{const{children:n,...r}=e,o=g.Children.toArray(n),i=o.find(ED);if(i){const a=i.props.children,u=o.map(l=>l===i?g.Children.count(a)>1?g.Children.only(null):g.isValidElement(a)?a.props.children:null:l);return g.createElement(lf,Fe({},r,{ref:t}),g.isValidElement(a)?g.cloneElement(a,void 0,u):null)}return g.createElement(lf,Fe({},r,{ref:t}),n)});yy.displayName="Slot";const lf=g.forwardRef((e,t)=>{const{children:n,...r}=e;return g.isValidElement(n)?g.cloneElement(n,{...AD(r,n.props),ref:t?vy(t,n.ref):n.ref}):g.Children.count(n)>1?g.Children.only(null):null});lf.displayName="SlotClone";const by=({children:e})=>g.createElement(g.Fragment,null,e);function ED(e){return g.isValidElement(e)&&e.type===by}function AD(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...u)=>{i(...u),o(...u)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Sn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=g.forwardRef((r,o)=>{const{asChild:i,...a}=r,u=i?yy:t;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(u,Fe({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function DD(e,t){e&&cr.flushSync(()=>e.dispatchEvent(t))}const _y="Checkbox",[ND,WL]=uf(_y),[LD,ID]=ND(_y),jD=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:u,value:l="on",onCheckedChange:s,...c}=e,[f,d]=g.useState(null),h=nr(t,x=>d(x)),p=g.useRef(!1),m=f?!!f.closest("form"):!0,[b=!1,w]=my({prop:o,defaultProp:i,onChange:s}),_=g.useRef(b);return g.useEffect(()=>{const x=f==null?void 0:f.form;if(x){const $=()=>w(_.current);return x.addEventListener("reset",$),()=>x.removeEventListener("reset",$)}},[f,w]),g.createElement(LD,{scope:n,state:b,disabled:u},g.createElement(Sn.button,Fe({type:"button",role:"checkbox","aria-checked":rr(b)?"mixed":b,"aria-required":a,"data-state":wy(b),"data-disabled":u?"":void 0,disabled:u,value:l},c,{ref:h,onKeyDown:It(e.onKeyDown,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:It(e.onClick,x=>{w($=>rr($)?!0:!$),m&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})})),m&&g.createElement(RD,{control:f,bubbles:!p.current,name:r,value:l,checked:b,required:a,disabled:u,style:{transform:"translateX(-100%)"}}))}),WD="CheckboxIndicator",FD=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=ID(WD,n);return g.createElement(nu,{present:r||rr(i.state)||i.state===!0},g.createElement(Sn.span,Fe({"data-state":wy(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),RD=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=g.useRef(null),a=TD(n),u=gy(t);return g.useEffect(()=>{const l=i.current,s=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(s,"checked").set;if(a!==n&&f){const d=new Event("click",{bubbles:r});l.indeterminate=rr(n),f.call(l,rr(n)?!1:n),l.dispatchEvent(d)}},[a,n,r]),g.createElement("input",Fe({type:"checkbox","aria-hidden":!0,defaultChecked:rr(n)?!1:n},o,{tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function rr(e){return e==="indeterminate"}function wy(e){return rr(e)?"indeterminate":e?"checked":"unchecked"}const xy=jD,zD=FD;var qD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const BD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),UD=((e,t)=>{const n=g.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:a,children:u,...l},s)=>g.createElement("svg",{ref:s,...qD,width:o,height:o,stroke:r,strokeWidth:a?Number(i)*24/Number(o):i,className:`lucide lucide-${BD(e)}`,...l},[...t.map(([c,f])=>g.createElement(c,f)),...(Array.isArray(u)?u:[u])||[]]));return n.displayName=`${e}`,n})("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]);function Oy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Oy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function HD(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Oy(e))&&(r&&(r+=" "),r+=t);return r}function YD(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Py(t))&&(r&&(r+=" "),r+=n);return r}function Py(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Py(e[r]))&&(n&&(n+=" "),n+=t);return n}var sf="-";function GD(e){var t=XD(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(u){var l=u.split(sf);return l[0]===""&&l.length!==1&&l.shift(),$y(l,t)||VD(u)}function a(u,l){var s=n[u]||[];return l&&o[u]?[].concat(s,o[u]):s}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function $y(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?$y(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(sf);return(a=t.validators.find(function(u){var l=u.validator;return l(i)}))==null?void 0:a.classGroupId}}var My=/^\[(.+)\]$/;function VD(e){if(My.test(e)){var t=My.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function XD(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=ZD(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],u=i[1];cf(u,r,a,t)}),r}function cf(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Sy(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(KD(o)){cf(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var u=a[0],l=a[1];cf(l,Sy(t,u),n,r)})})}function Sy(e,t){var n=e;return t.split(sf).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function KD(e){return e.isThemeGetter}function ZD(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(u){var l=u[0],s=u[1];return[t+l,s]})):a});return[r,i]}):e}function QD(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(a){var u=n.get(a);if(u!==void 0)return u;if((u=r.get(a))!==void 0)return o(a,u),u},set:function(a,u){n.has(a)?n.set(a,u):o(a,u)}}}var Ty="!";function JD(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var u=[],l=0,s=0,c,f=0;f<a.length;f++){var d=a[f];if(l===0){if(d===r&&(n||a.slice(f,f+o)===t)){u.push(a.slice(s,f)),s=f+o;continue}if(d==="/"){c=f;continue}}d==="["?l++:d==="]"&&l--}var h=u.length===0?a:a.substring(s),p=h.startsWith(Ty),m=p?h.substring(1):h,b=c&&c>s?c-s:void 0;return{modifiers:u,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:b}}}function eN(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function tN(e){return{cache:QD(e.cacheSize),splitModifiers:JD(e),...GD(e)}}var nN=/\s+/;function rN(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(nN).map(function(a){var u=n(a),l=u.modifiers,s=u.hasImportantModifier,c=u.baseClassName,f=u.maybePostfixModifierPosition,d=r(f?c.substring(0,f):c),h=!!f;if(!d){if(!f)return{isTailwindClass:!1,originalClassName:a};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:a};h=!1}var p=eN(l).join(":"),m=s?p+Ty:p;return{isTailwindClass:!0,modifierId:m,classGroupId:d,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var u=a.modifierId,l=a.classGroupId,s=a.hasPostfixModifier,c=u+l;return i.has(c)?!1:(i.add(c),o(l,s).forEach(function(f){return i.add(u+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function iN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=u;function u(s){var c=t[0],f=t.slice(1),d=f.reduce(function(h,p){return p(h)},c());return r=tN(d),o=r.cache.get,i=r.cache.set,a=l,l(s)}function l(s){var c=o(s);if(c)return c;var f=rN(s,r);return i(s,f),f}return function(){return a(YD.apply(null,arguments))}}function ke(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Cy=/^\[(?:([a-z-]+):)?(.+)\]$/i,oN=/^\d+\/\d+$/,aN=new Set(["px","full","screen"]),uN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sN=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function jt(e){return ir(e)||aN.has(e)||oN.test(e)||ff(e)}function ff(e){return or(e,"length",vN)}function cN(e){return or(e,"size",ky)}function fN(e){return or(e,"position",ky)}function dN(e){return or(e,"url",mN)}function iu(e){return or(e,"number",ir)}function ir(e){return!Number.isNaN(Number(e))}function hN(e){return e.endsWith("%")&&ir(e.slice(0,-1))}function ao(e){return Ey(e)||or(e,"number",Ey)}function be(e){return Cy.test(e)}function uo(){return!0}function Tn(e){return uN.test(e)}function pN(e){return or(e,"",gN)}function or(e,t,n){var r=Cy.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function vN(e){return lN.test(e)}function ky(){return!1}function mN(e){return e.startsWith("url(")}function Ey(e){return Number.isInteger(Number(e))}function gN(e){return sN.test(e)}function yN(){var e=ke("colors"),t=ke("spacing"),n=ke("blur"),r=ke("brightness"),o=ke("borderColor"),i=ke("borderRadius"),a=ke("borderSpacing"),u=ke("borderWidth"),l=ke("contrast"),s=ke("grayscale"),c=ke("hueRotate"),f=ke("invert"),d=ke("gap"),h=ke("gradientColorStops"),p=ke("gradientColorStopPositions"),m=ke("inset"),b=ke("margin"),w=ke("opacity"),_=ke("padding"),x=ke("saturate"),$=ke("scale"),y=ke("sepia"),O=ke("skew"),E=ke("space"),k=ke("translate"),S=function(){return["auto","contain","none"]},L=function(){return["auto","hidden","clip","visible","scroll"]},A=function(){return["auto",be,t]},D=function(){return[be,t]},W=function(){return["",jt]},B=function(){return["auto",ir,be]},te=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},Y=function(){return["solid","dashed","dotted","double","none"]},se=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},ce=function(){return["start","end","center","between","around","evenly","stretch"]},fe=function(){return["","0",be]},I=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},q=function(){return[ir,iu]},J=function(){return[ir,be]};return{cacheSize:500,theme:{colors:[uo],spacing:[jt],blur:["none","",Tn,be],brightness:q(),borderColor:[e],borderRadius:["none","","full",Tn,be],borderSpacing:D(),borderWidth:W(),contrast:q(),grayscale:fe(),hueRotate:J(),invert:fe(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[hN,ff],inset:A(),margin:A(),opacity:q(),padding:D(),saturate:q(),scale:q(),sepia:fe(),skew:J(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[Tn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(te(),[be])}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ao]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:fe()}],shrink:[{shrink:fe()}],order:[{order:["first","last","none",ao]}],"grid-cols":[{"grid-cols":[uo]}],"col-start-end":[{col:["auto",{span:["full",ao]},be]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[uo]}],"row-start-end":[{row:["auto",{span:[ao]},be]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal"].concat(ce())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(ce(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(ce(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",be,t]}],"min-w":[{"min-w":["min","max","fit",be,jt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Tn]},Tn,be]}],h:[{h:[be,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",be,jt]}],"max-h":[{"max-h":[be,t,"min","max","fit"]}],"font-size":[{text:["base",Tn,ff]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",iu]}],"font-family":[{font:[uo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",be]}],"line-clamp":[{"line-clamp":["none",ir,iu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",be,jt]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(Y(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",jt]}],"underline-offset":[{"underline-offset":["auto",be,jt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(te(),[fN])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[].concat(Y(),["hidden"])}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Y()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(Y())}],"outline-offset":[{"outline-offset":[be,jt]}],"outline-w":[{outline:[jt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[jt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Tn,pN]}],"shadow-color":[{shadow:[uo]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":se()}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Tn,be]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[$]}],"scale-x":[{"scale-x":[$]}],"scale-y":[{"scale-y":[$]}],rotate:[{rotate:[ao,be]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[jt,iu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var bN=iN(yN);function lo(...e){return bN(HD(e))}const Ay=g.forwardRef(({className:e,...t},n)=>re.jsx(xy,{ref:n,className:lo("h-4 w-4 shrink-0 rounded-sm border-2 border-[#104F95] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[#104F95] data-[state=checked]:text-white",e),...t,children:re.jsx(zD,{className:lo("flex items-center justify-center text-current"),children:re.jsx(UD,{className:"h-3 w-3"})})}));Ay.displayName=xy.displayName;const _N=Ay,Dy=[{name:"default",dark:"#4657AE",light:"#CDD5FF"},{name:"yellow",dark:"#8C6A00",light:"#FFDE88"},{name:"plum",dark:"#7D1779",light:"#E1AADD"},{name:"cyan",dark:"#329F95",light:"#C0FFF9"},{name:"purple",dark:"#7651BC",light:"#E7DAFF"},{name:"pink",dark:"#C01443",light:"#FAD4D4"},{name:"green",dark:"#44812F",light:"#B1E39F"},{name:"orange",dark:"#B96400",light:"#FFE7C5"},{name:"teal",dark:"#237C73",light:"#A1DFD5"},{name:"red",dark:"#C62C02",light:"#FFE1D9"}];function wN(e){return Dy[e%Dy.length]}function xN(e,t=globalThis==null?void 0:globalThis.document){const n=ei(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const df="dismissableLayer.update",ON="dismissableLayer.pointerDownOutside",PN="dismissableLayer.focusOutside";let Ny;const $N=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),MN=g.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:l,...s}=e,c=g.useContext($N),[f,d]=g.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,p]=g.useState({}),m=nr(t,k=>d(k)),b=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=b.indexOf(w),x=f?b.indexOf(f):-1,$=c.layersWithOutsidePointerEventsDisabled.size>0,y=x>=_,O=SN(k=>{const S=k.target,L=[...c.branches].some(A=>A.contains(S));!y||L||(i==null||i(k),u==null||u(k),k.defaultPrevented||l==null||l())},h),E=TN(k=>{const S=k.target;[...c.branches].some(A=>A.contains(S))||(a==null||a(k),u==null||u(k),k.defaultPrevented||l==null||l())},h);return xN(k=>{x===c.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},h),g.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ny=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Ly(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ny)}},[f,h,r,c]),g.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Ly())},[f,c]),g.useEffect(()=>{const k=()=>p({});return document.addEventListener(df,k),()=>document.removeEventListener(df,k)},[]),g.createElement(Sn.div,Fe({},s,{ref:m,style:{pointerEvents:$?y?"auto":"none":void 0,...e.style},onFocusCapture:It(e.onFocusCapture,E.onFocusCapture),onBlurCapture:It(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:It(e.onPointerDownCapture,O.onPointerDownCapture)}))});function SN(e,t=globalThis==null?void 0:globalThis.document){const n=ei(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=u=>{if(u.target&&!r.current){let s=function(){Iy(ON,n,l,{discrete:!0})};const l={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=s,t.addEventListener("click",o.current,{once:!0})):s()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function TN(e,t=globalThis==null?void 0:globalThis.document){const n=ei(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&Iy(PN,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ly(){const e=new CustomEvent(df);document.dispatchEvent(e)}function Iy(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?DD(o,i):o.dispatchEvent(i)}const CN=Re["useId".toString()]||(()=>{});let kN=0;function EN(e){const[t,n]=Re.useState(CN());return ti(()=>{e||n(r=>r??String(kN++))},[e]),e||(t?`radix-${t}`:"")}const AN=["top","right","bottom","left"],Cn=Math.min,ft=Math.max,ou=Math.round,au=Math.floor,kn=e=>({x:e,y:e}),DN={left:"right",right:"left",bottom:"top",top:"bottom"},NN={start:"end",end:"start"};function hf(e,t,n){return ft(e,Cn(t,n))}function an(e,t){return typeof e=="function"?e(t):e}function un(e){return e.split("-")[0]}function ni(e){return e.split("-")[1]}function pf(e){return e==="x"?"y":"x"}function vf(e){return e==="y"?"height":"width"}function ri(e){return["top","bottom"].includes(un(e))?"y":"x"}function mf(e){return pf(ri(e))}function LN(e,t,n){n===void 0&&(n=!1);const r=ni(e),o=mf(e),i=vf(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=uu(a)),[a,uu(a)]}function IN(e){const t=uu(e);return[gf(e),t,gf(t)]}function gf(e){return e.replace(/start|end/g,t=>NN[t])}function jN(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function WN(e,t,n,r){const o=ni(e);let i=jN(un(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(gf)))),i}function uu(e){return e.replace(/left|right|bottom|top/g,t=>DN[t])}function FN(e){return{top:0,right:0,bottom:0,left:0,...e}}function jy(e){return typeof e!="number"?FN(e):{top:e,right:e,bottom:e,left:e}}function lu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Wy(e,t,n){let{reference:r,floating:o}=e;const i=ri(t),a=mf(t),u=vf(a),l=un(t),s=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[u]/2-o[u]/2;let h;switch(l){case"top":h={x:c,y:r.y-o.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(ni(t)){case"start":h[a]-=d*(n&&s?-1:1);break;case"end":h[a]+=d*(n&&s?-1:1);break}return h}const RN=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Wy(s,r,l),d=r,h={},p=0;for(let m=0;m<u.length;m++){const{name:b,fn:w}=u[m],{x:_,y:x,data:$,reset:y}=await w({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:s,platform:a,elements:{reference:e,floating:t}});if(c=_??c,f=x??f,h={...h,[b]:{...h[b],...$}},y&&p<=50){p++,typeof y=="object"&&(y.placement&&(d=y.placement),y.rects&&(s=y.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),{x:c,y:f}=Wy(s,d,l)),m=-1;continue}}return{x:c,y:f,placement:d,strategy:o,middlewareData:h}};async function so(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:u,strategy:l}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=an(t,e),p=jy(h),b=u[d?f==="floating"?"reference":"floating":f],w=lu(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:s,rootBoundary:c,strategy:l})),_=f==="floating"?{...a.floating,x:r,y:o}:a.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),$=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},y=lu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:x,strategy:l}):_);return{top:(w.top-y.top+p.top)/$.y,bottom:(y.bottom-w.bottom+p.bottom)/$.y,left:(w.left-y.left+p.left)/$.x,right:(y.right-w.right+p.right)/$.x}}const Fy=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:u}=t,{element:l,padding:s=0}=an(e,t)||{};if(l==null)return{};const c=jy(s),f={x:n,y:r},d=mf(o),h=vf(d),p=await a.getDimensions(l),m=d==="y",b=m?"top":"left",w=m?"bottom":"right",_=m?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[d]-f[d]-i.floating[h],$=f[d]-i.reference[d],y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let O=y?y[_]:0;(!O||!await(a.isElement==null?void 0:a.isElement(y)))&&(O=u.floating[_]||i.floating[h]);const E=x/2-$/2,k=O/2-p[h]/2-1,S=Cn(c[b],k),L=Cn(c[w],k),A=S,D=O-p[h]-L,W=O/2-p[h]/2+E,B=hf(A,W,D),Y=ni(o)!=null&&W!=B&&i.reference[h]/2-(W<A?S:L)-p[h]/2<0?W<A?A-W:D-W:0;return{[d]:f[d]-Y,data:{[d]:B,centerOffset:W-B+Y}}}}),zN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:s=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...m}=an(e,t),b=un(r),w=un(a)===a,_=await(u.isRTL==null?void 0:u.isRTL(l.floating)),x=f||(w||!p?[uu(a)]:IN(a));!f&&h!=="none"&&x.push(...WN(a,p,h,_));const $=[a,...x],y=await so(t,m),O=[];let E=((n=o.flip)==null?void 0:n.overflows)||[];if(s&&O.push(y[b]),c){const A=LN(r,i,_);O.push(y[A[0]],y[A[1]])}if(E=[...E,{placement:r,overflows:O}],!O.every(A=>A<=0)){var k,S;const A=(((k=o.flip)==null?void 0:k.index)||0)+1,D=$[A];if(D)return{data:{index:A,overflows:E},reset:{placement:D}};let W=(S=E.filter(B=>B.overflows[0]<=0).sort((B,te)=>B.overflows[1]-te.overflows[1])[0])==null?void 0:S.placement;if(!W)switch(d){case"bestFit":{var L;const B=(L=E.map(te=>[te.placement,te.overflows.filter(Y=>Y>0).reduce((Y,se)=>Y+se,0)]).sort((te,Y)=>te[1]-Y[1])[0])==null?void 0:L[0];B&&(W=B);break}case"initialPlacement":W=a;break}if(r!==W)return{reset:{placement:W}}}return{}}}};function Ry(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zy(e){return AN.some(t=>e[t]>=0)}const qN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=an(e,t);switch(r){case"referenceHidden":{const i=await so(t,{...o,elementContext:"reference"}),a=Ry(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:zy(a)}}}case"escaped":{const i=await so(t,{...o,altBoundary:!0}),a=Ry(i,n.floating);return{data:{escapedOffsets:a,escaped:zy(a)}}}default:return{}}}}};async function BN(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=un(n),u=ni(n),l=ri(n)==="y",s=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,f=an(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return u&&typeof p=="number"&&(h=u==="end"?p*-1:p),l?{x:h*c,y:d*s}:{x:d*s,y:h*c}}const UN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await BN(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},HN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:b=>{let{x:w,y:_}=b;return{x:w,y:_}}},...l}=an(e,t),s={x:n,y:r},c=await so(t,l),f=ri(un(o)),d=pf(f);let h=s[d],p=s[f];if(i){const b=d==="y"?"top":"left",w=d==="y"?"bottom":"right",_=h+c[b],x=h-c[w];h=hf(_,h,x)}if(a){const b=f==="y"?"top":"left",w=f==="y"?"bottom":"right",_=p+c[b],x=p-c[w];p=hf(_,p,x)}const m=u.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},YN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:l=!0,crossAxis:s=!0}=an(e,t),c={x:n,y:r},f=ri(o),d=pf(f);let h=c[d],p=c[f];const m=an(u,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const x=d==="y"?"height":"width",$=i.reference[d]-i.floating[x]+b.mainAxis,y=i.reference[d]+i.reference[x]-b.mainAxis;h<$?h=$:h>y&&(h=y)}if(s){var w,_;const x=d==="y"?"width":"height",$=["top","left"].includes(un(o)),y=i.reference[f]-i.floating[x]+($&&((w=a.offset)==null?void 0:w[f])||0)+($?0:b.crossAxis),O=i.reference[f]+i.reference[x]+($?0:((_=a.offset)==null?void 0:_[f])||0)-($?b.crossAxis:0);p<y?p=y:p>O&&(p=O)}return{[d]:h,[f]:p}}}},GN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...u}=an(e,t),l=await so(t,u),s=un(n),c=ni(n),f=ri(n)==="y",{width:d,height:h}=r.floating;let p,m;s==="top"||s==="bottom"?(p=s,m=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=s,p=c==="end"?"top":"bottom");const b=h-l[p],w=d-l[m],_=!t.middlewareData.shift;let x=b,$=w;if(f){const O=d-l.left-l.right;$=c||_?Cn(w,O):O}else{const O=h-l.top-l.bottom;x=c||_?Cn(b,O):O}if(_&&!c){const O=ft(l.left,0),E=ft(l.right,0),k=ft(l.top,0),S=ft(l.bottom,0);f?$=d-2*(O!==0||E!==0?O+E:ft(l.left,l.right)):x=h-2*(k!==0||S!==0?k+S:ft(l.top,l.bottom))}await a({...t,availableWidth:$,availableHeight:x});const y=await o.getDimensions(i.floating);return d!==y.width||h!==y.height?{reset:{rects:!0}}:{}}}};function En(e){return qy(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ln(e){var t;return(t=(qy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qy(e){return e instanceof Node||e instanceof dt(e).Node}function sn(e){return e instanceof Element||e instanceof dt(e).Element}function Ht(e){return e instanceof HTMLElement||e instanceof dt(e).HTMLElement}function By(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}function co(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function VN(e){return["table","td","th"].includes(En(e))}function yf(e){const t=bf(),n=wt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function XN(e){let t=ii(e);for(;Ht(t)&&!su(t);){if(yf(t))return t;t=ii(t)}return null}function bf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function su(e){return["html","body","#document"].includes(En(e))}function wt(e){return dt(e).getComputedStyle(e)}function cu(e){return sn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ii(e){if(En(e)==="html")return e;const t=e.assignedSlot||e.parentNode||By(e)&&e.host||ln(e);return By(t)?t.host:t}function Uy(e){const t=ii(e);return su(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ht(t)&&co(t)?t:Uy(t)}function fu(e,t){var n;t===void 0&&(t=[]);const r=Uy(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=dt(r);return o?t.concat(i,i.visualViewport||[],co(r)?r:[]):t.concat(r,fu(r))}function Hy(e){const t=wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ht(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=ou(n)!==i||ou(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function _f(e){return sn(e)?e:e.contextElement}function oi(e){const t=_f(e);if(!Ht(t))return kn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Hy(t);let a=(i?ou(n.width):n.width)/r,u=(i?ou(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const KN=kn(0);function Yy(e){const t=dt(e);return!bf()||!t.visualViewport?KN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZN(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==dt(e)?!1:t}function ar(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=_f(e);let a=kn(1);t&&(r?sn(r)&&(a=oi(r)):a=oi(e));const u=ZN(i,n,r)?Yy(i):kn(0);let l=(o.left+u.x)/a.x,s=(o.top+u.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(i){const d=dt(i),h=r&&sn(r)?dt(r):r;let p=d.frameElement;for(;p&&r&&h!==d;){const m=oi(p),b=p.getBoundingClientRect(),w=wt(p),_=b.left+(p.clientLeft+parseFloat(w.paddingLeft))*m.x,x=b.top+(p.clientTop+parseFloat(w.paddingTop))*m.y;l*=m.x,s*=m.y,c*=m.x,f*=m.y,l+=_,s+=x,p=dt(p).frameElement}}return lu({width:c,height:f,x:l,y:s})}function QN(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Ht(n),i=ln(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},u=kn(1);const l=kn(0);if((o||!o&&r!=="fixed")&&((En(n)!=="body"||co(i))&&(a=cu(n)),Ht(n))){const s=ar(n);u=oi(n),l.x=s.x+n.clientLeft,l.y=s.y+n.clientTop}return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-a.scrollLeft*u.x+l.x,y:t.y*u.y-a.scrollTop*u.y+l.y}}function JN(e){return Array.from(e.getClientRects())}function Gy(e){return ar(ln(e)).left+cu(e).scrollLeft}function e3(e){const t=ln(e),n=cu(e),r=e.ownerDocument.body,o=ft(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ft(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Gy(e);const u=-n.scrollTop;return wt(r).direction==="rtl"&&(a+=ft(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:u}}function t3(e,t){const n=dt(e),r=ln(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,u=0,l=0;if(o){i=o.width,a=o.height;const s=bf();(!s||s&&t==="fixed")&&(u=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:u,y:l}}function n3(e,t){const n=ar(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ht(e)?oi(e):kn(1),a=e.clientWidth*i.x,u=e.clientHeight*i.y,l=o*i.x,s=r*i.y;return{width:a,height:u,x:l,y:s}}function Vy(e,t,n){let r;if(t==="viewport")r=t3(e,n);else if(t==="document")r=e3(ln(e));else if(sn(t))r=n3(t,n);else{const o=Yy(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return lu(r)}function Xy(e,t){const n=ii(e);return n===t||!sn(n)||su(n)?!1:wt(n).position==="fixed"||Xy(n,t)}function r3(e,t){const n=t.get(e);if(n)return n;let r=fu(e).filter(u=>sn(u)&&En(u)!=="body"),o=null;const i=wt(e).position==="fixed";let a=i?ii(e):e;for(;sn(a)&&!su(a);){const u=wt(a),l=yf(a);!l&&u.position==="fixed"&&(o=null),(i?!l&&!o:!l&&u.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||co(a)&&!l&&Xy(e,a))?r=r.filter(c=>c!==a):o=u,a=ii(a)}return t.set(e,r),r}function i3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?r3(t,this._c):[].concat(n),r],u=a[0],l=a.reduce((s,c)=>{const f=Vy(t,c,o);return s.top=ft(f.top,s.top),s.right=Cn(f.right,s.right),s.bottom=Cn(f.bottom,s.bottom),s.left=ft(f.left,s.left),s},Vy(t,u,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function o3(e){return Hy(e)}function a3(e,t,n){const r=Ht(t),o=ln(t),i=n==="fixed",a=ar(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const l=kn(0);if(r||!r&&!i)if((En(t)!=="body"||co(o))&&(u=cu(t)),r){const s=ar(t,!0,i,t);l.x=s.x+t.clientLeft,l.y=s.y+t.clientTop}else o&&(l.x=Gy(o));return{x:a.left+u.scrollLeft-l.x,y:a.top+u.scrollTop-l.y,width:a.width,height:a.height}}function Ky(e,t){return!Ht(e)||wt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Zy(e,t){const n=dt(e);if(!Ht(e))return n;let r=Ky(e,t);for(;r&&VN(r)&&wt(r).position==="static";)r=Ky(r,t);return r&&(En(r)==="html"||En(r)==="body"&&wt(r).position==="static"&&!yf(r))?n:r||XN(e)||n}const u3=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Zy,i=this.getDimensions;return{reference:a3(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function l3(e){return wt(e).direction==="rtl"}const s3={convertOffsetParentRelativeRectToViewportRelativeRect:QN,getDocumentElement:ln,getClippingRect:i3,getOffsetParent:Zy,getElementRects:u3,getClientRects:JN,getDimensions:o3,getScale:oi,isElement:sn,isRTL:l3};function c3(e,t){let n=null,r;const o=ln(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),i();const{left:s,top:c,width:f,height:d}=e.getBoundingClientRect();if(u||t(),!f||!d)return;const h=au(c),p=au(o.clientWidth-(s+f)),m=au(o.clientHeight-(c+d)),b=au(s),_={rootMargin:-h+"px "+-p+"px "+-m+"px "+-b+"px",threshold:ft(0,Cn(1,l))||1};let x=!0;function $(y){const O=y[0].intersectionRatio;if(O!==l){if(!x)return a();O?a(!1,O):r=setTimeout(()=>{a(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver($,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver($,_)}n.observe(e)}return a(!0),i}function f3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,s=_f(e),c=o||i?[...s?fu(s):[],...fu(t)]:[];c.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const f=s&&u?c3(s,n):null;let d=-1,h=null;a&&(h=new ResizeObserver(w=>{let[_]=w;_&&_.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),s&&!l&&h.observe(s),h.observe(t));let p,m=l?ar(e):null;l&&b();function b(){const w=ar(e);m&&(w.x!==m.x||w.y!==m.y||w.width!==m.width||w.height!==m.height)&&n(),m=w,p=requestAnimationFrame(b)}return n(),()=>{c.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const d3=(e,t,n)=>{const r=new Map,o={platform:s3,...n},i={...o.platform,_c:r};return RN(e,t,{...o,platform:i})},h3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Fy({element:r.current,padding:o}).fn(n):{}:r?Fy({element:r,padding:o}).fn(n):{}}}};var du=typeof document<"u"?g.useLayoutEffect:g.useEffect;function hu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!hu(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!hu(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Qy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jy(e,t){const n=Qy(e);return Math.round(t*n)/n}function e0(e){const t=Re.useRef(e);return du(()=>{t.current=e}),t}function p3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:u=!0,whileElementsMounted:l,open:s}=e,[c,f]=Re.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=Re.useState(r);hu(d,r)||h(r);const[p,m]=Re.useState(null),[b,w]=Re.useState(null),_=Re.useCallback(Y=>{Y!=O.current&&(O.current=Y,m(Y))},[m]),x=Re.useCallback(Y=>{Y!==E.current&&(E.current=Y,w(Y))},[w]),$=i||p,y=a||b,O=Re.useRef(null),E=Re.useRef(null),k=Re.useRef(c),S=e0(l),L=e0(o),A=Re.useCallback(()=>{if(!O.current||!E.current)return;const Y={placement:t,strategy:n,middleware:d};L.current&&(Y.platform=L.current),d3(O.current,E.current,Y).then(se=>{const ce={...se,isPositioned:!0};D.current&&!hu(k.current,ce)&&(k.current=ce,E0.flushSync(()=>{f(ce)}))})},[d,t,n,L]);du(()=>{s===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(Y=>({...Y,isPositioned:!1})))},[s]);const D=Re.useRef(!1);du(()=>(D.current=!0,()=>{D.current=!1}),[]),du(()=>{if($&&(O.current=$),y&&(E.current=y),$&&y){if(S.current)return S.current($,y,A);A()}},[$,y,A,S]);const W=Re.useMemo(()=>({reference:O,floating:E,setReference:_,setFloating:x}),[_,x]),B=Re.useMemo(()=>({reference:$,floating:y}),[$,y]),te=Re.useMemo(()=>{const Y={position:n,left:0,top:0};if(!B.floating)return Y;const se=Jy(B.floating,c.x),ce=Jy(B.floating,c.y);return u?{...Y,transform:"translate("+se+"px, "+ce+"px)",...Qy(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:ce}},[n,u,B.floating,c.x,c.y]);return Re.useMemo(()=>({...c,update:A,refs:W,elements:B,floatingStyles:te}),[c,A,W,B,te])}const t0="Popper",[n0,r0]=uf(t0),[v3,i0]=n0(t0),m3=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return g.createElement(v3,{scope:t,anchor:r,onAnchorChange:o},n)},g3="PopperAnchor",y3=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=i0(g3,n),a=g.useRef(null),u=nr(t,a);return g.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:g.createElement(Sn.div,Fe({},o,{ref:u}))}),o0="PopperContent",[b3,RL]=n0(o0),_3=g.forwardRef((e,t)=>{var n,r,o,i,a,u,l,s;const{__scopePopper:c,side:f="bottom",sideOffset:d=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:b=[],collisionPadding:w=0,sticky:_="partial",hideWhenDetached:x=!1,avoidCollisions:$=!0,onPlaced:y,...O}=e,E=i0(o0,c),[k,S]=g.useState(null),L=nr(t,pe=>S(pe)),[A,D]=g.useState(null),W=gy(A),B=(n=W==null?void 0:W.width)!==null&&n!==void 0?n:0,te=(r=W==null?void 0:W.height)!==null&&r!==void 0?r:0,Y=f+(h!=="center"?"-"+h:""),se=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},ce=Array.isArray(b)?b:[b],fe=ce.length>0,I={padding:se,boundary:ce.filter(w3),altBoundary:fe},{refs:q,floatingStyles:J,placement:G,isPositioned:Z,middlewareData:X}=p3({strategy:"fixed",placement:Y,whileElementsMounted:f3,elements:{reference:E.anchor},middleware:[UN({mainAxis:d+te,alignmentAxis:p}),$&&HN({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?YN():void 0,...I}),$&&zN({...I}),GN({...I,apply:({elements:pe,rects:Ee,availableWidth:Ae,availableHeight:Ye})=>{const{width:Yt,height:An}=Ee.reference,rt=pe.floating.style;rt.setProperty("--radix-popper-available-width",`${Ae}px`),rt.setProperty("--radix-popper-available-height",`${Ye}px`),rt.setProperty("--radix-popper-anchor-width",`${Yt}px`),rt.setProperty("--radix-popper-anchor-height",`${An}px`)}}),A&&h3({element:A,padding:m}),x3({arrowWidth:B,arrowHeight:te}),x&&qN({strategy:"referenceHidden"})]}),[ne,ae]=a0(G),de=ei(y);ti(()=>{Z&&(de==null||de())},[Z,de]);const F=(o=X.arrow)===null||o===void 0?void 0:o.x,H=(i=X.arrow)===null||i===void 0?void 0:i.y,ue=((a=X.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[C,he]=g.useState();return ti(()=>{k&&he(window.getComputedStyle(k).zIndex)},[k]),g.createElement("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:Z?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:C,"--radix-popper-transform-origin":[(u=X.transformOrigin)===null||u===void 0?void 0:u.x,(l=X.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},g.createElement(b3,{scope:c,placedSide:ne,onArrowChange:D,arrowX:F,arrowY:H,shouldHideArrow:ue},g.createElement(Sn.div,Fe({"data-side":ne,"data-align":ae},O,{ref:L,style:{...O.style,animation:Z?void 0:"none",opacity:(s=X.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0}}))))});function w3(e){return e!==null}const x3=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:u,rects:l,middlewareData:s}=t,f=((n=s.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=f?0:e.arrowWidth,h=f?0:e.arrowHeight,[p,m]=a0(u),b={start:"0%",center:"50%",end:"100%"}[m],w=((r=(o=s.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,_=((i=(a=s.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+h/2;let x="",$="";return p==="bottom"?(x=f?b:`${w}px`,$=`${-h}px`):p==="top"?(x=f?b:`${w}px`,$=`${l.floating.height+h}px`):p==="right"?(x=`${-h}px`,$=f?b:`${_}px`):p==="left"&&(x=`${l.floating.width+h}px`,$=f?b:`${_}px`),{data:{x,y:$}}}});function a0(e){const[t,n="center"]=e.split("-");return[t,n]}const O3=m3,P3=y3,$3=_3,M3=g.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?cr.createPortal(g.createElement(Sn.div,Fe({},o,{ref:t})),r):null}),S3=g.forwardRef((e,t)=>g.createElement(Sn.span,Fe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[pu,qL]=uf("Tooltip",[r0]),wf=r0(),T3="TooltipProvider",C3=700,xf="tooltip.open",[k3,Of]=pu(T3),E3=e=>{const{__scopeTooltip:t,delayDuration:n=C3,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,u]=g.useState(!0),l=g.useRef(!1),s=g.useRef(0);return g.useEffect(()=>{const c=s.current;return()=>window.clearTimeout(c)},[]),g.createElement(k3,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(s.current),u(!1)},[]),onClose:g.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:g.useCallback(c=>{l.current=c},[]),disableHoverableContent:o},i)},Pf="Tooltip",[A3,fo]=pu(Pf),D3=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:u}=e,l=Of(Pf,e.__scopeTooltip),s=wf(t),[c,f]=g.useState(null),d=EN(),h=g.useRef(0),p=a??l.disableHoverableContent,m=u??l.delayDuration,b=g.useRef(!1),[w=!1,_]=my({prop:r,defaultProp:o,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(xf))):l.onClose(),i==null||i(E)}}),x=g.useMemo(()=>w?b.current?"delayed-open":"instant-open":"closed",[w]),$=g.useCallback(()=>{window.clearTimeout(h.current),b.current=!1,_(!0)},[_]),y=g.useCallback(()=>{window.clearTimeout(h.current),_(!1)},[_]),O=g.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,_(!0)},m)},[m,_]);return g.useEffect(()=>()=>window.clearTimeout(h.current),[]),g.createElement(O3,s,g.createElement(A3,{scope:t,contentId:d,open:w,stateAttribute:x,trigger:c,onTriggerChange:f,onTriggerEnter:g.useCallback(()=>{l.isOpenDelayed?O():$()},[l.isOpenDelayed,O,$]),onTriggerLeave:g.useCallback(()=>{p?y():window.clearTimeout(h.current)},[y,p]),onOpen:$,onClose:y,disableHoverableContent:p},n))},u0="TooltipTrigger",N3=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fo(u0,n),i=Of(u0,n),a=wf(n),u=g.useRef(null),l=nr(t,u,o.onTriggerChange),s=g.useRef(!1),c=g.useRef(!1),f=g.useCallback(()=>s.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),g.createElement(P3,Fe({asChild:!0},a),g.createElement(Sn.button,Fe({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:It(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:It(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:It(e.onPointerDown,()=>{s.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:It(e.onFocus,()=>{s.current||o.onOpen()}),onBlur:It(e.onBlur,o.onClose),onClick:It(e.onClick,o.onClose)})))}),l0="TooltipPortal",[L3,I3]=pu(l0,{forceMount:void 0}),j3=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=fo(l0,t);return g.createElement(L3,{scope:t,forceMount:n},g.createElement(nu,{present:n||i.open},g.createElement(M3,{asChild:!0,container:o},r)))},ho="TooltipContent",W3=g.forwardRef((e,t)=>{const n=I3(ho,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=fo(ho,e.__scopeTooltip);return g.createElement(nu,{present:r||a.open},a.disableHoverableContent?g.createElement(s0,Fe({side:o},i,{ref:t})):g.createElement(F3,Fe({side:o},i,{ref:t})))}),F3=g.forwardRef((e,t)=>{const n=fo(ho,e.__scopeTooltip),r=Of(ho,e.__scopeTooltip),o=g.useRef(null),i=nr(t,o),[a,u]=g.useState(null),{trigger:l,onClose:s}=n,c=o.current,{onPointerInTransitChange:f}=r,d=g.useCallback(()=>{u(null),f(!1)},[f]),h=g.useCallback((p,m)=>{const b=p.currentTarget,w={x:p.clientX,y:p.clientY},_=z3(w,b.getBoundingClientRect()),x=q3(w,_),$=B3(m.getBoundingClientRect()),y=H3([...x,...$]);u(y),f(!0)},[f]);return g.useEffect(()=>()=>d(),[d]),g.useEffect(()=>{if(l&&c){const p=b=>h(b,c),m=b=>h(b,l);return l.addEventListener("pointerleave",p),c.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",p),c.removeEventListener("pointerleave",m)}}},[l,c,h,d]),g.useEffect(()=>{if(a){const p=m=>{const b=m.target,w={x:m.clientX,y:m.clientY},_=(l==null?void 0:l.contains(b))||(c==null?void 0:c.contains(b)),x=!U3(w,a);_?d():x&&(d(),s())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,c,a,s,d]),g.createElement(s0,Fe({},e,{ref:i}))}),[R3,BL]=pu(Pf,{isInside:!1}),s0=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...u}=e,l=fo(ho,n),s=wf(n),{onClose:c}=l;return g.useEffect(()=>(document.addEventListener(xf,c),()=>document.removeEventListener(xf,c)),[c]),g.useEffect(()=>{if(l.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),g.createElement(MN,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:c},g.createElement($3,Fe({"data-state":l.stateAttribute},s,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),g.createElement(by,null,r),g.createElement(R3,{scope:n,isInside:!0},g.createElement(S3,{id:l.contentId,role:"tooltip"},o||r))))});function z3(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function q3(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function B3(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function U3(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const u=t[i].x,l=t[i].y,s=t[a].x,c=t[a].y;l>r!=c>r&&n<(s-u)*(r-l)/(c-l)+u&&(o=!o)}return o}function H3(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Y3(t)}function Y3(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const G3=E3,V3=D3,X3=N3,K3=j3,c0=W3,Z3=G3,Q3=V3,J3=X3,eL=K3,f0=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>re.jsx(c0,{ref:r,sideOffset:t,className:lo("z-50 overflow-hidden h-8 p-2 bg-gray-600 rounded transition-opacity justify-start items-start inline-flex text-center text-white text-xs",e),...n}));f0.displayName=c0.displayName;function tL({tickData:e,axisCharLimit:t}){const n=e.formattedValue;return re.jsx(Z3,{children:re.jsxs(Q3,{children:[re.jsx(J3,{asChild:!0,children:re.jsx("text",{className:"pointer-events-auto cursor-pointer",...e,children:n&&(n==null?void 0:n.length)>t?`${n==null?void 0:n.substring(0,t)}...`:n})}),re.jsx(eL,{children:re.jsx(f0,{className:"rabbit-ds",children:re.jsx("p",{children:n})})})]})})}function d0({tooltipData:e,tooltipTitle:t,xAxisLabel:n,yAxisLabel:r,showStacked:o,nodeData:i}){var a,u,l,s;return re.jsxs("div",{className:"rabbit-ds h-auto w-auto min-w-[200px] max-w-[400px] p-2 bg-white rounded-lg shadow flex-col justify-start items-start gap-2 inline-flex",children:[re.jsx("div",{className:"px-3 py-1 text-zinc-800 text-xs leading-none font-bold",children:t}),re.jsx("div",{className:"w-full p-2 rounded-lg flex-col justify-start items-start gap-1 flex",children:re.jsxs("div",{className:lo("w-full grid gap-1",o?"auto-rows-auto":"grid-cols-2"),children:[re.jsxs("div",{className:lo("px-1 py-0.5 flex-col justify-start items-start inline-flex max-w-sm break-words",!o&&"border-r"),children:[re.jsx("div",{className:"text-stone-500 text-[10px] font-normal leading-none",children:n}),re.jsx("div",{className:"justify-start items-start gap-2.5 flex font-semibold",children:(a=e==null?void 0:e.nearestDatum)==null?void 0:a.datum.x})]}),re.jsxs("div",{className:"px-1 py-0.5 flex-col justify-start items-start inline-flex max-w-sm",children:[re.jsx("div",{className:" text-stone-500 text-[10px] font-normal leading-none",children:r}),re.jsx("div",{className:"justify-start items-start gap-2.5 flex font-semibold",children:(u=e==null?void 0:e.nearestDatum)==null?void 0:u.datum.y})]})]})}),re.jsx("hr",{className:"h-px w-full border-top bg-gray-100"}),re.jsxs("div",{className:"px-2 py-1 justify-start items-center gap-2 inline-flex",children:[re.jsx("div",{style:{backgroundColor:(l=e==null?void 0:e.nearestDatum)==null?void 0:l.datum.color.light,borderColor:(s=e==null?void 0:e.nearestDatum)==null?void 0:s.datum.color.dark},className:"w-3 h-3 relative rounded-3xl border"}),re.jsx("div",{className:"justify-start items-start gap-2.5 flex",children:re.jsx("div",{className:"text-zinc-800 text-xs font-normal leading-none",children:i==null?void 0:i.name})})]})]})}d0.defaultProps={tooltipData:void 0,nodeData:void 0};const nL=({x:e,y:t,datum:n,size:r})=>re.jsx(af,{left:e,top:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),rL=({x:e,y:t,datum:n})=>re.jsx(af,{left:e,top:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5}),vu={xAccessor:e=>e.x,yAccessor:e=>e.y},h0=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,p0=10,v0=6,iL=5,$f=g.forwardRef(({nodes:e,height:t,width:n,xAxisValues:r,series:o,xAxisLabel:i,yAxisLabel:a,xAxisDomain:u,yAxisDomain:l,xAxisUnitSymbol:s,yAxisUnitSymbol:c,tooltipTitle:f,mode:d,xAxisCharLimit:h=v0,tooltipStackCharLimit:p=p0},m)=>{const[b,w]=g.useState(e.map(y=>y.id)),_=g.useRef(null),x=g.useMemo(()=>o.map((y,O)=>({points:y.data.map((E,k)=>({x:r[k],y:E,nodeId:y.id,color:wN(O)}))})).slice(0,d==="mini"?iL:o.length),[r,o,d]),$=g.useMemo(()=>d==="full"?x.filter(y=>b.includes(y.points[0].nodeId)):x,[x,b,d]);return g.useImperativeHandle(m,()=>({download(){_.current&&yD.domToPng(_.current,{scale:5}).then(y=>{const O=document.createElement("a");O.download="screenshot.png",O.href=y,O.click()})}})),re.jsx("div",{ref:_,id:"line-chart",className:"bg-white flex flex-col",style:{width:n,height:t},children:re.jsxs(Yc,{xScale:{type:"band",...u&&{domain:u}},yScale:{type:"linear",...l&&{domain:l}},children:[re.jsxs("div",{className:"w-full h-full flex flex-row",children:[re.jsxs(Qr,{children:[re.jsx($k,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),re.jsx(Dg,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,tickFormat:y=>s?h0(y,s.symbol,s.position):y,rangePadding:{end:10},tickComponent:y=>re.jsx(tL,{tickData:y,axisCharLimit:h}),tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:400,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"},label:`${i} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),re.jsx(Dg,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",rangePadding:{end:10},label:`${a} ➔`,tickFormat:y=>c?h0(y,c.symbol,c.position):y,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:400,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:500,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),$.map((y,O)=>re.jsxs(re.Fragment,{children:[re.jsx(gD,{stroke:y.points[0].color.dark,strokeWidth:1,dataKey:`Performance Management ${O}`,data:y.points,xAccessor:vu.xAccessor,yAccessor:vu.yAccessor}),re.jsx(hD,{dataKey:`Performance Management ${O}`,data:y.points,size:8,renderGlyph:nL,xAccessor:vu.xAccessor,yAccessor:vu.yAccessor})]})),re.jsx(qg,{showDatumGlyph:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,zIndex:100,unstyled:!0,applyPositionStyle:!0,renderGlyph:rL,renderTooltip:({tooltipData:y})=>{var k,S;const O=e.find(L=>{var A;return L.id===((A=y==null?void 0:y.nearestDatum)==null?void 0:A.datum.nodeId)}),E=((k=y==null?void 0:y.nearestDatum)==null?void 0:k.datum)&&((S=y==null?void 0:y.nearestDatum)==null?void 0:S.datum.x.length)>p;return re.jsx(d0,{tooltipData:y,xAxisLabel:i,yAxisLabel:a,showStacked:!!E,tooltipTitle:f,nodeData:O})}})]}),d==="full"&&re.jsxs("div",{className:"w-64 p-4 bg-zinc-100 rounded-lg flex-col justify-start items-start gap-0.5 inline-flex text-xs",children:[re.jsxs("div",{className:"text-sm font-semibold pb-2",children:[re.jsx("span",{className:"pr-1",children:i}),"(",x.length,")"]}),x.map(y=>{const O=e.find(E=>E.id===y.points[0].nodeId);return O&&re.jsxs("div",{className:"flex justify-between items-center gap-1 py-1 w-full",children:[re.jsxs("div",{className:"flex justify-between items-center",children:[re.jsx("div",{style:{backgroundColor:y.points[0].color.light,borderColor:y.points[0].color.dark},className:"h-3 w-3 rounded-full border mr-1"}),O.name]}),re.jsx("div",{className:"flex items-center",children:re.jsx(_N,{checked:b.includes(O.id),onCheckedChange:E=>{let k=[...b];E?k=[...b,O.id]:k.splice(b.indexOf(O.id),1),w(k)}})})]},O.id)})]})]}),d==="mini"&&re.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] text-[#666666]",children:x.map(y=>{const O=e.find(E=>E.id===y.points[0].nodeId);return re.jsxs("div",{className:"flex justify-center items-center gap-1",children:[re.jsx("div",{style:{backgroundColor:y.points[0].color.light,borderColor:y.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),O==null?void 0:O.name]},O==null?void 0:O.id)})})]})})}),oL={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:v0,tooltipStackCharLimit:p0,xAxisDomain:void 0,yAxisDomain:void 0};$f.defaultProps=oL,$f.displayName="LineBase";const m0=g.forwardRef((e,t)=>re.jsx(py,{children:({width:n,height:r})=>re.jsx($f,{ref:t,width:n,height:r,...e})}));m0.displayName="Line";const aL=m0;Kt.Line=aL,Object.defineProperty(Kt,Symbol.toStringTag,{value:"Module"})});
|