@frontera-sdk/chat-ui 1.50.59 → 1.50.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +41 -12
  2. package/dist/agent-picker.js +4 -4
  3. package/dist/{esm-MHF25KDL.js → browser-B7HPFETX.js} +1 -1
  4. package/dist/browser-DK2ZWH4A.js +2081 -0
  5. package/dist/chat.d.ts +12 -8
  6. package/dist/chat.js +109 -50
  7. package/dist/{chunk-CWC2IOX7.js → chunk-26L3ST3H.js} +1147 -1787
  8. package/dist/{chunk-BEJ3HQG4.js → chunk-37G6MHWS.js} +12 -9
  9. package/dist/{chunk-ZS6PXIZP.js → chunk-BDJFVRYR.js} +16 -3
  10. package/dist/{chunk-PQZ2CS26.js → chunk-CDTES65T.js} +17 -41
  11. package/dist/{chunk-2KEBRV3W.js → chunk-F6PEZE7A.js} +1 -2
  12. package/dist/{chunk-IBCOQG5T.js → chunk-FDGBZFGN.js} +5 -4
  13. package/dist/{chunk-XSEN6ISU.js → chunk-FNIHHKOZ.js} +25 -8
  14. package/dist/{chunk-SZTQOXLD.js → chunk-IQXJEZM7.js} +14 -14
  15. package/dist/{chunk-AQGBRSIP.js → chunk-J7EWRXEC.js} +1 -1
  16. package/dist/{chunk-IHBTHNXV.js → chunk-KHF7OM3F.js} +2 -2
  17. package/dist/{chunk-VDZH5Z3K.js → chunk-PH7AYVSS.js} +2 -2
  18. package/dist/{chunk-GTQH7MPF.js → chunk-ROJM44GB.js} +1 -1
  19. package/dist/{chunk-76WUIIOX.js → chunk-S3ECTKA3.js} +2 -2
  20. package/dist/{chunk-FXKXDR5K.js → chunk-TSKFBMGC.js} +1 -1
  21. package/dist/{chunk-466MYFJD.js → chunk-UTKQ6G2A.js} +3 -3
  22. package/dist/{chunk-IQRPGFLI.js → chunk-V44YVBRX.js} +3 -35
  23. package/dist/chunk-WDYCLC4F.js +35 -0
  24. package/dist/chunk-XLX3L3P4.js +43 -0
  25. package/dist/client.js +3 -2
  26. package/dist/credential.js +2 -1
  27. package/dist/frame.js +2 -5
  28. package/dist/header.js +11 -11
  29. package/dist/message.js +11 -11
  30. package/dist/new-session.d.ts +128 -3
  31. package/dist/new-session.js +5 -5
  32. package/dist/parts.js +5 -5
  33. package/dist/{pdf-deck-view-inner-3PVGFH26.js → pdf-deck-view-inner-AY4FYDAJ.js} +4 -4
  34. package/dist/{pdf-document-view-inner-CP6VFHG4.js → pdf-document-view-inner-NC5MBN7X.js} +4 -4
  35. package/dist/pending-cards.js +5 -5
  36. package/dist/platform.css +88 -101
  37. package/dist/{univer-workbook-N5IIN7CH.js → univer-workbook-LSBVETAQ.js} +22824 -31017
  38. package/package.json +25 -5
  39. package/src/styles.css +20 -5
  40. package/dist/chunk-DGDHKMDB.js +0 -10
  41. package/dist/lib-3ZKX25RJ.js +0 -4511
  42. package/dist/new-session-Dw7JOgzu.d.ts +0 -141
@@ -1,19 +1,19 @@
1
1
  'use client';
2
- import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from './chunk-2KEBRV3W.js';
2
+ import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from './chunk-F6PEZE7A.js';
3
3
  import { useTranslation } from './chunk-FTLVGUG5.js';
4
- import { ToolCallItem } from './chunk-76WUIIOX.js';
5
- import { Shimmer, Collapse, ToolGroupReasoningItem, SkillToolItem, useStreamdownPlugins, getToolMeta, STREAMDOWN_LINK_SAFETY, AppIconFrame, AppIcon, Collapsible, CollapsibleTrigger, CollapsibleContent, Icon } from './chunk-IBCOQG5T.js';
6
- import { Button, Skeleton, buttonVariants } from './chunk-GTQH7MPF.js';
7
- import { Dialog, DialogContent, DialogTitle, DialogDescription, DialogClose, usePortalContainer, DialogHeader, DialogFooter } from './chunk-IQRPGFLI.js';
4
+ import { ToolCallItem } from './chunk-S3ECTKA3.js';
5
+ import { Shimmer, Collapse, ToolGroupReasoningItem, SkillToolItem, useStreamdownPlugins, getToolMeta, STREAMDOWN_LINK_SAFETY, AppIconFrame, AppIcon, Collapsible, CollapsibleTrigger, CollapsibleContent, Icon } from './chunk-FDGBZFGN.js';
6
+ import { Button, Skeleton, buttonVariants } from './chunk-ROJM44GB.js';
7
+ import { Dialog, DialogContent, DialogTitle, DialogDescription, DialogClose, DialogHeader, DialogFooter } from './chunk-V44YVBRX.js';
8
8
  import { formatSpecifier, precisionFixed_default, precisionRound_default, precisionPrefix_default, formatPrefix, format, ChartBlockSkeleton, RawJsonFallback, RECHARTS_THEME_CLS, formatCompact, ChartTooltipContent, resolveColor, useChartColors, ChartReadout, ChartErrorBoundary } from './chunk-6BPHEBCF.js';
9
9
  import { useIsMobile } from './chunk-IXDM5R55.js';
10
- import { zipSync } from './chunk-PQZ2CS26.js';
11
- import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent } from './chunk-ZS6PXIZP.js';
12
- import { AgentAvatar, FORMAT_EXT } from './chunk-FXKXDR5K.js';
13
- import { cn } from './chunk-DGDHKMDB.js';
10
+ import { zipSync } from './chunk-CDTES65T.js';
11
+ import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent } from './chunk-BDJFVRYR.js';
12
+ import { AgentAvatar, FORMAT_EXT } from './chunk-TSKFBMGC.js';
13
+ import { cn, usePortalContainer } from './chunk-XLX3L3P4.js';
14
14
  import { ChevronDownMediumIcon, DownloadIcon, ChevronRightIcon, Images1Icon, FileDownloadIcon, CrossMediumIcon, ArrowLeftIcon, ArrowRightIcon, LayoutBottomIcon, LayoutBottomFullIcon, DeviceDesktopIcon, ArrowUpIcon, ArrowDownIcon, MinusMediumIcon, ArrowsShowIcon, ZoomOutIcon, ZoomInIcon, FocusRenewIcon, WorldSearchIcon, ProcessorIcon, NotebookIcon, BookIcon, FileTextIcon, CircleXIcon, CircleCheckIcon, Folder1Icon, LoaderIcon, Checkmark1Icon, ExclamationCircleIcon, MergeConflictSimpleIcon, FileEditIcon, HourglassIcon, ShieldCheckIcon, LockIcon, SquareArrowTopRightIcon, WorldIcon, DotGrid1x3HorizontalTightIcon, BrowserTabsIcon, ChevronLeftIcon, LayoutDashboardIcon, SlidesWideIcon, FilePdfIcon, TableIcon, VideoIcon, AudioIcon, Filter1Icon, SortArrowUpDownIcon, LayoutGrid1Icon } from './chunk-AFVU5VT6.js';
15
15
  import { useChatClientOptional } from './chunk-7ADM3CKD.js';
16
- import { __commonJS, __require, __toESM, __export } from './chunk-PR4QN5HX.js';
16
+ import { __commonJS, __toESM, __export } from './chunk-PR4QN5HX.js';
17
17
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
18
18
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
19
19
  import { create } from 'zustand';
@@ -31,6 +31,8 @@ import { Streamdown } from 'streamdown';
31
31
  import { createRoot } from 'react-dom/client';
32
32
  import { clsx } from 'clsx';
33
33
  import { createPortal } from 'react-dom';
34
+ import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';
35
+ import 'use-sync-external-store/with-selector.js';
34
36
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
35
37
 
36
38
  // ../../node_modules/cronstrue/dist/cronstrue-i18n.js
