@scalar/api-client 1.2.37 → 1.2.39

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 (29) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.d.ts +10 -0
  3. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.d.ts.map +1 -0
  4. package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts +14 -1
  5. package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map +1 -1
  6. package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts +2 -0
  7. package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts.map +1 -1
  8. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts.map +1 -1
  9. package/dist/helpers/concatenateUrlAndPath.d.ts.map +1 -1
  10. package/dist/helpers/getUrlFromServerState.d.ts +6 -0
  11. package/dist/helpers/getUrlFromServerState.d.ts.map +1 -0
  12. package/dist/helpers/index.d.ts +2 -0
  13. package/dist/helpers/index.d.ts.map +1 -1
  14. package/dist/helpers/redirectToProxy.d.ts +3 -0
  15. package/dist/helpers/redirectToProxy.d.ts.map +1 -0
  16. package/dist/helpers/replaceVariables.d.ts +2 -2
  17. package/dist/helpers/replaceVariables.d.ts.map +1 -1
  18. package/dist/helpers/sendRequest.d.ts.map +1 -1
  19. package/dist/index.css +67 -20
  20. package/dist/index.js +468 -241
  21. package/dist/stores/index.d.ts +1 -0
  22. package/dist/stores/index.d.ts.map +1 -1
  23. package/dist/stores/useAuthenticationStore.d.ts +5 -1
  24. package/dist/stores/useAuthenticationStore.d.ts.map +1 -1
  25. package/dist/stores/useServerStore.d.ts +16 -0
  26. package/dist/stores/useServerStore.d.ts.map +1 -0
  27. package/dist/types.d.ts +19 -0
  28. package/dist/types.d.ts.map +1 -1
  29. package/package.json +5 -4
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ const purpleTheme = "/* basic theme */\n.light-mode {\n --scalar-background-1:
24
24
  const saturnTheme = "/* basic theme */\n.light-mode {\n --scalar-background-1: #f3f3ee;\n --scalar-background-2: #e8e8e3;\n --scalar-background-3: #e4e4df;\n --scalar-border-color: rgba(215, 215, 206, 0.5);\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: #1763a6;\n --scalar-background-accent: #1f648e1f;\n}\n.dark-mode {\n --scalar-background-1: #09090b;\n --scalar-background-2: #18181b;\n --scalar-background-3: #2c2c30;\n --scalar-border-color: rgba(255, 255, 255, 0.12);\n\n --scalar-color-1: #fafafa;\n --scalar-color-2: rgb(161, 161, 170);\n --scalar-color-3: rgba(255, 255, 255, 0.533);\n\n --scalar-color-accent: #4eb3ec;\n --scalar-background-accent: #8ab4f81f;\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-1);\n\n --scalar-sidebar-search-background: var(--scalar-background-1);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n\n/* advanced */\n.light-mode {\n --scalar-color-green: #17803d;\n --scalar-color-red: #e10909;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #1763a6;\n --scalar-color-orange: #e25b09;\n --scalar-color-purple: #5c3993;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #30a159;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #eec644;\n --scalar-color-blue: #2b7abf;\n --scalar-color-orange: #f07528;\n --scalar-color-purple: #7a59b1;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n";
25
25
  const solarizedTheme = ".light-mode {\n color-scheme: light;\n --scalar-color-1: #584c27;\n --scalar-color-2: #616161;\n --scalar-color-3: #a89f84;\n --scalar-color-accent: #b58900;\n --scalar-background-1: #fdf6e3;\n --scalar-background-2: #eee8d5;\n --scalar-background-3: #ddd6c1;\n --scalar-background-accent: #b589001f;\n\n --scalar-border-color: #ded8c8;\n --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --scalar-lifted-brightness: 1;\n --scalar-backdrop-brightness: 1;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;\n\n --scalar-button-1: rgb(49 53 56);\n --scalar-button-1-color: #fff;\n --scalar-button-1-hover: rgb(28 31 33);\n\n --scalar-color-red: #b91c1c;\n --scalar-color-orange: #a16207;\n --scalar-color-green: #047857;\n --scalar-color-blue: #1d4ed8;\n --scalar-color-orange: #c2410c;\n --scalar-color-purple: #6d28d9;\n}\n\n.dark-mode {\n color-scheme: dark;\n --scalar-color-1: #fff;\n --scalar-color-2: #cccccc;\n --scalar-color-3: #6d8890;\n --scalar-color-accent: #007acc;\n --scalar-background-1: #00212b;\n --scalar-background-2: #012b36;\n --scalar-background-3: #004052;\n --scalar-background-accent: #015a6f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.1);\n --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --scalar-lifted-brightness: 1.45;\n --scalar-backdrop-brightness: 0.5;\n\n --scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n --scalar-button-1: #f6f6f6;\n --scalar-button-1-color: #000;\n --scalar-button-1-hover: #e7e7e7;\n\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: var(--scalar-background-2);\n --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n\n.dark-mode .sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-sidebar-color-1);\n --scalar-sidebar-search-background: var(--scalar-background-2);\n --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n";
26
26
  const fonts = "\n@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900');\n@import url('https://fonts.googleapis.com/css?family=JetBrains%20Mono');\n/* Inter (--scalar-font) */\n/* JetBrains Mono (--scalar-font-code) */\n";
27
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
27
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
28
28
  __name: "DefaultFonts",
29
29
  setup(__props) {
30
30
  return (_ctx, _cache) => {
@@ -32,7 +32,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
32
32
  };
33
33
  }
34
34
  });
35
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
35
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
36
36
  __name: "ThemeStyles",
