@rankingcoach/vanguard 1.3.1 → 1.4.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/index-AMPMMidnightParser.js +1 -1
- package/dist/index-AMPMParser.js +1 -1
- package/dist/index-Accordion2.js +1 -1
- package/dist/index-AccordionDetails.js +1 -1
- package/dist/index-AccordionSummary.js +1 -1
- package/dist/index-AiGlow.js +1 -1
- package/dist/index-AppBar2.js +1 -1
- package/dist/index-Autocomplete.js +2 -2
- package/dist/index-Autocomplete2.js +1 -1
- package/dist/index-Backdrop.js +1 -1
- package/dist/index-BasePopper.js +1 -1
- package/dist/index-Box.js +1 -1
- package/dist/index-Button2.js +1 -1
- package/dist/index-ButtonBase.js +1 -1
- package/dist/index-CSSTransition.js +1 -1
- package/dist/index-Calendar.js +20 -20
- package/dist/index-CalendarPicker.js +1 -1
- package/dist/index-Chip.js +1 -1
- package/dist/index-ClickAwayListener.js +1 -1
- package/dist/index-ClockPicker.js +1 -1
- package/dist/index-Collapse2.js +1 -1
- package/dist/index-CreditCard.js +1 -1
- package/dist/index-DateInput.js +1 -1
- package/dist/index-DateParser.js +1 -1
- package/dist/index-DatePicker2.js +1 -1
- package/dist/index-DateRange2.js +7 -7
- package/dist/index-DateRangePicker2.js +1 -1
- package/dist/index-DayCell.js +5 -5
- package/dist/index-DayOfYearParser.js +1 -1
- package/dist/index-DayParser.js +1 -1
- package/dist/index-DayPeriodParser.js +1 -1
- package/dist/index-DefaultPropsProvider.js +1 -1
- package/dist/index-DefaultPropsProvider2.js +1 -1
- package/dist/index-DefinedRange.js +1 -1
- package/dist/index-DesktopDatePicker.js +1 -1
- package/dist/index-Dialog.js +1 -1
- package/dist/index-DialogActions.js +1 -1
- package/dist/index-DialogContent.js +1 -1
- package/dist/index-Drawer.js +1 -1
- package/dist/index-Drawer2.js +1 -1
- package/dist/index-EraParser.js +1 -1
- package/dist/index-ExtendedYearParser.js +1 -1
- package/dist/index-Fade.js +1 -1
- package/dist/index-FilledInput.js +1 -1
- package/dist/index-FocusTrap.js +1 -1
- package/dist/index-FormControl2.js +1 -1
- package/dist/index-FormHelperText.js +1 -1
- package/dist/index-FormLabel.js +1 -1
- package/dist/index-FractionOfSecondParser.js +1 -1
- package/dist/index-GlobalStyles.js +1 -1
- package/dist/index-GlobalStyles2.js +1 -1
- package/dist/index-GlobalStyles3.js +1 -1
- package/dist/index-Grid.js +1 -1
- package/dist/index-Grow.js +1 -1
- package/dist/index-Header.js +1 -1
- package/dist/index-Hour0To11Parser.js +1 -1
- package/dist/index-Hour0to23Parser.js +1 -1
- package/dist/index-Hour1To24Parser.js +1 -1
- package/dist/index-Hour1to12Parser.js +1 -1
- package/dist/index-ISODayParser.js +1 -1
- package/dist/index-ISOTimezoneParser.js +1 -1
- package/dist/index-ISOTimezoneWithZParser.js +1 -1
- package/dist/index-ISOWeekParser.js +1 -1
- package/dist/index-ISOWeekYearParser.js +1 -1
- package/dist/index-IconButton2.js +1 -1
- package/dist/index-Input2.js +1 -1
- package/dist/index-InputAdornment.js +1 -1
- package/dist/index-InputBase.js +155 -150
- package/dist/index-InputBase2.js +1 -1
- package/dist/index-InputLabel.js +1 -1
- package/dist/index-LinearProgress.js +1 -1
- package/dist/index-List2.js +1 -1
- package/dist/index-ListSubheader.js +1 -1
- package/dist/index-LocalDayParser.js +1 -1
- package/dist/index-LocalWeekParser.js +1 -1
- package/dist/index-LocalWeekYearParser.js +1 -1
- package/dist/index-LocalizationProvider.js +1 -1
- package/dist/index-LoginButton.js +1 -1
- package/dist/index-Menu.js +1 -1
- package/dist/index-MenuItem.js +1 -1
- package/dist/index-MenuList.js +1 -1
- package/dist/index-MinuteParser.js +1 -1
- package/dist/index-MobileDatePicker.js +1 -1
- package/dist/index-Modal2.js +1 -1
- package/dist/index-Month.js +9 -9
- package/dist/index-MonthParser.js +1 -1
- package/dist/index-MonthPicker.js +1 -1
- package/dist/index-NativeSelectInput.js +1 -1
- package/dist/index-NotchedOutline.js +1 -1
- package/dist/index-OutlinedInput.js +1 -1
- package/dist/index-Paper.js +1 -1
- package/dist/index-Parser2.js +315 -255
- package/dist/index-Parser3.js +129 -2
- package/dist/index-PickersDay.js +1 -1
- package/dist/index-Popover2.js +1 -1
- package/dist/index-Popper.js +1 -1
- package/dist/index-Portal.js +1 -1
- package/dist/index-PropTypes.js +1 -1
- package/dist/index-QuarterParser.js +1 -1
- package/dist/index-QuoteContainer.js +1 -1
- package/dist/index-Ripple.js +1 -1
- package/dist/index-RtlProvider.js +1 -1
- package/dist/index-ScrollbarSize.js +1 -1
- package/dist/index-SecondParser.js +1 -1
- package/dist/index-Select2.js +1 -1
- package/dist/index-SelectInput2.js +1 -1
- package/dist/index-Skeleton2.js +1 -1
- package/dist/index-Slide.js +1 -1
- package/dist/index-Slider2.js +1 -1
- package/dist/index-SliderValueLabel.js +1 -1
- package/dist/index-Snackbar2.js +1 -1
- package/dist/index-SnackbarContent.js +1 -1
- package/dist/index-StandAloneLocalDayParser.js +1 -1
- package/dist/index-StandAloneMonthParser.js +1 -1
- package/dist/index-StandAloneQuarterParser.js +1 -1
- package/dist/index-StyledEngineProvider.js +1 -1
- package/dist/index-StyledSVG2.js +1 -1
- package/dist/index-SvgIcon.js +1 -1
- package/dist/index-Tab2.js +1 -1
- package/dist/index-TabScrollButton.js +1 -1
- package/dist/index-Tabs2.js +1 -1
- package/dist/index-Text.js +18 -18
- package/dist/index-TextField.js +1 -1
- package/dist/index-TextHighlighted.js +23 -19
- package/dist/index-TextareaAutosize.js +1 -1
- package/dist/index-TimestampMillisecondsParser.js +1 -1
- package/dist/index-TimestampSecondsParser.js +1 -1
- package/dist/index-ToggleButton2.js +1 -1
- package/dist/index-ToggleButtonGroup2.js +1 -1
- package/dist/index-Tokenizer.js +411 -334
- package/dist/index-Tokenizer2.js +139 -2
- package/dist/index-Toolbar2.js +1 -1
- package/dist/index-Tooltip.js +1 -1
- package/dist/index-TouchRipple.js +1 -1
- package/dist/index-Transition.js +1 -1
- package/dist/index-TransitionGroup.js +1 -1
- package/dist/index-Typography.js +1 -1
- package/dist/index-YearParser.js +1 -1
- package/dist/index-YearPicker.js +1 -1
- package/dist/index-_virtual12.js +1 -1
- package/dist/index-_virtual15.js +2 -5
- package/dist/index-_virtual16.js +5 -3
- package/dist/index-_virtual17.js +5 -2
- package/dist/index-_virtual18.js +2 -7
- package/dist/index-_virtual19.js +5 -2
- package/dist/index-_virtual2.js +5 -5
- package/dist/index-_virtual20.js +2 -5
- package/dist/index-_virtual23.js +1 -1
- package/dist/index-_virtual3.js +4 -4
- package/dist/index-_virtual34.js +2 -2
- package/dist/index-_virtual35.js +2 -4
- package/dist/index-_virtual36.js +1 -1
- package/dist/index-_virtual37.js +1 -1
- package/dist/index-_virtual38.js +1 -1
- package/dist/index-_virtual39.js +1 -1
- package/dist/index-_virtual4.js +5 -5
- package/dist/index-_virtual40.js +1 -1
- package/dist/index-_virtual41.js +4 -2
- package/dist/index-_virtual42.js +2 -4
- package/dist/index-_virtual43.js +1 -1
- package/dist/index-_virtual44.js +1 -1
- package/dist/index-_virtual45.js +1 -1
- package/dist/index-_virtual46.js +1 -1
- package/dist/index-_virtual47.js +1 -1
- package/dist/index-_virtual48.js +1 -1
- package/dist/index-_virtual49.js +1 -1
- package/dist/index-_virtual50.js +1 -1
- package/dist/index-_virtual51.js +1 -1
- package/dist/index-_virtual52.js +1 -1
- package/dist/index-_virtual53.js +1 -1
- package/dist/index-_virtual54.js +1 -1
- package/dist/index-_virtual55.js +1 -1
- package/dist/index-_virtual56.js +1 -1
- package/dist/index-_virtual57.js +1 -1
- package/dist/index-_virtual58.js +4 -2
- package/dist/index-_virtual60.js +2 -4
- package/dist/index-_virtual61.js +1 -1
- package/dist/index-_virtual62.js +4 -2
- package/dist/index-_virtual63.js +2 -2
- package/dist/index-_virtual75.js +1 -1
- package/dist/index-_virtual77.js +4 -2
- package/dist/index-_virtual78.js +1 -1
- package/dist/index-_virtual79.js +1 -1
- package/dist/index-_virtual80.js +1 -1
- package/dist/index-_virtual81.js +1 -1
- package/dist/index-_virtual82.js +1 -1
- package/dist/index-_virtual83.js +1 -1
- package/dist/index-_virtual84.js +1 -1
- package/dist/index-_virtual85.js +2 -4
- package/dist/index-_virtual86.js +2 -2
- package/dist/index-applyInternationalSeparatorStyle.js +1 -1
- package/dist/index-attributes-to-props.js +1 -1
- package/dist/index-cjs.js +19 -75
- package/dist/index-colorManipulator3.js +2 -2
- package/dist/index-constants.js +38 -8
- package/dist/index-constants2.js +8 -38
- package/dist/index-createExtensionPattern.js +1 -1
- package/dist/index-createStyled2.js +6 -6
- package/dist/index-decode-data-html.js +5 -11
- package/dist/index-decode-data-xml.js +5 -11
- package/dist/index-decode.js +263 -216
- package/dist/index-decode_codepoint.js +43 -53
- package/dist/index-defaultRanges.js +10 -10
- package/dist/index-dist4.js +1 -1
- package/dist/index-dist5.js +1 -1
- package/dist/index-elementAcceptingRef.js +1 -1
- package/dist/index-elementTypeAcceptingRef.js +1 -1
- package/dist/index-emotion-cache.browser.esm.js +2 -2
- package/dist/index-escape.js +43 -48
- package/dist/index-esm2.js +108 -129
- package/dist/index-esm3.js +12 -301
- package/dist/index-esm4.js +135 -17
- package/dist/index-esm5.js +303 -0
- package/dist/index-esm6.js +21 -0
- package/dist/index-esm7.js +102 -0
- package/dist/index-exenv.js +1 -1
- package/dist/index-extractCountryCallingCode.js +1 -1
- package/dist/index-extractPhoneContext.js +1 -1
- package/dist/index-foreignNames.js +101 -108
- package/dist/index-helpers3.js +1 -1
- package/dist/index-http.store.js +1 -1
- package/dist/index-isViablePhoneNumber.js +1 -1
- package/dist/index-lib.js +2 -2
- package/dist/index-lib2.js +424 -111
- package/dist/index-lib3.js +14 -433
- package/dist/index-lib4.js +120 -14
- package/dist/index-lib5.js +10 -69
- package/dist/index-node.js +1 -1
- package/dist/index-node2.js +1 -1
- package/dist/index-parse2.js +1 -1
- package/dist/index-parse3.js +122 -20
- package/dist/index-refType.js +1 -1
- package/dist/index-responsivePropType.js +1 -1
- package/dist/index-sanitize-html.js +91 -48
- package/dist/index-stripIddPrefix.js +1 -1
- package/dist/index-style-to-object.js +1 -1
- package/dist/index-text-animate-words-style.js +12 -12
- package/dist/index-tiny-emitter.js +1 -1
- package/dist/index-useRteAiAssistant-selection.js +5 -5
- package/dist/index-useThemeWithoutDefault3.js +1 -1
- package/dist/index-utilities.js +1 -1
- package/dist/index-utilities2.js +1 -1
- package/dist/index-utils2.js +1 -1
- package/dist/index-utils6.js +7 -7
- package/dist/index.js +428 -426
- package/dist/types/core/Form/stories/SelectChangeDetection.story.d.ts +2 -0
- package/dist/types/core/Form/stories/bootstrap/form.test.slice.d.ts +58 -17
- package/dist/types/core/RichTextEditor/stories/RichTextEditorStory.story.d.ts +2 -0
- package/dist/types/core/RichTextEditor/stories/RichTextEditorWithXSSAttackStory.story.d.ts +2 -0
- package/dist/types/core/RichTextEditor/stories/_RichTextEditor.default.d.ts +4 -0
- package/dist/types/core/RichTextEditor/stories/bootstrap/richtexteditor.test.slice.d.ts +1 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedStory.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedStory2.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedWithEmphasisStory.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedWithXSSAttackStory.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/_TextHighlighted.default.d.ts +7 -0
- package/dist/types/core/_internal/InputBase/stories/HighlightLengthExceededTest.story.d.ts +2 -0
- package/dist/types/core/_internal/InputBase/stories/HighlightUrlTest.story.d.ts +2 -0
- package/dist/types/core/_internal/InputBase/stories/HighlightWordsTest.story.d.ts +2 -0
- package/dist/types/helpers/sanitize-html.d.ts +18 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist-wordpress/index.js +23637 -22231
- package/package.json +5 -2
- package/scripts/check-meta-coverage.js +117 -0
- package/scripts/generate-exports-props.js +855 -0
- package/dist/index-Parser5.js +0 -131
- package/dist/index-Tokenizer3.js +0 -141
- package/dist/index-_virtual87.js +0 -4
- package/dist/index-_virtual88.js +0 -4
- package/dist/index-_virtual89.js +0 -4
- package/dist/index-_virtual90.js +0 -4
- package/dist/index-_virtual91.js +0 -4
- package/dist/index-at-rule.js +0 -22
- package/dist/index-cjs2.js +0 -23
- package/dist/index-comment.js +0 -16
- package/dist/index-container.js +0 -223
- package/dist/index-css-syntax-error.js +0 -56
- package/dist/index-declaration.js +0 -19
- package/dist/index-decode-data-html2.js +0 -4
- package/dist/index-decode-data-xml2.js +0 -4
- package/dist/index-decode2.js +0 -4
- package/dist/index-decode_codepoint2.js +0 -4
- package/dist/index-document3.js +0 -23
- package/dist/index-encode-html.js +0 -15
- package/dist/index-encode-html2.js +0 -4
- package/dist/index-encode.js +0 -49
- package/dist/index-encode2.js +0 -4
- package/dist/index-escape-string-regexp.js +0 -11
- package/dist/index-escape2.js +0 -4
- package/dist/index-feeds.js +0 -92
- package/dist/index-feeds2.js +0 -4
- package/dist/index-foreignNames2.js +0 -4
- package/dist/index-fromJSON.js +0 -46
- package/dist/index-helpers4.js +0 -54
- package/dist/index-helpers5.js +0 -4
- package/dist/index-input3.js +0 -139
- package/dist/index-is-plain-object.js +0 -17
- package/dist/index-is-plain-object2.js +0 -4
- package/dist/index-lazy-result.js +0 -343
- package/dist/index-legacy.js +0 -75
- package/dist/index-legacy2.js +0 -4
- package/dist/index-lib6.js +0 -13
- package/dist/index-lib7.js +0 -43
- package/dist/index-lib8.js +0 -147
- package/dist/index-lib9.js +0 -90
- package/dist/index-list3.js +0 -25
- package/dist/index-manipulation.js +0 -61
- package/dist/index-manipulation2.js +0 -4
- package/dist/index-map-generator.js +0 -171
- package/dist/index-no-work-result.js +0 -94
- package/dist/index-node4.js +0 -259
- package/dist/index-non-secure.js +0 -20
- package/dist/index-parse-srcset.js +0 -71
- package/dist/index-parse-srcset2.js +0 -4
- package/dist/index-parse4.js +0 -127
- package/dist/index-parser4.js +0 -322
- package/dist/index-picocolors.browser.js +0 -13
- package/dist/index-picocolors.browser2.js +0 -4
- package/dist/index-postcss.js +0 -46
- package/dist/index-previous-map.js +0 -92
- package/dist/index-processor.js +0 -43
- package/dist/index-querying.js +0 -63
- package/dist/index-querying2.js +0 -4
- package/dist/index-result.js +0 -30
- package/dist/index-root.js +0 -38
- package/dist/index-rule.js +0 -24
- package/dist/index-sanitize-html2.js +0 -672
- package/dist/index-stringifier.js +0 -196
- package/dist/index-stringify.js +0 -14
- package/dist/index-stringify2.js +0 -36
- package/dist/index-stringify3.js +0 -4
- package/dist/index-symbols.js +0 -8
- package/dist/index-symbols2.js +0 -4
- package/dist/index-tokenize.js +0 -114
- package/dist/index-traversal.js +0 -48
- package/dist/index-traversal2.js +0 -4
- package/dist/index-warn-once.js +0 -12
- package/dist/index-warning2.js +0 -25
- /package/dist/{index-Parser6.js → index-Parser4.js} +0 -0
|
@@ -1,672 +0,0 @@
|
|
|
1
|
-
import { __require as de } from "./index-lib5.js";
|
|
2
|
-
import { __require as ue } from "./index-escape-string-regexp.js";
|
|
3
|
-
import { __require as ge } from "./index-is-plain-object.js";
|
|
4
|
-
import { __require as pe } from "./index-cjs.js";
|
|
5
|
-
import { __require as he } from "./index-parse-srcset.js";
|
|
6
|
-
import { __require as me } from "./index-postcss.js";
|
|
7
|
-
var F, Y;
|
|
8
|
-
function Se() {
|
|
9
|
-
if (Y) return F;
|
|
10
|
-
Y = 1;
|
|
11
|
-
const J = /* @__PURE__ */ de(), D = ue(), { isPlainObject: K } = ge(), B = pe(), Q = he(), { parse: j } = me(), ee = [
|
|
12
|
-
"img",
|
|
13
|
-
"audio",
|
|
14
|
-
"video",
|
|
15
|
-
"picture",
|
|
16
|
-
"svg",
|
|
17
|
-
"object",
|
|
18
|
-
"map",
|
|
19
|
-
"iframe",
|
|
20
|
-
"embed"
|
|
21
|
-
], te = ["script", "style"];
|
|
22
|
-
function v(f, t) {
|
|
23
|
-
f && Object.keys(f).forEach(function(w) {
|
|
24
|
-
t(f[w], w);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function x(f, t) {
|
|
28
|
-
return {}.hasOwnProperty.call(f, t);
|
|
29
|
-
}
|
|
30
|
-
function U(f, t) {
|
|
31
|
-
const w = [];
|
|
32
|
-
return v(f, function(l) {
|
|
33
|
-
t(l) && w.push(l);
|
|
34
|
-
}), w;
|
|
35
|
-
}
|
|
36
|
-
function re(f) {
|
|
37
|
-
for (const t in f)
|
|
38
|
-
if (x(f, t))
|
|
39
|
-
return !1;
|
|
40
|
-
return !0;
|
|
41
|
-
}
|
|
42
|
-
function ne(f) {
|
|
43
|
-
return f.map(function(t) {
|
|
44
|
-
if (!t.url)
|
|
45
|
-
throw new Error("URL missing");
|
|
46
|
-
return t.url + (t.w ? ` ${t.w}w` : "") + (t.h ? ` ${t.h}h` : "") + (t.d ? ` ${t.d}x` : "");
|
|
47
|
-
}).join(", ");
|
|
48
|
-
}
|
|
49
|
-
F = C;
|
|
50
|
-
const ie = /^[^\0\t\n\f\r /<=>]+$/;
|
|
51
|
-
function C(f, t, w) {
|
|
52
|
-
if (f == null)
|
|
53
|
-
return "";
|
|
54
|
-
typeof f == "number" && (f = f.toString());
|
|
55
|
-
let l = "", m = "";
|
|
56
|
-
function M(e, n) {
|
|
57
|
-
const r = this;
|
|
58
|
-
this.tag = e, this.attribs = n || {}, this.tagPosition = l.length, this.text = "", this.mediaChildren = [], this.updateParentNodeText = function() {
|
|
59
|
-
if (u.length) {
|
|
60
|
-
const i = u[u.length - 1];
|
|
61
|
-
i.text += r.text;
|
|
62
|
-
}
|
|
63
|
-
}, this.updateParentNodeMediaChildren = function() {
|
|
64
|
-
u.length && ee.includes(this.tag) && u[u.length - 1].mediaChildren.push(this.tag);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
t = Object.assign({}, C.defaults, t), t.parser = Object.assign({}, se, t.parser);
|
|
68
|
-
const H = function(e) {
|
|
69
|
-
return t.allowedTags === !1 || (t.allowedTags || []).indexOf(e) > -1;
|
|
70
|
-
};
|
|
71
|
-
te.forEach(function(e) {
|
|
72
|
-
H(e) && t.allowVulnerableTags;
|
|
73
|
-
});
|
|
74
|
-
const oe = t.nonTextTags || [
|
|
75
|
-
"script",
|
|
76
|
-
"style",
|
|
77
|
-
"textarea",
|
|
78
|
-
"option"
|
|
79
|
-
];
|
|
80
|
-
let d, S;
|
|
81
|
-
t.allowedAttributes && (d = {}, S = {}, v(t.allowedAttributes, function(e, n) {
|
|
82
|
-
d[n] = [];
|
|
83
|
-
const r = [];
|
|
84
|
-
e.forEach(function(i) {
|
|
85
|
-
typeof i == "string" && i.indexOf("*") >= 0 ? r.push(D(i).replace(/\\\*/g, ".*")) : d[n].push(i);
|
|
86
|
-
}), r.length && (S[n] = new RegExp("^(" + r.join("|") + ")$"));
|
|
87
|
-
}));
|
|
88
|
-
const O = {}, P = {}, z = {};
|
|
89
|
-
v(t.allowedClasses, function(e, n) {
|
|
90
|
-
if (d && (x(d, n) || (d[n] = []), d[n].push("class")), O[n] = e, Array.isArray(e)) {
|
|
91
|
-
const r = [];
|
|
92
|
-
O[n] = [], z[n] = [], e.forEach(function(i) {
|
|
93
|
-
typeof i == "string" && i.indexOf("*") >= 0 ? r.push(D(i).replace(/\\\*/g, ".*")) : i instanceof RegExp ? z[n].push(i) : O[n].push(i);
|
|
94
|
-
}), r.length && (P[n] = new RegExp("^(" + r.join("|") + ")$"));
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
const I = {};
|
|
98
|
-
let N;
|
|
99
|
-
v(t.transformTags, function(e, n) {
|
|
100
|
-
let r;
|
|
101
|
-
typeof e == "function" ? r = e : typeof e == "string" && (r = C.simpleTransform(e)), n === "*" ? N = r : I[n] = r;
|
|
102
|
-
});
|
|
103
|
-
let p, u, A, R, T, q, _ = !1;
|
|
104
|
-
G();
|
|
105
|
-
const L = new J.Parser({
|
|
106
|
-
onopentag: function(e, n) {
|
|
107
|
-
if (t.enforceHtmlBoundary && e === "html" && G(), T) {
|
|
108
|
-
q++;
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
const r = new M(e, n);
|
|
112
|
-
u.push(r);
|
|
113
|
-
let i = !1;
|
|
114
|
-
const h = !!r.text;
|
|
115
|
-
let g;
|
|
116
|
-
if (x(I, e) && (g = I[e](e, n), r.attribs = n = g.attribs, g.text !== void 0 && (r.innerText = g.text), e !== g.tagName && (r.name = e = g.tagName, R[p] = g.tagName)), N && (g = N(e, n), r.attribs = n = g.attribs, e !== g.tagName && (r.name = e = g.tagName, R[p] = g.tagName)), (!H(e) || t.disallowedTagsMode === "recursiveEscape" && !re(A) || t.nestingLimit != null && p >= t.nestingLimit) && (i = !0, A[p] = !0, t.disallowedTagsMode === "discard" && oe.indexOf(e) !== -1 && (T = !0, q = 1), A[p] = !0), p++, i) {
|
|
117
|
-
if (t.disallowedTagsMode === "discard")
|
|
118
|
-
return;
|
|
119
|
-
m = l, l = "";
|
|
120
|
-
}
|
|
121
|
-
l += "<" + e, e === "script" && (t.allowedScriptHostnames || t.allowedScriptDomains) && (r.innerText = ""), (!d || x(d, e) || d["*"]) && v(n, function(c, a) {
|
|
122
|
-
if (!ie.test(a)) {
|
|
123
|
-
delete r.attribs[a];
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
if (c === "" && (t.nonBooleanAttributes.includes(a) || t.nonBooleanAttributes.includes("*"))) {
|
|
127
|
-
delete r.attribs[a];
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
let $ = !1;
|
|
131
|
-
if (!d || x(d, e) && d[e].indexOf(a) !== -1 || d["*"] && d["*"].indexOf(a) !== -1 || x(S, e) && S[e].test(a) || S["*"] && S["*"].test(a))
|
|
132
|
-
$ = !0;
|
|
133
|
-
else if (d && d[e]) {
|
|
134
|
-
for (const s of d[e])
|
|
135
|
-
if (K(s) && s.name && s.name === a) {
|
|
136
|
-
$ = !0;
|
|
137
|
-
let o = "";
|
|
138
|
-
if (s.multiple === !0) {
|
|
139
|
-
const k = c.split(" ");
|
|
140
|
-
for (const y of k)
|
|
141
|
-
s.values.indexOf(y) !== -1 && (o === "" ? o = y : o += " " + y);
|
|
142
|
-
} else s.values.indexOf(c) >= 0 && (o = c);
|
|
143
|
-
c = o;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
if ($) {
|
|
147
|
-
if (t.allowedSchemesAppliedToAttributes.indexOf(a) !== -1 && W(e, c)) {
|
|
148
|
-
delete r.attribs[a];
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
if (e === "script" && a === "src") {
|
|
152
|
-
let s = !0;
|
|
153
|
-
try {
|
|
154
|
-
const o = V(c);
|
|
155
|
-
if (t.allowedScriptHostnames || t.allowedScriptDomains) {
|
|
156
|
-
const k = (t.allowedScriptHostnames || []).find(function(b) {
|
|
157
|
-
return b === o.url.hostname;
|
|
158
|
-
}), y = (t.allowedScriptDomains || []).find(function(b) {
|
|
159
|
-
return o.url.hostname === b || o.url.hostname.endsWith(`.${b}`);
|
|
160
|
-
});
|
|
161
|
-
s = k || y;
|
|
162
|
-
}
|
|
163
|
-
} catch {
|
|
164
|
-
s = !1;
|
|
165
|
-
}
|
|
166
|
-
if (!s) {
|
|
167
|
-
delete r.attribs[a];
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
if (e === "iframe" && a === "src") {
|
|
172
|
-
let s = !0;
|
|
173
|
-
try {
|
|
174
|
-
const o = V(c);
|
|
175
|
-
if (o.isRelativeUrl)
|
|
176
|
-
s = x(t, "allowIframeRelativeUrls") ? t.allowIframeRelativeUrls : !t.allowedIframeHostnames && !t.allowedIframeDomains;
|
|
177
|
-
else if (t.allowedIframeHostnames || t.allowedIframeDomains) {
|
|
178
|
-
const k = (t.allowedIframeHostnames || []).find(function(b) {
|
|
179
|
-
return b === o.url.hostname;
|
|
180
|
-
}), y = (t.allowedIframeDomains || []).find(function(b) {
|
|
181
|
-
return o.url.hostname === b || o.url.hostname.endsWith(`.${b}`);
|
|
182
|
-
});
|
|
183
|
-
s = k || y;
|
|
184
|
-
}
|
|
185
|
-
} catch {
|
|
186
|
-
s = !1;
|
|
187
|
-
}
|
|
188
|
-
if (!s) {
|
|
189
|
-
delete r.attribs[a];
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
if (a === "srcset")
|
|
194
|
-
try {
|
|
195
|
-
let s = Q(c);
|
|
196
|
-
if (s.forEach(function(o) {
|
|
197
|
-
W("srcset", o.url) && (o.evil = !0);
|
|
198
|
-
}), s = U(s, function(o) {
|
|
199
|
-
return !o.evil;
|
|
200
|
-
}), s.length)
|
|
201
|
-
c = ne(U(s, function(o) {
|
|
202
|
-
return !o.evil;
|
|
203
|
-
})), r.attribs[a] = c;
|
|
204
|
-
else {
|
|
205
|
-
delete r.attribs[a];
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
} catch {
|
|
209
|
-
delete r.attribs[a];
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
if (a === "class") {
|
|
213
|
-
const s = O[e], o = O["*"], k = P[e], y = z[e], b = P["*"], X = [
|
|
214
|
-
k,
|
|
215
|
-
b
|
|
216
|
-
].concat(y).filter(function(fe) {
|
|
217
|
-
return fe;
|
|
218
|
-
});
|
|
219
|
-
if (s && o ? c = Z(c, B(s, o), X) : c = Z(c, s || o, X), !c.length) {
|
|
220
|
-
delete r.attribs[a];
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
if (a === "style") {
|
|
225
|
-
if (t.parseStyleAttributes)
|
|
226
|
-
try {
|
|
227
|
-
const s = j(e + " {" + c + "}"), o = le(s, t.allowedStyles);
|
|
228
|
-
if (c = ae(o), c.length === 0) {
|
|
229
|
-
delete r.attribs[a];
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
} catch {
|
|
233
|
-
delete r.attribs[a];
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
else if (t.allowedStyles)
|
|
237
|
-
throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");
|
|
238
|
-
}
|
|
239
|
-
l += " " + a, c && c.length && (l += '="' + E(c, !0) + '"');
|
|
240
|
-
} else
|
|
241
|
-
delete r.attribs[a];
|
|
242
|
-
}), t.selfClosing.indexOf(e) !== -1 ? l += " />" : (l += ">", r.innerText && !h && !t.textFilter && (l += E(r.innerText), _ = !0)), i && (l = m + E(l), m = "");
|
|
243
|
-
},
|
|
244
|
-
ontext: function(e) {
|
|
245
|
-
if (T)
|
|
246
|
-
return;
|
|
247
|
-
const n = u[u.length - 1];
|
|
248
|
-
let r;
|
|
249
|
-
if (n && (r = n.tag, e = n.innerText !== void 0 ? n.innerText : e), t.disallowedTagsMode === "discard" && (r === "script" || r === "style"))
|
|
250
|
-
l += e;
|
|
251
|
-
else {
|
|
252
|
-
const i = E(e, !1);
|
|
253
|
-
t.textFilter && !_ ? l += t.textFilter(i, r) : _ || (l += i);
|
|
254
|
-
}
|
|
255
|
-
if (u.length) {
|
|
256
|
-
const i = u[u.length - 1];
|
|
257
|
-
i.text += e;
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
onclosetag: function(e, n) {
|
|
261
|
-
if (T)
|
|
262
|
-
if (q--, !q)
|
|
263
|
-
T = !1;
|
|
264
|
-
else
|
|
265
|
-
return;
|
|
266
|
-
const r = u.pop();
|
|
267
|
-
if (!r)
|
|
268
|
-
return;
|
|
269
|
-
if (r.tag !== e) {
|
|
270
|
-
u.push(r);
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
T = t.enforceHtmlBoundary ? e === "html" : !1, p--;
|
|
274
|
-
const i = A[p];
|
|
275
|
-
if (i) {
|
|
276
|
-
if (delete A[p], t.disallowedTagsMode === "discard") {
|
|
277
|
-
r.updateParentNodeText();
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
m = l, l = "";
|
|
281
|
-
}
|
|
282
|
-
if (R[p] && (e = R[p], delete R[p]), t.exclusiveFilter && t.exclusiveFilter(r)) {
|
|
283
|
-
l = l.substr(0, r.tagPosition);
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
if (r.updateParentNodeMediaChildren(), r.updateParentNodeText(), // Already output />
|
|
287
|
-
t.selfClosing.indexOf(e) !== -1 || // Escaped tag, closing tag is implied
|
|
288
|
-
n && !H(e) && ["escape", "recursiveEscape"].indexOf(t.disallowedTagsMode) >= 0) {
|
|
289
|
-
i && (l = m, m = "");
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
l += "</" + e + ">", i && (l = m + E(l), m = ""), _ = !1;
|
|
293
|
-
}
|
|
294
|
-
}, t.parser);
|
|
295
|
-
return L.write(f), L.end(), l;
|
|
296
|
-
function G() {
|
|
297
|
-
l = "", p = 0, u = [], A = {}, R = {}, T = !1, q = 0;
|
|
298
|
-
}
|
|
299
|
-
function E(e, n) {
|
|
300
|
-
return typeof e != "string" && (e = e + ""), t.parser.decodeEntities && (e = e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), n && (e = e.replace(/"/g, """))), e = e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&").replace(/</g, "<").replace(/>/g, ">"), n && (e = e.replace(/"/g, """)), e;
|
|
301
|
-
}
|
|
302
|
-
function W(e, n) {
|
|
303
|
-
for (n = n.replace(/[\x00-\x20]+/g, ""); ; ) {
|
|
304
|
-
const h = n.indexOf("<!--");
|
|
305
|
-
if (h === -1)
|
|
306
|
-
break;
|
|
307
|
-
const g = n.indexOf("-->", h + 4);
|
|
308
|
-
if (g === -1)
|
|
309
|
-
break;
|
|
310
|
-
n = n.substring(0, h) + n.substring(g + 3);
|
|
311
|
-
}
|
|
312
|
-
const r = n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);
|
|
313
|
-
if (!r)
|
|
314
|
-
return n.match(/^[/\\]{2}/) ? !t.allowProtocolRelative : !1;
|
|
315
|
-
const i = r[1].toLowerCase();
|
|
316
|
-
return x(t.allowedSchemesByTag, e) ? t.allowedSchemesByTag[e].indexOf(i) === -1 : !t.allowedSchemes || t.allowedSchemes.indexOf(i) === -1;
|
|
317
|
-
}
|
|
318
|
-
function V(e) {
|
|
319
|
-
if (e = e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), e.startsWith("relative:"))
|
|
320
|
-
throw new Error("relative: exploit attempt");
|
|
321
|
-
let n = "relative://relative-site";
|
|
322
|
-
for (let h = 0; h < 100; h++)
|
|
323
|
-
n += `/${h}`;
|
|
324
|
-
const r = new URL(e, n);
|
|
325
|
-
return {
|
|
326
|
-
isRelativeUrl: r && r.hostname === "relative-site" && r.protocol === "relative:",
|
|
327
|
-
url: r
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
function le(e, n) {
|
|
331
|
-
if (!n)
|
|
332
|
-
return e;
|
|
333
|
-
const r = e.nodes[0];
|
|
334
|
-
let i;
|
|
335
|
-
return n[r.selector] && n["*"] ? i = B(
|
|
336
|
-
n[r.selector],
|
|
337
|
-
n["*"]
|
|
338
|
-
) : i = n[r.selector] || n["*"], i && (e.nodes[0].nodes = r.nodes.reduce(ce(i), [])), e;
|
|
339
|
-
}
|
|
340
|
-
function ae(e) {
|
|
341
|
-
return e.nodes[0].nodes.reduce(function(n, r) {
|
|
342
|
-
return n.push(
|
|
343
|
-
`${r.prop}:${r.value}${r.important ? " !important" : ""}`
|
|
344
|
-
), n;
|
|
345
|
-
}, []).join(";");
|
|
346
|
-
}
|
|
347
|
-
function ce(e) {
|
|
348
|
-
return function(n, r) {
|
|
349
|
-
return x(e, r.prop) && e[r.prop].some(function(h) {
|
|
350
|
-
return h.test(r.value);
|
|
351
|
-
}) && n.push(r), n;
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
function Z(e, n, r) {
|
|
355
|
-
return n ? (e = e.split(/\s+/), e.filter(function(i) {
|
|
356
|
-
return n.indexOf(i) !== -1 || r.some(function(h) {
|
|
357
|
-
return h.test(i);
|
|
358
|
-
});
|
|
359
|
-
}).join(" ")) : e;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
const se = {
|
|
363
|
-
decodeEntities: !0
|
|
364
|
-
};
|
|
365
|
-
return C.defaults = {
|
|
366
|
-
allowedTags: [
|
|
367
|
-
// Sections derived from MDN element categories and limited to the more
|
|
368
|
-
// benign categories.
|
|
369
|
-
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element
|
|
370
|
-
// Content sectioning
|
|
371
|
-
"address",
|
|
372
|
-
"article",
|
|
373
|
-
"aside",
|
|
374
|
-
"footer",
|
|
375
|
-
"header",
|
|
376
|
-
"h1",
|
|
377
|
-
"h2",
|
|
378
|
-
"h3",
|
|
379
|
-
"h4",
|
|
380
|
-
"h5",
|
|
381
|
-
"h6",
|
|
382
|
-
"hgroup",
|
|
383
|
-
"main",
|
|
384
|
-
"nav",
|
|
385
|
-
"section",
|
|
386
|
-
// Text content
|
|
387
|
-
"blockquote",
|
|
388
|
-
"dd",
|
|
389
|
-
"div",
|
|
390
|
-
"dl",
|
|
391
|
-
"dt",
|
|
392
|
-
"figcaption",
|
|
393
|
-
"figure",
|
|
394
|
-
"hr",
|
|
395
|
-
"li",
|
|
396
|
-
"main",
|
|
397
|
-
"ol",
|
|
398
|
-
"p",
|
|
399
|
-
"pre",
|
|
400
|
-
"ul",
|
|
401
|
-
// Inline text semantics
|
|
402
|
-
"a",
|
|
403
|
-
"abbr",
|
|
404
|
-
"b",
|
|
405
|
-
"bdi",
|
|
406
|
-
"bdo",
|
|
407
|
-
"br",
|
|
408
|
-
"cite",
|
|
409
|
-
"code",
|
|
410
|
-
"data",
|
|
411
|
-
"dfn",
|
|
412
|
-
"em",
|
|
413
|
-
"i",
|
|
414
|
-
"kbd",
|
|
415
|
-
"mark",
|
|
416
|
-
"q",
|
|
417
|
-
"rb",
|
|
418
|
-
"rp",
|
|
419
|
-
"rt",
|
|
420
|
-
"rtc",
|
|
421
|
-
"ruby",
|
|
422
|
-
"s",
|
|
423
|
-
"samp",
|
|
424
|
-
"small",
|
|
425
|
-
"span",
|
|
426
|
-
"strong",
|
|
427
|
-
"sub",
|
|
428
|
-
"sup",
|
|
429
|
-
"time",
|
|
430
|
-
"u",
|
|
431
|
-
"var",
|
|
432
|
-
"wbr",
|
|
433
|
-
// Table content
|
|
434
|
-
"caption",
|
|
435
|
-
"col",
|
|
436
|
-
"colgroup",
|
|
437
|
-
"table",
|
|
438
|
-
"tbody",
|
|
439
|
-
"td",
|
|
440
|
-
"tfoot",
|
|
441
|
-
"th",
|
|
442
|
-
"thead",
|
|
443
|
-
"tr"
|
|
444
|
-
],
|
|
445
|
-
// Tags that cannot be boolean
|
|
446
|
-
nonBooleanAttributes: [
|
|
447
|
-
"abbr",
|
|
448
|
-
"accept",
|
|
449
|
-
"accept-charset",
|
|
450
|
-
"accesskey",
|
|
451
|
-
"action",
|
|
452
|
-
"allow",
|
|
453
|
-
"alt",
|
|
454
|
-
"as",
|
|
455
|
-
"autocapitalize",
|
|
456
|
-
"autocomplete",
|
|
457
|
-
"blocking",
|
|
458
|
-
"charset",
|
|
459
|
-
"cite",
|
|
460
|
-
"class",
|
|
461
|
-
"color",
|
|
462
|
-
"cols",
|
|
463
|
-
"colspan",
|
|
464
|
-
"content",
|
|
465
|
-
"contenteditable",
|
|
466
|
-
"coords",
|
|
467
|
-
"crossorigin",
|
|
468
|
-
"data",
|
|
469
|
-
"datetime",
|
|
470
|
-
"decoding",
|
|
471
|
-
"dir",
|
|
472
|
-
"dirname",
|
|
473
|
-
"download",
|
|
474
|
-
"draggable",
|
|
475
|
-
"enctype",
|
|
476
|
-
"enterkeyhint",
|
|
477
|
-
"fetchpriority",
|
|
478
|
-
"for",
|
|
479
|
-
"form",
|
|
480
|
-
"formaction",
|
|
481
|
-
"formenctype",
|
|
482
|
-
"formmethod",
|
|
483
|
-
"formtarget",
|
|
484
|
-
"headers",
|
|
485
|
-
"height",
|
|
486
|
-
"hidden",
|
|
487
|
-
"high",
|
|
488
|
-
"href",
|
|
489
|
-
"hreflang",
|
|
490
|
-
"http-equiv",
|
|
491
|
-
"id",
|
|
492
|
-
"imagesizes",
|
|
493
|
-
"imagesrcset",
|
|
494
|
-
"inputmode",
|
|
495
|
-
"integrity",
|
|
496
|
-
"is",
|
|
497
|
-
"itemid",
|
|
498
|
-
"itemprop",
|
|
499
|
-
"itemref",
|
|
500
|
-
"itemtype",
|
|
501
|
-
"kind",
|
|
502
|
-
"label",
|
|
503
|
-
"lang",
|
|
504
|
-
"list",
|
|
505
|
-
"loading",
|
|
506
|
-
"low",
|
|
507
|
-
"max",
|
|
508
|
-
"maxlength",
|
|
509
|
-
"media",
|
|
510
|
-
"method",
|
|
511
|
-
"min",
|
|
512
|
-
"minlength",
|
|
513
|
-
"name",
|
|
514
|
-
"nonce",
|
|
515
|
-
"optimum",
|
|
516
|
-
"pattern",
|
|
517
|
-
"ping",
|
|
518
|
-
"placeholder",
|
|
519
|
-
"popover",
|
|
520
|
-
"popovertarget",
|
|
521
|
-
"popovertargetaction",
|
|
522
|
-
"poster",
|
|
523
|
-
"preload",
|
|
524
|
-
"referrerpolicy",
|
|
525
|
-
"rel",
|
|
526
|
-
"rows",
|
|
527
|
-
"rowspan",
|
|
528
|
-
"sandbox",
|
|
529
|
-
"scope",
|
|
530
|
-
"shape",
|
|
531
|
-
"size",
|
|
532
|
-
"sizes",
|
|
533
|
-
"slot",
|
|
534
|
-
"span",
|
|
535
|
-
"spellcheck",
|
|
536
|
-
"src",
|
|
537
|
-
"srcdoc",
|
|
538
|
-
"srclang",
|
|
539
|
-
"srcset",
|
|
540
|
-
"start",
|
|
541
|
-
"step",
|
|
542
|
-
"style",
|
|
543
|
-
"tabindex",
|
|
544
|
-
"target",
|
|
545
|
-
"title",
|
|
546
|
-
"translate",
|
|
547
|
-
"type",
|
|
548
|
-
"usemap",
|
|
549
|
-
"value",
|
|
550
|
-
"width",
|
|
551
|
-
"wrap",
|
|
552
|
-
// Event handlers
|
|
553
|
-
"onauxclick",
|
|
554
|
-
"onafterprint",
|
|
555
|
-
"onbeforematch",
|
|
556
|
-
"onbeforeprint",
|
|
557
|
-
"onbeforeunload",
|
|
558
|
-
"onbeforetoggle",
|
|
559
|
-
"onblur",
|
|
560
|
-
"oncancel",
|
|
561
|
-
"oncanplay",
|
|
562
|
-
"oncanplaythrough",
|
|
563
|
-
"onchange",
|
|
564
|
-
"onclick",
|
|
565
|
-
"onclose",
|
|
566
|
-
"oncontextlost",
|
|
567
|
-
"oncontextmenu",
|
|
568
|
-
"oncontextrestored",
|
|
569
|
-
"oncopy",
|
|
570
|
-
"oncuechange",
|
|
571
|
-
"oncut",
|
|
572
|
-
"ondblclick",
|
|
573
|
-
"ondrag",
|
|
574
|
-
"ondragend",
|
|
575
|
-
"ondragenter",
|
|
576
|
-
"ondragleave",
|
|
577
|
-
"ondragover",
|
|
578
|
-
"ondragstart",
|
|
579
|
-
"ondrop",
|
|
580
|
-
"ondurationchange",
|
|
581
|
-
"onemptied",
|
|
582
|
-
"onended",
|
|
583
|
-
"onerror",
|
|
584
|
-
"onfocus",
|
|
585
|
-
"onformdata",
|
|
586
|
-
"onhashchange",
|
|
587
|
-
"oninput",
|
|
588
|
-
"oninvalid",
|
|
589
|
-
"onkeydown",
|
|
590
|
-
"onkeypress",
|
|
591
|
-
"onkeyup",
|
|
592
|
-
"onlanguagechange",
|
|
593
|
-
"onload",
|
|
594
|
-
"onloadeddata",
|
|
595
|
-
"onloadedmetadata",
|
|
596
|
-
"onloadstart",
|
|
597
|
-
"onmessage",
|
|
598
|
-
"onmessageerror",
|
|
599
|
-
"onmousedown",
|
|
600
|
-
"onmouseenter",
|
|
601
|
-
"onmouseleave",
|
|
602
|
-
"onmousemove",
|
|
603
|
-
"onmouseout",
|
|
604
|
-
"onmouseover",
|
|
605
|
-
"onmouseup",
|
|
606
|
-
"onoffline",
|
|
607
|
-
"ononline",
|
|
608
|
-
"onpagehide",
|
|
609
|
-
"onpageshow",
|
|
610
|
-
"onpaste",
|
|
611
|
-
"onpause",
|
|
612
|
-
"onplay",
|
|
613
|
-
"onplaying",
|
|
614
|
-
"onpopstate",
|
|
615
|
-
"onprogress",
|
|
616
|
-
"onratechange",
|
|
617
|
-
"onreset",
|
|
618
|
-
"onresize",
|
|
619
|
-
"onrejectionhandled",
|
|
620
|
-
"onscroll",
|
|
621
|
-
"onscrollend",
|
|
622
|
-
"onsecuritypolicyviolation",
|
|
623
|
-
"onseeked",
|
|
624
|
-
"onseeking",
|
|
625
|
-
"onselect",
|
|
626
|
-
"onslotchange",
|
|
627
|
-
"onstalled",
|
|
628
|
-
"onstorage",
|
|
629
|
-
"onsubmit",
|
|
630
|
-
"onsuspend",
|
|
631
|
-
"ontimeupdate",
|
|
632
|
-
"ontoggle",
|
|
633
|
-
"onunhandledrejection",
|
|
634
|
-
"onunload",
|
|
635
|
-
"onvolumechange",
|
|
636
|
-
"onwaiting",
|
|
637
|
-
"onwheel"
|
|
638
|
-
],
|
|
639
|
-
disallowedTagsMode: "discard",
|
|
640
|
-
allowedAttributes: {
|
|
641
|
-
a: ["href", "name", "target"],
|
|
642
|
-
// We don't currently allow img itself by default, but
|
|
643
|
-
// these attributes would make sense if we did.
|
|
644
|
-
img: ["src", "srcset", "alt", "title", "width", "height", "loading"]
|
|
645
|
-
},
|
|
646
|
-
// Lots of these won't come up by default because we don't allow them
|
|
647
|
-
selfClosing: ["img", "br", "hr", "area", "base", "basefont", "input", "link", "meta"],
|
|
648
|
-
// URL schemes we permit
|
|
649
|
-
allowedSchemes: ["http", "https", "ftp", "mailto", "tel"],
|
|
650
|
-
allowedSchemesByTag: {},
|
|
651
|
-
allowedSchemesAppliedToAttributes: ["href", "src", "cite"],
|
|
652
|
-
allowProtocolRelative: !0,
|
|
653
|
-
enforceHtmlBoundary: !1,
|
|
654
|
-
parseStyleAttributes: !0
|
|
655
|
-
}, C.simpleTransform = function(f, t, w) {
|
|
656
|
-
return w = w === void 0 ? !0 : w, t = t || {}, function(l, m) {
|
|
657
|
-
let M;
|
|
658
|
-
if (w)
|
|
659
|
-
for (M in t)
|
|
660
|
-
m[M] = t[M];
|
|
661
|
-
else
|
|
662
|
-
m = t;
|
|
663
|
-
return {
|
|
664
|
-
tagName: f,
|
|
665
|
-
attribs: m
|
|
666
|
-
};
|
|
667
|
-
};
|
|
668
|
-
}, F;
|
|
669
|
-
}
|
|
670
|
-
export {
|
|
671
|
-
Se as __require
|
|
672
|
-
};
|