@marimo-team/islands 0.15.1 → 0.15.3

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 (189) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DIy_POzQ.js → ConnectedDataExplorerComponent-DfvW3rBn.js} +323 -328
  2. package/dist/{ImageComparisonComponent-4ehfWTqN.js → ImageComparisonComponent-XaJshw7d.js} +13 -13
  3. package/dist/{_baseUniq-Duh9chhg.js → _baseUniq-dN9WKF9m.js} +67 -67
  4. package/dist/any-language-editor-CpFniVi-.js +27 -0
  5. package/dist/{arc-BXrety1g.js → arc-BOhn-m2C.js} +1 -1
  6. package/dist/{architectureDiagram-KFL7JDKH-3xVup6Z2.js → architectureDiagram-W76B3OCA-Bpg85ZKv.js} +144 -144
  7. package/dist/assets/{worker-COGufAQn.js → worker-Y-Q4G-N2.js} +30 -26
  8. package/dist/asterisk-DS281yxp.js +271 -0
  9. package/dist/{blockDiagram-ZYB65J3Q-eEZ6LTIH.js → blockDiagram-QIGZ2CNN-DS1kOHlW.js} +10 -10
  10. package/dist/{c4Diagram-AAMF2YG6-BqjOo55d.js → c4Diagram-FPNF74CW-CyRVKssw.js} +8 -8
  11. package/dist/{channel-BkhHQVue.js → channel-BilGXox7.js} +1 -1
  12. package/dist/{chunk-ANTBXLJU-BkLYh6ot.js → chunk-4BX2VUAB-CZR39zCO.js} +1 -1
  13. package/dist/{chunk-WVR4S24B-DpdvazVp.js → chunk-55IACEB6-BIH-MYov.js} +1 -1
  14. package/dist/{chunk-GLLZNHP4-BGaltx6Q.js → chunk-FMBD7UC4-4PZXFZE8.js} +1 -1
  15. package/dist/{chunk-JBRWN2VN-BZ3JgjiU.js → chunk-K7UQS3LO-CEvWKznk.js} +117 -117
  16. package/dist/{chunk-NRVI72HA-XO3jKXGr.js → chunk-QN33PNHL-D5LO5Jq_.js} +1 -1
  17. package/dist/{chunk-FHKO5MBM-BqvR49qe.js → chunk-QZHKN3VN-6gwUonWI.js} +1 -1
  18. package/dist/{chunk-LXBSTHXV-CJgOmuuc.js → chunk-TVAH2DTR-3gm06QdU.js} +7 -7
  19. package/dist/{chunk-OMD6QJNC-1rwXYaVn.js → chunk-TZMSLE5B-Cm8Iy9bO.js} +1 -1
  20. package/dist/{classDiagram-v2-QTMF73CY-_BeLc0pY.js → classDiagram-KNZD7YFC-DC529O_z.js} +2 -2
  21. package/dist/{classDiagram-3BZAVTQC-_BeLc0pY.js → classDiagram-v2-RKCZMP56-DC529O_z.js} +2 -2
  22. package/dist/{clone-DhXjmfNH.js → clone-CLoRX3j6.js} +1 -1
  23. package/dist/cose-bilkent-S5V4N54A-qf5DlS6Y.js +2609 -0
  24. package/dist/{cytoscape.esm-BYnVVhJX.js → cytoscape.esm-DfdJODL8.js} +34 -34
  25. package/dist/{dagre-2BBEFEWP-DoebA2zc.js → dagre-5GWH7T2D-Ceocls0m.js} +6 -6
  26. package/dist/{data-grid-overlay-editor-DYmc5v9I.js → data-grid-overlay-editor-AqDS_UKe.js} +11 -11
  27. package/dist/{diagram-4IRLE6MV-CxnJ439S.js → diagram-N5W7TBWH-CP66oSiv.js} +59 -60
  28. package/dist/{diagram-RP2FKANI-C-v51IXB.js → diagram-QEK2KX5R-_YD4kxxi.js} +15 -15
  29. package/dist/{diagram-GUPCWM2R-B7MLfHE7.js → diagram-S2PKOQOG-Cnj8T-OP.js} +10 -10
  30. package/dist/dockerfile-Cm8cRYCN.js +194 -0
  31. package/dist/ebnf-DUPDuY4r.js +78 -0
  32. package/dist/{erDiagram-HZWUO2LU-Cv1Slpwd.js → erDiagram-AWTI2OKA-CGnvoHx6.js} +8 -8
  33. package/dist/fcl-CPC2WYrI.js +103 -0
  34. package/dist/{flowDiagram-THRYKUMA-CnjAkcKg.js → flowDiagram-PVAE7QVJ-DG-pr9R9.js} +9 -9
  35. package/dist/{ganttDiagram-WV7ZQ7D5-CRQQ5cqP.js → ganttDiagram-OWAHRB6G-JmChtxvn.js} +34 -34
  36. package/dist/{gitGraphDiagram-OJR772UL-a7Wl_pP8.js → gitGraphDiagram-NY62KEGX-D8wLfOPd.js} +4 -4
  37. package/dist/{glide-data-editor-DrSTYUHP.js → glide-data-editor-9nC3iCIZ.js} +33 -33
  38. package/dist/{graph-Dq4lx1WI.js → graph-CoRe7vAN.js} +3 -3
  39. package/dist/http-D9LttvKF.js +44 -0
  40. package/dist/{index-B_t2cVfJ.js → index-6qYeHHjQ.js} +33090 -32892
  41. package/dist/{index-BhnWrXVh.js → index-BpzLh4Qe.js} +7711 -7711
  42. package/dist/{index-DSAnCCyV.js → index-BthgsgYX.js} +6 -6
  43. package/dist/{index-pBmAzQJl.js → index-MCx5v1x0.js} +2 -2
  44. package/dist/index-jkm77Jrz.js +98 -0
  45. package/dist/{infoDiagram-6WOFNB3A-B4pr_cke.js → infoDiagram-STP46IZ2-BlXxvOrR.js} +2 -2
  46. package/dist/{journeyDiagram-FFXJYRFH-CF8H9tcV.js → journeyDiagram-BIP6EPQ6-CNRYs_Fc.js} +24 -26
  47. package/dist/{kanban-definition-KOZQBZVT-BYfBCo4W.js → kanban-definition-6OIFK2YF-B9HeMAuP.js} +14 -14
  48. package/dist/{layout-D8_YOjKz.js → layout-m2vOUiW1.js} +81 -81
  49. package/dist/{linear-Be5SurQB.js → linear-DU6Q5CX3.js} +35 -35
  50. package/dist/{main-8IC_V2L6.js → main-BD2KGFpU.js} +74594 -68034
  51. package/dist/main.js +1 -1
  52. package/dist/{mermaid-B4v-qVXz.js → mermaid-HVCtvbyx.js} +6160 -7493
  53. package/dist/min-DcGMA4e_.js +80 -0
  54. package/dist/mindmap-definition-Q6HEUPPD-BW8UmIDQ.js +785 -0
  55. package/dist/nginx-zDPm3Z74.js +89 -0
  56. package/dist/{number-overlay-editor-XASk1ikZ.js → number-overlay-editor-D8Hl0Syo.js} +19 -19
  57. package/dist/{pieDiagram-DBDJKBY4-DhPX65dy.js → pieDiagram-ADFJNKIX-Bg-3zg5U.js} +17 -17
  58. package/dist/{quadrantDiagram-YPSRARAO-BjPa8bg5.js → quadrantDiagram-LMRXKWRM-BO4IG6Yz.js} +6 -6
  59. package/dist/{react-plotly-C_6SNkG9.js → react-plotly-dkvHVuRb.js} +3577 -3577
  60. package/dist/{requirementDiagram-EGVEC5DT-CtN_U9bI.js → requirementDiagram-4UW4RH46-5sdTguSM.js} +7 -7
  61. package/dist/{sankeyDiagram-HRAUVNP4-DVi73SZP.js → sankeyDiagram-GR3RE2ED-Buhlv9OI.js} +5 -5
  62. package/dist/sequenceDiagram-C3RYC4MD-C3qsM2UP.js +2519 -0
  63. package/dist/{slides-component-ML7vxRcD.js → slides-component-D209A0-s.js} +66 -66
  64. package/dist/solr-BNlsLglM.js +41 -0
  65. package/dist/spreadsheet-C-cy4P5N.js +49 -0
  66. package/dist/{stateDiagram-UUKSUZ4H-qZ62tNIz.js → stateDiagram-KXAO66HF-CopJ7G6P.js} +5 -5
  67. package/dist/{stateDiagram-v2-EYPG3UTE-BZEyTMgl.js → stateDiagram-v2-UMBNRL4Z-CejL8AKf.js} +2 -2
  68. package/dist/style.css +1 -1
  69. package/dist/tiddlywiki-5wqsXtSk.js +155 -0
  70. package/dist/tiki-__Kn3CeS.js +181 -0
  71. package/dist/{time-CZ2vTSO2.js → time-BwSBitlN.js} +58 -58
  72. package/dist/{timeline-definition-3HZDQTIS-DbWMwd1x.js → timeline-definition-XQNQX7LJ-DzMNTX-C.js} +10 -12
  73. package/dist/{timer-BYwnU4DF.js → timer-B0-z63CM.js} +16 -16
  74. package/dist/{treemap-75Q7IDZK-CocR-oAZ.js → treemap-75Q7IDZK-zeJG07dk.js} +14 -14
  75. package/dist/{vega-component-BrYek_kz.js → vega-component-CUkiTayd.js} +30 -30
  76. package/dist/{xychartDiagram-FDP5SA34-CYiUdiy5.js → xychartDiagram-6GGTOJPD-DiENNXMS.js} +7 -7
  77. package/package.json +39 -39
  78. package/src/__mocks__/notebook.ts +3 -0
  79. package/src/__mocks__/requests.ts +3 -0
  80. package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
  81. package/src/__tests__/chat-utils.test.ts +26 -211
  82. package/src/components/ai/ai-model-dropdown.tsx +25 -9
  83. package/src/components/app-config/ai-config.tsx +7 -0
  84. package/src/components/chat/chat-components.tsx +71 -0
  85. package/src/components/chat/chat-panel.tsx +481 -291
  86. package/src/components/chat/chat-utils.ts +50 -0
  87. package/src/components/chat/markdown-renderer.tsx +3 -7
  88. package/src/components/chat/tool-call-accordion.tsx +5 -5
  89. package/src/components/datasources/__tests__/utils.test.ts +6 -0
  90. package/src/components/datasources/column-preview.tsx +1 -3
  91. package/src/components/editor/actions/useNotebookActions.tsx +1 -1
  92. package/src/components/editor/ai/add-cell-with-ai.tsx +20 -15
  93. package/src/components/editor/ai/ai-completion-editor.tsx +22 -3
  94. package/src/components/editor/ai/completion-handlers.tsx +2 -4
  95. package/src/components/editor/ai/completion-utils.ts +85 -11
  96. package/src/components/editor/alerts/startup-logs-alert.tsx +72 -0
  97. package/src/components/editor/chrome/panels/datasources-panel.tsx +3 -1
  98. package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +3 -1
  99. package/src/components/editor/chrome/panels/documentation-panel.tsx +3 -1
  100. package/src/components/editor/chrome/panels/error-panel.tsx +3 -1
  101. package/src/components/editor/chrome/panels/file-explorer-panel.tsx +3 -1
  102. package/src/components/editor/chrome/panels/logs-panel.tsx +3 -1
  103. package/src/components/editor/chrome/panels/outline-panel.tsx +3 -1
  104. package/src/components/editor/chrome/panels/packages-panel.tsx +4 -2
  105. package/src/components/editor/chrome/panels/scratchpad-panel.tsx +3 -1
  106. package/src/components/editor/chrome/panels/secrets-panel.tsx +3 -1
  107. package/src/components/editor/chrome/panels/snippets-panel.tsx +3 -1
  108. package/src/components/editor/chrome/panels/tracing-panel.tsx +3 -1
  109. package/src/components/editor/chrome/panels/variable-panel.tsx +3 -1
  110. package/src/components/editor/chrome/wrapper/app-chrome.tsx +38 -28
  111. package/src/components/editor/controls/command-palette-button.tsx +1 -1
  112. package/src/components/editor/controls/command-palette.tsx +5 -4
  113. package/src/components/editor/controls/state.ts +4 -0
  114. package/src/components/editor/package-alert.tsx +108 -58
  115. package/src/components/editor/renderers/CellArray.tsx +2 -0
  116. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +0 -1
  117. package/src/components/pages/edit-page.tsx +7 -3
  118. package/src/core/ai/chat-utils.ts +26 -43
  119. package/src/core/ai/config.ts +1 -1
  120. package/src/core/ai/context/__tests__/registry.test.ts +277 -3
  121. package/src/core/ai/context/context.ts +11 -1
  122. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +378 -0
  123. package/src/core/ai/context/providers/__tests__/error.test.ts +3 -2
  124. package/src/core/ai/context/providers/__tests__/file.test.ts +119 -0
  125. package/src/core/ai/context/providers/cell-output.ts +349 -0
  126. package/src/core/ai/context/providers/common.ts +5 -1
  127. package/src/core/ai/context/providers/file.ts +287 -0
  128. package/src/core/ai/context/registry.ts +79 -0
  129. package/src/core/ai/state.ts +22 -5
  130. package/src/core/alerts/state.ts +71 -3
  131. package/src/core/cells/cell.ts +2 -2
  132. package/src/core/cells/cells.ts +1 -1
  133. package/src/core/cells/logs.ts +1 -1
  134. package/src/core/cells/runs.ts +6 -5
  135. package/src/core/codemirror/ai/resources.ts +47 -5
  136. package/src/core/codemirror/ai/state.ts +12 -0
  137. package/src/core/codemirror/language/__tests__/sql.test.ts +45 -0
  138. package/src/core/codemirror/markdown/__tests__/commands.test.ts +1 -0
  139. package/src/core/codemirror/theme/dark.ts +1 -1
  140. package/src/core/config/capabilities.ts +1 -1
  141. package/src/core/datasets/__tests__/data-source.test.ts +24 -0
  142. package/src/core/errors/__tests__/errors.test.ts +2 -0
  143. package/src/core/islands/bridge.ts +1 -0
  144. package/src/core/islands/main.ts +1 -0
  145. package/src/core/kernel/messages.ts +12 -6
  146. package/src/core/layout/layout.ts +3 -3
  147. package/src/core/network/requests-network.ts +8 -0
  148. package/src/core/network/requests-static.ts +1 -0
  149. package/src/core/network/requests-toasting.ts +1 -0
  150. package/src/core/network/types.ts +4 -1
  151. package/src/core/wasm/bridge.ts +18 -2
  152. package/src/core/wasm/worker/bootstrap.ts +3 -1
  153. package/src/core/wasm/worker/getMarimoWheel.ts +3 -8
  154. package/src/core/wasm/worker/types.ts +3 -0
  155. package/src/core/websocket/useMarimoWebSocket.tsx +7 -1
  156. package/src/css/app/Cell.css +42 -21
  157. package/src/css/app/codemirror.css +5 -1
  158. package/src/css/globals.css +3 -0
  159. package/src/css/md.css +1 -1
  160. package/src/plugins/impl/MicrophonePlugin.tsx +2 -2
  161. package/src/plugins/impl/chat/ChatPlugin.tsx +2 -9
  162. package/src/plugins/impl/chat/chat-ui.tsx +129 -110
  163. package/src/plugins/impl/chat/types.ts +5 -8
  164. package/src/plugins/impl/code/__tests__/language.test.ts +15 -0
  165. package/src/plugins/impl/code/any-language-editor.tsx +11 -8
  166. package/src/plugins/layout/MimeRenderPlugin.tsx +3 -6
  167. package/src/stories/cell.stories.tsx +6 -0
  168. package/src/stories/layout/vertical/one-column.stories.tsx +215 -0
  169. package/src/theme/useTheme.ts +11 -6
  170. package/src/utils/__tests__/blob.test.ts +37 -0
  171. package/src/utils/arrays.ts +13 -0
  172. package/src/utils/fileToBase64.ts +21 -6
  173. package/src/utils/json/base64.ts +5 -2
  174. package/src/utils/numbers.ts +9 -7
  175. package/dist/any-language-editor-Cvakxnzg.js +0 -45
  176. package/dist/asn1-jKiBa2Ya.js +0 -95
  177. package/dist/clojure-CCKyeQKf.js +0 -800
  178. package/dist/css-BkF-NPzE.js +0 -1553
  179. package/dist/index-CfrpOVe5.js +0 -341
  180. package/dist/index-DIFrY2JV.js +0 -288
  181. package/dist/javascript-C2yteZeJ.js +0 -691
  182. package/dist/min-Q4QXsXWR.js +0 -80
  183. package/dist/mindmap-definition-LNHGMQRG-CebaDS3t.js +0 -3234
  184. package/dist/mllike-BSnXJBGA.js +0 -272
  185. package/dist/pug-CwAQJzGR.js +0 -248
  186. package/dist/python-BkR3uSy8.js +0 -313
  187. package/dist/rpm-IznJm2Xc.js +0 -57
  188. package/dist/sequenceDiagram-WFGC7UMF-C8jImRwI.js +0 -2284
  189. package/dist/ttcn-cfg-Bac_acMi.js +0 -88
