@hot-updater/console 0.36.7 → 1.0.0-rc.1

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 (262) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/BundleIdDisplay-D4ErdU5_.js +1 -0
  3. package/.output/public/assets/InsightsCapabilityContext-B42VqvP6.js +1 -0
  4. package/.output/public/assets/api-keys-api-DGVTTvTJ.js +1 -0
  5. package/.output/public/assets/api-keys-z16OZIP4.js +1 -0
  6. package/.output/public/assets/badge-Br_KDO0J.js +1 -0
  7. package/.output/public/assets/card-DzuEXvyJ.js +1 -0
  8. package/.output/public/assets/chart-no-axes-combined-FaYMGmQS.js +1 -0
  9. package/.output/public/assets/createServerFn-gM2-LFBy.js +3 -0
  10. package/.output/public/assets/dialog-BeAENgez.js +1 -0
  11. package/.output/public/assets/dist-Bssh_cv0.js +1 -0
  12. package/.output/public/assets/field-Buq148-A.js +1 -0
  13. package/.output/public/assets/index-uOpQAIC4.js +10 -0
  14. package/.output/public/assets/input-group-B3p5UpyW.js +1 -0
  15. package/.output/public/assets/insights-DJTr7Ozn.js +1 -0
  16. package/.output/public/assets/insights-api-DVMOoRMS.js +1 -0
  17. package/.output/public/assets/installations-BY64iIAK.js +2 -0
  18. package/.output/public/assets/installations-D5v9i3AL.js +1 -0
  19. package/.output/public/assets/lazyRouteComponent-DKYu5cZJ.js +1 -0
  20. package/.output/public/assets/preload-helper-CQ36nxok.js +1 -0
  21. package/.output/public/assets/refresh-cw-BkbfZ62O.js +1 -0
  22. package/.output/public/assets/routes-BuoI5-Cr.js +2 -0
  23. package/.output/public/assets/routes-C8fvgETO.js +1 -0
  24. package/.output/public/assets/search-qsIDvS2I.js +1 -0
  25. package/.output/public/assets/shield-check-DE_hVuHu.js +1 -0
  26. package/.output/public/assets/signing-mJD88Y4C.js +1 -0
  27. package/.output/public/assets/styles-BZIG7t42.css +2 -0
  28. package/.output/public/assets/table-RamFEclP.js +1 -0
  29. package/.output/public/assets/useCompositeListItem-ChzDqdpc.js +42 -0
  30. package/.output/public/assets/useMutation-JsGVjQMY.js +1 -0
  31. package/.output/public/assets/useOpenInteractionType-Dwfy-SpA.js +1 -0
  32. package/.output/server/__23tanstack-start-server-fn-resolver-Dftxlm2E.mjs +146 -0
  33. package/.output/server/_libs/@base-ui/react+[...].mjs +16124 -0
  34. package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +1554 -0
  35. package/.output/server/_libs/@tanstack/react-router+[...].mjs +41 -10
  36. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +132 -0
  37. package/.output/server/_libs/d3-array.mjs +231 -0
  38. package/.output/server/_libs/d3-color.mjs +330 -0
  39. package/.output/server/_libs/d3-format.mjs +252 -0
  40. package/.output/server/_libs/d3-interpolate.mjs +207 -0
  41. package/.output/server/_libs/d3-path.mjs +77 -0
  42. package/.output/server/_libs/d3-scale+[...].mjs +1907 -0
  43. package/.output/server/_libs/d3-shape.mjs +818 -0
  44. package/.output/server/_libs/decimal.js-light.mjs +884 -0
  45. package/.output/server/_libs/es-toolkit.mjs +1134 -0
  46. package/.output/server/_libs/eventemitter3.mjs +236 -0
  47. package/.output/server/_libs/immer.mjs +532 -0
  48. package/.output/server/_libs/lucide-react.mjs +141 -13
  49. package/.output/server/_libs/next-themes.mjs +2 -2
  50. package/.output/server/_libs/react-redux+[...].mjs +205 -0
  51. package/.output/server/_libs/recharts+[...].mjs +14117 -0
  52. package/.output/server/_libs/sonner.mjs +2 -2
  53. package/.output/server/_libs/tanstack__query-core.mjs +114 -1
  54. package/.output/server/_libs/tanstack__react-query.mjs +3 -4
  55. package/.output/server/_runtime.mjs +10 -1
  56. package/.output/server/_ssr/BundleActivityChart-CWcdPuUn.mjs +288 -0
  57. package/.output/server/_ssr/BundleIdDisplay-BEvB3MvA.mjs +13 -0
  58. package/.output/server/_ssr/InsightsCapabilityContext-Cx8fjm2s.mjs +15 -0
  59. package/.output/server/_ssr/api-keys-CpBqHpuC.mjs +300 -0
  60. package/.output/server/_ssr/api-keys-api-Czkp57UV.mjs +60 -0
  61. package/.output/server/_ssr/api-keys-rpc-BTtMDSoR.mjs +136 -0
  62. package/.output/server/_ssr/api-rpc-BEX8ISai.mjs +1468 -0
  63. package/.output/server/_ssr/auth-BF8mbAgF.mjs +21 -0
  64. package/.output/server/_ssr/auth-rpc-BFMEC-TT.mjs +24 -0
  65. package/.output/server/_ssr/auth.server-DW71WzsD.mjs +47 -0
  66. package/.output/server/_ssr/badge-CpWXQwyF.mjs +26 -0
  67. package/.output/server/_ssr/bundle-signing-rpc-BbCFUQSu.mjs +16 -0
  68. package/.output/server/_ssr/bundle-signing.server-C4NW5mWx.mjs +12 -0
  69. package/.output/server/_ssr/card-Bsc8mRis.mjs +86 -0
  70. package/.output/server/_ssr/config-Dv8qLDZ0.mjs +13 -0
  71. package/.output/server/_ssr/config.server-DQYEr_5X.mjs +361 -0
  72. package/.output/server/_ssr/{createServerFn-DzU0k62V.mjs → createServerFn-B2hcXoPM.mjs} +1 -1
  73. package/.output/server/_ssr/createServerRpc-DB29C_5p.mjs +12 -0
  74. package/.output/server/_ssr/{sidebar-Cv_H0_Jv.mjs → createSsrRpc-DhfrxEjg.mjs} +68 -50
  75. package/.output/server/_ssr/databaseRows-QlCYLi0H.mjs +166 -0
  76. package/.output/server/_ssr/deleteBundle-Cu_XOMt0.mjs +66 -0
  77. package/.output/server/_ssr/dialog-C0vKUp8R.mjs +170 -0
  78. package/.output/server/_ssr/dist-BVSLTpoP.mjs +250 -0
  79. package/.output/server/_ssr/downloadBundle-CNnYxYO2.mjs +24 -0
  80. package/.output/server/_ssr/{empty-plugin-adapters-B4HCzgmM.mjs → empty-plugin-adapters-B5QvGpEl.mjs} +1 -1
  81. package/.output/server/_ssr/field-DASCh-5d.mjs +74 -0
  82. package/.output/server/_ssr/{getBundleChildren-CVtSiH5t.mjs → getBundleChildren-BcRMFoDF.mjs} +10 -18
  83. package/.output/server/_ssr/input-group-etIsBUqv.mjs +288 -0
  84. package/.output/server/_ssr/insights-api-C1F7UreR.mjs +71 -0
  85. package/.output/server/_ssr/insights-input-9fEJF-ZG.mjs +96 -0
  86. package/.output/server/_ssr/insights-rpc-C-8R6kED.mjs +155 -0
  87. package/.output/server/_ssr/insights-ygT_aIfo.mjs +858 -0
  88. package/.output/server/_ssr/installations-DqRT1QTd.mjs +535 -0
  89. package/.output/server/_ssr/installations-K8TCYTYh.mjs +19 -0
  90. package/.output/server/_ssr/router-BxBEvtF1.mjs +513 -0
  91. package/.output/server/_ssr/routes-BC7rn-tf.mjs +37 -0
  92. package/.output/server/_ssr/routes-CM5KAwpB.mjs +2285 -0
  93. package/.output/server/_ssr/runtime.server-la7TRAH_.mjs +527 -0
  94. package/.output/server/_ssr/server-CpzW--lT.mjs +7468 -0
  95. package/.output/server/_ssr/signing-jk4HANnl.mjs +134 -0
  96. package/.output/server/_ssr/ssr.mjs +4 -5740
  97. package/.output/server/_ssr/start-DpViQGnt.mjs +4 -0
  98. package/.output/server/_ssr/table-CU58HeI7.mjs +53 -0
  99. package/.output/server/_ssr/uuidv7-CaKuKXrV.mjs +31 -0
  100. package/.output/server/_tanstack-start-manifest_v-Mz9MmSlD.mjs +103 -0
  101. package/.output/server/index.mjs +229 -47
  102. package/README.md +29 -8
  103. package/lib/index.d.mts +35 -0
  104. package/lib/index.mjs +4 -0
  105. package/lib/vite-internal.mjs +127 -0
  106. package/lib/vite.d.mts +10 -0
  107. package/lib/vite.mjs +5 -0
  108. package/package.json +51 -29
  109. package/public/apple-touch-icon.png +0 -0
  110. package/public/favicon-16x16.png +0 -0
  111. package/public/favicon-32x32.png +0 -0
  112. package/public/favicon.ico +0 -0
  113. package/public/logo.svg +1 -0
  114. package/public/manifest.json +30 -0
  115. package/public/robots.txt +3 -0
  116. package/src/components/AppSidebar.tsx +159 -0
  117. package/src/components/BundleIdDisplay.tsx +18 -0
  118. package/src/components/ChannelBadge.tsx +31 -0
  119. package/src/components/ConsoleAccessPage.tsx +122 -0
  120. package/src/components/EnabledStatusIcon.tsx +54 -0
  121. package/src/components/HashValueDisplay.tsx +85 -0
  122. package/src/components/HotUpdaterLogo.tsx +30 -0
  123. package/src/components/NotFoundPage.tsx +33 -0
  124. package/src/components/PlatformIcon.tsx +39 -0
  125. package/src/components/RolloutPercentageBadge.tsx +28 -0
  126. package/src/components/ThemeProvider.tsx +116 -0
  127. package/src/components/TimestampDisplay.tsx +41 -0
  128. package/src/components/features/api-keys/ApiKeysPage.tsx +377 -0
  129. package/src/components/features/bundles/BundleActivityChart.tsx +193 -0
  130. package/src/components/features/bundles/BundleChildrenPanel.tsx +201 -0
  131. package/src/components/features/bundles/BundleInsightsSummary.tsx +123 -0
  132. package/src/components/features/bundles/BundleMetadata.tsx +136 -0
  133. package/src/components/features/bundles/RolloutCohortsDialog.tsx +201 -0
  134. package/src/components/features/channels/ChannelManagementDialog.tsx +228 -0
  135. package/src/components/features/insights/ActivityChart.tsx +150 -0
  136. package/src/components/features/insights/BundleDistribution.tsx +133 -0
  137. package/src/components/features/insights/BundleSelector.tsx +114 -0
  138. package/src/components/features/insights/InsightsCapabilityContext.tsx +24 -0
  139. package/src/components/features/insights/InsightsControls.tsx +115 -0
  140. package/src/components/features/insights/InsightsErrorAlert.tsx +21 -0
  141. package/src/components/features/insights/InsightsOverview.tsx +208 -0
  142. package/src/components/features/insights/InstallationHistoryCard.tsx +248 -0
  143. package/src/components/features/insights/InstallationMatchesCard.tsx +132 -0
  144. package/src/components/features/insights/InstallationPageHeader.tsx +138 -0
  145. package/src/components/features/insights/InstallationPagination.tsx +48 -0
  146. package/src/components/features/insights/InstallationSearch.tsx +230 -0
  147. package/src/components/features/insights/UpdateOutcomes.tsx +147 -0
  148. package/src/components/features/releases/ReleaseEditorSheet.tsx +879 -0
  149. package/src/components/features/releases/ReleaseStateBadge.tsx +20 -0
  150. package/src/components/features/signing/BundleSigningPage.tsx +139 -0
  151. package/src/components/ui/alert-dialog.tsx +185 -0
  152. package/src/components/ui/alert.tsx +76 -0
  153. package/src/components/ui/badge.tsx +49 -0
  154. package/src/components/ui/button.tsx +58 -0
  155. package/src/components/ui/card.tsx +89 -0
  156. package/src/components/ui/chart.tsx +371 -0
  157. package/src/components/ui/combobox.tsx +303 -0
  158. package/src/components/ui/dialog.tsx +156 -0
  159. package/src/components/ui/dropdown-menu.tsx +270 -0
  160. package/src/components/ui/field.tsx +235 -0
  161. package/src/components/ui/input-group.tsx +147 -0
  162. package/src/components/ui/input.tsx +19 -0
  163. package/src/components/ui/label.tsx +25 -0
  164. package/src/components/ui/progress.tsx +84 -0
  165. package/src/components/ui/select.tsx +205 -0
  166. package/src/components/ui/separator.tsx +23 -0
  167. package/src/components/ui/sheet.tsx +132 -0
  168. package/src/components/ui/sidebar.tsx +779 -0
  169. package/src/components/ui/skeleton.tsx +13 -0
  170. package/src/components/ui/slider.tsx +56 -0
  171. package/src/components/ui/sonner.tsx +45 -0
  172. package/src/components/ui/switch.tsx +25 -0
  173. package/src/components/ui/table.tsx +114 -0
  174. package/src/components/ui/textarea.tsx +18 -0
  175. package/src/components/ui/toggle-group.tsx +89 -0
  176. package/src/components/ui/toggle.tsx +43 -0
  177. package/src/components/ui/tooltip.tsx +66 -0
  178. package/src/hooks/use-mobile.ts +30 -0
  179. package/src/index.ts +47 -0
  180. package/src/lib/api-keys-api.ts +69 -0
  181. package/src/lib/api-keys-rpc.ts +87 -0
  182. package/src/lib/api-rpc.ts +478 -0
  183. package/src/lib/api.ts +444 -0
  184. package/src/lib/auth-rpc.ts +16 -0
  185. package/src/lib/bundle-signing-api.ts +14 -0
  186. package/src/lib/bundle-signing-rpc.ts +16 -0
  187. package/src/lib/constants.ts +1 -0
  188. package/src/lib/git.ts +51 -0
  189. package/src/lib/insights-api.ts +144 -0
  190. package/src/lib/insights-error.ts +19 -0
  191. package/src/lib/insights-input.ts +187 -0
  192. package/src/lib/insights-overview.ts +170 -0
  193. package/src/lib/insights-rpc.ts +218 -0
  194. package/src/lib/server/auth.server.ts +43 -0
  195. package/src/lib/server/bundle-signing.server.ts +23 -0
  196. package/src/lib/server/config.server.ts +109 -0
  197. package/src/lib/server/console-runtime.server.ts +61 -0
  198. package/src/lib/server/deleteBundle.ts +145 -0
  199. package/src/lib/server/downloadBundle.ts +46 -0
  200. package/src/lib/server/getBundleChildren.ts +130 -0
  201. package/src/lib/server/listReleases.ts +61 -0
  202. package/src/lib/server/releaseActivity.ts +27 -0
  203. package/src/lib/server/releaseReachability.ts +95 -0
  204. package/src/lib/server/runtime.server.ts +172 -0
  205. package/src/lib/utils.ts +9 -0
  206. package/src/logo.svg +1 -0
  207. package/src/routeTree.gen.ts +199 -0
  208. package/src/router.tsx +21 -0
  209. package/src/routes/-installations-search.ts +19 -0
  210. package/src/routes/-releases-search.ts +74 -0
  211. package/src/routes/__root.tsx +174 -0
  212. package/src/routes/api/auth/$.ts +19 -0
  213. package/src/routes/api/bundles/$bundleId/download.ts +17 -0
  214. package/src/routes/api-keys.tsx +37 -0
  215. package/src/routes/index.tsx +982 -0
  216. package/src/routes/insights.tsx +139 -0
  217. package/src/routes/installations.tsx +194 -0
  218. package/src/routes/signing.tsx +37 -0
  219. package/src/styles.css +152 -0
  220. package/src/virtual-modules.d.ts +21 -0
  221. package/src/vite-env.d.ts +1 -0
  222. package/src/vite-internal.ts +195 -0
  223. package/src/vite.ts +12 -0
  224. package/.output/public/assets/dist-DJX53faP.js +0 -3
  225. package/.output/public/assets/index-Iylis5kY.js +0 -10
  226. package/.output/public/assets/routes-HT21hs0C.js +0 -54
  227. package/.output/public/assets/styles-C0Re4quB.css +0 -2
  228. package/.output/server/__23tanstack-start-server-fn-resolver-CgwgZ0-i.mjs +0 -66
  229. package/.output/server/_libs/@floating-ui/core+[...].mjs +0 -698
  230. package/.output/server/_libs/@floating-ui/dom+[...].mjs +0 -644
  231. package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +0 -839
  232. package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +0 -2138
  233. package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +0 -308
  234. package/.output/server/_libs/@radix-ui/react-select+[...].mjs +0 -1038
  235. package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +0 -196
  236. package/.output/server/_libs/@tanstack/form-core+[...].mjs +0 -3228
  237. package/.output/server/_libs/@tanstack/react-form+[...].mjs +0 -430
  238. package/.output/server/_libs/@tanstack/react-table+[...].mjs +0 -2382
  239. package/.output/server/_libs/radix-ui__number.mjs +0 -6
  240. package/.output/server/_libs/radix-ui__primitive.mjs +0 -9
  241. package/.output/server/_libs/radix-ui__react-arrow.mjs +0 -23
  242. package/.output/server/_libs/radix-ui__react-collection.mjs +0 -78
  243. package/.output/server/_libs/radix-ui__react-direction.mjs +0 -13
  244. package/.output/server/_libs/radix-ui__react-label.mjs +0 -22
  245. package/.output/server/_libs/radix-ui__react-separator.mjs +0 -30
  246. package/.output/server/_libs/radix-ui__react-slider.mjs +0 -510
  247. package/.output/server/_libs/radix-ui__react-switch.mjs +0 -157
  248. package/.output/server/_libs/radix-ui__react-tooltip.mjs +0 -493
  249. package/.output/server/_ssr/api-rpc-BIbDUKSz.mjs +0 -292
  250. package/.output/server/_ssr/config.server-BSS366KT.mjs +0 -41
  251. package/.output/server/_ssr/deleteBundle-BgbZTtpW.mjs +0 -141
  252. package/.output/server/_ssr/dist-KboydRVk.mjs +0 -120
  253. package/.output/server/_ssr/router-C3hqEy3k.mjs +0 -307
  254. package/.output/server/_ssr/routes-B0lQvvlC.mjs +0 -3048
  255. package/.output/server/_ssr/start-02sLteYG.mjs +0 -4
  256. package/.output/server/_ssr/storageProfile-FVkjPoGb.mjs +0 -9
  257. package/.output/server/_tanstack-start-manifest_v-Bpx52WOU.mjs +0 -20
  258. package/.output/server/node_modules/tslib/modules/index.js +0 -70
  259. package/.output/server/node_modules/tslib/modules/package.json +0 -3
  260. package/.output/server/node_modules/tslib/package.json +0 -47
  261. package/.output/server/node_modules/tslib/tslib.js +0 -484
  262. package/.output/server/package.json +0 -9
