@marimo-team/islands 0.15.2 → 0.15.4

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 (211) hide show
  1. package/dist/{ConnectedDataExplorerComponent-C39nQwtD.js → ConnectedDataExplorerComponent-B68gXlbY.js} +323 -328
  2. package/dist/{ImageComparisonComponent-BhkiyswP.js → ImageComparisonComponent-Cw1oA8Tn.js} +13 -13
  3. package/dist/{_baseUniq-DdHL34FO.js → _baseUniq-CQrhBg_9.js} +67 -67
  4. package/dist/any-language-editor-pzUl6lxp.js +27 -0
  5. package/dist/{arc-BXrety1g.js → arc-BOhn-m2C.js} +1 -1
  6. package/dist/{architectureDiagram-KFL7JDKH-BMy6ywCF.js → architectureDiagram-W76B3OCA-DdYf2VnU.js} +144 -144
  7. package/dist/assets/{worker-COGufAQn.js → worker-BcG8m3h5.js} +33 -29
  8. package/dist/asterisk-DS281yxp.js +271 -0
  9. package/dist/{blockDiagram-ZYB65J3Q-DYT2-nlI.js → blockDiagram-QIGZ2CNN-DmmYotkP.js} +10 -10
  10. package/dist/{c4Diagram-AAMF2YG6-ZiQzioe6.js → c4Diagram-FPNF74CW-Dyz4zMHJ.js} +8 -8
  11. package/dist/{channel-CeuXqUAU.js → channel-CCL8jXAe.js} +1 -1
  12. package/dist/{chunk-ANTBXLJU-BvYnIrdq.js → chunk-4BX2VUAB-BfKwWLfJ.js} +1 -1
  13. package/dist/{chunk-WVR4S24B-DXj8yaUk.js → chunk-55IACEB6-CFQU7zSp.js} +1 -1
  14. package/dist/{chunk-GLLZNHP4-CyFsosAe.js → chunk-FMBD7UC4-DDjZzUcl.js} +1 -1
  15. package/dist/{chunk-JBRWN2VN-DA_EEhy2.js → chunk-K7UQS3LO-nBRjBU1H.js} +117 -117
  16. package/dist/{chunk-NRVI72HA-BYx2jMlI.js → chunk-QN33PNHL-B-g8sJzl.js} +1 -1
  17. package/dist/{chunk-FHKO5MBM-DfCztBk8.js → chunk-QZHKN3VN-B7QSJS3J.js} +1 -1
  18. package/dist/{chunk-LXBSTHXV-Se7vdY6J.js → chunk-TVAH2DTR-pGXll4d1.js} +7 -7
  19. package/dist/{chunk-OMD6QJNC-CqgcPMgL.js → chunk-TZMSLE5B-Dx9h-1mv.js} +1 -1
  20. package/dist/{classDiagram-v2-QTMF73CY-B19A3G1l.js → classDiagram-KNZD7YFC-BXryI7DY.js} +2 -2
  21. package/dist/{classDiagram-3BZAVTQC-B19A3G1l.js → classDiagram-v2-RKCZMP56-BXryI7DY.js} +2 -2
  22. package/dist/{clone-78au0tn1.js → clone-DqwV7ges.js} +1 -1
  23. package/dist/cose-bilkent-S5V4N54A-Di6FNMXz.js +2609 -0
  24. package/dist/{cytoscape.esm-BYnVVhJX.js → cytoscape.esm-DfdJODL8.js} +34 -34
  25. package/dist/{dagre-2BBEFEWP-BfEn3ZUV.js → dagre-5GWH7T2D-BTZPMTey.js} +6 -6
  26. package/dist/{data-grid-overlay-editor-CH_qLkV2.js → data-grid-overlay-editor-ryatXXby.js} +11 -11
  27. package/dist/{diagram-4IRLE6MV-CL8xidnG.js → diagram-N5W7TBWH-D79_zdOu.js} +59 -60
  28. package/dist/{diagram-RP2FKANI-B1BPcUew.js → diagram-QEK2KX5R-DX2A_SD0.js} +15 -15
  29. package/dist/{diagram-GUPCWM2R-CZ5cfqlq.js → diagram-S2PKOQOG-DM6VMTrJ.js} +10 -10
  30. package/dist/dockerfile-BoowzQlp.js +194 -0
  31. package/dist/ebnf-DUPDuY4r.js +78 -0
  32. package/dist/{erDiagram-HZWUO2LU-BEAIww50.js → erDiagram-AWTI2OKA-BBirxtlI.js} +8 -8
  33. package/dist/fcl-CPC2WYrI.js +103 -0
  34. package/dist/{flowDiagram-THRYKUMA-Czs2UAI2.js → flowDiagram-PVAE7QVJ-DyVweEMs.js} +9 -9
  35. package/dist/{ganttDiagram-WV7ZQ7D5-ByYIAVFO.js → ganttDiagram-OWAHRB6G-DTB7FX7r.js} +34 -34
  36. package/dist/{gitGraphDiagram-OJR772UL-BcpDsiyB.js → gitGraphDiagram-NY62KEGX-BrbIb5pD.js} +4 -4
  37. package/dist/{glide-data-editor-CmN6FVyi.js → glide-data-editor-DhMX4nmM.js} +33 -33
  38. package/dist/{graph-77W6heli.js → graph-CuLSrclI.js} +3 -3
  39. package/dist/http-D9LttvKF.js +44 -0
  40. package/dist/{index-BOojn38D.js → index-BNgdUQ2e.js} +7711 -7711
  41. package/dist/index-DIy6LHLJ.js +98 -0
  42. package/dist/{index-CmozKMxx.js → index-Df2dsx1t.js} +6 -6
  43. package/dist/{index-pBmAzQJl.js → index-MCx5v1x0.js} +2 -2
  44. package/dist/{index-Bfk9dnyS.js → index-cz_xaKvT.js} +33090 -32892
  45. package/dist/{infoDiagram-6WOFNB3A-CfzLHHVP.js → infoDiagram-STP46IZ2-CCBHc7-K.js} +2 -2
  46. package/dist/{journeyDiagram-FFXJYRFH-ndAcpkGn.js → journeyDiagram-BIP6EPQ6-LhGSj54j.js} +24 -26
  47. package/dist/{kanban-definition-KOZQBZVT-DcQYzNvc.js → kanban-definition-6OIFK2YF-aegTMFS6.js} +14 -14
  48. package/dist/{layout-XySVHJgD.js → layout-BEARWMhl.js} +81 -81
  49. package/dist/{linear-PbooOqg7.js → linear-fbJq6cdO.js} +35 -35
  50. package/dist/{main-B5yML0bw.js → main-HerZgEhd.js} +76533 -69945
  51. package/dist/main.js +1 -1
  52. package/dist/{mermaid-Cg5IX6Nv.js → mermaid-DxPYK0KX.js} +6160 -7493
  53. package/dist/min-DBJkhObB.js +80 -0
  54. package/dist/mindmap-definition-Q6HEUPPD-A3Fh5XDZ.js +785 -0
  55. package/dist/nginx-zDPm3Z74.js +89 -0
  56. package/dist/{number-overlay-editor-DUhfZqtP.js → number-overlay-editor-USMrY6k3.js} +19 -19
  57. package/dist/{pieDiagram-DBDJKBY4-DTOlNsja.js → pieDiagram-ADFJNKIX-Q9uFlCV0.js} +17 -17
  58. package/dist/{quadrantDiagram-YPSRARAO-BX2d8VS-.js → quadrantDiagram-LMRXKWRM-BuPh-qpK.js} +6 -6
  59. package/dist/{react-plotly-Dcyw-3Sa.js → react-plotly-HSqJPRfa.js} +3577 -3577
  60. package/dist/{requirementDiagram-EGVEC5DT-D1T5u-wG.js → requirementDiagram-4UW4RH46-CHROYNU_.js} +7 -7
  61. package/dist/{sankeyDiagram-HRAUVNP4-G6xDfnp-.js → sankeyDiagram-GR3RE2ED-DkUqHP2d.js} +5 -5
  62. package/dist/sequenceDiagram-C3RYC4MD-YoPTMplP.js +2519 -0
  63. package/dist/{slides-component-BJLlPJSr.js → slides-component-D7CHSR00.js} +66 -66
  64. package/dist/solr-BNlsLglM.js +41 -0
  65. package/dist/spreadsheet-C-cy4P5N.js +49 -0
  66. package/dist/{stateDiagram-UUKSUZ4H-CYXbjaom.js → stateDiagram-KXAO66HF-DEN00mVU.js} +5 -5
  67. package/dist/{stateDiagram-v2-EYPG3UTE-Br1HYKT6.js → stateDiagram-v2-UMBNRL4Z-DlQqSUAa.js} +2 -2
  68. package/dist/style.css +1 -1
  69. package/dist/tiddlywiki-5wqsXtSk.js +155 -0
  70. package/dist/tiki-__Kn3CeS.js +181 -0
  71. package/dist/{time-B9SZnSen.js → time-BtVcKqeD.js} +58 -58
  72. package/dist/{timeline-definition-3HZDQTIS-DeK_ZRD0.js → timeline-definition-XQNQX7LJ-DEteLt8D.js} +10 -12
  73. package/dist/{timer-BYwnU4DF.js → timer-B0-z63CM.js} +16 -16
  74. package/dist/{treemap-75Q7IDZK-CKP4vV_0.js → treemap-75Q7IDZK-8S6podme.js} +14 -14
  75. package/dist/{vega-component-CpgdqX2d.js → vega-component-D35L45kI.js} +30 -30
  76. package/dist/{xychartDiagram-FDP5SA34-AMEPsx_R.js → xychartDiagram-6GGTOJPD-DKwGThyy.js} +7 -7
  77. package/package.json +44 -41
  78. package/src/__mocks__/notebook.ts +3 -0
  79. package/src/__mocks__/requests.ts +3 -0
  80. package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
  81. package/src/__tests__/chat-utils.test.ts +26 -211
  82. package/src/components/ai/ai-model-dropdown.tsx +25 -9
  83. package/src/components/ai/ai-provider-icon.tsx +5 -1
  84. package/src/components/app-config/ai-config.tsx +7 -0
  85. package/src/components/chat/acp/__tests__/__snapshots__/prompt.test.ts.snap +304 -0
  86. package/src/components/chat/acp/__tests__/atoms.test.ts +56 -0
  87. package/src/components/chat/acp/__tests__/prompt.test.ts +12 -0
  88. package/src/components/chat/acp/__tests__/state.test.ts +621 -0
  89. package/src/components/chat/acp/agent-docs.tsx +78 -0
  90. package/src/components/chat/acp/agent-panel.css +23 -0
  91. package/src/components/chat/acp/agent-panel.tsx +715 -0
  92. package/src/components/chat/acp/agent-selector.tsx +138 -0
  93. package/src/components/chat/acp/blocks.tsx +664 -0
  94. package/src/components/chat/acp/common.tsx +198 -0
  95. package/src/components/chat/acp/prompt.ts +284 -0
  96. package/src/components/chat/acp/scroll-to-bottom-button.tsx +50 -0
  97. package/src/components/chat/acp/session-tabs.tsx +138 -0
  98. package/src/components/chat/acp/state.ts +263 -0
  99. package/src/components/chat/acp/thread.tsx +121 -0
  100. package/src/components/chat/acp/types.ts +63 -0
  101. package/src/components/chat/acp/utils.ts +45 -0
  102. package/src/components/chat/chat-components.tsx +71 -0
  103. package/src/components/chat/chat-panel.tsx +481 -291
  104. package/src/components/chat/chat-utils.ts +50 -0
  105. package/src/components/chat/markdown-renderer.tsx +3 -7
  106. package/src/components/chat/tool-call-accordion.tsx +6 -6
  107. package/src/components/datasources/__tests__/utils.test.ts +6 -0
  108. package/src/components/datasources/column-preview.tsx +1 -3
  109. package/src/components/editor/actions/useNotebookActions.tsx +1 -1
  110. package/src/components/editor/ai/add-cell-with-ai.tsx +20 -15
  111. package/src/components/editor/ai/ai-completion-editor.tsx +22 -3
  112. package/src/components/editor/ai/completion-handlers.tsx +2 -4
  113. package/src/components/editor/ai/completion-utils.ts +85 -11
  114. package/src/components/editor/alerts/startup-logs-alert.tsx +72 -0
  115. package/src/components/editor/chrome/panels/datasources-panel.tsx +3 -1
  116. package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +3 -1
  117. package/src/components/editor/chrome/panels/documentation-panel.tsx +3 -1
  118. package/src/components/editor/chrome/panels/error-panel.tsx +3 -1
  119. package/src/components/editor/chrome/panels/file-explorer-panel.tsx +3 -1
  120. package/src/components/editor/chrome/panels/logs-panel.tsx +3 -1
  121. package/src/components/editor/chrome/panels/outline-panel.tsx +3 -1
  122. package/src/components/editor/chrome/panels/packages-panel.tsx +4 -2
  123. package/src/components/editor/chrome/panels/scratchpad-panel.tsx +3 -1
  124. package/src/components/editor/chrome/panels/secrets-panel.tsx +3 -1
  125. package/src/components/editor/chrome/panels/snippets-panel.tsx +3 -1
  126. package/src/components/editor/chrome/panels/tracing-panel.tsx +3 -1
  127. package/src/components/editor/chrome/panels/variable-panel.tsx +3 -1
  128. package/src/components/editor/chrome/types.ts +10 -0
  129. package/src/components/editor/chrome/wrapper/app-chrome.tsx +55 -31
  130. package/src/components/editor/controls/command-palette-button.tsx +1 -1
  131. package/src/components/editor/controls/command-palette.tsx +5 -4
  132. package/src/components/editor/controls/state.ts +4 -0
  133. package/src/components/editor/package-alert.tsx +108 -58
  134. package/src/components/editor/renderers/CellArray.tsx +2 -0
  135. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +0 -1
  136. package/src/components/pages/edit-page.tsx +7 -3
  137. package/src/core/ai/chat-utils.ts +26 -43
  138. package/src/core/ai/config.ts +1 -1
  139. package/src/core/ai/context/__tests__/registry.test.ts +277 -3
  140. package/src/core/ai/context/context.ts +11 -1
  141. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +378 -0
  142. package/src/core/ai/context/providers/__tests__/error.test.ts +3 -2
  143. package/src/core/ai/context/providers/__tests__/file.test.ts +119 -0
  144. package/src/core/ai/context/providers/cell-output.ts +349 -0
  145. package/src/core/ai/context/providers/common.ts +5 -1
  146. package/src/core/ai/context/providers/file.ts +287 -0
  147. package/src/core/ai/context/registry.ts +79 -0
  148. package/src/core/ai/state.ts +22 -5
  149. package/src/core/alerts/state.ts +71 -3
  150. package/src/core/cells/cell.ts +2 -2
  151. package/src/core/cells/cells.ts +1 -1
  152. package/src/core/cells/logs.ts +1 -1
  153. package/src/core/cells/runs.ts +6 -5
  154. package/src/core/codemirror/ai/resources.ts +47 -5
  155. package/src/core/codemirror/ai/state.ts +12 -0
  156. package/src/core/codemirror/language/__tests__/sql.test.ts +45 -0
  157. package/src/core/codemirror/markdown/__tests__/commands.test.ts +1 -0
  158. package/src/core/codemirror/theme/dark.ts +1 -1
  159. package/src/core/config/capabilities.ts +1 -1
  160. package/src/core/config/feature-flag.tsx +2 -0
  161. package/src/core/datasets/__tests__/data-source.test.ts +24 -0
  162. package/src/core/errors/__tests__/errors.test.ts +2 -0
  163. package/src/core/islands/bridge.ts +1 -0
  164. package/src/core/islands/main.ts +1 -0
  165. package/src/core/kernel/messages.ts +12 -6
  166. package/src/core/layout/layout.ts +3 -3
  167. package/src/core/network/requests-network.ts +8 -0
  168. package/src/core/network/requests-static.ts +1 -0
  169. package/src/core/network/requests-toasting.ts +1 -0
  170. package/src/core/network/types.ts +4 -1
  171. package/src/core/wasm/bridge.ts +18 -2
  172. package/src/core/wasm/worker/bootstrap.ts +3 -1
  173. package/src/core/wasm/worker/getMarimoWheel.ts +3 -8
  174. package/src/core/wasm/worker/types.ts +3 -0
  175. package/src/core/websocket/useMarimoWebSocket.tsx +7 -1
  176. package/src/css/app/Cell.css +42 -21
  177. package/src/css/app/codemirror.css +5 -1
  178. package/src/css/globals.css +3 -0
  179. package/src/css/md.css +1 -1
  180. package/src/plugins/impl/MicrophonePlugin.tsx +2 -2
  181. package/src/plugins/impl/chat/ChatPlugin.tsx +2 -9
  182. package/src/plugins/impl/chat/chat-ui.tsx +129 -110
  183. package/src/plugins/impl/chat/types.ts +5 -8
  184. package/src/plugins/impl/code/__tests__/language.test.ts +15 -0
  185. package/src/plugins/impl/code/any-language-editor.tsx +11 -8
  186. package/src/plugins/impl/vega/vega.css +121 -0
  187. package/src/plugins/layout/MimeRenderPlugin.tsx +3 -6
  188. package/src/stories/cell.stories.tsx +6 -0
  189. package/src/stories/layout/vertical/one-column.stories.tsx +215 -0
  190. package/src/theme/useTheme.ts +11 -6
  191. package/src/utils/Logger.ts +5 -6
  192. package/src/utils/__tests__/blob.test.ts +37 -0
  193. package/src/utils/arrays.ts +13 -0
  194. package/src/utils/fileToBase64.ts +21 -6
  195. package/src/utils/json/base64.ts +5 -2
  196. package/src/utils/numbers.ts +9 -7
  197. package/dist/any-language-editor-DC5170DQ.js +0 -45
  198. package/dist/asn1-jKiBa2Ya.js +0 -95
  199. package/dist/clojure-CCKyeQKf.js +0 -800
  200. package/dist/css-BkF-NPzE.js +0 -1553
  201. package/dist/index-5ZH_qS8j.js +0 -288
  202. package/dist/index-U4yn89qO.js +0 -341
  203. package/dist/javascript-C2yteZeJ.js +0 -691
  204. package/dist/min-DS5Jz-hg.js +0 -80
  205. package/dist/mindmap-definition-LNHGMQRG-0aOVaMR8.js +0 -3234
  206. package/dist/mllike-BSnXJBGA.js +0 -272
  207. package/dist/pug-CwAQJzGR.js +0 -248
  208. package/dist/python-BkR3uSy8.js +0 -313
  209. package/dist/rpm-IznJm2Xc.js +0 -57
  210. package/dist/sequenceDiagram-WFGC7UMF-DMhHzllb.js +0 -2284
  211. package/dist/ttcn-cfg-Bac_acMi.js +0 -88