@@ -483,13 +485,13 @@ var require_cronstrue_i18n = __commonJS({
483
485
  description = "";
484
486
  } else {
485
487
  description = this.getSegmentDescription(this.expressionParts[5], this.i18n.commaEveryDay(), function(s2, form) {
486
- var exp2 = s2;
488
+ var exp = s2;
487
489
  if (s2.indexOf("#") > -1) {
488
- exp2 = s2.substring(0, s2.indexOf("#"));
490
+ exp = s2.substring(0, s2.indexOf("#"));
489
491
  } else if (s2.indexOf("L") > -1) {
490
- exp2 = exp2.replace("L", "");
492
+ exp = exp.replace("L", "");
491
493
  }
492
- var parsedExp = parseInt(exp2);
494
+ var parsedExp = parseInt(exp);
493
495
  var description2 = _this.i18n.daysOfTheWeekInCase ? _this.i18n.daysOfTheWeekInCase(form)[parsedExp] : daysOfWeekNames[parsedExp];
494
496
  if (s2.indexOf("#") > -1) {
495
497
  var dayOfWeekOfMonthDescription = null;
@@ -7898,8 +7900,8 @@ var require_cronstrue_i18n = __commonJS({
7898
7900
  var allLocalesLoader_1 = __webpack_require__(420);
7899
7901
  expressionDescriptor_1.ExpressionDescriptor.initialize(new allLocalesLoader_1.allLocalesLoader());
7900
7902
  exports2["default"] = expressionDescriptor_1.ExpressionDescriptor;
7901
- var toString3 = expressionDescriptor_1.ExpressionDescriptor.toString;
7902
- exports2.toString = toString3;
7903
+ var toString2 = expressionDescriptor_1.ExpressionDescriptor.toString;
7904
+ exports2.toString = toString2;
7903
7905
  })();
7904
7906
  return __webpack_exports__;
7905
7907
  })()
@@ -7916,418 +7918,986 @@ var require_i18n = __commonJS({
7916
7918
  }
7917
7919
  });
7918
7920
 
7919
- // ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
7920
- var require_use_sync_external_store_shim_production = __commonJS({
7921
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
7922
- var React60 = __require("react");
7923
- function is3(x2, y2) {
7924
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
7925
- }
7926
- var objectIs = "function" === typeof Object.is ? Object.is : is3;
7927
- var useState48 = React60.useState;
7928
- var useEffect38 = React60.useEffect;
7929
- var useLayoutEffect10 = React60.useLayoutEffect;
7930
- var useDebugValue2 = React60.useDebugValue;
7931
- function useSyncExternalStore$2(subscribe, getSnapshot) {
7932
- var value = getSnapshot(), _useState = useState48({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
7933
- useLayoutEffect10(
7934
- function() {
7935
- inst.value = value;
7936
- inst.getSnapshot = getSnapshot;
7937
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
7938
- },
7939
- [subscribe, value, getSnapshot]
7940
- );
7941
- useEffect38(
7942
- function() {
7943
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
7944
- return subscribe(function() {
7945
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
7946
- });
7947
- },
7948
- [subscribe]
7949
- );
7950
- useDebugValue2(value);
7951
- return value;
7952
- }
7953
- function checkIfSnapshotChanged(inst) {
7954
- var latestGetSnapshot = inst.getSnapshot;
7955
- inst = inst.value;
7956
- try {
7957
- var nextValue = latestGetSnapshot();
7958
- return !objectIs(inst, nextValue);
7959
- } catch (error) {
7960
- return true;
7961
- }
7962
- }
7963
- function useSyncExternalStore$1(subscribe, getSnapshot) {
7964
- return getSnapshot();
7965
- }
7966
- var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
7967
- exports.useSyncExternalStore = void 0 !== React60.useSyncExternalStore ? React60.useSyncExternalStore : shim;
7968
- }
7969
- });
7970
-
7971
- // ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
7972
- var require_use_sync_external_store_shim_development = __commonJS({
7973
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
7974
- "production" !== process.env.NODE_ENV && (function() {
7975
- function is3(x2, y2) {
7976
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
7977
- }
7978
- function useSyncExternalStore$2(subscribe, getSnapshot) {
7979
- didWarnOld18Alpha || void 0 === React60.startTransition || (didWarnOld18Alpha = true, console.error(
7980
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
7981
- ));
7982
- var value = getSnapshot();
7983
- if (!didWarnUncachedGetSnapshot) {
7984
- var cachedValue = getSnapshot();
7985
- objectIs(value, cachedValue) || (console.error(
7986
- "The result of getSnapshot should be cached to avoid an infinite loop"
7987
- ), didWarnUncachedGetSnapshot = true);
7921
+ // ../../node_modules/decimal.js-light/decimal.js
7922
+ var require_decimal = __commonJS({
7923
+ "../../node_modules/decimal.js-light/decimal.js"(exports, module) {
7924
+ (function(globalScope) {
7925
+ var MAX_DIGITS = 1e9, Decimal3 = {
7926
+ // These values must be integers within the stated ranges (inclusive).
7927
+ // Most of these values can be changed during run-time using `Decimal.config`.
7928
+ // The maximum number of significant digits of the result of a calculation or base conversion.
7929
+ // E.g. `Decimal.config({ precision: 20 });`
7930
+ precision: 20,
7931
+ // 1 to MAX_DIGITS
7932
+ // The rounding mode used by default by `toInteger`, `toDecimalPlaces`, `toExponential`,
7933
+ // `toFixed`, `toPrecision` and `toSignificantDigits`.
7934
+ //
7935
+ // ROUND_UP 0 Away from zero.
7936
+ // ROUND_DOWN 1 Towards zero.
7937
+ // ROUND_CEIL 2 Towards +Infinity.
7938
+ // ROUND_FLOOR 3 Towards -Infinity.
7939
+ // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.
7940
+ // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.
7941
+ // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.
7942
+ // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.
7943
+ // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.
7944
+ //
7945
+ // E.g.
7946
+ // `Decimal.rounding = 4;`
7947
+ // `Decimal.rounding = Decimal.ROUND_HALF_UP;`
7948
+ rounding: 4,
7949
+ // 0 to 8
7950
+ // The exponent value at and beneath which `toString` returns exponential notation.
7951
+ // JavaScript numbers: -7
7952
+ toExpNeg: -7,
7953
+ // 0 to -MAX_E
7954
+ // The exponent value at and above which `toString` returns exponential notation.
7955
+ // JavaScript numbers: 21
7956
+ toExpPos: 21,
7957
+ // 0 to MAX_E
7958
+ // The natural logarithm of 10.
7959
+ // 115 digits
7960
+ LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
7961
+ }, external = true, decimalError = "[DecimalError] ", invalidArgument = decimalError + "Invalid argument: ", exponentOutOfRange = decimalError + "Exponent out of range: ", mathfloor = Math.floor, mathpow = Math.pow, isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ONE, BASE = 1e7, LOG_BASE = 7, MAX_SAFE_INTEGER = 9007199254740991, MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE), P = {};
7962
+ P.absoluteValue = P.abs = function() {
7963
+ var x2 = new this.constructor(this);
7964
+ if (x2.s) x2.s = 1;
7965
+ return x2;
7966
+ };
7967
+ P.comparedTo = P.cmp = function(y2) {
7968
+ var i, j, xdL, ydL, x2 = this;
7969
+ y2 = new x2.constructor(y2);
7970
+ if (x2.s !== y2.s) return x2.s || -y2.s;
7971
+ if (x2.e !== y2.e) return x2.e > y2.e ^ x2.s < 0 ? 1 : -1;
7972
+ xdL = x2.d.length;
7973
+ ydL = y2.d.length;
7974
+ for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) {
7975
+ if (x2.d[i] !== y2.d[i]) return x2.d[i] > y2.d[i] ^ x2.s < 0 ? 1 : -1;
7988
7976
  }
7989
- cachedValue = useState48({
7990
- inst: { value, getSnapshot }
7991
- });
7992
- var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
7993
- useLayoutEffect10(
7994
- function() {
7995
- inst.value = value;
7996
- inst.getSnapshot = getSnapshot;
7997
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
7998
- },
7999
- [subscribe, value, getSnapshot]
8000
- );
8001
- useEffect38(
8002
- function() {
8003
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
8004
- return subscribe(function() {
8005
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
8006
- });
8007
- },
8008
- [subscribe]
8009
- );
8010
- useDebugValue2(value);
8011
- return value;
8012
- }
8013
- function checkIfSnapshotChanged(inst) {
8014
- var latestGetSnapshot = inst.getSnapshot;
8015
- inst = inst.value;
8016
- try {
8017
- var nextValue = latestGetSnapshot();
8018
- return !objectIs(inst, nextValue);
8019
- } catch (error) {
8020
- return true;
7977
+ return xdL === ydL ? 0 : xdL > ydL ^ x2.s < 0 ? 1 : -1;
7978
+ };
7979
+ P.decimalPlaces = P.dp = function() {
7980
+ var x2 = this, w = x2.d.length - 1, dp = (w - x2.e) * LOG_BASE;
7981
+ w = x2.d[w];
7982
+ if (w) for (; w % 10 == 0; w /= 10) dp--;
7983
+ return dp < 0 ? 0 : dp;
7984
+ };
7985
+ P.dividedBy = P.div = function(y2) {
7986
+ return divide(this, new this.constructor(y2));
7987
+ };
7988
+ P.dividedToIntegerBy = P.idiv = function(y2) {
7989
+ var x2 = this, Ctor = x2.constructor;
7990
+ return round2(divide(x2, new Ctor(y2), 0, 1), Ctor.precision);
7991
+ };
7992
+ P.equals = P.eq = function(y2) {
7993
+ return !this.cmp(y2);
7994
+ };
7995
+ P.exponent = function() {
7996
+ return getBase10Exponent(this);
7997
+ };
7998
+ P.greaterThan = P.gt = function(y2) {
7999
+ return this.cmp(y2) > 0;
8000
+ };
8001
+ P.greaterThanOrEqualTo = P.gte = function(y2) {
8002
+ return this.cmp(y2) >= 0;
8003
+ };
8004
+ P.isInteger = P.isint = function() {
8005
+ return this.e > this.d.length - 2;
8006
+ };
8007
+ P.isNegative = P.isneg = function() {
8008
+ return this.s < 0;
8009
+ };
8010
+ P.isPositive = P.ispos = function() {
8011
+ return this.s > 0;
8012
+ };
8013
+ P.isZero = function() {
8014
+ return this.s === 0;
8015
+ };
8016
+ P.lessThan = P.lt = function(y2) {
8017
+ return this.cmp(y2) < 0;
8018
+ };
8019
+ P.lessThanOrEqualTo = P.lte = function(y2) {
8020
+ return this.cmp(y2) < 1;
8021
+ };
8022
+ P.logarithm = P.log = function(base) {
8023
+ var r, x2 = this, Ctor = x2.constructor, pr = Ctor.precision, wpr = pr + 5;
8024
+ if (base === void 0) {
8025
+ base = new Ctor(10);
8026
+ } else {
8027
+ base = new Ctor(base);
8028
+ if (base.s < 1 || base.eq(ONE)) throw Error(decimalError + "NaN");
8029
+ }
8030
+ if (x2.s < 1) throw Error(decimalError + (x2.s ? "NaN" : "-Infinity"));
8031
+ if (x2.eq(ONE)) return new Ctor(0);
8032
+ external = false;
8033
+ r = divide(ln(x2, wpr), ln(base, wpr), wpr);
8034
+ external = true;
8035
+ return round2(r, pr);
8036
+ };
8037
+ P.minus = P.sub = function(y2) {
8038
+ var x2 = this;
8039
+ y2 = new x2.constructor(y2);
8040
+ return x2.s == y2.s ? subtract(x2, y2) : add2(x2, (y2.s = -y2.s, y2));
8041
+ };
8042
+ P.modulo = P.mod = function(y2) {
8043
+ var q, x2 = this, Ctor = x2.constructor, pr = Ctor.precision;
8044
+ y2 = new Ctor(y2);
8045
+ if (!y2.s) throw Error(decimalError + "NaN");
8046
+ if (!x2.s) return round2(new Ctor(x2), pr);
8047
+ external = false;
8048
+ q = divide(x2, y2, 0, 1).times(y2);
8049
+ external = true;
8050
+ return x2.minus(q);
8051
+ };
8052
+ P.naturalExponential = P.exp = function() {
8053
+ return exp(this);
8054
+ };
8055
+ P.naturalLogarithm = P.ln = function() {
8056
+ return ln(this);
8057
+ };
8058
+ P.negated = P.neg = function() {
8059
+ var x2 = new this.constructor(this);
8060
+ x2.s = -x2.s || 0;
8061
+ return x2;
8062
+ };
8063
+ P.plus = P.add = function(y2) {
8064
+ var x2 = this;
8065
+ y2 = new x2.constructor(y2);
8066
+ return x2.s == y2.s ? add2(x2, y2) : subtract(x2, (y2.s = -y2.s, y2));
8067
+ };
8068
+ P.precision = P.sd = function(z) {
8069
+ var e, sd, w, x2 = this;
8070
+ if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);
8071
+ e = getBase10Exponent(x2) + 1;
8072
+ w = x2.d.length - 1;
8073
+ sd = w * LOG_BASE + 1;
8074
+ w = x2.d[w];
8075
+ if (w) {
8076
+ for (; w % 10 == 0; w /= 10) sd--;
8077
+ for (w = x2.d[0]; w >= 10; w /= 10) sd++;
8078
+ }
8079
+ return z && e > sd ? e : sd;
8080
+ };
8081
+ P.squareRoot = P.sqrt = function() {
8082
+ var e, n, pr, r, s2, t, wpr, x2 = this, Ctor = x2.constructor;
8083
+ if (x2.s < 1) {
8084
+ if (!x2.s) return new Ctor(0);
8085
+ throw Error(decimalError + "NaN");
8086
+ }
8087
+ e = getBase10Exponent(x2);
8088
+ external = false;
8089
+ s2 = Math.sqrt(+x2);
8090
+ if (s2 == 0 || s2 == 1 / 0) {
8091
+ n = digitsToString(x2.d);
8092
+ if ((n.length + e) % 2 == 0) n += "0";
8093
+ s2 = Math.sqrt(n);
8094
+ e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
8095
+ if (s2 == 1 / 0) {
8096
+ n = "5e" + e;
8097
+ } else {
8098
+ n = s2.toExponential();
8099
+ n = n.slice(0, n.indexOf("e") + 1) + e;
8100
+ }
8101
+ r = new Ctor(n);
8102
+ } else {
8103
+ r = new Ctor(s2.toString());
8104
+ }
8105
+ pr = Ctor.precision;
8106
+ s2 = wpr = pr + 3;
8107
+ for (; ; ) {
8108
+ t = r;
8109
+ r = t.plus(divide(x2, t, wpr + 2)).times(0.5);
8110
+ if (digitsToString(t.d).slice(0, wpr) === (n = digitsToString(r.d)).slice(0, wpr)) {
8111
+ n = n.slice(wpr - 3, wpr + 1);
8112
+ if (s2 == wpr && n == "4999") {
8113
+ round2(t, pr + 1, 0);
8114
+ if (t.times(t).eq(x2)) {
8115
+ r = t;
8116
+ break;
8117
+ }
8118
+ } else if (n != "9999") {
8119
+ break;
8120
+ }
8121
+ wpr += 4;
8122
+ }
8123
+ }
8124
+ external = true;
8125
+ return round2(r, pr);
8126
+ };
8127
+ P.times = P.mul = function(y2) {
8128
+ var carry, e, i, k2, r, rL, t, xdL, ydL, x2 = this, Ctor = x2.constructor, xd = x2.d, yd = (y2 = new Ctor(y2)).d;
8129
+ if (!x2.s || !y2.s) return new Ctor(0);
8130
+ y2.s *= x2.s;
8131
+ e = x2.e + y2.e;
8132
+ xdL = xd.length;
8133
+ ydL = yd.length;
8134
+ if (xdL < ydL) {
8135
+ r = xd;
8136
+ xd = yd;
8137
+ yd = r;
8138
+ rL = xdL;
8139
+ xdL = ydL;
8140
+ ydL = rL;
8141
+ }
8142
+ r = [];
8143
+ rL = xdL + ydL;
8144
+ for (i = rL; i--; ) r.push(0);
8145
+ for (i = ydL; --i >= 0; ) {
8146
+ carry = 0;
8147
+ for (k2 = xdL + i; k2 > i; ) {
8148
+ t = r[k2] + yd[i] * xd[k2 - i - 1] + carry;
8149
+ r[k2--] = t % BASE | 0;
8150
+ carry = t / BASE | 0;
8151
+ }
8152
+ r[k2] = (r[k2] + carry) % BASE | 0;
8153
+ }
8154
+ for (; !r[--rL]; ) r.pop();
8155
+ if (carry) ++e;
8156
+ else r.shift();
8157
+ y2.d = r;
8158
+ y2.e = e;
8159
+ return external ? round2(y2, Ctor.precision) : y2;
8160
+ };
8161
+ P.toDecimalPlaces = P.todp = function(dp, rm) {
8162
+ var x2 = this, Ctor = x2.constructor;
8163
+ x2 = new Ctor(x2);
8164
+ if (dp === void 0) return x2;
8165
+ checkInt32(dp, 0, MAX_DIGITS);
8166
+ if (rm === void 0) rm = Ctor.rounding;
8167
+ else checkInt32(rm, 0, 8);
8168
+ return round2(x2, dp + getBase10Exponent(x2) + 1, rm);
8169
+ };
8170
+ P.toExponential = function(dp, rm) {
8171
+ var str, x2 = this, Ctor = x2.constructor;
8172
+ if (dp === void 0) {
8173
+ str = toString2(x2, true);
8174
+ } else {
8175
+ checkInt32(dp, 0, MAX_DIGITS);
8176
+ if (rm === void 0) rm = Ctor.rounding;
8177
+ else checkInt32(rm, 0, 8);
8178
+ x2 = round2(new Ctor(x2), dp + 1, rm);
8179
+ str = toString2(x2, true, dp + 1);
8180
+ }
8181
+ return str;
8182
+ };
8183
+ P.toFixed = function(dp, rm) {
8184
+ var str, y2, x2 = this, Ctor = x2.constructor;
8185
+ if (dp === void 0) return toString2(x2);
8186
+ checkInt32(dp, 0, MAX_DIGITS);
8187
+ if (rm === void 0) rm = Ctor.rounding;
8188
+ else checkInt32(rm, 0, 8);
8189
+ y2 = round2(new Ctor(x2), dp + getBase10Exponent(x2) + 1, rm);
8190
+ str = toString2(y2.abs(), false, dp + getBase10Exponent(y2) + 1);
8191
+ return x2.isneg() && !x2.isZero() ? "-" + str : str;
8192
+ };
8193
+ P.toInteger = P.toint = function() {
8194
+ var x2 = this, Ctor = x2.constructor;
8195
+ return round2(new Ctor(x2), getBase10Exponent(x2) + 1, Ctor.rounding);
8196
+ };
8197
+ P.toNumber = function() {
8198
+ return +this;
8199
+ };
8200
+ P.toPower = P.pow = function(y2) {
8201
+ var e, k2, pr, r, sign2, yIsInt, x2 = this, Ctor = x2.constructor, guard = 12, yn = +(y2 = new Ctor(y2));
8202
+ if (!y2.s) return new Ctor(ONE);
8203
+ x2 = new Ctor(x2);
8204
+ if (!x2.s) {
8205
+ if (y2.s < 1) throw Error(decimalError + "Infinity");
8206
+ return x2;
8207
+ }
8208
+ if (x2.eq(ONE)) return x2;
8209
+ pr = Ctor.precision;
8210
+ if (y2.eq(ONE)) return round2(x2, pr);
8211
+ e = y2.e;
8212
+ k2 = y2.d.length - 1;
8213
+ yIsInt = e >= k2;
8214
+ sign2 = x2.s;
8215
+ if (!yIsInt) {
8216
+ if (sign2 < 0) throw Error(decimalError + "NaN");
8217
+ } else if ((k2 = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
8218
+ r = new Ctor(ONE);
8219
+ e = Math.ceil(pr / LOG_BASE + 4);
8220
+ external = false;
8221
+ for (; ; ) {
8222
+ if (k2 % 2) {
8223
+ r = r.times(x2);
8224
+ truncate(r.d, e);
8225
+ }
8226
+ k2 = mathfloor(k2 / 2);
8227
+ if (k2 === 0) break;
8228
+ x2 = x2.times(x2);
8229
+ truncate(x2.d, e);
8230
+ }
8231
+ external = true;
8232
+ return y2.s < 0 ? new Ctor(ONE).div(r) : round2(r, pr);
8233
+ }
8234
+ sign2 = sign2 < 0 && y2.d[Math.max(e, k2)] & 1 ? -1 : 1;
8235
+ x2.s = 1;
8236
+ external = false;
8237
+ r = y2.times(ln(x2, pr + guard));
8238
+ external = true;
8239
+ r = exp(r);
8240
+ r.s = sign2;
8241
+ return r;
8242
+ };
8243
+ P.toPrecision = function(sd, rm) {
8244
+ var e, str, x2 = this, Ctor = x2.constructor;
8245
+ if (sd === void 0) {
8246
+ e = getBase10Exponent(x2);
8247
+ str = toString2(x2, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
8248
+ } else {
8249
+ checkInt32(sd, 1, MAX_DIGITS);
8250
+ if (rm === void 0) rm = Ctor.rounding;
8251
+ else checkInt32(rm, 0, 8);
8252
+ x2 = round2(new Ctor(x2), sd, rm);
8253
+ e = getBase10Exponent(x2);
8254
+ str = toString2(x2, sd <= e || e <= Ctor.toExpNeg, sd);
8255
+ }
8256
+ return str;
8257
+ };
8258
+ P.toSignificantDigits = P.tosd = function(sd, rm) {
8259
+ var x2 = this, Ctor = x2.constructor;
8260
+ if (sd === void 0) {
8261
+ sd = Ctor.precision;
8262
+ rm = Ctor.rounding;
8263
+ } else {
8264
+ checkInt32(sd, 1, MAX_DIGITS);
8265
+ if (rm === void 0) rm = Ctor.rounding;
8266
+ else checkInt32(rm, 0, 8);
8267
+ }
8268
+ return round2(new Ctor(x2), sd, rm);
8269
+ };
8270
+ P.toString = P.valueOf = P.val = P.toJSON = function() {
8271
+ var x2 = this, e = getBase10Exponent(x2), Ctor = x2.constructor;
8272
+ return toString2(x2, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
8273
+ };
8274
+ function add2(x2, y2) {
8275
+ var carry, d, e, i, k2, len, xd, yd, Ctor = x2.constructor, pr = Ctor.precision;
8276
+ if (!x2.s || !y2.s) {
8277
+ if (!y2.s) y2 = new Ctor(x2);
8278
+ return external ? round2(y2, pr) : y2;
8279
+ }
8280
+ xd = x2.d;
8281
+ yd = y2.d;
8282
+ k2 = x2.e;
8283
+ e = y2.e;
8284
+ xd = xd.slice();
8285
+ i = k2 - e;
8286
+ if (i) {
8287
+ if (i < 0) {
8288
+ d = xd;
8289
+ i = -i;
8290
+ len = yd.length;
8291
+ } else {
8292
+ d = yd;
8293
+ e = k2;
8294
+ len = xd.length;
8295
+ }
8296
+ k2 = Math.ceil(pr / LOG_BASE);
8297
+ len = k2 > len ? k2 + 1 : len + 1;
8298
+ if (i > len) {
8299
+ i = len;
8300
+ d.length = 1;
8301
+ }
8302
+ d.reverse();
8303
+ for (; i--; ) d.push(0);
8304
+ d.reverse();
8305
+ }
8306
+ len = xd.length;
8307
+ i = yd.length;
8308
+ if (len - i < 0) {
8309
+ i = len;
8310
+ d = yd;
8311
+ yd = xd;
8312
+ xd = d;
8313
+ }
8314
+ for (carry = 0; i; ) {
8315
+ carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
8316
+ xd[i] %= BASE;
8317
+ }
8318
+ if (carry) {
8319
+ xd.unshift(carry);
8320
+ ++e;
8321
+ }
8322
+ for (len = xd.length; xd[--len] == 0; ) xd.pop();
8323
+ y2.d = xd;
8324
+ y2.e = e;
8325
+ return external ? round2(y2, pr) : y2;
8326
+ }
8327
+ function checkInt32(i, min2, max2) {
8328
+ if (i !== ~~i || i < min2 || i > max2) {
8329
+ throw Error(invalidArgument + i);
8021
8330
  }
8022
8331
  }
8023
- function useSyncExternalStore$1(subscribe, getSnapshot) {
8024
- return getSnapshot();
8025
- }
8026
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
8027
- var React60 = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is3, useState48 = React60.useState, useEffect38 = React60.useEffect, useLayoutEffect10 = React60.useLayoutEffect, useDebugValue2 = React60.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
8028
- exports.useSyncExternalStore = void 0 !== React60.useSyncExternalStore ? React60.useSyncExternalStore : shim;
8029
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
8030
- })();
8031
- }
8032
- });
8033
-
8034
- // ../../node_modules/use-sync-external-store/shim/index.js
8035
- var require_shim = __commonJS({
8036
- "../../node_modules/use-sync-external-store/shim/index.js"(exports, module) {
8037
- if (process.env.NODE_ENV === "production") {
8038
- module.exports = require_use_sync_external_store_shim_production();
8039
- } else {
8040
- module.exports = require_use_sync_external_store_shim_development();
8041
- }
8042
- }
8043
- });
8044
-
8045
- // ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
8046
- var require_with_selector_production = __commonJS({
8047
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js"(exports) {
8048
- var React60 = __require("react");
8049
- var shim = require_shim();
8050
- function is3(x2, y2) {
8051
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
8052
- }
8053
- var objectIs = "function" === typeof Object.is ? Object.is : is3;
8054
- var useSyncExternalStore3 = shim.useSyncExternalStore;
8055
- var useRef36 = React60.useRef;
8056
- var useEffect38 = React60.useEffect;
8057
- var useMemo30 = React60.useMemo;
8058
- var useDebugValue2 = React60.useDebugValue;
8059
- exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual2) {
8060
- var instRef = useRef36(null);
8061
- if (null === instRef.current) {
8062
- var inst = { hasValue: false, value: null };
8063
- instRef.current = inst;
8064
- } else inst = instRef.current;
8065
- instRef = useMemo30(
8066
- function() {
8067
- function memoizedSelector(nextSnapshot) {
8068
- if (!hasMemo) {
8069
- hasMemo = true;
8070
- memoizedSnapshot = nextSnapshot;
8071
- nextSnapshot = selector(nextSnapshot);
8072
- if (void 0 !== isEqual2 && inst.hasValue) {
8073
- var currentSelection = inst.value;
8074
- if (isEqual2(currentSelection, nextSnapshot))
8075
- return memoizedSelection = currentSelection;
8332
+ function digitsToString(d) {
8333
+ var i, k2, ws, indexOfLastWord = d.length - 1, str = "", w = d[0];
8334
+ if (indexOfLastWord > 0) {
8335
+ str += w;
8336
+ for (i = 1; i < indexOfLastWord; i++) {
8337
+ ws = d[i] + "";
8338
+ k2 = LOG_BASE - ws.length;
8339
+ if (k2) str += getZeroString(k2);
8340
+ str += ws;
8341
+ }
8342
+ w = d[i];
8343
+ ws = w + "";
8344
+ k2 = LOG_BASE - ws.length;
8345
+ if (k2) str += getZeroString(k2);
8346
+ } else if (w === 0) {
8347
+ return "0";
8348
+ }
8349
+ for (; w % 10 === 0; ) w /= 10;
8350
+ return str + w;
8351
+ }
8352
+ var divide = /* @__PURE__ */ (function() {
8353
+ function multiplyInteger(x2, k2) {
8354
+ var temp, carry = 0, i = x2.length;
8355
+ for (x2 = x2.slice(); i--; ) {
8356
+ temp = x2[i] * k2 + carry;
8357
+ x2[i] = temp % BASE | 0;
8358
+ carry = temp / BASE | 0;
8359
+ }
8360
+ if (carry) x2.unshift(carry);
8361
+ return x2;
8362
+ }
8363
+ function compare(a2, b, aL, bL) {
8364
+ var i, r;
8365
+ if (aL != bL) {
8366
+ r = aL > bL ? 1 : -1;
8367
+ } else {
8368
+ for (i = r = 0; i < aL; i++) {
8369
+ if (a2[i] != b[i]) {
8370
+ r = a2[i] > b[i] ? 1 : -1;
8371
+ break;
8076
8372
  }
8077
- return memoizedSelection = nextSnapshot;
8078
8373
  }
8079
- currentSelection = memoizedSelection;
8080
- if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
8081
- var nextSelection = selector(nextSnapshot);
8082
- if (void 0 !== isEqual2 && isEqual2(currentSelection, nextSelection))
8083
- return memoizedSnapshot = nextSnapshot, currentSelection;
8084
- memoizedSnapshot = nextSnapshot;
8085
- return memoizedSelection = nextSelection;
8086
8374
  }
8087
- var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
8088
- return [
8089
- function() {
8090
- return memoizedSelector(getSnapshot());
8091
- },
8092
- null === maybeGetServerSnapshot ? void 0 : function() {
8093
- return memoizedSelector(maybeGetServerSnapshot());
8375
+ return r;
8376
+ }
8377
+ function subtract2(a2, b, aL) {
8378
+ var i = 0;
8379
+ for (; aL--; ) {
8380
+ a2[aL] -= i;
8381
+ i = a2[aL] < b[aL] ? 1 : 0;
8382
+ a2[aL] = i * BASE + a2[aL] - b[aL];
8383
+ }
8384
+ for (; !a2[0] && a2.length > 1; ) a2.shift();
8385
+ }
8386
+ return function(x2, y2, pr, dp) {
8387
+ var cmp, e, i, k2, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0, yL, yz, Ctor = x2.constructor, sign2 = x2.s == y2.s ? 1 : -1, xd = x2.d, yd = y2.d;
8388
+ if (!x2.s) return new Ctor(x2);
8389
+ if (!y2.s) throw Error(decimalError + "Division by zero");
8390
+ e = x2.e - y2.e;
8391
+ yL = yd.length;
8392
+ xL = xd.length;
8393
+ q = new Ctor(sign2);
8394
+ qd = q.d = [];
8395
+ for (i = 0; yd[i] == (xd[i] || 0); ) ++i;
8396
+ if (yd[i] > (xd[i] || 0)) --e;
8397
+ if (pr == null) {
8398
+ sd = pr = Ctor.precision;
8399
+ } else if (dp) {
8400
+ sd = pr + (getBase10Exponent(x2) - getBase10Exponent(y2)) + 1;
8401
+ } else {
8402
+ sd = pr;
8403
+ }
8404
+ if (sd < 0) return new Ctor(0);
8405
+ sd = sd / LOG_BASE + 2 | 0;
8406
+ i = 0;
8407
+ if (yL == 1) {
8408
+ k2 = 0;
8409
+ yd = yd[0];
8410
+ sd++;
8411
+ for (; (i < xL || k2) && sd--; i++) {
8412
+ t = k2 * BASE + (xd[i] || 0);
8413
+ qd[i] = t / yd | 0;
8414
+ k2 = t % yd | 0;
8094
8415
  }
8095
- ];
8096
- },
8097
- [getSnapshot, getServerSnapshot, selector, isEqual2]
8098
- );
8099
- var value = useSyncExternalStore3(subscribe, instRef[0], instRef[1]);
8100
- useEffect38(
8101
- function() {
8102
- inst.hasValue = true;
8103
- inst.value = value;
8104
- },
8105
- [value]
8106
- );
8107
- useDebugValue2(value);
8108
- return value;
8109
- };
8110
- }
8111
- });
8112
-
8113
- // ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
8114
- var require_with_selector_development = __commonJS({
8115
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
8116
- "production" !== process.env.NODE_ENV && (function() {
8117
- function is3(x2, y2) {
8118
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
8119
- }
8120
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
8121
- var React60 = __require("react"), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is3, useSyncExternalStore3 = shim.useSyncExternalStore, useRef36 = React60.useRef, useEffect38 = React60.useEffect, useMemo30 = React60.useMemo, useDebugValue2 = React60.useDebugValue;
8122
- exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual2) {
8123
- var instRef = useRef36(null);
8124
- if (null === instRef.current) {
8125
- var inst = { hasValue: false, value: null };
8126
- instRef.current = inst;
8127
- } else inst = instRef.current;
8128
- instRef = useMemo30(
8129
- function() {
8130
- function memoizedSelector(nextSnapshot) {
8131
- if (!hasMemo) {
8132
- hasMemo = true;
8133
- memoizedSnapshot = nextSnapshot;
8134
- nextSnapshot = selector(nextSnapshot);
8135
- if (void 0 !== isEqual2 && inst.hasValue) {
8136
- var currentSelection = inst.value;
8137
- if (isEqual2(currentSelection, nextSnapshot))
8138
- return memoizedSelection = currentSelection;
8416
+ } else {
8417
+ k2 = BASE / (yd[0] + 1) | 0;
8418
+ if (k2 > 1) {
8419
+ yd = multiplyInteger(yd, k2);
8420
+ xd = multiplyInteger(xd, k2);
8421
+ yL = yd.length;
8422
+ xL = xd.length;
8423
+ }
8424
+ xi = yL;
8425
+ rem = xd.slice(0, yL);
8426
+ remL = rem.length;
8427
+ for (; remL < yL; ) rem[remL++] = 0;
8428
+ yz = yd.slice();
8429
+ yz.unshift(0);
8430
+ yd0 = yd[0];
8431
+ if (yd[1] >= BASE / 2) ++yd0;
8432
+ do {
8433
+ k2 = 0;
8434
+ cmp = compare(yd, rem, yL, remL);
8435
+ if (cmp < 0) {
8436
+ rem0 = rem[0];
8437
+ if (yL != remL) rem0 = rem0 * BASE + (rem[1] || 0);
8438
+ k2 = rem0 / yd0 | 0;
8439
+ if (k2 > 1) {
8440
+ if (k2 >= BASE) k2 = BASE - 1;
8441
+ prod = multiplyInteger(yd, k2);
8442
+ prodL = prod.length;
8443
+ remL = rem.length;
8444
+ cmp = compare(prod, rem, prodL, remL);
8445
+ if (cmp == 1) {
8446
+ k2--;
8447
+ subtract2(prod, yL < prodL ? yz : yd, prodL);
8448
+ }
8449
+ } else {
8450
+ if (k2 == 0) cmp = k2 = 1;
8451
+ prod = yd.slice();
8139
8452
  }
8140
- return memoizedSelection = nextSnapshot;
8453
+ prodL = prod.length;
8454
+ if (prodL < remL) prod.unshift(0);
8455
+ subtract2(rem, prod, remL);
8456
+ if (cmp == -1) {
8457
+ remL = rem.length;
8458
+ cmp = compare(yd, rem, yL, remL);
8459
+ if (cmp < 1) {
8460
+ k2++;
8461
+ subtract2(rem, yL < remL ? yz : yd, remL);
8462
+ }
8463
+ }
8464
+ remL = rem.length;
8465
+ } else if (cmp === 0) {
8466
+ k2++;
8467
+ rem = [0];
8141
8468
  }
8142
- currentSelection = memoizedSelection;
8143
- if (objectIs(memoizedSnapshot, nextSnapshot))
8144
- return currentSelection;
8145
- var nextSelection = selector(nextSnapshot);
8146
- if (void 0 !== isEqual2 && isEqual2(currentSelection, nextSelection))
8147
- return memoizedSnapshot = nextSnapshot, currentSelection;
8148
- memoizedSnapshot = nextSnapshot;
8149
- return memoizedSelection = nextSelection;
8150
- }
8151
- var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
8152
- return [
8153
- function() {
8154
- return memoizedSelector(getSnapshot());
8155
- },
8156
- null === maybeGetServerSnapshot ? void 0 : function() {
8157
- return memoizedSelector(maybeGetServerSnapshot());
8469
+ qd[i++] = k2;
8470
+ if (cmp && rem[0]) {
8471
+ rem[remL++] = xd[xi] || 0;
8472
+ } else {
8473
+ rem = [xd[xi]];
8474
+ remL = 1;
8158
8475
  }
8159
- ];
8160
- },
8161
- [getSnapshot, getServerSnapshot, selector, isEqual2]
8162
- );
8163
- var value = useSyncExternalStore3(subscribe, instRef[0], instRef[1]);
8164
- useEffect38(
8165
- function() {
8166
- inst.hasValue = true;
8167
- inst.value = value;
8168
- },
8169
- [value]
8170
- );
8171
- useDebugValue2(value);
8172
- return value;
8173
- };
8174
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
8175
- })();
8176
- }
8177
- });
8178
-
8179
- // ../../node_modules/use-sync-external-store/shim/with-selector.js
8180
- var require_with_selector = __commonJS({
8181
- "../../node_modules/use-sync-external-store/shim/with-selector.js"(exports, module) {
8182
- if (process.env.NODE_ENV === "production") {
8183
- module.exports = require_with_selector_production();
8184
- } else {
8185
- module.exports = require_with_selector_development();
8186
- }
8187
- }
8188
- });
8189
-
8190
- // ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js
8191
- var require_use_sync_external_store_with_selector_production = __commonJS({
8192
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"(exports) {
8193
- var React60 = __require("react");
8194
- function is3(x2, y2) {
8195
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
8196
- }
8197
- var objectIs = "function" === typeof Object.is ? Object.is : is3;
8198
- var useSyncExternalStore3 = React60.useSyncExternalStore;
8199
- var useRef36 = React60.useRef;
8200
- var useEffect38 = React60.useEffect;
8201
- var useMemo30 = React60.useMemo;
8202
- var useDebugValue2 = React60.useDebugValue;
8203
- exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual2) {
8204
- var instRef = useRef36(null);
8205
- if (null === instRef.current) {
8206
- var inst = { hasValue: false, value: null };
8207
- instRef.current = inst;
8208
- } else inst = instRef.current;
8209
- instRef = useMemo30(
8210
- function() {
8211
- function memoizedSelector(nextSnapshot) {
8212
- if (!hasMemo) {
8213
- hasMemo = true;
8214
- memoizedSnapshot = nextSnapshot;
8215
- nextSnapshot = selector(nextSnapshot);
8216
- if (void 0 !== isEqual2 && inst.hasValue) {
8217
- var currentSelection = inst.value;
8218
- if (isEqual2(currentSelection, nextSnapshot))
8219
- return memoizedSelection = currentSelection;
8476
+ } while ((xi++ < xL || rem[0] !== void 0) && sd--);
8477
+ }
8478
+ if (!qd[0]) qd.shift();
8479
+ q.e = e;
8480
+ return round2(q, dp ? pr + getBase10Exponent(q) + 1 : pr);
8481
+ };
8482
+ })();
8483
+ function exp(x2, sd) {
8484
+ var denominator, guard, pow2, sum, t, wpr, i = 0, k2 = 0, Ctor = x2.constructor, pr = Ctor.precision;
8485
+ if (getBase10Exponent(x2) > 16) throw Error(exponentOutOfRange + getBase10Exponent(x2));
8486
+ if (!x2.s) return new Ctor(ONE);
8487
+ {
8488
+ external = false;
8489
+ wpr = pr;
8490
+ }
8491
+ t = new Ctor(0.03125);
8492
+ while (x2.abs().gte(0.1)) {
8493
+ x2 = x2.times(t);
8494
+ k2 += 5;
8495
+ }
8496
+ guard = Math.log(mathpow(2, k2)) / Math.LN10 * 2 + 5 | 0;
8497
+ wpr += guard;
8498
+ denominator = pow2 = sum = new Ctor(ONE);
8499
+ Ctor.precision = wpr;
8500
+ for (; ; ) {
8501
+ pow2 = round2(pow2.times(x2), wpr);
8502
+ denominator = denominator.times(++i);
8503
+ t = sum.plus(divide(pow2, denominator, wpr));
8504
+ if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
8505
+ while (k2--) sum = round2(sum.times(sum), wpr);
8506
+ Ctor.precision = pr;
8507
+ return sd == null ? (external = true, round2(sum, pr)) : sum;
8508
+ }
8509
+ sum = t;
8510
+ }
8511
+ }
8512
+ function getBase10Exponent(x2) {
8513
+ var e = x2.e * LOG_BASE, w = x2.d[0];
8514
+ for (; w >= 10; w /= 10) e++;
8515
+ return e;
8516
+ }
8517
+ function getLn10(Ctor, sd, pr) {
8518
+ if (sd > Ctor.LN10.sd()) {
8519
+ external = true;
8520
+ if (pr) Ctor.precision = pr;
8521
+ throw Error(decimalError + "LN10 precision limit exceeded");
8522
+ }
8523
+ return round2(new Ctor(Ctor.LN10), sd);
8524
+ }
8525
+ function getZeroString(k2) {
8526
+ var zs = "";
8527
+ for (; k2--; ) zs += "0";
8528
+ return zs;
8529
+ }
8530
+ function ln(y2, sd) {
8531
+ var c2, c0, denominator, e, numerator, sum, t, wpr, x2, n = 1, guard = 10, x3 = y2, xd = x3.d, Ctor = x3.constructor, pr = Ctor.precision;
8532
+ if (x3.s < 1) throw Error(decimalError + (x3.s ? "NaN" : "-Infinity"));
8533
+ if (x3.eq(ONE)) return new Ctor(0);
8534
+ if (sd == null) {
8535
+ external = false;
8536
+ wpr = pr;
8537
+ } else {
8538
+ wpr = sd;
8539
+ }
8540
+ if (x3.eq(10)) {
8541
+ if (sd == null) external = true;
8542
+ return getLn10(Ctor, wpr);
8543
+ }
8544
+ wpr += guard;
8545
+ Ctor.precision = wpr;
8546
+ c2 = digitsToString(xd);
8547
+ c0 = c2.charAt(0);
8548
+ e = getBase10Exponent(x3);
8549
+ if (Math.abs(e) < 15e14) {
8550
+ while (c0 < 7 && c0 != 1 || c0 == 1 && c2.charAt(1) > 3) {
8551
+ x3 = x3.times(y2);
8552
+ c2 = digitsToString(x3.d);
8553
+ c0 = c2.charAt(0);
8554
+ n++;
8555
+ }
8556
+ e = getBase10Exponent(x3);
8557
+ if (c0 > 1) {
8558
+ x3 = new Ctor("0." + c2);
8559
+ e++;
8560
+ } else {
8561
+ x3 = new Ctor(c0 + "." + c2.slice(1));
8562
+ }
8563
+ } else {
8564
+ t = getLn10(Ctor, wpr + 2, pr).times(e + "");
8565
+ x3 = ln(new Ctor(c0 + "." + c2.slice(1)), wpr - guard).plus(t);
8566
+ Ctor.precision = pr;
8567
+ return sd == null ? (external = true, round2(x3, pr)) : x3;
8568
+ }
8569
+ sum = numerator = x3 = divide(x3.minus(ONE), x3.plus(ONE), wpr);
8570
+ x2 = round2(x3.times(x3), wpr);
8571
+ denominator = 3;
8572
+ for (; ; ) {
8573
+ numerator = round2(numerator.times(x2), wpr);
8574
+ t = sum.plus(divide(numerator, new Ctor(denominator), wpr));
8575
+ if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
8576
+ sum = sum.times(2);
8577
+ if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ""));
8578
+ sum = divide(sum, new Ctor(n), wpr);
8579
+ Ctor.precision = pr;
8580
+ return sd == null ? (external = true, round2(sum, pr)) : sum;
8581
+ }
8582
+ sum = t;
8583
+ denominator += 2;
8584
+ }
8585
+ }
8586
+ function parseDecimal(x2, str) {
8587
+ var e, i, len;
8588
+ if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
8589
+ if ((i = str.search(/e/i)) > 0) {
8590
+ if (e < 0) e = i;
8591
+ e += +str.slice(i + 1);
8592
+ str = str.substring(0, i);
8593
+ } else if (e < 0) {
8594
+ e = str.length;
8595
+ }
8596
+ for (i = 0; str.charCodeAt(i) === 48; ) ++i;
8597
+ for (len = str.length; str.charCodeAt(len - 1) === 48; ) --len;
8598
+ str = str.slice(i, len);
8599
+ if (str) {
8600
+ len -= i;
8601
+ e = e - i - 1;
8602
+ x2.e = mathfloor(e / LOG_BASE);
8603
+ x2.d = [];
8604
+ i = (e + 1) % LOG_BASE;
8605
+ if (e < 0) i += LOG_BASE;
8606
+ if (i < len) {
8607
+ if (i) x2.d.push(+str.slice(0, i));
8608
+ for (len -= LOG_BASE; i < len; ) x2.d.push(+str.slice(i, i += LOG_BASE));
8609
+ str = str.slice(i);
8610
+ i = LOG_BASE - str.length;
8611
+ } else {
8612
+ i -= len;
8613
+ }
8614
+ for (; i--; ) str += "0";
8615
+ x2.d.push(+str);
8616
+ if (external && (x2.e > MAX_E || x2.e < -MAX_E)) throw Error(exponentOutOfRange + e);
8617
+ } else {
8618
+ x2.s = 0;
8619
+ x2.e = 0;
8620
+ x2.d = [0];
8621
+ }
8622
+ return x2;
8623
+ }
8624
+ function round2(x2, sd, rm) {
8625
+ var i, j, k2, n, rd, doRound, w, xdi, xd = x2.d;
8626
+ for (n = 1, k2 = xd[0]; k2 >= 10; k2 /= 10) n++;
8627
+ i = sd - n;
8628
+ if (i < 0) {
8629
+ i += LOG_BASE;
8630
+ j = sd;
8631
+ w = xd[xdi = 0];
8632
+ } else {
8633
+ xdi = Math.ceil((i + 1) / LOG_BASE);
8634
+ k2 = xd.length;
8635
+ if (xdi >= k2) return x2;
8636
+ w = k2 = xd[xdi];
8637
+ for (n = 1; k2 >= 10; k2 /= 10) n++;
8638
+ i %= LOG_BASE;
8639
+ j = i - LOG_BASE + n;
8640
+ }
8641
+ if (rm !== void 0) {
8642
+ k2 = mathpow(10, n - j - 1);
8643
+ rd = w / k2 % 10 | 0;
8644
+ doRound = sd < 0 || xd[xdi + 1] !== void 0 || w % k2;
8645
+ doRound = rm < 4 ? (rd || doRound) && (rm == 0 || rm == (x2.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || doRound || rm == 6 && // Check whether the digit to the left of the rounding digit is odd.
8646
+ (i > 0 ? j > 0 ? w / mathpow(10, n - j) : 0 : xd[xdi - 1]) % 10 & 1 || rm == (x2.s < 0 ? 8 : 7));
8647
+ }
8648
+ if (sd < 1 || !xd[0]) {
8649
+ if (doRound) {
8650
+ k2 = getBase10Exponent(x2);
8651
+ xd.length = 1;
8652
+ sd = sd - k2 - 1;
8653
+ xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);
8654
+ x2.e = mathfloor(-sd / LOG_BASE) || 0;
8655
+ } else {
8656
+ xd.length = 1;
8657
+ xd[0] = x2.e = x2.s = 0;
8658
+ }
8659
+ return x2;
8660
+ }
8661
+ if (i == 0) {
8662
+ xd.length = xdi;
8663
+ k2 = 1;
8664
+ xdi--;
8665
+ } else {
8666
+ xd.length = xdi + 1;
8667
+ k2 = mathpow(10, LOG_BASE - i);
8668
+ xd[xdi] = j > 0 ? (w / mathpow(10, n - j) % mathpow(10, j) | 0) * k2 : 0;
8669
+ }
8670
+ if (doRound) {
8671
+ for (; ; ) {
8672
+ if (xdi == 0) {
8673
+ if ((xd[0] += k2) == BASE) {
8674
+ xd[0] = 1;
8675
+ ++x2.e;
8220
8676
  }
8221
- return memoizedSelection = nextSnapshot;
8677
+ break;
8678
+ } else {
8679
+ xd[xdi] += k2;
8680
+ if (xd[xdi] != BASE) break;
8681
+ xd[xdi--] = 0;
8682
+ k2 = 1;
8222
8683
  }
8223
- currentSelection = memoizedSelection;
8224
- if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
8225
- var nextSelection = selector(nextSnapshot);
8226
- if (void 0 !== isEqual2 && isEqual2(currentSelection, nextSelection))
8227
- return memoizedSnapshot = nextSnapshot, currentSelection;
8228
- memoizedSnapshot = nextSnapshot;
8229
- return memoizedSelection = nextSelection;
8230
8684
  }
8231
- var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
8232
- return [
8233
- function() {
8234
- return memoizedSelector(getSnapshot());
8235
- },
8236
- null === maybeGetServerSnapshot ? void 0 : function() {
8237
- return memoizedSelector(maybeGetServerSnapshot());
8685
+ }
8686
+ for (i = xd.length; xd[--i] === 0; ) xd.pop();
8687
+ if (external && (x2.e > MAX_E || x2.e < -MAX_E)) {
8688
+ throw Error(exponentOutOfRange + getBase10Exponent(x2));
8689
+ }
8690
+ return x2;
8691
+ }
8692
+ function subtract(x2, y2) {
8693
+ var d, e, i, j, k2, len, xd, xe, xLTy, yd, Ctor = x2.constructor, pr = Ctor.precision;
8694
+ if (!x2.s || !y2.s) {
8695
+ if (y2.s) y2.s = -y2.s;
8696
+ else y2 = new Ctor(x2);
8697
+ return external ? round2(y2, pr) : y2;
8698
+ }
8699
+ xd = x2.d;
8700
+ yd = y2.d;
8701
+ e = y2.e;
8702
+ xe = x2.e;
8703
+ xd = xd.slice();
8704
+ k2 = xe - e;
8705
+ if (k2) {
8706
+ xLTy = k2 < 0;
8707
+ if (xLTy) {
8708
+ d = xd;
8709
+ k2 = -k2;
8710
+ len = yd.length;
8711
+ } else {
8712
+ d = yd;
8713
+ e = xe;
8714
+ len = xd.length;
8715
+ }
8716
+ i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;
8717
+ if (k2 > i) {
8718
+ k2 = i;
8719
+ d.length = 1;
8720
+ }
8721
+ d.reverse();
8722
+ for (i = k2; i--; ) d.push(0);
8723
+ d.reverse();
8724
+ } else {
8725
+ i = xd.length;
8726
+ len = yd.length;
8727
+ xLTy = i < len;
8728
+ if (xLTy) len = i;
8729
+ for (i = 0; i < len; i++) {
8730
+ if (xd[i] != yd[i]) {
8731
+ xLTy = xd[i] < yd[i];
8732
+ break;
8238
8733
  }
8239
- ];
8240
- },
8241
- [getSnapshot, getServerSnapshot, selector, isEqual2]
8242
- );
8243
- var value = useSyncExternalStore3(subscribe, instRef[0], instRef[1]);
8244
- useEffect38(
8245
- function() {
8246
- inst.hasValue = true;
8247
- inst.value = value;
8248
- },
8249
- [value]
8250
- );
8251
- useDebugValue2(value);
8252
- return value;
8253
- };
8254
- }
8255
- });
8256
-
8257
- // ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js
8258
- var require_use_sync_external_store_with_selector_development = __commonJS({
8259
- "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js"(exports) {
8260
- "production" !== process.env.NODE_ENV && (function() {
8261
- function is3(x2, y2) {
8262
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
8263
- }
8264
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
8265
- var React60 = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is3, useSyncExternalStore3 = React60.useSyncExternalStore, useRef36 = React60.useRef, useEffect38 = React60.useEffect, useMemo30 = React60.useMemo, useDebugValue2 = React60.useDebugValue;
8266
- exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual2) {
8267
- var instRef = useRef36(null);
8268
- if (null === instRef.current) {
8269
- var inst = { hasValue: false, value: null };
8270
- instRef.current = inst;
8271
- } else inst = instRef.current;
8272
- instRef = useMemo30(
8273
- function() {
8274
- function memoizedSelector(nextSnapshot) {
8275
- if (!hasMemo) {
8276
- hasMemo = true;
8277
- memoizedSnapshot = nextSnapshot;
8278
- nextSnapshot = selector(nextSnapshot);
8279
- if (void 0 !== isEqual2 && inst.hasValue) {
8280
- var currentSelection = inst.value;
8281
- if (isEqual2(currentSelection, nextSnapshot))
8282
- return memoizedSelection = currentSelection;
8283
- }
8284
- return memoizedSelection = nextSnapshot;
8285
- }
8286
- currentSelection = memoizedSelection;
8287
- if (objectIs(memoizedSnapshot, nextSnapshot))
8288
- return currentSelection;
8289
- var nextSelection = selector(nextSnapshot);
8290
- if (void 0 !== isEqual2 && isEqual2(currentSelection, nextSelection))
8291
- return memoizedSnapshot = nextSnapshot, currentSelection;
8292
- memoizedSnapshot = nextSnapshot;
8293
- return memoizedSelection = nextSelection;
8734
+ }
8735
+ k2 = 0;
8736
+ }
8737
+ if (xLTy) {
8738
+ d = xd;
8739
+ xd = yd;
8740
+ yd = d;
8741
+ y2.s = -y2.s;
8742
+ }
8743
+ len = xd.length;
8744
+ for (i = yd.length - len; i > 0; --i) xd[len++] = 0;
8745
+ for (i = yd.length; i > k2; ) {
8746
+ if (xd[--i] < yd[i]) {
8747
+ for (j = i; j && xd[--j] === 0; ) xd[j] = BASE - 1;
8748
+ --xd[j];
8749
+ xd[i] += BASE;
8750
+ }
8751
+ xd[i] -= yd[i];
8752
+ }
8753
+ for (; xd[--len] === 0; ) xd.pop();
8754
+ for (; xd[0] === 0; xd.shift()) --e;
8755
+ if (!xd[0]) return new Ctor(0);
8756
+ y2.d = xd;
8757
+ y2.e = e;
8758
+ return external ? round2(y2, pr) : y2;
8759
+ }
8760
+ function toString2(x2, isExp, sd) {
8761
+ var k2, e = getBase10Exponent(x2), str = digitsToString(x2.d), len = str.length;
8762
+ if (isExp) {
8763
+ if (sd && (k2 = sd - len) > 0) {
8764
+ str = str.charAt(0) + "." + str.slice(1) + getZeroString(k2);
8765
+ } else if (len > 1) {
8766
+ str = str.charAt(0) + "." + str.slice(1);
8767
+ }
8768
+ str = str + (e < 0 ? "e" : "e+") + e;
8769
+ } else if (e < 0) {
8770
+ str = "0." + getZeroString(-e - 1) + str;
8771
+ if (sd && (k2 = sd - len) > 0) str += getZeroString(k2);
8772
+ } else if (e >= len) {
8773
+ str += getZeroString(e + 1 - len);
8774
+ if (sd && (k2 = sd - e - 1) > 0) str = str + "." + getZeroString(k2);
8775
+ } else {
8776
+ if ((k2 = e + 1) < len) str = str.slice(0, k2) + "." + str.slice(k2);
8777
+ if (sd && (k2 = sd - len) > 0) {
8778
+ if (e + 1 === len) str += ".";
8779
+ str += getZeroString(k2);
8780
+ }
8781
+ }
8782
+ return x2.s < 0 ? "-" + str : str;
8783
+ }
8784
+ function truncate(arr, len) {
8785
+ if (arr.length > len) {
8786
+ arr.length = len;
8787
+ return true;
8788
+ }
8789
+ }
8790
+ function clone(obj) {
8791
+ var i, p, ps;
8792
+ function Decimal4(value) {
8793
+ var x2 = this;
8794
+ if (!(x2 instanceof Decimal4)) return new Decimal4(value);
8795
+ x2.constructor = Decimal4;
8796
+ if (value instanceof Decimal4) {
8797
+ x2.s = value.s;
8798
+ x2.e = value.e;
8799
+ x2.d = (value = value.d) ? value.slice() : value;
8800
+ return;
8801
+ }
8802
+ if (typeof value === "number") {
8803
+ if (value * 0 !== 0) {
8804
+ throw Error(invalidArgument + value);
8294
8805
  }
8295
- var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
8296
- return [
8297
- function() {
8298
- return memoizedSelector(getSnapshot());
8299
- },
8300
- null === maybeGetServerSnapshot ? void 0 : function() {
8301
- return memoizedSelector(maybeGetServerSnapshot());
8302
- }
8303
- ];
8304
- },
8305
- [getSnapshot, getServerSnapshot, selector, isEqual2]
8306
- );
8307
- var value = useSyncExternalStore3(subscribe, instRef[0], instRef[1]);
8308
- useEffect38(
8309
- function() {
8310
- inst.hasValue = true;
8311
- inst.value = value;
8312
- },
8313
- [value]
8314
- );
8315
- useDebugValue2(value);
8316
- return value;
8317
- };
8318
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
8319
- })();
8320
- }
8321
- });
8322
-
8323
- // ../../node_modules/use-sync-external-store/with-selector.js
8324
- var require_with_selector2 = __commonJS({
8325
- "../../node_modules/use-sync-external-store/with-selector.js"(exports, module) {
8326
- if (process.env.NODE_ENV === "production") {
8327
- module.exports = require_use_sync_external_store_with_selector_production();
8328
- } else {
8329
- module.exports = require_use_sync_external_store_with_selector_development();
8330
- }
8806
+ if (value > 0) {
8807
+ x2.s = 1;
8808
+ } else if (value < 0) {
8809
+ value = -value;
8810
+ x2.s = -1;
8811
+ } else {
8812
+ x2.s = 0;
8813
+ x2.e = 0;
8814
+ x2.d = [0];
8815
+ return;
8816
+ }
8817
+ if (value === ~~value && value < 1e7) {
8818
+ x2.e = 0;
8819
+ x2.d = [value];
8820
+ return;
8821
+ }
8822
+ return parseDecimal(x2, value.toString());
8823
+ } else if (typeof value !== "string") {
8824
+ throw Error(invalidArgument + value);
8825
+ }
8826
+ if (value.charCodeAt(0) === 45) {
8827
+ value = value.slice(1);
8828
+ x2.s = -1;
8829
+ } else {
8830
+ x2.s = 1;
8831
+ }
8832
+ if (isDecimal.test(value)) parseDecimal(x2, value);
8833
+ else throw Error(invalidArgument + value);
8834
+ }
8835
+ Decimal4.prototype = P;
8836
+ Decimal4.ROUND_UP = 0;
8837
+ Decimal4.ROUND_DOWN = 1;
8838
+ Decimal4.ROUND_CEIL = 2;
8839
+ Decimal4.ROUND_FLOOR = 3;
8840
+ Decimal4.ROUND_HALF_UP = 4;
8841
+ Decimal4.ROUND_HALF_DOWN = 5;
8842
+ Decimal4.ROUND_HALF_EVEN = 6;
8843
+ Decimal4.ROUND_HALF_CEIL = 7;
8844
+ Decimal4.ROUND_HALF_FLOOR = 8;
8845
+ Decimal4.clone = clone;
8846
+ Decimal4.config = Decimal4.set = config;
8847
+ if (obj === void 0) obj = {};
8848
+ if (obj) {
8849
+ ps = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"];
8850
+ for (i = 0; i < ps.length; ) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];
8851
+ }
8852
+ Decimal4.config(obj);
8853
+ return Decimal4;
8854
+ }
8855
+ function config(obj) {
8856
+ if (!obj || typeof obj !== "object") {
8857
+ throw Error(decimalError + "Object expected");
8858
+ }
8859
+ var i, p, v, ps = [
8860
+ "precision",
8861
+ 1,
8862
+ MAX_DIGITS,
8863
+ "rounding",
8864
+ 0,
8865
+ 8,
8866
+ "toExpNeg",
8867
+ -1 / 0,
8868
+ 0,
8869
+ "toExpPos",
8870
+ 0,
8871
+ 1 / 0
8872
+ ];
8873
+ for (i = 0; i < ps.length; i += 3) {
8874
+ if ((v = obj[p = ps[i]]) !== void 0) {
8875
+ if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;
8876
+ else throw Error(invalidArgument + p + ": " + v);
8877
+ }
8878
+ }
8879
+ if ((v = obj[p = "LN10"]) !== void 0) {
8880
+ if (v == Math.LN10) this[p] = new this(v);
8881
+ else throw Error(invalidArgument + p + ": " + v);
8882
+ }
8883
+ return this;
8884
+ }
8885
+ Decimal3 = clone(Decimal3);
8886
+ Decimal3["default"] = Decimal3.Decimal = Decimal3;
8887
+ ONE = new Decimal3(1);
8888
+ if (typeof define == "function" && define.amd) {
8889
+ define(function() {
8890
+ return Decimal3;
8891
+ });
8892
+ } else if (typeof module != "undefined" && module.exports) {
8893
+ module.exports = Decimal3;
8894
+ } else {
8895
+ if (!globalScope) {
8896
+ globalScope = typeof self != "undefined" && self && self.self == self ? self : Function("return this")();
8897
+ }
8898
+ globalScope.Decimal = Decimal3;
8899
+ }
8900
+ })(exports);
8331
8901
  }
8332
8902
  });
8333
8903
 
@@ -8492,147 +9062,10 @@ var require_eventemitter3 = __commonJS({
8492
9062
  }
8493
9063
  });
8494
9064
 
8495
- // ../../node_modules/react-is/cjs/react-is.production.min.js
8496
- var require_react_is_production_min = __commonJS({
8497
- "../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
8498
- var b = 60103;
8499
- var c2 = 60106;
8500
- var d = 60107;
8501
- var e = 60108;
8502
- var f = 60114;
8503
- var g = 60109;
8504
- var h = 60110;
8505
- var k2 = 60112;
8506
- var l = 60113;
8507
- var m = 60120;
8508
- var n = 60115;
8509
- var p = 60116;
8510
- var q = 60121;
8511
- var r = 60122;
8512
- var u = 60117;
8513
- var v = 60129;
8514
- var w = 60131;
8515
- if ("function" === typeof Symbol && Symbol.for) {
8516
- x2 = Symbol.for;
8517
- b = x2("react.element");
8518
- c2 = x2("react.portal");
8519
- d = x2("react.fragment");
8520
- e = x2("react.strict_mode");
8521
- f = x2("react.profiler");
8522
- g = x2("react.provider");
8523
- h = x2("react.context");
8524
- k2 = x2("react.forward_ref");
8525
- l = x2("react.suspense");
8526
- m = x2("react.suspense_list");
8527
- n = x2("react.memo");
8528
- p = x2("react.lazy");
8529
- q = x2("react.block");
8530
- r = x2("react.server.block");
8531
- u = x2("react.fundamental");
8532
- v = x2("react.debug_trace_mode");
8533
- w = x2("react.legacy_hidden");
8534
- }
8535
- var x2;
8536
- function y2(a2) {
8537
- if ("object" === typeof a2 && null !== a2) {
8538
- var t = a2.$$typeof;
8539
- switch (t) {
8540
- case b:
8541
- switch (a2 = a2.type, a2) {
8542
- case d:
8543
- case f:
8544
- case e:
8545
- case l:
8546
- case m:
8547
- return a2;
8548
- default:
8549
- switch (a2 = a2 && a2.$$typeof, a2) {
8550
- case h:
8551
- case k2:
8552
- case p:
8553
- case n:
8554
- case g:
8555
- return a2;
8556
- default:
8557
- return t;
8558
- }
8559
- }
8560
- case c2:
8561
- return t;
8562
- }
8563
- }
8564
- }
8565
- var z = g;
8566
- var A = b;
8567
- var B = k2;
8568
- var C = d;
8569
- var D = p;
8570
- var E = n;
8571
- var F = c2;
8572
- var G = f;
8573
- var H = e;
8574
- var I = l;
8575
- exports.ContextConsumer = h;
8576
- exports.ContextProvider = z;
8577
- exports.Element = A;
8578
- exports.ForwardRef = B;
8579
- exports.Fragment = C;
8580
- exports.Lazy = D;
8581
- exports.Memo = E;
8582
- exports.Portal = F;
8583
- exports.Profiler = G;
8584
- exports.StrictMode = H;
8585
- exports.Suspense = I;
8586
- exports.isAsyncMode = function() {
8587
- return false;
8588
- };
8589
- exports.isConcurrentMode = function() {
8590
- return false;
8591
- };
8592
- exports.isContextConsumer = function(a2) {
8593
- return y2(a2) === h;
8594
- };
8595
- exports.isContextProvider = function(a2) {
8596
- return y2(a2) === g;
8597
- };
8598
- exports.isElement = function(a2) {
8599
- return "object" === typeof a2 && null !== a2 && a2.$$typeof === b;
8600
- };
8601
- exports.isForwardRef = function(a2) {
8602
- return y2(a2) === k2;
8603
- };
8604
- exports.isFragment = function(a2) {
8605
- return y2(a2) === d;
8606
- };
8607
- exports.isLazy = function(a2) {
8608
- return y2(a2) === p;
8609
- };
8610
- exports.isMemo = function(a2) {
8611
- return y2(a2) === n;
8612
- };
8613
- exports.isPortal = function(a2) {
8614
- return y2(a2) === c2;
8615
- };
8616
- exports.isProfiler = function(a2) {
8617
- return y2(a2) === f;
8618
- };
8619
- exports.isStrictMode = function(a2) {
8620
- return y2(a2) === e;
8621
- };
8622
- exports.isSuspense = function(a2) {
8623
- return y2(a2) === l;
8624
- };
8625
- exports.isValidElementType = function(a2) {
8626
- return "string" === typeof a2 || "function" === typeof a2 || a2 === d || a2 === f || a2 === v || a2 === e || a2 === l || a2 === m || a2 === w || "object" === typeof a2 && null !== a2 && (a2.$$typeof === p || a2.$$typeof === n || a2.$$typeof === g || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === u || a2.$$typeof === q || a2[0] === r) ? true : false;
8627
- };
8628
- exports.typeOf = y2;
8629
- }
8630
- });
8631
-
8632
9065
  // ../../node_modules/react-is/cjs/react-is.development.js
8633
9066
  var require_react_is_development = __commonJS({
8634
9067
  "../../node_modules/react-is/cjs/react-is.development.js"(exports) {
8635
- if (process.env.NODE_ENV !== "production") {
9068
+ {
8636
9069
  (function() {
8637
9070
  var REACT_ELEMENT_TYPE = 60103;
8638
9071
  var REACT_PORTAL_TYPE = 60106;
@@ -8819,9 +9252,7 @@ var require_react_is_development = __commonJS({
8819
9252
  // ../../node_modules/react-is/index.js
8820
9253
  var require_react_is = __commonJS({
8821
9254
  "../../node_modules/react-is/index.js"(exports, module) {
8822
- if (process.env.NODE_ENV === "production") {
8823
- module.exports = require_react_is_production_min();
8824
- } else {
9255
+ {
8825
9256
  module.exports = require_react_is_development();
8826
9257
  }
8827
9258
  }
@@ -8910,7 +9341,7 @@ function TooltipContent({
8910
9341
  sideOffset = 4,
8911
9342
  ...props
8912
9343
  }) {
8913
- return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
9344
+ return /* @__PURE__ */ jsx(TooltipPortal, { children: /* @__PURE__ */ jsx(
8914
9345
  TooltipPrimitive.Content,
8915
9346
  {
8916
9347
  "data-slot": "tooltip-content",
@@ -11198,7 +11629,15 @@ function AlertDialog({
11198
11629
  function AlertDialogPortal({
11199
11630
  ...props
11200
11631
  }) {
11201
- return /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
11632
+ const container = usePortalContainer();
11633
+ return /* @__PURE__ */ jsx(
11634
+ AlertDialogPrimitive.Portal,
11635
+ {
11636
+ "data-slot": "alert-dialog-portal",
11637
+ ...container ? { container } : {},
11638
+ ...props
11639
+ }
11640
+ );
11202
11641
  }
11203
11642
  function AlertDialogOverlay({
11204
11643
  className,
@@ -18095,7 +18534,7 @@ function exportDeckPdf(deck) {
18095
18534
  const inject = (h) => /<head[^>]*>/i.test(h) ? h.replace(/<head([^>]*)>/i, `<head$1>${FORCE}`) : FORCE + h;
18096
18535
  const pages = deck.slides.map((s2) => `<div class="pg"><iframe sandbox="allow-same-origin" srcdoc="${esc(inject(s2.html))}"></iframe></div>`).join("");
18097
18536
  w.document.write(
18098
- `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${(deck.title || "Presentation").replace(/</g, "")}</title><style>@page{size:${SLIDE_W}px ${SLIDE_H}px;margin:0}html,body{margin:0;padding:0;background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}.pg{width:${SLIDE_W}px;height:${SLIDE_H}px;overflow:hidden;page-break-after:always}.pg:last-child{page-break-after:auto}iframe{width:${SLIDE_W}px;height:${SLIDE_H}px;border:0;display:block}</style></head><body>${pages}<script>var fr=document.querySelectorAll('iframe'),n=fr.length,c=0;function go(){setTimeout(function(){window.focus();window.print();},700);}if(!n){go();}fr.forEach(function(f){f.addEventListener('load',function(){if(++c>=n)go();});});</script></body></html>`
18537
+ `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${(deck.title || "Presentation").replace(/</g, "")}</title><style>@page{size:${SLIDE_W}px ${SLIDE_H}px;margin:0}html,body{margin:0;padding:0;background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}.pg{width:${SLIDE_W}px;height:${SLIDE_H}px;overflow:hidden;page-break-after:always}.pg:last-child{page-break-after:auto}iframe{width:${SLIDE_W}px;height:${SLIDE_H}px;border:0;display:block}</style></head><body>${pages}<script>var fr=document.querySelectorAll('iframe'),n=fr.length,c=0;function go(){setTimeout(function(){window.focus();window.print();},700);}if(!n){go();}fr.forEach(function(f){f.addEventListener('load',function(){if(++c>=n)go();});});<\/script></body></html>`
18099
18538
  );
18100
18539
  w.document.close();
18101
18540
  }
@@ -21517,9 +21956,6 @@ function getUniqPayload(payload, option, defaultUniqBy3) {
21517
21956
  }
21518
21957
  return payload;
21519
21958
  }
21520
-
21521
- // ../../node_modules/recharts/es6/state/hooks.js
21522
- var import_with_selector = __toESM(require_with_selector());
21523
21959
  var RechartsReduxContext = /* @__PURE__ */ createContext(null);
21524
21960
 
21525
21961
  // ../../node_modules/recharts/es6/state/hooks.js
@@ -21548,7 +21984,7 @@ function useAppSelector(selector) {
21548
21984
  return selector(state);
21549
21985
  };
21550
21986
  }, [context, selector]);
21551
- return (0, import_with_selector.useSyncExternalStoreWithSelector)(context ? context.subscription.addNestedSub : addNestedSubNoop, context ? context.store.getState : noop2, context ? context.store.getState : noop2, outOfContextSelector, refEquality);
21987
+ return useSyncExternalStoreWithSelector(context ? context.subscription.addNestedSub : addNestedSubNoop, context ? context.store.getState : noop2, context ? context.store.getState : noop2, outOfContextSelector, refEquality);
21552
21988
  }
21553
21989
 
21554
21990
  // ../../node_modules/reselect/dist/reselect.mjs
@@ -21789,7 +22225,7 @@ function createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) {
21789
22225
  arguments
21790
22226
  );
21791
22227
  lastResult2 = memoizedResultFunc.apply(null, inputSelectorResults);
21792
- if (process.env.NODE_ENV !== "production") {
22228
+ {
21793
22229
  const { devModeChecks = {} } = combinedOptions;
21794
22230
  const { identityFunctionCheck, inputStabilityCheck } = getDevModeChecksExecutionInfo(firstRun, devModeChecks);
21795
22231
  if (identityFunctionCheck.shouldRun) {
@@ -22061,9 +22497,6 @@ function useElementOffset() {
22061
22497
  }
22062
22498
 
22063
22499
  // ../../node_modules/@reduxjs/toolkit/node_modules/redux/dist/redux.mjs
22064
- function formatProdErrorMessage(code) {
22065
- return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
22066
- }
22067
22500
  var $$observable = /* @__PURE__ */ (() => typeof Symbol === "function" && Symbol.observable || "@@observable")();
22068
22501
  var symbol_observable_default = $$observable;
22069
22502
  var randomString = () => Math.random().toString(36).substring(7).split("").join(".");
@@ -22128,17 +22561,17 @@ function isDate(val) {
22128
22561
  }
22129
22562
  function kindOf(val) {
22130
22563
  let typeOfVal = typeof val;
22131
- if (process.env.NODE_ENV !== "production") {
22564
+ {
22132
22565
  typeOfVal = miniKindOf(val);
22133
22566
  }
22134
22567
  return typeOfVal;
22135
22568
  }
22136
22569
  function createStore(reducer, preloadedState, enhancer) {
22137
22570
  if (typeof reducer !== "function") {
22138
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(2) : `Expected the root reducer to be a function. Instead, received: '${kindOf(reducer)}'`);
22571
+ throw new Error(`Expected the root reducer to be a function. Instead, received: '${kindOf(reducer)}'`);
22139
22572
  }
22140
22573
  if (typeof preloadedState === "function" && typeof enhancer === "function" || typeof enhancer === "function" && typeof arguments[3] === "function") {
22141
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
22574
+ throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
22142
22575
  }
22143
22576
  if (typeof preloadedState === "function" && typeof enhancer === "undefined") {
22144
22577
  enhancer = preloadedState;
@@ -22146,7 +22579,7 @@ function createStore(reducer, preloadedState, enhancer) {
22146
22579
  }
22147
22580
  if (typeof enhancer !== "undefined") {
22148
22581
  if (typeof enhancer !== "function") {
22149
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(1) : `Expected the enhancer to be a function. Instead, received: '${kindOf(enhancer)}'`);
22582
+ throw new Error(`Expected the enhancer to be a function. Instead, received: '${kindOf(enhancer)}'`);
22150
22583
  }
22151
22584
  return enhancer(createStore)(reducer, preloadedState);
22152
22585
  }
@@ -22166,16 +22599,16 @@ function createStore(reducer, preloadedState, enhancer) {
22166
22599
  }
22167
22600
  function getState() {
22168
22601
  if (isDispatching) {
22169
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
22602
+ throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
22170
22603
  }
22171
22604
  return currentState;
22172
22605
  }
22173
22606
  function subscribe(listener2) {
22174
22607
  if (typeof listener2 !== "function") {
22175
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(4) : `Expected the listener to be a function. Instead, received: '${kindOf(listener2)}'`);
22608
+ throw new Error(`Expected the listener to be a function. Instead, received: '${kindOf(listener2)}'`);
22176
22609
  }
22177
22610
  if (isDispatching) {
22178
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
22611
+ throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
22179
22612
  }
22180
22613
  let isSubscribed = true;
22181
22614
  ensureCanMutateNextListeners();
@@ -22186,7 +22619,7 @@ function createStore(reducer, preloadedState, enhancer) {
22186
22619
  return;
22187
22620
  }
22188
22621
  if (isDispatching) {
22189
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
22622
+ throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
22190
22623
  }
22191
22624
  isSubscribed = false;
22192
22625
  ensureCanMutateNextListeners();
@@ -22196,16 +22629,16 @@ function createStore(reducer, preloadedState, enhancer) {
22196
22629
  }
22197
22630
  function dispatch(action) {
22198
22631
  if (!isPlainObject(action)) {
22199
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(7) : `Actions must be plain objects. Instead, the actual type was: '${kindOf(action)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
22632
+ throw new Error(`Actions must be plain objects. Instead, the actual type was: '${kindOf(action)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
22200
22633
  }
22201
22634
  if (typeof action.type === "undefined") {
22202
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
22635
+ throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
22203
22636
  }
22204
22637
  if (typeof action.type !== "string") {
22205
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(17) : `Action "type" property must be a string. Instead, the actual type was: '${kindOf(action.type)}'. Value was: '${action.type}' (stringified)`);
22638
+ throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${kindOf(action.type)}'. Value was: '${action.type}' (stringified)`);
22206
22639
  }
22207
22640
  if (isDispatching) {
22208
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(9) : "Reducers may not dispatch actions.");
22641
+ throw new Error("Reducers may not dispatch actions.");
22209
22642
  }
22210
22643
  try {
22211
22644
  isDispatching = true;
@@ -22221,7 +22654,7 @@ function createStore(reducer, preloadedState, enhancer) {
22221
22654
  }
22222
22655
  function replaceReducer(nextReducer) {
22223
22656
  if (typeof nextReducer !== "function") {
22224
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(10) : `Expected the nextReducer to be a function. Instead, received: '${kindOf(nextReducer)}`);
22657
+ throw new Error(`Expected the nextReducer to be a function. Instead, received: '${kindOf(nextReducer)}`);
22225
22658
  }
22226
22659
  currentReducer = nextReducer;
22227
22660
  dispatch({
@@ -22241,7 +22674,7 @@ function createStore(reducer, preloadedState, enhancer) {
22241
22674
  */
22242
22675
  subscribe(observer) {
22243
22676
  if (typeof observer !== "object" || observer === null) {
22244
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(11) : `Expected the observer to be an object. Instead, received: '${kindOf(observer)}'`);
22677
+ throw new Error(`Expected the observer to be an object. Instead, received: '${kindOf(observer)}'`);
22245
22678
  }
22246
22679
  function observeState() {
22247
22680
  const observerAsObserver = observer;
@@ -22307,12 +22740,12 @@ function assertReducerShape(reducers2) {
22307
22740
  type: actionTypes_default.INIT
22308
22741
  });
22309
22742
  if (typeof initialState15 === "undefined") {
22310
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(12) : `The slice reducer for key "${key}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
22743
+ throw new Error(`The slice reducer for key "${key}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
22311
22744
  }
22312
22745
  if (typeof reducer(void 0, {
22313
22746
  type: actionTypes_default.PROBE_UNKNOWN_ACTION()
22314
22747
  }) === "undefined") {
22315
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(13) : `The slice reducer for key "${key}" returned undefined when probed with a random type. Don't try to handle '${actionTypes_default.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
22748
+ throw new Error(`The slice reducer for key "${key}" returned undefined when probed with a random type. Don't try to handle '${actionTypes_default.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
22316
22749
  }
22317
22750
  });
22318
22751
  }
@@ -22321,7 +22754,7 @@ function combineReducers(reducers2) {
22321
22754
  const finalReducers = {};
22322
22755
  for (let i = 0; i < reducerKeys.length; i++) {
22323
22756
  const key = reducerKeys[i];
22324
- if (process.env.NODE_ENV !== "production") {
22757
+ {
22325
22758
  if (typeof reducers2[key] === "undefined") {
22326
22759
  warning(`No reducer provided for key "${key}"`);
22327
22760
  }
@@ -22332,7 +22765,7 @@ function combineReducers(reducers2) {
22332
22765
  }
22333
22766
  const finalReducerKeys = Object.keys(finalReducers);
22334
22767
  let unexpectedKeyCache;
22335
- if (process.env.NODE_ENV !== "production") {
22768
+ {
22336
22769
  unexpectedKeyCache = {};
22337
22770
  }
22338
22771
  let shapeAssertionError;
@@ -22345,7 +22778,7 @@ function combineReducers(reducers2) {
22345
22778
  if (shapeAssertionError) {
22346
22779
  throw shapeAssertionError;
22347
22780
  }
22348
- if (process.env.NODE_ENV !== "production") {
22781
+ {
22349
22782
  const warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
22350
22783
  if (warningMessage) {
22351
22784
  warning(warningMessage);
@@ -22360,7 +22793,7 @@ function combineReducers(reducers2) {
22360
22793
  const nextStateForKey = reducer(previousStateForKey, action);
22361
22794
  if (typeof nextStateForKey === "undefined") {
22362
22795
  const actionType = action && action.type;
22363
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(14) : `When called with an action of type ${actionType ? `"${String(actionType)}"` : "(unknown type)"}, the slice reducer for key "${key}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
22796
+ throw new Error(`When called with an action of type ${actionType ? `"${String(actionType)}"` : "(unknown type)"}, the slice reducer for key "${key}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
22364
22797
  }
22365
22798
  nextState[key] = nextStateForKey;
22366
22799
  hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
@@ -22382,7 +22815,7 @@ function applyMiddleware(...middlewares) {
22382
22815
  return (createStore2) => (reducer, preloadedState) => {
22383
22816
  const store = createStore2(reducer, preloadedState);
22384
22817
  let dispatch = () => {
22385
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
22818
+ throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
22386
22819
  };
22387
22820
  const middlewareAPI = {
22388
22821
  getState: store.getState,
@@ -22404,7 +22837,7 @@ function isAction(action) {
22404
22837
  var NOTHING = /* @__PURE__ */ Symbol.for("immer-nothing");
22405
22838
  var DRAFTABLE = /* @__PURE__ */ Symbol.for("immer-draftable");
22406
22839
  var DRAFT_STATE = /* @__PURE__ */ Symbol.for("immer-state");
22407
- var errors = process.env.NODE_ENV !== "production" ? [
22840
+ var errors = [
22408
22841
  // All error codes, starting by 0:
22409
22842
  function(plugin) {
22410
22843
  return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \`enable${plugin}()\` when initializing your application.`;
@@ -22434,16 +22867,13 @@ var errors = process.env.NODE_ENV !== "production" ? [
22434
22867
  }
22435
22868
  // Note: if more errors are added, the errorOffset in Patches.ts should be increased
22436
22869
  // See Patches.ts for additional errors
22437
- ] : [];
22870
+ ] ;
22438
22871
  function die(error, ...args) {
22439
- if (process.env.NODE_ENV !== "production") {
22872
+ {
22440
22873
  const e = errors[error];
22441
22874
  const msg = isFunction(e) ? e.apply(null, args) : e;
22442
22875
  throw new Error(`[Immer] ${msg}`);
22443
22876
  }
22444
- throw new Error(
22445
- `[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`
22446
- );
22447
22877
  }
22448
22878
  var O = Object;
22449
22879
  var getPrototypeOf = O.getPrototypeOf;
@@ -22974,12 +23404,12 @@ for (let key in objectTraps) {
22974
23404
  };
22975
23405
  }
22976
23406
  arrayTraps.deleteProperty = function(state, prop) {
22977
- if (process.env.NODE_ENV !== "production" && isNaN(parseInt(prop)))
23407
+ if (isNaN(parseInt(prop)))
22978
23408
  die(13);
22979
23409
  return arrayTraps.set.call(this, state, prop, void 0);
22980
23410
  };
22981
23411
  arrayTraps.set = function(state, prop, value) {
22982
- if (process.env.NODE_ENV !== "production" && prop !== "length" && isNaN(parseInt(prop)))
23412
+ if (prop !== "length" && isNaN(parseInt(prop)))
22983
23413
  die(14);
22984
23414
  return objectTraps.set.call(this, state[0], prop, value, state[0]);
22985
23415
  };
@@ -23032,7 +23462,7 @@ function prepareCopy(state) {
23032
23462
  }
23033
23463
  }
23034
23464
  var Immer2 = class {
23035
- constructor(config2) {
23465
+ constructor(config) {
23036
23466
  this.autoFreeze_ = true;
23037
23467
  this.useStrictShallowCopy_ = false;
23038
23468
  this.useStrictIteration_ = false;
@@ -23097,12 +23527,12 @@ var Immer2 = class {
23097
23527
  });
23098
23528
  return [result, patches, inversePatches];
23099
23529
  };
23100
- if (isBoolean(config2?.autoFreeze))
23101
- this.setAutoFreeze(config2.autoFreeze);
23102
- if (isBoolean(config2?.useStrictShallowCopy))
23103
- this.setUseStrictShallowCopy(config2.useStrictShallowCopy);
23104
- if (isBoolean(config2?.useStrictIteration))
23105
- this.setUseStrictIteration(config2.useStrictIteration);
23530
+ if (isBoolean(config?.autoFreeze))
23531
+ this.setAutoFreeze(config.autoFreeze);
23532
+ if (isBoolean(config?.useStrictShallowCopy))
23533
+ this.setUseStrictShallowCopy(config.useStrictShallowCopy);
23534
+ if (isBoolean(config?.useStrictIteration))
23535
+ this.setUseStrictIteration(config.useStrictIteration);
23106
23536
  }
23107
23537
  createDraft(base) {
23108
23538
  if (!isDraftable(base))
@@ -23255,7 +23685,7 @@ function createAction(type, prepareAction) {
23255
23685
  if (prepareAction) {
23256
23686
  let prepared = prepareAction(...args);
23257
23687
  if (!prepared) {
23258
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(0) : "prepareAction did not return an object");
23688
+ throw new Error("prepareAction did not return an object");
23259
23689
  }
23260
23690
  return {
23261
23691
  type,
@@ -23289,9 +23719,6 @@ function getMessage(type) {
23289
23719
  Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${actionName}())\` instead of \`dispatch(${actionName})\`. This is necessary even if the action has no payload.`;
23290
23720
  }
23291
23721
  function createActionCreatorInvariantMiddleware(options = {}) {
23292
- if (process.env.NODE_ENV === "production") {
23293
- return () => (next) => (action) => next(action);
23294
- }
23295
23722
  const {
23296
23723
  isActionCreator: isActionCreator2 = isActionCreator
23297
23724
  } = options;
@@ -23431,9 +23858,7 @@ function detectMutations(isImmutable, ignoredPaths = [], trackedProperty, obj, s
23431
23858
  };
23432
23859
  }
23433
23860
  function createImmutableStateInvariantMiddleware(options = {}) {
23434
- if (process.env.NODE_ENV === "production") {
23435
- return () => (next) => (action) => next(action);
23436
- } else {
23861
+ {
23437
23862
  let stringify2 = function(obj, serializer, indent, decycler) {
23438
23863
  return JSON.stringify(obj, getSerialize2(serializer, decycler), indent);
23439
23864
  }, getSerialize2 = function(serializer, decycler) {
@@ -23471,7 +23896,7 @@ function createImmutableStateInvariantMiddleware(options = {}) {
23471
23896
  result = tracker.detectMutations();
23472
23897
  tracker = track(state);
23473
23898
  if (result.wasMutated) {
23474
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(19) : `A state mutation was detected between dispatches, in the path '${result.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
23899
+ throw new Error(`A state mutation was detected between dispatches, in the path '${result.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
23475
23900
  }
23476
23901
  });
23477
23902
  const dispatchedAction = next(action);
@@ -23480,7 +23905,7 @@ function createImmutableStateInvariantMiddleware(options = {}) {
23480
23905
  result = tracker.detectMutations();
23481
23906
  tracker = track(state);
23482
23907
  if (result.wasMutated) {
23483
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(20) : `A state mutation was detected inside a dispatch, in the path: ${result.path || ""}. Take a look at the reducer(s) handling the action ${stringify2(action)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
23908
+ throw new Error(`A state mutation was detected inside a dispatch, in the path: ${result.path || ""}. Take a look at the reducer(s) handling the action ${stringify2(action)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
23484
23909
  }
23485
23910
  });
23486
23911
  measureUtils.warnIfExceeded();
@@ -23545,9 +23970,7 @@ function isNestedFrozen(value) {
23545
23970
  return true;
23546
23971
  }
23547
23972
  function createSerializableStateInvariantMiddleware(options = {}) {
23548
- if (process.env.NODE_ENV === "production") {
23549
- return () => (next) => (action) => next(action);
23550
- } else {
23973
+ {
23551
23974
  const {
23552
23975
  isSerializable = isPlain,
23553
23976
  getEntries,
@@ -23616,7 +24039,7 @@ var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {
23616
24039
  middlewareArray.push(withExtraArgument(thunk2.extraArgument));
23617
24040
  }
23618
24041
  }
23619
- if (process.env.NODE_ENV !== "production") {
24042
+ {
23620
24043
  if (immutableCheck) {
23621
24044
  let immutableOptions = {};
23622
24045
  if (!isBoolean2(immutableCheck)) {
@@ -23743,28 +24166,28 @@ function configureStore(options) {
23743
24166
  } else if (isPlainObject(reducer)) {
23744
24167
  rootReducer2 = combineReducers(reducer);
23745
24168
  } else {
23746
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
24169
+ throw new Error("`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
23747
24170
  }
23748
- if (process.env.NODE_ENV !== "production" && middleware && typeof middleware !== "function") {
23749
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(2) : "`middleware` field must be a callback");
24171
+ if (middleware && typeof middleware !== "function") {
24172
+ throw new Error("`middleware` field must be a callback");
23750
24173
  }
23751
24174
  let finalMiddleware;
23752
24175
  if (typeof middleware === "function") {
23753
24176
  finalMiddleware = middleware(getDefaultMiddleware);
23754
- if (process.env.NODE_ENV !== "production" && !Array.isArray(finalMiddleware)) {
23755
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(3) : "when using a middleware builder function, an array of middleware must be returned");
24177
+ if (!Array.isArray(finalMiddleware)) {
24178
+ throw new Error("when using a middleware builder function, an array of middleware must be returned");
23756
24179
  }
23757
24180
  } else {
23758
24181
  finalMiddleware = getDefaultMiddleware();
23759
24182
  }
23760
- if (process.env.NODE_ENV !== "production" && finalMiddleware.some((item) => typeof item !== "function")) {
23761
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(4) : "each middleware provided to configureStore must be a function");
24183
+ if (finalMiddleware.some((item) => typeof item !== "function")) {
24184
+ throw new Error("each middleware provided to configureStore must be a function");
23762
24185
  }
23763
- if (process.env.NODE_ENV !== "production" && duplicateMiddlewareCheck) {
24186
+ if (duplicateMiddlewareCheck) {
23764
24187
  let middlewareReferences = /* @__PURE__ */ new Set();
23765
24188
  finalMiddleware.forEach((middleware2) => {
23766
24189
  if (middlewareReferences.has(middleware2)) {
23767
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(42) : "Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");
24190
+ throw new Error("Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");
23768
24191
  }
23769
24192
  middlewareReferences.add(middleware2);
23770
24193
  });
@@ -23773,23 +24196,23 @@ function configureStore(options) {
23773
24196
  if (devTools) {
23774
24197
  finalCompose = composeWithDevTools({
23775
24198
  // Enable capture of stack traces for dispatched Redux actions
23776
- trace: process.env.NODE_ENV !== "production",
24199
+ trace: true,
23777
24200
  ...typeof devTools === "object" && devTools
23778
24201
  });
23779
24202
  }
23780
24203
  const middlewareEnhancer = applyMiddleware(...finalMiddleware);
23781
24204
  const getDefaultEnhancers = buildGetDefaultEnhancers(middlewareEnhancer);
23782
- if (process.env.NODE_ENV !== "production" && enhancers && typeof enhancers !== "function") {
23783
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(5) : "`enhancers` field must be a callback");
24205
+ if (enhancers && typeof enhancers !== "function") {
24206
+ throw new Error("`enhancers` field must be a callback");
23784
24207
  }
23785
24208
  let storeEnhancers = typeof enhancers === "function" ? enhancers(getDefaultEnhancers) : getDefaultEnhancers();
23786
- if (process.env.NODE_ENV !== "production" && !Array.isArray(storeEnhancers)) {
23787
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(6) : "`enhancers` callback must return an array");
24209
+ if (!Array.isArray(storeEnhancers)) {
24210
+ throw new Error("`enhancers` callback must return an array");
23788
24211
  }
23789
- if (process.env.NODE_ENV !== "production" && storeEnhancers.some((item) => typeof item !== "function")) {
23790
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(7) : "each enhancer provided to configureStore must be a function");
24212
+ if (storeEnhancers.some((item) => typeof item !== "function")) {
24213
+ throw new Error("each enhancer provided to configureStore must be a function");
23791
24214
  }
23792
- if (process.env.NODE_ENV !== "production" && finalMiddleware.length && !storeEnhancers.includes(middlewareEnhancer)) {
24215
+ if (finalMiddleware.length && !storeEnhancers.includes(middlewareEnhancer)) {
23793
24216
  console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
23794
24217
  }
23795
24218
  const composedEnhancer = finalCompose(...storeEnhancers);
@@ -23801,28 +24224,28 @@ function executeReducerBuilderCallback(builderCallback) {
23801
24224
  let defaultCaseReducer;
23802
24225
  const builder = {
23803
24226
  addCase(typeOrActionCreator, reducer) {
23804
- if (process.env.NODE_ENV !== "production") {
24227
+ {
23805
24228
  if (actionMatchers.length > 0) {
23806
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
24229
+ throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
23807
24230
  }
23808
24231
  if (defaultCaseReducer) {
23809
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
24232
+ throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
23810
24233
  }
23811
24234
  }
23812
24235
  const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
23813
24236
  if (!type) {
23814
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(28) : "`builder.addCase` cannot be called with an empty action type");
24237
+ throw new Error("`builder.addCase` cannot be called with an empty action type");
23815
24238
  }
23816
24239
  if (type in actionsMap) {
23817
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${type}'`);
24240
+ throw new Error(`\`builder.addCase\` cannot be called with two reducers for the same action type '${type}'`);
23818
24241
  }
23819
24242
  actionsMap[type] = reducer;
23820
24243
  return builder;
23821
24244
  },
23822
24245
  addAsyncThunk(asyncThunk, reducers2) {
23823
- if (process.env.NODE_ENV !== "production") {
24246
+ {
23824
24247
  if (defaultCaseReducer) {
23825
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
24248
+ throw new Error("`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
23826
24249
  }
23827
24250
  }
23828
24251
  if (reducers2.pending) actionsMap[asyncThunk.pending.type] = reducers2.pending;
@@ -23835,9 +24258,9 @@ function executeReducerBuilderCallback(builderCallback) {
23835
24258
  return builder;
23836
24259
  },
23837
24260
  addMatcher(matcher, reducer) {
23838
- if (process.env.NODE_ENV !== "production") {
24261
+ {
23839
24262
  if (defaultCaseReducer) {
23840
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
24263
+ throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
23841
24264
  }
23842
24265
  }
23843
24266
  actionMatchers.push({
@@ -23847,9 +24270,9 @@ function executeReducerBuilderCallback(builderCallback) {
23847
24270
  return builder;
23848
24271
  },
23849
24272
  addDefaultCase(reducer) {
23850
- if (process.env.NODE_ENV !== "production") {
24273
+ {
23851
24274
  if (defaultCaseReducer) {
23852
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(31) : "`builder.addDefaultCase` can only be called once");
24275
+ throw new Error("`builder.addDefaultCase` can only be called once");
23853
24276
  }
23854
24277
  }
23855
24278
  defaultCaseReducer = reducer;
@@ -23863,9 +24286,9 @@ function isStateFunction(x2) {
23863
24286
  return typeof x2 === "function";
23864
24287
  }
23865
24288
  function createReducer(initialState15, mapOrBuilderCallback) {
23866
- if (process.env.NODE_ENV !== "production") {
24289
+ {
23867
24290
  if (typeof mapOrBuilderCallback === "object") {
23868
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
24291
+ throw new Error("The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
23869
24292
  }
23870
24293
  }
23871
24294
  let [actionsMap, finalActionMatchers, finalDefaultCaseReducer] = executeReducerBuilderCallback(mapOrBuilderCallback);
@@ -23938,9 +24361,9 @@ function buildCreateSlice({
23938
24361
  reducerPath = name
23939
24362
  } = options;
23940
24363
  if (!name) {
23941
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(11) : "`name` is a required option for createSlice");
24364
+ throw new Error("`name` is a required option for createSlice");
23942
24365
  }
23943
- if (typeof process !== "undefined" && process.env.NODE_ENV === "development") {
24366
+ if (typeof process !== "undefined" && true) {
23944
24367
  if (options.initialState === void 0) {
23945
24368
  console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
23946
24369
  }
@@ -23957,10 +24380,10 @@ function buildCreateSlice({
23957
24380
  addCase(typeOrActionCreator, reducer2) {
23958
24381
  const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
23959
24382
  if (!type) {
23960
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(12) : "`context.addCase` cannot be called with an empty action type");
24383
+ throw new Error("`context.addCase` cannot be called with an empty action type");
23961
24384
  }
23962
24385
  if (type in context.sliceCaseReducersByType) {
23963
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + type);
24386
+ throw new Error("`context.addCase` cannot be called with two reducers for the same action type: " + type);
23964
24387
  }
23965
24388
  context.sliceCaseReducersByType[type] = reducer2;
23966
24389
  return contextMethods;
@@ -23995,9 +24418,9 @@ function buildCreateSlice({
23995
24418
  }
23996
24419
  });
23997
24420
  function buildReducer() {
23998
- if (process.env.NODE_ENV !== "production") {
24421
+ {
23999
24422
  if (typeof options.extraReducers === "object") {
24000
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
24423
+ throw new Error("The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
24001
24424
  }
24002
24425
  }
24003
24426
  const [extraReducers = {}, actionMatchers = [], defaultCaseReducer = void 0] = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers];
@@ -24038,8 +24461,8 @@ function buildCreateSlice({
24038
24461
  if (typeof sliceState === "undefined") {
24039
24462
  if (injected) {
24040
24463
  sliceState = getOrInsertComputed(injectedStateCache, selectSlice, getInitialState);
24041
- } else if (process.env.NODE_ENV !== "production") {
24042
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(15) : "selectSlice returned undefined for an uninjected slice reducer");
24464
+ } else {
24465
+ throw new Error("selectSlice returned undefined for an uninjected slice reducer");
24043
24466
  }
24044
24467
  }
24045
24468
  return sliceState;
@@ -24072,13 +24495,13 @@ function buildCreateSlice({
24072
24495
  ...makeSelectorProps(reducerPath),
24073
24496
  injectInto(injectable, {
24074
24497
  reducerPath: pathOpt,
24075
- ...config2
24498
+ ...config
24076
24499
  } = {}) {
24077
24500
  const newReducerPath = pathOpt ?? reducerPath;
24078
24501
  injectable.inject({
24079
24502
  reducerPath: newReducerPath,
24080
24503
  reducer
24081
- }, config2);
24504
+ }, config);
24082
24505
  return {
24083
24506
  ...slice2,
24084
24507
  ...makeSelectorProps(newReducerPath, true)
@@ -24094,8 +24517,8 @@ function wrapSelector(selector, selectState, getInitialState, injected) {
24094
24517
  if (typeof sliceState === "undefined") {
24095
24518
  if (injected) {
24096
24519
  sliceState = getInitialState();
24097
- } else if (process.env.NODE_ENV !== "production") {
24098
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(16) : "selectState returned undefined for an uninjected slice reducer");
24520
+ } else {
24521
+ throw new Error("selectState returned undefined for an uninjected slice reducer");
24099
24522
  }
24100
24523
  }
24101
24524
  return selector(sliceState, ...args);
@@ -24105,11 +24528,11 @@ function wrapSelector(selector, selectState, getInitialState, injected) {
24105
24528
  }
24106
24529
  var createSlice = /* @__PURE__ */ buildCreateSlice();
24107
24530
  function buildReducerCreators() {
24108
- function asyncThunk(payloadCreator, config2) {
24531
+ function asyncThunk(payloadCreator, config) {
24109
24532
  return {
24110
24533
  _reducerDefinitionType: "asyncThunk",
24111
24534
  payloadCreator,
24112
- ...config2
24535
+ ...config
24113
24536
  };
24114
24537
  }
24115
24538
  asyncThunk.withTypes = () => asyncThunk;
@@ -24145,7 +24568,7 @@ function handleNormalReducerDefinition({
24145
24568
  let prepareCallback;
24146
24569
  if ("reducer" in maybeReducerWithPrepare) {
24147
24570
  if (createNotation && !isCaseReducerWithPrepareDefinition(maybeReducerWithPrepare)) {
24148
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
24571
+ throw new Error("Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
24149
24572
  }
24150
24573
  caseReducer = maybeReducerWithPrepare.reducer;
24151
24574
  prepareCallback = maybeReducerWithPrepare.prepare;
@@ -24165,7 +24588,7 @@ function handleThunkCaseReducerDefinition({
24165
24588
  reducerName
24166
24589
  }, reducerDefinition, context, cAT) {
24167
24590
  if (!cAT) {
24168
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
24591
+ throw new Error("Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
24169
24592
  }
24170
24593
  const {
24171
24594
  payloadCreator,
@@ -24217,7 +24640,7 @@ var TaskAbortError = class {
24217
24640
  };
24218
24641
  var assertFunction = (func, expected) => {
24219
24642
  if (typeof func !== "function") {
24220
- throw new TypeError(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(32) : `${expected} is not a function`);
24643
+ throw new TypeError(`${expected} is not a function`);
24221
24644
  }
24222
24645
  };
24223
24646
  var noop22 = () => {
@@ -24363,7 +24786,7 @@ var getListenerEntryPropsFrom = (options) => {
24363
24786
  } else if (matcher) {
24364
24787
  predicate = matcher;
24365
24788
  } else if (predicate) ; else {
24366
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(21) : "Creating or removing a listener requires one of the known fields for matching an action");
24789
+ throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
24367
24790
  }
24368
24791
  assertFunction(effect, "options.listener");
24369
24792
  return {
@@ -24385,7 +24808,7 @@ var createListenerEntry = /* @__PURE__ */ assign((options) => {
24385
24808
  predicate,
24386
24809
  pending: /* @__PURE__ */ new Set(),
24387
24810
  unsubscribe: () => {
24388
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(22) : "Unsubscribe not initialized");
24811
+ throw new Error("Unsubscribe not initialized");
24389
24812
  }
24390
24813
  };
24391
24814
  return entry;
@@ -24556,7 +24979,7 @@ var createListenerMiddleware = (middlewareOptions = {}) => {
24556
24979
  let originalState = api.getState();
24557
24980
  const getOriginalState = () => {
24558
24981
  if (originalState === INTERNAL_NIL_TOKEN) {
24559
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(23) : `${alm}: getOriginalState can only be called synchronously`);
24982
+ throw new Error(`${alm}: getOriginalState can only be called synchronously`);
24560
24983
  }
24561
24984
  return originalState;
24562
24985
  };
@@ -24594,9 +25017,6 @@ var createListenerMiddleware = (middlewareOptions = {}) => {
24594
25017
  clearListeners: clearListenerMiddleware
24595
25018
  };
24596
25019
  };
24597
- function formatProdErrorMessage2(code) {
24598
- return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
24599
- }
24600
25020
 
24601
25021
  // ../../node_modules/recharts/es6/state/layoutSlice.js
24602
25022
  var initialState = {
@@ -25830,9 +26250,6 @@ var addLegendPayload = _legendSlice$actions.addLegendPayload;
25830
26250
  var replaceLegendPayload = _legendSlice$actions.replaceLegendPayload;
25831
26251
  var removeLegendPayload = _legendSlice$actions.removeLegendPayload;
25832
26252
  var legendReducer = legendSlice.reducer;
25833
-
25834
- // ../../node_modules/react-redux/dist/react-redux.mjs
25835
- __toESM(require_with_selector2(), 1);
25836
26253
  function defaultNoopBatch(callback) {
25837
26254
  callback();
25838
26255
  }
@@ -26004,7 +26421,7 @@ function getContext() {
26004
26421
  realContext = React29.createContext(
26005
26422
  null
26006
26423
  );
26007
- if (process.env.NODE_ENV !== "production") {
26424
+ {
26008
26425
  realContext.displayName = "ReactRedux";
26009
26426
  }
26010
26427
  contextMap.set(React29.createContext, realContext);
@@ -26021,9 +26438,7 @@ function Provider2(providerProps) {
26021
26438
  subscription,
26022
26439
  getServerState: serverState ? () => serverState : void 0
26023
26440
  };
26024
- if (process.env.NODE_ENV === "production") {
26025
- return baseContextValue;
26026
- } else {
26441
+ {
26027
26442
  const { identityFunctionCheck = "once", stabilityCheck = "once" } = providerProps;
26028
26443
  return /* @__PURE__ */ Object.assign(baseContextValue, {
26029
26444
  stabilityCheck,
@@ -27297,8 +27712,8 @@ var configBezier = function configBezier2() {
27297
27712
  return createBezierEasing(...getBezierCoordinates(...arguments));
27298
27713
  };
27299
27714
  var createSpringEasing = function createSpringEasing2() {
27300
- var config2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
27301
- var _config$stiff = config2.stiff, stiff = _config$stiff === void 0 ? 100 : _config$stiff, _config$damping = config2.damping, damping = _config$damping === void 0 ? 8 : _config$damping, _config$dt = config2.dt, dt = _config$dt === void 0 ? 16.67 : _config$dt;
27715
+ var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
27716
+ var _config$stiff = config.stiff, stiff = _config$stiff === void 0 ? 100 : _config$stiff, _config$damping = config.damping, damping = _config$damping === void 0 ? 8 : _config$damping, _config$dt = config.dt, dt = _config$dt === void 0 ? 16.67 : _config$dt;
27302
27717
  var destX = 1;
27303
27718
  var positions = [0];
27304
27719
  var currX = 0;
@@ -28568,998 +28983,22 @@ function parseNumericalUserDomain(userDomain, dataDomain, allowDataOverflow) {
28568
28983
  return void 0;
28569
28984
  }
28570
28985
 
28571
- // ../../node_modules/decimal.js-light/decimal.mjs
28572
- var MAX_DIGITS = 1e9;
28573
- var defaults = {
28574
- // These values must be integers within the stated ranges (inclusive).
28575
- // Most of these values can be changed during run-time using `Decimal.config`.
28576
- // The maximum number of significant digits of the result of a calculation or base conversion.
28577
- // E.g. `Decimal.config({ precision: 20 });`
28578
- precision: 20,
28579
- // 1 to MAX_DIGITS
28580
- // The rounding mode used by default by `toInteger`, `toDecimalPlaces`, `toExponential`,
28581
- // `toFixed`, `toPrecision` and `toSignificantDigits`.
28582
- //
28583
- // ROUND_UP 0 Away from zero.
28584
- // ROUND_DOWN 1 Towards zero.
28585
- // ROUND_CEIL 2 Towards +Infinity.
28586
- // ROUND_FLOOR 3 Towards -Infinity.
28587
- // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.
28588
- // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.
28589
- // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.
28590
- // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.
28591
- // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.
28592
- //
28593
- // E.g.
28594
- // `Decimal.rounding = 4;`
28595
- // `Decimal.rounding = Decimal.ROUND_HALF_UP;`
28596
- rounding: 4,
28597
- // 0 to 8
28598
- // The exponent value at and beneath which `toString` returns exponential notation.
28599
- // JavaScript numbers: -7
28600
- toExpNeg: -7,
28601
- // 0 to -MAX_E
28602
- // The exponent value at and above which `toString` returns exponential notation.
28603
- // JavaScript numbers: 21
28604
- toExpPos: 21,
28605
- // 0 to MAX_E
28606
- // The natural logarithm of 10.
28607
- // 115 digits
28608
- LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
28609
- };
28610
- var Decimal;
28611
- var external = true;
28612
- var decimalError = "[DecimalError] ";
28613
- var invalidArgument = decimalError + "Invalid argument: ";
28614
- var exponentOutOfRange = decimalError + "Exponent out of range: ";
28615
- var mathfloor = Math.floor;
28616
- var mathpow = Math.pow;
28617
- var isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
28618
- var ONE;
28619
- var BASE = 1e7;
28620
- var LOG_BASE = 7;
28621
- var MAX_SAFE_INTEGER = 9007199254740991;
28622
- var MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE);
28623
- var P = {};
28624
- P.absoluteValue = P.abs = function() {
28625
- var x2 = new this.constructor(this);
28626
- if (x2.s) x2.s = 1;
28627
- return x2;
28628
- };
28629
- P.comparedTo = P.cmp = function(y2) {
28630
- var i, j, xdL, ydL, x2 = this;
28631
- y2 = new x2.constructor(y2);
28632
- if (x2.s !== y2.s) return x2.s || -y2.s;
28633
- if (x2.e !== y2.e) return x2.e > y2.e ^ x2.s < 0 ? 1 : -1;
28634
- xdL = x2.d.length;
28635
- ydL = y2.d.length;
28636
- for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) {
28637
- if (x2.d[i] !== y2.d[i]) return x2.d[i] > y2.d[i] ^ x2.s < 0 ? 1 : -1;
28638
- }
28639
- return xdL === ydL ? 0 : xdL > ydL ^ x2.s < 0 ? 1 : -1;
28640
- };
28641
- P.decimalPlaces = P.dp = function() {
28642
- var x2 = this, w = x2.d.length - 1, dp = (w - x2.e) * LOG_BASE;
28643
- w = x2.d[w];
28644
- if (w) for (; w % 10 == 0; w /= 10) dp--;
28645
- return dp < 0 ? 0 : dp;
28646
- };
28647
- P.dividedBy = P.div = function(y2) {
28648
- return divide(this, new this.constructor(y2));
28649
- };
28650
- P.dividedToIntegerBy = P.idiv = function(y2) {
28651
- var x2 = this, Ctor = x2.constructor;
28652
- return round2(divide(x2, new Ctor(y2), 0, 1), Ctor.precision);
28653
- };
28654
- P.equals = P.eq = function(y2) {
28655
- return !this.cmp(y2);
28656
- };
28657
- P.exponent = function() {
28658
- return getBase10Exponent(this);
28659
- };
28660
- P.greaterThan = P.gt = function(y2) {
28661
- return this.cmp(y2) > 0;
28662
- };
28663
- P.greaterThanOrEqualTo = P.gte = function(y2) {
28664
- return this.cmp(y2) >= 0;
28665
- };
28666
- P.isInteger = P.isint = function() {
28667
- return this.e > this.d.length - 2;
28668
- };
28669
- P.isNegative = P.isneg = function() {
28670
- return this.s < 0;
28671
- };
28672
- P.isPositive = P.ispos = function() {
28673
- return this.s > 0;
28674
- };
28675
- P.isZero = function() {
28676
- return this.s === 0;
28677
- };
28678
- P.lessThan = P.lt = function(y2) {
28679
- return this.cmp(y2) < 0;
28680
- };
28681
- P.lessThanOrEqualTo = P.lte = function(y2) {
28682
- return this.cmp(y2) < 1;
28683
- };
28684
- P.logarithm = P.log = function(base) {
28685
- var r, x2 = this, Ctor = x2.constructor, pr = Ctor.precision, wpr = pr + 5;
28686
- if (base === void 0) {
28687
- base = new Ctor(10);
28688
- } else {
28689
- base = new Ctor(base);
28690
- if (base.s < 1 || base.eq(ONE)) throw Error(decimalError + "NaN");
28691
- }
28692
- if (x2.s < 1) throw Error(decimalError + (x2.s ? "NaN" : "-Infinity"));
28693
- if (x2.eq(ONE)) return new Ctor(0);
28694
- external = false;
28695
- r = divide(ln(x2, wpr), ln(base, wpr), wpr);
28696
- external = true;
28697
- return round2(r, pr);
28698
- };
28699
- P.minus = P.sub = function(y2) {
28700
- var x2 = this;
28701
- y2 = new x2.constructor(y2);
28702
- return x2.s == y2.s ? subtract(x2, y2) : add(x2, (y2.s = -y2.s, y2));
28703
- };
28704
- P.modulo = P.mod = function(y2) {
28705
- var q, x2 = this, Ctor = x2.constructor, pr = Ctor.precision;
28706
- y2 = new Ctor(y2);
28707
- if (!y2.s) throw Error(decimalError + "NaN");
28708
- if (!x2.s) return round2(new Ctor(x2), pr);
28709
- external = false;
28710
- q = divide(x2, y2, 0, 1).times(y2);
28711
- external = true;
28712
- return x2.minus(q);
28713
- };
28714
- P.naturalExponential = P.exp = function() {
28715
- return exp(this);
28716
- };
28717
- P.naturalLogarithm = P.ln = function() {
28718
- return ln(this);
28719
- };
28720
- P.negated = P.neg = function() {
28721
- var x2 = new this.constructor(this);
28722
- x2.s = -x2.s || 0;
28723
- return x2;
28724
- };
28725
- P.plus = P.add = function(y2) {
28726
- var x2 = this;
28727
- y2 = new x2.constructor(y2);
28728
- return x2.s == y2.s ? add(x2, y2) : subtract(x2, (y2.s = -y2.s, y2));
28729
- };
28730
- P.precision = P.sd = function(z) {
28731
- var e, sd, w, x2 = this;
28732
- if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);
28733
- e = getBase10Exponent(x2) + 1;
28734
- w = x2.d.length - 1;
28735
- sd = w * LOG_BASE + 1;
28736
- w = x2.d[w];
28737
- if (w) {
28738
- for (; w % 10 == 0; w /= 10) sd--;
28739
- for (w = x2.d[0]; w >= 10; w /= 10) sd++;
28740
- }
28741
- return z && e > sd ? e : sd;
28742
- };
28743
- P.squareRoot = P.sqrt = function() {
28744
- var e, n, pr, r, s2, t, wpr, x2 = this, Ctor = x2.constructor;
28745
- if (x2.s < 1) {
28746
- if (!x2.s) return new Ctor(0);
28747
- throw Error(decimalError + "NaN");
28748
- }
28749
- e = getBase10Exponent(x2);
28750
- external = false;
28751
- s2 = Math.sqrt(+x2);
28752
- if (s2 == 0 || s2 == 1 / 0) {
28753
- n = digitsToString(x2.d);
28754
- if ((n.length + e) % 2 == 0) n += "0";
28755
- s2 = Math.sqrt(n);
28756
- e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
28757
- if (s2 == 1 / 0) {
28758
- n = "5e" + e;
28759
- } else {
28760
- n = s2.toExponential();
28761
- n = n.slice(0, n.indexOf("e") + 1) + e;
28762
- }
28763
- r = new Ctor(n);
28764
- } else {
28765
- r = new Ctor(s2.toString());
28766
- }
28767
- pr = Ctor.precision;
28768
- s2 = wpr = pr + 3;
28769
- for (; ; ) {
28770
- t = r;
28771
- r = t.plus(divide(x2, t, wpr + 2)).times(0.5);
28772
- if (digitsToString(t.d).slice(0, wpr) === (n = digitsToString(r.d)).slice(0, wpr)) {
28773
- n = n.slice(wpr - 3, wpr + 1);
28774
- if (s2 == wpr && n == "4999") {
28775
- round2(t, pr + 1, 0);
28776
- if (t.times(t).eq(x2)) {
28777
- r = t;
28778
- break;
28779
- }
28780
- } else if (n != "9999") {
28781
- break;
28782
- }
28783
- wpr += 4;
28784
- }
28785
- }
28786
- external = true;
28787
- return round2(r, pr);
28788
- };
28789
- P.times = P.mul = function(y2) {
28790
- var carry, e, i, k2, r, rL, t, xdL, ydL, x2 = this, Ctor = x2.constructor, xd = x2.d, yd = (y2 = new Ctor(y2)).d;
28791
- if (!x2.s || !y2.s) return new Ctor(0);
28792
- y2.s *= x2.s;
28793
- e = x2.e + y2.e;
28794
- xdL = xd.length;
28795
- ydL = yd.length;
28796
- if (xdL < ydL) {
28797
- r = xd;
28798
- xd = yd;
28799
- yd = r;
28800
- rL = xdL;
28801
- xdL = ydL;
28802
- ydL = rL;
28803
- }
28804
- r = [];
28805
- rL = xdL + ydL;
28806
- for (i = rL; i--; ) r.push(0);
28807
- for (i = ydL; --i >= 0; ) {
28808
- carry = 0;
28809
- for (k2 = xdL + i; k2 > i; ) {
28810
- t = r[k2] + yd[i] * xd[k2 - i - 1] + carry;
28811
- r[k2--] = t % BASE | 0;
28812
- carry = t / BASE | 0;
28813
- }
28814
- r[k2] = (r[k2] + carry) % BASE | 0;
28815
- }
28816
- for (; !r[--rL]; ) r.pop();
28817
- if (carry) ++e;
28818
- else r.shift();
28819
- y2.d = r;
28820
- y2.e = e;
28821
- return external ? round2(y2, Ctor.precision) : y2;
28822
- };
28823
- P.toDecimalPlaces = P.todp = function(dp, rm) {
28824
- var x2 = this, Ctor = x2.constructor;
28825
- x2 = new Ctor(x2);
28826
- if (dp === void 0) return x2;
28827
- checkInt32(dp, 0, MAX_DIGITS);
28828
- if (rm === void 0) rm = Ctor.rounding;
28829
- else checkInt32(rm, 0, 8);
28830
- return round2(x2, dp + getBase10Exponent(x2) + 1, rm);
28831
- };
28832
- P.toExponential = function(dp, rm) {
28833
- var str, x2 = this, Ctor = x2.constructor;
28834
- if (dp === void 0) {
28835
- str = toString2(x2, true);
28836
- } else {
28837
- checkInt32(dp, 0, MAX_DIGITS);
28838
- if (rm === void 0) rm = Ctor.rounding;
28839
- else checkInt32(rm, 0, 8);
28840
- x2 = round2(new Ctor(x2), dp + 1, rm);
28841
- str = toString2(x2, true, dp + 1);
28842
- }
28843
- return str;
28844
- };
28845
- P.toFixed = function(dp, rm) {
28846
- var str, y2, x2 = this, Ctor = x2.constructor;
28847
- if (dp === void 0) return toString2(x2);
28848
- checkInt32(dp, 0, MAX_DIGITS);
28849
- if (rm === void 0) rm = Ctor.rounding;
28850
- else checkInt32(rm, 0, 8);
28851
- y2 = round2(new Ctor(x2), dp + getBase10Exponent(x2) + 1, rm);
28852
- str = toString2(y2.abs(), false, dp + getBase10Exponent(y2) + 1);
28853
- return x2.isneg() && !x2.isZero() ? "-" + str : str;
28854
- };
28855
- P.toInteger = P.toint = function() {
28856
- var x2 = this, Ctor = x2.constructor;
28857
- return round2(new Ctor(x2), getBase10Exponent(x2) + 1, Ctor.rounding);
28858
- };
28859
- P.toNumber = function() {
28860
- return +this;
28861
- };
28862
- P.toPower = P.pow = function(y2) {
28863
- var e, k2, pr, r, sign2, yIsInt, x2 = this, Ctor = x2.constructor, guard = 12, yn = +(y2 = new Ctor(y2));
28864
- if (!y2.s) return new Ctor(ONE);
28865
- x2 = new Ctor(x2);
28866
- if (!x2.s) {
28867
- if (y2.s < 1) throw Error(decimalError + "Infinity");
28868
- return x2;
28869
- }
28870
- if (x2.eq(ONE)) return x2;
28871
- pr = Ctor.precision;
28872
- if (y2.eq(ONE)) return round2(x2, pr);
28873
- e = y2.e;
28874
- k2 = y2.d.length - 1;
28875
- yIsInt = e >= k2;
28876
- sign2 = x2.s;
28877
- if (!yIsInt) {
28878
- if (sign2 < 0) throw Error(decimalError + "NaN");
28879
- } else if ((k2 = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
28880
- r = new Ctor(ONE);
28881
- e = Math.ceil(pr / LOG_BASE + 4);
28882
- external = false;
28883
- for (; ; ) {
28884
- if (k2 % 2) {
28885
- r = r.times(x2);
28886
- truncate(r.d, e);
28887
- }
28888
- k2 = mathfloor(k2 / 2);
28889
- if (k2 === 0) break;
28890
- x2 = x2.times(x2);
28891
- truncate(x2.d, e);
28892
- }
28893
- external = true;
28894
- return y2.s < 0 ? new Ctor(ONE).div(r) : round2(r, pr);
28895
- }
28896
- sign2 = sign2 < 0 && y2.d[Math.max(e, k2)] & 1 ? -1 : 1;
28897
- x2.s = 1;
28898
- external = false;
28899
- r = y2.times(ln(x2, pr + guard));
28900
- external = true;
28901
- r = exp(r);
28902
- r.s = sign2;
28903
- return r;
28904
- };
28905
- P.toPrecision = function(sd, rm) {
28906
- var e, str, x2 = this, Ctor = x2.constructor;
28907
- if (sd === void 0) {
28908
- e = getBase10Exponent(x2);
28909
- str = toString2(x2, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
28910
- } else {
28911
- checkInt32(sd, 1, MAX_DIGITS);
28912
- if (rm === void 0) rm = Ctor.rounding;
28913
- else checkInt32(rm, 0, 8);
28914
- x2 = round2(new Ctor(x2), sd, rm);
28915
- e = getBase10Exponent(x2);
28916
- str = toString2(x2, sd <= e || e <= Ctor.toExpNeg, sd);
28917
- }
28918
- return str;
28919
- };
28920
- P.toSignificantDigits = P.tosd = function(sd, rm) {
28921
- var x2 = this, Ctor = x2.constructor;
28922
- if (sd === void 0) {
28923
- sd = Ctor.precision;
28924
- rm = Ctor.rounding;
28925
- } else {
28926
- checkInt32(sd, 1, MAX_DIGITS);
28927
- if (rm === void 0) rm = Ctor.rounding;
28928
- else checkInt32(rm, 0, 8);
28929
- }
28930
- return round2(new Ctor(x2), sd, rm);
28931
- };
28932
- P.toString = P.valueOf = P.val = P.toJSON = P[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = function() {
28933
- var x2 = this, e = getBase10Exponent(x2), Ctor = x2.constructor;
28934
- return toString2(x2, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
28935
- };
28936
- function add(x2, y2) {
28937
- var carry, d, e, i, k2, len, xd, yd, Ctor = x2.constructor, pr = Ctor.precision;
28938
- if (!x2.s || !y2.s) {
28939
- if (!y2.s) y2 = new Ctor(x2);
28940
- return external ? round2(y2, pr) : y2;
28941
- }
28942
- xd = x2.d;
28943
- yd = y2.d;
28944
- k2 = x2.e;
28945
- e = y2.e;
28946
- xd = xd.slice();
28947
- i = k2 - e;
28948
- if (i) {
28949
- if (i < 0) {
28950
- d = xd;
28951
- i = -i;
28952
- len = yd.length;
28953
- } else {
28954
- d = yd;
28955
- e = k2;
28956
- len = xd.length;
28957
- }
28958
- k2 = Math.ceil(pr / LOG_BASE);
28959
- len = k2 > len ? k2 + 1 : len + 1;
28960
- if (i > len) {
28961
- i = len;
28962
- d.length = 1;
28963
- }
28964
- d.reverse();
28965
- for (; i--; ) d.push(0);
28966
- d.reverse();
28967
- }
28968
- len = xd.length;
28969
- i = yd.length;
28970
- if (len - i < 0) {
28971
- i = len;
28972
- d = yd;
28973
- yd = xd;
28974
- xd = d;
28975
- }
28976
- for (carry = 0; i; ) {
28977
- carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
28978
- xd[i] %= BASE;
28979
- }
28980
- if (carry) {
28981
- xd.unshift(carry);
28982
- ++e;
28983
- }
28984
- for (len = xd.length; xd[--len] == 0; ) xd.pop();
28985
- y2.d = xd;
28986
- y2.e = e;
28987
- return external ? round2(y2, pr) : y2;
28988
- }
28989
- function checkInt32(i, min2, max2) {
28990
- if (i !== ~~i || i < min2 || i > max2) {
28991
- throw Error(invalidArgument + i);
28992
- }
28993
- }
28994
- function digitsToString(d) {
28995
- var i, k2, ws, indexOfLastWord = d.length - 1, str = "", w = d[0];
28996
- if (indexOfLastWord > 0) {
28997
- str += w;
28998
- for (i = 1; i < indexOfLastWord; i++) {
28999
- ws = d[i] + "";
29000
- k2 = LOG_BASE - ws.length;
29001
- if (k2) str += getZeroString(k2);
29002
- str += ws;
29003
- }
29004
- w = d[i];
29005
- ws = w + "";
29006
- k2 = LOG_BASE - ws.length;
29007
- if (k2) str += getZeroString(k2);
29008
- } else if (w === 0) {
29009
- return "0";
29010
- }
29011
- for (; w % 10 === 0; ) w /= 10;
29012
- return str + w;
29013
- }
29014
- var divide = /* @__PURE__ */ (function() {
29015
- function multiplyInteger(x2, k2) {
29016
- var temp, carry = 0, i = x2.length;
29017
- for (x2 = x2.slice(); i--; ) {
29018
- temp = x2[i] * k2 + carry;
29019
- x2[i] = temp % BASE | 0;
29020
- carry = temp / BASE | 0;
29021
- }
29022
- if (carry) x2.unshift(carry);
29023
- return x2;
29024
- }
29025
- function compare(a2, b, aL, bL) {
29026
- var i, r;
29027
- if (aL != bL) {
29028
- r = aL > bL ? 1 : -1;
29029
- } else {
29030
- for (i = r = 0; i < aL; i++) {
29031
- if (a2[i] != b[i]) {
29032
- r = a2[i] > b[i] ? 1 : -1;
29033
- break;
29034
- }
29035
- }
29036
- }
29037
- return r;
29038
- }
29039
- function subtract2(a2, b, aL) {
29040
- var i = 0;
29041
- for (; aL--; ) {
29042
- a2[aL] -= i;
29043
- i = a2[aL] < b[aL] ? 1 : 0;
29044
- a2[aL] = i * BASE + a2[aL] - b[aL];
29045
- }
29046
- for (; !a2[0] && a2.length > 1; ) a2.shift();
29047
- }
29048
- return function(x2, y2, pr, dp) {
29049
- var cmp, e, i, k2, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0, yL, yz, Ctor = x2.constructor, sign2 = x2.s == y2.s ? 1 : -1, xd = x2.d, yd = y2.d;
29050
- if (!x2.s) return new Ctor(x2);
29051
- if (!y2.s) throw Error(decimalError + "Division by zero");
29052
- e = x2.e - y2.e;
29053
- yL = yd.length;
29054
- xL = xd.length;
29055
- q = new Ctor(sign2);
29056
- qd = q.d = [];
29057
- for (i = 0; yd[i] == (xd[i] || 0); ) ++i;
29058
- if (yd[i] > (xd[i] || 0)) --e;
29059
- if (pr == null) {
29060
- sd = pr = Ctor.precision;
29061
- } else if (dp) {
29062
- sd = pr + (getBase10Exponent(x2) - getBase10Exponent(y2)) + 1;
29063
- } else {
29064
- sd = pr;
29065
- }
29066
- if (sd < 0) return new Ctor(0);
29067
- sd = sd / LOG_BASE + 2 | 0;
29068
- i = 0;
29069
- if (yL == 1) {
29070
- k2 = 0;
29071
- yd = yd[0];
29072
- sd++;
29073
- for (; (i < xL || k2) && sd--; i++) {
29074
- t = k2 * BASE + (xd[i] || 0);
29075
- qd[i] = t / yd | 0;
29076
- k2 = t % yd | 0;
29077
- }
29078
- } else {
29079
- k2 = BASE / (yd[0] + 1) | 0;
29080
- if (k2 > 1) {
29081
- yd = multiplyInteger(yd, k2);
29082
- xd = multiplyInteger(xd, k2);
29083
- yL = yd.length;
29084
- xL = xd.length;
29085
- }
29086
- xi = yL;
29087
- rem = xd.slice(0, yL);
29088
- remL = rem.length;
29089
- for (; remL < yL; ) rem[remL++] = 0;
29090
- yz = yd.slice();
29091
- yz.unshift(0);
29092
- yd0 = yd[0];
29093
- if (yd[1] >= BASE / 2) ++yd0;
29094
- do {
29095
- k2 = 0;
29096
- cmp = compare(yd, rem, yL, remL);
29097
- if (cmp < 0) {
29098
- rem0 = rem[0];
29099
- if (yL != remL) rem0 = rem0 * BASE + (rem[1] || 0);
29100
- k2 = rem0 / yd0 | 0;
29101
- if (k2 > 1) {
29102
- if (k2 >= BASE) k2 = BASE - 1;
29103
- prod = multiplyInteger(yd, k2);
29104
- prodL = prod.length;
29105
- remL = rem.length;
29106
- cmp = compare(prod, rem, prodL, remL);
29107
- if (cmp == 1) {
29108
- k2--;
29109
- subtract2(prod, yL < prodL ? yz : yd, prodL);
29110
- }
29111
- } else {
29112
- if (k2 == 0) cmp = k2 = 1;
29113
- prod = yd.slice();
29114
- }
29115
- prodL = prod.length;
29116
- if (prodL < remL) prod.unshift(0);
29117
- subtract2(rem, prod, remL);
29118
- if (cmp == -1) {
29119
- remL = rem.length;
29120
- cmp = compare(yd, rem, yL, remL);
29121
- if (cmp < 1) {
29122
- k2++;
29123
- subtract2(rem, yL < remL ? yz : yd, remL);
29124
- }
29125
- }
29126
- remL = rem.length;
29127
- } else if (cmp === 0) {
29128
- k2++;
29129
- rem = [0];
29130
- }
29131
- qd[i++] = k2;
29132
- if (cmp && rem[0]) {
29133
- rem[remL++] = xd[xi] || 0;
29134
- } else {
29135
- rem = [xd[xi]];
29136
- remL = 1;
29137
- }
29138
- } while ((xi++ < xL || rem[0] !== void 0) && sd--);
29139
- }
29140
- if (!qd[0]) qd.shift();
29141
- q.e = e;
29142
- return round2(q, dp ? pr + getBase10Exponent(q) + 1 : pr);
29143
- };
29144
- })();
29145
- function exp(x2, sd) {
29146
- var denominator, guard, pow2, sum, t, wpr, i = 0, k2 = 0, Ctor = x2.constructor, pr = Ctor.precision;
29147
- if (getBase10Exponent(x2) > 16) throw Error(exponentOutOfRange + getBase10Exponent(x2));
29148
- if (!x2.s) return new Ctor(ONE);
29149
- {
29150
- external = false;
29151
- wpr = pr;
29152
- }
29153
- t = new Ctor(0.03125);
29154
- while (x2.abs().gte(0.1)) {
29155
- x2 = x2.times(t);
29156
- k2 += 5;
29157
- }
29158
- guard = Math.log(mathpow(2, k2)) / Math.LN10 * 2 + 5 | 0;
29159
- wpr += guard;
29160
- denominator = pow2 = sum = new Ctor(ONE);
29161
- Ctor.precision = wpr;
29162
- for (; ; ) {
29163
- pow2 = round2(pow2.times(x2), wpr);
29164
- denominator = denominator.times(++i);
29165
- t = sum.plus(divide(pow2, denominator, wpr));
29166
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
29167
- while (k2--) sum = round2(sum.times(sum), wpr);
29168
- Ctor.precision = pr;
29169
- return sd == null ? (external = true, round2(sum, pr)) : sum;
29170
- }
29171
- sum = t;
29172
- }
29173
- }
29174
- function getBase10Exponent(x2) {
29175
- var e = x2.e * LOG_BASE, w = x2.d[0];
29176
- for (; w >= 10; w /= 10) e++;
29177
- return e;
29178
- }
29179
- function getLn10(Ctor, sd, pr) {
29180
- if (sd > Ctor.LN10.sd()) {
29181
- external = true;
29182
- if (pr) Ctor.precision = pr;
29183
- throw Error(decimalError + "LN10 precision limit exceeded");
29184
- }
29185
- return round2(new Ctor(Ctor.LN10), sd);
29186
- }
29187
- function getZeroString(k2) {
29188
- var zs = "";
29189
- for (; k2--; ) zs += "0";
29190
- return zs;
29191
- }
29192
- function ln(y2, sd) {
29193
- var c2, c0, denominator, e, numerator, sum, t, wpr, x2, n = 1, guard = 10, x3 = y2, xd = x3.d, Ctor = x3.constructor, pr = Ctor.precision;
29194
- if (x3.s < 1) throw Error(decimalError + (x3.s ? "NaN" : "-Infinity"));
29195
- if (x3.eq(ONE)) return new Ctor(0);
29196
- if (sd == null) {
29197
- external = false;
29198
- wpr = pr;
29199
- } else {
29200
- wpr = sd;
29201
- }
29202
- if (x3.eq(10)) {
29203
- if (sd == null) external = true;
29204
- return getLn10(Ctor, wpr);
29205
- }
29206
- wpr += guard;
29207
- Ctor.precision = wpr;
29208
- c2 = digitsToString(xd);
29209
- c0 = c2.charAt(0);
29210
- e = getBase10Exponent(x3);
29211
- if (Math.abs(e) < 15e14) {
29212
- while (c0 < 7 && c0 != 1 || c0 == 1 && c2.charAt(1) > 3) {
29213
- x3 = x3.times(y2);
29214
- c2 = digitsToString(x3.d);
29215
- c0 = c2.charAt(0);
29216
- n++;
29217
- }
29218
- e = getBase10Exponent(x3);
29219
- if (c0 > 1) {
29220
- x3 = new Ctor("0." + c2);
29221
- e++;
29222
- } else {
29223
- x3 = new Ctor(c0 + "." + c2.slice(1));
29224
- }
29225
- } else {
29226
- t = getLn10(Ctor, wpr + 2, pr).times(e + "");
29227
- x3 = ln(new Ctor(c0 + "." + c2.slice(1)), wpr - guard).plus(t);
29228
- Ctor.precision = pr;
29229
- return sd == null ? (external = true, round2(x3, pr)) : x3;
29230
- }
29231
- sum = numerator = x3 = divide(x3.minus(ONE), x3.plus(ONE), wpr);
29232
- x2 = round2(x3.times(x3), wpr);
29233
- denominator = 3;
29234
- for (; ; ) {
29235
- numerator = round2(numerator.times(x2), wpr);
29236
- t = sum.plus(divide(numerator, new Ctor(denominator), wpr));
29237
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
29238
- sum = sum.times(2);
29239
- if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ""));
29240
- sum = divide(sum, new Ctor(n), wpr);
29241
- Ctor.precision = pr;
29242
- return sd == null ? (external = true, round2(sum, pr)) : sum;
29243
- }
29244
- sum = t;
29245
- denominator += 2;
29246
- }
29247
- }
29248
- function parseDecimal(x2, str) {
29249
- var e, i, len;
29250
- if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
29251
- if ((i = str.search(/e/i)) > 0) {
29252
- if (e < 0) e = i;
29253
- e += +str.slice(i + 1);
29254
- str = str.substring(0, i);
29255
- } else if (e < 0) {
29256
- e = str.length;
29257
- }
29258
- for (i = 0; str.charCodeAt(i) === 48; ) ++i;
29259
- for (len = str.length; str.charCodeAt(len - 1) === 48; ) --len;
29260
- str = str.slice(i, len);
29261
- if (str) {
29262
- len -= i;
29263
- e = e - i - 1;
29264
- x2.e = mathfloor(e / LOG_BASE);
29265
- x2.d = [];
29266
- i = (e + 1) % LOG_BASE;
29267
- if (e < 0) i += LOG_BASE;
29268
- if (i < len) {
29269
- if (i) x2.d.push(+str.slice(0, i));
29270
- for (len -= LOG_BASE; i < len; ) x2.d.push(+str.slice(i, i += LOG_BASE));
29271
- str = str.slice(i);
29272
- i = LOG_BASE - str.length;
29273
- } else {
29274
- i -= len;
29275
- }
29276
- for (; i--; ) str += "0";
29277
- x2.d.push(+str);
29278
- if (external && (x2.e > MAX_E || x2.e < -MAX_E)) throw Error(exponentOutOfRange + e);
29279
- } else {
29280
- x2.s = 0;
29281
- x2.e = 0;
29282
- x2.d = [0];
29283
- }
29284
- return x2;
29285
- }
29286
- function round2(x2, sd, rm) {
29287
- var i, j, k2, n, rd, doRound, w, xdi, xd = x2.d;
29288
- for (n = 1, k2 = xd[0]; k2 >= 10; k2 /= 10) n++;
29289
- i = sd - n;
29290
- if (i < 0) {
29291
- i += LOG_BASE;
29292
- j = sd;
29293
- w = xd[xdi = 0];
29294
- } else {
29295
- xdi = Math.ceil((i + 1) / LOG_BASE);
29296
- k2 = xd.length;
29297
- if (xdi >= k2) return x2;
29298
- w = k2 = xd[xdi];
29299
- for (n = 1; k2 >= 10; k2 /= 10) n++;
29300
- i %= LOG_BASE;
29301
- j = i - LOG_BASE + n;
29302
- }
29303
- if (rm !== void 0) {
29304
- k2 = mathpow(10, n - j - 1);
29305
- rd = w / k2 % 10 | 0;
29306
- doRound = sd < 0 || xd[xdi + 1] !== void 0 || w % k2;
29307
- doRound = rm < 4 ? (rd || doRound) && (rm == 0 || rm == (x2.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || doRound || rm == 6 && // Check whether the digit to the left of the rounding digit is odd.
29308
- (i > 0 ? j > 0 ? w / mathpow(10, n - j) : 0 : xd[xdi - 1]) % 10 & 1 || rm == (x2.s < 0 ? 8 : 7));
29309
- }
29310
- if (sd < 1 || !xd[0]) {
29311
- if (doRound) {
29312
- k2 = getBase10Exponent(x2);
29313
- xd.length = 1;
29314
- sd = sd - k2 - 1;
29315
- xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);
29316
- x2.e = mathfloor(-sd / LOG_BASE) || 0;
29317
- } else {
29318
- xd.length = 1;
29319
- xd[0] = x2.e = x2.s = 0;
29320
- }
29321
- return x2;
29322
- }
29323
- if (i == 0) {
29324
- xd.length = xdi;
29325
- k2 = 1;
29326
- xdi--;
29327
- } else {
29328
- xd.length = xdi + 1;
29329
- k2 = mathpow(10, LOG_BASE - i);
29330
- xd[xdi] = j > 0 ? (w / mathpow(10, n - j) % mathpow(10, j) | 0) * k2 : 0;
29331
- }
29332
- if (doRound) {
29333
- for (; ; ) {
29334
- if (xdi == 0) {
29335
- if ((xd[0] += k2) == BASE) {
29336
- xd[0] = 1;
29337
- ++x2.e;
29338
- }
29339
- break;
29340
- } else {
29341
- xd[xdi] += k2;
29342
- if (xd[xdi] != BASE) break;
29343
- xd[xdi--] = 0;
29344
- k2 = 1;
29345
- }
29346
- }
29347
- }
29348
- for (i = xd.length; xd[--i] === 0; ) xd.pop();
29349
- if (external && (x2.e > MAX_E || x2.e < -MAX_E)) {
29350
- throw Error(exponentOutOfRange + getBase10Exponent(x2));
29351
- }
29352
- return x2;
29353
- }
29354
- function subtract(x2, y2) {
29355
- var d, e, i, j, k2, len, xd, xe, xLTy, yd, Ctor = x2.constructor, pr = Ctor.precision;
29356
- if (!x2.s || !y2.s) {
29357
- if (y2.s) y2.s = -y2.s;
29358
- else y2 = new Ctor(x2);
29359
- return external ? round2(y2, pr) : y2;
29360
- }
29361
- xd = x2.d;
29362
- yd = y2.d;
29363
- e = y2.e;
29364
- xe = x2.e;
29365
- xd = xd.slice();
29366
- k2 = xe - e;
29367
- if (k2) {
29368
- xLTy = k2 < 0;
29369
- if (xLTy) {
29370
- d = xd;
29371
- k2 = -k2;
29372
- len = yd.length;
29373
- } else {
29374
- d = yd;
29375
- e = xe;
29376
- len = xd.length;
29377
- }
29378
- i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;
29379
- if (k2 > i) {
29380
- k2 = i;
29381
- d.length = 1;
29382
- }
29383
- d.reverse();
29384
- for (i = k2; i--; ) d.push(0);
29385
- d.reverse();
29386
- } else {
29387
- i = xd.length;
29388
- len = yd.length;
29389
- xLTy = i < len;
29390
- if (xLTy) len = i;
29391
- for (i = 0; i < len; i++) {
29392
- if (xd[i] != yd[i]) {
29393
- xLTy = xd[i] < yd[i];
29394
- break;
29395
- }
29396
- }
29397
- k2 = 0;
29398
- }
29399
- if (xLTy) {
29400
- d = xd;
29401
- xd = yd;
29402
- yd = d;
29403
- y2.s = -y2.s;
29404
- }
29405
- len = xd.length;
29406
- for (i = yd.length - len; i > 0; --i) xd[len++] = 0;
29407
- for (i = yd.length; i > k2; ) {
29408
- if (xd[--i] < yd[i]) {
29409
- for (j = i; j && xd[--j] === 0; ) xd[j] = BASE - 1;
29410
- --xd[j];
29411
- xd[i] += BASE;
29412
- }
29413
- xd[i] -= yd[i];
29414
- }
29415
- for (; xd[--len] === 0; ) xd.pop();
29416
- for (; xd[0] === 0; xd.shift()) --e;
29417
- if (!xd[0]) return new Ctor(0);
29418
- y2.d = xd;
29419
- y2.e = e;
29420
- return external ? round2(y2, pr) : y2;
29421
- }
29422
- function toString2(x2, isExp, sd) {
29423
- var k2, e = getBase10Exponent(x2), str = digitsToString(x2.d), len = str.length;
29424
- if (isExp) {
29425
- if (sd && (k2 = sd - len) > 0) {
29426
- str = str.charAt(0) + "." + str.slice(1) + getZeroString(k2);
29427
- } else if (len > 1) {
29428
- str = str.charAt(0) + "." + str.slice(1);
29429
- }
29430
- str = str + (e < 0 ? "e" : "e+") + e;
29431
- } else if (e < 0) {
29432
- str = "0." + getZeroString(-e - 1) + str;
29433
- if (sd && (k2 = sd - len) > 0) str += getZeroString(k2);
29434
- } else if (e >= len) {
29435
- str += getZeroString(e + 1 - len);
29436
- if (sd && (k2 = sd - e - 1) > 0) str = str + "." + getZeroString(k2);
29437
- } else {
29438
- if ((k2 = e + 1) < len) str = str.slice(0, k2) + "." + str.slice(k2);
29439
- if (sd && (k2 = sd - len) > 0) {
29440
- if (e + 1 === len) str += ".";
29441
- str += getZeroString(k2);
29442
- }
29443
- }
29444
- return x2.s < 0 ? "-" + str : str;
29445
- }
29446
- function truncate(arr, len) {
29447
- if (arr.length > len) {
29448
- arr.length = len;
29449
- return true;
29450
- }
29451
- }
29452
- function clone(obj) {
29453
- var i, p, ps;
29454
- function Decimal2(value) {
29455
- var x2 = this;
29456
- if (!(x2 instanceof Decimal2)) return new Decimal2(value);
29457
- x2.constructor = Decimal2;
29458
- if (value instanceof Decimal2) {
29459
- x2.s = value.s;
29460
- x2.e = value.e;
29461
- x2.d = (value = value.d) ? value.slice() : value;
29462
- return;
29463
- }
29464
- if (typeof value === "number") {
29465
- if (value * 0 !== 0) {
29466
- throw Error(invalidArgument + value);
29467
- }
29468
- if (value > 0) {
29469
- x2.s = 1;
29470
- } else if (value < 0) {
29471
- value = -value;
29472
- x2.s = -1;
29473
- } else {
29474
- x2.s = 0;
29475
- x2.e = 0;
29476
- x2.d = [0];
29477
- return;
29478
- }
29479
- if (value === ~~value && value < 1e7) {
29480
- x2.e = 0;
29481
- x2.d = [value];
29482
- return;
29483
- }
29484
- return parseDecimal(x2, value.toString());
29485
- } else if (typeof value !== "string") {
29486
- throw Error(invalidArgument + value);
29487
- }
29488
- if (value.charCodeAt(0) === 45) {
29489
- value = value.slice(1);
29490
- x2.s = -1;
29491
- } else {
29492
- x2.s = 1;
29493
- }
29494
- if (isDecimal.test(value)) parseDecimal(x2, value);
29495
- else throw Error(invalidArgument + value);
29496
- }
29497
- Decimal2.prototype = P;
29498
- Decimal2.ROUND_UP = 0;
29499
- Decimal2.ROUND_DOWN = 1;
29500
- Decimal2.ROUND_CEIL = 2;
29501
- Decimal2.ROUND_FLOOR = 3;
29502
- Decimal2.ROUND_HALF_UP = 4;
29503
- Decimal2.ROUND_HALF_DOWN = 5;
29504
- Decimal2.ROUND_HALF_EVEN = 6;
29505
- Decimal2.ROUND_HALF_CEIL = 7;
29506
- Decimal2.ROUND_HALF_FLOOR = 8;
29507
- Decimal2.clone = clone;
29508
- Decimal2.config = Decimal2.set = config;
29509
- if (obj === void 0) obj = {};
29510
- if (obj) {
29511
- ps = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"];
29512
- for (i = 0; i < ps.length; ) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];
29513
- }
29514
- Decimal2.config(obj);
29515
- return Decimal2;
29516
- }
29517
- function config(obj) {
29518
- if (!obj || typeof obj !== "object") {
29519
- throw Error(decimalError + "Object expected");
29520
- }
29521
- var i, p, v, ps = [
29522
- "precision",
29523
- 1,
29524
- MAX_DIGITS,
29525
- "rounding",
29526
- 0,
29527
- 8,
29528
- "toExpNeg",
29529
- -1 / 0,
29530
- 0,
29531
- "toExpPos",
29532
- 0,
29533
- 1 / 0
29534
- ];
29535
- for (i = 0; i < ps.length; i += 3) {
29536
- if ((v = obj[p = ps[i]]) !== void 0) {
29537
- if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;
29538
- else throw Error(invalidArgument + p + ": " + v);
29539
- }
29540
- }
29541
- if ((v = obj[p = "LN10"]) !== void 0) {
29542
- if (v == Math.LN10) this[p] = new this(v);
29543
- else throw Error(invalidArgument + p + ": " + v);
29544
- }
29545
- return this;
29546
- }
29547
- var Decimal = clone(defaults);
29548
- ONE = new Decimal(1);
29549
- var decimal_default = Decimal;
28986
+ // ../../node_modules/recharts/es6/util/scale/getNiceTickValues.js
28987
+ var import_decimal2 = __toESM(require_decimal());
29550
28988
 
29551
28989
  // ../../node_modules/recharts/es6/util/scale/util/arithmetic.js
28990
+ var import_decimal = __toESM(require_decimal());
29552
28991
  function getDigitCount(value) {
29553
28992
  var result;
29554
28993
  if (value === 0) {
29555
28994
  result = 1;
29556
28995
  } else {
29557
- result = Math.floor(new decimal_default(value).abs().log(10).toNumber()) + 1;
28996
+ result = Math.floor(new import_decimal.default(value).abs().log(10).toNumber()) + 1;
29558
28997
  }
29559
28998
  return result;
29560
28999
  }
29561
29000
  function rangeStep(start, end, step) {
29562
- var num = new decimal_default(start);
29001
+ var num = new import_decimal.default(start);
29563
29002
  var i = 0;
29564
29003
  var result = [];
29565
29004
  while (num.lt(end) && i < 1e5) {
@@ -29621,25 +29060,25 @@ var getValidInterval = (_ref2) => {
29621
29060
  };
29622
29061
  var getAdaptiveStep = (roughStep, allowDecimals, correctionFactor) => {
29623
29062
  if (roughStep.lte(0)) {
29624
- return new decimal_default(0);
29063
+ return new import_decimal2.default(0);
29625
29064
  }
29626
29065
  var digitCount = getDigitCount(roughStep.toNumber());
29627
- var digitCountValue = new decimal_default(10).pow(digitCount);
29066
+ var digitCountValue = new import_decimal2.default(10).pow(digitCount);
29628
29067
  var stepRatio = roughStep.div(digitCountValue);
29629
29068
  var stepRatioScale = digitCount !== 1 ? 0.05 : 0.1;
29630
- var amendStepRatio = new decimal_default(Math.ceil(stepRatio.div(stepRatioScale).toNumber())).add(correctionFactor).mul(stepRatioScale);
29069
+ var amendStepRatio = new import_decimal2.default(Math.ceil(stepRatio.div(stepRatioScale).toNumber())).add(correctionFactor).mul(stepRatioScale);
29631
29070
  var formatStep = amendStepRatio.mul(digitCountValue);
29632
- return allowDecimals ? new decimal_default(formatStep.toNumber()) : new decimal_default(Math.ceil(formatStep.toNumber()));
29071
+ return allowDecimals ? new import_decimal2.default(formatStep.toNumber()) : new import_decimal2.default(Math.ceil(formatStep.toNumber()));
29633
29072
  };
29634
29073
  var getSnap125Step = (roughStep, allowDecimals, correctionFactor) => {
29635
29074
  var _NICE_STEPS$niceIdx;
29636
29075
  if (roughStep.lte(0)) {
29637
- return new decimal_default(0);
29076
+ return new import_decimal2.default(0);
29638
29077
  }
29639
29078
  var NICE_STEPS = [1, 2, 2.5, 5];
29640
29079
  var roughNum = roughStep.toNumber();
29641
- var exponent = Math.floor(new decimal_default(roughNum).abs().log(10).toNumber());
29642
- var magnitude = new decimal_default(10).pow(exponent);
29080
+ var exponent = Math.floor(new import_decimal2.default(roughNum).abs().log(10).toNumber());
29081
+ var magnitude = new import_decimal2.default(10).pow(exponent);
29643
29082
  var normalized = roughStep.div(magnitude).toNumber();
29644
29083
  var niceIdx = NICE_STEPS.findIndex((s2) => s2 >= normalized - 1e-10);
29645
29084
  if (niceIdx === -1) {
@@ -29650,32 +29089,32 @@ var getSnap125Step = (roughStep, allowDecimals, correctionFactor) => {
29650
29089
  if (niceIdx >= NICE_STEPS.length) {
29651
29090
  var extraMag = Math.floor(niceIdx / NICE_STEPS.length);
29652
29091
  niceIdx %= NICE_STEPS.length;
29653
- magnitude = magnitude.mul(new decimal_default(10).pow(extraMag));
29092
+ magnitude = magnitude.mul(new import_decimal2.default(10).pow(extraMag));
29654
29093
  }
29655
29094
  var niceStep = (_NICE_STEPS$niceIdx = NICE_STEPS[niceIdx]) !== null && _NICE_STEPS$niceIdx !== void 0 ? _NICE_STEPS$niceIdx : 1;
29656
- var formatStep = new decimal_default(niceStep).mul(magnitude);
29657
- return allowDecimals ? formatStep : new decimal_default(Math.ceil(formatStep.toNumber()));
29095
+ var formatStep = new import_decimal2.default(niceStep).mul(magnitude);
29096
+ return allowDecimals ? formatStep : new import_decimal2.default(Math.ceil(formatStep.toNumber()));
29658
29097
  };
29659
29098
  var getTickOfSingleValue = (value, tickCount, allowDecimals) => {
29660
- var step = new decimal_default(1);
29661
- var middle = new decimal_default(value);
29099
+ var step = new import_decimal2.default(1);
29100
+ var middle = new import_decimal2.default(value);
29662
29101
  if (!middle.isint() && allowDecimals) {
29663
29102
  var absVal = Math.abs(value);
29664
29103
  if (absVal < 1) {
29665
- step = new decimal_default(10).pow(getDigitCount(value) - 1);
29666
- middle = new decimal_default(Math.floor(middle.div(step).toNumber())).mul(step);
29104
+ step = new import_decimal2.default(10).pow(getDigitCount(value) - 1);
29105
+ middle = new import_decimal2.default(Math.floor(middle.div(step).toNumber())).mul(step);
29667
29106
  } else if (absVal > 1) {
29668
- middle = new decimal_default(Math.floor(value));
29107
+ middle = new import_decimal2.default(Math.floor(value));
29669
29108
  }
29670
29109
  } else if (value === 0) {
29671
- middle = new decimal_default(Math.floor((tickCount - 1) / 2));
29110
+ middle = new import_decimal2.default(Math.floor((tickCount - 1) / 2));
29672
29111
  } else if (!allowDecimals) {
29673
- middle = new decimal_default(Math.floor(value));
29112
+ middle = new import_decimal2.default(Math.floor(value));
29674
29113
  }
29675
29114
  var middleIndex = Math.floor((tickCount - 1) / 2);
29676
29115
  var ticks2 = [];
29677
29116
  for (var i = 0; i < tickCount; i++) {
29678
- ticks2.push(middle.add(new decimal_default(i - middleIndex).mul(step)).toNumber());
29117
+ ticks2.push(middle.add(new import_decimal2.default(i - middleIndex).mul(step)).toNumber());
29679
29118
  }
29680
29119
  return ticks2;
29681
29120
  };
@@ -29684,21 +29123,21 @@ var _calculateStep = function calculateStep(min2, max2, tickCount, allowDecimals
29684
29123
  var stepFn = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : getAdaptiveStep;
29685
29124
  if (!Number.isFinite((max2 - min2) / (tickCount - 1))) {
29686
29125
  return {
29687
- step: new decimal_default(0),
29688
- tickMin: new decimal_default(0),
29689
- tickMax: new decimal_default(0)
29126
+ step: new import_decimal2.default(0),
29127
+ tickMin: new import_decimal2.default(0),
29128
+ tickMax: new import_decimal2.default(0)
29690
29129
  };
29691
29130
  }
29692
- var step = stepFn(new decimal_default(max2).sub(min2).div(tickCount - 1), allowDecimals, correctionFactor);
29131
+ var step = stepFn(new import_decimal2.default(max2).sub(min2).div(tickCount - 1), allowDecimals, correctionFactor);
29693
29132
  var middle;
29694
29133
  if (min2 <= 0 && max2 >= 0) {
29695
- middle = new decimal_default(0);
29134
+ middle = new import_decimal2.default(0);
29696
29135
  } else {
29697
- middle = new decimal_default(min2).add(max2).div(2);
29698
- middle = middle.sub(new decimal_default(middle).mod(step));
29136
+ middle = new import_decimal2.default(min2).add(max2).div(2);
29137
+ middle = middle.sub(new import_decimal2.default(middle).mod(step));
29699
29138
  }
29700
29139
  var belowCount = Math.ceil(middle.sub(min2).div(step).toNumber());
29701
- var upCount = Math.ceil(new decimal_default(max2).sub(middle).div(step).toNumber());
29140
+ var upCount = Math.ceil(new import_decimal2.default(max2).sub(middle).div(step).toNumber());
29702
29141
  var scaleCount = belowCount + upCount + 1;
29703
29142
  if (scaleCount > tickCount) {
29704
29143
  return _calculateStep(min2, max2, tickCount, allowDecimals, correctionFactor + 1, stepFn);
@@ -29709,8 +29148,8 @@ var _calculateStep = function calculateStep(min2, max2, tickCount, allowDecimals
29709
29148
  }
29710
29149
  return {
29711
29150
  step,
29712
- tickMin: middle.sub(new decimal_default(belowCount).mul(step)),
29713
- tickMax: middle.add(new decimal_default(upCount).mul(step))
29151
+ tickMin: middle.sub(new import_decimal2.default(belowCount).mul(step)),
29152
+ tickMax: middle.add(new import_decimal2.default(upCount).mul(step))
29714
29153
  };
29715
29154
  };
29716
29155
  var getNiceTickValues = function getNiceTickValues2(_ref3) {
@@ -29729,7 +29168,7 @@ var getNiceTickValues = function getNiceTickValues2(_ref3) {
29729
29168
  }
29730
29169
  var stepFn = niceTicksMode === "snap125" ? getSnap125Step : getAdaptiveStep;
29731
29170
  var _calculateStep2 = _calculateStep(cormin, cormax, count, allowDecimals, 0, stepFn), step = _calculateStep2.step, tickMin = _calculateStep2.tickMin, tickMax = _calculateStep2.tickMax;
29732
- var values = rangeStep(tickMin, tickMax.add(new decimal_default(0.1).mul(step)), step);
29171
+ var values = rangeStep(tickMin, tickMax.add(new import_decimal2.default(0.1).mul(step)), step);
29733
29172
  return min2 > max2 ? values.reverse() : values;
29734
29173
  };
29735
29174
  var getTickValuesFixedDomain = function getTickValuesFixedDomain2(_ref5, tickCount) {
@@ -29745,8 +29184,8 @@ var getTickValuesFixedDomain = function getTickValuesFixedDomain2(_ref5, tickCou
29745
29184
  }
29746
29185
  var stepFn = niceTicksMode === "snap125" ? getSnap125Step : getAdaptiveStep;
29747
29186
  var count = Math.max(tickCount, 2);
29748
- var step = stepFn(new decimal_default(cormax).sub(cormin).div(count - 1), allowDecimals, 0);
29749
- var values = [...rangeStep(new decimal_default(cormin), new decimal_default(cormax), step), cormax];
29187
+ var step = stepFn(new import_decimal2.default(cormax).sub(cormin).div(count - 1), allowDecimals, 0);
29188
+ var values = [...rangeStep(new import_decimal2.default(cormin), new import_decimal2.default(cormax), step), cormax];
29750
29189
  if (allowDecimals === false) {
29751
29190
  values = values.map((value) => Math.round(value));
29752
29191
  var last = values.length - 1;
@@ -30589,15 +30028,15 @@ function ordinal() {
30589
30028
 
30590
30029
  // ../../node_modules/d3-scale/src/band.js
30591
30030
  function band() {
30592
- var scale = ordinal().unknown(void 0), domain = scale.domain, ordinalRange = scale.range, r0 = 0, r1 = 1, step, bandwidth, round3 = false, paddingInner = 0, paddingOuter = 0, align = 0.5;
30031
+ var scale = ordinal().unknown(void 0), domain = scale.domain, ordinalRange = scale.range, r0 = 0, r1 = 1, step, bandwidth, round2 = false, paddingInner = 0, paddingOuter = 0, align = 0.5;
30593
30032
  delete scale.unknown;
30594
30033
  function rescale() {
30595
30034
  var n = domain().length, reverse = r1 < r0, start = reverse ? r1 : r0, stop = reverse ? r0 : r1;
30596
30035
  step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);
30597
- if (round3) step = Math.floor(step);
30036
+ if (round2) step = Math.floor(step);
30598
30037
  start += (stop - start - step * (n - paddingInner)) * align;
30599
30038
  bandwidth = step * (1 - paddingInner);
30600
- if (round3) start = Math.round(start), bandwidth = Math.round(bandwidth);
30039
+ if (round2) start = Math.round(start), bandwidth = Math.round(bandwidth);
30601
30040
  var values = range2(n).map(function(i) {
30602
30041
  return start + step * i;
30603
30042
  });
@@ -30610,7 +30049,7 @@ function band() {
30610
30049
  return arguments.length ? ([r0, r1] = _, r0 = +r0, r1 = +r1, rescale()) : [r0, r1];
30611
30050
  };
30612
30051
  scale.rangeRound = function(_) {
30613
- return [r0, r1] = _, r0 = +r0, r1 = +r1, round3 = true, rescale();
30052
+ return [r0, r1] = _, r0 = +r0, r1 = +r1, round2 = true, rescale();
30614
30053
  };
30615
30054
  scale.bandwidth = function() {
30616
30055
  return bandwidth;
@@ -30619,7 +30058,7 @@ function band() {
30619
30058
  return step;
30620
30059
  };
30621
30060
  scale.round = function(_) {
30622
- return arguments.length ? (round3 = !!_, rescale()) : round3;
30061
+ return arguments.length ? (round2 = !!_, rescale()) : round2;
30623
30062
  };
30624
30063
  scale.padding = function(_) {
30625
30064
  return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;
@@ -30634,7 +30073,7 @@ function band() {
30634
30073
  return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;
30635
30074
  };
30636
30075
  scale.copy = function() {
30637
- return band(domain(), [r0, r1]).round(round3).paddingInner(paddingInner).paddingOuter(paddingOuter).align(align);
30076
+ return band(domain(), [r0, r1]).round(round2).paddingInner(paddingInner).paddingOuter(paddingOuter).align(align);
30638
30077
  };
30639
30078
  return initRange.apply(rescale(), arguments);
30640
30079
  }
@@ -31557,10 +30996,10 @@ function unsquare(x2) {
31557
30996
  return Math.sign(x2) * Math.sqrt(Math.abs(x2));
31558
30997
  }
31559
30998
  function radial() {
31560
- var squared = continuous(), range3 = [0, 1], round3 = false, unknown;
30999
+ var squared = continuous(), range3 = [0, 1], round2 = false, unknown;
31561
31000
  function scale(x2) {
31562
31001
  var y2 = unsquare(squared(x2));
31563
- return isNaN(y2) ? unknown : round3 ? Math.round(y2) : y2;
31002
+ return isNaN(y2) ? unknown : round2 ? Math.round(y2) : y2;
31564
31003
  }
31565
31004
  scale.invert = function(y2) {
31566
31005
  return squared.invert(square(y2));
@@ -31575,7 +31014,7 @@ function radial() {
31575
31014
  return scale.range(_).round(true);
31576
31015
  };
31577
31016
  scale.round = function(_) {
31578
- return arguments.length ? (round3 = !!_, scale) : round3;
31017
+ return arguments.length ? (round2 = !!_, scale) : round2;
31579
31018
  };
31580
31019
  scale.clamp = function(_) {
31581
31020
  return arguments.length ? (squared.clamp(_), scale) : squared.clamp();
@@ -31584,7 +31023,7 @@ function radial() {
31584
31023
  return arguments.length ? (unknown = _, scale) : unknown;
31585
31024
  };
31586
31025
  scale.copy = function() {
31587
- return radial(squared.domain(), range3).round(round3).clamp(squared.clamp()).unknown(unknown);
31026
+ return radial(squared.domain(), range3).round(round2).clamp(squared.clamp()).unknown(unknown);
31588
31027
  };
31589
31028
  initRange.apply(scale, arguments);
31590
31029
  return linearish(scale);
@@ -41539,14 +40978,8 @@ function selectYAxisIdFromGraphicalItemId(state, id) {
41539
40978
  var _state$graphicalItems3, _state$graphicalItems4;
41540
40979
  return (_state$graphicalItems3 = (_state$graphicalItems4 = state.graphicalItems.cartesianItems.find((item) => item.id === id)) === null || _state$graphicalItems4 === void 0 ? void 0 : _state$graphicalItems4.yAxisId) !== null && _state$graphicalItems3 !== void 0 ? _state$graphicalItems3 : defaultAxisId;
41541
40980
  }
41542
-
41543
- // ../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
41544
- var isProduction = process.env.NODE_ENV === "production";
41545
40981
  var prefix = "Invariant failed";
41546
40982
  function invariant(condition, message) {
41547
- if (isProduction) {
41548
- throw new Error(prefix);
41549
- }
41550
40983
  var provided = typeof message === "function" ? message() : message;
41551
40984
  var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
41552
40985
  throw new Error(value);
@@ -46371,7 +45804,7 @@ function fInt(n) {
46371
45804
  var s2 = toStr(n);
46372
45805
  return parseInt(s2.replace(".", ""));
46373
45806
  }
46374
- function add2(n1, n2) {
45807
+ function add(n1, n2) {
46375
45808
  var r1 = fLen(n1);
46376
45809
  var r2 = fLen(n2);
46377
45810
  if (r1 + r2 === 0) {
@@ -46390,11 +45823,11 @@ function mul(n1, n2) {
46390
45823
  var m2 = fInt(n2);
46391
45824
  return m1 * m2 / Math.pow(10, r1 + r2);
46392
45825
  }
46393
- function nice2(x2, round3) {
46394
- var exp2 = Math.floor(Math.log(x2) / Math.log(10));
46395
- var f = x2 / Math.pow(10, exp2);
45826
+ function nice2(x2, round2) {
45827
+ var exp = Math.floor(Math.log(x2) / Math.log(10));
45828
+ var f = x2 / Math.pow(10, exp);
46396
45829
  var nf;
46397
- if (round3) {
45830
+ if (round2) {
46398
45831
  if (f < 1.5) {
46399
45832
  nf = 1;
46400
45833
  } else if (f < 3) {
@@ -46415,7 +45848,7 @@ function nice2(x2, round3) {
46415
45848
  nf = 10;
46416
45849
  }
46417
45850
  }
46418
- return nf * Math.pow(10, exp2);
45851
+ return nf * Math.pow(10, exp);
46419
45852
  }
46420
45853
  var toNum = function(num) {
46421
45854
  if (typeof num !== "number") {
@@ -46448,7 +45881,7 @@ function niceTicks(min2, max2, num) {
46448
45881
  var v = s2;
46449
45882
  while (v <= e) {
46450
45883
  arr.push(v);
46451
- v = add2(v, d);
45884
+ v = add(v, d);
46452
45885
  }
46453
45886
  return arr;
46454
45887
  }
@@ -47326,81 +46759,8 @@ function FileThumbnail({
47326
46759
  }
47327
46760
  /*! Bundled license information:
47328
46761
 
47329
- use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
47330
- (**
47331
- * @license React
47332
- * use-sync-external-store-shim.production.js
47333
- *
47334
- * Copyright (c) Meta Platforms, Inc. and affiliates.
47335
- *
47336
- * This source code is licensed under the MIT license found in the
47337
- * LICENSE file in the root directory of this source tree.
47338
- *)
47339
-
47340
- use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
47341
- (**
47342
- * @license React
47343
- * use-sync-external-store-shim.development.js
47344
- *
47345
- * Copyright (c) Meta Platforms, Inc. and affiliates.
47346
- *
47347
- * This source code is licensed under the MIT license found in the
47348
- * LICENSE file in the root directory of this source tree.
47349
- *)
47350
-
47351
- use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
47352
- (**
47353
- * @license React
47354
- * use-sync-external-store-shim/with-selector.production.js
47355
- *
47356
- * Copyright (c) Meta Platforms, Inc. and affiliates.
47357
- *
47358
- * This source code is licensed under the MIT license found in the
47359
- * LICENSE file in the root directory of this source tree.
47360
- *)
47361
-
47362
- use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
47363
- (**
47364
- * @license React
47365
- * use-sync-external-store-shim/with-selector.development.js
47366
- *
47367
- * Copyright (c) Meta Platforms, Inc. and affiliates.
47368
- *
47369
- * This source code is licensed under the MIT license found in the
47370
- * LICENSE file in the root directory of this source tree.
47371
- *)
47372
-
47373
- use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js:
47374
- (**
47375
- * @license React
47376
- * use-sync-external-store-with-selector.production.js
47377
- *
47378
- * Copyright (c) Meta Platforms, Inc. and affiliates.
47379
- *
47380
- * This source code is licensed under the MIT license found in the
47381
- * LICENSE file in the root directory of this source tree.
47382
- *)
47383
-
47384
- use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js:
47385
- (**
47386
- * @license React
47387
- * use-sync-external-store-with-selector.development.js
47388
- *
47389
- * Copyright (c) Meta Platforms, Inc. and affiliates.
47390
- *
47391
- * This source code is licensed under the MIT license found in the
47392
- * LICENSE file in the root directory of this source tree.
47393
- *)
47394
-
47395
- react-is/cjs/react-is.production.min.js:
47396
- (** @license React v17.0.2
47397
- * react-is.production.min.js
47398
- *
47399
- * Copyright (c) Facebook, Inc. and its affiliates.
47400
- *
47401
- * This source code is licensed under the MIT license found in the
47402
- * LICENSE file in the root directory of this source tree.
47403
- *)
46762
+ decimal.js-light/decimal.js:
46763
+ (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *)
47404
46764
 
47405
46765
  react-is/cjs/react-is.development.js:
47406
46766
  (** @license React v17.0.2
@@ -47413,4 +46773,4 @@ react-is/cjs/react-is.development.js:
47413
46773
  *)
47414
46774
  */
47415
46775
 
47416
- export { AGENT_AVATAR_SIZE, ActionMenu, AgentRoutineForm, AgentsProvider, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, ArtifactActionsMenu, ChatImageLightbox, CitationViewerProvider, ConnectRunnerProvider, DropdownMenu2 as DropdownMenu, DropdownMenuTrigger2 as DropdownMenuTrigger, FileThumbnail, GridSpinner, ImageResultsGallery, Input, Label, MessageDecisionCards, MessageStepsGroup, MobileScreenSheet, PanelEdgeRing, PluginProvider, SourceFavicon, SpreadsheetIcon, StyledDropdownMenuContent, StyledDropdownMenuItem, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, WorkspaceProvider, ZoomableImage, agentRoutineKeys, appsKeys, artifactCategory, artifactFormatIcon, artifactFormatSubtitle, authFetch, avatarMotionForStream, buildTenantUrlAbsolute, canvasId, dedup, dedupeImageResults, dynamic, env, exportDocumentPdf, extractCitationsFromSteps, extractDomain, extractImagesFromSteps, formatFileSize, getBearerHeadersForApi, getDocumentStreamArtifacts, getFileCategory, getMessageDisplayTimestampValue, getSdkDarkMode, getToolErrorText, getToolInput, getToolName, getToolOutput, getToolState, isRequestHumanTool, isToolPart, processMessageParts, renderPluginBlock, requestPaneFocus, require_shim, require_with_selector, resolveArtifactIconFormat, resolveBearerHeaders, resolvePluginLanguage, resolveSourceDisplay, setSdkConversationPath, setSdkDarkMode, sourceKind, subscribeSdkDarkMode, tableToCsv, tableToMarkdown, tableToXlsx, treatyErrorMessage, unwrap, unwrapData, useAgentConnectionStatus, useAgentHistorySource, useAgentPanelStore, useAgentRoster, useArtifact, useArtifactFileBytes, useArtifactFileObjectUrl, useArtifactPreviewFileObjectUrl, useArtifactStore, useArtifactVersion, useArtifactVersionPreviewFileObjectUrl, useArtifactVersions, useArtifacts, useBasePath, useBrand, useCanvasStore, useCatalog, useChatCapabilities, useChatCapabilityEnabled, useChatOptInEnabled, useChatOverviewStore, useCitationViewer, useClient, useConnectRunner, useConversationDesktopStatus, useDownloadArtifact, useInstalls, useKeyboardInset, useOptionalAgentsContext, useOptionalWorkspaceContext, usePaneFocusStore, usePathname, usePlugins, useRestoreArtifactVersion, useRevokeGrant, useRouter, useSession, useSessionPendingApprovals, useSourcesEnrichment, useStartUserConnect, useUpdateArtifact, useUpsertGrant, useWorkspaceContext };
46776
+ export { AGENT_AVATAR_SIZE, ActionMenu, AgentRoutineForm, AgentsProvider, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, ArtifactActionsMenu, ChatImageLightbox, CitationViewerProvider, ConnectRunnerProvider, DropdownMenu2 as DropdownMenu, DropdownMenuTrigger2 as DropdownMenuTrigger, FileThumbnail, GridSpinner, ImageResultsGallery, Input, Label, MessageDecisionCards, MessageStepsGroup, MobileScreenSheet, PanelEdgeRing, PluginProvider, SourceFavicon, SpreadsheetIcon, StyledDropdownMenuContent, StyledDropdownMenuItem, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, WorkspaceProvider, ZoomableImage, agentRoutineKeys, appsKeys, artifactCategory, artifactFormatIcon, artifactFormatSubtitle, authFetch, avatarMotionForStream, buildTenantUrlAbsolute, canvasId, dedup, dedupeImageResults, dynamic, env, exportDocumentPdf, extractCitationsFromSteps, extractDomain, extractImagesFromSteps, formatFileSize, getBearerHeadersForApi, getDocumentStreamArtifacts, getFileCategory, getMessageDisplayTimestampValue, getSdkDarkMode, getToolErrorText, getToolInput, getToolName, getToolOutput, getToolState, isRequestHumanTool, isToolPart, processMessageParts, renderPluginBlock, requestPaneFocus, resolveArtifactIconFormat, resolveBearerHeaders, resolvePluginLanguage, resolveSourceDisplay, setSdkConversationPath, setSdkDarkMode, sourceKind, subscribeSdkDarkMode, tableToCsv, tableToMarkdown, tableToXlsx, treatyErrorMessage, unwrap, unwrapData, useAgentConnectionStatus, useAgentHistorySource, useAgentPanelStore, useAgentRoster, useArtifact, useArtifactFileBytes, useArtifactFileObjectUrl, useArtifactPreviewFileObjectUrl, useArtifactStore, useArtifactVersion, useArtifactVersionPreviewFileObjectUrl, useArtifactVersions, useArtifacts, useBasePath, useBrand, useCanvasStore, useCatalog, useChatCapabilities, useChatCapabilityEnabled, useChatOptInEnabled, useChatOverviewStore, useCitationViewer, useClient, useConnectRunner, useConversationDesktopStatus, useDownloadArtifact, useInstalls, useKeyboardInset, useOptionalAgentsContext, useOptionalWorkspaceContext, usePaneFocusStore, usePathname, usePlugins, useRestoreArtifactVersion, useRevokeGrant, useRouter, useSession, useSessionPendingApprovals, useSourcesEnrichment, useStartUserConnect, useUpdateArtifact, useUpsertGrant, useWorkspaceContext };