@marimo-team/frontend 0.21.2-dev6 → 0.21.2-dev62

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 (994) hide show
  1. package/dist/assets/CellStatus-C-nDPVVw.js +1 -0
  2. package/dist/assets/ConnectedDataExplorerComponent-B5igOqdA.js +1 -0
  3. package/dist/assets/DeferredRequestRegistry-B8jPCuU1.js +1 -0
  4. package/dist/assets/FiraMono-Bold-C6PDArdf.woff2 +0 -0
  5. package/dist/assets/FiraMono-Medium-D5MAsWEG.woff2 +0 -0
  6. package/dist/assets/FiraMono-Regular-CEsLFVD9.woff2 +0 -0
  7. package/dist/assets/ImperativeModal-C5ZzjCQG.js +1 -0
  8. package/dist/assets/JsonOutput-bhD4i0Fm.js +46 -0
  9. package/dist/assets/LazyAnyLanguageCodeMirror-C58z97yX.js +2 -0
  10. package/dist/assets/Lora-VariableFont_wght-CZceb_kH.woff2 +0 -0
  11. package/dist/assets/MarimoErrorOutput-BIh0hMl8.js +7 -0
  12. package/dist/assets/PTSans-Bold-C_DwAp7Z.woff2 +0 -0
  13. package/dist/assets/PTSans-Regular-Bam3NpBI.woff2 +0 -0
  14. package/dist/assets/RenderHTML-CRY6pZVc.js +1 -0
  15. package/dist/assets/add-cell-with-ai-BvN8AbcB.js +92 -0
  16. package/dist/assets/add-connection-dialog-BvzGJCV7.js +167 -0
  17. package/dist/assets/agent-panel-DLrLHhZB.js +287 -0
  18. package/dist/assets/ai-model-dropdown-CQDhHQ1r.js +5 -0
  19. package/dist/assets/alert-dialog-Baw3WWPa.js +11 -0
  20. package/dist/assets/any-language-editor-DwTh8fpE.js +1 -0
  21. package/dist/assets/apl-BvMImcFf.js +1 -0
  22. package/dist/assets/app-config-button-CnR7XJXP.js +1 -0
  23. package/dist/assets/arc-DUSwcTI9.js +1 -0
  24. package/dist/assets/architecture-7HQA4BMR-DoF6afh3.js +1 -0
  25. package/dist/assets/architectureDiagram-VXUJARFQ-d3bjsML7.js +36 -0
  26. package/dist/assets/asciiarmor-BYYwBbrl.js +1 -0
  27. package/dist/assets/asn1-Dlt8rkAb.js +1 -0
  28. package/dist/assets/azure-DMJRLvDT.js +1 -0
  29. package/dist/assets/blockDiagram-VD42YOAC-CjpBwM9S.js +122 -0
  30. package/dist/assets/brainfuck-B1Z5ou__.js +1 -0
  31. package/dist/assets/c4Diagram-YG6GDRKO-BsB04ueE.js +10 -0
  32. package/dist/assets/cache-panel-B9gltP7l.js +1 -0
  33. package/dist/assets/cell-editor-D5XEomtX.js +22 -0
  34. package/dist/assets/cell-link-Cp4c28Yf.js +1 -0
  35. package/dist/assets/cells-DiVpbkA6.js +230 -0
  36. package/dist/assets/channel-BjUuxbyU.js +1 -0
  37. package/dist/assets/chat-display-DhUQL9pu.js +1 -0
  38. package/dist/assets/chat-panel-fxitp0Hy.js +3 -0
  39. package/dist/assets/chunk-4BX2VUAB-DhvNmHH5.js +1 -0
  40. package/dist/assets/chunk-55IACEB6-DPm6ES7n.js +1 -0
  41. package/dist/assets/chunk-5FQGJX7Z-BSe8eGYF.js +113 -0
  42. package/dist/assets/chunk-ABZYJK2D-Cw3YveaS.js +80 -0
  43. package/dist/assets/chunk-ATLVNIR6-ChKiaY37.js +1 -0
  44. package/dist/assets/chunk-B4BG7PRW-CjzWXMFh.js +165 -0
  45. package/dist/assets/chunk-CVBHYZKI-BX0N_ipT.js +1 -0
  46. package/dist/assets/chunk-DI55MBZ5-BLrTiPQ-.js +220 -0
  47. package/dist/assets/chunk-EXTU4WIE-DEQUOsSM.js +1 -0
  48. package/dist/assets/chunk-FMBD7UC4-BDlH9XLH.js +15 -0
  49. package/dist/assets/chunk-HN2XXSSU-ujlBpRMF.js +1 -0
  50. package/dist/assets/chunk-JA3XYJ7Z-DVg9ra4h.js +70 -0
  51. package/dist/assets/chunk-JZLCHNYA-BTjSP-Yu.js +54 -0
  52. package/dist/assets/chunk-MI3HLSF2-D9JXkg6-.js +32 -0
  53. package/dist/assets/chunk-N4CR4FBY-U_urcDYs.js +2 -0
  54. package/dist/assets/chunk-QN33PNHL-rFbjvOIx.js +1 -0
  55. package/dist/assets/chunk-QXUST7PY-BQj8er3i.js +7 -0
  56. package/dist/assets/chunk-QZHKN3VN-zZhG5AHT.js +1 -0
  57. package/dist/assets/chunk-S3R3BYOJ-ZHSbXnZr.js +2 -0
  58. package/dist/assets/chunk-TZMSLE5B-BAOCWmWp.js +1 -0
  59. package/dist/assets/classDiagram-2ON5EDUG-Dk_A06Wi.js +1 -0
  60. package/dist/assets/classDiagram-v2-WZHVMYZB-CI0Lejhn.js +1 -0
  61. package/dist/assets/clike-D1aNLn0X.js +1 -0
  62. package/dist/assets/clojure-DjNF1_gb.js +1 -0
  63. package/dist/assets/cmake-BDQMYLKM.js +1 -0
  64. package/dist/assets/cobol-DuPGAg14.js +1 -0
  65. package/dist/assets/code-block-37QAKDTI-BU3oxVk6.js +2 -0
  66. package/dist/assets/coffeescript-Cpt7RKvC.js +1 -0
  67. package/dist/assets/column-preview-CWToI8XM.js +1 -0
  68. package/dist/assets/command-B9VNhm0p.js +1 -0
  69. package/dist/assets/command-palette-ur_xyrxX.js +1 -0
  70. package/dist/assets/common-BqZ5L0i8.js +1 -0
  71. package/dist/assets/commonlisp-BRjl0xya.js +1 -0
  72. package/dist/assets/components-BouDP-tv.js +1 -0
  73. package/dist/assets/components-CUetByBv.js +1 -0
  74. package/dist/assets/config-DqxNMQDN.js +1 -0
  75. package/dist/assets/context-CqNy_uER.js +1 -0
  76. package/dist/assets/context-aware-panel-CD_txOWw.js +3 -0
  77. package/dist/assets/copy-CcUDATFX.js +1 -0
  78. package/dist/assets/copy-icon-WvgZ60QO.js +1 -0
  79. package/dist/assets/cose-bilkent-S5V4N54A-C4qI5Omf.js +1 -0
  80. package/dist/assets/createReducer-Dvh64vBW.js +1 -0
  81. package/dist/assets/crystal-BJ72BOy1.js +1 -0
  82. package/dist/assets/css-D-8RA_n9.js +1 -0
  83. package/dist/assets/cypher-qOLKQlRB.js +1 -0
  84. package/dist/assets/d-iOURkVzR.js +1 -0
  85. package/dist/assets/dagre-6UL2VRFP-CoEAbEhB.js +4 -0
  86. package/dist/assets/data-grid-overlay-editor-DXzdnLZF.js +1 -0
  87. package/dist/assets/datasource-C5fKDIEK.js +3 -0
  88. package/dist/assets/dates-CTqMeMGY.js +1 -0
  89. package/dist/assets/dependency-graph-panel-BCYRlR0F.js +5 -0
  90. package/dist/assets/diagram-PSM6KHXK-CzPUkhGz.js +24 -0
  91. package/dist/assets/diagram-QEK2KX5R-D5RBmWAK.js +43 -0
  92. package/dist/assets/diagram-S2PKOQOG-C8PeRX7S.js +24 -0
  93. package/dist/assets/dialog-C_NcD2pn.js +1 -0
  94. package/dist/assets/diff-Cdd81Zxl.js +1 -0
  95. package/dist/assets/dist-1u2or7ID.js +1 -0
  96. package/dist/assets/dist-6P6vjf93.js +1 -0
  97. package/dist/assets/dist-BWa7crGu.js +1 -0
  98. package/dist/assets/dist-BZOFXjSq.js +1 -0
  99. package/dist/assets/dist-BatEf-0f.js +1 -0
  100. package/dist/assets/dist-BgRFL8FO.js +1 -0
  101. package/dist/assets/dist-C6ohaMKU.js +6 -0
  102. package/dist/assets/dist-C8sUhiRj.js +1 -0
  103. package/dist/assets/dist-CO9Pg2Rc.js +1 -0
  104. package/dist/assets/dist-CSV6H5w_.js +1 -0
  105. package/dist/assets/dist-Cd9M8gLO.js +1 -0
  106. package/dist/assets/dist-Cj6Bv4PM.js +1 -0
  107. package/dist/assets/dist-CjkJ83NO.js +1 -0
  108. package/dist/assets/dist-D6IRobNQ.js +1 -0
  109. package/dist/assets/dist-DBaxVoPL.js +1 -0
  110. package/dist/assets/dist-DQg1jiNa.js +1 -0
  111. package/dist/assets/dist-DVCqT940.js +1 -0
  112. package/dist/assets/dist-DXjL2dGI.js +1 -0
  113. package/dist/assets/dist-DZurUgwR.js +1 -0
  114. package/dist/assets/dist-D_QUx5Gn.js +1 -0
  115. package/dist/assets/dist-DgEPWvX2.js +1 -0
  116. package/dist/assets/dist-Dq1aTs7B.js +1 -0
  117. package/dist/assets/dist-Dq3BlK4R.js +1 -0
  118. package/dist/assets/dist-EtGG9C1A.js +1 -0
  119. package/dist/assets/dist-NjId5Gdz.js +1 -0
  120. package/dist/assets/dist-NoS9f1Fr.js +1 -0
  121. package/dist/assets/dist-i55eG_gB.js +1 -0
  122. package/dist/assets/dist-rrswzGsS.js +1 -0
  123. package/dist/assets/dist-vu0dYsZ6.js +1 -0
  124. package/dist/assets/dist-wAlLVqgL.js +1 -0
  125. package/dist/assets/dockerfile-t2fxOBWV.js +1 -0
  126. package/dist/assets/documentation-panel-B-pPPA6b.js +1 -0
  127. package/dist/assets/download-UmTPygP7.js +9 -0
  128. package/dist/assets/dropdown-menu-BehqiLFL.js +1 -0
  129. package/dist/assets/dtd-CXebdwLo.js +1 -0
  130. package/dist/assets/dylan-YUx5_Nke.js +1 -0
  131. package/dist/assets/ecl-CktOv__x.js +1 -0
  132. package/dist/assets/edit-page-CxaQclsT.js +13 -0
  133. package/dist/assets/eiffel-Cwa25B6x.js +1 -0
  134. package/dist/assets/elm-COtRRWOj.js +1 -0
  135. package/dist/assets/en-US-f8tajDx1.js +1 -0
  136. package/dist/assets/erDiagram-Q2GNP2WA-Bvb9X3rD.js +60 -0
  137. package/dist/assets/erlang-Ir3c4mPd.js +1 -0
  138. package/dist/assets/error-banner-BYG94WiL.js +1 -0
  139. package/dist/assets/error-panel-CpC5W_ax.js +1 -0
  140. package/dist/assets/es-DKHH3Swu.js +5 -0
  141. package/dist/assets/esm-Clp2XqMu.js +1 -0
  142. package/dist/assets/esm-DnSMDF4m.js +1 -0
  143. package/dist/assets/factor-CwMUgBOu.js +1 -0
  144. package/dist/assets/factor-DLUSHz6o.js +1 -0
  145. package/dist/assets/field-BEgvDIrV.js +1 -0
  146. package/dist/assets/file-explorer-panel-CrD6YkZ_.js +26 -0
  147. package/dist/assets/file-icons-BTQcwa4T.js +1 -0
  148. package/dist/assets/floating-outline-Dz5Wcbfw.js +1 -0
  149. package/dist/assets/flowDiagram-NV44I4VS-CF0XcGrZ.js +162 -0
  150. package/dist/assets/focus-BRTg8M44.js +1 -0
  151. package/dist/assets/form-qtFXuhlh.js +2 -0
  152. package/dist/assets/formats-CQWEZHk-.js +1 -0
  153. package/dist/assets/formatting-DBrNlcJ6.js +1 -0
  154. package/dist/assets/forth-DdV4URDJ.js +1 -0
  155. package/dist/assets/fortran-rTDtSjFc.js +1 -0
  156. package/dist/assets/gallery-page-DhOJHDwV.js +1 -0
  157. package/dist/assets/ganttDiagram-JELNMOA3-BXfHO6g0.js +267 -0
  158. package/dist/assets/gas-B20k3keQ.js +1 -0
  159. package/dist/assets/gherkin-DdH6eiN0.js +1 -0
  160. package/dist/assets/gitGraph-G5XIXVHT-D3o7km_A.js +1 -0
  161. package/dist/assets/gitGraphDiagram-V2S2FVAM-Blhov9dO.js +65 -0
  162. package/dist/assets/glide-data-editor-CO6jMjYm.js +132 -0
  163. package/dist/assets/globals-DD4XdbWe.js +1 -0
  164. package/dist/assets/groovy-k_2ke765.js +1 -0
  165. package/dist/assets/haskell-JTqAy6cw.js +1 -0
  166. package/dist/assets/haxe-g4mjq9YQ.js +1 -0
  167. package/dist/assets/home-page-CwgtN9Ku.js +4 -0
  168. package/dist/assets/hooks-CLoML3Pf.js +1 -0
  169. package/dist/assets/html-to-image-CRCamxYo.js +2 -0
  170. package/dist/assets/idl-CQEReZIk.js +1 -0
  171. package/dist/assets/index-BrQynBQn.js +38 -0
  172. package/dist/assets/index-DtdvIKY3.css +2 -0
  173. package/dist/assets/info-VBDWY6EO-CPJvjUKi.js +1 -0
  174. package/dist/assets/infoDiagram-HS3SLOUP-CCrt0lHA.js +2 -0
  175. package/dist/assets/input-lyDIN6R6.js +1 -0
  176. package/dist/assets/isValid-DY4Mgbr7.js +1 -0
  177. package/dist/assets/javascript-Th71hKcK.js +1 -0
  178. package/dist/assets/journeyDiagram-XKPGCS4Q-Bs_9B9e_.js +139 -0
  179. package/dist/assets/julia-KdjfFIx7.js +1 -0
  180. package/dist/assets/kanban-definition-3W4ZIXB7-_GEp627b.js +89 -0
  181. package/dist/assets/katex-BalO4WMU.js +1 -0
  182. package/dist/assets/kiosk-mode-Di6uNlNd.js +1 -0
  183. package/dist/assets/label-CNWsXpEn.js +1 -0
  184. package/dist/assets/layout-OxzkS5En.js +5 -0
  185. package/dist/assets/line-BKm-YkCh.js +1 -0
  186. package/dist/assets/linear-DG7yljSg.js +1 -0
  187. package/dist/assets/links-Bfp-iNRX.js +1 -0
  188. package/dist/assets/livescript-OIMP9q9l.js +1 -0
  189. package/dist/assets/logs-panel-Dt4wzfgH.js +1 -0
  190. package/dist/assets/loro_wasm_bg-CvVVQqkx.js +1 -0
  191. package/dist/assets/lua-blzLZg7R.js +1 -0
  192. package/dist/assets/markdown-renderer-nMv2xwHt.js +10 -0
  193. package/dist/assets/mathematica-CMJa84MS.js +1 -0
  194. package/dist/assets/mbox-DVlt9Sx8.js +1 -0
  195. package/dist/assets/menu-items-BpHXKv51.js +1 -0
  196. package/dist/assets/mermaid-4DMBBIKO-gmMzGFR4.js +1 -0
  197. package/dist/assets/mermaid-DEOW_c2X.js +11 -0
  198. package/dist/assets/mermaid-parser.core-ChpHatjH.js +4 -0
  199. package/dist/assets/mhchem-DqNBdKjC.js +1 -0
  200. package/dist/assets/mindmap-definition-VGOIOE7T-CsErmnfz.js +68 -0
  201. package/dist/assets/mirc-CE9zFxnR.js +1 -0
  202. package/dist/assets/mllike-UPrOWD4R.js +1 -0
  203. package/dist/assets/modelica-CXEKMd0n.js +1 -0
  204. package/dist/assets/mscgen-CzEcWkMH.js +1 -0
  205. package/dist/assets/multi-map-0vmox9BD.js +1 -0
  206. package/dist/assets/mumps-DNi45Qjm.js +1 -0
  207. package/dist/assets/name-cell-input-CwvGCJkg.js +1 -0
  208. package/dist/assets/nsis-10Du03KF.js +1 -0
  209. package/dist/assets/nsis-Cjsw1q_J.js +1 -0
  210. package/dist/assets/ntriples-ByafJqO3.js +1 -0
  211. package/dist/assets/number-overlay-editor-zZDGu9D2.js +9 -0
  212. package/dist/assets/octave-Bg9NfY8T.js +1 -0
  213. package/dist/assets/ordinal-CIVqSC4M.js +1 -0
  214. package/dist/assets/outline-panel-CCmk1ERZ.js +1 -0
  215. package/dist/assets/oz-BqUh_R9x.js +1 -0
  216. package/dist/assets/packages-panel-BzayhsFC.js +1 -0
  217. package/dist/assets/packet-DYOGHKS2-0_hZggkb.js +1 -0
  218. package/dist/assets/panels-B7hsDiui.js +1 -0
  219. package/dist/assets/pascal-T5LJ_IPG.js +1 -0
  220. package/dist/assets/perl-QB_H1sT2.js +1 -0
  221. package/dist/assets/pie-VRWISCQL-QeXFV_RN.js +1 -0
  222. package/dist/assets/pieDiagram-ADFJNKIX-CHFQxGML.js +30 -0
  223. package/dist/assets/pig-BX8GE3n0.js +1 -0
  224. package/dist/assets/popover-BzqPa2Au.js +1 -0
  225. package/dist/assets/powershell-CgQaEAdZ.js +1 -0
  226. package/dist/assets/precisionRound-NX56vp6K.js +1 -0
  227. package/dist/assets/process-output-D_zUglHE.js +1 -0
  228. package/dist/assets/properties-obn8TWyy.js +1 -0
  229. package/dist/assets/protobuf-C-zxlF8D.js +1 -0
  230. package/dist/assets/pug--0L5ulw9.js +1 -0
  231. package/dist/assets/pug-C9pOca2F.js +1 -0
  232. package/dist/assets/puppet-05PW0eq8.js +1 -0
  233. package/dist/assets/python-DTi_lJAD.js +1 -0
  234. package/dist/assets/q-DDewC_-L.js +1 -0
  235. package/dist/assets/quadrantDiagram-AYHSOK5B-BWfhvbIs.js +7 -0
  236. package/dist/assets/r-BP2yA_lV.js +1 -0
  237. package/dist/assets/radar-ZZBFDIW7-CPk9iUBG.js +1 -0
  238. package/dist/assets/react-vega-BbTMwpa-.js +190 -0
  239. package/dist/assets/react-vega-_CJceHW7.js +1 -0
  240. package/dist/assets/readonly-python-code-BQo0UqCJ.js +1 -0
  241. package/dist/assets/renderShortcut-DG5sXSxr.js +1 -0
  242. package/dist/assets/request-registry-BPNvKw5y.js +1 -0
  243. package/dist/assets/requirementDiagram-UZGBJVZJ-DdZsVZPu.js +64 -0
  244. package/dist/assets/rpm-BTpPEnAJ.js +1 -0
  245. package/dist/assets/ruby-_km6sWpH.js +1 -0
  246. package/dist/assets/run-page-BN0QZ7-c.js +1 -0
  247. package/dist/assets/runs-CtxlyzdZ.js +1 -0
  248. package/dist/assets/sankeyDiagram-TZEHDZUN-BiKMK7q3.js +10 -0
  249. package/dist/assets/sas-BV0z5M7P.js +1 -0
  250. package/dist/assets/scheme-AMw7OHvW.js +1 -0
  251. package/dist/assets/scratchpad-panel-BpM3Nxzw.js +1 -0
  252. package/dist/assets/secrets-panel-BVJ1G2-2.js +1 -0
  253. package/dist/assets/select-Cnd3vm9n.js +1 -0
  254. package/dist/assets/sequenceDiagram-WL72ISMW-B1m5IqrQ.js +145 -0
  255. package/dist/assets/session-panel-CUtOop5w.js +1 -0
  256. package/dist/assets/share-T-ETw2Yt.js +1 -0
  257. package/dist/assets/shell-BepJCs0S.js +1 -0
  258. package/dist/assets/sieve-YvKFjNqY.js +1 -0
  259. package/dist/assets/slides-component-Bg8T1XwW.js +1 -0
  260. package/dist/assets/smalltalk-e8puLVxg.js +1 -0
  261. package/dist/assets/snippets-panel-CND2QIaH.js +1 -0
  262. package/dist/assets/sparql-IwwbUejm.js +1 -0
  263. package/dist/assets/spec-DnVBmJUh.js +1 -0
  264. package/dist/assets/src-lcGySDV2.js +1 -0
  265. package/dist/assets/state-C-thupmq.js +1 -0
  266. package/dist/assets/state-Cm3zkTs2.js +1 -0
  267. package/dist/assets/state-Dxl7WjW3.js +1 -0
  268. package/dist/assets/stateDiagram-FKZM4ZOC-B_fZr0Jz.js +1 -0
  269. package/dist/assets/stateDiagram-v2-4FDKWEC3-CnaooVt9.js +1 -0
  270. package/dist/assets/step-B5y1YzZ4.js +1 -0
  271. package/dist/assets/stex-CruVQx-P.js +1 -0
  272. package/dist/assets/stylus-C5qHDsoA.js +1 -0
  273. package/dist/assets/swift-CD6FyF1F.js +1 -0
  274. package/dist/assets/switch-C2PmTLIx.js +1 -0
  275. package/dist/assets/tcl-189LoKbJ.js +1 -0
  276. package/dist/assets/terminal-8keBq1HC.js +62 -0
  277. package/dist/assets/textile-dSHgbtG8.js +1 -0
  278. package/dist/assets/time-D8_flTb-.js +1 -0
  279. package/dist/assets/timeline-definition-IT6M3QCI-CiMZB-_n.js +61 -0
  280. package/dist/assets/toggle-DjUKacjU.js +1 -0
  281. package/dist/assets/toml-CWUvzxNs.js +1 -0
  282. package/dist/assets/tooltip-CR_izE8Q.js +1 -0
  283. package/dist/assets/tracing-Cab2_N64.js +1 -0
  284. package/dist/assets/tracing-panel-h6SS64Fd.js +2 -0
  285. package/dist/assets/tree-Duf22i7P.js +3 -0
  286. package/dist/assets/treemap-GDKQZRPO-BqT6xXWn.js +1 -0
  287. package/dist/assets/troff-CkFGw7sb.js +1 -0
  288. package/dist/assets/ttcn-B71Rl_FP.js +1 -0
  289. package/dist/assets/ttcn-cfg-BsJCQ8Pc.js +1 -0
  290. package/dist/assets/turtle-AJRCjN1N.js +1 -0
  291. package/dist/assets/useAddCell-fzJF_CdR.js +1 -0
  292. package/dist/assets/useBoolean-DJdaVVhu.js +1 -0
  293. package/dist/assets/useCellActionButton-C-mIavMW.js +1 -0
  294. package/dist/assets/useDateFormatter-CYAwsqZA.js +1 -0
  295. package/dist/assets/useDeleteCell-lfqkVcrN.js +1 -0
  296. package/dist/assets/useDependencyPanelTab-Nq81zNNI.js +1 -0
  297. package/dist/assets/useInstallPackage-BVUUWUU8.js +1 -0
  298. package/dist/assets/useNotebookActions-BAw99pt_.js +1 -0
  299. package/dist/assets/useNumberFormatter-D5CeG3Kn.js +1 -0
  300. package/dist/assets/usePress-CHKiC-9E.js +7 -0
  301. package/dist/assets/useRunCells-6ne-1pJW.js +1 -0
  302. package/dist/assets/useSplitCell-D8a8QoYd.js +1 -0
  303. package/dist/assets/utils-DnNnBV1N.js +61 -0
  304. package/dist/assets/vb-gPFTxjZr.js +1 -0
  305. package/dist/assets/vbscript-CMzdZB2G.js +1 -0
  306. package/dist/assets/vega-component-DnJzUfQO.js +1 -0
  307. package/dist/assets/vega-loader.browser-xq8miGHn.js +6 -0
  308. package/dist/assets/velocity-DBHzqIXP.js +1 -0
  309. package/dist/assets/verilog-CrrLE4DH.js +1 -0
  310. package/dist/assets/vhdl-CcYUxt_-.js +1 -0
  311. package/dist/assets/webidl-Cx4I26Tn.js +1 -0
  312. package/dist/assets/write-secret-modal-5AT0ZoJv.js +1 -0
  313. package/dist/assets/xquery-Cu7k_x_s.js +1 -0
  314. package/dist/assets/xychartDiagram-PRI3JC2R-B3F_v5OL.js +7 -0
  315. package/dist/assets/yacas-DEQ-2nrM.js +1 -0
  316. package/dist/assets/z80-D9sXBSXs.js +1 -0
  317. package/dist/index.html +145 -146
  318. package/package.json +1 -1
  319. package/src/__mocks__/notebook.ts +9 -9
  320. package/src/__mocks__/requests.ts +1 -0
  321. package/src/__tests__/branded.ts +20 -0
  322. package/src/components/app-config/user-config-form.tsx +5 -4
  323. package/src/components/data-table/__tests__/utils.test.ts +138 -1
  324. package/src/components/data-table/charts/__tests__/storage.test.ts +7 -7
  325. package/src/components/data-table/context-menu.tsx +9 -5
  326. package/src/components/data-table/data-table.tsx +3 -0
  327. package/src/components/data-table/range-focus/__tests__/atoms.test.ts +8 -2
  328. package/src/components/data-table/range-focus/__tests__/test-utils.ts +2 -0
  329. package/src/components/data-table/range-focus/__tests__/utils.test.ts +82 -8
  330. package/src/components/data-table/range-focus/atoms.ts +2 -2
  331. package/src/components/data-table/range-focus/utils.ts +50 -12
  332. package/src/components/data-table/types.ts +7 -0
  333. package/src/components/data-table/utils.ts +87 -0
  334. package/src/components/editor/__tests__/data-attributes.test.tsx +8 -8
  335. package/src/components/editor/ai/__tests__/completion-utils.test.ts +15 -15
  336. package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +2 -2
  337. package/src/components/editor/connections/storage/as-code.ts +2 -2
  338. package/src/components/editor/file-tree/file-explorer.tsx +16 -2
  339. package/src/components/editor/file-tree/file-viewer.tsx +17 -3
  340. package/src/components/editor/navigation/__tests__/clipboard.test.ts +2 -2
  341. package/src/components/editor/navigation/__tests__/selection.test.ts +7 -6
  342. package/src/components/editor/navigation/__tests__/state.test.ts +8 -7
  343. package/src/components/editor/output/MarimoErrorOutput.tsx +7 -7
  344. package/src/components/editor/output/__tests__/traceback.test.tsx +4 -4
  345. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +4 -4
  346. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +8 -1
  347. package/src/components/storage/storage-file-viewer.tsx +35 -1
  348. package/src/components/storage/storage-inspector.tsx +9 -4
  349. package/src/components/storage/storage-snippets.ts +3 -3
  350. package/src/components/tracing/tracing.tsx +3 -1
  351. package/src/components/ui/range-slider.tsx +108 -1
  352. package/src/core/ai/__tests__/staged-cells.test.ts +9 -8
  353. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +31 -31
  354. package/src/core/ai/context/providers/__tests__/datasource.test.ts +3 -3
  355. package/src/core/ai/context/providers/__tests__/tables.test.ts +3 -2
  356. package/src/core/ai/context/providers/__tests__/variable.test.ts +84 -63
  357. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +10 -9
  358. package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +6 -6
  359. package/src/core/ai/tools/edit-notebook-tool.ts +3 -3
  360. package/src/core/cells/__tests__/add-missing-import.test.ts +3 -3
  361. package/src/core/cells/__tests__/apply-transaction.test.ts +279 -0
  362. package/src/core/cells/__tests__/cells.test.ts +198 -135
  363. package/src/core/cells/__tests__/document-changes.test.ts +575 -0
  364. package/src/core/cells/__tests__/document-roundtrip.test.ts +376 -0
  365. package/src/core/cells/__tests__/focus.test.ts +5 -4
  366. package/src/core/cells/__tests__/logs.test.ts +13 -12
  367. package/src/core/cells/__tests__/pending-delete-service.test.tsx +3 -3
  368. package/src/core/cells/__tests__/runs.test.ts +22 -21
  369. package/src/core/cells/__tests__/scrollCellIntoView.test.ts +8 -7
  370. package/src/core/cells/__tests__/session.test.ts +23 -22
  371. package/src/core/cells/cells.ts +29 -4
  372. package/src/core/cells/document-changes.ts +644 -0
  373. package/src/core/cells/ids.ts +5 -5
  374. package/src/core/cells/logs.ts +2 -2
  375. package/src/core/cells/runs.ts +6 -8
  376. package/src/core/codemirror/__tests__/format.test.ts +34 -36
  377. package/src/core/codemirror/__tests__/setup.test.ts +2 -2
  378. package/src/core/codemirror/cells/__tests__/extensions.test.ts +114 -0
  379. package/src/core/codemirror/cells/__tests__/traceback-decorations.test.ts +33 -32
  380. package/src/core/codemirror/cells/extensions.ts +66 -23
  381. package/src/core/codemirror/completion/__tests__/keymap.test.ts +15 -35
  382. package/src/core/codemirror/completion/keymap.ts +14 -4
  383. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +12 -13
  384. package/src/core/codemirror/language/__tests__/utils.test.ts +3 -3
  385. package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +7 -8
  386. package/src/core/codemirror/language/languages/python.ts +4 -0
  387. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +4 -3
  388. package/src/core/codemirror/lsp/notebook-lsp.ts +28 -2
  389. package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +7 -6
  390. package/src/core/codemirror/reactive-references/analyzer.ts +2 -2
  391. package/src/core/codemirror/rtc/loro/__tests__/sync.test.ts +52 -0
  392. package/src/core/codemirror/rtc/loro/sync.ts +1 -0
  393. package/src/core/datasets/__tests__/data-source.test.ts +5 -6
  394. package/src/core/datasets/state.ts +1 -1
  395. package/src/core/errors/__tests__/errors.test.ts +2 -1
  396. package/src/core/export/__tests__/hooks.test.ts +37 -36
  397. package/src/core/islands/bridge.ts +1 -0
  398. package/src/core/islands/main.ts +4 -7
  399. package/src/core/kernel/__tests__/handlers.test.ts +5 -4
  400. package/src/core/kernel/handlers.ts +7 -4
  401. package/src/core/network/DeferredRequestRegistry.ts +2 -2
  402. package/src/core/network/__tests__/CachingRequestRegistry.test.ts +9 -10
  403. package/src/core/network/__tests__/DeferredRequestRegistry.test.ts +4 -6
  404. package/src/core/network/requests-lazy.ts +1 -0
  405. package/src/core/network/requests-network.ts +9 -0
  406. package/src/core/network/requests-static.ts +1 -0
  407. package/src/core/network/requests-toasting.tsx +1 -0
  408. package/src/core/network/types.ts +5 -0
  409. package/src/core/static/__tests__/virtual-file-tracker.test.ts +8 -8
  410. package/src/core/static/virtual-file-tracker.ts +1 -1
  411. package/src/core/storage/__tests__/state.test.ts +31 -21
  412. package/src/core/storage/state.ts +1 -1
  413. package/src/core/variables/__tests__/state.test.ts +6 -6
  414. package/src/core/variables/types.ts +2 -2
  415. package/src/core/wasm/__tests__/state.test.ts +8 -8
  416. package/src/core/wasm/bridge.ts +1 -0
  417. package/src/core/websocket/useMarimoKernelConnection.tsx +31 -16
  418. package/src/css/app/fonts.css +6 -6
  419. package/src/css/md-tooltip.css +4 -39
  420. package/src/css/md.css +7 -0
  421. package/src/fonts/Fira_Mono/FiraMono-Bold.woff2 +0 -0
  422. package/src/fonts/Fira_Mono/FiraMono-Medium.woff2 +0 -0
  423. package/src/fonts/Fira_Mono/FiraMono-Regular.woff2 +0 -0
  424. package/src/fonts/Lora/Lora-VariableFont_wght.woff2 +0 -0
  425. package/src/fonts/PT_Sans/PTSans-Bold.woff2 +0 -0
  426. package/src/fonts/PT_Sans/PTSans-Regular.woff2 +0 -0
  427. package/src/plugins/core/RenderHTML.tsx +17 -0
  428. package/src/plugins/core/__test__/RenderHTML.test.ts +45 -0
  429. package/src/plugins/core/sanitize-html.ts +25 -18
  430. package/src/plugins/impl/DataTablePlugin.tsx +23 -2
  431. package/src/plugins/impl/SliderPlugin.tsx +1 -3
  432. package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +120 -0
  433. package/src/plugins/impl/anywidget/model.ts +1 -2
  434. package/src/stories/cell.stories.tsx +8 -8
  435. package/src/stories/layout/vertical/one-column.stories.tsx +9 -8
  436. package/src/stories/log-viewer.stories.tsx +8 -8
  437. package/src/stories/variables.stories.tsx +2 -2
  438. package/src/utils/__tests__/download.test.tsx +21 -20
  439. package/src/utils/copy.ts +18 -5
  440. package/src/utils/createReducer.ts +26 -11
  441. package/src/utils/download.ts +4 -3
  442. package/src/utils/html-to-image.ts +6 -0
  443. package/src/utils/json/base64.ts +3 -3
  444. package/src/utils/traceback.ts +5 -3
  445. package/dist/assets/CellStatus-CDSBsjjF.js +0 -1
  446. package/dist/assets/ConnectedDataExplorerComponent-Buaffg3u.js +0 -1
  447. package/dist/assets/DeferredRequestRegistry-O6RDJKs0.js +0 -1
  448. package/dist/assets/FiraMono-Bold-CLVRCuM9.ttf +0 -0
  449. package/dist/assets/FiraMono-Medium-DU3aDxX5.ttf +0 -0
  450. package/dist/assets/FiraMono-Regular-BTCkDNvf.ttf +0 -0
  451. package/dist/assets/ImperativeModal-qEtcJ95s.js +0 -1
  452. package/dist/assets/JsonOutput-DKXKGKvX.js +0 -46
  453. package/dist/assets/LazyAnyLanguageCodeMirror-m8w66E4s.js +0 -2
  454. package/dist/assets/Lora-VariableFont_wght-B2ootaw-.ttf +0 -0
  455. package/dist/assets/MarimoErrorOutput-az74f3Mp.js +0 -7
  456. package/dist/assets/PTSans-Bold-D9fedIX3.ttf +0 -0
  457. package/dist/assets/PTSans-Regular-CxL0S8W7.ttf +0 -0
  458. package/dist/assets/RenderHTML-DJ8khuob.js +0 -1
  459. package/dist/assets/add-cell-with-ai-DUn4LN4W.js +0 -92
  460. package/dist/assets/add-connection-dialog-CBz0AUVX.js +0 -167
  461. package/dist/assets/agent-panel-u83dsDsM.js +0 -287
  462. package/dist/assets/ai-model-dropdown-DPTa_EpU.js +0 -5
  463. package/dist/assets/alert-dialog-9WfvUF7e.js +0 -11
  464. package/dist/assets/any-language-editor-DwQMnAM3.js +0 -1
  465. package/dist/assets/apl-CWQZjEHB.js +0 -1
  466. package/dist/assets/app-config-button-rDu-lCIB.js +0 -1
  467. package/dist/assets/arc-BrTIAGt4.js +0 -1
  468. package/dist/assets/architecture-7HQA4BMR-BewjmwdA.js +0 -1
  469. package/dist/assets/architectureDiagram-VXUJARFQ-DfMHHFZ3.js +0 -36
  470. package/dist/assets/asciiarmor-YkqeOS7J.js +0 -1
  471. package/dist/assets/asn1-CXKIzj3m.js +0 -1
  472. package/dist/assets/azure-BTXHztTw.js +0 -1
  473. package/dist/assets/blockDiagram-VD42YOAC-CuEDwbg7.js +0 -122
  474. package/dist/assets/brainfuck-BATyDEza.js +0 -1
  475. package/dist/assets/c4Diagram-YG6GDRKO-CD9uz7WG.js +0 -10
  476. package/dist/assets/cache-panel-qIxnndwr.js +0 -1
  477. package/dist/assets/cell-editor-DX7IcqNr.js +0 -23
  478. package/dist/assets/cell-link-Q_UEP94Z.js +0 -1
  479. package/dist/assets/cells-fq1RMGX_.js +0 -229
  480. package/dist/assets/channel-CkT8Qdo2.js +0 -1
  481. package/dist/assets/chat-display-D_Fuuy6r.js +0 -1
  482. package/dist/assets/chat-panel-BO-JoQSp.js +0 -3
  483. package/dist/assets/chunk-4BX2VUAB-DOQhLGwX.js +0 -1
  484. package/dist/assets/chunk-55IACEB6-D0TKhzEY.js +0 -1
  485. package/dist/assets/chunk-5FQGJX7Z-CM1a_K7I.js +0 -113
  486. package/dist/assets/chunk-ABZYJK2D-D_Wumzom.js +0 -80
  487. package/dist/assets/chunk-ATLVNIR6-BZ0lTgIn.js +0 -1
  488. package/dist/assets/chunk-B4BG7PRW-Dw1S6osV.js +0 -165
  489. package/dist/assets/chunk-CVBHYZKI-BmNXddyI.js +0 -1
  490. package/dist/assets/chunk-DI55MBZ5-Q63FTCPP.js +0 -220
  491. package/dist/assets/chunk-EXTU4WIE-CfkJ_R7W.js +0 -1
  492. package/dist/assets/chunk-FMBD7UC4-BF_CXOnN.js +0 -15
  493. package/dist/assets/chunk-HN2XXSSU-BstCPYtG.js +0 -1
  494. package/dist/assets/chunk-JA3XYJ7Z-B41fGeoj.js +0 -70
  495. package/dist/assets/chunk-JZLCHNYA-D43EJxQw.js +0 -54
  496. package/dist/assets/chunk-MI3HLSF2-BceZdyTR.js +0 -32
  497. package/dist/assets/chunk-N4CR4FBY-DCtw0-ni.js +0 -2
  498. package/dist/assets/chunk-QN33PNHL-CLA2rsaS.js +0 -1
  499. package/dist/assets/chunk-QXUST7PY-De1DpbnL.js +0 -7
  500. package/dist/assets/chunk-QZHKN3VN-D3EIvP2i.js +0 -1
  501. package/dist/assets/chunk-S3R3BYOJ-qrwvlUdq.js +0 -2
  502. package/dist/assets/chunk-TZMSLE5B-C4KcThb0.js +0 -1
  503. package/dist/assets/classDiagram-2ON5EDUG-BhMT_rTz.js +0 -1
  504. package/dist/assets/classDiagram-v2-WZHVMYZB-D-F4WEyb.js +0 -1
  505. package/dist/assets/clike-C3ewt06X.js +0 -1
  506. package/dist/assets/clojure-DSdxtK57.js +0 -1
  507. package/dist/assets/cmake-b6COJhkL.js +0 -1
  508. package/dist/assets/cobol-0au-d4Af.js +0 -1
  509. package/dist/assets/code-block-37QAKDTI-D4FF4cnN.js +0 -2
  510. package/dist/assets/coffeescript-CO6miDRN.js +0 -1
  511. package/dist/assets/column-preview-WsubyItX.js +0 -1
  512. package/dist/assets/command-palette-Bez4BqJF.js +0 -1
  513. package/dist/assets/command-rfxSsiHU.js +0 -1
  514. package/dist/assets/common-BYwO983A.js +0 -1
  515. package/dist/assets/commonlisp-ViswrHum.js +0 -1
  516. package/dist/assets/components-Bpgzv_5_.js +0 -1
  517. package/dist/assets/components-Ozq0825a.js +0 -1
  518. package/dist/assets/config-3Aq84phF.js +0 -1
  519. package/dist/assets/context-CIAP2NOh.js +0 -1
  520. package/dist/assets/context-aware-panel-CfsfBlhO.js +0 -3
  521. package/dist/assets/copy-YwM0Pd7v.js +0 -1
  522. package/dist/assets/copy-icon-BgmMM9Zg.js +0 -1
  523. package/dist/assets/cose-bilkent-S5V4N54A-Bd5HJPaN.js +0 -1
  524. package/dist/assets/createReducer-Drh7NmIR.js +0 -1
  525. package/dist/assets/crystal-BcOI1XlU.js +0 -1
  526. package/dist/assets/css-CCWfM5vT.js +0 -1
  527. package/dist/assets/cypher-BKbuDk70.js +0 -1
  528. package/dist/assets/d-4fbeW9Dj.js +0 -1
  529. package/dist/assets/dagre-6UL2VRFP-BhMnPhuU.js +0 -4
  530. package/dist/assets/data-grid-overlay-editor-kbv73SQ7.js +0 -1
  531. package/dist/assets/datasource-F9sJtuof.js +0 -3
  532. package/dist/assets/dates-CHaNfieI.js +0 -1
  533. package/dist/assets/dependency-graph-panel-AOBcX2tP.js +0 -5
  534. package/dist/assets/diagram-PSM6KHXK-Cr2t4zul.js +0 -24
  535. package/dist/assets/diagram-QEK2KX5R-DLU_hSO4.js +0 -43
  536. package/dist/assets/diagram-S2PKOQOG-C7EkNAO3.js +0 -24
  537. package/dist/assets/dialog-CVN1lcMF.js +0 -1
  538. package/dist/assets/diff-CV59_hp-.js +0 -1
  539. package/dist/assets/dist-6FIAeDIu.js +0 -1
  540. package/dist/assets/dist-BNC_tnlW.js +0 -6
  541. package/dist/assets/dist-BTqMkf4j.js +0 -1
  542. package/dist/assets/dist-BXXPfIam.js +0 -1
  543. package/dist/assets/dist-BZeePkbd.js +0 -1
  544. package/dist/assets/dist-BiZQlfhr.js +0 -1
  545. package/dist/assets/dist-BoDHthoc.js +0 -1
  546. package/dist/assets/dist-Br306776.js +0 -1
  547. package/dist/assets/dist-Br4KMeY4.js +0 -1
  548. package/dist/assets/dist-By6zhkxZ.js +0 -1
  549. package/dist/assets/dist-C3MmXcLA.js +0 -1
  550. package/dist/assets/dist-CXLJUPFl.js +0 -1
  551. package/dist/assets/dist-CblX3KGI.js +0 -1
  552. package/dist/assets/dist-CcGcwrUD.js +0 -1
  553. package/dist/assets/dist-ClzRAVN-.js +0 -1
  554. package/dist/assets/dist-Cp60fE5Z.js +0 -1
  555. package/dist/assets/dist-CsRbK9-Y.js +0 -1
  556. package/dist/assets/dist-DHw9sXeN.js +0 -1
  557. package/dist/assets/dist-DJBpXGro.js +0 -1
  558. package/dist/assets/dist-DVbTmqCA.js +0 -1
  559. package/dist/assets/dist-DbK_4_qo.js +0 -1
  560. package/dist/assets/dist-DlTbNRBn.js +0 -1
  561. package/dist/assets/dist-DrceDAhM.js +0 -1
  562. package/dist/assets/dist-Du0qZeXz.js +0 -1
  563. package/dist/assets/dist-Tk70DR_I.js +0 -1
  564. package/dist/assets/dist-a0FfbvMD.js +0 -1
  565. package/dist/assets/dist-cfkfP0ni.js +0 -1
  566. package/dist/assets/dist-e6Ho4upI.js +0 -1
  567. package/dist/assets/dist-mxGLXOFm.js +0 -1
  568. package/dist/assets/dist-pzQ9JG-p.js +0 -1
  569. package/dist/assets/dockerfile-ClV2Mqz8.js +0 -1
  570. package/dist/assets/documentation-panel-D28MpqbI.js +0 -1
  571. package/dist/assets/download-B9_ToVd4.js +0 -9
  572. package/dist/assets/dropdown-menu-DdPu5Kfu.js +0 -1
  573. package/dist/assets/dtd-BAjS2EMD.js +0 -1
  574. package/dist/assets/dylan-CjAEbzAl.js +0 -1
  575. package/dist/assets/ecl-DegMF2Uo.js +0 -1
  576. package/dist/assets/edit-page-otS-QvnC.js +0 -13
  577. package/dist/assets/eiffel-D_UXtJqE.js +0 -1
  578. package/dist/assets/elm-CV-6VdWh.js +0 -1
  579. package/dist/assets/en-US-BO8E69bZ.js +0 -1
  580. package/dist/assets/erDiagram-Q2GNP2WA-DqlEo_Us.js +0 -60
  581. package/dist/assets/erlang-C3Vp1oq_.js +0 -1
  582. package/dist/assets/error-banner-BRG6IPhC.js +0 -1
  583. package/dist/assets/error-panel-RRoj_iOR.js +0 -1
  584. package/dist/assets/es-CzkousWe.js +0 -5
  585. package/dist/assets/esm-CBkHtTOV.js +0 -1
  586. package/dist/assets/esm-DhTsVMLM.js +0 -1
  587. package/dist/assets/factor-CBMQHXUW.js +0 -1
  588. package/dist/assets/factor-CrpY0izf.js +0 -1
  589. package/dist/assets/field-B1jGbQlH.js +0 -1
  590. package/dist/assets/file-explorer-panel-CB8vF5ob.js +0 -26
  591. package/dist/assets/file-icons-CWLHDa1J.js +0 -1
  592. package/dist/assets/floating-outline-BvQKiC0F.js +0 -1
  593. package/dist/assets/flowDiagram-NV44I4VS-CQlIJ12H.js +0 -162
  594. package/dist/assets/focus-DYwTiH9-.js +0 -1
  595. package/dist/assets/form-CrQYrsUC.js +0 -2
  596. package/dist/assets/formats-rhOJovGE.js +0 -1
  597. package/dist/assets/formatting-B4ZCH3ol.js +0 -1
  598. package/dist/assets/forth-C_TcrpRK.js +0 -1
  599. package/dist/assets/fortran-DOs2FQj2.js +0 -1
  600. package/dist/assets/gallery-page-eRea0yic.js +0 -1
  601. package/dist/assets/ganttDiagram-JELNMOA3-B3EGIuZL.js +0 -267
  602. package/dist/assets/gas-Cg-F3pmb.js +0 -1
  603. package/dist/assets/gherkin-CaXqq9kA.js +0 -1
  604. package/dist/assets/gitGraph-G5XIXVHT-iDzw7G2X.js +0 -1
  605. package/dist/assets/gitGraphDiagram-V2S2FVAM-h5SlguJK.js +0 -65
  606. package/dist/assets/glide-data-editor-xt5xNZeV.js +0 -132
  607. package/dist/assets/globals-BsV5fVR-.js +0 -1
  608. package/dist/assets/groovy-DmxumoMi.js +0 -1
  609. package/dist/assets/haskell-BZ-cKqgz.js +0 -1
  610. package/dist/assets/haxe-x-4elm0t.js +0 -1
  611. package/dist/assets/home-page-itW0tRmv.js +0 -4
  612. package/dist/assets/hooks-CHx5dUUq.js +0 -1
  613. package/dist/assets/html-to-image-BnSc-Wa0.js +0 -2
  614. package/dist/assets/idl-DNkkzHKH.js +0 -1
  615. package/dist/assets/index-0n92c_W7.js +0 -38
  616. package/dist/assets/index-GjXovVsl.css +0 -2
  617. package/dist/assets/info-VBDWY6EO-CPHm9IfG.js +0 -1
  618. package/dist/assets/infoDiagram-HS3SLOUP-pzpClObZ.js +0 -2
  619. package/dist/assets/input-CUwqpKjd.js +0 -1
  620. package/dist/assets/isValid-BGe7pJXT.js +0 -1
  621. package/dist/assets/javascript-B0uQ9oZ_.js +0 -1
  622. package/dist/assets/journeyDiagram-XKPGCS4Q-BrdRi92v.js +0 -139
  623. package/dist/assets/julia-DBflXO9b.js +0 -1
  624. package/dist/assets/kanban-definition-3W4ZIXB7-B6WqgFqh.js +0 -89
  625. package/dist/assets/katex-YDobqqVd.js +0 -1
  626. package/dist/assets/kiosk-mode-DNjEnIWb.js +0 -1
  627. package/dist/assets/label-TNNaT1M9.js +0 -1
  628. package/dist/assets/layout-CwFtCyW8.js +0 -5
  629. package/dist/assets/line-BBSd2MUH.js +0 -1
  630. package/dist/assets/linear-BP9rwmWK.js +0 -1
  631. package/dist/assets/links-CIQwYQ48.js +0 -1
  632. package/dist/assets/livescript-DRwwdQDY.js +0 -1
  633. package/dist/assets/logs-panel-BU1tNEVc.js +0 -1
  634. package/dist/assets/loro_wasm_bg-MY7PmKYj.js +0 -1
  635. package/dist/assets/lua-D_CRYz1e.js +0 -1
  636. package/dist/assets/markdown-renderer-MR9df58W.js +0 -10
  637. package/dist/assets/mathematica-D28k0VAB.js +0 -1
  638. package/dist/assets/mbox-B74-q1nN.js +0 -1
  639. package/dist/assets/menu-items-UxKrm8hS.js +0 -1
  640. package/dist/assets/mermaid-4DMBBIKO-PoHnhmy8.js +0 -1
  641. package/dist/assets/mermaid-Djr3jUAB.js +0 -11
  642. package/dist/assets/mermaid-parser.core-DR82IMb2.js +0 -4
  643. package/dist/assets/mhchem-B98RQJ-y.js +0 -1
  644. package/dist/assets/mindmap-definition-VGOIOE7T-DAmJpbPM.js +0 -68
  645. package/dist/assets/mirc-CW8yiVay.js +0 -1
  646. package/dist/assets/mllike-BwZpH7CZ.js +0 -1
  647. package/dist/assets/mode-AcL8c6qH.js +0 -1
  648. package/dist/assets/modelica-AhRO-ii8.js +0 -1
  649. package/dist/assets/mscgen-CJZUmlSk.js +0 -1
  650. package/dist/assets/multi-map-Pp1P2DOX.js +0 -1
  651. package/dist/assets/mumps-BTPWDvZ1.js +0 -1
  652. package/dist/assets/name-cell-input-DVFEv_aO.js +0 -1
  653. package/dist/assets/nsis-BeaU1Q2K.js +0 -1
  654. package/dist/assets/nsis-CuVPiHG5.js +0 -1
  655. package/dist/assets/ntriples-eNmSbiOL.js +0 -1
  656. package/dist/assets/number-overlay-editor-D__AflXQ.js +0 -9
  657. package/dist/assets/octave-BboqqX2Z.js +0 -1
  658. package/dist/assets/ordinal-BjO5SoTk.js +0 -1
  659. package/dist/assets/outline-panel-CP0oIuiU.js +0 -1
  660. package/dist/assets/oz-eUT9rD_n.js +0 -1
  661. package/dist/assets/packages-panel-CzRELimG.js +0 -1
  662. package/dist/assets/packet-DYOGHKS2-0KdzLf9c.js +0 -1
  663. package/dist/assets/panels-wTweRyIv.js +0 -1
  664. package/dist/assets/pascal-Bl9h-Ruv.js +0 -1
  665. package/dist/assets/perl-B1GdYx3j.js +0 -1
  666. package/dist/assets/pie-VRWISCQL-C6EIS9iq.js +0 -1
  667. package/dist/assets/pieDiagram-ADFJNKIX-DbGIFRoq.js +0 -30
  668. package/dist/assets/pig-CoZHWNtw.js +0 -1
  669. package/dist/assets/popover-BPGG2gPG.js +0 -1
  670. package/dist/assets/powershell-B2p71KcT.js +0 -1
  671. package/dist/assets/precisionRound-BOmLQIKI.js +0 -1
  672. package/dist/assets/process-output-CTVsT--B.js +0 -1
  673. package/dist/assets/properties-Cs9aaJGK.js +0 -1
  674. package/dist/assets/protobuf-DFCnQG_o.js +0 -1
  675. package/dist/assets/pug-BShaWOtD.js +0 -1
  676. package/dist/assets/pug-v81J9ytZ.js +0 -1
  677. package/dist/assets/puppet-4yIFv98Z.js +0 -1
  678. package/dist/assets/python-ByMRQ0aE.js +0 -1
  679. package/dist/assets/q-C7EgGttK.js +0 -1
  680. package/dist/assets/quadrantDiagram-AYHSOK5B-CLAtyple.js +0 -7
  681. package/dist/assets/r-DpLLx5HE.js +0 -1
  682. package/dist/assets/radar-ZZBFDIW7-IOV25h32.js +0 -1
  683. package/dist/assets/react-vega-BZav_-2n.js +0 -190
  684. package/dist/assets/react-vega-Da-Ps9UW.js +0 -1
  685. package/dist/assets/readonly-python-code-DH-1xZGq.js +0 -1
  686. package/dist/assets/renderShortcut-CnD1Dah5.js +0 -1
  687. package/dist/assets/request-registry-B-7cIM_I.js +0 -1
  688. package/dist/assets/requirementDiagram-UZGBJVZJ-DDDTB1LD.js +0 -64
  689. package/dist/assets/rpm-DlCq0FVA.js +0 -1
  690. package/dist/assets/ruby-BGmSEBWH.js +0 -1
  691. package/dist/assets/run-page-FCvGnICa.js +0 -1
  692. package/dist/assets/runs-Bhy0tbWr.js +0 -1
  693. package/dist/assets/sankeyDiagram-TZEHDZUN-DAWPOfBw.js +0 -10
  694. package/dist/assets/sas-CFcv5xFe.js +0 -1
  695. package/dist/assets/scheme-BgRfkNY3.js +0 -1
  696. package/dist/assets/scratchpad-panel-k9lrm-rC.js +0 -1
  697. package/dist/assets/secrets-panel-B1Z-6dmz.js +0 -1
  698. package/dist/assets/select-CxT2Geqr.js +0 -1
  699. package/dist/assets/sequenceDiagram-WL72ISMW-D_qAidD2.js +0 -145
  700. package/dist/assets/session-panel-WhN0qilM.js +0 -1
  701. package/dist/assets/share-BdH_5I58.js +0 -1
  702. package/dist/assets/shell-CKQz0rkv.js +0 -1
  703. package/dist/assets/sieve-D0P6XnTD.js +0 -1
  704. package/dist/assets/slides-component-Brm_TS4x.js +0 -1
  705. package/dist/assets/smalltalk-Dcg9QwVr.js +0 -1
  706. package/dist/assets/snippets-panel-BCDHUuku.js +0 -1
  707. package/dist/assets/sparql-f01xs6VH.js +0 -1
  708. package/dist/assets/spec-DbmSqx09.js +0 -1
  709. package/dist/assets/src-Bp_72rVO.js +0 -1
  710. package/dist/assets/state-3V5UxC3B.js +0 -1
  711. package/dist/assets/state-CBmCYWFH.js +0 -1
  712. package/dist/assets/state-Ce7CVShi.js +0 -1
  713. package/dist/assets/stateDiagram-FKZM4ZOC-C7qgDrGA.js +0 -1
  714. package/dist/assets/stateDiagram-v2-4FDKWEC3-CEqeIlM0.js +0 -1
  715. package/dist/assets/step-BkfKj3CL.js +0 -1
  716. package/dist/assets/stex-BBWVYm-R.js +0 -1
  717. package/dist/assets/stylus-BjzHGGgo.js +0 -1
  718. package/dist/assets/swift-DOptU29u.js +0 -1
  719. package/dist/assets/switch-CVKxYu_0.js +0 -1
  720. package/dist/assets/tcl-vC8etUeQ.js +0 -1
  721. package/dist/assets/terminal-Cr7wbEjz.js +0 -62
  722. package/dist/assets/textile-BfLqcKXP.js +0 -1
  723. package/dist/assets/time-D2GKc0U6.js +0 -1
  724. package/dist/assets/timeline-definition-IT6M3QCI-hd6uJKGs.js +0 -61
  725. package/dist/assets/toggle-RCwU-rnE.js +0 -1
  726. package/dist/assets/toml-rX0_Isgp.js +0 -1
  727. package/dist/assets/tooltip-D9723Brr.js +0 -1
  728. package/dist/assets/tracing-DUVd0jtl.js +0 -1
  729. package/dist/assets/tracing-panel-CuTxPn_x.js +0 -2
  730. package/dist/assets/tree-Ch2-GuhG.js +0 -3
  731. package/dist/assets/treemap-GDKQZRPO-BUa0eLeZ.js +0 -1
  732. package/dist/assets/troff-C1lPb0WN.js +0 -1
  733. package/dist/assets/ttcn-D5dxusfs.js +0 -1
  734. package/dist/assets/ttcn-cfg-Dj2ybct-.js +0 -1
  735. package/dist/assets/turtle-BiTItqZm.js +0 -1
  736. package/dist/assets/useAddCell-YC7rpcmD.js +0 -1
  737. package/dist/assets/useBoolean-m1e6E3Ao.js +0 -1
  738. package/dist/assets/useCellActionButton-GUb2fXU8.js +0 -1
  739. package/dist/assets/useDateFormatter-CpE7XQLs.js +0 -1
  740. package/dist/assets/useDeleteCell-DRUDRiy0.js +0 -1
  741. package/dist/assets/useDependencyPanelTab-nFVMlEx0.js +0 -1
  742. package/dist/assets/useInstallPackage-C9V-on2J.js +0 -1
  743. package/dist/assets/useNotebookActions-ChLHy-0O.js +0 -1
  744. package/dist/assets/useNumberFormatter-DbDKSvEd.js +0 -1
  745. package/dist/assets/usePress-BHGkpw8X.js +0 -7
  746. package/dist/assets/useRunCells-5m6jCnyo.js +0 -1
  747. package/dist/assets/useSplitCell-DGD9smMq.js +0 -1
  748. package/dist/assets/utils-CdjCA1J8.js +0 -61
  749. package/dist/assets/vb-roE2hgal.js +0 -1
  750. package/dist/assets/vbscript-2s97682t.js +0 -1
  751. package/dist/assets/vega-component-CRbeDmeM.js +0 -1
  752. package/dist/assets/vega-loader.browser-CZV6_g2i.js +0 -6
  753. package/dist/assets/velocity-D0YPg3VZ.js +0 -1
  754. package/dist/assets/verilog-Btszgjcd.js +0 -1
  755. package/dist/assets/vhdl-enS91NZh.js +0 -1
  756. package/dist/assets/webidl-DQMyFjhm.js +0 -1
  757. package/dist/assets/write-secret-modal-BCvuRAFb.js +0 -1
  758. package/dist/assets/xquery-D5Jh9c_Z.js +0 -1
  759. package/dist/assets/xychartDiagram-PRI3JC2R-CXlUBSbQ.js +0 -7
  760. package/dist/assets/yacas-CTzSIaAf.js +0 -1
  761. package/dist/assets/z80-Dt0hdUwP.js +0 -1
  762. package/src/fonts/Fira_Mono/FiraMono-Bold.ttf +0 -0
  763. package/src/fonts/Fira_Mono/FiraMono-Medium.ttf +0 -0
  764. package/src/fonts/Fira_Mono/FiraMono-Regular.ttf +0 -0
  765. package/src/fonts/Lora/Lora-Italic-VariableFont_wght.ttf +0 -0
  766. package/src/fonts/Lora/Lora-VariableFont_wght.ttf +0 -0
  767. package/src/fonts/Lora/static/Lora-Bold.ttf +0 -0
  768. package/src/fonts/Lora/static/Lora-BoldItalic.ttf +0 -0
  769. package/src/fonts/Lora/static/Lora-Italic.ttf +0 -0
  770. package/src/fonts/Lora/static/Lora-Medium.ttf +0 -0
  771. package/src/fonts/Lora/static/Lora-MediumItalic.ttf +0 -0
  772. package/src/fonts/Lora/static/Lora-Regular.ttf +0 -0
  773. package/src/fonts/Lora/static/Lora-SemiBold.ttf +0 -0
  774. package/src/fonts/Lora/static/Lora-SemiBoldItalic.ttf +0 -0
  775. package/src/fonts/PT_Sans/PTSans-Bold.ttf +0 -0
  776. package/src/fonts/PT_Sans/PTSans-BoldItalic.ttf +0 -0
  777. package/src/fonts/PT_Sans/PTSans-Italic.ttf +0 -0
  778. package/src/fonts/PT_Sans/PTSans-Regular.ttf +0 -0
  779. /package/dist/assets/{Combination-Cs9nbinQ.js → Combination-CSPK4t6z.js} +0 -0
  780. /package/dist/assets/{Deferred-BMfCOLaw.js → Deferred-CfyqLOPG.js} +0 -0
  781. /package/dist/assets/{ImageComparisonComponent-DvDPDgw3.js → ImageComparisonComponent-Cw3aoN3z.js} +0 -0
  782. /package/dist/assets/{Inputs-D5kI9GwB.js → Inputs-CsxDtqlI.js} +0 -0
  783. /package/dist/assets/{Plot-DQQQ-fLA.js → Plot-eiPFedH2.js} +0 -0
  784. /package/dist/assets/{SSRProvider-DC7ElCZZ.js → SSRProvider-BkypbMcb.js} +0 -0
  785. /package/dist/assets/{alert-OQZHipbB.js → alert-NjVFesQm.js} +0 -0
  786. /package/dist/assets/{apl-CexVE068.js → apl-D8X_E6Wh.js} +0 -0
  787. /package/dist/assets/{array-psg969PF.js → array-CEZNxKGf.js} +0 -0
  788. /package/dist/assets/{asciiarmor-DzdXFxI-.js → asciiarmor-DeecVuRW.js} +0 -0
  789. /package/dist/assets/{asn1-lKNP6w4p.js → asn1-C9WWFN1p.js} +0 -0
  790. /package/dist/assets/{asterisk-Bjb62jej.js → asterisk-Dykb_Qas.js} +0 -0
  791. /package/dist/assets/{badge-hTpPIsMT.js → badge-DImLVznf.js} +0 -0
  792. /package/dist/assets/{blob-CObhN-9g.js → blob-C3EfaMOb.js} +0 -0
  793. /package/dist/assets/{bot-message-square-CK6eoGWy.js → bot-message-square-Dw41U6lL.js} +0 -0
  794. /package/dist/assets/{brainfuck-pTL_9bJ7.js → brainfuck-Cl6gOsOa.js} +0 -0
  795. /package/dist/assets/{bundle.esm-idScn0w0.js → bundle.esm-_LzfhNmX.js} +0 -0
  796. /package/dist/assets/{card-C-c-4jyF.js → card-OaQlvpSl.js} +0 -0
  797. /package/dist/assets/{chart-no-axes-column-DV8gdCvH.js → chart-no-axes-column-a9XtWmzk.js} +0 -0
  798. /package/dist/assets/{check-BE0hEwVo.js → check-DZA_bRpw.js} +0 -0
  799. /package/dist/assets/{chevron-right-D0GQBpTb.js → chevron-right-CvVxySQk.js} +0 -0
  800. /package/dist/assets/{chunk-4F5CHEZ2-BGeTOmrq.js → chunk-4F5CHEZ2-Bghwh3ep.js} +0 -0
  801. /package/dist/assets/{chunk-B2363JML-Cmh9TPpj.js → chunk-B2363JML-B3wWt_gr.js} +0 -0
  802. /package/dist/assets/{chunk-DR5Q36YT-SM9ZwAOv.js → chunk-DR5Q36YT-DOSR70sR.js} +0 -0
  803. /package/dist/assets/{chunk-FRFDVMJY-CUDE-MUX.js → chunk-FRFDVMJY-D9fs6vlF.js} +0 -0
  804. /package/dist/assets/{chunk-PL6DKKU2-DMqBvHTF.js → chunk-PL6DKKU2-CdtxnIBd.js} +0 -0
  805. /package/dist/assets/{chunk-SJTYNZTY-C9cwtT3h.js → chunk-SJTYNZTY-CMwkFD7U.js} +0 -0
  806. /package/dist/assets/{chunk-TQ3KTPDO-CUyT9lNN.js → chunk-TQ3KTPDO-0Us1NWXT.js} +0 -0
  807. /package/dist/assets/{chunk-UMXZTB3W-Bt-_br31.js → chunk-UMXZTB3W-zYd--p4q.js} +0 -0
  808. /package/dist/assets/{circle-check-gLIOLu8x.js → circle-check-CbaVeozR.js} +0 -0
  809. /package/dist/assets/{circle-play-DYGULlKZ.js → circle-play-DYn5nR6N.js} +0 -0
  810. /package/dist/assets/{circle-plus-CGG-gArM.js → circle-plus-nCze0-py.js} +0 -0
  811. /package/dist/assets/{clear-button-DrIF5o__.js → clear-button-CsNT-Tql.js} +0 -0
  812. /package/dist/assets/{click-outside-container-CagwJLiG.js → click-outside-container-gHk0jCel.js} +0 -0
  813. /package/dist/assets/{clike-BCxd7pZ9.js → clike-BuY5U60j.js} +0 -0
  814. /package/dist/assets/{clipboard-paste-DoYSN8Sv.js → clipboard-paste-EHXeKq9D.js} +0 -0
  815. /package/dist/assets/{clojure-CPAS-74L.js → clojure-C8jGLyPy.js} +0 -0
  816. /package/dist/assets/{cmake-DMONEHtp.js → cmake-DcjYbevD.js} +0 -0
  817. /package/dist/assets/{cobol-0rQGzjf0.js → cobol-C-nFr8y5.js} +0 -0
  818. /package/dist/assets/{code-xml-DwHPF_nL.js → code-xml-BlrJCgNZ.js} +0 -0
  819. /package/dist/assets/{coffeescript-BHNUw4aR.js → coffeescript-VbbBP-Cm.js} +0 -0
  820. /package/dist/assets/{colors-WO6MvCS3.js → colors-Dm6L93c7.js} +0 -0
  821. /package/dist/assets/{common-keywords-D_14jCw0.js → common-keywords-sop6vXJR.js} +0 -0
  822. /package/dist/assets/{commonlisp-Cjiyl45-.js → commonlisp-mLMub2u_.js} +0 -0
  823. /package/dist/assets/{copy-CkudG0Ej.js → copy-D6N1-xc1.js} +0 -0
  824. /package/dist/assets/{crystal-CUMDisY2.js → crystal-Buc8hu84.js} +0 -0
  825. /package/dist/assets/{css-B6NFOUor.js → css-DtNg2SPz.js} +0 -0
  826. /package/dist/assets/{cypher-DcWJtLBw.js → cypher-wyT0Afvt.js} +0 -0
  827. /package/dist/assets/{cytoscape.esm-DuXIsNbY.js → cytoscape.esm-CuwfIk-V.js} +0 -0
  828. /package/dist/assets/{d-CpNp8oDv.js → d-KzUzEnwn.js} +0 -0
  829. /package/dist/assets/{database-zap-DTWCDKdn.js → database-zap-BIGMFOfP.js} +0 -0
  830. /package/dist/assets/{defaultLocale-OkOxlkkM.js → defaultLocale-DPBdGRrH.js} +0 -0
  831. /package/dist/assets/{defaultLocale-DK1MWd7f.js → defaultLocale-Lfi0pexn.js} +0 -0
  832. /package/dist/assets/{diff-BCFJsGHX.js → diff-zZX_BZ60.js} +0 -0
  833. /package/dist/assets/{dist-D9Vhptds.js → dist-2yYHES7B.js} +0 -0
  834. /package/dist/assets/{dist-CVEvQ1Ex.js → dist-4adVoHKM.js} +0 -0
  835. /package/dist/assets/{dist-ASlWkGgG.js → dist-8B3AWTCv.js} +0 -0
  836. /package/dist/assets/{dist-sVuk6mkQ.js → dist-AkjWZMeV.js} +0 -0
  837. /package/dist/assets/{dist-8UD0A5sU.js → dist-BF9S272t.js} +0 -0
  838. /package/dist/assets/{dist-BhNN2V5a.js → dist-BKm9wJTB.js} +0 -0
  839. /package/dist/assets/{dist-BR9zyVPH.js → dist-BacKBlEY.js} +0 -0
  840. /package/dist/assets/{dist-OxxI-HeS.js → dist-Bi4JuBeU.js} +0 -0
  841. /package/dist/assets/{dist-COnmrAVZ.js → dist-BjCIGEdQ.js} +0 -0
  842. /package/dist/assets/{dist-apDpadc4.js → dist-Bk1itfBD.js} +0 -0
  843. /package/dist/assets/{dist-DxrbvUBv.js → dist-CKX5rwHQ.js} +0 -0
  844. /package/dist/assets/{dist-DBPtheKQ.js → dist-CybQbPjb.js} +0 -0
  845. /package/dist/assets/{dist-CQqv2gQL.js → dist-Dm11d0_A.js} +0 -0
  846. /package/dist/assets/{dist-CgC048vN.js → dist-DzjL8iiW.js} +0 -0
  847. /package/dist/assets/{download-DBW9RXtT.js → download-nLboiTtW.js} +0 -0
  848. /package/dist/assets/{dtd-D7nO7isU.js → dtd-DrorhQz9.js} +0 -0
  849. /package/dist/assets/{duckdb-keywords-CSySeB8R.js → duckdb-keywords-CEWQs1NJ.js} +0 -0
  850. /package/dist/assets/{dylan-qEhlQv4l.js → dylan-B4r5umK9.js} +0 -0
  851. /package/dist/assets/{ebnf-KJaLpQez.js → ebnf-BoS8ZFT2.js} +0 -0
  852. /package/dist/assets/{ecl-cXHEjabG.js → ecl-Chc_DmTY.js} +0 -0
  853. /package/dist/assets/{eiffel-CUTEIYa-.js → eiffel-CIYqf7wj.js} +0 -0
  854. /package/dist/assets/{ellipsis-0_zJdF6H.js → ellipsis-d7eaKIFn.js} +0 -0
  855. /package/dist/assets/{ellipsis-vertical-CAB7tdza.js → ellipsis-vertical-DBQ5kWTo.js} +0 -0
  856. /package/dist/assets/{elm-DOfGHeKn.js → elm-Baq4wI8e.js} +0 -0
  857. /package/dist/assets/{emotion-is-prop-valid.esm-D1keIaYa.js → emotion-is-prop-valid.esm-lG8j6oqk.js} +0 -0
  858. /package/dist/assets/{empty-state-B_US46Us.js → empty-state-BBWqzODS.js} +0 -0
  859. /package/dist/assets/{erlang-B5R7Byby.js → erlang-xHcM8uVi.js} +0 -0
  860. /package/dist/assets/{errors-Bfogio62.js → errors-iwK4b4VF.js} +0 -0
  861. /package/dist/assets/{esm-CX-gNDKf.js → esm-DM72gy9Q.js} +0 -0
  862. /package/dist/assets/{extends-DRbCSry7.js → extends-B9D0JO9U.js} +0 -0
  863. /package/dist/assets/{eye-off-vwi9L975.js → eye-off-CF3GmvXV.js} +0 -0
  864. /package/dist/assets/{fcl-Cf241iHu.js → fcl-JwfU5Rr4.js} +0 -0
  865. /package/dist/assets/{file-DzHkbIdO.js → file-C-yMeaec.js} +0 -0
  866. /package/dist/assets/{file-headphone-B5q2Ow55.js → file-headphone-CPAP8asn.js} +0 -0
  867. /package/dist/assets/{file-plus-corner-lLQw9OnR.js → file-plus-corner-ks__N1mr.js} +0 -0
  868. /package/dist/assets/{forth-BjV8SV3p.js → forth-j6RT-cy6.js} +0 -0
  869. /package/dist/assets/{fortran-CvNblcug.js → fortran-Z7A59UbQ.js} +0 -0
  870. /package/dist/assets/{gas-D1YrZZUY.js → gas-5kgpLqGg.js} +0 -0
  871. /package/dist/assets/{gherkin-CAUl7roi.js → gherkin-KECBIOSQ.js} +0 -0
  872. /package/dist/assets/{github-BVtI-3F1.js → github-CRD4USKm.js} +0 -0
  873. /package/dist/assets/{groovy-CnmCDhLm.js → groovy-CocWwvHR.js} +0 -0
  874. /package/dist/assets/{haskell-qdBb4h_7.js → haskell-BVRegKDO.js} +0 -0
  875. /package/dist/assets/{haxe-MQhLSFhI.js → haxe-U6x7KK2i.js} +0 -0
  876. /package/dist/assets/{http-_roNBajA.js → http-BSf7msSy.js} +0 -0
  877. /package/dist/assets/{icons-CrUXojcA.js → icons-D4U3iRHj.js} +0 -0
  878. /package/dist/assets/{idl-CcZzcWCI.js → idl-Byd3Qhyl.js} +0 -0
  879. /package/dist/assets/{image-DXfkah9d.js → image-CfyJzBP9.js} +0 -0
  880. /package/dist/assets/{init-XMA8CWhh.js → init-BpLL1fe9.js} +0 -0
  881. /package/dist/assets/{javascript-hE4QNtKl.js → javascript-D0a_TZzL.js} +0 -0
  882. /package/dist/assets/{julia-BjrvvLkp.js → julia-CaxV2pJw.js} +0 -0
  883. /package/dist/assets/{katex-rvFxOCU-.js → katex-FSdXOW5Y.js} +0 -0
  884. /package/dist/assets/{kbd-DvKpAc6K.js → kbd-zZCuQN_1.js} +0 -0
  885. /package/dist/assets/{link-Cf10mh3t.js → link-_dbp0XNB.js} +0 -0
  886. /package/dist/assets/{links-DzgPOFJ-.js → links-BQHNKE3J.js} +0 -0
  887. /package/dist/assets/{livescript-B01pNEzu.js → livescript-CfGHFsX-.js} +0 -0
  888. /package/dist/assets/{loro_wasm_bg-CcIcmNa3.js → loro_wasm_bg-Bj93RhA2.js} +0 -0
  889. /package/dist/assets/{lua-BwfRgSM6.js → lua-DwgMJ83W.js} +0 -0
  890. /package/dist/assets/{maps-OKerBHH8.js → maps-DQsjfyTy.js} +0 -0
  891. /package/dist/assets/{marimo-icons-C_YDiXeg.js → marimo-icons-Cb4NA8Cp.js} +0 -0
  892. /package/dist/assets/{math-CeGhAAgQ.js → math-CpvW-dlE.js} +0 -0
  893. /package/dist/assets/{mathematica-DLi5eijp.js → mathematica-CUcY8E3Z.js} +0 -0
  894. /package/dist/assets/{mbox-QweTYWJQ.js → mbox-QWIxg89f.js} +0 -0
  895. /package/dist/assets/{mirc-1J5TZ8Tf.js → mirc-PcCLOR2R.js} +0 -0
  896. /package/dist/assets/{mllike-DRzCrpbj.js → mllike-JiC27gOy.js} +0 -0
  897. /package/dist/assets/{modelica-GZKavTLw.js → modelica-BcfhGWp8.js} +0 -0
  898. /package/dist/assets/{mscgen-HMNaCHuy.js → mscgen-C2sdz_zX.js} +0 -0
  899. /package/dist/assets/{multi-icon-DEWnuZs2.js → multi-icon-BIYBHgCy.js} +0 -0
  900. /package/dist/assets/{mumps-CzCxfP2m.js → mumps-DTtlu7TY.js} +0 -0
  901. /package/dist/assets/{nginx-Dfd7l9Sj.js → nginx-CNcs7tVC.js} +0 -0
  902. /package/dist/assets/{node-sql-parser-BvUFblwL.js → node-sql-parser-fWuidk6P.js} +0 -0
  903. /package/dist/assets/{ntriples-DT57g_ZF.js → ntriples-CHcftTy8.js} +0 -0
  904. /package/dist/assets/{numbers-CYnquDho.js → numbers-Bv8m4sHE.js} +0 -0
  905. /package/dist/assets/{objectWithoutPropertiesLoose-DP4vAkvg.js → objectWithoutPropertiesLoose-CboCOq4o.js} +0 -0
  906. /package/dist/assets/{octave-CtuTaUjQ.js → octave-D7F4qXl_.js} +0 -0
  907. /package/dist/assets/{oz-BS8LEqKx.js → oz-VftS117C.js} +0 -0
  908. /package/dist/assets/{panel-context-BN0DQXiK.js → panel-context-CcwYw5Eq.js} +0 -0
  909. /package/dist/assets/{pascal-Db0ZEHQw.js → pascal-CxVKwA9u.js} +0 -0
  910. /package/dist/assets/{path-CkIaQHJO.js → path-DtYs9Dst.js} +0 -0
  911. /package/dist/assets/{paths-D2lG83Oh.js → paths-BVwhPRFT.js} +0 -0
  912. /package/dist/assets/{perl-DgJKzgyz.js → perl-x4BFnPib.js} +0 -0
  913. /package/dist/assets/{pig-Dk6eYa40.js → pig-Dmhj3J78.js} +0 -0
  914. /package/dist/assets/{play-DKSqmedg.js → play-Bu_0ogGD.js} +0 -0
  915. /package/dist/assets/{plus-dVmh0yTy.js → plus-DJ99CUbx.js} +0 -0
  916. /package/dist/assets/{powershell-dW0qpS7j.js → powershell-Bg32vFxB.js} +0 -0
  917. /package/dist/assets/{preload-helper-BW0IMuFq.js → preload-helper-y72bE5iF.js} +0 -0
  918. /package/dist/assets/{prop-types-RrUi-pOT.js → prop-types-C638SUfx.js} +0 -0
  919. /package/dist/assets/{properties-oMha4ix2.js → properties-DQbiKM_q.js} +0 -0
  920. /package/dist/assets/{protobuf-CfWJ4EtB.js → protobuf-Sa3BXDQ1.js} +0 -0
  921. /package/dist/assets/{puppet-O2K_n-UM.js → puppet-CnXWm8bo.js} +0 -0
  922. /package/dist/assets/{purify.es-BBn8CPhf.js → purify.es-Cf8RQecB.js} +0 -0
  923. /package/dist/assets/{python-qMKsSr4L.js → python-B1WBAJzp.js} +0 -0
  924. /package/dist/assets/{q-ewn8d81Q.js → q-BqOVUYF0.js} +0 -0
  925. /package/dist/assets/{r-CqF-AjDv.js → r-BNvjQBjW.js} +0 -0
  926. /package/dist/assets/{range-DNqFcYmr.js → range-Dk7lXDev.js} +0 -0
  927. /package/dist/assets/{react-resizable-panels.browser.esm-DDRqG5ui.js → react-resizable-panels.browser.esm-RgA6v8U3.js} +0 -0
  928. /package/dist/assets/{refresh-ccw-DLpfIr8v.js → refresh-ccw-DQ6SJ8UC.js} +0 -0
  929. /package/dist/assets/{refresh-cw-CHAHPgkx.js → refresh-cw-Dg9tCj4k.js} +0 -0
  930. /package/dist/assets/{requests-CP6q3-4O.js → requests-xhM8i_W9.js} +0 -0
  931. /package/dist/assets/{rotate-ccw-hLlF_82X.js → rotate-ccw-BCkZViUZ.js} +0 -0
  932. /package/dist/assets/{rpm-BqLq138P.js → rpm-Cdb8SyEx.js} +0 -0
  933. /package/dist/assets/{ruby-CQfbO3YY.js → ruby-Csu3wroo.js} +0 -0
  934. /package/dist/assets/{sas-BmpgVn6Q.js → sas-NClU0xuj.js} +0 -0
  935. /package/dist/assets/{save-8fSvKYJT.js → save-CUdcv5qm.js} +0 -0
  936. /package/dist/assets/{scheme-rgyDg_wq.js → scheme-Hpx9xPN-.js} +0 -0
  937. /package/dist/assets/{session-BrEm7qNv.js → session-CByuQ-M-.js} +0 -0
  938. /package/dist/assets/{settings-CzQUw9rV.js → settings-B7nhfCat.js} +0 -0
  939. /package/dist/assets/{shell-Dndk6Ld6.js → shell-Cd99saJE.js} +0 -0
  940. /package/dist/assets/{sieve-bGgktpLX.js → sieve-D0zJ8TZ9.js} +0 -0
  941. /package/dist/assets/{simple-mode-oMMOWqWz.js → simple-mode-DpDBSVll.js} +0 -0
  942. /package/dist/assets/{smalltalk-CU43LrKS.js → smalltalk-BBBJczpn.js} +0 -0
  943. /package/dist/assets/{solr-CJeCgAfj.js → solr-B928KjNx.js} +0 -0
  944. /package/dist/assets/{sparql-BycKC3X4.js → sparql-uAF7_Z2_.js} +0 -0
  945. /package/dist/assets/{spinner-C5JoisA7.js → spinner-pCogyRyo.js} +0 -0
  946. /package/dist/assets/{spreadsheet-BYYvgLKe.js → spreadsheet-CAG48M_e.js} +0 -0
  947. /package/dist/assets/{sql-B5I6FC3m.js → sql-nk70rjN1.js} +0 -0
  948. /package/dist/assets/{square-CxAsQQ77.js → square-KVNDGpgy.js} +0 -0
  949. /package/dist/assets/{square-function-B006EYFX.js → square-function-BMNCw7Qb.js} +0 -0
  950. /package/dist/assets/{src-CW27-Kjl.js → src-BRLtyMKi.js} +0 -0
  951. /package/dist/assets/{stex-0ac7Aukl.js → stex-C6JeW1YI.js} +0 -0
  952. /package/dist/assets/{stylus-CePwhvgW.js → stylus-fMZU8VtG.js} +0 -0
  953. /package/dist/assets/{swift-CfgglXjR.js → swift-CkY7kBhf.js} +0 -0
  954. /package/dist/assets/{table-BhH-Mm8O.js → table-CA8eU1EB.js} +0 -0
  955. /package/dist/assets/{table-BCnp9gKC.js → table-Od8PbuV-.js} +0 -0
  956. /package/dist/assets/{tcl-D_gYSBm0.js → tcl-CS15Nqmn.js} +0 -0
  957. /package/dist/assets/{textile-BEvFU9wV.js → textile-BQsumqly.js} +0 -0
  958. /package/dist/assets/{tiddlywiki-hmNzZkq6.js → tiddlywiki-BiHxc-2_.js} +0 -0
  959. /package/dist/assets/{tiki-BL1SzuSx.js → tiki-Cwip62d7.js} +0 -0
  960. /package/dist/assets/{timer-CPT_vXom.js → timer-BEJidwwG.js} +0 -0
  961. /package/dist/assets/{toDate-BqKH-Jd9.js → toDate-Cfp9W_O9.js} +0 -0
  962. /package/dist/assets/{toml-DGJRpV2e.js → toml-CoHiT08x.js} +0 -0
  963. /package/dist/assets/{trash-2-CAoNMkjq.js → trash-2-Bc_J7TQO.js} +0 -0
  964. /package/dist/assets/{trash-BZMAQneW.js → trash-Cxd189Vw.js} +0 -0
  965. /package/dist/assets/{treemap-Cf5pgJDk.js → treemap-qinQgXo1.js} +0 -0
  966. /package/dist/assets/{triangle-alert-qZo1ox6x.js → triangle-alert-CzLrbLGN.js} +0 -0
  967. /package/dist/assets/{troff-CUlohIux.js → troff-CpFvF7Eq.js} +0 -0
  968. /package/dist/assets/{ttcn-nuQ3wCdy.js → ttcn-BjnqPnO0.js} +0 -0
  969. /package/dist/assets/{ttcn-cfg-DCxdE-sj.js → ttcn-cfg-D29EWwwv.js} +0 -0
  970. /package/dist/assets/{turtle-B2N96QpC.js → turtle-mWsfmaJW.js} +0 -0
  971. /package/dist/assets/{types-C1RN112u.js → types-CLOMZuqU.js} +0 -0
  972. /package/dist/assets/{types-BfP_kuAY.js → types-Myu7G9iV.js} +0 -0
  973. /package/dist/assets/{use-toast-Hc8CXlvz.js → use-toast-BtZldTi5.js} +0 -0
  974. /package/dist/assets/{useAsyncData-D-4ifFXh.js → useAsyncData-D-z1U8-c.js} +0 -0
  975. /package/dist/assets/{useDebounce-B0dx2Gp0.js → useDebounce-Ccai5RO4.js} +0 -0
  976. /package/dist/assets/{useDeepCompareMemoize-yyiB9aJX.js → useDeepCompareMemoize-D1hTncYV.js} +0 -0
  977. /package/dist/assets/{useIframeCapabilities-DTN9kFDq.js → useIframeCapabilities-CouCDnwL.js} +0 -0
  978. /package/dist/assets/{useInterval-BJucVdV-.js → useInterval-BckTGVbf.js} +0 -0
  979. /package/dist/assets/{useTheme-BYXBU1of.js → useTheme-KDW4sktg.js} +0 -0
  980. /package/dist/assets/{uuid-ClFZlR7U.js → uuid-BukULOeS.js} +0 -0
  981. /package/dist/assets/{vb-CBiIL_zx.js → vb-E2EKvwgc.js} +0 -0
  982. /package/dist/assets/{vbscript-B3Y69Iw0.js → vbscript-98sn9Pr4.js} +0 -0
  983. /package/dist/assets/{velocity-B5BPA7FX.js → velocity-DUbAzJtM.js} +0 -0
  984. /package/dist/assets/{verilog-BwmYR8E3.js → verilog-DK7zLFMr.js} +0 -0
  985. /package/dist/assets/{vhdl-VXFnDy2U.js → vhdl-B9Tq3stB.js} +0 -0
  986. /package/dist/assets/{web-vitals-BaMazlva.js → web-vitals-CJ8ovao_.js} +0 -0
  987. /package/dist/assets/{webidl-Bcmf9JWd.js → webidl-C5qiIEir.js} +0 -0
  988. /package/dist/assets/{workflow-BmeqNuSH.js → workflow-BqHyyStM.js} +0 -0
  989. /package/dist/assets/{ws-CBdPISJL.js → ws-D2eS61zr.js} +0 -0
  990. /package/dist/assets/{x-BI1M8X_v.js → x-CdLP7-v3.js} +0 -0
  991. /package/dist/assets/{xquery-8pWKOyFY.js → xquery-CmGczatZ.js} +0 -0
  992. /package/dist/assets/{yacas-BFcwo3Cx.js → yacas-BbepBpsT.js} +0 -0
  993. /package/dist/assets/{youtube-DE-Ej6FR.js → youtube-CfU-SnDw.js} +0 -0
  994. /package/dist/assets/{z80-t3SBb7Lt.js → z80-C2f-3LU8.js} +0 -0