@@ -1,4 +1,4 @@
1
- import { G as R, J as V, c as bt, aR as xt, aS as Ke, j as ge, aT as yt } from "./main-8IC_V2L6.js";
1
+ import { r as R, w as V, A as bt, aG as xt, aH as Ke, j as ge, aI as yt } from "./main-BD2KGFpU.js";
2
2
  function Ze(t) {
3
3
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
4
4
  }
@@ -287,7 +287,7 @@ function ne(t, e) {
287
287
  e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
288
288
  return i;
289
289
  }
290
- function Ne(t, e, i) {
290
+ function He(t, e, i) {
291
291
  const s = k();
292
292
  return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
293
293
  }
@@ -373,7 +373,7 @@ function Dt(t) {
373
373
  slidesBefore: A,
374
374
  slidesAfter: _
375
375
  });
376
- function N() {
376
+ function H() {
377
377
  e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), n("virtualUpdate");
378
378
  }
379
379
  if (z === Y && y === X && !a) {
@@ -387,13 +387,13 @@ function Dt(t) {
387
387
  offset: G,
388
388
  from: Y,
389
389
  to: X,
390
- slides: function() {
390
+ slides: (function() {
391
391
  const M = [];
392
392
  for (let B = Y; B <= X; B += 1)
393
393
  M.push(T[B]);
394
394
  return M;
395
- }()
396
- }), e.params.virtual.renderExternalUpdate ? N() : n("virtualUpdate");
395
+ })()
396
+ }), e.params.virtual.renderExternalUpdate ? H() : n("virtualUpdate");
397
397
  return;
