@iamfiro/design 0.3.2 → 0.3.5

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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,246 +1,246 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 158;
4
- let r = c(), i = r[t];
5
- e.ISTYZu === void 0 && (e.KsIZGa = function(e) {
6
- let t = "", n = "";
7
- for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
8
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
- return decodeURIComponent(n);
10
- }, e.MhUMoV = {}, e.ISTYZu = !0);
11
- let a = r[0];
12
- e.wiSLfo !== a && (e.MhUMoV = {}, e.wiSLfo = a);
13
- let o = e.MhUMoV[t];
14
- return o === void 0 ? (i = e.KsIZGa(i), e.MhUMoV[t] = i) : i = o, i;
2
+ function e() {
3
+ let t = /* @__PURE__ */ "zMLYC3q.BgvUz3rO.ChGG.C2vJB25Kyxj5.zhmTCgLLlwnOyxj0x19Jyxb0Aw9U.mJy1ndiWner5CMzzuG.Bwf4.64+e64sBioYWQo2kUa.B25lzxLeB3DU.oev3uu5QvG.B3bLBG.ChjLDMvUDerLzMf1Bhq.BwLK.z2v0.imk3ia.BNvTyMvYlwXN.C2LKzq.mJHzquvxyMW.mZKYmduYrvLqqMHV.qxjYB3Dmzwz0.mtvdyu1eCwG.mtK0odKYBgLoz05u.C2LU.x190B3rHBa.mZaXmtaWnfPmBwnIAG.zhmTy2HHCNrFx3rPCa.zhmTCgLLlwnOyxj0.BwLU.y29SB3i.zgL2.DhjHBNnSyxrLka.ChGSia.qxjYB3DsAwDODa.y29Z.C3bHBG.zhmTy2HHCNrFx3n2zW.C3zN.zMLSDgvY.7jUqioYWQo2kUa.zNvUy3rPB24.mJjutgT5q0q.zhmTy2HHCNq.y2fWDgLVBG.y2XVC2vK.A2v5.zhmTCgLLlwnOyxj0x19ZzwDTzw50.mJaWnJC0zwztDM9J.yM90Dg9T.zhmTCgLLlwnOyxj0x19SzwDLBMq.DMfSDwu.Cg9SAxrL.mZG1nJu4v2jVuLLq.mJy3nJC4vgvQywTm.y2vUDgvY.C2HHCMu.zhmTy2HHCNrFx3nY.BwfW.ChGP.lwXPDMu.DgvYDgLHCNK.mtb4D0rYugC.BgfIzwW".split(".");
4
+ return e = function() {
5
+ return t;
6
+ }, e();
15
7
  }
16
- const t = e;
17
- (function(t, n) {
18
- let r = e, i = t();
8
+ const t = u;
9
+ (function(e, t) {
10
+ let n = u, r = e();
19
11
  for (;;) try {
20
- if (parseInt(r(168)) / 1 * (-parseInt(r(174)) / 2) + -parseInt(r(161)) / 3 + -parseInt(r(209)) / 4 * (parseInt(r(215)) / 5) + parseInt(r(204)) / 6 * (parseInt(r(206)) / 7) + parseInt(r(194)) / 8 * (parseInt(r(175)) / 9) + -parseInt(r(195)) / 10 * (-parseInt(r(170)) / 11) + parseInt(r(220)) / 12 * (-parseInt(r(163)) / 13) == n) break;
21
- i.push(i.shift());
12
+ if (parseInt(n(537)) / 1 + parseInt(n(532)) / 2 + parseInt(n(538)) / 3 * (-parseInt(n(503)) / 4) + -parseInt(n(506)) / 5 * (parseInt(n(507)) / 6) + -parseInt(n(491)) / 7 * (-parseInt(n(495)) / 8) + parseInt(n(510)) / 9 * (parseInt(n(484)) / 10) + parseInt(n(526)) / 11 * (-parseInt(n(504)) / 12) == t) break;
13
+ r.push(r.shift());
22
14
  } catch {
23
- i.push(i.shift());
15
+ r.push(r.shift());
24
16
  }
25
- })(c, 638457);
17
+ })(e, 412353);
26
18
  import { Text as n } from "../../primitives/Typography2.js";
27
19
  import { ColorDot as r } from "../../primitives/ColorDot2.js";
28
20
  import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
29
21
  import { cx as o } from "../../primitives/index.js";
30
22
  import { ChartLegend as s, ChartTooltip as ee } from "../Chart/ChartParts.js";
