@beeq/tailwindcss 1.11.0-beta.1 → 1.11.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/index.cjs.js +1720 -1688
- package/index.esm.js +1720 -1688
- package/package.json +1 -1
- package/src/helpers/flatten-color-palette.d.ts +1 -0
- package/src/helpers/index.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -9,245 +9,6 @@ const blendColor = ({
|
|
|
9
9
|
[property]: `color-mix(in srgb, ${color}, ${base} ${percentage}%)`
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
const {
|
|
13
|
-
default: flattenColorPalette$1
|
|
14
|
-
} = require('tailwindcss/lib/util/flattenColorPalette');
|
|
15
|
-
const ColorMix = plugin(function ({
|
|
16
|
-
matchUtilities,
|
|
17
|
-
theme
|
|
18
|
-
}) {
|
|
19
|
-
matchUtilities({
|
|
20
|
-
'bg-hover': value => blendColor({
|
|
21
|
-
color: value,
|
|
22
|
-
base: 'var(--bq-hover)'
|
|
23
|
-
}),
|
|
24
|
-
'bg-active': value => blendColor({
|
|
25
|
-
color: value,
|
|
26
|
-
base: 'var(--bq-active)'
|
|
27
|
-
}),
|
|
28
|
-
'border-hover': value => blendColor({
|
|
29
|
-
color: value,
|
|
30
|
-
base: 'var(--bq-hover)',
|
|
31
|
-
property: 'border-color'
|
|
32
|
-
}),
|
|
33
|
-
'border-active': value => blendColor({
|
|
34
|
-
color: value,
|
|
35
|
-
base: 'var(--bq-active)',
|
|
36
|
-
property: 'border-color'
|
|
37
|
-
}),
|
|
38
|
-
'text-hover': value => blendColor({
|
|
39
|
-
color: value,
|
|
40
|
-
base: 'var(--bq-hover)',
|
|
41
|
-
property: 'color'
|
|
42
|
-
}),
|
|
43
|
-
'text-active': value => blendColor({
|
|
44
|
-
color: value,
|
|
45
|
-
base: 'var(--bq-active)',
|
|
46
|
-
property: 'color'
|
|
47
|
-
})
|
|
48
|
-
}, {
|
|
49
|
-
values: flattenColorPalette$1(theme('colors'))
|
|
50
|
-
});
|
|
51
|
-
matchUtilities({
|
|
52
|
-
'bg-hover': value => blendColor({
|
|
53
|
-
color: value,
|
|
54
|
-
base: 'var(--bq-hover)'
|
|
55
|
-
}),
|
|
56
|
-
'bg-active': value => blendColor({
|
|
57
|
-
color: value,
|
|
58
|
-
base: 'var(--bq-active)'
|
|
59
|
-
})
|
|
60
|
-
}, {
|
|
61
|
-
values: flattenColorPalette$1(theme('backgroundColor'))
|
|
62
|
-
});
|
|
63
|
-
matchUtilities({
|
|
64
|
-
'border-hover': value => blendColor({
|
|
65
|
-
color: value,
|
|
66
|
-
base: 'var(--bq-hover)',
|
|
67
|
-
property: 'border-color'
|
|
68
|
-
}),
|
|
69
|
-
'border-active': value => blendColor({
|
|
70
|
-
color: value,
|
|
71
|
-
base: 'var(--bq-active)',
|
|
72
|
-
property: 'border-color'
|
|
73
|
-
})
|
|
74
|
-
}, {
|
|
75
|
-
values: flattenColorPalette$1(theme('borderColor'))
|
|
76
|
-
});
|
|
77
|
-
matchUtilities({
|
|
78
|
-
'text-hover': value => blendColor({
|
|
79
|
-
color: value,
|
|
80
|
-
base: 'var(--bq-hover)',
|
|
81
|
-
property: 'color'
|
|
82
|
-
}),
|
|
83
|
-
'text-active': value => blendColor({
|
|
84
|
-
color: value,
|
|
85
|
-
base: 'var(--bq-active)',
|
|
86
|
-
property: 'color'
|
|
87
|
-
})
|
|
88
|
-
}, {
|
|
89
|
-
values: flattenColorPalette$1(theme('textColor'))
|
|
90
|
-
});
|
|
91
|
-
matchUtilities({
|
|
92
|
-
'stroke-hover': value => blendColor({
|
|
93
|
-
color: value,
|
|
94
|
-
base: 'var(--bq-hover)',
|
|
95
|
-
property: 'color'
|
|
96
|
-
}),
|
|
97
|
-
'stroke-active': value => blendColor({
|
|
98
|
-
color: value,
|
|
99
|
-
base: 'var(--bq-active)',
|
|
100
|
-
property: 'color'
|
|
101
|
-
})
|
|
102
|
-
}, {
|
|
103
|
-
values: flattenColorPalette$1(theme('stroke'))
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
const {
|
|
108
|
-
default: flattenColorPalette
|
|
109
|
-
} = require('tailwindcss/lib/util/flattenColorPalette');
|
|
110
|
-
const LogicalProperties = plugin(function ({
|
|
111
|
-
matchUtilities,
|
|
112
|
-
theme
|
|
113
|
-
}) {
|
|
114
|
-
matchUtilities({
|
|
115
|
-
'border-bl': value => ({
|
|
116
|
-
'border-block-width': value
|
|
117
|
-
}),
|
|
118
|
-
'border-bs': value => ({
|
|
119
|
-
'border-block-start-width': value
|
|
120
|
-
}),
|
|
121
|
-
'border-be': value => ({
|
|
122
|
-
'border-block-end-width': value
|
|
123
|
-
}),
|
|
124
|
-
'border-i': value => ({
|
|
125
|
-
'border-inline-width': value
|
|
126
|
-
}),
|
|
127
|
-
'border-is': value => ({
|
|
128
|
-
'border-inline-start-width': value
|
|
129
|
-
}),
|
|
130
|
-
'border-ie': value => ({
|
|
131
|
-
'border-inline-end-width': value
|
|
132
|
-
})
|
|
133
|
-
}, {
|
|
134
|
-
values: theme('borderWidth')
|
|
135
|
-
});
|
|
136
|
-
matchUtilities({
|
|
137
|
-
'border-bl': value => ({
|
|
138
|
-
'border-block-color': value
|
|
139
|
-
}),
|
|
140
|
-
'border-bs': value => ({
|
|
141
|
-
'border-block-start-color': value
|
|
142
|
-
}),
|
|
143
|
-
'border-be': value => ({
|
|
144
|
-
'border-block-end-color': value
|
|
145
|
-
}),
|
|
146
|
-
'border-i': value => ({
|
|
147
|
-
'border-inline-color': value
|
|
148
|
-
}),
|
|
149
|
-
'border-is': value => ({
|
|
150
|
-
'border-inline-start-color': value
|
|
151
|
-
}),
|
|
152
|
-
'border-ie': value => ({
|
|
153
|
-
'border-inline-end-color': value
|
|
154
|
-
})
|
|
155
|
-
}, {
|
|
156
|
-
values: flattenColorPalette(theme('colors'))
|
|
157
|
-
});
|
|
158
|
-
matchUtilities({
|
|
159
|
-
bs: value => ({
|
|
160
|
-
'block-size': value
|
|
161
|
-
}),
|
|
162
|
-
'max-bs': value => ({
|
|
163
|
-
'max-block-size': value
|
|
164
|
-
}),
|
|
165
|
-
'min-bs': value => ({
|
|
166
|
-
'min-block-size': value
|
|
167
|
-
}),
|
|
168
|
-
is: value => ({
|
|
169
|
-
'inline-size': value
|
|
170
|
-
}),
|
|
171
|
-
'max-is': value => ({
|
|
172
|
-
'max-inline-size': value
|
|
173
|
-
}),
|
|
174
|
-
'min-is': value => ({
|
|
175
|
-
'min-inline-size': value
|
|
176
|
-
})
|
|
177
|
-
}, {
|
|
178
|
-
values: theme('width')
|
|
179
|
-
});
|
|
180
|
-
matchUtilities({
|
|
181
|
-
'border-bl': value => ({
|
|
182
|
-
'border-block': value
|
|
183
|
-
}),
|
|
184
|
-
'border-bs': value => ({
|
|
185
|
-
'border-block-start': value
|
|
186
|
-
}),
|
|
187
|
-
'border-be': value => ({
|
|
188
|
-
'border-block-end': value
|
|
189
|
-
}),
|
|
190
|
-
'border-i': value => ({
|
|
191
|
-
'border-inline': value
|
|
192
|
-
}),
|
|
193
|
-
'border-is': value => ({
|
|
194
|
-
'border-inline-start': value
|
|
195
|
-
}),
|
|
196
|
-
'border-ie': value => ({
|
|
197
|
-
'border-inline-end': value
|
|
198
|
-
}),
|
|
199
|
-
'p-b': value => ({
|
|
200
|
-
'padding-block': value
|
|
201
|
-
}),
|
|
202
|
-
'p-bs': value => ({
|
|
203
|
-
'padding-block-start': value
|
|
204
|
-
}),
|
|
205
|
-
'p-be': value => ({
|
|
206
|
-
'padding-block-end': value
|
|
207
|
-
}),
|
|
208
|
-
'p-i': value => ({
|
|
209
|
-
'padding-inline': value
|
|
210
|
-
})
|
|
211
|
-
}, {
|
|
212
|
-
values: theme('spacing')
|
|
213
|
-
});
|
|
214
|
-
matchUtilities({
|
|
215
|
-
'inset-b': value => ({
|
|
216
|
-
'inset-block': value
|
|
217
|
-
}),
|
|
218
|
-
'inset-bs': value => ({
|
|
219
|
-
'inset-block-start': value
|
|
220
|
-
}),
|
|
221
|
-
'inset-be': value => ({
|
|
222
|
-
'inset-block-end': value
|
|
223
|
-
}),
|
|
224
|
-
'inset-i': value => ({
|
|
225
|
-
'inset-inline': value
|
|
226
|
-
}),
|
|
227
|
-
'inset-is': value => ({
|
|
228
|
-
'inset-inline-start': value
|
|
229
|
-
}),
|
|
230
|
-
'inset-ie': value => ({
|
|
231
|
-
'inset-inline-end': value
|
|
232
|
-
}),
|
|
233
|
-
'm-b': value => ({
|
|
234
|
-
'margin-block': value
|
|
235
|
-
}),
|
|
236
|
-
'm-bs': value => ({
|
|
237
|
-
'margin-block-start': value
|
|
238
|
-
}),
|
|
239
|
-
'm-be': value => ({
|
|
240
|
-
'margin-block-end': value
|
|
241
|
-
}),
|
|
242
|
-
'm-i': value => ({
|
|
243
|
-
'margin-inline': value
|
|
244
|
-
})
|
|
245
|
-
}, {
|
|
246
|
-
values: theme('spacing'),
|
|
247
|
-
supportsNegativeValues: true
|
|
248
|
-
});
|
|
249
|
-
});
|
|
250
|
-
|
|
251
12
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
252
13
|
|
|
253
14
|
var check = function (it) {
|
|
@@ -1248,687 +1009,402 @@ var _export = function (options, source) {
|
|
|
1248
1009
|
}
|
|
1249
1010
|
};
|
|
1250
1011
|
|
|
1251
|
-
var
|
|
1252
|
-
|
|
1253
|
-
var FunctionPrototype = Function.prototype;
|
|
1254
|
-
var apply$2 = FunctionPrototype.apply;
|
|
1255
|
-
var call$9 = FunctionPrototype.call;
|
|
1256
|
-
|
|
1257
|
-
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
1258
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$9.bind(apply$2) : function () {
|
|
1259
|
-
return call$9.apply(apply$2, arguments);
|
|
1260
|
-
});
|
|
1012
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1261
1013
|
|
|
1262
|
-
var
|
|
1263
|
-
var aCallable$6 = aCallable$8;
|
|
1014
|
+
var $TypeError$6 = TypeError;
|
|
1264
1015
|
|
|
1265
|
-
var
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
return uncurryThis$5(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1269
|
-
} catch (error) { /* empty */ }
|
|
1016
|
+
var anInstance$1 = function (it, Prototype) {
|
|
1017
|
+
if (isPrototypeOf$2(Prototype, it)) return it;
|
|
1018
|
+
throw new $TypeError$6('Incorrect invocation');
|
|
1270
1019
|
};
|
|
1271
1020
|
|
|
1272
|
-
var
|
|
1273
|
-
|
|
1274
|
-
var isPossiblePrototype$1 = function (argument) {
|
|
1275
|
-
return isObject$4(argument) || argument === null;
|
|
1276
|
-
};
|
|
1021
|
+
var fails$6 = fails$f;
|
|
1277
1022
|
|
|
1278
|
-
var
|
|
1023
|
+
var correctPrototypeGetter = !fails$6(function () {
|
|
1024
|
+
function F() { /* empty */ }
|
|
1025
|
+
F.prototype.constructor = null;
|
|
1026
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1027
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1028
|
+
});
|
|
1279
1029
|
|
|
1280
|
-
var $
|
|
1281
|
-
var $
|
|
1030
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1031
|
+
var isCallable$5 = isCallable$g;
|
|
1032
|
+
var toObject = toObject$2;
|
|
1033
|
+
var sharedKey$1 = sharedKey$3;
|
|
1034
|
+
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1282
1035
|
|
|
1283
|
-
var
|
|
1284
|
-
|
|
1285
|
-
|
|
1036
|
+
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
|
1037
|
+
var $Object$1 = Object;
|
|
1038
|
+
var ObjectPrototype = $Object$1.prototype;
|
|
1039
|
+
|
|
1040
|
+
// `Object.getPrototypeOf` method
|
|
1041
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1042
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1043
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1044
|
+
var object = toObject(O);
|
|
1045
|
+
if (hasOwn$3(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
1046
|
+
var constructor = object.constructor;
|
|
1047
|
+
if (isCallable$5(constructor) && object instanceof constructor) {
|
|
1048
|
+
return constructor.prototype;
|
|
1049
|
+
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1286
1050
|
};
|
|
1287
1051
|
|
|
1288
|
-
|
|
1289
|
-
var
|
|
1290
|
-
var isObject$3 = isObject$a;
|
|
1291
|
-
var requireObjectCoercible = requireObjectCoercible$3;
|
|
1292
|
-
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1052
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
1053
|
+
var defineProperty$4 = objectDefineProperty;
|
|
1293
1054
|
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
var CORRECT_SETTER = false;
|
|
1300
|
-
var test = {};
|
|
1301
|
-
var setter;
|
|
1302
|
-
try {
|
|
1303
|
-
setter = uncurryThisAccessor$1(Object.prototype, '__proto__', 'set');
|
|
1304
|
-
setter(test, []);
|
|
1305
|
-
CORRECT_SETTER = test instanceof Array;
|
|
1306
|
-
} catch (error) { /* empty */ }
|
|
1307
|
-
return function setPrototypeOf(O, proto) {
|
|
1308
|
-
requireObjectCoercible(O);
|
|
1309
|
-
aPossiblePrototype(proto);
|
|
1310
|
-
if (!isObject$3(O)) return O;
|
|
1311
|
-
if (CORRECT_SETTER) setter(O, proto);
|
|
1312
|
-
else O.__proto__ = proto;
|
|
1313
|
-
return O;
|
|
1314
|
-
};
|
|
1315
|
-
}() : undefined);
|
|
1055
|
+
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
1056
|
+
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
1057
|
+
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
1058
|
+
return defineProperty$4.f(target, name, descriptor);
|
|
1059
|
+
};
|
|
1316
1060
|
|
|
1317
|
-
var
|
|
1061
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1062
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1063
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
1318
1064
|
|
|
1319
|
-
var
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
get: function () { return Source[key]; },
|
|
1323
|
-
set: function (it) { Source[key] = it; }
|
|
1324
|
-
});
|
|
1065
|
+
var createProperty$2 = function (object, key, value) {
|
|
1066
|
+
if (DESCRIPTORS$4) definePropertyModule$1.f(object, key, createPropertyDescriptor$2(0, value));
|
|
1067
|
+
else object[key] = value;
|
|
1325
1068
|
};
|
|
1326
1069
|
|
|
1327
|
-
var
|
|
1328
|
-
var isObject$2 = isObject$a;
|
|
1329
|
-
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1070
|
+
var objectDefineProperties = {};
|
|
1330
1071
|
|
|
1331
|
-
|
|
1332
|
-
var
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
NewTarget !== Wrapper &&
|
|
1340
|
-
isObject$2(NewTargetPrototype = NewTarget.prototype) &&
|
|
1341
|
-
NewTargetPrototype !== Wrapper.prototype
|
|
1342
|
-
) setPrototypeOf$2($this, NewTargetPrototype);
|
|
1343
|
-
return $this;
|
|
1072
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1073
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1074
|
+
|
|
1075
|
+
// `Object.keys` method
|
|
1076
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
1077
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1078
|
+
var objectKeys$1 = Object.keys || function keys(O) {
|
|
1079
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1344
1080
|
};
|
|
1345
1081
|
|
|
1346
|
-
var
|
|
1082
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1083
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1084
|
+
var definePropertyModule = objectDefineProperty;
|
|
1085
|
+
var anObject$a = anObject$d;
|
|
1086
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
1087
|
+
var objectKeys = objectKeys$1;
|
|
1347
1088
|
|
|
1348
|
-
|
|
1349
|
-
|
|
1089
|
+
// `Object.defineProperties` method
|
|
1090
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1091
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1092
|
+
objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1093
|
+
anObject$a(O);
|
|
1094
|
+
var props = toIndexedObject$1(Properties);
|
|
1095
|
+
var keys = objectKeys(Properties);
|
|
1096
|
+
var length = keys.length;
|
|
1097
|
+
var index = 0;
|
|
1098
|
+
var key;
|
|
1099
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1100
|
+
return O;
|
|
1101
|
+
};
|
|
1350
1102
|
|
|
1351
|
-
|
|
1103
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
1352
1104
|
|
|
1353
|
-
var
|
|
1105
|
+
var html$1 = getBuiltIn$2('document', 'documentElement');
|
|
1354
1106
|
|
|
1355
|
-
|
|
1356
|
-
var
|
|
1357
|
-
var
|
|
1358
|
-
var
|
|
1107
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
1108
|
+
var anObject$9 = anObject$d;
|
|
1109
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1110
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1111
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1112
|
+
var html = html$1;
|
|
1113
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
1114
|
+
var sharedKey = sharedKey$3;
|
|
1359
1115
|
|
|
1360
|
-
var
|
|
1361
|
-
var
|
|
1116
|
+
var GT = '>';
|
|
1117
|
+
var LT = '<';
|
|
1118
|
+
var PROTOTYPE = 'prototype';
|
|
1119
|
+
var SCRIPT = 'script';
|
|
1120
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1362
1121
|
|
|
1363
|
-
|
|
1364
|
-
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
|
|
1122
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
1365
1123
|
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
try {
|
|
1369
|
-
return it[key];
|
|
1370
|
-
} catch (error) { /* empty */ }
|
|
1124
|
+
var scriptTag = function (content) {
|
|
1125
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1371
1126
|
};
|
|
1372
1127
|
|
|
1373
|
-
//
|
|
1374
|
-
var
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
// ES3 arguments fallback
|
|
1382
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
|
|
1128
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1129
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1130
|
+
activeXDocument.write(scriptTag(''));
|
|
1131
|
+
activeXDocument.close();
|
|
1132
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
1133
|
+
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
|
1134
|
+
activeXDocument = null;
|
|
1135
|
+
return temp;
|
|
1383
1136
|
};
|
|
1384
1137
|
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
var
|
|
1390
|
-
|
|
1391
|
-
|
|
1138
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1139
|
+
var NullProtoObjectViaIFrame = function () {
|
|
1140
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
1141
|
+
var iframe = documentCreateElement$1('iframe');
|
|
1142
|
+
var JS = 'java' + SCRIPT + ':';
|
|
1143
|
+
var iframeDocument;
|
|
1144
|
+
iframe.style.display = 'none';
|
|
1145
|
+
html.appendChild(iframe);
|
|
1146
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
1147
|
+
iframe.src = String(JS);
|
|
1148
|
+
iframeDocument = iframe.contentWindow.document;
|
|
1149
|
+
iframeDocument.open();
|
|
1150
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1151
|
+
iframeDocument.close();
|
|
1152
|
+
return iframeDocument.F;
|
|
1392
1153
|
};
|
|
1393
1154
|
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1155
|
+
// Check for document.domain and active x support
|
|
1156
|
+
// No need to use active x approach when document.domain is not set
|
|
1157
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1158
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1159
|
+
// avoid IE GC bug
|
|
1160
|
+
var activeXDocument;
|
|
1161
|
+
var NullProtoObject = function () {
|
|
1162
|
+
try {
|
|
1163
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1164
|
+
} catch (error) { /* ignore */ }
|
|
1165
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1166
|
+
? document.domain && activeXDocument
|
|
1167
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1168
|
+
: NullProtoObjectViaIFrame()
|
|
1169
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1170
|
+
var length = enumBugKeys.length;
|
|
1171
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1172
|
+
return NullProtoObject();
|
|
1398
1173
|
};
|
|
1399
1174
|
|
|
1400
|
-
|
|
1401
|
-
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1175
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1402
1176
|
|
|
1403
|
-
// `
|
|
1404
|
-
// https://tc39.es/ecma262/#sec-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1177
|
+
// `Object.create` method
|
|
1178
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1179
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1180
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
1181
|
+
var result;
|
|
1182
|
+
if (O !== null) {
|
|
1183
|
+
EmptyConstructor[PROTOTYPE] = anObject$9(O);
|
|
1184
|
+
result = new EmptyConstructor();
|
|
1185
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
1186
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1187
|
+
result[IE_PROTO] = O;
|
|
1188
|
+
} else result = NullProtoObject();
|
|
1189
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1409
1190
|
};
|
|
1410
1191
|
|
|
1411
|
-
var
|
|
1412
|
-
|
|
1413
|
-
var $
|
|
1414
|
-
var
|
|
1192
|
+
var fails$5 = fails$f;
|
|
1193
|
+
var isCallable$4 = isCallable$g;
|
|
1194
|
+
var isObject$4 = isObject$a;
|
|
1195
|
+
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
1196
|
+
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1197
|
+
var wellKnownSymbol$a = wellKnownSymbol$c;
|
|
1415
1198
|
|
|
1416
|
-
var
|
|
1417
|
-
|
|
1418
|
-
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
1419
|
-
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
1199
|
+
var ITERATOR$5 = wellKnownSymbol$a('iterator');
|
|
1200
|
+
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1420
1201
|
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
} return stack;
|
|
1425
|
-
};
|
|
1202
|
+
// `%IteratorPrototype%` object
|
|
1203
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1204
|
+
var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1426
1205
|
|
|
1427
|
-
|
|
1428
|
-
|
|
1206
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1207
|
+
if ([].keys) {
|
|
1208
|
+
arrayIterator = [].keys();
|
|
1209
|
+
// Safari 8 has buggy iterators w/o `next`
|
|
1210
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1211
|
+
else {
|
|
1212
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
|
|
1213
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$4 = PrototypeOfArrayIteratorPrototype;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1429
1216
|
|
|
1430
|
-
var
|
|
1431
|
-
var
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
Object.defineProperty(error, 'stack', createPropertyDescriptor$2(1, 7));
|
|
1435
|
-
return error.stack !== 7;
|
|
1217
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$4) || fails$5(function () {
|
|
1218
|
+
var test = {};
|
|
1219
|
+
// FF44- legacy iterators case
|
|
1220
|
+
return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
|
|
1436
1221
|
});
|
|
1437
1222
|
|
|
1438
|
-
|
|
1439
|
-
var clearErrorStack = errorStackClear;
|
|
1440
|
-
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
1441
|
-
|
|
1442
|
-
// non-standard V8
|
|
1443
|
-
// eslint-disable-next-line es/no-nonstandard-error-properties -- safe
|
|
1444
|
-
var captureStackTrace = Error.captureStackTrace;
|
|
1223
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
|
|
1445
1224
|
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
};
|
|
1225
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
|
1226
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1227
|
+
if (!isCallable$4(IteratorPrototype$4[ITERATOR$5])) {
|
|
1228
|
+
defineBuiltIn$2(IteratorPrototype$4, ITERATOR$5, function () {
|
|
1229
|
+
return this;
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1452
1232
|
|
|
1453
|
-
var
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
1458
|
-
var copyConstructorProperties = copyConstructorProperties$2;
|
|
1459
|
-
var proxyAccessor = proxyAccessor$1;
|
|
1460
|
-
var inheritIfRequired = inheritIfRequired$1;
|
|
1461
|
-
var normalizeStringArgument = normalizeStringArgument$1;
|
|
1462
|
-
var installErrorCause = installErrorCause$1;
|
|
1463
|
-
var installErrorStack = errorStackInstall;
|
|
1464
|
-
var DESCRIPTORS$4 = descriptors;
|
|
1233
|
+
var iteratorsCore = {
|
|
1234
|
+
IteratorPrototype: IteratorPrototype$4,
|
|
1235
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1236
|
+
};
|
|
1465
1237
|
|
|
1466
|
-
var
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1238
|
+
var $$d = _export;
|
|
1239
|
+
var globalThis$4 = globalThis_1;
|
|
1240
|
+
var anInstance = anInstance$1;
|
|
1241
|
+
var anObject$8 = anObject$d;
|
|
1242
|
+
var isCallable$3 = isCallable$g;
|
|
1243
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1244
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1245
|
+
var createProperty$1 = createProperty$2;
|
|
1246
|
+
var fails$4 = fails$f;
|
|
1247
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1248
|
+
var wellKnownSymbol$9 = wellKnownSymbol$c;
|
|
1249
|
+
var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
|
|
1250
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1472
1251
|
|
|
1473
|
-
|
|
1252
|
+
var CONSTRUCTOR = 'constructor';
|
|
1253
|
+
var ITERATOR$4 = 'Iterator';
|
|
1254
|
+
var TO_STRING_TAG$4 = wellKnownSymbol$9('toStringTag');
|
|
1474
1255
|
|
|
1475
|
-
|
|
1256
|
+
var $TypeError$5 = TypeError;
|
|
1257
|
+
var NativeIterator = globalThis$4[ITERATOR$4];
|
|
1476
1258
|
|
|
1477
|
-
|
|
1478
|
-
|
|
1259
|
+
// FF56- have non-standard global helper `Iterator`
|
|
1260
|
+
var FORCED$5 = !isCallable$3(NativeIterator)
|
|
1261
|
+
|| NativeIterator.prototype !== IteratorPrototype$3
|
|
1262
|
+
// FF44- non-standard `Iterator` passes previous tests
|
|
1263
|
+
|| !fails$4(function () { NativeIterator({}); });
|
|
1479
1264
|
|
|
1480
|
-
|
|
1265
|
+
var IteratorConstructor = function Iterator() {
|
|
1266
|
+
anInstance(this, IteratorPrototype$3);
|
|
1267
|
+
if (getPrototypeOf$1(this) === IteratorPrototype$3) throw new $TypeError$5('Abstract class Iterator not directly constructable');
|
|
1268
|
+
};
|
|
1481
1269
|
|
|
1482
|
-
|
|
1270
|
+
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
1271
|
+
if (DESCRIPTORS$2) {
|
|
1272
|
+
defineBuiltInAccessor(IteratorPrototype$3, key, {
|
|
1273
|
+
configurable: true,
|
|
1274
|
+
get: function () {
|
|
1275
|
+
return value;
|
|
1276
|
+
},
|
|
1277
|
+
set: function (replacement) {
|
|
1278
|
+
anObject$8(this);
|
|
1279
|
+
if (this === IteratorPrototype$3) throw new $TypeError$5("You can't redefine this property");
|
|
1280
|
+
if (hasOwn$2(this, key)) this[key] = replacement;
|
|
1281
|
+
else createProperty$1(this, key, replacement);
|
|
1282
|
+
}
|
|
1283
|
+
});
|
|
1284
|
+
} else IteratorPrototype$3[key] = value;
|
|
1285
|
+
};
|
|
1483
1286
|
|
|
1484
|
-
|
|
1485
|
-
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
1486
|
-
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
1487
|
-
if (message !== undefined) createNonEnumerableProperty$3(result, 'message', message);
|
|
1488
|
-
installErrorStack(result, WrappedError, result.stack, 2);
|
|
1489
|
-
if (this && isPrototypeOf$2(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
1490
|
-
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
1491
|
-
return result;
|
|
1492
|
-
});
|
|
1287
|
+
if (!hasOwn$2(IteratorPrototype$3, TO_STRING_TAG$4)) defineIteratorPrototypeAccessor(TO_STRING_TAG$4, ITERATOR$4);
|
|
1493
1288
|
|
|
1494
|
-
|
|
1289
|
+
if (FORCED$5 || !hasOwn$2(IteratorPrototype$3, CONSTRUCTOR) || IteratorPrototype$3[CONSTRUCTOR] === Object) {
|
|
1290
|
+
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
1291
|
+
}
|
|
1495
1292
|
|
|
1496
|
-
|
|
1497
|
-
if (setPrototypeOf$1) setPrototypeOf$1(WrappedError, BaseError);
|
|
1498
|
-
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
1499
|
-
} else if (DESCRIPTORS$4 && STACK_TRACE_LIMIT in OriginalError) {
|
|
1500
|
-
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
1501
|
-
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
1502
|
-
}
|
|
1293
|
+
IteratorConstructor.prototype = IteratorPrototype$3;
|
|
1503
1294
|
|
|
1504
|
-
|
|
1295
|
+
// `Iterator` constructor
|
|
1296
|
+
// https://tc39.es/ecma262/#sec-iterator
|
|
1297
|
+
$$d({ global: true, constructor: true, forced: FORCED$5 }, {
|
|
1298
|
+
Iterator: IteratorConstructor
|
|
1299
|
+
});
|
|
1505
1300
|
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
1509
|
-
createNonEnumerableProperty$3(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
1510
|
-
}
|
|
1511
|
-
OriginalErrorPrototype.constructor = WrappedError;
|
|
1512
|
-
} catch (error) { /* empty */ }
|
|
1301
|
+
var classofRaw$1 = classofRaw$2;
|
|
1302
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1513
1303
|
|
|
1514
|
-
|
|
1304
|
+
var functionUncurryThisClause = function (fn) {
|
|
1305
|
+
// Nashorn bug:
|
|
1306
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
1307
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
1308
|
+
if (classofRaw$1(fn) === 'Function') return uncurryThis$5(fn);
|
|
1515
1309
|
};
|
|
1516
1310
|
|
|
1517
|
-
|
|
1518
|
-
var
|
|
1519
|
-
var
|
|
1520
|
-
var apply$1 = functionApply;
|
|
1521
|
-
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
1522
|
-
|
|
1523
|
-
var WEB_ASSEMBLY = 'WebAssembly';
|
|
1524
|
-
var WebAssembly = globalThis$4[WEB_ASSEMBLY];
|
|
1525
|
-
|
|
1526
|
-
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
1527
|
-
var FORCED$5 = new Error('e', { cause: 7 }).cause !== 7;
|
|
1311
|
+
var uncurryThis$4 = functionUncurryThisClause;
|
|
1312
|
+
var aCallable$6 = aCallable$8;
|
|
1313
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
1528
1314
|
|
|
1529
|
-
var
|
|
1530
|
-
var O = {};
|
|
1531
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$5);
|
|
1532
|
-
$$d({ global: true, constructor: true, arity: 1, forced: FORCED$5 }, O);
|
|
1533
|
-
};
|
|
1315
|
+
var bind$1 = uncurryThis$4(uncurryThis$4.bind);
|
|
1534
1316
|
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
}
|
|
1317
|
+
// optional / simple context binding
|
|
1318
|
+
var functionBindContext = function (fn, that) {
|
|
1319
|
+
aCallable$6(fn);
|
|
1320
|
+
return that === undefined ? fn : NATIVE_BIND$1 ? bind$1(fn, that) : function (/* ...args */) {
|
|
1321
|
+
return fn.apply(that, arguments);
|
|
1322
|
+
};
|
|
1541
1323
|
};
|
|
1542
1324
|
|
|
1543
|
-
|
|
1544
|
-
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
1545
|
-
return function Error(message) { return apply$1(init, this, arguments); };
|
|
1546
|
-
});
|
|
1547
|
-
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
1548
|
-
return function EvalError(message) { return apply$1(init, this, arguments); };
|
|
1549
|
-
});
|
|
1550
|
-
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
1551
|
-
return function RangeError(message) { return apply$1(init, this, arguments); };
|
|
1552
|
-
});
|
|
1553
|
-
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
1554
|
-
return function ReferenceError(message) { return apply$1(init, this, arguments); };
|
|
1555
|
-
});
|
|
1556
|
-
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
1557
|
-
return function SyntaxError(message) { return apply$1(init, this, arguments); };
|
|
1558
|
-
});
|
|
1559
|
-
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
1560
|
-
return function TypeError(message) { return apply$1(init, this, arguments); };
|
|
1561
|
-
});
|
|
1562
|
-
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
1563
|
-
return function URIError(message) { return apply$1(init, this, arguments); };
|
|
1564
|
-
});
|
|
1565
|
-
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
1566
|
-
return function CompileError(message) { return apply$1(init, this, arguments); };
|
|
1567
|
-
});
|
|
1568
|
-
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
1569
|
-
return function LinkError(message) { return apply$1(init, this, arguments); };
|
|
1570
|
-
});
|
|
1571
|
-
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
1572
|
-
return function RuntimeError(message) { return apply$1(init, this, arguments); };
|
|
1573
|
-
});
|
|
1325
|
+
var iterators = {};
|
|
1574
1326
|
|
|
1575
|
-
var
|
|
1327
|
+
var wellKnownSymbol$8 = wellKnownSymbol$c;
|
|
1328
|
+
var Iterators$4 = iterators;
|
|
1576
1329
|
|
|
1577
|
-
var $
|
|
1330
|
+
var ITERATOR$3 = wellKnownSymbol$8('iterator');
|
|
1331
|
+
var ArrayPrototype$1 = Array.prototype;
|
|
1578
1332
|
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1333
|
+
// check on default Array iterator
|
|
1334
|
+
var isArrayIteratorMethod$1 = function (it) {
|
|
1335
|
+
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$3] === it);
|
|
1582
1336
|
};
|
|
1583
1337
|
|
|
1584
|
-
var
|
|
1338
|
+
var wellKnownSymbol$7 = wellKnownSymbol$c;
|
|
1585
1339
|
|
|
1586
|
-
var
|
|
1587
|
-
|
|
1588
|
-
F.prototype.constructor = null;
|
|
1589
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1590
|
-
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1591
|
-
});
|
|
1340
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$7('toStringTag');
|
|
1341
|
+
var test = {};
|
|
1592
1342
|
|
|
1593
|
-
|
|
1594
|
-
var isCallable$3 = isCallable$g;
|
|
1595
|
-
var toObject = toObject$2;
|
|
1596
|
-
var sharedKey$1 = sharedKey$3;
|
|
1597
|
-
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1343
|
+
test[TO_STRING_TAG$3] = 'z';
|
|
1598
1344
|
|
|
1599
|
-
var
|
|
1345
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
1346
|
+
|
|
1347
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1348
|
+
var isCallable$2 = isCallable$g;
|
|
1349
|
+
var classofRaw = classofRaw$2;
|
|
1350
|
+
var wellKnownSymbol$6 = wellKnownSymbol$c;
|
|
1351
|
+
|
|
1352
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
|
|
1600
1353
|
var $Object = Object;
|
|
1601
|
-
var ObjectPrototype = $Object.prototype;
|
|
1602
1354
|
|
|
1603
|
-
//
|
|
1604
|
-
|
|
1605
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1606
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1607
|
-
var object = toObject(O);
|
|
1608
|
-
if (hasOwn$2(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
1609
|
-
var constructor = object.constructor;
|
|
1610
|
-
if (isCallable$3(constructor) && object instanceof constructor) {
|
|
1611
|
-
return constructor.prototype;
|
|
1612
|
-
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1613
|
-
};
|
|
1355
|
+
// ES3 wrong here
|
|
1356
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
1614
1357
|
|
|
1615
|
-
|
|
1616
|
-
var
|
|
1358
|
+
// fallback for IE11 Script Access Denied error
|
|
1359
|
+
var tryGet = function (it, key) {
|
|
1360
|
+
try {
|
|
1361
|
+
return it[key];
|
|
1362
|
+
} catch (error) { /* empty */ }
|
|
1363
|
+
};
|
|
1617
1364
|
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
return
|
|
1365
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
1366
|
+
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1367
|
+
var O, tag, result;
|
|
1368
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1369
|
+
// @@toStringTag case
|
|
1370
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$2)) == 'string' ? tag
|
|
1371
|
+
// builtinTag case
|
|
1372
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1373
|
+
// ES3 arguments fallback
|
|
1374
|
+
: (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
1622
1375
|
};
|
|
1623
1376
|
|
|
1624
|
-
var
|
|
1625
|
-
var
|
|
1626
|
-
var
|
|
1377
|
+
var classof$1 = classof$2;
|
|
1378
|
+
var getMethod$2 = getMethod$4;
|
|
1379
|
+
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1380
|
+
var Iterators$3 = iterators;
|
|
1381
|
+
var wellKnownSymbol$5 = wellKnownSymbol$c;
|
|
1627
1382
|
|
|
1628
|
-
var
|
|
1629
|
-
|
|
1630
|
-
|
|
1383
|
+
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
1384
|
+
|
|
1385
|
+
var getIteratorMethod$2 = function (it) {
|
|
1386
|
+
if (!isNullOrUndefined(it)) return getMethod$2(it, ITERATOR$2)
|
|
1387
|
+
|| getMethod$2(it, '@@iterator')
|
|
1388
|
+
|| Iterators$3[classof$1(it)];
|
|
1631
1389
|
};
|
|
1632
1390
|
|
|
1633
|
-
var
|
|
1391
|
+
var call$9 = functionCall;
|
|
1392
|
+
var aCallable$5 = aCallable$8;
|
|
1393
|
+
var anObject$7 = anObject$d;
|
|
1394
|
+
var tryToString$1 = tryToString$3;
|
|
1395
|
+
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1634
1396
|
|
|
1635
|
-
var
|
|
1636
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
1397
|
+
var $TypeError$4 = TypeError;
|
|
1637
1398
|
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
return internalObjectKeys(O, enumBugKeys$1);
|
|
1399
|
+
var getIterator$1 = function (argument, usingIterator) {
|
|
1400
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1401
|
+
if (aCallable$5(iteratorMethod)) return anObject$7(call$9(iteratorMethod, argument));
|
|
1402
|
+
throw new $TypeError$4(tryToString$1(argument) + ' is not iterable');
|
|
1643
1403
|
};
|
|
1644
1404
|
|
|
1645
|
-
var
|
|
1646
|
-
var
|
|
1647
|
-
var
|
|
1648
|
-
var anObject$a = anObject$d;
|
|
1649
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
1650
|
-
var objectKeys = objectKeys$1;
|
|
1651
|
-
|
|
1652
|
-
// `Object.defineProperties` method
|
|
1653
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1654
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1655
|
-
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1656
|
-
anObject$a(O);
|
|
1657
|
-
var props = toIndexedObject$1(Properties);
|
|
1658
|
-
var keys = objectKeys(Properties);
|
|
1659
|
-
var length = keys.length;
|
|
1660
|
-
var index = 0;
|
|
1661
|
-
var key;
|
|
1662
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1663
|
-
return O;
|
|
1664
|
-
};
|
|
1665
|
-
|
|
1666
|
-
var getBuiltIn$1 = getBuiltIn$5;
|
|
1667
|
-
|
|
1668
|
-
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
1669
|
-
|
|
1670
|
-
/* global ActiveXObject -- old IE, WSH */
|
|
1671
|
-
var anObject$9 = anObject$d;
|
|
1672
|
-
var definePropertiesModule = objectDefineProperties;
|
|
1673
|
-
var enumBugKeys = enumBugKeys$3;
|
|
1674
|
-
var hiddenKeys = hiddenKeys$4;
|
|
1675
|
-
var html = html$1;
|
|
1676
|
-
var documentCreateElement$1 = documentCreateElement$2;
|
|
1677
|
-
var sharedKey = sharedKey$3;
|
|
1678
|
-
|
|
1679
|
-
var GT = '>';
|
|
1680
|
-
var LT = '<';
|
|
1681
|
-
var PROTOTYPE = 'prototype';
|
|
1682
|
-
var SCRIPT = 'script';
|
|
1683
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1684
|
-
|
|
1685
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
1686
|
-
|
|
1687
|
-
var scriptTag = function (content) {
|
|
1688
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1689
|
-
};
|
|
1690
|
-
|
|
1691
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1692
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1693
|
-
activeXDocument.write(scriptTag(''));
|
|
1694
|
-
activeXDocument.close();
|
|
1695
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
1696
|
-
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
|
1697
|
-
activeXDocument = null;
|
|
1698
|
-
return temp;
|
|
1699
|
-
};
|
|
1700
|
-
|
|
1701
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1702
|
-
var NullProtoObjectViaIFrame = function () {
|
|
1703
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
1704
|
-
var iframe = documentCreateElement$1('iframe');
|
|
1705
|
-
var JS = 'java' + SCRIPT + ':';
|
|
1706
|
-
var iframeDocument;
|
|
1707
|
-
iframe.style.display = 'none';
|
|
1708
|
-
html.appendChild(iframe);
|
|
1709
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
1710
|
-
iframe.src = String(JS);
|
|
1711
|
-
iframeDocument = iframe.contentWindow.document;
|
|
1712
|
-
iframeDocument.open();
|
|
1713
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1714
|
-
iframeDocument.close();
|
|
1715
|
-
return iframeDocument.F;
|
|
1716
|
-
};
|
|
1717
|
-
|
|
1718
|
-
// Check for document.domain and active x support
|
|
1719
|
-
// No need to use active x approach when document.domain is not set
|
|
1720
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1721
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1722
|
-
// avoid IE GC bug
|
|
1723
|
-
var activeXDocument;
|
|
1724
|
-
var NullProtoObject = function () {
|
|
1725
|
-
try {
|
|
1726
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
|
1727
|
-
} catch (error) { /* ignore */ }
|
|
1728
|
-
NullProtoObject = typeof document != 'undefined'
|
|
1729
|
-
? document.domain && activeXDocument
|
|
1730
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1731
|
-
: NullProtoObjectViaIFrame()
|
|
1732
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1733
|
-
var length = enumBugKeys.length;
|
|
1734
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1735
|
-
return NullProtoObject();
|
|
1736
|
-
};
|
|
1737
|
-
|
|
1738
|
-
hiddenKeys[IE_PROTO] = true;
|
|
1739
|
-
|
|
1740
|
-
// `Object.create` method
|
|
1741
|
-
// https://tc39.es/ecma262/#sec-object.create
|
|
1742
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
1743
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
1744
|
-
var result;
|
|
1745
|
-
if (O !== null) {
|
|
1746
|
-
EmptyConstructor[PROTOTYPE] = anObject$9(O);
|
|
1747
|
-
result = new EmptyConstructor();
|
|
1748
|
-
EmptyConstructor[PROTOTYPE] = null;
|
|
1749
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1750
|
-
result[IE_PROTO] = O;
|
|
1751
|
-
} else result = NullProtoObject();
|
|
1752
|
-
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1753
|
-
};
|
|
1754
|
-
|
|
1755
|
-
var fails$4 = fails$f;
|
|
1756
|
-
var isCallable$2 = isCallable$g;
|
|
1757
|
-
var isObject = isObject$a;
|
|
1758
|
-
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
1759
|
-
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1760
|
-
var wellKnownSymbol$8 = wellKnownSymbol$c;
|
|
1761
|
-
|
|
1762
|
-
var ITERATOR$5 = wellKnownSymbol$8('iterator');
|
|
1763
|
-
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1764
|
-
|
|
1765
|
-
// `%IteratorPrototype%` object
|
|
1766
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1767
|
-
var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1768
|
-
|
|
1769
|
-
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1770
|
-
if ([].keys) {
|
|
1771
|
-
arrayIterator = [].keys();
|
|
1772
|
-
// Safari 8 has buggy iterators w/o `next`
|
|
1773
|
-
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1774
|
-
else {
|
|
1775
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
|
|
1776
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$4 = PrototypeOfArrayIteratorPrototype;
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$4) || fails$4(function () {
|
|
1781
|
-
var test = {};
|
|
1782
|
-
// FF44- legacy iterators case
|
|
1783
|
-
return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
|
|
1784
|
-
});
|
|
1785
|
-
|
|
1786
|
-
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
|
|
1787
|
-
|
|
1788
|
-
// `%IteratorPrototype%[@@iterator]()` method
|
|
1789
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1790
|
-
if (!isCallable$2(IteratorPrototype$4[ITERATOR$5])) {
|
|
1791
|
-
defineBuiltIn$2(IteratorPrototype$4, ITERATOR$5, function () {
|
|
1792
|
-
return this;
|
|
1793
|
-
});
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
var iteratorsCore = {
|
|
1797
|
-
IteratorPrototype: IteratorPrototype$4,
|
|
1798
|
-
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1799
|
-
};
|
|
1800
|
-
|
|
1801
|
-
var $$c = _export;
|
|
1802
|
-
var globalThis$3 = globalThis_1;
|
|
1803
|
-
var anInstance = anInstance$1;
|
|
1804
|
-
var anObject$8 = anObject$d;
|
|
1805
|
-
var isCallable$1 = isCallable$g;
|
|
1806
|
-
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1807
|
-
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1808
|
-
var createProperty$1 = createProperty$2;
|
|
1809
|
-
var fails$3 = fails$f;
|
|
1810
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
1811
|
-
var wellKnownSymbol$7 = wellKnownSymbol$c;
|
|
1812
|
-
var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
|
|
1813
|
-
var DESCRIPTORS$1 = descriptors;
|
|
1814
|
-
|
|
1815
|
-
var CONSTRUCTOR = 'constructor';
|
|
1816
|
-
var ITERATOR$4 = 'Iterator';
|
|
1817
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$7('toStringTag');
|
|
1818
|
-
|
|
1819
|
-
var $TypeError$4 = TypeError;
|
|
1820
|
-
var NativeIterator = globalThis$3[ITERATOR$4];
|
|
1821
|
-
|
|
1822
|
-
// FF56- have non-standard global helper `Iterator`
|
|
1823
|
-
var FORCED$4 = !isCallable$1(NativeIterator)
|
|
1824
|
-
|| NativeIterator.prototype !== IteratorPrototype$3
|
|
1825
|
-
// FF44- non-standard `Iterator` passes previous tests
|
|
1826
|
-
|| !fails$3(function () { NativeIterator({}); });
|
|
1827
|
-
|
|
1828
|
-
var IteratorConstructor = function Iterator() {
|
|
1829
|
-
anInstance(this, IteratorPrototype$3);
|
|
1830
|
-
if (getPrototypeOf$1(this) === IteratorPrototype$3) throw new $TypeError$4('Abstract class Iterator not directly constructable');
|
|
1831
|
-
};
|
|
1832
|
-
|
|
1833
|
-
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
1834
|
-
if (DESCRIPTORS$1) {
|
|
1835
|
-
defineBuiltInAccessor(IteratorPrototype$3, key, {
|
|
1836
|
-
configurable: true,
|
|
1837
|
-
get: function () {
|
|
1838
|
-
return value;
|
|
1839
|
-
},
|
|
1840
|
-
set: function (replacement) {
|
|
1841
|
-
anObject$8(this);
|
|
1842
|
-
if (this === IteratorPrototype$3) throw new $TypeError$4("You can't redefine this property");
|
|
1843
|
-
if (hasOwn$1(this, key)) this[key] = replacement;
|
|
1844
|
-
else createProperty$1(this, key, replacement);
|
|
1845
|
-
}
|
|
1846
|
-
});
|
|
1847
|
-
} else IteratorPrototype$3[key] = value;
|
|
1848
|
-
};
|
|
1849
|
-
|
|
1850
|
-
if (!hasOwn$1(IteratorPrototype$3, TO_STRING_TAG$2)) defineIteratorPrototypeAccessor(TO_STRING_TAG$2, ITERATOR$4);
|
|
1851
|
-
|
|
1852
|
-
if (FORCED$4 || !hasOwn$1(IteratorPrototype$3, CONSTRUCTOR) || IteratorPrototype$3[CONSTRUCTOR] === Object) {
|
|
1853
|
-
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
IteratorConstructor.prototype = IteratorPrototype$3;
|
|
1857
|
-
|
|
1858
|
-
// `Iterator` constructor
|
|
1859
|
-
// https://tc39.es/ecma262/#sec-iterator
|
|
1860
|
-
$$c({ global: true, constructor: true, forced: FORCED$4 }, {
|
|
1861
|
-
Iterator: IteratorConstructor
|
|
1862
|
-
});
|
|
1863
|
-
|
|
1864
|
-
var classofRaw = classofRaw$2;
|
|
1865
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
1866
|
-
|
|
1867
|
-
var functionUncurryThisClause = function (fn) {
|
|
1868
|
-
// Nashorn bug:
|
|
1869
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
1870
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
1871
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
|
|
1872
|
-
};
|
|
1873
|
-
|
|
1874
|
-
var uncurryThis$2 = functionUncurryThisClause;
|
|
1875
|
-
var aCallable$5 = aCallable$8;
|
|
1876
|
-
var NATIVE_BIND = functionBindNative;
|
|
1877
|
-
|
|
1878
|
-
var bind$1 = uncurryThis$2(uncurryThis$2.bind);
|
|
1879
|
-
|
|
1880
|
-
// optional / simple context binding
|
|
1881
|
-
var functionBindContext = function (fn, that) {
|
|
1882
|
-
aCallable$5(fn);
|
|
1883
|
-
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
1884
|
-
return fn.apply(that, arguments);
|
|
1885
|
-
};
|
|
1886
|
-
};
|
|
1887
|
-
|
|
1888
|
-
var iterators = {};
|
|
1889
|
-
|
|
1890
|
-
var wellKnownSymbol$6 = wellKnownSymbol$c;
|
|
1891
|
-
var Iterators$4 = iterators;
|
|
1892
|
-
|
|
1893
|
-
var ITERATOR$3 = wellKnownSymbol$6('iterator');
|
|
1894
|
-
var ArrayPrototype$1 = Array.prototype;
|
|
1895
|
-
|
|
1896
|
-
// check on default Array iterator
|
|
1897
|
-
var isArrayIteratorMethod$1 = function (it) {
|
|
1898
|
-
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$3] === it);
|
|
1899
|
-
};
|
|
1900
|
-
|
|
1901
|
-
var classof = classof$2;
|
|
1902
|
-
var getMethod$2 = getMethod$4;
|
|
1903
|
-
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1904
|
-
var Iterators$3 = iterators;
|
|
1905
|
-
var wellKnownSymbol$5 = wellKnownSymbol$c;
|
|
1906
|
-
|
|
1907
|
-
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
1908
|
-
|
|
1909
|
-
var getIteratorMethod$2 = function (it) {
|
|
1910
|
-
if (!isNullOrUndefined(it)) return getMethod$2(it, ITERATOR$2)
|
|
1911
|
-
|| getMethod$2(it, '@@iterator')
|
|
1912
|
-
|| Iterators$3[classof(it)];
|
|
1913
|
-
};
|
|
1914
|
-
|
|
1915
|
-
var call$8 = functionCall;
|
|
1916
|
-
var aCallable$4 = aCallable$8;
|
|
1917
|
-
var anObject$7 = anObject$d;
|
|
1918
|
-
var tryToString$1 = tryToString$3;
|
|
1919
|
-
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1920
|
-
|
|
1921
|
-
var $TypeError$3 = TypeError;
|
|
1922
|
-
|
|
1923
|
-
var getIterator$1 = function (argument, usingIterator) {
|
|
1924
|
-
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1925
|
-
if (aCallable$4(iteratorMethod)) return anObject$7(call$8(iteratorMethod, argument));
|
|
1926
|
-
throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
1927
|
-
};
|
|
1928
|
-
|
|
1929
|
-
var call$7 = functionCall;
|
|
1930
|
-
var anObject$6 = anObject$d;
|
|
1931
|
-
var getMethod$1 = getMethod$4;
|
|
1405
|
+
var call$8 = functionCall;
|
|
1406
|
+
var anObject$6 = anObject$d;
|
|
1407
|
+
var getMethod$1 = getMethod$4;
|
|
1932
1408
|
|
|
1933
1409
|
var iteratorClose$9 = function (iterator, kind, value) {
|
|
1934
1410
|
var innerResult, innerError;
|
|
@@ -1939,7 +1415,7 @@ var iteratorClose$9 = function (iterator, kind, value) {
|
|
|
1939
1415
|
if (kind === 'throw') throw value;
|
|
1940
1416
|
return value;
|
|
1941
1417
|
}
|
|
1942
|
-
innerResult = call$
|
|
1418
|
+
innerResult = call$8(innerResult, iterator);
|
|
1943
1419
|
} catch (error) {
|
|
1944
1420
|
innerError = true;
|
|
1945
1421
|
innerResult = error;
|
|
@@ -1951,17 +1427,17 @@ var iteratorClose$9 = function (iterator, kind, value) {
|
|
|
1951
1427
|
};
|
|
1952
1428
|
|
|
1953
1429
|
var bind = functionBindContext;
|
|
1954
|
-
var call$
|
|
1430
|
+
var call$7 = functionCall;
|
|
1955
1431
|
var anObject$5 = anObject$d;
|
|
1956
1432
|
var tryToString = tryToString$3;
|
|
1957
1433
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1958
1434
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1959
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
1435
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1960
1436
|
var getIterator = getIterator$1;
|
|
1961
1437
|
var getIteratorMethod = getIteratorMethod$2;
|
|
1962
1438
|
var iteratorClose$8 = iteratorClose$9;
|
|
1963
1439
|
|
|
1964
|
-
var $TypeError$
|
|
1440
|
+
var $TypeError$3 = TypeError;
|
|
1965
1441
|
|
|
1966
1442
|
var Result = function (stopped, result) {
|
|
1967
1443
|
this.stopped = stopped;
|
|
@@ -1997,25 +1473,25 @@ var iterate$5 = function (iterable, unboundFunction, options) {
|
|
|
1997
1473
|
iterator = iterable;
|
|
1998
1474
|
} else {
|
|
1999
1475
|
iterFn = getIteratorMethod(iterable);
|
|
2000
|
-
if (!iterFn) throw new $TypeError$
|
|
1476
|
+
if (!iterFn) throw new $TypeError$3(tryToString(iterable) + ' is not iterable');
|
|
2001
1477
|
// optimisation for array iterators
|
|
2002
1478
|
if (isArrayIteratorMethod(iterFn)) {
|
|
2003
1479
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2004
1480
|
result = callFn(iterable[index]);
|
|
2005
|
-
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1481
|
+
if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2006
1482
|
} return new Result(false);
|
|
2007
1483
|
}
|
|
2008
1484
|
iterator = getIterator(iterable, iterFn);
|
|
2009
1485
|
}
|
|
2010
1486
|
|
|
2011
1487
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2012
|
-
while (!(step = call$
|
|
1488
|
+
while (!(step = call$7(next, iterator)).done) {
|
|
2013
1489
|
try {
|
|
2014
1490
|
result = callFn(step.value);
|
|
2015
1491
|
} catch (error) {
|
|
2016
1492
|
iteratorClose$8(iterator, 'throw', error);
|
|
2017
1493
|
}
|
|
2018
|
-
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1494
|
+
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2019
1495
|
} return new Result(false);
|
|
2020
1496
|
};
|
|
2021
1497
|
|
|
@@ -2029,11 +1505,11 @@ var getIteratorDirect$4 = function (obj) {
|
|
|
2029
1505
|
};
|
|
2030
1506
|
};
|
|
2031
1507
|
|
|
2032
|
-
var globalThis$
|
|
1508
|
+
var globalThis$3 = globalThis_1;
|
|
2033
1509
|
|
|
2034
1510
|
// https://github.com/tc39/ecma262/pull/3467
|
|
2035
1511
|
var iteratorHelperWithoutClosingOnEarlyError$3 = function (METHOD_NAME, ExpectedError) {
|
|
2036
|
-
var Iterator = globalThis$
|
|
1512
|
+
var Iterator = globalThis$3.Iterator;
|
|
2037
1513
|
var IteratorPrototype = Iterator && Iterator.prototype;
|
|
2038
1514
|
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
|
|
2039
1515
|
|
|
@@ -2052,10 +1528,10 @@ var iteratorHelperWithoutClosingOnEarlyError$3 = function (METHOD_NAME, Expected
|
|
|
2052
1528
|
if (!CLOSED) return method;
|
|
2053
1529
|
};
|
|
2054
1530
|
|
|
2055
|
-
var $$
|
|
2056
|
-
var call$
|
|
1531
|
+
var $$c = _export;
|
|
1532
|
+
var call$6 = functionCall;
|
|
2057
1533
|
var iterate$4 = iterate$5;
|
|
2058
|
-
var aCallable$
|
|
1534
|
+
var aCallable$4 = aCallable$8;
|
|
2059
1535
|
var anObject$4 = anObject$d;
|
|
2060
1536
|
var getIteratorDirect$3 = getIteratorDirect$4;
|
|
2061
1537
|
var iteratorClose$7 = iteratorClose$9;
|
|
@@ -2065,16 +1541,16 @@ var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError
|
|
|
2065
1541
|
|
|
2066
1542
|
// `Iterator.prototype.forEach` method
|
|
2067
1543
|
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
2068
|
-
$$
|
|
1544
|
+
$$c({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
|
|
2069
1545
|
forEach: function forEach(fn) {
|
|
2070
1546
|
anObject$4(this);
|
|
2071
1547
|
try {
|
|
2072
|
-
aCallable$
|
|
1548
|
+
aCallable$4(fn);
|
|
2073
1549
|
} catch (error) {
|
|
2074
1550
|
iteratorClose$7(this, 'throw', error);
|
|
2075
1551
|
}
|
|
2076
1552
|
|
|
2077
|
-
if (forEachWithoutClosingOnEarlyError) return call$
|
|
1553
|
+
if (forEachWithoutClosingOnEarlyError) return call$6(forEachWithoutClosingOnEarlyError, this, fn);
|
|
2078
1554
|
|
|
2079
1555
|
var record = getIteratorDirect$3(this);
|
|
2080
1556
|
var counter = 0;
|
|
@@ -2084,349 +1560,1197 @@ $$b({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosing
|
|
|
2084
1560
|
}
|
|
2085
1561
|
});
|
|
2086
1562
|
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
var
|
|
2090
|
-
|
|
2091
|
-
|
|
1563
|
+
// iterable DOM collections
|
|
1564
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1565
|
+
var domIterables = {
|
|
1566
|
+
CSSRuleList: 0,
|
|
1567
|
+
CSSStyleDeclaration: 0,
|
|
1568
|
+
CSSValueList: 0,
|
|
1569
|
+
ClientRectList: 0,
|
|
1570
|
+
DOMRectList: 0,
|
|
1571
|
+
DOMStringList: 0,
|
|
1572
|
+
DOMTokenList: 1,
|
|
1573
|
+
DataTransferItemList: 0,
|
|
1574
|
+
FileList: 0,
|
|
1575
|
+
HTMLAllCollection: 0,
|
|
1576
|
+
HTMLCollection: 0,
|
|
1577
|
+
HTMLFormElement: 0,
|
|
1578
|
+
HTMLSelectElement: 0,
|
|
1579
|
+
MediaList: 0,
|
|
1580
|
+
MimeTypeArray: 0,
|
|
1581
|
+
NamedNodeMap: 0,
|
|
1582
|
+
NodeList: 1,
|
|
1583
|
+
PaintRequestList: 0,
|
|
1584
|
+
Plugin: 0,
|
|
1585
|
+
PluginArray: 0,
|
|
1586
|
+
SVGLengthList: 0,
|
|
1587
|
+
SVGNumberList: 0,
|
|
1588
|
+
SVGPathSegList: 0,
|
|
1589
|
+
SVGPointList: 0,
|
|
1590
|
+
SVGStringList: 0,
|
|
1591
|
+
SVGTransformList: 0,
|
|
1592
|
+
SourceBufferList: 0,
|
|
1593
|
+
StyleSheetList: 0,
|
|
1594
|
+
TextTrackCueList: 0,
|
|
1595
|
+
TextTrackList: 0,
|
|
1596
|
+
TouchList: 0
|
|
2092
1597
|
};
|
|
2093
1598
|
|
|
2094
|
-
// `
|
|
2095
|
-
|
|
2096
|
-
var createIterResultObject$2 = function (value, done) {
|
|
2097
|
-
return { value: value, done: done };
|
|
2098
|
-
};
|
|
1599
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1600
|
+
var documentCreateElement = documentCreateElement$2;
|
|
2099
1601
|
|
|
2100
|
-
var
|
|
1602
|
+
var classList = documentCreateElement('span').classList;
|
|
1603
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
2101
1604
|
|
|
2102
|
-
var
|
|
2103
|
-
for (var i = iters.length - 1; i >= 0; i--) {
|
|
2104
|
-
if (iters[i] === undefined) continue;
|
|
2105
|
-
try {
|
|
2106
|
-
value = iteratorClose$6(iters[i].iterator, kind, value);
|
|
2107
|
-
} catch (error) {
|
|
2108
|
-
kind = 'throw';
|
|
2109
|
-
value = error;
|
|
2110
|
-
}
|
|
2111
|
-
}
|
|
2112
|
-
if (kind === 'throw') throw value;
|
|
2113
|
-
return value;
|
|
2114
|
-
};
|
|
1605
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
2115
1606
|
|
|
2116
|
-
var call$4 = functionCall;
|
|
2117
|
-
var create$2 = objectCreate;
|
|
2118
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
2119
|
-
var defineBuiltIns = defineBuiltIns$1;
|
|
2120
1607
|
var wellKnownSymbol$4 = wellKnownSymbol$c;
|
|
2121
|
-
var
|
|
2122
|
-
var
|
|
2123
|
-
var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
|
|
2124
|
-
var createIterResultObject$1 = createIterResultObject$2;
|
|
2125
|
-
var iteratorClose$5 = iteratorClose$9;
|
|
2126
|
-
var iteratorCloseAll = iteratorCloseAll$1;
|
|
2127
|
-
|
|
2128
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
|
|
2129
|
-
var ITERATOR_HELPER = 'IteratorHelper';
|
|
2130
|
-
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
2131
|
-
var NORMAL = 'normal';
|
|
2132
|
-
var THROW = 'throw';
|
|
2133
|
-
var setInternalState$1 = InternalStateModule$1.set;
|
|
1608
|
+
var create$2 = objectCreate;
|
|
1609
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
2134
1610
|
|
|
2135
|
-
var
|
|
2136
|
-
|
|
1611
|
+
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
|
1612
|
+
var ArrayPrototype = Array.prototype;
|
|
2137
1613
|
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
if (IS_ITERATOR) return state.nextHandler();
|
|
2145
|
-
if (state.done) return createIterResultObject$1(undefined, true);
|
|
2146
|
-
try {
|
|
2147
|
-
var result = state.nextHandler();
|
|
2148
|
-
return state.returnHandlerResult ? result : createIterResultObject$1(result, state.done);
|
|
2149
|
-
} catch (error) {
|
|
2150
|
-
state.done = true;
|
|
2151
|
-
throw error;
|
|
2152
|
-
}
|
|
2153
|
-
},
|
|
2154
|
-
'return': function () {
|
|
2155
|
-
var state = getInternalState(this);
|
|
2156
|
-
var iterator = state.iterator;
|
|
2157
|
-
state.done = true;
|
|
2158
|
-
if (IS_ITERATOR) {
|
|
2159
|
-
var returnMethod = getMethod(iterator, 'return');
|
|
2160
|
-
return returnMethod ? call$4(returnMethod, iterator) : createIterResultObject$1(undefined, true);
|
|
2161
|
-
}
|
|
2162
|
-
if (state.inner) try {
|
|
2163
|
-
iteratorClose$5(state.inner.iterator, NORMAL);
|
|
2164
|
-
} catch (error) {
|
|
2165
|
-
return iteratorClose$5(iterator, THROW, error);
|
|
2166
|
-
}
|
|
2167
|
-
if (state.openIters) try {
|
|
2168
|
-
iteratorCloseAll(state.openIters, NORMAL);
|
|
2169
|
-
} catch (error) {
|
|
2170
|
-
return iteratorClose$5(iterator, THROW, error);
|
|
2171
|
-
}
|
|
2172
|
-
if (iterator) iteratorClose$5(iterator, NORMAL);
|
|
2173
|
-
return createIterResultObject$1(undefined, true);
|
|
2174
|
-
}
|
|
1614
|
+
// Array.prototype[@@unscopables]
|
|
1615
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1616
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
1617
|
+
defineProperty$3(ArrayPrototype, UNSCOPABLES, {
|
|
1618
|
+
configurable: true,
|
|
1619
|
+
value: create$2(null)
|
|
2175
1620
|
});
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
2179
|
-
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
2180
|
-
|
|
2181
|
-
createNonEnumerableProperty$2(IteratorHelperPrototype, TO_STRING_TAG$1, 'Iterator Helper');
|
|
2182
|
-
|
|
2183
|
-
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
|
|
2184
|
-
var IteratorProxy = function Iterator(record, state) {
|
|
2185
|
-
if (state) {
|
|
2186
|
-
state.iterator = record.iterator;
|
|
2187
|
-
state.next = record.next;
|
|
2188
|
-
} else state = record;
|
|
2189
|
-
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
2190
|
-
state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
|
|
2191
|
-
state.nextHandler = nextHandler;
|
|
2192
|
-
state.counter = 0;
|
|
2193
|
-
state.done = false;
|
|
2194
|
-
setInternalState$1(this, state);
|
|
2195
|
-
};
|
|
2196
|
-
|
|
2197
|
-
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
1621
|
+
}
|
|
2198
1622
|
|
|
2199
|
-
|
|
1623
|
+
// add a key to Array.prototype[@@unscopables]
|
|
1624
|
+
var addToUnscopables$1 = function (key) {
|
|
1625
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
2200
1626
|
};
|
|
2201
1627
|
|
|
2202
|
-
var
|
|
2203
|
-
var
|
|
1628
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
1629
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1630
|
+
var wellKnownSymbol$3 = wellKnownSymbol$c;
|
|
2204
1631
|
|
|
2205
|
-
|
|
2206
|
-
var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
2207
|
-
try {
|
|
2208
|
-
return ENTRIES ? fn(anObject$3(value)[0], value[1]) : fn(value);
|
|
2209
|
-
} catch (error) {
|
|
2210
|
-
iteratorClose$4(iterator, 'throw', error);
|
|
2211
|
-
}
|
|
2212
|
-
};
|
|
1632
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
2213
1633
|
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
|
|
2219
|
-
if (method) try {
|
|
2220
|
-
method.call({ next: null }, argument).next();
|
|
2221
|
-
} catch (error) {
|
|
2222
|
-
return true;
|
|
1634
|
+
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1635
|
+
if (target && !STATIC) target = target.prototype;
|
|
1636
|
+
if (target && !hasOwn$1(target, TO_STRING_TAG$1)) {
|
|
1637
|
+
defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
2223
1638
|
}
|
|
2224
1639
|
};
|
|
2225
1640
|
|
|
2226
|
-
var
|
|
2227
|
-
var
|
|
2228
|
-
var
|
|
2229
|
-
var
|
|
2230
|
-
var
|
|
2231
|
-
var createIteratorProxy = iteratorCreateProxy;
|
|
2232
|
-
var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
|
|
2233
|
-
var iteratorClose$3 = iteratorClose$9;
|
|
2234
|
-
var iteratorHelperThrowsOnInvalidIterator = iteratorHelperThrowsOnInvalidIterator$1;
|
|
2235
|
-
var iteratorHelperWithoutClosingOnEarlyError$1 = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
1641
|
+
var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
|
|
1642
|
+
var create$1 = objectCreate;
|
|
1643
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
1644
|
+
var setToStringTag$2 = setToStringTag$3;
|
|
1645
|
+
var Iterators$2 = iterators;
|
|
2236
1646
|
|
|
2237
|
-
var
|
|
2238
|
-
var mapWithoutClosingOnEarlyError = !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
|
2239
|
-
&& iteratorHelperWithoutClosingOnEarlyError$1('map', TypeError);
|
|
1647
|
+
var returnThis$1 = function () { return this; };
|
|
2240
1648
|
|
|
2241
|
-
var
|
|
1649
|
+
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1650
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1651
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$2, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
1652
|
+
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1653
|
+
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1654
|
+
return IteratorConstructor;
|
|
1655
|
+
};
|
|
2242
1656
|
|
|
2243
|
-
var
|
|
2244
|
-
|
|
2245
|
-
var result = anObject$2(call$3(this.next, iterator));
|
|
2246
|
-
var done = this.done = !!result.done;
|
|
2247
|
-
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
|
2248
|
-
});
|
|
1657
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1658
|
+
var aCallable$3 = aCallable$8;
|
|
2249
1659
|
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
aCallable$2(mapper);
|
|
2257
|
-
} catch (error) {
|
|
2258
|
-
iteratorClose$3(this, 'throw', error);
|
|
2259
|
-
}
|
|
1660
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1661
|
+
try {
|
|
1662
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1663
|
+
return uncurryThis$3(aCallable$3(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1664
|
+
} catch (error) { /* empty */ }
|
|
1665
|
+
};
|
|
2260
1666
|
|
|
2261
|
-
|
|
1667
|
+
var isObject$3 = isObject$a;
|
|
2262
1668
|
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
}
|
|
2267
|
-
});
|
|
1669
|
+
var isPossiblePrototype$1 = function (argument) {
|
|
1670
|
+
return isObject$3(argument) || argument === null;
|
|
1671
|
+
};
|
|
2268
1672
|
|
|
2269
|
-
var
|
|
2270
|
-
var iterate$3 = iterate$5;
|
|
2271
|
-
var aCallable$1 = aCallable$8;
|
|
2272
|
-
var anObject$1 = anObject$d;
|
|
2273
|
-
var getIteratorDirect$1 = getIteratorDirect$4;
|
|
2274
|
-
var iteratorClose$2 = iteratorClose$9;
|
|
2275
|
-
var iteratorHelperWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
2276
|
-
var apply = functionApply;
|
|
2277
|
-
var fails$2 = fails$f;
|
|
1673
|
+
var isPossiblePrototype = isPossiblePrototype$1;
|
|
2278
1674
|
|
|
2279
|
-
var $
|
|
1675
|
+
var $String$1 = String;
|
|
1676
|
+
var $TypeError$2 = TypeError;
|
|
2280
1677
|
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
});
|
|
1678
|
+
var aPossiblePrototype$1 = function (argument) {
|
|
1679
|
+
if (isPossiblePrototype(argument)) return argument;
|
|
1680
|
+
throw new $TypeError$2("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1681
|
+
};
|
|
2286
1682
|
|
|
2287
|
-
|
|
1683
|
+
/* eslint-disable no-proto -- safe */
|
|
1684
|
+
var uncurryThisAccessor$1 = functionUncurryThisAccessor;
|
|
1685
|
+
var isObject$2 = isObject$a;
|
|
1686
|
+
var requireObjectCoercible = requireObjectCoercible$3;
|
|
1687
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
|
2288
1688
|
|
|
2289
|
-
// `
|
|
2290
|
-
// https://tc39.es/ecma262/#sec-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
1689
|
+
// `Object.setPrototypeOf` method
|
|
1690
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1691
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1692
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1693
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1694
|
+
var CORRECT_SETTER = false;
|
|
1695
|
+
var test = {};
|
|
1696
|
+
var setter;
|
|
1697
|
+
try {
|
|
1698
|
+
setter = uncurryThisAccessor$1(Object.prototype, '__proto__', 'set');
|
|
1699
|
+
setter(test, []);
|
|
1700
|
+
CORRECT_SETTER = test instanceof Array;
|
|
1701
|
+
} catch (error) { /* empty */ }
|
|
1702
|
+
return function setPrototypeOf(O, proto) {
|
|
1703
|
+
requireObjectCoercible(O);
|
|
1704
|
+
aPossiblePrototype(proto);
|
|
1705
|
+
if (!isObject$2(O)) return O;
|
|
1706
|
+
if (CORRECT_SETTER) setter(O, proto);
|
|
1707
|
+
else O.__proto__ = proto;
|
|
1708
|
+
return O;
|
|
1709
|
+
};
|
|
1710
|
+
}() : undefined);
|
|
2299
1711
|
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
}
|
|
2314
|
-
counter++;
|
|
2315
|
-
}, { IS_RECORD: true });
|
|
2316
|
-
if (noInitial) throw new $TypeError$1('Reduce of empty iterator with no initial value');
|
|
2317
|
-
return accumulator;
|
|
2318
|
-
}
|
|
2319
|
-
});
|
|
1712
|
+
var $$b = _export;
|
|
1713
|
+
var call$5 = functionCall;
|
|
1714
|
+
var FunctionName = functionName;
|
|
1715
|
+
var isCallable$1 = isCallable$g;
|
|
1716
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1717
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
|
1718
|
+
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1719
|
+
var setToStringTag$1 = setToStringTag$3;
|
|
1720
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1721
|
+
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
1722
|
+
var wellKnownSymbol$2 = wellKnownSymbol$c;
|
|
1723
|
+
var Iterators$1 = iterators;
|
|
1724
|
+
var IteratorsCore = iteratorsCore;
|
|
2320
1725
|
|
|
2321
|
-
var
|
|
2322
|
-
var
|
|
2323
|
-
var
|
|
1726
|
+
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1727
|
+
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1728
|
+
var IteratorPrototype$1 = IteratorsCore.IteratorPrototype;
|
|
1729
|
+
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1730
|
+
var ITERATOR$1 = wellKnownSymbol$2('iterator');
|
|
1731
|
+
var KEYS = 'keys';
|
|
1732
|
+
var VALUES = 'values';
|
|
1733
|
+
var ENTRIES = 'entries';
|
|
2324
1734
|
|
|
2325
|
-
|
|
2326
|
-
// https://tc39.es/ecma262/#sec-object.fromentries
|
|
2327
|
-
$$8({ target: 'Object', stat: true }, {
|
|
2328
|
-
fromEntries: function fromEntries(iterable) {
|
|
2329
|
-
var obj = {};
|
|
2330
|
-
iterate$2(iterable, function (k, v) {
|
|
2331
|
-
createProperty(obj, k, v);
|
|
2332
|
-
}, { AS_ENTRIES: true });
|
|
2333
|
-
return obj;
|
|
2334
|
-
}
|
|
2335
|
-
});
|
|
1735
|
+
var returnThis = function () { return this; };
|
|
2336
1736
|
|
|
2337
|
-
var
|
|
1737
|
+
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1738
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
2338
1739
|
|
|
2339
|
-
|
|
2340
|
-
|
|
1740
|
+
var getIterationMethod = function (KIND) {
|
|
1741
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1742
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
2341
1743
|
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
remove: uncurryThis$1(SetPrototype$1['delete']),
|
|
2348
|
-
proto: SetPrototype$1
|
|
2349
|
-
};
|
|
1744
|
+
switch (KIND) {
|
|
1745
|
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
1746
|
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
1747
|
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
1748
|
+
}
|
|
2350
1749
|
|
|
2351
|
-
|
|
1750
|
+
return function () { return new IteratorConstructor(this); };
|
|
1751
|
+
};
|
|
2352
1752
|
|
|
2353
|
-
|
|
2354
|
-
var
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
1753
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1754
|
+
var INCORRECT_VALUES_NAME = false;
|
|
1755
|
+
var IterablePrototype = Iterable.prototype;
|
|
1756
|
+
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
1757
|
+
|| IterablePrototype['@@iterator']
|
|
1758
|
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1759
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1760
|
+
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1761
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
2358
1762
|
|
|
2359
|
-
|
|
1763
|
+
// fix native
|
|
1764
|
+
if (anyNativeIterator) {
|
|
1765
|
+
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1766
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1767
|
+
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$1) {
|
|
1768
|
+
if (setPrototypeOf$2) {
|
|
1769
|
+
setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype$1);
|
|
1770
|
+
} else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1771
|
+
defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
// Set @@toStringTag to native iterators
|
|
1775
|
+
setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
2360
1778
|
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
1779
|
+
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1780
|
+
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1781
|
+
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1782
|
+
createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
|
|
1783
|
+
} else {
|
|
1784
|
+
INCORRECT_VALUES_NAME = true;
|
|
1785
|
+
defaultIterator = function values() { return call$5(nativeIterator, this); };
|
|
1786
|
+
}
|
|
2368
1787
|
}
|
|
2369
|
-
};
|
|
2370
1788
|
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
1789
|
+
// export additional methods
|
|
1790
|
+
if (DEFAULT) {
|
|
1791
|
+
methods = {
|
|
1792
|
+
values: getIterationMethod(VALUES),
|
|
1793
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1794
|
+
entries: getIterationMethod(ENTRIES)
|
|
1795
|
+
};
|
|
1796
|
+
if (FORCED) for (KEY in methods) {
|
|
1797
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1798
|
+
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1799
|
+
}
|
|
1800
|
+
} else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1801
|
+
}
|
|
2374
1802
|
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
1803
|
+
// define iterator
|
|
1804
|
+
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1805
|
+
defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1806
|
+
}
|
|
1807
|
+
Iterators$1[NAME] = defaultIterator;
|
|
2380
1808
|
|
|
2381
|
-
|
|
2382
|
-
return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
|
|
1809
|
+
return methods;
|
|
2383
1810
|
};
|
|
2384
1811
|
|
|
2385
|
-
|
|
2386
|
-
|
|
1812
|
+
// `CreateIterResultObject` abstract operation
|
|
1813
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
1814
|
+
var createIterResultObject$2 = function (value, done) {
|
|
1815
|
+
return { value: value, done: done };
|
|
1816
|
+
};
|
|
2387
1817
|
|
|
2388
|
-
var
|
|
2389
|
-
var
|
|
1818
|
+
var toIndexedObject = toIndexedObject$5;
|
|
1819
|
+
var addToUnscopables = addToUnscopables$1;
|
|
1820
|
+
var Iterators = iterators;
|
|
1821
|
+
var InternalStateModule$1 = internalState;
|
|
1822
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1823
|
+
var defineIterator = iteratorDefine;
|
|
1824
|
+
var createIterResultObject$1 = createIterResultObject$2;
|
|
1825
|
+
var DESCRIPTORS$1 = descriptors;
|
|
2390
1826
|
|
|
2391
|
-
var
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
1827
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1828
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
1829
|
+
var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1830
|
+
|
|
1831
|
+
// `Array.prototype.entries` method
|
|
1832
|
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
1833
|
+
// `Array.prototype.keys` method
|
|
1834
|
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
1835
|
+
// `Array.prototype.values` method
|
|
1836
|
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
1837
|
+
// `Array.prototype[@@iterator]` method
|
|
1838
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
1839
|
+
// `CreateArrayIterator` internal method
|
|
1840
|
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1841
|
+
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1842
|
+
setInternalState$1(this, {
|
|
1843
|
+
type: ARRAY_ITERATOR,
|
|
1844
|
+
target: toIndexedObject(iterated), // target
|
|
1845
|
+
index: 0, // next index
|
|
1846
|
+
kind: kind // kind
|
|
2395
1847
|
});
|
|
2396
|
-
|
|
2397
|
-
|
|
1848
|
+
// `%ArrayIteratorPrototype%.next` method
|
|
1849
|
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1850
|
+
}, function () {
|
|
1851
|
+
var state = getInternalState(this);
|
|
1852
|
+
var target = state.target;
|
|
1853
|
+
var index = state.index++;
|
|
1854
|
+
if (!target || index >= target.length) {
|
|
1855
|
+
state.target = null;
|
|
1856
|
+
return createIterResultObject$1(undefined, true);
|
|
1857
|
+
}
|
|
1858
|
+
switch (state.kind) {
|
|
1859
|
+
case 'keys': return createIterResultObject$1(index, false);
|
|
1860
|
+
case 'values': return createIterResultObject$1(target[index], false);
|
|
1861
|
+
} return createIterResultObject$1([index, target[index]], false);
|
|
1862
|
+
}, 'values');
|
|
2398
1863
|
|
|
2399
|
-
|
|
2400
|
-
|
|
1864
|
+
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1865
|
+
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
1866
|
+
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
1867
|
+
var values = Iterators.Arguments = Iterators.Array;
|
|
2401
1868
|
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
1869
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1870
|
+
addToUnscopables('keys');
|
|
1871
|
+
addToUnscopables('values');
|
|
1872
|
+
addToUnscopables('entries');
|
|
2405
1873
|
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
var getIteratorDirect = getIteratorDirect$4;
|
|
1874
|
+
// V8 ~ Chrome 45- bug
|
|
1875
|
+
if (DESCRIPTORS$1 && values.name !== 'values') try {
|
|
1876
|
+
defineProperty$1(values, 'name', { value: 'values' });
|
|
1877
|
+
} catch (error) { /* empty */ }
|
|
2411
1878
|
|
|
2412
|
-
var
|
|
2413
|
-
var
|
|
2414
|
-
var
|
|
2415
|
-
var
|
|
1879
|
+
var globalThis$2 = globalThis_1;
|
|
1880
|
+
var DOMIterables = domIterables;
|
|
1881
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1882
|
+
var ArrayIteratorMethods = es_array_iterator;
|
|
1883
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
1884
|
+
var setToStringTag = setToStringTag$3;
|
|
1885
|
+
var wellKnownSymbol$1 = wellKnownSymbol$c;
|
|
2416
1886
|
|
|
2417
|
-
var
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
1887
|
+
var ITERATOR = wellKnownSymbol$1('iterator');
|
|
1888
|
+
var ArrayValues = ArrayIteratorMethods.values;
|
|
1889
|
+
|
|
1890
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1891
|
+
if (CollectionPrototype) {
|
|
1892
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1893
|
+
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1894
|
+
createNonEnumerableProperty$4(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1895
|
+
} catch (error) {
|
|
1896
|
+
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1897
|
+
}
|
|
1898
|
+
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
1899
|
+
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1900
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1901
|
+
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1902
|
+
createNonEnumerableProperty$4(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1903
|
+
} catch (error) {
|
|
1904
|
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1910
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
1911
|
+
handlePrototype(globalThis$2[COLLECTION_NAME] && globalThis$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1915
|
+
|
|
1916
|
+
function flattenObject(obj, prefix = '', result = {}) {
|
|
1917
|
+
Object.entries(obj).forEach(([key, value]) => {
|
|
1918
|
+
const newKey = prefix ? `${prefix}-${key}` : key;
|
|
1919
|
+
if (value && typeof value === 'object' && !Array.isArray(value)) {
|
|
1920
|
+
flattenObject(value, newKey, result);
|
|
1921
|
+
} else if (typeof value === 'string') {
|
|
1922
|
+
result[newKey] = value;
|
|
1923
|
+
}
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
function customFlattenColorPalette(colors) {
|
|
1927
|
+
if (!colors || typeof colors !== 'object') return {};
|
|
1928
|
+
const result = {};
|
|
1929
|
+
flattenObject(colors, '', result);
|
|
1930
|
+
return result;
|
|
1931
|
+
}
|
|
1932
|
+
function moduleExists(modulePath) {
|
|
1933
|
+
try {
|
|
1934
|
+
require.resolve(modulePath);
|
|
1935
|
+
return true;
|
|
1936
|
+
} catch (_unused) {
|
|
1937
|
+
return false;
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
function flattenColorPalette(colors) {
|
|
1941
|
+
if (!moduleExists('tailwindcss/lib/util/flattenColorPalette')) {
|
|
1942
|
+
return customFlattenColorPalette(colors);
|
|
1943
|
+
}
|
|
1944
|
+
try {
|
|
1945
|
+
const {
|
|
1946
|
+
default: twFlattenColorPalette
|
|
1947
|
+
} = require('tailwindcss/lib/util/flattenColorPalette');
|
|
1948
|
+
return twFlattenColorPalette(colors);
|
|
1949
|
+
} catch (_unused2) {
|
|
1950
|
+
return customFlattenColorPalette(colors);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
const ColorMix = plugin(function ({
|
|
1955
|
+
matchUtilities,
|
|
1956
|
+
theme
|
|
1957
|
+
}) {
|
|
1958
|
+
matchUtilities({
|
|
1959
|
+
'bg-hover': value => blendColor({
|
|
1960
|
+
color: value,
|
|
1961
|
+
base: 'var(--bq-hover)'
|
|
1962
|
+
}),
|
|
1963
|
+
'bg-active': value => blendColor({
|
|
1964
|
+
color: value,
|
|
1965
|
+
base: 'var(--bq-active)'
|
|
1966
|
+
}),
|
|
1967
|
+
'border-hover': value => blendColor({
|
|
1968
|
+
color: value,
|
|
1969
|
+
base: 'var(--bq-hover)',
|
|
1970
|
+
property: 'border-color'
|
|
1971
|
+
}),
|
|
1972
|
+
'border-active': value => blendColor({
|
|
1973
|
+
color: value,
|
|
1974
|
+
base: 'var(--bq-active)',
|
|
1975
|
+
property: 'border-color'
|
|
1976
|
+
}),
|
|
1977
|
+
'text-hover': value => blendColor({
|
|
1978
|
+
color: value,
|
|
1979
|
+
base: 'var(--bq-hover)',
|
|
1980
|
+
property: 'color'
|
|
1981
|
+
}),
|
|
1982
|
+
'text-active': value => blendColor({
|
|
1983
|
+
color: value,
|
|
1984
|
+
base: 'var(--bq-active)',
|
|
1985
|
+
property: 'color'
|
|
1986
|
+
})
|
|
1987
|
+
}, {
|
|
1988
|
+
values: flattenColorPalette(theme('colors'))
|
|
1989
|
+
});
|
|
1990
|
+
matchUtilities({
|
|
1991
|
+
'bg-hover': value => blendColor({
|
|
1992
|
+
color: value,
|
|
1993
|
+
base: 'var(--bq-hover)'
|
|
1994
|
+
}),
|
|
1995
|
+
'bg-active': value => blendColor({
|
|
1996
|
+
color: value,
|
|
1997
|
+
base: 'var(--bq-active)'
|
|
1998
|
+
})
|
|
1999
|
+
}, {
|
|
2000
|
+
values: flattenColorPalette(theme('backgroundColor'))
|
|
2001
|
+
});
|
|
2002
|
+
matchUtilities({
|
|
2003
|
+
'border-hover': value => blendColor({
|
|
2004
|
+
color: value,
|
|
2005
|
+
base: 'var(--bq-hover)',
|
|
2006
|
+
property: 'border-color'
|
|
2007
|
+
}),
|
|
2008
|
+
'border-active': value => blendColor({
|
|
2009
|
+
color: value,
|
|
2010
|
+
base: 'var(--bq-active)',
|
|
2011
|
+
property: 'border-color'
|
|
2012
|
+
})
|
|
2013
|
+
}, {
|
|
2014
|
+
values: flattenColorPalette(theme('borderColor'))
|
|
2015
|
+
});
|
|
2016
|
+
matchUtilities({
|
|
2017
|
+
'text-hover': value => blendColor({
|
|
2018
|
+
color: value,
|
|
2019
|
+
base: 'var(--bq-hover)',
|
|
2020
|
+
property: 'color'
|
|
2021
|
+
}),
|
|
2022
|
+
'text-active': value => blendColor({
|
|
2023
|
+
color: value,
|
|
2024
|
+
base: 'var(--bq-active)',
|
|
2025
|
+
property: 'color'
|
|
2026
|
+
})
|
|
2027
|
+
}, {
|
|
2028
|
+
values: flattenColorPalette(theme('textColor'))
|
|
2029
|
+
});
|
|
2030
|
+
matchUtilities({
|
|
2031
|
+
'stroke-hover': value => blendColor({
|
|
2032
|
+
color: value,
|
|
2033
|
+
base: 'var(--bq-hover)',
|
|
2034
|
+
property: 'color'
|
|
2035
|
+
}),
|
|
2036
|
+
'stroke-active': value => blendColor({
|
|
2037
|
+
color: value,
|
|
2038
|
+
base: 'var(--bq-active)',
|
|
2039
|
+
property: 'color'
|
|
2040
|
+
})
|
|
2041
|
+
}, {
|
|
2042
|
+
values: flattenColorPalette(theme('stroke'))
|
|
2043
|
+
});
|
|
2044
|
+
});
|
|
2045
|
+
|
|
2046
|
+
const LogicalProperties = plugin(function ({
|
|
2047
|
+
matchUtilities,
|
|
2048
|
+
theme
|
|
2049
|
+
}) {
|
|
2050
|
+
matchUtilities({
|
|
2051
|
+
'border-bl': value => ({
|
|
2052
|
+
'border-block-width': value
|
|
2053
|
+
}),
|
|
2054
|
+
'border-bs': value => ({
|
|
2055
|
+
'border-block-start-width': value
|
|
2056
|
+
}),
|
|
2057
|
+
'border-be': value => ({
|
|
2058
|
+
'border-block-end-width': value
|
|
2059
|
+
}),
|
|
2060
|
+
'border-i': value => ({
|
|
2061
|
+
'border-inline-width': value
|
|
2062
|
+
}),
|
|
2063
|
+
'border-is': value => ({
|
|
2064
|
+
'border-inline-start-width': value
|
|
2065
|
+
}),
|
|
2066
|
+
'border-ie': value => ({
|
|
2067
|
+
'border-inline-end-width': value
|
|
2068
|
+
})
|
|
2069
|
+
}, {
|
|
2070
|
+
values: theme('borderWidth')
|
|
2071
|
+
});
|
|
2072
|
+
matchUtilities({
|
|
2073
|
+
'border-bl': value => ({
|
|
2074
|
+
'border-block-color': value
|
|
2075
|
+
}),
|
|
2076
|
+
'border-bs': value => ({
|
|
2077
|
+
'border-block-start-color': value
|
|
2078
|
+
}),
|
|
2079
|
+
'border-be': value => ({
|
|
2080
|
+
'border-block-end-color': value
|
|
2081
|
+
}),
|
|
2082
|
+
'border-i': value => ({
|
|
2083
|
+
'border-inline-color': value
|
|
2084
|
+
}),
|
|
2085
|
+
'border-is': value => ({
|
|
2086
|
+
'border-inline-start-color': value
|
|
2087
|
+
}),
|
|
2088
|
+
'border-ie': value => ({
|
|
2089
|
+
'border-inline-end-color': value
|
|
2090
|
+
})
|
|
2091
|
+
}, {
|
|
2092
|
+
values: flattenColorPalette(theme('colors'))
|
|
2093
|
+
});
|
|
2094
|
+
matchUtilities({
|
|
2095
|
+
bs: value => ({
|
|
2096
|
+
'block-size': value
|
|
2097
|
+
}),
|
|
2098
|
+
'max-bs': value => ({
|
|
2099
|
+
'max-block-size': value
|
|
2100
|
+
}),
|
|
2101
|
+
'min-bs': value => ({
|
|
2102
|
+
'min-block-size': value
|
|
2103
|
+
}),
|
|
2104
|
+
is: value => ({
|
|
2105
|
+
'inline-size': value
|
|
2106
|
+
}),
|
|
2107
|
+
'max-is': value => ({
|
|
2108
|
+
'max-inline-size': value
|
|
2109
|
+
}),
|
|
2110
|
+
'min-is': value => ({
|
|
2111
|
+
'min-inline-size': value
|
|
2112
|
+
})
|
|
2113
|
+
}, {
|
|
2114
|
+
values: theme('width')
|
|
2115
|
+
});
|
|
2116
|
+
matchUtilities({
|
|
2117
|
+
'border-bl': value => ({
|
|
2118
|
+
'border-block': value
|
|
2119
|
+
}),
|
|
2120
|
+
'border-bs': value => ({
|
|
2121
|
+
'border-block-start': value
|
|
2122
|
+
}),
|
|
2123
|
+
'border-be': value => ({
|
|
2124
|
+
'border-block-end': value
|
|
2125
|
+
}),
|
|
2126
|
+
'border-i': value => ({
|
|
2127
|
+
'border-inline': value
|
|
2128
|
+
}),
|
|
2129
|
+
'border-is': value => ({
|
|
2130
|
+
'border-inline-start': value
|
|
2131
|
+
}),
|
|
2132
|
+
'border-ie': value => ({
|
|
2133
|
+
'border-inline-end': value
|
|
2134
|
+
}),
|
|
2135
|
+
'p-b': value => ({
|
|
2136
|
+
'padding-block': value
|
|
2137
|
+
}),
|
|
2138
|
+
'p-bs': value => ({
|
|
2139
|
+
'padding-block-start': value
|
|
2140
|
+
}),
|
|
2141
|
+
'p-be': value => ({
|
|
2142
|
+
'padding-block-end': value
|
|
2143
|
+
}),
|
|
2144
|
+
'p-i': value => ({
|
|
2145
|
+
'padding-inline': value
|
|
2146
|
+
})
|
|
2147
|
+
}, {
|
|
2148
|
+
values: theme('spacing')
|
|
2149
|
+
});
|
|
2150
|
+
matchUtilities({
|
|
2151
|
+
'inset-b': value => ({
|
|
2152
|
+
'inset-block': value
|
|
2153
|
+
}),
|
|
2154
|
+
'inset-bs': value => ({
|
|
2155
|
+
'inset-block-start': value
|
|
2156
|
+
}),
|
|
2157
|
+
'inset-be': value => ({
|
|
2158
|
+
'inset-block-end': value
|
|
2159
|
+
}),
|
|
2160
|
+
'inset-i': value => ({
|
|
2161
|
+
'inset-inline': value
|
|
2162
|
+
}),
|
|
2163
|
+
'inset-is': value => ({
|
|
2164
|
+
'inset-inline-start': value
|
|
2165
|
+
}),
|
|
2166
|
+
'inset-ie': value => ({
|
|
2167
|
+
'inset-inline-end': value
|
|
2168
|
+
}),
|
|
2169
|
+
'm-b': value => ({
|
|
2170
|
+
'margin-block': value
|
|
2171
|
+
}),
|
|
2172
|
+
'm-bs': value => ({
|
|
2173
|
+
'margin-block-start': value
|
|
2174
|
+
}),
|
|
2175
|
+
'm-be': value => ({
|
|
2176
|
+
'margin-block-end': value
|
|
2177
|
+
}),
|
|
2178
|
+
'm-i': value => ({
|
|
2179
|
+
'margin-inline': value
|
|
2180
|
+
})
|
|
2181
|
+
}, {
|
|
2182
|
+
values: theme('spacing'),
|
|
2183
|
+
supportsNegativeValues: true
|
|
2184
|
+
});
|
|
2185
|
+
});
|
|
2186
|
+
|
|
2187
|
+
var NATIVE_BIND = functionBindNative;
|
|
2188
|
+
|
|
2189
|
+
var FunctionPrototype = Function.prototype;
|
|
2190
|
+
var apply$2 = FunctionPrototype.apply;
|
|
2191
|
+
var call$4 = FunctionPrototype.call;
|
|
2192
|
+
|
|
2193
|
+
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
2194
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$2) : function () {
|
|
2195
|
+
return call$4.apply(apply$2, arguments);
|
|
2196
|
+
});
|
|
2197
|
+
|
|
2198
|
+
var defineProperty = objectDefineProperty.f;
|
|
2199
|
+
|
|
2200
|
+
var proxyAccessor$1 = function (Target, Source, key) {
|
|
2201
|
+
key in Target || defineProperty(Target, key, {
|
|
2202
|
+
configurable: true,
|
|
2203
|
+
get: function () { return Source[key]; },
|
|
2204
|
+
set: function (it) { Source[key] = it; }
|
|
2205
|
+
});
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
var isCallable = isCallable$g;
|
|
2209
|
+
var isObject$1 = isObject$a;
|
|
2210
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
2211
|
+
|
|
2212
|
+
// makes subclassing work correct for wrapped built-ins
|
|
2213
|
+
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
2214
|
+
var NewTarget, NewTargetPrototype;
|
|
2215
|
+
if (
|
|
2216
|
+
// it can work only with native `setPrototypeOf`
|
|
2217
|
+
setPrototypeOf$1 &&
|
|
2218
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
2219
|
+
isCallable(NewTarget = dummy.constructor) &&
|
|
2220
|
+
NewTarget !== Wrapper &&
|
|
2221
|
+
isObject$1(NewTargetPrototype = NewTarget.prototype) &&
|
|
2222
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
2223
|
+
) setPrototypeOf$1($this, NewTargetPrototype);
|
|
2224
|
+
return $this;
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2227
|
+
var classof = classof$2;
|
|
2228
|
+
|
|
2229
|
+
var $String = String;
|
|
2230
|
+
|
|
2231
|
+
var toString$1 = function (argument) {
|
|
2232
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
2233
|
+
return $String(argument);
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
var toString = toString$1;
|
|
2237
|
+
|
|
2238
|
+
var normalizeStringArgument$1 = function (argument, $default) {
|
|
2239
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
|
2240
|
+
};
|
|
2241
|
+
|
|
2242
|
+
var isObject = isObject$a;
|
|
2243
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
2244
|
+
|
|
2245
|
+
// `InstallErrorCause` abstract operation
|
|
2246
|
+
// https://tc39.es/ecma262/#sec-installerrorcause
|
|
2247
|
+
var installErrorCause$1 = function (O, options) {
|
|
2248
|
+
if (isObject(options) && 'cause' in options) {
|
|
2249
|
+
createNonEnumerableProperty$3(O, 'cause', options.cause);
|
|
2250
|
+
}
|
|
2251
|
+
};
|
|
2252
|
+
|
|
2253
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2254
|
+
|
|
2255
|
+
var $Error = Error;
|
|
2256
|
+
var replace = uncurryThis$2(''.replace);
|
|
2257
|
+
|
|
2258
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
2259
|
+
// eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe
|
|
2260
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
2261
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
2262
|
+
|
|
2263
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
2264
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
2265
|
+
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
2266
|
+
} return stack;
|
|
2267
|
+
};
|
|
2268
|
+
|
|
2269
|
+
var fails$3 = fails$f;
|
|
2270
|
+
var createPropertyDescriptor = createPropertyDescriptor$5;
|
|
2271
|
+
|
|
2272
|
+
var errorStackInstallable = !fails$3(function () {
|
|
2273
|
+
var error = new Error('a');
|
|
2274
|
+
if (!('stack' in error)) return true;
|
|
2275
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2276
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
2277
|
+
return error.stack !== 7;
|
|
2278
|
+
});
|
|
2279
|
+
|
|
2280
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
2281
|
+
var clearErrorStack = errorStackClear;
|
|
2282
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
2283
|
+
|
|
2284
|
+
// non-standard V8
|
|
2285
|
+
// eslint-disable-next-line es/no-nonstandard-error-properties -- safe
|
|
2286
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
2287
|
+
|
|
2288
|
+
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
2289
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
2290
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
2291
|
+
else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
2292
|
+
}
|
|
2293
|
+
};
|
|
2294
|
+
|
|
2295
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
2296
|
+
var hasOwn = hasOwnProperty_1;
|
|
2297
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
2298
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
2299
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
2300
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
|
2301
|
+
var proxyAccessor = proxyAccessor$1;
|
|
2302
|
+
var inheritIfRequired = inheritIfRequired$1;
|
|
2303
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
2304
|
+
var installErrorCause = installErrorCause$1;
|
|
2305
|
+
var installErrorStack = errorStackInstall;
|
|
2306
|
+
var DESCRIPTORS = descriptors;
|
|
2307
|
+
|
|
2308
|
+
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
2309
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
2310
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
2311
|
+
var path = FULL_NAME.split('.');
|
|
2312
|
+
var ERROR_NAME = path[path.length - 1];
|
|
2313
|
+
var OriginalError = getBuiltIn$1.apply(null, path);
|
|
2314
|
+
|
|
2315
|
+
if (!OriginalError) return;
|
|
2316
|
+
|
|
2317
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
2318
|
+
|
|
2319
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
2320
|
+
if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
2321
|
+
|
|
2322
|
+
if (!FORCED) return OriginalError;
|
|
2323
|
+
|
|
2324
|
+
var BaseError = getBuiltIn$1('Error');
|
|
2325
|
+
|
|
2326
|
+
var WrappedError = wrapper(function (a, b) {
|
|
2327
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
2328
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
2329
|
+
if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message);
|
|
2330
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
2331
|
+
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
2332
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
2333
|
+
return result;
|
|
2334
|
+
});
|
|
2335
|
+
|
|
2336
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
2337
|
+
|
|
2338
|
+
if (ERROR_NAME !== 'Error') {
|
|
2339
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
2340
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
2341
|
+
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
2342
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
2343
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
2347
|
+
|
|
2348
|
+
try {
|
|
2349
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
2350
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
2351
|
+
createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
2352
|
+
}
|
|
2353
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
2354
|
+
} catch (error) { /* empty */ }
|
|
2355
|
+
|
|
2356
|
+
return WrappedError;
|
|
2357
|
+
};
|
|
2358
|
+
|
|
2359
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
2360
|
+
var $$a = _export;
|
|
2361
|
+
var globalThis$1 = globalThis_1;
|
|
2362
|
+
var apply$1 = functionApply;
|
|
2363
|
+
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
2364
|
+
|
|
2365
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
2366
|
+
var WebAssembly = globalThis$1[WEB_ASSEMBLY];
|
|
2367
|
+
|
|
2368
|
+
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
2369
|
+
var FORCED$4 = new Error('e', { cause: 7 }).cause !== 7;
|
|
2370
|
+
|
|
2371
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2372
|
+
var O = {};
|
|
2373
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$4);
|
|
2374
|
+
$$a({ global: true, constructor: true, arity: 1, forced: FORCED$4 }, O);
|
|
2375
|
+
};
|
|
2376
|
+
|
|
2377
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2378
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
2379
|
+
var O = {};
|
|
2380
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$4);
|
|
2381
|
+
$$a({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$4 }, O);
|
|
2382
|
+
}
|
|
2383
|
+
};
|
|
2384
|
+
|
|
2385
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
2386
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
2387
|
+
return function Error(message) { return apply$1(init, this, arguments); };
|
|
2388
|
+
});
|
|
2389
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
2390
|
+
return function EvalError(message) { return apply$1(init, this, arguments); };
|
|
2391
|
+
});
|
|
2392
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
2393
|
+
return function RangeError(message) { return apply$1(init, this, arguments); };
|
|
2394
|
+
});
|
|
2395
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
2396
|
+
return function ReferenceError(message) { return apply$1(init, this, arguments); };
|
|
2397
|
+
});
|
|
2398
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
2399
|
+
return function SyntaxError(message) { return apply$1(init, this, arguments); };
|
|
2400
|
+
});
|
|
2401
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
2402
|
+
return function TypeError(message) { return apply$1(init, this, arguments); };
|
|
2403
|
+
});
|
|
2404
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
2405
|
+
return function URIError(message) { return apply$1(init, this, arguments); };
|
|
2406
|
+
});
|
|
2407
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
2408
|
+
return function CompileError(message) { return apply$1(init, this, arguments); };
|
|
2409
|
+
});
|
|
2410
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
2411
|
+
return function LinkError(message) { return apply$1(init, this, arguments); };
|
|
2412
|
+
});
|
|
2413
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
2414
|
+
return function RuntimeError(message) { return apply$1(init, this, arguments); };
|
|
2415
|
+
});
|
|
2416
|
+
|
|
2417
|
+
var defineBuiltIn = defineBuiltIn$4;
|
|
2418
|
+
|
|
2419
|
+
var defineBuiltIns$1 = function (target, src, options) {
|
|
2420
|
+
for (var key in src) defineBuiltIn(target, key, src[key], options);
|
|
2421
|
+
return target;
|
|
2422
|
+
};
|
|
2423
|
+
|
|
2424
|
+
var iteratorClose$6 = iteratorClose$9;
|
|
2425
|
+
|
|
2426
|
+
var iteratorCloseAll$1 = function (iters, kind, value) {
|
|
2427
|
+
for (var i = iters.length - 1; i >= 0; i--) {
|
|
2428
|
+
if (iters[i] === undefined) continue;
|
|
2429
|
+
try {
|
|
2430
|
+
value = iteratorClose$6(iters[i].iterator, kind, value);
|
|
2431
|
+
} catch (error) {
|
|
2432
|
+
kind = 'throw';
|
|
2433
|
+
value = error;
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
if (kind === 'throw') throw value;
|
|
2437
|
+
return value;
|
|
2438
|
+
};
|
|
2439
|
+
|
|
2440
|
+
var call$3 = functionCall;
|
|
2441
|
+
var create = objectCreate;
|
|
2442
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
2443
|
+
var defineBuiltIns = defineBuiltIns$1;
|
|
2444
|
+
var wellKnownSymbol = wellKnownSymbol$c;
|
|
2445
|
+
var InternalStateModule = internalState;
|
|
2446
|
+
var getMethod = getMethod$4;
|
|
2447
|
+
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
2448
|
+
var createIterResultObject = createIterResultObject$2;
|
|
2449
|
+
var iteratorClose$5 = iteratorClose$9;
|
|
2450
|
+
var iteratorCloseAll = iteratorCloseAll$1;
|
|
2451
|
+
|
|
2452
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
2453
|
+
var ITERATOR_HELPER = 'IteratorHelper';
|
|
2454
|
+
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
2455
|
+
var NORMAL = 'normal';
|
|
2456
|
+
var THROW = 'throw';
|
|
2457
|
+
var setInternalState = InternalStateModule.set;
|
|
2458
|
+
|
|
2459
|
+
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
2460
|
+
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
2461
|
+
|
|
2462
|
+
return defineBuiltIns(create(IteratorPrototype), {
|
|
2463
|
+
next: function next() {
|
|
2464
|
+
var state = getInternalState(this);
|
|
2465
|
+
// for simplification:
|
|
2466
|
+
// for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
|
|
2467
|
+
// for `%IteratorHelperPrototype%.next` - just a value
|
|
2468
|
+
if (IS_ITERATOR) return state.nextHandler();
|
|
2469
|
+
if (state.done) return createIterResultObject(undefined, true);
|
|
2470
|
+
try {
|
|
2471
|
+
var result = state.nextHandler();
|
|
2472
|
+
return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
|
|
2473
|
+
} catch (error) {
|
|
2474
|
+
state.done = true;
|
|
2475
|
+
throw error;
|
|
2476
|
+
}
|
|
2477
|
+
},
|
|
2478
|
+
'return': function () {
|
|
2479
|
+
var state = getInternalState(this);
|
|
2480
|
+
var iterator = state.iterator;
|
|
2481
|
+
state.done = true;
|
|
2482
|
+
if (IS_ITERATOR) {
|
|
2483
|
+
var returnMethod = getMethod(iterator, 'return');
|
|
2484
|
+
return returnMethod ? call$3(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
2485
|
+
}
|
|
2486
|
+
if (state.inner) try {
|
|
2487
|
+
iteratorClose$5(state.inner.iterator, NORMAL);
|
|
2488
|
+
} catch (error) {
|
|
2489
|
+
return iteratorClose$5(iterator, THROW, error);
|
|
2490
|
+
}
|
|
2491
|
+
if (state.openIters) try {
|
|
2492
|
+
iteratorCloseAll(state.openIters, NORMAL);
|
|
2493
|
+
} catch (error) {
|
|
2494
|
+
return iteratorClose$5(iterator, THROW, error);
|
|
2495
|
+
}
|
|
2496
|
+
if (iterator) iteratorClose$5(iterator, NORMAL);
|
|
2497
|
+
return createIterResultObject(undefined, true);
|
|
2498
|
+
}
|
|
2499
|
+
});
|
|
2500
|
+
};
|
|
2501
|
+
|
|
2502
|
+
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
2503
|
+
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
2504
|
+
|
|
2505
|
+
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
2506
|
+
|
|
2507
|
+
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
|
|
2508
|
+
var IteratorProxy = function Iterator(record, state) {
|
|
2509
|
+
if (state) {
|
|
2510
|
+
state.iterator = record.iterator;
|
|
2511
|
+
state.next = record.next;
|
|
2512
|
+
} else state = record;
|
|
2513
|
+
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
2514
|
+
state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
|
|
2515
|
+
state.nextHandler = nextHandler;
|
|
2516
|
+
state.counter = 0;
|
|
2517
|
+
state.done = false;
|
|
2518
|
+
setInternalState(this, state);
|
|
2519
|
+
};
|
|
2520
|
+
|
|
2521
|
+
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
2522
|
+
|
|
2523
|
+
return IteratorProxy;
|
|
2524
|
+
};
|
|
2525
|
+
|
|
2526
|
+
var anObject$3 = anObject$d;
|
|
2527
|
+
var iteratorClose$4 = iteratorClose$9;
|
|
2528
|
+
|
|
2529
|
+
// call something on iterator step with safe closing on error
|
|
2530
|
+
var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
2531
|
+
try {
|
|
2532
|
+
return ENTRIES ? fn(anObject$3(value)[0], value[1]) : fn(value);
|
|
2533
|
+
} catch (error) {
|
|
2534
|
+
iteratorClose$4(iterator, 'throw', error);
|
|
2535
|
+
}
|
|
2536
|
+
};
|
|
2537
|
+
|
|
2538
|
+
// Should throw an error on invalid iterator
|
|
2539
|
+
// https://issues.chromium.org/issues/336839115
|
|
2540
|
+
var iteratorHelperThrowsOnInvalidIterator$1 = function (methodName, argument) {
|
|
2541
|
+
// eslint-disable-next-line es/no-iterator -- required for testing
|
|
2542
|
+
var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
|
|
2543
|
+
if (method) try {
|
|
2544
|
+
method.call({ next: null }, argument).next();
|
|
2545
|
+
} catch (error) {
|
|
2546
|
+
return true;
|
|
2547
|
+
}
|
|
2548
|
+
};
|
|
2549
|
+
|
|
2550
|
+
var $$9 = _export;
|
|
2551
|
+
var call$2 = functionCall;
|
|
2552
|
+
var aCallable$2 = aCallable$8;
|
|
2553
|
+
var anObject$2 = anObject$d;
|
|
2554
|
+
var getIteratorDirect$2 = getIteratorDirect$4;
|
|
2555
|
+
var createIteratorProxy = iteratorCreateProxy;
|
|
2556
|
+
var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
|
|
2557
|
+
var iteratorClose$3 = iteratorClose$9;
|
|
2558
|
+
var iteratorHelperThrowsOnInvalidIterator = iteratorHelperThrowsOnInvalidIterator$1;
|
|
2559
|
+
var iteratorHelperWithoutClosingOnEarlyError$1 = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
2560
|
+
|
|
2561
|
+
var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ });
|
|
2562
|
+
var mapWithoutClosingOnEarlyError = !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
|
2563
|
+
&& iteratorHelperWithoutClosingOnEarlyError$1('map', TypeError);
|
|
2564
|
+
|
|
2565
|
+
var FORCED$3 = MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;
|
|
2566
|
+
|
|
2567
|
+
var IteratorProxy = createIteratorProxy(function () {
|
|
2568
|
+
var iterator = this.iterator;
|
|
2569
|
+
var result = anObject$2(call$2(this.next, iterator));
|
|
2570
|
+
var done = this.done = !!result.done;
|
|
2571
|
+
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
|
2572
|
+
});
|
|
2573
|
+
|
|
2574
|
+
// `Iterator.prototype.map` method
|
|
2575
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
|
2576
|
+
$$9({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
|
|
2577
|
+
map: function map(mapper) {
|
|
2578
|
+
anObject$2(this);
|
|
2579
|
+
try {
|
|
2580
|
+
aCallable$2(mapper);
|
|
2581
|
+
} catch (error) {
|
|
2582
|
+
iteratorClose$3(this, 'throw', error);
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
if (mapWithoutClosingOnEarlyError) return call$2(mapWithoutClosingOnEarlyError, this, mapper);
|
|
2586
|
+
|
|
2587
|
+
return new IteratorProxy(getIteratorDirect$2(this), {
|
|
2588
|
+
mapper: mapper
|
|
2589
|
+
});
|
|
2590
|
+
}
|
|
2591
|
+
});
|
|
2592
|
+
|
|
2593
|
+
var $$8 = _export;
|
|
2594
|
+
var iterate$3 = iterate$5;
|
|
2595
|
+
var aCallable$1 = aCallable$8;
|
|
2596
|
+
var anObject$1 = anObject$d;
|
|
2597
|
+
var getIteratorDirect$1 = getIteratorDirect$4;
|
|
2598
|
+
var iteratorClose$2 = iteratorClose$9;
|
|
2599
|
+
var iteratorHelperWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
2600
|
+
var apply = functionApply;
|
|
2601
|
+
var fails$2 = fails$f;
|
|
2602
|
+
|
|
2603
|
+
var $TypeError$1 = TypeError;
|
|
2604
|
+
|
|
2605
|
+
// https://bugs.webkit.org/show_bug.cgi?id=291651
|
|
2606
|
+
var FAILS_ON_INITIAL_UNDEFINED = fails$2(function () {
|
|
2607
|
+
// eslint-disable-next-line es/no-iterator-prototype-reduce, es/no-array-prototype-keys, array-callback-return -- required for testing
|
|
2608
|
+
[].keys().reduce(function () { /* empty */ }, undefined);
|
|
2609
|
+
});
|
|
2610
|
+
|
|
2611
|
+
var reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHelperWithoutClosingOnEarlyError('reduce', $TypeError$1);
|
|
2612
|
+
|
|
2613
|
+
// `Iterator.prototype.reduce` method
|
|
2614
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.reduce
|
|
2615
|
+
$$8({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
|
|
2616
|
+
reduce: function reduce(reducer /* , initialValue */) {
|
|
2617
|
+
anObject$1(this);
|
|
2618
|
+
try {
|
|
2619
|
+
aCallable$1(reducer);
|
|
2620
|
+
} catch (error) {
|
|
2621
|
+
iteratorClose$2(this, 'throw', error);
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
var noInitial = arguments.length < 2;
|
|
2625
|
+
var accumulator = noInitial ? undefined : arguments[1];
|
|
2626
|
+
if (reduceWithoutClosingOnEarlyError) {
|
|
2627
|
+
return apply(reduceWithoutClosingOnEarlyError, this, noInitial ? [reducer] : [reducer, accumulator]);
|
|
2628
|
+
}
|
|
2629
|
+
var record = getIteratorDirect$1(this);
|
|
2630
|
+
var counter = 0;
|
|
2631
|
+
iterate$3(record, function (value) {
|
|
2632
|
+
if (noInitial) {
|
|
2633
|
+
noInitial = false;
|
|
2634
|
+
accumulator = value;
|
|
2635
|
+
} else {
|
|
2636
|
+
accumulator = reducer(accumulator, value, counter);
|
|
2637
|
+
}
|
|
2638
|
+
counter++;
|
|
2639
|
+
}, { IS_RECORD: true });
|
|
2640
|
+
if (noInitial) throw new $TypeError$1('Reduce of empty iterator with no initial value');
|
|
2641
|
+
return accumulator;
|
|
2642
|
+
}
|
|
2643
|
+
});
|
|
2644
|
+
|
|
2645
|
+
var $$7 = _export;
|
|
2646
|
+
var iterate$2 = iterate$5;
|
|
2647
|
+
var createProperty = createProperty$2;
|
|
2648
|
+
|
|
2649
|
+
// `Object.fromEntries` method
|
|
2650
|
+
// https://tc39.es/ecma262/#sec-object.fromentries
|
|
2651
|
+
$$7({ target: 'Object', stat: true }, {
|
|
2652
|
+
fromEntries: function fromEntries(iterable) {
|
|
2653
|
+
var obj = {};
|
|
2654
|
+
iterate$2(iterable, function (k, v) {
|
|
2655
|
+
createProperty(obj, k, v);
|
|
2656
|
+
}, { AS_ENTRIES: true });
|
|
2657
|
+
return obj;
|
|
2658
|
+
}
|
|
2659
|
+
});
|
|
2660
|
+
|
|
2661
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2662
|
+
|
|
2663
|
+
// eslint-disable-next-line es/no-set -- safe
|
|
2664
|
+
var SetPrototype$1 = Set.prototype;
|
|
2665
|
+
|
|
2666
|
+
var setHelpers = {
|
|
2667
|
+
// eslint-disable-next-line es/no-set -- safe
|
|
2668
|
+
Set: Set,
|
|
2669
|
+
add: uncurryThis$1(SetPrototype$1.add),
|
|
2670
|
+
has: uncurryThis$1(SetPrototype$1.has),
|
|
2671
|
+
remove: uncurryThis$1(SetPrototype$1['delete']),
|
|
2672
|
+
proto: SetPrototype$1
|
|
2673
|
+
};
|
|
2674
|
+
|
|
2675
|
+
var has$5 = setHelpers.has;
|
|
2676
|
+
|
|
2677
|
+
// Perform ? RequireInternalSlot(M, [[SetData]])
|
|
2678
|
+
var aSet$7 = function (it) {
|
|
2679
|
+
has$5(it);
|
|
2680
|
+
return it;
|
|
2681
|
+
};
|
|
2682
|
+
|
|
2683
|
+
var call$1 = functionCall;
|
|
2684
|
+
|
|
2685
|
+
var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
2686
|
+
var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
|
|
2687
|
+
var next = record.next;
|
|
2688
|
+
var step, result;
|
|
2689
|
+
while (!(step = call$1(next, iterator)).done) {
|
|
2690
|
+
result = fn(step.value);
|
|
2691
|
+
if (result !== undefined) return result;
|
|
2692
|
+
}
|
|
2693
|
+
};
|
|
2694
|
+
|
|
2695
|
+
var uncurryThis = functionUncurryThis;
|
|
2696
|
+
var iterateSimple$6 = iterateSimple$7;
|
|
2697
|
+
var SetHelpers$5 = setHelpers;
|
|
2698
|
+
|
|
2699
|
+
var Set$3 = SetHelpers$5.Set;
|
|
2700
|
+
var SetPrototype = SetHelpers$5.proto;
|
|
2701
|
+
var forEach = uncurryThis(SetPrototype.forEach);
|
|
2702
|
+
var keys = uncurryThis(SetPrototype.keys);
|
|
2703
|
+
var next = keys(new Set$3()).next;
|
|
2704
|
+
|
|
2705
|
+
var setIterate = function (set, fn, interruptible) {
|
|
2706
|
+
return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
|
|
2707
|
+
};
|
|
2708
|
+
|
|
2709
|
+
var SetHelpers$4 = setHelpers;
|
|
2710
|
+
var iterate$1 = setIterate;
|
|
2711
|
+
|
|
2712
|
+
var Set$2 = SetHelpers$4.Set;
|
|
2713
|
+
var add$3 = SetHelpers$4.add;
|
|
2714
|
+
|
|
2715
|
+
var setClone = function (set) {
|
|
2716
|
+
var result = new Set$2();
|
|
2717
|
+
iterate$1(set, function (it) {
|
|
2718
|
+
add$3(result, it);
|
|
2719
|
+
});
|
|
2720
|
+
return result;
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
2724
|
+
var SetHelpers$3 = setHelpers;
|
|
2725
|
+
|
|
2726
|
+
var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
|
|
2727
|
+
return set.size;
|
|
2728
|
+
};
|
|
2729
|
+
|
|
2730
|
+
var aCallable = aCallable$8;
|
|
2731
|
+
var anObject = anObject$d;
|
|
2732
|
+
var call = functionCall;
|
|
2733
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
2734
|
+
var getIteratorDirect = getIteratorDirect$4;
|
|
2735
|
+
|
|
2736
|
+
var INVALID_SIZE = 'Invalid size';
|
|
2737
|
+
var $RangeError = RangeError;
|
|
2738
|
+
var $TypeError = TypeError;
|
|
2739
|
+
var max = Math.max;
|
|
2740
|
+
|
|
2741
|
+
var SetRecord = function (set, intSize) {
|
|
2742
|
+
this.set = set;
|
|
2743
|
+
this.size = max(intSize, 0);
|
|
2744
|
+
this.has = aCallable(set.has);
|
|
2421
2745
|
this.keys = aCallable(set.keys);
|
|
2422
2746
|
};
|
|
2423
2747
|
|
|
2424
2748
|
SetRecord.prototype = {
|
|
2425
2749
|
getIterator: function () {
|
|
2426
|
-
return getIteratorDirect(anObject(call
|
|
2750
|
+
return getIteratorDirect(anObject(call(this.keys, this.set)));
|
|
2427
2751
|
},
|
|
2428
2752
|
includes: function (it) {
|
|
2429
|
-
return call
|
|
2753
|
+
return call(this.has, this.set, it);
|
|
2430
2754
|
}
|
|
2431
2755
|
};
|
|
2432
2756
|
|
|
@@ -2502,606 +2826,314 @@ var createSetLikeWithInfinitySize = function (size) {
|
|
|
2502
2826
|
var setMethodAcceptSetLike$7 = function (name, callback) {
|
|
2503
2827
|
var Set = getBuiltIn('Set');
|
|
2504
2828
|
try {
|
|
2505
|
-
new Set()[name](createSetLike(0));
|
|
2506
|
-
try {
|
|
2507
|
-
// late spec change, early WebKit ~ Safari 17 implementation does not pass it
|
|
2508
|
-
// https://github.com/tc39/proposal-set-methods/pull/88
|
|
2509
|
-
// also covered engines with
|
|
2510
|
-
// https://bugs.webkit.org/show_bug.cgi?id=272679
|
|
2511
|
-
new Set()[name](createSetLike(-1));
|
|
2512
|
-
return false;
|
|
2513
|
-
} catch (error2) {
|
|
2514
|
-
if (!callback) return true;
|
|
2515
|
-
// early V8 implementation bug
|
|
2516
|
-
// https://issues.chromium.org/issues/351332634
|
|
2517
|
-
try {
|
|
2518
|
-
new Set()[name](createSetLikeWithInfinitySize(-Infinity));
|
|
2519
|
-
return false;
|
|
2520
|
-
} catch (error) {
|
|
2521
|
-
var set = new Set();
|
|
2522
|
-
set.add(1);
|
|
2523
|
-
set.add(2);
|
|
2524
|
-
return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
|
|
2525
|
-
}
|
|
2526
|
-
}
|
|
2527
|
-
} catch (error) {
|
|
2528
|
-
return false;
|
|
2529
|
-
}
|
|
2530
|
-
};
|
|
2531
|
-
|
|
2532
|
-
var $$7 = _export;
|
|
2533
|
-
var difference = setDifference;
|
|
2534
|
-
var fails$1 = fails$f;
|
|
2535
|
-
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
2536
|
-
|
|
2537
|
-
var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike$6('difference', function (result) {
|
|
2538
|
-
return result.size === 0;
|
|
2539
|
-
});
|
|
2540
|
-
|
|
2541
|
-
var FORCED$2 = SET_LIKE_INCORRECT_BEHAVIOR || fails$1(function () {
|
|
2542
|
-
// https://bugs.webkit.org/show_bug.cgi?id=288595
|
|
2543
|
-
var setLike = {
|
|
2544
|
-
size: 1,
|
|
2545
|
-
has: function () { return true; },
|
|
2546
|
-
keys: function () {
|
|
2547
|
-
var index = 0;
|
|
2548
|
-
return {
|
|
2549
|
-
next: function () {
|
|
2550
|
-
var done = index++ > 1;
|
|
2551
|
-
if (baseSet.has(1)) baseSet.clear();
|
|
2552
|
-
return { done: done, value: 2 };
|
|
2553
|
-
}
|
|
2554
|
-
};
|
|
2555
|
-
}
|
|
2556
|
-
};
|
|
2557
|
-
// eslint-disable-next-line es/no-set -- testing
|
|
2558
|
-
var baseSet = new Set([1, 2, 3, 4]);
|
|
2559
|
-
// eslint-disable-next-line es/no-set-prototype-difference -- testing
|
|
2560
|
-
return baseSet.difference(setLike).size !== 3;
|
|
2561
|
-
});
|
|
2562
|
-
|
|
2563
|
-
// `Set.prototype.difference` method
|
|
2564
|
-
// https://tc39.es/ecma262/#sec-set.prototype.difference
|
|
2565
|
-
$$7({ target: 'Set', proto: true, real: true, forced: FORCED$2 }, {
|
|
2566
|
-
difference: difference
|
|
2567
|
-
});
|
|
2568
|
-
|
|
2569
|
-
var aSet$5 = aSet$7;
|
|
2570
|
-
var SetHelpers$1 = setHelpers;
|
|
2571
|
-
var size$3 = setSize;
|
|
2572
|
-
var getSetRecord$5 = getSetRecord$7;
|
|
2573
|
-
var iterateSet$1 = setIterate;
|
|
2574
|
-
var iterateSimple$4 = iterateSimple$7;
|
|
2575
|
-
|
|
2576
|
-
var Set$1 = SetHelpers$1.Set;
|
|
2577
|
-
var add$2 = SetHelpers$1.add;
|
|
2578
|
-
var has$3 = SetHelpers$1.has;
|
|
2579
|
-
|
|
2580
|
-
// `Set.prototype.intersection` method
|
|
2581
|
-
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
2582
|
-
var setIntersection = function intersection(other) {
|
|
2583
|
-
var O = aSet$5(this);
|
|
2584
|
-
var otherRec = getSetRecord$5(other);
|
|
2585
|
-
var result = new Set$1();
|
|
2586
|
-
|
|
2587
|
-
if (size$3(O) > otherRec.size) {
|
|
2588
|
-
iterateSimple$4(otherRec.getIterator(), function (e) {
|
|
2589
|
-
if (has$3(O, e)) add$2(result, e);
|
|
2590
|
-
});
|
|
2591
|
-
} else {
|
|
2592
|
-
iterateSet$1(O, function (e) {
|
|
2593
|
-
if (otherRec.includes(e)) add$2(result, e);
|
|
2594
|
-
});
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
|
-
return result;
|
|
2598
|
-
};
|
|
2599
|
-
|
|
2600
|
-
var $$6 = _export;
|
|
2601
|
-
var fails = fails$f;
|
|
2602
|
-
var intersection = setIntersection;
|
|
2603
|
-
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
2604
|
-
|
|
2605
|
-
var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
|
|
2606
|
-
return result.size === 2 && result.has(1) && result.has(2);
|
|
2607
|
-
}) || fails(function () {
|
|
2608
|
-
// eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
|
|
2609
|
-
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
2610
|
-
});
|
|
2611
|
-
|
|
2612
|
-
// `Set.prototype.intersection` method
|
|
2613
|
-
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
2614
|
-
$$6({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
|
|
2615
|
-
intersection: intersection
|
|
2616
|
-
});
|
|
2617
|
-
|
|
2618
|
-
var aSet$4 = aSet$7;
|
|
2619
|
-
var has$2 = setHelpers.has;
|
|
2620
|
-
var size$2 = setSize;
|
|
2621
|
-
var getSetRecord$4 = getSetRecord$7;
|
|
2622
|
-
var iterateSet = setIterate;
|
|
2623
|
-
var iterateSimple$3 = iterateSimple$7;
|
|
2624
|
-
var iteratorClose$1 = iteratorClose$9;
|
|
2625
|
-
|
|
2626
|
-
// `Set.prototype.isDisjointFrom` method
|
|
2627
|
-
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
2628
|
-
var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
2629
|
-
var O = aSet$4(this);
|
|
2630
|
-
var otherRec = getSetRecord$4(other);
|
|
2631
|
-
if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
|
|
2632
|
-
if (otherRec.includes(e)) return false;
|
|
2633
|
-
}, true) !== false;
|
|
2634
|
-
var iterator = otherRec.getIterator();
|
|
2635
|
-
return iterateSimple$3(iterator, function (e) {
|
|
2636
|
-
if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
|
|
2637
|
-
}) !== false;
|
|
2638
|
-
};
|
|
2639
|
-
|
|
2640
|
-
var $$5 = _export;
|
|
2641
|
-
var isDisjointFrom = setIsDisjointFrom;
|
|
2642
|
-
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
2643
|
-
|
|
2644
|
-
var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result) {
|
|
2645
|
-
return !result;
|
|
2646
|
-
});
|
|
2647
|
-
|
|
2648
|
-
// `Set.prototype.isDisjointFrom` method
|
|
2649
|
-
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
2650
|
-
$$5({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
|
|
2651
|
-
isDisjointFrom: isDisjointFrom
|
|
2652
|
-
});
|
|
2653
|
-
|
|
2654
|
-
var aSet$3 = aSet$7;
|
|
2655
|
-
var size$1 = setSize;
|
|
2656
|
-
var iterate = setIterate;
|
|
2657
|
-
var getSetRecord$3 = getSetRecord$7;
|
|
2658
|
-
|
|
2659
|
-
// `Set.prototype.isSubsetOf` method
|
|
2660
|
-
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
2661
|
-
var setIsSubsetOf = function isSubsetOf(other) {
|
|
2662
|
-
var O = aSet$3(this);
|
|
2663
|
-
var otherRec = getSetRecord$3(other);
|
|
2664
|
-
if (size$1(O) > otherRec.size) return false;
|
|
2665
|
-
return iterate(O, function (e) {
|
|
2666
|
-
if (!otherRec.includes(e)) return false;
|
|
2667
|
-
}, true) !== false;
|
|
2668
|
-
};
|
|
2669
|
-
|
|
2670
|
-
var $$4 = _export;
|
|
2671
|
-
var isSubsetOf = setIsSubsetOf;
|
|
2672
|
-
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
2673
|
-
|
|
2674
|
-
var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
|
|
2675
|
-
return result;
|
|
2676
|
-
});
|
|
2677
|
-
|
|
2678
|
-
// `Set.prototype.isSubsetOf` method
|
|
2679
|
-
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
2680
|
-
$$4({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
|
|
2681
|
-
isSubsetOf: isSubsetOf
|
|
2682
|
-
});
|
|
2683
|
-
|
|
2684
|
-
var aSet$2 = aSet$7;
|
|
2685
|
-
var has$1 = setHelpers.has;
|
|
2686
|
-
var size = setSize;
|
|
2687
|
-
var getSetRecord$2 = getSetRecord$7;
|
|
2688
|
-
var iterateSimple$2 = iterateSimple$7;
|
|
2689
|
-
var iteratorClose = iteratorClose$9;
|
|
2690
|
-
|
|
2691
|
-
// `Set.prototype.isSupersetOf` method
|
|
2692
|
-
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
2693
|
-
var setIsSupersetOf = function isSupersetOf(other) {
|
|
2694
|
-
var O = aSet$2(this);
|
|
2695
|
-
var otherRec = getSetRecord$2(other);
|
|
2696
|
-
if (size(O) < otherRec.size) return false;
|
|
2697
|
-
var iterator = otherRec.getIterator();
|
|
2698
|
-
return iterateSimple$2(iterator, function (e) {
|
|
2699
|
-
if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
2700
|
-
}) !== false;
|
|
2701
|
-
};
|
|
2702
|
-
|
|
2703
|
-
var $$3 = _export;
|
|
2704
|
-
var isSupersetOf = setIsSupersetOf;
|
|
2705
|
-
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
2706
|
-
|
|
2707
|
-
var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
|
|
2708
|
-
return !result;
|
|
2709
|
-
});
|
|
2710
|
-
|
|
2711
|
-
// `Set.prototype.isSupersetOf` method
|
|
2712
|
-
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
2713
|
-
$$3({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
2714
|
-
isSupersetOf: isSupersetOf
|
|
2715
|
-
});
|
|
2716
|
-
|
|
2717
|
-
var aSet$1 = aSet$7;
|
|
2718
|
-
var SetHelpers = setHelpers;
|
|
2719
|
-
var clone$1 = setClone;
|
|
2720
|
-
var getSetRecord$1 = getSetRecord$7;
|
|
2721
|
-
var iterateSimple$1 = iterateSimple$7;
|
|
2722
|
-
|
|
2723
|
-
var add$1 = SetHelpers.add;
|
|
2724
|
-
var has = SetHelpers.has;
|
|
2725
|
-
var remove = SetHelpers.remove;
|
|
2726
|
-
|
|
2727
|
-
// `Set.prototype.symmetricDifference` method
|
|
2728
|
-
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
2729
|
-
var setSymmetricDifference = function symmetricDifference(other) {
|
|
2730
|
-
var O = aSet$1(this);
|
|
2731
|
-
var keysIter = getSetRecord$1(other).getIterator();
|
|
2732
|
-
var result = clone$1(O);
|
|
2733
|
-
iterateSimple$1(keysIter, function (e) {
|
|
2734
|
-
if (has(O, e)) remove(result, e);
|
|
2735
|
-
else add$1(result, e);
|
|
2736
|
-
});
|
|
2737
|
-
return result;
|
|
2738
|
-
};
|
|
2739
|
-
|
|
2740
|
-
// Should get iterator record of a set-like object before cloning this
|
|
2741
|
-
// https://bugs.webkit.org/show_bug.cgi?id=289430
|
|
2742
|
-
var setMethodGetKeysBeforeCloningDetection = function (METHOD_NAME) {
|
|
2743
|
-
try {
|
|
2744
|
-
// eslint-disable-next-line es/no-set -- needed for test
|
|
2745
|
-
var baseSet = new Set();
|
|
2746
|
-
var setLike = {
|
|
2747
|
-
size: 0,
|
|
2748
|
-
has: function () { return true; },
|
|
2749
|
-
keys: function () {
|
|
2750
|
-
// eslint-disable-next-line es/no-object-defineproperty -- needed for test
|
|
2751
|
-
return Object.defineProperty({}, 'next', {
|
|
2752
|
-
get: function () {
|
|
2753
|
-
baseSet.clear();
|
|
2754
|
-
baseSet.add(4);
|
|
2755
|
-
return function () {
|
|
2756
|
-
return { done: true };
|
|
2757
|
-
};
|
|
2758
|
-
}
|
|
2759
|
-
});
|
|
2829
|
+
new Set()[name](createSetLike(0));
|
|
2830
|
+
try {
|
|
2831
|
+
// late spec change, early WebKit ~ Safari 17 implementation does not pass it
|
|
2832
|
+
// https://github.com/tc39/proposal-set-methods/pull/88
|
|
2833
|
+
// also covered engines with
|
|
2834
|
+
// https://bugs.webkit.org/show_bug.cgi?id=272679
|
|
2835
|
+
new Set()[name](createSetLike(-1));
|
|
2836
|
+
return false;
|
|
2837
|
+
} catch (error2) {
|
|
2838
|
+
if (!callback) return true;
|
|
2839
|
+
// early V8 implementation bug
|
|
2840
|
+
// https://issues.chromium.org/issues/351332634
|
|
2841
|
+
try {
|
|
2842
|
+
new Set()[name](createSetLikeWithInfinitySize(-Infinity));
|
|
2843
|
+
return false;
|
|
2844
|
+
} catch (error) {
|
|
2845
|
+
var set = new Set();
|
|
2846
|
+
set.add(1);
|
|
2847
|
+
set.add(2);
|
|
2848
|
+
return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
|
|
2760
2849
|
}
|
|
2761
|
-
}
|
|
2762
|
-
var result = baseSet[METHOD_NAME](setLike);
|
|
2763
|
-
|
|
2764
|
-
return result.size === 1 && result.values().next().value === 4;
|
|
2850
|
+
}
|
|
2765
2851
|
} catch (error) {
|
|
2766
2852
|
return false;
|
|
2767
2853
|
}
|
|
2768
2854
|
};
|
|
2769
2855
|
|
|
2770
|
-
var $$
|
|
2771
|
-
var
|
|
2772
|
-
var
|
|
2773
|
-
var setMethodAcceptSetLike$
|
|
2774
|
-
|
|
2775
|
-
var FORCED$1 = !setMethodAcceptSetLike$1('symmetricDifference') || !setMethodGetKeysBeforeCloning$1('symmetricDifference');
|
|
2856
|
+
var $$6 = _export;
|
|
2857
|
+
var difference = setDifference;
|
|
2858
|
+
var fails$1 = fails$f;
|
|
2859
|
+
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
2776
2860
|
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
$$2({ target: 'Set', proto: true, real: true, forced: FORCED$1 }, {
|
|
2780
|
-
symmetricDifference: symmetricDifference
|
|
2861
|
+
var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike$6('difference', function (result) {
|
|
2862
|
+
return result.size === 0;
|
|
2781
2863
|
});
|
|
2782
2864
|
|
|
2783
|
-
var
|
|
2784
|
-
|
|
2785
|
-
var
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
var setMethodGetKeysBeforeCloning = setMethodGetKeysBeforeCloningDetection;
|
|
2804
|
-
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
2805
|
-
|
|
2806
|
-
var FORCED = !setMethodAcceptSetLike('union') || !setMethodGetKeysBeforeCloning('union');
|
|
2807
|
-
|
|
2808
|
-
// `Set.prototype.union` method
|
|
2809
|
-
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
2810
|
-
$$1({ target: 'Set', proto: true, real: true, forced: FORCED }, {
|
|
2811
|
-
union: union
|
|
2865
|
+
var FORCED$2 = SET_LIKE_INCORRECT_BEHAVIOR || fails$1(function () {
|
|
2866
|
+
// https://bugs.webkit.org/show_bug.cgi?id=288595
|
|
2867
|
+
var setLike = {
|
|
2868
|
+
size: 1,
|
|
2869
|
+
has: function () { return true; },
|
|
2870
|
+
keys: function () {
|
|
2871
|
+
var index = 0;
|
|
2872
|
+
return {
|
|
2873
|
+
next: function () {
|
|
2874
|
+
var done = index++ > 1;
|
|
2875
|
+
if (baseSet.has(1)) baseSet.clear();
|
|
2876
|
+
return { done: done, value: 2 };
|
|
2877
|
+
}
|
|
2878
|
+
};
|
|
2879
|
+
}
|
|
2880
|
+
};
|
|
2881
|
+
// eslint-disable-next-line es/no-set -- testing
|
|
2882
|
+
var baseSet = new Set([1, 2, 3, 4]);
|
|
2883
|
+
// eslint-disable-next-line es/no-set-prototype-difference -- testing
|
|
2884
|
+
return baseSet.difference(setLike).size !== 3;
|
|
2812
2885
|
});
|
|
2813
2886
|
|
|
2814
|
-
//
|
|
2815
|
-
//
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
CSSValueList: 0,
|
|
2820
|
-
ClientRectList: 0,
|
|
2821
|
-
DOMRectList: 0,
|
|
2822
|
-
DOMStringList: 0,
|
|
2823
|
-
DOMTokenList: 1,
|
|
2824
|
-
DataTransferItemList: 0,
|
|
2825
|
-
FileList: 0,
|
|
2826
|
-
HTMLAllCollection: 0,
|
|
2827
|
-
HTMLCollection: 0,
|
|
2828
|
-
HTMLFormElement: 0,
|
|
2829
|
-
HTMLSelectElement: 0,
|
|
2830
|
-
MediaList: 0,
|
|
2831
|
-
MimeTypeArray: 0,
|
|
2832
|
-
NamedNodeMap: 0,
|
|
2833
|
-
NodeList: 1,
|
|
2834
|
-
PaintRequestList: 0,
|
|
2835
|
-
Plugin: 0,
|
|
2836
|
-
PluginArray: 0,
|
|
2837
|
-
SVGLengthList: 0,
|
|
2838
|
-
SVGNumberList: 0,
|
|
2839
|
-
SVGPathSegList: 0,
|
|
2840
|
-
SVGPointList: 0,
|
|
2841
|
-
SVGStringList: 0,
|
|
2842
|
-
SVGTransformList: 0,
|
|
2843
|
-
SourceBufferList: 0,
|
|
2844
|
-
StyleSheetList: 0,
|
|
2845
|
-
TextTrackCueList: 0,
|
|
2846
|
-
TextTrackList: 0,
|
|
2847
|
-
TouchList: 0
|
|
2848
|
-
};
|
|
2887
|
+
// `Set.prototype.difference` method
|
|
2888
|
+
// https://tc39.es/ecma262/#sec-set.prototype.difference
|
|
2889
|
+
$$6({ target: 'Set', proto: true, real: true, forced: FORCED$2 }, {
|
|
2890
|
+
difference: difference
|
|
2891
|
+
});
|
|
2849
2892
|
|
|
2850
|
-
|
|
2851
|
-
var
|
|
2893
|
+
var aSet$5 = aSet$7;
|
|
2894
|
+
var SetHelpers$1 = setHelpers;
|
|
2895
|
+
var size$3 = setSize;
|
|
2896
|
+
var getSetRecord$5 = getSetRecord$7;
|
|
2897
|
+
var iterateSet$1 = setIterate;
|
|
2898
|
+
var iterateSimple$4 = iterateSimple$7;
|
|
2852
2899
|
|
|
2853
|
-
var
|
|
2854
|
-
var
|
|
2900
|
+
var Set$1 = SetHelpers$1.Set;
|
|
2901
|
+
var add$2 = SetHelpers$1.add;
|
|
2902
|
+
var has$3 = SetHelpers$1.has;
|
|
2855
2903
|
|
|
2856
|
-
|
|
2904
|
+
// `Set.prototype.intersection` method
|
|
2905
|
+
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
2906
|
+
var setIntersection = function intersection(other) {
|
|
2907
|
+
var O = aSet$5(this);
|
|
2908
|
+
var otherRec = getSetRecord$5(other);
|
|
2909
|
+
var result = new Set$1();
|
|
2857
2910
|
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2911
|
+
if (size$3(O) > otherRec.size) {
|
|
2912
|
+
iterateSimple$4(otherRec.getIterator(), function (e) {
|
|
2913
|
+
if (has$3(O, e)) add$2(result, e);
|
|
2914
|
+
});
|
|
2915
|
+
} else {
|
|
2916
|
+
iterateSet$1(O, function (e) {
|
|
2917
|
+
if (otherRec.includes(e)) add$2(result, e);
|
|
2918
|
+
});
|
|
2919
|
+
}
|
|
2861
2920
|
|
|
2862
|
-
|
|
2863
|
-
|
|
2921
|
+
return result;
|
|
2922
|
+
};
|
|
2864
2923
|
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
configurable: true,
|
|
2870
|
-
value: create$1(null)
|
|
2871
|
-
});
|
|
2872
|
-
}
|
|
2924
|
+
var $$5 = _export;
|
|
2925
|
+
var fails = fails$f;
|
|
2926
|
+
var intersection = setIntersection;
|
|
2927
|
+
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
2873
2928
|
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2929
|
+
var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
|
|
2930
|
+
return result.size === 2 && result.has(1) && result.has(2);
|
|
2931
|
+
}) || fails(function () {
|
|
2932
|
+
// eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
|
|
2933
|
+
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
2934
|
+
});
|
|
2878
2935
|
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2936
|
+
// `Set.prototype.intersection` method
|
|
2937
|
+
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
2938
|
+
$$5({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
|
|
2939
|
+
intersection: intersection
|
|
2940
|
+
});
|
|
2882
2941
|
|
|
2883
|
-
var
|
|
2942
|
+
var aSet$4 = aSet$7;
|
|
2943
|
+
var has$2 = setHelpers.has;
|
|
2944
|
+
var size$2 = setSize;
|
|
2945
|
+
var getSetRecord$4 = getSetRecord$7;
|
|
2946
|
+
var iterateSet = setIterate;
|
|
2947
|
+
var iterateSimple$3 = iterateSimple$7;
|
|
2948
|
+
var iteratorClose$1 = iteratorClose$9;
|
|
2884
2949
|
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2950
|
+
// `Set.prototype.isDisjointFrom` method
|
|
2951
|
+
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
2952
|
+
var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
2953
|
+
var O = aSet$4(this);
|
|
2954
|
+
var otherRec = getSetRecord$4(other);
|
|
2955
|
+
if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
|
|
2956
|
+
if (otherRec.includes(e)) return false;
|
|
2957
|
+
}, true) !== false;
|
|
2958
|
+
var iterator = otherRec.getIterator();
|
|
2959
|
+
return iterateSimple$3(iterator, function (e) {
|
|
2960
|
+
if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
|
|
2961
|
+
}) !== false;
|
|
2890
2962
|
};
|
|
2891
2963
|
|
|
2892
|
-
var
|
|
2893
|
-
var
|
|
2894
|
-
var
|
|
2895
|
-
var setToStringTag$2 = setToStringTag$3;
|
|
2896
|
-
var Iterators$2 = iterators;
|
|
2964
|
+
var $$4 = _export;
|
|
2965
|
+
var isDisjointFrom = setIsDisjointFrom;
|
|
2966
|
+
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
2897
2967
|
|
|
2898
|
-
var
|
|
2968
|
+
var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result) {
|
|
2969
|
+
return !result;
|
|
2970
|
+
});
|
|
2899
2971
|
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
return IteratorConstructor;
|
|
2906
|
-
};
|
|
2972
|
+
// `Set.prototype.isDisjointFrom` method
|
|
2973
|
+
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
2974
|
+
$$4({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
|
|
2975
|
+
isDisjointFrom: isDisjointFrom
|
|
2976
|
+
});
|
|
2907
2977
|
|
|
2908
|
-
var $ =
|
|
2909
|
-
var
|
|
2910
|
-
var
|
|
2911
|
-
var
|
|
2912
|
-
var createIteratorConstructor = iteratorCreateConstructor;
|
|
2913
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
2914
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
2915
|
-
var setToStringTag$1 = setToStringTag$3;
|
|
2916
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
2917
|
-
var defineBuiltIn = defineBuiltIn$4;
|
|
2918
|
-
var wellKnownSymbol$1 = wellKnownSymbol$c;
|
|
2919
|
-
var Iterators$1 = iterators;
|
|
2920
|
-
var IteratorsCore = iteratorsCore;
|
|
2978
|
+
var aSet$3 = aSet$7;
|
|
2979
|
+
var size$1 = setSize;
|
|
2980
|
+
var iterate = setIterate;
|
|
2981
|
+
var getSetRecord$3 = getSetRecord$7;
|
|
2921
2982
|
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
var
|
|
2925
|
-
var
|
|
2926
|
-
var
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2983
|
+
// `Set.prototype.isSubsetOf` method
|
|
2984
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
2985
|
+
var setIsSubsetOf = function isSubsetOf(other) {
|
|
2986
|
+
var O = aSet$3(this);
|
|
2987
|
+
var otherRec = getSetRecord$3(other);
|
|
2988
|
+
if (size$1(O) > otherRec.size) return false;
|
|
2989
|
+
return iterate(O, function (e) {
|
|
2990
|
+
if (!otherRec.includes(e)) return false;
|
|
2991
|
+
}, true) !== false;
|
|
2992
|
+
};
|
|
2930
2993
|
|
|
2931
|
-
var
|
|
2994
|
+
var $$3 = _export;
|
|
2995
|
+
var isSubsetOf = setIsSubsetOf;
|
|
2996
|
+
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
2932
2997
|
|
|
2933
|
-
var
|
|
2934
|
-
|
|
2998
|
+
var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
|
|
2999
|
+
return result;
|
|
3000
|
+
});
|
|
2935
3001
|
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
3002
|
+
// `Set.prototype.isSubsetOf` method
|
|
3003
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
3004
|
+
$$3({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
|
|
3005
|
+
isSubsetOf: isSubsetOf
|
|
3006
|
+
});
|
|
2939
3007
|
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
3008
|
+
var aSet$2 = aSet$7;
|
|
3009
|
+
var has$1 = setHelpers.has;
|
|
3010
|
+
var size = setSize;
|
|
3011
|
+
var getSetRecord$2 = getSetRecord$7;
|
|
3012
|
+
var iterateSimple$2 = iterateSimple$7;
|
|
3013
|
+
var iteratorClose = iteratorClose$9;
|
|
2945
3014
|
|
|
2946
|
-
|
|
2947
|
-
|
|
3015
|
+
// `Set.prototype.isSupersetOf` method
|
|
3016
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
3017
|
+
var setIsSupersetOf = function isSupersetOf(other) {
|
|
3018
|
+
var O = aSet$2(this);
|
|
3019
|
+
var otherRec = getSetRecord$2(other);
|
|
3020
|
+
if (size(O) < otherRec.size) return false;
|
|
3021
|
+
var iterator = otherRec.getIterator();
|
|
3022
|
+
return iterateSimple$2(iterator, function (e) {
|
|
3023
|
+
if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
3024
|
+
}) !== false;
|
|
3025
|
+
};
|
|
2948
3026
|
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
2953
|
-
|| IterablePrototype['@@iterator']
|
|
2954
|
-
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
2955
|
-
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
2956
|
-
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
2957
|
-
var CurrentIteratorPrototype, methods, KEY;
|
|
3027
|
+
var $$2 = _export;
|
|
3028
|
+
var isSupersetOf = setIsSupersetOf;
|
|
3029
|
+
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
2958
3030
|
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
2963
|
-
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
2964
|
-
if (setPrototypeOf) {
|
|
2965
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
2966
|
-
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
2967
|
-
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
2968
|
-
}
|
|
2969
|
-
}
|
|
2970
|
-
// Set @@toStringTag to native iterators
|
|
2971
|
-
setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
2972
|
-
}
|
|
2973
|
-
}
|
|
3031
|
+
var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
|
|
3032
|
+
return !result;
|
|
3033
|
+
});
|
|
2974
3034
|
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
INCORRECT_VALUES_NAME = true;
|
|
2981
|
-
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
2982
|
-
}
|
|
2983
|
-
}
|
|
3035
|
+
// `Set.prototype.isSupersetOf` method
|
|
3036
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
3037
|
+
$$2({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
3038
|
+
isSupersetOf: isSupersetOf
|
|
3039
|
+
});
|
|
2984
3040
|
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
entries: getIterationMethod(ENTRIES)
|
|
2991
|
-
};
|
|
2992
|
-
if (FORCED) for (KEY in methods) {
|
|
2993
|
-
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
2994
|
-
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
2995
|
-
}
|
|
2996
|
-
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
2997
|
-
}
|
|
3041
|
+
var aSet$1 = aSet$7;
|
|
3042
|
+
var SetHelpers = setHelpers;
|
|
3043
|
+
var clone$1 = setClone;
|
|
3044
|
+
var getSetRecord$1 = getSetRecord$7;
|
|
3045
|
+
var iterateSimple$1 = iterateSimple$7;
|
|
2998
3046
|
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
}
|
|
3003
|
-
Iterators$1[NAME] = defaultIterator;
|
|
3047
|
+
var add$1 = SetHelpers.add;
|
|
3048
|
+
var has = SetHelpers.has;
|
|
3049
|
+
var remove = SetHelpers.remove;
|
|
3004
3050
|
|
|
3005
|
-
|
|
3051
|
+
// `Set.prototype.symmetricDifference` method
|
|
3052
|
+
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
3053
|
+
var setSymmetricDifference = function symmetricDifference(other) {
|
|
3054
|
+
var O = aSet$1(this);
|
|
3055
|
+
var keysIter = getSetRecord$1(other).getIterator();
|
|
3056
|
+
var result = clone$1(O);
|
|
3057
|
+
iterateSimple$1(keysIter, function (e) {
|
|
3058
|
+
if (has(O, e)) remove(result, e);
|
|
3059
|
+
else add$1(result, e);
|
|
3060
|
+
});
|
|
3061
|
+
return result;
|
|
3006
3062
|
};
|
|
3007
3063
|
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
var
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
var
|
|
3014
|
-
var
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3064
|
+
// Should get iterator record of a set-like object before cloning this
|
|
3065
|
+
// https://bugs.webkit.org/show_bug.cgi?id=289430
|
|
3066
|
+
var setMethodGetKeysBeforeCloningDetection = function (METHOD_NAME) {
|
|
3067
|
+
try {
|
|
3068
|
+
// eslint-disable-next-line es/no-set -- needed for test
|
|
3069
|
+
var baseSet = new Set();
|
|
3070
|
+
var setLike = {
|
|
3071
|
+
size: 0,
|
|
3072
|
+
has: function () { return true; },
|
|
3073
|
+
keys: function () {
|
|
3074
|
+
// eslint-disable-next-line es/no-object-defineproperty -- needed for test
|
|
3075
|
+
return Object.defineProperty({}, 'next', {
|
|
3076
|
+
get: function () {
|
|
3077
|
+
baseSet.clear();
|
|
3078
|
+
baseSet.add(4);
|
|
3079
|
+
return function () {
|
|
3080
|
+
return { done: true };
|
|
3081
|
+
};
|
|
3082
|
+
}
|
|
3083
|
+
});
|
|
3084
|
+
}
|
|
3085
|
+
};
|
|
3086
|
+
var result = baseSet[METHOD_NAME](setLike);
|
|
3020
3087
|
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
3025
|
-
// `Array.prototype.values` method
|
|
3026
|
-
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
3027
|
-
// `Array.prototype[@@iterator]` method
|
|
3028
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
3029
|
-
// `CreateArrayIterator` internal method
|
|
3030
|
-
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
3031
|
-
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
3032
|
-
setInternalState(this, {
|
|
3033
|
-
type: ARRAY_ITERATOR,
|
|
3034
|
-
target: toIndexedObject(iterated), // target
|
|
3035
|
-
index: 0, // next index
|
|
3036
|
-
kind: kind // kind
|
|
3037
|
-
});
|
|
3038
|
-
// `%ArrayIteratorPrototype%.next` method
|
|
3039
|
-
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
3040
|
-
}, function () {
|
|
3041
|
-
var state = getInternalState(this);
|
|
3042
|
-
var target = state.target;
|
|
3043
|
-
var index = state.index++;
|
|
3044
|
-
if (!target || index >= target.length) {
|
|
3045
|
-
state.target = null;
|
|
3046
|
-
return createIterResultObject(undefined, true);
|
|
3088
|
+
return result.size === 1 && result.values().next().value === 4;
|
|
3089
|
+
} catch (error) {
|
|
3090
|
+
return false;
|
|
3047
3091
|
}
|
|
3048
|
-
|
|
3049
|
-
case 'keys': return createIterResultObject(index, false);
|
|
3050
|
-
case 'values': return createIterResultObject(target[index], false);
|
|
3051
|
-
} return createIterResultObject([index, target[index]], false);
|
|
3052
|
-
}, 'values');
|
|
3053
|
-
|
|
3054
|
-
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
3055
|
-
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
3056
|
-
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
3057
|
-
var values = Iterators.Arguments = Iterators.Array;
|
|
3092
|
+
};
|
|
3058
3093
|
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3094
|
+
var $$1 = _export;
|
|
3095
|
+
var symmetricDifference = setSymmetricDifference;
|
|
3096
|
+
var setMethodGetKeysBeforeCloning$1 = setMethodGetKeysBeforeCloningDetection;
|
|
3097
|
+
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
3063
3098
|
|
|
3064
|
-
|
|
3065
|
-
if (DESCRIPTORS && values.name !== 'values') try {
|
|
3066
|
-
defineProperty(values, 'name', { value: 'values' });
|
|
3067
|
-
} catch (error) { /* empty */ }
|
|
3099
|
+
var FORCED$1 = !setMethodAcceptSetLike$1('symmetricDifference') || !setMethodGetKeysBeforeCloning$1('symmetricDifference');
|
|
3068
3100
|
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
var setToStringTag = setToStringTag$3;
|
|
3075
|
-
var wellKnownSymbol = wellKnownSymbol$c;
|
|
3101
|
+
// `Set.prototype.symmetricDifference` method
|
|
3102
|
+
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
3103
|
+
$$1({ target: 'Set', proto: true, real: true, forced: FORCED$1 }, {
|
|
3104
|
+
symmetricDifference: symmetricDifference
|
|
3105
|
+
});
|
|
3076
3106
|
|
|
3077
|
-
var
|
|
3078
|
-
var
|
|
3107
|
+
var aSet = aSet$7;
|
|
3108
|
+
var add = setHelpers.add;
|
|
3109
|
+
var clone = setClone;
|
|
3110
|
+
var getSetRecord = getSetRecord$7;
|
|
3111
|
+
var iterateSimple = iterateSimple$7;
|
|
3079
3112
|
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
3091
|
-
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
3092
|
-
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
3093
|
-
} catch (error) {
|
|
3094
|
-
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
3095
|
-
}
|
|
3096
|
-
}
|
|
3097
|
-
}
|
|
3113
|
+
// `Set.prototype.union` method
|
|
3114
|
+
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
3115
|
+
var setUnion = function union(other) {
|
|
3116
|
+
var O = aSet(this);
|
|
3117
|
+
var keysIter = getSetRecord(other).getIterator();
|
|
3118
|
+
var result = clone(O);
|
|
3119
|
+
iterateSimple(keysIter, function (it) {
|
|
3120
|
+
add(result, it);
|
|
3121
|
+
});
|
|
3122
|
+
return result;
|
|
3098
3123
|
};
|
|
3099
3124
|
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3125
|
+
var $ = _export;
|
|
3126
|
+
var union = setUnion;
|
|
3127
|
+
var setMethodGetKeysBeforeCloning = setMethodGetKeysBeforeCloningDetection;
|
|
3128
|
+
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
3103
3129
|
|
|
3104
|
-
|
|
3130
|
+
var FORCED = !setMethodAcceptSetLike('union') || !setMethodGetKeysBeforeCloning('union');
|
|
3131
|
+
|
|
3132
|
+
// `Set.prototype.union` method
|
|
3133
|
+
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
3134
|
+
$({ target: 'Set', proto: true, real: true, forced: FORCED }, {
|
|
3135
|
+
union: union
|
|
3136
|
+
});
|
|
3105
3137
|
|
|
3106
3138
|
const cache = new Map();
|
|
3107
3139
|
const processVariables = (theme, prefix, cacheKey) => {
|