@@ -318,14 +318,14 @@ jt.prototype = {
318
318
  this._x.push(+t9), this._y.push(+i);
319
319
  }
320
320
  };
321
- const sn = function t(i) {
321
+ const sn = (function t(i) {
322
322
  function n(e) {
323
323
  return i === 1 ? new K(e) : new jt(e, i);
324
324
  }
325
325
  return n.beta = function(e) {
326
326
  return t(+e);
327
327
  }, n;
328
- }(0.85);
328
+ })(0.85);
329
329
  function j(t9, i, n) {
330
330
  t9._context.bezierCurveTo(
331
331
  t9._x1 + t9._k * (t9._x2 - t9._x0),
@@ -378,14 +378,14 @@ _t.prototype = {
378
378
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
379
379
  }
380
380
  };
381
- const on = function t2(i) {
381
+ const on = (function t2(i) {
382
382
  function n(e) {
383
383
  return new _t(e, i);
384
384
  }
385
385
  return n.tension = function(e) {
386
386
  return t2(+e);
387
387
  }, n;
388
- }(0);
388
+ })(0);
389
389
  function lt(t9, i) {
390
390
  this._context = t9, this._k = (1 - i) / 6;
391
391
  }
@@ -429,14 +429,14 @@ lt.prototype = {
429
429
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
430
430
  }
431
431
  };
