@scalar/api-client 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/Add-MwmVL5-v-3DrL2GXw.js +22 -0
- package/dist/CheckMark-t0gl4N9U-BE06BAQA.js +16 -0
- package/dist/ChevronDown-CSOB0535-B4yzccwY.js +24 -0
- package/dist/ChevronLeft-DusxsQw--DtptzfiA.js +24 -0
- package/dist/ChevronRight-DgANAl_6-9rEHMCZa.js +24 -0
- package/dist/ChevronUp-BbfQZGKP-dgR-r-Gf.js +24 -0
- package/dist/Clipboard-CU_KxGEv-DWrQtWVi.js +16 -0
- package/dist/Close-DFM1qMQH-DMPtwWpT.js +19 -0
- package/dist/DarkMode-CBsV8Q_I-DHPfucpm.js +18 -0
- package/dist/Ellipses-Bo_X36Hx-CsJmKvlE.js +16 -0
- package/dist/ExternalLink-D5zCsWas-MT2ACYLZ.js +28 -0
- package/dist/GitHub-NdE6Zs9k-BAGzgXH_.js +16 -0
- package/dist/LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js +20 -0
- package/dist/LightMode-Btz6vyT_-JpKLPzdT.js +18 -0
- package/dist/Logo-mtzeKD8M-LQcor9RM.js +19 -0
- package/dist/LogoAPI-CaU5E6FK-Bzb5EbnZ.js +19 -0
- package/dist/LogoClient-DdC-t_7P-B_rZ91PC.js +18 -0
- package/dist/LogoMarket-DwlApcab-_INRDSLs.js +16 -0
- package/dist/LogoSwagger-CH60H5qW-DFEpFXIU.js +16 -0
- package/dist/Menu-DFi9Laso-BhIZrQxp.js +20 -0
- package/dist/PaperAirplane-BC-4mGEB-BrV5fX8s.js +21 -0
- package/dist/Search-DqtlswRG-D-hprEk0.js +19 -0
- package/dist/arrow-chevron-down-DraTmtzQ-CmhjsghI.js +22 -0
- package/dist/arrow-chevron-left-AE5dugcd-CK2UDnAx.js +22 -0
- package/dist/arrow-chevron-right-DbHwONUO-B8PWWWhR.js +22 -0
- package/dist/arrow-chevron-up-C2T-G4GN-8uVOllAj.js +22 -0
- package/dist/arrow-down-rfW-r_qd-DCnCiMpp.js +22 -0
- package/dist/arrow-left-DDkHt-xN-CFh-lXGZ.js +22 -0
- package/dist/arrow-right-17dZkGZR-C5So-BEm.js +22 -0
- package/dist/arrow-up-CexG2Ble-BlrsZtgs.js +22 -0
- package/dist/brand-software-development-github-ZQnPxpDg-9BAblfAs.js +16 -0
- package/dist/index.js +250 -353
- package/dist/interface-add-Bthe4y9O-EDM5uqD-.js +22 -0
- package/dist/interface-close-WpJOu-2h-W6lKje7S.js +22 -0
- package/dist/programming-framework-angular-DD4Vjgbk-Bzc9D9am.js +16 -0
- package/dist/programming-framework-astro-CLfrRt19-CfPlyy6T.js +16 -0
- package/dist/programming-framework-laravel-kAy2wVLy-Cty_4oXq.js +21 -0
- package/dist/programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js +16 -0
- package/dist/programming-framework-react-PDgmtZuN-DdUogL85.js +16 -0
- package/dist/programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js +18 -0
- package/dist/programming-language-c-hPGu2Zvg-QG1pSdJG.js +16 -0
- package/dist/programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js +15 -0
- package/dist/programming-language-csharp-lqX1oWgb-B1_8fYG9.js +15 -0
- package/dist/programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js +16 -0
- package/dist/programming-language-go-DoJxWwT6-BUgfSlg1.js +15 -0
- package/dist/programming-language-html5-DlqJK4EL-Bl9dTA-D.js +16 -0
- package/dist/programming-language-http-wMYwFS1I-BWQXI44M.js +20 -0
- package/dist/programming-language-java-BCxG2T_w-CWqBHVz_.js +26 -0
- package/dist/programming-language-javascript-VxLvi1QG-DFjYF_MP.js +16 -0
- package/dist/programming-language-json-vEX_g7Zi-BMZrSR1t.js +22 -0
- package/dist/programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js +15 -0
- package/dist/programming-language-node-Xsgx38lm-DZhaOPIJ.js +18 -0
- package/dist/programming-language-objc-BQXSOBsX-BR-B91By.js +16 -0
- package/dist/programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js +15 -0
- package/dist/programming-language-php-GY38f8r4-DQ_8EMFH.js +16 -0
- package/dist/programming-language-powershell-C9DkSp36-S3xix_dw.js +19 -0
- package/dist/programming-language-python-Ct-_kNjo-BCrlyfv0.js +16 -0
- package/dist/programming-language-r-BGoKwua9-BWGOKD9M.js +19 -0
- package/dist/programming-language-ruby-DhdM4d7g-Dd3La6Kn.js +16 -0
- package/dist/programming-language-scala-BVg0dToJ-Bz_n-CNw.js +16 -0
- package/dist/programming-language-shell-BsTa1xI7-XJbYjh7O.js +16 -0
- package/dist/programming-language-swift-Dn72xPjg-BUvu5_SV.js +16 -0
- package/dist/programming-language-typescript-CdF-HuRi-CaDO02MW.js +16 -0
- package/dist/programming-script-code-DQN1veb2-BPFALXVk.js +22 -0
- package/dist/programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js +18 -0
- package/dist/programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js +16 -0
- package/package.json +3 -3
- package/dist/index-CpJxdgyL.js +0 -4466
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import "./index.css";
|
|
8
|
-
import { defineComponent, openBlock, createBlock, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, unref, createCommentVNode, reactive, readonly, ref, computed, normalizeStyle, renderSlot, normalizeProps, guardReactiveProps, watch, onBeforeUnmount, toValue as toValue$1, toRef, createElementBlock, createElementVNode, createVNode, normalizeClass, Fragment, renderList, createStaticVNode, pushScopeId, popScopeId, withDirectives, withModifiers, vModelSelect, vModelText, vModelCheckbox,
|
|
8
|
+
import { defineComponent, openBlock, createBlock, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, unref, createCommentVNode, reactive, readonly, ref, computed, normalizeStyle, renderSlot, normalizeProps, guardReactiveProps, watch, onBeforeUnmount, toValue as toValue$1, toRef, createElementBlock, createElementVNode, createVNode, normalizeClass, Fragment, renderList, createStaticVNode, pushScopeId, popScopeId, withDirectives, withModifiers, vModelSelect, vModelText, vModelCheckbox, nextTick, onServerPrefetch, onMounted, defineAsyncComponent, vShow, toRaw, withKeys } from "vue";
|
|
9
9
|
import { Dialog, DialogPanel, DialogTitle, DialogDescription, Disclosure, DisclosureButton, DisclosurePanel, TabGroup, TabList, Tab, TabPanels, TabPanel } from "@headlessui/vue";
|
|
10
10
|
import { useMagicKeys, whenever, useMediaQuery } from "@vueuse/core";
|
|
11
11
|
import axios from "axios";
|
|
@@ -4638,7 +4638,7 @@ var shift = {
|
|
|
4638
4638
|
222: '"'
|
|
4639
4639
|
};
|
|
4640
4640
|
var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
|
|
4641
|
-
var ie$
|
|
4641
|
+
var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
4642
4642
|
for (var i = 0; i < 10; i++)
|
|
4643
4643
|
base[48 + i] = base[96 + i] = String(i);
|
|
4644
4644
|
for (var i = 1; i <= 24; i++)
|
|
@@ -4651,7 +4651,7 @@ for (var code in base)
|
|
|
4651
4651
|
if (!shift.hasOwnProperty(code))
|
|
4652
4652
|
shift[code] = base[code];
|
|
4653
4653
|
function keyName(event) {
|
|
4654
|
-
var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey || ie$
|
|
4654
|
+
var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey || ie$1 && event.shiftKey && event.key && event.key.length == 1 || event.key == "Unidentified";
|
|
4655
4655
|
var name2 = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || "Unidentified";
|
|
4656
4656
|
if (name2 == "Esc")
|
|
4657
4657
|
name2 = "Escape";
|
|
@@ -4758,7 +4758,7 @@ function getScale(elt, rect) {
|
|
|
4758
4758
|
scaleY = 1;
|
|
4759
4759
|
return { scaleX, scaleY };
|
|
4760
4760
|
}
|
|
4761
|
-
function scrollRectIntoView(dom, rect, side, x,
|
|
4761
|
+
function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
|
4762
4762
|
let doc2 = dom.ownerDocument, win = doc2.defaultView || window;
|
|
4763
4763
|
for (let cur2 = dom, stop = false; cur2 && !stop; ) {
|
|
4764
4764
|
if (cur2.nodeType == 1) {
|
|
@@ -4783,7 +4783,7 @@ function scrollRectIntoView(dom, rect, side, x, y2, xMargin, yMargin, ltr) {
|
|
|
4783
4783
|
};
|
|
4784
4784
|
}
|
|
4785
4785
|
let moveX = 0, moveY = 0;
|
|
4786
|
-
if (
|
|
4786
|
+
if (y == "nearest") {
|
|
4787
4787
|
if (rect.top < bounding.top) {
|
|
4788
4788
|
moveY = -(bounding.top - rect.top + yMargin);
|
|
4789
4789
|
if (side > 0 && rect.bottom > bounding.bottom + moveY)
|
|
@@ -4795,7 +4795,7 @@ function scrollRectIntoView(dom, rect, side, x, y2, xMargin, yMargin, ltr) {
|
|
|
4795
4795
|
}
|
|
4796
4796
|
} else {
|
|
4797
4797
|
let rectHeight = rect.bottom - rect.top, boundingHeight = bounding.bottom - bounding.top;
|
|
4798
|
-
let targetTop =
|
|
4798
|
+
let targetTop = y == "center" && rectHeight <= boundingHeight ? rect.top + rectHeight / 2 - boundingHeight / 2 : y == "start" || y == "center" && side < 0 ? rect.top - yMargin : rect.bottom - boundingHeight + yMargin;
|
|
4799
4799
|
moveY = targetTop - bounding.top;
|
|
4800
4800
|
}
|
|
4801
4801
|
if (x == "nearest") {
|
|
@@ -4836,7 +4836,7 @@ function scrollRectIntoView(dom, rect, side, x, y2, xMargin, yMargin, ltr) {
|
|
|
4836
4836
|
if (movedX && Math.abs(movedX - moveX) < 1)
|
|
4837
4837
|
x = "nearest";
|
|
4838
4838
|
if (movedY && Math.abs(movedY - moveY) < 1)
|
|
4839
|
-
|
|
4839
|
+
y = "nearest";
|
|
4840
4840
|
}
|
|
4841
4841
|
}
|
|
4842
4842
|
if (top2)
|
|
@@ -5309,17 +5309,17 @@ let doc = typeof document != "undefined" ? document : { documentElement: { style
|
|
|
5309
5309
|
const ie_edge = /* @__PURE__ */ /Edge\/(\d+)/.exec(nav.userAgent);
|
|
5310
5310
|
const ie_upto10 = /* @__PURE__ */ /MSIE \d/.test(nav.userAgent);
|
|
5311
5311
|
const ie_11up = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nav.userAgent);
|
|
5312
|
-
const ie
|
|
5313
|
-
const gecko = !ie
|
|
5314
|
-
const chrome = !ie
|
|
5312
|
+
const ie = !!(ie_upto10 || ie_11up || ie_edge);
|
|
5313
|
+
const gecko = !ie && /* @__PURE__ */ /gecko\/(\d+)/i.test(nav.userAgent);
|
|
5314
|
+
const chrome = !ie && /* @__PURE__ */ /Chrome\/(\d+)/.exec(nav.userAgent);
|
|
5315
5315
|
const webkit = "webkitFontSmoothing" in doc.documentElement.style;
|
|
5316
|
-
const safari = !ie
|
|
5316
|
+
const safari = !ie && /* @__PURE__ */ /Apple Computer/.test(nav.vendor);
|
|
5317
5317
|
const ios = safari && (/* @__PURE__ */ /Mobile\/\w+/.test(nav.userAgent) || nav.maxTouchPoints > 2);
|
|
5318
5318
|
var browser = {
|
|
5319
5319
|
mac: ios || /* @__PURE__ */ /Mac/.test(nav.platform),
|
|
5320
5320
|
windows: /* @__PURE__ */ /Win/.test(nav.platform),
|
|
5321
5321
|
linux: /* @__PURE__ */ /Linux|X11/.test(nav.platform),
|
|
5322
|
-
ie
|
|
5322
|
+
ie,
|
|
5323
5323
|
ie_version: ie_upto10 ? doc.documentMode || 6 : ie_11up ? +ie_11up[1] : ie_edge ? +ie_edge[1] : 0,
|
|
5324
5324
|
gecko,
|
|
5325
5325
|
gecko_version: gecko ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
|
|
@@ -6786,9 +6786,9 @@ const nativeSelectionHidden = /* @__PURE__ */ Facet.define({
|
|
|
6786
6786
|
combine: (values2) => values2.some((x) => x)
|
|
6787
6787
|
});
|
|
6788
6788
|
class ScrollTarget {
|
|
6789
|
-
constructor(range,
|
|
6789
|
+
constructor(range, y = "nearest", x = "nearest", yMargin = 5, xMargin = 5, isSnapshot = false) {
|
|
6790
6790
|
this.range = range;
|
|
6791
|
-
this.y =
|
|
6791
|
+
this.y = y;
|
|
6792
6792
|
this.x = x;
|
|
6793
6793
|
this.yMargin = yMargin;
|
|
6794
6794
|
this.xMargin = xMargin;
|
|
@@ -7709,8 +7709,8 @@ function groupAt(state2, pos, bias = 1) {
|
|
|
7709
7709
|
function getdx(x, rect) {
|
|
7710
7710
|
return rect.left > x ? rect.left - x : Math.max(0, x - rect.right);
|
|
7711
7711
|
}
|
|
7712
|
-
function getdy(
|
|
7713
|
-
return rect.top >
|
|
7712
|
+
function getdy(y, rect) {
|
|
7713
|
+
return rect.top > y ? rect.top - y : Math.max(0, y - rect.bottom);
|
|
7714
7714
|
}
|
|
7715
7715
|
function yOverlap(a, b) {
|
|
7716
7716
|
return a.top < b.bottom - 1 && a.bottom > b.top + 1;
|
|
@@ -7721,7 +7721,7 @@ function upTop(rect, top2) {
|
|
|
7721
7721
|
function upBot(rect, bottom) {
|
|
7722
7722
|
return bottom > rect.bottom ? { top: rect.top, left: rect.left, right: rect.right, bottom } : rect;
|
|
7723
7723
|
}
|
|
7724
|
-
function domPosAtCoords(parent, x,
|
|
7724
|
+
function domPosAtCoords(parent, x, y) {
|
|
7725
7725
|
let closest, closestRect, closestX, closestY, closestOverlap = false;
|
|
7726
7726
|
let above, below, aboveRect, belowRect;
|
|
7727
7727
|
for (let child = parent.firstChild; child; child = child.nextSibling) {
|
|
@@ -7730,22 +7730,22 @@ function domPosAtCoords(parent, x, y2) {
|
|
|
7730
7730
|
let rect = rects[i];
|
|
7731
7731
|
if (closestRect && yOverlap(closestRect, rect))
|
|
7732
7732
|
rect = upTop(upBot(rect, closestRect.bottom), closestRect.top);
|
|
7733
|
-
let dx = getdx(x, rect), dy = getdy(
|
|
7733
|
+
let dx = getdx(x, rect), dy = getdy(y, rect);
|
|
7734
7734
|
if (dx == 0 && dy == 0)
|
|
7735
|
-
return child.nodeType == 3 ? domPosInText(child, x,
|
|
7735
|
+
return child.nodeType == 3 ? domPosInText(child, x, y) : domPosAtCoords(child, x, y);
|
|
7736
7736
|
if (!closest || closestY > dy || closestY == dy && closestX > dx) {
|
|
7737
7737
|
closest = child;
|
|
7738
7738
|
closestRect = rect;
|
|
7739
7739
|
closestX = dx;
|
|
7740
7740
|
closestY = dy;
|
|
7741
|
-
let side = dy ?
|
|
7741
|
+
let side = dy ? y < rect.top ? -1 : 1 : dx ? x < rect.left ? -1 : 1 : 0;
|
|
7742
7742
|
closestOverlap = !side || (side > 0 ? i < rects.length - 1 : i > 0);
|
|
7743
7743
|
}
|
|
7744
7744
|
if (dx == 0) {
|
|
7745
|
-
if (
|
|
7745
|
+
if (y > rect.bottom && (!aboveRect || aboveRect.bottom < rect.bottom)) {
|
|
7746
7746
|
above = child;
|
|
7747
7747
|
aboveRect = rect;
|
|
7748
|
-
} else if (
|
|
7748
|
+
} else if (y < rect.top && (!belowRect || belowRect.top > rect.top)) {
|
|
7749
7749
|
below = child;
|
|
7750
7750
|
belowRect = rect;
|
|
7751
7751
|
}
|
|
@@ -7756,10 +7756,10 @@ function domPosAtCoords(parent, x, y2) {
|
|
|
7756
7756
|
}
|
|
7757
7757
|
}
|
|
7758
7758
|
}
|
|
7759
|
-
if (aboveRect && aboveRect.bottom >=
|
|
7759
|
+
if (aboveRect && aboveRect.bottom >= y) {
|
|
7760
7760
|
closest = above;
|
|
7761
7761
|
closestRect = aboveRect;
|
|
7762
|
-
} else if (belowRect && belowRect.top <=
|
|
7762
|
+
} else if (belowRect && belowRect.top <= y) {
|
|
7763
7763
|
closest = below;
|
|
7764
7764
|
closestRect = belowRect;
|
|
7765
7765
|
}
|
|
@@ -7767,13 +7767,13 @@ function domPosAtCoords(parent, x, y2) {
|
|
|
7767
7767
|
return { node: parent, offset: 0 };
|
|
7768
7768
|
let clipX = Math.max(closestRect.left, Math.min(closestRect.right, x));
|
|
7769
7769
|
if (closest.nodeType == 3)
|
|
7770
|
-
return domPosInText(closest, clipX,
|
|
7770
|
+
return domPosInText(closest, clipX, y);
|
|
7771
7771
|
if (closestOverlap && closest.contentEditable != "false")
|
|
7772
|
-
return domPosAtCoords(closest, clipX,
|
|
7772
|
+
return domPosAtCoords(closest, clipX, y);
|
|
7773
7773
|
let offset = Array.prototype.indexOf.call(parent.childNodes, closest) + (x >= (closestRect.left + closestRect.right) / 2 ? 1 : 0);
|
|
7774
7774
|
return { node: parent, offset };
|
|
7775
7775
|
}
|
|
7776
|
-
function domPosInText(node, x,
|
|
7776
|
+
function domPosInText(node, x, y) {
|
|
7777
7777
|
let len = node.nodeValue.length;
|
|
7778
7778
|
let closestOffset = -1, closestDY = 1e9, generalSide = 0;
|
|
7779
7779
|
for (let i = 0; i < len; i++) {
|
|
@@ -7784,7 +7784,7 @@ function domPosInText(node, x, y2) {
|
|
|
7784
7784
|
continue;
|
|
7785
7785
|
if (!generalSide)
|
|
7786
7786
|
generalSide = x - rect.left;
|
|
7787
|
-
let dy = (rect.top >
|
|
7787
|
+
let dy = (rect.top > y ? rect.top - y : y - rect.bottom) - 1;
|
|
7788
7788
|
if (rect.left - 1 <= x && rect.right + 1 >= x && dy < closestDY) {
|
|
7789
7789
|
let right = x >= (rect.left + rect.right) / 2, after = right;
|
|
7790
7790
|
if (browser.chrome || browser.gecko) {
|
|
@@ -7805,7 +7805,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
7805
7805
|
var _a2, _b;
|
|
7806
7806
|
let content2 = view.contentDOM.getBoundingClientRect(), docTop = content2.top + view.viewState.paddingTop;
|
|
7807
7807
|
let block, { docHeight } = view.viewState;
|
|
7808
|
-
let { x, y
|
|
7808
|
+
let { x, y } = coords, yOffset = y - docTop;
|
|
7809
7809
|
if (yOffset < 0)
|
|
7810
7810
|
return 0;
|
|
7811
7811
|
if (yOffset > docHeight)
|
|
@@ -7824,31 +7824,31 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
7824
7824
|
bias = -bias;
|
|
7825
7825
|
}
|
|
7826
7826
|
}
|
|
7827
|
-
|
|
7827
|
+
y = docTop + yOffset;
|
|
7828
7828
|
let lineStart = block.from;
|
|
7829
7829
|
if (lineStart < view.viewport.from)
|
|
7830
|
-
return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content2, block, x,
|
|
7830
|
+
return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content2, block, x, y);
|
|
7831
7831
|
if (lineStart > view.viewport.to)
|
|
7832
|
-
return view.viewport.to == view.state.doc.length ? view.state.doc.length : precise ? null : posAtCoordsImprecise(view, content2, block, x,
|
|
7832
|
+
return view.viewport.to == view.state.doc.length ? view.state.doc.length : precise ? null : posAtCoordsImprecise(view, content2, block, x, y);
|
|
7833
7833
|
let doc2 = view.dom.ownerDocument;
|
|
7834
7834
|
let root = view.root.elementFromPoint ? view.root : doc2;
|
|
7835
|
-
let element = root.elementFromPoint(x,
|
|
7835
|
+
let element = root.elementFromPoint(x, y);
|
|
7836
7836
|
if (element && !view.contentDOM.contains(element))
|
|
7837
7837
|
element = null;
|
|
7838
7838
|
if (!element) {
|
|
7839
7839
|
x = Math.max(content2.left + 1, Math.min(content2.right - 1, x));
|
|
7840
|
-
element = root.elementFromPoint(x,
|
|
7840
|
+
element = root.elementFromPoint(x, y);
|
|
7841
7841
|
if (element && !view.contentDOM.contains(element))
|
|
7842
7842
|
element = null;
|
|
7843
7843
|
}
|
|
7844
7844
|
let node, offset = -1;
|
|
7845
7845
|
if (element && ((_a2 = view.docView.nearest(element)) === null || _a2 === void 0 ? void 0 : _a2.isEditable) != false) {
|
|
7846
7846
|
if (doc2.caretPositionFromPoint) {
|
|
7847
|
-
let pos = doc2.caretPositionFromPoint(x,
|
|
7847
|
+
let pos = doc2.caretPositionFromPoint(x, y);
|
|
7848
7848
|
if (pos)
|
|
7849
7849
|
({ offsetNode: node, offset } = pos);
|
|
7850
7850
|
} else if (doc2.caretRangeFromPoint) {
|
|
7851
|
-
let range = doc2.caretRangeFromPoint(x,
|
|
7851
|
+
let range = doc2.caretRangeFromPoint(x, y);
|
|
7852
7852
|
if (range) {
|
|
7853
7853
|
({ startContainer: node, startOffset: offset } = range);
|
|
7854
7854
|
if (!view.contentDOM.contains(node) || browser.safari && isSuspiciousSafariCaretResult(node, offset, x) || browser.chrome && isSuspiciousChromeCaretResult(node, offset, x))
|
|
@@ -7860,7 +7860,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
7860
7860
|
let line = LineView.find(view.docView, lineStart);
|
|
7861
7861
|
if (!line)
|
|
7862
7862
|
return yOffset > block.top + block.height / 2 ? block.to : block.from;
|
|
7863
|
-
({ node, offset } = domPosAtCoords(line.dom, x,
|
|
7863
|
+
({ node, offset } = domPosAtCoords(line.dom, x, y));
|
|
7864
7864
|
}
|
|
7865
7865
|
let nearest = view.docView.nearest(node);
|
|
7866
7866
|
if (!nearest)
|
|
@@ -7872,11 +7872,11 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
7872
7872
|
return nearest.localPosFromDOM(node, offset) + nearest.posAtStart;
|
|
7873
7873
|
}
|
|
7874
7874
|
}
|
|
7875
|
-
function posAtCoordsImprecise(view, contentRect, block, x,
|
|
7875
|
+
function posAtCoordsImprecise(view, contentRect, block, x, y) {
|
|
7876
7876
|
let into = Math.round((x - contentRect.left) * view.defaultCharacterWidth);
|
|
7877
7877
|
if (view.lineWrapping && block.height > view.defaultLineHeight * 1.5) {
|
|
7878
7878
|
let textHeight = view.viewState.heightOracle.textHeight;
|
|
7879
|
-
let line = Math.floor((
|
|
7879
|
+
let line = Math.floor((y - block.top - (view.defaultLineHeight - textHeight) * 0.5) / textHeight);
|
|
7880
7880
|
into += line * view.viewState.heightOracle.lineLength;
|
|
7881
7881
|
}
|
|
7882
7882
|
let content2 = view.state.sliceDoc(block.from, block.to);
|
|
@@ -8441,9 +8441,9 @@ function rangeForClick(view, pos, bias, type) {
|
|
|
8441
8441
|
return EditorSelection.range(from, to);
|
|
8442
8442
|
}
|
|
8443
8443
|
}
|
|
8444
|
-
let insideY = (
|
|
8445
|
-
let inside = (x,
|
|
8446
|
-
function findPositionSide(view, pos, x,
|
|
8444
|
+
let insideY = (y, rect) => y >= rect.top && y <= rect.bottom;
|
|
8445
|
+
let inside = (x, y, rect) => insideY(y, rect) && x >= rect.left && x <= rect.right;
|
|
8446
|
+
function findPositionSide(view, pos, x, y) {
|
|
8447
8447
|
let line = LineView.find(view.docView, pos);
|
|
8448
8448
|
if (!line)
|
|
8449
8449
|
return 1;
|
|
@@ -8453,12 +8453,12 @@ function findPositionSide(view, pos, x, y2) {
|
|
|
8453
8453
|
if (off == line.length)
|
|
8454
8454
|
return -1;
|
|
8455
8455
|
let before = line.coordsAt(off, -1);
|
|
8456
|
-
if (before && inside(x,
|
|
8456
|
+
if (before && inside(x, y, before))
|
|
8457
8457
|
return -1;
|
|
8458
8458
|
let after = line.coordsAt(off, 1);
|
|
8459
|
-
if (after && inside(x,
|
|
8459
|
+
if (after && inside(x, y, after))
|
|
8460
8460
|
return 1;
|
|
8461
|
-
return before && insideY(
|
|
8461
|
+
return before && insideY(y, before) ? -1 : 1;
|
|
8462
8462
|
}
|
|
8463
8463
|
function queryPos(view, event) {
|
|
8464
8464
|
let pos = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);
|
|
@@ -8777,12 +8777,12 @@ class HeightOracle {
|
|
|
8777
8777
|
mustRefreshForHeights(lineHeights) {
|
|
8778
8778
|
let newHeight = false;
|
|
8779
8779
|
for (let i = 0; i < lineHeights.length; i++) {
|
|
8780
|
-
let
|
|
8781
|
-
if (
|
|
8780
|
+
let h = lineHeights[i];
|
|
8781
|
+
if (h < 0) {
|
|
8782
8782
|
i++;
|
|
8783
|
-
} else if (!this.heightSamples[Math.floor(
|
|
8783
|
+
} else if (!this.heightSamples[Math.floor(h * 10)]) {
|
|
8784
8784
|
newHeight = true;
|
|
8785
|
-
this.heightSamples[Math.floor(
|
|
8785
|
+
this.heightSamples[Math.floor(h * 10)] = true;
|
|
8786
8786
|
}
|
|
8787
8787
|
}
|
|
8788
8788
|
return newHeight;
|
|
@@ -8798,11 +8798,11 @@ class HeightOracle {
|
|
|
8798
8798
|
if (changed) {
|
|
8799
8799
|
this.heightSamples = {};
|
|
8800
8800
|
for (let i = 0; i < knownHeights.length; i++) {
|
|
8801
|
-
let
|
|
8802
|
-
if (
|
|
8801
|
+
let h = knownHeights[i];
|
|
8802
|
+
if (h < 0)
|
|
8803
8803
|
i++;
|
|
8804
8804
|
else
|
|
8805
|
-
this.heightSamples[Math.floor(
|
|
8805
|
+
this.heightSamples[Math.floor(h * 10)] = true;
|
|
8806
8806
|
}
|
|
8807
8807
|
}
|
|
8808
8808
|
return changed;
|
|
@@ -10454,7 +10454,7 @@ function applyDOMChange(view, domChange) {
|
|
|
10454
10454
|
view.inputState.composing++;
|
|
10455
10455
|
let defaultTr;
|
|
10456
10456
|
let defaultInsert = () => defaultTr || (defaultTr = applyDefaultInsert(view, change, newSel));
|
|
10457
|
-
if (!view.state.facet(inputHandler$1).some((
|
|
10457
|
+
if (!view.state.facet(inputHandler$1).some((h) => h(view, change.from, change.to, text, defaultInsert)))
|
|
10458
10458
|
view.dispatch(defaultInsert());
|
|
10459
10459
|
return true;
|
|
10460
10460
|
} else if (newSel && !newSel.main.eq(sel)) {
|
|
@@ -12947,16 +12947,16 @@ class SingleGutterView {
|
|
|
12947
12947
|
this.dom.className = "cm-gutter" + (this.config.class ? " " + this.config.class : "");
|
|
12948
12948
|
for (let prop in config2.domEventHandlers) {
|
|
12949
12949
|
this.dom.addEventListener(prop, (event) => {
|
|
12950
|
-
let target = event.target,
|
|
12950
|
+
let target = event.target, y;
|
|
12951
12951
|
if (target != this.dom && this.dom.contains(target)) {
|
|
12952
12952
|
while (target.parentNode != this.dom)
|
|
12953
12953
|
target = target.parentNode;
|
|
12954
12954
|
let rect = target.getBoundingClientRect();
|
|
12955
|
-
|
|
12955
|
+
y = (rect.top + rect.bottom) / 2;
|
|
12956
12956
|
} else {
|
|
12957
|
-
|
|
12957
|
+
y = event.clientY;
|
|
12958
12958
|
}
|
|
12959
|
-
let line = view.lineBlockAtHeight(
|
|
12959
|
+
let line = view.lineBlockAtHeight(y - view.documentTop);
|
|
12960
12960
|
if (config2.domEventHandlers[prop](view, line, event))
|
|
12961
12961
|
event.preventDefault();
|
|
12962
12962
|
});
|
|
@@ -15359,7 +15359,7 @@ class HighlightBuilder {
|
|
|
15359
15359
|
if (start >= to || end <= from)
|
|
15360
15360
|
return;
|
|
15361
15361
|
if (type.isTop)
|
|
15362
|
-
highlighters = this.highlighters.filter((
|
|
15362
|
+
highlighters = this.highlighters.filter((h) => !h.scope || h.scope(type));
|
|
15363
15363
|
let cls = inheritedClass;
|
|
15364
15364
|
let rule = getStyleTags(cursor) || Rule.empty;
|
|
15365
15365
|
let tagCls = highlightTags(highlighters, rule.tags);
|
|
@@ -15376,7 +15376,7 @@ class HighlightBuilder {
|
|
|
15376
15376
|
let mounted = cursor.tree && cursor.tree.prop(NodeProp.mounted);
|
|
15377
15377
|
if (mounted && mounted.overlay) {
|
|
15378
15378
|
let inner = cursor.node.enter(mounted.overlay[0].from + start, 1);
|
|
15379
|
-
let innerHighlighters = this.highlighters.filter((
|
|
15379
|
+
let innerHighlighters = this.highlighters.filter((h) => !h.scope || h.scope(mounted.tree.type));
|
|
15380
15380
|
let hasChild2 = cursor.firstChild();
|
|
15381
15381
|
for (let i = 0, pos = start; ; i++) {
|
|
15382
15382
|
let next = i < mounted.overlay.length ? mounted.overlay[i] : null;
|
|
@@ -20233,8 +20233,8 @@ class LRParser extends Parser {
|
|
|
20233
20233
|
}
|
|
20234
20234
|
createParse(input, fragments, ranges) {
|
|
20235
20235
|
let parse = new Parse(this, input, fragments, ranges);
|
|
20236
|
-
for (let
|
|
20237
|
-
parse =
|
|
20236
|
+
for (let w of this.wrappers)
|
|
20237
|
+
parse = w(parse, input, fragments, ranges);
|
|
20238
20238
|
return parse;
|
|
20239
20239
|
}
|
|
20240
20240
|
/**
|
|
@@ -22284,7 +22284,7 @@ const Charsets = ["ascii", "utf-8", "utf-16", "latin1", "latin1"];
|
|
|
22284
22284
|
const Methods = ["get", "post", "put", "delete"];
|
|
22285
22285
|
const Encs = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"];
|
|
22286
22286
|
const Bool = ["true", "false"];
|
|
22287
|
-
const S = {};
|
|
22287
|
+
const S$1 = {};
|
|
22288
22288
|
const Tags = {
|
|
22289
22289
|
a: {
|
|
22290
22290
|
attrs: {
|
|
@@ -22296,8 +22296,8 @@ const Tags = {
|
|
|
22296
22296
|
hreflang: null
|
|
22297
22297
|
}
|
|
22298
22298
|
},
|
|
22299
|
-
abbr: S,
|
|
22300
|
-
address: S,
|
|
22299
|
+
abbr: S$1,
|
|
22300
|
+
address: S$1,
|
|
22301
22301
|
area: {
|
|
22302
22302
|
attrs: {
|
|
22303
22303
|
alt: null,
|
|
@@ -22311,8 +22311,8 @@ const Tags = {
|
|
|
22311
22311
|
shape: ["default", "rect", "circle", "poly"]
|
|
22312
22312
|
}
|
|
22313
22313
|
},
|
|
22314
|
-
article: S,
|
|
22315
|
-
aside: S,
|
|
22314
|
+
article: S$1,
|
|
22315
|
+
aside: S$1,
|
|
22316
22316
|
audio: {
|
|
22317
22317
|
attrs: {
|
|
22318
22318
|
src: null,
|
|
@@ -22324,13 +22324,13 @@ const Tags = {
|
|
|
22324
22324
|
controls: ["controls"]
|
|
22325
22325
|
}
|
|
22326
22326
|
},
|
|
22327
|
-
b: S,
|
|
22327
|
+
b: S$1,
|
|
22328
22328
|
base: { attrs: { href: null, target: Targets } },
|
|
22329
|
-
bdi: S,
|
|
22330
|
-
bdo: S,
|
|
22329
|
+
bdi: S$1,
|
|
22330
|
+
bdo: S$1,
|
|
22331
22331
|
blockquote: { attrs: { cite: null } },
|
|
22332
|
-
body: S,
|
|
22333
|
-
br: S,
|
|
22332
|
+
body: S$1,
|
|
22333
|
+
br: S$1,
|
|
22334
22334
|
button: {
|
|
22335
22335
|
attrs: {
|
|
22336
22336
|
form: null,
|
|
@@ -22347,10 +22347,10 @@ const Tags = {
|
|
|
22347
22347
|
}
|
|
22348
22348
|
},
|
|
22349
22349
|
canvas: { attrs: { width: null, height: null } },
|
|
22350
|
-
caption: S,
|
|
22351
|
-
center: S,
|
|
22352
|
-
cite: S,
|
|
22353
|
-
code: S,
|
|
22350
|
+
caption: S$1,
|
|
22351
|
+
center: S$1,
|
|
22352
|
+
cite: S$1,
|
|
22353
|
+
code: S$1,
|
|
22354
22354
|
col: { attrs: { span: null } },
|
|
22355
22355
|
colgroup: { attrs: { span: null } },
|
|
22356
22356
|
command: {
|
|
@@ -22368,20 +22368,20 @@ const Tags = {
|
|
|
22368
22368
|
data: { attrs: { value: null } },
|
|
22369
22369
|
datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
|
|
22370
22370
|
datalist: { attrs: { data: null } },
|
|
22371
|
-
dd: S,
|
|
22371
|
+
dd: S$1,
|
|
22372
22372
|
del: { attrs: { cite: null, datetime: null } },
|
|
22373
22373
|
details: { attrs: { open: ["open"] } },
|
|
22374
|
-
dfn: S,
|
|
22375
|
-
div: S,
|
|
22376
|
-
dl: S,
|
|
22377
|
-
dt: S,
|
|
22378
|
-
em: S,
|
|
22374
|
+
dfn: S$1,
|
|
22375
|
+
div: S$1,
|
|
22376
|
+
dl: S$1,
|
|
22377
|
+
dt: S$1,
|
|
22378
|
+
em: S$1,
|
|
22379
22379
|
embed: { attrs: { src: null, type: null, width: null, height: null } },
|
|
22380
22380
|
eventsource: { attrs: { src: null } },
|
|
22381
22381
|
fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
|
|
22382
|
-
figcaption: S,
|
|
22383
|
-
figure: S,
|
|
22384
|
-
footer: S,
|
|
22382
|
+
figcaption: S$1,
|
|
22383
|
+
figure: S$1,
|
|
22384
|
+
footer: S$1,
|
|
22385
22385
|
form: {
|
|
22386
22386
|
attrs: {
|
|
22387
22387
|
action: null,
|
|
@@ -22394,22 +22394,22 @@ const Tags = {
|
|
|
22394
22394
|
target: Targets
|
|
22395
22395
|
}
|
|
22396
22396
|
},
|
|
22397
|
-
h1: S,
|
|
22398
|
-
h2: S,
|
|
22399
|
-
h3: S,
|
|
22400
|
-
h4: S,
|
|
22401
|
-
h5: S,
|
|
22402
|
-
h6: S,
|
|
22397
|
+
h1: S$1,
|
|
22398
|
+
h2: S$1,
|
|
22399
|
+
h3: S$1,
|
|
22400
|
+
h4: S$1,
|
|
22401
|
+
h5: S$1,
|
|
22402
|
+
h6: S$1,
|
|
22403
22403
|
head: {
|
|
22404
22404
|
children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
|
|
22405
22405
|
},
|
|
22406
|
-
header: S,
|
|
22407
|
-
hgroup: S,
|
|
22408
|
-
hr: S,
|
|
22406
|
+
header: S$1,
|
|
22407
|
+
hgroup: S$1,
|
|
22408
|
+
hr: S$1,
|
|
22409
22409
|
html: {
|
|
22410
22410
|
attrs: { manifest: null }
|
|
22411
22411
|
},
|
|
22412
|
-
i: S,
|
|
22412
|
+
i: S$1,
|
|
22413
22413
|
iframe: {
|
|
22414
22414
|
attrs: {
|
|
22415
22415
|
src: null,
|
|
@@ -22491,7 +22491,7 @@ const Tags = {
|
|
|
22491
22491
|
}
|
|
22492
22492
|
},
|
|
22493
22493
|
ins: { attrs: { cite: null, datetime: null } },
|
|
22494
|
-
kbd: S,
|
|
22494
|
+
kbd: S$1,
|
|
22495
22495
|
keygen: {
|
|
22496
22496
|
attrs: {
|
|
22497
22497
|
challenge: null,
|
|
@@ -22503,7 +22503,7 @@ const Tags = {
|
|
|
22503
22503
|
}
|
|
22504
22504
|
},
|
|
22505
22505
|
label: { attrs: { for: null, form: null } },
|
|
22506
|
-
legend: S,
|
|
22506
|
+
legend: S$1,
|
|
22507
22507
|
li: { attrs: { value: null } },
|
|
22508
22508
|
link: {
|
|
22509
22509
|
attrs: {
|
|
@@ -22515,7 +22515,7 @@ const Tags = {
|
|
|
22515
22515
|
}
|
|
22516
22516
|
},
|
|
22517
22517
|
map: { attrs: { name: null } },
|
|
22518
|
-
mark: S,
|
|
22518
|
+
mark: S$1,
|
|
22519
22519
|
menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
|
|
22520
22520
|
meta: {
|
|
22521
22521
|
attrs: {
|
|
@@ -22526,8 +22526,8 @@ const Tags = {
|
|
|
22526
22526
|
}
|
|
22527
22527
|
},
|
|
22528
22528
|
meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
|
|
22529
|
-
nav: S,
|
|
22530
|
-
noscript: S,
|
|
22529
|
+
nav: S$1,
|
|
22530
|
+
noscript: S$1,
|
|
22531
22531
|
object: {
|
|
22532
22532
|
attrs: {
|
|
22533
22533
|
data: null,
|
|
@@ -22547,15 +22547,15 @@ const Tags = {
|
|
|
22547
22547
|
optgroup: { attrs: { disabled: ["disabled"], label: null } },
|
|
22548
22548
|
option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
|
|
22549
22549
|
output: { attrs: { for: null, form: null, name: null } },
|
|
22550
|
-
p: S,
|
|
22550
|
+
p: S$1,
|
|
22551
22551
|
param: { attrs: { name: null, value: null } },
|
|
22552
|
-
pre: S,
|
|
22552
|
+
pre: S$1,
|
|
22553
22553
|
progress: { attrs: { value: null, max: null } },
|
|
22554
22554
|
q: { attrs: { cite: null } },
|
|
22555
|
-
rp: S,
|
|
22556
|
-
rt: S,
|
|
22557
|
-
ruby: S,
|
|
22558
|
-
samp: S,
|
|
22555
|
+
rp: S$1,
|
|
22556
|
+
rt: S$1,
|
|
22557
|
+
ruby: S$1,
|
|
22558
|
+
samp: S$1,
|
|
22559
22559
|
script: {
|
|
22560
22560
|
attrs: {
|
|
22561
22561
|
type: ["text/javascript"],
|
|
@@ -22565,7 +22565,7 @@ const Tags = {
|
|
|
22565
22565
|
charset: Charsets
|
|
22566
22566
|
}
|
|
22567
22567
|
},
|
|
22568
|
-
section: S,
|
|
22568
|
+
section: S$1,
|
|
22569
22569
|
select: {
|
|
22570
22570
|
attrs: {
|
|
22571
22571
|
form: null,
|
|
@@ -22577,10 +22577,10 @@ const Tags = {
|
|
|
22577
22577
|
}
|
|
22578
22578
|
},
|
|
22579
22579
|
slot: { attrs: { name: null } },
|
|
22580
|
-
small: S,
|
|
22580
|
+
small: S$1,
|
|
22581
22581
|
source: { attrs: { src: null, type: null, media: null } },
|
|
22582
|
-
span: S,
|
|
22583
|
-
strong: S,
|
|
22582
|
+
span: S$1,
|
|
22583
|
+
strong: S$1,
|
|
22584
22584
|
style: {
|
|
22585
22585
|
attrs: {
|
|
22586
22586
|
type: ["text/css"],
|
|
@@ -22588,13 +22588,13 @@ const Tags = {
|
|
|
22588
22588
|
scoped: null
|
|
22589
22589
|
}
|
|
22590
22590
|
},
|
|
22591
|
-
sub: S,
|
|
22592
|
-
summary: S,
|
|
22593
|
-
sup: S,
|
|
22594
|
-
table: S,
|
|
22595
|
-
tbody: S,
|
|
22591
|
+
sub: S$1,
|
|
22592
|
+
summary: S$1,
|
|
22593
|
+
sup: S$1,
|
|
22594
|
+
table: S$1,
|
|
22595
|
+
tbody: S$1,
|
|
22596
22596
|
td: { attrs: { colspan: null, rowspan: null, headers: null } },
|
|
22597
|
-
template: S,
|
|
22597
|
+
template: S$1,
|
|
22598
22598
|
textarea: {
|
|
22599
22599
|
attrs: {
|
|
22600
22600
|
dirname: null,
|
|
@@ -22611,12 +22611,12 @@ const Tags = {
|
|
|
22611
22611
|
wrap: ["soft", "hard"]
|
|
22612
22612
|
}
|
|
22613
22613
|
},
|
|
22614
|
-
tfoot: S,
|
|
22614
|
+
tfoot: S$1,
|
|
22615
22615
|
th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
|
|
22616
|
-
thead: S,
|
|
22616
|
+
thead: S$1,
|
|
22617
22617
|
time: { attrs: { datetime: null } },
|
|
22618
|
-
title: S,
|
|
22619
|
-
tr: S,
|
|
22618
|
+
title: S$1,
|
|
22619
|
+
tr: S$1,
|
|
22620
22620
|
track: {
|
|
22621
22621
|
attrs: {
|
|
22622
22622
|
src: null,
|
|
@@ -22627,7 +22627,7 @@ const Tags = {
|
|
|
22627
22627
|
}
|
|
22628
22628
|
},
|
|
22629
22629
|
ul: { children: ["li", "script", "template", "ul", "ol"] },
|
|
22630
|
-
var: S,
|
|
22630
|
+
var: S$1,
|
|
22631
22631
|
video: {
|
|
22632
22632
|
attrs: {
|
|
22633
22633
|
src: null,
|
|
@@ -22642,7 +22642,7 @@ const Tags = {
|
|
|
22642
22642
|
controls: ["controls"]
|
|
22643
22643
|
}
|
|
22644
22644
|
},
|
|
22645
|
-
wbr: S
|
|
22645
|
+
wbr: S$1
|
|
22646
22646
|
};
|
|
22647
22647
|
const GlobalAttrs = {
|
|
22648
22648
|
accesskey: null,
|
|
@@ -24175,7 +24175,7 @@ function initVisitor(visitor) {
|
|
|
24175
24175
|
return visitor;
|
|
24176
24176
|
}
|
|
24177
24177
|
function callVisitor(key, node, visitor, path) {
|
|
24178
|
-
var _a2, _b, _c, _d,
|
|
24178
|
+
var _a2, _b, _c, _d, _e;
|
|
24179
24179
|
if (typeof visitor === "function")
|
|
24180
24180
|
return visitor(key, node, path);
|
|
24181
24181
|
if (isMap(node))
|
|
@@ -24187,7 +24187,7 @@ function callVisitor(key, node, visitor, path) {
|
|
|
24187
24187
|
if (isScalar(node))
|
|
24188
24188
|
return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path);
|
|
24189
24189
|
if (isAlias(node))
|
|
24190
|
-
return (
|
|
24190
|
+
return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path);
|
|
24191
24191
|
return void 0;
|
|
24192
24192
|
}
|
|
24193
24193
|
function replaceNode(key, path, node) {
|
|
@@ -24525,7 +24525,7 @@ class Collection extends NodeBase {
|
|
|
24525
24525
|
const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
24526
24526
|
if (schema)
|
|
24527
24527
|
copy.schema = schema;
|
|
24528
|
-
copy.items = copy.items.map((
|
|
24528
|
+
copy.items = copy.items.map((it) => isNode(it) || isPair(it) ? it.clone(schema) : it);
|
|
24529
24529
|
if (this.range)
|
|
24530
24530
|
copy.range = this.range.slice();
|
|
24531
24531
|
return copy;
|
|
@@ -25257,11 +25257,11 @@ function addPairToJSMap(ctx, map, { key, value }) {
|
|
|
25257
25257
|
if ((ctx == null ? void 0 : ctx.doc.schema.merge) && isMergeKey(key)) {
|
|
25258
25258
|
value = isAlias(value) ? value.resolve(ctx.doc) : value;
|
|
25259
25259
|
if (isSeq(value))
|
|
25260
|
-
for (const
|
|
25261
|
-
mergeToJSMap(ctx, map,
|
|
25260
|
+
for (const it of value.items)
|
|
25261
|
+
mergeToJSMap(ctx, map, it);
|
|
25262
25262
|
else if (Array.isArray(value))
|
|
25263
|
-
for (const
|
|
25264
|
-
mergeToJSMap(ctx, map,
|
|
25263
|
+
for (const it of value)
|
|
25264
|
+
mergeToJSMap(ctx, map, it);
|
|
25265
25265
|
else
|
|
25266
25266
|
mergeToJSMap(ctx, map, value);
|
|
25267
25267
|
} else {
|
|
@@ -25495,12 +25495,12 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
|
|
|
25495
25495
|
}
|
|
25496
25496
|
function findPair(items, key) {
|
|
25497
25497
|
const k = isScalar(key) ? key.value : key;
|
|
25498
|
-
for (const
|
|
25499
|
-
if (isPair(
|
|
25500
|
-
if (
|
|
25501
|
-
return
|
|
25502
|
-
if (isScalar(
|
|
25503
|
-
return
|
|
25498
|
+
for (const it of items) {
|
|
25499
|
+
if (isPair(it)) {
|
|
25500
|
+
if (it.key === key || it.key === k)
|
|
25501
|
+
return it;
|
|
25502
|
+
if (isScalar(it.key) && it.key.value === k)
|
|
25503
|
+
return it;
|
|
25504
25504
|
}
|
|
25505
25505
|
}
|
|
25506
25506
|
return void 0;
|
|
@@ -25575,15 +25575,15 @@ class YAMLMap extends Collection {
|
|
|
25575
25575
|
}
|
|
25576
25576
|
}
|
|
25577
25577
|
delete(key) {
|
|
25578
|
-
const
|
|
25579
|
-
if (!
|
|
25578
|
+
const it = findPair(this.items, key);
|
|
25579
|
+
if (!it)
|
|
25580
25580
|
return false;
|
|
25581
|
-
const del = this.items.splice(this.items.indexOf(
|
|
25581
|
+
const del = this.items.splice(this.items.indexOf(it), 1);
|
|
25582
25582
|
return del.length > 0;
|
|
25583
25583
|
}
|
|
25584
25584
|
get(key, keepScalar) {
|
|
25585
|
-
const
|
|
25586
|
-
const node =
|
|
25585
|
+
const it = findPair(this.items, key);
|
|
25586
|
+
const node = it == null ? void 0 : it.value;
|
|
25587
25587
|
return (!keepScalar && isScalar(node) ? node.value : node) ?? void 0;
|
|
25588
25588
|
}
|
|
25589
25589
|
has(key) {
|
|
@@ -25653,8 +25653,8 @@ class YAMLSeq extends Collection {
|
|
|
25653
25653
|
const idx = asItemIndex(key);
|
|
25654
25654
|
if (typeof idx !== "number")
|
|
25655
25655
|
return void 0;
|
|
25656
|
-
const
|
|
25657
|
-
return !keepScalar && isScalar(
|
|
25656
|
+
const it = this.items[idx];
|
|
25657
|
+
return !keepScalar && isScalar(it) ? it.value : it;
|
|
25658
25658
|
}
|
|
25659
25659
|
/**
|
|
25660
25660
|
* Checks if the collection includes a value with the key `key`.
|
|
@@ -25708,12 +25708,12 @@ class YAMLSeq extends Collection {
|
|
|
25708
25708
|
const seq = new this(schema);
|
|
25709
25709
|
if (obj && Symbol.iterator in Object(obj)) {
|
|
25710
25710
|
let i = 0;
|
|
25711
|
-
for (let
|
|
25711
|
+
for (let it of obj) {
|
|
25712
25712
|
if (typeof replacer === "function") {
|
|
25713
|
-
const key = obj instanceof Set ?
|
|
25714
|
-
|
|
25713
|
+
const key = obj instanceof Set ? it : String(i++);
|
|
25714
|
+
it = replacer.call(obj, key, it);
|
|
25715
25715
|
}
|
|
25716
|
-
seq.items.push(createNode(
|
|
25716
|
+
seq.items.push(createNode(it, void 0, ctx));
|
|
25717
25717
|
}
|
|
25718
25718
|
}
|
|
25719
25719
|
return seq;
|
|
@@ -25731,26 +25731,26 @@ function createPairs(schema, iterable, ctx) {
|
|
|
25731
25731
|
pairs.tag = "tag:yaml.org,2002:pairs";
|
|
25732
25732
|
let i = 0;
|
|
25733
25733
|
if (iterable && Symbol.iterator in Object(iterable))
|
|
25734
|
-
for (let
|
|
25734
|
+
for (let it of iterable) {
|
|
25735
25735
|
if (typeof replacer === "function")
|
|
25736
|
-
|
|
25736
|
+
it = replacer.call(iterable, String(i++), it);
|
|
25737
25737
|
let key, value;
|
|
25738
|
-
if (Array.isArray(
|
|
25739
|
-
if (
|
|
25740
|
-
key =
|
|
25741
|
-
value =
|
|
25738
|
+
if (Array.isArray(it)) {
|
|
25739
|
+
if (it.length === 2) {
|
|
25740
|
+
key = it[0];
|
|
25741
|
+
value = it[1];
|
|
25742
25742
|
} else
|
|
25743
|
-
throw new TypeError(`Expected [key, value] tuple: ${
|
|
25744
|
-
} else if (
|
|
25745
|
-
const keys = Object.keys(
|
|
25743
|
+
throw new TypeError(`Expected [key, value] tuple: ${it}`);
|
|
25744
|
+
} else if (it && it instanceof Object) {
|
|
25745
|
+
const keys = Object.keys(it);
|
|
25746
25746
|
if (keys.length === 1) {
|
|
25747
25747
|
key = keys[0];
|
|
25748
|
-
value =
|
|
25748
|
+
value = it[key];
|
|
25749
25749
|
} else {
|
|
25750
25750
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
|
25751
25751
|
}
|
|
25752
25752
|
} else {
|
|
25753
|
-
key =
|
|
25753
|
+
key = it;
|
|
25754
25754
|
}
|
|
25755
25755
|
pairs.items.push(createPair(key, value, ctx));
|
|
25756
25756
|
}
|
|
@@ -30819,20 +30819,20 @@ var prism = { exports: {} };
|
|
|
30819
30819
|
})();
|
|
30820
30820
|
})(prism);
|
|
30821
30821
|
var prismExports = prism.exports;
|
|
30822
|
-
const
|
|
30823
|
-
const
|
|
30822
|
+
const A = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
|
|
30823
|
+
const O = "scalar-component", le = extendTailwindMerge({
|
|
30824
30824
|
extend: {
|
|
30825
30825
|
classGroups: {
|
|
30826
30826
|
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
|
|
30827
|
-
[
|
|
30827
|
+
[O]: [O]
|
|
30828
30828
|
}
|
|
30829
30829
|
}
|
|
30830
|
-
}), { cva:
|
|
30830
|
+
}), { cva: I, cx: S, compose: $e } = defineConfig({
|
|
30831
30831
|
hooks: {
|
|
30832
|
-
onComplete: (r2) => `${
|
|
30832
|
+
onComplete: (r2) => `${le(r2, O)}`
|
|
30833
30833
|
}
|
|
30834
30834
|
});
|
|
30835
|
-
const
|
|
30835
|
+
const V = {
|
|
30836
30836
|
solid: [
|
|
30837
30837
|
"scalar-button-solid",
|
|
30838
30838
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -30850,7 +30850,7 @@ const j = {
|
|
|
30850
30850
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
30851
30851
|
]
|
|
30852
30852
|
};
|
|
30853
|
-
|
|
30853
|
+
I({
|
|
30854
30854
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
30855
30855
|
variants: {
|
|
30856
30856
|
disabled: {
|
|
@@ -30858,7 +30858,7 @@ y({
|
|
|
30858
30858
|
},
|
|
30859
30859
|
fullWidth: { true: "w-full" },
|
|
30860
30860
|
size: { md: "h-10 px-6 text-sm" },
|
|
30861
|
-
variant:
|
|
30861
|
+
variant: V
|
|
30862
30862
|
},
|
|
30863
30863
|
compoundVariants: [
|
|
30864
30864
|
{
|
|
@@ -30876,7 +30876,7 @@ y({
|
|
|
30876
30876
|
// this looks reasonably well in all themes
|
|
30877
30877
|
inside: null
|
|
30878
30878
|
// see below
|
|
30879
|
-
},
|
|
30879
|
+
}, d = {
|
|
30880
30880
|
bash: e,
|
|
30881
30881
|
environment: {
|
|
30882
30882
|
pattern: RegExp("\\$" + t2),
|
|
@@ -30988,7 +30988,7 @@ y({
|
|
|
30988
30988
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
30989
30989
|
lookbehind: true,
|
|
30990
30990
|
greedy: true,
|
|
30991
|
-
inside:
|
|
30991
|
+
inside: d
|
|
30992
30992
|
},
|
|
30993
30993
|
// Here-document with quotes around the tag
|
|
30994
30994
|
// → No expansion (so no “inside”).
|
|
@@ -31006,7 +31006,7 @@ y({
|
|
|
31006
31006
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
31007
31007
|
lookbehind: true,
|
|
31008
31008
|
greedy: true,
|
|
31009
|
-
inside:
|
|
31009
|
+
inside: d
|
|
31010
31010
|
},
|
|
31011
31011
|
{
|
|
31012
31012
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -31019,7 +31019,7 @@ y({
|
|
|
31019
31019
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
31020
31020
|
greedy: true,
|
|
31021
31021
|
inside: {
|
|
31022
|
-
entity:
|
|
31022
|
+
entity: d.entity
|
|
31023
31023
|
}
|
|
31024
31024
|
}
|
|
31025
31025
|
],
|
|
@@ -31027,7 +31027,7 @@ y({
|
|
|
31027
31027
|
pattern: RegExp("\\$?" + t2),
|
|
31028
31028
|
alias: "constant"
|
|
31029
31029
|
},
|
|
31030
|
-
variable:
|
|
31030
|
+
variable: d.variable,
|
|
31031
31031
|
function: {
|
|
31032
31032
|
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;|&])/,
|
|
31033
31033
|
lookbehind: true
|
|
@@ -31083,8 +31083,8 @@ y({
|
|
|
31083
31083
|
"operator",
|
|
31084
31084
|
"punctuation",
|
|
31085
31085
|
"number"
|
|
31086
|
-
],
|
|
31087
|
-
|
|
31086
|
+
], f = d.variable[1].inside, a = 0; a < u.length; a++)
|
|
31087
|
+
f[u[a]] = r2.languages.bash[u[a]];
|
|
31088
31088
|
r2.languages.sh = r2.languages.bash, r2.languages.shell = r2.languages.bash;
|
|
31089
31089
|
})(Prism);
|
|
31090
31090
|
Prism.languages.json = {
|
|
@@ -31123,14 +31123,14 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31123
31123
|
* @param {number} number line number
|
|
31124
31124
|
* @returns {Element|undefined}
|
|
31125
31125
|
*/
|
|
31126
|
-
getLine: function(a,
|
|
31126
|
+
getLine: function(a, n) {
|
|
31127
31127
|
if (!(a.tagName !== "PRE" || !a.classList.contains(r2))) {
|
|
31128
|
-
var
|
|
31129
|
-
if (
|
|
31130
|
-
var
|
|
31131
|
-
|
|
31132
|
-
var
|
|
31133
|
-
return
|
|
31128
|
+
var o = a.querySelector(".line-numbers-rows");
|
|
31129
|
+
if (o) {
|
|
31130
|
+
var s = parseInt(a.getAttribute("data-start"), 10) || 1, p = s + (o.children.length - 1);
|
|
31131
|
+
n < s && (n = s), n > p && (n = p);
|
|
31132
|
+
var l = n - s;
|
|
31133
|
+
return o.children[l];
|
|
31134
31134
|
}
|
|
31135
31135
|
}
|
|
31136
31136
|
},
|
|
@@ -31143,7 +31143,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31143
31143
|
* @returns {void}
|
|
31144
31144
|
*/
|
|
31145
31145
|
resize: function(a) {
|
|
31146
|
-
|
|
31146
|
+
d([a]);
|
|
31147
31147
|
},
|
|
31148
31148
|
/**
|
|
31149
31149
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
@@ -31157,42 +31157,42 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31157
31157
|
*/
|
|
31158
31158
|
assumeViewportIndependence: true
|
|
31159
31159
|
};
|
|
31160
|
-
function
|
|
31161
|
-
if (a = a.filter(function(
|
|
31162
|
-
var
|
|
31160
|
+
function d(a) {
|
|
31161
|
+
if (a = a.filter(function(o) {
|
|
31162
|
+
var s = u(o), p = s["white-space"];
|
|
31163
31163
|
return p === "pre-wrap" || p === "pre-line";
|
|
31164
31164
|
}), a.length != 0) {
|
|
31165
|
-
var
|
|
31166
|
-
var
|
|
31167
|
-
if (!(!
|
|
31168
|
-
var
|
|
31169
|
-
|
|
31170
|
-
var i =
|
|
31171
|
-
return
|
|
31172
|
-
element:
|
|
31173
|
-
lines:
|
|
31165
|
+
var n = a.map(function(o) {
|
|
31166
|
+
var s = o.querySelector("code"), p = o.querySelector(".line-numbers-rows");
|
|
31167
|
+
if (!(!s || !p)) {
|
|
31168
|
+
var l = o.querySelector(".line-numbers-sizer"), h = s.textContent.split(t2);
|
|
31169
|
+
l || (l = document.createElement("span"), l.className = "line-numbers-sizer", s.appendChild(l)), l.innerHTML = "0", l.style.display = "block";
|
|
31170
|
+
var i = l.getBoundingClientRect().height;
|
|
31171
|
+
return l.innerHTML = "", {
|
|
31172
|
+
element: o,
|
|
31173
|
+
lines: h,
|
|
31174
31174
|
lineHeights: [],
|
|
31175
31175
|
oneLinerHeight: i,
|
|
31176
|
-
sizer:
|
|
31176
|
+
sizer: l
|
|
31177
31177
|
};
|
|
31178
31178
|
}
|
|
31179
31179
|
}).filter(Boolean);
|
|
31180
|
-
|
|
31181
|
-
var
|
|
31182
|
-
|
|
31180
|
+
n.forEach(function(o) {
|
|
31181
|
+
var s = o.sizer, p = o.lines, l = o.lineHeights, h = o.oneLinerHeight;
|
|
31182
|
+
l[p.length - 1] = void 0, p.forEach(function(i, b) {
|
|
31183
31183
|
if (i && i.length > 1) {
|
|
31184
|
-
var
|
|
31185
|
-
|
|
31184
|
+
var y = s.appendChild(document.createElement("span"));
|
|
31185
|
+
y.style.display = "block", y.textContent = i;
|
|
31186
31186
|
} else
|
|
31187
|
-
|
|
31187
|
+
l[b] = h;
|
|
31188
31188
|
});
|
|
31189
|
-
}),
|
|
31190
|
-
for (var
|
|
31191
|
-
p[
|
|
31192
|
-
}),
|
|
31193
|
-
var
|
|
31194
|
-
|
|
31195
|
-
p.children[
|
|
31189
|
+
}), n.forEach(function(o) {
|
|
31190
|
+
for (var s = o.sizer, p = o.lineHeights, l = 0, h = 0; h < p.length; h++)
|
|
31191
|
+
p[h] === void 0 && (p[h] = s.children[l++].getBoundingClientRect().height);
|
|
31192
|
+
}), n.forEach(function(o) {
|
|
31193
|
+
var s = o.sizer, p = o.element.querySelector(".line-numbers-rows");
|
|
31194
|
+
s.style.display = "none", s.innerHTML = "", o.lineHeights.forEach(function(l, h) {
|
|
31195
|
+
p.children[h].style.height = l + "px";
|
|
31196
31196
|
});
|
|
31197
31197
|
});
|
|
31198
31198
|
}
|
|
@@ -31200,29 +31200,29 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31200
31200
|
function u(a) {
|
|
31201
31201
|
return a ? window.getComputedStyle ? getComputedStyle(a) : a.currentStyle || null : null;
|
|
31202
31202
|
}
|
|
31203
|
-
var
|
|
31203
|
+
var f = void 0;
|
|
31204
31204
|
window.addEventListener("resize", function() {
|
|
31205
|
-
e.assumeViewportIndependence &&
|
|
31205
|
+
e.assumeViewportIndependence && f === window.innerWidth || (f = window.innerWidth, d(Array.prototype.slice.call(document.querySelectorAll("pre." + r2))));
|
|
31206
31206
|
}), Prism.hooks.add("complete", function(a) {
|
|
31207
31207
|
if (a.code) {
|
|
31208
|
-
var
|
|
31208
|
+
var n = (
|
|
31209
31209
|
/** @type {Element} */
|
|
31210
31210
|
a.element
|
|
31211
|
-
),
|
|
31211
|
+
), o = (
|
|
31212
31212
|
/** @type {HTMLElement} */
|
|
31213
|
-
|
|
31213
|
+
n.parentNode
|
|
31214
31214
|
);
|
|
31215
|
-
if (!(!
|
|
31216
|
-
|
|
31217
|
-
var
|
|
31218
|
-
|
|
31215
|
+
if (!(!o || !/pre/i.test(o.nodeName)) && !n.querySelector(".line-numbers-rows") && Prism.util.isActive(n, r2)) {
|
|
31216
|
+
n.classList.remove(r2), o.classList.add(r2);
|
|
31217
|
+
var s = a.code.match(t2), p = s ? s.length + 1 : 1, l, h = new Array(p + 1).join("<span></span>");
|
|
31218
|
+
l = document.createElement("span"), l.setAttribute("aria-hidden", "true"), l.className = "line-numbers-rows", l.innerHTML = h, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), a.element.appendChild(l), d([o]), Prism.hooks.run("line-numbers", a);
|
|
31219
31219
|
}
|
|
31220
31220
|
}
|
|
31221
31221
|
}), Prism.hooks.add("line-numbers", function(a) {
|
|
31222
31222
|
a.plugins = a.plugins || {}, a.plugins.lineNumbers = true;
|
|
31223
31223
|
});
|
|
31224
31224
|
})();
|
|
31225
|
-
const
|
|
31225
|
+
const ve = ["innerHTML"], He = /* @__PURE__ */ defineComponent({
|
|
31226
31226
|
__name: "ScalarCodeBlock",
|
|
31227
31227
|
props: {
|
|
31228
31228
|
content: {},
|
|
@@ -31231,45 +31231,45 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ defineComponent({
|
|
|
31231
31231
|
hideCredentials: {}
|
|
31232
31232
|
},
|
|
31233
31233
|
setup(r2) {
|
|
31234
|
-
const t2 = r2, { plugins: e, highlightElement:
|
|
31235
|
-
t2.hideCredentials &&
|
|
31234
|
+
const t2 = r2, { plugins: e, highlightElement: d } = A;
|
|
31235
|
+
t2.hideCredentials && A.hooks.add("wrap", function(n) {
|
|
31236
31236
|
if (!t2.hideCredentials)
|
|
31237
31237
|
return;
|
|
31238
|
-
let
|
|
31239
|
-
typeof t2.hideCredentials == "string" ?
|
|
31240
|
-
(
|
|
31241
|
-
)),
|
|
31238
|
+
let o = false;
|
|
31239
|
+
typeof t2.hideCredentials == "string" ? n.content.includes(t2.hideCredentials) && (o = true) : Array.isArray(t2.hideCredentials) && (o = t2.hideCredentials.some(
|
|
31240
|
+
(s) => n.content.includes(s)
|
|
31241
|
+
)), o && (n.content = n.content.replace(
|
|
31242
31242
|
/<span class="credentials">.*?<\/span>/g,
|
|
31243
|
-
(
|
|
31244
|
-
),
|
|
31243
|
+
(s) => s.replace(/<span class="credentials">|<\/span>/g, "")
|
|
31244
|
+
), n.content = n.content.replace(
|
|
31245
31245
|
new RegExp(
|
|
31246
31246
|
typeof t2.hideCredentials == "string" ? t2.hideCredentials : t2.hideCredentials.join("|"),
|
|
31247
31247
|
"g"
|
|
31248
31248
|
),
|
|
31249
|
-
(
|
|
31249
|
+
(s) => `<span class="credentials">${s}</span>`
|
|
31250
31250
|
));
|
|
31251
31251
|
});
|
|
31252
|
-
const u = ref(null),
|
|
31252
|
+
const u = ref(null), f = ref(""), a = computed(() => t2.lang === "node" ? "js" : t2.lang);
|
|
31253
31253
|
return watch(
|
|
31254
31254
|
() => [t2.lang, t2.content],
|
|
31255
31255
|
() => {
|
|
31256
|
-
u.value && nextTick(() =>
|
|
31256
|
+
u.value && nextTick(() => d(u.value));
|
|
31257
31257
|
}
|
|
31258
31258
|
), onServerPrefetch(async () => {
|
|
31259
|
-
const
|
|
31259
|
+
const n = A.highlight(
|
|
31260
31260
|
typeof t2.content == "object" ? JSON.stringify(t2.content) : t2.content,
|
|
31261
|
-
|
|
31261
|
+
A.languages[a.value],
|
|
31262
31262
|
a.value
|
|
31263
31263
|
);
|
|
31264
|
-
|
|
31264
|
+
f.value = n;
|
|
31265
31265
|
}), onMounted(async () => {
|
|
31266
|
-
u.value &&
|
|
31267
|
-
}), (
|
|
31266
|
+
u.value && d(u.value), await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"), e.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
31267
|
+
}), (n, o) => f.value ? (openBlock(), createElementBlock("pre", {
|
|
31268
31268
|
key: 0,
|
|
31269
31269
|
class: normalizeClass([
|
|
31270
31270
|
`scalar-component scalar-codeblock-pre language-${a.value}`,
|
|
31271
31271
|
{
|
|
31272
|
-
"line-numbers":
|
|
31272
|
+
"line-numbers": n.lineNumbers
|
|
31273
31273
|
}
|
|
31274
31274
|
])
|
|
31275
31275
|
}, [
|
|
@@ -31277,137 +31277,32 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ defineComponent({
|
|
|
31277
31277
|
ref_key: "el",
|
|
31278
31278
|
ref: u,
|
|
31279
31279
|
class: normalizeClass(`scalar-codeblock-code language-${a.value}`),
|
|
31280
|
-
innerHTML:
|
|
31281
|
-
}, null, 10,
|
|
31280
|
+
innerHTML: f.value
|
|
31281
|
+
}, null, 10, ve)
|
|
31282
31282
|
], 2)) : (openBlock(), createElementBlock("pre", {
|
|
31283
31283
|
key: 1,
|
|
31284
31284
|
class: normalizeClass(["scalar-component scalar-codeblock-pre", {
|
|
31285
|
-
"line-numbers":
|
|
31285
|
+
"line-numbers": n.lineNumbers
|
|
31286
31286
|
}])
|
|
31287
31287
|
}, [
|
|
31288
31288
|
createElementVNode("code", {
|
|
31289
31289
|
ref_key: "el",
|
|
31290
31290
|
ref: u,
|
|
31291
31291
|
class: normalizeClass(`scalar-codeblock-code lang-${a.value}`)
|
|
31292
|
-
}, toDisplayString(
|
|
31292
|
+
}, toDisplayString(n.content), 3)
|
|
31293
31293
|
], 2));
|
|
31294
31294
|
}
|
|
31295
|
-
}),
|
|
31296
|
-
const s = new r2().parseFromString(t2, "image/svg+xml");
|
|
31297
|
-
if (s.getElementsByTagName("parsererror").length)
|
|
31298
|
-
return;
|
|
31299
|
-
const u = s.documentElement, g = be(u.attributes), { width: a, height: o, ...n } = g;
|
|
31300
|
-
return h("svg", { ...n, innerHTML: u.innerHTML });
|
|
31301
|
-
}, _e = defineAsyncComponent(async () => {
|
|
31302
|
-
const r2 = typeof DOMParser > "u" ? (await import("./index-CpJxdgyL.js").then((n) => n.i)).DOMParser : DOMParser, t2 = we(r2);
|
|
31303
|
-
return t2.props = {
|
|
31304
|
-
raw: {
|
|
31305
|
-
type: String,
|
|
31306
|
-
required: true
|
|
31307
|
-
}
|
|
31308
|
-
}, t2;
|
|
31309
|
-
}), ke = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
|
|
31310
|
-
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.429"
|
|
31311
|
-
d="M24 1.714v44.572M1.714 24h44.572" />
|
|
31312
|
-
</svg>`, Se = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 23.5" fill="currentColor">
|
|
31313
|
-
<path d="M11.2 23.5 0 12.3l2.15-2.15 9.05 9.05L30.4 0l2.15 2.15z" />
|
|
31314
|
-
</svg>`, Ce = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31315
|
-
<path d="M4.5 8.25L12 15.75L19.5 8.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31316
|
-
</svg>
|
|
31317
|
-
`, xe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31318
|
-
<path d="M15.75 19.5L8.25 12L15.75 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31319
|
-
</svg>
|
|
31320
|
-
`, ye = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31321
|
-
<path d="M8.25 19.5L15.75 12L8.25 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31322
|
-
</svg>`, Ee = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31323
|
-
<path d="M19.5 15.75L12 8.25L4.5 15.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31324
|
-
</svg>
|
|
31325
|
-
`, Le = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16">
|
|
31326
|
-
<path d="M6,5h4c1.7,0,2-1.3,2-3c1.1,0,2,0.9,2,2v10c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V4c0-1.1,0.9-2,2-2C4,3.7,4.3,5,6,5z M6,2V1
|
|
31327
|
-
c0-0.6,0.5-1,1-1h2c0.5,0,1,0.4,1,1v1.3C10,2.9,9.6,3,9,3H7C6.4,3,6,2.6,6,2z" />
|
|
31328
|
-
</svg>`, Ae = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
31329
|
-
<path stroke="currentColor" d="m12.5 1.5-11 11m0-11 11 11" />
|
|
31330
|
-
</svg>`, Te = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
|
|
31331
|
-
<path
|
|
31332
|
-
d="M9.557,7.243A.456.456,0,0,0,9.1,6.991C9.023,7,8.951,7,8.877,7A4,4,0,0,1,5.546.781.5.5,0,0,0,5.564.256.476.476,0,0,0,5.1,0,5,5,0,1,0,9.539,7.767.5.5,0,0,0,9.557,7.243Z"
|
|
31333
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31334
|
-
</svg>`, Me = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
31335
|
-
<path
|
|
31336
|
-
d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" />
|
|
31337
|
-
</svg>`, Ie = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
|
|
31338
|
-
<g fill="none" fill-rule="evenodd" transform="translate(.67 .67)">
|
|
31339
|
-
<rect transform="rotate(180 4 4)" />
|
|
31340
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"
|
|
31341
|
-
d="M2.85 1.73h3.4v3.4m0-3.4L1.74 6.24" />
|
|
31342
|
-
</g>
|
|
31343
|
-
</svg>`, Ne = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024">
|
|
31344
|
-
<path
|
|
31345
|
-
d="M512 0a512 512 0 0 0-162 998c26 4 35-11 35-25l-1-95c-128 23-161-32-172-60-6-15-31-61-52-73-18-10-44-33-1-33 40-1 69 37 78 52 46 78 120 56 149 43 5-33 18-56 33-69-114-13-234-56-234-253 0-56 20-101 53-137-5-13-23-65 5-136 0 0 43-13 141 53a487 487 0 0 1 256 0c98-66 141-53 141-53 28 71 10 123 5 136 33 36 53 81 53 137 0 197-120 240-234 253 18 16 35 47 35 95l-1 140c0 14 9 30 35 25A512 512 0 0 0 512 0z" />
|
|
31346
|
-
</svg>`, Oe = `<svg
|
|
31347
|
-
height="24"
|
|
31348
|
-
viewBox="0 0 24 24"
|
|
31349
|
-
width="24"
|
|
31350
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
31351
|
-
<path
|
|
31352
|
-
d="M24 12a1 1 0 0 0 -1 -1h-3.91a0.51 0.51 0 0 1 -0.49 -0.4 6.83 6.83 0 0 0 -0.94 -2.28 0.5 0.5 0 0 1 0.06 -0.63l2.77 -2.76a1 1 0 1 0 -1.42 -1.42l-2.76 2.77a0.5 0.5 0 0 1 -0.63 0.06 6.83 6.83 0 0 0 -2.28 -0.94 0.5 0.5 0 0 1 -0.4 -0.49V1a1 1 0 0 0 -2 0v3.91a0.51 0.51 0 0 1 -0.4 0.49 6.83 6.83 0 0 0 -2.28 0.94 0.5 0.5 0 0 1 -0.63 -0.06L4.93 3.51a1 1 0 0 0 -1.42 1.42l2.77 2.76a0.5 0.5 0 0 1 0.06 0.63 6.83 6.83 0 0 0 -0.94 2.28 0.5 0.5 0 0 1 -0.49 0.4H1a1 1 0 0 0 0 2h3.91a0.51 0.51 0 0 1 0.49 0.4 6.83 6.83 0 0 0 0.94 2.28 0.5 0.5 0 0 1 -0.06 0.63l-2.77 2.76a1 1 0 1 0 1.42 1.42l2.76 -2.77a0.5 0.5 0 0 1 0.63 -0.06 6.83 6.83 0 0 0 2.28 0.94 0.5 0.5 0 0 1 0.4 0.49V23a1 1 0 0 0 2 0v-3.91a0.51 0.51 0 0 1 0.4 -0.49 6.83 6.83 0 0 0 2.28 -0.94 0.5 0.5 0 0 1 0.63 0.06l2.76 2.77a1 1 0 1 0 1.42 -1.42l-2.77 -2.76a0.5 0.5 0 0 1 -0.06 -0.63 6.83 6.83 0 0 0 0.94 -2.28 0.5 0.5 0 0 1 0.49 -0.4H23a1 1 0 0 0 1 -1Zm-8.74 2.5A5.76 5.76 0 0 1 9.5 8.74a5.66 5.66 0 0 1 0.16 -1.31 0.49 0.49 0 0 1 0.34 -0.36 5.36 5.36 0 0 1 1.8 -0.31 5.47 5.47 0 0 1 5.46 5.46 5.36 5.36 0 0 1 -0.31 1.8 0.49 0.49 0 0 1 -0.35 0.32 5.53 5.53 0 0 1 -1.34 0.16Z"
|
|
31353
|
-
fill="currentColor"
|
|
31354
|
-
stroke-width="1"></path>
|
|
31355
|
-
</svg>`, Be = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
|
|
31356
|
-
<path d="M3.500 5.000 A1.500 1.500 0 1 0 6.500 5.000 A1.500 1.500 0 1 0 3.500 5.000 Z" fill="currentColor"
|
|
31357
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31358
|
-
<path d="M5,2.25a.625.625,0,0,1-.625-.625v-1a.625.625,0,0,1,1.25,0v1A.625.625,0,0,1,5,2.25Z" fill="currentColor"
|
|
31359
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31360
|
-
<path d="M6.945,3.055a.623.623,0,0,1,0-.883l.707-.708a.625.625,0,0,1,.884.884l-.708.707A.623.623,0,0,1,6.945,3.055Z"
|
|
31361
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31362
|
-
<path d="M7.75,5a.625.625,0,0,1,.625-.625h1a.625.625,0,0,1,0,1.25h-1A.625.625,0,0,1,7.75,5Z" fill="currentColor"
|
|
31363
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31364
|
-
<path d="M6.945,6.945a.623.623,0,0,1,.883,0l.708.707a.625.625,0,0,1-.884.884l-.707-.708A.623.623,0,0,1,6.945,6.945Z"
|
|
31365
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31366
|
-
<path d="M5,7.75a.625.625,0,0,1,.625.625v1a.625.625,0,0,1-1.25,0v-1A.625.625,0,0,1,5,7.75Z" fill="currentColor"
|
|
31367
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31368
|
-
<path
|
|
31369
|
-
d="M3.055,6.945a.623.623,0,0,1,0,.883l-.707.708a.625.625,0,0,1-.884-.884l.708-.707A.623.623,0,0,1,3.055,6.945Z"
|
|
31370
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31371
|
-
<path d="M2.25,5a.625.625,0,0,1-.625.625h-1a.625.625,0,0,1,0-1.25h1A.625.625,0,0,1,2.25,5Z" fill="currentColor"
|
|
31372
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31373
|
-
<path
|
|
31374
|
-
d="M3.055,3.055a.623.623,0,0,1-.883,0l-.708-.707a.625.625,0,0,1,.884-.884l.707.708A.623.623,0,0,1,3.055,3.055Z"
|
|
31375
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31376
|
-
</svg>`, De = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 593 593">
|
|
31377
|
-
<path fill="currentColor" fill-rule="evenodd"
|
|
31378
|
-
d="M347 0c6 0 12 5 12 12v134l94-95c5-5 13-5 17 0l72 72c4 4 5 12 0 16v1l-95 94h134c7 0 12 5 12 12v101c0 7-5 12-12 12H447l95 94c4 5 5 13 0 17l-72 72c-4 4-12 5-16 0h-1l-94-95v134c0 7-5 12-12 12H246c-7 0-12-5-12-12v-70c0-22 9-43 24-59l130-130c14-14 14-37 0-51L259 142a84 84 0 0 1-25-59V12c0-7 5-12 12-12h101ZM138 52h1l219 219c14 14 14 37 0 51L139 542c-4 5-12 5-17 0l-71-70c-4-5-5-12 0-17l95-96H12c-7 0-12-5-12-12V246c0-7 5-12 12-12h134l-95-94c-4-5-4-12 0-17l71-71c4-5 12-5 16 0Z" />
|
|
31379
|
-
</svg>`, Re = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 662 662">
|
|
31380
|
-
<path fill-rule="evenodd" fill="currentColor"
|
|
31381
|
-
d="M331 0a331 331 0 1 1 0 662 331 331 0 0 1 0-662Zm148.5 109 .6.9a187 187 0 1 1-297.6-.9 267 267 0 1 0 297 0Z" />
|
|
31382
|
-
</svg>`, ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620">
|
|
31383
|
-
<path fill="currentColor"
|
|
31384
|
-
d="M-.653 309.29c-.078 82.272 31.848 159.735 89.739 218.178l.283.283c122.379 121.247 319.824 121.184 440.16-.283 119.967-121.1 119.409-316.933-.998-437.339l-.99-.99C468.681 30.845 390.716-1.017 307.893-.67c-82.83.354-160.443 32.994-218.814 91.79C31.209 149.555-.724 227.025-.653 309.29Zm469.271-160.789.778.778c87.9 87.9 88.325 231.005.707 319.33-77.753 78.46-199.786 87.412-288.959 26.862l198.513-198.513-.007 166.361 83.68-.07v-306.22H157.11l-.008 83.6h160.584L121.994 436.323c-59.347-87.689-50.536-208.59 26.51-286.343C236.34 61.294 379.94 60.67 468.61 148.494Z" />
|
|
31385
|
-
</svg>`, Pe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 642 642" fill="currentColor">
|
|
31386
|
-
<path
|
|
31387
|
-
d="M321 0a321 321 0 1 1 0 642 321 321 0 0 1 0-642Zm51.3 63L321 189.5 269.7 63l1 136.5-95.8-97.2L228 228l-125.7-53.1 97.2 95.8-136.5-1L189.5 321 63 372.3l136.5-1-97.2 95.8 125.7-53-53.1 125.6 95.8-97.2-1 136.5L321 452.5 372.3 579l-1-136.5 95.8 97.2-53-125.7 125.6 53.1-97.2-95.8 136.5 1L452.5 321 579 269.7l-136.5 1 97.2-95.8L414 228l53.1-125.7-95.8 97.2 1-136.5Z" />
|
|
31388
|
-
</svg>`, He = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620" fill="currentColor">
|
|
31389
|
-
<path
|
|
31390
|
-
d="M529.2 90.8A310 310 0 1 0 90.8 529.2 310 310 0 0 0 529.2 90.8M122.4 498.2c-54.9-55-15.4-183.5 88.2-287 103.6-103.7 232.1-143.2 287-88.3 54.9 54.8 15.4 183.4-88.3 287-103.5 103.6-232 143.1-286.9 88.3m261.8-262.7A104.7 104.7 0 1 1 236 383.7a104.7 104.7 0 0 1 148.2-148.2" />
|
|
31391
|
-
</svg>`, $e = `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 14 14">
|
|
31392
|
-
<path fill="none" stroke="currentColor" d="M14 3.4H0m14 7.2H0" />
|
|
31393
|
-
</svg>`, Ge = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
31394
|
-
<path fill="currentColor" fill-rule="evenodd"
|
|
31395
|
-
d="M11.8214 0.0977942C12.1097 -0.00745677 12.4219 -0.0286524 12.7219 0.0367783C13.0248 0.102864 13.3024 0.254542 13.5216 0.47378C13.7408 0.693018 13.8925 0.970598 13.9586 1.27352C14.024 1.57344 14.0028 1.88572 13.8976 2.17395L10.3236 12.8859L10.3234 12.8866C10.2363 13.1501 10.083 13.3868 9.8781 13.574C9.6738 13.7606 9.42509 13.8918 9.15572 13.9549C8.8863 14.0206 8.60441 14.0151 8.33774 13.9389C8.07131 13.8628 7.82926 13.7187 7.63529 13.5209L5.71795 11.6124L3.70389 12.6538C3.54684 12.7351 3.35857 12.7273 3.20874 12.6334C3.05892 12.5395 2.96981 12.3735 2.9744 12.1967L3.05697 9.013L10.1019 3.8956C10.3812 3.69273 10.4432 3.30188 10.2403 3.02261C10.0374 2.74333 9.64659 2.68139 9.36731 2.88425L2.20283 8.08846L0.473125 6.35875L0.473067 6.3587L0.472941 6.35857C0.285618 6.17138 0.147716 5.9406 0.0716193 5.68694C-0.00393616 5.43509 -0.0162115 5.16853 0.0358379 4.91085C0.0879545 4.62934 0.213796 4.36664 0.400577 4.14957C0.588637 3.93101 0.83165 3.76664 1.1045 3.67345L1.10787 3.6723L1.10787 3.67231L11.8214 0.0977942Z"
|
|
31396
|
-
clip-rule="evenodd"></path>
|
|
31397
|
-
</svg>`, je = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor">
|
|
31398
|
-
<path fill-rule="evenodd"
|
|
31399
|
-
d="M12.6 11.2h.1l3 3a1 1 0 1 1-1.4 1.5l-3-3a1 1 0 0 1-.1-.1 7 7 0 1 1 1.4-1.4zM7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10z" />
|
|
31400
|
-
</svg>`, D = /* @__PURE__ */ Object.assign({ "./Add.svg": ke, "./CheckMark.svg": Se, "./ChevronDown.svg": Ce, "./ChevronLeft.svg": xe, "./ChevronRight.svg": ye, "./ChevronUp.svg": Ee, "./Clipboard.svg": Le, "./Close.svg": Ae, "./DarkMode.svg": Te, "./Ellipses.svg": Me, "./ExternalLink.svg": Ie, "./GitHub.svg": Ne, "./LightDarkModeToggle.svg": Oe, "./LightMode.svg": Be, "./Logo.svg": De, "./LogoAPI.svg": Re, "./LogoClient.svg": ze, "./LogoMarket.svg": Pe, "./LogoSwagger.svg": He, "./Menu.svg": $e, "./PaperAirplane.svg": Ge, "./Search.svg": je }), Ve = (r2) => {
|
|
31295
|
+
}), R = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-MwmVL5-v-3DrL2GXw.js"), "./CheckMark.svg": () => import("./CheckMark-t0gl4N9U-BE06BAQA.js"), "./ChevronDown.svg": () => import("./ChevronDown-CSOB0535-B4yzccwY.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DusxsQw--DtptzfiA.js"), "./ChevronRight.svg": () => import("./ChevronRight-DgANAl_6-9rEHMCZa.js"), "./ChevronUp.svg": () => import("./ChevronUp-BbfQZGKP-dgR-r-Gf.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-DFM1qMQH-DMPtwWpT.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./ExternalLink.svg": () => import("./ExternalLink-D5zCsWas-MT2ACYLZ.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M-LQcor9RM.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK-Bzb5EbnZ.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P-B_rZ91PC.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab-_INRDSLs.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW-DFEpFXIU.js"), "./Menu.svg": () => import("./Menu-DFi9Laso-BhIZrQxp.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./arrow-chevron-down.svg": () => import("./arrow-chevron-down-DraTmtzQ-CmhjsghI.js"), "./arrow-chevron-left.svg": () => import("./arrow-chevron-left-AE5dugcd-CK2UDnAx.js"), "./arrow-chevron-right.svg": () => import("./arrow-chevron-right-DbHwONUO-B8PWWWhR.js"), "./arrow-chevron-up.svg": () => import("./arrow-chevron-up-C2T-G4GN-8uVOllAj.js"), "./arrow-down.svg": () => import("./arrow-down-rfW-r_qd-DCnCiMpp.js"), "./arrow-left.svg": () => import("./arrow-left-DDkHt-xN-CFh-lXGZ.js"), "./arrow-right.svg": () => import("./arrow-right-17dZkGZR-C5So-BEm.js"), "./arrow-up.svg": () => import("./arrow-up-CexG2Ble-BlrsZtgs.js"), "./brand-software-development-github.svg": () => import("./brand-software-development-github-ZQnPxpDg-9BAblfAs.js"), "./interface-add.svg": () => import("./interface-add-Bthe4y9O-EDM5uqD-.js"), "./interface-close.svg": () => import("./interface-close-WpJOu-2h-W6lKje7S.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk-Bzc9D9am.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19-CfPlyy6T.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy-Cty_4oXq.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN-DdUogL85.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb-B1_8fYG9.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6-BUgfSlg1.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I-BWQXI44M.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w-CWqBHVz_.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi-BMZrSR1t.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm-DZhaOPIJ.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX-BR-B91By.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36-S3xix_dw.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9-BWGOKD9M.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g-Dd3La6Kn.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ-Bz_n-CNw.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7-XJbYjh7O.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg-BUvu5_SV.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi-CaDO02MW.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2-BPFALXVk.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), P = (r2) => {
|
|
31401
31296
|
const t2 = `./${r2}.svg`;
|
|
31402
|
-
return
|
|
31403
|
-
},
|
|
31297
|
+
return R[t2] ? defineAsyncComponent(R[t2]) : (console.warn(`Could not find icon: ${r2}`), null);
|
|
31298
|
+
}, be = ["src"], j = /* @__PURE__ */ defineComponent({
|
|
31404
31299
|
__name: "ScalarIcon",
|
|
31405
31300
|
props: {
|
|
31406
31301
|
icon: {},
|
|
31407
31302
|
size: {}
|
|
31408
31303
|
},
|
|
31409
31304
|
setup(r2) {
|
|
31410
|
-
const t2 = r2, e =
|
|
31305
|
+
const t2 = r2, e = I({
|
|
31411
31306
|
variants: {
|
|
31412
31307
|
size: {
|
|
31413
31308
|
xs: "h-3 w-3",
|
|
@@ -31421,12 +31316,14 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ defineComponent({
|
|
|
31421
31316
|
defaultVariants: {
|
|
31422
31317
|
size: "full"
|
|
31423
31318
|
}
|
|
31424
|
-
}),
|
|
31425
|
-
return (u,
|
|
31319
|
+
}), d = P(t2.icon);
|
|
31320
|
+
return (u, f) => unref(d) ? (openBlock(), createBlock(resolveDynamicComponent(unref(P)(u.icon)), {
|
|
31426
31321
|
key: 0,
|
|
31427
|
-
class: normalizeClass(unref(
|
|
31428
|
-
|
|
31429
|
-
|
|
31322
|
+
class: normalizeClass(unref(S)("scalar-icon", unref(e)({ size: u.size })))
|
|
31323
|
+
}, null, 8, ["class"])) : (openBlock(), createElementBlock("img", {
|
|
31324
|
+
key: 1,
|
|
31325
|
+
src: u.icon
|
|
31326
|
+
}, null, 8, be));
|
|
31430
31327
|
}
|
|
31431
31328
|
});
|
|
31432
31329
|
const _hoisted_1$f = { class: "table" };
|
|
@@ -31587,7 +31484,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
31587
31484
|
onClick: addHandler
|
|
31588
31485
|
}, [
|
|
31589
31486
|
createElementVNode("i", _hoisted_24, [
|
|
31590
|
-
createVNode(unref(
|
|
31487
|
+
createVNode(unref(j), { icon: "Add" })
|
|
31591
31488
|
]),
|
|
31592
31489
|
createTextVNode(" " + toDisplayString(_ctx.addLabel), 1)
|
|
31593
31490
|
])) : createCommentVNode("", true),
|
|
@@ -31599,7 +31496,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
31599
31496
|
}, [
|
|
31600
31497
|
createTextVNode(" Show More "),
|
|
31601
31498
|
createElementVNode("i", _hoisted_25, [
|
|
31602
|
-
createVNode(unref(
|
|
31499
|
+
createVNode(unref(j), { icon: "ChevronDown" })
|
|
31603
31500
|
])
|
|
31604
31501
|
])) : createCommentVNode("", true)
|
|
31605
31502
|
])
|
|
@@ -32046,7 +31943,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32046
31943
|
return openBlock(), createBlock(unref(_sfc_main$j), { title: "Body" }, {
|
|
32047
31944
|
default: withCtx(() => [
|
|
32048
31945
|
_ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
32049
|
-
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(
|
|
31946
|
+
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(He), {
|
|
32050
31947
|
key: 0,
|
|
32051
31948
|
class: "custom-scroll",
|
|
32052
31949
|
content: _ctx.data,
|