@marimo-team/islands 0.25.3-dev317 → 0.25.3-dev319

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 (140) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DieU6L4x.js → ConnectedDataExplorerComponent-DkXBUBf3.js} +54 -54
  2. package/dist/{ErrorBoundary-BzPZHD9j.js → ErrorBoundary-CGES_4N-.js} +12 -12
  3. package/dist/{ImageComparisonComponent-DgvSuY9B.js → ImageComparisonComponent-CoiwlCwG.js} +3 -3
  4. package/dist/{Plot-Bfd0pJea.js → Plot-BHJLG4xm.js} +2 -2
  5. package/dist/{abnfDiagram-VCTEODGH-LOVrjbdp.js → abnfDiagram-VCTEODGH-BPS-pTU2.js} +3 -3
  6. package/dist/{any-language-editor-DMC2JE9_.js → any-language-editor-DIS7IdV1.js} +7 -7
  7. package/dist/{architectureDiagram-5GKGNRK7-RZsm312h.js → architectureDiagram-5GKGNRK7-DB2MHOb7.js} +5 -5
  8. package/dist/{assertNever-efcK_v3t.js → assertNever-HbUt8DyH.js} +5 -5
  9. package/dist/assets/__vite-browser-external-Ci3vRqC9.js +1 -0
  10. package/dist/assets/worker-D9NGcZWK.js +171 -0
  11. package/dist/{blockDiagram-I7D4REHJ-B4cvqWJn.js → blockDiagram-I7D4REHJ-BoCyD5KO.js} +9 -9
  12. package/dist/{button-BuSV-mLI.js → button-qQhINE7z.js} +4 -4
  13. package/dist/{c4Diagram-7LVT6UL2-k-4SLDdM.js → c4Diagram-7LVT6UL2-DmcTtm4p.js} +7 -7
  14. package/dist/{capabilities-BiN90k7v.js → capabilities-DKqMqBzm.js} +1 -1
  15. package/dist/{channel-CuTaWMxU.js → channel-B9eaiezW.js} +1 -1
  16. package/dist/{chat-ui-DASKYW38.js → chat-ui-85k50jaj.js} +1847 -1959
  17. package/dist/{check-DCQEEsUn.js → check-CApDh1-n.js} +1 -1
  18. package/dist/{chunk-4HAMMTFA-Bk_5S_m9.js → chunk-4HAMMTFA-qKgadZwy.js} +5 -5
  19. package/dist/{chunk-75Z2AOVW-9jQIEAxd.js → chunk-75Z2AOVW-76L6My3P.js} +1 -1
  20. package/dist/{chunk-YOKDWASO-KxncHymC.js → chunk-7TTQLYRW-DBSfUUe5.js} +6178 -5535
  21. package/dist/{chunk-DU6HZSFF-B20LZ-hE.js → chunk-DU6HZSFF-4SDIhUTY.js} +1 -1
  22. package/dist/{chunk-F27PBJKO-YjRXlNkT.js → chunk-F27PBJKO-COH2t-FO.js} +1 -1
  23. package/dist/{chunk-GMAD6QVW-DokpSFdf.js → chunk-GMAD6QVW-BJGF8QZL.js} +3 -3
  24. package/dist/{chunk-GVQU2GXP-DGvySV5W.js → chunk-GVQU2GXP-BkolpSXU.js} +2 -2
  25. package/dist/{chunk-IMKFNOWR-B6agbLjo.js → chunk-IMKFNOWR-CjFCedjx.js} +5 -5
  26. package/dist/{chunk-L3NEJ4N5-D9-ekjZc.js → chunk-L3NEJ4N5-B-BFQp9t.js} +5 -5
  27. package/dist/{chunk-OSK3NFVY-p7meGiY-.js → chunk-OSK3NFVY-BzfZ4VBG.js} +6 -6
  28. package/dist/{chunk-P2QGCYS3-74rxrEwb.js → chunk-P2QGCYS3-DJApLVdt.js} +1 -1
  29. package/dist/{chunk-POPQ4Y6H-EOTPk9Tj.js → chunk-POPQ4Y6H-BFSZel4w.js} +1 -1
  30. package/dist/{chunk-PWAF6VOD-oT_Qd2OU.js → chunk-PWAF6VOD-CRu_RGP2.js} +1 -1
  31. package/dist/{chunk-SHT3W25Y-CfULafYG.js → chunk-SHT3W25Y-Dptltg0_.js} +7 -7
  32. package/dist/{chunk-SVP7TREG-DEOpPMJp.js → chunk-SVP7TREG-2jBN760m.js} +2 -2
  33. package/dist/{chunk-TICWLB2K-DaH-gkX5.js → chunk-TICWLB2K-CS8BE-b9.js} +5 -5
  34. package/dist/classDiagram-ZZMXUADV-HtQWp-Cm.js +30 -0
  35. package/dist/classDiagram-v2-VYDZK3BY-DA9LETN-.js +30 -0
  36. package/dist/{code-visibility-nvHsJTCm.js → code-visibility-D8Bz8Vzb.js} +6 -6
  37. package/dist/{common-DmnownXk.js → common-B2CnTgiZ.js} +1201 -995
  38. package/dist/{compiler-runtime-DNezxW8I.js → compiler-runtime-C5KHtL5D.js} +2 -2
  39. package/dist/{config-CL7mwGLX.js → config-B171m9zn.js} +4 -4
  40. package/dist/{copy-icon-oHFcxX_y.js → copy-icon-k2_Fx5Qv.js} +6 -6
  41. package/dist/{createReducer-DHfURLCk.js → createReducer-BPPI11pP.js} +3 -3
  42. package/dist/{cynefinDiagram-5FMLGOSQ-DwGYhKu0.js → cynefinDiagram-5FMLGOSQ-eyocrg_E.js} +3 -3
  43. package/dist/{dagre-GXQ25YYZ-DfMaWJOV.js → dagre-GXQ25YYZ-Dtm96Nvx.js} +10 -10
  44. package/dist/{data-grid-overlay-editor-eXoZLGys.js → data-grid-overlay-editor-DEQv4695.js} +7 -7
  45. package/dist/{data-grid-types-CSElxhxo.js → data-grid-types-DIX_pCco.js} +1 -1
  46. package/dist/{diagram-S7CK7UJ4-Bw_L87GZ.js → diagram-S7CK7UJ4-C09TrdNO.js} +4 -4
  47. package/dist/{diagram-UQ7AKVKN-nsrs3Fbz.js → diagram-UQ7AKVKN-vHUsSML6.js} +3 -3
  48. package/dist/{diagram-VSXAHHWV-CodTjaL3.js → diagram-VSXAHHWV-LXjisZoM.js} +2 -2
  49. package/dist/{diagram-VX7I27RA-7ST9lEqP.js → diagram-VX7I27RA-Ch4mRgz8.js} +5 -5
  50. package/dist/{diagram-Z3DM3KII-BnGte-HX.js → diagram-Z3DM3KII-DyFQNdAL.js} +3 -3
  51. package/dist/{dialog-BIUdMLIS.js → dialog-C2Muh059.js} +6 -6
  52. package/dist/{dist-Du4PgaYp.js → dist-CiSkXlAO.js} +2 -2
  53. package/dist/{dropdown-menu-CAejOChE.js → dropdown-menu-BGbNnuFq.js} +141 -141
  54. package/dist/{ebnfDiagram-PWID7BFC-zaKyJ1YL.js → ebnfDiagram-PWID7BFC-N3SvlrCs.js} +3 -3
  55. package/dist/{erDiagram-RLTQ6QDP-Cx7g95FZ.js → erDiagram-RLTQ6QDP-RR2q2xtd.js} +12 -12
  56. package/dist/{error-banner-DkQNU4bn.js → error-banner-3_4Lc93Y.js} +6 -6
  57. package/dist/{error-entries-kb4H6PAT.js → error-entries-BhNAZWU1.js} +13 -13
  58. package/dist/{esm-BUoz9Vvv.js → esm-DQtHTnHn.js} +638 -658
  59. package/dist/{esm-BvhFNYzM.js → esm-Dc_RPXvZ.js} +4 -4
  60. package/dist/{feedback-button-DDdckIvG.js → feedback-button-Dk57Qg8m.js} +12 -12
  61. package/dist/flowDiagram-HODETNUW-nxd7WhlW.js +15 -0
  62. package/dist/{formats-qhBmYb0l.js → formats-aUcw6MrS.js} +6 -6
  63. package/dist/{ganttDiagram-EL5Y4UJY-DyUab7aO.js → ganttDiagram-EL5Y4UJY-YzTghq1V.js} +4 -4
  64. package/dist/{gitGraphDiagram-WWUBYQGX-BPeDECwG.js → gitGraphDiagram-WWUBYQGX-CK66dT35.js} +2 -2
  65. package/dist/{glide-data-editor-keVyefZP.js → glide-data-editor-BfWmi3id.js} +66 -66
  66. package/dist/{glide-utils-C4TKZeBA.js → glide-utils-D4UP8TGv.js} +4 -4
  67. package/dist/{globals-UY7m7ERN.js → globals-DgAztcbX.js} +3 -3
  68. package/dist/highlighted-body-JLMTFACH-yt0ZZn80.js +42 -0
  69. package/dist/{html-to-image-DR8VPB7E.js → html-to-image-DOOtP-4-.js} +41 -39
  70. package/dist/{infoDiagram-27XIBGKW-BTM_NXsn.js → infoDiagram-27XIBGKW-CUYXQKGf.js} +2 -2
  71. package/dist/{ishikawaDiagram-5VMMS53U-K0FZrlvv.js → ishikawaDiagram-5VMMS53U-v6gsCrlK.js} +3 -3
  72. package/dist/{journeyDiagram-3NMN7TZE-D7hcb3Vx.js → journeyDiagram-3NMN7TZE-CYXsL3IE.js} +2 -2
  73. package/dist/{jsx-runtime-6ZiU38At.js → jsx-runtime-D8btoEHk.js} +1 -1
  74. package/dist/{kanban-definition-UXKFOSKX-ftznOyrz.js → kanban-definition-UXKFOSKX-z236-0Ok.js} +9 -9
  75. package/dist/{katex-BmPSeP5t.js → katex-wAapZGrX.js} +782 -704
  76. package/dist/linear-TJTTbHM9.js +203 -0
  77. package/dist/{loader-BIlwkY0d.js → loader-Bin_dutt.js} +12 -12
  78. package/dist/main.js +164 -131
  79. package/dist/{mermaid-CNgH43ED.js → mermaid-C7lQ_2LJ.js} +56 -56
  80. package/dist/mermaid-WFAXDIZX-DHB2z13u.js +1 -0
  81. package/dist/{mhchem-CjWbCsjZ.js → mhchem-CX8M7Ktl.js} +1 -1
  82. package/dist/{mindmap-definition-YA3MSWOX-CmzbxKfM.js → mindmap-definition-YA3MSWOX--pZF7OCY.js} +11 -11
  83. package/dist/{number-overlay-editor-Dryq4VDA.js → number-overlay-editor-BjyH3Wu_.js} +5 -5
  84. package/dist/{pegDiagram-XKGWAZYB-DfTAWfGE.js → pegDiagram-XKGWAZYB-Bgw0Zz_6.js} +3 -3
  85. package/dist/{pencil-BUfnNZAE.js → pencil-RXFY-Ek8.js} +1 -1
  86. package/dist/{pieDiagram-E7YTZNPT-_kGQstZj.js → pieDiagram-E7YTZNPT-B27tDYvK.js} +3 -3
  87. package/dist/precisionRound-DMIVQrt2.js +97 -0
  88. package/dist/{process-output-BDMtqL6K.js → process-output-CiX_Dl4L.js} +4 -4
  89. package/dist/{quadrantDiagram-AXDQQJYC-DLJJzlPi.js → quadrantDiagram-AXDQQJYC-nGFBFig7.js} +2 -2
  90. package/dist/{railroadDiagram-O6MQD6OU-D41WmIff.js → railroadDiagram-O6MQD6OU-CBjPhGpj.js} +3 -3
  91. package/dist/{react-CHbZqgBF.js → react-Bgs_wQh3.js} +2 -2
  92. package/dist/{react-dom-DhWGW7e0.js → react-dom-DdqGVp5N.js} +3 -3
  93. package/dist/{react-vega-DVr24mNk.js → react-vega-CGgQEf0O.js} +14154 -17507
  94. package/dist/{requirementDiagram-BXWQKSXE-Bh53ZI3I.js → requirementDiagram-BXWQKSXE-DDDrLEw9.js} +11 -11
  95. package/dist/{reveal-component-BIBrITpY.js → reveal-component-fHqn0wUO.js} +14 -14
  96. package/dist/{sankeyDiagram-P5KCCOFB-Bd7wvmbF.js → sankeyDiagram-P5KCCOFB-CrOfyc2n.js} +1 -1
  97. package/dist/{select-XmXyen3r.js → select-Cv6lR39D.js} +16 -16
  98. package/dist/{sequenceDiagram-WJ2MYXX4-DBX27dNm.js → sequenceDiagram-WJ2MYXX4-DQPaMygQ.js} +4 -4
  99. package/dist/{spec-CSS9g9Su.js → spec-BoCLWa-M.js} +4 -4
  100. package/dist/{stateDiagram-D77RDMKH-CSYz2IZi.js → stateDiagram-D77RDMKH-BDoDVVnq.js} +13 -13
  101. package/dist/stateDiagram-v2-MP3YSRHH-KNko46uJ.js +30 -0
  102. package/dist/{static-state-Dtocd9UO.js → static-state-DgdOadIH.js} +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/{swimlanes-42K2YHIH-D59N0ktA.js → swimlanes-42K2YHIH-boFjOuiI.js} +10 -10
  105. package/dist/swimlanesDiagram-VR7AAH4N-BC4FLNwY.js +30 -0
  106. package/dist/{swiper-component-FBPvIqLf.js → swiper-component-DTdNB9wg.js} +5 -5
  107. package/dist/{time-Cc-G3e31.js → time-BlOl70lB.js} +18 -18
  108. package/dist/{timeline-definition-24CTP7MA-C_xIIZDM.js → timeline-definition-24CTP7MA-CLVPYA-v.js} +3 -3
  109. package/dist/{toast-xEFvuGpt.js → toast-CUuX7uXg.js} +9 -9
  110. package/dist/{tooltip-BekOCQ3v.js → tooltip-DBv8QUvS.js} +8 -8
  111. package/dist/{use-restore-focus-DyrKLdSB.js → use-restore-focus-BxJh5Zfa.js} +1756 -1730
  112. package/dist/{use-vega-container-remeasure-DFBTESqc.js → use-vega-container-remeasure-BrUpWQfF.js} +2 -2
  113. package/dist/{useAsyncData-DMBliR6D.js → useAsyncData-P5-Oovhq.js} +3 -3
  114. package/dist/{useDateFormatter-Brx-S2sN.js → useDateFormatter-2k4mHRBq.js} +4 -4
  115. package/dist/{useDeepCompareMemoize-CxywEb3a.js → useDeepCompareMemoize-Cb2GRQIS.js} +2 -2
  116. package/dist/{useEvent-xDnF2X04.js → useEvent-BoN7U38T.js} +2 -2
  117. package/dist/{useIframeCapabilities--px_wpZL.js → useIframeCapabilities-HTZiVlGV.js} +2 -2
  118. package/dist/{useLifecycle-BMlFy2yY.js → useLifecycle-B2fV3c8N.js} +5 -5
  119. package/dist/{vega-component-CeN8zClP.js → vega-component-do3stf0K.js} +16 -16
  120. package/dist/{vega-embed-container-DAT8OHp9.js → vega-embed-container-DgpACsCB.js} +6 -6
  121. package/dist/vega-loader.browser-Co9gYE8Z.js +1273 -0
  122. package/dist/{vennDiagram-4TSXK5OY-DlOf0Mjs.js → vennDiagram-4TSXK5OY-BLq7sNjb.js} +3 -3
  123. package/dist/{wardleyDiagram-VM6X3IG4-zD_2guVe.js → wardleyDiagram-VM6X3IG4-oyJEWWtb.js} +3 -3
  124. package/dist/{xychartDiagram-S5SC5T6Z-CA0Dy1ZM.js → xychartDiagram-S5SC5T6Z-DMjWgQPm.js} +6 -6
  125. package/package.json +22 -22
  126. package/src/css/katex.min.css +1 -1
  127. package/src/plugins/impl/data-explorer/functions/types.ts +1 -5
  128. package/src/plugins/layout/TexPlugin.tsx +0 -1
  129. package/dist/assets/__vite-browser-external-BSp9tJ_k.js +0 -1
  130. package/dist/assets/worker-BdfPA0g5.js +0 -171
  131. package/dist/classDiagram-ZZMXUADV-C0CyiWQ7.js +0 -30
  132. package/dist/classDiagram-v2-VYDZK3BY-xfIc9e2Y.js +0 -30
  133. package/dist/flowDiagram-HODETNUW-C7nIqaHP.js +0 -15
  134. package/dist/highlighted-body-KPVGNVTW-XbLtWlYz.js +0 -38
  135. package/dist/linear-BhKepphY.js +0 -251
  136. package/dist/mermaid-HWGCJPDP-_lKUMvTM.js +0 -1
  137. package/dist/precisionRound-DhAzeRcm.js +0 -49
  138. package/dist/stateDiagram-v2-MP3YSRHH-DVLvtOqn.js +0 -30
  139. package/dist/swimlanesDiagram-VR7AAH4N-CRgpmVSW.js +0 -30
  140. package/dist/vega-loader.browser-Cnf7IHA8.js +0 -927