31
- function c() {
32
- let e = /* @__PURE__ */ "mtiWshPru1vl.BgfIzwW.y2vUDgvY.qxjYB3DvCa.zhmTy2HHCNrFx3n2zW.CM91BMq.y2fWDgLVBG.Aw5KzxHpzG.x190B3rHBa.nZaXmZa0BvP3vffy.B3bLBG.nJnqwLrvD3i.zhmTy2HHCNq.zhmTCgLLlwnOyxj0.mZiZodiWnePyqNP5yq.ChGG.zNvUy3rPB24.CMvKDwnL.C2LKzq.BNvTyMvYlwXN.nvnpALfbqq.A2v5.zhmTCgLLlwnOyxj0x19Jzw50zxi.Cg9SAxrL.BgvUz3rO.mZq4otzZzLHqrgS.BwLU.Cgf0Aa.Bwf4.zhmTy2HHCNrFx3bSB3qGzhmTCgLLlwnOyxj0x19WBg90.DMfSDwu.y2XVC2vK.BwLK.mtiYnZi2n0f1DLDTsa.qxjYB3DeB3DU.mtq2oxvlA2rHzW.zgL2.zhmTy2HHCNrFx3nY.ChGSia.C2HHCMu.ndyWndeZCvzUELbj.zMLYC3q.otyXotm5CeziuMD4.BNvTyMvYlxHS.ChjLDMvUDerLzMf1Bhq.zhmTCgLLlwnOyxj0x19SzwDLBMq.mK1grvHLDa.mtyYre5wDKfp.CgLL.C2LU.lwXPDMu.C3zN.BgLZDa.z2v0.y29SB3i.C2vJB25Kyxj5.zhmTCgLLlwnOyxj0x19ZzwDTzw50.64+e64sBioYWQo2kUa.ChGP.imk3ia.zhmTCgLLlwnOyxj0x19Jyxb0Aw9U.qxjYB3Dmzwz0.zhmTCgLLlwnOyxj0x19YzwfKB3v0.zhmTy2HHCNrFx3rPCa.7jUqioYWQo2kUa.BwfW.mJqYmtiWDfDrqu1v".split(".");
33
- return c = function() {
34
- return e;
35
- }, c();
36
- }
37
- import { chartColor as te, formatNumber as ne, formatPercent as l } from "../Chart/chart2.js";
23
+ import { chartColor as te, formatNumber as ne, formatPercent as c } from "../Chart/chart2.js";
38
24
  import { useChartInteraction as re } from "../Chart/useChartInteraction.js";
39
- import { segmentPath as ie } from "./arc.js";
40
- import { useArcTween as ae } from "./useArcTween.js";
25
+ import { segmentPath as l } from "./arc.js";
26
+ import { useArcTween as ie } from "./useArcTween.js";
41
27
  /* empty css */