37
37
  props: {
38
38
  id: {},
@@ -41,7 +41,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
41
41
  setup(__props) {
42
42
  return (_ctx, _cache) => {
43
43
  return openBlock(), createElementBlock(Fragment, null, [
44
- _ctx.withDefaultFonts ? (openBlock(), createBlock(_sfc_main$F, { key: 0 })) : createCommentVNode("", true),
44
+ _ctx.withDefaultFonts ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : createCommentVNode("", true),
45
45
  _ctx.id !== "none" ? (openBlock(), createBlock(resolveDynamicComponent("style"), { key: 1 }, {
46
46
  default: withCtx(() => [
47
47
  createTextVNode(toDisplayString(unref(getThemeById)(_ctx.id, { layer: "scalar-theme" })), 1)
@@ -60,7 +60,7 @@ function useApplyClasses(selector, classes) {
60
60
  el == null ? void 0 : el.classList.add(classes);
61
61
  });
62
62
  }
63
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
63
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
64
64
  __name: "ResetStyles",
65
65
  setup(__props) {
66
66
  const { reset: reset2 } = useCssModule();
@@ -84,7 +84,7 @@ const _export_sfc = (sfc, props) => {
84
84
  const cssModules = {
85
85
  "$style": style0
86
86
  };
87
- const ResetStyles = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__cssModules", cssModules]]);
87
+ const ResetStyles = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__cssModules", cssModules]]);
88
88
  const presets = {
89
89
  alternate: alternateTheme,
90
90
  default: defaultTheme,
@@ -114,28 +114,28 @@ function defaultState() {
114
114
  snippetType: "javascript"
115
115
  };
116
116
  }
117
- const state = reactive(defaultState());
117
+ const state$1 = reactive(defaultState());
118
118
  function toggleApiClient(item, forceShow = false) {
119
119
  if (forceShow) {
120
- state.showApiClient = true;
120
+ state$1.showApiClient = true;
121
121
  } else {
122
- state.showApiClient = !state.showApiClient;
122
+ state$1.showApiClient = !state$1.showApiClient;
123
123
  }
124
124
  if (item) {
125
- state.activeItem = item;
125
+ state$1.activeItem = item;
126
126
  }
127
127
  }
128
128
  function hideApiClient() {
129
- state.showApiClient = false;
129
+ state$1.showApiClient = false;
130
130
  }
131
131
  function setActiveApiClientEndpointId(id2) {
132
- state.activeApiClientEndpointId = id2;
132
+ state$1.activeApiClientEndpointId = id2;
133
133
  }
134
134
  function setSnippetType(type) {
135
- state.snippetType = type;
135
+ state$1.snippetType = type;
136
136
  }
137
137
  const useApiClientStore = () => ({
138
- state: readonly(state),
138
+ state: readonly(state$1),
139
139
  toggleApiClient,
140
140
  setActiveApiClientEndpointId,
141
141
  setSnippetType,
@@ -2238,6 +2238,8 @@ const createEmptyAuthenticationState = () => ({
2238
2238
  token: ""
2239
2239
  },
2240
2240
  oAuth2: {
2241
+ username: "",
2242
+ password: "",
2241
2243
  clientId: "",
2242
2244
  scopes: [],
2243
2245
  accessToken: "",
@@ -2324,6 +2326,22 @@ const useRequestStore = () => ({
2324
2326
  addRequestToHistory,
2325
2327
  setActiveRequest
2326
2328
  });
2329
+ const createEmptyServerState = () => ({
2330
+ selectedServer: null,
2331
+ servers: [],
2332
+ variables: []
2333
+ });
2334
+ const server = reactive(createEmptyServerState());
2335
+ const setServer = (newState) => {
2336
+ Object.assign(server, {
2337
+ ...server,
2338
+ ...newState
2339
+ });
2340
+ };
2341
+ const useServerStore = () => ({
2342
+ server,
2343
+ setServer
2344
+ });
2327
2345
  const httpHeaders = [
2328
2346
  {
2329
2347
  name: "Accept",
@@ -2886,7 +2904,7 @@ const requestMethodAbbreviations = {
2886
2904
  CONNECT: "CONN",
2887
2905
  TRACE: "TRACE"
2888
2906
  };
2889
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
2907
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
2890
2908
  __name: "HttpMethod",
2891
2909
  props: {
2892
2910
  as: {},
@@ -14050,7 +14068,7 @@ class MatchDecorator {
14050
14068
  updateDeco(update, deco) {
14051
14069
  let changeFrom = 1e9, changeTo = -1;
14052
14070
  if (update.docChanged)
14053
- update.changes.iterChanges((_f, _t, from, to) => {
14071
+ update.changes.iterChanges((_f, _t2, from, to) => {
14054
14072
  if (to > update.view.viewport.from && from < update.view.viewport.to) {
14055
14073
  changeFrom = Math.min(from, changeFrom);
14056
14074
  changeTo = Math.max(to, changeTo);
@@ -19937,7 +19955,7 @@ const completionPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
19937
19955
  if (update.transactions.some((tr) => tr.effects.some((e) => e.is(startCompletionEffect))))
19938
19956
  this.pendingStart = true;
19939
19957
  let delay = this.pendingStart ? 50 : update.state.facet(completionConfig).activateOnTypingDelay;
19940
- this.debounceUpdate = cState.active.some((a) => a.state == 1 && !this.running.some((q) => q.active.source == a.source)) ? setTimeout(() => this.startUpdate(), delay) : -1;
19958
+ this.debounceUpdate = cState.active.some((a) => a.state == 1 && !this.running.some((q2) => q2.active.source == a.source)) ? setTimeout(() => this.startUpdate(), delay) : -1;
19941
19959
  if (this.composing != 0)
19942
19960
  for (let tr of update.transactions) {
19943
19961
  if (getUserEvent(tr) == "input")
@@ -19971,7 +19989,7 @@ const completionPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
19971
19989
  });
19972
19990
  }
19973
19991
  scheduleAccept() {
19974
- if (this.running.every((q) => q.done !== void 0))
19992
+ if (this.running.every((q2) => q2.done !== void 0))
19975
19993
  this.accept();
19976
19994
  else if (this.debounceAccept < 0)
19977
19995
  this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(completionConfig).updateSyncTime);
@@ -25803,7 +25821,7 @@ function getCodeMirrorExtensions({
25803
25821
  }
25804
25822
  return extensions;
25805
25823
  }
25806
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
25824
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
25807
25825
  __name: "CodeMirror",
25808
25826
  props: {
25809
25827
  content: {},
@@ -25840,9 +25858,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
25840
25858
  };
25841
25859
  }
25842
25860
  });
25843
- const CodeMirror = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-5dbce8c1"]]);
25844
- const _hoisted_1$w = { class: "scalar-modal-layout modal-layout" };
25845
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
25861
+ const CodeMirror = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-5dbce8c1"]]);
25862
+ const _hoisted_1$x = { class: "scalar-modal-layout modal-layout" };
25863
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
25846
25864
  __name: "FlowModal",
25847
25865
  props: {
25848
25866
  state: {},
@@ -25858,7 +25876,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
25858
25876
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.state.hide())
25859
25877
  }, {
25860
25878
  default: withCtx(() => [
25861
- createElementVNode("div", _hoisted_1$w, [
25879
+ createElementVNode("div", _hoisted_1$x, [
25862
25880
  createVNode(unref(DialogPanel), {
25863
25881
  class: normalizeClass(["modal", {
25864
25882
  "modal-content-large": _ctx.variant === "large",
@@ -25897,7 +25915,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
25897
25915
  };
25898
25916
  }
25899
25917
  });
25900
- const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-4aafbf68"]]);
25918
+ const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-4aafbf68"]]);
25901
25919
  const useModal = () => reactive({
25902
25920
  open: false,
25903
25921
  show() {
@@ -25914,8 +25932,10 @@ const concatenateUrlAndPath = (url, path) => {
25914
25932
  if (typeof path !== "string" || !path.length) {
25915
25933
  return url;
25916
25934
  }
25917
- const urlWithSlash = url.endsWith("/") ? url : `${url}/`;
25918
- const pathWithoutSlash = path.startsWith("/") ? path.slice(1) : path;
25935
+ const trimmedUrl = url.trim();
25936
+ const trimmedPath = path.trim();
25937
+ const urlWithSlash = trimmedUrl.endsWith("/") ? trimmedUrl : `${trimmedUrl}/`;
25938
+ const pathWithoutSlash = trimmedPath.startsWith("/") ? trimmedPath.slice(1) : trimmedPath;
25919
25939
  return [urlWithSlash, pathWithoutSlash].join("");
25920
25940
  };
25921
25941
  function encodeStringAsBase64(value) {
@@ -26022,6 +26042,32 @@ function getSecretCredentialsFromAuthentication(authentication2) {
26022
26042
  authentication2.http.basic.password
26023
26043
  ].filter(Boolean);
26024
26044
  }
26045
+ function replaceVariables(value, variablesOrCallback) {
26046
+ const doubleCurlyBrackets = /{{\s*([\w.-]+)\s*}}/g;
26047
+ const singleCurlyBrackets = /{\s*([\w.-]+)\s*}/g;
26048
+ const callback = (_, match) => {
26049
+ var _a2;
26050
+ if (typeof variablesOrCallback === "function") {
26051
+ return variablesOrCallback(match);
26052
+ } else {
26053
+ return (_a2 = variablesOrCallback[match]) == null ? void 0 : _a2.toString();
26054
+ }
26055
+ };
26056
+ return value.replace(doubleCurlyBrackets, callback).replace(singleCurlyBrackets, callback);
26057
+ }
26058
+ function getUrlFromServerState(state2) {
26059
+ var _a2;
26060
+ const server2 = (_a2 = state2 == null ? void 0 : state2.servers) == null ? void 0 : _a2[state2.selectedServer ?? 0];
26061
+ const variables2 = state2.variables.reduce(
26062
+ (acc, variable2) => {
26063
+ acc[variable2.name] = variable2.value;
26064
+ return acc;
26065
+ },
26066
+ {}
26067
+ );
26068
+ const url = typeof (server2 == null ? void 0 : server2.url) === "string" ? replaceVariables(server2 == null ? void 0 : server2.url, variables2) : server2 == null ? void 0 : server2.url;
26069
+ return url;
26070
+ }
26025
26071
  function humanDiff(unixTimestamp) {
26026
26072
  const seconds = Math.floor(((/* @__PURE__ */ new Date()).getTime() - unixTimestamp) / 1e3);
26027
26073
  if (seconds < 45) {
@@ -26148,13 +26194,11 @@ const prepareClientRequestConfig = (configuration) => {
26148
26194
  ...request
26149
26195
  };
26150
26196
  };
26151
- const replaceVariables = (url, variables2) => {
26152
- return Object.entries(variables2).reduce((acc, [key, value]) => {
26153
- return acc.replace(`{${key}}`, value.toString());
26154
- }, url);
26155
- };
26156
26197
  function redirectToProxy(proxy, url) {
26157
- return `${proxy}?scalar_url=${encodeURI(url)}`;
26198
+ const newUrl = new URL(url);
26199
+ newUrl.href = proxy;
26200
+ newUrl.searchParams.append("scalar_url", url);
26201
+ return newUrl.toString();
26158
26202
  }
26159
26203
  function isRequestToLocalhost(url) {
26160
26204
  const { hostname } = new URL(url);
@@ -26275,10 +26319,10 @@ async function sendRequest(request, proxyUrl) {
26275
26319
  responseId: nanoid()
26276
26320
  };
26277
26321
  }
26278
- const _hoisted_1$v = { class: "navtable-item-40 navtable-item-request" };
26322
+ const _hoisted_1$w = { class: "navtable-item-40 navtable-item-request" };
26279
26323
  const _hoisted_2$o = { class: "navtable-item-40 navtable-item-response" };
26280
26324
  const _hoisted_3$g = { class: "navtable-item-20 navtable-item-time" };
26281
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
26325
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
26282
26326
  __name: "RequestHistoryItem",
26283
26327
  props: {
26284
26328
  history: {}
@@ -26299,7 +26343,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
26299
26343
  class: normalizeClass(["navtable-item", { "navtable-item__active": unref(activeRequestId2) === _ctx.history }]),
26300
26344
  onClick: _cache[0] || (_cache[0] = ($event) => unref(setActiveResponse2)(_ctx.history))
26301
26345
  }, [
26302
- createElementVNode("div", _hoisted_1$v, [
26346
+ createElementVNode("div", _hoisted_1$w, [
26303
26347
  createElementVNode("button", {
26304
26348
  class: normalizeClass(["radio", unref(requestHistory2)[_ctx.history].request.type.toLowerCase()]),
26305
26349
  type: "button"
@@ -26325,20 +26369,20 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
26325
26369
  };
26326
26370
  }
26327
26371
  });
26328
- const RequestHistoryItem = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-353c6d86"]]);
26329
- const _hoisted_1$u = { class: "navigation-content-item" };
26372
+ const RequestHistoryItem = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-353c6d86"]]);
26373
+ const _hoisted_1$v = { class: "navigation-content-item" };
26330
26374
  const _hoisted_2$n = { class: "navtable" };
26331
26375
  const _hoisted_3$f = { class: "navtable-table" };
26332
26376
  const _hoisted_4$b = /* @__PURE__ */ createStaticVNode('<div class="navtable-item navtable-item__top"><div class="navtable-item-40"><label for="">Request</label></div><div class="navtable-item-40"><label for="">Response</label></div><div class="navtable-item-20"><label for="">TIME</label></div></div>', 1);
26333
26377
  const _hoisted_5$8 = { class: "navtable-radios" };
26334
26378
  const _hoisted_6$5 = /* @__PURE__ */ createStaticVNode('<div class="navtable-mock"><div class="navtable-item"><div class="navtable-item-40"></div><div class="navtable-item-40"></div><div class="navtable-item-20"></div></div></div>', 1);
26335
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
26379
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
26336
26380
  __name: "RequestHistory",
26337
26381
  emits: ["toggle"],
26338
26382
  setup(__props) {
26339
26383
  const { requestHistoryOrder: requestHistoryOrder2 } = useRequestStore();
26340
26384
  return (_ctx, _cache) => {
26341
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
26385
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
26342
26386
  createElementVNode("div", _hoisted_2$n, [
26343
26387
  createElementVNode("div", _hoisted_3$f, [
26344
26388
  _hoisted_4$b,
@@ -26357,10 +26401,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
26357
26401
  };
26358
26402
  }
26359
26403
  });
26360
- const _hoisted_1$t = { class: "request-method-select" };
26404
+ const _hoisted_1$u = { class: "request-method-select" };
26361
26405
  const _hoisted_2$m = ["disabled", "value"];
26362
26406
  const _hoisted_3$e = ["value"];
26363
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
26407
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
26364
26408
  __name: "RequestMethodSelect",
26365
26409
  props: {
26366
26410
  requestMethod: {},
@@ -26380,7 +26424,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
26380
26424
  // 'TRACE',
26381
26425
  ];
26382
26426
  return (_ctx, _cache) => {
26383
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
26427
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
26384
26428
  createElementVNode("span", {
26385
26429
  class: normalizeClass(["request-method", { "request-method--disabled": _ctx.readOnly }])
26386
26430
  }, [
@@ -26402,9 +26446,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
26402
26446
  };
26403
26447
  }
26404
26448
  });
26405
- const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-0f1e5bdc"]]);
26449
+ const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-0f1e5bdc"]]);
26406
26450
  const _withScopeId$5 = (n) => (pushScopeId("data-v-b1791ec2"), n = n(), popScopeId(), n);
26407
- const _hoisted_1$s = {
26451
+ const _hoisted_1$t = {
26408
26452
  key: 0,
26409
26453
  class: "loader"
26410
26454
  };
@@ -26468,7 +26512,7 @@ const _hoisted_13 = [
26468
26512
  _hoisted_12
26469
26513
  ];
26470
26514
  const _hoisted_14 = { class: "address-bar-content" };
26471
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
26515
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
26472
26516
  __name: "AddressBar",
26473
26517
  props: {
26474
26518
  proxyUrl: {}
@@ -26526,7 +26570,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
26526
26570
  };
26527
26571
  return (_ctx, _cache) => {
26528
26572
  return openBlock(), createElementBlock(Fragment, null, [
26529
- loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$s)) : createCommentVNode("", true),
26573
+ loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$t)) : createCommentVNode("", true),
26530
26574
  createElementVNode("div", {
26531
26575
  class: normalizeClass(["address-bar", { "address-bar--with-history": showHistory.value }])
26532
26576
  }, [
@@ -26575,7 +26619,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
26575
26619
  variant: "history"
26576
26620
  }, {
26577
26621
  default: withCtx(() => [
26578
- createVNode(_sfc_main$y, {
26622
+ createVNode(_sfc_main$z, {
26579
26623
  showHistory: showHistory.value,
26580
26624
  onToggle: _cache[2] || (_cache[2] = ($event) => showHistory.value = !showHistory.value)
26581
26625
  }, null, 8, ["showHistory"])
@@ -26588,9 +26632,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
26588
26632
  };
26589
26633
  }
26590
26634
  });
26591
- const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-b1791ec2"]]);
26635
+ const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-b1791ec2"]]);
26592
26636
  const clickGeneratedParameter = useEventBus(Symbol());
26593
- const _hoisted_1$r = { class: "scalar-api-client-item-topbar" };
26637
+ const _hoisted_1$s = { class: "scalar-api-client-item-topbar" };
26594
26638
  const _hoisted_2$k = { class: "scalar-api-client__toggle-container" };
26595
26639
  const _hoisted_3$c = /* @__PURE__ */ createElementVNode("svg", {
26596
26640
  class: "scalar-api-client__toggle__icon",
@@ -26611,7 +26655,7 @@ const _hoisted_5$6 = {
26611
26655
  class: "scalar-api-client__item__options"
26612
26656
  };
26613
26657
  const _hoisted_6$3 = { class: "scalar-api-client__item__content" };
26614
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
26658
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
26615
26659
  __name: "CollapsibleSection",
26616
26660
  props: {
26617
26661
  title: {},
@@ -26641,7 +26685,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
26641
26685
  createElementVNode("div", {
26642
26686
  class: normalizeClass(["scalar-api-client__item", { "scalar-api-client__item--open": open }])
26643
26687
  }, [
26644
- createElementVNode("div", _hoisted_1$r, [
26688
+ createElementVNode("div", _hoisted_1$s, [
26645
26689
  createVNode(unref(DisclosureButton), {
26646
26690
  ref_key: "collapseButton",
26647
26691
  ref: collapseButton,
@@ -26675,15 +26719,29 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
26675
26719
  };
26676
26720
  }
26677
26721
  });
26678
- const _sfc_main$u = {};
26679
- const _hoisted_1$q = { class: "card-form" };
26680
- function _sfc_render$3(_ctx, _cache) {
26681
- return openBlock(), createElementBlock("form", _hoisted_1$q, [
26722
+ const state = {
26723
+ toast: () => null
26724
+ };
26725
+ function initializeToasts(toastFunction) {
26726
+ state.toast = toastFunction;
26727
+ }
26728
+ function useToasts() {
26729
+ return {
26730
+ initializeToasts,
26731
+ toast: (message, level = "info", options = { timeout: 3e3 }) => {
26732
+ state.toast(message, level, options);
26733
+ }
26734
+ };
26735
+ }
26736
+ const _sfc_main$v = {};
26737
+ const _hoisted_1$r = { class: "card-form" };
26738
+ function _sfc_render$4(_ctx, _cache) {
26739
+ return openBlock(), createElementBlock("form", _hoisted_1$r, [
26682
26740
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
26683
26741
  ]);
26684
26742
  }
26685
- const CardForm = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$3], ["__scopeId", "data-v-bc8cea71"]]);
26686
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
26743
+ const CardForm = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$4], ["__scopeId", "data-v-bc8cea71"]]);
26744
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
26687
26745
  __name: "CardFormButton",
26688
26746
  setup(__props, { expose: __expose }) {
26689
26747
  const el = ref();
@@ -26700,15 +26758,23 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
26700
26758
  };
26701
26759
  }
26702
26760
  });
26703
- const CardFormButton = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-6ae053e9"]]);
26761
+ const CardFormButton = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-6ae053e9"]]);
26762
+ const _sfc_main$t = {};
26763
+ const _hoisted_1$q = { class: "card-form-group" };
26764
+ function _sfc_render$3(_ctx, _cache) {
26765
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
26766
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
26767
+ ]);
26768
+ }
26769
+ const CardFormGroup = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$3], ["__scopeId", "data-v-d894ccf7"]]);
26704
26770
  const _sfc_main$s = {};
26705
- const _hoisted_1$p = { class: "card-form-group" };
26771
+ const _hoisted_1$p = { class: "card-form-rows" };
26706
26772
  function _sfc_render$2(_ctx, _cache) {
26707
26773
  return openBlock(), createElementBlock("div", _hoisted_1$p, [
26708
26774
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
26709
26775
  ]);
26710
26776
  }
26711
- const CardFormGroup = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$2], ["__scopeId", "data-v-d894ccf7"]]);
26777
+ const CardFormRows = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$2], ["__scopeId", "data-v-25140d72"]]);
26712
26778
  function r(e) {
26713
26779
  var t2, f, n = "";
26714
26780
  if ("string" == typeof e || "number" == typeof e)
@@ -30763,30 +30829,28 @@ var prism = { exports: {} };
30763
30829
  })();
30764
30830
  })(prism);
30765
30831
  var prismExports = prism.exports;
30766
- const R = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
30767
- const B = "scalar-component", Te = extendTailwindMerge({
30832
+ const z = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
30833
+ const Ae = extendTailwindMerge({
30768
30834
  extend: {
30769
30835
  classGroups: {
30770
- "font-size": ["text-xxs"],
30771
- // Add the scalar class prefix as a custom class to be deduped by tailwind-merge
30772
- [B]: [B]
30836
+ "font-size": ["text-xxs"]
30773
30837
  }
30774
30838
  }
30775
- }), { cva: L, cx: E, compose: Lt } = defineConfig({
30839
+ }), { cva: L, cx: E, compose: _t } = defineConfig({
30776
30840
  hooks: {
30777
- onComplete: (a) => `${Te(a, B)}`
30841
+ onComplete: (r2) => Ae(r2)
30778
30842
  }
30779
- }), Le = /* @__PURE__ */ createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>', 5), Re = {
30843
+ }), Ce = /* @__PURE__ */ createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>', 5), Te = {
30780
30844
  key: 0,
30781
30845
  class: "circular-loader"
30782
30846
  };
30783
- const ze = /* @__PURE__ */ defineComponent({
30847
+ const Le = /* @__PURE__ */ defineComponent({
30784
30848
  __name: "ScalarLoading",
30785
30849
  props: {
30786
30850
  loadingState: {},
30787
30851
  size: { default: "24px" }
30788
30852
  },
30789
- setup(a) {
30853
+ setup(r2) {
30790
30854
  return useCssVars((t2) => ({
30791
30855
  d6cae758: t2.size
30792
30856
  })), (t2, e) => t2.loadingState ? (openBlock(), createElementBlock("div", {
@@ -30802,8 +30866,8 @@ const ze = /* @__PURE__ */ defineComponent({
30802
30866
  xmlns: "http://www.w3.org/2000/svg",
30803
30867
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
30804
30868
  }, [
30805
- Le,
30806
- t2.loadingState.isLoading ? (openBlock(), createElementBlock("g", Re, [
30869
+ Ce,
30870
+ t2.loadingState.isLoading ? (openBlock(), createElementBlock("g", Te, [
30807
30871
  createElementVNode("circle", {
30808
30872
  class: normalizeClass(["loader-path", {
30809
30873
  "loader-path-off": t2.loadingState.isValid || t2.loadingState.isInvalid
@@ -30818,12 +30882,12 @@ const ze = /* @__PURE__ */ defineComponent({
30818
30882
  ], 2))
30819
30883
  ], 2)) : createCommentVNode("", true);
30820
30884
  }
30821
- }), O = (a, t2) => {
30822
- const e = a.__vccOpts || a;
30823
- for (const [r2, d] of t2)
30824
- e[r2] = d;
30885
+ }), P = (r2, t2) => {
30886
+ const e = r2.__vccOpts || r2;
30887
+ for (const [a, d] of t2)
30888
+ e[a] = d;
30825
30889
  return e;
30826
- }, M = /* @__PURE__ */ O(ze, [["__scopeId", "data-v-47faceda"]]), J = {
30890
+ }, X = /* @__PURE__ */ P(Le, [["__scopeId", "data-v-47faceda"]]), q = {
30827
30891
  solid: [
30828
30892
  "scalar-button-solid",
30829
30893
  "bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
@@ -30840,7 +30904,7 @@ const ze = /* @__PURE__ */ defineComponent({
30840
30904
  "scalar-button-danger",
30841
30905
  "bg-error text-white active:brightness-90 hocus:brightness-90"
30842
30906
  ]
30843
- }, De = L({
30907
+ }, ze = L({
30844
30908
  base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
30845
30909
  variants: {
30846
30910
  disabled: {
@@ -30848,7 +30912,7 @@ const ze = /* @__PURE__ */ defineComponent({
30848
30912
  },
30849
30913
  fullWidth: { true: "w-full" },
30850
30914
  size: { sm: "px-2 py-1 text-xs", md: "h-10 px-6 text-sm" },
30851
- variant: J
30915
+ variant: q
30852
30916
  },
30853
30917
  compoundVariants: [
30854
30918
  {
@@ -30857,13 +30921,13 @@ const ze = /* @__PURE__ */ defineComponent({
30857
30921
  class: "bg-transparent text-ghost"
30858
30922
  }
30859
30923
  ]
30860
- }), Pe = ["ariaDisabled", "type"], Oe = {
30924
+ }), Re = ["ariaDisabled", "type"], De = {
30861
30925
  key: 0,
30862
30926
  class: "mr-2 h-4 w-4"
30863
- }, Be = {
30927
+ }, Oe = {
30864
30928
  key: 1,
30865
30929
  class: "ml-2"
30866
- }, Me = /* @__PURE__ */ defineComponent({
30930
+ }, kt = /* @__PURE__ */ defineComponent({
30867
30931
  inheritAttrs: false,
30868
30932
  __name: "ScalarButton",
30869
30933
  props: {
@@ -30874,34 +30938,34 @@ const ze = /* @__PURE__ */ defineComponent({
30874
30938
  variant: { default: "solid" },
30875
30939
  type: { default: "button" }
30876
30940
  },
30877
- setup(a) {
30941
+ setup(r2) {
30878
30942
  const t2 = computed(() => {
30879
- const { class: e, ...r2 } = useAttrs();
30880
- return { class: e || "", rest: r2 };
30943
+ const { class: e, ...a } = useAttrs();
30944
+ return { class: e || "", rest: a };
30881
30945
  });
30882
- return (e, r2) => (openBlock(), createElementBlock("button", mergeProps(t2.value.rest, {
30946
+ return (e, a) => (openBlock(), createElementBlock("button", mergeProps(t2.value.rest, {
30883
30947
  ariaDisabled: e.disabled || void 0,
30884
30948
  class: unref(E)(
30885
- unref(De)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
30949
+ unref(ze)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
30886
30950
  { "pl-9 pr-3": e.loading },
30887
30951
  `${t2.value.class}`
30888
30952
  ),
30889
30953
  type: e.type
30890
30954
  }), [
30891
- e.$slots.icon ? (openBlock(), createElementBlock("div", Oe, [
30955
+ e.$slots.icon ? (openBlock(), createElementBlock("div", De, [
30892
30956
  renderSlot(e.$slots, "icon")
30893
30957
  ])) : createCommentVNode("", true),
30894
30958
  renderSlot(e.$slots, "default"),
30895
- e.loading ? (openBlock(), createElementBlock("div", Be, [
30896
- createVNode(unref(M), {
30959
+ e.loading ? (openBlock(), createElementBlock("div", Oe, [
30960
+ createVNode(unref(X), {
30897
30961
  loadingState: e.loading,
30898
30962
  size: "20px"
30899
30963
  }, null, 8, ["loadingState"])
30900
30964
  ])) : createCommentVNode("", true)
30901
- ], 16, Pe));
30965
+ ], 16, Re));
30902
30966
  }
30903
30967
  });
30904
- (function(a) {
30968
+ (function(r2) {
30905
30969
  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 = {
30906
30970
  pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
30907
30971
  lookbehind: true,
@@ -30909,7 +30973,7 @@ const ze = /* @__PURE__ */ defineComponent({
30909
30973
  // this looks reasonably well in all themes
30910
30974
  inside: null
30911
30975
  // see below
30912
- }, r2 = {
30976
+ }, a = {
30913
30977
  bash: e,
30914
30978
  environment: {
30915
30979
  pattern: RegExp("\\$" + t2),
@@ -30963,7 +31027,7 @@ const ze = /* @__PURE__ */ defineComponent({
30963
31027
  // Escape sequences from echo and printf's manuals, and escaped quotes.
30964
31028
  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})/
30965
31029
  };
30966
- a.languages.bash = {
31030
+ r2.languages.bash = {
30967
31031
  shebang: {
30968
31032
  pattern: /^#!\s*\/.*/,
30969
31033
  alias: "important"
@@ -31021,7 +31085,7 @@ const ze = /* @__PURE__ */ defineComponent({
31021
31085
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
31022
31086
  lookbehind: true,
31023
31087
  greedy: true,
31024
- inside: r2
31088
+ inside: a
31025
31089
  },
31026
31090
  // Here-document with quotes around the tag
31027
31091
  // → No expansion (so no “inside”).
@@ -31039,7 +31103,7 @@ const ze = /* @__PURE__ */ defineComponent({
31039
31103
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
31040
31104
  lookbehind: true,
31041
31105
  greedy: true,
31042
- inside: r2
31106
+ inside: a
31043
31107
  },
31044
31108
  {
31045
31109
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -31052,7 +31116,7 @@ const ze = /* @__PURE__ */ defineComponent({
31052
31116
  pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
31053
31117
  greedy: true,
31054
31118
  inside: {
31055
- entity: r2.entity
31119
+ entity: a.entity
31056
31120
  }
31057
31121
  }
31058
31122
  ],
@@ -31060,7 +31124,7 @@ const ze = /* @__PURE__ */ defineComponent({
31060
31124
  pattern: RegExp("\\$?" + t2),
31061
31125
  alias: "constant"
31062
31126
  },
31063
- variable: r2.variable,
31127
+ variable: a.variable,
31064
31128
  function: {
31065
31129
  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;|&])/,
31066
31130
  lookbehind: true
@@ -31099,7 +31163,7 @@ const ze = /* @__PURE__ */ defineComponent({
31099
31163
  pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
31100
31164
  lookbehind: true
31101
31165
  }
31102
- }, e.inside = a.languages.bash;
31166
+ }, e.inside = r2.languages.bash;
31103
31167
  for (var d = [
31104
31168
  "comment",
31105
31169
  "function-name",
@@ -31116,9 +31180,9 @@ const ze = /* @__PURE__ */ defineComponent({
31116
31180
  "operator",
31117
31181
  "punctuation",
31118
31182
  "number"
31119
- ], c = r2.variable[1].inside, s = 0; s < d.length; s++)
31120
- c[d[s]] = a.languages.bash[d[s]];
31121
- a.languages.sh = a.languages.bash, a.languages.shell = a.languages.bash;
31183
+ ], c = a.variable[1].inside, s = 0; s < d.length; s++)
31184
+ c[d[s]] = r2.languages.bash[d[s]];
31185
+ r2.languages.sh = r2.languages.bash, r2.languages.shell = r2.languages.bash;
31122
31186
  })(Prism);
31123
31187
  Prism.languages.json = {
31124
31188
  property: {
@@ -31148,7 +31212,7 @@ Prism.languages.webmanifest = Prism.languages.json;
31148
31212
  (function() {
31149
31213
  if (typeof Prism > "u" || typeof document > "u")
31150
31214
  return;
31151
- var a = "line-numbers", t2 = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
31215
+ var r2 = "line-numbers", t2 = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
31152
31216
  /**
31153
31217
  * Get node for provided line number
31154
31218
  *
@@ -31157,7 +31221,7 @@ Prism.languages.webmanifest = Prism.languages.json;
31157
31221
  * @returns {Element|undefined}
31158
31222
  */
31159
31223
  getLine: function(s, p) {
31160
- if (!(s.tagName !== "PRE" || !s.classList.contains(a))) {
31224
+ if (!(s.tagName !== "PRE" || !s.classList.contains(r2))) {
31161
31225
  var i = s.querySelector(".line-numbers-rows");
31162
31226
  if (i) {
31163
31227
  var g = parseInt(s.getAttribute("data-start"), 10) || 1, u = g + (i.children.length - 1);
@@ -31176,7 +31240,7 @@ Prism.languages.webmanifest = Prism.languages.json;
31176
31240
  * @returns {void}
31177
31241
  */
31178
31242
  resize: function(s) {
31179
- r2([s]);
31243
+ a([s]);
31180
31244
  },
31181
31245
  /**
31182
31246
  * Whether the plugin can assume that the units font sizes and margins are not depended on the size of
@@ -31190,7 +31254,7 @@ Prism.languages.webmanifest = Prism.languages.json;
31190
31254
  */
31191
31255
  assumeViewportIndependence: true
31192
31256
  };
31193
- function r2(s) {
31257
+ function a(s) {
31194
31258
  if (s = s.filter(function(i) {
31195
31259
  var g = d(i), u = g["white-space"];
31196
31260
  return u === "pre-wrap" || u === "pre-line";
@@ -31235,7 +31299,7 @@ Prism.languages.webmanifest = Prism.languages.json;
31235
31299
  }
31236
31300
  var c = void 0;
31237
31301
  window.addEventListener("resize", function() {
31238
- e.assumeViewportIndependence && c === window.innerWidth || (c = window.innerWidth, r2(Array.prototype.slice.call(document.querySelectorAll("pre." + a))));
31302
+ e.assumeViewportIndependence && c === window.innerWidth || (c = window.innerWidth, a(Array.prototype.slice.call(document.querySelectorAll("pre." + r2))));
31239
31303
  }), Prism.hooks.add("complete", function(s) {
31240
31304
  if (s.code) {
31241
31305
  var p = (
@@ -31245,43 +31309,43 @@ Prism.languages.webmanifest = Prism.languages.json;
31245
31309
  /** @type {HTMLElement} */
31246
31310
  p.parentNode
31247
31311
  );
31248
- if (!(!i || !/pre/i.test(i.nodeName)) && !p.querySelector(".line-numbers-rows") && Prism.util.isActive(p, a)) {
31249
- p.classList.remove(a), i.classList.add(a);
31312
+ if (!(!i || !/pre/i.test(i.nodeName)) && !p.querySelector(".line-numbers-rows") && Prism.util.isActive(p, r2)) {
31313
+ p.classList.remove(r2), i.classList.add(r2);
31250
31314
  var g = s.code.match(t2), u = g ? g.length + 1 : 1, o, f = new Array(u + 1).join("<span></span>");
31251
- o = document.createElement("span"), o.setAttribute("aria-hidden", "true"), o.className = "line-numbers-rows", o.innerHTML = f, i.hasAttribute("data-start") && (i.style.counterReset = "linenumber " + (parseInt(i.getAttribute("data-start"), 10) - 1)), s.element.appendChild(o), r2([i]), Prism.hooks.run("line-numbers", s);
31315
+ o = document.createElement("span"), o.setAttribute("aria-hidden", "true"), o.className = "line-numbers-rows", o.innerHTML = f, i.hasAttribute("data-start") && (i.style.counterReset = "linenumber " + (parseInt(i.getAttribute("data-start"), 10) - 1)), s.element.appendChild(o), a([i]), Prism.hooks.run("line-numbers", s);
31252
31316
  }
31253
31317
  }
31254
31318
  }), Prism.hooks.add("line-numbers", function(s) {
31255
31319
  s.plugins = s.plugins || {}, s.plugins.lineNumbers = true;
31256
31320
  });
31257
31321
  })();
31258
- function He(a) {
31322
+ function Pe(r2) {
31259
31323
  const t2 = /* @__PURE__ */ new Set();
31260
31324
  return JSON.stringify(
31261
- a,
31262
- (e, r2) => {
31263
- if (typeof r2 == "object" && r2 !== null) {
31264
- if (t2.has(r2))
31325
+ r2,
31326
+ (e, a) => {
31327
+ if (typeof a == "object" && a !== null) {
31328
+ if (t2.has(a))
31265
31329
  return "[Circular]";
31266
- t2.add(r2);
31330
+ t2.add(a);
31267
31331
  }
31268
- return r2;
31332
+ return a;
31269
31333
  },
31270
31334
  2
31271
31335
  );
31272
31336
  }
31273
- function P(a) {
31274
- if (typeof a == "string")
31275
- return a;
31276
- if (typeof a == "object")
31337
+ function O(r2) {
31338
+ if (typeof r2 == "string")
31339
+ return r2;
31340
+ if (typeof r2 == "object")
31277
31341
  try {
31278
- return JSON.stringify(a, null, 2);
31342
+ return JSON.stringify(r2, null, 2);
31279
31343
  } catch {
31280
- return He(a);
31344
+ return Pe(r2);
31281
31345
  }
31282
- return a;
31346
+ return r2;
31283
31347
  }
31284
- const Ge = ["innerHTML"], zt = /* @__PURE__ */ defineComponent({
31348
+ const Be = ["innerHTML"], Et = /* @__PURE__ */ defineComponent({
31285
31349
  __name: "ScalarCodeBlock",
31286
31350
  props: {
31287
31351
  content: {},
@@ -31289,9 +31353,9 @@ const Ge = ["innerHTML"], zt = /* @__PURE__ */ defineComponent({
31289
31353
  lineNumbers: { type: Boolean, default: false },
31290
31354
  hideCredentials: {}
31291
31355
  },
31292
- setup(a) {
31293
- const t2 = a, e = createHash(P(t2.content)), r2 = `components-scalar-code-block${e}`, { plugins: d, highlightElement: c } = R;
31294
- t2.hideCredentials && R.hooks.add("wrap", function(o) {
31356
+ setup(r2) {
31357
+ const t2 = r2, e = createHash(O(t2.content)), a = `components-scalar-code-block${e}`, { plugins: d, highlightElement: c } = z;
31358
+ t2.hideCredentials && z.hooks.add("wrap", function(o) {
31295
31359
  if (!t2.hideCredentials)
31296
31360
  return;
31297
31361
  let f = false;
@@ -31308,7 +31372,7 @@ const Ge = ["innerHTML"], zt = /* @__PURE__ */ defineComponent({
31308
31372
  (l) => `<span class="credentials">${l}</span>`
31309
31373
  ));
31310
31374
  });
31311
- const s = ref(null), p = ref(ssrState[r2] ?? ""), i = computed(() => t2.lang === "node" ? "js" : t2.lang), g = t2.lang;
31375
+ const s = ref(null), p = ref(ssrState[a] ?? ""), i = computed(() => t2.lang === "node" ? "js" : t2.lang), g = t2.lang;
31312
31376
  watch(
31313
31377
  [() => t2.lang, () => t2.content, s],
31314
31378
  () => {
@@ -31319,18 +31383,18 @@ const Ge = ["innerHTML"], zt = /* @__PURE__ */ defineComponent({
31319
31383
  const u = /\n(?!$)/g;
31320
31384
  return onServerPrefetch(async () => {
31321
31385
  let o = "";
31322
- t2.lineNumbers && R.hooks.add("after-tokenize", (l) => {
31386
+ t2.lineNumbers && z.hooks.add("after-tokenize", (l) => {
31323
31387
  const k = l.code.match(u), C2 = k ? k.length + 1 : 1;
31324
31388
  o = `<span aria-hidden="true" class="line-numbers-rows">${new Array(C2 + 1).join("<span></span>")}</span>`;
31325
31389
  });
31326
- const f = R.highlight(
31327
- P(t2.content),
31328
- R.languages[i.value],
31390
+ const f = z.highlight(
31391
+ O(t2.content),
31392
+ z.languages[i.value],
31329
31393
  i.value
31330
31394
  );
31331
31395
  if (p.value = f + o, e !== 0) {
31332
31396
  const l = useSSRContext();
31333
- l.payload.data[r2] = f + o;
31397
+ l.payload.data[a] = f + o;
31334
31398
  }
31335
31399
  }), onMounted(async () => {
31336
31400
  await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"), d.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
@@ -31345,27 +31409,27 @@ const Ge = ["innerHTML"], zt = /* @__PURE__ */ defineComponent({
31345
31409
  p.value ? (openBlock(), createElementBlock("code", {
31346
31410
  key: 0,
31347
31411
  class: normalizeClass(`scalar-codeblock-code language-${i.value}`),
31348
- innerHTML: unref(P)(p.value)
31349
- }, null, 10, Ge)) : (openBlock(), createElementBlock("code", {
31412
+ innerHTML: unref(O)(p.value)
31413
+ }, null, 10, Be)) : (openBlock(), createElementBlock("code", {
31350
31414
  key: 1,
31351
31415
  ref_key: "el",
31352
31416
  ref: s,
31353
31417
  class: normalizeClass(`scalar-codeblock-code language-${i.value}`)
31354
- }, toDisplayString(unref(P)(o.content)), 3))
31418
+ }, toDisplayString(unref(O)(o.content)), 3))
31355
31419
  ], 2));
31356
31420
  }
31357
31421
  });
31358
- const F = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZgYXx-DzyQwJvS.js"), "./ArrowLeft.svg": () => import("./ArrowLeft-aY17W2aS-DFSAtOMh.js"), "./ArrowRight.svg": () => import("./ArrowRight-DEMtdoE7-D3Vz1S5q.js"), "./Background.svg": () => import("./Background-DcRhSHgf-DMULXelH.js"), "./Brackets.svg": () => import("./Brackets-4I8OKomf-BdIXlrTs.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG-IxKqRWkx.js"), "./CallToAction.svg": () => import("./CallToAction-EyQKkvbg-D5UsQ4YH.js"), "./Checkmark.svg": () => import("./Checkmark-De7nq6cG-CenVOav7.js"), "./ChevronDown.svg": () => import("./ChevronDown-Co7EAKAv-DHNwXUbS.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DYt0idAu-DAzCtmws.js"), "./ChevronRight.svg": () => import("./ChevronRight-ylxToVWl-CDFDuBE1.js"), "./ChevronUp.svg": () => import("./ChevronUp-xAnukIfj-CuKFLVD3.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-CW3z42qZ-CeX6s3FA.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cv_igzJE-CoWfaY0Z.js"), "./Cookie.svg": () => import("./Cookie-CEHvXpqB-D960ImBy.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./Delete.svg": () => import("./Delete-BCZmxrDD-BHoCf_u4.js"), "./Discord.svg": () => import("./Discord-BHYOFBB2-NYBGYy-_.js"), "./DocsPage.svg": () => import("./DocsPage-rh2xwxKN-BP1Vagfm.js"), "./Duplicate.svg": () => import("./Duplicate-BPlzNpcf-DbmFK0XC.js"), "./Edit.svg": () => import("./Edit-Br04RNYb-BhCyac4t.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./Error.svg": () => import("./Error-B_RGtWJI-D9KV-EvG.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7-ANJEzoHO.js"), "./FilterList.svg": () => import("./FilterList-CsAcE9em-aybThY1V.js"), "./Folder.svg": () => import("./Folder-Cdcj4evh-B-g7TtzK.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./Hide.svg": () => import("./Hide-DBLY4PPo-BhzEnovw.js"), "./History.svg": () => import("./History-D9nmhNIn-BU9mR55a.js"), "./JsonObject.svg": () => import("./JsonObject-hGdHUQ4M-Cm1hXgAn.js"), "./Key.svg": () => import("./Key-CWXJqX28-DdNUhB11.js"), "./Leave.svg": () => import("./Leave-K1J3uwoG-WgTmlwgs.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Link.svg": () => import("./Link-Bzuc__Nc-Bvtx0HZG.js"), "./Lock.svg": () => import("./Lock-xhiH1mKz-Rrlr3fGv.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"), "./Magic.svg": () => import("./Magic-Dsi9_bEc-BYN42_eH.js"), "./Menu.svg": () => import("./Menu-CFK5cOsm-CqE9Tsgr.js"), "./Page.svg": () => import("./Page-B7rVuhpl-BUIogUij.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Payment.svg": () => import("./Payment-hzcXP1Xb-B2G1p4-i.js"), "./Play.svg": () => import("./Play-BrVagRQA-DBrajcXb.js"), "./Refresh.svg": () => import("./Refresh-Be6vHEEi-C6lRqFiM.js"), "./Response.svg": () => import("./Response-Dq9pM-ZU-DcYb8u84.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./Show.svg": () => import("./Show-CMsTZAgT-CXpigRDn.js"), "./SideBarClosed.svg": () => import("./SideBarClosed-CYUNS2XM-CyAn6Mp2.js"), "./SideBarOpen.svg": () => import("./SideBarOpen-BOxW49_U-D5IKtkfP.js"), "./Sort.svg": () => import("./Sort-oTjBhJFQ-yW_ZNUnN.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5-vWaGU4_z.js"), "./ThumbsDown.svg": () => import("./ThumbsDown-BMgnsASL-B2YFxB8i.js"), "./ThumbsUp.svg": () => import("./ThumbsUp-C1j6zY2j-DKqh3z1D.js"), "./Trash.svg": () => import("./Trash-BpA3zWPD-BAjuQdys.js"), "./Unlock.svg": () => import("./Unlock-CY8UqJoE-CrwInjK9.js"), "./Upload.svg": () => import("./Upload-REIdL7RI-CsfWPmbV.js"), "./User.svg": () => import("./User-Df5svMQ3-BD7IWPQQ.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") }), U = (a) => {
31359
- const t2 = `./${a}.svg`;
31360
- return F[t2] ? defineAsyncComponent(F[t2]) : (console.warn(`Could not find icon: ${a}`), null);
31361
- }, Ye = ["src"], G = /* @__PURE__ */ defineComponent({
31422
+ const H = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZgYXx-DzyQwJvS.js"), "./ArrowLeft.svg": () => import("./ArrowLeft-aY17W2aS-DFSAtOMh.js"), "./ArrowRight.svg": () => import("./ArrowRight-DEMtdoE7-D3Vz1S5q.js"), "./Background.svg": () => import("./Background-DcRhSHgf-DMULXelH.js"), "./Brackets.svg": () => import("./Brackets-4I8OKomf-BdIXlrTs.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG-IxKqRWkx.js"), "./CallToAction.svg": () => import("./CallToAction-EyQKkvbg-D5UsQ4YH.js"), "./Checkmark.svg": () => import("./Checkmark-De7nq6cG-CenVOav7.js"), "./ChevronDown.svg": () => import("./ChevronDown-Co7EAKAv-DHNwXUbS.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DYt0idAu-DAzCtmws.js"), "./ChevronRight.svg": () => import("./ChevronRight-ylxToVWl-CDFDuBE1.js"), "./ChevronUp.svg": () => import("./ChevronUp-xAnukIfj-CuKFLVD3.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-CW3z42qZ-CeX6s3FA.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cv_igzJE-CoWfaY0Z.js"), "./Cookie.svg": () => import("./Cookie-CEHvXpqB-D960ImBy.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./Delete.svg": () => import("./Delete-BCZmxrDD-BHoCf_u4.js"), "./Discord.svg": () => import("./Discord-BHYOFBB2-NYBGYy-_.js"), "./DocsPage.svg": () => import("./DocsPage-rh2xwxKN-BP1Vagfm.js"), "./Duplicate.svg": () => import("./Duplicate-BPlzNpcf-DbmFK0XC.js"), "./Edit.svg": () => import("./Edit-Br04RNYb-BhCyac4t.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./Error.svg": () => import("./Error-B_RGtWJI-D9KV-EvG.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7-ANJEzoHO.js"), "./FilterList.svg": () => import("./FilterList-CsAcE9em-aybThY1V.js"), "./Folder.svg": () => import("./Folder-Cdcj4evh-B-g7TtzK.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./Hide.svg": () => import("./Hide-DBLY4PPo-BhzEnovw.js"), "./History.svg": () => import("./History-D9nmhNIn-BU9mR55a.js"), "./JsonObject.svg": () => import("./JsonObject-hGdHUQ4M-Cm1hXgAn.js"), "./Key.svg": () => import("./Key-CWXJqX28-DdNUhB11.js"), "./Leave.svg": () => import("./Leave-K1J3uwoG-WgTmlwgs.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Link.svg": () => import("./Link-Bzuc__Nc-Bvtx0HZG.js"), "./Lock.svg": () => import("./Lock-xhiH1mKz-Rrlr3fGv.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"), "./Magic.svg": () => import("./Magic-Dsi9_bEc-BYN42_eH.js"), "./Menu.svg": () => import("./Menu-CFK5cOsm-CqE9Tsgr.js"), "./Page.svg": () => import("./Page-B7rVuhpl-BUIogUij.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Payment.svg": () => import("./Payment-hzcXP1Xb-B2G1p4-i.js"), "./Play.svg": () => import("./Play-BrVagRQA-DBrajcXb.js"), "./Refresh.svg": () => import("./Refresh-Be6vHEEi-C6lRqFiM.js"), "./Response.svg": () => import("./Response-Dq9pM-ZU-DcYb8u84.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./Show.svg": () => import("./Show-CMsTZAgT-CXpigRDn.js"), "./SideBarClosed.svg": () => import("./SideBarClosed-CYUNS2XM-CyAn6Mp2.js"), "./SideBarOpen.svg": () => import("./SideBarOpen-BOxW49_U-D5IKtkfP.js"), "./Sort.svg": () => import("./Sort-oTjBhJFQ-yW_ZNUnN.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5-vWaGU4_z.js"), "./ThumbsDown.svg": () => import("./ThumbsDown-BMgnsASL-B2YFxB8i.js"), "./ThumbsUp.svg": () => import("./ThumbsUp-C1j6zY2j-DKqh3z1D.js"), "./Trash.svg": () => import("./Trash-BpA3zWPD-BAjuQdys.js"), "./Unlock.svg": () => import("./Unlock-CY8UqJoE-CrwInjK9.js"), "./Upload.svg": () => import("./Upload-REIdL7RI-CsfWPmbV.js"), "./User.svg": () => import("./User-Df5svMQ3-BD7IWPQQ.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") }), M = (r2) => {
31423
+ const t2 = `./${r2}.svg`;
31424
+ return H[t2] ? defineAsyncComponent(H[t2]) : (console.warn(`Could not find icon: ${r2}`), null);
31425
+ }, Ue = ["src"], Y = /* @__PURE__ */ defineComponent({
31362
31426
  __name: "ScalarIcon",
31363
31427
  props: {
31364
31428
  icon: {},
31365
31429
  size: {}
31366
31430
  },
31367
- setup(a) {
31368
- const t2 = a, e = L({
31431
+ setup(r2) {
31432
+ const t2 = r2, e = L({
31369
31433
  variants: {
31370
31434
  size: {
31371
31435
  xs: "size-3 stroke-[1.4]",
@@ -31381,16 +31445,16 @@ const F = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZg
31381
31445
  defaultVariants: {
31382
31446
  size: "full"
31383
31447
  }
31384
- }), r2 = U(t2.icon);
31385
- return (d, c) => unref(r2) ? (openBlock(), createBlock(resolveDynamicComponent(unref(U)(d.icon)), {
31448
+ }), a = M(t2.icon);
31449
+ return (d, c) => unref(a) ? (openBlock(), createBlock(resolveDynamicComponent(unref(M)(d.icon)), {
31386
31450
  key: 0,
31387
31451
  class: normalizeClass(unref(E)("scalar-icon", unref(e)({ size: d.size })))
31388
31452
  }, null, 8, ["class"])) : (openBlock(), createElementBlock("img", {
31389
31453
  key: 1,
31390
31454
  src: d.icon
31391
- }, null, 8, Ye));
31455
+ }, null, 8, Ue));
31392
31456
  }
31393
- }), Je = ["ariaDisabled"], Ze = { class: "sr-only" }, Z = /* @__PURE__ */ defineComponent({
31457
+ }), je = ["ariaDisabled"], We = { class: "sr-only" }, Xe = /* @__PURE__ */ defineComponent({
31394
31458
  __name: "ScalarIconButton",
31395
31459
  props: {
31396
31460
  label: {},
@@ -31399,7 +31463,7 @@ const F = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZg
31399
31463
  variant: { default: "ghost" },
31400
31464
  size: { default: "md" }
31401
31465
  },
31402
- setup(a) {
31466
+ setup(r2) {
31403
31467
  const t2 = L({
31404
31468
  base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
31405
31469
  variants: {
@@ -31413,20 +31477,20 @@ const F = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZg
31413
31477
  disabled: {
31414
31478
  true: "cursor-not-allowed shadow-none"
31415
31479
  },
31416
- variant: J
31480
+ variant: q
31417
31481
  }
31418
31482
  }), e = computed(() => {
31419
- const { class: r2, ...d } = useAttrs();
31420
- return { class: r2 || "", rest: d };
31483
+ const { class: a, ...d } = useAttrs();
31484
+ return { class: a || "", rest: d };
31421
31485
  });
31422
- return (r2, d) => (openBlock(), createElementBlock("button", mergeProps(e.value.rest, {
31423
- ariaDisabled: r2.disabled || void 0,
31424
- class: unref(E)(unref(t2)({ size: r2.size, variant: r2.variant, disabled: r2.disabled }), e.value.class),
31486
+ return (a, d) => (openBlock(), createElementBlock("button", mergeProps(e.value.rest, {
31487
+ ariaDisabled: a.disabled || void 0,
31488
+ class: unref(E)(unref(t2)({ size: a.size, variant: a.variant, disabled: a.disabled }), e.value.class),
31425
31489
  type: "button"
31426
31490
  }), [
31427
- createVNode(unref(G), { icon: r2.icon }, null, 8, ["icon"]),
31428
- createElementVNode("span", Ze, toDisplayString(r2.label), 1)
31429
- ], 16, Je));
31491
+ createVNode(unref(Y), { icon: a.icon }, null, 8, ["icon"]),
31492
+ createElementVNode("span", We, toDisplayString(a.label), 1)
31493
+ ], 16, je));
31430
31494
  }
31431
31495
  });
31432
31496
  const _hoisted_1$o = { class: "card-form-input" };
@@ -31459,7 +31523,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
31459
31523
  spellcheck: "false",
31460
31524
  type: inputType.value
31461
31525
  }), null, 16, _hoisted_3$b),
31462
- _ctx.type === "password" ? (openBlock(), createBlock(unref(Z), {
31526
+ _ctx.type === "password" ? (openBlock(), createBlock(unref(Xe), {
31463
31527
  key: 0,
31464
31528
  class: "password-mask",
31465
31529
  icon: mask.value ? "Show" : "Hide",
@@ -31516,7 +31580,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
31516
31580
  createTextVNode(" Scopes " + toDisplayString(model.value.length), 1),
31517
31581
  _hoisted_2$i,
31518
31582
  createTextVNode(toDisplayString(Object.entries(_ctx.scopes).length) + " ", 1),
31519
- createVNode(unref(G), {
31583
+ createVNode(unref(Y), {
31520
31584
  icon: open ? "ChevronUp" : "ChevronDown",
31521
31585
  size: "sm"
31522
31586
  }, null, 8, ["icon"])
@@ -31577,9 +31641,12 @@ const SecuritySchemeScopes = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scope
31577
31641
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
31578
31642
  __name: "SecurityScheme",
31579
31643
  props: {
31580
- value: {}
31644
+ value: {},
31645
+ proxy: {}
31581
31646
  },
31582
31647
  setup(__props) {
31648
+ const { toast } = useToasts();
31649
+ const { server: server2 } = useServerStore();
31583
31650
  const { authentication: authentication2, setAuthentication: setAuthentication2 } = useAuthenticationStore();
31584
31651
  const handleApiKeyTokenInput = (event) => {
31585
31652
  setAuthentication2({
@@ -31630,7 +31697,23 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
31630
31697
  }
31631
31698
  });
31632
31699
  };
31633
- const getOpenAuth2AuthorizationUrl = (flow) => {
31700
+ const handleOAuth2UsernameInput = (event) => {
31701
+ setAuthentication2({
31702
+ oAuth2: {
31703
+ ...authentication2.oAuth2,
31704
+ username: event.target.value
31705
+ }
31706
+ });
31707
+ };
31708
+ const handleOAuth2PasswordInput = (event) => {
31709
+ setAuthentication2({
31710
+ oAuth2: {
31711
+ ...authentication2.oAuth2,
31712
+ password: event.target.value
31713
+ }
31714
+ });
31715
+ };
31716
+ function getOpenAuth2AuthorizationUrl(flow) {
31634
31717
  const scopes = authentication2.oAuth2.scopes.join(" ");
31635
31718
  const state2 = (Math.random() + 1).toString(36).substring(7);
31636
31719
  const url = new URL(flow.authorizationUrl);
@@ -31643,7 +31726,45 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
31643
31726
  url.searchParams.set("scope", scopes);
31644
31727
  url.searchParams.set("state", state2);
31645
31728
  return url.toString();
31646
- };
31729
+ }
31730
+ function authorizeWithPassword(tokenUrl, options) {
31731
+ if (typeof tokenUrl !== "string") {
31732
+ console.log("tokenUrl is not a string");
31733
+ return;
31734
+ }
31735
+ const urlAndPath = (options == null ? void 0 : options.baseUrl) && !tokenUrl.startsWith("http") ? concatenateUrlAndPath(options == null ? void 0 : options.baseUrl, tokenUrl) : tokenUrl;
31736
+ const url = new URL(urlAndPath);
31737
+ url.searchParams.set("grant_type", "password");
31738
+ url.searchParams.set("username", authentication2.oAuth2.username);
31739
+ url.searchParams.set("password", authentication2.oAuth2.password);
31740
+ url.searchParams.set("client_id", authentication2.oAuth2.clientId);
31741
+ url.searchParams.set("scope", authentication2.oAuth2.scopes.join(" "));
31742
+ fetch(
31743
+ (options == null ? void 0 : options.proxy) ? redirectToProxy(options == null ? void 0 : options.proxy, url.toString()) : url.toString(),
31744
+ {
31745
+ method: "POST",
31746
+ headers: {
31747
+ "Content-Type": "application/x-www-form-urlencoded"
31748
+ }
31749
+ }
31750
+ ).then((response) => {
31751
+ if (!response.ok) {
31752
+ throw new Error(
31753
+ "Failed to get an access token. Please check your credentials."
31754
+ );
31755
+ }
31756
+ return response.json();
31757
+ }).then((data) => {
31758
+ setAuthentication2({
31759
+ oAuth2: { ...authentication2.oAuth2, accessToken: data.access_token }
31760
+ });
31761
+ }).catch((response) => {
31762
+ toast(`Couldn’t retrieve the password grant token`, "warn", {
31763
+ description: "Open your browser console to get more information."
31764
+ });
31765
+ console.error("[authorizeWithPassword]", response);
31766
+ });
31767
+ }
31647
31768
  const oauth2SelectedScopes = computed({
31648
31769
  get: () => authentication2.oAuth2.scopes,
31649
31770
  set: (scopes) => setAuthentication2({ oAuth2: { ...authentication2.oAuth2, scopes } })
@@ -31729,66 +31850,157 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
31729
31850
  ]),
31730
31851
  _: 1
31731
31852
  }, 8, ["value"])) : createCommentVNode("", true)
31732
- ], 64)) : _ctx.value.type.toLowerCase() === "oauth2" && _ctx.value.flows && _ctx.value.flows.implicit ? (openBlock(), createBlock(CardFormGroup, { key: 2 }, {
31853
+ ], 64)) : _ctx.value.type.toLowerCase() === "oauth2" && _ctx.value.flows ? (openBlock(), createBlock(CardFormGroup, { key: 2 }, {
31733
31854
  default: withCtx(() => [
31734
- unref(authentication2).oAuth2.accessToken ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31735
- createVNode(CardFormTextInput, {
31736
- id: "oAuth2.accessToken",
31737
- placeholder: "xxxxx",
31738
- type: "password",
31739
- value: unref(authentication2).oAuth2.accessToken
31740
- }, {
31741
- default: withCtx(() => [
31742
- createTextVNode(" Access Token ")
31743
- ]),
31744
- _: 1
31745
- }, 8, ["value"]),
31746
- createVNode(CardFormButton, {
31747
- onClick: _cache[0] || (_cache[0] = () => unref(setAuthentication2)({
31748
- oAuth2: {
31749
- ...unref(authentication2).oAuth2,
31750
- accessToken: "",
31751
- state: ""
31752
- }
31753
- }))
31754
- }, {
31755
- default: withCtx(() => [
31756
- createTextVNode(" Reset ")
31757
- ]),
31758
- _: 1
31759
- })
31760
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
31761
- createVNode(CardFormTextInput, {
31762
- id: "oAuth2.clientId",
31763
- placeholder: "12345",
31764
- type: "text",
31765
- value: unref(authentication2).oAuth2.clientId,
31766
- onInput: handleOpenAuth2ClientIdInput
31767
- }, {
31768
- default: withCtx(() => [
31769
- createTextVNode(" Client ID ")
31770
- ]),
31771
- _: 1
31772
- }, 8, ["value"]),
31773
- _ctx.value !== void 0 ? (openBlock(), createBlock(SecuritySchemeScopes, {
31774
- key: 0,
31775
- selected: oauth2SelectedScopes.value,
31776
- "onUpdate:selected": _cache[1] || (_cache[1] = ($event) => oauth2SelectedScopes.value = $event),
31777
- scopes: _ctx.value.flows.implicit.scopes
31778
- }, null, 8, ["selected", "scopes"])) : createCommentVNode("", true),
31779
- createElementVNode("button", {
31780
- class: "cardform-auth-button",
31781
- onClick: _cache[2] || (_cache[2] = () => {
31782
- var _a3;
31783
- return startAuthentication(
31784
- getOpenAuth2AuthorizationUrl(
31785
- //@ts-ignore
31786
- (_a3 = _ctx.value) == null ? void 0 : _a3.flows.implicit
31787
- )
31788
- );
31855
+ _ctx.value.flows.implicit ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31856
+ unref(authentication2).oAuth2.accessToken ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31857
+ createVNode(CardFormTextInput, {
31858
+ id: "oAuth2.accessToken",
31859
+ placeholder: "xxxxx",
31860
+ type: "password",
31861
+ value: unref(authentication2).oAuth2.accessToken
31862
+ }, {
31863
+ default: withCtx(() => [
31864
+ createTextVNode(" Access Token ")
31865
+ ]),
31866
+ _: 1
31867
+ }, 8, ["value"]),
31868
+ createVNode(CardFormButton, {
31869
+ onClick: _cache[0] || (_cache[0] = () => unref(setAuthentication2)({
31870
+ oAuth2: {
31871
+ ...unref(authentication2).oAuth2,
31872
+ accessToken: "",
31873
+ state: ""
31874
+ }
31875
+ }))
31876
+ }, {
31877
+ default: withCtx(() => [
31878
+ createTextVNode(" Reset ")
31879
+ ]),
31880
+ _: 1
31789
31881
  })
31790
- }, " Authorize ")
31791
- ], 64))
31882
+ ], 64)) : createCommentVNode("", true)
31883
+ ], 64)) : createCommentVNode("", true),
31884
+ _ctx.value.flows.password ? (openBlock(), createBlock(CardFormRows, { key: 1 }, {
31885
+ default: withCtx(() => [
31886
+ createVNode(CardFormGroup, null, {
31887
+ default: withCtx(() => [
31888
+ createVNode(CardFormTextInput, {
31889
+ id: "oAuth2.username",
31890
+ placeholder: "Username",
31891
+ value: unref(authentication2).oAuth2.username,
31892
+ onInput: handleOAuth2UsernameInput
31893
+ }, {
31894
+ default: withCtx(() => [
31895
+ createTextVNode(" Username ")
31896
+ ]),
31897
+ _: 1
31898
+ }, 8, ["value"]),
31899
+ createVNode(CardFormTextInput, {
31900
+ id: "oAuth2.password",
31901
+ placeholder: "Password",
31902
+ type: "password",
31903
+ value: unref(authentication2).oAuth2.password,
31904
+ onInput: handleOAuth2PasswordInput
31905
+ }, {
31906
+ default: withCtx(() => [
31907
+ createTextVNode(" Password ")
31908
+ ]),
31909
+ _: 1
31910
+ }, 8, ["value"])
31911
+ ]),
31912
+ _: 1
31913
+ }),
31914
+ createVNode(CardFormGroup, null, {
31915
+ default: withCtx(() => {
31916
+ var _a3, _b;
31917
+ return [
31918
+ createVNode(CardFormTextInput, {
31919
+ id: "oAuth2.clientId",
31920
+ placeholder: "12345",
31921
+ type: "text",
31922
+ value: unref(authentication2).oAuth2.clientId,
31923
+ onInput: handleOpenAuth2ClientIdInput
31924
+ }, {
31925
+ default: withCtx(() => [
31926
+ createTextVNode(" Client ID ")
31927
+ ]),
31928
+ _: 1
31929
+ }, 8, ["value"]),
31930
+ _ctx.value !== void 0 && Object.entries(
31931
+ ((_a3 = _ctx.value.flows.implicit) == null ? void 0 : _a3.scopes) ?? _ctx.value.flows.password.scopes
31932
+ ).length > 0 ? (openBlock(), createBlock(SecuritySchemeScopes, {
31933
+ key: 0,
31934
+ selected: oauth2SelectedScopes.value,
31935
+ "onUpdate:selected": _cache[1] || (_cache[1] = ($event) => oauth2SelectedScopes.value = $event),
31936
+ scopes: ((_b = _ctx.value.flows.implicit) == null ? void 0 : _b.scopes) ?? _ctx.value.flows.password.scopes
31937
+ }, null, 8, ["selected", "scopes"])) : createCommentVNode("", true),
31938
+ createElementVNode("button", {
31939
+ class: "cardform-auth-button",
31940
+ type: "button",
31941
+ onClick: _cache[2] || (_cache[2] = () => {
31942
+ var _a4, _b2;
31943
+ return authorizeWithPassword(
31944
+ (_b2 = (_a4 = _ctx.value.flows) == null ? void 0 : _a4.password) == null ? void 0 : _b2.tokenUrl,
31945
+ {
31946
+ baseUrl: unref(getUrlFromServerState)(unref(server2)),
31947
+ proxy: _ctx.proxy
31948
+ }
31949
+ );
31950
+ })
31951
+ }, " Authorize ")
31952
+ ];
31953
+ }),
31954
+ _: 1
31955
+ })
31956
+ ]),
31957
+ _: 1
31958
+ })) : (openBlock(), createBlock(CardFormRows, { key: 2 }, {
31959
+ default: withCtx(() => [
31960
+ createVNode(CardFormGroup, null, {
31961
+ default: withCtx(() => {
31962
+ var _a3, _b;
31963
+ return [
31964
+ createVNode(CardFormTextInput, {
31965
+ id: "oAuth2.clientId",
31966
+ placeholder: "12345",
31967
+ type: "text",
31968
+ value: unref(authentication2).oAuth2.clientId,
31969
+ onInput: handleOpenAuth2ClientIdInput
31970
+ }, {
31971
+ default: withCtx(() => [
31972
+ createTextVNode(" Client ID ")
31973
+ ]),
31974
+ _: 1
31975
+ }, 8, ["value"]),
31976
+ _ctx.value !== void 0 && Object.entries(
31977
+ ((_a3 = _ctx.value.flows.implicit) == null ? void 0 : _a3.scopes) ?? _ctx.value.flows.password.scopes
31978
+ ).length > 0 ? (openBlock(), createBlock(SecuritySchemeScopes, {
31979
+ key: 0,
31980
+ selected: oauth2SelectedScopes.value,
31981
+ "onUpdate:selected": _cache[3] || (_cache[3] = ($event) => oauth2SelectedScopes.value = $event),
31982
+ scopes: ((_b = _ctx.value.flows.implicit) == null ? void 0 : _b.scopes) ?? _ctx.value.flows.password.scopes
31983
+ }, null, 8, ["selected", "scopes"])) : createCommentVNode("", true),
31984
+ createElementVNode("button", {
31985
+ class: "cardform-auth-button",
31986
+ type: "button",
31987
+ onClick: _cache[4] || (_cache[4] = () => {
31988
+ var _a4, _b2;
31989
+ return startAuthentication(
31990
+ getOpenAuth2AuthorizationUrl(
31991
+ //@ts-ignore
31992
+ ((_a4 = _ctx.value) == null ? void 0 : _a4.flows.implicit) ?? ((_b2 = _ctx.value) == null ? void 0 : _b2.flows.password)
31993
+ )
31994
+ );
31995
+ })
31996
+ }, " Authorize ")
31997
+ ];
31998
+ }),
31999
+ _: 1
32000
+ })
32001
+ ]),
32002
+ _: 1
32003
+ }))
31792
32004
  ]),
31793
32005
  _: 1
31794
32006
  })) : createCommentVNode("", true)
@@ -31798,8 +32010,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
31798
32010
  };
31799
32011
  }
31800
32012
  });
31801
- const SecurityScheme = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-3eb93ac9"]]);
31802
- const _withScopeId$3 = (n) => (pushScopeId("data-v-b83bdfab"), n = n(), popScopeId(), n);
32013
+ const SecurityScheme = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-93b19e52"]]);
32014
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-daca0c64"), n = n(), popScopeId(), n);
31803
32015
  const _hoisted_1$m = {
31804
32016
  key: 0,
31805
32017
  class: "security-scheme-label"
@@ -31849,6 +32061,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
31849
32061
  return `${getAuthorizationTypeLabel(item)} (${key})`;
31850
32062
  };
31851
32063
  const getAuthorizationTypeLabel = (item) => {
32064
+ var _a2, _b;
31852
32065
  if (isNone(item)) {
31853
32066
  return "No Authentication";
31854
32067
  } else if (isApiKey(item)) {
@@ -31858,6 +32071,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
31858
32071
  } else if (isHttpBearer(item)) {
31859
32072
  return "Bearer Authentication";
31860
32073
  } else if (isOAuth2(item)) {
32074
+ if ((_a2 = item.flows) == null ? void 0 : _a2.implicit) {
32075
+ return "OAuth 2.0 Implicit";
32076
+ }
32077
+ if ((_b = item.flows) == null ? void 0 : _b.password) {
32078
+ return "OAuth 2.0 Password";
32079
+ }
31861
32080
  return "OAuth 2.0";
31862
32081
  }
31863
32082
  return `${item.type} (not yet supported)`;
@@ -31870,7 +32089,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
31870
32089
  (_b = _ctx.value) == null ? void 0 : _b[unref(authentication2).preferredSecurityScheme],
31871
32090
  unref(authentication2).preferredSecurityScheme
31872
32091
  ) : "None"), 1),
31873
- createVNode(unref(G), { icon: "ChevronDown" }),
32092
+ createVNode(unref(Y), { icon: "ChevronDown" }),
31874
32093
  createElementVNode("select", {
31875
32094
  value: unref(authentication2).preferredSecurityScheme,
31876
32095
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
@@ -31890,7 +32109,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
31890
32109
  };
31891
32110
  }
31892
32111
  });
31893
- const SecuritySchemeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-b83bdfab"]]);
32112
+ const SecuritySchemeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-daca0c64"]]);
31894
32113
  const _hoisted_1$l = {
31895
32114
  key: 0,
31896
32115
  class: "preferred-security-scheme"
@@ -31901,6 +32120,9 @@ const _hoisted_2$g = {
31901
32120
  };
31902
32121
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
31903
32122
  __name: "RequestAuthentication",
32123
+ props: {
32124
+ proxy: {}
32125
+ },
31904
32126
  setup(__props) {
31905
32127
  const requestAuthenticationRef = ref(null);
31906
32128
  clickGeneratedParameter.on(() => {
@@ -31931,7 +32153,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
31931
32153
  ref_key: "requestAuthenticationRef",
31932
32154
  ref: requestAuthenticationRef
31933
32155
  }, [
31934
- createVNode(unref(_sfc_main$v), { title: "Authentication" }, {
32156
+ createVNode(unref(_sfc_main$w), { title: "Authentication" }, {
31935
32157
  options: withCtx(() => [
31936
32158
  createVNode(SecuritySchemeSelector, {
31937
32159
  value: unref(authentication2).securitySchemes
@@ -31942,8 +32164,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
31942
32164
  return [
31943
32165
  unref(authentication2).preferredSecurityScheme ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
31944
32166
  createVNode(SecurityScheme, {
32167
+ proxy: _ctx.proxy,
31945
32168
  value: (_a2 = unref(authentication2).securitySchemes) == null ? void 0 : _a2[unref(authentication2).preferredSecurityScheme]
31946
- }, null, 8, ["value"])
32169
+ }, null, 8, ["proxy", "value"])
31947
32170
  ])) : createCommentVNode("", true),
31948
32171
  !unref(authentication2).securitySchemes ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
31949
32172
  createElementVNode("div", {
@@ -31970,7 +32193,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
31970
32193
  };
31971
32194
  }
31972
32195
  });
31973
- const RequestAuthentication = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-3fb420c2"]]);
32196
+ const RequestAuthentication = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9f62f731"]]);
31974
32197
  const _hoisted_1$k = { class: "table-row" };
31975
32198
  const _hoisted_2$f = { class: "table-row-meta" };
31976
32199
  const _hoisted_3$8 = { class: "table-row-item" };
@@ -32035,7 +32258,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
32035
32258
  _hoisted_3$7
32036
32259
  ]),
32037
32260
  meta: withCtx(() => [
32038
- createVNode(unref(Me), {
32261
+ createVNode(unref(kt), {
32039
32262
  class: "table-description-toggle",
32040
32263
  variant: "text",
32041
32264
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:showDescription", !_ctx.showDescription))
@@ -32267,7 +32490,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
32267
32490
  onClick: addHandler
32268
32491
  }, [
32269
32492
  createElementVNode("i", _hoisted_3$4, [
32270
- createVNode(unref(G), { icon: "Add" })
32493
+ createVNode(unref(Y), { icon: "Add" })
32271
32494
  ]),
32272
32495
  createTextVNode(" " + toDisplayString(_ctx.addLabel), 1)
32273
32496
  ])) : createCommentVNode("", true),
@@ -32279,7 +32502,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
32279
32502
  }, [
32280
32503
  createTextVNode(" Show More "),
32281
32504
  createElementVNode("i", _hoisted_4$3, [
32282
- createVNode(unref(G), { icon: "ChevronDown" })
32505
+ createVNode(unref(Y), { icon: "ChevronDown" })
32283
32506
  ])
32284
32507
  ])) : createCommentVNode("", true)
32285
32508
  ])
@@ -32340,7 +32563,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
32340
32563
  }
32341
32564
  };
32342
32565
  return (_ctx, _cache) => {
32343
- return openBlock(), createBlock(unref(_sfc_main$v), { title: "Body" }, {
32566
+ return openBlock(), createBlock(unref(_sfc_main$w), { title: "Body" }, {
32344
32567
  default: withCtx(() => [
32345
32568
  _ctx.body && _ctx.body.length === 0 && _ctx.formData && _ctx.formData.length === 0 ? (openBlock(), createElementBlock("span", _hoisted_1$e, "No Body")) : _ctx.formData && _ctx.formData.length > 0 ? (openBlock(), createBlock(unref(Grid), {
32346
32569
  key: 1,
@@ -32404,7 +32627,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
32404
32627
  return !!(((_a2 = props.cookies) == null ? void 0 : _a2.length) || ((_b = props.generatedCookies) == null ? void 0 : _b.length));
32405
32628
  });
32406
32629
  return (_ctx, _cache) => {
32407
- return openBlock(), createBlock(unref(_sfc_main$v), {
32630
+ return openBlock(), createBlock(unref(_sfc_main$w), {
32408
32631
  defaultOpen: hasCookies.value,
32409
32632
  title: "Cookies"
32410
32633
  }, {
@@ -32478,7 +32701,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
32478
32701
  return !!(((_a2 = props.headers) == null ? void 0 : _a2.length) || ((_b = props.generatedHeaders) == null ? void 0 : _b.length));
32479
32702
  });
32480
32703
  return (_ctx, _cache) => {
32481
- return openBlock(), createBlock(unref(_sfc_main$v), {
32704
+ return openBlock(), createBlock(unref(_sfc_main$w), {
32482
32705
  defaultOpen: hasHeaders.value,
32483
32706
  title: "Headers"
32484
32707
  }, {
@@ -32552,7 +32775,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
32552
32775
  return !!(((_a2 = props.queries) == null ? void 0 : _a2.length) || ((_b = props.generatedQueries) == null ? void 0 : _b.length));
32553
32776
  });
32554
32777
  return (_ctx, _cache) => {
32555
- return openBlock(), createBlock(unref(_sfc_main$v), {
32778
+ return openBlock(), createBlock(unref(_sfc_main$w), {
32556
32779
  defaultOpen: hasQueries.value,
32557
32780
  title: "Query Parameters"
32558
32781
  }, {
@@ -32621,7 +32844,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
32621
32844
  (_a2 = activeRequest2.variables) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
32622
32845
  }
32623
32846
  return (_ctx, _cache) => {
32624
- return openBlock(), createBlock(unref(_sfc_main$v), {
32847
+ return openBlock(), createBlock(unref(_sfc_main$w), {
32625
32848
  defaultOpen: unref(activeRequest2).variables && unref(activeRequest2).variables.length > 0,
32626
32849
  title: "Variables"
32627
32850
  }, {
@@ -32802,10 +33025,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
32802
33025
  return value;
32803
33026
  });
32804
33027
  return (_ctx, _cache) => {
32805
- return openBlock(), createBlock(unref(_sfc_main$v), { title: "Body" }, {
33028
+ return openBlock(), createBlock(unref(_sfc_main$w), { title: "Body" }, {
32806
33029
  default: withCtx(() => [
32807
33030
  _ctx.response ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
32808
- codeMirrorLanguage.value || typeof _ctx.response.data === "string" ? (openBlock(), createBlock(unref(zt), {
33031
+ codeMirrorLanguage.value || typeof _ctx.response.data === "string" ? (openBlock(), createBlock(unref(Et), {
32809
33032
  key: 0,
32810
33033
  class: "custom-scroll",
32811
33034
  content: formattedResponseData.value,
@@ -32927,7 +33150,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
32927
33150
  }).join("-");
32928
33151
  };
32929
33152
  return (_ctx, _cache) => {
32930
- return openBlock(), createBlock(unref(_sfc_main$v), { title: "Headers" }, {
33153
+ return openBlock(), createBlock(unref(_sfc_main$w), { title: "Headers" }, {
32931
33154
  default: withCtx(() => [
32932
33155
  _ctx.headers.length > 0 ? (openBlock(), createBlock(unref(SimpleTable), { key: 0 }, {
32933
33156
  default: withCtx(() => [
@@ -33084,7 +33307,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
33084
33307
  unref(activeRequestId2) && unref(activeResponse2) ? (openBlock(), createElementBlock("div", _hoisted_6, [
33085
33308
  createVNode(_sfc_main$9, { response: unref(activeResponse2) }, null, 8, ["response"]),
33086
33309
  createVNode(_sfc_main$3, { headers: responseHeaders.value }, null, 8, ["headers"]),
33087
- createVNode(unref(_sfc_main$v), { title: "Cookies" }, {
33310
+ createVNode(unref(_sfc_main$w), { title: "Cookies" }, {
33088
33311
  default: withCtx(() => [
33089
33312
  withDirectives(createVNode(unref(SimpleGrid), { items: responseCookies.value }, null, 8, ["items"]), [
33090
33313
  [vShow, responseCookies.value.length > 0]
@@ -33138,11 +33361,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33138
33361
  );
33139
33362
  return (_ctx, _cache) => {
33140
33363
  return openBlock(), createElementBlock(Fragment, null, [
33141
- createVNode(unref(_sfc_main$E), {
33364
+ createVNode(unref(_sfc_main$F), {
33142
33365
  id: _ctx.theme,
33143
33366
  withDefaultFonts: _ctx.withDefaultFonts
33144
33367
  }, null, 8, ["id", "withDefaultFonts"]),
33145
- createVNode(_sfc_main$C, {
33368
+ createVNode(_sfc_main$D, {
33146
33369
  class: "scalar-api-client",
33147
33370
  method: unref(activeRequest2).type ?? "get",
33148
33371
  property: "--scalar-api-client-color",
@@ -33222,19 +33445,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33222
33445
  });
33223
33446
  export {
33224
33447
  _sfc_main as ApiClient,
33225
- _sfc_main$C as HttpMethod,
33448
+ _sfc_main$D as HttpMethod,
33226
33449
  RequestAuthentication,
33227
33450
  SecurityScheme,
33228
33451
  SecuritySchemeSelector,
33229
33452
  concatenateUrlAndPath,
33230
33453
  createEmptyAuthenticationState,
33231
33454
  createEmptyOpenApiState,
33455
+ createEmptyServerState,
33232
33456
  createPlaceholderRequest,
33233
33457
  encodeStringAsBase64,
33234
33458
  findVariables,
33235
33459
  getBase64Token,
33236
33460
  getRequestFromAuthentication,
33237
33461
  getSecretCredentialsFromAuthentication,
33462
+ getUrlFromServerState,
33238
33463
  httpHeaders,
33239
33464
  humanDiff,
33240
33465
  isRequestMethod,
@@ -33244,6 +33469,7 @@ export {
33244
33469
  normalizeRequestMethod,
33245
33470
  normalizeUrl,
33246
33471
  prepareClientRequestConfig,
33472
+ redirectToProxy,
33247
33473
  replaceVariables,
33248
33474
  requestMethodAbbreviations,
33249
33475
  requestMethodColors,
@@ -33252,5 +33478,6 @@ export {
33252
33478
  useAuthenticationStore,
33253
33479
  useOpenApiStore,
33254
33480
  useRequestStore,
33481
+ useServerStore,
33255
33482
  validRequestMethods
33256
33483
  };