398
398
  }
399
399
  const K = [], ee = [], pe = (x) => {
@@ -431,7 +431,7 @@ function Dt(t) {
431
431
  });
432
432
  q(e.slidesEl, ".swiper-slide, swiper-slide").forEach((x) => {
433
433
  x.style[$] = `${G - Math.abs(e.cssOverflowAdjustment())}px`;
434
- }), N();
434
+ }), H();
435
435
  }
436
436
  function p(a) {
437
437
  if (typeof a == "object" && "length" in a)
@@ -777,7 +777,7 @@ function Gt(t) {
777
777
  if (e.params.loop ? (L = e.previousRealIndex || 0, b = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (b = e.snapIndex, L = e.previousSnapIndex) : (L = e.previousIndex || 0, b = e.activeIndex || 0), h.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
778
778
  const y = e.pagination.bullets;
779
779
  let T, P, O;
780
- if (h.dynamicBullets && (d = Ne(y[0], e.isHorizontal() ? "width" : "height"), E.forEach((D) => {
780
+ if (h.dynamicBullets && (d = He(y[0], e.isHorizontal() ? "width" : "height"), E.forEach((D) => {
781
781
  D.style[e.isHorizontal() ? "width" : "height"] = `${d * (h.dynamicMainBullets + 4)}px`;
782
782
  }), h.dynamicMainBullets > 1 && L !== void 0 && (o += b - (L || 0), o > h.dynamicMainBullets - 1 ? o = h.dynamicMainBullets - 1 : o < 0 && (o = 0)), T = Math.max(b - o, 0), P = T + (Math.min(y.length, h.dynamicMainBullets) - 1), O = (P + T) / 2), y.forEach((D) => {
783
783
  const $ = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((_) => `${h.bulletActiveClass}${_}`)].map((_) => typeof _ == "string" && _.includes(" ") ? _.split(" ") : _).flat();
@@ -1042,12 +1042,12 @@ function Bt(t) {
1042
1042
  }
1043
1043
  function y(C) {
1044
1044
  if (!L(C)) return;
1045
- const x = e.params.zoom, M = e.zoom, B = w.findIndex((H) => H.pointerId === C.pointerId);
1045
+ const x = e.params.zoom, M = e.zoom, B = w.findIndex((N) => N.pointerId === C.pointerId);
1046
1046
  B >= 0 && (w[B] = C), !(w.length < 2) && (v = true, a.scaleMove = u(), a.imageEl && (M.scale = a.scaleMove / a.scaleStart * d, M.scale > a.maxRatio && (M.scale = a.maxRatio - 1 + (M.scale - a.maxRatio + 1) ** 0.5), M.scale < x.minRatio && (M.scale = x.minRatio + 1 - (x.minRatio - M.scale + 1) ** 0.5), a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`));
1047
1047
  }
1048
1048
  function T(C) {
1049
1049
  if (!L(C) || C.pointerType === "mouse" && C.type === "pointerout") return;
1050
- const x = e.params.zoom, M = e.zoom, B = w.findIndex((H) => H.pointerId === C.pointerId);
1050
+ const x = e.params.zoom, M = e.zoom, B = w.findIndex((N) => N.pointerId === C.pointerId);
1051
1051
  B >= 0 && w.splice(B, 1), !(!m || !v) && (m = false, v = false, a.imageEl && (M.scale = Math.max(Math.min(M.scale, a.maxRatio), x.minRatio), a.imageEl.style.transitionDuration = `${e.params.speed}ms`, a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`, d = M.scale, o = false, M.scale > 1 && a.slideEl ? a.slideEl.classList.add(`${x.zoomedSlideClass}`) : M.scale <= 1 && a.slideEl && a.slideEl.classList.remove(`${x.zoomedSlideClass}`), M.scale === 1 && (a.originX = 0, a.originY = 0, a.slideEl = void 0)));
1052
1052
  }
1053
1053
  let P;
@@ -1082,8 +1082,8 @@ function Bt(t) {
1082
1082
  return;
1083
1083
  }
1084
1084
  l.isMoved || (l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, l.startX = We(a.imageWrapEl, "x") || 0, l.startY = We(a.imageWrapEl, "y") || 0, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight, a.imageWrapEl.style.transitionDuration = "0ms");
1085
- const H = l.width * B.scale, te = l.height * B.scale;
1086
- if (l.minX = Math.min(a.slideWidth / 2 - H / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - te / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = w.length > 0 ? w[0].pageX : C.pageX, l.touchesCurrent.y = w.length > 0 ? w[0].pageY : C.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick = false), !l.isMoved && !o) {
1085
+ const N = l.width * B.scale, te = l.height * B.scale;
1086
+ if (l.minX = Math.min(a.slideWidth / 2 - N / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - te / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = w.length > 0 ? w[0].pageX : C.pageX, l.touchesCurrent.y = w.length > 0 ? w[0].pageY : C.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick = false), !l.isMoved && !o) {
1087
1087
  if (e.isHorizontal() && (Math.floor(l.minX) === Math.floor(l.startX) && l.touchesCurrent.x < l.touchesStart.x || Math.floor(l.maxX) === Math.floor(l.startX) && l.touchesCurrent.x > l.touchesStart.x)) {
1088
1088
  l.isTouched = false, O();
1089
1089
  return;
@@ -1094,11 +1094,11 @@ function Bt(t) {
1094
1094
  }
1095
1095
  }
1096
1096
  C.cancelable && C.preventDefault(), C.stopPropagation(), D(), l.isMoved = true;
1097
- const J = (B.scale - d) / (a.maxRatio - e.params.zoom.minRatio), {
1097
+ const Q = (B.scale - d) / (a.maxRatio - e.params.zoom.minRatio), {
1098
1098
  originX: se,
1099
1099
  originY: F
1100
1100
  } = a;
1101
- l.currentX = l.touchesCurrent.x - l.touchesStart.x + l.startX + J * (l.width - se * 2), l.currentY = l.touchesCurrent.y - l.touchesStart.y + l.startY + J * (l.height - F * 2), l.currentX < l.minX && (l.currentX = l.minX + 1 - (l.minX - l.currentX + 1) ** 0.8), l.currentX > l.maxX && (l.currentX = l.maxX - 1 + (l.currentX - l.maxX + 1) ** 0.8), l.currentY < l.minY && (l.currentY = l.minY + 1 - (l.minY - l.currentY + 1) ** 0.8), l.currentY > l.maxY && (l.currentY = l.maxY - 1 + (l.currentY - l.maxY + 1) ** 0.8), S.prevPositionX || (S.prevPositionX = l.touchesCurrent.x), S.prevPositionY || (S.prevPositionY = l.touchesCurrent.y), S.prevTime || (S.prevTime = Date.now()), S.x = (l.touchesCurrent.x - S.prevPositionX) / (Date.now() - S.prevTime) / 2, S.y = (l.touchesCurrent.y - S.prevPositionY) / (Date.now() - S.prevTime) / 2, Math.abs(l.touchesCurrent.x - S.prevPositionX) < 2 && (S.x = 0), Math.abs(l.touchesCurrent.y - S.prevPositionY) < 2 && (S.y = 0), S.prevPositionX = l.touchesCurrent.x, S.prevPositionY = l.touchesCurrent.y, S.prevTime = Date.now(), a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
1101
+ l.currentX = l.touchesCurrent.x - l.touchesStart.x + l.startX + Q * (l.width - se * 2), l.currentY = l.touchesCurrent.y - l.touchesStart.y + l.startY + Q * (l.height - F * 2), l.currentX < l.minX && (l.currentX = l.minX + 1 - (l.minX - l.currentX + 1) ** 0.8), l.currentX > l.maxX && (l.currentX = l.maxX - 1 + (l.currentX - l.maxX + 1) ** 0.8), l.currentY < l.minY && (l.currentY = l.minY + 1 - (l.minY - l.currentY + 1) ** 0.8), l.currentY > l.maxY && (l.currentY = l.maxY - 1 + (l.currentY - l.maxY + 1) ** 0.8), S.prevPositionX || (S.prevPositionX = l.touchesCurrent.x), S.prevPositionY || (S.prevPositionY = l.touchesCurrent.y), S.prevTime || (S.prevTime = Date.now()), S.x = (l.touchesCurrent.x - S.prevPositionX) / (Date.now() - S.prevTime) / 2, S.y = (l.touchesCurrent.y - S.prevPositionY) / (Date.now() - S.prevTime) / 2, Math.abs(l.touchesCurrent.x - S.prevPositionX) < 2 && (S.x = 0), Math.abs(l.touchesCurrent.y - S.prevPositionY) < 2 && (S.y = 0), S.prevPositionX = l.touchesCurrent.x, S.prevPositionY = l.touchesCurrent.y, S.prevTime = Date.now(), a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
1102
1102
  }
1103
1103
  function A() {
1104
1104
  const C = e.zoom;
@@ -1109,12 +1109,12 @@ function Bt(t) {
1109
1109
  }
1110
1110
  l.isTouched = false, l.isMoved = false;
1111
1111
  let x = 300, M = 300;
1112
- const B = S.x * x, H = l.currentX + B, te = S.y * M, ie = l.currentY + te;
1113
- S.x !== 0 && (x = Math.abs((H - l.currentX) / S.x)), S.y !== 0 && (M = Math.abs((ie - l.currentY) / S.y));
1114
- const J = Math.max(x, M);
1115
- l.currentX = H, l.currentY = ie;
1112
+ const B = S.x * x, N = l.currentX + B, te = S.y * M, ie = l.currentY + te;
1113
+ S.x !== 0 && (x = Math.abs((N - l.currentX) / S.x)), S.y !== 0 && (M = Math.abs((ie - l.currentY) / S.y));
1114
+ const Q = Math.max(x, M);
1115
+ l.currentX = N, l.currentY = ie;
1116
1116
  const se = l.width * C.scale, F = l.height * C.scale;
1117
- l.minX = Math.min(a.slideWidth / 2 - se / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - F / 2, 0), l.maxY = -l.minY, l.currentX = Math.max(Math.min(l.currentX, l.maxX), l.minX), l.currentY = Math.max(Math.min(l.currentY, l.maxY), l.minY), a.imageWrapEl.style.transitionDuration = `${J}ms`, a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
1117
+ l.minX = Math.min(a.slideWidth / 2 - se / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - F / 2, 0), l.maxY = -l.minY, l.currentX = Math.max(Math.min(l.currentX, l.maxX), l.minX), l.currentY = Math.max(Math.min(l.currentY, l.maxY), l.minY), a.imageWrapEl.style.transitionDuration = `${Q}ms`, a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
1118
1118
  }
1119
1119
  function Y() {
1120
1120
  const C = e.zoom;
@@ -1127,7 +1127,7 @@ function Bt(t) {
1127
1127
  c = true, f.x = C.clientX, f.y = C.clientY, l.startX = M.e, l.startY = M.f, l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight;
1128
1128
  return;
1129
1129
  }
1130
- const B = (C.clientX - f.x) * p, H = (C.clientY - f.y) * p, te = l.width * d, ie = l.height * d, J = a.slideWidth, se = a.slideHeight, F = Math.min(J / 2 - te / 2, 0), U = -F, me = Math.min(se / 2 - ie / 2, 0), be = -me, le = Math.max(Math.min(l.startX + B, U), F), oe = Math.max(Math.min(l.startY + H, be), me);
1130
+ const B = (C.clientX - f.x) * p, N = (C.clientY - f.y) * p, te = l.width * d, ie = l.height * d, Q = a.slideWidth, se = a.slideHeight, F = Math.min(Q / 2 - te / 2, 0), U = -F, me = Math.min(se / 2 - ie / 2, 0), be = -me, le = Math.max(Math.min(l.startX + B, U), F), oe = Math.max(Math.min(l.startY + N, be), me);
1131
1131
  a.imageWrapEl.style.transitionDuration = "0ms", a.imageWrapEl.style.transform = `translate3d(${le}px, ${oe}px, 0)`, f.x = C.clientX, f.y = C.clientY, l.startX = le, l.startY = oe, l.currentX = le, l.currentY = oe;
1132
1132
  }
1133
1133
  function G(C) {
@@ -1139,14 +1139,14 @@ function Bt(t) {
1139
1139
  }
1140
1140
  if (!a.imageEl || !a.imageWrapEl) return;
1141
1141
  e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), a.slideEl.classList.add(`${M.zoomedSlideClass}`);
1142
- let B, H, te, ie, J, se, F, U, me, be, le, oe, xe, ye, Ie, Oe, Ae, De;
1143
- typeof l.touchesStart.x > "u" && C ? (B = C.pageX, H = C.pageY) : (B = l.touchesStart.x, H = l.touchesStart.y);
1142
+ let B, N, te, ie, Q, se, F, U, me, be, le, oe, xe, ye, Ie, Oe, Ae, De;
1143
+ typeof l.touchesStart.x > "u" && C ? (B = C.pageX, N = C.pageY) : (B = l.touchesStart.x, N = l.touchesStart.y);
1144
1144
  const $e = d, de = typeof C == "number" ? C : null;
1145
- d === 1 && de && (B = void 0, H = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0);
1145
+ d === 1 && de && (B = void 0, N = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0);
1146
1146
  const Ue = h();
1147
- x.scale = de || Ue, d = de || Ue, C && !(d === 1 && de) ? (Ae = a.slideEl.offsetWidth, De = a.slideEl.offsetHeight, te = ke(a.slideEl).left + r.scrollX, ie = ke(a.slideEl).top + r.scrollY, J = te + Ae / 2 - B, se = ie + De / 2 - H, me = a.imageEl.offsetWidth || a.imageEl.clientWidth, be = a.imageEl.offsetHeight || a.imageEl.clientHeight, le = me * x.scale, oe = be * x.scale, xe = Math.min(Ae / 2 - le / 2, 0), ye = Math.min(De / 2 - oe / 2, 0), Ie = -xe, Oe = -ye, $e > 0 && de && typeof l.currentX == "number" && typeof l.currentY == "number" ? (F = l.currentX * x.scale / $e, U = l.currentY * x.scale / $e) : (F = J * x.scale, U = se * x.scale), F < xe && (F = xe), F > Ie && (F = Ie), U < ye && (U = ye), U > Oe && (U = Oe)) : (F = 0, U = 0), de && x.scale === 1 && (a.originX = 0, a.originY = 0), l.currentX = F, l.currentY = U, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = `translate3d(${F}px, ${U}px,0)`, a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`;
1147
+ x.scale = de || Ue, d = de || Ue, C && !(d === 1 && de) ? (Ae = a.slideEl.offsetWidth, De = a.slideEl.offsetHeight, te = ke(a.slideEl).left + r.scrollX, ie = ke(a.slideEl).top + r.scrollY, Q = te + Ae / 2 - B, se = ie + De / 2 - N, me = a.imageEl.offsetWidth || a.imageEl.clientWidth, be = a.imageEl.offsetHeight || a.imageEl.clientHeight, le = me * x.scale, oe = be * x.scale, xe = Math.min(Ae / 2 - le / 2, 0), ye = Math.min(De / 2 - oe / 2, 0), Ie = -xe, Oe = -ye, $e > 0 && de && typeof l.currentX == "number" && typeof l.currentY == "number" ? (F = l.currentX * x.scale / $e, U = l.currentY * x.scale / $e) : (F = Q * x.scale, U = se * x.scale), F < xe && (F = xe), F > Ie && (F = Ie), U < ye && (U = ye), U > Oe && (U = Oe)) : (F = 0, U = 0), de && x.scale === 1 && (a.originX = 0, a.originY = 0), l.currentX = F, l.currentY = U, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = `translate3d(${F}px, ${U}px,0)`, a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`;
1148
1148
  }
1149
- function N() {
1149
+ function H() {
1150
1150
  const C = e.zoom, x = e.params.zoom;
1151
1151
  if (!a.slideEl) {
1152
1152
  e.params.virtual && e.params.virtual.enabled && e.virtual ? a.slideEl = q(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : a.slideEl = e.slides[e.activeIndex];
@@ -1160,7 +1160,7 @@ function Bt(t) {
1160
1160
  }
1161
1161
  function K(C) {
1162
1162
  const x = e.zoom;
1163
- x.scale && x.scale !== 1 ? N() : G(C);
1163
+ x.scale && x.scale !== 1 ? H() : G(C);
1164
1164
  }
1165
1165
  function ee() {
1166
1166
  const C = e.params.passiveListeners ? {
@@ -1217,7 +1217,7 @@ function Bt(t) {
1217
1217
  enable: pe,
1218
1218
  disable: Ee,
1219
1219
  in: G,
1220
- out: N,
1220
+ out: H,
1221
1221
  toggle: K
1222
1222
  });
1223
1223
  }
@@ -1423,7 +1423,7 @@ var kt = {
1423
1423
  }), t;
1424
1424
  }
1425
1425
  };
1426
- function Nt() {
1426
+ function Ht() {
1427
1427
  const t = this;
1428
1428
  let e, i;
1429
1429
  const s = t.el;
@@ -1433,7 +1433,7 @@ function Nt() {
1433
1433
  size: t.isHorizontal() ? e : i
1434
1434
  }));
1435
1435
  }
1436
- function Ht() {
1436
+ function Nt() {
1437
1437
  const t = this;
1438
1438
  function e(T, P) {
1439
1439
  return parseFloat(T.getPropertyValue(t.getDirectionLabel(P)) || 0);
@@ -1470,10 +1470,10 @@ function Ht() {
1470
1470
  y && (p[T].style[t.getDirectionLabel("width")] = "");
1471
1471
  const O = getComputedStyle(P), D = P.style.transform, $ = P.style.webkitTransform;
1472
1472
  if (D && (P.style.transform = "none"), $ && (P.style.webkitTransform = "none"), i.roundLengths)
1473
- z = t.isHorizontal() ? Ne(P, "width") : Ne(P, "height");
1473
+ z = t.isHorizontal() ? He(P, "width") : He(P, "height");
1474
1474
  else {
1475
- const _ = e(O, "width"), A = e(O, "padding-left"), Y = e(O, "padding-right"), X = e(O, "margin-left"), G = e(O, "margin-right"), N = O.getPropertyValue("box-sizing");
1476
- if (N && N === "border-box")
1475
+ const _ = e(O, "width"), A = e(O, "padding-left"), Y = e(O, "padding-right"), X = e(O, "margin-left"), G = e(O, "margin-right"), H = O.getPropertyValue("box-sizing");
1476
+ if (H && H === "border-box")
1477
1477
  z = _ + X + G;
1478
1478
  else {
1479
1479
  const {
@@ -1581,7 +1581,7 @@ function jt() {
1581
1581
  for (let s = 0; s < e.length; s += 1)
1582
1582
  e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
1583
1583
  }
1584
- const Je = (t, e, i) => {
1584
+ const Qe = (t, e, i) => {
1585
1585
  e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
1586
1586
  };
1587
1587
  function qt(t) {
@@ -1602,7 +1602,7 @@ function qt(t) {
1602
1602
  let p = f.swiperSlideOffset;
1603
1603
  i.cssMode && i.centeredSlides && (p -= s[0].swiperSlideOffset);
1604
1604
  const m = (d + (i.centeredSlides ? e.minTranslate() : 0) - p) / (f.swiperSlideSize + o), v = (d - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - p) / (f.swiperSlideSize + o), w = -(d - p), a = w + e.slidesSizesGrid[c], l = w >= 0 && w <= e.size - e.slidesSizesGrid[c], S = w >= 0 && w < e.size - 1 || a > 1 && a <= e.size || w <= 0 && a >= e.size;
1605
- S && (e.visibleSlides.push(f), e.visibleSlidesIndexes.push(c)), Je(f, S, i.slideVisibleClass), Je(f, l, i.slideFullyVisibleClass), f.progress = n ? -m : m, f.originalProgress = n ? -v : v;
1605
+ S && (e.visibleSlides.push(f), e.visibleSlidesIndexes.push(c)), Qe(f, S, i.slideVisibleClass), Qe(f, l, i.slideFullyVisibleClass), f.progress = n ? -m : m, f.originalProgress = n ? -v : v;
1606
1606
  }
1607
1607
  }
1608
1608
  function Ut(t) {
@@ -1673,7 +1673,7 @@ const Ce = (t, e) => {
1673
1673
  if (!t.slides[e]) return;
1674
1674
  const i = t.slides[e].querySelector('[loading="lazy"]');
1675
1675
  i && i.removeAttribute("loading");
1676
- }, He = (t) => {
1676
+ }, Ne = (t) => {
1677
1677
  if (!t || t.destroyed || !t.params) return;
1678
1678
  let e = t.params.lazyPreloadPrevNext;
1679
1679
  const i = t.slides.length;
@@ -1709,7 +1709,7 @@ function Zt(t) {
1709
1709
  typeof e[r + 1] < "u" ? s >= e[r] && s < e[r + 1] - (e[r + 1] - e[r]) / 2 ? n = r : s >= e[r] && s < e[r + 1] && (n = r + 1) : s >= e[r] && (n = r);
1710
1710
  return i.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
1711
1711
  }
1712
- function Jt(t) {
1712
+ function Qt(t) {
1713
1713
  const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
1714
1714
  snapGrid: s,
1715
1715
  params: n,
@@ -1756,9 +1756,9 @@ function Jt(t) {
1756
1756
  realIndex: v,
1757
1757
  previousIndex: r,
1758
1758
  activeIndex: c
1759
- }), e.initialized && He(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (d !== v && e.emit("realIndexChange"), e.emit("slideChange"));
1759
+ }), e.initialized && Ne(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (d !== v && e.emit("realIndexChange"), e.emit("slideChange"));
1760
1760
  }
1761
- function Qt(t, e) {
1761
+ function Jt(t, e) {
1762
1762
  const i = this, s = i.params;
1763
1763
  let n = t.closest(`.${s.slideClass}, swiper-slide`);
1764
1764
  !n && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((o) => {
@@ -1781,15 +1781,15 @@ function Qt(t, e) {
1781
1781
  s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
1782
1782
  }
1783
1783
  var ei = {
1784
- updateSize: Nt,
1785
- updateSlides: Ht,
1784
+ updateSize: Ht,
1785
+ updateSlides: Nt,
1786
1786
  updateAutoHeight: Ft,
1787
1787
  updateSlidesOffset: jt,
1788
1788
  updateSlidesProgress: qt,
1789
1789
  updateProgress: Ut,
1790
1790
  updateSlidesClasses: Kt,
1791
- updateActiveIndex: Jt,
1792
- updateClickedSlide: Qt
1791
+ updateActiveIndex: Qt,
1792
+ updateClickedSlide: Jt
1793
1793
  };
1794
1794
  function ti(t) {
1795
1795
  t === void 0 && (t = this.isHorizontal() ? "x" : "y");
@@ -2330,7 +2330,7 @@ function Mi(t, e) {
2330
2330
  }
2331
2331
  return i(e);
2332
2332
  }
2333
- function Qe(t, e, i) {
2333
+ function Je(t, e, i) {
2334
2334
  const s = k(), {
2335
2335
  params: n
2336
2336
  } = t, r = n.edgeSwipeDetection, d = n.edgeSwipeThreshold;
@@ -2347,7 +2347,7 @@ function Pi(t) {
2347
2347
  n.pointerId = s.pointerId;
2348
2348
  } else s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
2349
2349
  if (s.type === "touchstart") {
2350
- Qe(e, s, s.targetTouches[0].pageX);
2350
+ Je(e, s, s.targetTouches[0].pageX);
2351
2351
  return;
2352
2352
  }
2353
2353
  const {
@@ -2371,7 +2371,7 @@ function Pi(t) {
2371
2371
  return;
2372
2372
  d.currentX = s.pageX, d.currentY = s.pageY;
2373
2373
  const w = d.currentX, a = d.currentY;
2374
- if (!Qe(e, s, w))
2374
+ if (!Je(e, s, w))
2375
2375
  return;
2376
2376
  Object.assign(n, {
2377
2377
  isTouched: true,
@@ -2770,7 +2770,7 @@ var ki = {
2770
2770
  addClasses: Vi,
2771
2771
  removeClasses: Wi
2772
2772
  };
2773
- function Ni() {
2773
+ function Hi() {
2774
2774
  const t = this, {
2775
2775
  isLocked: e,
2776
2776
  params: i
@@ -2784,8 +2784,8 @@ function Ni() {
2784
2784
  t.isLocked = t.snapGrid.length === 1;
2785
2785
  i.allowSlideNext === true && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === true && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = false), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
2786
2786
  }
2787
- var Hi = {
2788
- checkOverflow: Ni
2787
+ var Ni = {
2788
+ checkOverflow: Hi
2789
2789
  }, Fe = {
2790
2790
  init: true,
2791
2791
  direction: "horizontal",
@@ -2936,10 +2936,10 @@ const Re = {
2936
2936
  grabCursor: Ci,
2937
2937
  events: Gi,
2938
2938
  breakpoints: Xi,
2939
- checkOverflow: Hi,
2939
+ checkOverflow: Ni,
2940
2940
  classes: ki
2941
2941
  }, Ve = {};
2942
- let qe = class Q {
2942
+ let qe = class J {
2943
2943
  constructor() {
2944
2944
  let e, i;
2945
2945
  for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
@@ -2952,7 +2952,7 @@ let qe = class Q {
2952
2952
  const v = j({}, i, {
2953
2953
  el: m
2954
2954
  });
2955
- p.push(new Q(v));
2955
+ p.push(new J(v));
2956
2956
  }), p;
2957
2957
  }
2958
2958
  const o = this;
@@ -3211,7 +3211,7 @@ let qe = class Q {
3211
3211
  r.complete ? Ce(i, r) : r.addEventListener("load", (d) => {
3212
3212
  Ce(i, d.target);
3213
3213
  });
3214
- }), He(i), i.initialized = true, He(i), i.emit("init"), i.emit("afterInit"), i;
3214
+ }), Ne(i), i.initialized = true, Ne(i), i.emit("init"), i.emit("afterInit"), i;
3215
3215
  }
3216
3216
  destroy(e, i) {
3217
3217
  e === void 0 && (e = true), i === void 0 && (i = true);
@@ -3237,12 +3237,12 @@ let qe = class Q {
3237
3237
  return Fe;
3238
3238
  }
3239
3239
  static installModule(e) {
3240
- Q.prototype.__modules__ || (Q.prototype.__modules__ = []);
3241
- const i = Q.prototype.__modules__;
3240
+ J.prototype.__modules__ || (J.prototype.__modules__ = []);
3241
+ const i = J.prototype.__modules__;
3242
3242
  typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
3243
3243
  }
3244
3244
  static use(e) {
3245
- return Array.isArray(e) ? (e.forEach((i) => Q.installModule(i)), Q) : (Q.installModule(e), Q);
3245
+ return Array.isArray(e) ? (e.forEach((i) => J.installModule(i)), J) : (J.installModule(e), J);
3246
3246
  }
3247
3247
  };
3248
3248
  Object.keys(Re).forEach((t) => {
@@ -3482,7 +3482,7 @@ function Zi(t, e, i, s, n) {
3482
3482
  } else t[c] !== e[c] && d(c);
3483
3483
  }), r;
3484
3484
  }
3485
- const Ji = (t) => {
3485
+ const Qi = (t) => {
3486
3486
  !t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.emit("_virtualUpdated"), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
3487
3487
  };
3488
3488
  function ze() {
@@ -3504,7 +3504,7 @@ function wt(t) {
3504
3504
  vt(i) ? e.push(i) : i.props && i.props.children && wt(i.props.children).forEach((s) => e.push(s));
3505
3505
  }), e;
3506
3506
  }
3507
- function Qi(t) {
3507
+ function Ji(t) {
3508
3508
  const e = [], i = {
3509
3509
  "container-start": [],
3510
3510
  "container-end": [],
@@ -3567,12 +3567,12 @@ const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createC
3567
3567
  } = Ui(o), {
3568
3568
  slides: O,
3569
3569
  slots: D
3570
- } = Qi(r), $ = () => {
3570
+ } = Ji(r), $ = () => {
3571
3571
  a(!w);
3572
3572
  };
3573
3573
  Object.assign(z.on, {
3574
- _containerClasses(G, N) {
3575
- p(N);
3574
+ _containerClasses(G, H) {
3575
+ p(H);
3576
3576
  }
3577
3577
  });
3578
3578
  const _ = () => {
@@ -3582,13 +3582,13 @@ const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createC
3582
3582
  };
3583
3583
  if (delete G.wrapperClass, g.current = new qe(G), g.current.virtual && g.current.params.virtual.enabled) {
3584
3584
  g.current.virtual.slides = O;
3585
- const N = {
3585
+ const H = {
3586
3586
  cache: false,
3587
3587
  slides: O,
3588
3588
  renderExternal: v,
3589
3589
  renderExternalUpdate: false
3590
3590
  };
3591
- ce(g.current.params.virtual, N), ce(g.current.originalParams.virtual, N);
3591
+ ce(g.current.params.virtual, H), ce(g.current.originalParams.virtual, H);
3592
3592
  }
3593
3593
  };
3594
3594
  S.current || _(), g.current && g.current.on("_beforeBreakpoint", $);
@@ -3619,7 +3619,7 @@ const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createC
3619
3619
  };
3620
3620
  }, []), Se(() => {
3621
3621
  A();
3622
- const G = Zi(y, u.current, O, h.current, (N) => N.key);
3622
+ const G = Zi(y, u.current, O, h.current, (H) => H.key);
3623
3623
  return u.current = y, h.current = O, G.length && g.current && !g.current.destroyed && qi({
3624
3624
  swiper: g.current,
3625
3625
  slides: O,
@@ -3633,12 +3633,12 @@ const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createC
3633
3633
  Y();
3634
3634
  };
3635
3635
  }), Se(() => {
3636
- Ji(g.current);
3636
+ Qi(g.current);
3637
3637
  }, [m]);
3638
3638
  function X() {
3639
- return z.virtual ? es(g.current, O, m) : O.map((G, N) => /* @__PURE__ */ V.cloneElement(G, {
3639
+ return z.virtual ? es(g.current, O, m) : O.map((G, H) => /* @__PURE__ */ V.cloneElement(G, {
3640
3640
  swiper: g.current,
3641
- swiperSlideIndex: N
3641
+ swiperSlideIndex: H
3642
3642
  }));
3643
3643
  }
3644
3644
  return /* @__PURE__ */ V.createElement(s, ze({
@@ -0,0 +1,41 @@
1
+ var u = /[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/, f = /[\|\!\+\-\*\?\~\^\&]/, l = /^(OR|AND|NOT|TO)$/;
2
+ function k(n) {
3
+ return parseFloat(n).toString() === n;
4
+ }
5
+ function a(n) {
6
+ return function(e, r) {
7
+ for (var t = false, o; (o = e.next()) != null && !(o == n && !t); )
8
+ t = !t && o == "\\";
9
+ return t || (r.tokenize = i), "string";
10
+ };
11
+ }
12
+ function c(n) {
13
+ return function(e, r) {
14
+ return n == "|" ? e.eat(/\|/) : n == "&" && e.eat(/\&/), r.tokenize = i, "operator";
15
+ };
16
+ }
17
+ function s(n) {
18
+ return function(e, r) {
19
+ for (var t = n; (n = e.peek()) && n.match(u) != null; )
20
+ t += e.next();
21
+ return r.tokenize = i, l.test(t) ? "operator" : k(t) ? "number" : e.peek() == ":" ? "propertyName" : "string";
22
+ };
23
+ }
24
+ function i(n, e) {
25
+ var r = n.next();
26
+ return r == '"' ? e.tokenize = a(r) : f.test(r) ? e.tokenize = c(r) : u.test(r) && (e.tokenize = s(r)), e.tokenize != i ? e.tokenize(n, e) : null;
27
+ }
28
+ const p = {
29
+ name: "solr",
30
+ startState: function() {
31
+ return {
32
+ tokenize: i
33
+ };
34
+ },
35
+ token: function(n, e) {
36
+ return n.eatSpace() ? null : e.tokenize(n, e);
37
+ }
38
+ };
39
+ export {
40
+ p as solr
41
+ };
@@ -0,0 +1,49 @@
1
+ const i = {
2
+ name: "spreadsheet",
3
+ startState: function() {
4
+ return {
5
+ stringType: null,
6
+ stack: []
7
+ };
8
+ },
9
+ token: function(e, n) {
10
+ if (e) {
11
+ switch (n.stack.length === 0 && (e.peek() == '"' || e.peek() == "'") && (n.stringType = e.peek(), e.next(), n.stack.unshift("string")), n.stack[0]) {
12
+ case "string":
13
+ for (; n.stack[0] === "string" && !e.eol(); )
14
+ e.peek() === n.stringType ? (e.next(), n.stack.shift()) : e.peek() === "\\" ? (e.next(), e.next()) : e.match(/^.[^\\\"\']*/);
15
+ return "string";
16
+ case "characterClass":
17
+ for (; n.stack[0] === "characterClass" && !e.eol(); )
18
+ e.match(/^[^\]\\]+/) || e.match(/^\\./) || n.stack.shift();
19
+ return "operator";
20
+ }
21
+ var c = e.peek();
22
+ switch (c) {
23
+ case "[":
24
+ return e.next(), n.stack.unshift("characterClass"), "bracket";
25
+ case ":":
26
+ return e.next(), "operator";
27
+ case "\\":
28
+ return e.match(/\\[a-z]+/) ? "string.special" : (e.next(), "atom");
29
+ case ".":
30
+ case ",":
31
+ case ";":
32
+ case "*":
33
+ case "-":
34
+ case "+":
35
+ case "^":
36
+ case "<":
37
+ case "/":
38
+ case "=":
39
+ return e.next(), "atom";
40
+ case "$":
41
+ return e.next(), "builtin";
42
+ }
43
+ return e.match(/\d+/) ? e.match(/^\w+/) ? "error" : "number" : e.match(/^[a-zA-Z_]\w*/) ? e.match(/(?=[\(.])/, false) ? "keyword" : "variable" : ["[", "]", "(", ")", "{", "}"].indexOf(c) != -1 ? (e.next(), "bracket") : (e.eatSpace() || e.next(), null);
44
+ }
45
+ }
46
+ };
47
+ export {
48
+ i as spreadsheet
49
+ };
@@ -1,8 +1,8 @@
1
- import { s as R, a as W, S as N } from "./chunk-LXBSTHXV-CJgOmuuc.js";
2
- import { _ as f, c as t, d as H, l as S, e as P, k as z, Q as _, u as U } from "./mermaid-B4v-qVXz.js";
3
- import { G as C } from "./graph-Dq4lx1WI.js";
4
- import { l as F } from "./layout-D8_YOjKz.js";
5
- import { l as O, k as J } from "./timer-BYwnU4DF.js";
1
+ import { s as R, a as W, S as N } from "./chunk-TVAH2DTR-3gm06QdU.js";
2
+ import { _ as f, c as t, d as H, l as S, e as P, k as z, Q as _, u as U } from "./mermaid-HVCtvbyx.js";
3
+ import { G as C } from "./graph-CoRe7vAN.js";
4
+ import { l as F } from "./layout-m2vOUiW1.js";
5
+ import { l as O, k as J } from "./timer-B0-z63CM.js";
6
6
  var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => {
7
7
  const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox();
8
8
  return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
@@ -1,5 +1,5 @@
1
- import { s as a, b as t, a as r, S as s } from "./chunk-LXBSTHXV-CJgOmuuc.js";
2
- import { _ as i } from "./mermaid-B4v-qVXz.js";
1
+ import { s as a, b as t, a as r, S as s } from "./chunk-TVAH2DTR-3gm06QdU.js";
2
+ import { _ as i } from "./mermaid-HVCtvbyx.js";
3
3
  var _ = {
4
4
  parser: r,
5
5
  get db() {