@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-Parser5.js
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { RULESET as B, DECLARATION as F, COMMENT as G } from "./index-Enum.js";
|
|
2
|
-
import { strlen as E, append as L, charat as I, replace as M, indexof as H, sizeof as J, substr as O, abs as K, trim as P, from as q } from "./index-Utility.js";
|
|
3
|
-
import { dealloc as Q, alloc as V, next as R, peek as x, delimit as y, identifier as W, commenter as X, escaping as Y, whitespace as Z, node as D, char as _, prev as $, caret as z } from "./index-Tokenizer3.js";
|
|
4
|
-
function ca(e) {
|
|
5
|
-
return Q(N("", null, null, null, [""], e = V(e), 0, [0], e));
|
|
6
|
-
}
|
|
7
|
-
function N(e, o, n, f, m, w, T, v, g) {
|
|
8
|
-
for (var l = 0, d = 0, r = T, h = 0, u = 0, b = 0, s = 1, A = 1, i = 1, c = 0, k = "", C = m, p = w, t = f, a = k; A; )
|
|
9
|
-
switch (b = c, c = R()) {
|
|
10
|
-
// (
|
|
11
|
-
case 40:
|
|
12
|
-
if (b != 108 && I(a, r - 1) == 58) {
|
|
13
|
-
H(a += M(y(c), "&", "&\f"), "&\f") != -1 && (i = -1);
|
|
14
|
-
break;
|
|
15
|
-
}
|
|
16
|
-
// " ' [
|
|
17
|
-
case 34:
|
|
18
|
-
case 39:
|
|
19
|
-
case 91:
|
|
20
|
-
a += y(c);
|
|
21
|
-
break;
|
|
22
|
-
// \t \n \r \s
|
|
23
|
-
case 9:
|
|
24
|
-
case 10:
|
|
25
|
-
case 13:
|
|
26
|
-
case 32:
|
|
27
|
-
a += Z(b);
|
|
28
|
-
break;
|
|
29
|
-
// \
|
|
30
|
-
case 92:
|
|
31
|
-
a += Y(z() - 1, 7);
|
|
32
|
-
continue;
|
|
33
|
-
// /
|
|
34
|
-
case 47:
|
|
35
|
-
switch (x()) {
|
|
36
|
-
case 42:
|
|
37
|
-
case 47:
|
|
38
|
-
L(j(X(R(), z()), o, n), g);
|
|
39
|
-
break;
|
|
40
|
-
default:
|
|
41
|
-
a += "/";
|
|
42
|
-
}
|
|
43
|
-
break;
|
|
44
|
-
// {
|
|
45
|
-
case 123 * s:
|
|
46
|
-
v[l++] = E(a) * i;
|
|
47
|
-
// } ; \0
|
|
48
|
-
case 125 * s:
|
|
49
|
-
case 59:
|
|
50
|
-
case 0:
|
|
51
|
-
switch (c) {
|
|
52
|
-
// \0 }
|
|
53
|
-
case 0:
|
|
54
|
-
case 125:
|
|
55
|
-
A = 0;
|
|
56
|
-
// ;
|
|
57
|
-
case 59 + d:
|
|
58
|
-
i == -1 && (a = M(a, /\f/g, "")), u > 0 && E(a) - r && L(u > 32 ? U(a + ";", f, n, r - 1) : U(M(a, " ", "") + ";", f, n, r - 2), g);
|
|
59
|
-
break;
|
|
60
|
-
// @ ;
|
|
61
|
-
case 59:
|
|
62
|
-
a += ";";
|
|
63
|
-
// { rule/at-rule
|
|
64
|
-
default:
|
|
65
|
-
if (L(t = S(a, o, n, l, d, m, v, k, C = [], p = [], r), w), c === 123)
|
|
66
|
-
if (d === 0)
|
|
67
|
-
N(a, o, t, t, C, w, r, v, p);
|
|
68
|
-
else
|
|
69
|
-
switch (h === 99 && I(a, 3) === 110 ? 100 : h) {
|
|
70
|
-
// d l m s
|
|
71
|
-
case 100:
|
|
72
|
-
case 108:
|
|
73
|
-
case 109:
|
|
74
|
-
case 115:
|
|
75
|
-
N(e, t, t, f && L(S(e, t, t, 0, 0, m, v, k, m, C = [], r), p), m, p, r, v, f ? C : p);
|
|
76
|
-
break;
|
|
77
|
-
default:
|
|
78
|
-
N(a, t, t, t, [""], p, 0, v, p);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
l = d = u = 0, s = i = 1, k = a = "", r = T;
|
|
82
|
-
break;
|
|
83
|
-
// :
|
|
84
|
-
case 58:
|
|
85
|
-
r = 1 + E(a), u = b;
|
|
86
|
-
default:
|
|
87
|
-
if (s < 1) {
|
|
88
|
-
if (c == 123)
|
|
89
|
-
--s;
|
|
90
|
-
else if (c == 125 && s++ == 0 && $() == 125)
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
switch (a += q(c), c * s) {
|
|
94
|
-
// &
|
|
95
|
-
case 38:
|
|
96
|
-
i = d > 0 ? 1 : (a += "\f", -1);
|
|
97
|
-
break;
|
|
98
|
-
// ,
|
|
99
|
-
case 44:
|
|
100
|
-
v[l++] = (E(a) - 1) * i, i = 1;
|
|
101
|
-
break;
|
|
102
|
-
// @
|
|
103
|
-
case 64:
|
|
104
|
-
x() === 45 && (a += y(R())), h = x(), d = r = E(k = a += W(z())), c++;
|
|
105
|
-
break;
|
|
106
|
-
// -
|
|
107
|
-
case 45:
|
|
108
|
-
b === 45 && E(a) == 2 && (s = 0);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return w;
|
|
112
|
-
}
|
|
113
|
-
function S(e, o, n, f, m, w, T, v, g, l, d) {
|
|
114
|
-
for (var r = m - 1, h = m === 0 ? w : [""], u = J(h), b = 0, s = 0, A = 0; b < f; ++b)
|
|
115
|
-
for (var i = 0, c = O(e, r + 1, r = K(s = T[b])), k = e; i < u; ++i)
|
|
116
|
-
(k = P(s > 0 ? h[i] + " " + c : M(c, /&\f/g, h[i]))) && (g[A++] = k);
|
|
117
|
-
return D(e, o, n, m === 0 ? B : v, g, l, d);
|
|
118
|
-
}
|
|
119
|
-
function j(e, o, n) {
|
|
120
|
-
return D(e, o, n, G, q(_()), O(e, 2, -2), 0);
|
|
121
|
-
}
|
|
122
|
-
function U(e, o, n, f) {
|
|
123
|
-
return D(e, o, n, F, O(e, 0, f), O(e, f + 1, -1), f);
|
|
124
|
-
}
|
|
125
|
-
export {
|
|
126
|
-
j as comment,
|
|
127
|
-
ca as compile,
|
|
128
|
-
U as declaration,
|
|
129
|
-
N as parse,
|
|
130
|
-
S as ruleset
|
|
131
|
-
};
|
package/dist/index-Tokenizer3.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { assign as g, strlen as x, charat as h, trim as p, from as j, substr as q } from "./index-Utility.js";
|
|
2
|
-
var u = 1, t = 1, m = 0, n = 0, r = 0, i = "";
|
|
3
|
-
function z(e, c, k, b, v, w, d) {
|
|
4
|
-
return { value: e, root: c, parent: k, type: b, props: v, children: w, line: u, column: t, length: d, return: "" };
|
|
5
|
-
}
|
|
6
|
-
function C(e, c) {
|
|
7
|
-
return g(z("", null, null, "", null, null, 0), e, { length: -e.length }, c);
|
|
8
|
-
}
|
|
9
|
-
function D() {
|
|
10
|
-
return r;
|
|
11
|
-
}
|
|
12
|
-
function E() {
|
|
13
|
-
return r = n > 0 ? h(i, --n) : 0, t--, r === 10 && (t = 1, u--), r;
|
|
14
|
-
}
|
|
15
|
-
function a() {
|
|
16
|
-
return r = n < m ? h(i, n++) : 0, t++, r === 10 && (t = 1, u++), r;
|
|
17
|
-
}
|
|
18
|
-
function s() {
|
|
19
|
-
return h(i, n);
|
|
20
|
-
}
|
|
21
|
-
function A() {
|
|
22
|
-
return n;
|
|
23
|
-
}
|
|
24
|
-
function l(e, c) {
|
|
25
|
-
return q(i, e, c);
|
|
26
|
-
}
|
|
27
|
-
function o(e) {
|
|
28
|
-
switch (e) {
|
|
29
|
-
// \0 \t \n \r \s whitespace token
|
|
30
|
-
case 0:
|
|
31
|
-
case 9:
|
|
32
|
-
case 10:
|
|
33
|
-
case 13:
|
|
34
|
-
case 32:
|
|
35
|
-
return 5;
|
|
36
|
-
// ! + , / > @ ~ isolate token
|
|
37
|
-
case 33:
|
|
38
|
-
case 43:
|
|
39
|
-
case 44:
|
|
40
|
-
case 47:
|
|
41
|
-
case 62:
|
|
42
|
-
case 64:
|
|
43
|
-
case 126:
|
|
44
|
-
// ; { } breakpoint token
|
|
45
|
-
case 59:
|
|
46
|
-
case 123:
|
|
47
|
-
case 125:
|
|
48
|
-
return 4;
|
|
49
|
-
// : accompanied token
|
|
50
|
-
case 58:
|
|
51
|
-
return 3;
|
|
52
|
-
// " ' ( [ opening delimit token
|
|
53
|
-
case 34:
|
|
54
|
-
case 39:
|
|
55
|
-
case 40:
|
|
56
|
-
case 91:
|
|
57
|
-
return 2;
|
|
58
|
-
// ) ] closing delimit token
|
|
59
|
-
case 41:
|
|
60
|
-
case 93:
|
|
61
|
-
return 1;
|
|
62
|
-
}
|
|
63
|
-
return 0;
|
|
64
|
-
}
|
|
65
|
-
function F(e) {
|
|
66
|
-
return u = t = 1, m = x(i = e), n = 0, [];
|
|
67
|
-
}
|
|
68
|
-
function G(e) {
|
|
69
|
-
return i = "", e;
|
|
70
|
-
}
|
|
71
|
-
function H(e) {
|
|
72
|
-
return p(l(n - 1, f(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
73
|
-
}
|
|
74
|
-
function I(e) {
|
|
75
|
-
for (; (r = s()) && r < 33; )
|
|
76
|
-
a();
|
|
77
|
-
return o(e) > 2 || o(r) > 3 ? "" : " ";
|
|
78
|
-
}
|
|
79
|
-
function J(e, c) {
|
|
80
|
-
for (; --c && a() && !(r < 48 || r > 102 || r > 57 && r < 65 || r > 70 && r < 97); )
|
|
81
|
-
;
|
|
82
|
-
return l(e, A() + (c < 6 && s() == 32 && a() == 32));
|
|
83
|
-
}
|
|
84
|
-
function f(e) {
|
|
85
|
-
for (; a(); )
|
|
86
|
-
switch (r) {
|
|
87
|
-
// ] ) " '
|
|
88
|
-
case e:
|
|
89
|
-
return n;
|
|
90
|
-
// " '
|
|
91
|
-
case 34:
|
|
92
|
-
case 39:
|
|
93
|
-
e !== 34 && e !== 39 && f(r);
|
|
94
|
-
break;
|
|
95
|
-
// (
|
|
96
|
-
case 40:
|
|
97
|
-
e === 41 && f(e);
|
|
98
|
-
break;
|
|
99
|
-
// \
|
|
100
|
-
case 92:
|
|
101
|
-
a();
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
return n;
|
|
105
|
-
}
|
|
106
|
-
function K(e, c) {
|
|
107
|
-
for (; a() && e + r !== 57; )
|
|
108
|
-
if (e + r === 84 && s() === 47)
|
|
109
|
-
break;
|
|
110
|
-
return "/*" + l(c, n - 1) + "*" + j(e === 47 ? e : a());
|
|
111
|
-
}
|
|
112
|
-
function L(e) {
|
|
113
|
-
for (; !o(s()); )
|
|
114
|
-
a();
|
|
115
|
-
return l(e, n);
|
|
116
|
-
}
|
|
117
|
-
export {
|
|
118
|
-
F as alloc,
|
|
119
|
-
A as caret,
|
|
120
|
-
D as char,
|
|
121
|
-
r as character,
|
|
122
|
-
i as characters,
|
|
123
|
-
t as column,
|
|
124
|
-
K as commenter,
|
|
125
|
-
C as copy,
|
|
126
|
-
G as dealloc,
|
|
127
|
-
H as delimit,
|
|
128
|
-
f as delimiter,
|
|
129
|
-
J as escaping,
|
|
130
|
-
L as identifier,
|
|
131
|
-
m as length,
|
|
132
|
-
u as line,
|
|
133
|
-
a as next,
|
|
134
|
-
z as node,
|
|
135
|
-
s as peek,
|
|
136
|
-
n as position,
|
|
137
|
-
E as prev,
|
|
138
|
-
l as slice,
|
|
139
|
-
o as token,
|
|
140
|
-
I as whitespace
|
|
141
|
-
};
|
package/dist/index-_virtual87.js
DELETED
package/dist/index-_virtual88.js
DELETED
package/dist/index-_virtual89.js
DELETED
package/dist/index-_virtual90.js
DELETED
package/dist/index-_virtual91.js
DELETED
package/dist/index-at-rule.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { __require as s } from "./index-container.js";
|
|
2
|
-
var t, n;
|
|
3
|
-
function o() {
|
|
4
|
-
if (n) return t;
|
|
5
|
-
n = 1;
|
|
6
|
-
let u = s();
|
|
7
|
-
class r extends u {
|
|
8
|
-
constructor(e) {
|
|
9
|
-
super(e), this.type = "atrule";
|
|
10
|
-
}
|
|
11
|
-
append(...e) {
|
|
12
|
-
return this.proxyOf.nodes || (this.nodes = []), super.append(...e);
|
|
13
|
-
}
|
|
14
|
-
prepend(...e) {
|
|
15
|
-
return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return t = r, r.default = r, u.registerAtRule(r), t;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
o as __require
|
|
22
|
-
};
|
package/dist/index-cjs2.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { __exports as e } from "./index-_virtual86.js";
|
|
2
|
-
import { __require as c } from "./index-style-to-object.js";
|
|
3
|
-
import { __require as q } from "./index-utilities4.js";
|
|
4
|
-
var o;
|
|
5
|
-
function v() {
|
|
6
|
-
return o ? e : (o = 1, (function(i) {
|
|
7
|
-
var f = e && e.__importDefault || function(r) {
|
|
8
|
-
return r && r.__esModule ? r : { default: r };
|
|
9
|
-
};
|
|
10
|
-
i.__esModule = !0;
|
|
11
|
-
var a = f(c()), n = q();
|
|
12
|
-
function s(r, l) {
|
|
13
|
-
var t = {};
|
|
14
|
-
return !r || typeof r != "string" || (0, a.default)(r, function(u, _) {
|
|
15
|
-
u && _ && (t[(0, n.camelCase)(u, l)] = _);
|
|
16
|
-
}), t;
|
|
17
|
-
}
|
|
18
|
-
i.default = s;
|
|
19
|
-
})(e), e);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
v as __require
|
|
23
|
-
};
|
package/dist/index-comment.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __require as n } from "./index-node4.js";
|
|
2
|
-
var r, t;
|
|
3
|
-
function s() {
|
|
4
|
-
if (t) return r;
|
|
5
|
-
t = 1;
|
|
6
|
-
let o = n();
|
|
7
|
-
class e extends o {
|
|
8
|
-
constructor(m) {
|
|
9
|
-
super(m), this.type = "comment";
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return r = e, e.default = e, r;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
s as __require
|
|
16
|
-
};
|
package/dist/index-container.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { __require as k } from "./index-comment.js";
|
|
2
|
-
import { __require as D } from "./index-declaration.js";
|
|
3
|
-
import { __require as P } from "./index-node4.js";
|
|
4
|
-
import { __require as q } from "./index-symbols.js";
|
|
5
|
-
var y, v;
|
|
6
|
-
function j() {
|
|
7
|
-
if (v) return y;
|
|
8
|
-
v = 1;
|
|
9
|
-
let h = k(), p = D(), R = P(), { isClean: x, my: m } = q(), a, d, w, l;
|
|
10
|
-
function O(s) {
|
|
11
|
-
return s.map((e) => (e.nodes && (e.nodes = O(e.nodes)), delete e.source, e));
|
|
12
|
-
}
|
|
13
|
-
function g(s) {
|
|
14
|
-
if (s[x] = !1, s.proxyOf.nodes)
|
|
15
|
-
for (let e of s.proxyOf.nodes)
|
|
16
|
-
g(e);
|
|
17
|
-
}
|
|
18
|
-
class f extends R {
|
|
19
|
-
get first() {
|
|
20
|
-
if (this.proxyOf.nodes)
|
|
21
|
-
return this.proxyOf.nodes[0];
|
|
22
|
-
}
|
|
23
|
-
get last() {
|
|
24
|
-
if (this.proxyOf.nodes)
|
|
25
|
-
return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
|
|
26
|
-
}
|
|
27
|
-
append(...e) {
|
|
28
|
-
for (let t of e) {
|
|
29
|
-
let r = this.normalize(t, this.last);
|
|
30
|
-
for (let i of r) this.proxyOf.nodes.push(i);
|
|
31
|
-
}
|
|
32
|
-
return this.markDirty(), this;
|
|
33
|
-
}
|
|
34
|
-
cleanRaws(e) {
|
|
35
|
-
if (super.cleanRaws(e), this.nodes)
|
|
36
|
-
for (let t of this.nodes) t.cleanRaws(e);
|
|
37
|
-
}
|
|
38
|
-
each(e) {
|
|
39
|
-
if (!this.proxyOf.nodes) return;
|
|
40
|
-
let t = this.getIterator(), r, i;
|
|
41
|
-
for (; this.indexes[t] < this.proxyOf.nodes.length && (r = this.indexes[t], i = e(this.proxyOf.nodes[r], r), i !== !1); )
|
|
42
|
-
this.indexes[t] += 1;
|
|
43
|
-
return delete this.indexes[t], i;
|
|
44
|
-
}
|
|
45
|
-
every(e) {
|
|
46
|
-
return this.nodes.every(e);
|
|
47
|
-
}
|
|
48
|
-
getIterator() {
|
|
49
|
-
this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
|
|
50
|
-
let e = this.lastEach;
|
|
51
|
-
return this.indexes[e] = 0, e;
|
|
52
|
-
}
|
|
53
|
-
getProxyProcessor() {
|
|
54
|
-
return {
|
|
55
|
-
get(e, t) {
|
|
56
|
-
return t === "proxyOf" ? e : e[t] ? t === "each" || typeof t == "string" && t.startsWith("walk") ? (...r) => e[t](
|
|
57
|
-
...r.map((i) => typeof i == "function" ? (n, o) => i(n.toProxy(), o) : i)
|
|
58
|
-
) : t === "every" || t === "some" ? (r) => e[t](
|
|
59
|
-
(i, ...n) => r(i.toProxy(), ...n)
|
|
60
|
-
) : t === "root" ? () => e.root().toProxy() : t === "nodes" ? e.nodes.map((r) => r.toProxy()) : t === "first" || t === "last" ? e[t].toProxy() : e[t] : e[t];
|
|
61
|
-
},
|
|
62
|
-
set(e, t, r) {
|
|
63
|
-
return e[t] === r || (e[t] = r, (t === "name" || t === "params" || t === "selector") && e.markDirty()), !0;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
index(e) {
|
|
68
|
-
return typeof e == "number" ? e : (e.proxyOf && (e = e.proxyOf), this.proxyOf.nodes.indexOf(e));
|
|
69
|
-
}
|
|
70
|
-
insertAfter(e, t) {
|
|
71
|
-
let r = this.index(e), i = this.normalize(t, this.proxyOf.nodes[r]).reverse();
|
|
72
|
-
r = this.index(e);
|
|
73
|
-
for (let o of i) this.proxyOf.nodes.splice(r + 1, 0, o);
|
|
74
|
-
let n;
|
|
75
|
-
for (let o in this.indexes)
|
|
76
|
-
n = this.indexes[o], r < n && (this.indexes[o] = n + i.length);
|
|
77
|
-
return this.markDirty(), this;
|
|
78
|
-
}
|
|
79
|
-
insertBefore(e, t) {
|
|
80
|
-
let r = this.index(e), i = r === 0 ? "prepend" : !1, n = this.normalize(
|
|
81
|
-
t,
|
|
82
|
-
this.proxyOf.nodes[r],
|
|
83
|
-
i
|
|
84
|
-
).reverse();
|
|
85
|
-
r = this.index(e);
|
|
86
|
-
for (let u of n) this.proxyOf.nodes.splice(r, 0, u);
|
|
87
|
-
let o;
|
|
88
|
-
for (let u in this.indexes)
|
|
89
|
-
o = this.indexes[u], r <= o && (this.indexes[u] = o + n.length);
|
|
90
|
-
return this.markDirty(), this;
|
|
91
|
-
}
|
|
92
|
-
normalize(e, t) {
|
|
93
|
-
if (typeof e == "string")
|
|
94
|
-
e = O(d(e).nodes);
|
|
95
|
-
else if (typeof e > "u")
|
|
96
|
-
e = [];
|
|
97
|
-
else if (Array.isArray(e)) {
|
|
98
|
-
e = e.slice(0);
|
|
99
|
-
for (let i of e)
|
|
100
|
-
i.parent && i.parent.removeChild(i, "ignore");
|
|
101
|
-
} else if (e.type === "root" && this.type !== "document") {
|
|
102
|
-
e = e.nodes.slice(0);
|
|
103
|
-
for (let i of e)
|
|
104
|
-
i.parent && i.parent.removeChild(i, "ignore");
|
|
105
|
-
} else if (e.type)
|
|
106
|
-
e = [e];
|
|
107
|
-
else if (e.prop) {
|
|
108
|
-
if (typeof e.value > "u")
|
|
109
|
-
throw new Error("Value field is missed in node creation");
|
|
110
|
-
typeof e.value != "string" && (e.value = String(e.value)), e = [new p(e)];
|
|
111
|
-
} else if (e.selector || e.selectors)
|
|
112
|
-
e = [new l(e)];
|
|
113
|
-
else if (e.name)
|
|
114
|
-
e = [new a(e)];
|
|
115
|
-
else if (e.text)
|
|
116
|
-
e = [new h(e)];
|
|
117
|
-
else
|
|
118
|
-
throw new Error("Unknown node type in node creation");
|
|
119
|
-
return e.map((i) => (i[m] || f.rebuild(i), i = i.proxyOf, i.parent && i.parent.removeChild(i), i[x] && g(i), i.raws || (i.raws = {}), typeof i.raws.before > "u" && t && typeof t.raws.before < "u" && (i.raws.before = t.raws.before.replace(/\S/g, "")), i.parent = this.proxyOf, i));
|
|
120
|
-
}
|
|
121
|
-
prepend(...e) {
|
|
122
|
-
e = e.reverse();
|
|
123
|
-
for (let t of e) {
|
|
124
|
-
let r = this.normalize(t, this.first, "prepend").reverse();
|
|
125
|
-
for (let i of r) this.proxyOf.nodes.unshift(i);
|
|
126
|
-
for (let i in this.indexes)
|
|
127
|
-
this.indexes[i] = this.indexes[i] + r.length;
|
|
128
|
-
}
|
|
129
|
-
return this.markDirty(), this;
|
|
130
|
-
}
|
|
131
|
-
push(e) {
|
|
132
|
-
return e.parent = this, this.proxyOf.nodes.push(e), this;
|
|
133
|
-
}
|
|
134
|
-
removeAll() {
|
|
135
|
-
for (let e of this.proxyOf.nodes) e.parent = void 0;
|
|
136
|
-
return this.proxyOf.nodes = [], this.markDirty(), this;
|
|
137
|
-
}
|
|
138
|
-
removeChild(e) {
|
|
139
|
-
e = this.index(e), this.proxyOf.nodes[e].parent = void 0, this.proxyOf.nodes.splice(e, 1);
|
|
140
|
-
let t;
|
|
141
|
-
for (let r in this.indexes)
|
|
142
|
-
t = this.indexes[r], t >= e && (this.indexes[r] = t - 1);
|
|
143
|
-
return this.markDirty(), this;
|
|
144
|
-
}
|
|
145
|
-
replaceValues(e, t, r) {
|
|
146
|
-
return r || (r = t, t = {}), this.walkDecls((i) => {
|
|
147
|
-
t.props && !t.props.includes(i.prop) || t.fast && !i.value.includes(t.fast) || (i.value = i.value.replace(e, r));
|
|
148
|
-
}), this.markDirty(), this;
|
|
149
|
-
}
|
|
150
|
-
some(e) {
|
|
151
|
-
return this.nodes.some(e);
|
|
152
|
-
}
|
|
153
|
-
walk(e) {
|
|
154
|
-
return this.each((t, r) => {
|
|
155
|
-
let i;
|
|
156
|
-
try {
|
|
157
|
-
i = e(t, r);
|
|
158
|
-
} catch (n) {
|
|
159
|
-
throw t.addToError(n);
|
|
160
|
-
}
|
|
161
|
-
return i !== !1 && t.walk && (i = t.walk(e)), i;
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
walkAtRules(e, t) {
|
|
165
|
-
return t ? e instanceof RegExp ? this.walk((r, i) => {
|
|
166
|
-
if (r.type === "atrule" && e.test(r.name))
|
|
167
|
-
return t(r, i);
|
|
168
|
-
}) : this.walk((r, i) => {
|
|
169
|
-
if (r.type === "atrule" && r.name === e)
|
|
170
|
-
return t(r, i);
|
|
171
|
-
}) : (t = e, this.walk((r, i) => {
|
|
172
|
-
if (r.type === "atrule")
|
|
173
|
-
return t(r, i);
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
walkComments(e) {
|
|
177
|
-
return this.walk((t, r) => {
|
|
178
|
-
if (t.type === "comment")
|
|
179
|
-
return e(t, r);
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
walkDecls(e, t) {
|
|
183
|
-
return t ? e instanceof RegExp ? this.walk((r, i) => {
|
|
184
|
-
if (r.type === "decl" && e.test(r.prop))
|
|
185
|
-
return t(r, i);
|
|
186
|
-
}) : this.walk((r, i) => {
|
|
187
|
-
if (r.type === "decl" && r.prop === e)
|
|
188
|
-
return t(r, i);
|
|
189
|
-
}) : (t = e, this.walk((r, i) => {
|
|
190
|
-
if (r.type === "decl")
|
|
191
|
-
return t(r, i);
|
|
192
|
-
}));
|
|
193
|
-
}
|
|
194
|
-
walkRules(e, t) {
|
|
195
|
-
return t ? e instanceof RegExp ? this.walk((r, i) => {
|
|
196
|
-
if (r.type === "rule" && e.test(r.selector))
|
|
197
|
-
return t(r, i);
|
|
198
|
-
}) : this.walk((r, i) => {
|
|
199
|
-
if (r.type === "rule" && r.selector === e)
|
|
200
|
-
return t(r, i);
|
|
201
|
-
}) : (t = e, this.walk((r, i) => {
|
|
202
|
-
if (r.type === "rule")
|
|
203
|
-
return t(r, i);
|
|
204
|
-
}));
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
return f.registerParse = (s) => {
|
|
208
|
-
d = s;
|
|
209
|
-
}, f.registerRule = (s) => {
|
|
210
|
-
l = s;
|
|
211
|
-
}, f.registerAtRule = (s) => {
|
|
212
|
-
a = s;
|
|
213
|
-
}, f.registerRoot = (s) => {
|
|
214
|
-
w = s;
|
|
215
|
-
}, y = f, f.default = f, f.rebuild = (s) => {
|
|
216
|
-
s.type === "atrule" ? Object.setPrototypeOf(s, a.prototype) : s.type === "rule" ? Object.setPrototypeOf(s, l.prototype) : s.type === "decl" ? Object.setPrototypeOf(s, p.prototype) : s.type === "comment" ? Object.setPrototypeOf(s, h.prototype) : s.type === "root" && Object.setPrototypeOf(s, w.prototype), s[m] = !0, s.nodes && s.nodes.forEach((e) => {
|
|
217
|
-
f.rebuild(e);
|
|
218
|
-
});
|
|
219
|
-
}, y;
|
|
220
|
-
}
|
|
221
|
-
export {
|
|
222
|
-
j as __require
|
|
223
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { __require as q } from "./index-picocolors.browser.js";
|
|
2
|
-
import L from "./index-___vite-browser-external.js";
|
|
3
|
-
var m, S;
|
|
4
|
-
function w() {
|
|
5
|
-
if (S) return m;
|
|
6
|
-
S = 1;
|
|
7
|
-
let f = /* @__PURE__ */ q(), d = L;
|
|
8
|
-
class h extends Error {
|
|
9
|
-
constructor(t, n, i, r, l, a) {
|
|
10
|
-
super(t), this.name = "CssSyntaxError", this.reason = t, l && (this.file = l), r && (this.source = r), a && (this.plugin = a), typeof n < "u" && typeof i < "u" && (typeof n == "number" ? (this.line = n, this.column = i) : (this.line = n.line, this.column = n.column, this.endLine = i.line, this.endColumn = i.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, h);
|
|
11
|
-
}
|
|
12
|
-
setMessage() {
|
|
13
|
-
this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", typeof this.line < "u" && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
|
|
14
|
-
}
|
|
15
|
-
showSourceCode(t) {
|
|
16
|
-
if (!this.source) return "";
|
|
17
|
-
let n = this.source;
|
|
18
|
-
t == null && (t = f.isColorSupported);
|
|
19
|
-
let i = (e) => e, r = (e) => e, l = (e) => e;
|
|
20
|
-
if (t) {
|
|
21
|
-
let { bold: e, gray: c, red: o } = f.createColors(!0);
|
|
22
|
-
r = (s) => e(o(s)), i = (s) => c(s), d && (l = (s) => d(s));
|
|
23
|
-
}
|
|
24
|
-
let a = n.split(/\r?\n/), g = Math.max(this.line - 3, 0), p = Math.min(this.line + 2, a.length), x = String(p).length;
|
|
25
|
-
return a.slice(g, p).map((e, c) => {
|
|
26
|
-
let o = g + 1 + c, s = " " + (" " + o).slice(-x) + " | ";
|
|
27
|
-
if (o === this.line) {
|
|
28
|
-
if (e.length > 160) {
|
|
29
|
-
let u = 20, C = Math.max(0, this.column - u), E = Math.max(
|
|
30
|
-
this.column + u,
|
|
31
|
-
this.endColumn + u
|
|
32
|
-
), b = e.slice(C, E), M = i(s.replace(/\d/g, " ")) + e.slice(0, Math.min(this.column - 1, u - 1)).replace(/[^\t]/g, " ");
|
|
33
|
-
return r(">") + i(s) + l(b) + `
|
|
34
|
-
` + M + r("^");
|
|
35
|
-
}
|
|
36
|
-
let y = i(s.replace(/\d/g, " ")) + e.slice(0, this.column - 1).replace(/[^\t]/g, " ");
|
|
37
|
-
return r(">") + i(s) + l(e) + `
|
|
38
|
-
` + y + r("^");
|
|
39
|
-
}
|
|
40
|
-
return " " + i(s) + l(e);
|
|
41
|
-
}).join(`
|
|
42
|
-
`);
|
|
43
|
-
}
|
|
44
|
-
toString() {
|
|
45
|
-
let t = this.showSourceCode();
|
|
46
|
-
return t && (t = `
|
|
47
|
-
|
|
48
|
-
` + t + `
|
|
49
|
-
`), this.name + ": " + this.message + t;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return m = h, h.default = h, m;
|
|
53
|
-
}
|
|
54
|
-
export {
|
|
55
|
-
w as __require
|
|
56
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __require as o } from "./index-node4.js";
|
|
2
|
-
var i, t;
|
|
3
|
-
function p() {
|
|
4
|
-
if (t) return i;
|
|
5
|
-
t = 1;
|
|
6
|
-
let a = o();
|
|
7
|
-
class e extends a {
|
|
8
|
-
get variable() {
|
|
9
|
-
return this.prop.startsWith("--") || this.prop[0] === "$";
|
|
10
|
-
}
|
|
11
|
-
constructor(r) {
|
|
12
|
-
r && typeof r.value < "u" && typeof r.value != "string" && (r = { ...r, value: String(r.value) }), super(r), this.type = "decl";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return i = e, e.default = e, i;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
p as __require
|
|
19
|
-
};
|
package/dist/index-decode2.js
DELETED