@rankingcoach/vanguard 1.3.0 → 1.4.1
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/icons/Icon-tools-active-1.svg +3 -0
- package/dist/icons/Icon-tools-active.svg +3 -0
- 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-AppBar2.js +1 -1
- 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-ControlledValuePlugin.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 +7 -7
- 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-DefaultValuePlugin.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-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-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-HyperlinkPlugin.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-Icon-tools-active-1.svg.js +4 -0
- package/dist/index-Icon-tools-active.svg.js +4 -0
- 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 +48 -43
- package/dist/index-InputBase2.js +1 -1
- package/dist/index-InputLabel.js +1 -1
- package/dist/index-InputRangeField.js +1 -1
- package/dist/index-KeywordNode.js +1 -1
- package/dist/index-KeywordPlugin.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 +10 -10
- 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-OnChangeContentPlugin.js +1 -1
- package/dist/index-OnFocusOnBlurPlugin.js +1 -1
- package/dist/index-OutlinedInput.js +1 -1
- package/dist/index-Paper.js +1 -1
- package/dist/index-Parser2.js +314 -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-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 +4 -4
- package/dist/index-_virtual21.js +2 -2
- package/dist/index-_virtual22.js +2 -2
- package/dist/index-_virtual23.js +2 -3
- package/dist/index-_virtual24.js +2 -2
- package/dist/index-_virtual25.js +2 -2
- package/dist/index-_virtual26.js +2 -2
- package/dist/index-_virtual27.js +2 -2
- package/dist/index-_virtual28.js +2 -2
- package/dist/index-_virtual30.js +2 -2
- package/dist/index-_virtual31.js +2 -2
- package/dist/index-_virtual32.js +3 -2
- 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-_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-_virtual66.js +2 -2
- package/dist/index-_virtual67.js +2 -4
- package/dist/index-_virtual68.js +4 -2
- package/dist/index-_virtual74.js +1 -1
- package/dist/index-_virtual76.js +2 -2
- 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-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-keycode.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-mpd-parser.es.js +1 -1
- 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-use-dynamic-import.js +2 -0
- package/dist/index-useHyperlinkEditor.js +1 -1
- package/dist/index-useLexicalToolbar.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/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/Icon-tools-active-1-B-9tOuX0.mjs +4 -0
- package/dist-wordpress/Icon-tools-active-t9IjG2pg.mjs +4 -0
- package/dist-wordpress/index.js +23653 -22245
- 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,343 +0,0 @@
|
|
|
1
|
-
import { __require as L } from "./index-container.js";
|
|
2
|
-
import { __require as D } from "./index-document3.js";
|
|
3
|
-
import { __require as A } from "./index-map-generator.js";
|
|
4
|
-
import { __require as V } from "./index-parse3.js";
|
|
5
|
-
import { __require as N } from "./index-result.js";
|
|
6
|
-
import { __require as k } from "./index-root.js";
|
|
7
|
-
import { __require as T } from "./index-stringify.js";
|
|
8
|
-
import { __require as j } from "./index-symbols.js";
|
|
9
|
-
import { __require as z } from "./index-warn-once.js";
|
|
10
|
-
var g, v;
|
|
11
|
-
function J() {
|
|
12
|
-
if (v) return g;
|
|
13
|
-
v = 1;
|
|
14
|
-
let E = L(), x = D(), S = A(), R = V(), m = N(), P = k(), _ = T(), { isClean: l, my: O } = j(), q = z();
|
|
15
|
-
const C = {
|
|
16
|
-
atrule: "AtRule",
|
|
17
|
-
comment: "Comment",
|
|
18
|
-
decl: "Declaration",
|
|
19
|
-
document: "Document",
|
|
20
|
-
root: "Root",
|
|
21
|
-
rule: "Rule"
|
|
22
|
-
}, I = {
|
|
23
|
-
AtRule: !0,
|
|
24
|
-
AtRuleExit: !0,
|
|
25
|
-
Comment: !0,
|
|
26
|
-
CommentExit: !0,
|
|
27
|
-
Declaration: !0,
|
|
28
|
-
DeclarationExit: !0,
|
|
29
|
-
Document: !0,
|
|
30
|
-
DocumentExit: !0,
|
|
31
|
-
Once: !0,
|
|
32
|
-
OnceExit: !0,
|
|
33
|
-
postcssPlugin: !0,
|
|
34
|
-
prepare: !0,
|
|
35
|
-
Root: !0,
|
|
36
|
-
RootExit: !0,
|
|
37
|
-
Rule: !0,
|
|
38
|
-
RuleExit: !0
|
|
39
|
-
}, b = {
|
|
40
|
-
Once: !0,
|
|
41
|
-
postcssPlugin: !0,
|
|
42
|
-
prepare: !0
|
|
43
|
-
}, a = 0;
|
|
44
|
-
function f(n) {
|
|
45
|
-
return typeof n == "object" && typeof n.then == "function";
|
|
46
|
-
}
|
|
47
|
-
function d(n) {
|
|
48
|
-
let e = !1, t = C[n.type];
|
|
49
|
-
return n.type === "decl" ? e = n.prop.toLowerCase() : n.type === "atrule" && (e = n.name.toLowerCase()), e && n.append ? [
|
|
50
|
-
t,
|
|
51
|
-
t + "-" + e,
|
|
52
|
-
a,
|
|
53
|
-
t + "Exit",
|
|
54
|
-
t + "Exit-" + e
|
|
55
|
-
] : e ? [t, t + "-" + e, t + "Exit", t + "Exit-" + e] : n.append ? [t, a, t + "Exit"] : [t, t + "Exit"];
|
|
56
|
-
}
|
|
57
|
-
function w(n) {
|
|
58
|
-
let e;
|
|
59
|
-
return n.type === "document" ? e = ["Document", a, "DocumentExit"] : n.type === "root" ? e = ["Root", a, "RootExit"] : e = d(n), {
|
|
60
|
-
eventIndex: 0,
|
|
61
|
-
events: e,
|
|
62
|
-
iterator: 0,
|
|
63
|
-
node: n,
|
|
64
|
-
visitorIndex: 0,
|
|
65
|
-
visitors: []
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function c(n) {
|
|
69
|
-
return n[l] = !1, n.nodes && n.nodes.forEach((e) => c(e)), n;
|
|
70
|
-
}
|
|
71
|
-
let y = {};
|
|
72
|
-
class h {
|
|
73
|
-
get content() {
|
|
74
|
-
return this.stringify().content;
|
|
75
|
-
}
|
|
76
|
-
get css() {
|
|
77
|
-
return this.stringify().css;
|
|
78
|
-
}
|
|
79
|
-
get map() {
|
|
80
|
-
return this.stringify().map;
|
|
81
|
-
}
|
|
82
|
-
get messages() {
|
|
83
|
-
return this.sync().messages;
|
|
84
|
-
}
|
|
85
|
-
get opts() {
|
|
86
|
-
return this.result.opts;
|
|
87
|
-
}
|
|
88
|
-
get processor() {
|
|
89
|
-
return this.result.processor;
|
|
90
|
-
}
|
|
91
|
-
get root() {
|
|
92
|
-
return this.sync().root;
|
|
93
|
-
}
|
|
94
|
-
get [Symbol.toStringTag]() {
|
|
95
|
-
return "LazyResult";
|
|
96
|
-
}
|
|
97
|
-
constructor(e, t, r) {
|
|
98
|
-
this.stringified = !1, this.processed = !1;
|
|
99
|
-
let i;
|
|
100
|
-
if (typeof t == "object" && t !== null && (t.type === "root" || t.type === "document"))
|
|
101
|
-
i = c(t);
|
|
102
|
-
else if (t instanceof h || t instanceof m)
|
|
103
|
-
i = c(t.root), t.map && (typeof r.map > "u" && (r.map = {}), r.map.inline || (r.map.inline = !1), r.map.prev = t.map);
|
|
104
|
-
else {
|
|
105
|
-
let s = R;
|
|
106
|
-
r.syntax && (s = r.syntax.parse), r.parser && (s = r.parser), s.parse && (s = s.parse);
|
|
107
|
-
try {
|
|
108
|
-
i = s(t, r);
|
|
109
|
-
} catch (o) {
|
|
110
|
-
this.processed = !0, this.error = o;
|
|
111
|
-
}
|
|
112
|
-
i && !i[O] && E.rebuild(i);
|
|
113
|
-
}
|
|
114
|
-
this.result = new m(e, i, r), this.helpers = { ...y, postcss: y, result: this.result }, this.plugins = this.processor.plugins.map((s) => typeof s == "object" && s.prepare ? { ...s, ...s.prepare(this.result) } : s);
|
|
115
|
-
}
|
|
116
|
-
async() {
|
|
117
|
-
return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
|
|
118
|
-
}
|
|
119
|
-
catch(e) {
|
|
120
|
-
return this.async().catch(e);
|
|
121
|
-
}
|
|
122
|
-
finally(e) {
|
|
123
|
-
return this.async().then(e, e);
|
|
124
|
-
}
|
|
125
|
-
getAsyncError() {
|
|
126
|
-
throw new Error("Use process(css).then(cb) to work with async plugins");
|
|
127
|
-
}
|
|
128
|
-
handleError(e, t) {
|
|
129
|
-
let r = this.result.lastPlugin;
|
|
130
|
-
try {
|
|
131
|
-
if (t && t.addToError(e), this.error = e, e.name === "CssSyntaxError" && !e.plugin)
|
|
132
|
-
e.plugin = r.postcssPlugin, e.setMessage();
|
|
133
|
-
else if (r.postcssVersion && process.env.NODE_ENV !== "production") {
|
|
134
|
-
let i = r.postcssPlugin, s = r.postcssVersion, o = this.result.processor.version, u = s.split("."), p = o.split(".");
|
|
135
|
-
u[0] !== p[0] || parseInt(u[1]) > parseInt(p[1]);
|
|
136
|
-
}
|
|
137
|
-
} catch {
|
|
138
|
-
}
|
|
139
|
-
return e;
|
|
140
|
-
}
|
|
141
|
-
prepareVisitors() {
|
|
142
|
-
this.listeners = {};
|
|
143
|
-
let e = (t, r, i) => {
|
|
144
|
-
this.listeners[r] || (this.listeners[r] = []), this.listeners[r].push([t, i]);
|
|
145
|
-
};
|
|
146
|
-
for (let t of this.plugins)
|
|
147
|
-
if (typeof t == "object")
|
|
148
|
-
for (let r in t) {
|
|
149
|
-
if (!I[r] && /^[A-Z]/.test(r))
|
|
150
|
-
throw new Error(
|
|
151
|
-
`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`
|
|
152
|
-
);
|
|
153
|
-
if (!b[r])
|
|
154
|
-
if (typeof t[r] == "object")
|
|
155
|
-
for (let i in t[r])
|
|
156
|
-
i === "*" ? e(t, r, t[r][i]) : e(
|
|
157
|
-
t,
|
|
158
|
-
r + "-" + i.toLowerCase(),
|
|
159
|
-
t[r][i]
|
|
160
|
-
);
|
|
161
|
-
else typeof t[r] == "function" && e(t, r, t[r]);
|
|
162
|
-
}
|
|
163
|
-
this.hasListener = Object.keys(this.listeners).length > 0;
|
|
164
|
-
}
|
|
165
|
-
async runAsync() {
|
|
166
|
-
this.plugin = 0;
|
|
167
|
-
for (let e = 0; e < this.plugins.length; e++) {
|
|
168
|
-
let t = this.plugins[e], r = this.runOnRoot(t);
|
|
169
|
-
if (f(r))
|
|
170
|
-
try {
|
|
171
|
-
await r;
|
|
172
|
-
} catch (i) {
|
|
173
|
-
throw this.handleError(i);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
if (this.prepareVisitors(), this.hasListener) {
|
|
177
|
-
let e = this.result.root;
|
|
178
|
-
for (; !e[l]; ) {
|
|
179
|
-
e[l] = !0;
|
|
180
|
-
let t = [w(e)];
|
|
181
|
-
for (; t.length > 0; ) {
|
|
182
|
-
let r = this.visitTick(t);
|
|
183
|
-
if (f(r))
|
|
184
|
-
try {
|
|
185
|
-
await r;
|
|
186
|
-
} catch (i) {
|
|
187
|
-
let s = t[t.length - 1].node;
|
|
188
|
-
throw this.handleError(i, s);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
if (this.listeners.OnceExit)
|
|
193
|
-
for (let [t, r] of this.listeners.OnceExit) {
|
|
194
|
-
this.result.lastPlugin = t;
|
|
195
|
-
try {
|
|
196
|
-
if (e.type === "document") {
|
|
197
|
-
let i = e.nodes.map(
|
|
198
|
-
(s) => r(s, this.helpers)
|
|
199
|
-
);
|
|
200
|
-
await Promise.all(i);
|
|
201
|
-
} else
|
|
202
|
-
await r(e, this.helpers);
|
|
203
|
-
} catch (i) {
|
|
204
|
-
throw this.handleError(i);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return this.processed = !0, this.stringify();
|
|
209
|
-
}
|
|
210
|
-
runOnRoot(e) {
|
|
211
|
-
this.result.lastPlugin = e;
|
|
212
|
-
try {
|
|
213
|
-
if (typeof e == "object" && e.Once) {
|
|
214
|
-
if (this.result.root.type === "document") {
|
|
215
|
-
let t = this.result.root.nodes.map(
|
|
216
|
-
(r) => e.Once(r, this.helpers)
|
|
217
|
-
);
|
|
218
|
-
return f(t[0]) ? Promise.all(t) : t;
|
|
219
|
-
}
|
|
220
|
-
return e.Once(this.result.root, this.helpers);
|
|
221
|
-
} else if (typeof e == "function")
|
|
222
|
-
return e(this.result.root, this.result);
|
|
223
|
-
} catch (t) {
|
|
224
|
-
throw this.handleError(t);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
stringify() {
|
|
228
|
-
if (this.error) throw this.error;
|
|
229
|
-
if (this.stringified) return this.result;
|
|
230
|
-
this.stringified = !0, this.sync();
|
|
231
|
-
let e = this.result.opts, t = _;
|
|
232
|
-
e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
|
|
233
|
-
let i = new S(t, this.result.root, this.result.opts).generate();
|
|
234
|
-
return this.result.css = i[0], this.result.map = i[1], this.result;
|
|
235
|
-
}
|
|
236
|
-
sync() {
|
|
237
|
-
if (this.error) throw this.error;
|
|
238
|
-
if (this.processed) return this.result;
|
|
239
|
-
if (this.processed = !0, this.processing)
|
|
240
|
-
throw this.getAsyncError();
|
|
241
|
-
for (let e of this.plugins) {
|
|
242
|
-
let t = this.runOnRoot(e);
|
|
243
|
-
if (f(t))
|
|
244
|
-
throw this.getAsyncError();
|
|
245
|
-
}
|
|
246
|
-
if (this.prepareVisitors(), this.hasListener) {
|
|
247
|
-
let e = this.result.root;
|
|
248
|
-
for (; !e[l]; )
|
|
249
|
-
e[l] = !0, this.walkSync(e);
|
|
250
|
-
if (this.listeners.OnceExit)
|
|
251
|
-
if (e.type === "document")
|
|
252
|
-
for (let t of e.nodes)
|
|
253
|
-
this.visitSync(this.listeners.OnceExit, t);
|
|
254
|
-
else
|
|
255
|
-
this.visitSync(this.listeners.OnceExit, e);
|
|
256
|
-
}
|
|
257
|
-
return this.result;
|
|
258
|
-
}
|
|
259
|
-
then(e, t) {
|
|
260
|
-
return process.env.NODE_ENV !== "production" && ("from" in this.opts || q(
|
|
261
|
-
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
262
|
-
)), this.async().then(e, t);
|
|
263
|
-
}
|
|
264
|
-
toString() {
|
|
265
|
-
return this.css;
|
|
266
|
-
}
|
|
267
|
-
visitSync(e, t) {
|
|
268
|
-
for (let [r, i] of e) {
|
|
269
|
-
this.result.lastPlugin = r;
|
|
270
|
-
let s;
|
|
271
|
-
try {
|
|
272
|
-
s = i(t, this.helpers);
|
|
273
|
-
} catch (o) {
|
|
274
|
-
throw this.handleError(o, t.proxyOf);
|
|
275
|
-
}
|
|
276
|
-
if (t.type !== "root" && t.type !== "document" && !t.parent)
|
|
277
|
-
return !0;
|
|
278
|
-
if (f(s))
|
|
279
|
-
throw this.getAsyncError();
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
visitTick(e) {
|
|
283
|
-
let t = e[e.length - 1], { node: r, visitors: i } = t;
|
|
284
|
-
if (r.type !== "root" && r.type !== "document" && !r.parent) {
|
|
285
|
-
e.pop();
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
if (i.length > 0 && t.visitorIndex < i.length) {
|
|
289
|
-
let [o, u] = i[t.visitorIndex];
|
|
290
|
-
t.visitorIndex += 1, t.visitorIndex === i.length && (t.visitors = [], t.visitorIndex = 0), this.result.lastPlugin = o;
|
|
291
|
-
try {
|
|
292
|
-
return u(r.toProxy(), this.helpers);
|
|
293
|
-
} catch (p) {
|
|
294
|
-
throw this.handleError(p, r);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
if (t.iterator !== 0) {
|
|
298
|
-
let o = t.iterator, u;
|
|
299
|
-
for (; u = r.nodes[r.indexes[o]]; )
|
|
300
|
-
if (r.indexes[o] += 1, !u[l]) {
|
|
301
|
-
u[l] = !0, e.push(w(u));
|
|
302
|
-
return;
|
|
303
|
-
}
|
|
304
|
-
t.iterator = 0, delete r.indexes[o];
|
|
305
|
-
}
|
|
306
|
-
let s = t.events;
|
|
307
|
-
for (; t.eventIndex < s.length; ) {
|
|
308
|
-
let o = s[t.eventIndex];
|
|
309
|
-
if (t.eventIndex += 1, o === a) {
|
|
310
|
-
r.nodes && r.nodes.length && (r[l] = !0, t.iterator = r.getIterator());
|
|
311
|
-
return;
|
|
312
|
-
} else if (this.listeners[o]) {
|
|
313
|
-
t.visitors = this.listeners[o];
|
|
314
|
-
return;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
e.pop();
|
|
318
|
-
}
|
|
319
|
-
walkSync(e) {
|
|
320
|
-
e[l] = !0;
|
|
321
|
-
let t = d(e);
|
|
322
|
-
for (let r of t)
|
|
323
|
-
if (r === a)
|
|
324
|
-
e.nodes && e.each((i) => {
|
|
325
|
-
i[l] || this.walkSync(i);
|
|
326
|
-
});
|
|
327
|
-
else {
|
|
328
|
-
let i = this.listeners[r];
|
|
329
|
-
if (i && this.visitSync(i, e.toProxy()))
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
warnings() {
|
|
334
|
-
return this.sync().warnings();
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
return h.registerPostcss = (n) => {
|
|
338
|
-
y = n;
|
|
339
|
-
}, g = h, h.default = h, P.registerLazyResult(h), x.registerLazyResult(h), g;
|
|
340
|
-
}
|
|
341
|
-
export {
|
|
342
|
-
J as __require
|
|
343
|
-
};
|
package/dist/index-legacy.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { __exports as i } from "./index-legacy2.js";
|
|
2
|
-
import { __require as m } from "./index-lib.js";
|
|
3
|
-
import { __require as E } from "./index-querying.js";
|
|
4
|
-
var g;
|
|
5
|
-
function h() {
|
|
6
|
-
if (g) return i;
|
|
7
|
-
g = 1, Object.defineProperty(i, "__esModule", { value: !0 }), i.testElement = p, i.getElements = _, i.getElementById = v, i.getElementsByTagName = d, i.getElementsByClassName = l, i.getElementsByTagType = T;
|
|
8
|
-
var u = /* @__PURE__ */ m(), f = /* @__PURE__ */ E(), o = {
|
|
9
|
-
tag_name: function(e) {
|
|
10
|
-
return typeof e == "function" ? function(t) {
|
|
11
|
-
return (0, u.isTag)(t) && e(t.name);
|
|
12
|
-
} : e === "*" ? u.isTag : function(t) {
|
|
13
|
-
return (0, u.isTag)(t) && t.name === e;
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
tag_type: function(e) {
|
|
17
|
-
return typeof e == "function" ? function(t) {
|
|
18
|
-
return e(t.type);
|
|
19
|
-
} : function(t) {
|
|
20
|
-
return t.type === e;
|
|
21
|
-
};
|
|
22
|
-
},
|
|
23
|
-
tag_contains: function(e) {
|
|
24
|
-
return typeof e == "function" ? function(t) {
|
|
25
|
-
return (0, u.isText)(t) && e(t.data);
|
|
26
|
-
} : function(t) {
|
|
27
|
-
return (0, u.isText)(t) && t.data === e;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
function a(e, t) {
|
|
32
|
-
return typeof t == "function" ? function(n) {
|
|
33
|
-
return (0, u.isTag)(n) && t(n.attribs[e]);
|
|
34
|
-
} : function(n) {
|
|
35
|
-
return (0, u.isTag)(n) && n.attribs[e] === t;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function y(e, t) {
|
|
39
|
-
return function(n) {
|
|
40
|
-
return e(n) || t(n);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function c(e) {
|
|
44
|
-
var t = Object.keys(e).map(function(n) {
|
|
45
|
-
var r = e[n];
|
|
46
|
-
return Object.prototype.hasOwnProperty.call(o, n) ? o[n](r) : a(n, r);
|
|
47
|
-
});
|
|
48
|
-
return t.length === 0 ? null : t.reduce(y);
|
|
49
|
-
}
|
|
50
|
-
function p(e, t) {
|
|
51
|
-
var n = c(e);
|
|
52
|
-
return n ? n(t) : !0;
|
|
53
|
-
}
|
|
54
|
-
function _(e, t, n, r) {
|
|
55
|
-
r === void 0 && (r = 1 / 0);
|
|
56
|
-
var s = c(e);
|
|
57
|
-
return s ? (0, f.filter)(s, t, n, r) : [];
|
|
58
|
-
}
|
|
59
|
-
function v(e, t, n) {
|
|
60
|
-
return n === void 0 && (n = !0), Array.isArray(t) || (t = [t]), (0, f.findOne)(a("id", e), t, n);
|
|
61
|
-
}
|
|
62
|
-
function d(e, t, n, r) {
|
|
63
|
-
return n === void 0 && (n = !0), r === void 0 && (r = 1 / 0), (0, f.filter)(o.tag_name(e), t, n, r);
|
|
64
|
-
}
|
|
65
|
-
function l(e, t, n, r) {
|
|
66
|
-
return n === void 0 && (n = !0), r === void 0 && (r = 1 / 0), (0, f.filter)(a("class", e), t, n, r);
|
|
67
|
-
}
|
|
68
|
-
function T(e, t, n, r) {
|
|
69
|
-
return n === void 0 && (n = !0), r === void 0 && (r = 1 / 0), (0, f.filter)(o.tag_type(e), t, n, r);
|
|
70
|
-
}
|
|
71
|
-
return i;
|
|
72
|
-
}
|
|
73
|
-
export {
|
|
74
|
-
h as __require
|
|
75
|
-
};
|
package/dist/index-legacy2.js
DELETED
package/dist/index-lib6.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __exports as r } from "./index-_virtual76.js";
|
|
2
|
-
import { __require as a } from "./index-dom.js";
|
|
3
|
-
import { __require as o } from "./index-dom-parser.js";
|
|
4
|
-
var i;
|
|
5
|
-
function s() {
|
|
6
|
-
if (i) return r;
|
|
7
|
-
i = 1;
|
|
8
|
-
var e = a();
|
|
9
|
-
return r.DOMImplementation = e.DOMImplementation, r.XMLSerializer = e.XMLSerializer, r.DOMParser = o().DOMParser, r;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
s as __require
|
|
13
|
-
};
|
package/dist/index-lib7.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { __exports as u } from "./index-_virtual87.js";
|
|
2
|
-
import { __require as m } from "./index-stringify2.js";
|
|
3
|
-
import { __require as d } from "./index-traversal.js";
|
|
4
|
-
import { __require as b } from "./index-manipulation.js";
|
|
5
|
-
import { __require as l } from "./index-querying.js";
|
|
6
|
-
import { __require as q } from "./index-legacy.js";
|
|
7
|
-
import { __require as g } from "./index-helpers4.js";
|
|
8
|
-
import { __require as s } from "./index-feeds.js";
|
|
9
|
-
import { __require as y } from "./index-lib.js";
|
|
10
|
-
var c;
|
|
11
|
-
function A() {
|
|
12
|
-
return c ? u : (c = 1, (function(e) {
|
|
13
|
-
var _ = u && u.__createBinding || (Object.create ? (function(f, i, r, t) {
|
|
14
|
-
t === void 0 && (t = r);
|
|
15
|
-
var o = Object.getOwnPropertyDescriptor(i, r);
|
|
16
|
-
(!o || ("get" in o ? !i.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
|
|
17
|
-
return i[r];
|
|
18
|
-
} }), Object.defineProperty(f, t, o);
|
|
19
|
-
}) : (function(f, i, r, t) {
|
|
20
|
-
t === void 0 && (t = r), f[t] = i[r];
|
|
21
|
-
})), n = u && u.__exportStar || function(f, i) {
|
|
22
|
-
for (var r in f) r !== "default" && !Object.prototype.hasOwnProperty.call(i, r) && _(i, f, r);
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.hasChildren = e.isDocument = e.isComment = e.isText = e.isCDATA = e.isTag = void 0, n(/* @__PURE__ */ m(), e), n(/* @__PURE__ */ d(), e), n(/* @__PURE__ */ b(), e), n(/* @__PURE__ */ l(), e), n(/* @__PURE__ */ q(), e), n(/* @__PURE__ */ g(), e), n(/* @__PURE__ */ s(), e);
|
|
25
|
-
var a = /* @__PURE__ */ y();
|
|
26
|
-
Object.defineProperty(e, "isTag", { enumerable: !0, get: function() {
|
|
27
|
-
return a.isTag;
|
|
28
|
-
} }), Object.defineProperty(e, "isCDATA", { enumerable: !0, get: function() {
|
|
29
|
-
return a.isCDATA;
|
|
30
|
-
} }), Object.defineProperty(e, "isText", { enumerable: !0, get: function() {
|
|
31
|
-
return a.isText;
|
|
32
|
-
} }), Object.defineProperty(e, "isComment", { enumerable: !0, get: function() {
|
|
33
|
-
return a.isComment;
|
|
34
|
-
} }), Object.defineProperty(e, "isDocument", { enumerable: !0, get: function() {
|
|
35
|
-
return a.isDocument;
|
|
36
|
-
} }), Object.defineProperty(e, "hasChildren", { enumerable: !0, get: function() {
|
|
37
|
-
return a.hasChildren;
|
|
38
|
-
} });
|
|
39
|
-
})(u), u);
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
A as __require
|
|
43
|
-
};
|
package/dist/index-lib8.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { __exports as i } from "./index-_virtual90.js";
|
|
2
|
-
import { __require as S } from "./index-lib4.js";
|
|
3
|
-
import { __require as A } from "./index-lib9.js";
|
|
4
|
-
import { __require as C } from "./index-foreignNames.js";
|
|
5
|
-
var g;
|
|
6
|
-
function R() {
|
|
7
|
-
if (g) return i;
|
|
8
|
-
g = 1;
|
|
9
|
-
var u = i && i.__assign || function() {
|
|
10
|
-
return u = Object.assign || function(e) {
|
|
11
|
-
for (var r, n = 1, t = arguments.length; n < t; n++) {
|
|
12
|
-
r = arguments[n];
|
|
13
|
-
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
14
|
-
}
|
|
15
|
-
return e;
|
|
16
|
-
}, u.apply(this, arguments);
|
|
17
|
-
}, _ = i && i.__createBinding || (Object.create ? (function(e, r, n, t) {
|
|
18
|
-
t === void 0 && (t = n);
|
|
19
|
-
var a = Object.getOwnPropertyDescriptor(r, n);
|
|
20
|
-
(!a || ("get" in a ? !r.__esModule : a.writable || a.configurable)) && (a = { enumerable: !0, get: function() {
|
|
21
|
-
return r[n];
|
|
22
|
-
} }), Object.defineProperty(e, t, a);
|
|
23
|
-
}) : (function(e, r, n, t) {
|
|
24
|
-
t === void 0 && (t = n), e[t] = r[n];
|
|
25
|
-
})), b = i && i.__setModuleDefault || (Object.create ? (function(e, r) {
|
|
26
|
-
Object.defineProperty(e, "default", { enumerable: !0, value: r });
|
|
27
|
-
}) : function(e, r) {
|
|
28
|
-
e.default = r;
|
|
29
|
-
}), h = i && i.__importStar || function(e) {
|
|
30
|
-
if (e && e.__esModule) return e;
|
|
31
|
-
var r = {};
|
|
32
|
-
if (e != null) for (var n in e) n !== "default" && Object.prototype.hasOwnProperty.call(e, n) && _(r, e, n);
|
|
33
|
-
return b(r, e), r;
|
|
34
|
-
};
|
|
35
|
-
Object.defineProperty(i, "__esModule", { value: !0 }), i.render = void 0;
|
|
36
|
-
var c = h(/* @__PURE__ */ S()), f = /* @__PURE__ */ A(), s = /* @__PURE__ */ C(), x = /* @__PURE__ */ new Set([
|
|
37
|
-
"style",
|
|
38
|
-
"script",
|
|
39
|
-
"xmp",
|
|
40
|
-
"iframe",
|
|
41
|
-
"noembed",
|
|
42
|
-
"noframes",
|
|
43
|
-
"plaintext",
|
|
44
|
-
"noscript"
|
|
45
|
-
]);
|
|
46
|
-
function M(e) {
|
|
47
|
-
return e.replace(/"/g, """);
|
|
48
|
-
}
|
|
49
|
-
function p(e, r) {
|
|
50
|
-
var n;
|
|
51
|
-
if (e) {
|
|
52
|
-
var t = ((n = r.encodeEntities) !== null && n !== void 0 ? n : r.decodeEntities) === !1 ? M : r.xmlMode || r.encodeEntities !== "utf8" ? f.encodeXML : f.escapeAttribute;
|
|
53
|
-
return Object.keys(e).map(function(a) {
|
|
54
|
-
var l, d, v = (l = e[a]) !== null && l !== void 0 ? l : "";
|
|
55
|
-
return r.xmlMode === "foreign" && (a = (d = s.attributeNames.get(a)) !== null && d !== void 0 ? d : a), !r.emptyAttrs && !r.xmlMode && v === "" ? a : "".concat(a, '="').concat(t(v), '"');
|
|
56
|
-
}).join(" ");
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
var m = /* @__PURE__ */ new Set([
|
|
60
|
-
"area",
|
|
61
|
-
"base",
|
|
62
|
-
"basefont",
|
|
63
|
-
"br",
|
|
64
|
-
"col",
|
|
65
|
-
"command",
|
|
66
|
-
"embed",
|
|
67
|
-
"frame",
|
|
68
|
-
"hr",
|
|
69
|
-
"img",
|
|
70
|
-
"input",
|
|
71
|
-
"isindex",
|
|
72
|
-
"keygen",
|
|
73
|
-
"link",
|
|
74
|
-
"meta",
|
|
75
|
-
"param",
|
|
76
|
-
"source",
|
|
77
|
-
"track",
|
|
78
|
-
"wbr"
|
|
79
|
-
]);
|
|
80
|
-
function o(e, r) {
|
|
81
|
-
r === void 0 && (r = {});
|
|
82
|
-
for (var n = ("length" in e) ? e : [e], t = "", a = 0; a < n.length; a++)
|
|
83
|
-
t += O(n[a], r);
|
|
84
|
-
return t;
|
|
85
|
-
}
|
|
86
|
-
i.render = o, i.default = o;
|
|
87
|
-
function O(e, r) {
|
|
88
|
-
switch (e.type) {
|
|
89
|
-
case c.Root:
|
|
90
|
-
return o(e.children, r);
|
|
91
|
-
// @ts-expect-error We don't use `Doctype` yet
|
|
92
|
-
case c.Doctype:
|
|
93
|
-
case c.Directive:
|
|
94
|
-
return q(e);
|
|
95
|
-
case c.Comment:
|
|
96
|
-
return D(e);
|
|
97
|
-
case c.CDATA:
|
|
98
|
-
return E(e);
|
|
99
|
-
case c.Script:
|
|
100
|
-
case c.Style:
|
|
101
|
-
case c.Tag:
|
|
102
|
-
return T(e, r);
|
|
103
|
-
case c.Text:
|
|
104
|
-
return w(e, r);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
var j = /* @__PURE__ */ new Set([
|
|
108
|
-
"mi",
|
|
109
|
-
"mo",
|
|
110
|
-
"mn",
|
|
111
|
-
"ms",
|
|
112
|
-
"mtext",
|
|
113
|
-
"annotation-xml",
|
|
114
|
-
"foreignObject",
|
|
115
|
-
"desc",
|
|
116
|
-
"title"
|
|
117
|
-
]), y = /* @__PURE__ */ new Set(["svg", "math"]);
|
|
118
|
-
function T(e, r) {
|
|
119
|
-
var n;
|
|
120
|
-
r.xmlMode === "foreign" && (e.name = (n = s.elementNames.get(e.name)) !== null && n !== void 0 ? n : e.name, e.parent && j.has(e.parent.name) && (r = u(u({}, r), { xmlMode: !1 }))), !r.xmlMode && y.has(e.name) && (r = u(u({}, r), { xmlMode: "foreign" }));
|
|
121
|
-
var t = "<".concat(e.name), a = p(e.attribs, r);
|
|
122
|
-
return a && (t += " ".concat(a)), e.children.length === 0 && (r.xmlMode ? (
|
|
123
|
-
// In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags
|
|
124
|
-
r.selfClosingTags !== !1
|
|
125
|
-
) : (
|
|
126
|
-
// User explicitly asked for self-closing tags, even in HTML mode
|
|
127
|
-
r.selfClosingTags && m.has(e.name)
|
|
128
|
-
)) ? (r.xmlMode || (t += " "), t += "/>") : (t += ">", e.children.length > 0 && (t += o(e.children, r)), (r.xmlMode || !m.has(e.name)) && (t += "</".concat(e.name, ">"))), t;
|
|
129
|
-
}
|
|
130
|
-
function q(e) {
|
|
131
|
-
return "<".concat(e.data, ">");
|
|
132
|
-
}
|
|
133
|
-
function w(e, r) {
|
|
134
|
-
var n, t = e.data || "";
|
|
135
|
-
return ((n = r.encodeEntities) !== null && n !== void 0 ? n : r.decodeEntities) !== !1 && !(!r.xmlMode && e.parent && x.has(e.parent.name)) && (t = r.xmlMode || r.encodeEntities !== "utf8" ? (0, f.encodeXML)(t) : (0, f.escapeText)(t)), t;
|
|
136
|
-
}
|
|
137
|
-
function E(e) {
|
|
138
|
-
return "<![CDATA[".concat(e.children[0].data, "]]>");
|
|
139
|
-
}
|
|
140
|
-
function D(e) {
|
|
141
|
-
return "<!--".concat(e.data, "-->");
|
|
142
|
-
}
|
|
143
|
-
return i;
|
|
144
|
-
}
|
|
145
|
-
export {
|
|
146
|
-
R as __require
|
|
147
|
-
};
|