@scalar/api-client 1.1.15 → 1.1.16

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 1.1.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [e6d1b81]
8
+ - Updated dependencies [3ba9774]
9
+ - Updated dependencies [3ba9774]
10
+ - @scalar/use-modal@0.2.10
11
+ - @scalar/oas-utils@0.1.5
12
+ - @scalar/components@0.4.11
13
+
3
14
  ## 1.1.15
4
15
 
5
16
  ### Patch Changes
package/dist/index.css CHANGED
@@ -253,7 +253,7 @@ input::-webkit-input-placeholder {
253
253
  outline: none !important;
254
254
  }
255
255
 
256
- .modal-layout[data-v-a06b8e92] {
256
+ .modal-layout[data-v-c9b0b62a] {
257
257
  position: fixed;
258
258
  width: 100vw;
259
259
  height: 100vh;
@@ -263,9 +263,9 @@ input::-webkit-input-placeholder {
263
263
  background: rgba(0, 0, 0, 0.44);
264
264
  padding: 20px;
265
265
  opacity: 0;
266
- animation: modal-fade-a06b8e92 0.2s forwards;
266
+ animation: modal-fade-c9b0b62a 0.2s forwards;
267
267
  }
268
- .modal-body[data-v-a06b8e92] {
268
+ .modal-body[data-v-c9b0b62a] {
269
269
  padding: 24px 24px 18px 24px;
270
270
  max-height: calc(100vh - 240px);
271
271
  background: var(--theme-background-1, var(--default-theme-background-1));
@@ -273,7 +273,7 @@ input::-webkit-input-placeholder {
273
273
  font-family: var(--theme-font, var(--default-theme-font));
274
274
  position: relative;
275
275
  }
276
- .modal[data-v-a06b8e92] {
276
+ .modal[data-v-c9b0b62a] {
277
277
  margin: 80px auto 0;
278
278
  position: relative;
279
279
  background: var(--theme-background-2, var(--default-theme-background-2));
@@ -284,11 +284,11 @@ input::-webkit-input-placeholder {
284
284
  line-height: 1.4;
285
285
  opacity: 0;
286
286
  transform: scale(0.98);
287
- animation: modal-pop-a06b8e92 0.15s 0.15s forwards;
287
+ animation: modal-pop-c9b0b62a 0.15s 0.15s forwards;
288
288
  display: flex;
289
289
  flex-direction: column;
290
290
  }
291
- .modal[data-v-a06b8e92]:before {
291
+ .modal[data-v-c9b0b62a]:before {
292
292
  content: '';
293
293
  display: block;
294
294
  width: 100%;
@@ -297,26 +297,29 @@ input::-webkit-input-placeholder {
297
297
  z-index: 0;
298
298
  border-radius: var(--theme-radius-lg, var(--default-theme-radius-lg));
299
299
  }
300
- .dark-mode .modal[data-v-a06b8e92]:before {
300
+ .dark-mode .modal[data-v-c9b0b62a]:before {
301
301
  background: #1a1a1a;
302
302
  }
303
- .light-mode .modal[data-v-a06b8e92]:before {
303
+ .dark-mode .modal-content-history[data-v-c9b0b62a]:before {
304
+ background: inherit;
305
+ }
306
+ .light-mode .modal[data-v-c9b0b62a]:before {
304
307
  background: #fff;
305
308
  }
306
- .modal-content-history[data-v-a06b8e92] {
309
+ .modal-content-history[data-v-c9b0b62a] {
307
310
  background: var(--theme-background-1, var(--default-theme-background-1));
308
311
  }
309
- .modal-content-history[data-v-a06b8e92],
310
- .modal-content-large[data-v-a06b8e92] {
312
+ .modal-content-history[data-v-c9b0b62a],
313
+ .modal-content-large[data-v-c9b0b62a] {
311
314
  max-width: 800px;
312
315
  }
313
- .modal-content-normal[data-v-a06b8e92] {
316
+ .modal-content-normal[data-v-c9b0b62a] {
314
317
  max-width: 640px;
315
318
  }
316
- .modal-content-small[data-v-a06b8e92] {
319
+ .modal-content-small[data-v-c9b0b62a] {
317
320
  max-width: 480px;
318
321
  }
319
- @keyframes modal-fade-a06b8e92 {
322
+ @keyframes modal-fade-c9b0b62a {
320
323
  from {
321
324
  opacity: 0;
322
325
  }
@@ -324,7 +327,7 @@ to {
324
327
  opacity: 1;
325
328
  }
326
329
  }
327
- @keyframes modal-pop-a06b8e92 {
330
+ @keyframes modal-pop-c9b0b62a {
328
331
  0% {
329
332
  opacity: 0;
330
333
  }
@@ -333,7 +336,7 @@ to {
333
336
  transform: scale(1);
334
337
  }
335
338
  }
336
- .modal-header[data-v-a06b8e92] {
339
+ .modal-header[data-v-c9b0b62a] {
337
340
  padding: 12px 24px;
338
341
  color: var(--theme-color-1, var(--default-theme-color-1));
339
342
  font-size: var(--theme-font-size-4, var(--default-theme-font-size-4));
@@ -344,17 +347,17 @@ to {
344
347
  var(--theme-radius-lg, var(--default-theme-radius-lg)) 0 0;
345
348
  z-index: 1;
346
349
  }
347
- .modal-content-history .modal-header[data-v-a06b8e92] {
350
+ .modal-content-history .modal-header[data-v-c9b0b62a] {
348
351
  padding-bottom: 0;
349
352
  padding-top: 24px;
350
353
  }
351
- .modal-content-history .modal-body[data-v-a06b8e92] {
354
+ .modal-content-history .modal-body[data-v-c9b0b62a] {
352
355
  padding-top: 12px;
353
356
  }
354
- .modal-content-search[data-v-a06b8e92] {
357
+ .modal-content-search[data-v-c9b0b62a] {
355
358
  max-width: 540px;
356
359
  }
357
- .modal-content-search .modal-body[data-v-a06b8e92] {
360
+ .modal-content-search .modal-body[data-v-c9b0b62a] {
358
361
  padding: 0;
359
362
  overflow: hidden;
360
363
  display: flex;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import "./index.css";
8
- import { defineComponent, openBlock, createBlock, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, unref, createCommentVNode, onMounted, useCssModule, renderSlot, reactive, readonly, ref, computed, normalizeStyle, normalizeProps, guardReactiveProps, watch, onBeforeUnmount, toValue as toValue$1, toRef, createElementBlock, createElementVNode, createVNode, normalizeClass, Fragment, renderList, createStaticVNode, pushScopeId, popScopeId, mergeProps, useAttrs, nextTick, onServerPrefetch, defineAsyncComponent, useCssVars, Teleport, withModifiers, withDirectives, vModelText, vModelCheckbox, vShow, toRaw, withKeys } from "vue";
8
+ import { defineComponent, openBlock, createBlock, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, unref, createCommentVNode, onMounted, useCssModule, renderSlot, reactive, readonly, ref, computed, normalizeStyle, normalizeProps, guardReactiveProps, watch, onBeforeUnmount, toValue as toValue$1, toRef, createElementBlock, createElementVNode, createVNode, normalizeClass, Fragment, renderList, createStaticVNode, pushScopeId, popScopeId, mergeProps, useAttrs, nextTick, onServerPrefetch, useSSRContext, defineAsyncComponent, useCssVars, Teleport, withModifiers, withDirectives, vModelText, vModelCheckbox, vShow, toRaw, withKeys } from "vue";
9
9
  import { Dialog, DialogPanel, DialogTitle, DialogDescription, Disclosure, DisclosureButton, DisclosurePanel, Listbox, ListboxButton, ListboxOptions, ListboxOption, TabGroup, TabList, Tab, TabPanels, TabPanel } from "@headlessui/vue";
10
10
  import { useMagicKeys, whenever, useEventBus, useMediaQuery } from "@vueuse/core";
11
11
  import axios from "axios";
@@ -133,6 +133,19 @@ const useApiClientStore = () => ({
133
133
  setSnippetType,
134
134
  hideApiClient
135
135
  });
136
+ const createHash = (input) => {
137
+ let chr = 0;
138
+ let hash2 = 0;
139
+ let i = 0;
140
+ if (!(input == null ? void 0 : input.length))
141
+ return hash2;
142
+ for (i = 0; i < input.length; i++) {
143
+ chr = input.charCodeAt(i);
144
+ hash2 = (hash2 << 5) - hash2 + chr;
145
+ hash2 |= 0;
146
+ }
147
+ return hash2;
148
+ };
136
149
  const ALIAS = Symbol.for("yaml.alias");
137
150
  const DOC = Symbol.for("yaml.document");
138
151
  const MAP = Symbol.for("yaml.map");
@@ -1414,7 +1427,7 @@ class Pair {
1414
1427
  value = value.clone(schema);
1415
1428
  return new Pair(key, value);
1416
1429
  }
1417
- toJSON(_, ctx) {
1430
+ toJSON(_2, ctx) {
1418
1431
  const pair2 = (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
1419
1432
  return addPairToJSMap(ctx, pair2, this);
1420
1433
  }
@@ -1659,7 +1672,7 @@ class YAMLMap extends Collection {
1659
1672
  * @param {Class} Type - If set, forces the returned collection type
1660
1673
  * @returns Instance of Type, Map, or Object
1661
1674
  */
1662
- toJSON(_, ctx, Type) {
1675
+ toJSON(_2, ctx, Type) {
1663
1676
  const map = Type ? new Type() : (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
1664
1677
  if (ctx == null ? void 0 : ctx.onCreate)
1665
1678
  ctx.onCreate(map);
@@ -1745,7 +1758,7 @@ class YAMLSeq extends Collection {
1745
1758
  else
1746
1759
  this.items[idx] = value;
1747
1760
  }
1748
- toJSON(_, ctx) {
1761
+ toJSON(_2, ctx) {
1749
1762
  const seq = [];
1750
1763
  if (ctx == null ? void 0 : ctx.onCreate)
1751
1764
  ctx.onCreate(seq);
@@ -1832,9 +1845,9 @@ class YAMLOMap extends YAMLSeq {
1832
1845
  * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
1833
1846
  * but TypeScript won't allow widening the signature of a child method.
1834
1847
  */
1835
- toJSON(_, ctx) {
1848
+ toJSON(_2, ctx) {
1836
1849
  if (!ctx)
1837
- return super.toJSON(_);
1850
+ return super.toJSON(_2);
1838
1851
  const map = /* @__PURE__ */ new Map();
1839
1852
  if (ctx == null ? void 0 : ctx.onCreate)
1840
1853
  ctx.onCreate(map);
@@ -1895,8 +1908,8 @@ class YAMLSet extends YAMLMap {
1895
1908
  this.items.push(new Pair(key));
1896
1909
  }
1897
1910
  }
1898
- toJSON(_, ctx) {
1899
- return super.toJSON(_, ctx, Set);
1911
+ toJSON(_2, ctx) {
1912
+ return super.toJSON(_2, ctx, Set);
1900
1913
  }
1901
1914
  toString(ctx, onComment, onChompKeep) {
1902
1915
  if (!ctx)
@@ -5110,7 +5123,7 @@ const nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u304
5110
5123
  let wordChar;
5111
5124
  try {
5112
5125
  wordChar = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
5113
- } catch (_) {
5126
+ } catch (_2) {
5114
5127
  }
5115
5128
  function hasWordChar(str) {
5116
5129
  if (wordChar)
@@ -6549,7 +6562,7 @@ function hasSelection(dom, selection) {
6549
6562
  return false;
6550
6563
  try {
6551
6564
  return contains(dom, selection.anchorNode);
6552
- } catch (_) {
6565
+ } catch (_2) {
6553
6566
  return false;
6554
6567
  }
6555
6568
  }
@@ -8736,7 +8749,7 @@ class PluginInstance {
8736
8749
  if (this.value.destroy)
8737
8750
  try {
8738
8751
  this.value.destroy();
8739
- } catch (_) {
8752
+ } catch (_2) {
8740
8753
  }
8741
8754
  this.deactivate();
8742
8755
  }
@@ -9132,7 +9145,7 @@ class DocView extends ContentView {
9132
9145
  rawSel.collapse(anchor.node, anchor.offset);
9133
9146
  try {
9134
9147
  rawSel.extend(head.node, head.offset);
9135
- } catch (_) {
9148
+ } catch (_2) {
9136
9149
  }
9137
9150
  } else {
9138
9151
  let range = document.createRange();
@@ -20657,7 +20670,7 @@ class Stack {
20657
20670
  @internal
20658
20671
  */
20659
20672
  toString() {
20660
- return `[${this.stack.filter((_, i) => i % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? "!" + this.score : ""}`;
20673
+ return `[${this.stack.filter((_2, i) => i % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? "!" + this.score : ""}`;
20661
20674
  }
20662
20675
  // Start an empty stack
20663
20676
  /**
@@ -21641,7 +21654,7 @@ class TokenCache {
21641
21654
  this.tokens = [];
21642
21655
  this.mainToken = null;
21643
21656
  this.actions = [];
21644
- this.tokens = parser2.tokenizers.map((_) => new CachedToken());
21657
+ this.tokens = parser2.tokenizers.map((_2) => new CachedToken());
21645
21658
  }
21646
21659
  getActions(stack) {
21647
21660
  let actionIndex = 0;
@@ -25870,7 +25883,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
25870
25883
  };
25871
25884
  }
25872
25885
  });
25873
- const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-a06b8e92"]]);
25886
+ const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c9b0b62a"]]);
25874
25887
  const useModal = () => reactive({
25875
25888
  open: false,
25876
25889
  show() {
@@ -29314,7 +29327,7 @@ var prism = { exports: {} };
29314
29327
  var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
29315
29328
  var uniqueId = 0;
29316
29329
  var plainTextGrammar = {};
29317
- var _ = {
29330
+ var _2 = {
29318
29331
  /**
29319
29332
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
29320
29333
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -29423,9 +29436,9 @@ var prism = { exports: {} };
29423
29436
  visited = visited || {};
29424
29437
  var clone;
29425
29438
  var id2;
29426
- switch (_.util.type(o)) {
29439
+ switch (_2.util.type(o)) {
29427
29440
  case "Object":
29428
- id2 = _.util.objId(o);
29441
+ id2 = _2.util.objId(o);
29429
29442
  if (visited[id2]) {
29430
29443
  return visited[id2];
29431
29444
  }
@@ -29442,7 +29455,7 @@ var prism = { exports: {} };
29442
29455
  clone
29443
29456
  );
29444
29457
  case "Array":
29445
- id2 = _.util.objId(o);
29458
+ id2 = _2.util.objId(o);
29446
29459
  if (visited[id2]) {
29447
29460
  return visited[id2];
29448
29461
  }
@@ -29600,7 +29613,7 @@ var prism = { exports: {} };
29600
29613
  * });
29601
29614
  */
29602
29615
  extend: function(id2, redef) {
29603
- var lang2 = _.util.clone(_.languages[id2]);
29616
+ var lang2 = _2.util.clone(_2.languages[id2]);
29604
29617
  for (var key in redef) {
29605
29618
  lang2[key] = redef[key];
29606
29619
  }
@@ -29683,7 +29696,7 @@ var prism = { exports: {} };
29683
29696
  */
29684
29697
  insertBefore: function(inside2, before, insert2, root) {
29685
29698
  root = root || /** @type {any} */
29686
- _.languages;
29699
+ _2.languages;
29687
29700
  var grammar = root[inside2];
29688
29701
  var ret = {};
29689
29702
  for (var token in grammar) {
@@ -29702,7 +29715,7 @@ var prism = { exports: {} };
29702
29715
  }
29703
29716
  var old = root[inside2];
29704
29717
  root[inside2] = ret;
29705
- _.languages.DFS(_.languages, function(key, value) {
29718
+ _2.languages.DFS(_2.languages, function(key, value) {
29706
29719
  if (value === old && key != inside2) {
29707
29720
  this[key] = ret;
29708
29721
  }
@@ -29712,12 +29725,12 @@ var prism = { exports: {} };
29712
29725
  // Traverse a language definition with Depth First Search
29713
29726
  DFS: function DFS(o, callback, type, visited) {
29714
29727
  visited = visited || {};
29715
- var objId = _.util.objId;
29728
+ var objId = _2.util.objId;
29716
29729
  for (var i in o) {
29717
29730
  if (o.hasOwnProperty(i)) {
29718
29731
  callback.call(o, i, o[i], type || i);
29719
29732
  var property = o[i];
29720
- var propertyType = _.util.type(property);
29733
+ var propertyType = _2.util.type(property);
29721
29734
  if (propertyType === "Object" && !visited[objId(property)]) {
29722
29735
  visited[objId(property)] = true;
29723
29736
  DFS(property, callback, null, visited);
@@ -29743,7 +29756,7 @@ var prism = { exports: {} };
29743
29756
  * @public
29744
29757
  */
29745
29758
  highlightAll: function(async, callback) {
29746
- _.highlightAllUnder(document, async, callback);
29759
+ _2.highlightAllUnder(document, async, callback);
29747
29760
  },
29748
29761
  /**
29749
29762
  * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -29766,11 +29779,11 @@ var prism = { exports: {} };
29766
29779
  container,
29767
29780
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
29768
29781
  };
29769
- _.hooks.run("before-highlightall", env);
29782
+ _2.hooks.run("before-highlightall", env);
29770
29783
  env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
29771
- _.hooks.run("before-all-elements-highlight", env);
29784
+ _2.hooks.run("before-all-elements-highlight", env);
29772
29785
  for (var i = 0, element; element = env.elements[i++]; ) {
29773
- _.highlightElement(element, async === true, env.callback);
29786
+ _2.highlightElement(element, async === true, env.callback);
29774
29787
  }
29775
29788
  },
29776
29789
  /**
@@ -29802,12 +29815,12 @@ var prism = { exports: {} };
29802
29815
  * @public
29803
29816
  */
29804
29817
  highlightElement: function(element, async, callback) {
29805
- var language2 = _.util.getLanguage(element);
29806
- var grammar = _.languages[language2];
29807
- _.util.setLanguage(element, language2);
29818
+ var language2 = _2.util.getLanguage(element);
29819
+ var grammar = _2.languages[language2];
29820
+ _2.util.setLanguage(element, language2);
29808
29821
  var parent = element.parentElement;
29809
29822
  if (parent && parent.nodeName.toLowerCase() === "pre") {
29810
- _.util.setLanguage(parent, language2);
29823
+ _2.util.setLanguage(parent, language2);
29811
29824
  }
29812
29825
  var code = element.textContent;
29813
29826
  var env = {
@@ -29818,29 +29831,29 @@ var prism = { exports: {} };
29818
29831
  };
29819
29832
  function insertHighlightedCode(highlightedCode) {
29820
29833
  env.highlightedCode = highlightedCode;
29821
- _.hooks.run("before-insert", env);
29834
+ _2.hooks.run("before-insert", env);
29822
29835
  env.element.innerHTML = env.highlightedCode;
29823
- _.hooks.run("after-highlight", env);
29824
- _.hooks.run("complete", env);
29836
+ _2.hooks.run("after-highlight", env);
29837
+ _2.hooks.run("complete", env);
29825
29838
  callback && callback.call(env.element);
29826
29839
  }
29827
- _.hooks.run("before-sanity-check", env);
29840
+ _2.hooks.run("before-sanity-check", env);
29828
29841
  parent = env.element.parentElement;
29829
29842
  if (parent && parent.nodeName.toLowerCase() === "pre" && !parent.hasAttribute("tabindex")) {
29830
29843
  parent.setAttribute("tabindex", "0");
29831
29844
  }
29832
29845
  if (!env.code) {
29833
- _.hooks.run("complete", env);
29846
+ _2.hooks.run("complete", env);
29834
29847
  callback && callback.call(env.element);
29835
29848
  return;
29836
29849
  }
29837
- _.hooks.run("before-highlight", env);
29850
+ _2.hooks.run("before-highlight", env);
29838
29851
  if (!env.grammar) {
29839
- insertHighlightedCode(_.util.encode(env.code));
29852
+ insertHighlightedCode(_2.util.encode(env.code));
29840
29853
  return;
29841
29854
  }
29842
29855
  if (async && _self2.Worker) {
29843
- var worker = new Worker(_.filename);
29856
+ var worker = new Worker(_2.filename);
29844
29857
  worker.onmessage = function(evt) {
29845
29858
  insertHighlightedCode(evt.data);
29846
29859
  };
@@ -29850,7 +29863,7 @@ var prism = { exports: {} };
29850
29863
  immediateClose: true
29851
29864
  }));
29852
29865
  } else {
29853
- insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
29866
+ insertHighlightedCode(_2.highlight(env.code, env.grammar, env.language));
29854
29867
  }
29855
29868
  },
29856
29869
  /**
@@ -29879,13 +29892,13 @@ var prism = { exports: {} };
29879
29892
  grammar,
29880
29893
  language: language2
29881
29894
  };
29882
- _.hooks.run("before-tokenize", env);
29895
+ _2.hooks.run("before-tokenize", env);
29883
29896
  if (!env.grammar) {
29884
29897
  throw new Error('The language "' + env.language + '" has no grammar.');
29885
29898
  }
29886
- env.tokens = _.tokenize(env.code, env.grammar);
29887
- _.hooks.run("after-tokenize", env);
29888
- return Token.stringify(_.util.encode(env.tokens), env.language);
29899
+ env.tokens = _2.tokenize(env.code, env.grammar);
29900
+ _2.hooks.run("after-tokenize", env);
29901
+ return Token.stringify(_2.util.encode(env.tokens), env.language);
29889
29902
  },
29890
29903
  /**
29891
29904
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -29944,7 +29957,7 @@ var prism = { exports: {} };
29944
29957
  * @public
29945
29958
  */
29946
29959
  add: function(name2, callback) {
29947
- var hooks = _.hooks.all;
29960
+ var hooks = _2.hooks.all;
29948
29961
  hooks[name2] = hooks[name2] || [];
29949
29962
  hooks[name2].push(callback);
29950
29963
  },
@@ -29958,7 +29971,7 @@ var prism = { exports: {} };
29958
29971
  * @public
29959
29972
  */
29960
29973
  run: function(name2, env) {
29961
- var callbacks = _.hooks.all[name2];
29974
+ var callbacks = _2.hooks.all[name2];
29962
29975
  if (!callbacks || !callbacks.length) {
29963
29976
  return;
29964
29977
  }
@@ -29969,7 +29982,7 @@ var prism = { exports: {} };
29969
29982
  },
29970
29983
  Token
29971
29984
  };
29972
- _self2.Prism = _;
29985
+ _self2.Prism = _2;
29973
29986
  function Token(type, content2, alias, matchedStr) {
29974
29987
  this.type = type;
29975
29988
  this.content = content2;
@@ -30003,7 +30016,7 @@ var prism = { exports: {} };
30003
30016
  env.classes.push(aliases);
30004
30017
  }
30005
30018
  }
30006
- _.hooks.run("wrap", env);
30019
+ _2.hooks.run("wrap", env);
30007
30020
  var attributes = "";
30008
30021
  for (var name2 in env.attributes) {
30009
30022
  attributes += " " + name2 + '="' + (env.attributes[name2] || "").replace(/"/g, "&quot;") + '"';
@@ -30099,7 +30112,7 @@ var prism = { exports: {} };
30099
30112
  pos += before.length;
30100
30113
  }
30101
30114
  removeRange(tokenList, removeFrom, removeCount);
30102
- var wrapped = new Token(token, inside2 ? _.tokenize(matchStr, inside2) : matchStr, alias, matchStr);
30115
+ var wrapped = new Token(token, inside2 ? _2.tokenize(matchStr, inside2) : matchStr, alias, matchStr);
30103
30116
  currentNode = addAfter(tokenList, removeFrom, wrapped);
30104
30117
  if (after) {
30105
30118
  addAfter(tokenList, currentNode, after);
@@ -30154,35 +30167,35 @@ var prism = { exports: {} };
30154
30167
  }
30155
30168
  if (!_self2.document) {
30156
30169
  if (!_self2.addEventListener) {
30157
- return _;
30170
+ return _2;
30158
30171
  }
30159
- if (!_.disableWorkerMessageHandler) {
30172
+ if (!_2.disableWorkerMessageHandler) {
30160
30173
  _self2.addEventListener("message", function(evt) {
30161
30174
  var message = JSON.parse(evt.data);
30162
30175
  var lang2 = message.language;
30163
30176
  var code = message.code;
30164
30177
  var immediateClose = message.immediateClose;
30165
- _self2.postMessage(_.highlight(code, _.languages[lang2], lang2));
30178
+ _self2.postMessage(_2.highlight(code, _2.languages[lang2], lang2));
30166
30179
  if (immediateClose) {
30167
30180
  _self2.close();
30168
30181
  }
30169
30182
  }, false);
30170
30183
  }
30171
- return _;
30184
+ return _2;
30172
30185
  }
30173
- var script = _.util.currentScript();
30186
+ var script = _2.util.currentScript();
30174
30187
  if (script) {
30175
- _.filename = script.src;
30188
+ _2.filename = script.src;
30176
30189
  if (script.hasAttribute("data-manual")) {
30177
- _.manual = true;
30190
+ _2.manual = true;
30178
30191
  }
30179
30192
  }
30180
30193
  function highlightAutomaticallyCallback() {
30181
- if (!_.manual) {
30182
- _.highlightAll();
30194
+ if (!_2.manual) {
30195
+ _2.highlightAll();
30183
30196
  }
30184
30197
  }
30185
- if (!_.manual) {
30198
+ if (!_2.manual) {
30186
30199
  var readyState = document.readyState;
30187
30200
  if (readyState === "loading" || readyState === "interactive" && script && script.defer) {
30188
30201
  document.addEventListener("DOMContentLoaded", highlightAutomaticallyCallback);
@@ -30194,7 +30207,7 @@ var prism = { exports: {} };
30194
30207
  }
30195
30208
  }
30196
30209
  }
30197
- return _;
30210
+ return _2;
30198
30211
  }(_self);
30199
30212
  if (module.exports) {
30200
30213
  module.exports = Prism2;
@@ -30754,29 +30767,29 @@ var prism = { exports: {} };
30754
30767
  })();
30755
30768
  })(prism);
30756
30769
  var prismExports = prism.exports;
30757
- const A = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
30758
- const O = "scalar-component", le = extendTailwindMerge({
30770
+ const _ = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
30771
+ const O = "scalar-component", ue = extendTailwindMerge({
30759
30772
  extend: {
30760
30773
  classGroups: {
30761
30774
  // Add the scalar class prefix as a custom class to be deduped by tailwind-merge
30762
30775
  [O]: [O]
30763
30776
  }
30764
30777
  }
30765
- }), { cva: I, cx: S, compose: $e } = defineConfig({
30778
+ }), { cva: I, cx: S, compose: Fe } = defineConfig({
30766
30779
  hooks: {
30767
- onComplete: (r2) => `${le(r2, O)}`
30780
+ onComplete: (a) => `${ue(a, O)}`
30768
30781
  }
30769
- }), de = /* @__PURE__ */ createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-42a08e16></path>', 5), ce = {
30782
+ }), pe = /* @__PURE__ */ createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-42a08e16></path>', 5), me = {
30770
30783
  key: 0,
30771
30784
  class: "circular-loader"
30772
30785
  };
30773
- const ue = /* @__PURE__ */ defineComponent({
30786
+ const ge = /* @__PURE__ */ defineComponent({
30774
30787
  __name: "ScalarLoading",
30775
30788
  props: {
30776
30789
  loadingState: {},
30777
30790
  size: { default: "24px" }
30778
30791
  },
30779
- setup(r2) {
30792
+ setup(a) {
30780
30793
  return useCssVars((t2) => ({
30781
30794
  "8d3a1414": t2.size
30782
30795
  })), (t2, e) => t2.loadingState ? (openBlock(), createElementBlock("div", {
@@ -30792,8 +30805,8 @@ const ue = /* @__PURE__ */ defineComponent({
30792
30805
  xmlns: "http://www.w3.org/2000/svg",
30793
30806
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
30794
30807
  }, [
30795
- de,
30796
- t2.loadingState.isLoading ? (openBlock(), createElementBlock("g", ce, [
30808
+ pe,
30809
+ t2.loadingState.isLoading ? (openBlock(), createElementBlock("g", me, [
30797
30810
  createElementVNode("circle", {
30798
30811
  class: normalizeClass(["loader-path", {
30799
30812
  "loader-path-off": t2.loadingState.isValid || t2.loadingState.isInvalid
@@ -30808,12 +30821,12 @@ const ue = /* @__PURE__ */ defineComponent({
30808
30821
  ], 2))
30809
30822
  ], 2)) : createCommentVNode("", true);
30810
30823
  }
30811
- }), D = (r2, t2) => {
30812
- const e = r2.__vccOpts || r2;
30813
- for (const [d, u] of t2)
30814
- e[d] = u;
30824
+ }), D = (a, t2) => {
30825
+ const e = a.__vccOpts || a;
30826
+ for (const [i, g] of t2)
30827
+ e[i] = g;
30815
30828
  return e;
30816
- }, U = /* @__PURE__ */ D(ue, [["__scopeId", "data-v-42a08e16"]]), V = {
30829
+ }, U = /* @__PURE__ */ D(ge, [["__scopeId", "data-v-42a08e16"]]), V = {
30817
30830
  solid: [
30818
30831
  "scalar-button-solid",
30819
30832
  "bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
@@ -30830,7 +30843,7 @@ const ue = /* @__PURE__ */ defineComponent({
30830
30843
  "scalar-button-danger",
30831
30844
  "bg-error text-white active:brightness-90 hocus:brightness-90"
30832
30845
  ]
30833
- }, pe = I({
30846
+ }, he = I({
30834
30847
  base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
30835
30848
  variants: {
30836
30849
  disabled: {
@@ -30847,13 +30860,13 @@ const ue = /* @__PURE__ */ defineComponent({
30847
30860
  class: "bg-transparent text-ghost"
30848
30861
  }
30849
30862
  ]
30850
- }), me = ["ariaDisabled"], ge = {
30863
+ }), fe = ["ariaDisabled"], ve = {
30851
30864
  key: 0,
30852
30865
  class: "mr-2 h-4 w-4"
30853
- }, he = {
30866
+ }, be = {
30854
30867
  key: 1,
30855
30868
  class: "ml-2"
30856
- }, fe = /* @__PURE__ */ defineComponent({
30869
+ }, Se = /* @__PURE__ */ defineComponent({
30857
30870
  inheritAttrs: false,
30858
30871
  __name: "ScalarButton",
30859
30872
  props: {
@@ -30863,34 +30876,34 @@ const ue = /* @__PURE__ */ defineComponent({
30863
30876
  size: { default: "md" },
30864
30877
  variant: { default: "solid" }
30865
30878
  },
30866
- setup(r2) {
30879
+ setup(a) {
30867
30880
  const t2 = computed(() => {
30868
- const { class: e, ...d } = useAttrs();
30869
- return { className: e || "", rest: d };
30881
+ const { class: e, ...i } = useAttrs();
30882
+ return { className: e || "", rest: i };
30870
30883
  });
30871
- return (e, d) => (openBlock(), createElementBlock("button", mergeProps(t2.value.rest, {
30884
+ return (e, i) => (openBlock(), createElementBlock("button", mergeProps(t2.value.rest, {
30872
30885
  ariaDisabled: e.disabled || void 0,
30873
30886
  class: unref(S)(
30874
- unref(pe)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
30887
+ unref(he)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
30875
30888
  { "pl-9 pr-3": e.loading },
30876
30889
  `${t2.value.className}`
30877
30890
  ),
30878
30891
  type: "button"
30879
30892
  }), [
30880
- e.$slots.icon ? (openBlock(), createElementBlock("div", ge, [
30893
+ e.$slots.icon ? (openBlock(), createElementBlock("div", ve, [
30881
30894
  renderSlot(e.$slots, "icon")
30882
30895
  ])) : createCommentVNode("", true),
30883
30896
  renderSlot(e.$slots, "default"),
30884
- e.loading ? (openBlock(), createElementBlock("div", he, [
30897
+ e.loading ? (openBlock(), createElementBlock("div", be, [
30885
30898
  createVNode(unref(U), {
30886
30899
  loadingState: e.loading,
30887
30900
  size: "20px"
30888
30901
  }, null, 8, ["loadingState"])
30889
30902
  ])) : createCommentVNode("", true)
30890
- ], 16, me));
30903
+ ], 16, fe));
30891
30904
  }
30892
30905
  });
30893
- (function(r2) {
30906
+ (function(a) {
30894
30907
  var t2 = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", e = {
30895
30908
  pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
30896
30909
  lookbehind: true,
@@ -30898,7 +30911,7 @@ const ue = /* @__PURE__ */ defineComponent({
30898
30911
  // this looks reasonably well in all themes
30899
30912
  inside: null
30900
30913
  // see below
30901
- }, d = {
30914
+ }, i = {
30902
30915
  bash: e,
30903
30916
  environment: {
30904
30917
  pattern: RegExp("\\$" + t2),
@@ -30952,7 +30965,7 @@ const ue = /* @__PURE__ */ defineComponent({
30952
30965
  // Escape sequences from echo and printf's manuals, and escaped quotes.
30953
30966
  entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
30954
30967
  };
30955
- r2.languages.bash = {
30968
+ a.languages.bash = {
30956
30969
  shebang: {
30957
30970
  pattern: /^#!\s*\/.*/,
30958
30971
  alias: "important"
@@ -31010,7 +31023,7 @@ const ue = /* @__PURE__ */ defineComponent({
31010
31023
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
31011
31024
  lookbehind: true,
31012
31025
  greedy: true,
31013
- inside: d
31026
+ inside: i
31014
31027
  },
31015
31028
  // Here-document with quotes around the tag
31016
31029
  // → No expansion (so no “inside”).
@@ -31028,7 +31041,7 @@ const ue = /* @__PURE__ */ defineComponent({
31028
31041
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
31029
31042
  lookbehind: true,
31030
31043
  greedy: true,
31031
- inside: d
31044
+ inside: i
31032
31045
  },
31033
31046
  {
31034
31047
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -31041,7 +31054,7 @@ const ue = /* @__PURE__ */ defineComponent({
31041
31054
  pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
31042
31055
  greedy: true,
31043
31056
  inside: {
31044
- entity: d.entity
31057
+ entity: i.entity
31045
31058
  }
31046
31059
  }
31047
31060
  ],
@@ -31049,7 +31062,7 @@ const ue = /* @__PURE__ */ defineComponent({
31049
31062
  pattern: RegExp("\\$?" + t2),
31050
31063
  alias: "constant"
31051
31064
  },
31052
- variable: d.variable,
31065
+ variable: i.variable,
31053
31066
  function: {
31054
31067
  pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
31055
31068
  lookbehind: true
@@ -31088,8 +31101,8 @@ const ue = /* @__PURE__ */ defineComponent({
31088
31101
  pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
31089
31102
  lookbehind: true
31090
31103
  }
31091
- }, e.inside = r2.languages.bash;
31092
- for (var u = [
31104
+ }, e.inside = a.languages.bash;
31105
+ for (var g = [
31093
31106
  "comment",
31094
31107
  "function-name",
31095
31108
  "for-or-select",
@@ -31105,9 +31118,9 @@ const ue = /* @__PURE__ */ defineComponent({
31105
31118
  "operator",
31106
31119
  "punctuation",
31107
31120
  "number"
31108
- ], f = d.variable[1].inside, a = 0; a < u.length; a++)
31109
- f[u[a]] = r2.languages.bash[u[a]];
31110
- r2.languages.sh = r2.languages.bash, r2.languages.shell = r2.languages.bash;
31121
+ ], b = i.variable[1].inside, s = 0; s < g.length; s++)
31122
+ b[g[s]] = a.languages.bash[g[s]];
31123
+ a.languages.sh = a.languages.bash, a.languages.shell = a.languages.bash;
31111
31124
  })(Prism);
31112
31125
  Prism.languages.json = {
31113
31126
  property: {
@@ -31137,7 +31150,7 @@ Prism.languages.webmanifest = Prism.languages.json;
31137
31150
  (function() {
31138
31151
  if (typeof Prism > "u" || typeof document > "u")
31139
31152
  return;
31140
- var r2 = "line-numbers", t2 = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
31153
+ var a = "line-numbers", t2 = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
31141
31154
  /**
31142
31155
  * Get node for provided line number
31143
31156
  *
@@ -31145,14 +31158,14 @@ Prism.languages.webmanifest = Prism.languages.json;
31145
31158
  * @param {number} number line number
31146
31159
  * @returns {Element|undefined}
31147
31160
  */
31148
- getLine: function(a, n) {
31149
- if (!(a.tagName !== "PRE" || !a.classList.contains(r2))) {
31150
- var o = a.querySelector(".line-numbers-rows");
31161
+ getLine: function(s, d) {
31162
+ if (!(s.tagName !== "PRE" || !s.classList.contains(a))) {
31163
+ var o = s.querySelector(".line-numbers-rows");
31151
31164
  if (o) {
31152
- var s = parseInt(a.getAttribute("data-start"), 10) || 1, p = s + (o.children.length - 1);
31153
- n < s && (n = s), n > p && (n = p);
31154
- var l = n - s;
31155
- return o.children[l];
31165
+ var l = parseInt(s.getAttribute("data-start"), 10) || 1, u = l + (o.children.length - 1);
31166
+ d < l && (d = l), d > u && (d = u);
31167
+ var r2 = d - l;
31168
+ return o.children[r2];
31156
31169
  }
31157
31170
  }
31158
31171
  },
@@ -31164,8 +31177,8 @@ Prism.languages.webmanifest = Prism.languages.json;
31164
31177
  * @param {HTMLElement} element A `<pre>` element with line numbers.
31165
31178
  * @returns {void}
31166
31179
  */
31167
- resize: function(a) {
31168
- d([a]);
31180
+ resize: function(s) {
31181
+ i([s]);
31169
31182
  },
31170
31183
  /**
31171
31184
  * Whether the plugin can assume that the units font sizes and margins are not depended on the size of
@@ -31179,72 +31192,72 @@ Prism.languages.webmanifest = Prism.languages.json;
31179
31192
  */
31180
31193
  assumeViewportIndependence: true
31181
31194
  };
31182
- function d(a) {
31183
- if (a = a.filter(function(o) {
31184
- var s = u(o), p = s["white-space"];
31185
- return p === "pre-wrap" || p === "pre-line";
31186
- }), a.length != 0) {
31187
- var n = a.map(function(o) {
31188
- var s = o.querySelector("code"), p = o.querySelector(".line-numbers-rows");
31189
- if (!(!s || !p)) {
31190
- var l = o.querySelector(".line-numbers-sizer"), h = s.textContent.split(t2);
31191
- l || (l = document.createElement("span"), l.className = "line-numbers-sizer", s.appendChild(l)), l.innerHTML = "0", l.style.display = "block";
31192
- var i = l.getBoundingClientRect().height;
31193
- return l.innerHTML = "", {
31195
+ function i(s) {
31196
+ if (s = s.filter(function(o) {
31197
+ var l = g(o), u = l["white-space"];
31198
+ return u === "pre-wrap" || u === "pre-line";
31199
+ }), s.length != 0) {
31200
+ var d = s.map(function(o) {
31201
+ var l = o.querySelector("code"), u = o.querySelector(".line-numbers-rows");
31202
+ if (!(!l || !u)) {
31203
+ var r2 = o.querySelector(".line-numbers-sizer"), p = l.textContent.split(t2);
31204
+ r2 || (r2 = document.createElement("span"), r2.className = "line-numbers-sizer", l.appendChild(r2)), r2.innerHTML = "0", r2.style.display = "block";
31205
+ var n = r2.getBoundingClientRect().height;
31206
+ return r2.innerHTML = "", {
31194
31207
  element: o,
31195
- lines: h,
31208
+ lines: p,
31196
31209
  lineHeights: [],
31197
- oneLinerHeight: i,
31198
- sizer: l
31210
+ oneLinerHeight: n,
31211
+ sizer: r2
31199
31212
  };
31200
31213
  }
31201
31214
  }).filter(Boolean);
31202
- n.forEach(function(o) {
31203
- var s = o.sizer, p = o.lines, l = o.lineHeights, h = o.oneLinerHeight;
31204
- l[p.length - 1] = void 0, p.forEach(function(i, b) {
31205
- if (i && i.length > 1) {
31206
- var y = s.appendChild(document.createElement("span"));
31207
- y.style.display = "block", y.textContent = i;
31215
+ d.forEach(function(o) {
31216
+ var l = o.sizer, u = o.lines, r2 = o.lineHeights, p = o.oneLinerHeight;
31217
+ r2[u.length - 1] = void 0, u.forEach(function(n, f) {
31218
+ if (n && n.length > 1) {
31219
+ var w = l.appendChild(document.createElement("span"));
31220
+ w.style.display = "block", w.textContent = n;
31208
31221
  } else
31209
- l[b] = h;
31222
+ r2[f] = p;
31210
31223
  });
31211
- }), n.forEach(function(o) {
31212
- for (var s = o.sizer, p = o.lineHeights, l = 0, h = 0; h < p.length; h++)
31213
- p[h] === void 0 && (p[h] = s.children[l++].getBoundingClientRect().height);
31214
- }), n.forEach(function(o) {
31215
- var s = o.sizer, p = o.element.querySelector(".line-numbers-rows");
31216
- s.style.display = "none", s.innerHTML = "", o.lineHeights.forEach(function(l, h) {
31217
- p.children[h].style.height = l + "px";
31224
+ }), d.forEach(function(o) {
31225
+ for (var l = o.sizer, u = o.lineHeights, r2 = 0, p = 0; p < u.length; p++)
31226
+ u[p] === void 0 && (u[p] = l.children[r2++].getBoundingClientRect().height);
31227
+ }), d.forEach(function(o) {
31228
+ var l = o.sizer, u = o.element.querySelector(".line-numbers-rows");
31229
+ l.style.display = "none", l.innerHTML = "", o.lineHeights.forEach(function(r2, p) {
31230
+ u.children[p].style.height = r2 + "px";
31218
31231
  });
31219
31232
  });
31220
31233
  }
31221
31234
  }
31222
- function u(a) {
31223
- return a ? window.getComputedStyle ? getComputedStyle(a) : a.currentStyle || null : null;
31235
+ function g(s) {
31236
+ return s ? window.getComputedStyle ? getComputedStyle(s) : s.currentStyle || null : null;
31224
31237
  }
31225
- var f = void 0;
31238
+ var b = void 0;
31226
31239
  window.addEventListener("resize", function() {
31227
- e.assumeViewportIndependence && f === window.innerWidth || (f = window.innerWidth, d(Array.prototype.slice.call(document.querySelectorAll("pre." + r2))));
31228
- }), Prism.hooks.add("complete", function(a) {
31229
- if (a.code) {
31230
- var n = (
31240
+ e.assumeViewportIndependence && b === window.innerWidth || (b = window.innerWidth, i(Array.prototype.slice.call(document.querySelectorAll("pre." + a))));
31241
+ }), Prism.hooks.add("complete", function(s) {
31242
+ if (s.code) {
31243
+ var d = (
31231
31244
  /** @type {Element} */
31232
- a.element
31245
+ s.element
31233
31246
  ), o = (
31234
31247
  /** @type {HTMLElement} */
31235
- n.parentNode
31248
+ d.parentNode
31236
31249
  );
31237
- if (!(!o || !/pre/i.test(o.nodeName)) && !n.querySelector(".line-numbers-rows") && Prism.util.isActive(n, r2)) {
31238
- n.classList.remove(r2), o.classList.add(r2);
31239
- var s = a.code.match(t2), p = s ? s.length + 1 : 1, l, h = new Array(p + 1).join("<span></span>");
31240
- l = document.createElement("span"), l.setAttribute("aria-hidden", "true"), l.className = "line-numbers-rows", l.innerHTML = h, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), a.element.appendChild(l), d([o]), Prism.hooks.run("line-numbers", a);
31250
+ if (!(!o || !/pre/i.test(o.nodeName)) && !d.querySelector(".line-numbers-rows") && Prism.util.isActive(d, a)) {
31251
+ d.classList.remove(a), o.classList.add(a);
31252
+ var l = s.code.match(t2), u = l ? l.length + 1 : 1, r2, p = new Array(u + 1).join("<span></span>");
31253
+ r2 = document.createElement("span"), r2.setAttribute("aria-hidden", "true"), r2.className = "line-numbers-rows", r2.innerHTML = p, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), s.element.appendChild(r2), i([o]), Prism.hooks.run("line-numbers", s);
31241
31254
  }
31242
31255
  }
31243
- }), Prism.hooks.add("line-numbers", function(a) {
31244
- a.plugins = a.plugins || {}, a.plugins.lineNumbers = true;
31256
+ }), Prism.hooks.add("line-numbers", function(s) {
31257
+ s.plugins = s.plugins || {}, s.plugins.lineNumbers = true;
31245
31258
  });
31246
31259
  })();
31247
- const ve = ["innerHTML"], He = /* @__PURE__ */ defineComponent({
31260
+ const we = ["innerHTML"], Ve = /* @__PURE__ */ defineComponent({
31248
31261
  __name: "ScalarCodeBlock",
31249
31262
  props: {
31250
31263
  content: {},
@@ -31252,79 +31265,84 @@ const ve = ["innerHTML"], He = /* @__PURE__ */ defineComponent({
31252
31265
  lineNumbers: { type: Boolean, default: false },
31253
31266
  hideCredentials: {}
31254
31267
  },
31255
- setup(r2) {
31256
- const t2 = r2, { plugins: e, highlightElement: d } = A;
31257
- t2.hideCredentials && A.hooks.add("wrap", function(n) {
31268
+ setup(a) {
31269
+ const t2 = a, e = createHash(
31270
+ typeof t2.content == "object" ? JSON.stringify(t2.content) : t2.content
31271
+ ), i = `components-scalar-code-block${e}`, { plugins: g, highlightElement: b } = _;
31272
+ t2.hideCredentials && _.hooks.add("wrap", function(r2) {
31258
31273
  if (!t2.hideCredentials)
31259
31274
  return;
31260
- let o = false;
31261
- typeof t2.hideCredentials == "string" ? n.content.includes(t2.hideCredentials) && (o = true) : Array.isArray(t2.hideCredentials) && (o = t2.hideCredentials.some(
31262
- (s) => n.content.includes(s)
31263
- )), o && (n.content = n.content.replace(
31275
+ let p = false;
31276
+ typeof t2.hideCredentials == "string" ? r2.content.includes(t2.hideCredentials) && (p = true) : Array.isArray(t2.hideCredentials) && (p = t2.hideCredentials.some(
31277
+ (n) => r2.content.includes(n)
31278
+ )), p && (r2.content = r2.content.replace(
31264
31279
  /<span class="credentials">.*?<\/span>/g,
31265
- (s) => s.replace(/<span class="credentials">|<\/span>/g, "")
31266
- ), n.content = n.content.replace(
31280
+ (n) => n.replace(/<span class="credentials">|<\/span>/g, "")
31281
+ ), r2.content = r2.content.replace(
31267
31282
  new RegExp(
31268
31283
  typeof t2.hideCredentials == "string" ? t2.hideCredentials : t2.hideCredentials.join("|"),
31269
31284
  "g"
31270
31285
  ),
31271
- (s) => `<span class="credentials">${s}</span>`
31286
+ (n) => `<span class="credentials">${n}</span>`
31272
31287
  ));
31273
31288
  });
31274
- const u = ref(null), f = ref(""), a = computed(() => t2.lang === "node" ? "js" : t2.lang);
31275
- return watch(
31276
- () => [t2.lang, t2.content],
31289
+ const s = ref(null), d = ref(ssrState[i] ?? ""), o = computed(() => t2.lang === "node" ? "js" : t2.lang), l = t2.lang;
31290
+ watch(
31291
+ [() => t2.lang, () => t2.content, s],
31277
31292
  () => {
31278
- u.value && nextTick(() => d(u.value));
31279
- }
31280
- ), onServerPrefetch(async () => {
31281
- const n = A.highlight(
31293
+ s.value && t2.content && (!d.value || t2.lang !== l) && (d.value = "", nextTick(() => b(s.value)));
31294
+ },
31295
+ { immediate: true }
31296
+ );
31297
+ const u = /\n(?!$)/g;
31298
+ return onServerPrefetch(async () => {
31299
+ let r2 = "";
31300
+ t2.lineNumbers && _.hooks.add("after-tokenize", (n) => {
31301
+ const f = n.code.match(u), w = f ? f.length + 1 : 1;
31302
+ r2 = `<span aria-hidden="true" class="line-numbers-rows">${new Array(w + 1).join("<span></span>")}</span>`;
31303
+ });
31304
+ const p = _.highlight(
31282
31305
  typeof t2.content == "object" ? JSON.stringify(t2.content) : t2.content,
31283
- A.languages[a.value],
31284
- a.value
31306
+ _.languages[o.value],
31307
+ o.value
31285
31308
  );
31286
- f.value = n;
31309
+ if (d.value = p + r2, e !== 0) {
31310
+ const n = useSSRContext();
31311
+ n.payload.data[i] = p + r2;
31312
+ }
31287
31313
  }), onMounted(async () => {
31288
- u.value && d(u.value), await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"), e.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
31289
- }), (n, o) => f.value ? (openBlock(), createElementBlock("pre", {
31290
- key: 0,
31314
+ await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"), g.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
31315
+ }), (r2, p) => (openBlock(), createElementBlock("pre", {
31291
31316
  class: normalizeClass([
31292
- `scalar-component scalar-codeblock-pre language-${a.value}`,
31317
+ `scalar-component scalar-codeblock-pre language-${o.value}`,
31293
31318
  {
31294
- "line-numbers": n.lineNumbers
31319
+ "line-numbers": r2.lineNumbers
31295
31320
  }
31296
31321
  ])
31297
31322
  }, [
31298
- createElementVNode("code", {
31299
- ref_key: "el",
31300
- ref: u,
31301
- class: normalizeClass(`scalar-codeblock-code language-${a.value}`),
31302
- innerHTML: f.value
31303
- }, null, 10, ve)
31304
- ], 2)) : (openBlock(), createElementBlock("pre", {
31305
- key: 1,
31306
- class: normalizeClass(["scalar-component scalar-codeblock-pre", {
31307
- "line-numbers": n.lineNumbers
31308
- }])
31309
- }, [
31310
- createElementVNode("code", {
31323
+ d.value ? (openBlock(), createElementBlock("code", {
31324
+ key: 0,
31325
+ class: normalizeClass(`scalar-codeblock-code language-${o.value}`),
31326
+ innerHTML: d.value
31327
+ }, null, 10, we)) : (openBlock(), createElementBlock("code", {
31328
+ key: 1,
31311
31329
  ref_key: "el",
31312
- ref: u,
31313
- class: normalizeClass(`scalar-codeblock-code lang-${a.value}`)
31314
- }, toDisplayString(n.content), 3)
31330
+ ref: s,
31331
+ class: normalizeClass(`scalar-codeblock-code language-${o.value}`)
31332
+ }, toDisplayString(r2.content), 3))
31315
31333
  ], 2));
31316
31334
  }
31317
- }), R = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-MwmVL5-v-3DrL2GXw.js"), "./CheckMark.svg": () => import("./CheckMark-t0gl4N9U-BE06BAQA.js"), "./ChevronDown.svg": () => import("./ChevronDown-BfsntkAH-BOGiF9uG.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-gsLd5xOQ-Z0Ct_Vv2.js"), "./ChevronRight.svg": () => import("./ChevronRight-CI_7n_av-BCFTpQ51.js"), "./ChevronUp.svg": () => import("./ChevronUp-CjHRmG59-B93Q9llD.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-DFM1qMQH-DMPtwWpT.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./ExternalLink.svg": () => import("./ExternalLink-D5zCsWas-MT2ACYLZ.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M-LQcor9RM.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK-Bzb5EbnZ.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P-B_rZ91PC.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab-_INRDSLs.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW-DFEpFXIU.js"), "./Menu.svg": () => import("./Menu-DFi9Laso-BhIZrQxp.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./arrow-chevron-down.svg": () => import("./arrow-chevron-down-C8nXK33Q-cFi1tcoL.js"), "./arrow-chevron-left.svg": () => import("./arrow-chevron-left-BXUhHSEc-GDsvyOvS.js"), "./arrow-chevron-right.svg": () => import("./arrow-chevron-right-CSqjaNKG-DLqk_P-k.js"), "./arrow-chevron-up.svg": () => import("./arrow-chevron-up-Dr-W1IfM-CJpftEXD.js"), "./arrow-down.svg": () => import("./arrow-down-rfW-r_qd-DCnCiMpp.js"), "./arrow-left.svg": () => import("./arrow-left-DDkHt-xN-CFh-lXGZ.js"), "./arrow-right.svg": () => import("./arrow-right-17dZkGZR-C5So-BEm.js"), "./arrow-up.svg": () => import("./arrow-up-CexG2Ble-BlrsZtgs.js"), "./brand-software-development-github.svg": () => import("./brand-software-development-github-ZQnPxpDg-9BAblfAs.js"), "./interface-add.svg": () => import("./interface-add-Bthe4y9O-EDM5uqD-.js"), "./interface-close.svg": () => import("./interface-close-WpJOu-2h-W6lKje7S.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk-Bzc9D9am.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19-CfPlyy6T.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy-Cty_4oXq.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN-DdUogL85.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb-B1_8fYG9.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6-BUgfSlg1.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I-BWQXI44M.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w-CWqBHVz_.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi-BMZrSR1t.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm-DZhaOPIJ.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX-BR-B91By.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36-S3xix_dw.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9-BWGOKD9M.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g-Dd3La6Kn.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ-Bz_n-CNw.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7-XJbYjh7O.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg-BUvu5_SV.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi-CaDO02MW.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2-BPFALXVk.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), P = (r2) => {
31318
- const t2 = `./${r2}.svg`;
31319
- return R[t2] ? defineAsyncComponent(R[t2]) : (console.warn(`Could not find icon: ${r2}`), null);
31320
- }, be = ["src"], j = /* @__PURE__ */ defineComponent({
31335
+ }), R = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-MwmVL5-v-3DrL2GXw.js"), "./CheckMark.svg": () => import("./CheckMark-t0gl4N9U-BE06BAQA.js"), "./ChevronDown.svg": () => import("./ChevronDown-BfsntkAH-BOGiF9uG.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-gsLd5xOQ-Z0Ct_Vv2.js"), "./ChevronRight.svg": () => import("./ChevronRight-CI_7n_av-BCFTpQ51.js"), "./ChevronUp.svg": () => import("./ChevronUp-CjHRmG59-B93Q9llD.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-DFM1qMQH-DMPtwWpT.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./ExternalLink.svg": () => import("./ExternalLink-D5zCsWas-MT2ACYLZ.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M-LQcor9RM.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK-Bzb5EbnZ.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P-B_rZ91PC.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab-_INRDSLs.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW-DFEpFXIU.js"), "./Menu.svg": () => import("./Menu-DFi9Laso-BhIZrQxp.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./arrow-chevron-down.svg": () => import("./arrow-chevron-down-C8nXK33Q-cFi1tcoL.js"), "./arrow-chevron-left.svg": () => import("./arrow-chevron-left-BXUhHSEc-GDsvyOvS.js"), "./arrow-chevron-right.svg": () => import("./arrow-chevron-right-CSqjaNKG-DLqk_P-k.js"), "./arrow-chevron-up.svg": () => import("./arrow-chevron-up-Dr-W1IfM-CJpftEXD.js"), "./arrow-down.svg": () => import("./arrow-down-rfW-r_qd-DCnCiMpp.js"), "./arrow-left.svg": () => import("./arrow-left-DDkHt-xN-CFh-lXGZ.js"), "./arrow-right.svg": () => import("./arrow-right-17dZkGZR-C5So-BEm.js"), "./arrow-up.svg": () => import("./arrow-up-CexG2Ble-BlrsZtgs.js"), "./brand-software-development-github.svg": () => import("./brand-software-development-github-ZQnPxpDg-9BAblfAs.js"), "./interface-add.svg": () => import("./interface-add-Bthe4y9O-EDM5uqD-.js"), "./interface-close.svg": () => import("./interface-close-WpJOu-2h-W6lKje7S.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk-Bzc9D9am.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19-CfPlyy6T.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy-Cty_4oXq.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN-DdUogL85.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb-B1_8fYG9.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6-BUgfSlg1.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I-BWQXI44M.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w-CWqBHVz_.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi-BMZrSR1t.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm-DZhaOPIJ.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX-BR-B91By.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36-S3xix_dw.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9-BWGOKD9M.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g-Dd3La6Kn.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ-Bz_n-CNw.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7-XJbYjh7O.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg-BUvu5_SV.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi-CaDO02MW.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2-BPFALXVk.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), P = (a) => {
31336
+ const t2 = `./${a}.svg`;
31337
+ return R[t2] ? defineAsyncComponent(R[t2]) : (console.warn(`Could not find icon: ${a}`), null);
31338
+ }, ye = ["src"], j = /* @__PURE__ */ defineComponent({
31321
31339
  __name: "ScalarIcon",
31322
31340
  props: {
31323
31341
  icon: {},
31324
31342
  size: {}
31325
31343
  },
31326
- setup(r2) {
31327
- const t2 = r2, e = I({
31344
+ setup(a) {
31345
+ const t2 = a, e = I({
31328
31346
  variants: {
31329
31347
  size: {
31330
31348
  xs: "h-3 w-3",
@@ -31338,14 +31356,14 @@ const ve = ["innerHTML"], He = /* @__PURE__ */ defineComponent({
31338
31356
  defaultVariants: {
31339
31357
  size: "full"
31340
31358
  }
31341
- }), d = P(t2.icon);
31342
- return (u, f) => unref(d) ? (openBlock(), createBlock(resolveDynamicComponent(unref(P)(u.icon)), {
31359
+ }), i = P(t2.icon);
31360
+ return (g, b) => unref(i) ? (openBlock(), createBlock(resolveDynamicComponent(unref(P)(g.icon)), {
31343
31361
  key: 0,
31344
- class: normalizeClass(unref(S)("scalar-icon", unref(e)({ size: u.size })))
31362
+ class: normalizeClass(unref(S)("scalar-icon", unref(e)({ size: g.size })))
31345
31363
  }, null, 8, ["class"])) : (openBlock(), createElementBlock("img", {
31346
31364
  key: 1,
31347
- src: u.icon
31348
- }, null, 8, be));
31365
+ src: g.icon
31366
+ }, null, 8, ye));
31349
31367
  }
31350
31368
  });
31351
31369
  const _sfc_main$q = {};
@@ -31931,7 +31949,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
31931
31949
  _hoisted_3$7
31932
31950
  ]),
31933
31951
  meta: withCtx(() => [
31934
- createVNode(unref(fe), {
31952
+ createVNode(unref(Se), {
31935
31953
  class: "table-description-toggle",
31936
31954
  variant: "text",
31937
31955
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:showDescription", !_ctx.showDescription))
@@ -32660,7 +32678,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
32660
32678
  return openBlock(), createBlock(unref(_sfc_main$v), { title: "Body" }, {
32661
32679
  default: withCtx(() => [
32662
32680
  _ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
32663
- codeMirrorLanguage.value ? (openBlock(), createBlock(unref(He), {
32681
+ codeMirrorLanguage.value ? (openBlock(), createBlock(unref(Ve), {
32664
32682
  key: 0,
32665
32683
  class: "custom-scroll",
32666
32684
  content: _ctx.data,
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "rest",
14
14
  "testing"
15
15
  ],
16
- "version": "1.1.15",
16
+ "version": "1.1.16",
17
17
  "engines": {
18
18
  "node": ">=18"
19
19
  },
@@ -42,10 +42,10 @@
42
42
  "nanoid": "^5.0.1",
43
43
  "pretty-bytes": "^6.1.1",
44
44
  "pretty-ms": "^8.0.0",
45
- "@scalar/components": "0.4.10",
45
+ "@scalar/components": "0.4.11",
46
46
  "@scalar/themes": "0.6.7",
47
47
  "@scalar/use-codemirror": "0.9.1",
48
- "@scalar/use-modal": "0.2.9"
48
+ "@scalar/use-modal": "0.2.10"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/content-type": "^1.1.6",
@@ -58,12 +58,12 @@
58
58
  "vue": "^3.3.0",
59
59
  "vue-tsc": "^1.8.19",
60
60
  "@scalar/api-client-proxy": "0.5.23",
61
- "@scalar/oas-utils": "0.1.4",
62
- "@scalar/echo-server": "0.6.0"
61
+ "@scalar/echo-server": "0.6.0",
62
+ "@scalar/oas-utils": "0.1.5"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "vue": "^3.3.0",
66
- "@scalar/oas-utils": "0.1.4"
66
+ "@scalar/oas-utils": "0.1.5"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",