432
- const hn = function t3(i) {
432
+ const hn = (function t3(i) {
433
433
  function n(e) {
434
434
  return new lt(e, i);
435
435
  }
436
436
  return n.tension = function(e) {
437
437
  return t3(+e);
438
438
  }, n;
439
- }(0);
439
+ })(0);
440
440
  function ct(t9, i) {
441
441
  this._context = t9, this._k = (1 - i) / 6;
442
442
  }
@@ -474,14 +474,14 @@ ct.prototype = {
474
474
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
475
475
  }
476
476
  };
477
- const rn = function t4(i) {
477
+ const rn = (function t4(i) {
478
478
  function n(e) {
479
479
  return new ct(e, i);
480
480
  }
481
481
  return n.tension = function(e) {
482
482
  return t4(+e);
483
483
  }, n;
484
- }(0);
484
+ })(0);
485
485
  function ft(t9, i, n) {
486
486
  var e = t9._x1, s = t9._y1, o = t9._x2, h = t9._y2;
487
487
  if (t9._l01_a > wt) {
@@ -540,14 +540,14 @@ zt.prototype = {
540
540
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
541
541
  }
542
542
  };
543
- const an = function t5(i) {
543
+ const an = (function t5(i) {
544
544
  function n(e) {
545
545
  return i ? new zt(e, i) : new _t(e, 0);
546
546
  }
547
547
  return n.alpha = function(e) {
548
548
  return t5(+e);
549
549
  }, n;
550
- }(0.5);
550
+ })(0.5);
551
551
  function Lt(t9, i) {
552
552
  this._context = t9, this._alpha = i;
553
553
  }
@@ -595,14 +595,14 @@ Lt.prototype = {
595
595
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
596
596
  }
597
597
  };
