@arc-ui/components 12.0.0-beta.22 → 12.0.0-beta.23
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/lib/Alert/Alert.cjs +22 -21
- package/lib/Alert/Alert.mjs +22 -21
- package/lib/Alert/styles.css +1 -1
- package/lib/Align/styles.css +1 -1
- package/lib/AppButton/styles.css +1 -1
- package/lib/Avatar/styles.css +1 -1
- package/lib/AvatarGroup/styles.css +1 -1
- package/lib/Badge/styles.css +1 -1
- package/lib/Banner/Banner.cjs +1 -1
- package/lib/Banner/Banner.mjs +1 -1
- package/lib/Box/styles.css +1 -1
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs +12 -3
- package/lib/Breadcrumbs/Breadcrumbs.mjs +12 -3
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +2 -2
- package/lib/Calendar/Calendar.mjs +2 -2
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/styles.css +1 -1
- package/lib/Carousel/Carousel.cjs +11 -5
- package/lib/Carousel/Carousel.mjs +8 -2
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/Checkbox.cjs +85 -11
- package/lib/Checkbox/Checkbox.mjs +87 -9
- package/lib/Checkbox/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/ComboBox.cjs +276 -11
- package/lib/ComboBox/ComboBox.mjs +279 -10
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.cjs +5 -6
- package/lib/ContentSwitcher/ContentSwitcher.mjs +5 -6
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +351 -38
- package/lib/DatePicker/DatePicker.mjs +329 -17
- package/lib/DatePicker/styles.css +1 -1
- package/lib/Disclosure/styles.css +1 -1
- package/lib/DisclosureMini/styles.css +1 -1
- package/lib/Download/styles.css +1 -1
- package/lib/Drawer/styles.css +1 -1
- package/lib/Elevation/styles.css +1 -1
- package/lib/Filter/styles.css +1 -1
- package/lib/FormControl/styles.css +1 -1
- package/lib/GhostedHeroBanner/styles.css +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.cjs +55 -43
- package/lib/GradientPageBackground/GradientPageBackground.mjs +55 -43
- package/lib/GradientPageBackground/styles.css +1 -1
- package/lib/Grid/styles.css +1 -1
- package/lib/Group/styles.css +1 -1
- package/lib/Heading/styles.css +1 -1
- package/lib/HeroBanner/HeroBanner.cjs +1 -1
- package/lib/HeroBanner/HeroBanner.mjs +1 -1
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/HeroButton.cjs +77 -9
- package/lib/HeroButton/HeroButton.mjs +80 -8
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/styles.css +1 -1
- package/lib/Icon/styles.css +1 -1
- package/lib/Image/styles.css +1 -1
- package/lib/ImpactCard/ImpactCard.cjs +3 -3
- package/lib/ImpactCard/ImpactCard.mjs +3 -3
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +6 -6
- package/lib/InformationCard/InformationCard.mjs +6 -6
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/Link.cjs +1 -1
- package/lib/Link/Link.mjs +1 -1
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/MediaCard.cjs +53 -14
- package/lib/MediaCard/MediaCard.mjs +55 -12
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +1327 -25
- package/lib/Menu/Menu.mjs +1292 -9
- package/lib/Menu/styles.css +1 -1
- package/lib/Modal/styles.css +1 -1
- package/lib/NavigationHeader/NavigationHeader.cjs +743 -16
- package/lib/NavigationHeader/NavigationHeader.mjs +734 -7
- package/lib/NavigationHeader/styles.css +1 -1
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +138 -7
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +140 -5
- package/lib/ProgressStepperOverflow/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +48 -7
- package/lib/RadioCardGroup/RadioCardGroup.mjs +48 -8
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/RadioGroup.cjs +50 -8
- package/lib/RadioGroup/RadioGroup.mjs +49 -8
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/Section.cjs +1 -1
- package/lib/Section/Section.mjs +1 -1
- package/lib/Section/styles.css +1 -1
- package/lib/Select/styles.css +1 -1
- package/lib/SiteFooter/SiteFooter.cjs +1 -1
- package/lib/SiteFooter/SiteFooter.mjs +1 -1
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +6 -5
- package/lib/SiteFooterV2/SiteFooterV2.mjs +6 -5
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +440 -15
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +435 -11
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/styles.css +1 -1
- package/lib/Spinner/styles.css +1 -1
- package/lib/Surface/styles.css +1 -1
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +4 -5
- package/lib/TabbedBanner/TabbedBanner.mjs +4 -5
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.mjs +1 -1
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/Tag.cjs +9 -9
- package/lib/Tag/Tag.mjs +9 -9
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +1 -1
- package/lib/TemplateBanner/TemplateBanner.mjs +1 -1
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +2 -53
- package/lib/TextArea/TextArea.mjs +2 -53
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/styles.css +1 -1
- package/lib/Theme/Theme.cjs +1 -1
- package/lib/Theme/Theme.mjs +1 -1
- package/lib/Theme/styles.css +1 -1
- package/lib/ThemeIcon/styles.css +1 -1
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/TypographyCard.cjs +3 -3
- package/lib/TypographyCard/TypographyCard.mjs +3 -3
- package/lib/TypographyCard/styles.css +1 -1
- package/lib/UniversalHeader/styles.css +1 -1
- package/lib/VerticalSpace/styles.css +1 -1
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/{Calendar-B-va25n2.cjs → Calendar-Bfdgf5q1.cjs} +1 -1
- package/lib/_shared/cjs/{ContentSwitcherList-bCEzIPN2.cjs → ContentSwitcherList-pcYtuT6L.cjs} +8 -0
- package/lib/_shared/cjs/{Link-7xUgVf1I.cjs → Link-C3OSQIIk.cjs} +3 -1
- package/lib/_shared/cjs/{Section-wUVdzmGA.cjs → Section-Bz2fwj8Z.cjs} +2 -2
- package/lib/_shared/cjs/{TemplateBanner-CImrJ9ON.cjs → TemplateBanner-COymAI91.cjs} +2 -2
- package/lib/_shared/cjs/{arc-breakpoints-DWUgmeLA.cjs → arc-breakpoints-CS8JVk5T.cjs} +1 -1
- package/lib/_shared/cjs/{index.es-DlNskPlN.cjs → index.es-fkulh7qu.cjs} +1 -1
- package/lib/_shared/esm/{Calendar-Bd2_eT1Y.mjs → Calendar-Drh_NJ9I.mjs} +1 -1
- package/lib/_shared/esm/{ContentSwitcherList-bCQz0qkU.mjs → ContentSwitcherList-DwHfU3no.mjs} +10 -3
- package/lib/_shared/esm/{Link-Biyg9qBH.mjs → Link-DxjGH_7f.mjs} +3 -1
- package/lib/_shared/esm/{Section-DDygQ5Az.mjs → Section-7InCvzfh.mjs} +2 -2
- package/lib/_shared/esm/{TemplateBanner-DeHjliNP.mjs → TemplateBanner-Dkgzu3A5.mjs} +2 -2
- package/lib/_shared/esm/{arc-breakpoints-D5hR5m3t.mjs → arc-breakpoints-D7Ie4kBt.mjs} +1 -1
- package/lib/_shared/esm/{index-BDWwJ5x2.mjs → index-BWkI4Dwz.mjs} +1 -1
- package/lib/_shared/esm/{index.es-C3WqfFKH.mjs → index.es-CtRkzfKP.mjs} +2 -2
- package/lib/index.cjs +300 -283
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +28 -3
- package/lib/index.d.mts +28 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +301 -284
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +10 -10
- package/package.json +8 -8
- package/lib/_shared/cjs/BreadcrumbsLink-CDmk3Y3m.cjs +0 -18
- package/lib/_shared/cjs/Checkbox-DfZMjO1Y.cjs +0 -88
- package/lib/_shared/cjs/ComboBox-BGUhlqx1.cjs +0 -281
- package/lib/_shared/cjs/ContentSwitcherTab-B387Qs3I.cjs +0 -14
- package/lib/_shared/cjs/DatePicker-Dt4faA_N.cjs +0 -334
- package/lib/_shared/cjs/HeroButton-CrzkTUwP.cjs +0 -82
- package/lib/_shared/cjs/MediaCard-BEZFbiYO.cjs +0 -57
- package/lib/_shared/cjs/MenuItemMultiLevelContent-vLr6hSBm.cjs +0 -1328
- package/lib/_shared/cjs/ProgressStepperOverflow-BAGZNC26.cjs +0 -142
- package/lib/_shared/cjs/RadioCardGroupInput-CeUM3yPS.cjs +0 -53
- package/lib/_shared/cjs/RadioGroupInput-w2qkfsnG.cjs +0 -54
- package/lib/_shared/cjs/SiteHeaderV2NavItemWithSubNav-CagFKPEa.cjs +0 -445
- package/lib/_shared/cjs/kebabCase-D5yA6u-V.cjs +0 -743
- package/lib/_shared/cjs/keynames-Cx13-hWr.cjs +0 -8
- package/lib/_shared/esm/BreadcrumbsLink-BxTurGNa.mjs +0 -16
- package/lib/_shared/esm/Checkbox-CwOHzlQF.mjs +0 -86
- package/lib/_shared/esm/ComboBox-CRlJjeev.mjs +0 -279
- package/lib/_shared/esm/ContentSwitcherTab-CfC3PGeZ.mjs +0 -12
- package/lib/_shared/esm/DatePicker-DT4OEzxP.mjs +0 -324
- package/lib/_shared/esm/HeroButton-jdjjV_Gf.mjs +0 -80
- package/lib/_shared/esm/MediaCard-DqMaNWsE.mjs +0 -55
- package/lib/_shared/esm/MenuItemMultiLevelContent-JTOHqpzg.mjs +0 -1296
- package/lib/_shared/esm/ProgressStepperOverflow-fPkLltVO.mjs +0 -140
- package/lib/_shared/esm/RadioCardGroupInput-D7W28geB.mjs +0 -50
- package/lib/_shared/esm/RadioGroupInput-zAWSV29m.mjs +0 -50
- package/lib/_shared/esm/SiteHeaderV2NavItemWithSubNav-CxGwdV6u.mjs +0 -439
- package/lib/_shared/esm/kebabCase-CCEMRBfd.mjs +0 -737
- package/lib/_shared/esm/keynames-B5whqsjh.mjs +0 -8
|
@@ -1,737 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
|
-
import React__default, { forwardRef, useContext, createContext } from 'react';
|
|
3
|
-
import { c as classNames, g as getDefaultExportFromCjs } from './index-5C0-U8cc.mjs';
|
|
4
|
-
import { s as suffixModifier } from './suffix-modifier-B_pO0UkF.mjs';
|
|
5
|
-
import { C as Context } from './Surface-Colbp3Zx.mjs';
|
|
6
|
-
import { T as ThemeIcon } from './ThemeIcon-CN_Ed5b1.mjs';
|
|
7
|
-
import { b as require_Symbol, a as requireIsSymbol } from './isSymbol-DgWNE2Tm.mjs';
|
|
8
|
-
|
|
9
|
-
var NavigationHeaderButton = forwardRef(function (_a, ref) {
|
|
10
|
-
var isActive = _a.isActive, children = _a.children, onClick = _a.onClick, _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, props = __rest(_a, ["isActive", "children", "onClick", "isPadded"]);
|
|
11
|
-
var surface = useContext(Context).surface;
|
|
12
|
-
return (React__default.createElement("button", __assign({}, props, { ref: ref, onClick: onClick, className: classNames("arc-NavigationHeaderButton", suffixModifier("arc-NavigationHeaderButton--on", surface), {
|
|
13
|
-
"arc-NavigationHeaderButton--active": isActive,
|
|
14
|
-
"arc-NavigationHeaderButton--padded": isPadded,
|
|
15
|
-
}) }), children));
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
var NavigationHeaderCloseButton = React__default.forwardRef(function (_a, ref) {
|
|
19
|
-
var onClick = _a.onClick, props = __rest(_a, ["onClick"]);
|
|
20
|
-
return (React__default.createElement("button", __assign({}, props, { ref: ref, "aria-label": "close", onClick: onClick, className: "arc-NavigationHeaderCloseButton" }),
|
|
21
|
-
React__default.createElement(ThemeIcon, { size: 32, icon: "navigationHeaderClose" })));
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
var NavigationHeaderContext = createContext(null);
|
|
25
|
-
|
|
26
|
-
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
|
27
|
-
|
|
28
|
-
var cssesc_1;
|
|
29
|
-
var hasRequiredCssesc;
|
|
30
|
-
|
|
31
|
-
function requireCssesc () {
|
|
32
|
-
if (hasRequiredCssesc) return cssesc_1;
|
|
33
|
-
hasRequiredCssesc = 1;
|
|
34
|
-
|
|
35
|
-
var object = {};
|
|
36
|
-
var hasOwnProperty = object.hasOwnProperty;
|
|
37
|
-
var merge = function merge(options, defaults) {
|
|
38
|
-
if (!options) {
|
|
39
|
-
return defaults;
|
|
40
|
-
}
|
|
41
|
-
var result = {};
|
|
42
|
-
for (var key in defaults) {
|
|
43
|
-
// `if (defaults.hasOwnProperty(key) { … }` is not needed here, since
|
|
44
|
-
// only recognized option names are used.
|
|
45
|
-
result[key] = hasOwnProperty.call(options, key) ? options[key] : defaults[key];
|
|
46
|
-
}
|
|
47
|
-
return result;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
var regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/;
|
|
51
|
-
var regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/;
|
|
52
|
-
var regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
|
|
53
|
-
|
|
54
|
-
// https://mathiasbynens.be/notes/css-escapes#css
|
|
55
|
-
var cssesc = function cssesc(string, options) {
|
|
56
|
-
options = merge(options, cssesc.options);
|
|
57
|
-
if (options.quotes != 'single' && options.quotes != 'double') {
|
|
58
|
-
options.quotes = 'single';
|
|
59
|
-
}
|
|
60
|
-
var quote = options.quotes == 'double' ? '"' : '\'';
|
|
61
|
-
var isIdentifier = options.isIdentifier;
|
|
62
|
-
|
|
63
|
-
var firstChar = string.charAt(0);
|
|
64
|
-
var output = '';
|
|
65
|
-
var counter = 0;
|
|
66
|
-
var length = string.length;
|
|
67
|
-
while (counter < length) {
|
|
68
|
-
var character = string.charAt(counter++);
|
|
69
|
-
var codePoint = character.charCodeAt();
|
|
70
|
-
var value = void 0;
|
|
71
|
-
// If it’s not a printable ASCII character…
|
|
72
|
-
if (codePoint < 0x20 || codePoint > 0x7E) {
|
|
73
|
-
if (codePoint >= 0xD800 && codePoint <= 0xDBFF && counter < length) {
|
|
74
|
-
// It’s a high surrogate, and there is a next character.
|
|
75
|
-
var extra = string.charCodeAt(counter++);
|
|
76
|
-
if ((extra & 0xFC00) == 0xDC00) {
|
|
77
|
-
// next character is low surrogate
|
|
78
|
-
codePoint = ((codePoint & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000;
|
|
79
|
-
} else {
|
|
80
|
-
// It’s an unmatched surrogate; only append this code unit, in case
|
|
81
|
-
// the next code unit is the high surrogate of a surrogate pair.
|
|
82
|
-
counter--;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
|
|
86
|
-
} else {
|
|
87
|
-
if (options.escapeEverything) {
|
|
88
|
-
if (regexAnySingleEscape.test(character)) {
|
|
89
|
-
value = '\\' + character;
|
|
90
|
-
} else {
|
|
91
|
-
value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
|
|
92
|
-
}
|
|
93
|
-
} else if (/[\t\n\f\r\x0B]/.test(character)) {
|
|
94
|
-
value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
|
|
95
|
-
} else if (character == '\\' || !isIdentifier && (character == '"' && quote == character || character == '\'' && quote == character) || isIdentifier && regexSingleEscape.test(character)) {
|
|
96
|
-
value = '\\' + character;
|
|
97
|
-
} else {
|
|
98
|
-
value = character;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
output += value;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (isIdentifier) {
|
|
105
|
-
if (/^-[-\d]/.test(output)) {
|
|
106
|
-
output = '\\-' + output.slice(1);
|
|
107
|
-
} else if (/\d/.test(firstChar)) {
|
|
108
|
-
output = '\\3' + firstChar + ' ' + output.slice(1);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Remove spaces after `\HEX` escapes that are not followed by a hex digit,
|
|
113
|
-
// since they’re redundant. Note that this is only possible if the escape
|
|
114
|
-
// sequence isn’t preceded by an odd number of backslashes.
|
|
115
|
-
output = output.replace(regexExcessiveSpaces, function ($0, $1, $2) {
|
|
116
|
-
if ($1 && $1.length % 2) {
|
|
117
|
-
// It’s not safe to remove the space, so don’t.
|
|
118
|
-
return $0;
|
|
119
|
-
}
|
|
120
|
-
// Strip the space.
|
|
121
|
-
return ($1 || '') + $2;
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
if (!isIdentifier && options.wrap) {
|
|
125
|
-
return quote + output + quote;
|
|
126
|
-
}
|
|
127
|
-
return output;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
// Expose default options (so they can be overridden globally).
|
|
131
|
-
cssesc.options = {
|
|
132
|
-
'escapeEverything': false,
|
|
133
|
-
'isIdentifier': false,
|
|
134
|
-
'quotes': 'single',
|
|
135
|
-
'wrap': false
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
cssesc.version = '3.0.0';
|
|
139
|
-
|
|
140
|
-
cssesc_1 = cssesc;
|
|
141
|
-
return cssesc_1;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
var cssescExports = requireCssesc();
|
|
145
|
-
var cssEscape = /*@__PURE__*/getDefaultExportFromCjs(cssescExports);
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* A specialized version of `_.reduce` for arrays without support for
|
|
149
|
-
* iteratee shorthands.
|
|
150
|
-
*
|
|
151
|
-
* @private
|
|
152
|
-
* @param {Array} [array] The array to iterate over.
|
|
153
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
154
|
-
* @param {*} [accumulator] The initial value.
|
|
155
|
-
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
156
|
-
* the initial value.
|
|
157
|
-
* @returns {*} Returns the accumulated value.
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
|
-
var _arrayReduce;
|
|
161
|
-
var hasRequired_arrayReduce;
|
|
162
|
-
|
|
163
|
-
function require_arrayReduce () {
|
|
164
|
-
if (hasRequired_arrayReduce) return _arrayReduce;
|
|
165
|
-
hasRequired_arrayReduce = 1;
|
|
166
|
-
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
167
|
-
var index = -1,
|
|
168
|
-
length = array == null ? 0 : array.length;
|
|
169
|
-
|
|
170
|
-
if (initAccum && length) {
|
|
171
|
-
accumulator = array[++index];
|
|
172
|
-
}
|
|
173
|
-
while (++index < length) {
|
|
174
|
-
accumulator = iteratee(accumulator, array[index], index, array);
|
|
175
|
-
}
|
|
176
|
-
return accumulator;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
_arrayReduce = arrayReduce;
|
|
180
|
-
return _arrayReduce;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
185
|
-
*
|
|
186
|
-
* @private
|
|
187
|
-
* @param {Object} object The object to query.
|
|
188
|
-
* @returns {Function} Returns the new accessor function.
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
|
-
var _basePropertyOf;
|
|
192
|
-
var hasRequired_basePropertyOf;
|
|
193
|
-
|
|
194
|
-
function require_basePropertyOf () {
|
|
195
|
-
if (hasRequired_basePropertyOf) return _basePropertyOf;
|
|
196
|
-
hasRequired_basePropertyOf = 1;
|
|
197
|
-
function basePropertyOf(object) {
|
|
198
|
-
return function(key) {
|
|
199
|
-
return object == null ? undefined : object[key];
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
_basePropertyOf = basePropertyOf;
|
|
204
|
-
return _basePropertyOf;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
var _deburrLetter;
|
|
208
|
-
var hasRequired_deburrLetter;
|
|
209
|
-
|
|
210
|
-
function require_deburrLetter () {
|
|
211
|
-
if (hasRequired_deburrLetter) return _deburrLetter;
|
|
212
|
-
hasRequired_deburrLetter = 1;
|
|
213
|
-
var basePropertyOf = require_basePropertyOf();
|
|
214
|
-
|
|
215
|
-
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
216
|
-
var deburredLetters = {
|
|
217
|
-
// Latin-1 Supplement block.
|
|
218
|
-
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
|
219
|
-
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
|
220
|
-
'\xc7': 'C', '\xe7': 'c',
|
|
221
|
-
'\xd0': 'D', '\xf0': 'd',
|
|
222
|
-
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
|
223
|
-
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
|
224
|
-
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
|
225
|
-
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
|
226
|
-
'\xd1': 'N', '\xf1': 'n',
|
|
227
|
-
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
|
228
|
-
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
|
229
|
-
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
|
230
|
-
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
|
231
|
-
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
|
232
|
-
'\xc6': 'Ae', '\xe6': 'ae',
|
|
233
|
-
'\xde': 'Th', '\xfe': 'th',
|
|
234
|
-
'\xdf': 'ss',
|
|
235
|
-
// Latin Extended-A block.
|
|
236
|
-
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
|
237
|
-
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
|
238
|
-
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
|
239
|
-
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
|
240
|
-
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
|
241
|
-
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
|
242
|
-
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
|
243
|
-
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
|
244
|
-
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
|
245
|
-
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
|
246
|
-
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
|
247
|
-
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
|
248
|
-
'\u0134': 'J', '\u0135': 'j',
|
|
249
|
-
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
|
250
|
-
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
|
251
|
-
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
|
252
|
-
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
|
253
|
-
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
|
254
|
-
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
|
255
|
-
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
|
256
|
-
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
|
257
|
-
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
|
258
|
-
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
|
259
|
-
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
|
260
|
-
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
|
261
|
-
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
|
262
|
-
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
|
263
|
-
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
|
264
|
-
'\u0174': 'W', '\u0175': 'w',
|
|
265
|
-
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
|
266
|
-
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
|
267
|
-
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
|
268
|
-
'\u0132': 'IJ', '\u0133': 'ij',
|
|
269
|
-
'\u0152': 'Oe', '\u0153': 'oe',
|
|
270
|
-
'\u0149': "'n", '\u017f': 's'
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
275
|
-
* letters to basic Latin letters.
|
|
276
|
-
*
|
|
277
|
-
* @private
|
|
278
|
-
* @param {string} letter The matched letter to deburr.
|
|
279
|
-
* @returns {string} Returns the deburred letter.
|
|
280
|
-
*/
|
|
281
|
-
var deburrLetter = basePropertyOf(deburredLetters);
|
|
282
|
-
|
|
283
|
-
_deburrLetter = deburrLetter;
|
|
284
|
-
return _deburrLetter;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
289
|
-
* shorthands.
|
|
290
|
-
*
|
|
291
|
-
* @private
|
|
292
|
-
* @param {Array} [array] The array to iterate over.
|
|
293
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
294
|
-
* @returns {Array} Returns the new mapped array.
|
|
295
|
-
*/
|
|
296
|
-
|
|
297
|
-
var _arrayMap;
|
|
298
|
-
var hasRequired_arrayMap;
|
|
299
|
-
|
|
300
|
-
function require_arrayMap () {
|
|
301
|
-
if (hasRequired_arrayMap) return _arrayMap;
|
|
302
|
-
hasRequired_arrayMap = 1;
|
|
303
|
-
function arrayMap(array, iteratee) {
|
|
304
|
-
var index = -1,
|
|
305
|
-
length = array == null ? 0 : array.length,
|
|
306
|
-
result = Array(length);
|
|
307
|
-
|
|
308
|
-
while (++index < length) {
|
|
309
|
-
result[index] = iteratee(array[index], index, array);
|
|
310
|
-
}
|
|
311
|
-
return result;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
_arrayMap = arrayMap;
|
|
315
|
-
return _arrayMap;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Checks if `value` is classified as an `Array` object.
|
|
320
|
-
*
|
|
321
|
-
* @static
|
|
322
|
-
* @memberOf _
|
|
323
|
-
* @since 0.1.0
|
|
324
|
-
* @category Lang
|
|
325
|
-
* @param {*} value The value to check.
|
|
326
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
327
|
-
* @example
|
|
328
|
-
*
|
|
329
|
-
* _.isArray([1, 2, 3]);
|
|
330
|
-
* // => true
|
|
331
|
-
*
|
|
332
|
-
* _.isArray(document.body.children);
|
|
333
|
-
* // => false
|
|
334
|
-
*
|
|
335
|
-
* _.isArray('abc');
|
|
336
|
-
* // => false
|
|
337
|
-
*
|
|
338
|
-
* _.isArray(_.noop);
|
|
339
|
-
* // => false
|
|
340
|
-
*/
|
|
341
|
-
|
|
342
|
-
var isArray_1;
|
|
343
|
-
var hasRequiredIsArray;
|
|
344
|
-
|
|
345
|
-
function requireIsArray () {
|
|
346
|
-
if (hasRequiredIsArray) return isArray_1;
|
|
347
|
-
hasRequiredIsArray = 1;
|
|
348
|
-
var isArray = Array.isArray;
|
|
349
|
-
|
|
350
|
-
isArray_1 = isArray;
|
|
351
|
-
return isArray_1;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
var _baseToString;
|
|
355
|
-
var hasRequired_baseToString;
|
|
356
|
-
|
|
357
|
-
function require_baseToString () {
|
|
358
|
-
if (hasRequired_baseToString) return _baseToString;
|
|
359
|
-
hasRequired_baseToString = 1;
|
|
360
|
-
var Symbol = require_Symbol(),
|
|
361
|
-
arrayMap = require_arrayMap(),
|
|
362
|
-
isArray = requireIsArray(),
|
|
363
|
-
isSymbol = requireIsSymbol();
|
|
364
|
-
|
|
365
|
-
/** Used as references for various `Number` constants. */
|
|
366
|
-
var INFINITY = 1 / 0;
|
|
367
|
-
|
|
368
|
-
/** Used to convert symbols to primitives and strings. */
|
|
369
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
370
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
374
|
-
* values to empty strings.
|
|
375
|
-
*
|
|
376
|
-
* @private
|
|
377
|
-
* @param {*} value The value to process.
|
|
378
|
-
* @returns {string} Returns the string.
|
|
379
|
-
*/
|
|
380
|
-
function baseToString(value) {
|
|
381
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
382
|
-
if (typeof value == 'string') {
|
|
383
|
-
return value;
|
|
384
|
-
}
|
|
385
|
-
if (isArray(value)) {
|
|
386
|
-
// Recursively convert values (susceptible to call stack limits).
|
|
387
|
-
return arrayMap(value, baseToString) + '';
|
|
388
|
-
}
|
|
389
|
-
if (isSymbol(value)) {
|
|
390
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
391
|
-
}
|
|
392
|
-
var result = (value + '');
|
|
393
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
_baseToString = baseToString;
|
|
397
|
-
return _baseToString;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
var toString_1;
|
|
401
|
-
var hasRequiredToString;
|
|
402
|
-
|
|
403
|
-
function requireToString () {
|
|
404
|
-
if (hasRequiredToString) return toString_1;
|
|
405
|
-
hasRequiredToString = 1;
|
|
406
|
-
var baseToString = require_baseToString();
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
410
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
411
|
-
*
|
|
412
|
-
* @static
|
|
413
|
-
* @memberOf _
|
|
414
|
-
* @since 4.0.0
|
|
415
|
-
* @category Lang
|
|
416
|
-
* @param {*} value The value to convert.
|
|
417
|
-
* @returns {string} Returns the converted string.
|
|
418
|
-
* @example
|
|
419
|
-
*
|
|
420
|
-
* _.toString(null);
|
|
421
|
-
* // => ''
|
|
422
|
-
*
|
|
423
|
-
* _.toString(-0);
|
|
424
|
-
* // => '-0'
|
|
425
|
-
*
|
|
426
|
-
* _.toString([1, 2, 3]);
|
|
427
|
-
* // => '1,2,3'
|
|
428
|
-
*/
|
|
429
|
-
function toString(value) {
|
|
430
|
-
return value == null ? '' : baseToString(value);
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
toString_1 = toString;
|
|
434
|
-
return toString_1;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
var deburr_1;
|
|
438
|
-
var hasRequiredDeburr;
|
|
439
|
-
|
|
440
|
-
function requireDeburr () {
|
|
441
|
-
if (hasRequiredDeburr) return deburr_1;
|
|
442
|
-
hasRequiredDeburr = 1;
|
|
443
|
-
var deburrLetter = require_deburrLetter(),
|
|
444
|
-
toString = requireToString();
|
|
445
|
-
|
|
446
|
-
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
|
447
|
-
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
448
|
-
|
|
449
|
-
/** Used to compose unicode character classes. */
|
|
450
|
-
var rsComboMarksRange = '\\u0300-\\u036f',
|
|
451
|
-
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
|
452
|
-
rsComboSymbolsRange = '\\u20d0-\\u20ff',
|
|
453
|
-
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
|
454
|
-
|
|
455
|
-
/** Used to compose unicode capture groups. */
|
|
456
|
-
var rsCombo = '[' + rsComboRange + ']';
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
|
460
|
-
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
|
461
|
-
*/
|
|
462
|
-
var reComboMark = RegExp(rsCombo, 'g');
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Deburrs `string` by converting
|
|
466
|
-
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
|
467
|
-
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
|
468
|
-
* letters to basic Latin letters and removing
|
|
469
|
-
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
|
470
|
-
*
|
|
471
|
-
* @static
|
|
472
|
-
* @memberOf _
|
|
473
|
-
* @since 3.0.0
|
|
474
|
-
* @category String
|
|
475
|
-
* @param {string} [string=''] The string to deburr.
|
|
476
|
-
* @returns {string} Returns the deburred string.
|
|
477
|
-
* @example
|
|
478
|
-
*
|
|
479
|
-
* _.deburr('déjà vu');
|
|
480
|
-
* // => 'deja vu'
|
|
481
|
-
*/
|
|
482
|
-
function deburr(string) {
|
|
483
|
-
string = toString(string);
|
|
484
|
-
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
deburr_1 = deburr;
|
|
488
|
-
return deburr_1;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
/** Used to match words composed of alphanumeric characters. */
|
|
492
|
-
|
|
493
|
-
var _asciiWords;
|
|
494
|
-
var hasRequired_asciiWords;
|
|
495
|
-
|
|
496
|
-
function require_asciiWords () {
|
|
497
|
-
if (hasRequired_asciiWords) return _asciiWords;
|
|
498
|
-
hasRequired_asciiWords = 1;
|
|
499
|
-
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Splits an ASCII `string` into an array of its words.
|
|
503
|
-
*
|
|
504
|
-
* @private
|
|
505
|
-
* @param {string} The string to inspect.
|
|
506
|
-
* @returns {Array} Returns the words of `string`.
|
|
507
|
-
*/
|
|
508
|
-
function asciiWords(string) {
|
|
509
|
-
return string.match(reAsciiWord) || [];
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
_asciiWords = asciiWords;
|
|
513
|
-
return _asciiWords;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
/** Used to detect strings that need a more robust regexp to match words. */
|
|
517
|
-
|
|
518
|
-
var _hasUnicodeWord;
|
|
519
|
-
var hasRequired_hasUnicodeWord;
|
|
520
|
-
|
|
521
|
-
function require_hasUnicodeWord () {
|
|
522
|
-
if (hasRequired_hasUnicodeWord) return _hasUnicodeWord;
|
|
523
|
-
hasRequired_hasUnicodeWord = 1;
|
|
524
|
-
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Checks if `string` contains a word composed of Unicode symbols.
|
|
528
|
-
*
|
|
529
|
-
* @private
|
|
530
|
-
* @param {string} string The string to inspect.
|
|
531
|
-
* @returns {boolean} Returns `true` if a word is found, else `false`.
|
|
532
|
-
*/
|
|
533
|
-
function hasUnicodeWord(string) {
|
|
534
|
-
return reHasUnicodeWord.test(string);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
_hasUnicodeWord = hasUnicodeWord;
|
|
538
|
-
return _hasUnicodeWord;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
/** Used to compose unicode character classes. */
|
|
542
|
-
|
|
543
|
-
var _unicodeWords;
|
|
544
|
-
var hasRequired_unicodeWords;
|
|
545
|
-
|
|
546
|
-
function require_unicodeWords () {
|
|
547
|
-
if (hasRequired_unicodeWords) return _unicodeWords;
|
|
548
|
-
hasRequired_unicodeWords = 1;
|
|
549
|
-
var rsAstralRange = '\\ud800-\\udfff',
|
|
550
|
-
rsComboMarksRange = '\\u0300-\\u036f',
|
|
551
|
-
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
|
552
|
-
rsComboSymbolsRange = '\\u20d0-\\u20ff',
|
|
553
|
-
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
|
|
554
|
-
rsDingbatRange = '\\u2700-\\u27bf',
|
|
555
|
-
rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
|
|
556
|
-
rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
|
|
557
|
-
rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
|
|
558
|
-
rsPunctuationRange = '\\u2000-\\u206f',
|
|
559
|
-
rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
|
|
560
|
-
rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
|
|
561
|
-
rsVarRange = '\\ufe0e\\ufe0f',
|
|
562
|
-
rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
563
|
-
|
|
564
|
-
/** Used to compose unicode capture groups. */
|
|
565
|
-
var rsApos = "['\u2019]",
|
|
566
|
-
rsBreak = '[' + rsBreakRange + ']',
|
|
567
|
-
rsCombo = '[' + rsComboRange + ']',
|
|
568
|
-
rsDigits = '\\d+',
|
|
569
|
-
rsDingbat = '[' + rsDingbatRange + ']',
|
|
570
|
-
rsLower = '[' + rsLowerRange + ']',
|
|
571
|
-
rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
|
|
572
|
-
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
|
573
|
-
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
|
574
|
-
rsNonAstral = '[^' + rsAstralRange + ']',
|
|
575
|
-
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
|
576
|
-
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
|
577
|
-
rsUpper = '[' + rsUpperRange + ']',
|
|
578
|
-
rsZWJ = '\\u200d';
|
|
579
|
-
|
|
580
|
-
/** Used to compose unicode regexes. */
|
|
581
|
-
var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
|
|
582
|
-
rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
|
|
583
|
-
rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
|
|
584
|
-
rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
|
|
585
|
-
reOptMod = rsModifier + '?',
|
|
586
|
-
rsOptVar = '[' + rsVarRange + ']?',
|
|
587
|
-
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
|
588
|
-
rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
|
|
589
|
-
rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
|
|
590
|
-
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
|
591
|
-
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
|
|
592
|
-
|
|
593
|
-
/** Used to match complex or compound words. */
|
|
594
|
-
var reUnicodeWord = RegExp([
|
|
595
|
-
rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
|
|
596
|
-
rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
|
|
597
|
-
rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
|
|
598
|
-
rsUpper + '+' + rsOptContrUpper,
|
|
599
|
-
rsOrdUpper,
|
|
600
|
-
rsOrdLower,
|
|
601
|
-
rsDigits,
|
|
602
|
-
rsEmoji
|
|
603
|
-
].join('|'), 'g');
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* Splits a Unicode `string` into an array of its words.
|
|
607
|
-
*
|
|
608
|
-
* @private
|
|
609
|
-
* @param {string} The string to inspect.
|
|
610
|
-
* @returns {Array} Returns the words of `string`.
|
|
611
|
-
*/
|
|
612
|
-
function unicodeWords(string) {
|
|
613
|
-
return string.match(reUnicodeWord) || [];
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
_unicodeWords = unicodeWords;
|
|
617
|
-
return _unicodeWords;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
var words_1;
|
|
621
|
-
var hasRequiredWords;
|
|
622
|
-
|
|
623
|
-
function requireWords () {
|
|
624
|
-
if (hasRequiredWords) return words_1;
|
|
625
|
-
hasRequiredWords = 1;
|
|
626
|
-
var asciiWords = require_asciiWords(),
|
|
627
|
-
hasUnicodeWord = require_hasUnicodeWord(),
|
|
628
|
-
toString = requireToString(),
|
|
629
|
-
unicodeWords = require_unicodeWords();
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* Splits `string` into an array of its words.
|
|
633
|
-
*
|
|
634
|
-
* @static
|
|
635
|
-
* @memberOf _
|
|
636
|
-
* @since 3.0.0
|
|
637
|
-
* @category String
|
|
638
|
-
* @param {string} [string=''] The string to inspect.
|
|
639
|
-
* @param {RegExp|string} [pattern] The pattern to match words.
|
|
640
|
-
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
641
|
-
* @returns {Array} Returns the words of `string`.
|
|
642
|
-
* @example
|
|
643
|
-
*
|
|
644
|
-
* _.words('fred, barney, & pebbles');
|
|
645
|
-
* // => ['fred', 'barney', 'pebbles']
|
|
646
|
-
*
|
|
647
|
-
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
648
|
-
* // => ['fred', 'barney', '&', 'pebbles']
|
|
649
|
-
*/
|
|
650
|
-
function words(string, pattern, guard) {
|
|
651
|
-
string = toString(string);
|
|
652
|
-
pattern = guard ? undefined : pattern;
|
|
653
|
-
|
|
654
|
-
if (pattern === undefined) {
|
|
655
|
-
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
656
|
-
}
|
|
657
|
-
return string.match(pattern) || [];
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
words_1 = words;
|
|
661
|
-
return words_1;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
var _createCompounder;
|
|
665
|
-
var hasRequired_createCompounder;
|
|
666
|
-
|
|
667
|
-
function require_createCompounder () {
|
|
668
|
-
if (hasRequired_createCompounder) return _createCompounder;
|
|
669
|
-
hasRequired_createCompounder = 1;
|
|
670
|
-
var arrayReduce = require_arrayReduce(),
|
|
671
|
-
deburr = requireDeburr(),
|
|
672
|
-
words = requireWords();
|
|
673
|
-
|
|
674
|
-
/** Used to compose unicode capture groups. */
|
|
675
|
-
var rsApos = "['\u2019]";
|
|
676
|
-
|
|
677
|
-
/** Used to match apostrophes. */
|
|
678
|
-
var reApos = RegExp(rsApos, 'g');
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Creates a function like `_.camelCase`.
|
|
682
|
-
*
|
|
683
|
-
* @private
|
|
684
|
-
* @param {Function} callback The function to combine each word.
|
|
685
|
-
* @returns {Function} Returns the new compounder function.
|
|
686
|
-
*/
|
|
687
|
-
function createCompounder(callback) {
|
|
688
|
-
return function(string) {
|
|
689
|
-
return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
|
|
690
|
-
};
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
_createCompounder = createCompounder;
|
|
694
|
-
return _createCompounder;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
var kebabCase_1;
|
|
698
|
-
var hasRequiredKebabCase;
|
|
699
|
-
|
|
700
|
-
function requireKebabCase () {
|
|
701
|
-
if (hasRequiredKebabCase) return kebabCase_1;
|
|
702
|
-
hasRequiredKebabCase = 1;
|
|
703
|
-
var createCompounder = require_createCompounder();
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* Converts `string` to
|
|
707
|
-
* [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
|
|
708
|
-
*
|
|
709
|
-
* @static
|
|
710
|
-
* @memberOf _
|
|
711
|
-
* @since 3.0.0
|
|
712
|
-
* @category String
|
|
713
|
-
* @param {string} [string=''] The string to convert.
|
|
714
|
-
* @returns {string} Returns the kebab cased string.
|
|
715
|
-
* @example
|
|
716
|
-
*
|
|
717
|
-
* _.kebabCase('Foo Bar');
|
|
718
|
-
* // => 'foo-bar'
|
|
719
|
-
*
|
|
720
|
-
* _.kebabCase('fooBar');
|
|
721
|
-
* // => 'foo-bar'
|
|
722
|
-
*
|
|
723
|
-
* _.kebabCase('__FOO_BAR__');
|
|
724
|
-
* // => 'foo-bar'
|
|
725
|
-
*/
|
|
726
|
-
var kebabCase = createCompounder(function(result, word, index) {
|
|
727
|
-
return result + (index ? '-' : '') + word.toLowerCase();
|
|
728
|
-
});
|
|
729
|
-
|
|
730
|
-
kebabCase_1 = kebabCase;
|
|
731
|
-
return kebabCase_1;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
var kebabCaseExports = requireKebabCase();
|
|
735
|
-
var kebabCase = /*@__PURE__*/getDefaultExportFromCjs(kebabCaseExports);
|
|
736
|
-
|
|
737
|
-
export { NavigationHeaderButton as N, NavigationHeaderCloseButton as a, NavigationHeaderContext as b, cssEscape as c, kebabCase as k };
|