@@ -0,0 +1 @@
1
+ import{s as we}from"./chunk-LvLJmgfZ.js";import{d as L,l as Ze,p as Qe,u as de}from"./useEvent-O0nX5vok.js";import{t as et}from"./react-Bj1aDYRI.js";import{E as ge,Sn as tt,Vt as at,_ as ot,_i as ce,_n as nt,dr as it,et as st,h as je,jr as lt,nt as ve,or as rt,rr as dt,t as ct,tr as ht,tt as pt,vn as mt,yn as ut}from"./cells-DiVpbkA6.js";import{t as D}from"./compiler-runtime-B3qBwwSJ.js";import{n as ft}from"./assertNever-DWSyoPEi.js";import{s as Ce}from"./useLifecycle-DA9DjSPo.js";import{i as yt,n as ze}from"./add-connection-dialog-BvzGJCV7.js";import{n as kt,x as bt}from"./ai-model-dropdown-CQDhHQ1r.js";import{c as Me,m as T}from"./useEventListener-Dy81QR4n.js";import{y as xt}from"./utils-tNbLd14P.js";import{n as A,t as We}from"./constants-Rz_lD4HK.js";import{S as he,h as wt,x as gt}from"./config-DqxNMQDN.js";import{t as jt}from"./jsx-runtime-icT_Ltz2.js";import{r as vt,t as pe}from"./button-Ej3vmCIF.js";import{r as H}from"./requests-Bgjtqo_1.js";import{t as h}from"./createLucideIcon-Cm-Z7dYr.js";import{a as Se,f as Ct,i as _e,m as zt,p as De,u as Ae}from"./layout-OxzkS5En.js";import{t as Pe}from"./check-DZA_bRpw.js";import{c as Ne,d as me,n as Mt,o as Wt,r as ue,t as St}from"./download-UmTPygP7.js";import{f as _t}from"./maps-DQsjfyTy.js";import{r as Dt}from"./useCellActionButton-C-mIavMW.js";import{t as At}from"./copy-D6N1-xc1.js";import{t as Pt}from"./download-nLboiTtW.js";import{t as Nt}from"./eye-off-CF3GmvXV.js";import{t as It}from"./file-plus-corner-ks__N1mr.js";import{t as J}from"./file-C-yMeaec.js";import{t as Et}from"./github-CRD4USKm.js";import{m as Lt}from"./form-qtFXuhlh.js";import{n as Tt,r as Ht,t as qt}from"./youtube-CfU-SnDw.js";import{n as Rt,t as Bt}from"./square-KVNDGpgy.js";import{t as Vt}from"./image-CfyJzBP9.js";import{t as Ft}from"./link-_dbp0XNB.js";import{r as Ot}from"./input-lyDIN6R6.js";import{t as Yt}from"./settings-B7nhfCat.js";import{x as Kt}from"./azure-DMJRLvDT.js";import{t as C}from"./use-toast-BtZldTi5.js";import{n as Ie,t as Ut}from"./paths-BVwhPRFT.js";import{o as $t}from"./session-CByuQ-M-.js";import{a as Gt,c as Jt,i as Xt,n as Zt,r as Qt,s as ea,t as ta}from"./select-Cnd3vm9n.js";import{t as aa}from"./tooltip-CR_izE8Q.js";import{o as oa}from"./alert-dialog-Baw3WWPa.js";import{a as na,c as ia,i as sa,n as la,r as ra}from"./dialog-C_NcD2pn.js";import{n as fe}from"./ImperativeModal-C5ZzjCQG.js";import{r as da,t as ca}from"./share-T-ETw2Yt.js";import{n as X}from"./copy-CcUDATFX.js";import{r as ha}from"./useRunCells-6ne-1pJW.js";import{a as pa}from"./cell-link-Cp4c28Yf.js";import{a as ma}from"./renderShortcut-DG5sXSxr.js";import{t as ua}from"./icons-D4U3iRHj.js";import{t as fa}from"./links-Bfp-iNRX.js";import{r as ya,t as Ee}from"./hooks-CLoML3Pf.js";import{t as Le}from"./types-Myu7G9iV.js";var ka=h("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),ba=h("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),Te=h("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),He=h("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]),qe=h("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),xa=h("fast-forward",[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]]),wa=h("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]),ga=h("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]),Re=h("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]),ja=h("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),va=h("notebook",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]]),Ca=h("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Be=h("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),za=h("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Ma=h("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),Ve=h("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),Fe=D(),ye=we(et(),1),a=we(jt(),1),Z="https://static.marimo.app";const Wa=e=>{let t=(0,Fe.c)(25),{onClose:n}=e,[o,s]=(0,ye.useState)(""),{exportAsHTML:r}=H(),l=`${o}-${Math.random().toString(36).slice(2,6)}`,i=`${Z}/static/${l}`,d;t[0]!==r||t[1]!==n||t[2]!==l?(d=async v=>{v.preventDefault(),n();let N=await r({download:!1,includeCode:!0,files:Ct.INSTANCE.filenames()}),z=C({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${Z}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:N,path:l})}).catch(()=>{z.dismiss(),C({title:"Error uploading static page",description:(0,a.jsxs)("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",(0,a.jsx)("a",{href:A.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),z.dismiss(),C({title:"Static page uploaded!",description:(0,a.jsxs)("div",{children:["The URL has been copied to your clipboard.",(0,a.jsx)("br",{}),"You can share it with anyone."]})})},t[0]=r,t[1]=n,t[2]=l,t[3]=d):d=t[3];let m;t[4]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(ia,{children:"Share static notebook"}),t[4]=m):m=t[4];let w;t[5]===Symbol.for("react.memo_cache_sentinel")?(w=(0,a.jsxs)(na,{children:[m,(0,a.jsxs)(ra,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",(0,a.jsx)("a",{href:Z,target:"_blank",children:Z}),"."]})]}),t[5]=w):w=t[5];let g;t[6]===Symbol.for("react.memo_cache_sentinel")?(g=v=>{s(v.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,""))},t[6]=g):g=t[6];let u;t[7]===o?u=t[8]:(u=(0,a.jsx)(Ot,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:g,required:!0,autoComplete:"off"}),t[7]=o,t[8]=u);let f;t[9]===i?f=t[10]:(f=(0,a.jsxs)("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Sa,{text:i}),(0,a.jsx)("span",{className:"text-primary",children:i})]})]}),t[9]=i,t[10]=f);let y;t[11]!==u||t[12]!==f?(y=(0,a.jsxs)("div",{className:"flex flex-col gap-6 py-4",children:[u,f]}),t[11]=u,t[12]=f,t[13]=y):y=t[13];let k;t[14]===n?k=t[15]:(k=(0,a.jsx)(pe,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),t[14]=n,t[15]=k);let b;t[16]===i?b=t[17]:(b=(0,a.jsx)(pe,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await X(i)},children:"Create"}),t[16]=i,t[17]=b);let x;t[18]!==k||t[19]!==b?(x=(0,a.jsxs)(sa,{children:[k,b]}),t[18]=k,t[19]=b,t[20]=x):x=t[20];let j;return t[21]!==d||t[22]!==x||t[23]!==y?(j=(0,a.jsx)(la,{className:"w-fit",children:(0,a.jsxs)("form",{onSubmit:d,children:[w,y,x]})}),t[21]=d,t[22]=x,t[23]=y,t[24]=j):j=t[24],j};var Sa=e=>{let t=(0,Fe.c)(8),[n,o]=ye.useState(!1),s;t[0]===e.text?s=t[1]:(s=vt.stopPropagation(async m=>{m.preventDefault(),await X(e.text),o(!0),setTimeout(()=>o(!1),2e3)}),t[0]=e.text,t[1]=s);let r=s,l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(At,{size:14,strokeWidth:1.5}),t[2]=l):l=t[2];let i;t[3]===r?i=t[4]:(i=(0,a.jsx)(pe,{"data-testid":"copy-static-notebook-url-button",onClick:r,size:"xs",variant:"secondary",children:l}),t[3]=r,t[4]=i);let d;return t[5]!==n||t[6]!==i?(d=(0,a.jsx)(aa,{content:"Copied!",open:n,children:i}),t[5]=n,t[6]=i,t[7]=d):d=t[7],d},_a=D();function Da(){let e=document.getElementsByClassName(We.outputArea);for(let t of e){let n=t.getBoundingClientRect();if(n.bottom>0&&n.top<window.innerHeight){let o=ce.findElement(t);if(!o){T.warn("Could not find HTMLCellId for visible output area",t);continue}return{cellId:ce.parse(o.id)}}}return T.warn("No visible output area found for scroll anchor"),null}function Aa(e){if(!e){T.warn("No scroll anchor provided to restore scroll position");return}let t=document.getElementById(ce.create(e.cellId));if(!t){T.warn("Could not find cell element to restore scroll position",e.cellId);return}if(!t.querySelector(`.${We.outputArea}`)){T.warn("Could not find output area to restore scroll position",e.cellId);return}t.scrollIntoView({block:"start",behavior:"auto"})}function Oe(){let e=(0,_a.c)(2),t=L(ve),n;return e[0]===t?n=e[1]:(n=()=>{let o=Da();t(s=>({mode:pt(s.mode),cellAnchor:(o==null?void 0:o.cellId)??null})),requestAnimationFrame(()=>{requestAnimationFrame(()=>{Aa(o)})})},e[0]=t,e[1]=n),n}const Ye=Qe(!1);var Pa=D();const Na=()=>{let e=(0,Pa.c)(7),{selectedLayout:t}=Se(),{setLayoutView:n}=_e();if(he()&&!tt("wasm_layouts"))return null;let o;e[0]===n?o=e[1]:(o=i=>n(i),e[0]=n,e[1]=o);let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(ea,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:(0,a.jsx)(Jt,{placeholder:"Select a view"})}),e[2]=s):s=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(Zt,{children:(0,a.jsxs)(Qt,{children:[(0,a.jsx)(Gt,{children:"View as"}),Le.map(Ea)]})}),e[3]=r):r=e[3];let l;return e[4]!==t||e[5]!==o?(l=(0,a.jsxs)(ta,{"data-testid":"layout-select",value:t,onValueChange:o,children:[s,r]}),e[4]=t,e[5]=o,e[6]=l):l=e[6],l};function Ia(e){return(0,a.jsx)(Ke(e),{className:"h-4 w-4"})}function Ke(e){switch(e){case"vertical":return ja;case"grid":return Ht;case"slides":return Be;default:return ft(e),Bt}}function Ue(e){return Ce(e)}function Ea(e){return(0,a.jsx)(Xt,{value:e,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 leading-5",children:[Ia(e),(0,a.jsx)("span",{children:Ue(e)})]})},e)}async function La(e){let{filename:t,preset:n,downloadPDF:o}=e;await o({filename:t,webpdf:!1,preset:n,includeInputs:!0,rasterServer:"static"})}var Ta=D();function Ha(e){let t=(0,Ta.c)(5),{openPrompt:n,closeModal:o}=fe(),{sendCopy:s}=H(),r;return t[0]!==o||t[1]!==n||t[2]!==s||t[3]!==e?(r=()=>{if(!e)return null;let l=Ut.guessDeliminator(e);n({title:"Copy notebook",description:"Enter a new filename for the notebook copy.",defaultValue:`_${Ie.basename(e)}`,confirmText:"Copy notebook",spellCheck:!1,onConfirm:i=>{let d=l.join(Ie.dirname(e),i);s({source:e,destination:d}).then(()=>{o(),C({title:"Notebook copied",description:"A copy of the notebook has been created."}),fa(d)})}})},t[0]=o,t[1]=n,t[2]=s,t[3]=e,t[4]=r):r=t[4],r}const qa=()=>{let{updateCellConfig:e}=ge(),{saveCellConfig:t}=H();return(0,ye.useCallback)(async()=>{let n=new at,o=je(),s=o.cellIds.inOrderIds,r={};for(let i of s){if(o.cellData[i]===void 0)continue;let{code:d,config:m}=o.cellData[i];m.hide_code||n.isSupported(d)&&(r[i]={hide_code:!0})}let l=Me.entries(r);if(l.length!==0){await t({configs:r});for(let[i,d]of l)e({cellId:i,config:d})}},[e])};var Ra=D();function $e(){let e=(0,Ra.c)(4),{openConfirm:t}=fe(),n=L(wt),{sendRestart:o}=H(),s;return e[0]!==t||e[1]!==o||e[2]!==n?(s=()=>{t({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:(0,a.jsx)(oa,{onClick:async()=>{n({state:gt.CLOSING}),await o(),da()},"aria-label":"Confirm Restart",children:"Restart"})})},e[0]=t,e[1]=o,e[2]=n,e[3]=s):s=e[3],s}var Ba=D(),P=e=>{e==null||e.preventDefault(),e==null||e.stopPropagation()};function Va(){var be,xe;let e=(0,Ba.c)(51),t=pa(),{openModal:n,closeModal:o}=fe(),{toggleApplication:s}=nt(),{selectedPanel:r}=mt(),[l]=Ze(ve),i=de(st),d=qa(),[m]=xt(),{updateCellConfig:w,undoDeleteCell:g,clearAllCellOutputs:u,addSetupCellIfDoesntExist:f,collapseAllCells:y,expandAllCells:k}=ge(),b=$e(),x=ha(),j=Ha(t),v=L(Ye),N=L(kt),z=L(bt),{exportAsIPYNB:ee,exportAsMarkdown:te,readCode:I,saveCellConfig:ae,updateCellOutputs:M}=H(),W=ya(),oe=de(ot),ne=de(ct),{selectedLayout:q}=Se(),{setLayoutView:ie}=_e(),R=Oe(),B=((be=m.sharing)==null?void 0:be.html)??!0,V=((xe=m.sharing)==null?void 0:xe.wasm)??!0,ke=!he(),se=q==="slides",Ge=so,Je=io,F;e[0]!==t||e[1]!==W||e[2]!==M?(F=async c=>{let{preset:p,title:E}=c;if(!t){Q();return}await Ne(E,async re=>{await Ee({takeScreenshots:()=>W({progress:re}),updateCellOutputs:M}),await La({filename:t,preset:p,downloadPDF:Mt})})},e[0]=t,e[1]=W,e[2]=M,e[3]=F):F=e[3];let S=F,O;e[4]===S?O=e[5]:(O=async()=>{if(ke){await S({preset:"document",title:"Downloading Document PDF..."});return}let c=new Event("export-beforeprint"),p=new Event("export-afterprint");window.dispatchEvent(c),setTimeout(no,0),setTimeout(()=>window.dispatchEvent(p),0)},e[4]=S,e[5]=O);let Y=O,K;e[6]!==ee||e[7]!==t||e[8]!==W||e[9]!==M?(K=async()=>{if(!t){Q();return}await Ne("Downloading IPYNB...",async c=>{await Ee({takeScreenshots:()=>W({progress:c}),updateCellOutputs:M});let p=await ee({download:!1});ue(new Blob([p],{type:"application/x-ipynb+json"}),me.toIPYNB(document.title))})},e[6]=ee,e[7]=t,e[8]=W,e[9]=M,e[10]=K):K=e[10];let le=K,U;e[11]===Symbol.for("react.memo_cache_sentinel")?(U=(0,a.jsx)(Pt,{size:14,strokeWidth:1.5}),e[11]=U):U=e[11];let $;e[12]===Symbol.for("react.memo_cache_sentinel")?($=(0,a.jsx)(De,{size:14,strokeWidth:1.5}),e[12]=$):$=e[12];let _;e[13]===t?_=e[14]:(_=async()=>{if(!t){Q();return}await Ae({filename:t,includeCode:!0})},e[13]=t,e[14]=_);let G;return e[15]!==f||e[16]!==ne||e[17]!==u||e[18]!==o||e[19]!==y||e[20]!==j||e[21]!==S||e[22]!==k||e[23]!==te||e[24]!==t||e[25]!==Y||e[26]!==le||e[27]!==oe||e[28]!==d||e[29]!==se||e[30]!==i||e[31]!==n||e[32]!==I||e[33]!==b||e[34]!==x||e[35]!==ae||e[36]!==q||e[37]!==r||e[38]!==v||e[39]!==z||e[40]!==ie||e[41]!==N||e[42]!==B||e[43]!==V||e[44]!==_||e[45]!==s||e[46]!==R||e[47]!==g||e[48]!==w||e[49]!==l.mode?(G=[{icon:U,label:"Download",handle:P,dropdown:[{icon:$,label:"Download as HTML",handle:_},{icon:(0,a.jsx)(De,{size:14,strokeWidth:1.5}),label:"Download as HTML (exclude code)",handle:async()=>{if(!t){Q();return}await Ae({filename:t,includeCode:!1})}},{icon:(0,a.jsx)(ua,{strokeWidth:1.5,style:{width:14,height:14}}),label:"Download as Markdown",handle:async()=>{let c=await te({download:!1});ue(new Blob([c],{type:"text/plain"}),me.toMarkdown(document.title))}},{icon:(0,a.jsx)(va,{size:14,strokeWidth:1.5}),label:"Download as ipynb",handle:le},{icon:(0,a.jsx)(zt,{size:14,strokeWidth:1.5}),label:"Download Python code",handle:async()=>{let c=await I();ue(new Blob([c.contents],{type:"text/plain"}),me.toPY(document.title))}},{divider:!0,icon:(0,a.jsx)(Vt,{size:14,strokeWidth:1.5}),label:"Download as PNG",disabled:l.mode!=="present",tooltip:l.mode==="present"?void 0:(0,a.jsxs)("span",{children:["Only available in app view. ",(0,a.jsx)("br",{}),"Toggle with: ",ma("global.hideCode",!1)]}),handle:oo},se?{divider:!0,icon:(0,a.jsx)(J,{size:14,strokeWidth:1.5}),label:"Download as PDF",handle:P,dropdown:[{icon:(0,a.jsx)(J,{size:14,strokeWidth:1.5}),label:"Document Layout",handle:Y},{icon:(0,a.jsx)(J,{size:14,strokeWidth:1.5}),label:"Slides Layout",rightElement:Je(!0),hidden:!ke,handle:async()=>{await S({preset:"slides",title:"Downloading Slides PDF..."})}}]}:{divider:!0,icon:(0,a.jsx)(J,{size:14,strokeWidth:1.5}),label:"Download as PDF",handle:Y}]},{icon:(0,a.jsx)(za,{size:14,strokeWidth:1.5}),label:"Share",handle:P,hidden:!B&&!V,dropdown:[{icon:(0,a.jsx)(Lt,{size:14,strokeWidth:1.5}),label:"Publish HTML to web",hidden:!B,handle:async()=>{n((0,a.jsx)(Wa,{onClose:o}))}},{icon:(0,a.jsx)(Ft,{size:14,strokeWidth:1.5}),label:"Create WebAssembly link",hidden:!V,handle:async()=>{await X(ca({code:(await I()).contents})),C({title:"Copied",description:"Link copied to clipboard."})}}]},{icon:(0,a.jsx)(Ca,{size:14,strokeWidth:1.5}),label:"Helper panel",redundant:!0,handle:P,dropdown:ut.flatMap(c=>{let{type:p,Icon:E,hidden:re,additionalKeywords:Xe}=c;return re?[]:{label:Ce(p),rightElement:Ge(r===p),icon:(0,a.jsx)(E,{size:14,strokeWidth:1.5}),handle:()=>s(p),additionalKeywords:Xe}})},{icon:(0,a.jsx)(Be,{size:14,strokeWidth:1.5}),label:"Present as",handle:P,dropdown:[{icon:l.mode==="present"?(0,a.jsx)(Kt,{size:14,strokeWidth:1.5}):(0,a.jsx)(Re,{size:14,strokeWidth:1.5}),label:"Toggle app view",hotkey:"global.hideCode",handle:()=>{R()}},...Le.map((c,p)=>{let E=Ke(c);return{divider:p===0,label:Ue(c),icon:(0,a.jsx)(E,{size:14,strokeWidth:1.5}),rightElement:(0,a.jsx)("div",{className:"w-8 flex justify-end",children:q===c&&(0,a.jsx)(Pe,{size:14})}),handle:()=>{ie(c),l.mode==="edit"&&R()}}})]},{icon:(0,a.jsx)(wa,{size:14,strokeWidth:1.5}),label:"Duplicate notebook",hidden:!t||he(),handle:j},{icon:(0,a.jsx)(Te,{size:14,strokeWidth:1.5}),label:"Copy code to clipboard",hidden:!t,handle:async()=>{await X((await I()).contents),C({title:"Copied",description:"Code copied to clipboard."})}},{icon:(0,a.jsx)(Dt,{size:14,strokeWidth:1.5}),label:"Enable all cells",hidden:!oe||i,handle:async()=>{let c=lt(je());await ae({configs:Me.fromEntries(c.map(ao))});for(let p of c)w({cellId:p,config:{disabled:!1}})}},{divider:!0,icon:(0,a.jsx)(qe,{size:14,strokeWidth:1.5}),label:"Add setup cell",handle:()=>{f({})}},{icon:(0,a.jsx)(dt,{size:14,strokeWidth:1.5}),label:"Add database connection",handle:()=>{n((0,a.jsx)(ze,{onClose:o}))}},{icon:(0,a.jsx)(yt,{size:14,strokeWidth:1.5}),label:"Add remote storage",handle:()=>{n((0,a.jsx)(ze,{defaultTab:"storage",onClose:o}))}},{icon:(0,a.jsx)(Ve,{size:14,strokeWidth:1.5}),label:"Undo cell deletion",hidden:!ne||i,handle:()=>{g()}},{icon:(0,a.jsx)(Ma,{size:14,strokeWidth:1.5}),label:"Restart kernel",variant:"danger",handle:b,additionalKeywords:["reset","reload","restart"]},{icon:(0,a.jsx)(xa,{size:14,strokeWidth:1.5}),label:"Re-run all cells",redundant:!0,hotkey:"global.runAll",handle:async()=>{x()}},{icon:(0,a.jsx)(rt,{size:14,strokeWidth:1.5}),label:"Clear all outputs",redundant:!0,handle:()=>{u()}},{icon:(0,a.jsx)(Nt,{size:14,strokeWidth:1.5}),label:"Hide all markdown code",handle:d,redundant:!0},{icon:(0,a.jsx)(ba,{size:14,strokeWidth:1.5}),label:"Collapse all sections",hotkey:"global.collapseAllSections",handle:y,redundant:!0},{icon:(0,a.jsx)(ka,{size:14,strokeWidth:1.5}),label:"Expand all sections",hotkey:"global.expandAllSections",handle:k,redundant:!0},{divider:!0,icon:(0,a.jsx)(He,{size:14,strokeWidth:1.5}),label:"Command palette",hotkey:"global.commandPalette",handle:()=>v(to)},{icon:(0,a.jsx)(ga,{size:14,strokeWidth:1.5}),label:"Keyboard shortcuts",hotkey:"global.showHelp",handle:()=>z(eo)},{icon:(0,a.jsx)(Yt,{size:14,strokeWidth:1.5}),label:"User settings",handle:()=>N(Qa),redundant:!0,additionalKeywords:["preferences","options","configuration"]},{icon:(0,a.jsx)(_t,{size:14,strokeWidth:1.5}),label:"Resources",handle:P,dropdown:[{icon:(0,a.jsx)(it,{size:14,strokeWidth:1.5}),label:"Documentation",handle:Za},{icon:(0,a.jsx)(Et,{size:14,strokeWidth:1.5}),label:"GitHub",handle:Xa},{icon:(0,a.jsx)(Tt,{size:14,strokeWidth:1.5}),label:"Discord Community",handle:Ja},{icon:(0,a.jsx)(qt,{size:14,strokeWidth:1.5}),label:"YouTube",handle:Ga},{icon:(0,a.jsx)(ht,{size:14,strokeWidth:1.5}),label:"Changelog",handle:$a}]},{divider:!0,icon:(0,a.jsx)(Rt,{size:14,strokeWidth:1.5}),label:"Return home",hidden:!location.search.includes("file"),handle:Ua},{icon:(0,a.jsx)(It,{size:14,strokeWidth:1.5}),label:"New notebook",hidden:!location.search.includes("file"),handle:Ka}].filter(Ya).map(Fa),e[15]=f,e[16]=ne,e[17]=u,e[18]=o,e[19]=y,e[20]=j,e[21]=S,e[22]=k,e[23]=te,e[24]=t,e[25]=Y,e[26]=le,e[27]=oe,e[28]=d,e[29]=se,e[30]=i,e[31]=n,e[32]=I,e[33]=b,e[34]=x,e[35]=ae,e[36]=q,e[37]=r,e[38]=v,e[39]=z,e[40]=ie,e[41]=N,e[42]=B,e[43]=V,e[44]=_,e[45]=s,e[46]=R,e[47]=g,e[48]=w,e[49]=l.mode,e[50]=G):G=e[50],G}function Fa(e){return e.dropdown?{...e,dropdown:e.dropdown.filter(Oa)}:e}function Oa(e){return!e.hidden}function Ya(e){return!e.hidden}function Ka(){let e=$t();window.open(e,"_blank")}function Ua(){let e=document.baseURI.split("?")[0];window.open(e,"_self")}function $a(){window.open(A.releasesPage,"_blank")}function Ga(){window.open(A.youtube,"_blank")}function Ja(){window.open(A.discordLink,"_blank")}function Xa(){window.open(A.githubPage,"_blank")}function Za(){window.open(A.docsPage,"_blank")}function Qa(e){return!e}function eo(e){return!e}function to(e){return!e}function ao(e){return[e,{disabled:!1}]}async function oo(){let e=document.getElementById("App");e&&await Wt({element:e,filename:document.title,prepare:St})}function no(){return window.print()}function io(e){return e?(0,a.jsx)("span",{className:"ml-3 shrink-0 rounded-full border border-emerald-200 bg-emerald-50 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-700",children:"Recommended"}):null}function so(e){return(0,a.jsx)("div",{className:"w-8 flex justify-end",children:e&&(0,a.jsx)(Pe,{size:14})})}function Q(){C({title:"Error",description:"Notebooks must be named to be exported.",variant:"danger"})}export{Oe as a,qe as c,Ye as i,He as l,$e as n,Ve as o,Na as r,Re as s,Va as t,Te as u};
@@ -0,0 +1 @@
1
+ import{s as h}from"./chunk-LvLJmgfZ.js";import{t as c}from"./react-Bj1aDYRI.js";import{t as y}from"./context-CqNy_uER.js";var l=new Map,m=!1;try{m=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var u=!1;try{u=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var p={degree:{narrow:{default:"\xB0","ja-JP":" \u5EA6","zh-TW":"\u5EA6","sl-SI":" \xB0"}}},f=class{format(t){var e;let r="";if(r=!m&&this.options.signDisplay!=null?b(this.numberFormatter,this.options.signDisplay,t):this.numberFormatter.format(t),this.options.style==="unit"&&!u){let{unit:s,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!s)return r;let o=(e=p[s])==null?void 0:e[i];r+=o[a]||o.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw RangeError("End date must be >= start date");return`${this.format(t)} \u2013 ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw RangeError("End date must be >= start date");let e=this.numberFormatter.formatToParts(t),s=this.numberFormatter.formatToParts(r);return[...e.map(i=>({...i,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...s.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!m&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!u&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=d(t,r),this.options=r}};function d(t,r={}){var a;let{numberingSystem:e}=r;if(e&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${e}`),r.style==="unit"&&!u){let{unit:o,unitDisplay:n="short"}=r;if(!o)throw Error('unit option must be provided with style: "unit"');if(!((a=p[o])!=null&&a[n]))throw Error(`Unsupported unit ${o} with unitDisplay = ${n}`);r={...r,style:"decimal"}}let s=t+(r?Object.entries(r).sort((o,n)=>o[0]<n[0]?-1:1).join():"");if(l.has(s))return l.get(s);let i=new Intl.NumberFormat(t,r);return l.set(s,i),i}function b(t,r,e){if(r==="auto")return t.format(e);if(r==="never")return t.format(Math.abs(e));{let s=!1;if(r==="always"?s=e>0||Object.is(e,0):r==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):s=e>0),s){let i=t.format(-e),a=t.format(e),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return t.format(e)}}var g=h(c(),1);function D(t={}){let{locale:r}=y();return(0,g.useMemo)(()=>new f(r,t),[r,t])}export{f as n,D as t};
@@ -0,0 +1,7 @@
1
+ import{s as tt}from"./chunk-LvLJmgfZ.js";import{t as nt}from"./react-Bj1aDYRI.js";import{t as rt}from"./react-dom-CSu739Rf.js";import{n as it}from"./clsx-BDxNtGmi.js";import{n as ot}from"./SSRProvider-BkypbMcb.js";var d=tt(nt(),1),T=typeof document<"u"?d.useLayoutEffect:()=>{};function at(e){let[t,n]=(0,d.useState)(e),a=(0,d.useRef)(t),i=(0,d.useRef)(null),s=(0,d.useRef)(()=>{if(!i.current)return;let l=i.current.next();if(l.done){i.current=null;return}a.current===l.value?s.current():n(l.value)});return T(()=>{a.current=t,i.current&&s.current()}),[t,(0,d.useCallback)(l=>{i.current=l(a.current),s.current()},[s])]}var st=!!(typeof window<"u"&&window.document&&window.document.createElement),x=new Map,G;typeof FinalizationRegistry<"u"&&(G=new FinalizationRegistry(e=>{x.delete(e)}));function Se(e){let[t,n]=(0,d.useState)(e),a=(0,d.useRef)(null),i=ot(t),s=(0,d.useRef)(null);if(G&&G.register(s,i),st){let l=x.get(i);l&&!l.includes(a)?l.push(a):x.set(i,[a])}return T(()=>{let l=i;return()=>{G&&G.unregister(s),x.delete(l)}},[i]),(0,d.useEffect)(()=>{let l=a.current;return l&&n(l),()=>{l&&(a.current=null)}}),i}function lt(e,t){if(e===t)return e;let n=x.get(e);if(n)return n.forEach(i=>i.current=t),t;let a=x.get(t);return a?(a.forEach(i=>i.current=e),e):t}function ut(e=[]){let t=Se(),[n,a]=at(t),i=(0,d.useCallback)(()=>{a(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,a]);return T(i,[t,i,...e]),n}function te(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var h=e=>(e==null?void 0:e.ownerDocument)??document,O=e=>e&&"window"in e&&e.window===e?e:h(e).defaultView||window;function ct(e){return typeof e=="object"&&!!e&&"nodeType"in e&&typeof e.nodeType=="number"}function dt(e){return ct(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}var ft=!1;function W(){return ft}function E(e,t){if(!W())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName==="SLOT"&&n.assignedSlot?n.assignedSlot.parentNode:dt(n)?n.host:n.parentNode}return!1}var ne=(e=document)=>{var n;if(!W())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&((n=t.shadowRoot)!=null&&n.activeElement);)t=t.shadowRoot.activeElement;return t};function g(e){if(W()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function pt(e){if(!e)return!1;let t=e.getRootNode(),n=O(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let a=t.activeElement;return a!=null&&e.contains(a)}function Le(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,a=e.map(i=>{let s=Ce(i,t);return n||(n=typeof s=="function"),s});if(n)return()=>{a.forEach((i,s)=>{typeof i=="function"?i():Ce(e[s],null)})}}}function Ce(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function re(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let a=e[n];for(let i in a){let s=t[i],l=a[i];typeof s=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=te(s,l):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof l=="string"?t[i]=it(s,l):i==="id"&&s&&l?t.id=lt(s,l):i==="ref"&&s&&l?t.ref=Le(s,l):t[i]=l===void 0?s:l}}return t}function z(e){if(gt())e.focus({preventScroll:!0});else{let t=yt(e);e.focus(),vt(t)}}var _=null;function gt(){if(_==null){_=!1;try{document.createElement("div").focus({get preventScroll(){return _=!0,!0}})}catch{}}return _}function yt(e){let t=e.parentNode,n=[],a=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==a;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return a instanceof HTMLElement&&n.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),n}function vt(e){for(let{element:t,scrollTop:n,scrollLeft:a}of e)t.scrollTop=n,t.scrollLeft=a}function Y(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let t=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(t)&&t.some(a=>e.test(a.brand))||e.test(window.navigator.userAgent)}function ie(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function w(e){let t=null;return()=>(t??(t=e()),t)}var F=w(function(){return ie(/^Mac/i)}),Ae=w(function(){return ie(/^iPhone/i)}),oe=w(function(){return ie(/^iPad/i)||F()&&navigator.maxTouchPoints>1}),X=w(function(){return Ae()||oe()}),mt=w(function(){return F()||X()}),Me=w(function(){return Y(/AppleWebKit/i)&&!Ke()}),Ke=w(function(){return Y(/Chrome/i)}),ae=w(function(){return Y(/Android/i)}),bt=w(function(){return Y(/Firefox/i)}),ht=(0,d.createContext)({isNative:!0,open:Tt,useHref:e=>e});function se(){return(0,d.useContext)(ht)}function L(e,t,n=!0){var v;var a;let{metaKey:i,ctrlKey:s,altKey:l,shiftKey:p}=t;bt()&&(a=window.event)!=null&&((v=a.type)!=null&&v.startsWith("key"))&&e.target==="_blank"&&(F()?i=!0:s=!0);let y=Me()&&F()&&!oe()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:l,shiftKey:p}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:l,shiftKey:p,detail:1,bubbles:!0,cancelable:!0});L.isOpening=n,z(e),e.dispatchEvent(y),L.isOpening=!1}L.isOpening=!1;function Et(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Tt(e,t){Et(e,n=>L(n,t))}function wt(e){let t=se().useHref(e.href??"");return{"data-href":e.href?t:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Pt(e){let t=se().useHref((e==null?void 0:e.href)??"");return{href:e!=null&&e.href?t:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}var k=new Map,le=new Set;function Ie(){if(typeof window>"u")return;function e(a){return"propertyName"in a}let t=a=>{let i=g(a);if(!e(a)||!i)return;let s=k.get(i);s||(s=new Set,k.set(i,s),i.addEventListener("transitioncancel",n,{once:!0})),s.add(a.propertyName)},n=a=>{let i=g(a);if(!e(a)||!i)return;let s=k.get(i);if(s&&(s.delete(a.propertyName),s.size===0&&(i.removeEventListener("transitioncancel",n),k.delete(i)),k.size===0)){for(let l of le)l();le.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Ie):Ie());function kt(){for(let[e]of k)"isConnected"in e&&!e.isConnected&&k.delete(e)}function xe(e){requestAnimationFrame(()=>{kt(),k.size===0?e():le.add(e)})}function Oe(){let e=(0,d.useRef)(new Map),t=(0,d.useCallback)((i,s,l,p)=>{let y=p!=null&&p.once?(...v)=>{e.current.delete(l),l(...v)}:l;e.current.set(l,{type:s,eventTarget:i,fn:y,options:p}),i.addEventListener(s,y,p)},[]),n=(0,d.useCallback)((i,s,l,p)=>{var v;let y=((v=e.current.get(l))==null?void 0:v.fn)||l;i.removeEventListener(s,y,p),e.current.delete(l)},[]),a=(0,d.useCallback)(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return(0,d.useEffect)(()=>a,[a]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:a}}var St=d.useInsertionEffect??T;function V(e){let t=(0,d.useRef)(null);return St(()=>{t.current=e},[e]),(0,d.useCallback)((...n)=>{let a=t.current;return a==null?void 0:a(...n)},[])}function Fe(e,t){T(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ne(e){return e.pointerType===""&&e.isTrusted?!0:ae()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Re(e){return!ae()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}var Lt=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Ct(e){let t=O(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:a}=e.style,i=n!=="none"&&a!=="hidden"&&a!=="collapse";if(i){let{getComputedStyle:s}=e.ownerDocument.defaultView,{display:l,visibility:p}=s(e);i=l!=="none"&&p!=="hidden"&&p!=="collapse"}return i}function At(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ue(e,t){return Lt?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Ct(e)&&At(e,t)&&(!e.parentElement||ue(e.parentElement,e))}var ce=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Mt=ce.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ce.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var Kt=ce.join(':not([hidden]):not([tabindex="-1"]),');function He(e){return e.matches(Mt)&&ue(e)&&!De(e)}function It(e){return e.matches(Kt)&&ue(e)&&!De(e)}function De(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function xt(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function Ue(e,t,n){xt(e,t),t.set(e,n)}function de(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ge(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Ot(e){let t=(0,d.useRef)({isFocused:!1,observer:null});return T(()=>{let n=t.current;return()=>{n.observer&&(n.observer=(n.observer.disconnect(),null))}},[]),(0,d.useCallback)(n=>{let a=g(n);if(a instanceof HTMLButtonElement||a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement||a instanceof HTMLSelectElement){t.current.isFocused=!0;let i=a;i.addEventListener("focusout",s=>{if(t.current.isFocused=!1,i.disabled){let l=de(s);e==null||e(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)==null||s.disconnect();let l=i===ne()?null:ne();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}var fe=!1;function Ft(e){for(;e&&!He(e);)e=e.parentElement;let t=O(e),n=t.document.activeElement;if(!n||n===e)return;fe=!0;let a=!1,i=m=>{(g(m)===n||a)&&m.stopImmediatePropagation()},s=m=>{(g(m)===n||a)&&(m.stopImmediatePropagation(),!e&&!a&&(a=!0,z(n),y()))},l=m=>{(g(m)===e||a)&&m.stopImmediatePropagation()},p=m=>{(g(m)===e||a)&&(m.stopImmediatePropagation(),a||(a=!0,z(n),y()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",p,!0),t.addEventListener("focus",l,!0);let y=()=>{cancelAnimationFrame(v),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",p,!0),t.removeEventListener("focus",l,!0),fe=!1,a=!1},v=requestAnimationFrame(y);return y}var N="default",pe="",q=new WeakMap;function Nt(e){if(X()){if(N==="default"){let t=h(e);pe=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}N="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";q.set(e,e.style[t]),e.style[t]="none"}}function ze(e){if(X()){if(N!=="disabled")return;N="restoring",setTimeout(()=>{xe(()=>{if(N==="restoring"){let t=h(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=pe||""),pe="",N="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&q.has(e)){let t=q.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),q.delete(e)}}var ge=d.createContext({register:()=>{}});ge.displayName="PressResponderContext";function Rt(e,t){return t.get?t.get.call(e):t.value}function Ve(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Ht(e,t){return Rt(e,Ve(e,t,"get"))}function Dt(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}function je(e,t,n){return Dt(e,Ve(e,t,"set"),n),n}rt();function Ut(e){let t=(0,d.useContext)(ge);if(t){let{register:n,ref:a,...i}=t;e=re(i,e),n()}return Fe(t,e.ref),e}var J=new WeakMap,$=class{continuePropagation(){je(this,J,!1)}get shouldStopPropagation(){return Ht(this,J)}constructor(e,t,n,a){var v;Ue(this,J,{writable:!0,value:void 0}),je(this,J,!0);let i=(v=(a==null?void 0:a.target)??n.currentTarget)==null?void 0:v.getBoundingClientRect(),s,l=0,p,y=null;n.clientX!=null&&n.clientY!=null&&(p=n.clientX,y=n.clientY),i&&(p!=null&&y!=null?(s=p-i.left,l=y-i.top):(s=i.width/2,l=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=l,this.key=n.key}},Be=Symbol("linkClicked"),We="react-aria-pressable-style",_e="data-react-aria-pressable";function Gt(e){let{onPress:t,onPressChange:n,onPressStart:a,onPressEnd:i,onPressUp:s,onClick:l,isDisabled:p,isPressed:y,preventFocusOnPress:v,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:A,ref:Q,...qe}=Ut(e),[Je,me]=(0,d.useState)(!1),P=(0,d.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:M,removeAllGlobalListeners:R,removeGlobalListener:H}=Oe(),D=(0,d.useCallback)((r,c)=>{let o=P.current;if(p||o.didFirePressStart)return!1;let f=!0;if(o.isTriggeringEvent=!0,a){let u=new $("pressstart",c,r);a(u),f=u.shouldStopPropagation}return n&&n(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,me(!0),f},[p,a,n]),S=(0,d.useCallback)((r,c,o=!0)=>{let f=P.current;if(!f.didFirePressStart)return!1;f.didFirePressStart=!1,f.isTriggeringEvent=!0;let u=!0;if(i){let b=new $("pressend",c,r);i(b),u=b.shouldStopPropagation}if(n&&n(!1),me(!1),t&&o&&!p){let b=new $("press",c,r);t(b),u&&(u=b.shouldStopPropagation)}return f.isTriggeringEvent=!1,u},[p,i,n,t]),$e=V(S),U=(0,d.useCallback)((r,c)=>{let o=P.current;if(p)return!1;if(s){o.isTriggeringEvent=!0;let f=new $("pressup",c,r);return s(f),o.isTriggeringEvent=!1,f.shouldStopPropagation}return!0},[p,s]),Qe=V(U),K=(0,d.useCallback)(r=>{let c=P.current;if(c.isPressed&&c.target){c.didFirePressStart&&c.pointerType!=null&&S(C(c.target,r),c.pointerType,!1),c.isPressed=!1,Pe(null),c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,R(),A||ze(c.target);for(let o of c.disposables)o();c.disposables=[]}},[A,R,S]),Z=V(K),be=(0,d.useCallback)(r=>{m&&K(r)},[m,K]),ee=(0,d.useCallback)(r=>{p||(l==null||l(r))},[p,l]),he=(0,d.useCallback)((r,c)=>{if(!p&&l){let o=new MouseEvent("click",r);Ge(o,c),l(de(o))}},[p,l]),Ze=V(he),[Ee,Te]=(0,d.useState)(!1);T(()=>{let r=P.current;if(Ee){let c=u=>{var ke;if(r.isPressed&&r.target&&ve(u,r.target)){var b;Ye(g(u),u.key)&&u.preventDefault();let j=g(u),B=E(r.target,j);$e(C(r.target,u),"keyboard",B),B&&Ze(u,r.target),R(),u.key!=="Enter"&&ye(r.target)&&E(r.target,j)&&!u[Be]&&(u[Be]=!0,L(r.target,u,!1)),r.isPressed=!1,Te(!1),(b=r.metaKeyEvents)==null||b.delete(u.key)}else if(u.key==="Meta"&&((ke=r.metaKeyEvents)!=null&&ke.size)){var I;let j=r.metaKeyEvents;r.metaKeyEvents=void 0;for(let B of j.values())(I=r.target)==null||I.dispatchEvent(new KeyboardEvent("keyup",B))}},o=r.target,f=te(u=>{o&&ve(u,o)&&!u.repeat&&E(o,g(u))&&r.target&&Qe(C(r.target,u),"keyboard")},c);return M(h(r.target),"keyup",f,!0),()=>{H(h(r.target),"keyup",f,!0)}}},[Ee,M,R,H]);let[we,Pe]=(0,d.useState)(null);T(()=>{let r=P.current;if(we==="pointer"){let c=f=>{if(f.pointerId===r.activePointerId&&r.isPressed&&f.button===0&&r.target){if(E(r.target,g(f))&&r.pointerType!=null){let u=!1,b=setTimeout(()=>{r.isPressed&&r.target instanceof HTMLElement&&(u?Z(f):(z(r.target),r.target.click()))},80);f.currentTarget&&M(f.currentTarget,"click",()=>u=!0,!0),r.disposables.push(()=>clearTimeout(b))}else Z(f);r.isOverTarget=!1}},o=f=>{Z(f)};return M(h(r.target),"pointerup",c,!1),M(h(r.target),"pointercancel",o,!1),()=>{H(h(r.target),"pointerup",c,!1),H(h(r.target),"pointercancel",o,!1)}}},[we,M,H]);let et=(0,d.useMemo)(()=>{let r=P.current,c={onKeyDown(o){if(ve(o.nativeEvent,o.currentTarget)&&E(o.currentTarget,g(o))){var f;Ye(g(o),o.key)&&o.preventDefault();let u=!0;!r.isPressed&&!o.repeat&&(r.target=o.currentTarget,r.isPressed=!0,Te(!0),r.pointerType="keyboard",u=D(o,"keyboard")),u&&o.stopPropagation(),o.metaKey&&F()&&((f=r.metaKeyEvents)==null||f.set(o.key,o.nativeEvent))}else o.key==="Meta"&&(r.metaKeyEvents=new Map)},onClick(o){if(!(o&&!E(o.currentTarget,g(o)))&&o&&o.button===0&&!r.isTriggeringEvent&&!L.isOpening){let f=!0;if(p&&o.preventDefault(),!r.ignoreEmulatedMouseEvents&&!r.isPressed&&(r.pointerType==="virtual"||Ne(o.nativeEvent))){let u=D(o,"virtual"),b=U(o,"virtual"),I=S(o,"virtual");ee(o),f=u&&b&&I}else if(r.isPressed&&r.pointerType!=="keyboard"){let u=r.pointerType||o.nativeEvent.pointerType||"virtual",b=U(C(o.currentTarget,o),u),I=S(C(o.currentTarget,o),u,!0);f=b&&I,r.isOverTarget=!1,ee(o),K(o)}r.ignoreEmulatedMouseEvents=!1,f&&o.stopPropagation()}}};return typeof PointerEvent<"u"&&(c.onPointerDown=o=>{if(o.button!==0||!E(o.currentTarget,g(o)))return;if(Re(o.nativeEvent)){r.pointerType="virtual";return}r.pointerType=o.pointerType;let f=!0;if(!r.isPressed){r.isPressed=!0,Pe("pointer"),r.isOverTarget=!0,r.activePointerId=o.pointerId,r.target=o.currentTarget,A||Nt(r.target),f=D(o,r.pointerType);let u=g(o);"releasePointerCapture"in u&&("hasPointerCapture"in u?u.hasPointerCapture(o.pointerId)&&u.releasePointerCapture(o.pointerId):u.releasePointerCapture(o.pointerId))}f&&o.stopPropagation()},c.onMouseDown=o=>{if(E(o.currentTarget,g(o))&&o.button===0){if(v){let f=Ft(o.target);f&&r.disposables.push(f)}o.stopPropagation()}},c.onPointerUp=o=>{!E(o.currentTarget,g(o))||r.pointerType==="virtual"||o.button===0&&!r.isPressed&&U(o,r.pointerType||o.pointerType)},c.onPointerEnter=o=>{o.pointerId===r.activePointerId&&r.target&&!r.isOverTarget&&r.pointerType!=null&&(r.isOverTarget=!0,D(C(r.target,o),r.pointerType))},c.onPointerLeave=o=>{o.pointerId===r.activePointerId&&r.target&&r.isOverTarget&&r.pointerType!=null&&(r.isOverTarget=!1,S(C(r.target,o),r.pointerType,!1),be(o))},c.onDragStart=o=>{E(o.currentTarget,g(o))&&K(o)}),c},[p,v,R,A,K,be,S,D,U,ee,he]);return(0,d.useEffect)(()=>{if(!Q)return;let r=h(Q.current);if(!r||!r.head||r.getElementById(We))return;let c=r.createElement("style");c.id=We,c.textContent=`
2
+ @layer {
3
+ [${_e}] {
4
+ touch-action: pan-x pan-y pinch-zoom;
5
+ }
6
+ }
7
+ `.trim(),r.head.prepend(c)},[Q]),(0,d.useEffect)(()=>{let r=P.current;return()=>{A||ze(r.target??void 0);for(let c of r.disposables)c();r.disposables=[]}},[A]),{isPressed:y||Je,pressProps:re(qe,et,{[_e]:!0})}}function ye(e){return e.tagName==="A"&&e.hasAttribute("href")}function ve(e,t){let{key:n,code:a}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||a==="Space")&&!(i instanceof O(i).HTMLInputElement&&!Xe(i,n)||i instanceof O(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&ye(i))&&n!=="Enter")}function C(e,t){let n=t.clientX,a=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:a,key:t.key}}function zt(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!ye(e)}function Ye(e,t){return e instanceof HTMLInputElement?!Xe(e,t):zt(e)}var Vt=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xe(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Vt.has(e.type)}export{Le as A,Se as B,oe as C,X as D,mt as E,W as F,h as I,O as L,pt as M,ne as N,z as O,g as P,te as R,Me as S,ae as T,T as V,L as _,Ge as a,Ae as b,He as c,Ne as d,Fe as f,Pt as g,xe as h,Ot as i,E as j,re as k,It as l,Oe as m,ge as n,fe as o,V as p,de as r,Ue as s,Gt as t,Re as u,se as v,F as w,Ke as x,wt as y,ut as z};
@@ -0,0 +1 @@
1
+ import{d as k,n as i,p as v}from"./useEvent-O0nX5vok.js";import{An as w,E as y,Ir as F,Mr as b,h as d,pt as x}from"./cells-DiVpbkA6.js";import{t as A}from"./compiler-runtime-B3qBwwSJ.js";import{m as D}from"./useEventListener-Dy81QR4n.js";import{o as E}from"./dist-D0Vj4Kqc.js";import{r as H}from"./requests-Bgjtqo_1.js";var u=A();const I=v(!1);function M(){let r=(0,u.c)(2),n=p(),t;return r[0]===n?t=r[1]:(t=()=>n(F(d())),r[0]=n,r[1]=t),i(t)}function V(r){let n=(0,u.c)(3),t=p(),o;return n[0]!==r||n[1]!==t?(o=()=>{r!==void 0&&t([r])},n[0]=r,n[1]=t,n[2]=o):o=n[2],i(o)}function _(){let r=(0,u.c)(2),n=p(),t;return r[0]===n?t=r[1]:(t=()=>n(b(d())),r[0]=n,r[1]=t),i(t)}function p(){let r=(0,u.c)(4),{prepareForRun:n}=y(),{sendRun:t}=H(),o=k(I),e;return r[0]!==n||r[1]!==t||r[2]!==o?(e=async s=>{if(s.length===0)return;let c=d();return o(!0),g({cellIds:s,sendRun:t,prepareForRun:n,notebook:c})},r[0]=n,r[1]=t,r[2]=o,r[3]=e):e=r[3],i(e)}async function g({cellIds:r,sendRun:n,prepareForRun:t,notebook:o}){var m,h,R;if(r.length===0)return;let{cellHandles:e,cellData:s}=o,c=[];for(let a of r){let l=(h=(m=e[a])==null?void 0:m.current)==null?void 0:h.editorView,f;l?(w(l)!=="markdown"&&E(l),f=x(l)):f=((R=s[a])==null?void 0:R.code)||"",c.push(f),t({cellId:a})}await n({cellIds:r,codes:c}).catch(a=>{D.error(a)})}export{p as a,V as i,g as n,M as o,_ as r,I as t};
@@ -0,0 +1 @@
1
+ import{s as m}from"./chunk-LvLJmgfZ.js";import{n as p}from"./useEvent-O0nX5vok.js";import{E as d,f,pt as u}from"./cells-DiVpbkA6.js";import{t as c}from"./compiler-runtime-B3qBwwSJ.js";import{t as C}from"./jsx-runtime-icT_Ltz2.js";import{t as h}from"./use-toast-BtZldTi5.js";import{r as v}from"./useDeleteCell-lfqkVcrN.js";var x=c(),b=m(C(),1);function j(){let t=(0,x.c)(3),{splitCell:i,undoSplitCell:r}=d(),o;return t[0]!==i||t[1]!==r?(o=s=>{let l=f(s.cellId);if(!l)return;let a=u(l);i(s);let{dismiss:n}=h({title:"Cell split",action:(0,b.jsx)(v,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{r({...s,snapshot:a}),e()},children:"Undo"})}),e=n},t[0]=i,t[1]=r,t[2]=o):o=t[2],p(o)}export{j as t};
@@ -0,0 +1,61 @@
1
+ var ce=Object.defineProperty;var de=(t,e,n)=>e in t?ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var A=(t,e,n)=>de(t,typeof e!="symbol"?e+"":e,n);var at,lt,ot,ut,ct;import{C as he,S as fe}from"./_Uint8Array-C0aUZfE0.js";import{c as yt,m as ye}from"./useEventListener-Dy81QR4n.js";import{St as pt,a as pe,c as ge,gt as me,o as ve,wt as be}from"./vega-loader.browser-xq8miGHn.js";var xe="[object Number]";function we(t){return typeof t=="number"||fe(t)&&he(t)==xe}var Ie=we;const gt=Uint8Array.of(65,82,82,79,87,49),$={V1:0,V2:1,V3:2,V4:3,V5:4},D={NONE:0,Schema:1,DictionaryBatch:2,RecordBatch:3,Tensor:4,SparseTensor:5},l={Dictionary:-1,NONE:0,Null:1,Int:2,Float:3,Binary:4,Utf8:5,Bool:6,Decimal:7,Date:8,Time:9,Timestamp:10,Interval:11,List:12,Struct:13,Union:14,FixedSizeBinary:15,FixedSizeList:16,Map:17,Duration:18,LargeBinary:19,LargeUtf8:20,LargeList:21,RunEndEncoded:22,BinaryView:23,Utf8View:24,ListView:25,LargeListView:26},mt={HALF:0,SINGLE:1,DOUBLE:2},z={DAY:0,MILLISECOND:1},m={SECOND:0,MILLISECOND:1,MICROSECOND:2,NANOSECOND:3},C={YEAR_MONTH:0,DAY_TIME:1,MONTH_DAY_NANO:2},W={Sparse:0,Dense:1},vt=Uint8Array,bt=Uint16Array,xt=Uint32Array,wt=BigUint64Array,It=Int8Array,Le=Int16Array,x=Int32Array,L=BigInt64Array,Ae=Float32Array,k=Float64Array;function Ne(t,e){let n=Math.log2(t)-3;return(e?[It,Le,x,L]:[vt,bt,xt,wt])[n]}Object.getPrototypeOf(Int8Array);function X(t,e){let n=0,r=t.length;if(r<=2147483648)do{let i=n+r>>>1;t[i]<=e?n=i+1:r=i}while(n<r);else do{let i=Math.trunc((n+r)/2);t[i]<=e?n=i+1:r=i}while(n<r);return n}function J(t,e,n){if(e(t))return t;throw Error(n(t))}function w(t,e,n){return e=Array.isArray(e)?e:Object.values(e),J(t,r=>e.includes(r),n??(()=>`${t} must be one of ${e}`))}function Lt(t,e){for(let[n,r]of Object.entries(t))if(r===e)return n;return"<Unknown>"}const G=t=>`Unsupported data type: "${Lt(l,t)}" (id ${t})`,At=(t,e,n=!0,r=null)=>({name:t,type:e,nullable:n,metadata:r});function Nt(t){return Object.hasOwn(t,"name")&&Et(t.type)}function Et(t){return typeof(t==null?void 0:t.typeId)=="number"}function B(t,e="",n=!0){return Nt(t)?t:At(e,J(t,Et,()=>"Data type expected."),n)}const Ee=(t,e,n=!1,r=-1)=>({typeId:l.Dictionary,id:r,dictionary:t,indices:e||Dt(),ordered:n}),St=(t=32,e=!0)=>({typeId:l.Int,bitWidth:w(t,[8,16,32,64]),signed:e,values:Ne(t,e)}),Dt=()=>St(32),Se=(t=2)=>({typeId:l.Float,precision:w(t,mt),values:[bt,Ae,k][t]}),De=()=>({typeId:l.Binary,offsets:x}),Be=()=>({typeId:l.Utf8,offsets:x}),Oe=(t,e,n=128)=>({typeId:l.Decimal,precision:t,scale:e,bitWidth:w(n,[128,256]),values:wt}),Te=t=>({typeId:l.Date,unit:w(t,z),values:t===z.DAY?x:L}),Me=(t=m.MILLISECOND,e=32)=>({typeId:l.Time,unit:w(t,m),bitWidth:w(e,[32,64]),values:e===32?x:L}),Ce=(t=m.MILLISECOND,e=null)=>({typeId:l.Timestamp,unit:w(t,m),timezone:e,values:L}),Ue=(t=C.MONTH_DAY_NANO)=>({typeId:l.Interval,unit:w(t,C),values:t===C.MONTH_DAY_NANO?void 0:x}),Ve=t=>({typeId:l.List,children:[B(t)],offsets:x}),Fe=t=>({typeId:l.Struct,children:Array.isArray(t)&&Nt(t[0])?t:Object.entries(t).map(([e,n])=>At(e,n))}),Re=(t,e,n,r)=>(n??(n=e.map((i,s)=>s)),{typeId:l.Union,mode:w(t,W),typeIds:n,typeMap:n.reduce((i,s,a)=>(i[s]=a,i),{}),children:e.map((i,s)=>B(i,`_${s}`)),typeIdForValue:r,offsets:x}),$e=t=>({typeId:l.FixedSizeBinary,stride:t}),ze=(t,e)=>({typeId:l.FixedSizeList,stride:e,children:[B(t)]}),ke=(t,e)=>({typeId:l.Map,keysSorted:t,children:[e],offsets:x}),je=(t=m.MILLISECOND)=>({typeId:l.Duration,unit:w(t,m),values:L}),Ye=()=>({typeId:l.LargeBinary,offsets:L}),_e=()=>({typeId:l.LargeUtf8,offsets:L}),He=t=>({typeId:l.LargeList,children:[B(t)],offsets:L}),Pe=(t,e)=>({typeId:l.RunEndEncoded,children:[J(B(t,"run_ends"),n=>n.type.typeId===l.Int,()=>"Run-ends must have an integer type."),B(e,"values")]}),We=t=>({typeId:l.ListView,children:[B(t,"value")],offsets:x}),Xe=t=>({typeId:l.LargeListView,children:[B(t,"value")],offsets:L});var j=new k(2).buffer;new L(j),new xt(j),new x(j),new vt(j);function O(t){if(t>2**53-1||t<-(2**53-1))throw Error(`BigInt exceeds integer number representation: ${t}`);return Number(t)}function Z(t,e){return Number(t/e)+Number(t%e)/Number(e)}var U=t=>BigInt.asUintN(64,t);function Je(t,e){let n=e<<1,r;return BigInt.asIntN(64,t[n+1])<0?(r=U(~t[n])|U(~t[n+1])<<64n,r=-(r+1n)):r=t[n]|t[n+1]<<64n,r}function Ge(t,e){let n=e<<2,r;return BigInt.asIntN(64,t[n+3])<0?(r=U(~t[n])|U(~t[n+1])<<64n|U(~t[n+2])<<128n|U(~t[n+3])<<192n,r=-(r+1n)):r=t[n]|t[n+1]<<64n|t[n+2]<<128n|t[n+3]<<192n,r}var Ze=new TextDecoder("utf-8");new TextEncoder;function Y(t){return Ze.decode(t)}function Bt(t,e){return(t[e>>3]&1<<e%8)!=0}function N(t,e){let n=e+h(t,e),r=n-h(t,n),i=v(t,r);return(s,a,o=null)=>{if(s<i){let u=v(t,r+s);if(u)return a(t,n+u)}return o}}function M(t,e){return e}function F(t,e){return!!qe(t,e)}function qe(t,e){return q(t,e)<<24>>24}function q(t,e){return t[e]}function v(t,e){return Ke(t,e)<<16>>16}function Ke(t,e){return t[e]|t[e+1]<<8}function h(t,e){return t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24}function Ot(t,e){return h(t,e)>>>0}function b(t,e){return O(BigInt.asIntN(64,BigInt(Ot(t,e))+(BigInt(Ot(t,e+4))<<32n)))}function _(t,e){let n=e+h(t,e),r=h(t,n);return n+=4,Y(t.subarray(n,n+r))}function T(t,e,n,r){if(!e)return[];let i=e+h(t,e);return Array.from({length:h(t,i)},(s,a)=>r(t,i+4+a*n))}const K=Symbol("rowIndex");function Q(t,e){class n{constructor(s){this[K]=s}toJSON(){return Mt(t,e,this[K])}}let r=n.prototype;for(let i=0;i<t.length;++i){if(Object.hasOwn(r,t[i]))continue;let s=e[i];Object.defineProperty(r,t[i],{get(){return s.at(this[K])},enumerable:!0})}return i=>new n(i)}function Tt(t,e){return n=>Mt(t,e,n)}function Mt(t,e,n){let r={};for(let i=0;i<t.length;++i)r[t[i]]=e[i].at(n);return r}function Qe(t){return t instanceof P}var H=(at=class{constructor({length:t,nullCount:e,type:n,validity:r,values:i,offsets:s,sizes:a,children:o}){this.length=t,this.nullCount=e,this.type=n,this.validity=r,this.values=i,this.offsets=s,this.sizes=a,this.children=o,(!e||!this.validity)&&(this.at=u=>this.value(u))}get[Symbol.toStringTag](){return"Batch"}at(t){return this.isValid(t)?this.value(t):null}isValid(t){return Bt(this.validity,t)}value(t){return this.values[t]}slice(t,e){let n=e-t,r=Array(n);for(let i=0;i<n;++i)r[i]=this.at(t+i);return r}*[Symbol.iterator](){for(let t=0;t<this.length;++t)yield this.at(t)}},A(at,"ArrayType",null),at),P=class extends H{constructor(t){super(t);let{length:e,values:n}=this;this.values=n.subarray(0,e)}slice(t,e){return this.nullCount?super.slice(t,e):this.values.subarray(t,e)}[Symbol.iterator](){return this.nullCount?super[Symbol.iterator]():this.values[Symbol.iterator]()}},tt=(lt=class extends H{},A(lt,"ArrayType",k),lt),f=(ot=class extends H{},A(ot,"ArrayType",Array),ot),tn=class extends f{value(t){return null}},V=class extends tt{value(t){return O(this.values[t])}},en=class extends tt{value(t){let e=this.values[t],n=(e&31744)>>10,r=(e&1023)/1024,i=(-1)**((e&32768)>>15);switch(n){case 31:return i*(r?NaN:1/0);case 0:return i*(r?6103515625e-14*r:0)}return i*2**(n-15)*(1+r)}},nn=class extends f{value(t){return Bt(this.values,t)}},Ct=class extends H{constructor(t){super(t);let{bitWidth:e,scale:n}=this.type;this.decimal=e===128?Je:Ge,this.scale=10n**BigInt(n)}},rn=(ut=class extends Ct{value(t){return Z(this.decimal(this.values,t),this.scale)}},A(ut,"ArrayType",k),ut),sn=(ct=class extends Ct{value(t){return this.decimal(this.values,t)}},A(ct,"ArrayType",Array),ct),Ut=class extends f{constructor(t){super(t),this.source=t}value(t){return new Date(this.source.value(t))}},an=class extends tt{value(t){return 864e5*this.values[t]}};const ln=V;var on=class extends V{value(t){return super.value(t)*1e3}};const un=V;var cn=class extends V{value(t){return Z(this.values[t],1000n)}},dn=class extends V{value(t){return Z(this.values[t],1000000n)}},hn=class extends f{value(t){return this.values.subarray(t<<1,t+1<<1)}},fn=class extends f{value(t){let e=this.values,n=t<<4;return Float64Array.of(h(e,n),h(e,n+4),b(e,n+8))}},Vt=({values:t,offsets:e},n)=>t.subarray(e[n],e[n+1]),Ft=({values:t,offsets:e},n)=>t.subarray(O(e[n]),O(e[n+1])),yn=class extends f{value(t){return Vt(this,t)}},pn=class extends f{value(t){return Ft(this,t)}},gn=class extends f{value(t){return Y(Vt(this,t))}},mn=class extends f{value(t){return Y(Ft(this,t))}},vn=class extends f{value(t){let e=this.offsets;return this.children[0].slice(e[t],e[t+1])}},bn=class extends f{value(t){let e=this.offsets;return this.children[0].slice(O(e[t]),O(e[t+1]))}},xn=class extends f{value(t){let e=this.offsets[t],n=e+this.sizes[t];return this.children[0].slice(e,n)}},wn=class extends f{value(t){let e=this.offsets[t],n=e+this.sizes[t];return this.children[0].slice(O(e),O(n))}},Rt=class extends f{constructor(t){super(t),this.stride=this.type.stride}},In=class extends Rt{value(t){let{stride:e,values:n}=this;return n.subarray(t*e,(t+1)*e)}},Ln=class extends Rt{value(t){let{children:e,stride:n}=this;return e[0].slice(t*n,(t+1)*n)}};function $t({children:t,offsets:e},n){let[r,i]=t[0].children,s=e[n],a=e[n+1],o=[];for(let u=s;u<a;++u)o.push([r.at(u),i.at(u)]);return o}var An=class extends f{value(t){return $t(this,t)}},Nn=class extends f{value(t){return new Map($t(this,t))}},zt=class extends f{constructor({typeIds:t,...e}){super(e),this.typeIds=t,this.typeMap=this.type.typeMap}value(t,e=t){let{typeIds:n,children:r,typeMap:i}=this;return r[i[n[t]]].at(e)}},En=class extends zt{value(t){return super.value(t,this.offsets[t])}},kt=class extends f{constructor(t,e=Tt){super(t),this.names=this.type.children.map(n=>n.name),this.factory=e(this.names,this.children)}value(t){return this.factory(t)}},Sn=class extends kt{constructor(t){super(t,Q)}},Dn=class extends f{value(t){let[{values:e},n]=this.children;return n.at(X(e,t))}},Bn=class extends f{setDictionary(t){return this.dictionary=t,this.cache=t.cache(),this}value(t){return this.cache[this.key(t)]}key(t){return this.values[t]}},jt=class extends f{constructor({data:t,...e}){super(e),this.data=t}view(t){let{values:e,data:n}=this,r=t<<4,i=r+4,s=e,a=h(s,r);return a>12&&(i=h(s,r+12),s=n[h(s,r+8)]),s.subarray(i,i+a)}},On=class extends jt{value(t){return this.view(t)}},Tn=class extends jt{value(t){return Y(this.view(t))}};function Yt(t){let e=[];return{add(n){return e.push(n),this},clear:()=>e=[],done:()=>new Mn(e,t)}}var Mn=class{constructor(t,e=(n=>(n=t[0])==null?void 0:n.type)()){this.type=e,this.length=t.reduce((s,a)=>s+a.length,0),this.nullCount=t.reduce((s,a)=>s+a.nullCount,0),this.data=t;let r=t.length,i=new Int32Array(r+1);if(r===1){let[s]=t;i[1]=s.length,this.at=a=>s.at(a)}else for(let s=0,a=0;s<r;++s)i[s+1]=a+=t[s].length;this.offsets=i}get[Symbol.toStringTag](){return"Column"}[Symbol.iterator](){let t=this.data;return t.length===1?t[0][Symbol.iterator]():Cn(t)}at(t){var i;let{data:e,offsets:n}=this,r=X(n,t)-1;return(i=e[r])==null?void 0:i.at(t-n[r])}get(t){return this.at(t)}toArray(){let{length:t,nullCount:e,data:n}=this,r=!e&&Qe(n[0]),i=n.length;if(r&&i===1)return n[0].values;let s=new(!i||e>0?Array:n[0].constructor.ArrayType??n[0].values.constructor)(t);return r?Un(s,n):Vn(s,n)}cache(){return this._cache??(this._cache=this.toArray())}};function*Cn(t){for(let e=0;e<t.length;++e){let n=t[e][Symbol.iterator]();for(let r=n.next();!r.done;r=n.next())yield r.value}}function Un(t,e){for(let n=0,r=0;n<e.length;++n){let{values:i}=e[n];t.set(i,r),r+=i.length}return t}function Vn(t,e){let n=-1;for(let r=0;r<e.length;++r){let i=e[r];for(let s=0;s<i.length;++s)t[++n]=i.at(s)}return t}var Fn=class oe{constructor(e,n,r=!1){let i=e.fields.map(a=>a.name);this.schema=e,this.names=i,this.children=n,this.factory=r?Q:Tt;let s=[];this.getFactory=a=>s[a]??(s[a]=this.factory(i,n.map(o=>o.data[a])))}get[Symbol.toStringTag](){return"Table"}get numCols(){return this.names.length}get numRows(){var e;return((e=this.children[0])==null?void 0:e.length)??0}getChildAt(e){return this.children[e]}getChild(e){let n=this.names.findIndex(r=>r===e);return n>-1?this.children[n]:void 0}selectAt(e,n=[]){let{children:r,factory:i,schema:s}=this,{fields:a}=s;return new oe({...s,fields:e.map((o,u)=>Rn(a[o],n[u]))},e.map(o=>r[o]),i===Q)}select(e,n){let r=this.names,i=e.map(s=>r.indexOf(s));return this.selectAt(i,n)}toColumns(){let{children:e,names:n}=this,r={};return n.forEach((i,s)=>{var a;return r[i]=((a=e[s])==null?void 0:a.toArray())??[]}),r}toArray(){var a;let{children:e,getFactory:n,numRows:r}=this,i=((a=e[0])==null?void 0:a.data)??[],s=Array(r);for(let o=0,u=-1;o<i.length;++o){let d=n(o);for(let c=0;c<i[o].length;++c)s[++u]=d(c)}return s}*[Symbol.iterator](){var i;let{children:e,getFactory:n}=this,r=((i=e[0])==null?void 0:i.data)??[];for(let s=0;s<r.length;++s){let a=n(s);for(let o=0;o<r[s].length;++o)yield a(o)}}at(e){let{children:n,getFactory:r,numRows:i}=this;if(e<0||e>=i)return null;let[{offsets:s}]=n,a=X(s,e)-1;return r(a)(e-s[a])}get(e){return this.at(e)}};function Rn(t,e){return e!=null&&e!==t.name?{...t,name:e}:t}function $n(t,e={}){let{typeId:n,bitWidth:r,precision:i,unit:s}=t,{useBigInt:a,useDate:o,useDecimalBigInt:u,useMap:d,useProxy:c}=e;switch(n){case l.Null:return tn;case l.Bool:return nn;case l.Int:case l.Time:case l.Duration:return a||r<64?P:V;case l.Float:return i?P:en;case l.Date:return _t(s===z.DAY?an:ln,o&&Ut);case l.Timestamp:return _t(s===m.SECOND?on:s===m.MILLISECOND?un:s===m.MICROSECOND?cn:dn,o&&Ut);case l.Decimal:return u?sn:rn;case l.Interval:return s===C.DAY_TIME?hn:s===C.YEAR_MONTH?P:fn;case l.FixedSizeBinary:return In;case l.Utf8:return gn;case l.LargeUtf8:return mn;case l.Binary:return yn;case l.LargeBinary:return pn;case l.BinaryView:return On;case l.Utf8View:return Tn;case l.List:return vn;case l.LargeList:return bn;case l.Map:return d?Nn:An;case l.ListView:return xn;case l.LargeListView:return wn;case l.FixedSizeList:return Ln;case l.Struct:return c?Sn:kt;case l.RunEndEncoded:return Dn;case l.Dictionary:return Bn;case l.Union:return t.mode?En:zt}throw Error(G(n))}function _t(t,e){return e?class extends e{constructor(n){super(new t(n))}}:t}function zn(t,e){return{offset:b(t,e),metadataLength:h(t,e+8),bodyLength:b(t,e+16)}}function Ht(t,e){return T(t,e,24,zn)}function Pt(t,e,n){let r=N(t,e);if(r(10,M,0))throw Error("Record batch compression not implemented");let i=n<$.V4?8:0;return{length:r(4,b,0),nodes:T(t,r(6,M),16,(s,a)=>({length:b(s,a),nullCount:b(s,a+8)})),regions:T(t,r(8,M),16+i,(s,a)=>({offset:b(s,a+i),length:b(s,a+i+8)})),variadic:T(t,r(12,M),8,b)}}function kn(t,e,n){let r=N(t,e);return{id:r(4,b,0),data:r(6,(i,s)=>Pt(i,s,n)),isDelta:r(8,F,!1)}}function Wt(t,e,n,r){w(n,l,G);let i=N(t,e);switch(n){case l.Binary:return De();case l.Utf8:return Be();case l.LargeBinary:return Ye();case l.LargeUtf8:return _e();case l.List:return Ve(r[0]);case l.ListView:return We(r[0]);case l.LargeList:return He(r[0]);case l.LargeListView:return Xe(r[0]);case l.Struct:return Fe(r);case l.RunEndEncoded:return Pe(r[0],r[1]);case l.Int:return St(i(4,h,0),i(6,F,!1));case l.Float:return Se(i(4,v,mt.HALF));case l.Decimal:return Oe(i(4,h,0),i(6,h,0),i(8,h,128));case l.Date:return Te(i(4,v,z.MILLISECOND));case l.Time:return Me(i(4,v,m.MILLISECOND),i(6,h,32));case l.Timestamp:return Ce(i(4,v,m.SECOND),i(6,_));case l.Interval:return Ue(i(4,v,C.YEAR_MONTH));case l.Duration:return je(i(4,v,m.MILLISECOND));case l.FixedSizeBinary:return $e(i(4,h,0));case l.FixedSizeList:return ze(r[0],i(4,h,0));case l.Map:return ke(i(4,F,!1),r[0]);case l.Union:return Re(i(4,v,W.Sparse),r,T(t,i(6,M),4,h))}return{typeId:n}}function et(t,e){let n=T(t,e,4,(r,i)=>{let s=N(r,i);return[s(4,_),s(6,_)]});return n.length?new Map(n):null}function Xt(t,e,n){let r=N(t,e);return{version:n,endianness:r(4,v,0),fields:r(6,jn,[]),metadata:r(8,et)}}function jn(t,e){return T(t,e,4,Jt)}function Jt(t,e){let n=N(t,e),r=n(8,q,l.NONE),i=n(10,M,0),s=n(12,_n),a=Wt(t,i,r,n(14,(o,u)=>Yn(o,u)));return s&&(s.dictionary=a,a=s),{name:n(4,_),type:a,nullable:n(6,F,!1),metadata:n(16,et)}}function Yn(t,e){let n=T(t,e,4,Jt);return n.length?n:null}function _n(t,e){if(!e)return null;let n=N(t,e);return Ee(null,n(6,Hn,Dt()),n(8,F,!1),n(4,b,0))}function Hn(t,e){return Wt(t,e,l.Int)}var Pn=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,Wn=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,Xn=t=>`Unsupported message type: ${t} (${Lt(D,t)})`;function nt(t,e){let n=h(t,e)||0;if(e+=4,n===-1&&(n=h(t,e)||0,e+=4),n===0)return null;let r=t.subarray(e,e+=n);if(r.byteLength<n)throw Error(Pn(n,r.byteLength));let i=N(r,0),s=i(4,v,$.V1),a=i(6,q,D.NONE),o=i(8,M,0),u=i(10,b,0),d;if(o){let c=a===D.Schema?Xt:a===D.DictionaryBatch?kn:a===D.RecordBatch?Pt:null;if(!c)throw Error(Xn(a));if(d=c(r,o,s),u>0){let g=t.subarray(e,e+=u);if(g.byteLength<u)throw Error(Wn(u,g.byteLength));d.body=g}}return{version:s,type:a,index:e,content:d}}function Jn(t){let e=t instanceof ArrayBuffer?new Uint8Array(t):t;return e instanceof Uint8Array&&Gn(e)?qn(e):Zn(e)}function Gn(t){if(!t||t.length<4)return!1;for(let e=0;e<6;++e)if(gt[e]!==t[e])return!1;return!0}function Zn(t){let e=[t].flat(),n,r=[],i=[];for(let s of e){if(!(s instanceof Uint8Array))throw Error("IPC data batch was not a Uint8Array.");let a=0;for(;;){let o=nt(s,a);if(o===null)break;if(a=o.index,o.content)switch(o.type){case D.Schema:n||(n=o.content);break;case D.RecordBatch:r.push(o.content);break;case D.DictionaryBatch:i.push(o.content);break}}}return{schema:n,dictionaries:i,records:r,metadata:null}}function qn(t){let e=t.byteLength-(gt.length+4),n=N(t,e-h(t,e)),r=n(4,v,$.V1),i=n(8,Ht,[]),s=n(10,Ht,[]);return{schema:n(6,(a,o)=>Xt(a,o,r)),dictionaries:i.map(({offset:a})=>nt(t,a).content),records:s.map(({offset:a})=>nt(t,a).content),metadata:n(12,et)}}function rt(t,e){return Kn(Jn(t),e)}function Kn(t,e={}){let{schema:n={fields:[]},dictionaries:r,records:i}=t,{version:s,fields:a}=n,o=new Map,u=tr(e,s,o),d=new Map;Qn(n,y=>{let p=y.type;p.typeId===l.Dictionary&&d.set(p.id,p.dictionary)});let c=new Map;for(let y of r){let{id:p,data:E,isDelta:S,body:ue}=y,dt=d.get(p),ht=it(dt,u({...E,body:ue}));if(c.has(p)){let ft=c.get(p);S||ft.clear(),ft.add(ht)}else{if(S)throw Error("Delta update can not be first dictionary batch.");c.set(p,Yt(dt).add(ht))}}c.forEach((y,p)=>o.set(p,y.done()));let g=a.map(y=>Yt(y.type));for(let y of i){let p=u(y);a.forEach((E,S)=>g[S].add(it(E.type,p)))}return new Fn(n,g.map(y=>y.done()),e.useProxy)}function Qn(t,e){t.fields.forEach(function n(r){var i,s,a;e(r),(s=(i=r.type.dictionary)==null?void 0:i.children)==null||s.forEach(n),(a=r.type.children)==null||a.forEach(n)})}function tr(t,e,n){let r={version:e,options:t,dictionary:i=>n.get(i)};return i=>{let{length:s,nodes:a,regions:o,variadic:u,body:d}=i,c=-1,g=-1,y=-1;return{...r,length:s,node:()=>a[++c],buffer:p=>{let{length:E,offset:S}=o[++g];return p?new p(d.buffer,d.byteOffset+S,E/p.BYTES_PER_ELEMENT):d.subarray(S,S+E)},variadic:()=>u[++y],visit(p){return p.map(E=>it(E.type,this))}}}}function it(t,e){let{typeId:n}=t,{length:r,options:i,node:s,buffer:a,variadic:o,version:u}=e,d=$n(t,i);if(n===l.Null)return new d({length:r,nullCount:r,type:t});let c={...s(),type:t};switch(n){case l.Bool:case l.Int:case l.Time:case l.Duration:case l.Float:case l.Decimal:case l.Date:case l.Timestamp:case l.Interval:case l.FixedSizeBinary:return new d({...c,validity:a(),values:a(t.values)});case l.Utf8:case l.LargeUtf8:case l.Binary:case l.LargeBinary:return new d({...c,validity:a(),offsets:a(t.offsets),values:a()});case l.BinaryView:case l.Utf8View:return new d({...c,validity:a(),values:a(),data:Array.from({length:o()},()=>a())});case l.List:case l.LargeList:case l.Map:return new d({...c,validity:a(),offsets:a(t.offsets),children:e.visit(t.children)});case l.ListView:case l.LargeListView:return new d({...c,validity:a(),offsets:a(t.offsets),sizes:a(t.offsets),children:e.visit(t.children)});case l.FixedSizeList:case l.Struct:return new d({...c,validity:a(),children:e.visit(t.children)});case l.RunEndEncoded:return new d({...c,children:e.visit(t.children)});case l.Dictionary:{let{id:g,indices:y}=t;return new d({...c,validity:a(),values:a(y.values)}).setDictionary(e.dictionary(g))}case l.Union:return u<$.V5&&a(),new d({...c,typeIds:a(It),offsets:t.mode===W.Sparse?null:a(t.offsets),children:e.visit(t.children)});default:throw Error(G(n))}}new Uint16Array(new Uint8Array([1,0]).buffer)[0];function R(t,e){let n=new Map;return(...r)=>{let i=e(...r);if(n.has(i))return n.get(i);let s=t(...r).finally(()=>{n.delete(i)});return n.set(i,s),s}}function st(t,e){return ve(t,e)}function er(){return pe()}const I=ge;function Gt(){let t=nr(er()),e=n=>JSON.stringify(n);return{load:R(t.load.bind(t),e),sanitize:R(t.sanitize.bind(t),e),http:R(t.http.bind(t),e),file:R(t.file.bind(t),e)}}function nr(t){return{...t,async load(e,n){return e.endsWith(".arrow")?rt(await Zt(e),{useProxy:!1}).toArray():t.load(e,n)}}}const Zt=R(t=>fetch(t).then(e=>e.arrayBuffer()),t=>t);var qt=I.integer,Kt=I.number,rr=I.date,ir=I.boolean,Qt=()=>(I.integer=t=>{if(t==="")return"";if(t==="-inf"||t==="inf")return t;function e(r){let i=qt(r);return Number.isNaN(i)?r:i}let n=Number.parseInt(t,10);if(Ie(n)){if(!(Math.abs(n)>2**53-1))return e(t);try{return BigInt(t)}catch{return e(t)}}else return""},I.number=t=>{if(t==="-inf"||t==="inf")return t;let e=Kt(t);return Number.isNaN(e)?t:e},()=>{I.integer=qt,I.number=Kt}),te=()=>(I.date=t=>{if(t==="")return"";if(t==null)return null;if(!/^\d{4}-\d{2}-\d{2}(T[\d.:]+(Z|[+-]\d{2}:?\d{2})?)?$/.test(t))return t;try{let e=new Date(t);return Number.isNaN(e.getTime())?t:e}catch{return ye.warn(`Failed to parse date: ${t}`),t}},()=>{I.date=rr});I.boolean=t=>t==="True"?!0:t==="False"?!1:ir(t);const ee=Gt();async function sr(t,e,n={}){let{handleBigIntAndNumberLike:r=!1,replacePeriod:i=!1}=n;if(t.endsWith(".arrow")||(e==null?void 0:e.type)==="arrow")return rt(await Zt(t),{useProxy:!0,useDate:!0,useBigInt:r}).toArray();let s=[te];r&&s.push(Qt);let a=[];try{let o=await ee.load(t);if(!e){if(typeof o=="string")try{JSON.parse(o),e={type:"json"}}catch{e={type:"csv",parse:"auto"}}typeof o=="object"&&(e={type:"json"})}let u=(e==null?void 0:e.type)==="csv";u&&typeof o=="string"&&(o=lr(o)),u&&typeof o=="string"&&i&&(o=or(o));let d=(e==null?void 0:e.parse)||"auto";return typeof d=="object"&&(d=yt.mapValues(d,c=>c==="time"?"string":c==="datetime"?"date":c)),a=s.map(c=>c()),u?st(o,{...e,parse:d}):st(o,e)}finally{a.forEach(o=>o())}}function ar(t,e=!0){let n=[te];e&&n.push(Qt);let r=n.map(s=>s()),i=st(t,{type:"csv",parse:"auto"});return r.forEach(s=>s()),i}function lr(t){return t!=null&&t.includes(",")?ne(t,e=>{let n=new Set;return e.map(r=>{let i=cr(r,n);return n.add(i),i})}):t}function or(t){return t!=null&&t.includes(".")?ne(t,e=>e.map(n=>n.replaceAll(".","\u2024"))):t}function ne(t,e){let n=t.split(`
2
+ `);return n[0]=e(n[0].split(",")).join(","),n.join(`
3
+ `)}var ur="\u200B";function cr(t,e){let n=t,r=1;for(;e.has(n);)n=`${t}${ur.repeat(r)}`,r++;return n}var dr={version:"1.1.0"};function hr(t,e,n,r){if(me(t))return`[${t.map(i=>e(be(i)?i:re(i,n))).join(", ")}]`;if(pt(t)){let i="",{title:s,image:a,...o}=t;s&&(i+=`<h2>${e(s)}</h2>`),a&&(i+=`<img src="${new URL(e(a),r||location.href).href}">`);let u=Object.keys(o);if(u.length>0){i+="<table>";for(let d of u){let c=o[d];c!==void 0&&(pt(c)&&(c=re(c,n)),i+=`<tr><td class="key">${e(d)}</td><td class="value">${e(c)}</td></tr>`)}i+="</table>"}return i||"{}"}return e(t)}function fr(t){let e=[];return function(n,r){return typeof r!="object"||!r?r:(e.length=e.indexOf(this)+1,e.length>t?"[Object]":e.indexOf(r)>=0?"[Circular]":(e.push(r),r))}}function re(t,e){return JSON.stringify(t,fr(e))}var yr=`#vg-tooltip-element {
4
+ visibility: hidden;
5
+ padding: 8px;
6
+ position: fixed;
7
+ z-index: 1000;
8
+ font-family: sans-serif;
9
+ font-size: 11px;
10
+ border-radius: 3px;
11
+ box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
12
+ white-space: pre-line;
13
+ }
14
+ #vg-tooltip-element.visible {
15
+ visibility: visible;
16
+ }
17
+ #vg-tooltip-element h2 {
18
+ margin-top: 0;
19
+ margin-bottom: 10px;
20
+ font-size: 13px;
21
+ }
22
+ #vg-tooltip-element table {
23
+ border-spacing: 0;
24
+ }
25
+ #vg-tooltip-element table tr {
26
+ border: none;
27
+ }
28
+ #vg-tooltip-element table tr td {
29
+ overflow: hidden;
30
+ text-overflow: ellipsis;
31
+ padding-top: 2px;
32
+ padding-bottom: 2px;
33
+ vertical-align: text-top;
34
+ }
35
+ #vg-tooltip-element table tr td.key {
36
+ color: #808080;
37
+ max-width: 150px;
38
+ text-align: right;
39
+ padding-right: 4px;
40
+ }
41
+ #vg-tooltip-element table tr td.value {
42
+ display: block;
43
+ max-width: 300px;
44
+ max-height: 7em;
45
+ text-align: left;
46
+ }
47
+ #vg-tooltip-element {
48
+ /* The default theme is the light theme. */
49
+ background-color: rgba(255, 255, 255, 0.95);
50
+ border: 1px solid #d9d9d9;
51
+ color: black;
52
+ }
53
+ #vg-tooltip-element.dark-theme {
54
+ background-color: rgba(32, 32, 32, 0.9);
55
+ border: 1px solid #f5f5f5;
56
+ color: white;
57
+ }
58
+ #vg-tooltip-element.dark-theme td.key {
59
+ color: #bfbfbf;
60
+ }
61
+ `,ie="vg-tooltip-element",pr={offsetX:10,offsetY:10,id:ie,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:gr,maxDepth:2,formatTooltip:hr,baseURL:"",anchor:"cursor",position:["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"]};function gr(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;")}function mr(t){if(!/^[A-Za-z]+[-:.\w]*$/.test(t))throw Error("Invalid HTML ID");return yr.toString().replaceAll(ie,t)}function se(t,e,{offsetX:n,offsetY:r}){let i=ae({x1:t.clientX,x2:t.clientX,y1:t.clientY,y2:t.clientY},e,n,r);for(let s of["bottom-right","bottom-left","top-right","top-left"])if(le(i[s],e))return i[s];return i["top-left"]}function vr(t,e,n,r,i){let{position:s,offsetX:a,offsetY:o}=i,u=t._el.getBoundingClientRect(),d=t._origin,c=ae(br(u,d,n),r,a,o),g=Array.isArray(s)?s:[s];for(let y of g)if(le(c[y],r)&&!xr(e,c[y],r))return c[y];return se(e,r,i)}function br(t,e,n){let r=n.isVoronoi?n.datum.bounds:n.bounds,i=t.left+e[0]+r.x1,s=t.top+e[1]+r.y1,a=n;for(;a.mark.group;)a=a.mark.group,i+=a.x??0,s+=a.y??0;let o=r.x2-r.x1,u=r.y2-r.y1;return{x1:i,x2:i+o,y1:s,y2:s+u}}function ae(t,e,n,r){let i=(t.x1+t.x2)/2,s=(t.y1+t.y2)/2,a=t.x1-e.width-n,o=i-e.width/2,u=t.x2+n,d=t.y1-e.height-r,c=s-e.height/2,g=t.y2+r;return{top:{x:o,y:d},bottom:{x:o,y:g},left:{x:a,y:c},right:{x:u,y:c},"top-left":{x:a,y:d},"top-right":{x:u,y:d},"bottom-left":{x:a,y:g},"bottom-right":{x:u,y:g}}}function le(t,e){return t.x>=0&&t.y>=0&&t.x+e.width<=window.innerWidth&&t.y+e.height<=window.innerHeight}function xr(t,e,n){return t.clientX>=e.x&&t.clientX<=e.x+n.width&&t.clientY>=e.y&&t.clientY<=e.y+n.height}var wr=class{constructor(t){A(this,"call");A(this,"options");A(this,"el");this.options={...pr,...t};let e=this.options.id;if(this.el=null,this.call=this.tooltipHandler.bind(this),!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){let n=document.createElement("style");n.setAttribute("id",this.options.styleId),n.innerHTML=mr(e);let r=document.head;r.childNodes.length>0?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)}}tooltipHandler(t,e,n,r){if(this.el=document.getElementById(this.options.id),this.el||(this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip"),(document.fullscreenElement??document.body).appendChild(this.el)),r==null||r===""){this.el.classList.remove("visible",`${this.options.theme}-theme`);return}this.el.innerHTML=this.options.formatTooltip(r,this.options.sanitize,this.options.maxDepth,this.options.baseURL),this.el.classList.add("visible",`${this.options.theme}-theme`);let{x:i,y:s}=this.options.anchor==="mark"?vr(t,e,n,this.el.getBoundingClientRect(),this.options):se(e,this.el.getBoundingClientRect(),this.options);this.el.style.top=`${s}px`,this.el.style.left=`${i}px`}};dr.version;const Ir=new wr;function Lr(t){if(typeof t=="object"&&t&&"width"in t)return t.width}function Ar(t){return!t||Object.keys(t).length===0?"auto":yt.mapValues(t,e=>e==="date"||e==="time"?"string":e==="datetime"?"date":e)}export{sr as a,rt as c,ar as i,Ar as n,ee as o,Ir as r,Gt as s,Lr as t};
@@ -0,0 +1 @@
1
+ import{t as o}from"./vb-E2EKvwgc.js";export{o as vb};
@@ -0,0 +1 @@
1
+ import{n as r,t}from"./vbscript-98sn9Pr4.js";export{t as vbScript,r as vbScriptASP};
@@ -0,0 +1 @@
1
+ import{s as z}from"./chunk-LvLJmgfZ.js";import{n as C}from"./useEvent-O0nX5vok.js";import{t as Y}from"./react-Bj1aDYRI.js";import"./react-dom-CSu739Rf.js";import{t as tt}from"./compiler-runtime-B3qBwwSJ.js";import{t as et}from"./debounce-DS_VtWMt.js";import{a as nt,r as rt,t as at}from"./utils-DnNnBV1N.js";import{t as N}from"./uniq-fnEfqrGj.js";import{c as T,m as _}from"./useEventListener-Dy81QR4n.js";import{n as V}from"./config-DqxNMQDN.js";import{t as it}from"./jsx-runtime-icT_Ltz2.js";import{r as ot}from"./button-Ej3vmCIF.js";import{t as lt}from"./cn-BoaCR37F.js";import{u as ct}from"./toDate-Cfp9W_O9.js";import"./session-CByuQ-M-.js";import{r as st}from"./useTheme-KDW4sktg.js";import"./Combination-CSPK4t6z.js";import{t as mt}from"./tooltip-CR_izE8Q.js";import{t as pt}from"./isValid-DY4Mgbr7.js";import{n as ut}from"./vega-loader.browser-xq8miGHn.js";import{t as ft}from"./react-vega-BbTMwpa-.js";import"./defaultLocale-DPBdGRrH.js";import"./defaultLocale-Lfi0pexn.js";import{r as dt,t as ht}from"./alert-NjVFesQm.js";import{n as gt}from"./error-banner-BYG94WiL.js";import{n as yt}from"./useAsyncData-D-z1U8-c.js";import{t as vt}from"./formats-CQWEZHk-.js";import{t as H}from"./useDeepCompareMemoize-D1hTncYV.js";var kt=tt(),x=z(Y(),1);function bt(t){return t.data&&"url"in t.data&&(t.data.url=V(t.data.url).href),t}const u={arc:"arc",area:"area",bar:"bar",image:"image",line:"line",point:"point",rect:"rect",rule:"rule",text:"text",tick:"tick",trail:"trail",circle:"circle",square:"square",geoshape:"geoshape"};var F=new Set(["boxplot","errorband","errorbar"]);const S={getMarkType(t){let e=typeof t=="string"?t:t.type;if(F.has(e))throw Error("Not supported");return e},isInteractive(t){let e=typeof t=="string"?t:t.type;return!F.has(e)},makeClickable(t){let e=typeof t=="string"?t:t.type;return e in u?typeof t=="string"?{type:t,cursor:"pointer",tooltip:!0}:{...t,type:e,cursor:"pointer",tooltip:!0}:t},getOpacity(t){return typeof t=="string"?null:"opacity"in t&&typeof t.opacity=="number"?t.opacity:null}},y={point(t){return t==null?"select_point":`select_point_${t}`},interval(t){return t==null?"select_interval":`select_interval_${t}`},legendSelection(t){return`legend_selection_${t}`},binColoring(t){return t==null?"bin_coloring":`bin_coloring_${t}`},HIGHLIGHT:"highlight",PAN_ZOOM:"pan_zoom",hasPoint(t){return t.some(e=>e.startsWith("select_point"))},hasInterval(t){return t.some(e=>e.startsWith("select_interval"))},hasLegend(t){return t.some(e=>e.startsWith("legend_selection"))},hasPanZoom(t){return t.some(e=>e.startsWith("pan_zoom"))},isBinColoring(t){return t.startsWith("bin_coloring")}},j={highlight(){return{name:y.HIGHLIGHT,select:{type:"point",on:"mouseover"}}},interval(t,e){return{name:y.interval(e),select:{type:"interval",encodings:W(t),mark:{fill:"#669EFF",fillOpacity:.07,stroke:"#669EFF",strokeOpacity:.4},on:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",translate:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]"}}},point(t,e){return{name:y.point(e),select:{type:"point",encodings:W(t),on:"click[!event.metaKey]"}}},binColoring(t){return{name:y.binColoring(t),select:{type:"point",on:"click[!event.metaKey]"}}},legend(t){return{name:y.legendSelection(t),select:{type:"point",fields:[t]},bind:"legend"}},panZoom(){return{name:y.PAN_ZOOM,bind:"scales",select:{type:"interval",on:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",translate:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",zoom:"wheel![event.metaKey]"}}}};function W(t){switch(S.getMarkType(t.mark)){case u.image:case u.trail:return;case u.area:case u.arc:return["color"];case u.bar:{let e=wt(t);return e==="horizontal"?["y"]:e==="vertical"?["x"]:void 0}case u.circle:case u.geoshape:case u.line:case u.point:case u.rect:case u.rule:case u.square:case u.text:case u.tick:return["x","y"]}}function P(t){return"params"in t&&t.params&&t.params.length>0?N(t.params.filter(e=>e==null?!1:"select"in e&&e.select!==void 0).map(e=>e.name)):"layer"in t?N(t.layer.flatMap(P)):"vconcat"in t?N(t.vconcat.flatMap(P)):"hconcat"in t?N(t.hconcat.flatMap(P)):[]}function wt(t){var a,r;if(!t||!("mark"in t))return;let e=(a=t.encoding)==null?void 0:a.x,n=(r=t.encoding)==null?void 0:r.y;if(e&&"type"in e&&e.type==="nominal")return"vertical";if(n&&"type"in n&&n.type==="nominal"||e&&"aggregate"in e)return"horizontal";if(n&&"aggregate"in n)return"vertical"}function xt(t){if(!t.encoding)return[];let e=[];for(let n of Object.values(t.encoding))n&&typeof n=="object"&&"bin"in n&&n.bin&&"field"in n&&typeof n.field=="string"&&e.push(n.field);return e}function D(t){if(!t||!("encoding"in t))return[];let{encoding:e}=t;return e?Object.entries(e).flatMap(n=>{let[a,r]=n;return!r||!St.has(a)?[]:"field"in r&&typeof r.field=="string"?[r.field]:"condition"in r&&r.condition&&typeof r.condition=="object"&&"field"in r.condition&&r.condition.field&&typeof r.condition.field=="string"?[r.condition.field]:[]}):[]}var St=new Set(["color","fill","fillOpacity","opacity","shape","size"]);function G(t,e,n,a){let r=n.filter(o=>y.isBinColoring(o)),i={and:(r.length>0?r:n).map(o=>({param:o}))};if(t==="opacity"){let o=S.getOpacity(a)||1;return{...e,opacity:{condition:{test:i,value:o},value:o/5}}}else return e}function At(t){if(!("select"in t)||!t.select)return JSON.stringify(t);let e=t.select;if(typeof e=="string")return JSON.stringify({type:e,bind:t.bind});let n={type:e.type,encodings:"encodings"in e&&e.encodings?[...e.encodings].sort():void 0,fields:"fields"in e&&e.fields?[...e.fields].sort():void 0,bind:t.bind};return JSON.stringify(n)}function $(t){let e=E(t);if(e.length===0)return t;let n=_t(e);return n.length===0?t:{...L(K(t,new Set(n.map(a=>a.name))),n.map(a=>a.name)),params:[...t.params||[],...n]}}function E(t){let e=[];if("vconcat"in t&&Array.isArray(t.vconcat))for(let n of t.vconcat)e.push(...E(n));else if("hconcat"in t&&Array.isArray(t.hconcat))for(let n of t.hconcat)e.push(...E(n));else{if("layer"in t)return[];"mark"in t&&"params"in t&&t.params&&t.params.length>0&&e.push({params:t.params})}return e}function _t(t){if(t.length===0)return[];let e=new Map,n=t.length;for(let{params:r}of t){let i=new Set;for(let o of r){let l=At(o);i.has(l)||(i.add(l),e.has(l)||e.set(l,{count:0,param:o}),e.get(l).count++)}}let a=[];for(let[,{count:r,param:i}]of e)r===n&&a.push(i);return a}function K(t,e){if("vconcat"in t&&Array.isArray(t.vconcat))return{...t,vconcat:t.vconcat.map(n=>K(n,e))};if("hconcat"in t&&Array.isArray(t.hconcat))return{...t,hconcat:t.hconcat.map(n=>K(n,e))};if("mark"in t&&"params"in t&&t.params){let n=t.params,a=[];for(let r of n){if(!r||typeof r!="object"||!("name"in r)){a.push(r);continue}e.has(r.name)||a.push(r)}if(a.length===0){let{params:r,...i}=t;return i}return{...t,params:a}}return t}function L(t,e){return"vconcat"in t&&Array.isArray(t.vconcat)?{...t,vconcat:t.vconcat.map(n=>L(n,e))}:"hconcat"in t&&Array.isArray(t.hconcat)?{...t,hconcat:t.hconcat.map(n=>L(n,e))}:"layer"in t?t:"mark"in t&&S.isInteractive(t.mark)?{...t,mark:S.makeClickable(t.mark),encoding:G("opacity",t.encoding||{},e,t.mark)}:t}function Z(t,e){var l,k;let{chartSelection:n=!0,fieldSelection:a=!0}=e;if(!n&&!a)return t;(l=t.params)!=null&&l.some(s=>s.bind==="legend")&&(a=!1);let r=(k=t.params)==null?void 0:k.some(s=>!s.bind);r&&(n=!1);let i="vconcat"in t||"hconcat"in t;if(r&&i)return t;if("vconcat"in t){let s=t.vconcat.map(m=>"mark"in m?Z(m,{chartSelection:n,fieldSelection:a}):m);return $({...t,vconcat:s})}if("hconcat"in t){let s=t.hconcat.map(m=>"mark"in m?Z(m,{chartSelection:n,fieldSelection:a}):m);return $({...t,hconcat:s})}if("layer"in t){let s=t.params&&t.params.length>0,m=a!==!1&&!s,v=[];if(m){let p=t.layer.flatMap(f=>"mark"in f?D(f):[]);v=[...new Set(p)],Array.isArray(a)&&(v=v.filter(f=>a.includes(f)))}let w=t.layer.map((p,f)=>{if(!("mark"in p))return p;let h=p;if(f===0&&v.length>0){let O=v.map(M=>j.legend(M));h={...h,params:[...h.params||[],...O]}}return h=q(h,n,f),h=R(h),f===0&&(h=J(h)),h});return{...t,layer:w}}if(!("mark"in t)||!S.isInteractive(t.mark))return t;let o=t;return o=jt(o,a),o=q(o,n,void 0),o=R(o),o=J(o),o}function jt(t,e){if(e===!1)return t;let n=D(t);Array.isArray(e)&&(n=n.filter(i=>e.includes(i)));let a=n.map(i=>j.legend(i)),r=[...t.params||[],...a];return{...t,params:r}}function q(t,e,n){if(e===!1)return t;let a;try{a=S.getMarkType(t.mark)}catch{return t}if(a==="geoshape")return t;let r=xt(t),i=e===!0?r.length>0?["point"]:Ot(a):[e];if(!i||i.length===0)return t;let o=i.map(k=>k==="interval"?j.interval(t,n):j.point(t,n)),l=[...t.params||[],...o];return r.length>0&&i.includes("point")&&l.push(j.binColoring(n)),{...t,params:l}}function J(t){let e;try{e=S.getMarkType(t.mark)}catch{}if(e==="geoshape")return t;let n=t.params||[];return n.some(a=>a.bind==="scales")?t:{...t,params:[...n,j.panZoom()]}}function R(t){let e="encoding"in t?t.encoding:void 0,n=t.params||[],a=n.map(r=>r.name);return n.length===0||!S.isInteractive(t.mark)?t:{...t,mark:S.makeClickable(t.mark),encoding:G("opacity",e||{},a,t.mark)}}function Ot(t){switch(t){case"arc":case"area":return["point"];case"text":case"bar":return["point","interval"];case"line":return;default:return["point","interval"]}}async function Mt(t){if(!t)return t;let e="datasets"in t?{...t.datasets}:{},n=async r=>{if(!r)return r;if("layer"in r){let l=await Promise.all(r.layer.map(n));r={...r,layer:l}}if("hconcat"in r){let l=await Promise.all(r.hconcat.map(n));r={...r,hconcat:l}}if("vconcat"in r){let l=await Promise.all(r.vconcat.map(n));r={...r,vconcat:l}}if("spec"in r&&(r={...r,spec:await n(r.spec)}),!r.data||!("url"in r.data))return r;let i;try{i=V(r.data.url)}catch{return r}let o=await nt(i.href,r.data.format);return e[i.pathname]=o,{...r,data:{name:i.pathname}}},a=await n(t);return Object.keys(e).length===0?a:{...a,datasets:e}}var d=z(it(),1);ut("arrow",vt);var Nt=t=>{let e=(0,kt.c)(12),{value:n,setValue:a,chartSelection:r,fieldSelection:i,spec:o,embedOptions:l}=t,k,s;e[0]===o?(k=e[1],s=e[2]):(k=async()=>Mt(o),s=[o],e[0]=o,e[1]=k,e[2]=s);let{data:m,error:v}=yt(k,s);if(v){let p;return e[3]===v?p=e[4]:(p=(0,d.jsx)(gt,{error:v}),e[3]=v,e[4]=p),p}if(!m)return null;let w;return e[5]!==r||e[6]!==l||e[7]!==i||e[8]!==m||e[9]!==a||e[10]!==n?(w=(0,d.jsx)(Pt,{value:n,setValue:a,chartSelection:r,fieldSelection:i,spec:m,embedOptions:l}),e[5]=r,e[6]=l,e[7]=i,e[8]=m,e[9]=a,e[10]=n,e[11]=w):w=e[11],w},Pt=({value:t,setValue:e,chartSelection:n,fieldSelection:a,spec:r,embedOptions:i})=>{let{theme:o}=st(),l=(0,x.useRef)(null),k=(0,x.useRef)(void 0),[s,m]=(0,x.useState)(),v=(0,x.useMemo)(()=>i&&"actions"in i?i.actions:{source:!1,compiled:!1},[i]),w=H(r),p=(0,x.useMemo)(()=>Z(bt(w),{chartSelection:n,fieldSelection:a}),[w,n,a]),f=(0,x.useMemo)(()=>P(p),[p]),h=C(c=>{e({...t,...c})}),O=(0,x.useMemo)(()=>et((c,g)=>{_.debug("[Vega signal]",c,g);let b=T.mapValues(g,Ct);b=T.mapValues(b,It),h({[c]:b})},100),[h]),M=H(f),I=(0,x.useMemo)(()=>M.reduce((c,g)=>(y.PAN_ZOOM===g||y.isBinColoring(g)||c.push({signalName:g,handler:(b,X)=>O(b,X)}),c),[]),[M,O]),B=C(c=>{_.error(c),_.debug(p),m(c)}),Q=C(c=>{_.debug("[Vega view] created",c),k.current=c,m(void 0)}),U=()=>{let c=[];return y.hasPoint(f)&&c.push(["Point selection","click to select a point; hold shift for multi-select"]),y.hasInterval(f)&&c.push(["Interval selection","click and drag to select an interval"]),y.hasLegend(f)&&c.push(["Legend selection","click to select a legend item; hold shift for multi-select"]),y.hasPanZoom(f)&&c.push(["Pan","hold the meta key and drag"],["Zoom","hold the meta key and scroll"]),c.length===0?null:(0,d.jsx)(mt,{delayDuration:300,side:"left",content:(0,d.jsx)("div",{className:"text-xs flex flex-col",children:c.map((g,b)=>(0,d.jsxs)("div",{children:[(0,d.jsxs)("span",{className:"font-bold tracking-wide",children:[g[0],":"]})," ",g[1]]},b))}),children:(0,d.jsx)(ct,{className:"absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground"})})},A=ft({ref:l,spec:p,options:{theme:o==="dark"?"dark":void 0,actions:v,mode:"vega-lite",tooltip:rt.call,renderer:"canvas"},onError:B,onEmbed:Q});return(0,x.useEffect)(()=>(I.forEach(({signalName:c,handler:g})=>{try{A==null||A.view.addSignalListener(c,g)}catch(b){_.error(b)}}),()=>{I.forEach(({signalName:c,handler:g})=>{try{A==null||A.view.removeSignalListener(c,g)}catch(b){_.error(b)}})}),[A,I]),(0,d.jsxs)(d.Fragment,{children:[s&&(0,d.jsxs)(ht,{variant:"destructive",children:[(0,d.jsx)(dt,{children:s.message}),(0,d.jsx)("div",{className:"text-md",children:s.stack})]}),(0,d.jsxs)("div",{className:lt("relative"),onPointerDown:ot.stopPropagation(),children:[(0,d.jsx)("div",{ref:l,"data-container-width":at(p)}),U()]})]})};function It(t){return t instanceof Set?[...t]:t}function Ct(t){return Array.isArray(t)?t.map(e=>e instanceof Date&&pt(e)?new Date(e).getTime():e):t}var Et=Nt;export{Et as default};
@@ -0,0 +1,6 @@
1
+ import{a as Tt,n as _n,r as Wn,s as Jn,t as qn}from"./precisionRound-NX56vp6K.js";import{i as _t,n as Hn,r as Gn,t as Zn}from"./defaultLocale-DPBdGRrH.js";import{C as Vn,N as Wt,S as Qn,T as Jt,_ as qt,a as Kn,b as it,c as Ht,i as Xn,l as Gt,n as tr,o as nr,p as Zt,r as rr,s as er,t as ar,v as st,w as ur,x as or}from"./defaultLocale-Lfi0pexn.js";function E(t,n,r){return t.fields=n||[],t.fname=r,t}function ir(t){return t==null?null:t.fname}function Vt(t){return t==null?null:t.fields}function Qt(t){return t.length===1?sr(t[0]):lr(t)}var sr=t=>function(n){return n[t]},lr=t=>{let n=t.length;return function(r){for(let e=0;e<n;++e)r=r[t[e]];return r}};function v(t){throw Error(t)}function wt(t){let n=[],r=t.length,e=null,a=0,u="",o,i,c;t+="";function l(){n.push(u+t.substring(o,i)),u="",o=i+1}for(o=i=0;i<r;++i)if(c=t[i],c==="\\")u+=t.substring(o,i++),o=i;else if(c===e)l(),e=null,a=-1;else{if(e)continue;o===a&&c==='"'||o===a&&c==="'"?(o=i+1,e=c):c==="."&&!a?i>o?l():o=i+1:c==="["?(i>o&&l(),a=o=i+1):c==="]"&&(a||v("Access path missing open bracket: "+t),a>0&&l(),a=0,o=i+1)}return a&&v("Access path missing closing bracket: "+t),e&&v("Access path missing closing quote: "+t),i>o&&(i++,l()),n}function lt(t,n,r){let e=wt(t);return t=e.length===1?e[0]:t,E((r&&r.get||Qt)(e),[t],n||t)}var cr=lt("id"),W=E(t=>t,[],"identity"),I=E(()=>0,[],"zero"),Kt=E(()=>1,[],"one"),fr=E(()=>!0,[],"true"),hr=E(()=>!1,[],"false"),gr=new Set([...Object.getOwnPropertyNames(Object.prototype).filter(t=>typeof Object.prototype[t]=="function"),"__proto__"]);function pr(t,n,r){let e=[n].concat([].slice.call(r));console[t].apply(console,e)}var mr=0,dr=1,yr=2,vr=3,br=4;function Mr(t,n,r=pr){let e=t||0;return{level(a){return arguments.length?(e=+a,this):e},error(){return e>=1&&r(n||"error","ERROR",arguments),this},warn(){return e>=2&&r(n||"warn","WARN",arguments),this},info(){return e>=3&&r(n||"log","INFO",arguments),this},debug(){return e>=4&&r(n||"log","DEBUG",arguments),this}}}var J=Array.isArray;function $(t){return t===Object(t)}var Xt=t=>t!=="__proto__";function Cr(...t){return t.reduce((n,r)=>{for(let e in r)if(e==="signals")n.signals=Tr(n.signals,r.signals);else{let a=e==="legend"?{layout:1}:e==="style"?!0:null;jt(n,e,r[e],a)}return n},{})}function jt(t,n,r,e){if(!Xt(n))return;let a,u;if($(r)&&!J(r))for(a in u=$(t[n])?t[n]:t[n]={},r)e&&(e===!0||e[a])?jt(u,a,r[a]):Xt(a)&&(u[a]=r[a]);else t[n]=r}function Tr(t,n){if(t==null)return n;let r={},e=[];function a(u){r[u.name]||(r[u.name]=1,e.push(u))}return n.forEach(a),t.forEach(a),e}function P(t){return t[t.length-1]}function q(t){return t==null||t===""?null:+t}var tn=t=>n=>t*Math.exp(n),nn=t=>n=>Math.log(t*n),rn=t=>n=>Math.sign(n)*Math.log1p(Math.abs(n/t)),en=t=>n=>Math.sign(n)*Math.expm1(Math.abs(n))*t,ct=t=>n=>n<0?-((-n)**+t):n**+t;function ft(t,n,r,e){let a=r(t[0]),u=r(P(t)),o=(u-a)*n;return[e(a-o),e(u-o)]}function wr(t,n){return ft(t,n,q,W)}function jr(t,n){var r=Math.sign(t[0]);return ft(t,n,nn(r),tn(r))}function Dr(t,n,r){return ft(t,n,ct(r),ct(1/r))}function kr(t,n,r){return ft(t,n,rn(r),en(r))}function ht(t,n,r,e,a){let u=e(t[0]),o=e(P(t)),i=n==null?(u+o)/2:e(n);return[a(i+(u-i)*r),a(i+(o-i)*r)]}function Or(t,n,r){return ht(t,n,r,q,W)}function Ur(t,n,r){let e=Math.sign(t[0]);return ht(t,n,r,nn(e),tn(e))}function xr(t,n,r,e){return ht(t,n,r,ct(e),ct(1/e))}function Nr(t,n,r,e){return ht(t,n,r,rn(e),en(e))}function Ar(t){return 1+~~(new Date(t).getMonth()/3)}function Er(t){return 1+~~(new Date(t).getUTCMonth()/3)}function R(t){return t==null?[]:J(t)?t:[t]}function Sr(t,n,r){let e=t[0],a=t[1],u;return a<e&&(u=a,a=e,e=u),u=a-e,u>=r-n?[n,r]:[e=Math.min(Math.max(e,n),r-u),e+u]}function B(t){return typeof t=="function"}var Fr="descending";function Pr(t,n,r){r||(r={}),n=R(n)||[];let e=[],a=[],u={},o=r.comparator||zr;return R(t).forEach((i,c)=>{i!=null&&(e.push(n[c]===Fr?-1:1),a.push(i=B(i)?i:lt(i,null,r)),(Vt(i)||[]).forEach(l=>u[l]=1))}),a.length===0?null:E(o(a,e),Object.keys(u))}var Dt=(t,n)=>(t<n||t==null)&&n!=null?-1:(t>n||n==null)&&t!=null?1:(n=n instanceof Date?+n:n,(t=t instanceof Date?+t:t)!==t&&n===n?-1:n!==n&&t===t?1:0),zr=(t,n)=>t.length===1?Yr(t[0],n[0]):Ir(t,n,t.length),Yr=(t,n)=>function(r,e){return Dt(t(r),t(e))*n},Ir=(t,n,r)=>(n.push(0),function(e,a){let u,o=0,i=-1;for(;o===0&&++i<r;)u=t[i],o=Dt(u(e),u(a));return o*n[i]});function an(t){return B(t)?t:()=>t}function $r(t,n){let r;return e=>{r&&clearTimeout(r),r=setTimeout(()=>(n(e),r=null),t)}}function z(t){for(let n,r,e=1,a=arguments.length;e<a;++e)for(r in n=arguments[e],n)t[r]=n[r];return t}function Rr(t,n){let r=0,e,a,u,o;if(t&&(e=t.length))if(n==null){for(a=t[r];r<e&&(a==null||a!==a);a=t[++r]);for(u=o=a;r<e;++r)a=t[r],a!=null&&(a<u&&(u=a),a>o&&(o=a))}else{for(a=n(t[r]);r<e&&(a==null||a!==a);a=n(t[++r]));for(u=o=a;r<e;++r)a=n(t[r]),a!=null&&(a<u&&(u=a),a>o&&(o=a))}return[u,o]}function Br(t,n){let r=t.length,e=-1,a,u,o,i,c;if(n==null){for(;++e<r;)if(u=t[e],u!=null&&u>=u){a=o=u;break}if(e===r)return[-1,-1];for(i=c=e;++e<r;)u=t[e],u!=null&&(a>u&&(a=u,i=e),o<u&&(o=u,c=e))}else{for(;++e<r;)if(u=n(t[e],e,t),u!=null&&u>=u){a=o=u;break}if(e===r)return[-1,-1];for(i=c=e;++e<r;)u=n(t[e],e,t),u!=null&&(a>u&&(a=u,i=e),o<u&&(o=u,c=e))}return[i,c]}function N(t,n){return Object.hasOwn(t,n)}var gt={};function Lr(t){let n={},r;function e(u){return N(n,u)&&n[u]!==gt}let a={size:0,empty:0,object:n,has:e,get(u){return e(u)?n[u]:void 0},set(u,o){return e(u)||(++a.size,n[u]===gt&&--a.empty),n[u]=o,this},delete(u){return e(u)&&(--a.size,++a.empty,n[u]=gt),this},clear(){a.size=a.empty=0,a.object=n={}},test(u){return arguments.length?(r=u,a):r},clean(){let u={},o=0;for(let i in n){let c=n[i];c!==gt&&(!r||!r(c))&&(u[i]=c,++o)}a.size=o,a.empty=0,a.object=n=u}};return t&&Object.keys(t).forEach(u=>{a.set(u,t[u])}),a}function _r(t,n,r,e,a,u){if(!r&&r!==0)return u;let o=+r,i=t[0],c=P(t),l;c<i&&(l=i,i=c,c=l),l=Math.abs(n-i);let h=Math.abs(c-n);return l<h&&l<=o?e:h<=o?a:u}function Wr(t,n,r){let e=t.prototype=Object.create(n.prototype);return Object.defineProperty(e,"constructor",{value:t,writable:!0,enumerable:!0,configurable:!0}),z(e,r)}function Jr(t,n,r,e){let a=n[0],u=n[n.length-1],o;return a>u&&(o=a,a=u,u=o),r=r===void 0||r,e=e===void 0||e,(r?a<=t:a<t)&&(e?t<=u:t<u)}function qr(t){return typeof t=="boolean"}function un(t){return Object.prototype.toString.call(t)==="[object Date]"}function on(t){return t&&B(t[Symbol.iterator])}function sn(t){return typeof t=="number"}function Hr(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function pt(t){return typeof t=="string"}function Gr(t,n,r){t&&(t=n?R(t).map(i=>i.replace(/\\(.)/g,"$1")):R(t));let e=t&&t.length,a=r&&r.get||Qt,u=i=>a(n?[i]:wt(i)),o;if(!e)o=function(){return""};else if(e===1){let i=u(t[0]);o=function(c){return""+i(c)}}else{let i=t.map(u);o=function(c){let l=""+i[0](c),h=0;for(;++h<e;)l+="|"+i[h](c);return l}}return E(o,t,"key")}function Zr(t,n){let r=t[0],e=P(t),a=+n;return a?a===1?e:r+a*(e-r):r}var Vr=1e4;function Qr(t){t=+t||Vr;let n,r,e,a=()=>{n={},r={},e=0},u=(o,i)=>(++e>t&&(r=n,n={},e=1),n[o]=i);return a(),{clear:a,has:o=>N(n,o)||N(r,o),get:o=>N(n,o)?n[o]:N(r,o)?u(o,r[o]):void 0,set:(o,i)=>N(n,o)?n[o]=i:u(o,i)}}function Kr(t,n,r,e){let a=n.length,u=r.length;if(!u)return n;if(!a)return r;let o=e||new n.constructor(a+u),i=0,c=0,l=0;for(;i<a&&c<u;++l)o[l]=t(n[i],r[c])>0?r[c++]:n[i++];for(;i<a;++i,++l)o[l]=n[i];for(;c<u;++c,++l)o[l]=r[c];return o}function H(t,n){let r="";for(;--n>=0;)r+=t;return r}function Xr(t,n,r,e){let a=r||" ",u=t+"",o=n-u.length;return o<=0?u:e==="left"?H(a,o)+u:e==="center"?H(a,~~(o/2))+u+H(a,Math.ceil(o/2)):u+H(a,o)}function ln(t){return t&&P(t)-t[0]||0}function mt(t){return J(t)?`[${t.map(n=>n===null?"null":mt(n))}]`:$(t)||pt(t)?JSON.stringify(t).replaceAll("\u2028","\\u2028").replaceAll("\u2029","\\u2029"):t}function cn(t){return t==null||t===""?null:!t||t==="false"||t==="0"?!1:!!t}var te=t=>sn(t)||un(t)?t:Date.parse(t);function fn(t,n){return n||(n=te),t==null||t===""?null:n(t)}function hn(t){return t==null||t===""?null:t+""}function gn(t){let n={},r=t.length;for(let e=0;e<r;++e)n[t[e]]=!0;return n}function ne(t,n,r,e){let a=e??"\u2026",u=t+"",o=u.length,i=Math.max(0,n-a.length);return o<=n?u:r==="left"?a+u.slice(o-i):r==="center"?u.slice(0,Math.ceil(i/2))+a+u.slice(o-~~(i/2)):u.slice(0,i)+a}function re(t,n,r){if(t)if(n){let e=t.length;for(let a=0;a<e;++a){let u=n(t[a]);u&&r(u,a,t)}}else t.forEach(r)}var pn={},kt={},Ot=34,G=10,Ut=13;function mn(t){return Function("d","return {"+t.map(function(n,r){return JSON.stringify(n)+": d["+r+'] || ""'}).join(",")+"}")}function ee(t,n){var r=mn(t);return function(e,a){return n(r(e),a,t)}}function dn(t){var n=Object.create(null),r=[];return t.forEach(function(e){for(var a in e)a in n||r.push(n[a]=a)}),r}function T(t,n){var r=t+"",e=r.length;return e<n?Array(n-e+1).join(0)+r:r}function ae(t){return t<0?"-"+T(-t,6):t>9999?"+"+T(t,6):T(t,4)}function ue(t){var n=t.getUTCHours(),r=t.getUTCMinutes(),e=t.getUTCSeconds(),a=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":ae(t.getUTCFullYear(),4)+"-"+T(t.getUTCMonth()+1,2)+"-"+T(t.getUTCDate(),2)+(a?"T"+T(n,2)+":"+T(r,2)+":"+T(e,2)+"."+T(a,3)+"Z":e?"T"+T(n,2)+":"+T(r,2)+":"+T(e,2)+"Z":r||n?"T"+T(n,2)+":"+T(r,2)+"Z":"")}function oe(t){var n=RegExp('["'+t+`
2
+ \r]`),r=t.charCodeAt(0);function e(s,f){var g,p,m=a(s,function(d,C){if(g)return g(d,C-1);p=d,g=f?ee(d,f):mn(d)});return m.columns=p||[],m}function a(s,f){var g=[],p=s.length,m=0,d=0,C,x=p<=0,j=!1;s.charCodeAt(p-1)===G&&--p,s.charCodeAt(p-1)===Ut&&--p;function y(){if(x)return kt;if(j)return j=!1,pn;var ut,ot=m,_;if(s.charCodeAt(ot)===Ot){for(;m++<p&&s.charCodeAt(m)!==Ot||s.charCodeAt(++m)===Ot;);return(ut=m)>=p?x=!0:(_=s.charCodeAt(m++))===G?j=!0:_===Ut&&(j=!0,s.charCodeAt(m)===G&&++m),s.slice(ot+1,ut-1).replace(/""/g,'"')}for(;m<p;){if((_=s.charCodeAt(ut=m++))===G)j=!0;else if(_===Ut)j=!0,s.charCodeAt(m)===G&&++m;else if(_!==r)continue;return s.slice(ot,ut)}return x=!0,s.slice(ot,p)}for(;(C=y())!==kt;){for(var at=[];C!==pn&&C!==kt;)at.push(C),C=y();f&&(at=f(at,d++))==null||g.push(at)}return g}function u(s,f){return s.map(function(g){return f.map(function(p){return h(g[p])}).join(t)})}function o(s,f){return f??(f=dn(s)),[f.map(h).join(t)].concat(u(s,f)).join(`
3
+ `)}function i(s,f){return f??(f=dn(s)),u(s,f).join(`
4
+ `)}function c(s){return s.map(l).join(`
5
+ `)}function l(s){return s.map(h).join(t)}function h(s){return s==null?"":s instanceof Date?ue(s):n.test(s+="")?'"'+s.replace(/"/g,'""')+'"':s}return{parse:e,parseRows:a,format:o,formatBody:i,formatRows:c,formatRow:l,formatValue:h}}function ie(t){return t}function se(t){if(t==null)return ie;var n,r,e=t.scale[0],a=t.scale[1],u=t.translate[0],o=t.translate[1];return function(i,c){c||(n=r=0);var l=2,h=i.length,s=Array(h);for(s[0]=(n+=i[0])*e+u,s[1]=(r+=i[1])*a+o;l<h;)s[l]=i[l],++l;return s}}function le(t,n){for(var r,e=t.length,a=e-n;a<--e;)r=t[a],t[a++]=t[e],t[e]=r}function ce(t,n){return typeof n=="string"&&(n=t.objects[n]),n.type==="GeometryCollection"?{type:"FeatureCollection",features:n.geometries.map(function(r){return yn(t,r)})}:yn(t,n)}function yn(t,n){var r=n.id,e=n.bbox,a=n.properties==null?{}:n.properties,u=vn(t,n);return r==null&&e==null?{type:"Feature",properties:a,geometry:u}:e==null?{type:"Feature",id:r,properties:a,geometry:u}:{type:"Feature",id:r,bbox:e,properties:a,geometry:u}}function vn(t,n){var r=se(t.transform),e=t.arcs;function a(h,s){s.length&&s.pop();for(var f=e[h<0?~h:h],g=0,p=f.length;g<p;++g)s.push(r(f[g],g));h<0&&le(s,p)}function u(h){return r(h)}function o(h){for(var s=[],f=0,g=h.length;f<g;++f)a(h[f],s);return s.length<2&&s.push(s[0]),s}function i(h){for(var s=o(h);s.length<4;)s.push(s[0]);return s}function c(h){return h.map(i)}function l(h){var s=h.type,f;switch(s){case"GeometryCollection":return{type:s,geometries:h.geometries.map(l)};case"Point":f=u(h.coordinates);break;case"MultiPoint":f=h.coordinates.map(u);break;case"LineString":f=o(h.arcs);break;case"MultiLineString":f=h.arcs.map(o);break;case"Polygon":f=c(h.arcs);break;case"MultiPolygon":f=h.arcs.map(c);break;default:return null}return{type:s,coordinates:f}}return l(n)}function fe(t,n){var r={},e={},a={},u=[],o=-1;n.forEach(function(l,h){var s=t.arcs[l<0?~l:l],f;s.length<3&&!s[1][0]&&!s[1][1]&&(f=n[++o],n[o]=l,n[h]=f)}),n.forEach(function(l){var h=i(l),s=h[0],f=h[1],g,p;if(g=a[s])if(delete a[g.end],g.push(l),g.end=f,p=e[f]){delete e[p.start];var m=p===g?g:g.concat(p);e[m.start=g.start]=a[m.end=p.end]=m}else e[g.start]=a[g.end]=g;else if(g=e[f])if(delete e[g.start],g.unshift(l),g.start=s,p=a[s]){delete a[p.end];var d=p===g?g:p.concat(g);e[d.start=p.start]=a[d.end=g.end]=d}else e[g.start]=a[g.end]=g;else g=[l],e[g.start=s]=a[g.end=f]=g});function i(l){var h=t.arcs[l<0?~l:l],s=h[0],f;return t.transform?(f=[0,0],h.forEach(function(g){f[0]+=g[0],f[1]+=g[1]})):f=h[h.length-1],l<0?[f,s]:[s,f]}function c(l,h){for(var s in l){var f=l[s];delete h[f.start],delete f.start,delete f.end,f.forEach(function(g){r[g<0?~g:g]=1}),u.push(f)}}return c(a,e),c(e,a),n.forEach(function(l){r[l<0?~l:l]||u.push([l])}),u}function he(t){return vn(t,ge.apply(this,arguments))}function ge(t,n,r){var e,a,u;if(arguments.length>1)e=pe(t,n,r);else for(a=0,e=Array(u=t.arcs.length);a<u;++a)e[a]=a;return{type:"MultiLineString",arcs:fe(t,e)}}function pe(t,n,r){var e=[],a=[],u;function o(s){var f=s<0?~s:s;(a[f]||(a[f]=[])).push({i:s,g:u})}function i(s){s.forEach(o)}function c(s){s.forEach(i)}function l(s){s.forEach(c)}function h(s){switch(u=s,s.type){case"GeometryCollection":s.geometries.forEach(h);break;case"LineString":i(s.arcs);break;case"MultiLineString":case"Polygon":c(s.arcs);break;case"MultiPolygon":l(s.arcs);break}}return h(n),a.forEach(r==null?function(s){e.push(s[0].i)}:function(s){r(s[0].g,s[s.length-1].g)&&e.push(s[0].i)}),e}var b="year",D="quarter",w="month",M="week",k="date",me="day",F="dayofyear",O="hours",U="minutes",A="seconds",S="milliseconds",bn=[b,D,w,M,k,"day",F,O,U,A,S],xt=bn.reduce((t,n,r)=>(t[n]=1+r,t),{});function Mn(t){let n=R(t).slice(),r={};return n.length||v("Missing time unit."),n.forEach(e=>{N(xt,e)?r[e]=1:v(`Invalid time unit: ${e}.`)}),(r.week||r.day?1:0)+(r.quarter||r.month||r.date?1:0)+(r.dayofyear?1:0)>1&&v(`Incompatible time units: ${t}`),n.sort((e,a)=>xt[e]-xt[a]),n}var de={[b]:"%Y ",[D]:"Q%q ",[w]:"%b ",[k]:"%d ",[M]:"W%U ",day:"%a ",[F]:"%j ",[O]:"%H:00",[U]:"00:%M",[A]:":%S",[S]:".%L",[`${b}-${w}`]:"%Y-%m ",[`${b}-${w}-${k}`]:"%Y-%m-%d ",[`${O}-${U}`]:"%H:%M"};function ye(t,n){let r=z({},de,n),e=Mn(t),a=e.length,u="",o=0,i,c;for(o=0;o<a;)for(i=e.length;i>o;--i)if(c=e.slice(o,i).join("-"),r[c]!=null){u+=r[c],o=i;break}return u.trim()}var Y=new Date;function Nt(t){return Y.setFullYear(t),Y.setMonth(0),Y.setDate(1),Y.setHours(0,0,0,0),Y}function ve(t){return Cn(new Date(t))}function be(t){return At(new Date(t))}function Cn(t){return st.count(Nt(t.getFullYear())-1,t)}function At(t){return Zt.count(Nt(t.getFullYear())-1,t)}function Et(t){return Nt(t).getDay()}function Me(t,n,r,e,a,u,o){if(0<=t&&t<100){let i=new Date(-1,n,r,e,a,u,o);return i.setFullYear(t),i}return new Date(t,n,r,e,a,u,o)}function Ce(t){return Tn(new Date(t))}function Te(t){return St(new Date(t))}function Tn(t){let n=Date.UTC(t.getUTCFullYear(),0,1);return it.count(n-1,t)}function St(t){let n=Date.UTC(t.getUTCFullYear(),0,1);return qt.count(n-1,t)}function Ft(t){return Y.setTime(Date.UTC(t,0,1)),Y.getUTCDay()}function we(t,n,r,e,a,u,o){if(0<=t&&t<100){let i=new Date(Date.UTC(-1,n,r,e,a,u,o));return i.setUTCFullYear(r.y),i}return new Date(Date.UTC(t,n,r,e,a,u,o))}function wn(t,n,r,e,a){let u=n||1,o=P(t),i=(C,x,j)=>(j||(j=C),je(r[j],e[j],C===o&&u,x)),c=new Date,l=gn(t),h=l.year?i(b):an(2012),s=l.month?i(w):l.quarter?i(D):I,f=l.week&&l.day?i("day",1,M+"day"):l.week?i(M,1):l.day?i("day",1):l.date?i(k,1):l.dayofyear?i(F,1):Kt,g=l.hours?i(O):I,p=l.minutes?i(U):I,m=l.seconds?i(A):I,d=l.milliseconds?i(S):I;return function(C){c.setTime(+C);let x=h(c);return a(x,s(c),f(c,x),g(c),p(c),m(c),d(c))}}function je(t,n,r,e){let a=r<=1?t:e?(u,o)=>e+r*Math.floor((t(u,o)-e)/r):(u,o)=>r*Math.floor(t(u,o)/r);return n?(u,o)=>n(a(u,o),o):a}function L(t,n,r){return n+t*7-(r+6)%7}var De={[b]:t=>t.getFullYear(),[D]:t=>Math.floor(t.getMonth()/3),[w]:t=>t.getMonth(),[k]:t=>t.getDate(),[O]:t=>t.getHours(),[U]:t=>t.getMinutes(),[A]:t=>t.getSeconds(),[S]:t=>t.getMilliseconds(),[F]:t=>Cn(t),[M]:t=>At(t),[M+"day"]:(t,n)=>L(At(t),t.getDay(),Et(n)),day:(t,n)=>L(1,t.getDay(),Et(n))},ke={[D]:t=>3*t,[M]:(t,n)=>L(t,0,Et(n))};function Oe(t,n){return wn(t,n||1,De,ke,Me)}var Ue={[b]:t=>t.getUTCFullYear(),[D]:t=>Math.floor(t.getUTCMonth()/3),[w]:t=>t.getUTCMonth(),[k]:t=>t.getUTCDate(),[O]:t=>t.getUTCHours(),[U]:t=>t.getUTCMinutes(),[A]:t=>t.getUTCSeconds(),[S]:t=>t.getUTCMilliseconds(),[F]:t=>Tn(t),[M]:t=>St(t),day:(t,n)=>L(1,t.getUTCDay(),Ft(n)),[M+"day"]:(t,n)=>L(St(t),t.getUTCDay(),Ft(n))},xe={[D]:t=>3*t,[M]:(t,n)=>L(t,0,Ft(n))};function Ne(t,n){return wn(t,n||1,Ue,xe,we)}var Ae={[b]:nr,[D]:Ht.every(3),[w]:Ht,[M]:Zt,[k]:st,day:st,[F]:st,[O]:or,[U]:Vn,[A]:Jt,[S]:Wt},Ee={[b]:er,[D]:Gt.every(3),[w]:Gt,[M]:qt,[k]:it,day:it,[F]:it,[O]:Qn,[U]:ur,[A]:Jt,[S]:Wt};function dt(t){return Ae[t]}function yt(t){return Ee[t]}function jn(t,n,r){return t?t.offset(n,r):void 0}function Se(t,n,r){return jn(dt(t),n,r)}function Fe(t,n,r){return jn(yt(t),n,r)}function Dn(t,n,r,e){return t?t.range(n,r,e):void 0}function Pe(t,n,r,e){return Dn(dt(t),n,r,e)}function ze(t,n,r,e){return Dn(yt(t),n,r,e)}var Z=1e3,V=Z*60,Q=V*60,vt=Q*24,Ye=vt*7,kn=vt*30,Pt=vt*365,On=[b,w,k,O,U,A,S],K=On.slice(0,-1),X=K.slice(0,-1),tt=X.slice(0,-1),Ie=tt.slice(0,-1),$e=[b,M],Un=[b,w],xn=[b],nt=[[K,1,Z],[K,5,5*Z],[K,15,15*Z],[K,30,30*Z],[X,1,V],[X,5,5*V],[X,15,15*V],[X,30,30*V],[tt,1,Q],[tt,3,3*Q],[tt,6,6*Q],[tt,12,12*Q],[Ie,1,vt],[$e,1,Ye],[Un,1,kn],[Un,3,3*kn],[xn,1,Pt]];function Re(t){let n=t.extent,r=t.maxbins||40,e=Math.abs(ln(n))/r,a=Jn(i=>i[2]).right(nt,e),u,o;return a===nt.length?(u=xn,o=Tt(n[0]/Pt,n[1]/Pt,r)):a?(a=nt[e/nt[a-1][2]<nt[a][2]/e?a-1:a],u=a[0],o=a[1]):(u=On,o=Math.max(Tt(n[0],n[1],r),1)),{units:u,step:o}}function rt(t){let n={};return r=>n[r]||(n[r]=t(r))}function Be(t,n){return r=>{let e=t(r),a=e.indexOf(n);if(a<0)return e;let u=Le(e,a),o=u<e.length?e.slice(u):"";for(;--u>a;)if(e[u]!=="0"){++u;break}return e.slice(0,u)+o}}function Le(t,n){let r=t.lastIndexOf("e"),e;if(r>0)return r;for(r=t.length;--r>n;)if(e=t.charCodeAt(r),e>=48&&e<=57)return r+1}function Nn(t){let n=rt(t.format),r=t.formatPrefix;return{format:n,formatPrefix:r,formatFloat(e){let a=_t(e||",");if(a.precision==null){switch(a.precision=12,a.type){case"%":a.precision-=2;break;case"e":--a.precision;break}return Be(n(a),n(".1f")(1)[1])}else return n(a)},formatSpan(e,a,u,o){o=_t(o??",f");let i=Tt(e,a,u),c=Math.max(Math.abs(e),Math.abs(a)),l;if(o.precision==null)switch(o.type){case"s":return isNaN(l=_n(i,c))||(o.precision=l),r(o,c);case"":case"e":case"g":case"p":case"r":isNaN(l=qn(i,c))||(o.precision=l-(o.type==="e"));break;case"f":case"%":isNaN(l=Wn(i))||(o.precision=l-(o.type==="%")*2);break}return n(o)}}}var zt;An();function An(){return zt=Nn({format:Zn,formatPrefix:Hn})}function En(t){return Nn(Gn(t))}function bt(t){return arguments.length?zt=En(t):zt}function Sn(t,n,r){r||(r={}),$(r)||v(`Invalid time multi-format specifier: ${r}`);let e=n(A),a=n(U),u=n(O),o=n(k),i=n(M),c=n(w),l=n(D),h=n(b),s=t(r.milliseconds||".%L"),f=t(r.seconds||":%S"),g=t(r.minutes||"%I:%M"),p=t(r.hours||"%I %p"),m=t(r.date||r.day||"%a %d"),d=t(r.week||"%b %d"),C=t(r.month||"%B"),x=t(r.quarter||"%B"),j=t(r.year||"%Y");return y=>(e(y)<y?s:a(y)<y?f:u(y)<y?g:o(y)<y?p:c(y)<y?i(y)<y?m:d:h(y)<y?l(y)<y?C:x:j)(y)}function Fn(t){let n=rt(t.format),r=rt(t.utcFormat);return{timeFormat:e=>pt(e)?n(e):Sn(n,dt,e),utcFormat:e=>pt(e)?r(e):Sn(r,yt,e),timeParse:rt(t.parse),utcParse:rt(t.utcParse)}}var Yt;Pn();function Pn(){return Yt=Fn({format:ar,parse:tr,utcFormat:rr,utcParse:Xn})}function zn(t){return Fn(Kn(t))}function et(t){return arguments.length?Yt=zn(t):Yt}var It=(t,n)=>z({},t,n);function _e(t,n){return It(t?En(t):bt(),n?zn(n):et())}function Yn(t,n){let r=arguments.length;return r&&r!==2&&v("defaultLocale expects either zero or two arguments."),r?It(bt(t),et(n)):It(bt(),et())}function We(){return An(),Pn(),Yn()}var Je=/^(data:|([A-Za-z]+:)?\/\/)/,qe=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,He=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ge="file://";function Ze(t){return n=>({options:n||{},sanitize:Qe,load:Ve,fileAccess:!1,file:Ke(),http:ta})}async function Ve(t,n){let r=await this.sanitize(t,n),e=r.href;return r.localFile?this.file(e):this.http(e,n==null?void 0:n.http)}async function Qe(t,n){n=z({},this.options,n);let r=this.fileAccess,e={href:null},a,u,o,i=qe.test(t.replace(He,""));(t==null||typeof t!="string"||!i)&&v("Sanitize failure, invalid URI: "+mt(t));let c=Je.test(t);return(o=n.baseURL)&&!c&&(!t.startsWith("/")&&!o.endsWith("/")&&(t="/"+t),t=o+t),u=(a=t.startsWith(Ge))||n.mode==="file"||n.mode!=="http"&&!c&&r,a?t=t.slice(7):t.startsWith("//")&&(n.defaultProtocol==="file"?(t=t.slice(2),u=!0):t=(n.defaultProtocol||"http")+":"+t),Object.defineProperty(e,"localFile",{value:!!u}),e.href=t,n.target&&(e.target=n.target+""),n.rel&&(e.rel=n.rel+""),n.context==="image"&&n.crossOrigin&&(e.crossOrigin=n.crossOrigin+""),e}function Ke(t){return Xe}async function Xe(){v("No file system access.")}async function ta(t,n){let r=z({},this.options.http,n),e=n&&n.response,a=await fetch(t,r);return a.ok?B(a[e])?a[e]():a.text():v(a.status+""+a.statusText)}var na=t=>t!=null&&t===t,ra=t=>t==="true"||t==="false"||t===!0||t===!1,ea=t=>!Number.isNaN(Date.parse(t)),In=t=>!Number.isNaN(+t)&&!(t instanceof Date),aa=t=>In(t)&&Number.isInteger(+t),$t={boolean:cn,integer:q,number:q,date:fn,string:hn,unknown:W},Mt=[ra,aa,In,ea],ua=["boolean","integer","number","date"];function $n(t,n){if(!t||!t.length)return"unknown";let r=t.length,e=Mt.length,a=Mt.map((u,o)=>o+1);for(let u=0,o=0,i,c;u<r;++u)for(c=n?t[u][n]:t[u],i=0;i<e;++i)if(a[i]&&na(c)&&!Mt[i](c)&&(a[i]=0,++o,o===Mt.length))return"string";return ua[a.reduce((u,o)=>u===0?o:u,0)-1]}function Rn(t,n){return n.reduce((r,e)=>(r[e]=$n(t,e),r),{})}function Bn(t){let n=function(r,e){let a={delimiter:t};return Rt(r,e?z(e,a):a)};return n.responseType="text",n}function Rt(t,n){return n.header&&(t=n.header.map(mt).join(n.delimiter)+`
6
+ `+t),oe(n.delimiter).parse(t+"")}Rt.responseType="text";function oa(t){return typeof Buffer=="function"&&B(Buffer.isBuffer)?Buffer.isBuffer(t):!1}function Bt(t,n){let r=n&&n.property?lt(n.property):W;return $(t)&&!oa(t)?ia(r(t),n):r(JSON.parse(t))}Bt.responseType="json";function ia(t,n){return!J(t)&&on(t)&&(t=[...t]),n&&n.copy?JSON.parse(JSON.stringify(t)):t}var sa={interior:(t,n)=>t!==n,exterior:(t,n)=>t===n};function Ln(t,n){let r,e,a,u;return t=Bt(t,n),n&&n.feature?(r=ce,a=n.feature):n&&n.mesh?(r=he,a=n.mesh,u=sa[n.filter]):v("Missing TopoJSON feature or mesh parameter."),e=(e=t.objects[a])?r(t,e,u):v("Invalid TopoJSON object: "+a),e&&e.features||[e]}Ln.responseType="json";var Ct={dsv:Rt,csv:Bn(","),tsv:Bn(" "),json:Bt,topojson:Ln};function Lt(t,n){return arguments.length>1?(Ct[t]=n,this):N(Ct,t)?Ct[t]:null}function la(t){let n=Lt(t);return n&&n.responseType||"text"}function ca(t,n,r,e){n||(n={});let a=Lt(n.type||"json");return a||v("Unknown data format type: "+n.type),t=a(t,n),n.parse&&fa(t,n.parse,r,e),N(t,"columns")&&delete t.columns,t}function fa(t,n,r,e){if(!t.length)return;let a=et();r||(r=a.timeParse),e||(e=a.utcParse);let u=t.columns||Object.keys(t[0]),o,i,c,l,h,s;n==="auto"&&(n=Rn(t,u)),u=Object.keys(n);let f=u.map(g=>{let p=n[g],m,d;if(p&&(p.startsWith("date:")||p.startsWith("utc:")))return m=p.split(/:(.+)?/,2),d=m[1],(d[0]==="'"&&d[d.length-1]==="'"||d[0]==='"'&&d[d.length-1]==='"')&&(d=d.slice(1,-1)),(m[0]==="utc"?e:r)(d);if(!$t[p])throw Error("Illegal format pattern: "+g+":"+p);return $t[p]});for(c=0,h=t.length,s=u.length;c<h;++c)for(o=t[c],l=0;l<s;++l)i=u[l],o[i]=f[l](o[i])}var ha=Ze();export{Sr as $,Or as $t,Se as A,Cr as At,be as B,ln as Bt,bn as C,Hr as Ct,ve as D,Mr as Dt,Re as E,Zr as Et,yt as F,Dr as Ft,vr as G,gn as Gt,br as H,cn as Ht,Fe as I,kr as It,E as J,fr as Jt,mr as K,hn as Kt,ze as L,P as Lt,ye as M,Xr as Mt,Mn as N,wr as Nt,Oe as O,Qr as Ot,Ne as P,jr as Pt,Dt as Q,I as Qt,Ce as R,Ar as Rt,A as S,$ as St,b as T,Gr as Tt,gr as U,fn as Ut,mt as V,wt as Vt,dr as W,q as Wt,ir as X,re as Xt,Vt as Y,Er as Yt,R as Z,jt as Zt,O as _,qr as _t,ha as a,Rr as at,w as b,on as bt,$t as c,Lr as ct,bt as d,N as dt,Ur as en,Pr as et,We as f,cr as ft,F as g,J as gt,me as h,Jr as ht,Rn as i,z as it,Pe as j,Kt as jt,dt as k,Kr as kt,Yn as l,lt,k as m,Wr as mt,Lt as n,Nr as nn,$r as nt,ca as o,Br as ot,et as p,W as pt,yr as q,ne as qt,$n as r,v as rt,la as s,hr as st,Ct as t,xr as tn,an as tt,_e as u,_r as ut,S as v,un as vt,M as w,pt as wt,D as x,sn as xt,U as y,B as yt,Te as z,H as zt};
@@ -0,0 +1 @@
1
+ import{t as o}from"./velocity-DUbAzJtM.js";export{o as velocity};
@@ -0,0 +1 @@
1
+ import{n as o,t as r}from"./verilog-DK7zLFMr.js";export{r as tlv,o as verilog};
@@ -0,0 +1 @@
1
+ import{t as o}from"./vhdl-B9Tq3stB.js";export{o as vhdl};
@@ -0,0 +1 @@
1
+ import{t as e}from"./webidl-C5qiIEir.js";export{e as webIDL};
@@ -0,0 +1 @@
1
+ import{s as V}from"./chunk-LvLJmgfZ.js";import{t as B}from"./react-Bj1aDYRI.js";import{t as G}from"./compiler-runtime-B3qBwwSJ.js";import{t as H}from"./jsx-runtime-icT_Ltz2.js";import{t as W}from"./button-Ej3vmCIF.js";import{r as I}from"./requests-Bgjtqo_1.js";import{r as D}from"./input-lyDIN6R6.js";import{t as E}from"./use-toast-BtZldTi5.js";import{c as J,i as O,n as Q,s as U,t as X}from"./select-Cnd3vm9n.js";import{a as Z,c as $,i as ee,n as te,r as re}from"./dialog-C_NcD2pn.js";import{t as ae}from"./links-BQHNKE3J.js";import{t as P}from"./label-CNWsXpEn.js";import{r as L}from"./field-BEgvDIrV.js";var oe=G(),T=V(B(),1),t=V(H(),1);function le(a){return a.sort((e,r)=>e.provider==="env"?1:r.provider==="env"?-1:0)}const ne=a=>{let e=(0,oe.c)(43),{providerNames:r,onClose:A,onSuccess:F}=a,{writeSecret:Y}=I(),[o,M]=T.useState(""),[n,R]=T.useState(""),[l,z]=T.useState(r[0]),g;e[0]!==o||e[1]!==l||e[2]!==F||e[3]!==n||e[4]!==Y?(g=async i=>{if(i.preventDefault(),!l){E({title:"Error",description:"No location selected for the secret.",variant:"danger"});return}if(!o||!n||!l){E({title:"Error",description:"Please fill in all fields.",variant:"danger"});return}try{await Y({key:o,value:n,provider:"dotenv",name:l}),E({title:"Secret created",description:"The secret has been created successfully."}),F(o)}catch{E({title:"Error",description:"Failed to create secret. Please try again.",variant:"danger"})}},e[0]=o,e[1]=l,e[2]=F,e[3]=n,e[4]=Y,e[5]=g):g=e[5];let q=g,j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsxs)(Z,{children:[(0,t.jsx)($,{children:"Add Secret"}),(0,t.jsx)(re,{children:"Add a new secret to your environment variables."})]}),e[6]=j):j=e[6];let y;e[7]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(P,{htmlFor:"key",children:"Key"}),e[7]=y):y=e[7];let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=i=>{M(ie(i.target.value))},e[8]=S):S=e[8];let s;e[9]===o?s=e[10]:(s=(0,t.jsxs)("div",{className:"grid gap-2",children:[y,(0,t.jsx)(D,{id:"key",value:o,onChange:S,placeholder:"MY_SECRET_KEY",required:!0})]}),e[9]=o,e[10]=s);let _;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(P,{htmlFor:"value",children:"Value"}),e[11]=_):_=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=i=>R(i.target.value),e[12]=b):b=e[12];let c;e[13]===n?c=e[14]:(c=(0,t.jsx)(D,{id:"value",type:"password",value:n,onChange:b,required:!0,autoComplete:"off"}),e[13]=n,e[14]=c);let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=se()&&(0,t.jsx)(L,{children:"Note: You are sending this key over http."}),e[15]=C):C=e[15];let d;e[16]===c?d=e[17]:(d=(0,t.jsxs)("div",{className:"grid gap-2",children:[_,c,C]}),e[16]=c,e[17]=d);let N;e[18]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(P,{htmlFor:"location",children:"Location"}),e[18]=N):N=e[18];let m;e[19]===r.length?m=e[20]:(m=r.length===0&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No dotenv locations configured."}),e[19]=r.length,e[20]=m);let h;e[21]!==l||e[22]!==r?(h=r.length>0&&(0,t.jsxs)(X,{value:l,onValueChange:i=>z(i),children:[(0,t.jsx)(U,{children:(0,t.jsx)(J,{placeholder:"Select a provider"})}),(0,t.jsx)(Q,{children:r.map(ce)})]}),e[21]=l,e[22]=r,e[23]=h):h=e[23];let k;e[24]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsxs)(L,{children:["You can configure the location by setting the"," ",(0,t.jsx)(ae,{href:"https://links.marimo.app/dotenv",children:"dotenv configuration"}),"."]}),e[24]=k):k=e[24];let p;e[25]!==m||e[26]!==h?(p=(0,t.jsxs)("div",{className:"grid gap-2",children:[N,m,h,k]}),e[25]=m,e[26]=h,e[27]=p):p=e[27];let u;e[28]!==d||e[29]!==p||e[30]!==s?(u=(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[s,d,p]}),e[28]=d,e[29]=p,e[30]=s,e[31]=u):u=e[31];let f;e[32]===A?f=e[33]:(f=(0,t.jsx)(W,{type:"button",variant:"outline",onClick:A,children:"Cancel"}),e[32]=A,e[33]=f);let K=!o||!n||!l,v;e[34]===K?v=e[35]:(v=(0,t.jsx)(W,{type:"submit",disabled:K,children:"Add Secret"}),e[34]=K,e[35]=v);let x;e[36]!==f||e[37]!==v?(x=(0,t.jsxs)(ee,{children:[f,v]}),e[36]=f,e[37]=v,e[38]=x):x=e[38];let w;return e[39]!==q||e[40]!==u||e[41]!==x?(w=(0,t.jsx)(te,{children:(0,t.jsxs)("form",{onSubmit:q,children:[j,u,x]})}),e[39]=q,e[40]=u,e[41]=x,e[42]=w):w=e[42],w};function ie(a){return a.replaceAll(/\W/g,"_")}function se(){return window.location.href.startsWith("http://")}function ce(a){return(0,t.jsx)(O,{value:a,children:a},a)}export{le as n,ne as t};
@@ -0,0 +1 @@
1
+ import{t as r}from"./xquery-CmGczatZ.js";export{r as xQuery};
@@ -0,0 +1,7 @@
1
+ var j,Q,K,Z,q,J,tt,it,et,st;import"./purify.es-Cf8RQecB.js";import{t as zt}from"./linear-DG7yljSg.js";import{n as ui}from"./ordinal-CIVqSC4M.js";import{t as xi}from"./range-Dk7lXDev.js";import"./defaultLocale-DPBdGRrH.js";import"./src-lcGySDV2.js";import{t as Ot}from"./line-BKm-YkCh.js";import{i as Wt}from"./chunk-S3R3BYOJ-ZHSbXnZr.js";import{n as di}from"./init-BpLL1fe9.js";import{n,r as Ft}from"./src-BRLtyMKi.js";import{B as pi,C as Xt,I as fi,T as mi,U as yi,_ as bi,a as Ai,c as Ci,d as wi,v as Si,y as mt,z as ki}from"./chunk-ABZYJK2D-Cw3YveaS.js";import{t as _i}from"./chunk-EXTU4WIE-DEQUOsSM.js";import"./dist-BjCIGEdQ.js";import{t as Ti}from"./chunk-JA3XYJ7Z-DVg9ra4h.js";function yt(){var e=ui().unknown(void 0),t=e.domain,i=e.range,s=0,a=1,l,g,f=!1,p=0,_=0,L=.5;delete e.unknown;function w(){var b=t().length,v=a<s,D=v?a:s,P=v?s:a;l=(P-D)/Math.max(1,b-p+_*2),f&&(l=Math.floor(l)),D+=(P-D-l*(b-p))*L,g=l*(1-p),f&&(D=Math.round(D),g=Math.round(g));var E=xi(b).map(function(m){return D+l*m});return i(v?E.reverse():E)}return e.domain=function(b){return arguments.length?(t(b),w()):t()},e.range=function(b){return arguments.length?([s,a]=b,s=+s,a=+a,w()):[s,a]},e.rangeRound=function(b){return[s,a]=b,s=+s,a=+a,f=!0,w()},e.bandwidth=function(){return g},e.step=function(){return l},e.round=function(b){return arguments.length?(f=!!b,w()):f},e.padding=function(b){return arguments.length?(p=Math.min(1,_=+b),w()):p},e.paddingInner=function(b){return arguments.length?(p=Math.min(1,b),w()):p},e.paddingOuter=function(b){return arguments.length?(_=+b,w()):_},e.align=function(b){return arguments.length?(L=Math.max(0,Math.min(1,b)),w()):L},e.copy=function(){return yt(t(),[s,a]).round(f).paddingInner(p).paddingOuter(_).align(L)},di.apply(w(),arguments)}var bt=(function(){var e=n(function(h,A,x,u){for(x||(x={}),u=h.length;u--;x[h[u]]=A);return x},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],l=[1,6],g=[1,7],f=[1,5,10,12,14,16,18,19,21,23,34,35,36],p=[1,25],_=[1,26],L=[1,28],w=[1,29],b=[1,30],v=[1,31],D=[1,32],P=[1,33],E=[1,34],m=[1,35],T=[1,36],r=[1,37],z=[1,43],O=[1,42],V=[1,47],S=[1,50],c=[1,10,12,14,16,18,19,21,23,34,35,36],M=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],y=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],Y=[1,64],U={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(h,A,x,u,k,o,at){var d=o.length-1;switch(k){case 5:u.setOrientation(o[d]);break;case 9:u.setDiagramTitle(o[d].text.trim());break;case 12:u.setLineData({text:"",type:"text"},o[d]);break;case 13:u.setLineData(o[d-1],o[d]);break;case 14:u.setBarData({text:"",type:"text"},o[d]);break;case 15:u.setBarData(o[d-1],o[d]);break;case 16:this.$=o[d].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=o[d].trim(),u.setAccDescription(this.$);break;case 19:this.$=o[d-1];break;case 20:this.$=[Number(o[d-2]),...o[d]];break;case 21:this.$=[Number(o[d])];break;case 22:u.setXAxisTitle(o[d]);break;case 23:u.setXAxisTitle(o[d-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(o[d]);break;case 26:u.setXAxisRangeData(Number(o[d-2]),Number(o[d]));break;case 27:this.$=o[d-1];break;case 28:this.$=[o[d-2],...o[d]];break;case 29:this.$=[o[d]];break;case 30:u.setYAxisTitle(o[d]);break;case 31:u.setYAxisTitle(o[d-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(o[d-2]),Number(o[d]));break;case 37:this.$={text:o[d],type:"text"};break;case 38:this.$={text:o[d],type:"text"};break;case 39:this.$={text:o[d],type:"markdown"};break;case 40:this.$=o[d];break;case 41:this.$=o[d-1]+""+o[d];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,34:a,35:l,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:a,35:l,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:l,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:a,35:l,36:g}),{1:[2,3]},e(f,[2,5]),e(t,[2,7],{4:22,34:a,35:l,36:g}),{11:23,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{11:39,13:38,24:z,27:O,29:40,30:41,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{11:45,15:44,27:V,33:46,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{11:49,17:48,24:S,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{11:52,17:51,24:S,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},{20:[1,53]},{22:[1,54]},e(c,[2,18]),{1:[2,2]},e(c,[2,8]),e(c,[2,9]),e(M,[2,37],{40:55,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r}),e(M,[2,38]),e(M,[2,39]),e(y,[2,40]),e(y,[2,42]),e(y,[2,43]),e(y,[2,44]),e(y,[2,45]),e(y,[2,46]),e(y,[2,47]),e(y,[2,48]),e(y,[2,49]),e(y,[2,50]),e(y,[2,51]),e(c,[2,10]),e(c,[2,22],{30:41,29:56,24:z,27:O}),e(c,[2,24]),e(c,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},e(c,[2,11]),e(c,[2,30],{33:60,27:V}),e(c,[2,32]),{31:[1,61]},e(c,[2,12]),{17:62,24:S},{25:63,27:Y},e(c,[2,14]),{17:65,24:S},e(c,[2,16]),e(c,[2,17]),e(y,[2,41]),e(c,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(c,[2,31]),{27:[1,69]},e(c,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(c,[2,15]),e(c,[2,26]),e(c,[2,27]),{11:59,32:72,37:24,38:p,39:_,40:27,41:L,42:w,43:b,44:v,45:D,46:P,47:E,48:m,49:T,50:r},e(c,[2,33]),e(c,[2,19]),{25:73,27:Y},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(h,A){if(A.recoverable)this.trace(h);else{var x=Error(h);throw x.hash=A,x}},"parseError"),parse:n(function(h){var A=this,x=[0],u=[],k=[null],o=[],at=this.table,d="",rt=0,vt=0,Et=0,ri=2,Mt=1,li=o.slice.call(arguments,1),R=Object.create(this.lexer),X={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(X.yy[xt]=this.yy[xt]);R.setInput(h,X.yy),X.yy.lexer=R,X.yy.parser=this,R.yylloc===void 0&&(R.yylloc={});var dt=R.yylloc;o.push(dt);var ci=R.options&&R.options.ranges;typeof X.yy.parseError=="function"?this.parseError=X.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gi(B){x.length-=2*B,k.length-=B,o.length-=B}n(gi,"popStack");function It(){var B=u.pop()||R.lex()||Mt;return typeof B!="number"&&(B instanceof Array&&(u=B,B=u.pop()),B=A.symbols_[B]||B),B}n(It,"lex");for(var I,pt,N,$,ft,H={},lt,W,$t,ct;;){if(N=x[x.length-1],this.defaultActions[N]?$=this.defaultActions[N]:(I??(I=It()),$=at[N]&&at[N][I]),$===void 0||!$.length||!$[0]){var Bt="";for(lt in ct=[],at[N])this.terminals_[lt]&&lt>ri&&ct.push("'"+this.terminals_[lt]+"'");Bt=R.showPosition?"Parse error on line "+(rt+1)+`:
2
+ `+R.showPosition()+`
3
+ Expecting `+ct.join(", ")+", got '"+(this.terminals_[I]||I)+"'":"Parse error on line "+(rt+1)+": Unexpected "+(I==Mt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Bt,{text:R.match,token:this.terminals_[I]||I,line:R.yylineno,loc:dt,expected:ct})}if($[0]instanceof Array&&$.length>1)throw Error("Parse Error: multiple actions possible at state: "+N+", token: "+I);switch($[0]){case 1:x.push(I),k.push(R.yytext),o.push(R.yylloc),x.push($[1]),I=null,pt?(I=pt,pt=null):(vt=R.yyleng,d=R.yytext,rt=R.yylineno,dt=R.yylloc,Et>0&&Et--);break;case 2:if(W=this.productions_[$[1]][1],H.$=k[k.length-W],H._$={first_line:o[o.length-(W||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(W||1)].first_column,last_column:o[o.length-1].last_column},ci&&(H._$.range=[o[o.length-(W||1)].range[0],o[o.length-1].range[1]]),ft=this.performAction.apply(H,[d,vt,rt,X.yy,$[1],k,o].concat(li)),ft!==void 0)return ft;W&&(x=x.slice(0,-1*W*2),k=k.slice(0,-1*W),o=o.slice(0,-1*W)),x.push(this.productions_[$[1]][0]),k.push(H.$),o.push(H._$),$t=at[x[x.length-2]][x[x.length-1]],x.push($t);break;case 3:return!0}}return!0},"parse")};U.lexer=(function(){return{EOF:1,parseError:n(function(h,A){if(this.yy.parser)this.yy.parser.parseError(h,A);else throw Error(h)},"parseError"),setInput:n(function(h,A){return this.yy=A||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var h=this._input[0];return this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h,h.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:n(function(h){var A=h.length,x=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===u.length?this.yylloc.first_column:0)+u[u.length-x.length].length-x[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(h){this.unput(this.match.slice(h))},"less"),pastInput:n(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var h=this.pastInput(),A=Array(h.length+1).join("-");return h+this.upcomingInput()+`
5
+ `+A+"^"},"showPosition"),test_match:n(function(h,A){var x,u,k;if(this.options.backtrack_lexer&&(k={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(k.yylloc.range=this.yylloc.range.slice(0))),u=h[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],x=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var o in k)this[o]=k[o];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,A,x,u;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),o=0;o<k.length;o++)if(x=this._input.match(this.rules[k[o]]),x&&(!A||x[0].length>A[0].length)){if(A=x,u=o,this.options.backtrack_lexer){if(h=this.test_match(x,k[o]),h!==!1)return h;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(h=this.test_match(A,k[u]),h===!1?!1:h):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n(function(){return this.next()||this.lex()},"lex"),begin:n(function(h){this.conditionStack.push(h)},"begin"),popState:n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:n(function(h){this.begin(h)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n(function(h,A,x,u){switch(x){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],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:!0},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:!0},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:!0},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:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},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:!0}}}})();function F(){this.yy={}}return n(F,"Parser"),F.prototype=U,U.Parser=F,new F})();bt.parser=bt;var Ri=bt;function At(e){return e.type==="bar"}n(At,"isBarPlot");function Ct(e){return e.type==="band"}n(Ct,"isBandAxisData");function G(e){return e.type==="linear"}n(G,"isLinearAxisData");var Nt=(j=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((l,g)=>Math.max(g.length,l),0)*i,height:i};let s={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(let l of t){let g=Ti(a,1,l),f=g?g.width:l.length*i,p=g?g.height:i;s.width=Math.max(s.width,f),s.height=Math.max(s.height,p)}return a.remove(),s}},n(j,"TextDimensionCalculatorWithFont"),j),Vt=.7,Yt=.2,Ut=(Q=class{constructor(t,i,s,a){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Vt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Vt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let s=this.getLabelDimension(),a=Yt*t.width;this.outerPadding=Math.min(s.width/2,a);let l=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,l<=i&&(i-=l,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let s=this.getLabelDimension(),a=Yt*t.height;this.outerPadding=Math.min(s.height/2,a);let l=s.width+this.axisConfig.labelPadding*2;l<=i&&(i-=l,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},n(Q,"BaseAxis"),Q),Di=(K=class extends Ut{constructor(t,i,s,a,l){super(t,a,l,i),this.categories=s,this.scale=yt().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ft.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},n(K,"BandAxis"),K),Li=(Z=class extends Ut{constructor(t,i,s,a,l){super(t,a,l,i),this.domain=s,this.scale=zt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=zt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},n(Z,"LinearAxis"),Z);function wt(e,t,i,s){let a=new Nt(s);return Ct(e)?new Di(t,i,e.categories,e.title,a):new Li(t,i,[e.min,e.max],e.title,a)}n(wt,"getAxis");var Pi=(q=class{constructor(t,i,s,a){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),a=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=a&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=a,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},n(q,"ChartTitle"),q);function Ht(e,t,i,s){return new Pi(new Nt(s),e,t,i)}n(Ht,"getChartTitleComponent");var vi=(J=class{constructor(t,i,s,a,l){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=a,this.plotIndex=l}getDrawableElement(){let t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]),i;return i=this.orientation==="horizontal"?Ot().y(s=>s[0]).x(s=>s[1])(t):Ot().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},n(J,"LinePlot"),J),Ei=(tt=class{constructor(t,i,s,a,l,g){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=a,this.orientation=l,this.plotIndex=g}getDrawableElement(){let t=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,s=i/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(a=>({x:this.boundingRect.x,y:a[0]-s,height:i,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(a=>({x:a[0]-s,y:a[1],width:i,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},n(tt,"BarPlot"),tt),Mi=(it=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{let a=new vi(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...a.getDrawableElement())}break;case"bar":{let a=new Ei(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...a.getDrawableElement())}break}return t}},n(it,"BasePlot"),it);function Gt(e,t,i){return new Mi(e,t,i)}n(Gt,"getPlotComponent");var Ii=(et=class{constructor(t,i,s,a){this.chartConfig=t,this.chartData=i,this.componentStore={title:Ht(t,i,s,a),plot:Gt(t,i,s),xAxis:wt(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},a),yAxis:wt(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},a)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,a=0,l=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),g=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:l,height:g});t-=f.width,i-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),a=f.height,i-=f.height,this.componentStore.xAxis.setAxisPosition("bottom"),f=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=f.height,this.componentStore.yAxis.setAxisPosition("left"),f=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=f.width,t-=f.width,t>0&&(l+=t,t=0),i>0&&(g+=i,i=0),this.componentStore.plot.calculateSpace({width:l,height:g}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.xAxis.setRange([s,s+l]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:a+g}),this.componentStore.yAxis.setRange([a,a+g]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(p=>At(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,a=0,l=0,g=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),f=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:g,height:f});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=p.width,a=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=p.height,l=s+p.height,t>0&&(g+=t,t=0),i>0&&(f+=i,i=0),this.componentStore.plot.calculateSpace({width:g,height:f}),this.componentStore.plot.setBoundingBoxXY({x:a,y:l}),this.componentStore.yAxis.setRange([a,a+g]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:s}),this.componentStore.xAxis.setRange([l,l+f]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:l}),this.chartData.plots.some(_=>At(_))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},n(et,"Orchestrator"),et),$i=(st=class{static build(t,i,s,a){return new Ii(t,i,s,a).getDrawableElement()}},n(st,"XYChartBuilder"),st),nt=0,jt,ht=Tt(),ot=_t(),C=Rt(),St=ot.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1;function _t(){let e=mi(),t=mt();return Wt(e.xyChart,t.themeVariables.xyChart)}n(_t,"getChartDefaultThemeConfig");function Tt(){let e=mt();return Wt(wi.xyChart,e.xyChart)}n(Tt,"getChartDefaultConfig");function Rt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}n(Rt,"getChartDefaultData");function ut(e){let t=mt();return fi(e.trim(),t)}n(ut,"textSanitizer");function Qt(e){jt=e}n(Qt,"setTmpSVGG");function Kt(e){e==="horizontal"?ht.chartOrientation="horizontal":ht.chartOrientation="vertical"}n(Kt,"setOrientation");function Zt(e){C.xAxis.title=ut(e.text)}n(Zt,"setXAxisTitle");function Dt(e,t){C.xAxis={type:"linear",title:C.xAxis.title,min:e,max:t},gt=!0}n(Dt,"setXAxisRangeData");function qt(e){C.xAxis={type:"band",title:C.xAxis.title,categories:e.map(t=>ut(t.text))},gt=!0}n(qt,"setXAxisBand");function Jt(e){C.yAxis.title=ut(e.text)}n(Jt,"setYAxisTitle");function ti(e,t){C.yAxis={type:"linear",title:C.yAxis.title,min:e,max:t},kt=!0}n(ti,"setYAxisRangeData");function ii(e){let t=Math.min(...e),i=Math.max(...e),s=G(C.yAxis)?C.yAxis.min:1/0,a=G(C.yAxis)?C.yAxis.max:-1/0;C.yAxis={type:"linear",title:C.yAxis.title,min:Math.min(s,t),max:Math.max(a,i)}}n(ii,"setYAxisRangeFromPlotData");function Lt(e){let t=[];if(e.length===0)return t;if(!gt){let i=G(C.xAxis)?C.xAxis.min:1/0,s=G(C.xAxis)?C.xAxis.max:-1/0;Dt(Math.min(i,1),Math.max(s,e.length))}if(kt||ii(e),Ct(C.xAxis)&&(t=C.xAxis.categories.map((i,s)=>[i,e[s]])),G(C.xAxis)){let i=C.xAxis.min,s=C.xAxis.max,a=(s-i)/(e.length-1),l=[];for(let g=i;g<=s;g+=a)l.push(`${g}`);t=l.map((g,f)=>[g,e[f]])}return t}n(Lt,"transformDataWithoutCategory");function Pt(e){return St[e===0?0:e%St.length]}n(Pt,"getPlotColorFromPalette");function ei(e,t){let i=Lt(t);C.plots.push({type:"line",strokeFill:Pt(nt),strokeWidth:2,data:i}),nt++}n(ei,"setLineData");function si(e,t){let i=Lt(t);C.plots.push({type:"bar",fill:Pt(nt),data:i}),nt++}n(si,"setBarData");function ai(){if(C.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return C.title=Xt(),$i.build(ht,C,ot,jt)}n(ai,"getDrawableElem");function ni(){return ot}n(ni,"getChartThemeConfig");function hi(){return ht}n(hi,"getChartConfig");function oi(){return C}n(oi,"getXYChartData");var Bi={parser:Ri,db:{getDrawableElem:ai,clear:n(function(){Ai(),nt=0,ht=Tt(),C=Rt(),ot=_t(),St=ot.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1},"clear"),setAccTitle:pi,getAccTitle:Si,setDiagramTitle:yi,getDiagramTitle:Xt,getAccDescription:bi,setAccDescription:ki,setOrientation:Kt,setXAxisTitle:Zt,setXAxisRangeData:Dt,setXAxisBand:qt,setYAxisTitle:Jt,setYAxisRangeData:ti,setLineData:ei,setBarData:si,setTmpSVGG:Qt,getChartThemeConfig:ni,getChartConfig:hi,getXYChartData:oi},renderer:{draw:n((e,t,i,s)=>{let a=s.db,l=a.getChartThemeConfig(),g=a.getChartConfig(),f=a.getXYChartData().plots[0].data.map(m=>m[1]);function p(m){return m==="top"?"text-before-edge":"middle"}n(p,"getDominantBaseLine");function _(m){return m==="left"?"start":m==="right"?"end":"middle"}n(_,"getTextAnchor");function L(m){return`translate(${m.x}, ${m.y}) rotate(${m.rotation||0})`}n(L,"getTextTransformation"),Ft.debug(`Rendering xychart chart
7
+ `+e);let w=_i(t),b=w.append("g").attr("class","main"),v=b.append("rect").attr("width",g.width).attr("height",g.height).attr("class","background");Ci(w,g.height,g.width,!0),w.attr("viewBox",`0 0 ${g.width} ${g.height}`),v.attr("fill",l.backgroundColor),a.setTmpSVGG(w.append("g").attr("class","mermaid-tmp-group"));let D=a.getDrawableElem(),P={};function E(m){let T=b,r="";for(let[z]of m.entries()){let O=b;z>0&&P[r]&&(O=P[r]),r+=m[z],T=P[r],T||(T=P[r]=O.append("g").attr("class",m[z]))}return T}n(E,"getGroup");for(let m of D){if(m.data.length===0)continue;let T=E(m.groupTexts);switch(m.type){case"rect":if(T.selectAll("rect").data(m.data).enter().append("rect").attr("x",r=>r.x).attr("y",r=>r.y).attr("width",r=>r.width).attr("height",r=>r.height).attr("fill",r=>r.fill).attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth),g.showDataLabel)if(g.chartOrientation==="horizontal"){let r=function(c,M){let{data:y,label:Y}=c;return M*Y.length*z<=y.width-10};n(r,"fitsHorizontally");let z=.7,O=m.data.map((c,M)=>({data:c,label:f[M].toString()})).filter(c=>c.data.width>0&&c.data.height>0),V=O.map(c=>{let{data:M}=c,y=M.height*.7;for(;!r(c,y)&&y>0;)--y;return y}),S=Math.floor(Math.min(...V));T.selectAll("text").data(O).enter().append("text").attr("x",c=>c.data.x+c.data.width-10).attr("y",c=>c.data.y+c.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${S}px`).text(c=>c.label)}else{let r=function(S,c,M){let{data:y,label:Y}=S,U=c*Y.length*.7,F=y.x+y.width/2,h=F-U/2,A=F+U/2,x=h>=y.x&&A<=y.x+y.width,u=y.y+M+c<=y.y+y.height;return x&&u};n(r,"fitsInBar");let z=m.data.map((S,c)=>({data:S,label:f[c].toString()})).filter(S=>S.data.width>0&&S.data.height>0),O=z.map(S=>{let{data:c,label:M}=S,y=c.width/(M.length*.7);for(;!r(S,y,10)&&y>0;)--y;return y}),V=Math.floor(Math.min(...O));T.selectAll("text").data(z).enter().append("text").attr("x",S=>S.data.x+S.data.width/2).attr("y",S=>S.data.y+10).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${V}px`).text(S=>S.label)}break;case"text":T.selectAll("text").data(m.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",r=>r.fill).attr("font-size",r=>r.fontSize).attr("dominant-baseline",r=>p(r.verticalPos)).attr("text-anchor",r=>_(r.horizontalPos)).attr("transform",r=>L(r)).text(r=>r.text);break;case"path":T.selectAll("path").data(m.data).enter().append("path").attr("d",r=>r.path).attr("fill",r=>r.fill?r.fill:"none").attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth);break}}},"draw")}};export{Bi as diagram};
@@ -0,0 +1 @@
1
+ import{t as a}from"./yacas-BbepBpsT.js";export{a as yacas};
@@ -0,0 +1 @@
1
+ import{n as a,t as e}from"./z80-C2f-3LU8.js";export{e as ez80,a as z80};