@@ -0,0 +1,330 @@
1
+ //#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js
2
+ function define_default(constructor, factory, prototype) {
3
+ constructor.prototype = factory.prototype = prototype;
4
+ prototype.constructor = constructor;
5
+ }
6
+ function extend(parent, definition) {
7
+ var prototype = Object.create(parent.prototype);
8
+ for (var key in definition) prototype[key] = definition[key];
9
+ return prototype;
10
+ }
11
+ //#endregion
12
+ //#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js
13
+ function Color() {}
14
+ var darker = .7;
15
+ var brighter = 1 / darker;
16
+ var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`), reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`), reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`), reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`), reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`), reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
17
+ var named = {
18
+ aliceblue: 15792383,
19
+ antiquewhite: 16444375,
20
+ aqua: 65535,
21
+ aquamarine: 8388564,
22
+ azure: 15794175,
23
+ beige: 16119260,
24
+ bisque: 16770244,
25
+ black: 0,
26
+ blanchedalmond: 16772045,
27
+ blue: 255,
28
+ blueviolet: 9055202,
29
+ brown: 10824234,
30
+ burlywood: 14596231,
31
+ cadetblue: 6266528,
32
+ chartreuse: 8388352,
33
+ chocolate: 13789470,
34
+ coral: 16744272,
35
+ cornflowerblue: 6591981,
36
+ cornsilk: 16775388,
37
+ crimson: 14423100,
38
+ cyan: 65535,
39
+ darkblue: 139,
40
+ darkcyan: 35723,
41
+ darkgoldenrod: 12092939,
42
+ darkgray: 11119017,
43
+ darkgreen: 25600,
44
+ darkgrey: 11119017,
45
+ darkkhaki: 12433259,
46
+ darkmagenta: 9109643,
47
+ darkolivegreen: 5597999,
48
+ darkorange: 16747520,
49
+ darkorchid: 10040012,
50
+ darkred: 9109504,
51
+ darksalmon: 15308410,
52
+ darkseagreen: 9419919,
53
+ darkslateblue: 4734347,
54
+ darkslategray: 3100495,
55
+ darkslategrey: 3100495,
56
+ darkturquoise: 52945,
57
+ darkviolet: 9699539,
58
+ deeppink: 16716947,
59
+ deepskyblue: 49151,
60
+ dimgray: 6908265,
61
+ dimgrey: 6908265,
62
+ dodgerblue: 2003199,
63
+ firebrick: 11674146,
64
+ floralwhite: 16775920,
65
+ forestgreen: 2263842,
66
+ fuchsia: 16711935,
67
+ gainsboro: 14474460,
68
+ ghostwhite: 16316671,
69
+ gold: 16766720,
70
+ goldenrod: 14329120,
71
+ gray: 8421504,
72
+ green: 32768,
73
+ greenyellow: 11403055,
74
+ grey: 8421504,
75
+ honeydew: 15794160,
76
+ hotpink: 16738740,
77
+ indianred: 13458524,
78
+ indigo: 4915330,
79
+ ivory: 16777200,
80
+ khaki: 15787660,
81
+ lavender: 15132410,
82
+ lavenderblush: 16773365,
83
+ lawngreen: 8190976,
84
+ lemonchiffon: 16775885,
85
+ lightblue: 11393254,
86
+ lightcoral: 15761536,
87
+ lightcyan: 14745599,
88
+ lightgoldenrodyellow: 16448210,
89
+ lightgray: 13882323,
90
+ lightgreen: 9498256,
91
+ lightgrey: 13882323,
92
+ lightpink: 16758465,
93
+ lightsalmon: 16752762,
94
+ lightseagreen: 2142890,
95
+ lightskyblue: 8900346,
96
+ lightslategray: 7833753,
97
+ lightslategrey: 7833753,
98
+ lightsteelblue: 11584734,
99
+ lightyellow: 16777184,
100
+ lime: 65280,
101
+ limegreen: 3329330,
102
+ linen: 16445670,
103
+ magenta: 16711935,
104
+ maroon: 8388608,
105
+ mediumaquamarine: 6737322,
106
+ mediumblue: 205,
107
+ mediumorchid: 12211667,
108
+ mediumpurple: 9662683,
109
+ mediumseagreen: 3978097,
110
+ mediumslateblue: 8087790,
111
+ mediumspringgreen: 64154,
112
+ mediumturquoise: 4772300,
113
+ mediumvioletred: 13047173,
114
+ midnightblue: 1644912,
115
+ mintcream: 16121850,
116
+ mistyrose: 16770273,
117
+ moccasin: 16770229,
118
+ navajowhite: 16768685,
119
+ navy: 128,
120
+ oldlace: 16643558,
121
+ olive: 8421376,
122
+ olivedrab: 7048739,
123
+ orange: 16753920,
124
+ orangered: 16729344,
125
+ orchid: 14315734,
126
+ palegoldenrod: 15657130,
127
+ palegreen: 10025880,
128
+ paleturquoise: 11529966,
129
+ palevioletred: 14381203,
130
+ papayawhip: 16773077,
131
+ peachpuff: 16767673,
132
+ peru: 13468991,
133
+ pink: 16761035,
134
+ plum: 14524637,
135
+ powderblue: 11591910,
136
+ purple: 8388736,
137
+ rebeccapurple: 6697881,
138
+ red: 16711680,
139
+ rosybrown: 12357519,
140
+ royalblue: 4286945,
141
+ saddlebrown: 9127187,
142
+ salmon: 16416882,
143
+ sandybrown: 16032864,
144
+ seagreen: 3050327,
145
+ seashell: 16774638,
146
+ sienna: 10506797,
147
+ silver: 12632256,
148
+ skyblue: 8900331,
149
+ slateblue: 6970061,
150
+ slategray: 7372944,
151
+ slategrey: 7372944,
152
+ snow: 16775930,
153
+ springgreen: 65407,
154
+ steelblue: 4620980,
155
+ tan: 13808780,
156
+ teal: 32896,
157
+ thistle: 14204888,
158
+ tomato: 16737095,
159
+ turquoise: 4251856,
160
+ violet: 15631086,
161
+ wheat: 16113331,
162
+ white: 16777215,
163
+ whitesmoke: 16119285,
164
+ yellow: 16776960,
165
+ yellowgreen: 10145074
166
+ };
167
+ define_default(Color, color, {
168
+ copy(channels) {
169
+ return Object.assign(new this.constructor(), this, channels);
170
+ },
171
+ displayable() {
172
+ return this.rgb().displayable();
173
+ },
174
+ hex: color_formatHex,
175
+ formatHex: color_formatHex,
176
+ formatHex8: color_formatHex8,
177
+ formatHsl: color_formatHsl,
178
+ formatRgb: color_formatRgb,
179
+ toString: color_formatRgb
180
+ });
181
+ function color_formatHex() {
182
+ return this.rgb().formatHex();
183
+ }
184
+ function color_formatHex8() {
185
+ return this.rgb().formatHex8();
186
+ }
187
+ function color_formatHsl() {
188
+ return hslConvert(this).formatHsl();
189
+ }
190
+ function color_formatRgb() {
191
+ return this.rgb().formatRgb();
192
+ }
193
+ function color(format) {
194
+ var m, l;
195
+ format = (format + "").trim().toLowerCase();
196
+ return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) : l === 3 ? new Rgb(m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, (m & 15) << 4 | m & 15, 1) : l === 8 ? rgba(m >> 24 & 255, m >> 16 & 255, m >> 8 & 255, (m & 255) / 255) : l === 4 ? rgba(m >> 12 & 15 | m >> 8 & 240, m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, ((m & 15) << 4 | m & 15) / 255) : null) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) : named.hasOwnProperty(format) ? rgbn(named[format]) : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
197
+ }
198
+ function rgbn(n) {
199
+ return new Rgb(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
200
+ }
201
+ function rgba(r, g, b, a) {
202
+ if (a <= 0) r = g = b = NaN;
203
+ return new Rgb(r, g, b, a);
204
+ }
205
+ function rgbConvert(o) {
206
+ if (!(o instanceof Color)) o = color(o);
207
+ if (!o) return new Rgb();
208
+ o = o.rgb();
209
+ return new Rgb(o.r, o.g, o.b, o.opacity);
210
+ }
211
+ function rgb(r, g, b, opacity) {
212
+ return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
213
+ }
214
+ function Rgb(r, g, b, opacity) {
215
+ this.r = +r;
216
+ this.g = +g;
217
+ this.b = +b;
218
+ this.opacity = +opacity;
219
+ }
220
+ define_default(Rgb, rgb, extend(Color, {
221
+ brighter(k) {
222
+ k = k == null ? brighter : Math.pow(brighter, k);
223
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
224
+ },
225
+ darker(k) {
226
+ k = k == null ? darker : Math.pow(darker, k);
227
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
228
+ },
229
+ rgb() {
230
+ return this;
231
+ },
232
+ clamp() {
233
+ return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
234
+ },
235
+ displayable() {
236
+ return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
237
+ },
238
+ hex: rgb_formatHex,
239
+ formatHex: rgb_formatHex,
240
+ formatHex8: rgb_formatHex8,
241
+ formatRgb: rgb_formatRgb,
242
+ toString: rgb_formatRgb
243
+ }));
244
+ function rgb_formatHex() {
245
+ return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
246
+ }
247
+ function rgb_formatHex8() {
248
+ return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
249
+ }
250
+ function rgb_formatRgb() {
251
+ const a = clampa(this.opacity);
252
+ return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`;
253
+ }
254
+ function clampa(opacity) {
255
+ return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
256
+ }
257
+ function clampi(value) {
258
+ return Math.max(0, Math.min(255, Math.round(value) || 0));
259
+ }
260
+ function hex(value) {
261
+ value = clampi(value);
262
+ return (value < 16 ? "0" : "") + value.toString(16);
263
+ }
264
+ function hsla(h, s, l, a) {
265
+ if (a <= 0) h = s = l = NaN;
266
+ else if (l <= 0 || l >= 1) h = s = NaN;
267
+ else if (s <= 0) h = NaN;
268
+ return new Hsl(h, s, l, a);
269
+ }
270
+ function hslConvert(o) {
271
+ if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
272
+ if (!(o instanceof Color)) o = color(o);
273
+ if (!o) return new Hsl();
274
+ if (o instanceof Hsl) return o;
275
+ o = o.rgb();
276
+ var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2;
277
+ if (s) {
278
+ if (r === max) h = (g - b) / s + (g < b) * 6;
279
+ else if (g === max) h = (b - r) / s + 2;
280
+ else h = (r - g) / s + 4;
281
+ s /= l < .5 ? max + min : 2 - max - min;
282
+ h *= 60;
283
+ } else s = l > 0 && l < 1 ? 0 : h;
284
+ return new Hsl(h, s, l, o.opacity);
285
+ }
286
+ function hsl(h, s, l, opacity) {
287
+ return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
288
+ }
289
+ function Hsl(h, s, l, opacity) {
290
+ this.h = +h;
291
+ this.s = +s;
292
+ this.l = +l;
293
+ this.opacity = +opacity;
294
+ }
295
+ define_default(Hsl, hsl, extend(Color, {
296
+ brighter(k) {
297
+ k = k == null ? brighter : Math.pow(brighter, k);
298
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
299
+ },
300
+ darker(k) {
301
+ k = k == null ? darker : Math.pow(darker, k);
302
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
303
+ },
304
+ rgb() {
305
+ var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < .5 ? l : 1 - l) * s, m1 = 2 * l - m2;
306
+ return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
307
+ },
308
+ clamp() {
309
+ return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
310
+ },
311
+ displayable() {
312
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
313
+ },
314
+ formatHsl() {
315
+ const a = clampa(this.opacity);
316
+ return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`;
317
+ }
318
+ }));
319
+ function clamph(value) {
320
+ value = (value || 0) % 360;
321
+ return value < 0 ? value + 360 : value;
322
+ }
323
+ function clampt(value) {
324
+ return Math.max(0, Math.min(1, value || 0));
325
+ }
326
+ function hsl2rgb(h, m1, m2) {
327
+ return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
328
+ }
329
+ //#endregion
330
+ export { rgb as n, color as t };
@@ -0,0 +1,252 @@
1
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js
2
+ function formatDecimal_default(x) {
3
+ return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
4
+ }
5
+ function formatDecimalParts(x, p) {
6
+ if (!isFinite(x) || x === 0) return null;
7
+ var i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e"), coefficient = x.slice(0, i);
8
+ return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1)];
9
+ }
10
+ //#endregion
11
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js
12
+ function exponent_default(x) {
13
+ return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
14
+ }
15
+ //#endregion
16
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatGroup.js
17
+ function formatGroup_default(grouping, thousands) {
18
+ return function(value, width) {
19
+ var i = value.length, t = [], j = 0, g = grouping[0], length = 0;
20
+ while (i > 0 && g > 0) {
21
+ if (length + g + 1 > width) g = Math.max(1, width - length);
22
+ t.push(value.substring(i -= g, i + g));
23
+ if ((length += g + 1) > width) break;
24
+ g = grouping[j = (j + 1) % grouping.length];
25
+ }
26
+ return t.reverse().join(thousands);
27
+ };
28
+ }
29
+ //#endregion
30
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatNumerals.js
31
+ function formatNumerals_default(numerals) {
32
+ return function(value) {
33
+ return value.replace(/[0-9]/g, function(i) {
34
+ return numerals[+i];
35
+ });
36
+ };
37
+ }
38
+ //#endregion
39
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js
40
+ var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
41
+ function formatSpecifier(specifier) {
42
+ if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
43
+ var match;
44
+ return new FormatSpecifier({
45
+ fill: match[1],
46
+ align: match[2],
47
+ sign: match[3],
48
+ symbol: match[4],
49
+ zero: match[5],
50
+ width: match[6],
51
+ comma: match[7],
52
+ precision: match[8] && match[8].slice(1),
53
+ trim: match[9],
54
+ type: match[10]
55
+ });
56
+ }
57
+ formatSpecifier.prototype = FormatSpecifier.prototype;
58
+ function FormatSpecifier(specifier) {
59
+ this.fill = specifier.fill === void 0 ? " " : specifier.fill + "";
60
+ this.align = specifier.align === void 0 ? ">" : specifier.align + "";
61
+ this.sign = specifier.sign === void 0 ? "-" : specifier.sign + "";
62
+ this.symbol = specifier.symbol === void 0 ? "" : specifier.symbol + "";
63
+ this.zero = !!specifier.zero;
64
+ this.width = specifier.width === void 0 ? void 0 : +specifier.width;
65
+ this.comma = !!specifier.comma;
66
+ this.precision = specifier.precision === void 0 ? void 0 : +specifier.precision;
67
+ this.trim = !!specifier.trim;
68
+ this.type = specifier.type === void 0 ? "" : specifier.type + "";
69
+ }
70
+ FormatSpecifier.prototype.toString = function() {
71
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
72
+ };
73
+ //#endregion
74
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTrim.js
75
+ function formatTrim_default(s) {
76
+ out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) switch (s[i]) {
77
+ case ".":
78
+ i0 = i1 = i;
79
+ break;
80
+ case "0":
81
+ if (i0 === 0) i0 = i;
82
+ i1 = i;
83
+ break;
84
+ default:
85
+ if (!+s[i]) break out;
86
+ if (i0 > 0) i0 = 0;
87
+ break;
88
+ }
89
+ return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
90
+ }
91
+ //#endregion
92
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatPrefixAuto.js
93
+ var prefixExponent;
94
+ function formatPrefixAuto_default(x, p) {
95
+ var d = formatDecimalParts(x, p);
96
+ if (!d) return prefixExponent = void 0, x.toPrecision(p);
97
+ var coefficient = d[0], exponent = d[1], i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, n = coefficient.length;
98
+ return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0];
99
+ }
100
+ //#endregion
101
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatRounded.js
102
+ function formatRounded_default(x, p) {
103
+ var d = formatDecimalParts(x, p);
104
+ if (!d) return x + "";
105
+ var coefficient = d[0], exponent = d[1];
106
+ return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0");
107
+ }
108
+ //#endregion
109
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTypes.js
110
+ var formatTypes_default = {
111
+ "%": (x, p) => (x * 100).toFixed(p),
112
+ "b": (x) => Math.round(x).toString(2),
113
+ "c": (x) => x + "",
114
+ "d": formatDecimal_default,
115
+ "e": (x, p) => x.toExponential(p),
116
+ "f": (x, p) => x.toFixed(p),
117
+ "g": (x, p) => x.toPrecision(p),
118
+ "o": (x) => Math.round(x).toString(8),
119
+ "p": (x, p) => formatRounded_default(x * 100, p),
120
+ "r": formatRounded_default,
121
+ "s": formatPrefixAuto_default,
122
+ "X": (x) => Math.round(x).toString(16).toUpperCase(),
123
+ "x": (x) => Math.round(x).toString(16)
124
+ };
125
+ //#endregion
126
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/identity.js
127
+ function identity_default(x) {
128
+ return x;
129
+ }
130
+ //#endregion
131
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/locale.js
132
+ var map = Array.prototype.map, prefixes = [
133
+ "y",
134
+ "z",
135
+ "a",
136
+ "f",
137
+ "p",
138
+ "n",
139
+ "µ",
140
+ "m",
141
+ "",
142
+ "k",
143
+ "M",
144
+ "G",
145
+ "T",
146
+ "P",
147
+ "E",
148
+ "Z",
149
+ "Y"
150
+ ];
151
+ function locale_default(locale) {
152
+ var group = locale.grouping === void 0 || locale.thousands === void 0 ? identity_default : formatGroup_default(map.call(locale.grouping, Number), locale.thousands + ""), currencyPrefix = locale.currency === void 0 ? "" : locale.currency[0] + "", currencySuffix = locale.currency === void 0 ? "" : locale.currency[1] + "", decimal = locale.decimal === void 0 ? "." : locale.decimal + "", numerals = locale.numerals === void 0 ? identity_default : formatNumerals_default(map.call(locale.numerals, String)), percent = locale.percent === void 0 ? "%" : locale.percent + "", minus = locale.minus === void 0 ? "−" : locale.minus + "", nan = locale.nan === void 0 ? "NaN" : locale.nan + "";
153
+ function newFormat(specifier, options) {
154
+ specifier = formatSpecifier(specifier);
155
+ var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type;
156
+ if (type === "n") comma = true, type = "g";
157
+ else if (!formatTypes_default[type]) precision === void 0 && (precision = 12), trim = true, type = "g";
158
+ if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "=";
159
+ var prefix = (options && options.prefix !== void 0 ? options.prefix : "") + (symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : ""), suffix = (symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "") + (options && options.suffix !== void 0 ? options.suffix : "");
160
+ var formatType = formatTypes_default[type], maybeSuffix = /[defgprs%]/.test(type);
161
+ precision = precision === void 0 ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
162
+ function format(value) {
163
+ var valuePrefix = prefix, valueSuffix = suffix, i, n, c;
164
+ if (type === "c") {
165
+ valueSuffix = formatType(value) + valueSuffix;
166
+ value = "";
167
+ } else {
168
+ value = +value;
169
+ var valueNegative = value < 0 || 1 / value < 0;
170
+ value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
171
+ if (trim) value = formatTrim_default(value);
172
+ if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;
173
+ valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
174
+ valueSuffix = (type === "s" && !isNaN(value) && prefixExponent !== void 0 ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
175
+ if (maybeSuffix) {
176
+ i = -1, n = value.length;
177
+ while (++i < n) if (c = value.charCodeAt(i), 48 > c || c > 57) {
178
+ valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
179
+ value = value.slice(0, i);
180
+ break;
181
+ }
182
+ }
183
+ }
184
+ if (comma && !zero) value = group(value, Infinity);
185
+ var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : "";
186
+ if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
187
+ switch (align) {
188
+ case "<":
189
+ value = valuePrefix + value + valueSuffix + padding;
190
+ break;
191
+ case "=":
192
+ value = valuePrefix + padding + value + valueSuffix;
193
+ break;
194
+ case "^":
195
+ value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
196
+ break;
197
+ default:
198
+ value = padding + valuePrefix + value + valueSuffix;
199
+ break;
200
+ }
201
+ return numerals(value);
202
+ }
203
+ format.toString = function() {
204
+ return specifier + "";
205
+ };
206
+ return format;
207
+ }
208
+ function formatPrefix(specifier, value) {
209
+ var e = Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3, k = Math.pow(10, -e), f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier), { suffix: prefixes[8 + e / 3] });
210
+ return function(value) {
211
+ return f(k * value);
212
+ };
213
+ }
214
+ return {
215
+ format: newFormat,
216
+ formatPrefix
217
+ };
218
+ }
219
+ //#endregion
220
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js
221
+ var locale;
222
+ var format;
223
+ var formatPrefix;
224
+ defaultLocale({
225
+ thousands: ",",
226
+ grouping: [3],
227
+ currency: ["$", ""]
228
+ });
229
+ function defaultLocale(definition) {
230
+ locale = locale_default(definition);
231
+ format = locale.format;
232
+ formatPrefix = locale.formatPrefix;
233
+ return locale;
234
+ }
235
+ //#endregion
236
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionFixed.js
237
+ function precisionFixed_default(step) {
238
+ return Math.max(0, -exponent_default(Math.abs(step)));
239
+ }
240
+ //#endregion
241
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionPrefix.js
242
+ function precisionPrefix_default(step, value) {
243
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3 - exponent_default(Math.abs(step)));
244
+ }
245
+ //#endregion
246
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionRound.js
247
+ function precisionRound_default(step, max) {
248
+ step = Math.abs(step), max = Math.abs(max) - step;
249
+ return Math.max(0, exponent_default(max) - exponent_default(step)) + 1;
250
+ }
251
+ //#endregion
252
+ export { formatPrefix as a, format as i, precisionPrefix_default as n, formatSpecifier as o, precisionFixed_default as r, precisionRound_default as t };