for-humanity 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +16 -9
  3. package/dist/browser.js +16 -16
  4. package/dist/cli.css +2 -968
  5. package/dist/cli.js +92 -2318
  6. package/dist/config.js +1 -0
  7. package/dist/constant/copy.d.ts +100 -0
  8. package/dist/constant/site.d.ts +20 -0
  9. package/dist/constant/status.d.ts +19 -0
  10. package/dist/copy-C1uzvEnr.js +103 -0
  11. package/dist/group-path-XAThmzvC.js +10 -0
  12. package/dist/load-site-CbpLEhwu.js +2379 -0
  13. package/dist/logger-Dv1i9xSV.js +9 -0
  14. package/dist/mermaid/THIRD-PARTY-NOTICES.txt +3134 -0
  15. package/dist/mermaid/chunk--TN-qHgG.js +2 -0
  16. package/dist/mermaid/chunk-0kM1Lv4D.js +2 -0
  17. package/dist/mermaid/chunk-3FHei3pH.js +2001 -0
  18. package/dist/mermaid/chunk-3_2p2GqN.js +2 -0
  19. package/dist/mermaid/chunk-6HLei9i0.js +84 -0
  20. package/dist/mermaid/chunk-7Sz3kAwl.js +2214 -0
  21. package/dist/mermaid/chunk-7Tarqbpa.js +18047 -0
  22. package/dist/mermaid/chunk-9kkt8lzL.js +10 -0
  23. package/dist/mermaid/chunk-B--pNBQF.js +884 -0
  24. package/dist/mermaid/chunk-B4F-pysn.js +4241 -0
  25. package/dist/mermaid/chunk-B58sEIY_.js +14 -0
  26. package/dist/mermaid/chunk-B9_UWzSH.js +1517 -0
  27. package/dist/mermaid/chunk-BB8uZHwY.js +75 -0
  28. package/dist/mermaid/chunk-BFfk0LEc.js +717 -0
  29. package/dist/mermaid/chunk-BKri0qr7.js +89 -0
  30. package/dist/mermaid/chunk-BL404pH5.js +26 -0
  31. package/dist/mermaid/chunk-BLeiQSWo.js +354 -0
  32. package/dist/mermaid/chunk-BOmH_UFd.js +2 -0
  33. package/dist/mermaid/chunk-BSej9Nhy.js +1361 -0
  34. package/dist/mermaid/chunk-BYzrzvCI.js +12 -0
  35. package/dist/mermaid/chunk-BariMtWr.js +3020 -0
  36. package/dist/mermaid/chunk-BcrBoMwH.js +2352 -0
  37. package/dist/mermaid/chunk-Bok8z-Yo.js +67 -0
  38. package/dist/mermaid/chunk-BpTHLKQM.js +1970 -0
  39. package/dist/mermaid/chunk-BqjuxRsC.js +733 -0
  40. package/dist/mermaid/chunk-BuvPd-s5.js +1073 -0
  41. package/dist/mermaid/chunk-BvVehae3.js +5069 -0
  42. package/dist/mermaid/chunk-C-JABYpd.js +3075 -0
  43. package/dist/mermaid/chunk-C9XlTm4w.js +2 -0
  44. package/dist/mermaid/chunk-CApNbSU9.js +6 -0
  45. package/dist/mermaid/chunk-CCM2AH-C.js +9 -0
  46. package/dist/mermaid/chunk-CD1E0F_N.js +2 -0
  47. package/dist/mermaid/chunk-CDWvKG7D.js +2 -0
  48. package/dist/mermaid/chunk-CEVPpC1F.js +34 -0
  49. package/dist/mermaid/chunk-CLDr12lf.js +47504 -0
  50. package/dist/mermaid/chunk-CLVYqOBI.js +61 -0
  51. package/dist/mermaid/chunk-CLeOkFb5.js +15 -0
  52. package/dist/mermaid/chunk-CLgRAtOz.js +37 -0
  53. package/dist/mermaid/chunk-CMqFNUBl.js +134 -0
  54. package/dist/mermaid/chunk-CTPaBJXB.js +2 -0
  55. package/dist/mermaid/chunk-CVi6IGBL.js +2 -0
  56. package/dist/mermaid/chunk-CWV_EN-4.js +4745 -0
  57. package/dist/mermaid/chunk-CZ0dAs3g.js +2 -0
  58. package/dist/mermaid/chunk-C_YGy4Fn.js +236 -0
  59. package/dist/mermaid/chunk-CcVH22Yt.js +100 -0
  60. package/dist/mermaid/chunk-CgG6CD9_.js +7175 -0
  61. package/dist/mermaid/chunk-CgOP6IDB.js +3397 -0
  62. package/dist/mermaid/chunk-Cgg2UTSf.js +13 -0
  63. package/dist/mermaid/chunk-ChJfJJ1A.js +214 -0
  64. package/dist/mermaid/chunk-Ck5XRA46.js +447 -0
  65. package/dist/mermaid/chunk-Ckuw16cl.js +203 -0
  66. package/dist/mermaid/chunk-CpAbRCbF.js +1880 -0
  67. package/dist/mermaid/chunk-CuYekbSv.js +2 -0
  68. package/dist/mermaid/chunk-CwS4wZ5a.js +2 -0
  69. package/dist/mermaid/chunk-D-bcrBO3.js +82 -0
  70. package/dist/mermaid/chunk-D3IEAkCW.js +76 -0
  71. package/dist/mermaid/chunk-D8XfBJ_K.js +645 -0
  72. package/dist/mermaid/chunk-D9Ddd9y4.js +2228 -0
  73. package/dist/mermaid/chunk-DBh1mIbK.js +12 -0
  74. package/dist/mermaid/chunk-DD6Df6Ic.js +5 -0
  75. package/dist/mermaid/chunk-DGVDaXjx.js +8 -0
  76. package/dist/mermaid/chunk-DK9KqIXj.js +632 -0
  77. package/dist/mermaid/chunk-DORnIAsy.js +4487 -0
  78. package/dist/mermaid/chunk-DU69_VcF.js +363 -0
  79. package/dist/mermaid/chunk-DVNvSFoz.js +2144 -0
  80. package/dist/mermaid/chunk-DZe-4kde.js +20 -0
  81. package/dist/mermaid/chunk-D_a06Rz4.js +287 -0
  82. package/dist/mermaid/chunk-DfyFJJi2.js +972 -0
  83. package/dist/mermaid/chunk-DhKYPp1Z.js +2 -0
  84. package/dist/mermaid/chunk-DjFqgNTG.js +94 -0
  85. package/dist/mermaid/chunk-DmbDDrr-.js +65 -0
  86. package/dist/mermaid/chunk-DpuxlyL_.js +696 -0
  87. package/dist/mermaid/chunk-DqGhppWe.js +2 -0
  88. package/dist/mermaid/chunk-DqPZxHXa.js +5 -0
  89. package/dist/mermaid/chunk-Dt_1Jyif.js +293 -0
  90. package/dist/mermaid/chunk-DyQBE_NW.js +1935 -0
  91. package/dist/mermaid/chunk-JckyC4mW.js +1009 -0
  92. package/dist/mermaid/chunk-K7Myuj2-.js +1334 -0
  93. package/dist/mermaid/chunk-KuPYb48V.js +275 -0
  94. package/dist/mermaid/chunk-MFVRUoO0.js +4020 -0
  95. package/dist/mermaid/chunk-MbInCS_6.js +28 -0
  96. package/dist/mermaid/chunk-MexOLyKV.js +355 -0
  97. package/dist/mermaid/chunk-NnbDtJzg.js +21856 -0
  98. package/dist/mermaid/chunk-SGpOYZbI.js +2139 -0
  99. package/dist/mermaid/chunk-TbxLDlcU.js +198 -0
  100. package/dist/mermaid/chunk-TftHqGLg.js +490 -0
  101. package/dist/mermaid/chunk-UjQ8vA_Z.js +4138 -0
  102. package/dist/mermaid/chunk-YgmVTKqc.js +16 -0
  103. package/dist/mermaid/chunk-_a9EZE1v.js +1798 -0
  104. package/dist/mermaid/chunk-dTb8jqeP.js +2 -0
  105. package/dist/mermaid/chunk-fFdMfF8S.js +2240 -0
  106. package/dist/mermaid/chunk-feYbMzBj.js +1267 -0
  107. package/dist/mermaid/chunk-g3Pn8DkW.js +46 -0
  108. package/dist/mermaid/chunk-hM77LvCb.js +19832 -0
  109. package/dist/mermaid/chunk-hUDb-eAW.js +527 -0
  110. package/dist/mermaid/chunk-tpABtZ-3.js +4252 -0
  111. package/dist/mermaid/chunk-xIbz3oFK.js +59 -0
  112. package/dist/mermaid/chunk-yBz-vst0.js +976 -0
  113. package/dist/mermaid/mermaid-BhtR3wyB.js +1145 -0
  114. package/dist/run-site-command-C80YoNOe.js +129 -0
  115. package/dist/site-config-bllORGpm.js +90 -0
  116. package/dist/site.js +1 -0
  117. package/dist/start-dev-server-C4_Lu1nZ.js +176 -0
  118. package/dist/to-change-queue-DbEnZGNK.js +34 -0
  119. package/dist/to-error-message-pF6_7wGK.js +16 -0
  120. package/dist/type/group-path.d.ts +7 -0
  121. package/dist/type/site-config.d.ts +57 -0
  122. package/package.json +34 -17
  123. package/src/component/widget/cursor-face/_constant/cursor-face.ts +0 -14
  124. package/src/component/widget/cursor-face/wg-cursor-face.css +0 -15
  125. package/src/component/widget/cursor-face/wg-cursor-face.tsx +0 -153
  126. package/src/component/widget/navigation/_constant/locale.ts +0 -9
  127. package/src/component/widget/navigation/_constant/navigation-data-schema.ts +0 -33
  128. package/src/component/widget/navigation/_constant/navigation.ts +0 -9
  129. package/src/component/widget/navigation/_constant/reading-line.ts +0 -4
  130. package/src/component/widget/navigation/_function/restore-navigation-scroll.ts +0 -59
  131. package/src/component/widget/navigation/_function/to-doc-groups/_to-doc-branches.ts +0 -15
  132. package/src/component/widget/navigation/_function/to-doc-groups/_to-doc-group-branches.ts +0 -70
  133. package/src/component/widget/navigation/_function/to-doc-groups/to-doc-groups.ts +0 -15
  134. package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-document.ts +0 -13
  135. package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-group.ts +0 -13
  136. package/src/component/widget/navigation/_function/to-navigation-data/to-navigation-data.ts +0 -18
  137. package/src/component/widget/navigation/_function/to-navigation-json.ts +0 -8
  138. package/src/component/widget/navigation/_function/to-toc-groups.ts +0 -38
  139. package/src/component/widget/navigation/_type/doc-branch.ts +0 -11
  140. package/src/component/widget/navigation/_type/doc-group.ts +0 -24
  141. package/src/component/widget/navigation/_type/navigation-data.ts +0 -75
  142. package/src/component/widget/navigation/_type/navigation-focus-snapshot.ts +0 -17
  143. package/src/component/widget/navigation/_type/toc-group.ts +0 -39
  144. package/src/component/widget/navigation/_wg-navigation-nav-list.css +0 -48
  145. package/src/component/widget/navigation/_wg-navigation-nav-list.tsx +0 -61
  146. package/src/component/widget/navigation/_wg-navigation-nav.css +0 -21
  147. package/src/component/widget/navigation/_wg-navigation-nav.tsx +0 -33
  148. package/src/component/widget/navigation/_wg-navigation-scroll.tsx +0 -117
  149. package/src/component/widget/navigation/_wg-navigation-toc.css +0 -91
  150. package/src/component/widget/navigation/_wg-navigation-toc.tsx +0 -114
  151. package/src/component/widget/navigation/wg-navigation.css +0 -282
  152. package/src/component/widget/navigation/wg-navigation.tsx +0 -420
  153. package/src/component/widget/prose/_constant/heading-highlight.ts +0 -4
  154. package/src/component/widget/prose/_constant/section.ts +0 -7
  155. package/src/component/widget/prose/_constant/status.ts +0 -9
  156. package/src/component/widget/prose/_function/has-block-content.ts +0 -30
  157. package/src/component/widget/prose/_function/rehype-head.ts +0 -31
  158. package/src/component/widget/prose/_function/rehype-sections/_to-section-headings.ts +0 -20
  159. package/src/component/widget/prose/_function/rehype-sections/rehype-sections.ts +0 -21
  160. package/src/component/widget/prose/_function/rehype-tables.ts +0 -22
  161. package/src/component/widget/prose/_function/remark-blocks.ts +0 -112
  162. package/src/component/widget/prose/_function/remark-flow.ts +0 -26
  163. package/src/component/widget/prose/_function/remark-links.ts +0 -33
  164. package/src/component/widget/prose/_function/remark-parts.ts +0 -26
  165. package/src/component/widget/prose/_function/remark-status.ts +0 -59
  166. package/src/component/widget/prose/_function/remark-swatch.ts +0 -16
  167. package/src/component/widget/prose/_function/remark-unknown-directives.ts +0 -25
  168. package/src/component/widget/prose/wg-prose.css +0 -484
  169. package/src/component/widget/prose/wg-prose.tsx +0 -43
  170. package/src/component/widget/shell/wg-shell.css +0 -63
  171. package/src/component/widget/shell/wg-shell.tsx +0 -88
  172. package/src/component/widget/shell-controls/wg-shell-controls.css +0 -4
  173. package/src/component/widget/shell-controls/wg-shell-controls.tsx +0 -170
  174. package/src/constant/asset.ts +0 -63
  175. package/src/constant/copy.ts +0 -133
  176. package/src/constant/doc.ts +0 -13
  177. package/src/constant/font.ts +0 -34
  178. package/src/constant/site.ts +0 -24
  179. package/src/constant/status.ts +0 -15
  180. package/src/entry/browser/browser.tsx +0 -22
  181. package/src/entry/cli/_constant/cli.ts +0 -19
  182. package/src/entry/cli/_constant/crawling.ts +0 -14
  183. package/src/entry/cli/_constant/snippet.ts +0 -21
  184. package/src/entry/cli/_function/create-app.tsx +0 -57
  185. package/src/entry/cli/_function/create-dev-app.ts +0 -87
  186. package/src/entry/cli/_function/create-processor/_rehype-assets.ts +0 -70
  187. package/src/entry/cli/_function/create-processor/_rehype-heading-ids.ts +0 -34
  188. package/src/entry/cli/_function/create-processor/_remark-report.ts +0 -15
  189. package/src/entry/cli/_function/create-processor/_remark-snippets.ts +0 -117
  190. package/src/entry/cli/_function/create-processor/_shiki-transformers.ts +0 -91
  191. package/src/entry/cli/_function/create-processor/create-processor.ts +0 -64
  192. package/src/entry/cli/_function/read-docs.ts +0 -128
  193. package/src/entry/cli/_function/read-home.ts +0 -32
  194. package/src/entry/cli/_function/to-crawling-app.ts +0 -42
  195. package/src/entry/cli/cli.test.ts +0 -804
  196. package/src/entry/cli/cli.ts +0 -206
  197. package/src/env.d.ts +0 -6
  198. package/src/page/doc/pg-doc.tsx +0 -35
  199. package/src/page/home/pg-home.tsx +0 -40
  200. package/src/store/navigation/create-navigation-stores.test.ts +0 -74
  201. package/src/store/navigation/create-navigation-stores.ts +0 -59
  202. package/src/store/navigation/navigation-state.ts +0 -36
  203. package/src/store/navigation/navigation-storage.ts +0 -9
  204. package/src/store/navigation/to-navigation-scroll-state.ts +0 -42
  205. package/src/style/base.css +0 -28
  206. package/src/style/token.css +0 -188
  207. package/src/type/doc-content.ts +0 -15
  208. package/src/type/doc-data.ts +0 -38
  209. package/src/type/doc-file-data.ts +0 -21
  210. package/src/type/doc-heading.ts +0 -17
  211. package/src/type/doc-outline.ts +0 -16
  212. package/src/type/doc-section.ts +0 -9
  213. package/src/type/doc.ts +0 -20
  214. package/src/type/group-path.ts +0 -7
  215. package/src/type/site-assets.ts +0 -25
  216. package/src/type/site-config.ts +0 -73
  217. package/src/type/vfile-data.d.ts +0 -10
  218. package/src/util/async/to-change-queue.test.ts +0 -58
  219. package/src/util/async/to-change-queue.ts +0 -43
  220. package/src/util/dom/find-hash-target.ts +0 -18
  221. package/src/util/dom/reveal-hash-target.ts +0 -15
  222. package/src/util/error/to-error-message.ts +0 -10
  223. package/src/util/file/to-asset-path.ts +0 -26
  224. package/src/util/font/to-font-css.test.ts +0 -41
  225. package/src/util/font/to-font-css.ts +0 -28
  226. package/src/util/mermaid/render-flow.js +0 -321