598
- const _n = function t6(i) {
598
+ const _n = (function t6(i) {
599
599
  function n(e) {
600
600
  return i ? new Lt(e, i) : new lt(e, 0);
601
601
  }
602
602
  return n.alpha = function(e) {
603
603
  return t6(+e);
604
604
  }, n;
605
- }(0.5);
605
+ })(0.5);
606
606
  function Dt(t9, i) {
607
607
  this._context = t9, this._alpha = i;
608
608
  }
@@ -644,14 +644,14 @@ Dt.prototype = {
644
644
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t9, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
645
645
  }
646
646
  };
647
- const ln = function t7(i) {
647
+ const ln = (function t7(i) {
648
648
  function n(e) {
649
649
  return i ? new Dt(e, i) : new ct(e, 0);
650
650
  }
651
651
  return n.alpha = function(e) {
652
652
  return t7(+e);
653
653
  }, n;
654
- }(0.5);
654
+ })(0.5);
655
655
  function Ft(t9) {
656
656
  this._context = t9;
657
657
  }
@@ -1187,7 +1187,7 @@ function Ut(t9, i) {
1187
1187
  var n = i - t9;
1188
1188
  return n ? Jt(t9, n) : pt(isNaN(t9) ? i : t9);
1189
1189
  }
1190
- const bn = function t8(i) {
1190
+ const bn = (function t8(i) {
1191
1191
  var n = Si(i);
1192
1192
  function e(s, o) {
1193
1193
  var h = n((s = D(s)).r, (o = D(o)).r), r = n(s.g, o.g), a = n(s.b, o.b), l = Ut(s.opacity, o.opacity);
@@ -1196,7 +1196,7 @@ const bn = function t8(i) {
1196
1196
  };
1197
1197
  }
1198
1198
  return e.gamma = t8, e;
1199
- }(1);
1199
+ })(1);
1200
1200
  function ti(t9) {
1201
1201
  return function(i) {
1202
1202
  var n = i.length, e = new Array(n), s = new Array(n), o = new Array(n), h, r;
@@ -2,11 +2,11 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a2, _b, _c2, _d2, _e, _f2, _g, _h2, _i2, _j, _k, _l2, _m2, _n2, _o2, _p2, _q;
5
- import { e6 as Kl, bZ as Vl, aw as Ma, b2 as Hl, F as _t, aZ as Wl, az as Q, bv as jl, bw as zl, y as ql, A as Ni, z as Da, ax as Qs, e7 as Fa, aV as Yl, bb as Ga, e8 as Ua, aX as Xl, bd as wi, ay as Jl, e9 as Zl, br as Ql, ea as eu, a_ as Ie, D as vt, aC as _i, be as tu, eb as H, ec as Re } from "./main-B5yML0bw.js";
6
- import { g as ei, d as bt, k as nu, v as W, l as Ba, m as ru, n as su, a as Ka, c as x, i as qe, r as ae, f as ke, o as z } from "./_baseUniq-DdHL34FO.js";
7
- import { m as k, f as Lt, h as I, e as ti, l as Ot, d as iu } from "./min-DS5Jz-hg.js";
8
- import { ad as P } from "./mermaid-Cg5IX6Nv.js";
9
- import { c as te } from "./clone-78au0tn1.js";
5
+ import { dY as Kl, bO as Vl, al as Ma, aT as Hl, u as _t, aO as Wl, ao as Q, bk as jl, bl as zl, k as ql, n as Ni, m as Da, am as Qs, dZ as Fa, aK as Yl, b0 as Ga, d_ as Ua, aM as Xl, b2 as wi, an as Jl, d$ as Zl, bg as Ql, e0 as eu, aP as Ie, q as vt, ar as _i, b3 as tu, e1 as H, e2 as Re } from "./main-HerZgEhd.js";
6
+ import { g as ei, d as bt, k as nu, v as W, l as Ba, m as ru, n as su, a as Ka, c as x, i as qe, r as ae, f as ke, o as z } from "./_baseUniq-CQrhBg_9.js";
7
+ import { m as k, f as Lt, h as I, e as ti, l as Ot, d as iu } from "./min-DBJkhObB.js";
8
+ import { ad as P } from "./mermaid-DxPYK0KX.js";
9
+ import { c as te } from "./clone-DqwV7ges.js";
10
10
  var au = Object.prototype, ou = au.hasOwnProperty, Ee = Kl(function(n, e) {
11
11
  if (Vl(e) || Ma(e)) {
12
12
  Hl(e, _t(e), n);
@@ -6879,7 +6879,7 @@ const ua = new Zo();
6879
6879
  class Jf extends gi {
6880
6880
  constructor(e) {
6881
6881
  var t;
6882
- super(), this.logging = (t = e == null ? void 0 : e.logging) !== null && t !== void 0 ? t : (r) => console.log(r);
6882
+ super(), this.logging = (t = e == null ? void 0 : e.logging) !== null && t !== void 0 ? t : ((r) => console.log(r));
6883
6883
  }
6884
6884
  initialize(e) {
6885
6885
  this.atn = Mf(e.rules), this.dfas = Zf(this.atn);
@@ -8164,14 +8164,14 @@ function fl() {
8164
8164
  throw new Error("No runtime abstraction layer installed");
8165
8165
  return n;
8166
8166
  }
8167
- return function(t) {
8167
+ return (function(t) {
8168
8168
  function r(s) {
8169
8169
  if (s === void 0)
8170
8170
  throw new Error("No runtime abstraction layer provided");
8171
8171
  n = s;
8172
8172
  }
8173
8173
  t.install = r;
8174
- }(e || (e = {})), Zn.default = e, Zn;
8174
+ })(e || (e = {})), Zn.default = e, Zn;
8175
8175
  }
8176
8176
  var Y = {}, pa;
8177
8177
  function bh() {
@@ -8644,10 +8644,10 @@ var gl;
8644
8644
  return u === -1 || d === -1 || h === 0 || h === 1 && u === d - 1 && u === c + 1 ? "" : l.slice(u, d);
8645
8645
  }, format: function(l) {
8646
8646
  if (l === null || typeof l != "object") throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof l);
8647
- return function(u, c) {
8647
+ return (function(u, c) {
8648
8648
  var d = c.dir || c.root, f = c.base || (c.name || "") + (c.ext || "");
8649
8649
  return d ? d === c.root ? d + f : d + "/" + f : f;
8650
- }(0, l);
8650
+ })(0, l);
8651
8651
  }, parse: function(l) {
8652
8652
  i(l);
8653
8653
  var u = { root: "", dir: "", base: "", ext: "", name: "" };
@@ -8696,9 +8696,9 @@ var gl;
8696
8696
  __publicField(this, "path");
8697
8697
  __publicField(this, "query");
8698
8698
  __publicField(this, "fragment");
8699
- typeof g == "object" ? (this.scheme = g.scheme || u, this.authority = g.authority || u, this.path = g.path || u, this.query = g.query || u, this.fragment = g.fragment || u) : (this.scheme = /* @__PURE__ */ function(ge, j) {
8699
+ typeof g == "object" ? (this.scheme = g.scheme || u, this.authority = g.authority || u, this.path = g.path || u, this.query = g.query || u, this.fragment = g.fragment || u) : (this.scheme = /* @__PURE__ */ (function(ge, j) {
8700
8700
  return ge || j ? ge : "file";
8701
- }(g, w), this.authority = S || u, this.path = function(ge, j) {
8701
+ })(g, w), this.authority = S || u, this.path = (function(ge, j) {
8702
8702
  switch (ge) {
8703
8703
  case "https":
8704
8704
  case "http":
@@ -8706,7 +8706,7 @@ var gl;
8706
8706
  j ? j[0] !== c && (j = c + j) : j = c;
8707
8707
  }
8708
8708
  return j;
8709
- }(this.scheme, $ || u), this.query = L || u, this.fragment = _ || u, l(this, w));
8709
+ })(this.scheme, $ || u), this.query = L || u, this.fragment = _ || u, l(this, w));
8710
8710
  }
8711
8711
  static isUri(g) {
8712
8712
  return g instanceof f || !!g && typeof g.authority == "string" && typeof g.fragment == "string" && typeof g.path == "string" && typeof g.query == "string" && typeof g.scheme == "string" && typeof g.fsPath == "string" && typeof g.with == "function" && typeof g.toString == "function";
@@ -8828,7 +8828,7 @@ var gl;
8828
8828
  }
8829
8829
  const b = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
8830
8830
  function ne(E) {
8831
- return E.match(b) ? E.replace(b, (g) => C(g)) : E;
8831
+ return E.match(b) ? E.replace(b, ((g) => C(g))) : E;
8832
8832
  }
8833
8833
  var we = t(470);
8834
8834
  const me = we.posix || we, De = "/";
@@ -1,7 +1,7 @@
1
- import { Q as I, S as H, c as K, T as z, U as R, V as G, j as d, E as W, W as $, G as k, X as j, Y as M, Z as U, L as x, _ as O, $ as B, a0 as Q, a1 as Y, a2 as q, a3 as X, a4 as J } from "./main-B5yML0bw.js";
2
- import { M as m, V as ee } from "./index-Bfk9dnyS.js";
1
+ import { D as V, F as K, A as Z, G as z, H as R, I as G, j as d, E as W, J as U, r as k, K as j, M, N as $, L as x, O as _, P as B, Q, S as q, T as J, U as Y, V as X } from "./main-HerZgEhd.js";
2
+ import { M as m, V as ee } from "./index-cz_xaKvT.js";
3
3
  function te(e) {
4
- return e.data && "url" in e.data && (e.data.url = I(e.data.url).href), e;
4
+ return e.data && "url" in e.data && (e.data.url = V(e.data.url).href), e;
5
5
  }
6
6
  const L = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
7
7
  getMarkType(e) {
@@ -108,7 +108,7 @@ const h = {
108
108
  name: h.interval(t),
109
109
  select: {
110
110
  type: "interval",
111
- encodings: T(e),
111
+ encodings: I(e),
112
112
  mark: {
113
113
  fill: "#669EFF",
114
114
  fillOpacity: 0.07,
@@ -126,7 +126,7 @@ const h = {
126
126
  name: h.point(t),
127
127
  select: {
128
128
  type: "point",
129
- encodings: T(e),
129
+ encodings: I(e),
130
130
  on: "click[!event.metaKey]"
131
131
  }
132
132
  };
@@ -154,7 +154,7 @@ const h = {
154
154
  };
155
155
  }
156
156
  };
157
- function T(e) {
157
+ function I(e) {
158
158
  switch (v.getMarkType(e.mark)) {
159
159
  case m.image:
160
160
  case m.trail:
@@ -178,8 +178,8 @@ function T(e) {
178
178
  return ["x", "y"];
179
179
  }
180
180
  }
181
- function N(e) {
182
- return "params" in e && e.params && e.params.length > 0 ? e.params.filter((n) => n == null ? false : "select" in n && n.select !== void 0).map((n) => n.name) : "layer" in e ? [...new Set(e.layer.flatMap(N))] : [];
181
+ function A(e) {
182
+ return "params" in e && e.params && e.params.length > 0 ? e.params.filter((n) => n == null ? false : "select" in n && n.select !== void 0).map((n) => n.name) : "layer" in e ? [...new Set(e.layer.flatMap(A))] : [];
183
183
  }
184
184
  function oe(e) {
185
185
  var _a, _b;
@@ -220,7 +220,7 @@ function ie(e, t) {
220
220
  if (!("mark" in l))
221
221
  return l;
222
222
  let u = l;
223
- return u = V(u, n, f), u = P(u), f === 0 && (u = C(u)), u;
223
+ return u = N(u, n, f), u = P(u), f === 0 && (u = T(u)), u;
224
224
  });
225
225
  return {
226
226
  ...e,
@@ -230,7 +230,7 @@ function ie(e, t) {
230
230
  if (!("mark" in e) || !v.isInteractive(e.mark))
231
231
  return e;
232
232
  let s = e;
233
- return s = se(s, o), s = V(s, n, void 0), s = P(s), s = C(s), s;
233
+ return s = se(s, o), s = N(s, n, void 0), s = P(s), s = T(s), s;
234
234
  }
235
235
  function se(e, t) {
236
236
  if (t === false)
@@ -243,7 +243,7 @@ function se(e, t) {
243
243
  params: r
244
244
  };
245
245
  }
246
- function V(e, t, n) {
246
+ function N(e, t, n) {
247
247
  if (t === false)
248
248
  return e;
249
249
  let o;
@@ -263,7 +263,7 @@ function V(e, t, n) {
263
263
  params: s
264
264
  };
265
265
  }
266
- function C(e) {
266
+ function T(e) {
267
267
  let t;
268
268
  try {
269
269
  t = v.getMarkType(e.mark);
@@ -336,11 +336,11 @@ async function ce(e) {
336
336
  return r;
337
337
  let a;
338
338
  try {
339
- a = I(r.data.url);
339
+ a = V(r.data.url);
340
340
  } catch {
341
341
  return r;
342
342
  }
343
- const s = await H(a.href, r.data.format);
343
+ const s = await K(a.href, r.data.format);
344
344
  return t[a.pathname] = s, {
345
345
  ...r,
346
346
  data: {
@@ -355,7 +355,7 @@ async function ce(e) {
355
355
  }
356
356
  R("arrow", G);
357
357
  const ye = (e) => {
358
- const t = K.c(11), {
358
+ const t = Z.c(11), {
359
359
  value: n,
360
360
  setValue: o,
361
361
  chartSelection: r,
@@ -385,34 +385,34 @@ const ye = (e) => {
385
385
  }) => {
386
386
  const {
387
387
  theme: a
388
- } = $(), s = k.useRef(void 0), [i, l] = k.useState(), f = j(r), u = k.useMemo(() => ie(te(f), {
388
+ } = U(), s = k.useRef(void 0), [i, l] = k.useState(), f = j(r), u = k.useMemo(() => ie(te(f), {
389
389
  chartSelection: n,
390
390
  fieldSelection: o
391
- }), [f, n, o]), g = k.useMemo(() => N(u), [u]), y = M((c) => {
391
+ }), [f, n, o]), g = k.useMemo(() => A(u), [u]), y = M((c) => {
392
392
  t({
393
393
  ...e,
394
394
  ...c
395
395
  });
396
- }), S = j(g), A = k.useMemo(() => S.reduce((c, p) => (h.PAN_ZOOM === p || (c[p] = U((w, _) => {
397
- x.debug("[Vega signal]", w, _);
398
- let E = O.mapValues(_, fe);
399
- E = O.mapValues(E, de), y({
396
+ }), O = j(g), C = k.useMemo(() => O.reduce((c, p) => (h.PAN_ZOOM === p || (c[p] = $((w, S) => {
397
+ x.debug("[Vega signal]", w, S);
398
+ let E = _.mapValues(S, fe);
399
+ E = _.mapValues(E, de), y({
400
400
  [w]: E
401
401
  });
402
- }, 100)), c), {}), [S, y]), D = M((c) => {
402
+ }, 100)), c), {}), [O, y]), D = M((c) => {
403
403
  x.error(c), x.debug(u), l(c);
404
- }), Z = M((c) => {
404
+ }), F = M((c) => {
405
405
  x.debug("[Vega view] created", c), s.current = c, l(void 0);
406
- }), F = () => {
406
+ }), H = () => {
407
407
  const c = [];
408
- return h.hasPoint(g) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), h.hasInterval(g) && c.push(["Interval selection", "click and drag to select an interval"]), h.hasLegend(g) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), h.hasPanZoom(g) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ d.jsx(X, { delayDuration: 300, side: "left", content: /* @__PURE__ */ d.jsx("div", { className: "text-xs flex flex-col", children: c.map((p, w) => /* @__PURE__ */ d.jsxs("div", { children: [
408
+ return h.hasPoint(g) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), h.hasInterval(g) && c.push(["Interval selection", "click and drag to select an interval"]), h.hasLegend(g) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), h.hasPanZoom(g) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ d.jsx(Y, { delayDuration: 300, side: "left", content: /* @__PURE__ */ d.jsx("div", { className: "text-xs flex flex-col", children: c.map((p, w) => /* @__PURE__ */ d.jsxs("div", { children: [
409
409
  /* @__PURE__ */ d.jsxs("span", { className: "font-bold tracking-wide", children: [
410
410
  p[0],
411
411
  ":"
412
412
  ] }),
413
413
  " ",
414
414
  p[1]
415
- ] }, w)) }), children: /* @__PURE__ */ d.jsx(J, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" }) });
415
+ ] }, w)) }), children: /* @__PURE__ */ d.jsx(X, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" }) });
416
416
  };
417
417
  return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
418
418
  i && /* @__PURE__ */ d.jsxs(B, { variant: "destructive", children: [
@@ -423,10 +423,10 @@ const ye = (e) => {
423
423
  "div",
424
424
  {
425
425
  className: "relative",
426
- onPointerDown: Y.stopPropagation(),
426
+ onPointerDown: q.stopPropagation(),
427
427
  children: [
428
- /* @__PURE__ */ d.jsx(ee, { spec: u, theme: a === "dark" ? "dark" : void 0, actions: me, signalListeners: A, onError: D, onNewView: Z }),
429
- F()
428
+ /* @__PURE__ */ d.jsx(ee, { spec: u, theme: a === "dark" ? "dark" : void 0, actions: me, signalListeners: C, onError: D, onNewView: F }),
429
+ H()
430
430
  ]
431
431
  }
432
432
  )
@@ -439,7 +439,7 @@ function de(e) {
439
439
  return e instanceof Set ? [...e] : e;
440
440
  }
441
441
  function fe(e) {
442
- return Array.isArray(e) ? e.map((t) => t instanceof Date && q(t) ? new Date(t).getTime() : t) : e;
442
+ return Array.isArray(e) ? e.map((t) => t instanceof Date && J(t) ? new Date(t).getTime() : t) : e;
443
443
  }
444
444
  export {
445
445
  ye as default
@@ -1,10 +1,10 @@
1
1
  var _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j;
2
- import { _ as a, s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, l as Et, K as ri, e as hi, z as li, G as xt, F as It, H as ci, M as ui, i as gi, ac as xi } from "./mermaid-Cg5IX6Nv.js";
2
+ import { _ as a, s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, l as Et, K as ri, e as hi, z as li, G as xt, F as It, H as ci, M as ui, i as gi, ac as xi } from "./mermaid-DxPYK0KX.js";
3
3
  import { i as di } from "./init-DxzjmxYy.js";
4
4
  import { o as fi } from "./ordinal-CYN5qNoq.js";
5
5
  import { r as pi } from "./range-DdOGybNB.js";
6
- import { l as Tt } from "./linear-PbooOqg7.js";
7
- import { l as Dt } from "./timer-BYwnU4DF.js";
6
+ import { l as Tt } from "./linear-fbJq6cdO.js";
7
+ import { l as Dt } from "./timer-B0-z63CM.js";
8
8
  function ht() {
9
9
  var t = fi().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, d, g, m = false, S = 0, D = 0, v = 0.5;
10
10
  delete t.unknown;
@@ -40,7 +40,7 @@ function ht() {
40
40
  return ht(i(), [s, n]).round(m).paddingInner(S).paddingOuter(D).align(v);
41
41
  }, di.apply(w(), arguments);
42
42
  }
43
- var lt = function() {
43
+ var lt = (function() {
44
44
  var t = /* @__PURE__ */ a(function(F, r, c, u) {
45
45
  for (c = c || {}, u = F.length; u--; c[F[u]] = r) ;
46
46
  return c;
@@ -218,7 +218,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt =
218
218
  }
219
219
  return true;
220
220
  }, "parse")
221
- }, Ct = /* @__PURE__ */ function() {
221
+ }, Ct = /* @__PURE__ */ (function() {
222
222
  var F = {
223
223
  EOF: 1,
224
224
  parseError: /* @__PURE__ */ a(function(c, u) {
@@ -495,13 +495,13 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt =
495
495
  conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: true }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 23, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: true }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: true }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: true }, acc_descr_multiline: { rules: [12, 13], inclusive: false }, acc_descr: { rules: [10], inclusive: false }, acc_title: { rules: [8], inclusive: false }, title: { rules: [], inclusive: false }, md_string: { rules: [], inclusive: false }, string: { rules: [28, 29], inclusive: false }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: true } }
496
496
  };
497
497
  return F;
498
- }();
498
+ })();
499
499
  $.lexer = Ct;
500
500
  function N() {
501
501
  this.yy = {};
502
502
  }
503
503
  return a(N, "Parser"), N.prototype = $, $.Parser = N, new N();
504
- }();
504
+ })();
505
505
  lt.parser = lt;
506
506
  var mi = lt;
507
507
  function ct(t) {