@aws-amplify/ui-react 1.2.26-unstable.2 → 2.0.0
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/esm/index.css +1 -0
- package/dist/esm/index.css.map +7 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/legacy.js +1 -0
- package/dist/esm/legacy.js.map +7 -0
- package/dist/index.css +1 -0
- package/dist/index.css.map +7 -0
- package/dist/index.d.ts +7533 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +7 -0
- package/dist/legacy.d.ts +1 -0
- package/dist/legacy.js +1 -0
- package/dist/legacy.js.map +7 -0
- package/dist/primitives.json +22168 -0
- package/legacy/package.json +7 -0
- package/package.json +82 -40
- package/CHANGELOG.md +0 -339
- package/README.md +0 -1
- package/build.js +0 -5
- package/dist/0.js +0 -269
- package/dist/0.js.map +0 -1
- package/dist/1.js +0 -2111
- package/dist/1.js.map +0 -1
- package/dist/10.js +0 -707
- package/dist/10.js.map +0 -1
- package/dist/11.js +0 -45
- package/dist/11.js.map +0 -1
- package/dist/12.js +0 -1152
- package/dist/12.js.map +0 -1
- package/dist/13.js +0 -114
- package/dist/13.js.map +0 -1
- package/dist/14.js +0 -1194
- package/dist/14.js.map +0 -1
- package/dist/15.js +0 -61
- package/dist/15.js.map +0 -1
- package/dist/16.js +0 -37
- package/dist/16.js.map +0 -1
- package/dist/17.js +0 -127
- package/dist/17.js.map +0 -1
- package/dist/18.js +0 -90
- package/dist/18.js.map +0 -1
- package/dist/19.js +0 -267
- package/dist/19.js.map +0 -1
- package/dist/2.js +0 -766
- package/dist/2.js.map +0 -1
- package/dist/20.js +0 -74
- package/dist/20.js.map +0 -1
- package/dist/21.js +0 -50
- package/dist/21.js.map +0 -1
- package/dist/22.js +0 -57
- package/dist/22.js.map +0 -1
- package/dist/23.js +0 -50
- package/dist/23.js.map +0 -1
- package/dist/24.js +0 -271
- package/dist/24.js.map +0 -1
- package/dist/25.js +0 -102
- package/dist/25.js.map +0 -1
- package/dist/26.js +0 -64
- package/dist/26.js.map +0 -1
- package/dist/27.js +0 -379
- package/dist/27.js.map +0 -1
- package/dist/28.js +0 -47
- package/dist/28.js.map +0 -1
- package/dist/29.js +0 -46
- package/dist/29.js.map +0 -1
- package/dist/3.js +0 -2787
- package/dist/3.js.map +0 -1
- package/dist/30.js +0 -503
- package/dist/30.js.map +0 -1
- package/dist/31.js +0 -2
- package/dist/31.js.map +0 -1
- package/dist/32.js +0 -2
- package/dist/32.js.map +0 -1
- package/dist/33.js +0 -13
- package/dist/33.js.map +0 -1
- package/dist/4.js +0 -4126
- package/dist/4.js.map +0 -1
- package/dist/5.js +0 -817
- package/dist/5.js.map +0 -1
- package/dist/6.js +0 -619
- package/dist/6.js.map +0 -1
- package/dist/7.js +0 -662
- package/dist/7.js.map +0 -1
- package/dist/8.js +0 -614
- package/dist/8.js.map +0 -1
- package/dist/9.js +0 -665
- package/dist/9.js.map +0 -1
- package/dist/@aws-amplify/ui-react.js +0 -31875
- package/dist/@aws-amplify/ui-react.js.map +0 -1
- package/dist/aws-amplify-react.min.js +0 -28
- package/dist/aws-amplify-react.min.js.map +0 -1
- package/dist/polyfills-core-js.js +0 -5211
- package/dist/polyfills-core-js.js.map +0 -1
- package/dist/polyfills-css-shim.js +0 -467
- package/dist/polyfills-css-shim.js.map +0 -1
- package/dist/polyfills-dom.js +0 -2098
- package/dist/polyfills-dom.js.map +0 -1
- package/jest.config.js +0 -12
- package/lib/components.d.ts +0 -56
- package/lib/components.js +0 -64
- package/lib/components.js.map +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -9
- package/lib/index.js.map +0 -1
- package/lib/react-component-lib/createComponent.d.ts +0 -2
- package/lib/react-component-lib/createComponent.js +0 -91
- package/lib/react-component-lib/createComponent.js.map +0 -1
- package/lib/react-component-lib/createControllerComponent.d.ts +0 -43
- package/lib/react-component-lib/createControllerComponent.js +0 -152
- package/lib/react-component-lib/createControllerComponent.js.map +0 -1
- package/lib/react-component-lib/createOverlayComponent.d.ts +0 -45
- package/lib/react-component-lib/createOverlayComponent.js +0 -148
- package/lib/react-component-lib/createOverlayComponent.js.map +0 -1
- package/lib/react-component-lib/index.d.ts +0 -3
- package/lib/react-component-lib/index.js +0 -9
- package/lib/react-component-lib/index.js.map +0 -1
- package/lib/react-component-lib/utils/attachEventProps.d.ts +0 -8
- package/lib/react-component-lib/utils/attachEventProps.js +0 -85
- package/lib/react-component-lib/utils/attachEventProps.js.map +0 -1
- package/lib/react-component-lib/utils/index.d.ts +0 -8
- package/lib/react-component-lib/utils/index.js +0 -36
- package/lib/react-component-lib/utils/index.js.map +0 -1
- package/lib/withAuthenticator.d.ts +0 -3
- package/lib/withAuthenticator.js +0 -127
- package/lib/withAuthenticator.js.map +0 -1
- package/lib-esm/components.d.ts +0 -56
- package/lib-esm/components.js +0 -62
- package/lib-esm/components.js.map +0 -1
- package/lib-esm/index.d.ts +0 -2
- package/lib-esm/index.js +0 -3
- package/lib-esm/index.js.map +0 -1
- package/lib-esm/react-component-lib/createComponent.d.ts +0 -2
- package/lib-esm/react-component-lib/createComponent.js +0 -86
- package/lib-esm/react-component-lib/createComponent.js.map +0 -1
- package/lib-esm/react-component-lib/createControllerComponent.d.ts +0 -43
- package/lib-esm/react-component-lib/createControllerComponent.js +0 -146
- package/lib-esm/react-component-lib/createControllerComponent.js.map +0 -1
- package/lib-esm/react-component-lib/createOverlayComponent.d.ts +0 -45
- package/lib-esm/react-component-lib/createOverlayComponent.js +0 -142
- package/lib-esm/react-component-lib/createOverlayComponent.js.map +0 -1
- package/lib-esm/react-component-lib/index.d.ts +0 -3
- package/lib-esm/react-component-lib/index.js +0 -4
- package/lib-esm/react-component-lib/index.js.map +0 -1
- package/lib-esm/react-component-lib/utils/attachEventProps.d.ts +0 -8
- package/lib-esm/react-component-lib/utils/attachEventProps.js +0 -79
- package/lib-esm/react-component-lib/utils/attachEventProps.js.map +0 -1
- package/lib-esm/react-component-lib/utils/index.d.ts +0 -8
- package/lib-esm/react-component-lib/utils/index.js +0 -28
- package/lib-esm/react-component-lib/utils/index.js.map +0 -1
- package/lib-esm/withAuthenticator.d.ts +0 -3
- package/lib-esm/withAuthenticator.js +0 -121
- package/lib-esm/withAuthenticator.js.map +0 -1
- package/src/components.ts +0 -65
- package/src/index.ts +0 -3
- package/src/react-component-lib/createComponent.tsx +0 -69
- package/src/react-component-lib/createControllerComponent.tsx +0 -71
- package/src/react-component-lib/createOverlayComponent.tsx +0 -79
- package/src/react-component-lib/index.ts +0 -3
- package/src/react-component-lib/utils/attachEventProps.ts +0 -87
- package/src/react-component-lib/utils/index.tsx +0 -31
- package/src/withAuthenticator.tsx +0 -62
- package/webpack.config.dev.js +0 -6
- package/webpack.config.js +0 -56
|
@@ -1,467 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonpaws_amplify_react"] = this["webpackJsonpaws_amplify_react"] || []).push([["polyfills-css-shim"],{
|
|
2
|
-
|
|
3
|
-
/***/ "../amplify-ui-components/dist/esm-es5/css-shim-3b0ed064.js":
|
|
4
|
-
/*!******************************************************************!*\
|
|
5
|
-
!*** ../amplify-ui-components/dist/esm-es5/css-shim-3b0ed064.js ***!
|
|
6
|
-
\******************************************************************/
|
|
7
|
-
/*! no static exports found */
|
|
8
|
-
/***/ (function(module, exports) {
|
|
9
|
-
|
|
10
|
-
/*
|
|
11
|
-
Stencil Client Patch v1.15.0 | MIT Licensed | https://stenciljs.com
|
|
12
|
-
*/
|
|
13
|
-
var StyleNode = function StyleNode() {
|
|
14
|
-
this.start = 0, this.end = 0, this.previous = null, this.parent = null, this.rules = null, this.parsedCssText = "", this.cssText = "", this.atRule = !1, this.type = 0, this.keyframesName = "", this.selector = "", this.parsedSelector = "";
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
function parse(e) {
|
|
18
|
-
return parseCss(lex(e = clean(e)), e);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function clean(e) {
|
|
22
|
-
return e.replace(RX.comments, "").replace(RX.port, "");
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function lex(e) {
|
|
26
|
-
var t = new StyleNode();
|
|
27
|
-
t.start = 0, t.end = e.length;
|
|
28
|
-
|
|
29
|
-
for (var r = t, n = 0, s = e.length; n < s; n++) {
|
|
30
|
-
if (e[n] === OPEN_BRACE) {
|
|
31
|
-
r.rules || (r.rules = []);
|
|
32
|
-
var o = r,
|
|
33
|
-
a = o.rules[o.rules.length - 1] || null;
|
|
34
|
-
(r = new StyleNode()).start = n + 1, r.parent = o, r.previous = a, o.rules.push(r);
|
|
35
|
-
} else e[n] === CLOSE_BRACE && (r.end = n + 1, r = r.parent || t);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return t;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function parseCss(e, t) {
|
|
42
|
-
var r = t.substring(e.start, e.end - 1);
|
|
43
|
-
|
|
44
|
-
if (e.parsedCssText = e.cssText = r.trim(), e.parent) {
|
|
45
|
-
var n = e.previous ? e.previous.end : e.parent.start;
|
|
46
|
-
r = (r = (r = _expandUnicodeEscapes(r = t.substring(n, e.start - 1))).replace(RX.multipleSpaces, " ")).substring(r.lastIndexOf(";") + 1);
|
|
47
|
-
var s = e.parsedSelector = e.selector = r.trim();
|
|
48
|
-
e.atRule = 0 === s.indexOf(AT_START), e.atRule ? 0 === s.indexOf(MEDIA_START) ? e.type = types.MEDIA_RULE : s.match(RX.keyframesRule) && (e.type = types.KEYFRAMES_RULE, e.keyframesName = e.selector.split(RX.multipleSpaces).pop()) : 0 === s.indexOf(VAR_START) ? e.type = types.MIXIN_RULE : e.type = types.STYLE_RULE;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
var o = e.rules;
|
|
52
|
-
if (o) for (var a = 0, i = o.length, l = void 0; a < i && (l = o[a]); a++) {
|
|
53
|
-
parseCss(l, t);
|
|
54
|
-
}
|
|
55
|
-
return e;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function _expandUnicodeEscapes(e) {
|
|
59
|
-
return e.replace(/\\([0-9a-f]{1,6})\s/gi, function () {
|
|
60
|
-
for (var e = arguments[1], t = 6 - e.length; t--;) {
|
|
61
|
-
e = "0" + e;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return "\\" + e;
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
var types = {
|
|
69
|
-
STYLE_RULE: 1,
|
|
70
|
-
KEYFRAMES_RULE: 7,
|
|
71
|
-
MEDIA_RULE: 4,
|
|
72
|
-
MIXIN_RULE: 1e3
|
|
73
|
-
},
|
|
74
|
-
OPEN_BRACE = "{",
|
|
75
|
-
CLOSE_BRACE = "}",
|
|
76
|
-
RX = {
|
|
77
|
-
comments: /\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,
|
|
78
|
-
port: /@import[^;]*;/gim,
|
|
79
|
-
customProp: /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,
|
|
80
|
-
mixinProp: /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,
|
|
81
|
-
mixinApply: /@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,
|
|
82
|
-
varApply: /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,
|
|
83
|
-
keyframesRule: /^@[^\s]*keyframes/,
|
|
84
|
-
multipleSpaces: /\s+/g
|
|
85
|
-
},
|
|
86
|
-
VAR_START = "--",
|
|
87
|
-
MEDIA_START = "@media",
|
|
88
|
-
AT_START = "@";
|
|
89
|
-
|
|
90
|
-
function findRegex(e, t, r) {
|
|
91
|
-
e.lastIndex = 0;
|
|
92
|
-
var n = t.substring(r).match(e);
|
|
93
|
-
|
|
94
|
-
if (n) {
|
|
95
|
-
var s = r + n.index;
|
|
96
|
-
return {
|
|
97
|
-
start: s,
|
|
98
|
-
end: s + n[0].length
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
var VAR_USAGE_START = /\bvar\(/,
|
|
106
|
-
VAR_ASSIGN_START = /\B--[\w-]+\s*:/,
|
|
107
|
-
COMMENTS = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,
|
|
108
|
-
TRAILING_LINES = /^[\t ]+\n/gm;
|
|
109
|
-
|
|
110
|
-
function resolveVar(e, t, r) {
|
|
111
|
-
return e[t] ? e[t] : r ? executeTemplate(r, e) : "";
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function findVarEndIndex(e, t) {
|
|
115
|
-
for (var r = 0, n = t; n < e.length; n++) {
|
|
116
|
-
var s = e[n];
|
|
117
|
-
if ("(" === s) r++;else if (")" === s && --r <= 0) return n + 1;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
return n;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function parseVar(e, t) {
|
|
124
|
-
var r = findRegex(VAR_USAGE_START, e, t);
|
|
125
|
-
if (!r) return null;
|
|
126
|
-
var n = findVarEndIndex(e, r.start),
|
|
127
|
-
s = e.substring(r.end, n - 1).split(","),
|
|
128
|
-
o = s[0],
|
|
129
|
-
a = s.slice(1);
|
|
130
|
-
return {
|
|
131
|
-
start: r.start,
|
|
132
|
-
end: n,
|
|
133
|
-
propName: o.trim(),
|
|
134
|
-
fallback: a.length > 0 ? a.join(",").trim() : void 0
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function compileVar(e, t, r) {
|
|
139
|
-
var n = parseVar(e, r);
|
|
140
|
-
if (!n) return t.push(e.substring(r, e.length)), e.length;
|
|
141
|
-
var s = n.propName,
|
|
142
|
-
o = null != n.fallback ? compileTemplate(n.fallback) : void 0;
|
|
143
|
-
return t.push(e.substring(r, n.start), function (e) {
|
|
144
|
-
return resolveVar(e, s, o);
|
|
145
|
-
}), n.end;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function executeTemplate(e, t) {
|
|
149
|
-
for (var r = "", n = 0; n < e.length; n++) {
|
|
150
|
-
var s = e[n];
|
|
151
|
-
r += "string" == typeof s ? s : s(t);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
return r;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function findEndValue(e, t) {
|
|
158
|
-
for (var r = !1, n = !1, s = t; s < e.length; s++) {
|
|
159
|
-
var o = e[s];
|
|
160
|
-
if (r) n && '"' === o && (r = !1), n || "'" !== o || (r = !1);else if ('"' === o) r = !0, n = !0;else if ("'" === o) r = !0, n = !1;else {
|
|
161
|
-
if (";" === o) return s + 1;
|
|
162
|
-
if ("}" === o) return s;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return s;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
function removeCustomAssigns(e) {
|
|
170
|
-
for (var t = "", r = 0;;) {
|
|
171
|
-
var n = findRegex(VAR_ASSIGN_START, e, r),
|
|
172
|
-
s = n ? n.start : e.length;
|
|
173
|
-
if (t += e.substring(r, s), !n) break;
|
|
174
|
-
r = findEndValue(e, s);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return t;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function compileTemplate(e) {
|
|
181
|
-
var t = 0;
|
|
182
|
-
e = removeCustomAssigns(e = e.replace(COMMENTS, "")).replace(TRAILING_LINES, "");
|
|
183
|
-
|
|
184
|
-
for (var r = []; t < e.length;) {
|
|
185
|
-
t = compileVar(e, r, t);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
return r;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
function resolveValues(e) {
|
|
192
|
-
var t = {};
|
|
193
|
-
e.forEach(function (e) {
|
|
194
|
-
e.declarations.forEach(function (e) {
|
|
195
|
-
t[e.prop] = e.value;
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
for (var r = {}, n = Object.entries(t), s = function s(e) {
|
|
200
|
-
var t = !1;
|
|
201
|
-
if (n.forEach(function (e) {
|
|
202
|
-
var n = e[0],
|
|
203
|
-
s = executeTemplate(e[1], r);
|
|
204
|
-
s !== r[n] && (r[n] = s, t = !0);
|
|
205
|
-
}), !t) return "break";
|
|
206
|
-
}, o = 0; o < 10; o++) {
|
|
207
|
-
if ("break" === s()) break;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return r;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function getSelectors(e, t) {
|
|
214
|
-
if (void 0 === t && (t = 0), !e.rules) return [];
|
|
215
|
-
var r = [];
|
|
216
|
-
return e.rules.filter(function (e) {
|
|
217
|
-
return e.type === types.STYLE_RULE;
|
|
218
|
-
}).forEach(function (e) {
|
|
219
|
-
var n = getDeclarations(e.cssText);
|
|
220
|
-
n.length > 0 && e.parsedSelector.split(",").forEach(function (e) {
|
|
221
|
-
e = e.trim(), r.push({
|
|
222
|
-
selector: e,
|
|
223
|
-
declarations: n,
|
|
224
|
-
specificity: computeSpecificity(),
|
|
225
|
-
nu: t
|
|
226
|
-
});
|
|
227
|
-
}), t++;
|
|
228
|
-
}), r;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
function computeSpecificity(e) {
|
|
232
|
-
return 1;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
var IMPORTANT = "!important",
|
|
236
|
-
FIND_DECLARATIONS = /(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;
|
|
237
|
-
|
|
238
|
-
function getDeclarations(e) {
|
|
239
|
-
for (var t, r = []; t = FIND_DECLARATIONS.exec(e.trim());) {
|
|
240
|
-
var n = normalizeValue(t[2]),
|
|
241
|
-
s = n.value,
|
|
242
|
-
o = n.important;
|
|
243
|
-
r.push({
|
|
244
|
-
prop: t[1].trim(),
|
|
245
|
-
value: compileTemplate(s),
|
|
246
|
-
important: o
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
return r;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
function normalizeValue(e) {
|
|
254
|
-
var t = (e = e.replace(/\s+/gim, " ").trim()).endsWith(IMPORTANT);
|
|
255
|
-
return t && (e = e.substr(0, e.length - IMPORTANT.length).trim()), {
|
|
256
|
-
value: e,
|
|
257
|
-
important: t
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
function getActiveSelectors(e, t, r) {
|
|
262
|
-
var n = [],
|
|
263
|
-
s = getScopesForElement(t, e);
|
|
264
|
-
return r.forEach(function (e) {
|
|
265
|
-
return n.push(e);
|
|
266
|
-
}), s.forEach(function (e) {
|
|
267
|
-
return n.push(e);
|
|
268
|
-
}), sortSelectors(getSelectorsForScopes(n).filter(function (t) {
|
|
269
|
-
return matches(e, t.selector);
|
|
270
|
-
}));
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
function getScopesForElement(e, t) {
|
|
274
|
-
for (var r = []; t;) {
|
|
275
|
-
var n = e.get(t);
|
|
276
|
-
n && r.push(n), t = t.parentElement;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
return r;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
function getSelectorsForScopes(e) {
|
|
283
|
-
var t = [];
|
|
284
|
-
return e.forEach(function (e) {
|
|
285
|
-
t.push.apply(t, e.selectors);
|
|
286
|
-
}), t;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
function sortSelectors(e) {
|
|
290
|
-
return e.sort(function (e, t) {
|
|
291
|
-
return e.specificity === t.specificity ? e.nu - t.nu : e.specificity - t.specificity;
|
|
292
|
-
}), e;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
function matches(e, t) {
|
|
296
|
-
return ":root" === t || "html" === t || e.matches(t);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
function parseCSS(e) {
|
|
300
|
-
var t = parse(e),
|
|
301
|
-
r = compileTemplate(e);
|
|
302
|
-
return {
|
|
303
|
-
original: e,
|
|
304
|
-
template: r,
|
|
305
|
-
selectors: getSelectors(t),
|
|
306
|
-
usesCssVars: r.length > 1
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
function addGlobalStyle(e, t) {
|
|
311
|
-
if (e.some(function (e) {
|
|
312
|
-
return e.styleEl === t;
|
|
313
|
-
})) return !1;
|
|
314
|
-
var r = parseCSS(t.textContent);
|
|
315
|
-
return r.styleEl = t, e.push(r), !0;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
function updateGlobalScopes(e) {
|
|
319
|
-
var t = resolveValues(getSelectorsForScopes(e));
|
|
320
|
-
e.forEach(function (e) {
|
|
321
|
-
e.usesCssVars && (e.styleEl.textContent = executeTemplate(e.template, t));
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
function reScope(e, t) {
|
|
326
|
-
var r = e.template.map(function (r) {
|
|
327
|
-
return "string" == typeof r ? replaceScope(r, e.scopeId, t) : r;
|
|
328
|
-
}),
|
|
329
|
-
n = e.selectors.map(function (r) {
|
|
330
|
-
return Object.assign(Object.assign({}, r), {
|
|
331
|
-
selector: replaceScope(r.selector, e.scopeId, t)
|
|
332
|
-
});
|
|
333
|
-
});
|
|
334
|
-
return Object.assign(Object.assign({}, e), {
|
|
335
|
-
template: r,
|
|
336
|
-
selectors: n,
|
|
337
|
-
scopeId: t
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
function replaceScope(e, t, r) {
|
|
342
|
-
return e = replaceAll(e, "\\." + t, "." + r);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
function replaceAll(e, t, r) {
|
|
346
|
-
return e.replace(new RegExp(t, "g"), r);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
function loadDocument(e, t) {
|
|
350
|
-
return loadDocumentStyles(e, t), loadDocumentLinks(e, t).then(function () {
|
|
351
|
-
updateGlobalScopes(t);
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
function startWatcher(e, t) {
|
|
356
|
-
"undefined" != typeof MutationObserver && new MutationObserver(function () {
|
|
357
|
-
loadDocumentStyles(e, t) && updateGlobalScopes(t);
|
|
358
|
-
}).observe(document.head, {
|
|
359
|
-
childList: !0
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
function loadDocumentLinks(e, t) {
|
|
364
|
-
for (var r = [], n = e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'), s = 0; s < n.length; s++) {
|
|
365
|
-
r.push(addGlobalLink(e, t, n[s]));
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
return Promise.all(r);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
function loadDocumentStyles(e, t) {
|
|
372
|
-
return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map(function (e) {
|
|
373
|
-
return addGlobalStyle(t, e);
|
|
374
|
-
}).some(Boolean);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
function addGlobalLink(e, t, r) {
|
|
378
|
-
var n = r.href;
|
|
379
|
-
return fetch(n).then(function (e) {
|
|
380
|
-
return e.text();
|
|
381
|
-
}).then(function (s) {
|
|
382
|
-
if (hasCssVariables(s) && r.parentNode) {
|
|
383
|
-
hasRelativeUrls(s) && (s = fixRelativeUrls(s, n));
|
|
384
|
-
var o = e.createElement("style");
|
|
385
|
-
o.setAttribute("data-styles", ""), o.textContent = s, addGlobalStyle(t, o), r.parentNode.insertBefore(o, r), r.remove();
|
|
386
|
-
}
|
|
387
|
-
})["catch"](function (e) {
|
|
388
|
-
console.error(e);
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
var CSS_VARIABLE_REGEXP = /[\s;{]--[-a-zA-Z0-9]+\s*:/m;
|
|
393
|
-
|
|
394
|
-
function hasCssVariables(e) {
|
|
395
|
-
return e.indexOf("var(") > -1 || CSS_VARIABLE_REGEXP.test(e);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
var CSS_URL_REGEXP = /url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;
|
|
399
|
-
|
|
400
|
-
function hasRelativeUrls(e) {
|
|
401
|
-
return CSS_URL_REGEXP.lastIndex = 0, CSS_URL_REGEXP.test(e);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
function fixRelativeUrls(e, t) {
|
|
405
|
-
var r = t.replace(/[^/]*$/, "");
|
|
406
|
-
return e.replace(CSS_URL_REGEXP, function (e, t) {
|
|
407
|
-
var n = r + t;
|
|
408
|
-
return e.replace(t, n);
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
var CustomStyle = function () {
|
|
413
|
-
function e(e, t) {
|
|
414
|
-
this.win = e, this.doc = t, this.count = 0, this.hostStyleMap = new WeakMap(), this.hostScopeMap = new WeakMap(), this.globalScopes = [], this.scopesMap = new Map(), this.didInit = !1;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
return e.prototype.i = function () {
|
|
418
|
-
var e = this;
|
|
419
|
-
return this.didInit || !this.win.requestAnimationFrame ? Promise.resolve() : (this.didInit = !0, new Promise(function (t) {
|
|
420
|
-
e.win.requestAnimationFrame(function () {
|
|
421
|
-
startWatcher(e.doc, e.globalScopes), loadDocument(e.doc, e.globalScopes).then(function () {
|
|
422
|
-
return t();
|
|
423
|
-
});
|
|
424
|
-
});
|
|
425
|
-
}));
|
|
426
|
-
}, e.prototype.addLink = function (e) {
|
|
427
|
-
var t = this;
|
|
428
|
-
return addGlobalLink(this.doc, this.globalScopes, e).then(function () {
|
|
429
|
-
t.updateGlobal();
|
|
430
|
-
});
|
|
431
|
-
}, e.prototype.addGlobalStyle = function (e) {
|
|
432
|
-
addGlobalStyle(this.globalScopes, e) && this.updateGlobal();
|
|
433
|
-
}, e.prototype.createHostStyle = function (e, t, r, n) {
|
|
434
|
-
if (this.hostScopeMap.has(e)) throw new Error("host style already created");
|
|
435
|
-
var s = this.registerHostTemplate(r, t, n),
|
|
436
|
-
o = this.doc.createElement("style");
|
|
437
|
-
return o.setAttribute("data-no-shim", ""), s.usesCssVars ? n ? (o["s-sc"] = t = s.scopeId + "-" + this.count, o.textContent = "/*needs update*/", this.hostStyleMap.set(e, o), this.hostScopeMap.set(e, reScope(s, t)), this.count++) : (s.styleEl = o, s.usesCssVars || (o.textContent = executeTemplate(s.template, {})), this.globalScopes.push(s), this.updateGlobal(), this.hostScopeMap.set(e, s)) : o.textContent = r, o;
|
|
438
|
-
}, e.prototype.removeHost = function (e) {
|
|
439
|
-
var t = this.hostStyleMap.get(e);
|
|
440
|
-
t && t.remove(), this.hostStyleMap["delete"](e), this.hostScopeMap["delete"](e);
|
|
441
|
-
}, e.prototype.updateHost = function (e) {
|
|
442
|
-
var t = this.hostScopeMap.get(e);
|
|
443
|
-
|
|
444
|
-
if (t && t.usesCssVars && t.isScoped) {
|
|
445
|
-
var r = this.hostStyleMap.get(e);
|
|
446
|
-
|
|
447
|
-
if (r) {
|
|
448
|
-
var n = resolveValues(getActiveSelectors(e, this.hostScopeMap, this.globalScopes));
|
|
449
|
-
r.textContent = executeTemplate(t.template, n);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}, e.prototype.updateGlobal = function () {
|
|
453
|
-
updateGlobalScopes(this.globalScopes);
|
|
454
|
-
}, e.prototype.registerHostTemplate = function (e, t, r) {
|
|
455
|
-
var n = this.scopesMap.get(t);
|
|
456
|
-
return n || ((n = parseCSS(e)).scopeId = t, n.isScoped = r, this.scopesMap.set(t, n)), n;
|
|
457
|
-
}, e;
|
|
458
|
-
}();
|
|
459
|
-
|
|
460
|
-
!function (e) {
|
|
461
|
-
!e || e.__cssshim || e.CSS && e.CSS.supports && e.CSS.supports("color", "var(--c)") || (e.__cssshim = new CustomStyle(e, e.document));
|
|
462
|
-
}("undefined" != typeof window && window);
|
|
463
|
-
|
|
464
|
-
/***/ })
|
|
465
|
-
|
|
466
|
-
}]);
|
|
467
|
-
//# sourceMappingURL=polyfills-css-shim.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./node_modules/@aws-amplify/ui-components/dist/esm-es5/css-shim-3b0ed064.js"],"names":["StyleNode","parseCss","lex","e","clean","RX","t","r","n","s","o","a","_expandUnicodeEscapes","types","i","l","arguments","STYLE_RULE","KEYFRAMES_RULE","MEDIA_RULE","MIXIN_RULE","OPEN_BRACE","CLOSE_BRACE","comments","port","customProp","mixinProp","mixinApply","varApply","keyframesRule","multipleSpaces","VAR_START","MEDIA_START","AT_START","start","end","length","VAR_USAGE_START","VAR_ASSIGN_START","COMMENTS","TRAILING_LINES","executeTemplate","findRegex","findVarEndIndex","propName","fallback","parseVar","compileTemplate","resolveVar","findEndValue","removeCustomAssigns","compileVar","Object","getDeclarations","selector","declarations","specificity","computeSpecificity","nu","IMPORTANT","FIND_DECLARATIONS","normalizeValue","prop","value","important","getScopesForElement","sortSelectors","matches","parse","original","template","selectors","getSelectors","usesCssVars","parseCSS","resolveValues","getSelectorsForScopes","replaceScope","scopeId","replaceAll","loadDocumentStyles","updateGlobalScopes","document","childList","addGlobalLink","Promise","addGlobalStyle","hasCssVariables","hasRelativeUrls","fixRelativeUrls","console","CSS_VARIABLE_REGEXP","CSS_URL_REGEXP","CustomStyle","startWatcher","reScope","getActiveSelectors"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA,IAAIA,SAAS,GAAG,SAAZA,SAAY,GAAY;AAAE,kBAAgB,WAAhB,GAA8B,gBAA9B,MAAoD,cAApD,MAAwE,aAAxE,MAA2F,qBAA3F,IAAoH,eAApH,IAAuI,cAAc,CAArJ,GAAyJ,YAAzJ,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AkB,CAAlBA;AAPiM,KAOvJ9E,CAAC,CAADA,iCAAmC,mBAAmB;AAAE,QAAIK,CAAC,GAAG,mBAAR,CAAQ,CAAR;AAA+B,WAAOA,CAAC,KAAK,CAACA,CAAC,GAAGkE,QAAQ,CAAb,CAAa,CAAb,eAA+BlE,CAAC,CAADA,WAA/B,GAA+C,sBAArDA,CAAqD,CAApD,CAADA,EAAP;AAPgE,KAAP;AAAxO,CAAkB,EAAlB;;AAQA,CAAC,aAAa;AAAE,QAAML,CAAC,CAAP,aAAqBA,CAAC,CAADA,OAASA,CAAC,CAADA,IAATA,YAA2BA,CAAC,CAADA,sBAAhD,UAAgDA,CAAhD,KAAwFA,CAAC,CAADA,YAAc,mBAAmBA,CAAC,CAA1H,QAAsG,CAAtG;AAAf,EAAwJ,eAAe,OAAf,UAAzJ,MAAC,CAAD,C","file":"polyfills-css-shim.js","sourcesContent":["/*\n Stencil Client Patch v1.15.0 | MIT Licensed | https://stenciljs.com\n */\nvar StyleNode = function () { this.start = 0, this.end = 0, this.previous = null, this.parent = null, this.rules = null, this.parsedCssText = \"\", this.cssText = \"\", this.atRule = !1, this.type = 0, this.keyframesName = \"\", this.selector = \"\", this.parsedSelector = \"\"; };\nfunction parse(e) { return parseCss(lex(e = clean(e)), e); }\nfunction clean(e) { return e.replace(RX.comments, \"\").replace(RX.port, \"\"); }\nfunction lex(e) { var t = new StyleNode; t.start = 0, t.end = e.length; for (var r = t, n = 0, s = e.length; n < s; n++)\n if (e[n] === OPEN_BRACE) {\n r.rules || (r.rules = []);\n var o = r, a = o.rules[o.rules.length - 1] || null;\n (r = new StyleNode).start = n + 1, r.parent = o, r.previous = a, o.rules.push(r);\n }\n else\n e[n] === CLOSE_BRACE && (r.end = n + 1, r = r.parent || t); return t; }\nfunction parseCss(e, t) { var r = t.substring(e.start, e.end - 1); if (e.parsedCssText = e.cssText = r.trim(), e.parent) {\n var n = e.previous ? e.previous.end : e.parent.start;\n r = (r = (r = _expandUnicodeEscapes(r = t.substring(n, e.start - 1))).replace(RX.multipleSpaces, \" \")).substring(r.lastIndexOf(\";\") + 1);\n var s = e.parsedSelector = e.selector = r.trim();\n e.atRule = 0 === s.indexOf(AT_START), e.atRule ? 0 === s.indexOf(MEDIA_START) ? e.type = types.MEDIA_RULE : s.match(RX.keyframesRule) && (e.type = types.KEYFRAMES_RULE, e.keyframesName = e.selector.split(RX.multipleSpaces).pop()) : 0 === s.indexOf(VAR_START) ? e.type = types.MIXIN_RULE : e.type = types.STYLE_RULE;\n} var o = e.rules; if (o)\n for (var a = 0, i = o.length, l = void 0; a < i && (l = o[a]); a++)\n parseCss(l, t); return e; }\nfunction _expandUnicodeEscapes(e) { return e.replace(/\\\\([0-9a-f]{1,6})\\s/gi, (function () { for (var e = arguments[1], t = 6 - e.length; t--;)\n e = \"0\" + e; return \"\\\\\" + e; })); }\nvar types = { STYLE_RULE: 1, KEYFRAMES_RULE: 7, MEDIA_RULE: 4, MIXIN_RULE: 1e3 }, OPEN_BRACE = \"{\", CLOSE_BRACE = \"}\", RX = { comments: /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//gim, port: /@import[^;]*;/gim, customProp: /(?:^[^;\\-\\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\\n]|$)/gim, mixinProp: /(?:^[^;\\-\\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\\n]|$)?/gim, mixinApply: /@apply\\s*\\(?[^);]*\\)?\\s*(?:[;\\n]|$)?/gim, varApply: /[^;:]*?:[^;]*?var\\([^;]*\\)(?:[;\\n]|$)?/gim, keyframesRule: /^@[^\\s]*keyframes/, multipleSpaces: /\\s+/g }, VAR_START = \"--\", MEDIA_START = \"@media\", AT_START = \"@\";\nfunction findRegex(e, t, r) { e.lastIndex = 0; var n = t.substring(r).match(e); if (n) {\n var s = r + n.index;\n return { start: s, end: s + n[0].length };\n} return null; }\nvar VAR_USAGE_START = /\\bvar\\(/, VAR_ASSIGN_START = /\\B--[\\w-]+\\s*:/, COMMENTS = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//gim, TRAILING_LINES = /^[\\t ]+\\n/gm;\nfunction resolveVar(e, t, r) { return e[t] ? e[t] : r ? executeTemplate(r, e) : \"\"; }\nfunction findVarEndIndex(e, t) { for (var r = 0, n = t; n < e.length; n++) {\n var s = e[n];\n if (\"(\" === s)\n r++;\n else if (\")\" === s && --r <= 0)\n return n + 1;\n} return n; }\nfunction parseVar(e, t) { var r = findRegex(VAR_USAGE_START, e, t); if (!r)\n return null; var n = findVarEndIndex(e, r.start), s = e.substring(r.end, n - 1).split(\",\"), o = s[0], a = s.slice(1); return { start: r.start, end: n, propName: o.trim(), fallback: a.length > 0 ? a.join(\",\").trim() : void 0 }; }\nfunction compileVar(e, t, r) { var n = parseVar(e, r); if (!n)\n return t.push(e.substring(r, e.length)), e.length; var s = n.propName, o = null != n.fallback ? compileTemplate(n.fallback) : void 0; return t.push(e.substring(r, n.start), (function (e) { return resolveVar(e, s, o); })), n.end; }\nfunction executeTemplate(e, t) { for (var r = \"\", n = 0; n < e.length; n++) {\n var s = e[n];\n r += \"string\" == typeof s ? s : s(t);\n} return r; }\nfunction findEndValue(e, t) { for (var r = !1, n = !1, s = t; s < e.length; s++) {\n var o = e[s];\n if (r)\n n && '\"' === o && (r = !1), n || \"'\" !== o || (r = !1);\n else if ('\"' === o)\n r = !0, n = !0;\n else if (\"'\" === o)\n r = !0, n = !1;\n else {\n if (\";\" === o)\n return s + 1;\n if (\"}\" === o)\n return s;\n }\n} return s; }\nfunction removeCustomAssigns(e) { for (var t = \"\", r = 0;;) {\n var n = findRegex(VAR_ASSIGN_START, e, r), s = n ? n.start : e.length;\n if (t += e.substring(r, s), !n)\n break;\n r = findEndValue(e, s);\n} return t; }\nfunction compileTemplate(e) { var t = 0; e = removeCustomAssigns(e = e.replace(COMMENTS, \"\")).replace(TRAILING_LINES, \"\"); for (var r = []; t < e.length;)\n t = compileVar(e, r, t); return r; }\nfunction resolveValues(e) { var t = {}; e.forEach((function (e) { e.declarations.forEach((function (e) { t[e.prop] = e.value; })); })); for (var r = {}, n = Object.entries(t), s = function (e) { var t = !1; if (n.forEach((function (e) { var n = e[0], s = executeTemplate(e[1], r); s !== r[n] && (r[n] = s, t = !0); })), !t)\n return \"break\"; }, o = 0; o < 10; o++) {\n if (\"break\" === s())\n break;\n} return r; }\nfunction getSelectors(e, t) { if (void 0 === t && (t = 0), !e.rules)\n return []; var r = []; return e.rules.filter((function (e) { return e.type === types.STYLE_RULE; })).forEach((function (e) { var n = getDeclarations(e.cssText); n.length > 0 && e.parsedSelector.split(\",\").forEach((function (e) { e = e.trim(), r.push({ selector: e, declarations: n, specificity: computeSpecificity(), nu: t }); })), t++; })), r; }\nfunction computeSpecificity(e) { return 1; }\nvar IMPORTANT = \"!important\", FIND_DECLARATIONS = /(?:^|[;\\s{]\\s*)(--[\\w-]*?)\\s*:\\s*(?:((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^)]*?\\)|[^};{])+)|\\{([^}]*)\\}(?:(?=[;\\s}])|$))/gm;\nfunction getDeclarations(e) { for (var t, r = []; t = FIND_DECLARATIONS.exec(e.trim());) {\n var n = normalizeValue(t[2]), s = n.value, o = n.important;\n r.push({ prop: t[1].trim(), value: compileTemplate(s), important: o });\n} return r; }\nfunction normalizeValue(e) { var t = (e = e.replace(/\\s+/gim, \" \").trim()).endsWith(IMPORTANT); return t && (e = e.substr(0, e.length - IMPORTANT.length).trim()), { value: e, important: t }; }\nfunction getActiveSelectors(e, t, r) { var n = [], s = getScopesForElement(t, e); return r.forEach((function (e) { return n.push(e); })), s.forEach((function (e) { return n.push(e); })), sortSelectors(getSelectorsForScopes(n).filter((function (t) { return matches(e, t.selector); }))); }\nfunction getScopesForElement(e, t) { for (var r = []; t;) {\n var n = e.get(t);\n n && r.push(n), t = t.parentElement;\n} return r; }\nfunction getSelectorsForScopes(e) { var t = []; return e.forEach((function (e) { t.push.apply(t, e.selectors); })), t; }\nfunction sortSelectors(e) { return e.sort((function (e, t) { return e.specificity === t.specificity ? e.nu - t.nu : e.specificity - t.specificity; })), e; }\nfunction matches(e, t) { return \":root\" === t || \"html\" === t || e.matches(t); }\nfunction parseCSS(e) { var t = parse(e), r = compileTemplate(e); return { original: e, template: r, selectors: getSelectors(t), usesCssVars: r.length > 1 }; }\nfunction addGlobalStyle(e, t) { if (e.some((function (e) { return e.styleEl === t; })))\n return !1; var r = parseCSS(t.textContent); return r.styleEl = t, e.push(r), !0; }\nfunction updateGlobalScopes(e) { var t = resolveValues(getSelectorsForScopes(e)); e.forEach((function (e) { e.usesCssVars && (e.styleEl.textContent = executeTemplate(e.template, t)); })); }\nfunction reScope(e, t) { var r = e.template.map((function (r) { return \"string\" == typeof r ? replaceScope(r, e.scopeId, t) : r; })), n = e.selectors.map((function (r) { return Object.assign(Object.assign({}, r), { selector: replaceScope(r.selector, e.scopeId, t) }); })); return Object.assign(Object.assign({}, e), { template: r, selectors: n, scopeId: t }); }\nfunction replaceScope(e, t, r) { return e = replaceAll(e, \"\\\\.\" + t, \".\" + r); }\nfunction replaceAll(e, t, r) { return e.replace(new RegExp(t, \"g\"), r); }\nfunction loadDocument(e, t) { return loadDocumentStyles(e, t), loadDocumentLinks(e, t).then((function () { updateGlobalScopes(t); })); }\nfunction startWatcher(e, t) { \"undefined\" != typeof MutationObserver && new MutationObserver((function () { loadDocumentStyles(e, t) && updateGlobalScopes(t); })).observe(document.head, { childList: !0 }); }\nfunction loadDocumentLinks(e, t) { for (var r = [], n = e.querySelectorAll('link[rel=\"stylesheet\"][href]:not([data-no-shim])'), s = 0; s < n.length; s++)\n r.push(addGlobalLink(e, t, n[s])); return Promise.all(r); }\nfunction loadDocumentStyles(e, t) { return Array.from(e.querySelectorAll(\"style:not([data-styles]):not([data-no-shim])\")).map((function (e) { return addGlobalStyle(t, e); })).some(Boolean); }\nfunction addGlobalLink(e, t, r) { var n = r.href; return fetch(n).then((function (e) { return e.text(); })).then((function (s) { if (hasCssVariables(s) && r.parentNode) {\n hasRelativeUrls(s) && (s = fixRelativeUrls(s, n));\n var o = e.createElement(\"style\");\n o.setAttribute(\"data-styles\", \"\"), o.textContent = s, addGlobalStyle(t, o), r.parentNode.insertBefore(o, r), r.remove();\n} })).catch((function (e) { console.error(e); })); }\nvar CSS_VARIABLE_REGEXP = /[\\s;{]--[-a-zA-Z0-9]+\\s*:/m;\nfunction hasCssVariables(e) { return e.indexOf(\"var(\") > -1 || CSS_VARIABLE_REGEXP.test(e); }\nvar CSS_URL_REGEXP = /url[\\s]*\\([\\s]*['\"]?(?!(?:https?|data)\\:|\\/)([^\\'\\\"\\)]*)[\\s]*['\"]?\\)[\\s]*/gim;\nfunction hasRelativeUrls(e) { return CSS_URL_REGEXP.lastIndex = 0, CSS_URL_REGEXP.test(e); }\nfunction fixRelativeUrls(e, t) { var r = t.replace(/[^/]*$/, \"\"); return e.replace(CSS_URL_REGEXP, (function (e, t) { var n = r + t; return e.replace(t, n); })); }\nvar CustomStyle = function () { function e(e, t) { this.win = e, this.doc = t, this.count = 0, this.hostStyleMap = new WeakMap, this.hostScopeMap = new WeakMap, this.globalScopes = [], this.scopesMap = new Map, this.didInit = !1; } return e.prototype.i = function () { var e = this; return this.didInit || !this.win.requestAnimationFrame ? Promise.resolve() : (this.didInit = !0, new Promise((function (t) { e.win.requestAnimationFrame((function () { startWatcher(e.doc, e.globalScopes), loadDocument(e.doc, e.globalScopes).then((function () { return t(); })); })); }))); }, e.prototype.addLink = function (e) { var t = this; return addGlobalLink(this.doc, this.globalScopes, e).then((function () { t.updateGlobal(); })); }, e.prototype.addGlobalStyle = function (e) { addGlobalStyle(this.globalScopes, e) && this.updateGlobal(); }, e.prototype.createHostStyle = function (e, t, r, n) { if (this.hostScopeMap.has(e))\n throw new Error(\"host style already created\"); var s = this.registerHostTemplate(r, t, n), o = this.doc.createElement(\"style\"); return o.setAttribute(\"data-no-shim\", \"\"), s.usesCssVars ? n ? (o[\"s-sc\"] = t = s.scopeId + \"-\" + this.count, o.textContent = \"/*needs update*/\", this.hostStyleMap.set(e, o), this.hostScopeMap.set(e, reScope(s, t)), this.count++) : (s.styleEl = o, s.usesCssVars || (o.textContent = executeTemplate(s.template, {})), this.globalScopes.push(s), this.updateGlobal(), this.hostScopeMap.set(e, s)) : o.textContent = r, o; }, e.prototype.removeHost = function (e) { var t = this.hostStyleMap.get(e); t && t.remove(), this.hostStyleMap.delete(e), this.hostScopeMap.delete(e); }, e.prototype.updateHost = function (e) { var t = this.hostScopeMap.get(e); if (t && t.usesCssVars && t.isScoped) {\n var r = this.hostStyleMap.get(e);\n if (r) {\n var n = resolveValues(getActiveSelectors(e, this.hostScopeMap, this.globalScopes));\n r.textContent = executeTemplate(t.template, n);\n }\n} }, e.prototype.updateGlobal = function () { updateGlobalScopes(this.globalScopes); }, e.prototype.registerHostTemplate = function (e, t, r) { var n = this.scopesMap.get(t); return n || ((n = parseCSS(e)).scopeId = t, n.isScoped = r, this.scopesMap.set(t, n)), n; }, e; }();\n!function (e) { !e || e.__cssshim || e.CSS && e.CSS.supports && e.CSS.supports(\"color\", \"var(--c)\") || (e.__cssshim = new CustomStyle(e, e.document)); }(\"undefined\" != typeof window && window);\n"],"sourceRoot":""}
|