@@ -1,927 +0,0 @@
1
- import { t as e } from "./objects-DCmMvZtn.js";
2
- import { a as t, n, r, t as i } from "./precisionRound-DhAzeRcm.js";
3
- import { i as a, n as o, r as s, t as c } from "./defaultLocale-DhPPeApV.js";
4
- import { C as l, E as u, P as d, S as f, T as p, _ as m, a as ee, c as te, d as h, i as ne, l as re, n as ie, o as ae, p as oe, r as se, s as ce, t as le, v as ue, w as de, x as g, y as _ } from "./defaultLocale-JI_lnoCe.js";
5
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/accessor.js
6
- function v(e, t, n) {
7
- return Object.assign(e, {
8
- fields: t || [],
9
- fname: n
10
- });
11
- }
12
- function fe(e) {
13
- return e == null ? null : e.fname;
14
- }
15
- function pe(e) {
16
- return e == null ? null : e.fields;
17
- }
18
- //#endregion
19
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/getter.js
20
- function me(e) {
21
- return e.length === 1 ? he(e[0]) : ge(e);
22
- }
23
- var he = (e) => function(t) {
24
- return t[e];
25
- }, ge = (e) => {
26
- let t = e.length;
27
- return function(n) {
28
- for (let r = 0; r < t; ++r) n = n[e[r]];
29
- return n;
30
- };
31
- };
32
- //#endregion
33
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/error.js
34
- function y(e) {
35
- throw Error(e);
36
- }
37
- //#endregion
38
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/splitAccessPath.js
39
- function _e(e) {
40
- let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
41
- e += "";
42
- function l() {
43
- t.push(a + e.substring(o, s)), a = "", o = s + 1;
44
- }
45
- for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
46
- else if (c === r) l(), r = null, i = -1;
47
- else if (r) continue;
48
- else o === i && c === "\"" || o === i && c === "'" ? (o = s + 1, r = c) : c === "." && !i ? s > o ? l() : o = s + 1 : c === "[" ? (s > o && l(), i = o = s + 1) : c === "]" && (i || y("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
49
- return i && y("Access path missing closing bracket: " + e), r && y("Access path missing closing quote: " + e), s > o && (s++, l()), t;
50
- }
51
- //#endregion
52
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/field.js
53
- function b(e, t, n) {
54
- let r = _e(e), i = r.length === 1 ? r[0] : e;
55
- return v((n && n.get || me)(r), [i], t || i);
56
- }
57
- //#endregion
58
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/accessors.js
59
- var ve = b("id"), ye = v((e) => e, [], "identity"), be = v(() => 0, [], "zero"), xe = v(() => 1, [], "one"), Se = v(() => !0, [], "true"), Ce = v(() => !1, [], "false"), we = /* @__PURE__ */ new Set([
60
- ...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"),
61
- "__proto__",
62
- "then"
63
- ]), x = Array.isArray;
64
- //#endregion
65
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/isObject.js
66
- function S(e) {
67
- return e === Object(e);
68
- }
69
- //#endregion
70
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/mergeConfig.js
71
- var Te = (e) => e !== "__proto__" && e !== "constructor" && e !== "prototype";
72
- function Ee(...e) {
73
- return e.reduce((e, t) => {
74
- for (let n in t) if (n === "signals") e.signals = Oe(e.signals, t.signals);
75
- else {
76
- let r = n === "legend" ? { layout: 1 } : n === "style" || null;
77
- De(e, n, t[n], r);
78
- }
79
- return e;
80
- }, {});
81
- }
82
- function De(e, t, n, r) {
83
- if (!Te(t)) return;
84
- let i = e, a, o;
85
- if (S(n) && !x(n)) {
86
- let e = n;
87
- for (a in o = S(i[t]) ? i[t] : i[t] = {}, e) r && (r === !0 || r[a]) ? De(o, a, e[a]) : Te(a) && (o[a] = e[a]);
88
- } else i[t] = n;
89
- }
90
- function Oe(e, t) {
91
- if (e == null) return t;
92
- if (t == null) return e;
93
- let n = {}, r = [];
94
- function i(e) {
95
- n[e.name] || (n[e.name] = 1, r.push(e));
96
- }
97
- return t.forEach(i), e.forEach(i), r;
98
- }
99
- //#endregion
100
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/toNumber.js
101
- function ke(e) {
102
- return e == null || e === "" ? null : +e;
103
- }
104
- //#endregion
105
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/array.js
106
- function C(e) {
107
- return e == null ? [] : x(e) ? e : [e];
108
- }
109
- //#endregion
110
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/isFunction.js
111
- function w(e) {
112
- return typeof e == "function";
113
- }
114
- //#endregion
115
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/compare.js
116
- var Ae = "descending";
117
- function je(e, t, n) {
118
- let r = n || {}, i = C(t) || [], a = [], o = [], s = {}, c = r.comparator || Ne;
119
- return C(e).forEach((e, t) => {
120
- if (e == null) return;
121
- a.push(i[t] === Ae ? -1 : 1);
122
- let n = w(e) ? e : b(e, void 0, r);
123
- o.push(n), (pe(n) || []).forEach((e) => s[e] = 1);
124
- }), o.length === 0 ? null : v(c(o, a), Object.keys(s));
125
- }
126
- var Me = (e, t) => {
127
- let n = e, r = t;
128
- return (n < r || n == null) && r != null ? -1 : (n > r || r == null) && n != null ? 1 : (r = r instanceof Date ? +r : r, (n = n instanceof Date ? +n : n) !== n && r === r ? -1 : +(r !== r && n === n));
129
- }, Ne = (e, t) => e.length === 1 ? Pe(e[0], t[0]) : Fe(e, t, e.length), Pe = (e, t) => function(n, r) {
130
- return Me(e(n), e(r)) * t;
131
- }, Fe = (e, t, n) => (t.push(0), function(r, i) {
132
- let a, o = 0, s = -1;
133
- for (; o === 0 && ++s < n;) a = e[s], o = Me(a(r), a(i));
134
- return o * t[s];
135
- });
136
- //#endregion
137
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/extend.js
138
- function T(e, ...t) {
139
- for (let n of t) for (let t in n) e[t] = n[t];
140
- return e;
141
- }
142
- //#endregion
143
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/hasOwnProperty.js
144
- function E(e, t) {
145
- return Object.hasOwn(e, t);
146
- }
147
- //#endregion
148
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/isDate.js
149
- function Ie(e) {
150
- return Object.prototype.toString.call(e) === "[object Date]";
151
- }
152
- //#endregion
153
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/isIterable.js
154
- function Le(e) {
155
- return e != null && w(e[Symbol.iterator]);
156
- }
157
- //#endregion
158
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/isNumber.js
159
- function Re(e) {
160
- return typeof e == "number";
161
- }
162
- //#endregion
163
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/isString.js
164
- function D(e) {
165
- return typeof e == "string";
166
- }
167
- //#endregion
168
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/key.js
169
- function ze(e, t, n) {
170
- let r = e ? t ? C(e).map((e) => e.replace(/\\(.)/g, "$1")) : C(e) : void 0, i = r?.length, a = n && n.get || me, o = (e) => a(t ? [e] : _e(e)), s;
171
- if (!i || !r) s = function() {
172
- return "";
173
- };
174
- else if (i === 1) {
175
- let e = o(r[0]);
176
- s = function(t) {
177
- return "" + e(t);
178
- };
179
- } else {
180
- let e = r.map(o);
181
- s = function(t) {
182
- let n = "" + e[0](t), r = 0;
183
- for (; ++r < i;) n += "|" + e[r](t);
184
- return n;
185
- };
186
- }
187
- return v(s, r, "key");
188
- }
189
- //#endregion
190
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/stringValue.js
191
- function O(e) {
192
- return x(e) ? `[${e.map((e) => e === null ? "null" : O(e))}]` : S(e) || D(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
193
- }
194
- //#endregion
195
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/toBoolean.js
196
- function Be(e) {
197
- return e == null || e === "" ? null : !e || e === "false" || e === "0" ? !1 : !!e;
198
- }
199
- //#endregion
200
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/toDate.js
201
- var Ve = (e) => Re(e) || Ie(e) ? e : Date.parse(e);
202
- function He(e, t) {
203
- return t ||= Ve, e == null || e === "" ? null : t(e);
204
- }
205
- //#endregion
206
- //#region ../node_modules/.pnpm/vega-util@2.1.3/node_modules/vega-util/build/toString.js
207
- function Ue(e) {
208
- return e == null || e === "" ? null : e + "";
209
- }
210
- //#endregion
211
- //#region src/plugins/impl/vega/utils.ts
212
- function We(e) {
213
- if (typeof e == "object" && e) {
214
- if ("width" in e) return e.width;
215
- if ("spec" in e) return We(e.spec);
216
- }
217
- }
218
- function Ge(t, { parseDates: n = !1 } = {}) {
219
- return !t || Object.keys(t).length === 0 ? "auto" : e.mapValues(t, (e) => e === "geometry" ? "string" : e === "date" ? n ? "date" : "string" : e === "time" ? "string" : e === "datetime" ? "date" : e);
220
- }
221
- //#endregion
222
- //#region ../node_modules/.pnpm/d3-dsv@3.0.1/node_modules/d3-dsv/src/dsv.js
223
- var Ke = {}, k = {}, A = 34, j = 10, qe = 13;
224
- function Je(e) {
225
- return Function("d", "return {" + e.map(function(e, t) {
226
- return JSON.stringify(e) + ": d[" + t + "] || \"\"";
227
- }).join(",") + "}");
228
- }
229
- function Ye(e, t) {
230
- var n = Je(e);
231
- return function(r, i) {
232
- return t(n(r), i, e);
233
- };
234
- }
235
- function Xe(e) {
236
- var t = Object.create(null), n = [];
237
- return e.forEach(function(e) {
238
- for (var r in e) r in t || n.push(t[r] = r);
239
- }), n;
240
- }
241
- function M(e, t) {
242
- var n = e + "", r = n.length;
243
- return r < t ? Array(t - r + 1).join(0) + n : n;
244
- }
245
- function Ze(e) {
246
- return e < 0 ? "-" + M(-e, 6) : e > 9999 ? "+" + M(e, 6) : M(e, 4);
247
- }
248
- function Qe(e) {
249
- var t = e.getUTCHours(), n = e.getUTCMinutes(), r = e.getUTCSeconds(), i = e.getUTCMilliseconds();
250
- return isNaN(e) ? "Invalid Date" : Ze(e.getUTCFullYear(), 4) + "-" + M(e.getUTCMonth() + 1, 2) + "-" + M(e.getUTCDate(), 2) + (i ? "T" + M(t, 2) + ":" + M(n, 2) + ":" + M(r, 2) + "." + M(i, 3) + "Z" : r ? "T" + M(t, 2) + ":" + M(n, 2) + ":" + M(r, 2) + "Z" : n || t ? "T" + M(t, 2) + ":" + M(n, 2) + "Z" : "");
251
- }
252
- function $e(e) {
253
- var t = RegExp("[\"" + e + "\n\r]"), n = e.charCodeAt(0);
254
- function r(e, t) {
255
- var n, r, a = i(e, function(e, i) {
256
- if (n) return n(e, i - 1);
257
- r = e, n = t ? Ye(e, t) : Je(e);
258
- });
259
- return a.columns = r || [], a;
260
- }
261
- function i(e, t) {
262
- var r = [], i = e.length, a = 0, o = 0, s, c = i <= 0, l = !1;
263
- e.charCodeAt(i - 1) === j && --i, e.charCodeAt(i - 1) === qe && --i;
264
- function u() {
265
- if (c) return k;
266
- if (l) return l = !1, Ke;
267
- var t, r = a, o;
268
- if (e.charCodeAt(r) === A) {
269
- for (; a++ < i && e.charCodeAt(a) !== A || e.charCodeAt(++a) === A;);
270
- return (t = a) >= i ? c = !0 : (o = e.charCodeAt(a++)) === j ? l = !0 : o === qe && (l = !0, e.charCodeAt(a) === j && ++a), e.slice(r + 1, t - 1).replace(/""/g, "\"");
271
- }
272
- for (; a < i;) {
273
- if ((o = e.charCodeAt(t = a++)) === j) l = !0;
274
- else if (o === qe) l = !0, e.charCodeAt(a) === j && ++a;
275
- else if (o !== n) continue;
276
- return e.slice(r, t);
277
- }
278
- return c = !0, e.slice(r, i);
279
- }
280
- for (; (s = u()) !== k;) {
281
- for (var d = []; s !== Ke && s !== k;) d.push(s), s = u();
282
- t && (d = t(d, o++)) == null || r.push(d);
283
- }
284
- return r;
285
- }
286
- function a(t, n) {
287
- return t.map(function(t) {
288
- return n.map(function(e) {
289
- return u(t[e]);
290
- }).join(e);
291
- });
292
- }
293
- function o(t, n) {
294
- return n ??= Xe(t), [n.map(u).join(e)].concat(a(t, n)).join("\n");
295
- }
296
- function s(e, t) {
297
- return t ??= Xe(e), a(e, t).join("\n");
298
- }
299
- function c(e) {
300
- return e.map(l).join("\n");
301
- }
302
- function l(t) {
303
- return t.map(u).join(e);
304
- }
305
- function u(e) {
306
- return e == null ? "" : e instanceof Date ? Qe(e) : t.test(e += "") ? "\"" + e.replace(/"/g, "\"\"") + "\"" : e;
307
- }
308
- return {
309
- parse: r,
310
- parseRows: i,
311
- format: o,
312
- formatBody: s,
313
- formatRows: c,
314
- formatRow: l,
315
- formatValue: u
316
- };
317
- }
318
- //#endregion
319
- //#region ../node_modules/.pnpm/topojson-client@3.1.0/node_modules/topojson-client/src/identity.js
320
- function et(e) {
321
- return e;
322
- }
323
- //#endregion
324
- //#region ../node_modules/.pnpm/topojson-client@3.1.0/node_modules/topojson-client/src/transform.js
325
- function tt(e) {
326
- if (e == null) return et;
327
- var t, n, r = e.scale[0], i = e.scale[1], a = e.translate[0], o = e.translate[1];
328
- return function(e, s) {
329
- s || (t = n = 0);
330
- var c = 2, l = e.length, u = Array(l);
331
- for (u[0] = (t += e[0]) * r + a, u[1] = (n += e[1]) * i + o; c < l;) u[c] = e[c], ++c;
332
- return u;
333
- };
334
- }
335
- //#endregion
336
- //#region ../node_modules/.pnpm/topojson-client@3.1.0/node_modules/topojson-client/src/reverse.js
337
- function nt(e, t) {
338
- for (var n, r = e.length, i = r - t; i < --r;) n = e[i], e[i++] = e[r], e[r] = n;
339
- }
340
- //#endregion
341
- //#region ../node_modules/.pnpm/topojson-client@3.1.0/node_modules/topojson-client/src/feature.js
342
- function rt(e, t) {
343
- return typeof t == "string" && (t = e.objects[t]), t.type === "GeometryCollection" ? {
344
- type: "FeatureCollection",
345
- features: t.geometries.map(function(t) {
346
- return it(e, t);
347
- })
348
- } : it(e, t);
349
- }
350
- function it(e, t) {
351
- var n = t.id, r = t.bbox, i = t.properties == null ? {} : t.properties, a = at(e, t);
352
- return n == null && r == null ? {
353
- type: "Feature",
354
- properties: i,
355
- geometry: a
356
- } : r == null ? {
357
- type: "Feature",
358
- id: n,
359
- properties: i,
360
- geometry: a
361
- } : {
362
- type: "Feature",
363
- id: n,
364
- bbox: r,
365
- properties: i,
366
- geometry: a
367
- };
368
- }
369
- function at(e, t) {
370
- var n = tt(e.transform), r = e.arcs;
371
- function i(e, t) {
372
- t.length && t.pop();
373
- for (var i = r[e < 0 ? ~e : e], a = 0, o = i.length; a < o; ++a) t.push(n(i[a], a));
374
- e < 0 && nt(t, o);
375
- }
376
- function a(e) {
377
- return n(e);
378
- }
379
- function o(e) {
380
- for (var t = [], n = 0, r = e.length; n < r; ++n) i(e[n], t);
381
- return t.length < 2 && t.push(t[0]), t;
382
- }
383
- function s(e) {
384
- for (var t = o(e); t.length < 4;) t.push(t[0]);
385
- return t;
386
- }
387
- function c(e) {
388
- return e.map(s);
389
- }
390
- function l(e) {
391
- var t = e.type, n;
392
- switch (t) {
393
- case "GeometryCollection": return {
394
- type: t,
395
- geometries: e.geometries.map(l)
396
- };
397
- case "Point":
398
- n = a(e.coordinates);
399
- break;
400
- case "MultiPoint":
401
- n = e.coordinates.map(a);
402
- break;
403
- case "LineString":
404
- n = o(e.arcs);
405
- break;
406
- case "MultiLineString":
407
- n = e.arcs.map(o);
408
- break;
409
- case "Polygon":
410
- n = c(e.arcs);
411
- break;
412
- case "MultiPolygon":
413
- n = e.arcs.map(c);
414
- break;
415
- default: return null;
416
- }
417
- return {
418
- type: t,
419
- coordinates: n
420
- };
421
- }
422
- return l(t);
423
- }
424
- //#endregion
425
- //#region ../node_modules/.pnpm/topojson-client@3.1.0/node_modules/topojson-client/src/stitch.js
426
- function ot(e, t) {
427
- var n = {}, r = {}, i = {}, a = [], o = -1;
428
- t.forEach(function(n, r) {
429
- var i = e.arcs[n < 0 ? ~n : n], a;
430
- i.length < 3 && !i[1][0] && !i[1][1] && (a = t[++o], t[o] = n, t[r] = a);
431
- }), t.forEach(function(e) {
432
- var t = s(e), n = t[0], a = t[1], o, c;
433
- if (o = i[n]) {
434
- if (delete i[o.end], o.push(e), o.end = a, c = r[a]) {
435
- delete r[c.start];
436
- var l = c === o ? o : o.concat(c);
437
- r[l.start = o.start] = i[l.end = c.end] = l;
438
- } else r[o.start] = i[o.end] = o;
439
- } else if (o = r[a]) {
440
- if (delete r[o.start], o.unshift(e), o.start = n, c = i[n]) {
441
- delete i[c.end];
442
- var u = c === o ? o : c.concat(o);
443
- r[u.start = c.start] = i[u.end = o.end] = u;
444
- } else r[o.start] = i[o.end] = o;
445
- } else o = [e], r[o.start = n] = i[o.end = a] = o;
446
- });
447
- function s(t) {
448
- var n = e.arcs[t < 0 ? ~t : t], r = n[0], i;
449
- return e.transform ? (i = [0, 0], n.forEach(function(e) {
450
- i[0] += e[0], i[1] += e[1];
451
- })) : i = n[n.length - 1], t < 0 ? [i, r] : [r, i];
452
- }
453
- function c(e, t) {
454
- for (var r in e) {
455
- var i = e[r];
456
- delete t[i.start], delete i.start, delete i.end, i.forEach(function(e) {
457
- n[e < 0 ? ~e : e] = 1;
458
- }), a.push(i);
459
- }
460
- }
461
- return c(i, r), c(r, i), t.forEach(function(e) {
462
- n[e < 0 ? ~e : e] || a.push([e]);
463
- }), a;
464
- }
465
- //#endregion
466
- //#region ../node_modules/.pnpm/topojson-client@3.1.0/node_modules/topojson-client/src/mesh.js
467
- function st(e) {
468
- return at(e, ct.apply(this, arguments));
469
- }
470
- function ct(e, t, n) {
471
- var r, i, a;
472
- if (arguments.length > 1) r = lt(e, t, n);
473
- else for (i = 0, r = Array(a = e.arcs.length); i < a; ++i) r[i] = i;
474
- return {
475
- type: "MultiLineString",
476
- arcs: ot(e, r)
477
- };
478
- }
479
- function lt(e, t, n) {
480
- var r = [], i = [], a;
481
- function o(e) {
482
- var t = e < 0 ? ~e : e;
483
- (i[t] || (i[t] = [])).push({
484
- i: e,
485
- g: a
486
- });
487
- }
488
- function s(e) {
489
- e.forEach(o);
490
- }
491
- function c(e) {
492
- e.forEach(s);
493
- }
494
- function l(e) {
495
- e.forEach(c);
496
- }
497
- function u(e) {
498
- switch (a = e, e.type) {
499
- case "GeometryCollection":
500
- e.geometries.forEach(u);
501
- break;
502
- case "LineString":
503
- s(e.arcs);
504
- break;
505
- case "MultiLineString":
506
- case "Polygon":
507
- c(e.arcs);
508
- break;
509
- case "MultiPolygon": l(e.arcs);
510
- }
511
- }
512
- return u(t), i.forEach(n == null ? function(e) {
513
- r.push(e[0].i);
514
- } : function(e) {
515
- n(e[0].g, e[e.length - 1].g) && r.push(e[0].i);
516
- }), r;
517
- }
518
- //#endregion
519
- //#region ../node_modules/.pnpm/vega-time@3.3.0/node_modules/vega-time/build/vega-time.js
520
- var N = "year", P = "quarter", F = "month", I = "week", L = "isoweek", R = "date", z = "dayofyear", B = "hours", V = "minutes", H = "seconds", U = "milliseconds", ut = [
521
- N,
522
- P,
523
- F,
524
- I,
525
- L,
526
- R,
527
- "day",
528
- z,
529
- B,
530
- V,
531
- H,
532
- U
533
- ].reduce((e, t, n) => (e[t] = 1 + n, e), {});
534
- function dt(e) {
535
- let t = C(e).slice(), n = {};
536
- return t.length || y("Missing time unit."), t.forEach((e) => {
537
- E(ut, e) ? n[e] = 1 : y(`Invalid time unit: ${e}.`);
538
- }), ((n.week || n.isoweek || n.day ? 1 : 0) + (n.quarter || n.month || n.date ? 1 : 0) + +!!n.dayofyear > 1 || n.week && n.isoweek) && y(`Incompatible time units: ${e}`), t.sort((e, t) => ut[e] - ut[t]), t;
539
- }
540
- var ft = {
541
- [N]: "%Y ",
542
- [P]: "Q%q ",
543
- [F]: "%b ",
544
- [R]: "%d ",
545
- [I]: "W%U ",
546
- [L]: "W%V ",
547
- day: "%a ",
548
- [z]: "%j ",
549
- [B]: "%H:00",
550
- [V]: "00:%M",
551
- [H]: ":%S",
552
- [U]: ".%L",
553
- [`${N}-${L}`]: "%G W%V ",
554
- [`${N}-${F}`]: "%Y-%m ",
555
- [`${N}-${F}-${R}`]: "%Y-%m-%d ",
556
- [`${B}-${V}`]: "%H:%M"
557
- };
558
- function pt(e, t) {
559
- let n = T({}, ft, t), r = dt(e), i = r.length, a = "", o = 0, s, c;
560
- for (o = 0; o < i;) for (s = r.length; s > o; --s) if (c = r.slice(o, s).join("-"), n[c] != null) {
561
- a += n[c], o = s;
562
- break;
563
- }
564
- return a.trim();
565
- }
566
- var W = /* @__PURE__ */ new Date();
567
- function mt(e) {
568
- return W.setFullYear(e), W.setMonth(0), W.setDate(1), W.setHours(0, 0, 0, 0), W;
569
- }
570
- function ht(e) {
571
- return vt(new Date(e));
572
- }
573
- function gt(e) {
574
- return yt(new Date(e));
575
- }
576
- function _t(e) {
577
- return xt(new Date(e));
578
- }
579
- function vt(e) {
580
- return _.count(mt(e.getFullYear()) - 1, e);
581
- }
582
- function yt(e) {
583
- return oe.count(mt(e.getFullYear()) - 1, e);
584
- }
585
- function bt(e) {
586
- return _.offset(h.floor(e), 3).getFullYear();
587
- }
588
- function xt(e) {
589
- return 1 + h.count(St(bt(e)), e);
590
- }
591
- function St(e) {
592
- return h.floor(_.offset(mt(e), 3));
593
- }
594
- function Ct(e) {
595
- return Et(new Date(e));
596
- }
597
- function wt(e) {
598
- return Dt(new Date(e));
599
- }
600
- function Tt(e) {
601
- return kt(new Date(e));
602
- }
603
- function Et(e) {
604
- let t = Date.UTC(e.getUTCFullYear(), 0, 1);
605
- return g.count(t - 1, e);
606
- }
607
- function Dt(e) {
608
- let t = Date.UTC(e.getUTCFullYear(), 0, 1);
609
- return ue.count(t - 1, e);
610
- }
611
- function Ot(e) {
612
- return g.offset(m.floor(e), 3).getUTCFullYear();
613
- }
614
- function kt(e) {
615
- return 1 + m.count(At(Ot(e)), e);
616
- }
617
- function At(e) {
618
- return m.floor(g.offset(Date.UTC(e, 0, 1), 3));
619
- }
620
- I + "", N + L, L + "", I + "", N + L, L + "";
621
- var jt = {
622
- [N]: ae,
623
- [P]: te.every(3),
624
- [F]: te,
625
- [I]: oe,
626
- [L]: h,
627
- [R]: _,
628
- day: _,
629
- [z]: _,
630
- [B]: f,
631
- [V]: de,
632
- [H]: u,
633
- [U]: d
634
- }, Mt = {
635
- [N]: ce,
636
- [P]: re.every(3),
637
- [F]: re,
638
- [I]: ue,
639
- [L]: m,
640
- [R]: g,
641
- day: g,
642
- [z]: g,
643
- [B]: l,
644
- [V]: p,
645
- [H]: u,
646
- [U]: d
647
- };
648
- function G(e) {
649
- return jt[e];
650
- }
651
- function K(e) {
652
- return Mt[e];
653
- }
654
- function Nt(e, t, n) {
655
- return e ? e.offset(t, n) : void 0;
656
- }
657
- function Pt(e, t, n) {
658
- return Nt(G(e), t, n);
659
- }
660
- function Ft(e, t, n) {
661
- return Nt(K(e), t, n);
662
- }
663
- function It(e, t, n, r) {
664
- return e ? e.range(t, n, r) : void 0;
665
- }
666
- function Lt(e, t, n, r) {
667
- return It(G(e), t, n, r);
668
- }
669
- function Rt(e, t, n, r) {
670
- return It(K(e), t, n, r);
671
- }
672
- [
673
- N,
674
- F,
675
- R,
676
- B,
677
- V,
678
- H,
679
- U
680
- ].slice(0, -1).slice(0, -1).slice(0, -1).slice(0, -1);
681
- //#endregion
682
- //#region ../node_modules/.pnpm/vega-format@2.1.3/node_modules/vega-format/build/vega-format.js
683
- function q(e) {
684
- let t = {};
685
- return (n) => t[n] || (t[n] = e(n));
686
- }
687
- function zt(e, t) {
688
- return (n) => {
689
- let r = e(n), i = r.indexOf(t);
690
- if (i < 0) return r;
691
- let a = Bt(r, i), o = a < r.length ? r.slice(a) : "";
692
- for (; --a > i;) if (r[a] !== "0") {
693
- ++a;
694
- break;
695
- }
696
- return r.slice(0, a) + o;
697
- };
698
- }
699
- function Bt(e, t) {
700
- let n = e.lastIndexOf("e"), r;
701
- if (n > 0) return n;
702
- for (n = e.length; --n > t;) if (r = e.charCodeAt(n), r >= 48 && r <= 57) return n + 1;
703
- }
704
- function Vt(e) {
705
- let o = q(e.format), s = e.formatPrefix;
706
- return {
707
- format: o,
708
- formatPrefix: s,
709
- formatFloat(e) {
710
- let t = a(e || ",");
711
- if (t.precision == null) {
712
- switch (t.precision = 12, t.type) {
713
- case "%":
714
- t.precision -= 2;
715
- break;
716
- case "e": --t.precision;
717
- }
718
- return zt(o(t), o(".1f")(1)[1]);
719
- }
720
- return o(t);
721
- },
722
- formatSpan(e, c, l, u) {
723
- u = a(u ?? ",f");
724
- let d = t(e, c, l), f = Math.max(Math.abs(e), Math.abs(c)), p;
725
- if (u.precision == null) switch (u.type) {
726
- case "s": return isNaN(p = n(d, f)) || (u.precision = p), s(u, f);
727
- case "":
728
- case "e":
729
- case "g":
730
- case "p":
731
- case "r":
732
- isNaN(p = i(d, f)) || (u.precision = p - (u.type === "e"));
733
- break;
734
- case "f":
735
- case "%": isNaN(p = r(d)) || (u.precision = p - (u.type === "%") * 2);
736
- }
737
- return o(u);
738
- }
739
- };
740
- }
741
- var Ht;
742
- Ut();
743
- function Ut() {
744
- return Ht = Vt({
745
- format: c,
746
- formatPrefix: o
747
- });
748
- }
749
- function Wt(e) {
750
- return Vt(s(e));
751
- }
752
- function J(e) {
753
- return arguments.length ? Ht = Wt(e) : Ht;
754
- }
755
- function Gt(e, t, n) {
756
- n ||= {}, S(n) || y(`Invalid time multi-format specifier: ${n}`);
757
- let r = t(H), i = t(V), a = t(B), o = t(R), s = t(I), c = t(F), l = t(P), u = t(N), d = e(n.milliseconds || ".%L"), f = e(n.seconds || ":%S"), p = e(n.minutes || "%I:%M"), m = e(n.hours || "%I %p"), ee = e(n.date || n.day || "%a %d"), te = e(n.week || "%b %d"), h = e(n.month || "%B"), ne = e(n.quarter || "%B"), re = e(n.year || "%Y");
758
- return (e) => (r(e) < e ? d : i(e) < e ? f : a(e) < e ? p : o(e) < e ? m : c(e) < e ? s(e) < e ? ee : te : u(e) < e ? l(e) < e ? h : ne : re)(e);
759
- }
760
- function Kt(e) {
761
- let t = q(e.format), n = q(e.utcFormat);
762
- return {
763
- timeFormat: (e) => D(e) ? t(e) : Gt(t, G, e),
764
- utcFormat: (e) => D(e) ? n(e) : Gt(n, K, e),
765
- timeParse: q(e.parse),
766
- utcParse: q(e.utcParse)
767
- };
768
- }
769
- var qt;
770
- Jt();
771
- function Jt() {
772
- return qt = Kt({
773
- format: le,
774
- parse: ie,
775
- utcFormat: se,
776
- utcParse: ne
777
- });
778
- }
779
- function Yt(e) {
780
- return Kt(ee(e));
781
- }
782
- function Y(e) {
783
- return arguments.length ? qt = Yt(e) : qt;
784
- }
785
- var X = (e, t) => T({}, e, t);
786
- function Xt(e, t) {
787
- return X(e ? Wt(e) : J(), t ? Yt(t) : Y());
788
- }
789
- function Zt(e, t) {
790
- let n = arguments.length;
791
- return n && n !== 2 && y("defaultLocale expects either zero or two arguments."), n ? X(J(e), Y(t)) : X(J(), Y());
792
- }
793
- function Qt() {
794
- return Ut(), Jt(), Zt();
795
- }
796
- //#endregion
797
- //#region ../node_modules/.pnpm/vega-loader@5.1.3/node_modules/vega-loader/build/vega-loader.browser.js
798
- var $t = /^(data:|([A-Za-z]+:)?\/\/)/, en = /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i, tn = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g, nn = "file://";
799
- function rn(e) {
800
- return (t) => ({
801
- options: t || {},
802
- sanitize: on,
803
- load: an,
804
- fileAccess: !1,
805
- file: sn(e),
806
- http: ln
807
- });
808
- }
809
- async function an(e, t) {
810
- let n = await this.sanitize(e, t), r = n.href;
811
- return n.localFile ? this.file(r) : this.http(r, t?.http);
812
- }
813
- async function on(e, t) {
814
- t = T({}, this.options, t);
815
- let n = this.fileAccess, r = { href: null }, i, a, o, s = en.test(e.replace(tn, ""));
816
- (e == null || typeof e != "string" || !s) && y("Sanitize failure, invalid URI: " + O(e));
817
- let c = $t.test(e);
818
- return (o = t.baseURL) && !c && (!e.startsWith("/") && !o.endsWith("/") && (e = "/" + e), e = o + e), a = (i = e.startsWith(nn)) || t.mode === "file" || t.mode !== "http" && !c && n, i ? e = e.slice(7) : e.startsWith("//") && (t.defaultProtocol === "file" ? (e = e.slice(2), a = !0) : e = (t.defaultProtocol || "http") + ":" + e), Object.defineProperty(r, "localFile", { value: !!a }), r.href = e, t.target && (r.target = t.target + ""), t.rel && (r.rel = t.rel + ""), t.context === "image" && t.crossOrigin && (r.crossOrigin = t.crossOrigin + ""), r;
819
- }
820
- function sn(e) {
821
- return e ? (t) => new Promise((n, r) => {
822
- e.readFile(t, (e, t) => {
823
- e ? r(e) : n(t);
824
- });
825
- }) : cn;
826
- }
827
- async function cn() {
828
- y("No file system access.");
829
- }
830
- async function ln(e, t) {
831
- let n = T({}, this.options.http, t), r = t && t.response, i = await fetch(e, n);
832
- return i.ok ? w(i[r]) ? i[r]() : i.text() : y(i.status + "" + i.statusText);
833
- }
834
- var un = (e) => e != null && e === e, dn = (e) => e === "true" || e === "false" || e === !0 || e === !1, fn = (e) => !Number.isNaN(Date.parse(e)), pn = (e) => !Number.isNaN(+e) && !(e instanceof Date), mn = (e) => pn(e) && Number.isInteger(+e), hn = {
835
- boolean: Be,
836
- integer: ke,
837
- number: ke,
838
- date: He,
839
- string: Ue,
840
- unknown: ye
841
- }, Z = [
842
- dn,
843
- mn,
844
- pn,
845
- fn
846
- ], gn = [
847
- "boolean",
848
- "integer",
849
- "number",
850
- "date"
851
- ];
852
- function _n(e, t) {
853
- if (!e || !e.length) return "unknown";
854
- let n = e.length, r = Z.length, i = Z.map((e, t) => t + 1);
855
- for (let a = 0, o = 0, s, c; a < n; ++a) for (c = t ? e[a][t] : e[a], s = 0; s < r; ++s) if (i[s] && un(c) && !Z[s](c) && (i[s] = 0, ++o, o === Z.length)) return "string";
856
- return gn[i.reduce((e, t) => e === 0 ? t : e, 0) - 1];
857
- }
858
- function vn(e, t) {
859
- return t.reduce((t, n) => (t[n] = _n(e, n), t), {});
860
- }
861
- function yn(e) {
862
- let t = function(t, n) {
863
- let r = { delimiter: e };
864
- return bn(t, n ? T(n, r) : r);
865
- };
866
- return t.responseType = "text", t;
867
- }
868
- function bn(e, t) {
869
- return t.header && (e = t.header.map(O).join(t.delimiter) + "\n" + e), $e(t.delimiter).parse(e + "");
870
- }
871
- bn.responseType = "text";
872
- function xn(e) {
873
- return typeof Buffer == "function" && w(Buffer.isBuffer) ? Buffer.isBuffer(e) : !1;
874
- }
875
- function Q(e, t) {
876
- let n = t && t.property ? b(t.property) : ye;
877
- return S(e) && !xn(e) ? Sn(n(e), t) : n(JSON.parse(e));
878
- }
879
- Q.responseType = "json";
880
- function Sn(e, t) {
881
- return !x(e) && Le(e) && (e = [...e]), t && t.copy ? JSON.parse(JSON.stringify(e)) : e;
882
- }
883
- var Cn = {
884
- interior: (e, t) => e !== t,
885
- exterior: (e, t) => e === t
886
- };
887
- function wn(e, t) {
888
- let n, r, i, a;
889
- return e = Q(e, t), t && t.feature ? (n = rt, i = t.feature) : t && t.mesh ? (n = st, i = t.mesh, a = Cn[t.filter]) : y("Missing TopoJSON feature or mesh parameter."), r = (r = e.objects[i]) ? n(e, r, a) : y("Invalid TopoJSON object: " + i), r && r.features || [r];
890
- }
891
- wn.responseType = "json";
892
- var $ = {
893
- dsv: bn,
894
- csv: yn(","),
895
- tsv: yn(" "),
896
- json: Q,
897
- topojson: wn
898
- };
899
- function Tn(e, t) {
900
- return arguments.length > 1 ? ($[e] = t, this) : E($, e) ? $[e] : null;
901
- }
902
- function En(e) {
903
- let t = Tn(e);
904
- return t && t.responseType || "text";
905
- }
906
- function Dn(e, t, n, r) {
907
- t ||= {};
908
- let i = Tn(t.type || "json");
909
- return i || y("Unknown data format type: " + t.type), e = i(e, t), t.parse && On(e, t.parse, n, r), E(e, "columns") && delete e.columns, e;
910
- }
911
- function On(e, t, n, r) {
912
- if (!e.length) return;
913
- let i = Y();
914
- n ||= i.timeParse, r ||= i.utcParse;
915
- let a = e.columns || Object.keys(e[0]), o, s, c, l, u, d;
916
- t === "auto" && (t = vn(e, a)), a = Object.keys(t);
917
- let f = a.map((e) => {
918
- let i = t[e], a, o;
919
- if (i && (i.startsWith("date:") || i.startsWith("utc:"))) return a = i.split(/:(.+)?/, 2), o = a[1], (o[0] === "'" && o[o.length - 1] === "'" || o[0] === "\"" && o[o.length - 1] === "\"") && (o = o.slice(1, -1)), (a[0] === "utc" ? r : n)(o);
920
- if (!hn[i]) throw Error("Illegal format pattern: " + e + ":" + i);
921
- return hn[i];
922
- });
923
- for (c = 0, u = e.length, d = a.length; c < u; ++c) for (o = e[c], l = 0; l < d; ++l) s = a[l], o[s] = f[l](o[s]);
924
- }
925
- var kn = rn(null);
926
- //#endregion
927
- export { xe as $, He as A, Me as B, Ct as C, We as D, gt as E, Re as F, Ee as G, w as H, Le as I, x as J, De as K, Ie as L, O as M, ze as N, Ge as O, D as P, ye as Q, E as R, Rt as S, wt as T, C as U, je as V, ke as W, Ce as X, we as Y, ve as Z, Pt as _, kn as a, v as at, K as b, hn as c, J as d, Se as et, Qt as f, G as g, _t as h, vn as i, y as it, Be as j, Ue as k, Zt as l, ht as m, Tn as n, b as nt, Dn as o, pe as ot, Y as p, S as q, _n as r, _e as rt, En as s, fe as st, $ as t, be as tt, Xt as u, Lt as v, Tt as w, Ft as x, pt as y, T as z };