42
- import { useId as oe, useState as se } from "react";
43
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
44
- var f = 8, p = Math.PI * 2, ce = (e) => e >= 260 ? t(171) : e >= 168 ? t(214) : "number-md";
45
- function m({ data: e, variant: c, size: m = 200, thickness: le, innerRadius: h, padAngle: ue = 2, cornerRadius: de = 3, max: g, track: fe, formatValue: _ = ne, centerLabel: v = "합계", centerValue: pe, legend: y = !0, showPercent: me = !0, tooltip: he, activeIndex: ge, defaultActiveIndex: _e, onActiveIndexChange: ve, "aria-label": ye = t(192), className: b, style: x }) {
46
- let S = t, C = e.filter((e) => e[S(158)] > 0), w = C[S(219)], { active: T, setActive: be, open: xe, shown: E, settled: Se, tipRef: Ce, tipSize: D, hover: O, leave: we, plotProps: k } = re({
47
- count: w,
48
- activeIndex: ge,
49
- defaultActiveIndex: _e,
50
- onActiveIndexChange: ve,
51
- initialKeyboardIndex: S(169)
52
- }), [A, j] = se(null), M = oe(), N = c === S(176) || c === void 0 && h === 0, P = m < 140 ? 3 : 5, F = m / 2, I = F - P, Te = le ?? (h !== void 0 && h > 0 ? I * (1 - Math[S(221)](.95, h)) : Math.max(8, Math[S(200)](m * .09))), L = N ? 0 : Math[S(223)](0, I - Math.min(Te, I)), Ee = N ? I * .7 : (I + L) / 2, De = w > 1 || g !== void 0 ? Math[S(223)](0, ue) * Math.PI * Ee / 180 : 0, Oe = fe ?? g !== void 0, R = C[S(212)]((e, t) => e + t.value, 0), ke = g === void 0 ? R : Math.max(g, R), z = (e) => e / (ke || 1), B = C.reduce((e, t, n) => [...e, (e[n - 1] ?? 0) + (n ? C[n - 1][S(158)] : 0)], []), V = C[S(193)]((t, n) => {
53
- let r = S, i = e[r(202)](t), a = z(B[n]) * p, o = z(B[n] + t[r(158)]) * p;
28
+ function u(t, n) {
29
+ t -= 484;
30
+ let r = e(), i = r[t];
31
+ u.JiirUy === void 0 && (u.mmHfjq = function(e) {
32
+ let t = "", n = "";
33
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
34
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
35
+ return decodeURIComponent(n);
36
+ }, u.nIORWd = {}, u.JiirUy = !0);
37
+ let a = r[0];
38
+ u.WKqTOq !== a && (u.nIORWd = {}, u.WKqTOq = a);
39
+ let o = u.nIORWd[t];
40
+ return o === void 0 ? (i = u.mmHfjq(i), u.nIORWd[t] = i) : i = o, i;
41
+ }
42
+ import { useId as ae, useState as oe } from "react";
43
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
44
+ var p = 8, m = Math.PI * 2, se = (e) => e >= 260 ? "number-xl" : e >= 168 ? t(501) : "number-md";
45
+ function h({ data: e, variant: u, size: h = 200, thickness: ce, innerRadius: g, padAngle: le = 2, cornerRadius: ue = 3, max: _, track: de, formatValue: v = ne, centerLabel: y = "합계", centerValue: fe, legend: b = !0, showPercent: pe = !0, tooltip: me, activeIndex: he, defaultActiveIndex: ge, onActiveIndexChange: _e, "aria-label": ve = t(524), className: x, style: S }) {
46
+ let C = t, w = e[C(523)]((e) => e[C(535)] > 0), T = w[C(487)], { active: E, setActive: ye, open: be, shown: D, settled: xe, tipRef: Se, tipSize: O, hover: k, leave: Ce, plotProps: A } = re({
47
+ count: T,
48
+ activeIndex: he,
49
+ defaultActiveIndex: ge,
50
+ onActiveIndexChange: _e,
51
+ initialKeyboardIndex: C(486)
52
+ }), [j, M] = oe(null), N = ae(), P = u === "pie" || u === void 0 && g === 0, F = h < 140 ? 3 : 5, I = h / 2, L = I - F, we = ce ?? (g !== void 0 && g > 0 ? L * (1 - Math[C(513)](.95, g)) : Math[C(492)](8, Math.round(h * .09))), R = P ? 0 : Math[C(492)](0, L - Math.min(we, L)), Te = P ? L * .7 : (L + R) / 2, Ee = T > 1 || _ !== void 0 ? Math[C(492)](0, le) * Math.PI * Te / 180 : 0, De = de ?? _ !== void 0, z = w.reduce((e, t) => e + t[C(535)], 0), Oe = _ === void 0 ? z : Math[C(492)](_, z), B = (e) => e / (Oe || 1), V = w.reduce((e, t, n) => [...e, (e[n - 1] ?? 0) + (n ? w[n - 1].value : 0)], []), H = w.map((t, n) => {
53
+ let r = C, i = e.indexOf(t), a = B(V[n]) * m, o = B(V[n] + t[r(535)]) * m;
54
54
  return {
55
55
  d: t,
56
- color: te(t[r(182)], i),
56
+ color: te(t[r(514)], i),
57
57
  a0: a,
58
58
  a1: o,
59
59
  mid: (a + o) / 2,
60
- share: z(t.value)
60
+ share: B(t[r(535)])
61
61
  };
62
- }), Ae = ae(V[S(193)]((e) => ({
62
+ }), ke = ie(H.map((e) => ({
63
63
  key: e.d.key,
64
64
  a0: e.a0,
65
65
  a1: e.a1,
66
- color: e[S(182)]
67
- }))), H = new Map(V[S(193)]((e, t) => [e.d.key, t])), U = A === null ? -1 : H[S(181)](A) ?? -1, W = xe ? E : U >= 0 ? U : null, G = W === null ? void 0 : V[W], K = he ?? N, q = W ?? E, J = q === null ? void 0 : V[q], Y = N ? I * .62 : I, X = J ? {
68
- x: F + Y * Math[S(177)](J[S(160)]),
69
- y: F - Y * Math.cos(J[S(160)])
66
+ color: e[C(514)]
67
+ }))), U = new Map(H[C(542)]((e, t) => [e.d[C(530)], t])), W = j === null ? -1 : U[C(499)](j) ?? -1, G = be ? D : W >= 0 ? W : null, K = G === null ? void 0 : H[G], q = me ?? P, J = G ?? D, Y = J === null ? void 0 : H[J], X = P ? L * .62 : L, Z = Y ? {
68
+ x: I + X * Math[C(508)](Y[C(498)]),
69
+ y: I - X * Math[C(519)](Y[C(498)])
70
70
  } : {
71
71
  x: 0,
72
72
  y: 0
73
- }, je = !J || Math[S(177)](J.mid) >= 0 ? X.x + f : X.x - f - D.w, Me = X.y - D.h / 2, Ne = (e) => {
74
- let t = S, n = e[t(216)] === "ArrowRight" || e[t(216)] === t(162), r = e.key === t(189) || e[t(216)] === t(198);
75
- w && (n || r) ? (e[t(172)](), be(T === null ? n ? 0 : w - 1 : ((T + (n ? 1 : -1)) % w + w) % w)) : k.onKeyDown(e);
76
- }, Pe = G && W !== null ? G.d[S(196)] + " " + _(G.d[S(158)], G.d) + ", " + l(G.share) + " (" + (W + 1) + "/" + w + ")" : "", Z = {
77
- total: R,
78
- max: g,
79
- active: G ? {
80
- slice: G.d,
81
- index: W ?? 0,
82
- color: G[S(182)],
83
- share: G[S(167)]
73
+ }, Ae = !Y || Math.sin(Y[C(498)]) >= 0 ? Z.x + p : Z.x - p - O.w, je = Z.y - O.h / 2, Me = (e) => {
74
+ let t = C, n = e[t(530)] === t(518) || e[t(530)] === "ArrowDown", r = e[t(530)] === t(505) || e[t(530)] === "ArrowUp";
75
+ T && (n || r) ? (e[t(497)](), ye(E === null ? n ? 0 : T - 1 : ((E + (n ? 1 : -1)) % T + T) % T)) : A[t(494)](e);
76
+ }, Ne = K && G !== null ? K.d[C(485)] + " " + v(K.d[C(535)], K.d) + ", " + c(K[C(540)]) + " (" + (G + 1) + "/" + T + ")" : "", Pe = {
77
+ total: z,
78
+ max: _,
79
+ active: K ? {
80
+ slice: K.d,
81
+ index: G ?? 0,
82
+ color: K[C(514)],
83
+ share: K[C(540)]
84
84
  } : null,
85
- formatValue: _
86
- }, Q = K ? void 0 : G, Fe = g === void 0 ? _(R) : l(z(R)), Ie = L * .84, Le = !N && (typeof v === S(211) ? v(K ? {
87
- ...Z,
85
+ formatValue: v
86
+ }, Q = q ? void 0 : K, Fe = _ === void 0 ? v(z) : c(B(z)), Ie = R * .84, Le = !P && (typeof y === C(525) ? y(q ? {
87
+ ...Pe,
88
88
  active: null
89
- } : Z) : d(a, {
89
+ } : Pe) : f(a, {
90
90
  gap: 0,
91
- align: "center",
92
- className: S(190),
93
- children: [u(n, {
94
- variant: ce(m),
91
+ align: C(539),
92
+ className: "ds-pie-chart__readout",
93
+ children: [d(n, {
94
+ variant: se(h),
95
95
  as: "div",
96
96
  truncate: !0,
97
- children: Q ? _(Q.d.value, Q.d) : pe ?? Fe
98
- }), Q ? d(i, {
97
+ children: Q ? v(Q.d[C(535)], Q.d) : fe ?? Fe
98
+ }), Q ? f(i, {
99
99
  gap: 1,
100
100
  wrap: !1,
101
- className: S(188),
101
+ className: C(490),
102
102
  children: [
103
- u(r, {
104
- color: Q[S(182)],
103
+ d(r, {
104
+ color: Q[C(514)],
105
105
  size: 8
106
106
  }),
107
- u(n, {
108
- variant: S(201),
109
- tone: "secondary",
107
+ d(n, {
108
+ variant: C(528),
109
+ tone: C(489),
110
110
  truncate: !0,
111
- children: Q.d[S(196)]
111
+ children: Q.d.label
112
112
  }),
113
- m >= 140 && u(n, {
114
- variant: S(201),
115
- tone: "tertiary",
113
+ h >= 140 && d(n, {
114
+ variant: C(528),
115
+ tone: C(545),
116
116
  numeric: !0,
117
- children: l(Q[S(167)])
117
+ children: c(Q[C(540)])
118
118
  })
119
119
  ]
120
- }) : v != null && u(n, {
121
- variant: S(201),
122
- tone: S(183),
120
+ }) : y != null && d(n, {
121
+ variant: C(528),
122
+ tone: C(489),
123
123
  truncate: !0,
124
- children: v
124
+ children: y
125
125
  })]
126
- }, Q?.d.key ?? S(203))), Re = y === !0 ? S(213) : y === !1 ? null : y, ze = V.map((e) => ({
127
- key: e.d[S(216)],
128
- label: e.d[S(196)],
129
- color: e[S(182)],
130
- value: _(e.d[S(158)], e.d),
131
- detail: me ? l(e.share) : void 0
132
- })), Be = W === null ? null : V[W]?.d[S(216)] ?? null, $ = d("div", {
133
- ...k,
134
- onKeyDown: Ne,
135
- className: S(224),
126
+ }, Q?.d[C(530)] ?? C(509))), Re = b === !0 ? C(502) : b === !1 ? null : b, ze = H[C(542)]((e) => ({
127
+ key: e.d[C(530)],
128
+ label: e.d[C(485)],
129
+ color: e.color,
130
+ value: v(e.d[C(535)], e.d),
131
+ detail: pe ? c(e[C(540)]) : void 0
132
+ })), Be = G === null ? null : H[G]?.d[C(530)] ?? null, $ = f(C(515), {
133
+ ...A,
134
+ onKeyDown: Me,
135
+ className: "ds-chart__plot ds-pie-chart__plot",
136
136
  style: {
137
- width: m,
138
- height: m
137
+ width: h,
138
+ height: h
139
139
  },
140
- "aria-roledescription": S(N ? 192 : 185),
141
- "aria-label": ye,
142
- "aria-describedby": M + S(178),
140
+ "aria-roledescription": C(P ? 524 : 493),
141
+ "aria-label": ve,
142
+ "aria-describedby": N + C(544),
143
143
  children: [
144
- d(S(179), {
145
- className: S(199),
146
- width: m,
147
- height: m,
144
+ f(C(522), {
145
+ className: C(521),
146
+ width: h,
147
+ height: h,
148
148
  "aria-hidden": !0,
149
- onPointerLeave: we,
150
- children: [Oe && u(S(222), {
149
+ onPointerLeave: Ce,
150
+ children: [De && d("path", {
151
151
  className: "ds-pie-chart__track",
152
- d: ie({
153
- cx: F,
154
- cy: F,
155
- outer: I,
156
- inner: L,
152
+ d: l({
153
+ cx: I,
154
+ cy: I,
155
+ outer: L,
156
+ inner: R,
157
157
  a0: 0,
158
- a1: p
158
+ a1: m
159
159
  })
160
- }), Ae[S(193)]((e) => {
161
- let t = S, n = H.get(e.key), r = n !== void 0;
162
- return u(t(222), {
163
- className: t(184),
164
- d: ie({
165
- cx: F,
166
- cy: F,
167
- outer: I,
168
- inner: L,
160
+ }), ke[C(542)]((e) => {
161
+ let t = C, n = U[t(499)](e[t(530)]), r = n !== void 0;
162
+ return d("path", {
163
+ className: t(531),
164
+ d: l({
165
+ cx: I,
166
+ cy: I,
167
+ outer: L,
168
+ inner: R,
169
169
  a0: e.a0,
170
170
  a1: e.a1,
171
- gap: De,
172
- cornerRadius: de
171
+ gap: Ee,
172
+ cornerRadius: ue
173
173
  }),
174
- fill: e[t(182)],
175
- "data-active": r && W === n || void 0,
176
- "data-dimmed": W !== null && W !== n || void 0,
174
+ fill: e[t(514)],
175
+ "data-active": r && G === n || void 0,
176
+ "data-dimmed": G !== null && G !== n || void 0,
177
177
  style: {
178
- transformOrigin: F + t(210) + F + "px",
179
- "--_pop": (I + P) / I
178
+ transformOrigin: I + t(488) + I + "px",
179
+ "--_pop": (L + F) / L
180
180
  },
181
- onPointerMove: n === void 0 ? void 0 : () => O(n),
182
- onPointerDown: n === void 0 ? void 0 : () => O(n)
183
- }, e[t(216)]);
181
+ onPointerMove: n === void 0 ? void 0 : () => k(n),
182
+ onPointerDown: n === void 0 ? void 0 : () => k(n)
183
+ }, e.key);
184
184
  })]
185
185
  }),
186
- Le && u(a, {
186
+ Le && d(a, {
187
187
  gap: 0,
188
- align: "center",
189
- justify: S(197),
190
- className: S(217),
191
- style: { inset: F - Ie },
188
+ align: C(539),
189
+ justify: C(539),
190
+ className: "ds-pie-chart__center",
191
+ style: { inset: I - Ie },
192
192
  children: Le
193
193
  }),
194
- K && u("div", {
195
- ref: Ce,
196
- className: S(191),
197
- "data-state": S(W === null ? 159 : 205),
198
- "data-settled": Se || void 0,
194
+ q && d("div", {
195
+ ref: Se,
196
+ className: C(511),
197
+ "data-state": C(G === null ? 529 : 496),
198
+ "data-settled": xe || void 0,
199
199
  style: {
200
- transform: "translate(" + je + S(166) + Me + S(186),
200
+ transform: C(516) + Ae + C(517) + je + C(543),
201
201
  minWidth: 0
202
202
  },
203
203
  "aria-hidden": !0,
204
- children: u(ee, { rows: J ? [{
205
- key: J.d[S(216)],
206
- label: J.d[S(196)],
207
- color: J[S(182)],
208
- value: _(J.d[S(158)], J.d) + S(187) + l(J[S(167)])
204
+ children: d(ee, { rows: Y ? [{
205
+ key: Y.d[C(530)],
206
+ label: Y.d[C(485)],
207
+ color: Y.color,
208
+ value: v(Y.d[C(535)], Y.d) + C(500) + c(Y[C(540)])
209
209
  }] : [] })
210
210
  }),
211
- u("span", {
212
- id: M + S(178),
213
- className: S(165),
214
- "aria-live": S(218),
215
- children: Pe
211
+ d(C(520), {
212
+ id: N + C(544),
213
+ className: C(541),
214
+ "aria-live": C(536),
215
+ children: Ne
216
216
  })
217
217
  ]
218
218
  });
219
- return Re === "bottom" ? d(a, {
219
+ return Re === C(533) ? f(a, {
220
220
  gap: 4,
221
- align: S(197),
222
- className: o(S(207), S(208), b),
223
- style: x,
224
- children: [$, u(s, {
221
+ align: C(539),
222
+ className: o(C(527), "ds-pie-chart", x),
223
+ style: S,
224
+ children: [$, d(s, {
225
225
  items: ze,
226
226
  focused: Be,
227
- onFocusChange: j
227
+ onFocusChange: M
228
228
  })]
229
- }) : d(i, {
229
+ }) : f(i, {
230
230
  gap: 8,
231
231
  wrap: !0,
232
232
  align: "center",
233
- className: o("ds-chart", "ds-pie-chart", b),
234
- style: x,
235
- children: [$, Re === S(213) && u(S(164), {
236
- className: S(173),
237
- children: u(s, {
238
- layout: S(180),
233
+ className: o(C(527), C(512), x),
234
+ style: S,
235
+ children: [$, Re === C(502) && d(C(515), {
236
+ className: C(534),
237
+ children: d(s, {
238
+ layout: "list",
239
239
  items: ze,
240
240
  focused: Be,
241
- onFocusChange: j
241
+ onFocusChange: M
242
242
  })
243
243
  })]
244
244
  });
245
245
  }
246
- export { m as PieChart };
246
+ export { h as PieChart };
@@ -1,87 +1,89 @@
1
1
  "use client";
2
- const e = i;
3
- (function(e, t) {
4
- let n = i, r = e();
2
+ const e = t;
3
+ (function(e, n) {
4
+ let r = t, i = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(262)) / 1 + parseInt(n(272)) / 2 * (-parseInt(n(265)) / 3) + -parseInt(n(267)) / 4 + parseInt(n(269)) / 5 + parseInt(n(280)) / 6 + -parseInt(n(279)) / 7 + parseInt(n(270)) / 8 * (parseInt(n(264)) / 9) == t) break;
7
- r.push(r.shift());
6
+ if (-parseInt(r(250)) / 1 * (parseInt(r(253)) / 2) + -parseInt(r(254)) / 3 * (parseInt(r(265)) / 4) + -parseInt(r(261)) / 5 * (-parseInt(r(263)) / 6) + -parseInt(r(257)) / 7 + -parseInt(r(266)) / 8 + parseInt(r(268)) / 9 + parseInt(r(259)) / 10 == n) break;
7
+ i.push(i.shift());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(a, 843360);
12
- var t = Math.PI * 2, n = 1e-6, r = (t) => (Math[e(271)](t * 1e3) / 1e3)[e(275)]();
13
- function i(e, t) {
14
- e -= 261;
15
- let n = a(), r = n[e];
16
- i.ePpxrW === void 0 && (i.ojJeJO = function(e) {
11
+ })(s, 664120);
12
+ function t(e, n) {
13
+ e -= 247;
14
+ let r = s(), i = r[e];
15
+ t.gdmHfM === void 0 && (t.jahvNu = function(e) {
17
16
  let t = "", n = "";
18
17
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
19
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
19
  return decodeURIComponent(n);
21
- }, i.KalUeR = {}, i.ePpxrW = !0);
22
- let o = n[0];
23
- i.McVpIR !== o && (i.KalUeR = {}, i.McVpIR = o);
24
- let s = i.KalUeR[e];
25
- return s === void 0 ? (r = i.ojJeJO(r), i.KalUeR[e] = r) : r = s, r;
20
+ }, t.hKYZMu = {}, t.gdmHfM = !0);
21
+ let a = r[0];
22
+ t.YVIiCo !== a && (t.hKYZMu = {}, t.YVIiCo = a);
23
+ let o = t.hKYZMu[e];
24
+ return o === void 0 ? (i = t.jahvNu(i), t.hKYZMu[e] = i) : i = o, i;
26
25
  }
27
- function a() {
26
+ var n = Math.PI * 2, r = 1e-6, i = (t) => (Math[e(255)](t * 1e3) / 1e3)[e(260)]();
27
+ function a({ cx: t, cy: a, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
28
+ let f = e, p = Math[f(262)](0, o), m = Math[f(262)](0, Math[f(256)](s, p)), h = l - c;
29
+ if (!(h > r) || p <= r) return "";
30
+ let g = (e, n) => i(t + e * Math[f(252)](n)) + "," + i(a - e * Math.cos(n));
31
+ if (h >= n - r) {
32
+ let e = "M" + g(p, 0) + "A" + i(p) + "," + i(p) + f(258) + g(p, Math.PI) + "A" + i(p) + "," + i(p) + f(258) + g(p, 0) + "Z";
33
+ return m <= r ? e : e + "M" + g(m, 0) + "A" + i(m) + "," + i(m) + f(267) + g(m, Math.PI) + "A" + i(m) + "," + i(m) + " 0 1 0 " + g(m, 0) + "Z";
34
+ }
35
+ let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math.sin(_), y = Math[f(262)](0, u / 2);
36
+ if (p * v <= y + r) return "";
37
+ let b = p - m, x = m * v <= y + r, S = x ? y / Math[f(252)](_) : 0, C = v < 1 ? (p * v - y) / (1 + v) : Infinity, w = v < 1 ? (m * v - y) / (1 - v) : Infinity, T = Math[f(262)](0, Math[f(256)](d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math.max(0, Math[f(256)](d, b / 2, w)), D = (e, n, r, o) => {
38
+ let s = f, c = t + r * Math[s(252)](e) + n * o * Math[s(248)](e), l = a - r * Math[s(248)](e) + n * o * Math.sin(e);
39
+ return i(c) + "," + i(l);
40
+ }, O = (e) => Math[f(256)](1, Math.max(0, e)), k = (e) => Math.sqrt(Math[f(262)](0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math.asin(O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
41
+ if (T > r && (P += "A" + i(T) + "," + i(T) + f(264) + g(p, M)), N - M > r && (P += "A" + i(p) + "," + i(p) + f(251) + +(N - M > Math.PI) + " 1 " + g(p, N)), T > r && (P += "A" + i(T) + "," + i(T) + f(264) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
42
+ let F = k((m + E) ** 2 - (y + E) ** 2), I = Math[f(249)](O((y + E) / (m + E))), L = c + I, R = l - I;
43
+ return P += "L" + D(l, -1, F, y), E > r && (P += "A" + i(E) + "," + i(E) + f(264) + g(m, R)), R - L > r && (P += "A" + i(m) + "," + i(m) + f(251) + +(R - L > Math.PI) + f(251) + g(m, L)), E > r && (P += "A" + i(E) + "," + i(E) + f(264) + D(c, 1, F, y)), P + "Z";
44
+ }
45
+ function o(e, n, r, i) {
46
+ let a = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
47
+ return (o) => {
48
+ let s = t;
49
+ if (o <= 0) return 0;
50
+ if (o >= 1) return 1;
51
+ let c = 0, l = 1, u = o;
52
+ for (let t = 0; t < 24; t++) {
53
+ let t = a(e, r, u);
54
+ if (Math[s(247)](t - o) < 1e-5) break;
55
+ t < o ? c = u : l = u, u = (c + l) / 2;
56
+ }
57
+ return a(n, i, u);
58
+ };
59
+ }
60
+ function s() {
28
61
  let e = [
29
- "Bwf4",
30
- "mJyXodK4mLDLBujWra",
31
- "mteZn2TXtMDRqq",
32
- "idaG",
33
- "ndC2ntu0mejls0rUrG",
62
+ "ntrlAgnfqLu",
34
63
  "idaGmcaXia",
35
- "mZK4nJy5nvbfBwzmCG",
36
- "odbHCvfeqxe",
37
- "CM91BMq",
38
- "ntq2mNL4tLviEG",
39
- "ideG",
40
- "BwLU",
41
- "Dg9tDhjPBMC",
42
- "y29Z",
64
+ "nZe1nZjyDLvTsui",
65
+ "mJe1nJGWEfndBg12",
43
66
  "idaGmsaWia",
67
+ "odm5mZe4ngrPyK9srq",
68
+ "ywjZ",
69
+ "y29Z",
44
70
  "yxnPBG",
45
- "mtaYmdC1otzqyM9HqwS",
46
- "ntiYoty1nfHYBerNra",
71
+ "nZnSs3DxCLu",
72
+ "idaG",
47
73
  "C2LU",
74
+ "mJK2odzLrhbWs1i",
75
+ "mtK1CMjxBxzU",
76
+ "CM91BMq",
77
+ "BwLU",
78
+ "mZCZmJy1mKrxy2r0wa",
48
79
  "idaGmsaXia",
49
- "nta5mdzrs2jzugK"
80
+ "mtm4nJu2nZbjt01Ju2e",
81
+ "Dg9tDhjPBMC",
82
+ "nJm5ody1shPkAu5l",
83
+ "Bwf4"
50
84
  ];
51
- return a = function() {
85
+ return s = function() {
52
86
  return e;
53
- }, a();
54
- }
55
- function o({ cx: i, cy: a, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
56
- let f = e, p = Math.max(0, o), m = Math[f(263)](0, Math[f(274)](s, p)), h = l - c;
57
- if (!(h > n) || p <= n) return "";
58
- let g = (e, t) => r(i + e * Math[f(281)](t)) + "," + r(a - e * Math[f(276)](t));
59
- if (h >= t - n) {
60
- let e = "M" + g(p, 0) + "A" + r(p) + "," + r(p) + f(261) + g(p, Math.PI) + "A" + r(p) + "," + r(p) + " 0 1 1 " + g(p, 0) + "Z";
61
- return m <= n ? e : e + "M" + g(m, 0) + "A" + r(m) + "," + r(m) + f(277) + g(m, Math.PI) + "A" + r(m) + "," + r(m) + " 0 1 0 " + g(m, 0) + "Z";
62
- }
63
- let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math.sin(_), y = Math[f(263)](0, u / 2);
64
- if (p * v <= y + n) return "";
65
- let b = p - m, x = m * v <= y + n, S = x ? y / Math.sin(_) : 0, C = v < 1 ? (p * v - y) / (1 + v) : Infinity, w = v < 1 ? (m * v - y) / (1 - v) : Infinity, T = Math.max(0, Math[f(274)](d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math[f(263)](0, Math[f(274)](d, b / 2, w)), D = (e, t, n, o) => {
66
- let s = f, c = i + n * Math.sin(e) + t * o * Math[s(276)](e), l = a - n * Math.cos(e) + t * o * Math.sin(e);
67
- return r(c) + "," + r(l);
68
- }, O = (e) => Math[f(274)](1, Math[f(263)](0, e)), k = (e) => Math.sqrt(Math[f(263)](0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(278)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
69
- if (T > n && (P += "A" + r(T) + "," + r(T) + " 0 0 1 " + g(p, M)), N - M > n && (P += "A" + r(p) + "," + r(p) + f(266) + +(N - M > Math.PI) + f(273) + g(p, N)), T > n && (P += "A" + r(T) + "," + r(T) + f(268) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
70
- let F = k((m + E) ** 2 - (y + E) ** 2), I = Math.asin(O((y + E) / (m + E))), L = c + I, R = l - I;
71
- return P += "L" + D(l, -1, F, y), E > n && (P += "A" + r(E) + "," + r(E) + f(268) + g(m, R)), R - L > n && (P += "A" + r(m) + "," + r(m) + f(266) + +(R - L > Math.PI) + f(266) + g(m, L)), E > n && (P += "A" + r(E) + "," + r(E) + f(268) + D(c, 1, F, y)), P + "Z";
72
- }
73
- function s(e, t, n, r) {
74
- let i = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
75
- return (a) => {
76
- if (a <= 0) return 0;
77
- if (a >= 1) return 1;
78
- let o = 0, s = 1, c = a;
79
- for (let t = 0; t < 24; t++) {
80
- let t = i(e, n, c);
81
- if (Math.abs(t - a) < 1e-5) break;
82
- t < a ? o = c : s = c, c = (o + s) / 2;
83
- }
84
- return i(t, r, c);
85
- };
87
+ }, s();
86
88
  }
87
- export { s as cubicBezier, o as segmentPath };
89
+ export { o as cubicBezier, a as segmentPath };