@@ -0,0 +1,20 @@
1
+ import { m as e } from "./chunk-DVNvSFoz.js";
2
+ import { n as t } from "./chunk-BYzrzvCI.js";
3
+ import { c as n } from "./chunk-MFVRUoO0.js";
4
+ import { t as r } from "./chunk-B58sEIY_.js";
5
+ import { n as i } from "./chunk-DK9KqIXj.js";
6
+ //#region node_modules/.pnpm/mermaid@12.2.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-MVDRKAX5.mjs
7
+ var a = { parse: /* @__PURE__ */ t(async (t) => {
8
+ let n = await i("info", t);
9
+ e.debug(n);
10
+ }, "parse") }, o = { version: "12.2.0" }, s = {
11
+ parser: a,
12
+ db: { getVersion: /* @__PURE__ */ t(() => o.version, "getVersion") },
13
+ renderer: { draw: /* @__PURE__ */ t((t, i, a) => {
14
+ e.debug("rendering info diagram\n" + t);
15
+ let o = r(i);
16
+ n(o, 100, 400, !0), o.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${a}`);
17
+ }, "draw") }
18
+ };
19
+ //#endregion
20
+ export { s as diagram };
@@ -0,0 +1,287 @@
1
+ import { l as e, n as t, o as n, r, t as i } from "./chunk-DVNvSFoz.js";
2
+ import { i as a, n as o, r as s, t as c } from "./chunk-TbxLDlcU.js";
3
+ import { t as l } from "./chunk-Cgg2UTSf.js";
4
+ //#region node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js
5
+ function u(e, t) {
6
+ return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
7
+ }
8
+ //#endregion
9
+ //#region node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.js
10
+ function d(e, t) {
11
+ return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
12
+ }
13
+ //#endregion
14
+ //#region node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js
15
+ function f(e) {
16
+ let t, n, r;
17
+ e.length === 2 ? (t = e === u || e === d ? e : p, n = e, r = e) : (t = u, n = (t, n) => u(e(t), n), r = (t, n) => e(t) - n);
18
+ function i(e, r, i = 0, a = e.length) {
19
+ if (i < a) {
20
+ if (t(r, r) !== 0) return a;
21
+ do {
22
+ let t = i + a >>> 1;
23
+ n(e[t], r) < 0 ? i = t + 1 : a = t;
24
+ } while (i < a);
25
+ }
26
+ return i;
27
+ }
28
+ function a(e, r, i = 0, a = e.length) {
29
+ if (i < a) {
30
+ if (t(r, r) !== 0) return a;
31
+ do {
32
+ let t = i + a >>> 1;
33
+ n(e[t], r) <= 0 ? i = t + 1 : a = t;
34
+ } while (i < a);
35
+ }
36
+ return i;
37
+ }
38
+ function o(e, t, n = 0, a = e.length) {
39
+ let o = i(e, t, n, a - 1);
40
+ return o > n && r(e[o - 1], t) > -r(e[o], t) ? o - 1 : o;
41
+ }
42
+ return {
43
+ left: i,
44
+ center: o,
45
+ right: a
46
+ };
47
+ }
48
+ function p() {
49
+ return 0;
50
+ }
51
+ //#endregion
52
+ //#region node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js
53
+ function m(e) {
54
+ return e === null ? NaN : +e;
55
+ }
56
+ //#endregion
57
+ //#region node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js
58
+ var h = f(u), g = h.right;
59
+ h.left, f(m).center;
60
+ //#endregion
61
+ //#region node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js
62
+ var _ = Math.sqrt(50), v = Math.sqrt(10), y = Math.sqrt(2);
63
+ function b(e, t, n) {
64
+ let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= _ ? 10 : a >= v ? 5 : a >= y ? 2 : 1, s, c, l;
65
+ return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? b(e, t, n * 2) : [
66
+ s,
67
+ c,
68
+ l
69
+ ];
70
+ }
71
+ function x(e, t, n) {
72
+ if (t = +t, e = +e, n = +n, !(n > 0)) return [];
73
+ if (e === t) return [e];
74
+ let r = t < e, [i, a, o] = r ? b(t, e, n) : b(e, t, n);
75
+ if (!(a >= i)) return [];
76
+ let s = a - i + 1, c = Array(s);
77
+ if (r) {
78
+ if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
79
+ else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
80
+ } else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
81
+ else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
82
+ return c;
83
+ }
84
+ function S(e, t, n) {
85
+ return t = +t, e = +e, n = +n, b(e, t, n)[2];
86
+ }
87
+ function C(e, t, n) {
88
+ t = +t, e = +e, n = +n;
89
+ let r = t < e, i = r ? S(t, e, n) : S(e, t, n);
90
+ return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
91
+ }
92
+ //#endregion
93
+ //#region node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js
94
+ function w(e, t) {
95
+ t ||= [];
96
+ var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
97
+ return function(a) {
98
+ for (i = 0; i < n; ++i) r[i] = e[i] * (1 - a) + t[i] * a;
99
+ return r;
100
+ };
101
+ }
102
+ function T(e) {
103
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
104
+ }
105
+ //#endregion
106
+ //#region node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
107
+ function E(e, t) {
108
+ for (var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o = 0; o < r; ++o) i[o] = k(e[o], t[o]);
109
+ for (; o < n; ++o) a[o] = t[o];
110
+ return function(e) {
111
+ for (o = 0; o < r; ++o) a[o] = i[o](e);
112
+ return a;
113
+ };
114
+ }
115
+ //#endregion
116
+ //#region node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.js
117
+ function D(e, t) {
118
+ var n = /* @__PURE__ */ new Date();
119
+ return e = +e, t = +t, function(r) {
120
+ return n.setTime(e * (1 - r) + t * r), n;
121
+ };
122
+ }
123
+ //#endregion
124
+ //#region node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.js
125
+ function O(e, t) {
126
+ var n = {}, r = {}, i;
127
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = k(e[i], t[i]) : r[i] = t[i];
128
+ return function(e) {
129
+ for (i in n) r[i] = n[i](e);
130
+ return r;
131
+ };
132
+ }
133
+ //#endregion
134
+ //#region node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js
135
+ function k(a, o) {
136
+ var s = typeof o, c;
137
+ return o == null || s === "boolean" ? n(o) : (s === "number" ? t : s === "string" ? (c = e(o)) ? (o = c, r) : i : o instanceof e ? r : o instanceof Date ? D : T(o) ? w : Array.isArray(o) ? E : typeof o.valueOf != "function" && typeof o.toString != "function" || isNaN(o) ? O : t)(a, o);
138
+ }
139
+ //#endregion
140
+ //#region node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.js
141
+ function A(e, t) {
142
+ return e = +e, t = +t, function(n) {
143
+ return Math.round(e * (1 - n) + t * n);
144
+ };
145
+ }
146
+ //#endregion
147
+ //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionFixed.js
148
+ function j(e) {
149
+ return Math.max(0, -a(Math.abs(e)));
150
+ }
151
+ //#endregion
152
+ //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionPrefix.js
153
+ function M(e, t) {
154
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(a(t) / 3))) * 3 - a(Math.abs(e)));
155
+ }
156
+ //#endregion
157
+ //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionRound.js
158
+ function N(e, t) {
159
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, a(t) - a(e)) + 1;
160
+ }
161
+ //#endregion
162
+ //#region node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.js
163
+ function P(e) {
164
+ return function() {
165
+ return e;
166
+ };
167
+ }
168
+ //#endregion
169
+ //#region node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.js
170
+ function F(e) {
171
+ return +e;
172
+ }
173
+ //#endregion
174
+ //#region node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.js
175
+ var I = [0, 1];
176
+ function L(e) {
177
+ return e;
178
+ }
179
+ function R(e, t) {
180
+ return (t -= e = +e) ? function(n) {
181
+ return (n - e) / t;
182
+ } : P(isNaN(t) ? NaN : .5);
183
+ }
184
+ function z(e, t) {
185
+ var n;
186
+ return e > t && (n = e, e = t, t = n), function(n) {
187
+ return Math.max(e, Math.min(t, n));
188
+ };
189
+ }
190
+ function B(e, t, n) {
191
+ var r = e[0], i = e[1], a = t[0], o = t[1];
192
+ return i < r ? (r = R(i, r), a = n(o, a)) : (r = R(r, i), a = n(a, o)), function(e) {
193
+ return a(r(e));
194
+ };
195
+ }
196
+ function V(e, t, n) {
197
+ var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
198
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = R(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
199
+ return function(t) {
200
+ var n = g(e, t, 1, r) - 1;
201
+ return a[n](i[n](t));
202
+ };
203
+ }
204
+ function H(e, t) {
205
+ return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
206
+ }
207
+ function U() {
208
+ var e = I, n = I, r = k, i, a, o, s = L, c, l, u;
209
+ function d() {
210
+ var t = Math.min(e.length, n.length);
211
+ return s !== L && (s = z(e[0], e[t - 1])), c = t > 2 ? V : B, l = u = null, f;
212
+ }
213
+ function f(t) {
214
+ return t == null || isNaN(t = +t) ? o : (l ||= c(e.map(i), n, r))(i(s(t)));
215
+ }
216
+ return f.invert = function(r) {
217
+ return s(a((u ||= c(n, e.map(i), t))(r)));
218
+ }, f.domain = function(t) {
219
+ return arguments.length ? (e = Array.from(t, F), d()) : e.slice();
220
+ }, f.range = function(e) {
221
+ return arguments.length ? (n = Array.from(e), d()) : n.slice();
222
+ }, f.rangeRound = function(e) {
223
+ return n = Array.from(e), r = A, d();
224
+ }, f.clamp = function(e) {
225
+ return arguments.length ? (s = e ? !0 : L, d()) : s !== L;
226
+ }, f.interpolate = function(e) {
227
+ return arguments.length ? (r = e, d()) : r;
228
+ }, f.unknown = function(e) {
229
+ return arguments.length ? (o = e, f) : o;
230
+ }, function(e, t) {
231
+ return i = e, a = t, d();
232
+ };
233
+ }
234
+ function W() {
235
+ return U()(L, L);
236
+ }
237
+ //#endregion
238
+ //#region node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.js
239
+ function G(e, t, n, r) {
240
+ var i = C(e, t, n), a;
241
+ switch (r = s(r ?? ",f"), r.type) {
242
+ case "s":
243
+ var l = Math.max(Math.abs(e), Math.abs(t));
244
+ return r.precision == null && !isNaN(a = M(i, l)) && (r.precision = a), o(r, l);
245
+ case "":
246
+ case "e":
247
+ case "g":
248
+ case "p":
249
+ case "r":
250
+ r.precision == null && !isNaN(a = N(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
251
+ break;
252
+ case "f":
253
+ case "%": r.precision == null && !isNaN(a = j(i)) && (r.precision = a - (r.type === "%") * 2);
254
+ }
255
+ return c(r);
256
+ }
257
+ //#endregion
258
+ //#region node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.js
259
+ function K(e) {
260
+ var t = e.domain;
261
+ return e.ticks = function(e) {
262
+ var n = t();
263
+ return x(n[0], n[n.length - 1], e ?? 10);
264
+ }, e.tickFormat = function(e, n) {
265
+ var r = t();
266
+ return G(r[0], r[r.length - 1], e ?? 10, n);
267
+ }, e.nice = function(n) {
268
+ n ??= 10;
269
+ var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
270
+ for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
271
+ if (l = S(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
272
+ if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
273
+ else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
274
+ else break;
275
+ c = l;
276
+ }
277
+ return e;
278
+ }, e;
279
+ }
280
+ function q() {
281
+ var e = W();
282
+ return e.copy = function() {
283
+ return H(e, q());
284
+ }, l.apply(e, arguments), K(e);
285
+ }
286
+ //#endregion
287
+ export { f as a, C as i, W as n, H as r, q as t };