@leaflink/stash 50.12.0 → 50.12.2
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/Accordion.js +14 -14
- package/dist/ActionsDropdown.js +2 -2
- package/dist/AddressSelect.js +2 -2
- package/dist/Alert.js +6 -6
- package/dist/AppNavigationItem.js +8 -8
- package/dist/AppSidebar.js +8 -8
- package/dist/AppTopbar.js +3 -3
- package/dist/Avatar.js +3 -3
- package/dist/Backdrop.js +2 -2
- package/dist/Badge.js +2 -2
- package/dist/Box.js +1 -1
- package/dist/{Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js → Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js} +3 -3
- package/dist/{Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js.map → Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js.map} +1 -1
- package/dist/Button.js +3 -3
- package/dist/ButtonGroup.js +4 -4
- package/dist/Card.js +7 -7
- package/dist/CardContent.js +2 -2
- package/dist/CardFooter.js +2 -2
- package/dist/CardHeader.js +4 -4
- package/dist/CardMedia.js +6 -6
- package/dist/Carousel.js +33 -33
- package/dist/Carousel.js.map +1 -1
- package/dist/Checkbox.js +7 -7
- package/dist/ChevronToggle.js +1 -1
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js → ChevronToggle.vue_vue_type_script_setup_true_lang-Ce_qOXfR.js} +3 -3
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js.map → ChevronToggle.vue_vue_type_script_setup_true_lang-Ce_qOXfR.js.map} +1 -1
- package/dist/Chip.js +7 -7
- package/dist/ConfirmationCodeInput.js +6 -6
- package/dist/ContextSwitcher.js +1 -1
- package/dist/Copy.js +1 -1
- package/dist/CurrencyInput.js +115 -111
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/DataView.js +3 -3
- package/dist/DataView.keys-aSOnA4AD.js.map +1 -1
- package/dist/DataViewFilters.js +3 -3
- package/dist/DataViewSortButton.js +10 -10
- package/dist/DataViewToolbar.js +1 -1
- package/dist/DatePicker.js +1080 -1037
- package/dist/DatePicker.js.map +1 -1
- package/dist/DescriptionList.js +2 -2
- package/dist/DescriptionListDetail.js +2 -2
- package/dist/DescriptionListGroup.js +2 -2
- package/dist/DescriptionListTerm.js +3 -3
- package/dist/Dialog.js +1 -1
- package/dist/Divider.js +2 -2
- package/dist/Dropdown.js +9 -9
- package/dist/EmptyState.js +2 -2
- package/dist/Expand.js +1 -1
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js → Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js} +5 -5
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map → Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js.map} +1 -1
- package/dist/Field.js +1 -1
- package/dist/{Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js → Field.vue_vue_type_script_setup_true_lang-DRaKs9Lm.js} +6 -6
- package/dist/{Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js.map → Field.vue_vue_type_script_setup_true_lang-DRaKs9Lm.js.map} +1 -1
- package/dist/FileUpload.js +7 -7
- package/dist/FilterChip.js +1 -1
- package/dist/FilterDrawerItem.js +9 -9
- package/dist/FilterDropdown.js +1 -1
- package/dist/FilterSelect.js +4 -4
- package/dist/Filters.js +18 -18
- package/dist/HttpError.js +9 -9
- package/dist/Icon.js +2 -2
- package/dist/IconLabel.js +2 -2
- package/dist/Illustration.js +2 -2
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-CYddAFtS.js → Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js} +3 -3
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-CYddAFtS.js.map → Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js.map} +1 -1
- package/dist/Image.js +2 -2
- package/dist/{Image.vue_vue_type_script_setup_true_lang-YUNunj71.js → Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js} +3 -3
- package/dist/{Image.vue_vue_type_script_setup_true_lang-YUNunj71.js.map → Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js.map} +1 -1
- package/dist/InlineEdit.js +5 -5
- package/dist/Input.js +2 -2
- package/dist/InputOptions.js +2 -2
- package/dist/IntegrationIcon.js +2 -2
- package/dist/Label.js +1 -1
- package/dist/{Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js → Label.vue_vue_type_script_setup_true_lang-DPnNUfc6.js} +3 -3
- package/dist/{Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js.map → Label.vue_vue_type_script_setup_true_lang-DPnNUfc6.js.map} +1 -1
- package/dist/LicenseChip.js +2 -2
- package/dist/ListItem.js +1 -1
- package/dist/ListItemCell.js +2 -2
- package/dist/ListView.js +11 -11
- package/dist/Loading.js +2 -2
- package/dist/Logo.js +1 -1
- package/dist/{Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js → Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js} +4 -4
- package/dist/{Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js.map → Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js.map} +1 -1
- package/dist/Menu.js +2 -2
- package/dist/MenuItem.js +2 -2
- package/dist/Metric.js +5 -5
- package/dist/Modal.js +20 -20
- package/dist/Modals.js +6 -6
- package/dist/Module.js +3 -3
- package/dist/ModuleContent.js +3 -3
- package/dist/ModuleFooter.js +2 -2
- package/dist/ModuleHeader.js +2 -2
- package/dist/ModuleHeader.js.map +1 -1
- package/dist/ObfuscateText.js +7 -7
- package/dist/PageContent.js +3 -3
- package/dist/PageHeader.js +6 -6
- package/dist/PageNavigation.js +1 -1
- package/dist/Paginate.js +6 -6
- package/dist/PlaidLink.js +2 -2
- package/dist/QuickAction.js +2 -2
- package/dist/Radio.js +2 -2
- package/dist/RadioGroup.js +2 -2
- package/dist/RadioNew.js +1 -1
- package/dist/RangeInput.js +2 -2
- package/dist/SearchBar.js +3 -3
- package/dist/Select.js +4 -4
- package/dist/Select.js.map +1 -1
- package/dist/SelectStatus.js +7 -7
- package/dist/Skeleton.js +4 -4
- package/dist/Step.js +6 -6
- package/dist/Stepper.js +9 -9
- package/dist/Switch.js +7 -7
- package/dist/Tab.js +4 -4
- package/dist/TabPanel.js +2 -2
- package/dist/Table.js +1 -1
- package/dist/TableCell.js +5 -5
- package/dist/TableHeaderCell.js +2 -2
- package/dist/TableHeaderRow.js +4 -4
- package/dist/TableRow.js +4 -4
- package/dist/TableRow.js.map +1 -1
- package/dist/TableRow.vue.d.ts +12 -8
- package/dist/Tabs.js +2 -2
- package/dist/{Tabs.vue_vue_type_script_setup_true_lang-NZm1OrRT.js → Tabs.vue_vue_type_script_setup_true_lang-CmnBP4i1.js} +4 -4
- package/dist/{Tabs.vue_vue_type_script_setup_true_lang-NZm1OrRT.js.map → Tabs.vue_vue_type_script_setup_true_lang-CmnBP4i1.js.map} +1 -1
- package/dist/TextEditor.js +3313 -3291
- package/dist/TextEditor.js.map +1 -1
- package/dist/Textarea.js +3 -3
- package/dist/Thumbnail.js +7 -7
- package/dist/Thumbnail.js.map +1 -1
- package/dist/ThumbnailEmpty.js +3 -3
- package/dist/ThumbnailGroup.js +6 -6
- package/dist/ThumbnailGroup.js.map +1 -1
- package/dist/{ThumbnailGroup.keys-D6WL5xQ5.js → ThumbnailGroup.keys-EJ4qFNhx.js} +2 -2
- package/dist/{ThumbnailGroup.keys-D6WL5xQ5.js.map → ThumbnailGroup.keys-EJ4qFNhx.js.map} +1 -1
- package/dist/Timeline.js +2 -2
- package/dist/TimelineItem.js +3 -3
- package/dist/Toast.js +277 -280
- package/dist/Toast.js.map +1 -1
- package/dist/Toasts.js +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/components.css +1 -1
- package/dist/{formatDateTime-C8CYECpd.js → formatDateTime-Dz8bXV0R.js} +98 -12
- package/dist/{formatDateTime-C8CYECpd.js.map → formatDateTime-Dz8bXV0R.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/searchFuzzy-DRasJ33G.js +409 -0
- package/dist/{searchFuzzy-DKooyZM8.js.map → searchFuzzy-DRasJ33G.js.map} +1 -1
- package/dist/storage.js +3 -3
- package/dist/{toTimeZone-CVE1ZmsS.js → toTimeZone-Coq1oPTt.js} +7 -9
- package/dist/{toTimeZone-CVE1ZmsS.js.map → toTimeZone-Coq1oPTt.js.map} +1 -1
- package/dist/useSearch.js +1 -1
- package/dist/utils/formatDateTime.js +2 -2
- package/dist/utils/searchFuzzy.js +1 -1
- package/dist/utils/toTimeZone.js +1 -1
- package/package.json +16 -16
- package/dist/searchFuzzy-DKooyZM8.js +0 -407
package/dist/Toast.js
CHANGED
|
@@ -1,203 +1,206 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as qt, useCssModule as Kt, computed as lt, createElementBlock as Ne, openBlock as be, normalizeClass as Zt, unref as De, createVNode as ct, isVNode as Jt } from "vue";
|
|
2
2
|
import ut from "@leaflink/snitch";
|
|
3
|
-
import
|
|
4
|
-
import { S as ft, b as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { _ as
|
|
8
|
-
/*! @license DOMPurify 3.
|
|
3
|
+
import Qt from "lodash-es/capitalize";
|
|
4
|
+
import { S as ft, b as en } from "./statusLevels-D8EgtE_L.js";
|
|
5
|
+
import tn from "./CustomRender.js";
|
|
6
|
+
import nn from "./Icon.js";
|
|
7
|
+
import { _ as on } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
/*! @license DOMPurify 3.2.4 | (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.4/LICENSE */
|
|
9
9
|
const {
|
|
10
|
-
entries:
|
|
10
|
+
entries: St,
|
|
11
11
|
setPrototypeOf: mt,
|
|
12
|
-
isFrozen:
|
|
13
|
-
getPrototypeOf:
|
|
14
|
-
getOwnPropertyDescriptor:
|
|
12
|
+
isFrozen: rn,
|
|
13
|
+
getPrototypeOf: an,
|
|
14
|
+
getOwnPropertyDescriptor: sn
|
|
15
15
|
} = Object;
|
|
16
16
|
let {
|
|
17
|
-
freeze:
|
|
18
|
-
seal:
|
|
19
|
-
create:
|
|
17
|
+
freeze: S,
|
|
18
|
+
seal: O,
|
|
19
|
+
create: Rt
|
|
20
20
|
} = Object, {
|
|
21
|
-
apply:
|
|
22
|
-
construct:
|
|
21
|
+
apply: Pe,
|
|
22
|
+
construct: ve
|
|
23
23
|
} = typeof Reflect < "u" && Reflect;
|
|
24
|
-
|
|
24
|
+
S || (S = function(o) {
|
|
25
25
|
return o;
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
O || (O = function(o) {
|
|
28
28
|
return o;
|
|
29
29
|
});
|
|
30
|
-
|
|
31
|
-
return o.apply(r,
|
|
30
|
+
Pe || (Pe = function(o, r, s) {
|
|
31
|
+
return o.apply(r, s);
|
|
32
32
|
});
|
|
33
|
-
|
|
33
|
+
ve || (ve = function(o, r) {
|
|
34
34
|
return new o(...r);
|
|
35
35
|
});
|
|
36
|
-
const
|
|
37
|
-
function R(
|
|
36
|
+
const le = R(Array.prototype.forEach), ln = R(Array.prototype.lastIndexOf), pt = R(Array.prototype.pop), $ = R(Array.prototype.push), cn = R(Array.prototype.splice), ue = R(String.prototype.toLowerCase), Ie = R(String.prototype.toString), dt = R(String.prototype.match), j = R(String.prototype.replace), un = R(String.prototype.indexOf), fn = R(String.prototype.trim), b = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), q = mn(TypeError);
|
|
37
|
+
function R(a) {
|
|
38
38
|
return function(o) {
|
|
39
|
-
for (var r = arguments.length,
|
|
40
|
-
|
|
41
|
-
return
|
|
39
|
+
for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++)
|
|
40
|
+
s[f - 1] = arguments[f];
|
|
41
|
+
return Pe(a, o, s);
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function mn(a) {
|
|
45
45
|
return function() {
|
|
46
|
-
for (var o = arguments.length, r = new Array(o),
|
|
47
|
-
r[
|
|
48
|
-
return
|
|
46
|
+
for (var o = arguments.length, r = new Array(o), s = 0; s < o; s++)
|
|
47
|
+
r[s] = arguments[s];
|
|
48
|
+
return ve(a, r);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
53
|
-
mt && mt(
|
|
54
|
-
let
|
|
55
|
-
for (;
|
|
56
|
-
let f = o[
|
|
51
|
+
function l(a, o) {
|
|
52
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ue;
|
|
53
|
+
mt && mt(a, null);
|
|
54
|
+
let s = o.length;
|
|
55
|
+
for (; s--; ) {
|
|
56
|
+
let f = o[s];
|
|
57
57
|
if (typeof f == "string") {
|
|
58
58
|
const L = r(f);
|
|
59
|
-
L !== f && (
|
|
59
|
+
L !== f && (rn(o) || (o[s] = L), f = L);
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
a[f] = !0;
|
|
62
62
|
}
|
|
63
|
-
return
|
|
63
|
+
return a;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
for (let o = 0; o <
|
|
67
|
-
|
|
68
|
-
return
|
|
65
|
+
function pn(a) {
|
|
66
|
+
for (let o = 0; o < a.length; o++)
|
|
67
|
+
b(a, o) || (a[o] = null);
|
|
68
|
+
return a;
|
|
69
69
|
}
|
|
70
|
-
function x(
|
|
71
|
-
const o =
|
|
72
|
-
for (const [r,
|
|
73
|
-
|
|
70
|
+
function x(a) {
|
|
71
|
+
const o = Rt(null);
|
|
72
|
+
for (const [r, s] of St(a))
|
|
73
|
+
b(a, r) && (Array.isArray(s) ? o[r] = pn(s) : s && typeof s == "object" && s.constructor === Object ? o[r] = x(s) : o[r] = s);
|
|
74
74
|
return o;
|
|
75
75
|
}
|
|
76
|
-
function K(
|
|
77
|
-
for (;
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
if (
|
|
81
|
-
return R(
|
|
82
|
-
if (typeof
|
|
83
|
-
return R(
|
|
76
|
+
function K(a, o) {
|
|
77
|
+
for (; a !== null; ) {
|
|
78
|
+
const s = sn(a, o);
|
|
79
|
+
if (s) {
|
|
80
|
+
if (s.get)
|
|
81
|
+
return R(s.get);
|
|
82
|
+
if (typeof s.value == "function")
|
|
83
|
+
return R(s.value);
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
a = an(a);
|
|
86
86
|
}
|
|
87
87
|
function r() {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
90
|
return r;
|
|
91
91
|
}
|
|
92
|
-
const _t =
|
|
92
|
+
const _t = S(["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"]), Me = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ce = S(["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"]), dn = S(["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"]), we = S(["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"]), _n = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Tt = S(["#text"]), Et = S(["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", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "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", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), xe = S(["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"]), gt = S(["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"]), ce = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Tn = O(/\{\{[\w\W]*|[\w\W]*\}\}/gm), En = O(/<%[\w\W]*|[\w\W]*%>/gm), gn = O(/\$\{[\w\W]*/gm), hn = O(/^data-[\-\w.\u00B7-\uFFFF]+$/), An = O(/^aria-[\-\w]+$/), yt = O(
|
|
93
93
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
94
94
|
// eslint-disable-line no-useless-escape
|
|
95
|
-
),
|
|
95
|
+
), Sn = O(/^(?:\w+script|data):/i), Rn = O(
|
|
96
96
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
97
97
|
// eslint-disable-line no-control-regex
|
|
98
|
-
),
|
|
98
|
+
), Ot = O(/^html$/i), yn = O(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
99
99
|
var ht = /* @__PURE__ */ Object.freeze({
|
|
100
100
|
__proto__: null,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
DATA_ATTR:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
101
|
+
ARIA_ATTR: An,
|
|
102
|
+
ATTR_WHITESPACE: Rn,
|
|
103
|
+
CUSTOM_ELEMENT: yn,
|
|
104
|
+
DATA_ATTR: hn,
|
|
105
|
+
DOCTYPE_NAME: Ot,
|
|
106
|
+
ERB_EXPR: En,
|
|
107
|
+
IS_ALLOWED_URI: yt,
|
|
108
|
+
IS_SCRIPT_OR_DATA: Sn,
|
|
109
|
+
MUSTACHE_EXPR: Tn,
|
|
110
|
+
TMPLIT_EXPR: gn
|
|
111
111
|
});
|
|
112
112
|
const Z = {
|
|
113
113
|
element: 1,
|
|
114
|
-
attribute: 2,
|
|
115
114
|
text: 3,
|
|
116
|
-
cdataSection: 4,
|
|
117
|
-
entityReference: 5,
|
|
118
|
-
// Deprecated
|
|
119
|
-
entityNode: 6,
|
|
120
115
|
// Deprecated
|
|
121
116
|
progressingInstruction: 7,
|
|
122
117
|
comment: 8,
|
|
123
|
-
document: 9
|
|
124
|
-
|
|
125
|
-
documentFragment: 11,
|
|
126
|
-
notation: 12
|
|
127
|
-
// Deprecated
|
|
128
|
-
}, Sn = function() {
|
|
118
|
+
document: 9
|
|
119
|
+
}, On = function() {
|
|
129
120
|
return typeof window > "u" ? null : window;
|
|
130
|
-
},
|
|
121
|
+
}, Ln = function(o, r) {
|
|
131
122
|
if (typeof o != "object" || typeof o.createPolicy != "function")
|
|
132
123
|
return null;
|
|
133
|
-
let
|
|
124
|
+
let s = null;
|
|
134
125
|
const f = "data-tt-policy-suffix";
|
|
135
|
-
r && r.hasAttribute(f) && (
|
|
136
|
-
const L = "dompurify" + (
|
|
126
|
+
r && r.hasAttribute(f) && (s = r.getAttribute(f));
|
|
127
|
+
const L = "dompurify" + (s ? "#" + s : "");
|
|
137
128
|
try {
|
|
138
129
|
return o.createPolicy(L, {
|
|
139
|
-
createHTML(
|
|
140
|
-
return
|
|
130
|
+
createHTML(N) {
|
|
131
|
+
return N;
|
|
141
132
|
},
|
|
142
|
-
createScriptURL(
|
|
143
|
-
return
|
|
133
|
+
createScriptURL(N) {
|
|
134
|
+
return N;
|
|
144
135
|
}
|
|
145
136
|
});
|
|
146
137
|
} catch {
|
|
147
138
|
return console.warn("TrustedTypes policy " + L + " could not be created."), null;
|
|
148
139
|
}
|
|
140
|
+
}, At = function() {
|
|
141
|
+
return {
|
|
142
|
+
afterSanitizeAttributes: [],
|
|
143
|
+
afterSanitizeElements: [],
|
|
144
|
+
afterSanitizeShadowDOM: [],
|
|
145
|
+
beforeSanitizeAttributes: [],
|
|
146
|
+
beforeSanitizeElements: [],
|
|
147
|
+
beforeSanitizeShadowDOM: [],
|
|
148
|
+
uponSanitizeAttribute: [],
|
|
149
|
+
uponSanitizeElement: [],
|
|
150
|
+
uponSanitizeShadowNode: []
|
|
151
|
+
};
|
|
149
152
|
};
|
|
150
153
|
function Lt() {
|
|
151
|
-
let
|
|
154
|
+
let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : On();
|
|
152
155
|
const o = (i) => Lt(i);
|
|
153
|
-
if (o.version = "3.
|
|
156
|
+
if (o.version = "3.2.4", o.removed = [], !a || !a.document || a.document.nodeType !== Z.document || !a.Element)
|
|
154
157
|
return o.isSupported = !1, o;
|
|
155
158
|
let {
|
|
156
159
|
document: r
|
|
157
|
-
} =
|
|
158
|
-
const
|
|
160
|
+
} = a;
|
|
161
|
+
const s = r, f = s.currentScript, {
|
|
159
162
|
DocumentFragment: L,
|
|
160
|
-
HTMLTemplateElement:
|
|
163
|
+
HTMLTemplateElement: N,
|
|
161
164
|
Node: J,
|
|
162
|
-
Element:
|
|
165
|
+
Element: ke,
|
|
163
166
|
NodeFilter: z,
|
|
164
|
-
NamedNodeMap:
|
|
165
|
-
HTMLFormElement:
|
|
167
|
+
NamedNodeMap: Nt = a.NamedNodeMap || a.MozNamedAttrMap,
|
|
168
|
+
HTMLFormElement: bt,
|
|
166
169
|
DOMParser: Dt,
|
|
167
170
|
trustedTypes: Q
|
|
168
|
-
} =
|
|
169
|
-
if (typeof
|
|
171
|
+
} = a, G = ke.prototype, It = K(G, "cloneNode"), Mt = K(G, "remove"), Ct = K(G, "nextSibling"), wt = K(G, "childNodes"), ee = K(G, "parentNode");
|
|
172
|
+
if (typeof N == "function") {
|
|
170
173
|
const i = r.createElement("template");
|
|
171
174
|
i.content && i.content.ownerDocument && (r = i.content.ownerDocument);
|
|
172
175
|
}
|
|
173
|
-
let E,
|
|
176
|
+
let E, W = "";
|
|
174
177
|
const {
|
|
175
|
-
implementation:
|
|
176
|
-
createNodeIterator:
|
|
177
|
-
createDocumentFragment:
|
|
178
|
-
getElementsByTagName:
|
|
178
|
+
implementation: fe,
|
|
179
|
+
createNodeIterator: xt,
|
|
180
|
+
createDocumentFragment: Pt,
|
|
181
|
+
getElementsByTagName: vt
|
|
179
182
|
} = r, {
|
|
180
|
-
importNode:
|
|
181
|
-
} =
|
|
182
|
-
let
|
|
183
|
-
o.isSupported = typeof
|
|
183
|
+
importNode: kt
|
|
184
|
+
} = s;
|
|
185
|
+
let g = At();
|
|
186
|
+
o.isSupported = typeof St == "function" && typeof ee == "function" && fe && fe.createHTMLDocument !== void 0;
|
|
184
187
|
const {
|
|
185
|
-
MUSTACHE_EXPR:
|
|
186
|
-
ERB_EXPR:
|
|
187
|
-
TMPLIT_EXPR:
|
|
188
|
-
DATA_ATTR:
|
|
189
|
-
ARIA_ATTR:
|
|
190
|
-
IS_SCRIPT_OR_DATA:
|
|
191
|
-
ATTR_WHITESPACE:
|
|
192
|
-
CUSTOM_ELEMENT:
|
|
188
|
+
MUSTACHE_EXPR: me,
|
|
189
|
+
ERB_EXPR: pe,
|
|
190
|
+
TMPLIT_EXPR: de,
|
|
191
|
+
DATA_ATTR: Ut,
|
|
192
|
+
ARIA_ATTR: Ft,
|
|
193
|
+
IS_SCRIPT_OR_DATA: Ht,
|
|
194
|
+
ATTR_WHITESPACE: Ue,
|
|
195
|
+
CUSTOM_ELEMENT: zt
|
|
193
196
|
} = ht;
|
|
194
197
|
let {
|
|
195
|
-
IS_ALLOWED_URI:
|
|
198
|
+
IS_ALLOWED_URI: Fe
|
|
196
199
|
} = ht, m = null;
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
const
|
|
200
|
-
let u = Object.seal(
|
|
200
|
+
const He = l({}, [..._t, ...Me, ...Ce, ...we, ...Tt]);
|
|
201
|
+
let d = null;
|
|
202
|
+
const ze = l({}, [...Et, ...xe, ...gt, ...ce]);
|
|
203
|
+
let u = Object.seal(Rt(null, {
|
|
201
204
|
tagNameCheck: {
|
|
202
205
|
writable: !0,
|
|
203
206
|
configurable: !1,
|
|
@@ -216,82 +219,70 @@ function Lt() {
|
|
|
216
219
|
enumerable: !0,
|
|
217
220
|
value: !1
|
|
218
221
|
}
|
|
219
|
-
})), B = null,
|
|
220
|
-
const
|
|
221
|
-
let
|
|
222
|
-
const
|
|
223
|
-
let
|
|
224
|
-
const
|
|
225
|
-
let
|
|
226
|
-
const
|
|
227
|
-
let F =
|
|
228
|
-
const Wt =
|
|
222
|
+
})), B = null, _e = null, Ge = !0, Te = !0, We = !1, Be = !0, P = !1, Ee = !0, w = !1, ge = !1, he = !1, v = !1, te = !1, ne = !1, Ye = !0, Xe = !1;
|
|
223
|
+
const Gt = "user-content-";
|
|
224
|
+
let Ae = !0, Y = !1, k = {}, U = null;
|
|
225
|
+
const Ve = l({}, ["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"]);
|
|
226
|
+
let $e = null;
|
|
227
|
+
const je = l({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
228
|
+
let Se = null;
|
|
229
|
+
const qe = l({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), oe = "http://www.w3.org/1998/Math/MathML", ie = "http://www.w3.org/2000/svg", M = "http://www.w3.org/1999/xhtml";
|
|
230
|
+
let F = M, Re = !1, ye = null;
|
|
231
|
+
const Wt = l({}, [oe, ie, M], Ie);
|
|
232
|
+
let re = l({}, ["mi", "mo", "mn", "ms", "mtext"]), ae = l({}, ["annotation-xml"]);
|
|
233
|
+
const Bt = l({}, ["title", "style", "font", "a", "script"]);
|
|
229
234
|
let X = null;
|
|
230
|
-
const
|
|
231
|
-
let
|
|
232
|
-
const
|
|
235
|
+
const Yt = ["application/xhtml+xml", "text/html"], Xt = "text/html";
|
|
236
|
+
let p = null, H = null;
|
|
237
|
+
const Vt = r.createElement("form"), Ke = function(e) {
|
|
233
238
|
return e instanceof RegExp || e instanceof Function;
|
|
234
|
-
},
|
|
239
|
+
}, Oe = function() {
|
|
235
240
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
236
241
|
if (!(H && H === e)) {
|
|
237
242
|
if ((!e || typeof e != "object") && (e = {}), e = x(e), X = // eslint-disable-next-line unicorn/prefer-includes
|
|
238
|
-
|
|
239
|
-
x(Ve),
|
|
240
|
-
// eslint-disable-line indent
|
|
241
|
-
e.ADD_URI_SAFE_ATTR,
|
|
242
|
-
// eslint-disable-line indent
|
|
243
|
-
d
|
|
244
|
-
// eslint-disable-line indent
|
|
245
|
-
) : Ve, Ye = N(e, "ADD_DATA_URI_TAGS") ? s(
|
|
246
|
-
x(Xe),
|
|
247
|
-
// eslint-disable-line indent
|
|
248
|
-
e.ADD_DATA_URI_TAGS,
|
|
249
|
-
// eslint-disable-line indent
|
|
250
|
-
d
|
|
251
|
-
// eslint-disable-line indent
|
|
252
|
-
) : Xe, U = N(e, "FORBID_CONTENTS") ? s({}, e.FORBID_CONTENTS, d) : Be, B = N(e, "FORBID_TAGS") ? s({}, e.FORBID_TAGS, d) : {}, pe = N(e, "FORBID_ATTR") ? s({}, e.FORBID_ATTR, d) : {}, k = N(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Fe = e.ALLOW_ARIA_ATTR !== !1, de = e.ALLOW_DATA_ATTR !== !1, He = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, _e = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, te = e.RETURN_DOM_FRAGMENT || !1, ne = e.RETURN_TRUSTED_TYPE || !1, Ee = e.FORCE_BODY || !1, We = e.SANITIZE_DOM !== !1, Ge = e.SANITIZE_NAMED_PROPS || !1, ge = e.KEEP_CONTENT !== !1, Y = e.IN_PLACE || !1, ve = e.ALLOWED_URI_REGEXP || Rt, F = e.NAMESPACE || I, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (de = !1), te && (v = !0), k && (m = s({}, Tt), p = [], k.html === !0 && (s(m, _t), s(p, Et)), k.svg === !0 && (s(m, De), s(p, Ie), s(p, se)), k.svgFilters === !0 && (s(m, be), s(p, Ie), s(p, se)), k.mathMl === !0 && (s(m, Ce), s(p, gt), s(p, se))), e.ADD_TAGS && (m === ke && (m = x(m)), s(m, e.ADD_TAGS, d)), e.ADD_ATTR && (p === Ue && (p = x(p)), s(p, e.ADD_ATTR, d)), e.ADD_URI_SAFE_ATTR && s(he, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (U === Be && (U = x(U)), s(U, e.FORBID_CONTENTS, d)), ge && (m["#text"] = !0), w && s(m, ["html", "head", "body"]), m.table && (s(m, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
243
|
+
Yt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Xt : e.PARSER_MEDIA_TYPE, p = X === "application/xhtml+xml" ? Ie : ue, m = b(e, "ALLOWED_TAGS") ? l({}, e.ALLOWED_TAGS, p) : He, d = b(e, "ALLOWED_ATTR") ? l({}, e.ALLOWED_ATTR, p) : ze, ye = b(e, "ALLOWED_NAMESPACES") ? l({}, e.ALLOWED_NAMESPACES, Ie) : Wt, Se = b(e, "ADD_URI_SAFE_ATTR") ? l(x(qe), e.ADD_URI_SAFE_ATTR, p) : qe, $e = b(e, "ADD_DATA_URI_TAGS") ? l(x(je), e.ADD_DATA_URI_TAGS, p) : je, U = b(e, "FORBID_CONTENTS") ? l({}, e.FORBID_CONTENTS, p) : Ve, B = b(e, "FORBID_TAGS") ? l({}, e.FORBID_TAGS, p) : {}, _e = b(e, "FORBID_ATTR") ? l({}, e.FORBID_ATTR, p) : {}, k = b(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Ge = e.ALLOW_ARIA_ATTR !== !1, Te = e.ALLOW_DATA_ATTR !== !1, We = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Be = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, Ee = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, te = e.RETURN_DOM_FRAGMENT || !1, ne = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, Ye = e.SANITIZE_DOM !== !1, Xe = e.SANITIZE_NAMED_PROPS || !1, Ae = e.KEEP_CONTENT !== !1, Y = e.IN_PLACE || !1, Fe = e.ALLOWED_URI_REGEXP || yt, F = e.NAMESPACE || M, re = e.MATHML_TEXT_INTEGRATION_POINTS || re, ae = e.HTML_INTEGRATION_POINTS || ae, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (Te = !1), te && (v = !0), k && (m = l({}, Tt), d = [], k.html === !0 && (l(m, _t), l(d, Et)), k.svg === !0 && (l(m, Me), l(d, xe), l(d, ce)), k.svgFilters === !0 && (l(m, Ce), l(d, xe), l(d, ce)), k.mathMl === !0 && (l(m, we), l(d, gt), l(d, ce))), e.ADD_TAGS && (m === He && (m = x(m)), l(m, e.ADD_TAGS, p)), e.ADD_ATTR && (d === ze && (d = x(d)), l(d, e.ADD_ATTR, p)), e.ADD_URI_SAFE_ATTR && l(Se, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (U === Ve && (U = x(U)), l(U, e.FORBID_CONTENTS, p)), Ae && (m["#text"] = !0), w && l(m, ["html", "head", "body"]), m.table && (l(m, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
253
244
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
254
245
|
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
255
246
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
256
247
|
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
257
|
-
E = e.TRUSTED_TYPES_POLICY,
|
|
248
|
+
E = e.TRUSTED_TYPES_POLICY, W = E.createHTML("");
|
|
258
249
|
} else
|
|
259
|
-
E === void 0 && (E =
|
|
260
|
-
|
|
250
|
+
E === void 0 && (E = Ln(Q, f)), E !== null && typeof W == "string" && (W = E.createHTML(""));
|
|
251
|
+
S && S(e), H = e;
|
|
261
252
|
}
|
|
262
|
-
},
|
|
253
|
+
}, Ze = l({}, [...Me, ...Ce, ...dn]), Je = l({}, [...we, ..._n]), $t = function(e) {
|
|
263
254
|
let t = ee(e);
|
|
264
255
|
(!t || !t.tagName) && (t = {
|
|
265
256
|
namespaceURI: F,
|
|
266
257
|
tagName: "template"
|
|
267
258
|
});
|
|
268
|
-
const n =
|
|
269
|
-
return
|
|
270
|
-
},
|
|
271
|
-
|
|
259
|
+
const n = ue(e.tagName), c = ue(t.tagName);
|
|
260
|
+
return ye[e.namespaceURI] ? e.namespaceURI === ie ? t.namespaceURI === M ? n === "svg" : t.namespaceURI === oe ? n === "svg" && (c === "annotation-xml" || re[c]) : !!Ze[n] : e.namespaceURI === oe ? t.namespaceURI === M ? n === "math" : t.namespaceURI === ie ? n === "math" && ae[c] : !!Je[n] : e.namespaceURI === M ? t.namespaceURI === ie && !ae[c] || t.namespaceURI === oe && !re[c] ? !1 : !Je[n] && (Bt[n] || !Ze[n]) : !!(X === "application/xhtml+xml" && ye[e.namespaceURI]) : !1;
|
|
261
|
+
}, D = function(e) {
|
|
262
|
+
$(o.removed, {
|
|
272
263
|
element: e
|
|
273
264
|
});
|
|
274
265
|
try {
|
|
275
266
|
ee(e).removeChild(e);
|
|
276
267
|
} catch {
|
|
277
|
-
|
|
268
|
+
Mt(e);
|
|
278
269
|
}
|
|
279
|
-
},
|
|
270
|
+
}, se = function(e, t) {
|
|
280
271
|
try {
|
|
281
|
-
|
|
272
|
+
$(o.removed, {
|
|
282
273
|
attribute: t.getAttributeNode(e),
|
|
283
274
|
from: t
|
|
284
275
|
});
|
|
285
276
|
} catch {
|
|
286
|
-
|
|
277
|
+
$(o.removed, {
|
|
287
278
|
attribute: null,
|
|
288
279
|
from: t
|
|
289
280
|
});
|
|
290
281
|
}
|
|
291
|
-
if (t.removeAttribute(e), e === "is"
|
|
282
|
+
if (t.removeAttribute(e), e === "is")
|
|
292
283
|
if (v || te)
|
|
293
284
|
try {
|
|
294
|
-
|
|
285
|
+
D(t);
|
|
295
286
|
} catch {
|
|
296
287
|
}
|
|
297
288
|
else
|
|
@@ -299,94 +290,96 @@ function Lt() {
|
|
|
299
290
|
t.setAttribute(e, "");
|
|
300
291
|
} catch {
|
|
301
292
|
}
|
|
302
|
-
},
|
|
293
|
+
}, Qe = function(e) {
|
|
303
294
|
let t = null, n = null;
|
|
304
|
-
if (
|
|
295
|
+
if (he)
|
|
305
296
|
e = "<remove></remove>" + e;
|
|
306
297
|
else {
|
|
307
298
|
const _ = dt(e, /^[\r\n\t ]+/);
|
|
308
299
|
n = _ && _[0];
|
|
309
300
|
}
|
|
310
|
-
X === "application/xhtml+xml" && F ===
|
|
301
|
+
X === "application/xhtml+xml" && F === M && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
311
302
|
const c = E ? E.createHTML(e) : e;
|
|
312
|
-
if (F ===
|
|
303
|
+
if (F === M)
|
|
313
304
|
try {
|
|
314
305
|
t = new Dt().parseFromString(c, X);
|
|
315
306
|
} catch {
|
|
316
307
|
}
|
|
317
308
|
if (!t || !t.documentElement) {
|
|
318
|
-
t =
|
|
309
|
+
t = fe.createDocument(F, "template", null);
|
|
319
310
|
try {
|
|
320
|
-
t.documentElement.innerHTML =
|
|
311
|
+
t.documentElement.innerHTML = Re ? W : c;
|
|
321
312
|
} catch {
|
|
322
313
|
}
|
|
323
314
|
}
|
|
324
315
|
const T = t.body || t.documentElement;
|
|
325
|
-
return e && n && T.insertBefore(r.createTextNode(n), T.childNodes[0] || null), F ===
|
|
326
|
-
},
|
|
327
|
-
return
|
|
316
|
+
return e && n && T.insertBefore(r.createTextNode(n), T.childNodes[0] || null), F === M ? vt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : T;
|
|
317
|
+
}, et = function(e) {
|
|
318
|
+
return xt.call(
|
|
328
319
|
e.ownerDocument || e,
|
|
329
320
|
e,
|
|
330
321
|
// eslint-disable-next-line no-bitwise
|
|
331
322
|
z.SHOW_ELEMENT | z.SHOW_COMMENT | z.SHOW_TEXT | z.SHOW_PROCESSING_INSTRUCTION | z.SHOW_CDATA_SECTION,
|
|
332
323
|
null
|
|
333
324
|
);
|
|
334
|
-
},
|
|
335
|
-
return e instanceof
|
|
325
|
+
}, Le = function(e) {
|
|
326
|
+
return e instanceof bt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Nt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
336
327
|
}, tt = function(e) {
|
|
337
328
|
return typeof J == "function" && e instanceof J;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
|
|
329
|
+
};
|
|
330
|
+
function C(i, e, t) {
|
|
331
|
+
le(i, (n) => {
|
|
332
|
+
n.call(o, e, t, H);
|
|
341
333
|
});
|
|
342
|
-
}
|
|
334
|
+
}
|
|
335
|
+
const nt = function(e) {
|
|
343
336
|
let t = null;
|
|
344
|
-
if (
|
|
345
|
-
return
|
|
346
|
-
const n =
|
|
347
|
-
if (
|
|
337
|
+
if (C(g.beforeSanitizeElements, e, null), Le(e))
|
|
338
|
+
return D(e), !0;
|
|
339
|
+
const n = p(e.nodeName);
|
|
340
|
+
if (C(g.uponSanitizeElement, e, {
|
|
348
341
|
tagName: n,
|
|
349
342
|
allowedTags: m
|
|
350
|
-
}), e.hasChildNodes() && !tt(e.firstElementChild) &&
|
|
351
|
-
return
|
|
343
|
+
}), e.hasChildNodes() && !tt(e.firstElementChild) && A(/<[/\w]/g, e.innerHTML) && A(/<[/\w]/g, e.textContent) || e.nodeType === Z.progressingInstruction || Ee && e.nodeType === Z.comment && A(/<[/\w]/g, e.data))
|
|
344
|
+
return D(e), !0;
|
|
352
345
|
if (!m[n] || B[n]) {
|
|
353
|
-
if (!B[n] && it(n) && (u.tagNameCheck instanceof RegExp &&
|
|
346
|
+
if (!B[n] && it(n) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
|
|
354
347
|
return !1;
|
|
355
|
-
if (
|
|
356
|
-
const c = ee(e) || e.parentNode, T =
|
|
348
|
+
if (Ae && !U[n]) {
|
|
349
|
+
const c = ee(e) || e.parentNode, T = wt(e) || e.childNodes;
|
|
357
350
|
if (T && c) {
|
|
358
351
|
const _ = T.length;
|
|
359
|
-
for (let
|
|
360
|
-
const
|
|
361
|
-
|
|
352
|
+
for (let y = _ - 1; y >= 0; --y) {
|
|
353
|
+
const I = It(T[y], !0);
|
|
354
|
+
I.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(I, Ct(e));
|
|
362
355
|
}
|
|
363
356
|
}
|
|
364
357
|
}
|
|
365
|
-
return
|
|
358
|
+
return D(e), !0;
|
|
366
359
|
}
|
|
367
|
-
return e instanceof
|
|
368
|
-
t =
|
|
369
|
-
}), e.textContent !== t && (
|
|
360
|
+
return e instanceof ke && !$t(e) || (n === "noscript" || n === "noembed" || n === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (P && e.nodeType === Z.text && (t = e.textContent, le([me, pe, de], (c) => {
|
|
361
|
+
t = j(t, c, " ");
|
|
362
|
+
}), e.textContent !== t && ($(o.removed, {
|
|
370
363
|
element: e.cloneNode()
|
|
371
|
-
}), e.textContent = t)),
|
|
364
|
+
}), e.textContent = t)), C(g.afterSanitizeElements, e, null), !1);
|
|
372
365
|
}, ot = function(e, t, n) {
|
|
373
|
-
if (
|
|
366
|
+
if (Ye && (t === "id" || t === "name") && (n in r || n in Vt))
|
|
374
367
|
return !1;
|
|
375
|
-
if (!(
|
|
376
|
-
if (!(
|
|
377
|
-
if (!
|
|
368
|
+
if (!(Te && !_e[t] && A(Ut, t))) {
|
|
369
|
+
if (!(Ge && A(Ft, t))) {
|
|
370
|
+
if (!d[t] || _e[t]) {
|
|
378
371
|
if (
|
|
379
372
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
380
373
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
381
374
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
382
|
-
!(it(e) && (u.tagNameCheck instanceof RegExp &&
|
|
375
|
+
!(it(e) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, e) || u.tagNameCheck instanceof Function && u.tagNameCheck(e)) && (u.attributeNameCheck instanceof RegExp && A(u.attributeNameCheck, t) || u.attributeNameCheck instanceof Function && u.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
383
376
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
384
|
-
t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp &&
|
|
377
|
+
t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
|
|
385
378
|
) return !1;
|
|
386
|
-
} else if (!
|
|
387
|
-
if (!
|
|
388
|
-
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" &&
|
|
389
|
-
if (!(
|
|
379
|
+
} else if (!Se[t]) {
|
|
380
|
+
if (!A(Fe, j(n, Ue, ""))) {
|
|
381
|
+
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && un(n, "data:") === 0 && $e[e])) {
|
|
382
|
+
if (!(We && !A(Ht, j(n, Ue, "")))) {
|
|
390
383
|
if (n)
|
|
391
384
|
return !1;
|
|
392
385
|
}
|
|
@@ -397,71 +390,72 @@ function Lt() {
|
|
|
397
390
|
}
|
|
398
391
|
return !0;
|
|
399
392
|
}, it = function(e) {
|
|
400
|
-
return e !== "annotation-xml" && dt(e,
|
|
393
|
+
return e !== "annotation-xml" && dt(e, zt);
|
|
401
394
|
}, rt = function(e) {
|
|
402
|
-
|
|
395
|
+
C(g.beforeSanitizeAttributes, e, null);
|
|
403
396
|
const {
|
|
404
397
|
attributes: t
|
|
405
398
|
} = e;
|
|
406
|
-
if (!t)
|
|
399
|
+
if (!t || Le(e))
|
|
407
400
|
return;
|
|
408
401
|
const n = {
|
|
409
402
|
attrName: "",
|
|
410
403
|
attrValue: "",
|
|
411
404
|
keepAttr: !0,
|
|
412
|
-
allowedAttributes:
|
|
405
|
+
allowedAttributes: d,
|
|
406
|
+
forceKeepAttr: void 0
|
|
413
407
|
};
|
|
414
408
|
let c = t.length;
|
|
415
409
|
for (; c--; ) {
|
|
416
410
|
const T = t[c], {
|
|
417
411
|
name: _,
|
|
418
|
-
namespaceURI:
|
|
419
|
-
value:
|
|
420
|
-
} = T, V =
|
|
421
|
-
let
|
|
422
|
-
if (n.attrName = V, n.attrValue =
|
|
423
|
-
|
|
412
|
+
namespaceURI: y,
|
|
413
|
+
value: I
|
|
414
|
+
} = T, V = p(_);
|
|
415
|
+
let h = _ === "value" ? I : fn(I);
|
|
416
|
+
if (n.attrName = V, n.attrValue = h, n.keepAttr = !0, n.forceKeepAttr = void 0, C(g.uponSanitizeAttribute, e, n), h = n.attrValue, Xe && (V === "id" || V === "name") && (se(_, e), h = Gt + h), Ee && A(/((--!?|])>)|<\/(style|title)/i, h)) {
|
|
417
|
+
se(_, e);
|
|
424
418
|
continue;
|
|
425
419
|
}
|
|
426
|
-
if (n.forceKeepAttr || (
|
|
420
|
+
if (n.forceKeepAttr || (se(_, e), !n.keepAttr))
|
|
427
421
|
continue;
|
|
428
|
-
if (!
|
|
429
|
-
|
|
422
|
+
if (!Be && A(/\/>/i, h)) {
|
|
423
|
+
se(_, e);
|
|
430
424
|
continue;
|
|
431
425
|
}
|
|
432
|
-
P &&
|
|
433
|
-
|
|
426
|
+
P && le([me, pe, de], (st) => {
|
|
427
|
+
h = j(h, st, " ");
|
|
434
428
|
});
|
|
435
|
-
const at =
|
|
436
|
-
if (ot(at, V,
|
|
437
|
-
if (
|
|
429
|
+
const at = p(e.nodeName);
|
|
430
|
+
if (ot(at, V, h)) {
|
|
431
|
+
if (E && typeof Q == "object" && typeof Q.getAttributeType == "function" && !y)
|
|
438
432
|
switch (Q.getAttributeType(at, V)) {
|
|
439
433
|
case "TrustedHTML": {
|
|
440
|
-
|
|
434
|
+
h = E.createHTML(h);
|
|
441
435
|
break;
|
|
442
436
|
}
|
|
443
437
|
case "TrustedScriptURL": {
|
|
444
|
-
|
|
438
|
+
h = E.createScriptURL(h);
|
|
445
439
|
break;
|
|
446
440
|
}
|
|
447
441
|
}
|
|
448
442
|
try {
|
|
449
|
-
|
|
443
|
+
y ? e.setAttributeNS(y, _, h) : e.setAttribute(_, h), Le(e) ? D(e) : pt(o.removed);
|
|
450
444
|
} catch {
|
|
451
445
|
}
|
|
452
446
|
}
|
|
453
447
|
}
|
|
454
|
-
|
|
448
|
+
C(g.afterSanitizeAttributes, e, null);
|
|
455
449
|
}, jt = function i(e) {
|
|
456
450
|
let t = null;
|
|
457
|
-
const n =
|
|
458
|
-
for (
|
|
459
|
-
|
|
460
|
-
|
|
451
|
+
const n = et(e);
|
|
452
|
+
for (C(g.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
|
|
453
|
+
C(g.uponSanitizeShadowNode, t, null), nt(t), rt(t), t.content instanceof L && i(t.content);
|
|
454
|
+
C(g.afterSanitizeShadowDOM, e, null);
|
|
461
455
|
};
|
|
462
456
|
return o.sanitize = function(i) {
|
|
463
457
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, T = null;
|
|
464
|
-
if (
|
|
458
|
+
if (Re = !i, Re && (i = "<!-->"), typeof i != "string" && !tt(i))
|
|
465
459
|
if (typeof i.toString == "function") {
|
|
466
460
|
if (i = i.toString(), typeof i != "string")
|
|
467
461
|
throw q("dirty is not a string, aborting");
|
|
@@ -469,102 +463,105 @@ function Lt() {
|
|
|
469
463
|
throw q("toString is not a function");
|
|
470
464
|
if (!o.isSupported)
|
|
471
465
|
return i;
|
|
472
|
-
if (
|
|
466
|
+
if (ge || Oe(e), o.removed = [], typeof i == "string" && (Y = !1), Y) {
|
|
473
467
|
if (i.nodeName) {
|
|
474
|
-
const
|
|
475
|
-
if (!m[
|
|
468
|
+
const I = p(i.nodeName);
|
|
469
|
+
if (!m[I] || B[I])
|
|
476
470
|
throw q("root node is forbidden and cannot be sanitized in-place");
|
|
477
471
|
}
|
|
478
472
|
} else if (i instanceof J)
|
|
479
|
-
t =
|
|
473
|
+
t = Qe("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Z.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
|
|
480
474
|
else {
|
|
481
475
|
if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
|
|
482
476
|
i.indexOf("<") === -1)
|
|
483
477
|
return E && ne ? E.createHTML(i) : i;
|
|
484
|
-
if (t =
|
|
485
|
-
return v ? null : ne ?
|
|
478
|
+
if (t = Qe(i), !t)
|
|
479
|
+
return v ? null : ne ? W : "";
|
|
486
480
|
}
|
|
487
|
-
t &&
|
|
488
|
-
const _ =
|
|
481
|
+
t && he && D(t.firstChild);
|
|
482
|
+
const _ = et(Y ? i : t);
|
|
489
483
|
for (; c = _.nextNode(); )
|
|
490
|
-
nt(c)
|
|
484
|
+
nt(c), rt(c), c.content instanceof L && jt(c.content);
|
|
491
485
|
if (Y)
|
|
492
486
|
return i;
|
|
493
487
|
if (v) {
|
|
494
488
|
if (te)
|
|
495
|
-
for (T =
|
|
489
|
+
for (T = Pt.call(t.ownerDocument); t.firstChild; )
|
|
496
490
|
T.appendChild(t.firstChild);
|
|
497
491
|
else
|
|
498
492
|
T = t;
|
|
499
|
-
return (
|
|
493
|
+
return (d.shadowroot || d.shadowrootmode) && (T = kt.call(s, T, !0)), T;
|
|
500
494
|
}
|
|
501
|
-
let
|
|
502
|
-
return w && m["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name &&
|
|
503
|
-
` +
|
|
504
|
-
|
|
505
|
-
}), E && ne ? E.createHTML(
|
|
495
|
+
let y = w ? t.outerHTML : t.innerHTML;
|
|
496
|
+
return w && m["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(Ot, t.ownerDocument.doctype.name) && (y = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
|
497
|
+
` + y), P && le([me, pe, de], (I) => {
|
|
498
|
+
y = j(y, I, " ");
|
|
499
|
+
}), E && ne ? E.createHTML(y) : y;
|
|
506
500
|
}, o.setConfig = function() {
|
|
507
501
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
508
|
-
|
|
502
|
+
Oe(i), ge = !0;
|
|
509
503
|
}, o.clearConfig = function() {
|
|
510
|
-
H = null,
|
|
504
|
+
H = null, ge = !1;
|
|
511
505
|
}, o.isValidAttribute = function(i, e, t) {
|
|
512
|
-
H ||
|
|
513
|
-
const n =
|
|
506
|
+
H || Oe({});
|
|
507
|
+
const n = p(i), c = p(e);
|
|
514
508
|
return ot(n, c, t);
|
|
515
509
|
}, o.addHook = function(i, e) {
|
|
516
|
-
typeof e == "function" && (
|
|
517
|
-
}, o.removeHook = function(i) {
|
|
518
|
-
if (
|
|
519
|
-
|
|
510
|
+
typeof e == "function" && $(g[i], e);
|
|
511
|
+
}, o.removeHook = function(i, e) {
|
|
512
|
+
if (e !== void 0) {
|
|
513
|
+
const t = ln(g[i], e);
|
|
514
|
+
return t === -1 ? void 0 : cn(g[i], t, 1)[0];
|
|
515
|
+
}
|
|
516
|
+
return pt(g[i]);
|
|
520
517
|
}, o.removeHooks = function(i) {
|
|
521
|
-
|
|
518
|
+
g[i] = [];
|
|
522
519
|
}, o.removeAllHooks = function() {
|
|
523
|
-
|
|
520
|
+
g = At();
|
|
524
521
|
}, o;
|
|
525
522
|
}
|
|
526
|
-
var
|
|
527
|
-
const
|
|
523
|
+
var Nn = Lt();
|
|
524
|
+
const bn = ["role"], Dn = ["innerHTML"], In = { key: 1 }, Mn = /* @__PURE__ */ qt({
|
|
528
525
|
__name: "Toast",
|
|
529
526
|
props: {
|
|
530
527
|
text: {},
|
|
531
528
|
status: { default: "info" }
|
|
532
529
|
},
|
|
533
|
-
setup(
|
|
534
|
-
const o =
|
|
535
|
-
() => r.status ? ft[
|
|
536
|
-
), f = lt(() => r.status ===
|
|
530
|
+
setup(a) {
|
|
531
|
+
const o = Kt(), r = a, s = lt(
|
|
532
|
+
() => r.status ? ft[Qt(r.status)] : ft.Info
|
|
533
|
+
), f = lt(() => r.status === en.Error ? "alert" : "status"), L = () => {
|
|
537
534
|
if (typeof r.text != "function")
|
|
538
535
|
return ut.error(
|
|
539
536
|
`Toast: ${r.text} is not a valid text prop value. Must be either a render function or a string.`
|
|
540
537
|
), null;
|
|
541
|
-
const
|
|
542
|
-
return
|
|
538
|
+
const N = r.text();
|
|
539
|
+
return Jt(N) ? N : (ut.error("Toast: The text prop must return a VNode."), null);
|
|
543
540
|
};
|
|
544
|
-
return (
|
|
541
|
+
return (N, J) => (be(), Ne("li", {
|
|
545
542
|
role: f.value,
|
|
546
|
-
class:
|
|
543
|
+
class: Zt([[De(o).root, De(o)[`status--${r.status}`]], "stash-toast"]),
|
|
547
544
|
"data-test": "stash-toast"
|
|
548
545
|
}, [
|
|
549
|
-
ct(
|
|
550
|
-
typeof r.text == "string" ? (
|
|
546
|
+
ct(nn, { name: s.value }, null, 8, ["name"]),
|
|
547
|
+
typeof r.text == "string" ? (be(), Ne("div", {
|
|
551
548
|
key: 0,
|
|
552
|
-
innerHTML:
|
|
553
|
-
}, null, 8,
|
|
554
|
-
ct(
|
|
549
|
+
innerHTML: De(Nn).sanitize(N.text)
|
|
550
|
+
}, null, 8, Dn)) : (be(), Ne("div", In, [
|
|
551
|
+
ct(tn, { render: L })
|
|
555
552
|
]))
|
|
556
|
-
], 10,
|
|
553
|
+
], 10, bn));
|
|
557
554
|
}
|
|
558
|
-
}),
|
|
559
|
-
root:
|
|
555
|
+
}), Cn = "_root_p3yhd_2", wn = {
|
|
556
|
+
root: Cn,
|
|
560
557
|
"status--success": "_status--success_p3yhd_22",
|
|
561
558
|
"status--error": "_status--error_p3yhd_31",
|
|
562
559
|
"status--info": "_status--info_p3yhd_40",
|
|
563
560
|
"status--warning": "_status--warning_p3yhd_49"
|
|
564
|
-
},
|
|
565
|
-
$style:
|
|
566
|
-
},
|
|
561
|
+
}, xn = {
|
|
562
|
+
$style: wn
|
|
563
|
+
}, Gn = /* @__PURE__ */ on(Mn, [["__cssModules", xn]]);
|
|
567
564
|
export {
|
|
568
|
-
|
|
565
|
+
Gn as default
|
|
569
566
|
};
|
|
570
567
|
//# sourceMappingURL=Toast.js.map
|