@beeq/tailwindcss 1.11.0-beta.0 → 1.11.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1590 -1566
- package/index.esm.js +1590 -1566
- package/package.json +2 -2
- 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,847 +1009,804 @@ 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;
|
|
1223
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
|
|
1441
1224
|
|
|
1442
|
-
//
|
|
1443
|
-
//
|
|
1444
|
-
|
|
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
|
+
}
|
|
1445
1232
|
|
|
1446
|
-
var
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
else createNonEnumerableProperty$4(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
1450
|
-
}
|
|
1233
|
+
var iteratorsCore = {
|
|
1234
|
+
IteratorPrototype: IteratorPrototype$4,
|
|
1235
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1451
1236
|
};
|
|
1452
1237
|
|
|
1453
|
-
var
|
|
1454
|
-
var
|
|
1455
|
-
var
|
|
1456
|
-
var
|
|
1457
|
-
var
|
|
1458
|
-
var
|
|
1459
|
-
var
|
|
1460
|
-
var
|
|
1461
|
-
var
|
|
1462
|
-
var
|
|
1463
|
-
var
|
|
1464
|
-
var
|
|
1465
|
-
|
|
1466
|
-
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
1467
|
-
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
1468
|
-
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
1469
|
-
var path = FULL_NAME.split('.');
|
|
1470
|
-
var ERROR_NAME = path[path.length - 1];
|
|
1471
|
-
var OriginalError = getBuiltIn$2.apply(null, path);
|
|
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;
|
|
1405
|
+
var call$8 = functionCall;
|
|
1406
|
+
var anObject$6 = anObject$d;
|
|
1407
|
+
var getMethod$1 = getMethod$4;
|
|
1651
1408
|
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1409
|
+
var iteratorClose$9 = function (iterator, kind, value) {
|
|
1410
|
+
var innerResult, innerError;
|
|
1411
|
+
anObject$6(iterator);
|
|
1412
|
+
try {
|
|
1413
|
+
innerResult = getMethod$1(iterator, 'return');
|
|
1414
|
+
if (!innerResult) {
|
|
1415
|
+
if (kind === 'throw') throw value;
|
|
1416
|
+
return value;
|
|
1417
|
+
}
|
|
1418
|
+
innerResult = call$8(innerResult, iterator);
|
|
1419
|
+
} catch (error) {
|
|
1420
|
+
innerError = true;
|
|
1421
|
+
innerResult = error;
|
|
1422
|
+
}
|
|
1423
|
+
if (kind === 'throw') throw value;
|
|
1424
|
+
if (innerError) throw innerResult;
|
|
1425
|
+
anObject$6(innerResult);
|
|
1426
|
+
return value;
|
|
1664
1427
|
};
|
|
1665
1428
|
|
|
1666
|
-
var
|
|
1429
|
+
var bind = functionBindContext;
|
|
1430
|
+
var call$7 = functionCall;
|
|
1431
|
+
var anObject$5 = anObject$d;
|
|
1432
|
+
var tryToString = tryToString$3;
|
|
1433
|
+
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1434
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1435
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1436
|
+
var getIterator = getIterator$1;
|
|
1437
|
+
var getIteratorMethod = getIteratorMethod$2;
|
|
1438
|
+
var iteratorClose$8 = iteratorClose$9;
|
|
1667
1439
|
|
|
1668
|
-
var
|
|
1440
|
+
var $TypeError$3 = TypeError;
|
|
1669
1441
|
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
var hiddenKeys = hiddenKeys$4;
|
|
1675
|
-
var html = html$1;
|
|
1676
|
-
var documentCreateElement$1 = documentCreateElement$2;
|
|
1677
|
-
var sharedKey = sharedKey$3;
|
|
1442
|
+
var Result = function (stopped, result) {
|
|
1443
|
+
this.stopped = stopped;
|
|
1444
|
+
this.result = result;
|
|
1445
|
+
};
|
|
1678
1446
|
|
|
1679
|
-
var
|
|
1680
|
-
var LT = '<';
|
|
1681
|
-
var PROTOTYPE = 'prototype';
|
|
1682
|
-
var SCRIPT = 'script';
|
|
1683
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1447
|
+
var ResultPrototype = Result.prototype;
|
|
1684
1448
|
|
|
1685
|
-
var
|
|
1449
|
+
var iterate$5 = function (iterable, unboundFunction, options) {
|
|
1450
|
+
var that = options && options.that;
|
|
1451
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1452
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1453
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1454
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1455
|
+
var fn = bind(unboundFunction, that);
|
|
1456
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
1686
1457
|
|
|
1687
|
-
var
|
|
1688
|
-
|
|
1689
|
-
|
|
1458
|
+
var stop = function (condition) {
|
|
1459
|
+
if (iterator) iteratorClose$8(iterator, 'normal');
|
|
1460
|
+
return new Result(true, condition);
|
|
1461
|
+
};
|
|
1690
1462
|
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
activeXDocument = null;
|
|
1698
|
-
return temp;
|
|
1699
|
-
};
|
|
1463
|
+
var callFn = function (value) {
|
|
1464
|
+
if (AS_ENTRIES) {
|
|
1465
|
+
anObject$5(value);
|
|
1466
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1467
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1468
|
+
};
|
|
1700
1469
|
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
}
|
|
1470
|
+
if (IS_RECORD) {
|
|
1471
|
+
iterator = iterable.iterator;
|
|
1472
|
+
} else if (IS_ITERATOR) {
|
|
1473
|
+
iterator = iterable;
|
|
1474
|
+
} else {
|
|
1475
|
+
iterFn = getIteratorMethod(iterable);
|
|
1476
|
+
if (!iterFn) throw new $TypeError$3(tryToString(iterable) + ' is not iterable');
|
|
1477
|
+
// optimisation for array iterators
|
|
1478
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
1479
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1480
|
+
result = callFn(iterable[index]);
|
|
1481
|
+
if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
1482
|
+
} return new Result(false);
|
|
1483
|
+
}
|
|
1484
|
+
iterator = getIterator(iterable, iterFn);
|
|
1485
|
+
}
|
|
1717
1486
|
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
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();
|
|
1487
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1488
|
+
while (!(step = call$7(next, iterator)).done) {
|
|
1489
|
+
try {
|
|
1490
|
+
result = callFn(step.value);
|
|
1491
|
+
} catch (error) {
|
|
1492
|
+
iteratorClose$8(iterator, 'throw', error);
|
|
1493
|
+
}
|
|
1494
|
+
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
1495
|
+
} return new Result(false);
|
|
1736
1496
|
};
|
|
1737
1497
|
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
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);
|
|
1498
|
+
// `GetIteratorDirect(obj)` abstract operation
|
|
1499
|
+
// https://tc39.es/ecma262/#sec-getiteratordirect
|
|
1500
|
+
var getIteratorDirect$4 = function (obj) {
|
|
1501
|
+
return {
|
|
1502
|
+
iterator: obj,
|
|
1503
|
+
next: obj.next,
|
|
1504
|
+
done: false
|
|
1505
|
+
};
|
|
1753
1506
|
};
|
|
1754
1507
|
|
|
1755
|
-
var
|
|
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;
|
|
1508
|
+
var globalThis$3 = globalThis_1;
|
|
1761
1509
|
|
|
1762
|
-
|
|
1763
|
-
var
|
|
1510
|
+
// https://github.com/tc39/ecma262/pull/3467
|
|
1511
|
+
var iteratorHelperWithoutClosingOnEarlyError$3 = function (METHOD_NAME, ExpectedError) {
|
|
1512
|
+
var Iterator = globalThis$3.Iterator;
|
|
1513
|
+
var IteratorPrototype = Iterator && Iterator.prototype;
|
|
1514
|
+
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
|
|
1764
1515
|
|
|
1765
|
-
|
|
1766
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1767
|
-
var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1516
|
+
var CLOSED = false;
|
|
1768
1517
|
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
if (
|
|
1518
|
+
if (method) try {
|
|
1519
|
+
method.call({
|
|
1520
|
+
next: function () { return { done: true }; },
|
|
1521
|
+
'return': function () { CLOSED = true; }
|
|
1522
|
+
}, -1);
|
|
1523
|
+
} catch (error) {
|
|
1524
|
+
// https://bugs.webkit.org/show_bug.cgi?id=291195
|
|
1525
|
+
if (!(error instanceof ExpectedError)) CLOSED = false;
|
|
1777
1526
|
}
|
|
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
1527
|
|
|
1796
|
-
|
|
1797
|
-
IteratorPrototype: IteratorPrototype$4,
|
|
1798
|
-
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1528
|
+
if (!CLOSED) return method;
|
|
1799
1529
|
};
|
|
1800
1530
|
|
|
1801
1531
|
var $$c = _export;
|
|
1802
|
-
var
|
|
1803
|
-
var
|
|
1804
|
-
var
|
|
1805
|
-
var
|
|
1806
|
-
var
|
|
1807
|
-
var
|
|
1808
|
-
var
|
|
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');
|
|
1532
|
+
var call$6 = functionCall;
|
|
1533
|
+
var iterate$4 = iterate$5;
|
|
1534
|
+
var aCallable$4 = aCallable$8;
|
|
1535
|
+
var anObject$4 = anObject$d;
|
|
1536
|
+
var getIteratorDirect$3 = getIteratorDirect$4;
|
|
1537
|
+
var iteratorClose$7 = iteratorClose$9;
|
|
1538
|
+
var iteratorHelperWithoutClosingOnEarlyError$2 = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
1818
1539
|
|
|
1819
|
-
var
|
|
1820
|
-
var NativeIterator = globalThis$3[ITERATOR$4];
|
|
1540
|
+
var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$2('forEach', TypeError);
|
|
1821
1541
|
|
|
1822
|
-
//
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1542
|
+
// `Iterator.prototype.forEach` method
|
|
1543
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
1544
|
+
$$c({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
|
|
1545
|
+
forEach: function forEach(fn) {
|
|
1546
|
+
anObject$4(this);
|
|
1547
|
+
try {
|
|
1548
|
+
aCallable$4(fn);
|
|
1549
|
+
} catch (error) {
|
|
1550
|
+
iteratorClose$7(this, 'throw', error);
|
|
1551
|
+
}
|
|
1827
1552
|
|
|
1828
|
-
|
|
1829
|
-
anInstance(this, IteratorPrototype$3);
|
|
1830
|
-
if (getPrototypeOf$1(this) === IteratorPrototype$3) throw new $TypeError$4('Abstract class Iterator not directly constructable');
|
|
1831
|
-
};
|
|
1553
|
+
if (forEachWithoutClosingOnEarlyError) return call$6(forEachWithoutClosingOnEarlyError, this, fn);
|
|
1832
1554
|
|
|
1833
|
-
var
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1555
|
+
var record = getIteratorDirect$3(this);
|
|
1556
|
+
var counter = 0;
|
|
1557
|
+
iterate$4(record, function (value) {
|
|
1558
|
+
fn(value, counter++);
|
|
1559
|
+
}, { IS_RECORD: true });
|
|
1560
|
+
}
|
|
1561
|
+
});
|
|
1562
|
+
|
|
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
|
|
1848
1597
|
};
|
|
1849
1598
|
|
|
1850
|
-
|
|
1599
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1600
|
+
var documentCreateElement = documentCreateElement$2;
|
|
1851
1601
|
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
}
|
|
1602
|
+
var classList = documentCreateElement('span').classList;
|
|
1603
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1855
1604
|
|
|
1856
|
-
|
|
1605
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1857
1606
|
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
Iterator: IteratorConstructor
|
|
1862
|
-
});
|
|
1607
|
+
var wellKnownSymbol$4 = wellKnownSymbol$c;
|
|
1608
|
+
var create$2 = objectCreate;
|
|
1609
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1863
1610
|
|
|
1864
|
-
var
|
|
1865
|
-
var
|
|
1611
|
+
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
|
1612
|
+
var ArrayPrototype = Array.prototype;
|
|
1866
1613
|
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
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)
|
|
1620
|
+
});
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
// add a key to Array.prototype[@@unscopables]
|
|
1624
|
+
var addToUnscopables$1 = function (key) {
|
|
1625
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1872
1626
|
};
|
|
1873
1627
|
|
|
1874
|
-
var
|
|
1875
|
-
var
|
|
1876
|
-
var
|
|
1628
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
1629
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1630
|
+
var wellKnownSymbol$3 = wellKnownSymbol$c;
|
|
1877
1631
|
|
|
1878
|
-
var
|
|
1632
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
1879
1633
|
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
};
|
|
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 });
|
|
1638
|
+
}
|
|
1886
1639
|
};
|
|
1887
1640
|
|
|
1888
|
-
var
|
|
1889
|
-
|
|
1890
|
-
var
|
|
1891
|
-
var
|
|
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;
|
|
1892
1646
|
|
|
1893
|
-
var
|
|
1894
|
-
var ArrayPrototype$1 = Array.prototype;
|
|
1647
|
+
var returnThis$1 = function () { return this; };
|
|
1895
1648
|
|
|
1896
|
-
|
|
1897
|
-
var
|
|
1898
|
-
|
|
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;
|
|
1899
1655
|
};
|
|
1900
1656
|
|
|
1901
|
-
var
|
|
1902
|
-
var
|
|
1903
|
-
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1904
|
-
var Iterators$3 = iterators;
|
|
1905
|
-
var wellKnownSymbol$5 = wellKnownSymbol$c;
|
|
1657
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1658
|
+
var aCallable$3 = aCallable$8;
|
|
1906
1659
|
|
|
1907
|
-
var
|
|
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
|
+
};
|
|
1908
1666
|
|
|
1909
|
-
var
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1667
|
+
var isObject$3 = isObject$a;
|
|
1668
|
+
|
|
1669
|
+
var isPossiblePrototype$1 = function (argument) {
|
|
1670
|
+
return isObject$3(argument) || argument === null;
|
|
1913
1671
|
};
|
|
1914
1672
|
|
|
1915
|
-
var
|
|
1916
|
-
var aCallable$4 = aCallable$8;
|
|
1917
|
-
var anObject$7 = anObject$d;
|
|
1918
|
-
var tryToString$1 = tryToString$3;
|
|
1919
|
-
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1673
|
+
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1920
1674
|
|
|
1921
|
-
var $
|
|
1675
|
+
var $String$1 = String;
|
|
1676
|
+
var $TypeError$2 = TypeError;
|
|
1922
1677
|
|
|
1923
|
-
var
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
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');
|
|
1927
1681
|
};
|
|
1928
1682
|
|
|
1929
|
-
|
|
1930
|
-
var
|
|
1931
|
-
var
|
|
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;
|
|
1932
1688
|
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
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;
|
|
1936
1697
|
try {
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
return value;
|
|
1951
|
-
};
|
|
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);
|
|
1952
1711
|
|
|
1953
|
-
var
|
|
1954
|
-
var call$
|
|
1955
|
-
var
|
|
1956
|
-
var
|
|
1957
|
-
var
|
|
1958
|
-
var
|
|
1959
|
-
var
|
|
1960
|
-
var
|
|
1961
|
-
var
|
|
1962
|
-
var
|
|
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;
|
|
1963
1725
|
|
|
1964
|
-
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';
|
|
1965
1734
|
|
|
1966
|
-
var
|
|
1967
|
-
this.stopped = stopped;
|
|
1968
|
-
this.result = result;
|
|
1969
|
-
};
|
|
1735
|
+
var returnThis = function () { return this; };
|
|
1970
1736
|
|
|
1971
|
-
var
|
|
1737
|
+
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1738
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1972
1739
|
|
|
1973
|
-
var
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1977
|
-
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1978
|
-
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1979
|
-
var fn = bind(unboundFunction, that);
|
|
1980
|
-
var iterator, iterFn, index, length, result, next, step;
|
|
1740
|
+
var getIterationMethod = function (KIND) {
|
|
1741
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1742
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1981
1743
|
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
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
|
+
}
|
|
1986
1749
|
|
|
1987
|
-
|
|
1988
|
-
if (AS_ENTRIES) {
|
|
1989
|
-
anObject$5(value);
|
|
1990
|
-
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1991
|
-
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1750
|
+
return function () { return new IteratorConstructor(this); };
|
|
1992
1751
|
};
|
|
1993
1752
|
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2004
|
-
result = callFn(iterable[index]);
|
|
2005
|
-
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2006
|
-
} return new Result(false);
|
|
2007
|
-
}
|
|
2008
|
-
iterator = getIterator(iterable, iterFn);
|
|
2009
|
-
}
|
|
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;
|
|
2010
1762
|
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
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);
|
|
2017
1776
|
}
|
|
2018
|
-
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2019
|
-
} return new Result(false);
|
|
2020
|
-
};
|
|
2021
|
-
|
|
2022
|
-
// `GetIteratorDirect(obj)` abstract operation
|
|
2023
|
-
// https://tc39.es/ecma262/#sec-getiteratordirect
|
|
2024
|
-
var getIteratorDirect$4 = function (obj) {
|
|
2025
|
-
return {
|
|
2026
|
-
iterator: obj,
|
|
2027
|
-
next: obj.next,
|
|
2028
|
-
done: false
|
|
2029
|
-
};
|
|
2030
|
-
};
|
|
2031
|
-
|
|
2032
|
-
var globalThis$2 = globalThis_1;
|
|
2033
|
-
|
|
2034
|
-
// https://github.com/tc39/ecma262/pull/3467
|
|
2035
|
-
var iteratorHelperWithoutClosingOnEarlyError$3 = function (METHOD_NAME, ExpectedError) {
|
|
2036
|
-
var Iterator = globalThis$2.Iterator;
|
|
2037
|
-
var IteratorPrototype = Iterator && Iterator.prototype;
|
|
2038
|
-
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
|
|
2039
|
-
|
|
2040
|
-
var CLOSED = false;
|
|
2041
|
-
|
|
2042
|
-
if (method) try {
|
|
2043
|
-
method.call({
|
|
2044
|
-
next: function () { return { done: true }; },
|
|
2045
|
-
'return': function () { CLOSED = true; }
|
|
2046
|
-
}, -1);
|
|
2047
|
-
} catch (error) {
|
|
2048
|
-
// https://bugs.webkit.org/show_bug.cgi?id=291195
|
|
2049
|
-
if (!(error instanceof ExpectedError)) CLOSED = false;
|
|
2050
1777
|
}
|
|
2051
1778
|
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
var anObject$4 = anObject$d;
|
|
2060
|
-
var getIteratorDirect$3 = getIteratorDirect$4;
|
|
2061
|
-
var iteratorClose$7 = iteratorClose$9;
|
|
2062
|
-
var iteratorHelperWithoutClosingOnEarlyError$2 = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
2063
|
-
|
|
2064
|
-
var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$2('forEach', TypeError);
|
|
2065
|
-
|
|
2066
|
-
// `Iterator.prototype.forEach` method
|
|
2067
|
-
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
2068
|
-
$$b({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
|
|
2069
|
-
forEach: function forEach(fn) {
|
|
2070
|
-
anObject$4(this);
|
|
2071
|
-
try {
|
|
2072
|
-
aCallable$3(fn);
|
|
2073
|
-
} catch (error) {
|
|
2074
|
-
iteratorClose$7(this, 'throw', error);
|
|
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); };
|
|
2075
1786
|
}
|
|
1787
|
+
}
|
|
2076
1788
|
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
}
|
|
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);
|
|
2084
1801
|
}
|
|
2085
|
-
});
|
|
2086
1802
|
|
|
2087
|
-
|
|
1803
|
+
// define iterator
|
|
1804
|
+
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1805
|
+
defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1806
|
+
}
|
|
1807
|
+
Iterators$1[NAME] = defaultIterator;
|
|
2088
1808
|
|
|
2089
|
-
|
|
2090
|
-
for (var key in src) defineBuiltIn$1(target, key, src[key], options);
|
|
2091
|
-
return target;
|
|
1809
|
+
return methods;
|
|
2092
1810
|
};
|
|
2093
1811
|
|
|
2094
1812
|
// `CreateIterResultObject` abstract operation
|
|
@@ -2097,101 +1815,699 @@ var createIterResultObject$2 = function (value, done) {
|
|
|
2097
1815
|
return { value: value, done: done };
|
|
2098
1816
|
};
|
|
2099
1817
|
|
|
2100
|
-
var
|
|
2101
|
-
|
|
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
|
-
};
|
|
2115
|
-
|
|
2116
|
-
var call$4 = functionCall;
|
|
2117
|
-
var create$2 = objectCreate;
|
|
2118
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
2119
|
-
var defineBuiltIns = defineBuiltIns$1;
|
|
2120
|
-
var wellKnownSymbol$4 = wellKnownSymbol$c;
|
|
1818
|
+
var toIndexedObject = toIndexedObject$5;
|
|
1819
|
+
var addToUnscopables = addToUnscopables$1;
|
|
1820
|
+
var Iterators = iterators;
|
|
2121
1821
|
var InternalStateModule$1 = internalState;
|
|
2122
|
-
var
|
|
2123
|
-
var
|
|
1822
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1823
|
+
var defineIterator = iteratorDefine;
|
|
2124
1824
|
var createIterResultObject$1 = createIterResultObject$2;
|
|
2125
|
-
var
|
|
2126
|
-
var iteratorCloseAll = iteratorCloseAll$1;
|
|
1825
|
+
var DESCRIPTORS$1 = descriptors;
|
|
2127
1826
|
|
|
2128
|
-
var
|
|
2129
|
-
var ITERATOR_HELPER = 'IteratorHelper';
|
|
2130
|
-
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
2131
|
-
var NORMAL = 'normal';
|
|
2132
|
-
var THROW = 'throw';
|
|
1827
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
|
2133
1828
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
1829
|
+
var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
2134
1830
|
|
|
2135
|
-
|
|
2136
|
-
|
|
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
|
|
1847
|
+
});
|
|
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');
|
|
2137
1863
|
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
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;
|
|
1868
|
+
|
|
1869
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1870
|
+
addToUnscopables('keys');
|
|
1871
|
+
addToUnscopables('values');
|
|
1872
|
+
addToUnscopables('entries');
|
|
1873
|
+
|
|
1874
|
+
// V8 ~ Chrome 45- bug
|
|
1875
|
+
if (DESCRIPTORS$1 && values.name !== 'values') try {
|
|
1876
|
+
defineProperty$1(values, 'name', { value: 'values' });
|
|
1877
|
+
} catch (error) { /* empty */ }
|
|
1878
|
+
|
|
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;
|
|
1886
|
+
|
|
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]);
|
|
2169
1903
|
} catch (error) {
|
|
2170
|
-
|
|
1904
|
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
2171
1905
|
}
|
|
2172
|
-
if (iterator) iteratorClose$5(iterator, NORMAL);
|
|
2173
|
-
return createIterResultObject$1(undefined, true);
|
|
2174
1906
|
}
|
|
2175
|
-
}
|
|
1907
|
+
}
|
|
2176
1908
|
};
|
|
2177
1909
|
|
|
2178
|
-
var
|
|
2179
|
-
|
|
1910
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
1911
|
+
handlePrototype(globalThis$2[COLLECTION_NAME] && globalThis$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1912
|
+
}
|
|
2180
1913
|
|
|
2181
|
-
|
|
1914
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
2182
1915
|
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
} else
|
|
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 flattenColorPalette$1(colors) {
|
|
1933
|
+
try {
|
|
1934
|
+
const {
|
|
1935
|
+
default: twFlattenColorPalette
|
|
1936
|
+
} = require('tailwindcss/lib/util/flattenColorPalette');
|
|
1937
|
+
return twFlattenColorPalette(colors);
|
|
1938
|
+
} catch (_unused) {
|
|
1939
|
+
return customFlattenColorPalette(colors);
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
const {
|
|
1944
|
+
default: flattenColorPalette
|
|
1945
|
+
} = require('tailwindcss/lib/util/flattenColorPalette');
|
|
1946
|
+
const ColorMix = plugin(function ({
|
|
1947
|
+
matchUtilities,
|
|
1948
|
+
theme
|
|
1949
|
+
}) {
|
|
1950
|
+
matchUtilities({
|
|
1951
|
+
'bg-hover': value => blendColor({
|
|
1952
|
+
color: value,
|
|
1953
|
+
base: 'var(--bq-hover)'
|
|
1954
|
+
}),
|
|
1955
|
+
'bg-active': value => blendColor({
|
|
1956
|
+
color: value,
|
|
1957
|
+
base: 'var(--bq-active)'
|
|
1958
|
+
}),
|
|
1959
|
+
'border-hover': value => blendColor({
|
|
1960
|
+
color: value,
|
|
1961
|
+
base: 'var(--bq-hover)',
|
|
1962
|
+
property: 'border-color'
|
|
1963
|
+
}),
|
|
1964
|
+
'border-active': value => blendColor({
|
|
1965
|
+
color: value,
|
|
1966
|
+
base: 'var(--bq-active)',
|
|
1967
|
+
property: 'border-color'
|
|
1968
|
+
}),
|
|
1969
|
+
'text-hover': value => blendColor({
|
|
1970
|
+
color: value,
|
|
1971
|
+
base: 'var(--bq-hover)',
|
|
1972
|
+
property: 'color'
|
|
1973
|
+
}),
|
|
1974
|
+
'text-active': value => blendColor({
|
|
1975
|
+
color: value,
|
|
1976
|
+
base: 'var(--bq-active)',
|
|
1977
|
+
property: 'color'
|
|
1978
|
+
})
|
|
1979
|
+
}, {
|
|
1980
|
+
values: flattenColorPalette(theme('colors'))
|
|
1981
|
+
});
|
|
1982
|
+
matchUtilities({
|
|
1983
|
+
'bg-hover': value => blendColor({
|
|
1984
|
+
color: value,
|
|
1985
|
+
base: 'var(--bq-hover)'
|
|
1986
|
+
}),
|
|
1987
|
+
'bg-active': value => blendColor({
|
|
1988
|
+
color: value,
|
|
1989
|
+
base: 'var(--bq-active)'
|
|
1990
|
+
})
|
|
1991
|
+
}, {
|
|
1992
|
+
values: flattenColorPalette(theme('backgroundColor'))
|
|
1993
|
+
});
|
|
1994
|
+
matchUtilities({
|
|
1995
|
+
'border-hover': value => blendColor({
|
|
1996
|
+
color: value,
|
|
1997
|
+
base: 'var(--bq-hover)',
|
|
1998
|
+
property: 'border-color'
|
|
1999
|
+
}),
|
|
2000
|
+
'border-active': value => blendColor({
|
|
2001
|
+
color: value,
|
|
2002
|
+
base: 'var(--bq-active)',
|
|
2003
|
+
property: 'border-color'
|
|
2004
|
+
})
|
|
2005
|
+
}, {
|
|
2006
|
+
values: flattenColorPalette(theme('borderColor'))
|
|
2007
|
+
});
|
|
2008
|
+
matchUtilities({
|
|
2009
|
+
'text-hover': value => blendColor({
|
|
2010
|
+
color: value,
|
|
2011
|
+
base: 'var(--bq-hover)',
|
|
2012
|
+
property: 'color'
|
|
2013
|
+
}),
|
|
2014
|
+
'text-active': value => blendColor({
|
|
2015
|
+
color: value,
|
|
2016
|
+
base: 'var(--bq-active)',
|
|
2017
|
+
property: 'color'
|
|
2018
|
+
})
|
|
2019
|
+
}, {
|
|
2020
|
+
values: flattenColorPalette(theme('textColor'))
|
|
2021
|
+
});
|
|
2022
|
+
matchUtilities({
|
|
2023
|
+
'stroke-hover': value => blendColor({
|
|
2024
|
+
color: value,
|
|
2025
|
+
base: 'var(--bq-hover)',
|
|
2026
|
+
property: 'color'
|
|
2027
|
+
}),
|
|
2028
|
+
'stroke-active': value => blendColor({
|
|
2029
|
+
color: value,
|
|
2030
|
+
base: 'var(--bq-active)',
|
|
2031
|
+
property: 'color'
|
|
2032
|
+
})
|
|
2033
|
+
}, {
|
|
2034
|
+
values: flattenColorPalette(theme('stroke'))
|
|
2035
|
+
});
|
|
2036
|
+
});
|
|
2037
|
+
|
|
2038
|
+
const LogicalProperties = plugin(function ({
|
|
2039
|
+
matchUtilities,
|
|
2040
|
+
theme
|
|
2041
|
+
}) {
|
|
2042
|
+
matchUtilities({
|
|
2043
|
+
'border-bl': value => ({
|
|
2044
|
+
'border-block-width': value
|
|
2045
|
+
}),
|
|
2046
|
+
'border-bs': value => ({
|
|
2047
|
+
'border-block-start-width': value
|
|
2048
|
+
}),
|
|
2049
|
+
'border-be': value => ({
|
|
2050
|
+
'border-block-end-width': value
|
|
2051
|
+
}),
|
|
2052
|
+
'border-i': value => ({
|
|
2053
|
+
'border-inline-width': value
|
|
2054
|
+
}),
|
|
2055
|
+
'border-is': value => ({
|
|
2056
|
+
'border-inline-start-width': value
|
|
2057
|
+
}),
|
|
2058
|
+
'border-ie': value => ({
|
|
2059
|
+
'border-inline-end-width': value
|
|
2060
|
+
})
|
|
2061
|
+
}, {
|
|
2062
|
+
values: theme('borderWidth')
|
|
2063
|
+
});
|
|
2064
|
+
matchUtilities({
|
|
2065
|
+
'border-bl': value => ({
|
|
2066
|
+
'border-block-color': value
|
|
2067
|
+
}),
|
|
2068
|
+
'border-bs': value => ({
|
|
2069
|
+
'border-block-start-color': value
|
|
2070
|
+
}),
|
|
2071
|
+
'border-be': value => ({
|
|
2072
|
+
'border-block-end-color': value
|
|
2073
|
+
}),
|
|
2074
|
+
'border-i': value => ({
|
|
2075
|
+
'border-inline-color': value
|
|
2076
|
+
}),
|
|
2077
|
+
'border-is': value => ({
|
|
2078
|
+
'border-inline-start-color': value
|
|
2079
|
+
}),
|
|
2080
|
+
'border-ie': value => ({
|
|
2081
|
+
'border-inline-end-color': value
|
|
2082
|
+
})
|
|
2083
|
+
}, {
|
|
2084
|
+
values: flattenColorPalette$1(theme('colors'))
|
|
2085
|
+
});
|
|
2086
|
+
matchUtilities({
|
|
2087
|
+
bs: value => ({
|
|
2088
|
+
'block-size': value
|
|
2089
|
+
}),
|
|
2090
|
+
'max-bs': value => ({
|
|
2091
|
+
'max-block-size': value
|
|
2092
|
+
}),
|
|
2093
|
+
'min-bs': value => ({
|
|
2094
|
+
'min-block-size': value
|
|
2095
|
+
}),
|
|
2096
|
+
is: value => ({
|
|
2097
|
+
'inline-size': value
|
|
2098
|
+
}),
|
|
2099
|
+
'max-is': value => ({
|
|
2100
|
+
'max-inline-size': value
|
|
2101
|
+
}),
|
|
2102
|
+
'min-is': value => ({
|
|
2103
|
+
'min-inline-size': value
|
|
2104
|
+
})
|
|
2105
|
+
}, {
|
|
2106
|
+
values: theme('width')
|
|
2107
|
+
});
|
|
2108
|
+
matchUtilities({
|
|
2109
|
+
'border-bl': value => ({
|
|
2110
|
+
'border-block': value
|
|
2111
|
+
}),
|
|
2112
|
+
'border-bs': value => ({
|
|
2113
|
+
'border-block-start': value
|
|
2114
|
+
}),
|
|
2115
|
+
'border-be': value => ({
|
|
2116
|
+
'border-block-end': value
|
|
2117
|
+
}),
|
|
2118
|
+
'border-i': value => ({
|
|
2119
|
+
'border-inline': value
|
|
2120
|
+
}),
|
|
2121
|
+
'border-is': value => ({
|
|
2122
|
+
'border-inline-start': value
|
|
2123
|
+
}),
|
|
2124
|
+
'border-ie': value => ({
|
|
2125
|
+
'border-inline-end': value
|
|
2126
|
+
}),
|
|
2127
|
+
'p-b': value => ({
|
|
2128
|
+
'padding-block': value
|
|
2129
|
+
}),
|
|
2130
|
+
'p-bs': value => ({
|
|
2131
|
+
'padding-block-start': value
|
|
2132
|
+
}),
|
|
2133
|
+
'p-be': value => ({
|
|
2134
|
+
'padding-block-end': value
|
|
2135
|
+
}),
|
|
2136
|
+
'p-i': value => ({
|
|
2137
|
+
'padding-inline': value
|
|
2138
|
+
})
|
|
2139
|
+
}, {
|
|
2140
|
+
values: theme('spacing')
|
|
2141
|
+
});
|
|
2142
|
+
matchUtilities({
|
|
2143
|
+
'inset-b': value => ({
|
|
2144
|
+
'inset-block': value
|
|
2145
|
+
}),
|
|
2146
|
+
'inset-bs': value => ({
|
|
2147
|
+
'inset-block-start': value
|
|
2148
|
+
}),
|
|
2149
|
+
'inset-be': value => ({
|
|
2150
|
+
'inset-block-end': value
|
|
2151
|
+
}),
|
|
2152
|
+
'inset-i': value => ({
|
|
2153
|
+
'inset-inline': value
|
|
2154
|
+
}),
|
|
2155
|
+
'inset-is': value => ({
|
|
2156
|
+
'inset-inline-start': value
|
|
2157
|
+
}),
|
|
2158
|
+
'inset-ie': value => ({
|
|
2159
|
+
'inset-inline-end': value
|
|
2160
|
+
}),
|
|
2161
|
+
'm-b': value => ({
|
|
2162
|
+
'margin-block': value
|
|
2163
|
+
}),
|
|
2164
|
+
'm-bs': value => ({
|
|
2165
|
+
'margin-block-start': value
|
|
2166
|
+
}),
|
|
2167
|
+
'm-be': value => ({
|
|
2168
|
+
'margin-block-end': value
|
|
2169
|
+
}),
|
|
2170
|
+
'm-i': value => ({
|
|
2171
|
+
'margin-inline': value
|
|
2172
|
+
})
|
|
2173
|
+
}, {
|
|
2174
|
+
values: theme('spacing'),
|
|
2175
|
+
supportsNegativeValues: true
|
|
2176
|
+
});
|
|
2177
|
+
});
|
|
2178
|
+
|
|
2179
|
+
var NATIVE_BIND = functionBindNative;
|
|
2180
|
+
|
|
2181
|
+
var FunctionPrototype = Function.prototype;
|
|
2182
|
+
var apply$2 = FunctionPrototype.apply;
|
|
2183
|
+
var call$4 = FunctionPrototype.call;
|
|
2184
|
+
|
|
2185
|
+
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
2186
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$2) : function () {
|
|
2187
|
+
return call$4.apply(apply$2, arguments);
|
|
2188
|
+
});
|
|
2189
|
+
|
|
2190
|
+
var defineProperty = objectDefineProperty.f;
|
|
2191
|
+
|
|
2192
|
+
var proxyAccessor$1 = function (Target, Source, key) {
|
|
2193
|
+
key in Target || defineProperty(Target, key, {
|
|
2194
|
+
configurable: true,
|
|
2195
|
+
get: function () { return Source[key]; },
|
|
2196
|
+
set: function (it) { Source[key] = it; }
|
|
2197
|
+
});
|
|
2198
|
+
};
|
|
2199
|
+
|
|
2200
|
+
var isCallable = isCallable$g;
|
|
2201
|
+
var isObject$1 = isObject$a;
|
|
2202
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
2203
|
+
|
|
2204
|
+
// makes subclassing work correct for wrapped built-ins
|
|
2205
|
+
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
2206
|
+
var NewTarget, NewTargetPrototype;
|
|
2207
|
+
if (
|
|
2208
|
+
// it can work only with native `setPrototypeOf`
|
|
2209
|
+
setPrototypeOf$1 &&
|
|
2210
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
2211
|
+
isCallable(NewTarget = dummy.constructor) &&
|
|
2212
|
+
NewTarget !== Wrapper &&
|
|
2213
|
+
isObject$1(NewTargetPrototype = NewTarget.prototype) &&
|
|
2214
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
2215
|
+
) setPrototypeOf$1($this, NewTargetPrototype);
|
|
2216
|
+
return $this;
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2219
|
+
var classof = classof$2;
|
|
2220
|
+
|
|
2221
|
+
var $String = String;
|
|
2222
|
+
|
|
2223
|
+
var toString$1 = function (argument) {
|
|
2224
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
2225
|
+
return $String(argument);
|
|
2226
|
+
};
|
|
2227
|
+
|
|
2228
|
+
var toString = toString$1;
|
|
2229
|
+
|
|
2230
|
+
var normalizeStringArgument$1 = function (argument, $default) {
|
|
2231
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
var isObject = isObject$a;
|
|
2235
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
2236
|
+
|
|
2237
|
+
// `InstallErrorCause` abstract operation
|
|
2238
|
+
// https://tc39.es/ecma262/#sec-installerrorcause
|
|
2239
|
+
var installErrorCause$1 = function (O, options) {
|
|
2240
|
+
if (isObject(options) && 'cause' in options) {
|
|
2241
|
+
createNonEnumerableProperty$3(O, 'cause', options.cause);
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
2244
|
+
|
|
2245
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2246
|
+
|
|
2247
|
+
var $Error = Error;
|
|
2248
|
+
var replace = uncurryThis$2(''.replace);
|
|
2249
|
+
|
|
2250
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
2251
|
+
// eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe
|
|
2252
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
2253
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
2254
|
+
|
|
2255
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
2256
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
2257
|
+
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
2258
|
+
} return stack;
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
var fails$3 = fails$f;
|
|
2262
|
+
var createPropertyDescriptor = createPropertyDescriptor$5;
|
|
2263
|
+
|
|
2264
|
+
var errorStackInstallable = !fails$3(function () {
|
|
2265
|
+
var error = new Error('a');
|
|
2266
|
+
if (!('stack' in error)) return true;
|
|
2267
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2268
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
2269
|
+
return error.stack !== 7;
|
|
2270
|
+
});
|
|
2271
|
+
|
|
2272
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
2273
|
+
var clearErrorStack = errorStackClear;
|
|
2274
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
2275
|
+
|
|
2276
|
+
// non-standard V8
|
|
2277
|
+
// eslint-disable-next-line es/no-nonstandard-error-properties -- safe
|
|
2278
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
2279
|
+
|
|
2280
|
+
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
2281
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
2282
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
2283
|
+
else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
2284
|
+
}
|
|
2285
|
+
};
|
|
2286
|
+
|
|
2287
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
2288
|
+
var hasOwn = hasOwnProperty_1;
|
|
2289
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
2290
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
2291
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
2292
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
|
2293
|
+
var proxyAccessor = proxyAccessor$1;
|
|
2294
|
+
var inheritIfRequired = inheritIfRequired$1;
|
|
2295
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
2296
|
+
var installErrorCause = installErrorCause$1;
|
|
2297
|
+
var installErrorStack = errorStackInstall;
|
|
2298
|
+
var DESCRIPTORS = descriptors;
|
|
2299
|
+
|
|
2300
|
+
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
2301
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
2302
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
2303
|
+
var path = FULL_NAME.split('.');
|
|
2304
|
+
var ERROR_NAME = path[path.length - 1];
|
|
2305
|
+
var OriginalError = getBuiltIn$1.apply(null, path);
|
|
2306
|
+
|
|
2307
|
+
if (!OriginalError) return;
|
|
2308
|
+
|
|
2309
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
2310
|
+
|
|
2311
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
2312
|
+
if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
2313
|
+
|
|
2314
|
+
if (!FORCED) return OriginalError;
|
|
2315
|
+
|
|
2316
|
+
var BaseError = getBuiltIn$1('Error');
|
|
2317
|
+
|
|
2318
|
+
var WrappedError = wrapper(function (a, b) {
|
|
2319
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
2320
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
2321
|
+
if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message);
|
|
2322
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
2323
|
+
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
2324
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
2325
|
+
return result;
|
|
2326
|
+
});
|
|
2327
|
+
|
|
2328
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
2329
|
+
|
|
2330
|
+
if (ERROR_NAME !== 'Error') {
|
|
2331
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
2332
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
2333
|
+
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
2334
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
2335
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
2339
|
+
|
|
2340
|
+
try {
|
|
2341
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
2342
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
2343
|
+
createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
2344
|
+
}
|
|
2345
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
2346
|
+
} catch (error) { /* empty */ }
|
|
2347
|
+
|
|
2348
|
+
return WrappedError;
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
2352
|
+
var $$a = _export;
|
|
2353
|
+
var globalThis$1 = globalThis_1;
|
|
2354
|
+
var apply$1 = functionApply;
|
|
2355
|
+
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
2356
|
+
|
|
2357
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
2358
|
+
var WebAssembly = globalThis$1[WEB_ASSEMBLY];
|
|
2359
|
+
|
|
2360
|
+
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
2361
|
+
var FORCED$4 = new Error('e', { cause: 7 }).cause !== 7;
|
|
2362
|
+
|
|
2363
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2364
|
+
var O = {};
|
|
2365
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$4);
|
|
2366
|
+
$$a({ global: true, constructor: true, arity: 1, forced: FORCED$4 }, O);
|
|
2367
|
+
};
|
|
2368
|
+
|
|
2369
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2370
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
2371
|
+
var O = {};
|
|
2372
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$4);
|
|
2373
|
+
$$a({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$4 }, O);
|
|
2374
|
+
}
|
|
2375
|
+
};
|
|
2376
|
+
|
|
2377
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
2378
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
2379
|
+
return function Error(message) { return apply$1(init, this, arguments); };
|
|
2380
|
+
});
|
|
2381
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
2382
|
+
return function EvalError(message) { return apply$1(init, this, arguments); };
|
|
2383
|
+
});
|
|
2384
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
2385
|
+
return function RangeError(message) { return apply$1(init, this, arguments); };
|
|
2386
|
+
});
|
|
2387
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
2388
|
+
return function ReferenceError(message) { return apply$1(init, this, arguments); };
|
|
2389
|
+
});
|
|
2390
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
2391
|
+
return function SyntaxError(message) { return apply$1(init, this, arguments); };
|
|
2392
|
+
});
|
|
2393
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
2394
|
+
return function TypeError(message) { return apply$1(init, this, arguments); };
|
|
2395
|
+
});
|
|
2396
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
2397
|
+
return function URIError(message) { return apply$1(init, this, arguments); };
|
|
2398
|
+
});
|
|
2399
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
2400
|
+
return function CompileError(message) { return apply$1(init, this, arguments); };
|
|
2401
|
+
});
|
|
2402
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
2403
|
+
return function LinkError(message) { return apply$1(init, this, arguments); };
|
|
2404
|
+
});
|
|
2405
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
2406
|
+
return function RuntimeError(message) { return apply$1(init, this, arguments); };
|
|
2407
|
+
});
|
|
2408
|
+
|
|
2409
|
+
var defineBuiltIn = defineBuiltIn$4;
|
|
2410
|
+
|
|
2411
|
+
var defineBuiltIns$1 = function (target, src, options) {
|
|
2412
|
+
for (var key in src) defineBuiltIn(target, key, src[key], options);
|
|
2413
|
+
return target;
|
|
2414
|
+
};
|
|
2415
|
+
|
|
2416
|
+
var iteratorClose$6 = iteratorClose$9;
|
|
2417
|
+
|
|
2418
|
+
var iteratorCloseAll$1 = function (iters, kind, value) {
|
|
2419
|
+
for (var i = iters.length - 1; i >= 0; i--) {
|
|
2420
|
+
if (iters[i] === undefined) continue;
|
|
2421
|
+
try {
|
|
2422
|
+
value = iteratorClose$6(iters[i].iterator, kind, value);
|
|
2423
|
+
} catch (error) {
|
|
2424
|
+
kind = 'throw';
|
|
2425
|
+
value = error;
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
if (kind === 'throw') throw value;
|
|
2429
|
+
return value;
|
|
2430
|
+
};
|
|
2431
|
+
|
|
2432
|
+
var call$3 = functionCall;
|
|
2433
|
+
var create = objectCreate;
|
|
2434
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
2435
|
+
var defineBuiltIns = defineBuiltIns$1;
|
|
2436
|
+
var wellKnownSymbol = wellKnownSymbol$c;
|
|
2437
|
+
var InternalStateModule = internalState;
|
|
2438
|
+
var getMethod = getMethod$4;
|
|
2439
|
+
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
2440
|
+
var createIterResultObject = createIterResultObject$2;
|
|
2441
|
+
var iteratorClose$5 = iteratorClose$9;
|
|
2442
|
+
var iteratorCloseAll = iteratorCloseAll$1;
|
|
2443
|
+
|
|
2444
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
2445
|
+
var ITERATOR_HELPER = 'IteratorHelper';
|
|
2446
|
+
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
2447
|
+
var NORMAL = 'normal';
|
|
2448
|
+
var THROW = 'throw';
|
|
2449
|
+
var setInternalState = InternalStateModule.set;
|
|
2450
|
+
|
|
2451
|
+
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
2452
|
+
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
2453
|
+
|
|
2454
|
+
return defineBuiltIns(create(IteratorPrototype), {
|
|
2455
|
+
next: function next() {
|
|
2456
|
+
var state = getInternalState(this);
|
|
2457
|
+
// for simplification:
|
|
2458
|
+
// for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
|
|
2459
|
+
// for `%IteratorHelperPrototype%.next` - just a value
|
|
2460
|
+
if (IS_ITERATOR) return state.nextHandler();
|
|
2461
|
+
if (state.done) return createIterResultObject(undefined, true);
|
|
2462
|
+
try {
|
|
2463
|
+
var result = state.nextHandler();
|
|
2464
|
+
return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
|
|
2465
|
+
} catch (error) {
|
|
2466
|
+
state.done = true;
|
|
2467
|
+
throw error;
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
'return': function () {
|
|
2471
|
+
var state = getInternalState(this);
|
|
2472
|
+
var iterator = state.iterator;
|
|
2473
|
+
state.done = true;
|
|
2474
|
+
if (IS_ITERATOR) {
|
|
2475
|
+
var returnMethod = getMethod(iterator, 'return');
|
|
2476
|
+
return returnMethod ? call$3(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
2477
|
+
}
|
|
2478
|
+
if (state.inner) try {
|
|
2479
|
+
iteratorClose$5(state.inner.iterator, NORMAL);
|
|
2480
|
+
} catch (error) {
|
|
2481
|
+
return iteratorClose$5(iterator, THROW, error);
|
|
2482
|
+
}
|
|
2483
|
+
if (state.openIters) try {
|
|
2484
|
+
iteratorCloseAll(state.openIters, NORMAL);
|
|
2485
|
+
} catch (error) {
|
|
2486
|
+
return iteratorClose$5(iterator, THROW, error);
|
|
2487
|
+
}
|
|
2488
|
+
if (iterator) iteratorClose$5(iterator, NORMAL);
|
|
2489
|
+
return createIterResultObject(undefined, true);
|
|
2490
|
+
}
|
|
2491
|
+
});
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2494
|
+
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
2495
|
+
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
2496
|
+
|
|
2497
|
+
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
2498
|
+
|
|
2499
|
+
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
|
|
2500
|
+
var IteratorProxy = function Iterator(record, state) {
|
|
2501
|
+
if (state) {
|
|
2502
|
+
state.iterator = record.iterator;
|
|
2503
|
+
state.next = record.next;
|
|
2504
|
+
} else state = record;
|
|
2189
2505
|
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
2190
2506
|
state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
|
|
2191
2507
|
state.nextHandler = nextHandler;
|
|
2192
2508
|
state.counter = 0;
|
|
2193
2509
|
state.done = false;
|
|
2194
|
-
setInternalState
|
|
2510
|
+
setInternalState(this, state);
|
|
2195
2511
|
};
|
|
2196
2512
|
|
|
2197
2513
|
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
@@ -2223,8 +2539,8 @@ var iteratorHelperThrowsOnInvalidIterator$1 = function (methodName, argument) {
|
|
|
2223
2539
|
}
|
|
2224
2540
|
};
|
|
2225
2541
|
|
|
2226
|
-
var $$
|
|
2227
|
-
var call$
|
|
2542
|
+
var $$9 = _export;
|
|
2543
|
+
var call$2 = functionCall;
|
|
2228
2544
|
var aCallable$2 = aCallable$8;
|
|
2229
2545
|
var anObject$2 = anObject$d;
|
|
2230
2546
|
var getIteratorDirect$2 = getIteratorDirect$4;
|
|
@@ -2242,14 +2558,14 @@ var FORCED$3 = MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEa
|
|
|
2242
2558
|
|
|
2243
2559
|
var IteratorProxy = createIteratorProxy(function () {
|
|
2244
2560
|
var iterator = this.iterator;
|
|
2245
|
-
var result = anObject$2(call$
|
|
2561
|
+
var result = anObject$2(call$2(this.next, iterator));
|
|
2246
2562
|
var done = this.done = !!result.done;
|
|
2247
2563
|
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
|
2248
2564
|
});
|
|
2249
2565
|
|
|
2250
2566
|
// `Iterator.prototype.map` method
|
|
2251
2567
|
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
|
2252
|
-
$$
|
|
2568
|
+
$$9({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
|
|
2253
2569
|
map: function map(mapper) {
|
|
2254
2570
|
anObject$2(this);
|
|
2255
2571
|
try {
|
|
@@ -2258,7 +2574,7 @@ $$a({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
|
|
|
2258
2574
|
iteratorClose$3(this, 'throw', error);
|
|
2259
2575
|
}
|
|
2260
2576
|
|
|
2261
|
-
if (mapWithoutClosingOnEarlyError) return call$
|
|
2577
|
+
if (mapWithoutClosingOnEarlyError) return call$2(mapWithoutClosingOnEarlyError, this, mapper);
|
|
2262
2578
|
|
|
2263
2579
|
return new IteratorProxy(getIteratorDirect$2(this), {
|
|
2264
2580
|
mapper: mapper
|
|
@@ -2266,7 +2582,7 @@ $$a({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
|
|
|
2266
2582
|
}
|
|
2267
2583
|
});
|
|
2268
2584
|
|
|
2269
|
-
var $$
|
|
2585
|
+
var $$8 = _export;
|
|
2270
2586
|
var iterate$3 = iterate$5;
|
|
2271
2587
|
var aCallable$1 = aCallable$8;
|
|
2272
2588
|
var anObject$1 = anObject$d;
|
|
@@ -2288,7 +2604,7 @@ var reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHe
|
|
|
2288
2604
|
|
|
2289
2605
|
// `Iterator.prototype.reduce` method
|
|
2290
2606
|
// https://tc39.es/ecma262/#sec-iterator.prototype.reduce
|
|
2291
|
-
$$
|
|
2607
|
+
$$8({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
|
|
2292
2608
|
reduce: function reduce(reducer /* , initialValue */) {
|
|
2293
2609
|
anObject$1(this);
|
|
2294
2610
|
try {
|
|
@@ -2318,13 +2634,13 @@ $$9({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDE
|
|
|
2318
2634
|
}
|
|
2319
2635
|
});
|
|
2320
2636
|
|
|
2321
|
-
var $$
|
|
2637
|
+
var $$7 = _export;
|
|
2322
2638
|
var iterate$2 = iterate$5;
|
|
2323
2639
|
var createProperty = createProperty$2;
|
|
2324
2640
|
|
|
2325
2641
|
// `Object.fromEntries` method
|
|
2326
2642
|
// https://tc39.es/ecma262/#sec-object.fromentries
|
|
2327
|
-
$$
|
|
2643
|
+
$$7({ target: 'Object', stat: true }, {
|
|
2328
2644
|
fromEntries: function fromEntries(iterable) {
|
|
2329
2645
|
var obj = {};
|
|
2330
2646
|
iterate$2(iterable, function (k, v) {
|
|
@@ -2356,13 +2672,13 @@ var aSet$7 = function (it) {
|
|
|
2356
2672
|
return it;
|
|
2357
2673
|
};
|
|
2358
2674
|
|
|
2359
|
-
var call$
|
|
2675
|
+
var call$1 = functionCall;
|
|
2360
2676
|
|
|
2361
2677
|
var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
2362
2678
|
var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
|
|
2363
2679
|
var next = record.next;
|
|
2364
2680
|
var step, result;
|
|
2365
|
-
while (!(step = call$
|
|
2681
|
+
while (!(step = call$1(next, iterator)).done) {
|
|
2366
2682
|
result = fn(step.value);
|
|
2367
2683
|
if (result !== undefined) return result;
|
|
2368
2684
|
}
|
|
@@ -2405,7 +2721,7 @@ var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function
|
|
|
2405
2721
|
|
|
2406
2722
|
var aCallable = aCallable$8;
|
|
2407
2723
|
var anObject = anObject$d;
|
|
2408
|
-
var call
|
|
2724
|
+
var call = functionCall;
|
|
2409
2725
|
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
2410
2726
|
var getIteratorDirect = getIteratorDirect$4;
|
|
2411
2727
|
|
|
@@ -2423,10 +2739,10 @@ var SetRecord = function (set, intSize) {
|
|
|
2423
2739
|
|
|
2424
2740
|
SetRecord.prototype = {
|
|
2425
2741
|
getIterator: function () {
|
|
2426
|
-
return getIteratorDirect(anObject(call
|
|
2742
|
+
return getIteratorDirect(anObject(call(this.keys, this.set)));
|
|
2427
2743
|
},
|
|
2428
2744
|
includes: function (it) {
|
|
2429
|
-
return call
|
|
2745
|
+
return call(this.has, this.set, it);
|
|
2430
2746
|
}
|
|
2431
2747
|
};
|
|
2432
2748
|
|
|
@@ -2502,606 +2818,314 @@ var createSetLikeWithInfinitySize = function (size) {
|
|
|
2502
2818
|
var setMethodAcceptSetLike$7 = function (name, callback) {
|
|
2503
2819
|
var Set = getBuiltIn('Set');
|
|
2504
2820
|
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
|
-
});
|
|
2821
|
+
new Set()[name](createSetLike(0));
|
|
2822
|
+
try {
|
|
2823
|
+
// late spec change, early WebKit ~ Safari 17 implementation does not pass it
|
|
2824
|
+
// https://github.com/tc39/proposal-set-methods/pull/88
|
|
2825
|
+
// also covered engines with
|
|
2826
|
+
// https://bugs.webkit.org/show_bug.cgi?id=272679
|
|
2827
|
+
new Set()[name](createSetLike(-1));
|
|
2828
|
+
return false;
|
|
2829
|
+
} catch (error2) {
|
|
2830
|
+
if (!callback) return true;
|
|
2831
|
+
// early V8 implementation bug
|
|
2832
|
+
// https://issues.chromium.org/issues/351332634
|
|
2833
|
+
try {
|
|
2834
|
+
new Set()[name](createSetLikeWithInfinitySize(-Infinity));
|
|
2835
|
+
return false;
|
|
2836
|
+
} catch (error) {
|
|
2837
|
+
var set = new Set();
|
|
2838
|
+
set.add(1);
|
|
2839
|
+
set.add(2);
|
|
2840
|
+
return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
|
|
2760
2841
|
}
|
|
2761
|
-
}
|
|
2762
|
-
var result = baseSet[METHOD_NAME](setLike);
|
|
2763
|
-
|
|
2764
|
-
return result.size === 1 && result.values().next().value === 4;
|
|
2842
|
+
}
|
|
2765
2843
|
} catch (error) {
|
|
2766
2844
|
return false;
|
|
2767
2845
|
}
|
|
2768
2846
|
};
|
|
2769
2847
|
|
|
2770
|
-
var $$
|
|
2771
|
-
var
|
|
2772
|
-
var
|
|
2773
|
-
var setMethodAcceptSetLike$
|
|
2774
|
-
|
|
2775
|
-
var FORCED$1 = !setMethodAcceptSetLike$1('symmetricDifference') || !setMethodGetKeysBeforeCloning$1('symmetricDifference');
|
|
2848
|
+
var $$6 = _export;
|
|
2849
|
+
var difference = setDifference;
|
|
2850
|
+
var fails$1 = fails$f;
|
|
2851
|
+
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
2776
2852
|
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
$$2({ target: 'Set', proto: true, real: true, forced: FORCED$1 }, {
|
|
2780
|
-
symmetricDifference: symmetricDifference
|
|
2853
|
+
var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike$6('difference', function (result) {
|
|
2854
|
+
return result.size === 0;
|
|
2781
2855
|
});
|
|
2782
2856
|
|
|
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
|
|
2857
|
+
var FORCED$2 = SET_LIKE_INCORRECT_BEHAVIOR || fails$1(function () {
|
|
2858
|
+
// https://bugs.webkit.org/show_bug.cgi?id=288595
|
|
2859
|
+
var setLike = {
|
|
2860
|
+
size: 1,
|
|
2861
|
+
has: function () { return true; },
|
|
2862
|
+
keys: function () {
|
|
2863
|
+
var index = 0;
|
|
2864
|
+
return {
|
|
2865
|
+
next: function () {
|
|
2866
|
+
var done = index++ > 1;
|
|
2867
|
+
if (baseSet.has(1)) baseSet.clear();
|
|
2868
|
+
return { done: done, value: 2 };
|
|
2869
|
+
}
|
|
2870
|
+
};
|
|
2871
|
+
}
|
|
2872
|
+
};
|
|
2873
|
+
// eslint-disable-next-line es/no-set -- testing
|
|
2874
|
+
var baseSet = new Set([1, 2, 3, 4]);
|
|
2875
|
+
// eslint-disable-next-line es/no-set-prototype-difference -- testing
|
|
2876
|
+
return baseSet.difference(setLike).size !== 3;
|
|
2812
2877
|
});
|
|
2813
2878
|
|
|
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
|
-
};
|
|
2879
|
+
// `Set.prototype.difference` method
|
|
2880
|
+
// https://tc39.es/ecma262/#sec-set.prototype.difference
|
|
2881
|
+
$$6({ target: 'Set', proto: true, real: true, forced: FORCED$2 }, {
|
|
2882
|
+
difference: difference
|
|
2883
|
+
});
|
|
2849
2884
|
|
|
2850
|
-
|
|
2851
|
-
var
|
|
2885
|
+
var aSet$5 = aSet$7;
|
|
2886
|
+
var SetHelpers$1 = setHelpers;
|
|
2887
|
+
var size$3 = setSize;
|
|
2888
|
+
var getSetRecord$5 = getSetRecord$7;
|
|
2889
|
+
var iterateSet$1 = setIterate;
|
|
2890
|
+
var iterateSimple$4 = iterateSimple$7;
|
|
2852
2891
|
|
|
2853
|
-
var
|
|
2854
|
-
var
|
|
2892
|
+
var Set$1 = SetHelpers$1.Set;
|
|
2893
|
+
var add$2 = SetHelpers$1.add;
|
|
2894
|
+
var has$3 = SetHelpers$1.has;
|
|
2855
2895
|
|
|
2856
|
-
|
|
2896
|
+
// `Set.prototype.intersection` method
|
|
2897
|
+
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
2898
|
+
var setIntersection = function intersection(other) {
|
|
2899
|
+
var O = aSet$5(this);
|
|
2900
|
+
var otherRec = getSetRecord$5(other);
|
|
2901
|
+
var result = new Set$1();
|
|
2857
2902
|
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2903
|
+
if (size$3(O) > otherRec.size) {
|
|
2904
|
+
iterateSimple$4(otherRec.getIterator(), function (e) {
|
|
2905
|
+
if (has$3(O, e)) add$2(result, e);
|
|
2906
|
+
});
|
|
2907
|
+
} else {
|
|
2908
|
+
iterateSet$1(O, function (e) {
|
|
2909
|
+
if (otherRec.includes(e)) add$2(result, e);
|
|
2910
|
+
});
|
|
2911
|
+
}
|
|
2861
2912
|
|
|
2862
|
-
|
|
2863
|
-
|
|
2913
|
+
return result;
|
|
2914
|
+
};
|
|
2864
2915
|
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
configurable: true,
|
|
2870
|
-
value: create$1(null)
|
|
2871
|
-
});
|
|
2872
|
-
}
|
|
2916
|
+
var $$5 = _export;
|
|
2917
|
+
var fails = fails$f;
|
|
2918
|
+
var intersection = setIntersection;
|
|
2919
|
+
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
2873
2920
|
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2921
|
+
var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
|
|
2922
|
+
return result.size === 2 && result.has(1) && result.has(2);
|
|
2923
|
+
}) || fails(function () {
|
|
2924
|
+
// eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
|
|
2925
|
+
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
2926
|
+
});
|
|
2878
2927
|
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2928
|
+
// `Set.prototype.intersection` method
|
|
2929
|
+
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
2930
|
+
$$5({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
|
|
2931
|
+
intersection: intersection
|
|
2932
|
+
});
|
|
2882
2933
|
|
|
2883
|
-
var
|
|
2934
|
+
var aSet$4 = aSet$7;
|
|
2935
|
+
var has$2 = setHelpers.has;
|
|
2936
|
+
var size$2 = setSize;
|
|
2937
|
+
var getSetRecord$4 = getSetRecord$7;
|
|
2938
|
+
var iterateSet = setIterate;
|
|
2939
|
+
var iterateSimple$3 = iterateSimple$7;
|
|
2940
|
+
var iteratorClose$1 = iteratorClose$9;
|
|
2884
2941
|
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2942
|
+
// `Set.prototype.isDisjointFrom` method
|
|
2943
|
+
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
2944
|
+
var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
2945
|
+
var O = aSet$4(this);
|
|
2946
|
+
var otherRec = getSetRecord$4(other);
|
|
2947
|
+
if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
|
|
2948
|
+
if (otherRec.includes(e)) return false;
|
|
2949
|
+
}, true) !== false;
|
|
2950
|
+
var iterator = otherRec.getIterator();
|
|
2951
|
+
return iterateSimple$3(iterator, function (e) {
|
|
2952
|
+
if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
|
|
2953
|
+
}) !== false;
|
|
2890
2954
|
};
|
|
2891
2955
|
|
|
2892
|
-
var
|
|
2893
|
-
var
|
|
2894
|
-
var
|
|
2895
|
-
var setToStringTag$2 = setToStringTag$3;
|
|
2896
|
-
var Iterators$2 = iterators;
|
|
2956
|
+
var $$4 = _export;
|
|
2957
|
+
var isDisjointFrom = setIsDisjointFrom;
|
|
2958
|
+
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
2897
2959
|
|
|
2898
|
-
var
|
|
2960
|
+
var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result) {
|
|
2961
|
+
return !result;
|
|
2962
|
+
});
|
|
2899
2963
|
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
return IteratorConstructor;
|
|
2906
|
-
};
|
|
2964
|
+
// `Set.prototype.isDisjointFrom` method
|
|
2965
|
+
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
2966
|
+
$$4({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
|
|
2967
|
+
isDisjointFrom: isDisjointFrom
|
|
2968
|
+
});
|
|
2907
2969
|
|
|
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;
|
|
2970
|
+
var aSet$3 = aSet$7;
|
|
2971
|
+
var size$1 = setSize;
|
|
2972
|
+
var iterate = setIterate;
|
|
2973
|
+
var getSetRecord$3 = getSetRecord$7;
|
|
2921
2974
|
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
var
|
|
2925
|
-
var
|
|
2926
|
-
var
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2975
|
+
// `Set.prototype.isSubsetOf` method
|
|
2976
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
2977
|
+
var setIsSubsetOf = function isSubsetOf(other) {
|
|
2978
|
+
var O = aSet$3(this);
|
|
2979
|
+
var otherRec = getSetRecord$3(other);
|
|
2980
|
+
if (size$1(O) > otherRec.size) return false;
|
|
2981
|
+
return iterate(O, function (e) {
|
|
2982
|
+
if (!otherRec.includes(e)) return false;
|
|
2983
|
+
}, true) !== false;
|
|
2984
|
+
};
|
|
2930
2985
|
|
|
2931
|
-
var
|
|
2986
|
+
var $$3 = _export;
|
|
2987
|
+
var isSubsetOf = setIsSubsetOf;
|
|
2988
|
+
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
2932
2989
|
|
|
2933
|
-
var
|
|
2934
|
-
|
|
2990
|
+
var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
|
|
2991
|
+
return result;
|
|
2992
|
+
});
|
|
2935
2993
|
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2994
|
+
// `Set.prototype.isSubsetOf` method
|
|
2995
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
2996
|
+
$$3({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
|
|
2997
|
+
isSubsetOf: isSubsetOf
|
|
2998
|
+
});
|
|
2939
2999
|
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
3000
|
+
var aSet$2 = aSet$7;
|
|
3001
|
+
var has$1 = setHelpers.has;
|
|
3002
|
+
var size = setSize;
|
|
3003
|
+
var getSetRecord$2 = getSetRecord$7;
|
|
3004
|
+
var iterateSimple$2 = iterateSimple$7;
|
|
3005
|
+
var iteratorClose = iteratorClose$9;
|
|
2945
3006
|
|
|
2946
|
-
|
|
2947
|
-
|
|
3007
|
+
// `Set.prototype.isSupersetOf` method
|
|
3008
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
3009
|
+
var setIsSupersetOf = function isSupersetOf(other) {
|
|
3010
|
+
var O = aSet$2(this);
|
|
3011
|
+
var otherRec = getSetRecord$2(other);
|
|
3012
|
+
if (size(O) < otherRec.size) return false;
|
|
3013
|
+
var iterator = otherRec.getIterator();
|
|
3014
|
+
return iterateSimple$2(iterator, function (e) {
|
|
3015
|
+
if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
3016
|
+
}) !== false;
|
|
3017
|
+
};
|
|
2948
3018
|
|
|
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;
|
|
3019
|
+
var $$2 = _export;
|
|
3020
|
+
var isSupersetOf = setIsSupersetOf;
|
|
3021
|
+
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
2958
3022
|
|
|
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
|
-
}
|
|
3023
|
+
var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
|
|
3024
|
+
return !result;
|
|
3025
|
+
});
|
|
2974
3026
|
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
INCORRECT_VALUES_NAME = true;
|
|
2981
|
-
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
2982
|
-
}
|
|
2983
|
-
}
|
|
3027
|
+
// `Set.prototype.isSupersetOf` method
|
|
3028
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
3029
|
+
$$2({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
3030
|
+
isSupersetOf: isSupersetOf
|
|
3031
|
+
});
|
|
2984
3032
|
|
|
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
|
-
}
|
|
3033
|
+
var aSet$1 = aSet$7;
|
|
3034
|
+
var SetHelpers = setHelpers;
|
|
3035
|
+
var clone$1 = setClone;
|
|
3036
|
+
var getSetRecord$1 = getSetRecord$7;
|
|
3037
|
+
var iterateSimple$1 = iterateSimple$7;
|
|
2998
3038
|
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
}
|
|
3003
|
-
Iterators$1[NAME] = defaultIterator;
|
|
3039
|
+
var add$1 = SetHelpers.add;
|
|
3040
|
+
var has = SetHelpers.has;
|
|
3041
|
+
var remove = SetHelpers.remove;
|
|
3004
3042
|
|
|
3005
|
-
|
|
3043
|
+
// `Set.prototype.symmetricDifference` method
|
|
3044
|
+
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
3045
|
+
var setSymmetricDifference = function symmetricDifference(other) {
|
|
3046
|
+
var O = aSet$1(this);
|
|
3047
|
+
var keysIter = getSetRecord$1(other).getIterator();
|
|
3048
|
+
var result = clone$1(O);
|
|
3049
|
+
iterateSimple$1(keysIter, function (e) {
|
|
3050
|
+
if (has(O, e)) remove(result, e);
|
|
3051
|
+
else add$1(result, e);
|
|
3052
|
+
});
|
|
3053
|
+
return result;
|
|
3006
3054
|
};
|
|
3007
3055
|
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
var
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
var
|
|
3014
|
-
var
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3056
|
+
// Should get iterator record of a set-like object before cloning this
|
|
3057
|
+
// https://bugs.webkit.org/show_bug.cgi?id=289430
|
|
3058
|
+
var setMethodGetKeysBeforeCloningDetection = function (METHOD_NAME) {
|
|
3059
|
+
try {
|
|
3060
|
+
// eslint-disable-next-line es/no-set -- needed for test
|
|
3061
|
+
var baseSet = new Set();
|
|
3062
|
+
var setLike = {
|
|
3063
|
+
size: 0,
|
|
3064
|
+
has: function () { return true; },
|
|
3065
|
+
keys: function () {
|
|
3066
|
+
// eslint-disable-next-line es/no-object-defineproperty -- needed for test
|
|
3067
|
+
return Object.defineProperty({}, 'next', {
|
|
3068
|
+
get: function () {
|
|
3069
|
+
baseSet.clear();
|
|
3070
|
+
baseSet.add(4);
|
|
3071
|
+
return function () {
|
|
3072
|
+
return { done: true };
|
|
3073
|
+
};
|
|
3074
|
+
}
|
|
3075
|
+
});
|
|
3076
|
+
}
|
|
3077
|
+
};
|
|
3078
|
+
var result = baseSet[METHOD_NAME](setLike);
|
|
3020
3079
|
|
|
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);
|
|
3080
|
+
return result.size === 1 && result.values().next().value === 4;
|
|
3081
|
+
} catch (error) {
|
|
3082
|
+
return false;
|
|
3047
3083
|
}
|
|
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;
|
|
3084
|
+
};
|
|
3058
3085
|
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3086
|
+
var $$1 = _export;
|
|
3087
|
+
var symmetricDifference = setSymmetricDifference;
|
|
3088
|
+
var setMethodGetKeysBeforeCloning$1 = setMethodGetKeysBeforeCloningDetection;
|
|
3089
|
+
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
3063
3090
|
|
|
3064
|
-
|
|
3065
|
-
if (DESCRIPTORS && values.name !== 'values') try {
|
|
3066
|
-
defineProperty(values, 'name', { value: 'values' });
|
|
3067
|
-
} catch (error) { /* empty */ }
|
|
3091
|
+
var FORCED$1 = !setMethodAcceptSetLike$1('symmetricDifference') || !setMethodGetKeysBeforeCloning$1('symmetricDifference');
|
|
3068
3092
|
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
var setToStringTag = setToStringTag$3;
|
|
3075
|
-
var wellKnownSymbol = wellKnownSymbol$c;
|
|
3093
|
+
// `Set.prototype.symmetricDifference` method
|
|
3094
|
+
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
3095
|
+
$$1({ target: 'Set', proto: true, real: true, forced: FORCED$1 }, {
|
|
3096
|
+
symmetricDifference: symmetricDifference
|
|
3097
|
+
});
|
|
3076
3098
|
|
|
3077
|
-
var
|
|
3078
|
-
var
|
|
3099
|
+
var aSet = aSet$7;
|
|
3100
|
+
var add = setHelpers.add;
|
|
3101
|
+
var clone = setClone;
|
|
3102
|
+
var getSetRecord = getSetRecord$7;
|
|
3103
|
+
var iterateSimple = iterateSimple$7;
|
|
3079
3104
|
|
|
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
|
-
}
|
|
3105
|
+
// `Set.prototype.union` method
|
|
3106
|
+
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
3107
|
+
var setUnion = function union(other) {
|
|
3108
|
+
var O = aSet(this);
|
|
3109
|
+
var keysIter = getSetRecord(other).getIterator();
|
|
3110
|
+
var result = clone(O);
|
|
3111
|
+
iterateSimple(keysIter, function (it) {
|
|
3112
|
+
add(result, it);
|
|
3113
|
+
});
|
|
3114
|
+
return result;
|
|
3098
3115
|
};
|
|
3099
3116
|
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3117
|
+
var $ = _export;
|
|
3118
|
+
var union = setUnion;
|
|
3119
|
+
var setMethodGetKeysBeforeCloning = setMethodGetKeysBeforeCloningDetection;
|
|
3120
|
+
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
3103
3121
|
|
|
3104
|
-
|
|
3122
|
+
var FORCED = !setMethodAcceptSetLike('union') || !setMethodGetKeysBeforeCloning('union');
|
|
3123
|
+
|
|
3124
|
+
// `Set.prototype.union` method
|
|
3125
|
+
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
3126
|
+
$({ target: 'Set', proto: true, real: true, forced: FORCED }, {
|
|
3127
|
+
union: union
|
|
3128
|
+
});
|
|
3105
3129
|
|
|
3106
3130
|
const cache = new Map();
|
|
3107
3131
|
const processVariables = (theme, prefix, cacheKey) => {
|