@oiij/naive-ui 0.0.57 → 0.0.59
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/dist/components/search-input/SearchInput.vue.d.ts +248 -24
- package/dist/components/toggle-editor/ToggleEditor.vue.d.ts +124 -12
- package/dist/components/tooltip-button/TooltipButton.vue.d.ts +2 -2
- package/dist/components/tooltip-button/index.d.ts +1 -1
- package/dist/components.cjs +20 -20
- package/dist/components.js +341 -333
- package/dist/components.umd.cjs +18 -18
- package/dist/composables/useDataRequest.cjs +6 -3
- package/dist/composables/useDataRequest.d.cts +1 -1
- package/dist/composables/useDataRequest.d.ts +7 -7
- package/dist/composables/useNaiveForm.cjs +4 -2
- package/dist/composables/useNaiveForm.d.ts +5 -5
- package/dist/composables/useNaiveTheme.cjs +6 -3
- package/dist/composables/useNaiveTheme.d.cts +6 -0
- package/dist/composables/useNaiveTheme.d.ts +6 -0
- package/package.json +16 -16
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as Tr, onBeforeMount as Mo, defineComponent as de, createBlock as Z, openBlock as U, Transition as Lo, mergeProps as te, unref as w, withCtx as M, renderSlot as I, ref as G, toValue as q, isRef as
|
|
2
|
-
import { NEl as
|
|
1
|
+
import { inject as Tr, onBeforeMount as Mo, defineComponent as de, createBlock as Z, openBlock as U, Transition as Lo, mergeProps as te, unref as w, withCtx as M, renderSlot as I, ref as G, toValue as q, isRef as Wt, isReactive as No, watchEffect as De, watch as ze, computed as ne, nextTick as Pr, normalizeClass as Su, createElementVNode as Ue, normalizeStyle as en, createVNode as V, createCommentVNode as Ee, resolveDynamicComponent as ot, Teleport as $o, normalizeProps as X, guardReactiveProps as Q, createSlots as Rr, onMounted as Io, createElementBlock as Oe, createTextVNode as Mu, toDisplayString as uu, onScopeDispose as un, onUnmounted as Bo, reactive as Ze, toRefs as zo, useTemplateRef as ft, Fragment as wu, toRaw as xe, h as Ke, renderList as $n, withModifiers as Uo, mergeModels as qo, useModel as jo } from "vue";
|
|
2
|
+
import { NEl as tn, NAvatar as Ho, NFlex as Cu, NSpin as Or, cM as In, NConfigProvider as Go, NLoadingBarProvider as Vo, NDialogProvider as Wo, NModalProvider as Zo, NNotificationProvider as Yo, NMessageProvider as Xo, NGlobalStyle as Qo, useDialog as Jo, useLoadingBar as Ko, useMessage as ei, useModal as ui, useNotification as ti, NTooltip as nn, NButton as tu, NInputGroup as ni, NInput as rn, NDataTable as ri, NPagination as Mr, NTimePicker as oi, NSwitch as ii, NSlider as ai, NSelect as Lr, NRate as li, NRadioGroup as ci, NInputNumber as si, NDynamicTags as fi, NDatePicker as di, NDivider as Nr, NCheckboxGroup as pi, NColorPicker as hi, NCheckbox as bi, NRadio as mi, NForm as gi, NGrid as Bn, NGi as zn, NFormItem as Un, NCollapseTransition as ki, NBadge as xi, NButtonGroup as _i, NModal as vi } from "naive-ui";
|
|
3
3
|
import { createEventHook as Ve, useClipboard as yi, useTimeoutFn as Ei, useDebounceFn as $r } from "@vueuse/core";
|
|
4
4
|
function Ai(e) {
|
|
5
5
|
let u = ".", t = "__", n = "--", r;
|
|
@@ -134,13 +134,13 @@ function Si(e) {
|
|
|
134
134
|
t && (t.includes("&") ? u = Di(u, t) : u = Fi(u, t));
|
|
135
135
|
}), u.join(", ").replace(Ci, " ");
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function qn(e) {
|
|
138
138
|
if (!e)
|
|
139
139
|
return;
|
|
140
140
|
const u = e.parentElement;
|
|
141
141
|
u && u.removeChild(e);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function on(e, u) {
|
|
144
144
|
return (u ?? document.head).querySelector(`style[cssr-id="${e}"]`);
|
|
145
145
|
}
|
|
146
146
|
function Ti(e) {
|
|
@@ -166,7 +166,7 @@ function Oi(e, u, t) {
|
|
|
166
166
|
props: t
|
|
167
167
|
}) : e;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function jn(e, u, t, n) {
|
|
170
170
|
if (!u)
|
|
171
171
|
return "";
|
|
172
172
|
const r = Oi(u, t, n);
|
|
@@ -195,13 +195,13 @@ ${r}
|
|
|
195
195
|
}), e && a.push("}"), a.join(`
|
|
196
196
|
`);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Zt(e, u, t) {
|
|
199
199
|
e && e.forEach((n) => {
|
|
200
200
|
if (Array.isArray(n))
|
|
201
|
-
|
|
201
|
+
Zt(n, u, t);
|
|
202
202
|
else if (typeof n == "function") {
|
|
203
203
|
const r = n(u);
|
|
204
|
-
Array.isArray(r) ?
|
|
204
|
+
Array.isArray(r) ? Zt(r, u, t) : r && t(r);
|
|
205
205
|
} else n && t(n);
|
|
206
206
|
});
|
|
207
207
|
}
|
|
@@ -225,13 +225,13 @@ function zr(e, u, t, n, r) {
|
|
|
225
225
|
});
|
|
226
226
|
Gu(c) ? a = c : u.push(c);
|
|
227
227
|
}
|
|
228
|
-
const i = Si(u), l =
|
|
229
|
-
a ? t.push(`${a} {`) : l.length && t.push(l), e.children &&
|
|
228
|
+
const i = Si(u), l = jn(i, e.props, n, r);
|
|
229
|
+
a ? t.push(`${a} {`) : l.length && t.push(l), e.children && Zt(e.children, {
|
|
230
230
|
context: n.context,
|
|
231
231
|
props: r
|
|
232
232
|
}, (c) => {
|
|
233
233
|
if (typeof c == "string") {
|
|
234
|
-
const s =
|
|
234
|
+
const s = jn(i, { raw: c }, n, r);
|
|
235
235
|
t.push(s);
|
|
236
236
|
} else
|
|
237
237
|
zr(c, u, t, n, r);
|
|
@@ -266,13 +266,13 @@ typeof window < "u" && (window.__cssrContext = {});
|
|
|
266
266
|
function Ni(e, u, t, n) {
|
|
267
267
|
const { els: r } = u;
|
|
268
268
|
if (t === void 0)
|
|
269
|
-
r.forEach(
|
|
269
|
+
r.forEach(qn), u.els = [];
|
|
270
270
|
else {
|
|
271
|
-
const o =
|
|
272
|
-
o && r.includes(o) && (
|
|
271
|
+
const o = on(t, n);
|
|
272
|
+
o && r.includes(o) && (qn(o), u.els = r.filter((a) => a !== o));
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Hn(e, u) {
|
|
276
276
|
e.push(u);
|
|
277
277
|
}
|
|
278
278
|
function $i(e, u, t, n, r, o, a, i, l) {
|
|
@@ -282,7 +282,7 @@ function $i(e, u, t, n, r, o, a, i, l) {
|
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
i === void 0 && (i = document.head);
|
|
285
|
-
const s =
|
|
285
|
+
const s = on(t, i);
|
|
286
286
|
if (s !== null && !o)
|
|
287
287
|
return s;
|
|
288
288
|
const d = s ?? Ti(t);
|
|
@@ -291,9 +291,9 @@ function $i(e, u, t, n, r, o, a, i, l) {
|
|
|
291
291
|
if (a) {
|
|
292
292
|
const _ = i.querySelector(`meta[name="${a}"]`);
|
|
293
293
|
if (_)
|
|
294
|
-
return i.insertBefore(d, _),
|
|
294
|
+
return i.insertBefore(d, _), Hn(u.els, d), d;
|
|
295
295
|
}
|
|
296
|
-
return r ? i.insertBefore(d, i.querySelector("style, link")) : i.appendChild(d),
|
|
296
|
+
return r ? i.insertBefore(d, i.querySelector("style, link")) : i.appendChild(d), Hn(u.els, d), d;
|
|
297
297
|
}
|
|
298
298
|
function Ii(e) {
|
|
299
299
|
return Mi(this, this.instance, e);
|
|
@@ -324,7 +324,7 @@ function qi(e = {}) {
|
|
|
324
324
|
const u = {
|
|
325
325
|
c: ((...t) => Ui(u, ...t)),
|
|
326
326
|
use: (t, ...n) => t.install(u, ...n),
|
|
327
|
-
find:
|
|
327
|
+
find: on,
|
|
328
328
|
context: {},
|
|
329
329
|
config: e
|
|
330
330
|
};
|
|
@@ -426,10 +426,10 @@ const Ur = /* @__PURE__ */ de({
|
|
|
426
426
|
}, 16, ["name"]));
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
|
-
/*! @license DOMPurify 3.2.
|
|
429
|
+
/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
|
|
430
430
|
const {
|
|
431
431
|
entries: qr,
|
|
432
|
-
setPrototypeOf:
|
|
432
|
+
setPrototypeOf: Gn,
|
|
433
433
|
isFrozen: Ki,
|
|
434
434
|
getPrototypeOf: ea,
|
|
435
435
|
getOwnPropertyDescriptor: ua
|
|
@@ -439,8 +439,8 @@ let {
|
|
|
439
439
|
seal: Ae,
|
|
440
440
|
create: jr
|
|
441
441
|
} = Object, {
|
|
442
|
-
apply:
|
|
443
|
-
construct:
|
|
442
|
+
apply: Yt,
|
|
443
|
+
construct: Xt
|
|
444
444
|
} = typeof Reflect < "u" && Reflect;
|
|
445
445
|
be || (be = function(u) {
|
|
446
446
|
return u;
|
|
@@ -448,31 +448,35 @@ be || (be = function(u) {
|
|
|
448
448
|
Ae || (Ae = function(u) {
|
|
449
449
|
return u;
|
|
450
450
|
});
|
|
451
|
-
Zt || (Zt = function(u, t, n) {
|
|
452
|
-
return u.apply(t, n);
|
|
453
|
-
});
|
|
454
451
|
Yt || (Yt = function(u, t) {
|
|
455
|
-
|
|
452
|
+
for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), o = 2; o < n; o++)
|
|
453
|
+
r[o - 2] = arguments[o];
|
|
454
|
+
return u.apply(t, r);
|
|
455
|
+
});
|
|
456
|
+
Xt || (Xt = function(u) {
|
|
457
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
458
|
+
n[r - 1] = arguments[r];
|
|
459
|
+
return new u(...n);
|
|
456
460
|
});
|
|
457
|
-
const Zu = me(Array.prototype.forEach), ta = me(Array.prototype.lastIndexOf),
|
|
461
|
+
const Zu = me(Array.prototype.forEach), ta = me(Array.prototype.lastIndexOf), Vn = me(Array.prototype.pop), xu = me(Array.prototype.push), na = me(Array.prototype.splice), ut = me(String.prototype.toLowerCase), Ft = me(String.prototype.toString), St = me(String.prototype.match), _u = me(String.prototype.replace), ra = me(String.prototype.indexOf), oa = me(String.prototype.trim), Ce = me(Object.prototype.hasOwnProperty), he = me(RegExp.prototype.test), vu = ia(TypeError);
|
|
458
462
|
function me(e) {
|
|
459
463
|
return function(u) {
|
|
460
464
|
u instanceof RegExp && (u.lastIndex = 0);
|
|
461
465
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
462
466
|
n[r - 1] = arguments[r];
|
|
463
|
-
return
|
|
467
|
+
return Yt(e, u, n);
|
|
464
468
|
};
|
|
465
469
|
}
|
|
466
470
|
function ia(e) {
|
|
467
471
|
return function() {
|
|
468
472
|
for (var u = arguments.length, t = new Array(u), n = 0; n < u; n++)
|
|
469
473
|
t[n] = arguments[n];
|
|
470
|
-
return
|
|
474
|
+
return Xt(e, t);
|
|
471
475
|
};
|
|
472
476
|
}
|
|
473
477
|
function H(e, u) {
|
|
474
478
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ut;
|
|
475
|
-
|
|
479
|
+
Gn && Gn(e, null);
|
|
476
480
|
let n = u.length;
|
|
477
481
|
for (; n--; ) {
|
|
478
482
|
let r = u[n];
|
|
@@ -511,7 +515,7 @@ function yu(e, u) {
|
|
|
511
515
|
}
|
|
512
516
|
return t;
|
|
513
517
|
}
|
|
514
|
-
const Wn = be(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
518
|
+
const Wn = be(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Tt = be(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "slot", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = be(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), la = be(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Rt = be(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ca = be(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Zn = be(["#text"]), Yn = be(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ot = be(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Xn = be(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Yu = be(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), sa = Ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm), fa = Ae(/<%[\w\W]*|[\w\W]*%>/gm), da = Ae(/\$\{[\w\W]*/gm), pa = Ae(/^data-[\-\w.\u00B7-\uFFFF]+$/), ha = Ae(/^aria-[\-\w]+$/), Hr = Ae(
|
|
515
519
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
516
520
|
// eslint-disable-line no-useless-escape
|
|
517
521
|
), ba = Ae(/^(?:\w+script|data):/i), ma = Ae(
|
|
@@ -575,7 +579,7 @@ const Eu = {
|
|
|
575
579
|
function Vr() {
|
|
576
580
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ka();
|
|
577
581
|
const u = (L) => Vr(L);
|
|
578
|
-
if (u.version = "3.2.
|
|
582
|
+
if (u.version = "3.2.7", u.removed = [], !e || !e.document || e.document.nodeType !== Eu.document || !e.Element)
|
|
579
583
|
return u.isSupported = !1, u;
|
|
580
584
|
let {
|
|
581
585
|
document: t
|
|
@@ -610,7 +614,7 @@ function Vr() {
|
|
|
610
614
|
MUSTACHE_EXPR: $,
|
|
611
615
|
ERB_EXPR: Y,
|
|
612
616
|
TMPLIT_EXPR: K,
|
|
613
|
-
DATA_ATTR:
|
|
617
|
+
DATA_ATTR: ie,
|
|
614
618
|
ARIA_ATTR: pe,
|
|
615
619
|
IS_SCRIPT_OR_DATA: re,
|
|
616
620
|
ATTR_WHITESPACE: W,
|
|
@@ -619,9 +623,9 @@ function Vr() {
|
|
|
619
623
|
let {
|
|
620
624
|
IS_ALLOWED_URI: ee
|
|
621
625
|
} = Qn, j = null;
|
|
622
|
-
const T = H({}, [...Wn, ...
|
|
626
|
+
const T = H({}, [...Wn, ...Tt, ...Pt, ...Rt, ...Zn]);
|
|
623
627
|
let B = null;
|
|
624
|
-
const N = H({}, [...Yn, ...
|
|
628
|
+
const N = H({}, [...Yn, ...Ot, ...Xn, ...Yu]);
|
|
625
629
|
let z = Object.seal(jr(null, {
|
|
626
630
|
tagNameCheck: {
|
|
627
631
|
writable: !0,
|
|
@@ -641,28 +645,28 @@ function Vr() {
|
|
|
641
645
|
enumerable: !0,
|
|
642
646
|
value: !1
|
|
643
647
|
}
|
|
644
|
-
})), ye = null, Se = null,
|
|
648
|
+
})), ye = null, Se = null, nu = !0, ru = !0, ou = !1, Xe = !0, qe = !1, je = !0, Qe = !1, xt = !1, _t = !1, iu = !1, Bu = !1, zu = !1, xn = !0, _n = !1;
|
|
645
649
|
const Co = "user-content-";
|
|
646
|
-
let vt = !0,
|
|
647
|
-
const
|
|
648
|
-
let
|
|
649
|
-
const
|
|
650
|
+
let vt = !0, gu = !1, au = {}, lu = null;
|
|
651
|
+
const vn = H({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
652
|
+
let yn = null;
|
|
653
|
+
const En = H({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
650
654
|
let yt = null;
|
|
651
|
-
const
|
|
652
|
-
let
|
|
655
|
+
const An = H({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Uu = "http://www.w3.org/1998/Math/MathML", qu = "http://www.w3.org/2000/svg", Ne = "http://www.w3.org/1999/xhtml";
|
|
656
|
+
let cu = Ne, Et = !1, At = null;
|
|
653
657
|
const Do = H({}, [Uu, qu, Ne], Ft);
|
|
654
658
|
let ju = H({}, ["mi", "mo", "mn", "ms", "mtext"]), Hu = H({}, ["annotation-xml"]);
|
|
655
659
|
const Fo = H({}, ["title", "style", "font", "a", "script"]);
|
|
656
|
-
let
|
|
660
|
+
let ku = null;
|
|
657
661
|
const So = ["application/xhtml+xml", "text/html"], To = "text/html";
|
|
658
|
-
let ae = null,
|
|
659
|
-
const Po = t.createElement("form"),
|
|
662
|
+
let ae = null, su = null;
|
|
663
|
+
const Po = t.createElement("form"), wn = function(h) {
|
|
660
664
|
return h instanceof RegExp || h instanceof Function;
|
|
661
665
|
}, wt = function() {
|
|
662
666
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
663
|
-
if (!(
|
|
664
|
-
if ((!h || typeof h != "object") && (h = {}), h = Be(h),
|
|
665
|
-
So.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? To : h.PARSER_MEDIA_TYPE, ae =
|
|
667
|
+
if (!(su && su === h)) {
|
|
668
|
+
if ((!h || typeof h != "object") && (h = {}), h = Be(h), ku = // eslint-disable-next-line unicorn/prefer-includes
|
|
669
|
+
So.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? To : h.PARSER_MEDIA_TYPE, ae = ku === "application/xhtml+xml" ? Ft : ut, j = Ce(h, "ALLOWED_TAGS") ? H({}, h.ALLOWED_TAGS, ae) : T, B = Ce(h, "ALLOWED_ATTR") ? H({}, h.ALLOWED_ATTR, ae) : N, At = Ce(h, "ALLOWED_NAMESPACES") ? H({}, h.ALLOWED_NAMESPACES, Ft) : Do, yt = Ce(h, "ADD_URI_SAFE_ATTR") ? H(Be(An), h.ADD_URI_SAFE_ATTR, ae) : An, yn = Ce(h, "ADD_DATA_URI_TAGS") ? H(Be(En), h.ADD_DATA_URI_TAGS, ae) : En, lu = Ce(h, "FORBID_CONTENTS") ? H({}, h.FORBID_CONTENTS, ae) : vn, ye = Ce(h, "FORBID_TAGS") ? H({}, h.FORBID_TAGS, ae) : Be({}), Se = Ce(h, "FORBID_ATTR") ? H({}, h.FORBID_ATTR, ae) : Be({}), au = Ce(h, "USE_PROFILES") ? h.USE_PROFILES : !1, nu = h.ALLOW_ARIA_ATTR !== !1, ru = h.ALLOW_DATA_ATTR !== !1, ou = h.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, qe = h.SAFE_FOR_TEMPLATES || !1, je = h.SAFE_FOR_XML !== !1, Qe = h.WHOLE_DOCUMENT || !1, iu = h.RETURN_DOM || !1, Bu = h.RETURN_DOM_FRAGMENT || !1, zu = h.RETURN_TRUSTED_TYPE || !1, _t = h.FORCE_BODY || !1, xn = h.SANITIZE_DOM !== !1, _n = h.SANITIZE_NAMED_PROPS || !1, vt = h.KEEP_CONTENT !== !1, gu = h.IN_PLACE || !1, ee = h.ALLOWED_URI_REGEXP || Hr, cu = h.NAMESPACE || Ne, ju = h.MATHML_TEXT_INTEGRATION_POINTS || ju, Hu = h.HTML_INTEGRATION_POINTS || Hu, z = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && wn(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (z.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && wn(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (z.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), qe && (ru = !1), Bu && (iu = !0), au && (j = H({}, Zn), B = [], au.html === !0 && (H(j, Wn), H(B, Yn)), au.svg === !0 && (H(j, Tt), H(B, Ot), H(B, Yu)), au.svgFilters === !0 && (H(j, Pt), H(B, Ot), H(B, Yu)), au.mathMl === !0 && (H(j, Rt), H(B, Xn), H(B, Yu))), h.ADD_TAGS && (j === T && (j = Be(j)), H(j, h.ADD_TAGS, ae)), h.ADD_ATTR && (B === N && (B = Be(B)), H(B, h.ADD_ATTR, ae)), h.ADD_URI_SAFE_ATTR && H(yt, h.ADD_URI_SAFE_ATTR, ae), h.FORBID_CONTENTS && (lu === vn && (lu = Be(lu)), H(lu, h.FORBID_CONTENTS, ae)), vt && (j["#text"] = !0), Qe && H(j, ["html", "head", "body"]), j.table && (H(j, ["tbody"]), delete ye.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
666
670
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
667
671
|
throw vu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
668
672
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -670,16 +674,16 @@ function Vr() {
|
|
|
670
674
|
k = h.TRUSTED_TYPES_POLICY, f = k.createHTML("");
|
|
671
675
|
} else
|
|
672
676
|
k === void 0 && (k = xa(x, r)), k !== null && typeof f == "string" && (f = k.createHTML(""));
|
|
673
|
-
be && be(h),
|
|
677
|
+
be && be(h), su = h;
|
|
674
678
|
}
|
|
675
|
-
},
|
|
679
|
+
}, Cn = H({}, [...Tt, ...Pt, ...la]), Dn = H({}, [...Rt, ...ca]), Ro = function(h) {
|
|
676
680
|
let D = m(h);
|
|
677
681
|
(!D || !D.tagName) && (D = {
|
|
678
|
-
namespaceURI:
|
|
682
|
+
namespaceURI: cu,
|
|
679
683
|
tagName: "template"
|
|
680
684
|
});
|
|
681
685
|
const O = ut(h.tagName), ue = ut(D.tagName);
|
|
682
|
-
return At[h.namespaceURI] ? h.namespaceURI === qu ? D.namespaceURI === Ne ? O === "svg" : D.namespaceURI === Uu ? O === "svg" && (ue === "annotation-xml" || ju[ue]) : !!
|
|
686
|
+
return At[h.namespaceURI] ? h.namespaceURI === qu ? D.namespaceURI === Ne ? O === "svg" : D.namespaceURI === Uu ? O === "svg" && (ue === "annotation-xml" || ju[ue]) : !!Cn[O] : h.namespaceURI === Uu ? D.namespaceURI === Ne ? O === "math" : D.namespaceURI === qu ? O === "math" && Hu[ue] : !!Dn[O] : h.namespaceURI === Ne ? D.namespaceURI === qu && !Hu[ue] || D.namespaceURI === Uu && !ju[ue] ? !1 : !Dn[O] && (Fo[O] || !Cn[O]) : !!(ku === "application/xhtml+xml" && At[h.namespaceURI]) : !1;
|
|
683
687
|
}, Te = function(h) {
|
|
684
688
|
xu(u.removed, {
|
|
685
689
|
element: h
|
|
@@ -689,7 +693,7 @@ function Vr() {
|
|
|
689
693
|
} catch {
|
|
690
694
|
v(h);
|
|
691
695
|
}
|
|
692
|
-
},
|
|
696
|
+
}, Je = function(h, D) {
|
|
693
697
|
try {
|
|
694
698
|
xu(u.removed, {
|
|
695
699
|
attribute: D.getAttributeNode(h),
|
|
@@ -702,7 +706,7 @@ function Vr() {
|
|
|
702
706
|
});
|
|
703
707
|
}
|
|
704
708
|
if (D.removeAttribute(h), h === "is")
|
|
705
|
-
if (
|
|
709
|
+
if (iu || Bu)
|
|
706
710
|
try {
|
|
707
711
|
Te(D);
|
|
708
712
|
} catch {
|
|
@@ -712,31 +716,31 @@ function Vr() {
|
|
|
712
716
|
D.setAttribute(h, "");
|
|
713
717
|
} catch {
|
|
714
718
|
}
|
|
715
|
-
},
|
|
719
|
+
}, Fn = function(h) {
|
|
716
720
|
let D = null, O = null;
|
|
717
721
|
if (_t)
|
|
718
722
|
h = "<remove></remove>" + h;
|
|
719
723
|
else {
|
|
720
|
-
const
|
|
721
|
-
O =
|
|
724
|
+
const oe = St(h, /^[\r\n\t ]+/);
|
|
725
|
+
O = oe && oe[0];
|
|
722
726
|
}
|
|
723
|
-
|
|
727
|
+
ku === "application/xhtml+xml" && cu === Ne && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
|
|
724
728
|
const ue = k ? k.createHTML(h) : h;
|
|
725
|
-
if (
|
|
729
|
+
if (cu === Ne)
|
|
726
730
|
try {
|
|
727
|
-
D = new _().parseFromString(ue,
|
|
731
|
+
D = new _().parseFromString(ue, ku);
|
|
728
732
|
} catch {
|
|
729
733
|
}
|
|
730
734
|
if (!D || !D.documentElement) {
|
|
731
|
-
D = g.createDocument(
|
|
735
|
+
D = g.createDocument(cu, "template", null);
|
|
732
736
|
try {
|
|
733
737
|
D.documentElement.innerHTML = Et ? f : ue;
|
|
734
738
|
} catch {
|
|
735
739
|
}
|
|
736
740
|
}
|
|
737
|
-
const
|
|
738
|
-
return h && O &&
|
|
739
|
-
},
|
|
741
|
+
const fe = D.body || D.documentElement;
|
|
742
|
+
return h && O && fe.insertBefore(t.createTextNode(O), fe.childNodes[0] || null), cu === Ne ? C.call(D, Qe ? "html" : "body")[0] : Qe ? D.documentElement : fe;
|
|
743
|
+
}, Sn = function(h) {
|
|
740
744
|
return E.call(
|
|
741
745
|
h.ownerDocument || h,
|
|
742
746
|
h,
|
|
@@ -746,15 +750,15 @@ function Vr() {
|
|
|
746
750
|
);
|
|
747
751
|
}, Ct = function(h) {
|
|
748
752
|
return h instanceof d && (typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || !(h.attributes instanceof s) || typeof h.removeAttribute != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function");
|
|
749
|
-
},
|
|
753
|
+
}, Tn = function(h) {
|
|
750
754
|
return typeof i == "function" && h instanceof i;
|
|
751
755
|
};
|
|
752
756
|
function $e(L, h, D) {
|
|
753
757
|
Zu(L, (O) => {
|
|
754
|
-
O.call(u, h, D,
|
|
758
|
+
O.call(u, h, D, su);
|
|
755
759
|
});
|
|
756
760
|
}
|
|
757
|
-
const
|
|
761
|
+
const Pn = function(h) {
|
|
758
762
|
let D = null;
|
|
759
763
|
if ($e(S.beforeSanitizeElements, h, null), Ct(h))
|
|
760
764
|
return Te(h), !0;
|
|
@@ -762,17 +766,17 @@ function Vr() {
|
|
|
762
766
|
if ($e(S.uponSanitizeElement, h, {
|
|
763
767
|
tagName: O,
|
|
764
768
|
allowedTags: j
|
|
765
|
-
}), je && h.hasChildNodes() && !
|
|
769
|
+
}), je && h.hasChildNodes() && !Tn(h.firstElementChild) && he(/<[/\w!]/g, h.innerHTML) && he(/<[/\w!]/g, h.textContent) || h.nodeType === Eu.progressingInstruction || je && h.nodeType === Eu.comment && he(/<[/\w]/g, h.data))
|
|
766
770
|
return Te(h), !0;
|
|
767
771
|
if (!j[O] || ye[O]) {
|
|
768
|
-
if (!ye[O] &&
|
|
772
|
+
if (!ye[O] && On(O) && (z.tagNameCheck instanceof RegExp && he(z.tagNameCheck, O) || z.tagNameCheck instanceof Function && z.tagNameCheck(O)))
|
|
769
773
|
return !1;
|
|
770
|
-
if (vt && !
|
|
771
|
-
const ue = m(h) || h.parentNode,
|
|
772
|
-
if (
|
|
773
|
-
const
|
|
774
|
-
for (let ge =
|
|
775
|
-
const Ie = y(
|
|
774
|
+
if (vt && !lu[O]) {
|
|
775
|
+
const ue = m(h) || h.parentNode, fe = b(h) || h.childNodes;
|
|
776
|
+
if (fe && ue) {
|
|
777
|
+
const oe = fe.length;
|
|
778
|
+
for (let ge = oe - 1; ge >= 0; --ge) {
|
|
779
|
+
const Ie = y(fe[ge], !0);
|
|
776
780
|
Ie.__removalCount = (h.__removalCount || 0) + 1, ue.insertBefore(Ie, A(h));
|
|
777
781
|
}
|
|
778
782
|
}
|
|
@@ -784,24 +788,24 @@ function Vr() {
|
|
|
784
788
|
}), h.textContent !== D && (xu(u.removed, {
|
|
785
789
|
element: h.cloneNode()
|
|
786
790
|
}), h.textContent = D)), $e(S.afterSanitizeElements, h, null), !1);
|
|
787
|
-
},
|
|
788
|
-
if (
|
|
791
|
+
}, Rn = function(h, D, O) {
|
|
792
|
+
if (xn && (D === "id" || D === "name") && (O in t || O in Po))
|
|
789
793
|
return !1;
|
|
790
|
-
if (!(
|
|
791
|
-
if (!(
|
|
794
|
+
if (!(ru && !Se[D] && he(ie, D))) {
|
|
795
|
+
if (!(nu && he(pe, D))) {
|
|
792
796
|
if (!B[D] || Se[D]) {
|
|
793
797
|
if (
|
|
794
798
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
795
799
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
796
800
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
797
|
-
!(
|
|
801
|
+
!(On(h) && (z.tagNameCheck instanceof RegExp && he(z.tagNameCheck, h) || z.tagNameCheck instanceof Function && z.tagNameCheck(h)) && (z.attributeNameCheck instanceof RegExp && he(z.attributeNameCheck, D) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(D, h)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
798
802
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
799
803
|
D === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && he(z.tagNameCheck, O) || z.tagNameCheck instanceof Function && z.tagNameCheck(O)))
|
|
800
804
|
) return !1;
|
|
801
805
|
} else if (!yt[D]) {
|
|
802
806
|
if (!he(ee, _u(O, W, ""))) {
|
|
803
|
-
if (!((D === "src" || D === "xlink:href" || D === "href") && h !== "script" && ra(O, "data:") === 0 &&
|
|
804
|
-
if (!(
|
|
807
|
+
if (!((D === "src" || D === "xlink:href" || D === "href") && h !== "script" && ra(O, "data:") === 0 && yn[h])) {
|
|
808
|
+
if (!(ou && !he(re, _u(O, W, "")))) {
|
|
805
809
|
if (O)
|
|
806
810
|
return !1;
|
|
807
811
|
}
|
|
@@ -811,9 +815,9 @@ function Vr() {
|
|
|
811
815
|
}
|
|
812
816
|
}
|
|
813
817
|
return !0;
|
|
814
|
-
}, Rn = function(h) {
|
|
815
|
-
return h !== "annotation-xml" && Vn(h, P);
|
|
816
818
|
}, On = function(h) {
|
|
819
|
+
return h !== "annotation-xml" && St(h, P);
|
|
820
|
+
}, Mn = function(h) {
|
|
817
821
|
$e(S.beforeSanitizeAttributes, h, null);
|
|
818
822
|
const {
|
|
819
823
|
attributes: D
|
|
@@ -829,63 +833,67 @@ function Vr() {
|
|
|
829
833
|
};
|
|
830
834
|
let ue = D.length;
|
|
831
835
|
for (; ue--; ) {
|
|
832
|
-
const
|
|
833
|
-
name:
|
|
836
|
+
const fe = D[ue], {
|
|
837
|
+
name: oe,
|
|
834
838
|
namespaceURI: ge,
|
|
835
839
|
value: Ie
|
|
836
|
-
} =
|
|
837
|
-
let
|
|
838
|
-
if (O.attrName =
|
|
839
|
-
|
|
840
|
+
} = fe, fu = ae(oe), Dt = Ie;
|
|
841
|
+
let se = oe === "value" ? Dt : oa(Dt);
|
|
842
|
+
if (O.attrName = fu, O.attrValue = se, O.keepAttr = !0, O.forceKeepAttr = void 0, $e(S.uponSanitizeAttribute, h, O), se = O.attrValue, _n && (fu === "id" || fu === "name") && (Je(oe, h), se = Co + se), je && he(/((--!?|])>)|<\/(style|title|textarea)/i, se)) {
|
|
843
|
+
Je(oe, h);
|
|
844
|
+
continue;
|
|
845
|
+
}
|
|
846
|
+
if (fu === "attributename" && St(se, "href")) {
|
|
847
|
+
Je(oe, h);
|
|
840
848
|
continue;
|
|
841
849
|
}
|
|
842
850
|
if (O.forceKeepAttr)
|
|
843
851
|
continue;
|
|
844
852
|
if (!O.keepAttr) {
|
|
845
|
-
|
|
853
|
+
Je(oe, h);
|
|
846
854
|
continue;
|
|
847
855
|
}
|
|
848
|
-
if (!Xe && he(/\/>/i,
|
|
849
|
-
|
|
856
|
+
if (!Xe && he(/\/>/i, se)) {
|
|
857
|
+
Je(oe, h);
|
|
850
858
|
continue;
|
|
851
859
|
}
|
|
852
|
-
qe && Zu([$, Y, K], (
|
|
853
|
-
|
|
860
|
+
qe && Zu([$, Y, K], (Nn) => {
|
|
861
|
+
se = _u(se, Nn, " ");
|
|
854
862
|
});
|
|
855
|
-
const
|
|
856
|
-
if (!
|
|
857
|
-
|
|
863
|
+
const Ln = ae(h.nodeName);
|
|
864
|
+
if (!Rn(Ln, fu, se)) {
|
|
865
|
+
Je(oe, h);
|
|
858
866
|
continue;
|
|
859
867
|
}
|
|
860
868
|
if (k && typeof x == "object" && typeof x.getAttributeType == "function" && !ge)
|
|
861
|
-
switch (x.getAttributeType(
|
|
869
|
+
switch (x.getAttributeType(Ln, fu)) {
|
|
862
870
|
case "TrustedHTML": {
|
|
863
|
-
|
|
871
|
+
se = k.createHTML(se);
|
|
864
872
|
break;
|
|
865
873
|
}
|
|
866
874
|
case "TrustedScriptURL": {
|
|
867
|
-
|
|
875
|
+
se = k.createScriptURL(se);
|
|
868
876
|
break;
|
|
869
877
|
}
|
|
870
878
|
}
|
|
871
|
-
if (
|
|
879
|
+
if (se !== Dt)
|
|
872
880
|
try {
|
|
873
|
-
ge ? h.setAttributeNS(ge,
|
|
881
|
+
ge ? h.setAttributeNS(ge, oe, se) : h.setAttribute(oe, se), Ct(h) ? Te(h) : Vn(u.removed);
|
|
874
882
|
} catch {
|
|
875
|
-
|
|
883
|
+
Je(oe, h);
|
|
876
884
|
}
|
|
877
885
|
}
|
|
878
886
|
$e(S.afterSanitizeAttributes, h, null);
|
|
879
887
|
}, Oo = function L(h) {
|
|
880
888
|
let D = null;
|
|
881
|
-
const O =
|
|
889
|
+
const O = Sn(h);
|
|
882
890
|
for ($e(S.beforeSanitizeShadowDOM, h, null); D = O.nextNode(); )
|
|
883
|
-
$e(S.uponSanitizeShadowNode, D, null),
|
|
891
|
+
$e(S.uponSanitizeShadowNode, D, null), Pn(D), Mn(D), D.content instanceof o && L(D.content);
|
|
884
892
|
$e(S.afterSanitizeShadowDOM, h, null);
|
|
885
893
|
};
|
|
886
894
|
return u.sanitize = function(L) {
|
|
887
|
-
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, D = null, O = null, ue = null,
|
|
888
|
-
if (Et = !L, Et && (L = "<!-->"), typeof L != "string" && !
|
|
895
|
+
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, D = null, O = null, ue = null, fe = null;
|
|
896
|
+
if (Et = !L, Et && (L = "<!-->"), typeof L != "string" && !Tn(L))
|
|
889
897
|
if (typeof L.toString == "function") {
|
|
890
898
|
if (L = L.toString(), typeof L != "string")
|
|
891
899
|
throw vu("dirty is not a string, aborting");
|
|
@@ -893,34 +901,34 @@ function Vr() {
|
|
|
893
901
|
throw vu("toString is not a function");
|
|
894
902
|
if (!u.isSupported)
|
|
895
903
|
return L;
|
|
896
|
-
if (xt || wt(h), u.removed = [], typeof L == "string" && (
|
|
904
|
+
if (xt || wt(h), u.removed = [], typeof L == "string" && (gu = !1), gu) {
|
|
897
905
|
if (L.nodeName) {
|
|
898
906
|
const Ie = ae(L.nodeName);
|
|
899
907
|
if (!j[Ie] || ye[Ie])
|
|
900
908
|
throw vu("root node is forbidden and cannot be sanitized in-place");
|
|
901
909
|
}
|
|
902
910
|
} else if (L instanceof i)
|
|
903
|
-
D =
|
|
911
|
+
D = Fn("<!---->"), O = D.ownerDocument.importNode(L, !0), O.nodeType === Eu.element && O.nodeName === "BODY" || O.nodeName === "HTML" ? D = O : D.appendChild(O);
|
|
904
912
|
else {
|
|
905
|
-
if (!
|
|
913
|
+
if (!iu && !qe && !Qe && // eslint-disable-next-line unicorn/prefer-includes
|
|
906
914
|
L.indexOf("<") === -1)
|
|
907
915
|
return k && zu ? k.createHTML(L) : L;
|
|
908
|
-
if (D =
|
|
909
|
-
return
|
|
916
|
+
if (D = Fn(L), !D)
|
|
917
|
+
return iu ? null : zu ? f : "";
|
|
910
918
|
}
|
|
911
919
|
D && _t && Te(D.firstChild);
|
|
912
|
-
const
|
|
913
|
-
for (; ue =
|
|
914
|
-
|
|
915
|
-
if (
|
|
920
|
+
const oe = Sn(gu ? L : D);
|
|
921
|
+
for (; ue = oe.nextNode(); )
|
|
922
|
+
Pn(ue), Mn(ue), ue.content instanceof o && Oo(ue.content);
|
|
923
|
+
if (gu)
|
|
916
924
|
return L;
|
|
917
|
-
if (
|
|
925
|
+
if (iu) {
|
|
918
926
|
if (Bu)
|
|
919
|
-
for (
|
|
920
|
-
|
|
927
|
+
for (fe = F.call(D.ownerDocument); D.firstChild; )
|
|
928
|
+
fe.appendChild(D.firstChild);
|
|
921
929
|
else
|
|
922
|
-
|
|
923
|
-
return (B.shadowroot || B.shadowrootmode) && (
|
|
930
|
+
fe = D;
|
|
931
|
+
return (B.shadowroot || B.shadowrootmode) && (fe = R.call(n, fe, !0)), fe;
|
|
924
932
|
}
|
|
925
933
|
let ge = Qe ? D.outerHTML : D.innerHTML;
|
|
926
934
|
return Qe && j["!doctype"] && D.ownerDocument && D.ownerDocument.doctype && D.ownerDocument.doctype.name && he(Gr, D.ownerDocument.doctype.name) && (ge = "<!DOCTYPE " + D.ownerDocument.doctype.name + `>
|
|
@@ -931,11 +939,11 @@ function Vr() {
|
|
|
931
939
|
let L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
932
940
|
wt(L), xt = !0;
|
|
933
941
|
}, u.clearConfig = function() {
|
|
934
|
-
|
|
942
|
+
su = null, xt = !1;
|
|
935
943
|
}, u.isValidAttribute = function(L, h, D) {
|
|
936
|
-
|
|
944
|
+
su || wt({});
|
|
937
945
|
const O = ae(L), ue = ae(h);
|
|
938
|
-
return
|
|
946
|
+
return Rn(O, ue, D);
|
|
939
947
|
}, u.addHook = function(L, h) {
|
|
940
948
|
typeof h == "function" && xu(S[L], h);
|
|
941
949
|
}, u.removeHook = function(L, h) {
|
|
@@ -943,7 +951,7 @@ function Vr() {
|
|
|
943
951
|
const D = ta(S[L], h);
|
|
944
952
|
return D === -1 ? void 0 : na(S[L], D, 1)[0];
|
|
945
953
|
}
|
|
946
|
-
return
|
|
954
|
+
return Vn(S[L]);
|
|
947
955
|
}, u.removeHooks = function(L) {
|
|
948
956
|
S[L] = [];
|
|
949
957
|
}, u.removeAllHooks = function() {
|
|
@@ -967,8 +975,8 @@ function va(e) {
|
|
|
967
975
|
}
|
|
968
976
|
return u;
|
|
969
977
|
}
|
|
970
|
-
function
|
|
971
|
-
typeof u != "string" && (u =
|
|
978
|
+
function hu(e, u) {
|
|
979
|
+
typeof u != "string" && (u = hu.defaultChars);
|
|
972
980
|
const t = va(u);
|
|
973
981
|
return e.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
974
982
|
let r = "";
|
|
@@ -1007,8 +1015,8 @@ function pu(e, u) {
|
|
|
1007
1015
|
return r;
|
|
1008
1016
|
});
|
|
1009
1017
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1018
|
+
hu.defaultChars = ";/?:@&=+$,#";
|
|
1019
|
+
hu.componentChars = "";
|
|
1012
1020
|
const er = {};
|
|
1013
1021
|
function ya(e) {
|
|
1014
1022
|
let u = er[e];
|
|
@@ -1054,7 +1062,7 @@ function Nu(e, u, t) {
|
|
|
1054
1062
|
}
|
|
1055
1063
|
Nu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
1056
1064
|
Nu.componentChars = "-_.!~*'()";
|
|
1057
|
-
function
|
|
1065
|
+
function an(e) {
|
|
1058
1066
|
let u = "";
|
|
1059
1067
|
return u += e.protocol || "", u += e.slashes ? "//" : "", u += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? u += "[" + e.hostname + "]" : u += e.hostname || "", u += e.port ? ":" + e.port : "", u += e.pathname || "", u += e.search || "", u += e.hash || "", u;
|
|
1060
1068
|
}
|
|
@@ -1077,7 +1085,7 @@ const Ea = /^([a-z0-9.+-]+:)/i, Aa = /:[0-9]*$/, wa = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
1077
1085
|
"gopher:": !0,
|
|
1078
1086
|
"file:": !0
|
|
1079
1087
|
};
|
|
1080
|
-
function
|
|
1088
|
+
function ln(e, u) {
|
|
1081
1089
|
if (e && e instanceof it) return e;
|
|
1082
1090
|
const t = new it();
|
|
1083
1091
|
return t.parse(e, u), t;
|
|
@@ -1131,16 +1139,16 @@ it.prototype.parseHost = function(e) {
|
|
|
1131
1139
|
};
|
|
1132
1140
|
const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1133
1141
|
__proto__: null,
|
|
1134
|
-
decode:
|
|
1142
|
+
decode: hu,
|
|
1135
1143
|
encode: Nu,
|
|
1136
|
-
format:
|
|
1137
|
-
parse:
|
|
1138
|
-
}, Symbol.toStringTag, { value: "Module" })), Wr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Zr = /[\0-\x1F\x7F-\x9F]/, Ra = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,
|
|
1144
|
+
format: an,
|
|
1145
|
+
parse: ln
|
|
1146
|
+
}, Symbol.toStringTag, { value: "Module" })), Wr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Zr = /[\0-\x1F\x7F-\x9F]/, Ra = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, cn = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Yr = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Xr = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1139
1147
|
__proto__: null,
|
|
1140
1148
|
Any: Wr,
|
|
1141
1149
|
Cc: Zr,
|
|
1142
1150
|
Cf: Ra,
|
|
1143
|
-
P:
|
|
1151
|
+
P: cn,
|
|
1144
1152
|
S: Yr,
|
|
1145
1153
|
Z: Xr
|
|
1146
1154
|
}, Symbol.toStringTag, { value: "Module" })), Ma = new Uint16Array(
|
|
@@ -1150,7 +1158,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1150
1158
|
// prettier-ignore
|
|
1151
1159
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0))
|
|
1152
1160
|
);
|
|
1153
|
-
var
|
|
1161
|
+
var Mt;
|
|
1154
1162
|
const Na = /* @__PURE__ */ new Map([
|
|
1155
1163
|
[0, 65533],
|
|
1156
1164
|
// C1 Unicode control character reference replacements
|
|
@@ -1183,7 +1191,7 @@ const Na = /* @__PURE__ */ new Map([
|
|
|
1183
1191
|
[159, 376]
|
|
1184
1192
|
]), $a = (
|
|
1185
1193
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
1186
|
-
(
|
|
1194
|
+
(Mt = String.fromCodePoint) !== null && Mt !== void 0 ? Mt : function(e) {
|
|
1187
1195
|
let u = "";
|
|
1188
1196
|
return e > 65535 && (e -= 65536, u += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), u += String.fromCharCode(e), u;
|
|
1189
1197
|
}
|
|
@@ -1201,14 +1209,14 @@ var We;
|
|
|
1201
1209
|
(function(e) {
|
|
1202
1210
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1203
1211
|
})(We || (We = {}));
|
|
1204
|
-
function
|
|
1212
|
+
function Qt(e) {
|
|
1205
1213
|
return e >= ce.ZERO && e <= ce.NINE;
|
|
1206
1214
|
}
|
|
1207
1215
|
function za(e) {
|
|
1208
1216
|
return e >= ce.UPPER_A && e <= ce.UPPER_F || e >= ce.LOWER_A && e <= ce.LOWER_F;
|
|
1209
1217
|
}
|
|
1210
1218
|
function Ua(e) {
|
|
1211
|
-
return e >= ce.UPPER_A && e <= ce.UPPER_Z || e >= ce.LOWER_A && e <= ce.LOWER_Z ||
|
|
1219
|
+
return e >= ce.UPPER_A && e <= ce.UPPER_Z || e >= ce.LOWER_A && e <= ce.LOWER_Z || Qt(e);
|
|
1212
1220
|
}
|
|
1213
1221
|
function qa(e) {
|
|
1214
1222
|
return e === ce.EQUALS || Ua(e);
|
|
@@ -1285,7 +1293,7 @@ class ja {
|
|
|
1285
1293
|
const n = t;
|
|
1286
1294
|
for (; t < u.length; ) {
|
|
1287
1295
|
const r = u.charCodeAt(t);
|
|
1288
|
-
if (
|
|
1296
|
+
if (Qt(r) || za(r))
|
|
1289
1297
|
t += 1;
|
|
1290
1298
|
else
|
|
1291
1299
|
return this.addToNumericResult(u, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1305,7 +1313,7 @@ class ja {
|
|
|
1305
1313
|
const n = t;
|
|
1306
1314
|
for (; t < u.length; ) {
|
|
1307
1315
|
const r = u.charCodeAt(t);
|
|
1308
|
-
if (
|
|
1316
|
+
if (Qt(r))
|
|
1309
1317
|
t += 1;
|
|
1310
1318
|
else
|
|
1311
1319
|
return this.addToNumericResult(u, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1459,7 +1467,7 @@ function Jr(e, u = Ge.Legacy) {
|
|
|
1459
1467
|
function Va(e) {
|
|
1460
1468
|
return Object.prototype.toString.call(e);
|
|
1461
1469
|
}
|
|
1462
|
-
function
|
|
1470
|
+
function sn(e) {
|
|
1463
1471
|
return Va(e) === "[object String]";
|
|
1464
1472
|
}
|
|
1465
1473
|
const Wa = Object.prototype.hasOwnProperty;
|
|
@@ -1480,7 +1488,7 @@ function bt(e) {
|
|
|
1480
1488
|
function Kr(e, u, t) {
|
|
1481
1489
|
return [].concat(e.slice(0, u), t, e.slice(u + 1));
|
|
1482
1490
|
}
|
|
1483
|
-
function
|
|
1491
|
+
function fn(e) {
|
|
1484
1492
|
return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111);
|
|
1485
1493
|
}
|
|
1486
1494
|
function at(e) {
|
|
@@ -1495,7 +1503,7 @@ const eo = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, Ya = /&([a-z#][a-z0-9]{
|
|
|
1495
1503
|
function Ja(e, u) {
|
|
1496
1504
|
if (u.charCodeAt(0) === 35 && Qa.test(u)) {
|
|
1497
1505
|
const n = u[1].toLowerCase() === "x" ? parseInt(u.slice(2), 16) : parseInt(u.slice(1), 10);
|
|
1498
|
-
return
|
|
1506
|
+
return fn(n) ? at(n) : e;
|
|
1499
1507
|
}
|
|
1500
1508
|
const t = Jr(e);
|
|
1501
1509
|
return t !== e ? t : e;
|
|
@@ -1503,7 +1511,7 @@ function Ja(e, u) {
|
|
|
1503
1511
|
function Ka(e) {
|
|
1504
1512
|
return e.indexOf("\\") < 0 ? e : e.replace(eo, "$1");
|
|
1505
1513
|
}
|
|
1506
|
-
function
|
|
1514
|
+
function bu(e) {
|
|
1507
1515
|
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Xa, function(u, t, n) {
|
|
1508
1516
|
return t || Ja(u, n);
|
|
1509
1517
|
});
|
|
@@ -1557,7 +1565,7 @@ function Tu(e) {
|
|
|
1557
1565
|
return !1;
|
|
1558
1566
|
}
|
|
1559
1567
|
function Pu(e) {
|
|
1560
|
-
return
|
|
1568
|
+
return cn.test(e) || Yr.test(e);
|
|
1561
1569
|
}
|
|
1562
1570
|
function Ru(e) {
|
|
1563
1571
|
switch (e) {
|
|
@@ -1612,12 +1620,12 @@ const i0 = { mdurl: Pa, ucmicro: Oa }, a0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1612
1620
|
isMdAsciiPunct: Ru,
|
|
1613
1621
|
isPunctChar: Pu,
|
|
1614
1622
|
isSpace: J,
|
|
1615
|
-
isString:
|
|
1616
|
-
isValidEntityCode:
|
|
1623
|
+
isString: sn,
|
|
1624
|
+
isValidEntityCode: fn,
|
|
1617
1625
|
isWhiteSpace: Tu,
|
|
1618
1626
|
lib: i0,
|
|
1619
1627
|
normalizeReference: mt,
|
|
1620
|
-
unescapeAll:
|
|
1628
|
+
unescapeAll: bu,
|
|
1621
1629
|
unescapeMd: Ka
|
|
1622
1630
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1623
1631
|
function l0(e, u, t) {
|
|
@@ -1650,7 +1658,7 @@ function c0(e, u, t) {
|
|
|
1650
1658
|
if (n = e.charCodeAt(r), n === 10 || n === 60)
|
|
1651
1659
|
return o;
|
|
1652
1660
|
if (n === 62)
|
|
1653
|
-
return o.pos = r + 1, o.str =
|
|
1661
|
+
return o.pos = r + 1, o.str = bu(e.slice(u + 1, r)), o.ok = !0, o;
|
|
1654
1662
|
if (n === 92 && r + 1 < t) {
|
|
1655
1663
|
r += 2;
|
|
1656
1664
|
continue;
|
|
@@ -1676,7 +1684,7 @@ function c0(e, u, t) {
|
|
|
1676
1684
|
}
|
|
1677
1685
|
r++;
|
|
1678
1686
|
}
|
|
1679
|
-
return u === r || a !== 0 || (o.str =
|
|
1687
|
+
return u === r || a !== 0 || (o.str = bu(e.slice(u, r)), o.pos = r, o.ok = !0), o;
|
|
1680
1688
|
}
|
|
1681
1689
|
function s0(e, u, t, n) {
|
|
1682
1690
|
let r, o = u;
|
|
@@ -1704,12 +1712,12 @@ function s0(e, u, t, n) {
|
|
|
1704
1712
|
}
|
|
1705
1713
|
for (; o < t; ) {
|
|
1706
1714
|
if (r = e.charCodeAt(o), r === a.marker)
|
|
1707
|
-
return a.pos = o + 1, a.str +=
|
|
1715
|
+
return a.pos = o + 1, a.str += bu(e.slice(u, o)), a.ok = !0, a;
|
|
1708
1716
|
if (r === 40 && a.marker === 41)
|
|
1709
1717
|
return a;
|
|
1710
1718
|
r === 92 && o + 1 < t && o++, o++;
|
|
1711
1719
|
}
|
|
1712
|
-
return a.can_continue = !0, a.str +=
|
|
1720
|
+
return a.can_continue = !0, a.str += bu(e.slice(u, o)), a;
|
|
1713
1721
|
}
|
|
1714
1722
|
const f0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1715
1723
|
__proto__: null,
|
|
@@ -1727,7 +1735,7 @@ Me.code_block = function(e, u, t, n, r) {
|
|
|
1727
1735
|
`;
|
|
1728
1736
|
};
|
|
1729
1737
|
Me.fence = function(e, u, t, n, r) {
|
|
1730
|
-
const o = e[u], a = o.info ?
|
|
1738
|
+
const o = e[u], a = o.info ? bu(o.info).trim() : "";
|
|
1731
1739
|
let i = "", l = "";
|
|
1732
1740
|
if (a) {
|
|
1733
1741
|
const s = a.split(/(\s+)/g);
|
|
@@ -1773,10 +1781,10 @@ Me.html_block = function(e, u) {
|
|
|
1773
1781
|
Me.html_inline = function(e, u) {
|
|
1774
1782
|
return e[u].content;
|
|
1775
1783
|
};
|
|
1776
|
-
function
|
|
1784
|
+
function mu() {
|
|
1777
1785
|
this.rules = bt({}, Me);
|
|
1778
1786
|
}
|
|
1779
|
-
|
|
1787
|
+
mu.prototype.renderAttrs = function(u) {
|
|
1780
1788
|
let t, n, r;
|
|
1781
1789
|
if (!u.attrs)
|
|
1782
1790
|
return "";
|
|
@@ -1784,7 +1792,7 @@ bu.prototype.renderAttrs = function(u) {
|
|
|
1784
1792
|
r += " " + Ye(u.attrs[t][0]) + '="' + Ye(u.attrs[t][1]) + '"';
|
|
1785
1793
|
return r;
|
|
1786
1794
|
};
|
|
1787
|
-
|
|
1795
|
+
mu.prototype.renderToken = function(u, t, n) {
|
|
1788
1796
|
const r = u[t];
|
|
1789
1797
|
let o = "";
|
|
1790
1798
|
if (r.hidden)
|
|
@@ -1799,7 +1807,7 @@ bu.prototype.renderToken = function(u, t, n) {
|
|
|
1799
1807
|
return o += a ? `>
|
|
1800
1808
|
` : ">", o;
|
|
1801
1809
|
};
|
|
1802
|
-
|
|
1810
|
+
mu.prototype.renderInline = function(e, u, t) {
|
|
1803
1811
|
let n = "";
|
|
1804
1812
|
const r = this.rules;
|
|
1805
1813
|
for (let o = 0, a = e.length; o < a; o++) {
|
|
@@ -1808,7 +1816,7 @@ bu.prototype.renderInline = function(e, u, t) {
|
|
|
1808
1816
|
}
|
|
1809
1817
|
return n;
|
|
1810
1818
|
};
|
|
1811
|
-
|
|
1819
|
+
mu.prototype.renderInlineAsText = function(e, u, t) {
|
|
1812
1820
|
let n = "";
|
|
1813
1821
|
for (let r = 0, o = e.length; r < o; r++)
|
|
1814
1822
|
switch (e[r].type) {
|
|
@@ -1830,7 +1838,7 @@ bu.prototype.renderInlineAsText = function(e, u, t) {
|
|
|
1830
1838
|
}
|
|
1831
1839
|
return n;
|
|
1832
1840
|
};
|
|
1833
|
-
|
|
1841
|
+
mu.prototype.render = function(e, u, t) {
|
|
1834
1842
|
let n = "";
|
|
1835
1843
|
const r = this.rules;
|
|
1836
1844
|
for (let o = 0, a = e.length; o < a; o++) {
|
|
@@ -2150,7 +2158,7 @@ function T0(e) {
|
|
|
2150
2158
|
u !== t && (a.length = t);
|
|
2151
2159
|
}
|
|
2152
2160
|
}
|
|
2153
|
-
const
|
|
2161
|
+
const Lt = [
|
|
2154
2162
|
["normalize", h0],
|
|
2155
2163
|
["block", b0],
|
|
2156
2164
|
["inline", m0],
|
|
@@ -2161,17 +2169,17 @@ const Mt = [
|
|
|
2161
2169
|
// and joins them with the rest of the text
|
|
2162
2170
|
["text_join", T0]
|
|
2163
2171
|
];
|
|
2164
|
-
function
|
|
2172
|
+
function dn() {
|
|
2165
2173
|
this.ruler = new _e();
|
|
2166
|
-
for (let e = 0; e <
|
|
2167
|
-
this.ruler.push(
|
|
2174
|
+
for (let e = 0; e < Lt.length; e++)
|
|
2175
|
+
this.ruler.push(Lt[e][0], Lt[e][1]);
|
|
2168
2176
|
}
|
|
2169
|
-
|
|
2177
|
+
dn.prototype.process = function(e) {
|
|
2170
2178
|
const u = this.ruler.getRules("");
|
|
2171
2179
|
for (let t = 0, n = u.length; t < n; t++)
|
|
2172
2180
|
u[t](e);
|
|
2173
2181
|
};
|
|
2174
|
-
|
|
2182
|
+
dn.prototype.State = uo;
|
|
2175
2183
|
function Le(e, u, t, n) {
|
|
2176
2184
|
this.src = e, this.md = u, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
2177
2185
|
const r = this.src;
|
|
@@ -2252,7 +2260,7 @@ Le.prototype.getLines = function(u, t, n, r) {
|
|
|
2252
2260
|
};
|
|
2253
2261
|
Le.prototype.Token = Fe;
|
|
2254
2262
|
const P0 = 65536;
|
|
2255
|
-
function
|
|
2263
|
+
function Nt(e, u) {
|
|
2256
2264
|
const t = e.bMarks[u] + e.tShift[u], n = e.eMarks[u];
|
|
2257
2265
|
return e.src.slice(t, n);
|
|
2258
2266
|
}
|
|
@@ -2284,7 +2292,7 @@ function R0(e, u, t, n) {
|
|
|
2284
2292
|
return !1;
|
|
2285
2293
|
o++;
|
|
2286
2294
|
}
|
|
2287
|
-
let l =
|
|
2295
|
+
let l = Nt(e, u + 1), c = l.split("|");
|
|
2288
2296
|
const s = [];
|
|
2289
2297
|
for (let k = 0; k < c.length; k++) {
|
|
2290
2298
|
const f = c[k].trim();
|
|
@@ -2297,7 +2305,7 @@ function R0(e, u, t, n) {
|
|
|
2297
2305
|
return !1;
|
|
2298
2306
|
f.charCodeAt(f.length - 1) === 58 ? s.push(f.charCodeAt(0) === 58 ? "center" : "right") : f.charCodeAt(0) === 58 ? s.push("left") : s.push("");
|
|
2299
2307
|
}
|
|
2300
|
-
if (l =
|
|
2308
|
+
if (l = Nt(e, u).trim(), l.indexOf("|") === -1 || e.sCount[u] - e.blkIndent >= 4)
|
|
2301
2309
|
return !1;
|
|
2302
2310
|
c = lr(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop();
|
|
2303
2311
|
const d = c.length;
|
|
@@ -2328,7 +2336,7 @@ function R0(e, u, t, n) {
|
|
|
2328
2336
|
k = !0;
|
|
2329
2337
|
break;
|
|
2330
2338
|
}
|
|
2331
|
-
if (k || (l =
|
|
2339
|
+
if (k || (l = Nt(e, r).trim(), !l) || e.sCount[r] - e.blkIndent >= 4 || (c = lr(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop(), m += d - c.length, m > P0))
|
|
2332
2340
|
break;
|
|
2333
2341
|
if (r === u + 2) {
|
|
2334
2342
|
const g = e.push("tbody_open", "tbody", 1);
|
|
@@ -2539,10 +2547,10 @@ function I0(e, u, t, n) {
|
|
|
2539
2547
|
const k = e.sCount[l] + x - (e.bMarks[l] + e.tShift[l]);
|
|
2540
2548
|
let f = k;
|
|
2541
2549
|
for (; o < r; ) {
|
|
2542
|
-
const
|
|
2543
|
-
if (
|
|
2550
|
+
const ie = e.src.charCodeAt(o);
|
|
2551
|
+
if (ie === 9)
|
|
2544
2552
|
f += 4 - (f + e.bsCount[l]) % 4;
|
|
2545
|
-
else if (
|
|
2553
|
+
else if (ie === 32)
|
|
2546
2554
|
f++;
|
|
2547
2555
|
else
|
|
2548
2556
|
break;
|
|
@@ -2559,8 +2567,8 @@ function I0(e, u, t, n) {
|
|
|
2559
2567
|
if (e.listIndent = e.blkIndent, e.blkIndent = F, e.tight = !0, e.tShift[l] = g - e.bMarks[l], e.sCount[l] = f, g >= r && e.isEmpty(l + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, l, t, !0), (!e.tight || A) && (c = !1), A = e.line - l > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = Y, e.tShift[l] = S, e.sCount[l] = $, e.tight = R, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(p), l = e.line, C[1] = l, l >= t || e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
2560
2568
|
break;
|
|
2561
2569
|
let K = !1;
|
|
2562
|
-
for (let
|
|
2563
|
-
if (b[
|
|
2570
|
+
for (let ie = 0, pe = b.length; ie < pe; ie++)
|
|
2571
|
+
if (b[ie](e, l, t, !0)) {
|
|
2564
2572
|
K = !0;
|
|
2565
2573
|
break;
|
|
2566
2574
|
}
|
|
@@ -2731,7 +2739,7 @@ const z0 = [
|
|
|
2731
2739
|
"tr",
|
|
2732
2740
|
"track",
|
|
2733
2741
|
"ul"
|
|
2734
|
-
], U0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", q0 = "[^\"'=<>`\\x00-\\x20]+", j0 = "'[^']*'", H0 = '"[^"]*"', G0 = "(?:" + q0 + "|" + j0 + "|" + H0 + ")", V0 = "(?:\\s+" + U0 + "(?:\\s*=\\s*" + G0 + ")?)", no = "<[A-Za-z][A-Za-z0-9\\-]*" + V0 + "*\\s*\\/?>", ro = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", W0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Z0 = "<[?][\\s\\S]*?[?]>", Y0 = "<![A-Za-z][^>]*>", X0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Q0 = new RegExp("^(?:" + no + "|" + ro + "|" + W0 + "|" + Z0 + "|" + Y0 + "|" + X0 + ")"), J0 = new RegExp("^(?:" + no + "|" + ro + ")"),
|
|
2742
|
+
], U0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", q0 = "[^\"'=<>`\\x00-\\x20]+", j0 = "'[^']*'", H0 = '"[^"]*"', G0 = "(?:" + q0 + "|" + j0 + "|" + H0 + ")", V0 = "(?:\\s+" + U0 + "(?:\\s*=\\s*" + G0 + ")?)", no = "<[A-Za-z][A-Za-z0-9\\-]*" + V0 + "*\\s*\\/?>", ro = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", W0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Z0 = "<[?][\\s\\S]*?[?]>", Y0 = "<![A-Za-z][^>]*>", X0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Q0 = new RegExp("^(?:" + no + "|" + ro + "|" + W0 + "|" + Z0 + "|" + Y0 + "|" + X0 + ")"), J0 = new RegExp("^(?:" + no + "|" + ro + ")"), du = [
|
|
2735
2743
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2736
2744
|
[/^<!--/, /-->/, !0],
|
|
2737
2745
|
[/^<\?/, /\?>/, !0],
|
|
@@ -2745,16 +2753,16 @@ function K0(e, u, t, n) {
|
|
|
2745
2753
|
if (e.sCount[u] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(r) !== 60)
|
|
2746
2754
|
return !1;
|
|
2747
2755
|
let a = e.src.slice(r, o), i = 0;
|
|
2748
|
-
for (; i <
|
|
2756
|
+
for (; i < du.length && !du[i][0].test(a); i++)
|
|
2749
2757
|
;
|
|
2750
|
-
if (i ===
|
|
2758
|
+
if (i === du.length)
|
|
2751
2759
|
return !1;
|
|
2752
2760
|
if (n)
|
|
2753
|
-
return
|
|
2761
|
+
return du[i][2];
|
|
2754
2762
|
let l = u + 1;
|
|
2755
|
-
if (!
|
|
2763
|
+
if (!du[i][1].test(a)) {
|
|
2756
2764
|
for (; l < t && !(e.sCount[l] < e.blkIndent); l++)
|
|
2757
|
-
if (r = e.bMarks[l] + e.tShift[l], o = e.eMarks[l], a = e.src.slice(r, o),
|
|
2765
|
+
if (r = e.bMarks[l] + e.tShift[l], o = e.eMarks[l], a = e.src.slice(r, o), du[i][1].test(a)) {
|
|
2758
2766
|
a.length !== 0 && l++;
|
|
2759
2767
|
break;
|
|
2760
2768
|
}
|
|
@@ -2998,11 +3006,11 @@ function al(e, u) {
|
|
|
2998
3006
|
t++;
|
|
2999
3007
|
return e.pos = t, !0;
|
|
3000
3008
|
}
|
|
3001
|
-
const
|
|
3009
|
+
const pn = [];
|
|
3002
3010
|
for (let e = 0; e < 256; e++)
|
|
3003
|
-
|
|
3011
|
+
pn.push(0);
|
|
3004
3012
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e) {
|
|
3005
|
-
|
|
3013
|
+
pn[e.charCodeAt(0)] = 1;
|
|
3006
3014
|
});
|
|
3007
3015
|
function ll(e, u) {
|
|
3008
3016
|
let t = e.pos;
|
|
@@ -3022,7 +3030,7 @@ function ll(e, u) {
|
|
|
3022
3030
|
const a = "\\" + o;
|
|
3023
3031
|
if (!u) {
|
|
3024
3032
|
const i = e.push("text_special", "", 0);
|
|
3025
|
-
r < 256 &&
|
|
3033
|
+
r < 256 && pn[r] !== 0 ? i.content = o : i.content = a, i.markup = a, i.info = "escape";
|
|
3026
3034
|
}
|
|
3027
3035
|
return e.pos = t + 1, !0;
|
|
3028
3036
|
}
|
|
@@ -3319,7 +3327,7 @@ function wl(e, u) {
|
|
|
3319
3327
|
if (o) {
|
|
3320
3328
|
if (!u) {
|
|
3321
3329
|
const a = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), i = e.push("text_special", "", 0);
|
|
3322
|
-
i.content =
|
|
3330
|
+
i.content = fn(a) ? at(a) : at(65533), i.markup = o[0], i.info = "entity";
|
|
3323
3331
|
}
|
|
3324
3332
|
return e.pos += o[0].length, !0;
|
|
3325
3333
|
}
|
|
@@ -3376,7 +3384,7 @@ function Dl(e) {
|
|
|
3376
3384
|
r[u].nesting < 0 && n--, r[u].level = n, r[u].nesting > 0 && n++, r[u].type === "text" && u + 1 < o && r[u + 1].type === "text" ? r[u + 1].content = r[u].content + r[u + 1].content : (u !== t && (r[t] = r[u]), t++);
|
|
3377
3385
|
u !== t && (r.length = t);
|
|
3378
3386
|
}
|
|
3379
|
-
const
|
|
3387
|
+
const $t = [
|
|
3380
3388
|
["text", rl],
|
|
3381
3389
|
["linkify", il],
|
|
3382
3390
|
["newline", al],
|
|
@@ -3389,7 +3397,7 @@ const Nt = [
|
|
|
3389
3397
|
["autolink", kl],
|
|
3390
3398
|
["html_inline", yl],
|
|
3391
3399
|
["entity", wl]
|
|
3392
|
-
],
|
|
3400
|
+
], It = [
|
|
3393
3401
|
["balance_pairs", Cl],
|
|
3394
3402
|
["strikethrough", oo.postProcess],
|
|
3395
3403
|
["emphasis", io.postProcess],
|
|
@@ -3399,11 +3407,11 @@ const Nt = [
|
|
|
3399
3407
|
];
|
|
3400
3408
|
function Iu() {
|
|
3401
3409
|
this.ruler = new _e();
|
|
3402
|
-
for (let e = 0; e < Nt.length; e++)
|
|
3403
|
-
this.ruler.push(Nt[e][0], Nt[e][1]);
|
|
3404
|
-
this.ruler2 = new _e();
|
|
3405
3410
|
for (let e = 0; e < $t.length; e++)
|
|
3406
|
-
this.
|
|
3411
|
+
this.ruler.push($t[e][0], $t[e][1]);
|
|
3412
|
+
this.ruler2 = new _e();
|
|
3413
|
+
for (let e = 0; e < It.length; e++)
|
|
3414
|
+
this.ruler2.push(It[e][0], It[e][1]);
|
|
3407
3415
|
}
|
|
3408
3416
|
Iu.prototype.skipToken = function(e) {
|
|
3409
3417
|
const u = e.pos, t = this.ruler.getRules(""), n = t.length, r = e.md.options.maxNesting, o = e.cache;
|
|
@@ -3455,7 +3463,7 @@ Iu.prototype.parse = function(e, u, t, n) {
|
|
|
3455
3463
|
Iu.prototype.State = $u;
|
|
3456
3464
|
function Fl(e) {
|
|
3457
3465
|
const u = {};
|
|
3458
|
-
e = e || {}, u.src_Any = Wr.source, u.src_Cc = Zr.source, u.src_Z = Xr.source, u.src_P =
|
|
3466
|
+
e = e || {}, u.src_Any = Wr.source, u.src_Cc = Zr.source, u.src_Z = Xr.source, u.src_P = cn.source, u.src_ZPCc = [u.src_Z, u.src_P, u.src_Cc].join("|"), u.src_ZCc = [u.src_Z, u.src_Cc].join("|");
|
|
3459
3467
|
const t = "[><|]";
|
|
3460
3468
|
return u.src_pseudo_letter = "(?:(?!" + t + "|" + u.src_ZPCc + ")" + u.src_Any + ")", u.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", u.src_auth = "(?:(?:(?!" + u.src_ZCc + "|[@/\\[\\]()]).)+@)?", u.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", u.src_host_terminator = "(?=$|" + t + "|" + u.src_ZPCc + ")(?!" + (e["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + u.src_ZPCc + "))", u.src_path = "(?:[/?#](?:(?!" + u.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + u.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + u.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + u.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + u.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + u.src_ZCc + "|[']).)+\\'|\\'(?=" + u.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + u.src_ZCc + "|[.]|$)|" + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
3461
3469
|
",(?!" + u.src_ZCc + "|$)|;(?!" + u.src_ZCc + "|$)|\\!+(?!" + u.src_ZCc + "|[!]|$)|\\?(?!" + u.src_ZCc + "|[?]|$))+|\\/)?", u.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', u.src_xn = "xn--[a-z0-9\\-]{1,59}", u.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -3465,7 +3473,7 @@ function Fl(e) {
|
|
|
3465
3473
|
// but can start with > (markdown blockquote)
|
|
3466
3474
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + u.src_ZPCc + "))((?![$+<=>^`||])" + u.tpl_host_port_no_ip_fuzzy_strict + u.src_path + ")", u;
|
|
3467
3475
|
}
|
|
3468
|
-
function
|
|
3476
|
+
function Jt(e) {
|
|
3469
3477
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
3470
3478
|
t && Object.keys(t).forEach(function(n) {
|
|
3471
3479
|
e[n] = t[n];
|
|
@@ -3588,20 +3596,20 @@ function Bl(e, u) {
|
|
|
3588
3596
|
const t = e.__index__, n = e.__last_index__, r = e.__text_cache__.slice(t, n);
|
|
3589
3597
|
this.schema = e.__schema__.toLowerCase(), this.index = t + u, this.lastIndex = n + u, this.raw = r, this.text = r, this.url = r;
|
|
3590
3598
|
}
|
|
3591
|
-
function
|
|
3599
|
+
function Kt(e, u) {
|
|
3592
3600
|
const t = new Bl(e, u);
|
|
3593
3601
|
return e.__compiled__[t.schema].normalize(t, e), t;
|
|
3594
3602
|
}
|
|
3595
3603
|
function ve(e, u) {
|
|
3596
3604
|
if (!(this instanceof ve))
|
|
3597
3605
|
return new ve(e, u);
|
|
3598
|
-
u || Ol(e) && (u = e, e = {}), this.__opts__ =
|
|
3606
|
+
u || Ol(e) && (u = e, e = {}), this.__opts__ = Jt({}, ao, u), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Jt({}, Ml, e), this.__compiled__ = {}, this.__tlds__ = Nl, this.__tlds_replaced__ = !1, this.re = {}, lt(this);
|
|
3599
3607
|
}
|
|
3600
3608
|
ve.prototype.add = function(u, t) {
|
|
3601
3609
|
return this.__schemas__[u] = t, lt(this), this;
|
|
3602
3610
|
};
|
|
3603
3611
|
ve.prototype.set = function(u) {
|
|
3604
|
-
return this.__opts__ =
|
|
3612
|
+
return this.__opts__ = Jt(this.__opts__, u), this;
|
|
3605
3613
|
};
|
|
3606
3614
|
ve.prototype.test = function(u) {
|
|
3607
3615
|
if (this.__text_cache__ = u, this.__index__ = -1, !u.length)
|
|
@@ -3625,10 +3633,10 @@ ve.prototype.testSchemaAt = function(u, t, n) {
|
|
|
3625
3633
|
ve.prototype.match = function(u) {
|
|
3626
3634
|
const t = [];
|
|
3627
3635
|
let n = 0;
|
|
3628
|
-
this.__index__ >= 0 && this.__text_cache__ === u && (t.push(
|
|
3636
|
+
this.__index__ >= 0 && this.__text_cache__ === u && (t.push(Kt(this, n)), n = this.__last_index__);
|
|
3629
3637
|
let r = n ? u.slice(n) : u;
|
|
3630
3638
|
for (; this.test(r); )
|
|
3631
|
-
t.push(
|
|
3639
|
+
t.push(Kt(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
3632
3640
|
return t.length ? t : null;
|
|
3633
3641
|
};
|
|
3634
3642
|
ve.prototype.matchAtStart = function(u) {
|
|
@@ -3636,7 +3644,7 @@ ve.prototype.matchAtStart = function(u) {
|
|
|
3636
3644
|
const t = this.re.schema_at_start.exec(u);
|
|
3637
3645
|
if (!t) return null;
|
|
3638
3646
|
const n = this.testSchemaAt(u, t[2], t[0].length);
|
|
3639
|
-
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n,
|
|
3647
|
+
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, Kt(this, 0)) : null;
|
|
3640
3648
|
};
|
|
3641
3649
|
ve.prototype.tlds = function(u, t) {
|
|
3642
3650
|
return u = Array.isArray(u) ? u : [u], t ? (this.__tlds__ = this.__tlds__.concat(u).sort().filter(function(n, r, o) {
|
|
@@ -3648,11 +3656,11 @@ ve.prototype.normalize = function(u) {
|
|
|
3648
3656
|
};
|
|
3649
3657
|
ve.prototype.onCompile = function() {
|
|
3650
3658
|
};
|
|
3651
|
-
const
|
|
3659
|
+
const pu = 2147483647, Pe = 36, hn = 1, Ou = 26, zl = 38, Ul = 700, lo = 72, co = 128, so = "-", ql = /^xn--/, jl = /[^\0-\x7F]/, Hl = /[\x2E\u3002\uFF0E\uFF61]/g, Gl = {
|
|
3652
3660
|
overflow: "Overflow: input needs wider integers to process",
|
|
3653
3661
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3654
3662
|
"invalid-input": "Invalid input"
|
|
3655
|
-
},
|
|
3663
|
+
}, Bt = Pe - hn, Re = Math.floor, zt = String.fromCharCode;
|
|
3656
3664
|
function He(e) {
|
|
3657
3665
|
throw new RangeError(Gl[e]);
|
|
3658
3666
|
}
|
|
@@ -3690,9 +3698,9 @@ const Wl = (e) => String.fromCodePoint(...e), Zl = function(e) {
|
|
|
3690
3698
|
return e + 22 + 75 * (e < 26) - ((u != 0) << 5);
|
|
3691
3699
|
}, ho = function(e, u, t) {
|
|
3692
3700
|
let n = 0;
|
|
3693
|
-
for (e = t ? Re(e / Ul) : e >> 1, e += Re(e / u); e >
|
|
3694
|
-
e = Re(e /
|
|
3695
|
-
return Re(n + (
|
|
3701
|
+
for (e = t ? Re(e / Ul) : e >> 1, e += Re(e / u); e > Bt * Ou >> 1; n += Pe)
|
|
3702
|
+
e = Re(e / Bt);
|
|
3703
|
+
return Re(n + (Bt + 1) * e / (e + zl));
|
|
3696
3704
|
}, bo = function(e) {
|
|
3697
3705
|
const u = [], t = e.length;
|
|
3698
3706
|
let n = 0, r = co, o = lo, a = e.lastIndexOf(so);
|
|
@@ -3704,15 +3712,15 @@ const Wl = (e) => String.fromCodePoint(...e), Zl = function(e) {
|
|
|
3704
3712
|
for (let s = 1, d = Pe; ; d += Pe) {
|
|
3705
3713
|
i >= t && He("invalid-input");
|
|
3706
3714
|
const _ = Zl(e.charCodeAt(i++));
|
|
3707
|
-
_ >= Pe && He("invalid-input"), _ > Re((
|
|
3708
|
-
const x = d <= o ?
|
|
3715
|
+
_ >= Pe && He("invalid-input"), _ > Re((pu - n) / s) && He("overflow"), n += _ * s;
|
|
3716
|
+
const x = d <= o ? hn : d >= o + Ou ? Ou : d - o;
|
|
3709
3717
|
if (_ < x)
|
|
3710
3718
|
break;
|
|
3711
3719
|
const p = Pe - x;
|
|
3712
|
-
s > Re(
|
|
3720
|
+
s > Re(pu / p) && He("overflow"), s *= p;
|
|
3713
3721
|
}
|
|
3714
3722
|
const c = u.length + 1;
|
|
3715
|
-
o = ho(n - l, c, l == 0), Re(n / c) >
|
|
3723
|
+
o = ho(n - l, c, l == 0), Re(n / c) > pu - r && He("overflow"), r += Re(n / c), n %= c, u.splice(n++, 0, r);
|
|
3716
3724
|
}
|
|
3717
3725
|
return String.fromCodePoint(...u);
|
|
3718
3726
|
}, mo = function(e) {
|
|
@@ -3721,28 +3729,28 @@ const Wl = (e) => String.fromCodePoint(...e), Zl = function(e) {
|
|
|
3721
3729
|
const t = e.length;
|
|
3722
3730
|
let n = co, r = 0, o = lo;
|
|
3723
3731
|
for (const l of e)
|
|
3724
|
-
l < 128 && u.push(
|
|
3732
|
+
l < 128 && u.push(zt(l));
|
|
3725
3733
|
const a = u.length;
|
|
3726
3734
|
let i = a;
|
|
3727
3735
|
for (a && u.push(so); i < t; ) {
|
|
3728
|
-
let l =
|
|
3736
|
+
let l = pu;
|
|
3729
3737
|
for (const s of e)
|
|
3730
3738
|
s >= n && s < l && (l = s);
|
|
3731
3739
|
const c = i + 1;
|
|
3732
|
-
l - n > Re((
|
|
3740
|
+
l - n > Re((pu - r) / c) && He("overflow"), r += (l - n) * c, n = l;
|
|
3733
3741
|
for (const s of e)
|
|
3734
|
-
if (s < n && ++r >
|
|
3742
|
+
if (s < n && ++r > pu && He("overflow"), s === n) {
|
|
3735
3743
|
let d = r;
|
|
3736
3744
|
for (let _ = Pe; ; _ += Pe) {
|
|
3737
|
-
const x = _ <= o ?
|
|
3745
|
+
const x = _ <= o ? hn : _ >= o + Ou ? Ou : _ - o;
|
|
3738
3746
|
if (d < x)
|
|
3739
3747
|
break;
|
|
3740
3748
|
const p = d - x, y = Pe - x;
|
|
3741
3749
|
u.push(
|
|
3742
|
-
|
|
3750
|
+
zt(mr(x + p % y, 0))
|
|
3743
3751
|
), d = Re(p / y);
|
|
3744
3752
|
}
|
|
3745
|
-
u.push(
|
|
3753
|
+
u.push(zt(mr(d, 0))), o = ho(r, c, i === a), r = 0, ++i;
|
|
3746
3754
|
}
|
|
3747
3755
|
++r, ++n;
|
|
3748
3756
|
}
|
|
@@ -3953,34 +3961,34 @@ function nc(e) {
|
|
|
3953
3961
|
}
|
|
3954
3962
|
const ko = ["http:", "https:", "mailto:"];
|
|
3955
3963
|
function rc(e) {
|
|
3956
|
-
const u =
|
|
3964
|
+
const u = ln(e, !0);
|
|
3957
3965
|
if (u.hostname && (!u.protocol || ko.indexOf(u.protocol) >= 0))
|
|
3958
3966
|
try {
|
|
3959
3967
|
u.hostname = go.toASCII(u.hostname);
|
|
3960
3968
|
} catch {
|
|
3961
3969
|
}
|
|
3962
|
-
return Nu(
|
|
3970
|
+
return Nu(an(u));
|
|
3963
3971
|
}
|
|
3964
3972
|
function oc(e) {
|
|
3965
|
-
const u =
|
|
3973
|
+
const u = ln(e, !0);
|
|
3966
3974
|
if (u.hostname && (!u.protocol || ko.indexOf(u.protocol) >= 0))
|
|
3967
3975
|
try {
|
|
3968
3976
|
u.hostname = go.toUnicode(u.hostname);
|
|
3969
3977
|
} catch {
|
|
3970
3978
|
}
|
|
3971
|
-
return
|
|
3979
|
+
return hu(an(u), hu.defaultChars + "%");
|
|
3972
3980
|
}
|
|
3973
3981
|
function we(e, u) {
|
|
3974
3982
|
if (!(this instanceof we))
|
|
3975
3983
|
return new we(e, u);
|
|
3976
|
-
u ||
|
|
3984
|
+
u || sn(e) || (u = e || {}, e = "default"), this.inline = new Iu(), this.block = new gt(), this.core = new dn(), this.renderer = new mu(), this.linkify = new ve(), this.validateLink = nc, this.normalizeLink = rc, this.normalizeLinkText = oc, this.utils = a0, this.helpers = bt({}, f0), this.options = {}, this.configure(e), u && this.set(u);
|
|
3977
3985
|
}
|
|
3978
3986
|
we.prototype.set = function(e) {
|
|
3979
3987
|
return bt(this.options, e), this;
|
|
3980
3988
|
};
|
|
3981
3989
|
we.prototype.configure = function(e) {
|
|
3982
3990
|
const u = this;
|
|
3983
|
-
if (
|
|
3991
|
+
if (sn(e)) {
|
|
3984
3992
|
const t = e;
|
|
3985
3993
|
if (e = ec[t], !e)
|
|
3986
3994
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
@@ -4036,8 +4044,8 @@ we.prototype.renderInline = function(e, u) {
|
|
|
4036
4044
|
return u = u || {}, this.renderer.render(this.parseInline(e, u), this.options, u);
|
|
4037
4045
|
};
|
|
4038
4046
|
function ic(e, u) {
|
|
4039
|
-
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = G(
|
|
4040
|
-
|
|
4047
|
+
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = G(Wt(e) ? q(e.value) : No(e) ? q(e) : e);
|
|
4048
|
+
Wt(e) && De(() => {
|
|
4041
4049
|
o.value = q(e.value);
|
|
4042
4050
|
});
|
|
4043
4051
|
const a = G(""), i = G(), l = we({ ...r });
|
|
@@ -4129,7 +4137,7 @@ var gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
4129
4137
|
function lc(e) {
|
|
4130
4138
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4131
4139
|
}
|
|
4132
|
-
var
|
|
4140
|
+
var Ut = { exports: {} }, kr;
|
|
4133
4141
|
function cc() {
|
|
4134
4142
|
return kr || (kr = 1, (function(e) {
|
|
4135
4143
|
var u = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
@@ -4754,7 +4762,7 @@ function cc() {
|
|
|
4754
4762
|
for (var R = 0; R < C.length; ++R) {
|
|
4755
4763
|
if (E && E.cause == F + "," + R)
|
|
4756
4764
|
return;
|
|
4757
|
-
var S = C[R], $ = S.inside, Y = !!S.lookbehind, K = !!S.greedy,
|
|
4765
|
+
var S = C[R], $ = S.inside, Y = !!S.lookbehind, K = !!S.greedy, ie = S.alias;
|
|
4758
4766
|
if (K && !S.pattern.global) {
|
|
4759
4767
|
var pe = S.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4760
4768
|
S.pattern = RegExp(S.pattern.source, pe + "g");
|
|
@@ -4778,15 +4786,15 @@ function cc() {
|
|
|
4778
4786
|
j--, ee = b.slice(P, N), T.index -= P;
|
|
4779
4787
|
} else if (T = c(re, 0, ee, Y), !T)
|
|
4780
4788
|
continue;
|
|
4781
|
-
var ye = T.index, Se = T[0],
|
|
4782
|
-
E &&
|
|
4789
|
+
var ye = T.index, Se = T[0], nu = ee.slice(0, ye), ru = ee.slice(ye + Se.length), ou = P + ee.length;
|
|
4790
|
+
E && ou > E.reach && (E.reach = ou);
|
|
4783
4791
|
var Xe = W.prev;
|
|
4784
|
-
|
|
4785
|
-
var qe = new l(F, $ ? i.tokenize(Se, $) : Se,
|
|
4786
|
-
if (W = _(m, Xe, qe),
|
|
4792
|
+
nu && (Xe = _(m, Xe, nu), P += nu.length), x(m, Xe, j);
|
|
4793
|
+
var qe = new l(F, $ ? i.tokenize(Se, $) : Se, ie, Se);
|
|
4794
|
+
if (W = _(m, Xe, qe), ru && _(m, W, ru), j > 1) {
|
|
4787
4795
|
var je = {
|
|
4788
4796
|
cause: F + "," + R,
|
|
4789
|
-
reach:
|
|
4797
|
+
reach: ou
|
|
4790
4798
|
};
|
|
4791
4799
|
s(b, m, k, W.prev, P, je), E && je.reach > E.reach && (E.reach = je.reach);
|
|
4792
4800
|
}
|
|
@@ -5286,7 +5294,7 @@ function cc() {
|
|
|
5286
5294
|
p || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), p = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
5287
5295
|
};
|
|
5288
5296
|
})();
|
|
5289
|
-
})(
|
|
5297
|
+
})(Ut)), Ut.exports;
|
|
5290
5298
|
}
|
|
5291
5299
|
var sc = cc();
|
|
5292
5300
|
const tt = /* @__PURE__ */ lc(sc);
|
|
@@ -5307,27 +5315,27 @@ const dc = `
|
|
|
5307
5315
|
code[class*=language-],pre[class*=language-]{background:#282c34;color:#abb2bf;text-shadow:0 1px rgba(0,0,0,.3);font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-] ::-moz-selection{background:#3e4451;color:inherit;text-shadow:none}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-] ::selection{background:#3e4451;color:inherit;text-shadow:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}.token.comment,.token.prolog,.token.cdata{color:#5c6370}.token.doctype,.token.punctuation,.token.entity{color:#abb2bf}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#d19a66}.token.keyword{color:#c678dd}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e06c75}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#98c379}.token.variable,.token.operator,.token.function{color:#61afef}.token.url{color:#56b6c2}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#abb2bf}.language-css .token.selector{color:#e06c75}.language-css .token.property{color:#abb2bf}.language-css .token.function,.language-css .token.url>.token.function{color:#56b6c2}.language-css .token.url>.token.string.url{color:#98c379}.language-css .token.important,.language-css .token.atrule .token.rule{color:#c678dd}.language-javascript .token.operator{color:#c678dd}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#be5046}.language-json .token.operator{color:#abb2bf}.language-json .token.null.keyword{color:#d19a66}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#abb2bf}.language-markdown .token.url>.token.content{color:#61afef}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#56b6c2}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#5c6370;font-style:italic}.language-markdown .token.code-snippet{color:#98c379}.language-markdown .token.bold .token.content{color:#d19a66}.language-markdown .token.italic .token.content{color:#c678dd}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e06c75}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:rgba(171,178,191,.15);text-shadow:none}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#3a3f4b;color:#828997;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#3e4451;color:#abb2bf}.line-highlight.line-highlight{background:rgba(153,187,255,.04)}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#3a3f4b;color:#abb2bf;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(153,187,255,.04)}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:rgba(171,178,191,.15)}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#636d83}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e06c75}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#98c379}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#61afef}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#c678dd}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::-moz-selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::-moz-selection{background-color:rgba(56,224,98,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::selection{background-color:rgba(56,224,98,.25)}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:#262931}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:#262931}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#262931}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#31363f}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#abb2bf;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#abb2bf}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}
|
|
5308
5316
|
`, pc = `
|
|
5309
5317
|
code[class*=language-],pre[class*=language-]{background:#fafafa;color:#383a42;font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-] ::-moz-selection{background:#e5e5e6;color:inherit}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-] ::selection{background:#e5e5e6;color:inherit}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.cdata{color:#a0a1a7}.token.doctype,.token.punctuation,.token.entity{color:#383a42}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#b76b01}.token.keyword{color:#a626a4}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e45649}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#50a14f}.token.variable,.token.operator,.token.function{color:#4078f2}.token.url{color:#0184bc}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#383a42}.language-css .token.selector{color:#e45649}.language-css .token.property{color:#383a42}.language-css .token.function,.language-css .token.url>.token.function{color:#0184bc}.language-css .token.url>.token.string.url{color:#50a14f}.language-css .token.important,.language-css .token.atrule .token.rule{color:#a626a4}.language-javascript .token.operator{color:#a626a4}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}.language-json .token.operator{color:#383a42}.language-json .token.null.keyword{color:#b76b01}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#383a42}.language-markdown .token.url>.token.content{color:#4078f2}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#0184bc}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}.language-markdown .token.code-snippet{color:#50a14f}.language-markdown .token.bold .token.content{color:#b76b01}.language-markdown .token.italic .token.content{color:#a626a4}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e45649}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:rgba(56,58,66,.2)}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#e5e5e6;color:#696c77;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#c6c7c7;color:#383a42}.line-highlight.line-highlight{background:rgba(56,58,66,.05)}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#e5e5e6;color:#383a42;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(56,58,66,.05)}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:rgba(56,58,66,.2)}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#9d9d9f}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e45649}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#50a14f}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#4078f2}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#a626a4}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::-moz-selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::-moz-selection{background-color:rgba(56,224,98,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::selection{background-color:rgba(56,224,98,.25)}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:hsl(0,0,95%)}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:hsl(0,0,95%)}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:hsl(0,0,95%)}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#fff}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#383a42;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#383a42}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}
|
|
5310
|
-
`, { c:
|
|
5318
|
+
`, { c: qt, cB: xr, cE: jt } = { ...pt, ...ht }, Ju = `${Lu}-type-writer`;
|
|
5311
5319
|
function hc() {
|
|
5312
|
-
return
|
|
5320
|
+
return qt([
|
|
5313
5321
|
xr("type-writer", {
|
|
5314
5322
|
overflowX: "auto"
|
|
5315
5323
|
}, [
|
|
5316
|
-
|
|
5324
|
+
jt("cursor::after", {
|
|
5317
5325
|
content: "var(--cursor-content)",
|
|
5318
5326
|
marginLeft: "2px",
|
|
5319
5327
|
display: "inline-block"
|
|
5320
5328
|
}),
|
|
5321
|
-
|
|
5322
|
-
|
|
5329
|
+
jt("markdown", `${pc}`, [
|
|
5330
|
+
qt("pre", {
|
|
5323
5331
|
backgroundColor: "var(--tag-color)",
|
|
5324
5332
|
borderRadius: "var(--border-radius)"
|
|
5325
5333
|
})
|
|
5326
5334
|
])
|
|
5327
5335
|
]),
|
|
5328
|
-
|
|
5336
|
+
qt(".dark", [
|
|
5329
5337
|
xr("type-writer", [
|
|
5330
|
-
|
|
5338
|
+
jt("markdown", `${dc}`)
|
|
5331
5339
|
])
|
|
5332
5340
|
])
|
|
5333
5341
|
]);
|
|
@@ -5365,21 +5373,21 @@ const bc = ["innerHTML"], mc = /* @__PURE__ */ de({
|
|
|
5365
5373
|
breaks: !0,
|
|
5366
5374
|
highlight: fc
|
|
5367
5375
|
}), c = ne(() => e.markdown ? l.value : n.value);
|
|
5368
|
-
return (s, d) => (U(), Z(w(
|
|
5376
|
+
return (s, d) => (U(), Z(w(tn), {
|
|
5369
5377
|
tag: "div",
|
|
5370
5378
|
class: Su([w(Ju)])
|
|
5371
5379
|
}, {
|
|
5372
5380
|
default: M(() => [
|
|
5373
5381
|
Ue("div", {
|
|
5374
5382
|
class: Su([w(r) && !s.markdown ? `${w(Ju)}__cursor` : void 0, s.markdown ? `${w(Ju)}__markdown` : void 0]),
|
|
5375
|
-
style:
|
|
5383
|
+
style: en([s.markdown ? void 0 : { "--cursor-content": `'${s.suffix}'` }]),
|
|
5376
5384
|
innerHTML: c.value
|
|
5377
5385
|
}, null, 14, bc)
|
|
5378
5386
|
]),
|
|
5379
5387
|
_: 1
|
|
5380
5388
|
}, 8, ["class"]));
|
|
5381
5389
|
}
|
|
5382
|
-
}), { c: gc, cB: kc, cE: xc, cM: _c } = { ...pt, ...ht },
|
|
5390
|
+
}), { c: gc, cB: kc, cE: xc, cM: _c } = { ...pt, ...ht }, Ht = `${Lu}-bubble`;
|
|
5383
5391
|
function vc() {
|
|
5384
5392
|
return gc([
|
|
5385
5393
|
kc("bubble", {
|
|
@@ -5414,9 +5422,9 @@ const Js = /* @__PURE__ */ de({
|
|
|
5414
5422
|
emits: ["typingComplete"],
|
|
5415
5423
|
setup(e, { emit: u }) {
|
|
5416
5424
|
const t = u;
|
|
5417
|
-
return dt("n-bubble", vc()), (n, r) => (U(), Z(w(
|
|
5425
|
+
return dt("n-bubble", vc()), (n, r) => (U(), Z(w(tn), {
|
|
5418
5426
|
tag: "div",
|
|
5419
|
-
class: Su([w(
|
|
5427
|
+
class: Su([w(Ht), n.placement === "end" ? `${w(Ht)}--reverse` : ""])
|
|
5420
5428
|
}, {
|
|
5421
5429
|
default: M(() => [
|
|
5422
5430
|
I(n.$slots, "avatar", {}, () => [
|
|
@@ -5439,8 +5447,8 @@ const Js = /* @__PURE__ */ de({
|
|
|
5439
5447
|
V(w(Or), { style: { height: "44px" } })
|
|
5440
5448
|
]) : I(n.$slots, "default", { key: 1 }, () => [
|
|
5441
5449
|
Ue("div", {
|
|
5442
|
-
class: Su([`${w(
|
|
5443
|
-
style:
|
|
5450
|
+
class: Su([`${w(Ht)}__content`, n.contentClass]),
|
|
5451
|
+
style: en(n.contentStyle)
|
|
5444
5452
|
}, [
|
|
5445
5453
|
V(w(mc), {
|
|
5446
5454
|
typing: n.typing,
|
|
@@ -5472,10 +5480,10 @@ function Ac() {
|
|
|
5472
5480
|
alignItems: "center",
|
|
5473
5481
|
justifyContent: "center"
|
|
5474
5482
|
}, [
|
|
5475
|
-
|
|
5483
|
+
In("mask", {
|
|
5476
5484
|
background: "rgba(0,0,0,.3)"
|
|
5477
5485
|
}),
|
|
5478
|
-
|
|
5486
|
+
In("blur", {
|
|
5479
5487
|
backdropFilter: "blur(10px)"
|
|
5480
5488
|
})
|
|
5481
5489
|
])
|
|
@@ -5503,10 +5511,10 @@ const wc = /* @__PURE__ */ de({
|
|
|
5503
5511
|
}), (t, n) => (U(), Z(w(Ur), null, {
|
|
5504
5512
|
default: M(() => [
|
|
5505
5513
|
(U(), Z($o, { to: t.appendTo }, [
|
|
5506
|
-
t.show ? (U(), Z(w(
|
|
5514
|
+
t.show ? (U(), Z(w(tn), {
|
|
5507
5515
|
key: 0,
|
|
5508
5516
|
class: Su([w(Ku), { [`${w(Ku)}--mask`]: t.mask }, { [`${w(Ku)}--blur`]: t.blur }]),
|
|
5509
|
-
style:
|
|
5517
|
+
style: en(typeof t.mask == "object" ? t.mask : {})
|
|
5510
5518
|
}, {
|
|
5511
5519
|
default: M(() => [
|
|
5512
5520
|
V(w(Or), X(Q(t.spinProps)), Rr({ _: 2 }, [
|
|
@@ -5602,7 +5610,7 @@ const wc = /* @__PURE__ */ de({
|
|
|
5602
5610
|
_: 3
|
|
5603
5611
|
}, 16));
|
|
5604
5612
|
}
|
|
5605
|
-
}),
|
|
5613
|
+
}), bn = (e, u) => {
|
|
5606
5614
|
const t = e.__vccOpts || e;
|
|
5607
5615
|
for (const [n, r] of u)
|
|
5608
5616
|
t[n] = r;
|
|
@@ -5616,14 +5624,14 @@ const wc = /* @__PURE__ */ de({
|
|
|
5616
5624
|
viewBox: "0 0 24 24"
|
|
5617
5625
|
};
|
|
5618
5626
|
function Fc(e, u, t, n, r, o) {
|
|
5619
|
-
return U(), Oe("svg", Dc, u[0] || (u[0] = [
|
|
5627
|
+
return U(), Oe("svg", Dc, [...u[0] || (u[0] = [
|
|
5620
5628
|
Ue("path", {
|
|
5621
5629
|
fill: "currentColor",
|
|
5622
5630
|
d: "M18.355 6.54h-1.94V4.69a2.69 2.69 0 0 0-1.646-2.484A2.7 2.7 0 0 0 13.745 2h-8.05a2.68 2.68 0 0 0-2.67 2.69v10.09a2.68 2.68 0 0 0 2.67 2.69h1.94v1.85a2.68 2.68 0 0 0 2.67 2.68h8a2.68 2.68 0 0 0 2.67-2.68V9.23a2.69 2.69 0 0 0-2.62-2.69M7.635 9.23v6.74h-1.94a1.18 1.18 0 0 1-1.17-1.19V4.69a1.18 1.18 0 0 1 1.17-1.19h8.05a1.18 1.18 0 0 1 1.17 1.19v1.85h-4.61a2.69 2.69 0 0 0-2.67 2.69"
|
|
5623
5631
|
}, null, -1)
|
|
5624
|
-
]));
|
|
5632
|
+
])]);
|
|
5625
5633
|
}
|
|
5626
|
-
const Sc = /* @__PURE__ */
|
|
5634
|
+
const Sc = /* @__PURE__ */ bn(Cc, [["render", Fc]]), ef = /* @__PURE__ */ de({
|
|
5627
5635
|
__name: "CopyButton",
|
|
5628
5636
|
props: {
|
|
5629
5637
|
value: {},
|
|
@@ -5643,14 +5651,14 @@ const Sc = /* @__PURE__ */ hn(Cc, [["render", Fc]]), ef = /* @__PURE__ */ de({
|
|
|
5643
5651
|
function o(a) {
|
|
5644
5652
|
a.preventDefault(), r();
|
|
5645
5653
|
}
|
|
5646
|
-
return (a, i) => (U(), Z(w(
|
|
5654
|
+
return (a, i) => (U(), Z(w(nn), X(Q(a.tooltipProps)), {
|
|
5647
5655
|
trigger: M(() => [
|
|
5648
5656
|
Ue("div", {
|
|
5649
5657
|
style: { cursor: "pointer" },
|
|
5650
5658
|
onClick: o
|
|
5651
5659
|
}, [
|
|
5652
5660
|
I(a.$slots, "default", {}, () => [
|
|
5653
|
-
V(w(
|
|
5661
|
+
V(w(tu), te({
|
|
5654
5662
|
quaternary: "",
|
|
5655
5663
|
size: "tiny"
|
|
5656
5664
|
}, a.buttonProps), {
|
|
@@ -5666,7 +5674,7 @@ const Sc = /* @__PURE__ */ hn(Cc, [["render", Fc]]), ef = /* @__PURE__ */ de({
|
|
|
5666
5674
|
]),
|
|
5667
5675
|
default: M(() => [
|
|
5668
5676
|
I(a.$slots, "tooltip", {}, () => [
|
|
5669
|
-
Mu(
|
|
5677
|
+
Mu(uu(w(n) ? "复制成功" : "复制"), 1)
|
|
5670
5678
|
])
|
|
5671
5679
|
]),
|
|
5672
5680
|
_: 3
|
|
@@ -5714,14 +5722,14 @@ const nt = /* @__PURE__ */ new Map(), Tc = (e, u, t) => {
|
|
|
5714
5722
|
rt.set(e, u), u.then((t) => (rt.delete(e), t)).catch((t) => {
|
|
5715
5723
|
throw rt.delete(e), t;
|
|
5716
5724
|
});
|
|
5717
|
-
},
|
|
5718
|
-
|
|
5725
|
+
}, eu = {}, Mc = [], Lc = (e, u) => {
|
|
5726
|
+
eu[e] && (eu[e].forEach((t) => t(u)), Mc.forEach((t) => t({
|
|
5719
5727
|
type: e,
|
|
5720
5728
|
data: u
|
|
5721
5729
|
})));
|
|
5722
|
-
},
|
|
5723
|
-
const n =
|
|
5724
|
-
|
|
5730
|
+
}, Gt = (e, u) => (eu[e] || (eu[e] = []), eu[e].push(u), function() {
|
|
5731
|
+
const n = eu[e].indexOf(u);
|
|
5732
|
+
eu[e].splice(n, 1);
|
|
5725
5733
|
}), Nc = (e, {
|
|
5726
5734
|
cacheKey: u,
|
|
5727
5735
|
cacheTime: t = 300 * 1e3,
|
|
@@ -5736,10 +5744,10 @@ const nt = /* @__PURE__ */ new Map(), Tc = (e, u, t) => {
|
|
|
5736
5744
|
if (!u)
|
|
5737
5745
|
return;
|
|
5738
5746
|
const s = c(u);
|
|
5739
|
-
s && Object.hasOwnProperty.call(s, "data") && (e.state.data = s.data, e.state.params = s.params, (n === -1 || (/* @__PURE__ */ new Date()).getTime() - s.time <= n) && (e.state.loading = !1)), a.value =
|
|
5747
|
+
s && Object.hasOwnProperty.call(s, "data") && (e.state.data = s.data, e.state.params = s.params, (n === -1 || (/* @__PURE__ */ new Date()).getTime() - s.time <= n) && (e.state.loading = !1)), a.value = Gt(u, (d) => {
|
|
5740
5748
|
e.setState({ data: d });
|
|
5741
5749
|
});
|
|
5742
|
-
}),
|
|
5750
|
+
}), un(() => {
|
|
5743
5751
|
var s;
|
|
5744
5752
|
(s = a.value) == null || s.call(a);
|
|
5745
5753
|
}), u ? {
|
|
@@ -5764,7 +5772,7 @@ const nt = /* @__PURE__ */ new Map(), Tc = (e, u, t) => {
|
|
|
5764
5772
|
data: s,
|
|
5765
5773
|
params: d,
|
|
5766
5774
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
5767
|
-
}), a.value =
|
|
5775
|
+
}), a.value = Gt(u, (x) => {
|
|
5768
5776
|
e.setState({ data: x });
|
|
5769
5777
|
}));
|
|
5770
5778
|
},
|
|
@@ -5774,7 +5782,7 @@ const nt = /* @__PURE__ */ new Map(), Tc = (e, u, t) => {
|
|
|
5774
5782
|
data: s,
|
|
5775
5783
|
params: e.state.params,
|
|
5776
5784
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
5777
|
-
}), a.value =
|
|
5785
|
+
}), a.value = Gt(u, (_) => {
|
|
5778
5786
|
e.setState({ data: _ });
|
|
5779
5787
|
}));
|
|
5780
5788
|
}
|
|
@@ -5784,7 +5792,7 @@ function ct(e) {
|
|
|
5784
5792
|
var u = typeof e;
|
|
5785
5793
|
return e != null && (u == "object" || u == "function");
|
|
5786
5794
|
}
|
|
5787
|
-
var $c = typeof global == "object" && global && global.Object === Object && global, Ic = typeof self == "object" && self && self.Object === Object && self, _o = $c || Ic || Function("return this")(),
|
|
5795
|
+
var $c = typeof global == "object" && global && global.Object === Object && global, Ic = typeof self == "object" && self && self.Object === Object && self, _o = $c || Ic || Function("return this")(), Vt = function() {
|
|
5788
5796
|
return _o.Date.now();
|
|
5789
5797
|
}, Bc = /\s/;
|
|
5790
5798
|
function zc(e) {
|
|
@@ -5860,7 +5868,7 @@ function yo(e, u, t) {
|
|
|
5860
5868
|
return l === void 0 || E >= u || E < 0 || d && F >= o;
|
|
5861
5869
|
}
|
|
5862
5870
|
function A() {
|
|
5863
|
-
var g =
|
|
5871
|
+
var g = Vt();
|
|
5864
5872
|
if (v(g))
|
|
5865
5873
|
return b(g);
|
|
5866
5874
|
i = setTimeout(A, y(g));
|
|
@@ -5872,10 +5880,10 @@ function yo(e, u, t) {
|
|
|
5872
5880
|
i !== void 0 && clearTimeout(i), c = 0, n = l = r = i = void 0;
|
|
5873
5881
|
}
|
|
5874
5882
|
function k() {
|
|
5875
|
-
return i === void 0 ? a : b(
|
|
5883
|
+
return i === void 0 ? a : b(Vt());
|
|
5876
5884
|
}
|
|
5877
5885
|
function f() {
|
|
5878
|
-
var g =
|
|
5886
|
+
var g = Vt(), E = v(g);
|
|
5879
5887
|
if (n = arguments, r = this, l = g, E) {
|
|
5880
5888
|
if (i === void 0)
|
|
5881
5889
|
return p(l);
|
|
@@ -6073,12 +6081,12 @@ const ke = new ms(), gs = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
6073
6081
|
}
|
|
6074
6082
|
};
|
|
6075
6083
|
};
|
|
6076
|
-
function
|
|
6084
|
+
function mn() {
|
|
6077
6085
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6078
6086
|
}
|
|
6079
6087
|
const xs = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6080
|
-
function
|
|
6081
|
-
return
|
|
6088
|
+
function gn() {
|
|
6089
|
+
return mn() ? document.visibilityState !== "hidden" : !0;
|
|
6082
6090
|
}
|
|
6083
6091
|
const Du = [];
|
|
6084
6092
|
function _s(e) {
|
|
@@ -6087,9 +6095,9 @@ function _s(e) {
|
|
|
6087
6095
|
Du.splice(t, 1);
|
|
6088
6096
|
};
|
|
6089
6097
|
}
|
|
6090
|
-
if (
|
|
6098
|
+
if (mn()) {
|
|
6091
6099
|
const e = () => {
|
|
6092
|
-
if (
|
|
6100
|
+
if (gn())
|
|
6093
6101
|
for (let u = 0; u < Du.length; u++) {
|
|
6094
6102
|
const t = Du[u];
|
|
6095
6103
|
t();
|
|
@@ -6118,7 +6126,7 @@ const vs = (e, { pollingInterval: u, pollingWhenHidden: t = !0, pollingErrorRetr
|
|
|
6118
6126
|
},
|
|
6119
6127
|
onFinally: () => {
|
|
6120
6128
|
n === -1 || n !== -1 && a.value <= n ? r = setTimeout(() => {
|
|
6121
|
-
!t && !
|
|
6129
|
+
!t && !gn() ? o.value = _s(() => {
|
|
6122
6130
|
e.refresh();
|
|
6123
6131
|
}) : e.refresh();
|
|
6124
6132
|
}, w(u)) : a.value = 0;
|
|
@@ -6137,7 +6145,7 @@ function ys(e, u) {
|
|
|
6137
6145
|
};
|
|
6138
6146
|
}
|
|
6139
6147
|
function Es() {
|
|
6140
|
-
return
|
|
6148
|
+
return mn() && typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
6141
6149
|
}
|
|
6142
6150
|
const Fu = [];
|
|
6143
6151
|
function As(e) {
|
|
@@ -6148,7 +6156,7 @@ function As(e) {
|
|
|
6148
6156
|
}
|
|
6149
6157
|
if (xs) {
|
|
6150
6158
|
const e = () => {
|
|
6151
|
-
if (!(!
|
|
6159
|
+
if (!(!gn() || !Es()))
|
|
6152
6160
|
for (let u = 0; u < Fu.length; u++) {
|
|
6153
6161
|
const t = Fu[u];
|
|
6154
6162
|
t();
|
|
@@ -6174,7 +6182,7 @@ const ws = (e, { refreshOnWindowFocus: u, focusTimespan: t = 5e3 }) => {
|
|
|
6174
6182
|
o(() => {
|
|
6175
6183
|
r();
|
|
6176
6184
|
});
|
|
6177
|
-
}),
|
|
6185
|
+
}), un(() => {
|
|
6178
6186
|
r();
|
|
6179
6187
|
}), {
|
|
6180
6188
|
name: "refreshOnWindowFocusPlugin"
|
|
@@ -6400,7 +6408,7 @@ function Ns(e, u = {}, t = []) {
|
|
|
6400
6408
|
Object.assign({}, ..._, s)
|
|
6401
6409
|
);
|
|
6402
6410
|
x.options = l, x.pluginImpls = t.map((y) => y(x, l));
|
|
6403
|
-
const p = ne(() =>
|
|
6411
|
+
const p = ne(() => Wt(a) ? a.value : a);
|
|
6404
6412
|
if (De(() => {
|
|
6405
6413
|
if (!o) {
|
|
6406
6414
|
const y = x.state.params || u.defaultParams || [];
|
|
@@ -6410,7 +6418,7 @@ function Ns(e, u = {}, t = []) {
|
|
|
6410
6418
|
const y = x.state.params || u.defaultParams || [];
|
|
6411
6419
|
w(a) && x.run(...y);
|
|
6412
6420
|
}
|
|
6413
|
-
return
|
|
6421
|
+
return un(() => {
|
|
6414
6422
|
x.cancel();
|
|
6415
6423
|
}), {
|
|
6416
6424
|
...zo(s),
|
|
@@ -6448,7 +6456,7 @@ function Is(e, u, t) {
|
|
|
6448
6456
|
[...t || [], ...r]
|
|
6449
6457
|
);
|
|
6450
6458
|
}
|
|
6451
|
-
function
|
|
6459
|
+
function kn(e, u) {
|
|
6452
6460
|
const { defaultParams: t, manual: n, fields: r, requestOptions: o, requestPlugins: a } = u ?? {}, i = { page: "page", pageSize: "pageSize", list: "list", count: "count", ...r }, l = G({
|
|
6453
6461
|
page: t?.[i.page] ?? 1,
|
|
6454
6462
|
pageSize: t?.[i.pageSize] ?? 10,
|
|
@@ -6527,7 +6535,7 @@ const Bs = {
|
|
|
6527
6535
|
viewBox: "0 0 24 24"
|
|
6528
6536
|
};
|
|
6529
6537
|
function Us(e, u, t, n, r, o) {
|
|
6530
|
-
return U(), Oe("svg", zs, u[0] || (u[0] = [
|
|
6538
|
+
return U(), Oe("svg", zs, [...u[0] || (u[0] = [
|
|
6531
6539
|
Ue("path", {
|
|
6532
6540
|
fill: "none",
|
|
6533
6541
|
stroke: "currentColor",
|
|
@@ -6536,9 +6544,9 @@ function Us(e, u, t, n, r, o) {
|
|
|
6536
6544
|
"stroke-width": "1.5",
|
|
6537
6545
|
d: "M10.783 18.828a8.05 8.05 0 0 0 7.439-4.955a8.03 8.03 0 0 0-1.737-8.765a8.045 8.045 0 0 0-13.735 5.68c0 2.131.846 4.174 2.352 5.681a8.05 8.05 0 0 0 5.68 2.359m5.706-2.337l4.762 4.759"
|
|
6538
6546
|
}, null, -1)
|
|
6539
|
-
]));
|
|
6547
|
+
])]);
|
|
6540
6548
|
}
|
|
6541
|
-
const Cr = /* @__PURE__ */
|
|
6549
|
+
const Cr = /* @__PURE__ */ bn(Bs, [["render", Us]]), Eo = /* @__PURE__ */ de({
|
|
6542
6550
|
__name: "SearchInput",
|
|
6543
6551
|
props: {
|
|
6544
6552
|
value: {},
|
|
@@ -6573,7 +6581,7 @@ const Cr = /* @__PURE__ */ hn(Bs, [["render", Us]]), Eo = /* @__PURE__ */ de({
|
|
|
6573
6581
|
!e.loading && r.value && n.value?.focus();
|
|
6574
6582
|
}), (s, d) => (U(), Z(w(ni), null, {
|
|
6575
6583
|
default: M(() => [
|
|
6576
|
-
V(w(
|
|
6584
|
+
V(w(rn), te({
|
|
6577
6585
|
ref: "input-ref",
|
|
6578
6586
|
value: r.value,
|
|
6579
6587
|
"onUpdate:value": d[0] || (d[0] = (_) => r.value = _),
|
|
@@ -6593,7 +6601,7 @@ const Cr = /* @__PURE__ */ hn(Bs, [["render", Us]]), Eo = /* @__PURE__ */ de({
|
|
|
6593
6601
|
value: s.value,
|
|
6594
6602
|
loading: s.loading
|
|
6595
6603
|
}, () => [
|
|
6596
|
-
o.value ? (U(), Z(w(
|
|
6604
|
+
o.value ? (U(), Z(w(tu), te({
|
|
6597
6605
|
key: 0,
|
|
6598
6606
|
type: s.type,
|
|
6599
6607
|
loading: s.loading
|
|
@@ -6650,7 +6658,7 @@ const Cr = /* @__PURE__ */ hn(Bs, [["render", Us]]), Eo = /* @__PURE__ */ de({
|
|
|
6650
6658
|
pageSlot: 5,
|
|
6651
6659
|
prefix: (T) => `共${T.itemCount}条数据`,
|
|
6652
6660
|
...e.pagination && typeof e.pagination == "boolean" ? {} : e.pagination
|
|
6653
|
-
}), c = G(), s = G(), d = [], { loading: _, data: x, error: p, params: y, list: v, pagination: A, run: b, runAsync: m, refresh: k, refreshAsync: f, cancel: g, mutate: E, setParams: F, runParams: C, runParamsAsync: R, onBefore: S, onSuccess: $, onError: Y, onFinally: K } =
|
|
6661
|
+
}), c = G(), s = G(), d = [], { loading: _, data: x, error: p, params: y, list: v, pagination: A, run: b, runAsync: m, refresh: k, refreshAsync: f, cancel: g, mutate: E, setParams: F, runParams: C, runParamsAsync: R, onBefore: S, onSuccess: $, onError: Y, onFinally: K } = kn(e.api, {
|
|
6654
6662
|
defaultParams: {
|
|
6655
6663
|
[a.search]: null,
|
|
6656
6664
|
...e.defaultParams
|
|
@@ -6669,7 +6677,7 @@ const Cr = /* @__PURE__ */ hn(Bs, [["render", Us]]), Eo = /* @__PURE__ */ de({
|
|
|
6669
6677
|
}), K((T, B, N) => {
|
|
6670
6678
|
n("finally", T, B, N);
|
|
6671
6679
|
});
|
|
6672
|
-
const
|
|
6680
|
+
const ie = ne(() => e.columns?.reduce((T, B) => T + Number(B.width ?? 100), 0));
|
|
6673
6681
|
function pe(T, B) {
|
|
6674
6682
|
if (T[a.list]?.forEach((N) => {
|
|
6675
6683
|
d.some((z) => z?.[a.rowKey] === N?.[a.rowKey]) || d.push(N);
|
|
@@ -6789,7 +6797,7 @@ const Cr = /* @__PURE__ */ hn(Bs, [["render", Us]]), Eo = /* @__PURE__ */ de({
|
|
|
6789
6797
|
default: M(() => [
|
|
6790
6798
|
I(T.$slots, "title", {}, () => [
|
|
6791
6799
|
Ue("div", qs, [
|
|
6792
|
-
T.title ? (U(), Oe("span", js,
|
|
6800
|
+
T.title ? (U(), Oe("span", js, uu(T.title), 1)) : Ee("", !0)
|
|
6793
6801
|
])
|
|
6794
6802
|
]),
|
|
6795
6803
|
T.search ? (U(), Z(w(Eo), te({
|
|
@@ -6811,7 +6819,7 @@ const Cr = /* @__PURE__ */ hn(Bs, [["render", Us]]), Eo = /* @__PURE__ */ de({
|
|
|
6811
6819
|
remote: "",
|
|
6812
6820
|
"flex-height": "",
|
|
6813
6821
|
"single-line": !1,
|
|
6814
|
-
"scroll-x":
|
|
6822
|
+
"scroll-x": ie.value,
|
|
6815
6823
|
style: { flex: 1 },
|
|
6816
6824
|
"row-key": (N) => N?.[a.rowKey],
|
|
6817
6825
|
"children-key": a.children,
|
|
@@ -6931,13 +6939,13 @@ const Fr = /* @__PURE__ */ de({
|
|
|
6931
6939
|
emits: ["update:value"],
|
|
6932
6940
|
setup(e, { emit: u }) {
|
|
6933
6941
|
const t = u, n = {
|
|
6934
|
-
button:
|
|
6942
|
+
button: tu,
|
|
6935
6943
|
"color-picker": hi,
|
|
6936
6944
|
checkbox: pi,
|
|
6937
6945
|
divider: Nr,
|
|
6938
6946
|
"date-picker": di,
|
|
6939
6947
|
"dynamic-tags": fi,
|
|
6940
|
-
input:
|
|
6948
|
+
input: rn,
|
|
6941
6949
|
"input-number": si,
|
|
6942
6950
|
search: Eo,
|
|
6943
6951
|
radio: ci,
|
|
@@ -6951,7 +6959,7 @@ const Fr = /* @__PURE__ */ de({
|
|
|
6951
6959
|
const { type: o, props: a, slots: i } = e.options ?? {};
|
|
6952
6960
|
if (o === "button") {
|
|
6953
6961
|
const { label: l, ...c } = a ?? {};
|
|
6954
|
-
return
|
|
6962
|
+
return Ke(n[o], {
|
|
6955
6963
|
...c
|
|
6956
6964
|
}, {
|
|
6957
6965
|
default: () => l,
|
|
@@ -6960,20 +6968,20 @@ const Fr = /* @__PURE__ */ de({
|
|
|
6960
6968
|
}
|
|
6961
6969
|
if (o === "checkbox") {
|
|
6962
6970
|
const { options: l, ...c } = a ?? {};
|
|
6963
|
-
return
|
|
6971
|
+
return Ke(n[o], {
|
|
6964
6972
|
value: e.value,
|
|
6965
6973
|
"onUpdate:value": (s) => {
|
|
6966
6974
|
t("update:value", s);
|
|
6967
6975
|
},
|
|
6968
6976
|
...c
|
|
6969
6977
|
}, {
|
|
6970
|
-
default: () => l?.map((s) =>
|
|
6978
|
+
default: () => l?.map((s) => Ke(bi, { ...s })),
|
|
6971
6979
|
...i
|
|
6972
6980
|
});
|
|
6973
6981
|
}
|
|
6974
6982
|
if (o === "divider") {
|
|
6975
6983
|
const { ...l } = a ?? {};
|
|
6976
|
-
return
|
|
6984
|
+
return Ke(n[o], {
|
|
6977
6985
|
...l
|
|
6978
6986
|
}, {
|
|
6979
6987
|
...i
|
|
@@ -6981,19 +6989,19 @@ const Fr = /* @__PURE__ */ de({
|
|
|
6981
6989
|
}
|
|
6982
6990
|
if (o === "radio") {
|
|
6983
6991
|
const { options: l, ...c } = a ?? {};
|
|
6984
|
-
return
|
|
6992
|
+
return Ke(n[o], {
|
|
6985
6993
|
value: e.value,
|
|
6986
6994
|
"onUpdate:value": (s) => {
|
|
6987
6995
|
t("update:value", s);
|
|
6988
6996
|
},
|
|
6989
6997
|
...c
|
|
6990
6998
|
}, {
|
|
6991
|
-
default: () => l?.map((s) =>
|
|
6999
|
+
default: () => l?.map((s) => Ke(mi, { ...s })),
|
|
6992
7000
|
...i
|
|
6993
7001
|
});
|
|
6994
7002
|
}
|
|
6995
7003
|
if (o && n[o])
|
|
6996
|
-
return
|
|
7004
|
+
return Ke(n[o], {
|
|
6997
7005
|
value: e.value,
|
|
6998
7006
|
"onUpdate:value": (l) => {
|
|
6999
7007
|
t("update:value", l);
|
|
@@ -7066,18 +7074,18 @@ const tf = /* @__PURE__ */ de({
|
|
|
7066
7074
|
default: M(() => [
|
|
7067
7075
|
I(f.$slots, "header", X(Q(k.value))),
|
|
7068
7076
|
I(f.$slots, "default", X(Q(k.value)), () => [
|
|
7069
|
-
v.value && v.value.length > 0 ? (U(), Z(w(
|
|
7077
|
+
v.value && v.value.length > 0 ? (U(), Z(w(Bn), X(te({ key: 0 }, f.gridProps)), {
|
|
7070
7078
|
default: M(() => [
|
|
7071
|
-
(U(!0), Oe(wu, null,
|
|
7079
|
+
(U(!0), Oe(wu, null, $n(v.value, ({ key: E, label: F, required: C, span: R, rule: S, itemProps: { offset: $, span: Y, suffix: K, ...ie } = {}, render: pe, ...re }, W) => (U(), Z(w(zn), te({
|
|
7072
7080
|
key: W,
|
|
7073
7081
|
span: typeof R == "function" ? R() : R ?? Y
|
|
7074
7082
|
}, { ref_for: !0 }, { offset: $, suffix: K }), {
|
|
7075
7083
|
default: M(({ overflow: P }) => [
|
|
7076
|
-
V(w(
|
|
7084
|
+
V(w(Un), te({
|
|
7077
7085
|
label: typeof F == "function" ? F() : F,
|
|
7078
7086
|
path: typeof E == "string" ? E : void 0,
|
|
7079
7087
|
rule: w(Sr)({ key: E, label: F, required: C, rule: S })
|
|
7080
|
-
}, { ref_for: !0 },
|
|
7088
|
+
}, { ref_for: !0 }, ie), {
|
|
7081
7089
|
default: M(() => [
|
|
7082
7090
|
pe ? (U(), Z(ot(pe({ ...m, overflow: P })), { key: 0 })) : (U(), Z(w(Fr), {
|
|
7083
7091
|
key: 1,
|
|
@@ -7097,12 +7105,12 @@ const tf = /* @__PURE__ */ de({
|
|
|
7097
7105
|
A.value && A.value.length > 0 ? (U(), Oe(wu, { key: 1 }, [
|
|
7098
7106
|
V(w(Nr), { style: { margin: "5px 0" } }, {
|
|
7099
7107
|
default: M(() => [
|
|
7100
|
-
V(w(
|
|
7108
|
+
V(w(tu), {
|
|
7101
7109
|
size: "tiny",
|
|
7102
7110
|
onClick: g[0] || (g[0] = (E) => y.value = !y.value)
|
|
7103
7111
|
}, {
|
|
7104
7112
|
default: M(() => [
|
|
7105
|
-
Mu(
|
|
7113
|
+
Mu(uu(y.value ? "折叠" : "展开"), 1)
|
|
7106
7114
|
]),
|
|
7107
7115
|
_: 1
|
|
7108
7116
|
})
|
|
@@ -7111,18 +7119,18 @@ const tf = /* @__PURE__ */ de({
|
|
|
7111
7119
|
}),
|
|
7112
7120
|
V(w(ki), { show: y.value }, {
|
|
7113
7121
|
default: M(() => [
|
|
7114
|
-
V(w(
|
|
7122
|
+
V(w(Bn), X(Q(f.gridProps)), {
|
|
7115
7123
|
default: M(() => [
|
|
7116
|
-
(U(!0), Oe(wu, null,
|
|
7124
|
+
(U(!0), Oe(wu, null, $n(A.value, ({ key: E, label: F, required: C, span: R, rule: S, itemProps: { offset: $, span: Y, suffix: K, ...ie } = {}, render: pe, ...re }, W) => (U(), Z(w(zn), te({
|
|
7117
7125
|
key: W,
|
|
7118
7126
|
span: typeof R == "function" ? R() : R ?? Y
|
|
7119
7127
|
}, { ref_for: !0 }, { offset: $, suffix: K }), {
|
|
7120
7128
|
default: M(({ overflow: P }) => [
|
|
7121
|
-
V(w(
|
|
7129
|
+
V(w(Un), te({
|
|
7122
7130
|
label: typeof F == "function" ? F() : F,
|
|
7123
7131
|
path: typeof E == "string" ? E : void 0,
|
|
7124
7132
|
rule: w(Sr)({ key: E, label: F, required: C, rule: S })
|
|
7125
|
-
}, { ref_for: !0 },
|
|
7133
|
+
}, { ref_for: !0 }, ie), {
|
|
7126
7134
|
default: M(() => [
|
|
7127
7135
|
pe ? (U(), Z(ot(pe({ ...m, overflow: P })), { key: 0 })) : (U(), Z(w(Fr), {
|
|
7128
7136
|
key: 1,
|
|
@@ -7158,14 +7166,14 @@ const tf = /* @__PURE__ */ de({
|
|
|
7158
7166
|
viewBox: "0 0 24 24"
|
|
7159
7167
|
};
|
|
7160
7168
|
function Ws(e, u, t, n, r, o) {
|
|
7161
|
-
return U(), Oe("svg", Vs, u[0] || (u[0] = [
|
|
7169
|
+
return U(), Oe("svg", Vs, [...u[0] || (u[0] = [
|
|
7162
7170
|
Ue("path", {
|
|
7163
7171
|
fill: "currentColor",
|
|
7164
7172
|
d: "M12 1.75A10.25 10.25 0 1 0 22.25 12A10.26 10.26 0 0 0 12 1.75m4.67 13.5a1 1 0 0 1 0 1.42a1 1 0 0 1-1.42 0L12 13.42l-3.25 3.25a1 1 0 0 1-1.41-1.42L10.59 12L7.34 8.75a1 1 0 1 1 1.41-1.41L12 10.59l3.25-3.25a1 1 0 1 1 1.42 1.41L13.42 12z"
|
|
7165
7173
|
}, null, -1)
|
|
7166
|
-
]));
|
|
7174
|
+
])]);
|
|
7167
7175
|
}
|
|
7168
|
-
const Zs = /* @__PURE__ */
|
|
7176
|
+
const Zs = /* @__PURE__ */ bn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
7169
7177
|
__name: "PresetPicker",
|
|
7170
7178
|
props: {
|
|
7171
7179
|
value: {},
|
|
@@ -7273,12 +7281,12 @@ const Zs = /* @__PURE__ */ hn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
|
7273
7281
|
default: M(() => [
|
|
7274
7282
|
V(w(_i), null, {
|
|
7275
7283
|
default: M(() => [
|
|
7276
|
-
V(w(
|
|
7284
|
+
V(w(nn), {
|
|
7277
7285
|
disabled: !Array.isArray(f.value),
|
|
7278
7286
|
trigger: Array.isArray(f.value) ? "hover" : "manual"
|
|
7279
7287
|
}, {
|
|
7280
7288
|
trigger: M(() => [
|
|
7281
|
-
V(w(
|
|
7289
|
+
V(w(tu), te({
|
|
7282
7290
|
type: f.type,
|
|
7283
7291
|
disabled: f.disabled
|
|
7284
7292
|
}, f.buttonProps, { onClick: s }), {
|
|
@@ -7287,19 +7295,19 @@ const Zs = /* @__PURE__ */ hn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
|
7287
7295
|
]),
|
|
7288
7296
|
default: M(() => [
|
|
7289
7297
|
I(f.$slots, "button", {}, () => [
|
|
7290
|
-
Ue("span", null,
|
|
7298
|
+
Ue("span", null, uu(Array.isArray(f.value) ? "已选择" : v.value), 1)
|
|
7291
7299
|
])
|
|
7292
7300
|
]),
|
|
7293
7301
|
_: 3
|
|
7294
7302
|
}, 16, ["type", "disabled"])
|
|
7295
7303
|
]),
|
|
7296
7304
|
default: M(() => [
|
|
7297
|
-
Ue("div", null,
|
|
7305
|
+
Ue("div", null, uu(Array.isArray(f.value) ? v.value : ""), 1)
|
|
7298
7306
|
]),
|
|
7299
7307
|
_: 3
|
|
7300
7308
|
}, 8, ["disabled", "trigger"]),
|
|
7301
7309
|
I(f.$slots, "clear-button", {}, () => [
|
|
7302
|
-
A.value ? (U(), Z(w(
|
|
7310
|
+
A.value ? (U(), Z(w(tu), te({
|
|
7303
7311
|
key: 0,
|
|
7304
7312
|
circle: "",
|
|
7305
7313
|
type: f.type
|
|
@@ -7379,7 +7387,7 @@ const Zs = /* @__PURE__ */ hn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
|
7379
7387
|
setup(e, { expose: u, emit: t }) {
|
|
7380
7388
|
const n = t, r = ft("select-ref"), o = { page: "page", pageSize: "pageSize", search: "search", list: "list", count: "count", label: "label", value: "value", rowKey: "id", children: "children", ...e.fields }, a = Ze({
|
|
7381
7389
|
...e.pagination && typeof e.pagination == "boolean" ? {} : e.pagination
|
|
7382
|
-
}), i = [], { loading: l, data: c, error: s, params: d, list: _, pagination: x, run: p, runAsync: y, refresh: v, refreshAsync: A, cancel: b, mutate: m, setParams: k, runParams: f, runParamsAsync: g, onBefore: E, onSuccess: F, onError: C, onFinally: R } =
|
|
7390
|
+
}), i = [], { loading: l, data: c, error: s, params: d, list: _, pagination: x, run: p, runAsync: y, refresh: v, refreshAsync: A, cancel: b, mutate: m, setParams: k, runParams: f, runParamsAsync: g, onBefore: E, onSuccess: F, onError: C, onFinally: R } = kn(e.api, {
|
|
7383
7391
|
defaultParams: {
|
|
7384
7392
|
[o.search]: null,
|
|
7385
7393
|
...e.defaultParams
|
|
@@ -7441,7 +7449,7 @@ const Zs = /* @__PURE__ */ hn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
|
7441
7449
|
...e.defaultParams ?? {}
|
|
7442
7450
|
}));
|
|
7443
7451
|
}
|
|
7444
|
-
},
|
|
7452
|
+
}, ie = {
|
|
7445
7453
|
onUpdatePage: (P) => {
|
|
7446
7454
|
n("update:page", P), !l.value && f({
|
|
7447
7455
|
[o.page]: P
|
|
@@ -7528,8 +7536,8 @@ const Zs = /* @__PURE__ */ hn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
|
7528
7536
|
simple: "",
|
|
7529
7537
|
disabled: w(l)
|
|
7530
7538
|
}, { ...a, ...w(x) }, {
|
|
7531
|
-
"onUpdate:page":
|
|
7532
|
-
"onUpdate:pageSize":
|
|
7539
|
+
"onUpdate:page": ie.onUpdatePage,
|
|
7540
|
+
"onUpdate:pageSize": ie.onUpdatePageSize
|
|
7533
7541
|
}), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) : Ee("", !0)
|
|
7534
7542
|
]),
|
|
7535
7543
|
_: 3
|
|
@@ -7557,7 +7565,7 @@ const Zs = /* @__PURE__ */ hn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
|
7557
7565
|
},
|
|
7558
7566
|
emits: ["before", "success", "error", "finally"],
|
|
7559
7567
|
setup(e, { expose: u, emit: t }) {
|
|
7560
|
-
const n = t, r = { page: "page", pageSize: "pageSize", list: "list", count: "count", ...e.fields }, { loading: o, data: a, error: i, params: l, list: c, pagination: s, run: d, runAsync: _, refresh: x, refreshAsync: p, cancel: y, mutate: v, setParams: A, runParams: b, runParamsAsync: m, onBefore: k, onSuccess: f, onError: g, onFinally: E } =
|
|
7568
|
+
const n = t, r = { page: "page", pageSize: "pageSize", list: "list", count: "count", ...e.fields }, { loading: o, data: a, error: i, params: l, list: c, pagination: s, run: d, runAsync: _, refresh: x, refreshAsync: p, cancel: y, mutate: v, setParams: A, runParams: b, runParamsAsync: m, onBefore: k, onSuccess: f, onError: g, onFinally: E } = kn(e.api, {
|
|
7561
7569
|
defaultParams: e.defaultParams,
|
|
7562
7570
|
fields: r,
|
|
7563
7571
|
manual: e.manual,
|
|
@@ -7624,7 +7632,7 @@ const Zs = /* @__PURE__ */ hn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
|
7624
7632
|
t.value = !1, u.value = r.value;
|
|
7625
7633
|
}
|
|
7626
7634
|
return (i, l) => (U(), Oe("div", { onClick: o }, [
|
|
7627
|
-
t.value ? (U(), Z(w(
|
|
7635
|
+
t.value ? (U(), Z(w(rn), te({
|
|
7628
7636
|
key: 0,
|
|
7629
7637
|
ref_key: "inputRef",
|
|
7630
7638
|
ref: n,
|
|
@@ -7634,23 +7642,23 @@ const Zs = /* @__PURE__ */ hn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
|
7634
7642
|
onChange: a,
|
|
7635
7643
|
onBlur: a
|
|
7636
7644
|
}), null, 16, ["value"])) : (U(), Oe(wu, { key: 1 }, [
|
|
7637
|
-
Mu(
|
|
7645
|
+
Mu(uu(r.value), 1)
|
|
7638
7646
|
], 64))
|
|
7639
7647
|
]));
|
|
7640
7648
|
}
|
|
7641
7649
|
}), lf = /* @__PURE__ */ de({
|
|
7642
7650
|
__name: "TooltipButton",
|
|
7643
7651
|
props: {
|
|
7644
|
-
|
|
7652
|
+
tooltip: {},
|
|
7645
7653
|
tooltipProps: {},
|
|
7646
7654
|
buttonProps: {}
|
|
7647
7655
|
},
|
|
7648
7656
|
emits: ["click"],
|
|
7649
7657
|
setup(e, { emit: u }) {
|
|
7650
7658
|
const t = u;
|
|
7651
|
-
return (n, r) => (U(), Z(w(
|
|
7659
|
+
return (n, r) => (U(), Z(w(nn), X(Q(n.tooltipProps)), {
|
|
7652
7660
|
trigger: M(() => [
|
|
7653
|
-
V(w(
|
|
7661
|
+
V(w(tu), te(n.buttonProps, {
|
|
7654
7662
|
onClick: r[0] || (r[0] = (o) => t("click", o))
|
|
7655
7663
|
}), {
|
|
7656
7664
|
icon: M(() => [
|
|
@@ -7664,7 +7672,7 @@ const Zs = /* @__PURE__ */ hn(Gs, [["render", Ws]]), nf = /* @__PURE__ */ de({
|
|
|
7664
7672
|
]),
|
|
7665
7673
|
default: M(() => [
|
|
7666
7674
|
I(n.$slots, "tooltip", {}, () => [
|
|
7667
|
-
Mu(
|
|
7675
|
+
Mu(uu(n.tooltip), 1)
|
|
7668
7676
|
])
|
|
7669
7677
|
]),
|
|
7670
7678
|
_: 3
|