@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
package/dist/index-parser4.js
DELETED
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { __require as S } from "./index-at-rule.js";
|
|
2
|
-
import { __require as x } from "./index-comment.js";
|
|
3
|
-
import { __require as A } from "./index-declaration.js";
|
|
4
|
-
import { __require as T } from "./index-root.js";
|
|
5
|
-
import { __require as R } from "./index-rule.js";
|
|
6
|
-
import { __require as W } from "./index-tokenize.js";
|
|
7
|
-
var m, g;
|
|
8
|
-
function U() {
|
|
9
|
-
if (g) return m;
|
|
10
|
-
g = 1;
|
|
11
|
-
let b = S(), _ = x(), F = A(), q = T(), w = R(), y = W();
|
|
12
|
-
const d = {
|
|
13
|
-
empty: !0,
|
|
14
|
-
space: !0
|
|
15
|
-
};
|
|
16
|
-
function z(u) {
|
|
17
|
-
for (let e = u.length - 1; e >= 0; e--) {
|
|
18
|
-
let t = u[e], r = t[3] || t[2];
|
|
19
|
-
if (r) return r;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
class P {
|
|
23
|
-
constructor(e) {
|
|
24
|
-
this.input = e, this.root = new q(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
|
|
25
|
-
}
|
|
26
|
-
atrule(e) {
|
|
27
|
-
let t = new b();
|
|
28
|
-
t.name = e[1].slice(1), t.name === "" && this.unnamedAtrule(t, e), this.init(t, e[2]);
|
|
29
|
-
let r, s, i, o = !1, h = !1, n = [], l = [];
|
|
30
|
-
for (; !this.tokenizer.endOfFile(); ) {
|
|
31
|
-
if (e = this.tokenizer.nextToken(), r = e[0], r === "(" || r === "[" ? l.push(r === "(" ? ")" : "]") : r === "{" && l.length > 0 ? l.push("}") : r === l[l.length - 1] && l.pop(), l.length === 0)
|
|
32
|
-
if (r === ";") {
|
|
33
|
-
t.source.end = this.getPosition(e[2]), t.source.end.offset++, this.semicolon = !0;
|
|
34
|
-
break;
|
|
35
|
-
} else if (r === "{") {
|
|
36
|
-
h = !0;
|
|
37
|
-
break;
|
|
38
|
-
} else if (r === "}") {
|
|
39
|
-
if (n.length > 0) {
|
|
40
|
-
for (i = n.length - 1, s = n[i]; s && s[0] === "space"; )
|
|
41
|
-
s = n[--i];
|
|
42
|
-
s && (t.source.end = this.getPosition(s[3] || s[2]), t.source.end.offset++);
|
|
43
|
-
}
|
|
44
|
-
this.end(e);
|
|
45
|
-
break;
|
|
46
|
-
} else
|
|
47
|
-
n.push(e);
|
|
48
|
-
else
|
|
49
|
-
n.push(e);
|
|
50
|
-
if (this.tokenizer.endOfFile()) {
|
|
51
|
-
o = !0;
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
t.raws.between = this.spacesAndCommentsFromEnd(n), n.length ? (t.raws.afterName = this.spacesAndCommentsFromStart(n), this.raw(t, "params", n), o && (e = n[n.length - 1], t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++, this.spaces = t.raws.between, t.raws.between = "")) : (t.raws.afterName = "", t.params = ""), h && (t.nodes = [], this.current = t);
|
|
56
|
-
}
|
|
57
|
-
checkMissedSemicolon(e) {
|
|
58
|
-
let t = this.colon(e);
|
|
59
|
-
if (t === !1) return;
|
|
60
|
-
let r = 0, s;
|
|
61
|
-
for (let i = t - 1; i >= 0 && (s = e[i], !(s[0] !== "space" && (r += 1, r === 2))); i--)
|
|
62
|
-
;
|
|
63
|
-
throw this.input.error(
|
|
64
|
-
"Missed semicolon",
|
|
65
|
-
s[0] === "word" ? s[3] + 1 : s[2]
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
colon(e) {
|
|
69
|
-
let t = 0, r, s, i;
|
|
70
|
-
for (let [o, h] of e.entries()) {
|
|
71
|
-
if (s = h, i = s[0], i === "(" && (t += 1), i === ")" && (t -= 1), t === 0 && i === ":")
|
|
72
|
-
if (!r)
|
|
73
|
-
this.doubleColon(s);
|
|
74
|
-
else {
|
|
75
|
-
if (r[0] === "word" && r[1] === "progid")
|
|
76
|
-
continue;
|
|
77
|
-
return o;
|
|
78
|
-
}
|
|
79
|
-
r = s;
|
|
80
|
-
}
|
|
81
|
-
return !1;
|
|
82
|
-
}
|
|
83
|
-
comment(e) {
|
|
84
|
-
let t = new _();
|
|
85
|
-
this.init(t, e[2]), t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++;
|
|
86
|
-
let r = e[1].slice(2, -2);
|
|
87
|
-
if (/^\s*$/.test(r))
|
|
88
|
-
t.text = "", t.raws.left = r, t.raws.right = "";
|
|
89
|
-
else {
|
|
90
|
-
let s = r.match(/^(\s*)([^]*\S)(\s*)$/);
|
|
91
|
-
t.text = s[2], t.raws.left = s[1], t.raws.right = s[3];
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
createTokenizer() {
|
|
95
|
-
this.tokenizer = y(this.input);
|
|
96
|
-
}
|
|
97
|
-
decl(e, t) {
|
|
98
|
-
let r = new F();
|
|
99
|
-
this.init(r, e[0][2]);
|
|
100
|
-
let s = e[e.length - 1];
|
|
101
|
-
for (s[0] === ";" && (this.semicolon = !0, e.pop()), r.source.end = this.getPosition(
|
|
102
|
-
s[3] || s[2] || z(e)
|
|
103
|
-
), r.source.end.offset++; e[0][0] !== "word"; )
|
|
104
|
-
e.length === 1 && this.unknownWord(e), r.raws.before += e.shift()[1];
|
|
105
|
-
for (r.source.start = this.getPosition(e[0][2]), r.prop = ""; e.length; ) {
|
|
106
|
-
let l = e[0][0];
|
|
107
|
-
if (l === ":" || l === "space" || l === "comment")
|
|
108
|
-
break;
|
|
109
|
-
r.prop += e.shift()[1];
|
|
110
|
-
}
|
|
111
|
-
r.raws.between = "";
|
|
112
|
-
let i;
|
|
113
|
-
for (; e.length; )
|
|
114
|
-
if (i = e.shift(), i[0] === ":") {
|
|
115
|
-
r.raws.between += i[1];
|
|
116
|
-
break;
|
|
117
|
-
} else
|
|
118
|
-
i[0] === "word" && /\w/.test(i[1]) && this.unknownWord([i]), r.raws.between += i[1];
|
|
119
|
-
(r.prop[0] === "_" || r.prop[0] === "*") && (r.raws.before += r.prop[0], r.prop = r.prop.slice(1));
|
|
120
|
-
let o = [], h;
|
|
121
|
-
for (; e.length && (h = e[0][0], !(h !== "space" && h !== "comment")); )
|
|
122
|
-
o.push(e.shift());
|
|
123
|
-
this.precheckMissedSemicolon(e);
|
|
124
|
-
for (let l = e.length - 1; l >= 0; l--) {
|
|
125
|
-
if (i = e[l], i[1].toLowerCase() === "!important") {
|
|
126
|
-
r.important = !0;
|
|
127
|
-
let c = this.stringFrom(e, l);
|
|
128
|
-
c = this.spacesFromEnd(e) + c, c !== " !important" && (r.raws.important = c);
|
|
129
|
-
break;
|
|
130
|
-
} else if (i[1].toLowerCase() === "important") {
|
|
131
|
-
let c = e.slice(0), f = "";
|
|
132
|
-
for (let a = l; a > 0; a--) {
|
|
133
|
-
let p = c[a][0];
|
|
134
|
-
if (f.trim().startsWith("!") && p !== "space")
|
|
135
|
-
break;
|
|
136
|
-
f = c.pop()[1] + f;
|
|
137
|
-
}
|
|
138
|
-
f.trim().startsWith("!") && (r.important = !0, r.raws.important = f, e = c);
|
|
139
|
-
}
|
|
140
|
-
if (i[0] !== "space" && i[0] !== "comment")
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
e.some((l) => l[0] !== "space" && l[0] !== "comment") && (r.raws.between += o.map((l) => l[1]).join(""), o = []), this.raw(r, "value", o.concat(e), t), r.value.includes(":") && !t && this.checkMissedSemicolon(e);
|
|
144
|
-
}
|
|
145
|
-
doubleColon(e) {
|
|
146
|
-
throw this.input.error(
|
|
147
|
-
"Double colon",
|
|
148
|
-
{ offset: e[2] },
|
|
149
|
-
{ offset: e[2] + e[1].length }
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
emptyRule(e) {
|
|
153
|
-
let t = new w();
|
|
154
|
-
this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
|
|
155
|
-
}
|
|
156
|
-
end(e) {
|
|
157
|
-
this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(e[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(e);
|
|
158
|
-
}
|
|
159
|
-
endFile() {
|
|
160
|
-
this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.root.source.end = this.getPosition(this.tokenizer.position());
|
|
161
|
-
}
|
|
162
|
-
freeSemicolon(e) {
|
|
163
|
-
if (this.spaces += e[1], this.current.nodes) {
|
|
164
|
-
let t = this.current.nodes[this.current.nodes.length - 1];
|
|
165
|
-
t && t.type === "rule" && !t.raws.ownSemicolon && (t.raws.ownSemicolon = this.spaces, this.spaces = "", t.source.end = this.getPosition(e[2]), t.source.end.offset += t.raws.ownSemicolon.length);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
// Helpers
|
|
169
|
-
getPosition(e) {
|
|
170
|
-
let t = this.input.fromOffset(e);
|
|
171
|
-
return {
|
|
172
|
-
column: t.col,
|
|
173
|
-
line: t.line,
|
|
174
|
-
offset: e
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
init(e, t) {
|
|
178
|
-
this.current.push(e), e.source = {
|
|
179
|
-
input: this.input,
|
|
180
|
-
start: this.getPosition(t)
|
|
181
|
-
}, e.raws.before = this.spaces, this.spaces = "", e.type !== "comment" && (this.semicolon = !1);
|
|
182
|
-
}
|
|
183
|
-
other(e) {
|
|
184
|
-
let t = !1, r = null, s = !1, i = null, o = [], h = e[1].startsWith("--"), n = [], l = e;
|
|
185
|
-
for (; l; ) {
|
|
186
|
-
if (r = l[0], n.push(l), r === "(" || r === "[")
|
|
187
|
-
i || (i = l), o.push(r === "(" ? ")" : "]");
|
|
188
|
-
else if (h && s && r === "{")
|
|
189
|
-
i || (i = l), o.push("}");
|
|
190
|
-
else if (o.length === 0)
|
|
191
|
-
if (r === ";")
|
|
192
|
-
if (s) {
|
|
193
|
-
this.decl(n, h);
|
|
194
|
-
return;
|
|
195
|
-
} else
|
|
196
|
-
break;
|
|
197
|
-
else if (r === "{") {
|
|
198
|
-
this.rule(n);
|
|
199
|
-
return;
|
|
200
|
-
} else if (r === "}") {
|
|
201
|
-
this.tokenizer.back(n.pop()), t = !0;
|
|
202
|
-
break;
|
|
203
|
-
} else r === ":" && (s = !0);
|
|
204
|
-
else r === o[o.length - 1] && (o.pop(), o.length === 0 && (i = null));
|
|
205
|
-
l = this.tokenizer.nextToken();
|
|
206
|
-
}
|
|
207
|
-
if (this.tokenizer.endOfFile() && (t = !0), o.length > 0 && this.unclosedBracket(i), t && s) {
|
|
208
|
-
if (!h)
|
|
209
|
-
for (; n.length && (l = n[n.length - 1][0], !(l !== "space" && l !== "comment")); )
|
|
210
|
-
this.tokenizer.back(n.pop());
|
|
211
|
-
this.decl(n, h);
|
|
212
|
-
} else
|
|
213
|
-
this.unknownWord(n);
|
|
214
|
-
}
|
|
215
|
-
parse() {
|
|
216
|
-
let e;
|
|
217
|
-
for (; !this.tokenizer.endOfFile(); )
|
|
218
|
-
switch (e = this.tokenizer.nextToken(), e[0]) {
|
|
219
|
-
case "space":
|
|
220
|
-
this.spaces += e[1];
|
|
221
|
-
break;
|
|
222
|
-
case ";":
|
|
223
|
-
this.freeSemicolon(e);
|
|
224
|
-
break;
|
|
225
|
-
case "}":
|
|
226
|
-
this.end(e);
|
|
227
|
-
break;
|
|
228
|
-
case "comment":
|
|
229
|
-
this.comment(e);
|
|
230
|
-
break;
|
|
231
|
-
case "at-word":
|
|
232
|
-
this.atrule(e);
|
|
233
|
-
break;
|
|
234
|
-
case "{":
|
|
235
|
-
this.emptyRule(e);
|
|
236
|
-
break;
|
|
237
|
-
default:
|
|
238
|
-
this.other(e);
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
this.endFile();
|
|
242
|
-
}
|
|
243
|
-
precheckMissedSemicolon() {
|
|
244
|
-
}
|
|
245
|
-
raw(e, t, r, s) {
|
|
246
|
-
let i, o, h = r.length, n = "", l = !0, c, f;
|
|
247
|
-
for (let a = 0; a < h; a += 1)
|
|
248
|
-
i = r[a], o = i[0], o === "space" && a === h - 1 && !s ? l = !1 : o === "comment" ? (f = r[a - 1] ? r[a - 1][0] : "empty", c = r[a + 1] ? r[a + 1][0] : "empty", !d[f] && !d[c] ? n.slice(-1) === "," ? l = !1 : n += i[1] : l = !1) : n += i[1];
|
|
249
|
-
if (!l) {
|
|
250
|
-
let a = r.reduce((p, C) => p + C[1], "");
|
|
251
|
-
e.raws[t] = { raw: a, value: n };
|
|
252
|
-
}
|
|
253
|
-
e[t] = n;
|
|
254
|
-
}
|
|
255
|
-
rule(e) {
|
|
256
|
-
e.pop();
|
|
257
|
-
let t = new w();
|
|
258
|
-
this.init(t, e[0][2]), t.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(t, "selector", e), this.current = t;
|
|
259
|
-
}
|
|
260
|
-
spacesAndCommentsFromEnd(e) {
|
|
261
|
-
let t, r = "";
|
|
262
|
-
for (; e.length && (t = e[e.length - 1][0], !(t !== "space" && t !== "comment")); )
|
|
263
|
-
r = e.pop()[1] + r;
|
|
264
|
-
return r;
|
|
265
|
-
}
|
|
266
|
-
// Errors
|
|
267
|
-
spacesAndCommentsFromStart(e) {
|
|
268
|
-
let t, r = "";
|
|
269
|
-
for (; e.length && (t = e[0][0], !(t !== "space" && t !== "comment")); )
|
|
270
|
-
r += e.shift()[1];
|
|
271
|
-
return r;
|
|
272
|
-
}
|
|
273
|
-
spacesFromEnd(e) {
|
|
274
|
-
let t, r = "";
|
|
275
|
-
for (; e.length && (t = e[e.length - 1][0], t === "space"); )
|
|
276
|
-
r = e.pop()[1] + r;
|
|
277
|
-
return r;
|
|
278
|
-
}
|
|
279
|
-
stringFrom(e, t) {
|
|
280
|
-
let r = "";
|
|
281
|
-
for (let s = t; s < e.length; s++)
|
|
282
|
-
r += e[s][1];
|
|
283
|
-
return e.splice(t, e.length - t), r;
|
|
284
|
-
}
|
|
285
|
-
unclosedBlock() {
|
|
286
|
-
let e = this.current.source.start;
|
|
287
|
-
throw this.input.error("Unclosed block", e.line, e.column);
|
|
288
|
-
}
|
|
289
|
-
unclosedBracket(e) {
|
|
290
|
-
throw this.input.error(
|
|
291
|
-
"Unclosed bracket",
|
|
292
|
-
{ offset: e[2] },
|
|
293
|
-
{ offset: e[2] + 1 }
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
unexpectedClose(e) {
|
|
297
|
-
throw this.input.error(
|
|
298
|
-
"Unexpected }",
|
|
299
|
-
{ offset: e[2] },
|
|
300
|
-
{ offset: e[2] + 1 }
|
|
301
|
-
);
|
|
302
|
-
}
|
|
303
|
-
unknownWord(e) {
|
|
304
|
-
throw this.input.error(
|
|
305
|
-
"Unknown word " + e[0][1],
|
|
306
|
-
{ offset: e[0][2] },
|
|
307
|
-
{ offset: e[0][2] + e[0][1].length }
|
|
308
|
-
);
|
|
309
|
-
}
|
|
310
|
-
unnamedAtrule(e, t) {
|
|
311
|
-
throw this.input.error(
|
|
312
|
-
"At-rule without name",
|
|
313
|
-
{ offset: t[2] },
|
|
314
|
-
{ offset: t[2] + t[1].length }
|
|
315
|
-
);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
return m = P, m;
|
|
319
|
-
}
|
|
320
|
-
export {
|
|
321
|
-
U as __require
|
|
322
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __module as e } from "./index-picocolors.browser2.js";
|
|
2
|
-
var g;
|
|
3
|
-
function o() {
|
|
4
|
-
if (g) return e.exports;
|
|
5
|
-
g = 1;
|
|
6
|
-
var r = String, t = function() {
|
|
7
|
-
return { isColorSupported: !1, reset: r, bold: r, dim: r, italic: r, underline: r, inverse: r, hidden: r, strikethrough: r, black: r, red: r, green: r, yellow: r, blue: r, magenta: r, cyan: r, white: r, gray: r, bgBlack: r, bgRed: r, bgGreen: r, bgYellow: r, bgBlue: r, bgMagenta: r, bgCyan: r, bgWhite: r, blackBright: r, redBright: r, greenBright: r, yellowBright: r, blueBright: r, magentaBright: r, cyanBright: r, whiteBright: r, bgBlackBright: r, bgRedBright: r, bgGreenBright: r, bgYellowBright: r, bgBlueBright: r, bgMagentaBright: r, bgCyanBright: r, bgWhiteBright: r };
|
|
8
|
-
};
|
|
9
|
-
return e.exports = t(), e.exports.createColors = t, e.exports;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
o as __require
|
|
13
|
-
};
|
package/dist/index-postcss.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { __require as x } from "./index-at-rule.js";
|
|
2
|
-
import { __require as O } from "./index-comment.js";
|
|
3
|
-
import { __require as W } from "./index-container.js";
|
|
4
|
-
import { __require as E } from "./index-css-syntax-error.js";
|
|
5
|
-
import { __require as I } from "./index-declaration.js";
|
|
6
|
-
import { __require as J } from "./index-document3.js";
|
|
7
|
-
import { __require as z } from "./index-fromJSON.js";
|
|
8
|
-
import { __require as G } from "./index-input3.js";
|
|
9
|
-
import { __require as b } from "./index-lazy-result.js";
|
|
10
|
-
import { __require as j } from "./index-list3.js";
|
|
11
|
-
import { __require as F } from "./index-node4.js";
|
|
12
|
-
import { __require as M } from "./index-parse3.js";
|
|
13
|
-
import { __require as V } from "./index-processor.js";
|
|
14
|
-
import { __require as k } from "./index-result.js";
|
|
15
|
-
import { __require as B } from "./index-root.js";
|
|
16
|
-
import { __require as H } from "./index-rule.js";
|
|
17
|
-
import { __require as K } from "./index-stringify.js";
|
|
18
|
-
import { __require as Q } from "./index-warning2.js";
|
|
19
|
-
var u, f;
|
|
20
|
-
function pr() {
|
|
21
|
-
if (f) return u;
|
|
22
|
-
f = 1;
|
|
23
|
-
let a = x(), m = O(), w = W(), R = E(), l = I(), c = J(), g = z(), d = G(), y = b(), P = j(), C = F(), h = M(), i = V(), N = k(), p = B(), q = H(), A = K(), S = Q();
|
|
24
|
-
function r(...e) {
|
|
25
|
-
return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new i(e);
|
|
26
|
-
}
|
|
27
|
-
return r.plugin = function(v, D) {
|
|
28
|
-
let _ = !1;
|
|
29
|
-
function t(...n) {
|
|
30
|
-
console && console.warn && !_ && (_ = !0, process.env.LANG && process.env.LANG.startsWith("cn"));
|
|
31
|
-
let o = D(...n);
|
|
32
|
-
return o.postcssPlugin = v, o.postcssVersion = new i().version, o;
|
|
33
|
-
}
|
|
34
|
-
let s;
|
|
35
|
-
return Object.defineProperty(t, "postcss", {
|
|
36
|
-
get() {
|
|
37
|
-
return s || (s = t()), s;
|
|
38
|
-
}
|
|
39
|
-
}), t.process = function(n, o, L) {
|
|
40
|
-
return r([t(L)]).process(n, o);
|
|
41
|
-
}, t;
|
|
42
|
-
}, r.stringify = A, r.parse = h, r.fromJSON = g, r.list = P, r.comment = (e) => new m(e), r.atRule = (e) => new a(e), r.decl = (e) => new l(e), r.rule = (e) => new q(e), r.root = (e) => new p(e), r.document = (e) => new c(e), r.CssSyntaxError = R, r.Declaration = l, r.Container = w, r.Processor = i, r.Document = c, r.Comment = m, r.Warning = S, r.AtRule = a, r.Result = N, r.Input = d, r.Rule = q, r.Root = p, r.Node = C, y.registerPostcss(r), u = r, r.default = r, u;
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
pr as __require
|
|
46
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import s from "./index-___vite-browser-external.js";
|
|
2
|
-
var u, m;
|
|
3
|
-
function w() {
|
|
4
|
-
if (m) return u;
|
|
5
|
-
m = 1;
|
|
6
|
-
let { existsSync: p, readFileSync: d } = s, { dirname: r, join: g } = s, { SourceMapConsumer: l, SourceMapGenerator: f } = s;
|
|
7
|
-
function M(o) {
|
|
8
|
-
return Buffer ? Buffer.from(o, "base64").toString() : window.atob(o);
|
|
9
|
-
}
|
|
10
|
-
class a {
|
|
11
|
-
constructor(t, e) {
|
|
12
|
-
if (e.map === !1) return;
|
|
13
|
-
this.loadAnnotation(t), this.inline = this.startWith(this.annotation, "data:");
|
|
14
|
-
let i = e.map ? e.map.prev : void 0, n = this.loadMap(e.from, i);
|
|
15
|
-
!this.mapFile && e.from && (this.mapFile = e.from), this.mapFile && (this.root = r(this.mapFile)), n && (this.text = n);
|
|
16
|
-
}
|
|
17
|
-
consumer() {
|
|
18
|
-
return this.consumerCache || (this.consumerCache = new l(this.text)), this.consumerCache;
|
|
19
|
-
}
|
|
20
|
-
decodeInline(t) {
|
|
21
|
-
let e = /^data:application\/json;charset=utf-?8;base64,/, i = /^data:application\/json;base64,/, n = /^data:application\/json;charset=utf-?8,/, b = /^data:application\/json,/, h = t.match(n) || t.match(b);
|
|
22
|
-
if (h)
|
|
23
|
-
return decodeURIComponent(t.substr(h[0].length));
|
|
24
|
-
let c = t.match(e) || t.match(i);
|
|
25
|
-
if (c)
|
|
26
|
-
return M(t.substr(c[0].length));
|
|
27
|
-
let S = t.match(/data:application\/json;([^,]+),/)[1];
|
|
28
|
-
throw new Error("Unsupported source map encoding " + S);
|
|
29
|
-
}
|
|
30
|
-
getAnnotationURL(t) {
|
|
31
|
-
return t.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
|
|
32
|
-
}
|
|
33
|
-
isMap(t) {
|
|
34
|
-
return typeof t != "object" ? !1 : typeof t.mappings == "string" || typeof t._mappings == "string" || Array.isArray(t.sections);
|
|
35
|
-
}
|
|
36
|
-
loadAnnotation(t) {
|
|
37
|
-
let e = t.match(/\/\*\s*# sourceMappingURL=/g);
|
|
38
|
-
if (!e) return;
|
|
39
|
-
let i = t.lastIndexOf(e.pop()), n = t.indexOf("*/", i);
|
|
40
|
-
i > -1 && n > -1 && (this.annotation = this.getAnnotationURL(t.substring(i, n)));
|
|
41
|
-
}
|
|
42
|
-
loadFile(t) {
|
|
43
|
-
if (this.root = r(t), p(t))
|
|
44
|
-
return this.mapFile = t, d(t, "utf-8").toString().trim();
|
|
45
|
-
}
|
|
46
|
-
loadMap(t, e) {
|
|
47
|
-
if (e === !1) return !1;
|
|
48
|
-
if (e) {
|
|
49
|
-
if (typeof e == "string")
|
|
50
|
-
return e;
|
|
51
|
-
if (typeof e == "function") {
|
|
52
|
-
let i = e(t);
|
|
53
|
-
if (i) {
|
|
54
|
-
let n = this.loadFile(i);
|
|
55
|
-
if (!n)
|
|
56
|
-
throw new Error(
|
|
57
|
-
"Unable to load previous source map: " + i.toString()
|
|
58
|
-
);
|
|
59
|
-
return n;
|
|
60
|
-
}
|
|
61
|
-
} else {
|
|
62
|
-
if (e instanceof l)
|
|
63
|
-
return f.fromSourceMap(e).toString();
|
|
64
|
-
if (e instanceof f)
|
|
65
|
-
return e.toString();
|
|
66
|
-
if (this.isMap(e))
|
|
67
|
-
return JSON.stringify(e);
|
|
68
|
-
throw new Error(
|
|
69
|
-
"Unsupported previous source map format: " + e.toString()
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
} else {
|
|
73
|
-
if (this.inline)
|
|
74
|
-
return this.decodeInline(this.annotation);
|
|
75
|
-
if (this.annotation) {
|
|
76
|
-
let i = this.annotation;
|
|
77
|
-
return t && (i = g(r(t), i)), this.loadFile(i);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
startWith(t, e) {
|
|
82
|
-
return t ? t.substr(0, e.length) === e : !1;
|
|
83
|
-
}
|
|
84
|
-
withContent() {
|
|
85
|
-
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return u = a, a.default = a, u;
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
w as __require
|
|
92
|
-
};
|
package/dist/index-processor.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { __require as c } from "./index-document3.js";
|
|
2
|
-
import { __require as p } from "./index-lazy-result.js";
|
|
3
|
-
import { __require as f } from "./index-no-work-result.js";
|
|
4
|
-
import { __require as h } from "./index-root.js";
|
|
5
|
-
var o, i;
|
|
6
|
-
function P() {
|
|
7
|
-
if (i) return o;
|
|
8
|
-
i = 1;
|
|
9
|
-
let n = c(), u = p(), l = f(), a = h();
|
|
10
|
-
class t {
|
|
11
|
-
constructor(s = []) {
|
|
12
|
-
this.version = "8.5.6", this.plugins = this.normalize(s);
|
|
13
|
-
}
|
|
14
|
-
normalize(s) {
|
|
15
|
-
let r = [];
|
|
16
|
-
for (let e of s)
|
|
17
|
-
if (e.postcss === !0 ? e = e() : e.postcss && (e = e.postcss), typeof e == "object" && Array.isArray(e.plugins))
|
|
18
|
-
r = r.concat(e.plugins);
|
|
19
|
-
else if (typeof e == "object" && e.postcssPlugin)
|
|
20
|
-
r.push(e);
|
|
21
|
-
else if (typeof e == "function")
|
|
22
|
-
r.push(e);
|
|
23
|
-
else if (typeof e == "object" && (e.parse || e.stringify)) {
|
|
24
|
-
if (process.env.NODE_ENV !== "production")
|
|
25
|
-
throw new Error(
|
|
26
|
-
"PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."
|
|
27
|
-
);
|
|
28
|
-
} else
|
|
29
|
-
throw new Error(e + " is not a PostCSS plugin");
|
|
30
|
-
return r;
|
|
31
|
-
}
|
|
32
|
-
process(s, r = {}) {
|
|
33
|
-
return !this.plugins.length && !r.parser && !r.stringifier && !r.syntax ? new l(this, s, r) : new u(this, s, r);
|
|
34
|
-
}
|
|
35
|
-
use(s) {
|
|
36
|
-
return this.plugins = this.plugins.concat(this.normalize([s])), this;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return o = t, t.default = t, a.registerProcessor(t), n.registerProcessor(t), o;
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
P as __require
|
|
43
|
-
};
|
package/dist/index-querying.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { __exports as u } from "./index-querying2.js";
|
|
2
|
-
import { __require as o } from "./index-lib.js";
|
|
3
|
-
var d;
|
|
4
|
-
function O() {
|
|
5
|
-
if (d) return u;
|
|
6
|
-
d = 1, Object.defineProperty(u, "__esModule", { value: !0 }), u.filter = y, u.find = s, u.findOneChild = g, u.findOne = c, u.existsOne = v, u.findAll = A;
|
|
7
|
-
var e = /* @__PURE__ */ o();
|
|
8
|
-
function y(f, r, n, t) {
|
|
9
|
-
return n === void 0 && (n = !0), t === void 0 && (t = 1 / 0), s(f, Array.isArray(r) ? r : [r], n, t);
|
|
10
|
-
}
|
|
11
|
-
function s(f, r, n, t) {
|
|
12
|
-
for (var a = [], i = [Array.isArray(r) ? r : [r]], h = [0]; ; ) {
|
|
13
|
-
if (h[0] >= i[0].length) {
|
|
14
|
-
if (h.length === 1)
|
|
15
|
-
return a;
|
|
16
|
-
i.shift(), h.shift();
|
|
17
|
-
continue;
|
|
18
|
-
}
|
|
19
|
-
var l = i[0][h[0]++];
|
|
20
|
-
if (f(l) && (a.push(l), --t <= 0))
|
|
21
|
-
return a;
|
|
22
|
-
n && (0, e.hasChildren)(l) && l.children.length > 0 && (h.unshift(0), i.unshift(l.children));
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function g(f, r) {
|
|
26
|
-
return r.find(f);
|
|
27
|
-
}
|
|
28
|
-
function c(f, r, n) {
|
|
29
|
-
n === void 0 && (n = !0);
|
|
30
|
-
for (var t = Array.isArray(r) ? r : [r], a = 0; a < t.length; a++) {
|
|
31
|
-
var i = t[a];
|
|
32
|
-
if ((0, e.isTag)(i) && f(i))
|
|
33
|
-
return i;
|
|
34
|
-
if (n && (0, e.hasChildren)(i) && i.children.length > 0) {
|
|
35
|
-
var h = c(f, i.children, !0);
|
|
36
|
-
if (h)
|
|
37
|
-
return h;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
function v(f, r) {
|
|
43
|
-
return (Array.isArray(r) ? r : [r]).some(function(n) {
|
|
44
|
-
return (0, e.isTag)(n) && f(n) || (0, e.hasChildren)(n) && v(f, n.children);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
function A(f, r) {
|
|
48
|
-
for (var n = [], t = [Array.isArray(r) ? r : [r]], a = [0]; ; ) {
|
|
49
|
-
if (a[0] >= t[0].length) {
|
|
50
|
-
if (t.length === 1)
|
|
51
|
-
return n;
|
|
52
|
-
t.shift(), a.shift();
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
var i = t[0][a[0]++];
|
|
56
|
-
(0, e.isTag)(i) && f(i) && n.push(i), (0, e.hasChildren)(i) && i.children.length > 0 && (a.unshift(0), t.unshift(i.children));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return u;
|
|
60
|
-
}
|
|
61
|
-
export {
|
|
62
|
-
O as __require
|
|
63
|
-
};
|
package/dist/index-querying2.js
DELETED
package/dist/index-result.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __require as a } from "./index-warning2.js";
|
|
2
|
-
var i, n;
|
|
3
|
-
function h() {
|
|
4
|
-
if (n) return i;
|
|
5
|
-
n = 1;
|
|
6
|
-
let u = a();
|
|
7
|
-
class e {
|
|
8
|
-
get content() {
|
|
9
|
-
return this.css;
|
|
10
|
-
}
|
|
11
|
-
constructor(s, t, r) {
|
|
12
|
-
this.processor = s, this.messages = [], this.root = t, this.opts = r, this.css = "", this.map = void 0;
|
|
13
|
-
}
|
|
14
|
-
toString() {
|
|
15
|
-
return this.css;
|
|
16
|
-
}
|
|
17
|
-
warn(s, t = {}) {
|
|
18
|
-
t.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin);
|
|
19
|
-
let r = new u(s, t);
|
|
20
|
-
return this.messages.push(r), r;
|
|
21
|
-
}
|
|
22
|
-
warnings() {
|
|
23
|
-
return this.messages.filter((s) => s.type === "warning");
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return i = e, e.default = e, i;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
h as __require
|
|
30
|
-
};
|
package/dist/index-root.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { __require as h } from "./index-container.js";
|
|
2
|
-
var i, d;
|
|
3
|
-
function R() {
|
|
4
|
-
if (d) return i;
|
|
5
|
-
d = 1;
|
|
6
|
-
let n = h(), f, u;
|
|
7
|
-
class t extends n {
|
|
8
|
-
constructor(e) {
|
|
9
|
-
super(e), this.type = "root", this.nodes || (this.nodes = []);
|
|
10
|
-
}
|
|
11
|
-
normalize(e, r, s) {
|
|
12
|
-
let a = super.normalize(e);
|
|
13
|
-
if (r) {
|
|
14
|
-
if (s === "prepend")
|
|
15
|
-
this.nodes.length > 1 ? r.raws.before = this.nodes[1].raws.before : delete r.raws.before;
|
|
16
|
-
else if (this.first !== r)
|
|
17
|
-
for (let l of a)
|
|
18
|
-
l.raws.before = r.raws.before;
|
|
19
|
-
}
|
|
20
|
-
return a;
|
|
21
|
-
}
|
|
22
|
-
removeChild(e, r) {
|
|
23
|
-
let s = this.index(e);
|
|
24
|
-
return !r && s === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[s].raws.before), super.removeChild(e);
|
|
25
|
-
}
|
|
26
|
-
toResult(e = {}) {
|
|
27
|
-
return new f(new u(), this, e).stringify();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return t.registerLazyResult = (o) => {
|
|
31
|
-
f = o;
|
|
32
|
-
}, t.registerProcessor = (o) => {
|
|
33
|
-
u = o;
|
|
34
|
-
}, i = t, t.default = t, n.registerRoot(t), i;
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
R as __require
|
|
38
|
-
};
|
package/dist/index-rule.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { __require as n } from "./index-container.js";
|
|
2
|
-
import { __require as a } from "./index-list3.js";
|
|
3
|
-
var t, l;
|
|
4
|
-
function f() {
|
|
5
|
-
if (l) return t;
|
|
6
|
-
l = 1;
|
|
7
|
-
let s = n(), o = a();
|
|
8
|
-
class e extends s {
|
|
9
|
-
get selectors() {
|
|
10
|
-
return o.comma(this.selector);
|
|
11
|
-
}
|
|
12
|
-
set selectors(r) {
|
|
13
|
-
let i = this.selector ? this.selector.match(/,\s*/) : null, u = i ? i[0] : "," + this.raw("between", "beforeOpen");
|
|
14
|
-
this.selector = r.join(u);
|
|
15
|
-
}
|
|
16
|
-
constructor(r) {
|
|
17
|
-
super(r), this.type = "rule", this.nodes || (this.nodes = []);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return t = e, e.default = e, s.registerRule(e), t;
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
f as __require
|
|
24
|
-
};
|