@dereekb/zoho 12.1.2 → 12.1.4
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 +548 -2010
- package/index.esm.js +548 -2010
- package/nestjs/CHANGELOG.md +8 -0
- package/nestjs/package.json +1 -1
- package/package.json +2 -3
package/index.cjs.js
CHANGED
|
@@ -11,7 +11,7 @@ var check = function (it) {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
14
|
-
var global$
|
|
14
|
+
var global$b =
|
|
15
15
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
16
16
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
17
17
|
check(typeof window == 'object' && window) ||
|
|
@@ -24,7 +24,7 @@ var global$j =
|
|
|
24
24
|
|
|
25
25
|
var objectGetOwnPropertyDescriptor = {};
|
|
26
26
|
|
|
27
|
-
var fails$
|
|
27
|
+
var fails$c = function (exec) {
|
|
28
28
|
try {
|
|
29
29
|
return !!exec();
|
|
30
30
|
} catch (error) {
|
|
@@ -32,48 +32,48 @@ var fails$h = function (exec) {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
var fails$
|
|
35
|
+
var fails$b = fails$c;
|
|
36
36
|
|
|
37
37
|
// Detect IE8's incomplete defineProperty implementation
|
|
38
|
-
var descriptors = !fails$
|
|
38
|
+
var descriptors = !fails$b(function () {
|
|
39
39
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
40
40
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
var fails$
|
|
43
|
+
var fails$a = fails$c;
|
|
44
44
|
|
|
45
|
-
var functionBindNative = !fails$
|
|
45
|
+
var functionBindNative = !fails$a(function () {
|
|
46
46
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
47
47
|
var test = (function () { /* empty */ }).bind();
|
|
48
48
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
49
49
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
var NATIVE_BIND$
|
|
52
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
53
53
|
|
|
54
|
-
var call$
|
|
54
|
+
var call$c = Function.prototype.call;
|
|
55
55
|
|
|
56
|
-
var functionCall = NATIVE_BIND$
|
|
57
|
-
return call$
|
|
56
|
+
var functionCall = NATIVE_BIND$2 ? call$c.bind(call$c) : function () {
|
|
57
|
+
return call$c.apply(call$c, arguments);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
var objectPropertyIsEnumerable = {};
|
|
61
61
|
|
|
62
62
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
63
63
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
64
|
-
var getOwnPropertyDescriptor$
|
|
64
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
65
65
|
|
|
66
66
|
// Nashorn ~ JDK8 bug
|
|
67
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
67
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
68
68
|
|
|
69
69
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
70
70
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
71
71
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
72
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
72
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
73
73
|
return !!descriptor && descriptor.enumerable;
|
|
74
74
|
} : $propertyIsEnumerable;
|
|
75
75
|
|
|
76
|
-
var createPropertyDescriptor$
|
|
76
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
77
77
|
return {
|
|
78
78
|
enumerable: !(bitmap & 1),
|
|
79
79
|
configurable: !(bitmap & 2),
|
|
@@ -82,66 +82,66 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
var NATIVE_BIND$
|
|
85
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
86
86
|
|
|
87
|
-
var FunctionPrototype$
|
|
88
|
-
var call$
|
|
89
|
-
var uncurryThisWithBind = NATIVE_BIND$
|
|
87
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
88
|
+
var call$b = FunctionPrototype$1.call;
|
|
89
|
+
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$b, call$b);
|
|
90
90
|
|
|
91
|
-
var functionUncurryThis = NATIVE_BIND$
|
|
91
|
+
var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
|
|
92
92
|
return function () {
|
|
93
|
-
return call$
|
|
93
|
+
return call$b.apply(fn, arguments);
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
var uncurryThis$
|
|
97
|
+
var uncurryThis$a = functionUncurryThis;
|
|
98
98
|
|
|
99
|
-
var toString$
|
|
100
|
-
var stringSlice$1 = uncurryThis$
|
|
99
|
+
var toString$1 = uncurryThis$a({}.toString);
|
|
100
|
+
var stringSlice$1 = uncurryThis$a(''.slice);
|
|
101
101
|
|
|
102
102
|
var classofRaw$2 = function (it) {
|
|
103
|
-
return stringSlice$1(toString$
|
|
103
|
+
return stringSlice$1(toString$1(it), 8, -1);
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
var uncurryThis$
|
|
107
|
-
var fails$
|
|
108
|
-
var classof$
|
|
106
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
107
|
+
var fails$9 = fails$c;
|
|
108
|
+
var classof$3 = classofRaw$2;
|
|
109
109
|
|
|
110
110
|
var $Object$4 = Object;
|
|
111
|
-
var split = uncurryThis$
|
|
111
|
+
var split = uncurryThis$9(''.split);
|
|
112
112
|
|
|
113
113
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
114
|
-
var indexedObject = fails$
|
|
114
|
+
var indexedObject = fails$9(function () {
|
|
115
115
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
116
116
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
117
117
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
118
118
|
}) ? function (it) {
|
|
119
|
-
return classof$
|
|
119
|
+
return classof$3(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
120
120
|
} : $Object$4;
|
|
121
121
|
|
|
122
122
|
// we can't use just `it == null` since of `document.all` special case
|
|
123
123
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
124
|
-
var isNullOrUndefined$
|
|
124
|
+
var isNullOrUndefined$3 = function (it) {
|
|
125
125
|
return it === null || it === undefined;
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
var isNullOrUndefined$
|
|
128
|
+
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
129
129
|
|
|
130
|
-
var $TypeError$
|
|
130
|
+
var $TypeError$b = TypeError;
|
|
131
131
|
|
|
132
132
|
// `RequireObjectCoercible` abstract operation
|
|
133
133
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
134
|
-
var requireObjectCoercible$
|
|
135
|
-
if (isNullOrUndefined$
|
|
134
|
+
var requireObjectCoercible$2 = function (it) {
|
|
135
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
|
|
136
136
|
return it;
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
// toObject with fallback for non-array-like ES3 strings
|
|
140
|
-
var IndexedObject
|
|
141
|
-
var requireObjectCoercible$
|
|
140
|
+
var IndexedObject = indexedObject;
|
|
141
|
+
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
142
142
|
|
|
143
143
|
var toIndexedObject$4 = function (it) {
|
|
144
|
-
return IndexedObject
|
|
144
|
+
return IndexedObject(requireObjectCoercible$1(it));
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -150,41 +150,41 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
150
150
|
// `IsCallable` abstract operation
|
|
151
151
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
152
152
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
153
|
-
var isCallable$
|
|
153
|
+
var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
154
154
|
return typeof argument == 'function' || argument === documentAll;
|
|
155
155
|
} : function (argument) {
|
|
156
156
|
return typeof argument == 'function';
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
var isCallable$
|
|
159
|
+
var isCallable$d = isCallable$e;
|
|
160
160
|
|
|
161
|
-
var isObject$
|
|
162
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
161
|
+
var isObject$6 = function (it) {
|
|
162
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
var global$
|
|
166
|
-
var isCallable$
|
|
165
|
+
var global$a = global$b;
|
|
166
|
+
var isCallable$c = isCallable$e;
|
|
167
167
|
|
|
168
168
|
var aFunction = function (argument) {
|
|
169
|
-
return isCallable$
|
|
169
|
+
return isCallable$c(argument) ? argument : undefined;
|
|
170
170
|
};
|
|
171
171
|
|
|
172
|
-
var getBuiltIn$
|
|
173
|
-
return arguments.length < 2 ? aFunction(global$
|
|
172
|
+
var getBuiltIn$3 = function (namespace, method) {
|
|
173
|
+
return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
var uncurryThis$
|
|
176
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
177
177
|
|
|
178
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
178
|
+
var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
|
|
179
179
|
|
|
180
180
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
181
181
|
|
|
182
|
-
var global$
|
|
183
|
-
var userAgent
|
|
182
|
+
var global$9 = global$b;
|
|
183
|
+
var userAgent = engineUserAgent;
|
|
184
184
|
|
|
185
|
-
var process
|
|
186
|
-
var Deno
|
|
187
|
-
var versions = process
|
|
185
|
+
var process = global$9.process;
|
|
186
|
+
var Deno = global$9.Deno;
|
|
187
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
188
188
|
var v8 = versions && versions.v8;
|
|
189
189
|
var match, version;
|
|
190
190
|
|
|
@@ -197,10 +197,10 @@ if (v8) {
|
|
|
197
197
|
|
|
198
198
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
199
199
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
200
|
-
if (!version && userAgent
|
|
201
|
-
match = userAgent
|
|
200
|
+
if (!version && userAgent) {
|
|
201
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
202
202
|
if (!match || match[1] >= 74) {
|
|
203
|
-
match = userAgent
|
|
203
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
204
204
|
if (match) version = +match[1];
|
|
205
205
|
}
|
|
206
206
|
}
|
|
@@ -208,22 +208,22 @@ if (!version && userAgent$3) {
|
|
|
208
208
|
var engineV8Version = version;
|
|
209
209
|
|
|
210
210
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
211
|
-
var V8_VERSION
|
|
212
|
-
var fails$
|
|
213
|
-
var global$
|
|
211
|
+
var V8_VERSION = engineV8Version;
|
|
212
|
+
var fails$8 = fails$c;
|
|
213
|
+
var global$8 = global$b;
|
|
214
214
|
|
|
215
|
-
var $String$
|
|
215
|
+
var $String$3 = global$8.String;
|
|
216
216
|
|
|
217
217
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
218
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
218
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
219
219
|
var symbol = Symbol('symbol detection');
|
|
220
220
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
221
221
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
222
222
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
223
223
|
// of course, fail.
|
|
224
|
-
return !$String$
|
|
224
|
+
return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
225
225
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
226
|
-
!Symbol.sham && V8_VERSION
|
|
226
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
227
227
|
});
|
|
228
228
|
|
|
229
229
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
@@ -233,9 +233,9 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
233
233
|
&& !Symbol.sham
|
|
234
234
|
&& typeof Symbol.iterator == 'symbol';
|
|
235
235
|
|
|
236
|
-
var getBuiltIn$
|
|
237
|
-
var isCallable$
|
|
238
|
-
var isPrototypeOf$
|
|
236
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
|
237
|
+
var isCallable$b = isCallable$e;
|
|
238
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
239
239
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
240
240
|
|
|
241
241
|
var $Object$3 = Object;
|
|
@@ -243,75 +243,75 @@ var $Object$3 = Object;
|
|
|
243
243
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
244
244
|
return typeof it == 'symbol';
|
|
245
245
|
} : function (it) {
|
|
246
|
-
var $Symbol = getBuiltIn$
|
|
247
|
-
return isCallable$
|
|
246
|
+
var $Symbol = getBuiltIn$2('Symbol');
|
|
247
|
+
return isCallable$b($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
-
var $String$
|
|
250
|
+
var $String$2 = String;
|
|
251
251
|
|
|
252
|
-
var tryToString$
|
|
252
|
+
var tryToString$3 = function (argument) {
|
|
253
253
|
try {
|
|
254
|
-
return $String$
|
|
254
|
+
return $String$2(argument);
|
|
255
255
|
} catch (error) {
|
|
256
256
|
return 'Object';
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
-
var isCallable$
|
|
261
|
-
var tryToString$
|
|
260
|
+
var isCallable$a = isCallable$e;
|
|
261
|
+
var tryToString$2 = tryToString$3;
|
|
262
262
|
|
|
263
|
-
var $TypeError$
|
|
263
|
+
var $TypeError$a = TypeError;
|
|
264
264
|
|
|
265
265
|
// `Assert: IsCallable(argument) is true`
|
|
266
|
-
var aCallable$
|
|
267
|
-
if (isCallable$
|
|
268
|
-
throw new $TypeError$
|
|
266
|
+
var aCallable$7 = function (argument) {
|
|
267
|
+
if (isCallable$a(argument)) return argument;
|
|
268
|
+
throw new $TypeError$a(tryToString$2(argument) + ' is not a function');
|
|
269
269
|
};
|
|
270
270
|
|
|
271
|
-
var aCallable$
|
|
272
|
-
var isNullOrUndefined$
|
|
271
|
+
var aCallable$6 = aCallable$7;
|
|
272
|
+
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
273
273
|
|
|
274
274
|
// `GetMethod` abstract operation
|
|
275
275
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
276
276
|
var getMethod$4 = function (V, P) {
|
|
277
277
|
var func = V[P];
|
|
278
|
-
return isNullOrUndefined$
|
|
278
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable$6(func);
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
var call$
|
|
282
|
-
var isCallable$
|
|
283
|
-
var isObject$
|
|
281
|
+
var call$a = functionCall;
|
|
282
|
+
var isCallable$9 = isCallable$e;
|
|
283
|
+
var isObject$5 = isObject$6;
|
|
284
284
|
|
|
285
|
-
var $TypeError$
|
|
285
|
+
var $TypeError$9 = TypeError;
|
|
286
286
|
|
|
287
287
|
// `OrdinaryToPrimitive` abstract operation
|
|
288
288
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
289
289
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
290
290
|
var fn, val;
|
|
291
|
-
if (pref === 'string' && isCallable$
|
|
292
|
-
if (isCallable$
|
|
293
|
-
if (pref !== 'string' && isCallable$
|
|
294
|
-
throw new $TypeError$
|
|
291
|
+
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
|
|
292
|
+
if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$a(fn, input))) return val;
|
|
293
|
+
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
|
|
294
|
+
throw new $TypeError$9("Can't convert object to primitive value");
|
|
295
295
|
};
|
|
296
296
|
|
|
297
297
|
var sharedStore = {exports: {}};
|
|
298
298
|
|
|
299
299
|
var isPure = false;
|
|
300
300
|
|
|
301
|
-
var global$
|
|
301
|
+
var global$7 = global$b;
|
|
302
302
|
|
|
303
303
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
304
|
-
var defineProperty$
|
|
304
|
+
var defineProperty$2 = Object.defineProperty;
|
|
305
305
|
|
|
306
306
|
var defineGlobalProperty$3 = function (key, value) {
|
|
307
307
|
try {
|
|
308
|
-
defineProperty$
|
|
308
|
+
defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
|
|
309
309
|
} catch (error) {
|
|
310
|
-
global$
|
|
310
|
+
global$7[key] = value;
|
|
311
311
|
} return value;
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
-
var globalThis$1 = global$
|
|
314
|
+
var globalThis$1 = global$b;
|
|
315
315
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
316
316
|
|
|
317
317
|
var SHARED = '__core-js_shared__';
|
|
@@ -333,78 +333,78 @@ var shared$3 = function (key, value) {
|
|
|
333
333
|
return store$2[key] || (store$2[key] = value || {});
|
|
334
334
|
};
|
|
335
335
|
|
|
336
|
-
var requireObjectCoercible
|
|
336
|
+
var requireObjectCoercible = requireObjectCoercible$2;
|
|
337
337
|
|
|
338
338
|
var $Object$2 = Object;
|
|
339
339
|
|
|
340
340
|
// `ToObject` abstract operation
|
|
341
341
|
// https://tc39.es/ecma262/#sec-toobject
|
|
342
|
-
var toObject$
|
|
343
|
-
return $Object$2(requireObjectCoercible
|
|
342
|
+
var toObject$3 = function (argument) {
|
|
343
|
+
return $Object$2(requireObjectCoercible(argument));
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
-
var uncurryThis$
|
|
347
|
-
var toObject$
|
|
346
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
347
|
+
var toObject$2 = toObject$3;
|
|
348
348
|
|
|
349
|
-
var hasOwnProperty = uncurryThis$
|
|
349
|
+
var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
350
350
|
|
|
351
351
|
// `HasOwnProperty` abstract operation
|
|
352
352
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
353
353
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
354
354
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
355
|
-
return hasOwnProperty(toObject$
|
|
355
|
+
return hasOwnProperty(toObject$2(it), key);
|
|
356
356
|
};
|
|
357
357
|
|
|
358
|
-
var uncurryThis$
|
|
358
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
359
359
|
|
|
360
360
|
var id = 0;
|
|
361
361
|
var postfix = Math.random();
|
|
362
|
-
var toString
|
|
362
|
+
var toString = uncurryThis$6(1.0.toString);
|
|
363
363
|
|
|
364
364
|
var uid$2 = function (key) {
|
|
365
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString
|
|
365
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
366
366
|
};
|
|
367
367
|
|
|
368
|
-
var global$
|
|
368
|
+
var global$6 = global$b;
|
|
369
369
|
var shared$2 = shared$3;
|
|
370
|
-
var hasOwn$
|
|
370
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
371
371
|
var uid$1 = uid$2;
|
|
372
372
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
373
373
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
374
374
|
|
|
375
|
-
var Symbol$1 = global$
|
|
375
|
+
var Symbol$1 = global$6.Symbol;
|
|
376
376
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
377
377
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
378
378
|
|
|
379
|
-
var wellKnownSymbol$
|
|
380
|
-
if (!hasOwn$
|
|
381
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
379
|
+
var wellKnownSymbol$8 = function (name) {
|
|
380
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
381
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
|
|
382
382
|
? Symbol$1[name]
|
|
383
383
|
: createWellKnownSymbol('Symbol.' + name);
|
|
384
384
|
} return WellKnownSymbolsStore[name];
|
|
385
385
|
};
|
|
386
386
|
|
|
387
|
-
var call$
|
|
388
|
-
var isObject$
|
|
387
|
+
var call$9 = functionCall;
|
|
388
|
+
var isObject$4 = isObject$6;
|
|
389
389
|
var isSymbol$1 = isSymbol$2;
|
|
390
390
|
var getMethod$3 = getMethod$4;
|
|
391
391
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
392
|
-
var wellKnownSymbol$
|
|
392
|
+
var wellKnownSymbol$7 = wellKnownSymbol$8;
|
|
393
393
|
|
|
394
|
-
var $TypeError$
|
|
395
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
394
|
+
var $TypeError$8 = TypeError;
|
|
395
|
+
var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
|
|
396
396
|
|
|
397
397
|
// `ToPrimitive` abstract operation
|
|
398
398
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
399
399
|
var toPrimitive$1 = function (input, pref) {
|
|
400
|
-
if (!isObject$
|
|
400
|
+
if (!isObject$4(input) || isSymbol$1(input)) return input;
|
|
401
401
|
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
402
402
|
var result;
|
|
403
403
|
if (exoticToPrim) {
|
|
404
404
|
if (pref === undefined) pref = 'default';
|
|
405
|
-
result = call$
|
|
406
|
-
if (!isObject$
|
|
407
|
-
throw new $TypeError$
|
|
405
|
+
result = call$9(exoticToPrim, input, pref);
|
|
406
|
+
if (!isObject$4(result) || isSymbol$1(result)) return result;
|
|
407
|
+
throw new $TypeError$8("Can't convert object to primitive value");
|
|
408
408
|
}
|
|
409
409
|
if (pref === undefined) pref = 'number';
|
|
410
410
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -420,36 +420,36 @@ var toPropertyKey$2 = function (argument) {
|
|
|
420
420
|
return isSymbol(key) ? key : key + '';
|
|
421
421
|
};
|
|
422
422
|
|
|
423
|
-
var global$
|
|
424
|
-
var isObject$
|
|
423
|
+
var global$5 = global$b;
|
|
424
|
+
var isObject$3 = isObject$6;
|
|
425
425
|
|
|
426
|
-
var document$
|
|
426
|
+
var document$1 = global$5.document;
|
|
427
427
|
// typeof document.createElement is 'object' in old IE
|
|
428
|
-
var EXISTS$1 = isObject$
|
|
428
|
+
var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
|
|
429
429
|
|
|
430
430
|
var documentCreateElement$1 = function (it) {
|
|
431
|
-
return EXISTS$1 ? document$
|
|
431
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
432
432
|
};
|
|
433
433
|
|
|
434
|
-
var DESCRIPTORS$
|
|
435
|
-
var fails$
|
|
436
|
-
var createElement
|
|
434
|
+
var DESCRIPTORS$a = descriptors;
|
|
435
|
+
var fails$7 = fails$c;
|
|
436
|
+
var createElement = documentCreateElement$1;
|
|
437
437
|
|
|
438
438
|
// Thanks to IE8 for its funny defineProperty
|
|
439
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
439
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$7(function () {
|
|
440
440
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
441
|
-
return Object.defineProperty(createElement
|
|
441
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
442
442
|
get: function () { return 7; }
|
|
443
443
|
}).a !== 7;
|
|
444
444
|
});
|
|
445
445
|
|
|
446
|
-
var DESCRIPTORS$
|
|
447
|
-
var call$
|
|
448
|
-
var propertyIsEnumerableModule
|
|
449
|
-
var createPropertyDescriptor$
|
|
446
|
+
var DESCRIPTORS$9 = descriptors;
|
|
447
|
+
var call$8 = functionCall;
|
|
448
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
449
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
450
450
|
var toIndexedObject$3 = toIndexedObject$4;
|
|
451
451
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
452
|
-
var hasOwn$
|
|
452
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
453
453
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
454
454
|
|
|
455
455
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -457,23 +457,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
457
457
|
|
|
458
458
|
// `Object.getOwnPropertyDescriptor` method
|
|
459
459
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
460
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
460
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
461
461
|
O = toIndexedObject$3(O);
|
|
462
462
|
P = toPropertyKey$1(P);
|
|
463
463
|
if (IE8_DOM_DEFINE$1) try {
|
|
464
464
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
465
465
|
} catch (error) { /* empty */ }
|
|
466
|
-
if (hasOwn$
|
|
466
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$8(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
467
467
|
};
|
|
468
468
|
|
|
469
469
|
var objectDefineProperty = {};
|
|
470
470
|
|
|
471
|
-
var DESCRIPTORS$
|
|
472
|
-
var fails$
|
|
471
|
+
var DESCRIPTORS$8 = descriptors;
|
|
472
|
+
var fails$6 = fails$c;
|
|
473
473
|
|
|
474
474
|
// V8 ~ Chrome 36-
|
|
475
475
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
476
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
476
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$6(function () {
|
|
477
477
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
478
478
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
479
479
|
value: 42,
|
|
@@ -481,24 +481,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$b(function () {
|
|
|
481
481
|
}).prototype !== 42;
|
|
482
482
|
});
|
|
483
483
|
|
|
484
|
-
var isObject$
|
|
484
|
+
var isObject$2 = isObject$6;
|
|
485
485
|
|
|
486
|
-
var $String$
|
|
487
|
-
var $TypeError$
|
|
486
|
+
var $String$1 = String;
|
|
487
|
+
var $TypeError$7 = TypeError;
|
|
488
488
|
|
|
489
489
|
// `Assert: Type(argument) is Object`
|
|
490
|
-
var anObject$
|
|
491
|
-
if (isObject$
|
|
492
|
-
throw new $TypeError$
|
|
490
|
+
var anObject$e = function (argument) {
|
|
491
|
+
if (isObject$2(argument)) return argument;
|
|
492
|
+
throw new $TypeError$7($String$1(argument) + ' is not an object');
|
|
493
493
|
};
|
|
494
494
|
|
|
495
|
-
var DESCRIPTORS$
|
|
495
|
+
var DESCRIPTORS$7 = descriptors;
|
|
496
496
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
497
497
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
498
|
-
var anObject$
|
|
498
|
+
var anObject$d = anObject$e;
|
|
499
499
|
var toPropertyKey = toPropertyKey$2;
|
|
500
500
|
|
|
501
|
-
var $TypeError$
|
|
501
|
+
var $TypeError$6 = TypeError;
|
|
502
502
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
503
503
|
var $defineProperty = Object.defineProperty;
|
|
504
504
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -509,10 +509,10 @@ var WRITABLE = 'writable';
|
|
|
509
509
|
|
|
510
510
|
// `Object.defineProperty` method
|
|
511
511
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
512
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
513
|
-
anObject$
|
|
512
|
+
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
513
|
+
anObject$d(O);
|
|
514
514
|
P = toPropertyKey(P);
|
|
515
|
-
anObject$
|
|
515
|
+
anObject$d(Attributes);
|
|
516
516
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
517
517
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
518
518
|
if (current && current[WRITABLE]) {
|
|
@@ -525,23 +525,23 @@ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
525
525
|
}
|
|
526
526
|
} return $defineProperty(O, P, Attributes);
|
|
527
527
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
528
|
-
anObject$
|
|
528
|
+
anObject$d(O);
|
|
529
529
|
P = toPropertyKey(P);
|
|
530
|
-
anObject$
|
|
530
|
+
anObject$d(Attributes);
|
|
531
531
|
if (IE8_DOM_DEFINE) try {
|
|
532
532
|
return $defineProperty(O, P, Attributes);
|
|
533
533
|
} catch (error) { /* empty */ }
|
|
534
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
534
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
|
|
535
535
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
536
536
|
return O;
|
|
537
537
|
};
|
|
538
538
|
|
|
539
|
-
var DESCRIPTORS$
|
|
539
|
+
var DESCRIPTORS$6 = descriptors;
|
|
540
540
|
var definePropertyModule$4 = objectDefineProperty;
|
|
541
|
-
var createPropertyDescriptor$
|
|
541
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
542
542
|
|
|
543
|
-
var createNonEnumerableProperty$
|
|
544
|
-
return definePropertyModule$4.f(object, key, createPropertyDescriptor$
|
|
543
|
+
var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value) {
|
|
544
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
|
545
545
|
} : function (object, key, value) {
|
|
546
546
|
object[key] = value;
|
|
547
547
|
return object;
|
|
@@ -549,17 +549,17 @@ var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value
|
|
|
549
549
|
|
|
550
550
|
var makeBuiltIn$3 = {exports: {}};
|
|
551
551
|
|
|
552
|
-
var DESCRIPTORS$
|
|
553
|
-
var hasOwn$
|
|
552
|
+
var DESCRIPTORS$5 = descriptors;
|
|
553
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
554
554
|
|
|
555
|
-
var FunctionPrototype
|
|
555
|
+
var FunctionPrototype = Function.prototype;
|
|
556
556
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
557
|
-
var getDescriptor = DESCRIPTORS$
|
|
557
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
558
558
|
|
|
559
|
-
var EXISTS = hasOwn$
|
|
559
|
+
var EXISTS = hasOwn$6(FunctionPrototype, 'name');
|
|
560
560
|
// additional protection from minified / mangled / dropped function names
|
|
561
561
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
562
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
562
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
563
563
|
|
|
564
564
|
var functionName = {
|
|
565
565
|
EXISTS: EXISTS,
|
|
@@ -567,27 +567,27 @@ var functionName = {
|
|
|
567
567
|
CONFIGURABLE: CONFIGURABLE
|
|
568
568
|
};
|
|
569
569
|
|
|
570
|
-
var uncurryThis$
|
|
571
|
-
var isCallable$
|
|
570
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
571
|
+
var isCallable$8 = isCallable$e;
|
|
572
572
|
var store$1 = sharedStoreExports;
|
|
573
573
|
|
|
574
|
-
var functionToString = uncurryThis$
|
|
574
|
+
var functionToString = uncurryThis$5(Function.toString);
|
|
575
575
|
|
|
576
576
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
577
|
-
if (!isCallable$
|
|
577
|
+
if (!isCallable$8(store$1.inspectSource)) {
|
|
578
578
|
store$1.inspectSource = function (it) {
|
|
579
579
|
return functionToString(it);
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
-
var inspectSource$
|
|
583
|
+
var inspectSource$1 = store$1.inspectSource;
|
|
584
584
|
|
|
585
|
-
var global$
|
|
586
|
-
var isCallable$
|
|
585
|
+
var global$4 = global$b;
|
|
586
|
+
var isCallable$7 = isCallable$e;
|
|
587
587
|
|
|
588
|
-
var WeakMap$1 = global$
|
|
588
|
+
var WeakMap$1 = global$4.WeakMap;
|
|
589
589
|
|
|
590
|
-
var weakMapBasicDetection = isCallable$
|
|
590
|
+
var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
591
591
|
|
|
592
592
|
var shared$1 = shared$3;
|
|
593
593
|
var uid = uid$2;
|
|
@@ -601,28 +601,28 @@ var sharedKey$3 = function (key) {
|
|
|
601
601
|
var hiddenKeys$4 = {};
|
|
602
602
|
|
|
603
603
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
604
|
-
var global$
|
|
605
|
-
var isObject$
|
|
606
|
-
var createNonEnumerableProperty$
|
|
607
|
-
var hasOwn$
|
|
604
|
+
var global$3 = global$b;
|
|
605
|
+
var isObject$1 = isObject$6;
|
|
606
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
607
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
608
608
|
var shared = sharedStoreExports;
|
|
609
609
|
var sharedKey$2 = sharedKey$3;
|
|
610
610
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
611
611
|
|
|
612
612
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
613
|
-
var TypeError$
|
|
614
|
-
var WeakMap = global$
|
|
615
|
-
var set
|
|
613
|
+
var TypeError$1 = global$3.TypeError;
|
|
614
|
+
var WeakMap = global$3.WeakMap;
|
|
615
|
+
var set, get, has;
|
|
616
616
|
|
|
617
617
|
var enforce = function (it) {
|
|
618
|
-
return has(it) ? get(it) : set
|
|
618
|
+
return has(it) ? get(it) : set(it, {});
|
|
619
619
|
};
|
|
620
620
|
|
|
621
621
|
var getterFor = function (TYPE) {
|
|
622
622
|
return function (it) {
|
|
623
623
|
var state;
|
|
624
|
-
if (!isObject$
|
|
625
|
-
throw new TypeError$
|
|
624
|
+
if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
|
|
625
|
+
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
626
626
|
} return state;
|
|
627
627
|
};
|
|
628
628
|
};
|
|
@@ -634,8 +634,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
634
634
|
store.has = store.has;
|
|
635
635
|
store.set = store.set;
|
|
636
636
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
637
|
-
set
|
|
638
|
-
if (store.has(it)) throw new TypeError$
|
|
637
|
+
set = function (it, metadata) {
|
|
638
|
+
if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
639
639
|
metadata.facade = it;
|
|
640
640
|
store.set(it, metadata);
|
|
641
641
|
return metadata;
|
|
@@ -649,73 +649,73 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
649
649
|
} else {
|
|
650
650
|
var STATE = sharedKey$2('state');
|
|
651
651
|
hiddenKeys$3[STATE] = true;
|
|
652
|
-
set
|
|
653
|
-
if (hasOwn$
|
|
652
|
+
set = function (it, metadata) {
|
|
653
|
+
if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
654
654
|
metadata.facade = it;
|
|
655
|
-
createNonEnumerableProperty$
|
|
655
|
+
createNonEnumerableProperty$2(it, STATE, metadata);
|
|
656
656
|
return metadata;
|
|
657
657
|
};
|
|
658
658
|
get = function (it) {
|
|
659
|
-
return hasOwn$
|
|
659
|
+
return hasOwn$5(it, STATE) ? it[STATE] : {};
|
|
660
660
|
};
|
|
661
661
|
has = function (it) {
|
|
662
|
-
return hasOwn$
|
|
662
|
+
return hasOwn$5(it, STATE);
|
|
663
663
|
};
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
var internalState = {
|
|
667
|
-
set: set
|
|
667
|
+
set: set,
|
|
668
668
|
get: get,
|
|
669
669
|
has: has,
|
|
670
670
|
enforce: enforce,
|
|
671
671
|
getterFor: getterFor
|
|
672
672
|
};
|
|
673
673
|
|
|
674
|
-
var uncurryThis$
|
|
675
|
-
var fails$
|
|
676
|
-
var isCallable$
|
|
677
|
-
var hasOwn$
|
|
678
|
-
var DESCRIPTORS$
|
|
674
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
675
|
+
var fails$5 = fails$c;
|
|
676
|
+
var isCallable$6 = isCallable$e;
|
|
677
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
678
|
+
var DESCRIPTORS$4 = descriptors;
|
|
679
679
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
680
|
-
var inspectSource
|
|
681
|
-
var InternalStateModule$
|
|
680
|
+
var inspectSource = inspectSource$1;
|
|
681
|
+
var InternalStateModule$1 = internalState;
|
|
682
682
|
|
|
683
|
-
var enforceInternalState = InternalStateModule$
|
|
684
|
-
var getInternalState = InternalStateModule$
|
|
685
|
-
var $String
|
|
683
|
+
var enforceInternalState = InternalStateModule$1.enforce;
|
|
684
|
+
var getInternalState = InternalStateModule$1.get;
|
|
685
|
+
var $String = String;
|
|
686
686
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
687
|
-
var defineProperty$
|
|
688
|
-
var stringSlice = uncurryThis$
|
|
689
|
-
var replace
|
|
690
|
-
var join = uncurryThis$
|
|
687
|
+
var defineProperty$1 = Object.defineProperty;
|
|
688
|
+
var stringSlice = uncurryThis$4(''.slice);
|
|
689
|
+
var replace = uncurryThis$4(''.replace);
|
|
690
|
+
var join = uncurryThis$4([].join);
|
|
691
691
|
|
|
692
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
693
|
-
return defineProperty$
|
|
692
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$5(function () {
|
|
693
|
+
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
694
694
|
});
|
|
695
695
|
|
|
696
696
|
var TEMPLATE = String(String).split('String');
|
|
697
697
|
|
|
698
698
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
699
|
-
if (stringSlice($String
|
|
700
|
-
name = '[' + replace
|
|
699
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
700
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
701
701
|
}
|
|
702
702
|
if (options && options.getter) name = 'get ' + name;
|
|
703
703
|
if (options && options.setter) name = 'set ' + name;
|
|
704
|
-
if (!hasOwn$
|
|
705
|
-
if (DESCRIPTORS$
|
|
704
|
+
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
705
|
+
if (DESCRIPTORS$4) defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
706
706
|
else value.name = name;
|
|
707
707
|
}
|
|
708
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
709
|
-
defineProperty$
|
|
708
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
|
|
709
|
+
defineProperty$1(value, 'length', { value: options.arity });
|
|
710
710
|
}
|
|
711
711
|
try {
|
|
712
|
-
if (options && hasOwn$
|
|
713
|
-
if (DESCRIPTORS$
|
|
712
|
+
if (options && hasOwn$4(options, 'constructor') && options.constructor) {
|
|
713
|
+
if (DESCRIPTORS$4) defineProperty$1(value, 'prototype', { writable: false });
|
|
714
714
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
715
715
|
} else if (value.prototype) value.prototype = undefined;
|
|
716
716
|
} catch (error) { /* empty */ }
|
|
717
717
|
var state = enforceInternalState(value);
|
|
718
|
-
if (!hasOwn$
|
|
718
|
+
if (!hasOwn$4(state, 'source')) {
|
|
719
719
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
720
720
|
} return value;
|
|
721
721
|
};
|
|
@@ -723,21 +723,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
723
723
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
724
724
|
// eslint-disable-next-line no-extend-native -- required
|
|
725
725
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
726
|
-
return isCallable$
|
|
726
|
+
return isCallable$6(this) && getInternalState(this).source || inspectSource(this);
|
|
727
727
|
}, 'toString');
|
|
728
728
|
|
|
729
729
|
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
730
730
|
|
|
731
|
-
var isCallable$
|
|
731
|
+
var isCallable$5 = isCallable$e;
|
|
732
732
|
var definePropertyModule$3 = objectDefineProperty;
|
|
733
733
|
var makeBuiltIn$1 = makeBuiltInExports;
|
|
734
734
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
735
735
|
|
|
736
|
-
var defineBuiltIn$
|
|
736
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
737
737
|
if (!options) options = {};
|
|
738
738
|
var simple = options.enumerable;
|
|
739
739
|
var name = options.name !== undefined ? options.name : key;
|
|
740
|
-
if (isCallable$
|
|
740
|
+
if (isCallable$5(value)) makeBuiltIn$1(value, name, options);
|
|
741
741
|
if (options.global) {
|
|
742
742
|
if (simple) O[key] = value;
|
|
743
743
|
else defineGlobalProperty$1(key, value);
|
|
@@ -807,19 +807,19 @@ var toLength = toLength$1;
|
|
|
807
807
|
|
|
808
808
|
// `LengthOfArrayLike` abstract operation
|
|
809
809
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
810
|
-
var lengthOfArrayLike$
|
|
810
|
+
var lengthOfArrayLike$3 = function (obj) {
|
|
811
811
|
return toLength(obj.length);
|
|
812
812
|
};
|
|
813
813
|
|
|
814
814
|
var toIndexedObject$2 = toIndexedObject$4;
|
|
815
815
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
816
|
-
var lengthOfArrayLike$
|
|
816
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
817
817
|
|
|
818
818
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
819
819
|
var createMethod = function (IS_INCLUDES) {
|
|
820
820
|
return function ($this, el, fromIndex) {
|
|
821
821
|
var O = toIndexedObject$2($this);
|
|
822
|
-
var length = lengthOfArrayLike$
|
|
822
|
+
var length = lengthOfArrayLike$2(O);
|
|
823
823
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
824
824
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
825
825
|
var value;
|
|
@@ -845,22 +845,22 @@ var arrayIncludes = {
|
|
|
845
845
|
indexOf: createMethod(false)
|
|
846
846
|
};
|
|
847
847
|
|
|
848
|
-
var uncurryThis$
|
|
849
|
-
var hasOwn$
|
|
848
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
849
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
850
850
|
var toIndexedObject$1 = toIndexedObject$4;
|
|
851
851
|
var indexOf = arrayIncludes.indexOf;
|
|
852
852
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
853
853
|
|
|
854
|
-
var push = uncurryThis$
|
|
854
|
+
var push = uncurryThis$3([].push);
|
|
855
855
|
|
|
856
856
|
var objectKeysInternal = function (object, names) {
|
|
857
857
|
var O = toIndexedObject$1(object);
|
|
858
858
|
var i = 0;
|
|
859
859
|
var result = [];
|
|
860
860
|
var key;
|
|
861
|
-
for (key in O) !hasOwn$
|
|
861
|
+
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
|
|
862
862
|
// Don't enum bug & hidden keys
|
|
863
|
-
while (names.length > i) if (hasOwn$
|
|
863
|
+
while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
|
|
864
864
|
~indexOf(result, key) || push(result, key);
|
|
865
865
|
}
|
|
866
866
|
return result;
|
|
@@ -894,68 +894,68 @@ var objectGetOwnPropertySymbols = {};
|
|
|
894
894
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
895
895
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
896
896
|
|
|
897
|
-
var getBuiltIn$
|
|
898
|
-
var uncurryThis$
|
|
897
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
898
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
899
899
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
900
|
-
var getOwnPropertySymbolsModule
|
|
901
|
-
var anObject$
|
|
900
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
901
|
+
var anObject$c = anObject$e;
|
|
902
902
|
|
|
903
|
-
var concat
|
|
903
|
+
var concat = uncurryThis$2([].concat);
|
|
904
904
|
|
|
905
905
|
// all object keys, includes non-enumerable and symbols
|
|
906
|
-
var ownKeys$1 = getBuiltIn$
|
|
907
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
908
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule
|
|
909
|
-
return getOwnPropertySymbols ? concat
|
|
906
|
+
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
907
|
+
var keys = getOwnPropertyNamesModule.f(anObject$c(it));
|
|
908
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
909
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
910
910
|
};
|
|
911
911
|
|
|
912
|
-
var hasOwn$
|
|
912
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
913
913
|
var ownKeys = ownKeys$1;
|
|
914
914
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
915
915
|
var definePropertyModule$2 = objectDefineProperty;
|
|
916
916
|
|
|
917
|
-
var copyConstructorProperties$
|
|
917
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
918
918
|
var keys = ownKeys(source);
|
|
919
919
|
var defineProperty = definePropertyModule$2.f;
|
|
920
920
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
921
921
|
for (var i = 0; i < keys.length; i++) {
|
|
922
922
|
var key = keys[i];
|
|
923
|
-
if (!hasOwn$
|
|
923
|
+
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
|
924
924
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
};
|
|
928
928
|
|
|
929
|
-
var fails$
|
|
930
|
-
var isCallable$
|
|
929
|
+
var fails$4 = fails$c;
|
|
930
|
+
var isCallable$4 = isCallable$e;
|
|
931
931
|
|
|
932
932
|
var replacement = /#|\.prototype\./;
|
|
933
933
|
|
|
934
|
-
var isForced$
|
|
934
|
+
var isForced$1 = function (feature, detection) {
|
|
935
935
|
var value = data[normalize(feature)];
|
|
936
936
|
return value === POLYFILL ? true
|
|
937
937
|
: value === NATIVE ? false
|
|
938
|
-
: isCallable$
|
|
938
|
+
: isCallable$4(detection) ? fails$4(detection)
|
|
939
939
|
: !!detection;
|
|
940
940
|
};
|
|
941
941
|
|
|
942
|
-
var normalize = isForced$
|
|
942
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
943
943
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
944
944
|
};
|
|
945
945
|
|
|
946
|
-
var data = isForced$
|
|
947
|
-
var NATIVE = isForced$
|
|
948
|
-
var POLYFILL = isForced$
|
|
946
|
+
var data = isForced$1.data = {};
|
|
947
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
948
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
949
949
|
|
|
950
|
-
var isForced_1 = isForced$
|
|
950
|
+
var isForced_1 = isForced$1;
|
|
951
951
|
|
|
952
|
-
var global$
|
|
953
|
-
var getOwnPropertyDescriptor$
|
|
954
|
-
var createNonEnumerableProperty$
|
|
955
|
-
var defineBuiltIn$
|
|
952
|
+
var global$2 = global$b;
|
|
953
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
954
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
955
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
956
956
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
957
|
-
var copyConstructorProperties
|
|
958
|
-
var isForced
|
|
957
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
958
|
+
var isForced = isForced_1;
|
|
959
959
|
|
|
960
960
|
/*
|
|
961
961
|
options.target - name of the target object
|
|
@@ -978,50 +978,50 @@ var _export = function (options, source) {
|
|
|
978
978
|
var STATIC = options.stat;
|
|
979
979
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
980
980
|
if (GLOBAL) {
|
|
981
|
-
target = global$
|
|
981
|
+
target = global$2;
|
|
982
982
|
} else if (STATIC) {
|
|
983
|
-
target = global$
|
|
983
|
+
target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
|
|
984
984
|
} else {
|
|
985
|
-
target = global$
|
|
985
|
+
target = global$2[TARGET] && global$2[TARGET].prototype;
|
|
986
986
|
}
|
|
987
987
|
if (target) for (key in source) {
|
|
988
988
|
sourceProperty = source[key];
|
|
989
989
|
if (options.dontCallGetSet) {
|
|
990
|
-
descriptor = getOwnPropertyDescriptor$
|
|
990
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
991
991
|
targetProperty = descriptor && descriptor.value;
|
|
992
992
|
} else targetProperty = target[key];
|
|
993
|
-
FORCED = isForced
|
|
993
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
994
994
|
// contained in target
|
|
995
995
|
if (!FORCED && targetProperty !== undefined) {
|
|
996
996
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
997
|
-
copyConstructorProperties
|
|
997
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
998
998
|
}
|
|
999
999
|
// add a flag to not completely full polyfills
|
|
1000
1000
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1001
|
-
createNonEnumerableProperty$
|
|
1001
|
+
createNonEnumerableProperty$1(sourceProperty, 'sham', true);
|
|
1002
1002
|
}
|
|
1003
|
-
defineBuiltIn$
|
|
1003
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1004
1004
|
}
|
|
1005
1005
|
};
|
|
1006
1006
|
|
|
1007
|
-
var classof$
|
|
1007
|
+
var classof$2 = classofRaw$2;
|
|
1008
1008
|
|
|
1009
1009
|
// `IsArray` abstract operation
|
|
1010
1010
|
// https://tc39.es/ecma262/#sec-isarray
|
|
1011
1011
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
1012
|
-
var isArray$
|
|
1013
|
-
return classof$
|
|
1012
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
1013
|
+
return classof$2(argument) === 'Array';
|
|
1014
1014
|
};
|
|
1015
1015
|
|
|
1016
|
-
var DESCRIPTORS$
|
|
1017
|
-
var isArray
|
|
1016
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1017
|
+
var isArray = isArray$1;
|
|
1018
1018
|
|
|
1019
|
-
var $TypeError$
|
|
1019
|
+
var $TypeError$5 = TypeError;
|
|
1020
1020
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1021
|
-
var getOwnPropertyDescriptor
|
|
1021
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1022
1022
|
|
|
1023
1023
|
// Safari < 13 does not throw an error in this case
|
|
1024
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$
|
|
1024
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$3 && !function () {
|
|
1025
1025
|
// makes no sense without proper strict mode support
|
|
1026
1026
|
if (this !== undefined) return true;
|
|
1027
1027
|
try {
|
|
@@ -1033,29 +1033,29 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$7 && !function () {
|
|
|
1033
1033
|
}();
|
|
1034
1034
|
|
|
1035
1035
|
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
1036
|
-
if (isArray
|
|
1037
|
-
throw new $TypeError$
|
|
1036
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
1037
|
+
throw new $TypeError$5('Cannot set read only .length');
|
|
1038
1038
|
} return O.length = length;
|
|
1039
1039
|
} : function (O, length) {
|
|
1040
1040
|
return O.length = length;
|
|
1041
1041
|
};
|
|
1042
1042
|
|
|
1043
|
-
var $TypeError$
|
|
1043
|
+
var $TypeError$4 = TypeError;
|
|
1044
1044
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
1045
1045
|
|
|
1046
|
-
var doesNotExceedSafeInteger$
|
|
1047
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$
|
|
1046
|
+
var doesNotExceedSafeInteger$1 = function (it) {
|
|
1047
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$4('Maximum allowed index exceeded');
|
|
1048
1048
|
return it;
|
|
1049
1049
|
};
|
|
1050
1050
|
|
|
1051
|
-
var $$
|
|
1052
|
-
var toObject$
|
|
1053
|
-
var lengthOfArrayLike$
|
|
1051
|
+
var $$5 = _export;
|
|
1052
|
+
var toObject$1 = toObject$3;
|
|
1053
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
1054
1054
|
var setArrayLength = arraySetLength;
|
|
1055
|
-
var doesNotExceedSafeInteger
|
|
1056
|
-
var fails$
|
|
1055
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
1056
|
+
var fails$3 = fails$c;
|
|
1057
1057
|
|
|
1058
|
-
var INCORRECT_TO_LENGTH = fails$
|
|
1058
|
+
var INCORRECT_TO_LENGTH = fails$3(function () {
|
|
1059
1059
|
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
1060
1060
|
});
|
|
1061
1061
|
|
|
@@ -1070,17 +1070,17 @@ var properErrorOnNonWritableLength = function () {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
1072
|
|
|
1073
|
-
var FORCED$
|
|
1073
|
+
var FORCED$1 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
1074
1074
|
|
|
1075
1075
|
// `Array.prototype.push` method
|
|
1076
1076
|
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
1077
|
-
$$
|
|
1077
|
+
$$5({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
|
|
1078
1078
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
1079
1079
|
push: function push(item) {
|
|
1080
|
-
var O = toObject$
|
|
1081
|
-
var len = lengthOfArrayLike$
|
|
1080
|
+
var O = toObject$1(this);
|
|
1081
|
+
var len = lengthOfArrayLike$1(O);
|
|
1082
1082
|
var argCount = arguments.length;
|
|
1083
|
-
doesNotExceedSafeInteger
|
|
1083
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
1084
1084
|
for (var i = 0; i < argCount; i++) {
|
|
1085
1085
|
O[len] = arguments[i];
|
|
1086
1086
|
len++;
|
|
@@ -1090,260 +1090,88 @@ $$e({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
1092
|
|
|
1093
|
-
var
|
|
1094
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
1095
|
-
|
|
1096
|
-
// `Object.keys` method
|
|
1097
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
1098
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1099
|
-
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1100
|
-
return internalObjectKeys(O, enumBugKeys$1);
|
|
1101
|
-
};
|
|
1102
|
-
|
|
1103
|
-
var DESCRIPTORS$6 = descriptors;
|
|
1104
|
-
var uncurryThis$6 = functionUncurryThis;
|
|
1105
|
-
var call$d = functionCall;
|
|
1106
|
-
var fails$7 = fails$h;
|
|
1107
|
-
var objectKeys$1 = objectKeys$2;
|
|
1108
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1109
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1110
|
-
var toObject$2 = toObject$5;
|
|
1111
|
-
var IndexedObject = indexedObject;
|
|
1112
|
-
|
|
1113
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1114
|
-
var $assign = Object.assign;
|
|
1115
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1116
|
-
var defineProperty$4 = Object.defineProperty;
|
|
1117
|
-
var concat = uncurryThis$6([].concat);
|
|
1118
|
-
|
|
1119
|
-
// `Object.assign` method
|
|
1120
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1121
|
-
var objectAssign = !$assign || fails$7(function () {
|
|
1122
|
-
// should have correct order of operations (Edge bug)
|
|
1123
|
-
if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
|
1124
|
-
enumerable: true,
|
|
1125
|
-
get: function () {
|
|
1126
|
-
defineProperty$4(this, 'b', {
|
|
1127
|
-
value: 3,
|
|
1128
|
-
enumerable: false
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
}), { b: 2 })).b !== 1) return true;
|
|
1132
|
-
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1133
|
-
var A = {};
|
|
1134
|
-
var B = {};
|
|
1135
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
|
1136
|
-
var symbol = Symbol('assign detection');
|
|
1137
|
-
var alphabet = 'abcdefghijklmnopqrst';
|
|
1138
|
-
A[symbol] = 7;
|
|
1139
|
-
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1140
|
-
return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
|
|
1141
|
-
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1142
|
-
var T = toObject$2(target);
|
|
1143
|
-
var argumentsLength = arguments.length;
|
|
1144
|
-
var index = 1;
|
|
1145
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1146
|
-
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1147
|
-
while (argumentsLength > index) {
|
|
1148
|
-
var S = IndexedObject(arguments[index++]);
|
|
1149
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1150
|
-
var length = keys.length;
|
|
1151
|
-
var j = 0;
|
|
1152
|
-
var key;
|
|
1153
|
-
while (length > j) {
|
|
1154
|
-
key = keys[j++];
|
|
1155
|
-
if (!DESCRIPTORS$6 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1156
|
-
}
|
|
1157
|
-
} return T;
|
|
1158
|
-
} : $assign;
|
|
1159
|
-
|
|
1160
|
-
var $$d = _export;
|
|
1161
|
-
var assign = objectAssign;
|
|
1162
|
-
|
|
1163
|
-
// `Object.assign` method
|
|
1164
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1165
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1166
|
-
$$d({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1167
|
-
assign: assign
|
|
1168
|
-
});
|
|
1169
|
-
|
|
1170
|
-
var wellKnownSymbol$d = wellKnownSymbol$f;
|
|
1171
|
-
|
|
1172
|
-
var TO_STRING_TAG$4 = wellKnownSymbol$d('toStringTag');
|
|
1173
|
-
var test = {};
|
|
1174
|
-
|
|
1175
|
-
test[TO_STRING_TAG$4] = 'z';
|
|
1176
|
-
|
|
1177
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
1178
|
-
|
|
1179
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1180
|
-
var isCallable$9 = isCallable$k;
|
|
1181
|
-
var classofRaw$1 = classofRaw$2;
|
|
1182
|
-
var wellKnownSymbol$c = wellKnownSymbol$f;
|
|
1183
|
-
|
|
1184
|
-
var TO_STRING_TAG$3 = wellKnownSymbol$c('toStringTag');
|
|
1185
|
-
var $Object$1 = Object;
|
|
1186
|
-
|
|
1187
|
-
// ES3 wrong here
|
|
1188
|
-
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
|
|
1189
|
-
|
|
1190
|
-
// fallback for IE11 Script Access Denied error
|
|
1191
|
-
var tryGet = function (it, key) {
|
|
1192
|
-
try {
|
|
1193
|
-
return it[key];
|
|
1194
|
-
} catch (error) { /* empty */ }
|
|
1195
|
-
};
|
|
1196
|
-
|
|
1197
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
1198
|
-
var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1199
|
-
var O, tag, result;
|
|
1200
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1201
|
-
// @@toStringTag case
|
|
1202
|
-
: typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$3)) == 'string' ? tag
|
|
1203
|
-
// builtinTag case
|
|
1204
|
-
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1205
|
-
// ES3 arguments fallback
|
|
1206
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
|
|
1207
|
-
};
|
|
1208
|
-
|
|
1209
|
-
var classof$3 = classof$4;
|
|
1210
|
-
|
|
1211
|
-
var $String$1 = String;
|
|
1212
|
-
|
|
1213
|
-
var toString$1 = function (argument) {
|
|
1214
|
-
if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1215
|
-
return $String$1(argument);
|
|
1216
|
-
};
|
|
1217
|
-
|
|
1218
|
-
var anObject$f = anObject$i;
|
|
1219
|
-
|
|
1220
|
-
// `RegExp.prototype.flags` getter implementation
|
|
1221
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1222
|
-
var regexpFlags = function () {
|
|
1223
|
-
var that = anObject$f(this);
|
|
1224
|
-
var result = '';
|
|
1225
|
-
if (that.hasIndices) result += 'd';
|
|
1226
|
-
if (that.global) result += 'g';
|
|
1227
|
-
if (that.ignoreCase) result += 'i';
|
|
1228
|
-
if (that.multiline) result += 'm';
|
|
1229
|
-
if (that.dotAll) result += 's';
|
|
1230
|
-
if (that.unicode) result += 'u';
|
|
1231
|
-
if (that.unicodeSets) result += 'v';
|
|
1232
|
-
if (that.sticky) result += 'y';
|
|
1233
|
-
return result;
|
|
1234
|
-
};
|
|
1235
|
-
|
|
1236
|
-
var call$c = functionCall;
|
|
1237
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
1238
|
-
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
1239
|
-
var regExpFlags = regexpFlags;
|
|
1240
|
-
|
|
1241
|
-
var RegExpPrototype$1 = RegExp.prototype;
|
|
1242
|
-
|
|
1243
|
-
var regexpGetFlags = function (R) {
|
|
1244
|
-
var flags = R.flags;
|
|
1245
|
-
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$5(R, 'flags') && isPrototypeOf$3(RegExpPrototype$1, R)
|
|
1246
|
-
? call$c(regExpFlags, R) : flags;
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
1250
|
-
var defineBuiltIn$4 = defineBuiltIn$6;
|
|
1251
|
-
var anObject$e = anObject$i;
|
|
1252
|
-
var $toString = toString$1;
|
|
1253
|
-
var fails$6 = fails$h;
|
|
1254
|
-
var getRegExpFlags = regexpGetFlags;
|
|
1255
|
-
|
|
1256
|
-
var TO_STRING = 'toString';
|
|
1257
|
-
var RegExpPrototype = RegExp.prototype;
|
|
1258
|
-
var nativeToString = RegExpPrototype[TO_STRING];
|
|
1259
|
-
|
|
1260
|
-
var NOT_GENERIC = fails$6(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
1261
|
-
// FF44- RegExp#toString has a wrong name
|
|
1262
|
-
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
1263
|
-
|
|
1264
|
-
// `RegExp.prototype.toString` method
|
|
1265
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
1266
|
-
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
1267
|
-
defineBuiltIn$4(RegExpPrototype, TO_STRING, function toString() {
|
|
1268
|
-
var R = anObject$e(this);
|
|
1269
|
-
var pattern = $toString(R.source);
|
|
1270
|
-
var flags = $toString(getRegExpFlags(R));
|
|
1271
|
-
return '/' + pattern + '/' + flags;
|
|
1272
|
-
}, { unsafe: true });
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1093
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1276
1094
|
|
|
1277
|
-
var $TypeError$
|
|
1095
|
+
var $TypeError$3 = TypeError;
|
|
1278
1096
|
|
|
1279
|
-
var anInstance$
|
|
1280
|
-
if (isPrototypeOf$
|
|
1281
|
-
throw new $TypeError$
|
|
1097
|
+
var anInstance$1 = function (it, Prototype) {
|
|
1098
|
+
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
1099
|
+
throw new $TypeError$3('Incorrect invocation');
|
|
1282
1100
|
};
|
|
1283
1101
|
|
|
1284
|
-
var fails$
|
|
1102
|
+
var fails$2 = fails$c;
|
|
1285
1103
|
|
|
1286
|
-
var correctPrototypeGetter = !fails$
|
|
1104
|
+
var correctPrototypeGetter = !fails$2(function () {
|
|
1287
1105
|
function F() { /* empty */ }
|
|
1288
1106
|
F.prototype.constructor = null;
|
|
1289
1107
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1290
1108
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1291
1109
|
});
|
|
1292
1110
|
|
|
1293
|
-
var hasOwn$
|
|
1294
|
-
var isCallable$
|
|
1295
|
-
var toObject
|
|
1111
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1112
|
+
var isCallable$3 = isCallable$e;
|
|
1113
|
+
var toObject = toObject$3;
|
|
1296
1114
|
var sharedKey$1 = sharedKey$3;
|
|
1297
1115
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1298
1116
|
|
|
1299
1117
|
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
|
1300
|
-
var $Object = Object;
|
|
1301
|
-
var ObjectPrototype = $Object.prototype;
|
|
1118
|
+
var $Object$1 = Object;
|
|
1119
|
+
var ObjectPrototype = $Object$1.prototype;
|
|
1302
1120
|
|
|
1303
1121
|
// `Object.getPrototypeOf` method
|
|
1304
1122
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1305
1123
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1306
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1307
|
-
var object = toObject
|
|
1308
|
-
if (hasOwn$
|
|
1124
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1125
|
+
var object = toObject(O);
|
|
1126
|
+
if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
1309
1127
|
var constructor = object.constructor;
|
|
1310
|
-
if (isCallable$
|
|
1128
|
+
if (isCallable$3(constructor) && object instanceof constructor) {
|
|
1311
1129
|
return constructor.prototype;
|
|
1312
|
-
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1130
|
+
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1313
1131
|
};
|
|
1314
1132
|
|
|
1315
1133
|
var makeBuiltIn = makeBuiltInExports;
|
|
1316
|
-
var defineProperty
|
|
1134
|
+
var defineProperty = objectDefineProperty;
|
|
1317
1135
|
|
|
1318
|
-
var defineBuiltInAccessor$
|
|
1136
|
+
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
1319
1137
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
1320
1138
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
1321
|
-
return defineProperty
|
|
1139
|
+
return defineProperty.f(target, name, descriptor);
|
|
1322
1140
|
};
|
|
1323
1141
|
|
|
1324
|
-
var DESCRIPTORS$
|
|
1142
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1325
1143
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1326
|
-
var createPropertyDescriptor
|
|
1144
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1327
1145
|
|
|
1328
1146
|
var createProperty$1 = function (object, key, value) {
|
|
1329
|
-
if (DESCRIPTORS$
|
|
1147
|
+
if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
|
|
1330
1148
|
else object[key] = value;
|
|
1331
1149
|
};
|
|
1332
1150
|
|
|
1333
1151
|
var objectDefineProperties = {};
|
|
1334
1152
|
|
|
1335
|
-
var
|
|
1153
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1154
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1155
|
+
|
|
1156
|
+
// `Object.keys` method
|
|
1157
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
1158
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1159
|
+
var objectKeys$1 = Object.keys || function keys(O) {
|
|
1160
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1336
1164
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1337
1165
|
var definePropertyModule = objectDefineProperty;
|
|
1338
|
-
var anObject$
|
|
1166
|
+
var anObject$b = anObject$e;
|
|
1339
1167
|
var toIndexedObject = toIndexedObject$4;
|
|
1340
|
-
var objectKeys = objectKeys$
|
|
1168
|
+
var objectKeys = objectKeys$1;
|
|
1341
1169
|
|
|
1342
1170
|
// `Object.defineProperties` method
|
|
1343
1171
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1344
1172
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1345
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1346
|
-
anObject$
|
|
1173
|
+
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1174
|
+
anObject$b(O);
|
|
1347
1175
|
var props = toIndexedObject(Properties);
|
|
1348
1176
|
var keys = objectKeys(Properties);
|
|
1349
1177
|
var length = keys.length;
|
|
@@ -1353,16 +1181,16 @@ objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1353
1181
|
return O;
|
|
1354
1182
|
};
|
|
1355
1183
|
|
|
1356
|
-
var getBuiltIn
|
|
1184
|
+
var getBuiltIn = getBuiltIn$3;
|
|
1357
1185
|
|
|
1358
|
-
var html$
|
|
1186
|
+
var html$1 = getBuiltIn('document', 'documentElement');
|
|
1359
1187
|
|
|
1360
1188
|
/* global ActiveXObject -- old IE, WSH */
|
|
1361
|
-
var anObject$
|
|
1189
|
+
var anObject$a = anObject$e;
|
|
1362
1190
|
var definePropertiesModule = objectDefineProperties;
|
|
1363
1191
|
var enumBugKeys = enumBugKeys$3;
|
|
1364
1192
|
var hiddenKeys = hiddenKeys$4;
|
|
1365
|
-
var html
|
|
1193
|
+
var html = html$1;
|
|
1366
1194
|
var documentCreateElement = documentCreateElement$1;
|
|
1367
1195
|
var sharedKey = sharedKey$3;
|
|
1368
1196
|
|
|
@@ -1394,7 +1222,7 @@ var NullProtoObjectViaIFrame = function () {
|
|
|
1394
1222
|
var JS = 'java' + SCRIPT + ':';
|
|
1395
1223
|
var iframeDocument;
|
|
1396
1224
|
iframe.style.display = 'none';
|
|
1397
|
-
html
|
|
1225
|
+
html.appendChild(iframe);
|
|
1398
1226
|
// https://github.com/zloirock/core-js/issues/475
|
|
1399
1227
|
iframe.src = String(JS);
|
|
1400
1228
|
iframeDocument = iframe.contentWindow.document;
|
|
@@ -1432,7 +1260,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
1432
1260
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1433
1261
|
var result;
|
|
1434
1262
|
if (O !== null) {
|
|
1435
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1263
|
+
EmptyConstructor[PROTOTYPE] = anObject$a(O);
|
|
1436
1264
|
result = new EmptyConstructor();
|
|
1437
1265
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1438
1266
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1441,14 +1269,14 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1441
1269
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1442
1270
|
};
|
|
1443
1271
|
|
|
1444
|
-
var fails$
|
|
1445
|
-
var isCallable$
|
|
1446
|
-
var isObject
|
|
1272
|
+
var fails$1 = fails$c;
|
|
1273
|
+
var isCallable$2 = isCallable$e;
|
|
1274
|
+
var isObject = isObject$6;
|
|
1447
1275
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1448
|
-
var defineBuiltIn$
|
|
1449
|
-
var wellKnownSymbol$
|
|
1276
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1277
|
+
var wellKnownSymbol$6 = wellKnownSymbol$8;
|
|
1450
1278
|
|
|
1451
|
-
var ITERATOR$
|
|
1279
|
+
var ITERATOR$3 = wellKnownSymbol$6('iterator');
|
|
1452
1280
|
var BUGGY_SAFARI_ITERATORS = false;
|
|
1453
1281
|
|
|
1454
1282
|
// `%IteratorPrototype%` object
|
|
@@ -1466,18 +1294,18 @@ if ([].keys) {
|
|
|
1466
1294
|
}
|
|
1467
1295
|
}
|
|
1468
1296
|
|
|
1469
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject
|
|
1297
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$1(function () {
|
|
1470
1298
|
var test = {};
|
|
1471
1299
|
// FF44- legacy iterators case
|
|
1472
|
-
return IteratorPrototype$2[ITERATOR$
|
|
1300
|
+
return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
|
|
1473
1301
|
});
|
|
1474
1302
|
|
|
1475
1303
|
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
1476
1304
|
|
|
1477
1305
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1478
1306
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1479
|
-
if (!isCallable$
|
|
1480
|
-
defineBuiltIn$
|
|
1307
|
+
if (!isCallable$2(IteratorPrototype$2[ITERATOR$3])) {
|
|
1308
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$3, function () {
|
|
1481
1309
|
return this;
|
|
1482
1310
|
});
|
|
1483
1311
|
}
|
|
@@ -1487,58 +1315,58 @@ var iteratorsCore = {
|
|
|
1487
1315
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
1488
1316
|
};
|
|
1489
1317
|
|
|
1490
|
-
var $$
|
|
1491
|
-
var global$
|
|
1492
|
-
var anInstance
|
|
1493
|
-
var anObject$
|
|
1494
|
-
var isCallable$
|
|
1318
|
+
var $$4 = _export;
|
|
1319
|
+
var global$1 = global$b;
|
|
1320
|
+
var anInstance = anInstance$1;
|
|
1321
|
+
var anObject$9 = anObject$e;
|
|
1322
|
+
var isCallable$1 = isCallable$e;
|
|
1495
1323
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1496
|
-
var defineBuiltInAccessor
|
|
1324
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1497
1325
|
var createProperty = createProperty$1;
|
|
1498
|
-
var fails
|
|
1499
|
-
var hasOwn
|
|
1500
|
-
var wellKnownSymbol$
|
|
1326
|
+
var fails = fails$c;
|
|
1327
|
+
var hasOwn = hasOwnProperty_1;
|
|
1328
|
+
var wellKnownSymbol$5 = wellKnownSymbol$8;
|
|
1501
1329
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1502
|
-
var DESCRIPTORS
|
|
1330
|
+
var DESCRIPTORS = descriptors;
|
|
1503
1331
|
|
|
1504
1332
|
var CONSTRUCTOR = 'constructor';
|
|
1505
|
-
var ITERATOR$
|
|
1506
|
-
var TO_STRING_TAG$
|
|
1333
|
+
var ITERATOR$2 = 'Iterator';
|
|
1334
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
|
|
1507
1335
|
|
|
1508
|
-
var $TypeError$
|
|
1509
|
-
var NativeIterator = global$
|
|
1336
|
+
var $TypeError$2 = TypeError;
|
|
1337
|
+
var NativeIterator = global$1[ITERATOR$2];
|
|
1510
1338
|
|
|
1511
1339
|
// FF56- have non-standard global helper `Iterator`
|
|
1512
|
-
var FORCED
|
|
1340
|
+
var FORCED = !isCallable$1(NativeIterator)
|
|
1513
1341
|
|| NativeIterator.prototype !== IteratorPrototype$1
|
|
1514
1342
|
// FF44- non-standard `Iterator` passes previous tests
|
|
1515
|
-
|| !fails
|
|
1343
|
+
|| !fails(function () { NativeIterator({}); });
|
|
1516
1344
|
|
|
1517
1345
|
var IteratorConstructor = function Iterator() {
|
|
1518
|
-
anInstance
|
|
1519
|
-
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$
|
|
1346
|
+
anInstance(this, IteratorPrototype$1);
|
|
1347
|
+
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$2('Abstract class Iterator not directly constructable');
|
|
1520
1348
|
};
|
|
1521
1349
|
|
|
1522
1350
|
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
1523
|
-
if (DESCRIPTORS
|
|
1524
|
-
defineBuiltInAccessor
|
|
1351
|
+
if (DESCRIPTORS) {
|
|
1352
|
+
defineBuiltInAccessor(IteratorPrototype$1, key, {
|
|
1525
1353
|
configurable: true,
|
|
1526
1354
|
get: function () {
|
|
1527
1355
|
return value;
|
|
1528
1356
|
},
|
|
1529
1357
|
set: function (replacement) {
|
|
1530
|
-
anObject$
|
|
1531
|
-
if (this === IteratorPrototype$1) throw new $TypeError$
|
|
1532
|
-
if (hasOwn
|
|
1358
|
+
anObject$9(this);
|
|
1359
|
+
if (this === IteratorPrototype$1) throw new $TypeError$2("You can't redefine this property");
|
|
1360
|
+
if (hasOwn(this, key)) this[key] = replacement;
|
|
1533
1361
|
else createProperty(this, key, replacement);
|
|
1534
1362
|
}
|
|
1535
1363
|
});
|
|
1536
1364
|
} else IteratorPrototype$1[key] = value;
|
|
1537
1365
|
};
|
|
1538
1366
|
|
|
1539
|
-
if (!hasOwn
|
|
1367
|
+
if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
|
|
1540
1368
|
|
|
1541
|
-
if (FORCED
|
|
1369
|
+
if (FORCED || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
|
|
1542
1370
|
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
1543
1371
|
}
|
|
1544
1372
|
|
|
@@ -1546,7 +1374,7 @@ IteratorConstructor.prototype = IteratorPrototype$1;
|
|
|
1546
1374
|
|
|
1547
1375
|
// `Iterator` constructor
|
|
1548
1376
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1549
|
-
$$
|
|
1377
|
+
$$4({ global: true, constructor: true, forced: FORCED }, {
|
|
1550
1378
|
Iterator: IteratorConstructor
|
|
1551
1379
|
});
|
|
1552
1380
|
|
|
@@ -1560,10 +1388,10 @@ var getIteratorDirect$5 = function (obj) {
|
|
|
1560
1388
|
};
|
|
1561
1389
|
};
|
|
1562
1390
|
|
|
1563
|
-
var defineBuiltIn
|
|
1391
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
1564
1392
|
|
|
1565
1393
|
var defineBuiltIns$1 = function (target, src, options) {
|
|
1566
|
-
for (var key in src) defineBuiltIn
|
|
1394
|
+
for (var key in src) defineBuiltIn(target, key, src[key], options);
|
|
1567
1395
|
return target;
|
|
1568
1396
|
};
|
|
1569
1397
|
|
|
@@ -1573,50 +1401,50 @@ var createIterResultObject$1 = function (value, done) {
|
|
|
1573
1401
|
return { value: value, done: done };
|
|
1574
1402
|
};
|
|
1575
1403
|
|
|
1576
|
-
var call$
|
|
1577
|
-
var anObject$
|
|
1404
|
+
var call$7 = functionCall;
|
|
1405
|
+
var anObject$8 = anObject$e;
|
|
1578
1406
|
var getMethod$2 = getMethod$4;
|
|
1579
1407
|
|
|
1580
1408
|
var iteratorClose$4 = function (iterator, kind, value) {
|
|
1581
1409
|
var innerResult, innerError;
|
|
1582
|
-
anObject$
|
|
1410
|
+
anObject$8(iterator);
|
|
1583
1411
|
try {
|
|
1584
1412
|
innerResult = getMethod$2(iterator, 'return');
|
|
1585
1413
|
if (!innerResult) {
|
|
1586
1414
|
if (kind === 'throw') throw value;
|
|
1587
1415
|
return value;
|
|
1588
1416
|
}
|
|
1589
|
-
innerResult = call$
|
|
1417
|
+
innerResult = call$7(innerResult, iterator);
|
|
1590
1418
|
} catch (error) {
|
|
1591
1419
|
innerError = true;
|
|
1592
1420
|
innerResult = error;
|
|
1593
1421
|
}
|
|
1594
1422
|
if (kind === 'throw') throw value;
|
|
1595
1423
|
if (innerError) throw innerResult;
|
|
1596
|
-
anObject$
|
|
1424
|
+
anObject$8(innerResult);
|
|
1597
1425
|
return value;
|
|
1598
1426
|
};
|
|
1599
1427
|
|
|
1600
|
-
var call$
|
|
1601
|
-
var create
|
|
1602
|
-
var createNonEnumerableProperty
|
|
1428
|
+
var call$6 = functionCall;
|
|
1429
|
+
var create = objectCreate;
|
|
1430
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
|
1603
1431
|
var defineBuiltIns = defineBuiltIns$1;
|
|
1604
|
-
var wellKnownSymbol$
|
|
1605
|
-
var InternalStateModule
|
|
1432
|
+
var wellKnownSymbol$4 = wellKnownSymbol$8;
|
|
1433
|
+
var InternalStateModule = internalState;
|
|
1606
1434
|
var getMethod$1 = getMethod$4;
|
|
1607
1435
|
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
1608
1436
|
var createIterResultObject = createIterResultObject$1;
|
|
1609
1437
|
var iteratorClose$3 = iteratorClose$4;
|
|
1610
1438
|
|
|
1611
|
-
var TO_STRING_TAG$
|
|
1439
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
|
|
1612
1440
|
var ITERATOR_HELPER = 'IteratorHelper';
|
|
1613
1441
|
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
1614
|
-
var setInternalState
|
|
1442
|
+
var setInternalState = InternalStateModule.set;
|
|
1615
1443
|
|
|
1616
1444
|
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
1617
|
-
var getInternalState = InternalStateModule
|
|
1445
|
+
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
1618
1446
|
|
|
1619
|
-
return defineBuiltIns(create
|
|
1447
|
+
return defineBuiltIns(create(IteratorPrototype), {
|
|
1620
1448
|
next: function next() {
|
|
1621
1449
|
var state = getInternalState(this);
|
|
1622
1450
|
// for simplification:
|
|
@@ -1637,7 +1465,7 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
1637
1465
|
state.done = true;
|
|
1638
1466
|
if (IS_ITERATOR) {
|
|
1639
1467
|
var returnMethod = getMethod$1(iterator, 'return');
|
|
1640
|
-
return returnMethod ? call$
|
|
1468
|
+
return returnMethod ? call$6(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
1641
1469
|
}
|
|
1642
1470
|
if (state.inner) try {
|
|
1643
1471
|
iteratorClose$3(state.inner.iterator, 'normal');
|
|
@@ -1653,7 +1481,7 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
1653
1481
|
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
1654
1482
|
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
1655
1483
|
|
|
1656
|
-
createNonEnumerableProperty
|
|
1484
|
+
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG$2, 'Iterator Helper');
|
|
1657
1485
|
|
|
1658
1486
|
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
1659
1487
|
var IteratorProxy = function Iterator(record, state) {
|
|
@@ -1665,7 +1493,7 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
|
1665
1493
|
state.nextHandler = nextHandler;
|
|
1666
1494
|
state.counter = 0;
|
|
1667
1495
|
state.done = false;
|
|
1668
|
-
setInternalState
|
|
1496
|
+
setInternalState(this, state);
|
|
1669
1497
|
};
|
|
1670
1498
|
|
|
1671
1499
|
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
@@ -1673,22 +1501,22 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
|
1673
1501
|
return IteratorProxy;
|
|
1674
1502
|
};
|
|
1675
1503
|
|
|
1676
|
-
var anObject$
|
|
1504
|
+
var anObject$7 = anObject$e;
|
|
1677
1505
|
var iteratorClose$2 = iteratorClose$4;
|
|
1678
1506
|
|
|
1679
1507
|
// call something on iterator step with safe closing on error
|
|
1680
1508
|
var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
|
|
1681
1509
|
try {
|
|
1682
|
-
return ENTRIES ? fn(anObject$
|
|
1510
|
+
return ENTRIES ? fn(anObject$7(value)[0], value[1]) : fn(value);
|
|
1683
1511
|
} catch (error) {
|
|
1684
1512
|
iteratorClose$2(iterator, 'throw', error);
|
|
1685
1513
|
}
|
|
1686
1514
|
};
|
|
1687
1515
|
|
|
1688
|
-
var $$
|
|
1689
|
-
var call$
|
|
1690
|
-
var aCallable$
|
|
1691
|
-
var anObject$
|
|
1516
|
+
var $$3 = _export;
|
|
1517
|
+
var call$5 = functionCall;
|
|
1518
|
+
var aCallable$5 = aCallable$7;
|
|
1519
|
+
var anObject$6 = anObject$e;
|
|
1692
1520
|
var getIteratorDirect$4 = getIteratorDirect$5;
|
|
1693
1521
|
var createIteratorProxy$2 = iteratorCreateProxy;
|
|
1694
1522
|
var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
|
|
@@ -1700,7 +1528,7 @@ var IteratorProxy$2 = createIteratorProxy$2(function () {
|
|
|
1700
1528
|
var next = this.next;
|
|
1701
1529
|
var result, done, value;
|
|
1702
1530
|
while (true) {
|
|
1703
|
-
result = anObject$
|
|
1531
|
+
result = anObject$6(call$5(next, iterator));
|
|
1704
1532
|
done = this.done = !!result.done;
|
|
1705
1533
|
if (done) return;
|
|
1706
1534
|
value = result.value;
|
|
@@ -1710,93 +1538,132 @@ var IteratorProxy$2 = createIteratorProxy$2(function () {
|
|
|
1710
1538
|
|
|
1711
1539
|
// `Iterator.prototype.filter` method
|
|
1712
1540
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1713
|
-
$$
|
|
1541
|
+
$$3({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
|
|
1714
1542
|
filter: function filter(predicate) {
|
|
1715
|
-
anObject$
|
|
1716
|
-
aCallable$
|
|
1543
|
+
anObject$6(this);
|
|
1544
|
+
aCallable$5(predicate);
|
|
1717
1545
|
return new IteratorProxy$2(getIteratorDirect$4(this), {
|
|
1718
1546
|
predicate: predicate
|
|
1719
1547
|
});
|
|
1720
1548
|
}
|
|
1721
1549
|
});
|
|
1722
1550
|
|
|
1723
|
-
var classofRaw = classofRaw$2;
|
|
1724
|
-
var uncurryThis$
|
|
1551
|
+
var classofRaw$1 = classofRaw$2;
|
|
1552
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
1725
1553
|
|
|
1726
1554
|
var functionUncurryThisClause = function (fn) {
|
|
1727
1555
|
// Nashorn bug:
|
|
1728
1556
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1729
1557
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1730
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
1558
|
+
if (classofRaw$1(fn) === 'Function') return uncurryThis$1(fn);
|
|
1731
1559
|
};
|
|
1732
1560
|
|
|
1733
|
-
var uncurryThis
|
|
1734
|
-
var aCallable$
|
|
1735
|
-
var NATIVE_BIND
|
|
1561
|
+
var uncurryThis = functionUncurryThisClause;
|
|
1562
|
+
var aCallable$4 = aCallable$7;
|
|
1563
|
+
var NATIVE_BIND = functionBindNative;
|
|
1736
1564
|
|
|
1737
|
-
var bind$
|
|
1565
|
+
var bind$1 = uncurryThis(uncurryThis.bind);
|
|
1738
1566
|
|
|
1739
1567
|
// optional / simple context binding
|
|
1740
1568
|
var functionBindContext = function (fn, that) {
|
|
1741
|
-
aCallable$
|
|
1742
|
-
return that === undefined ? fn : NATIVE_BIND
|
|
1569
|
+
aCallable$4(fn);
|
|
1570
|
+
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
1743
1571
|
return fn.apply(that, arguments);
|
|
1744
1572
|
};
|
|
1745
1573
|
};
|
|
1746
1574
|
|
|
1747
1575
|
var iterators = {};
|
|
1748
1576
|
|
|
1749
|
-
var wellKnownSymbol$
|
|
1577
|
+
var wellKnownSymbol$3 = wellKnownSymbol$8;
|
|
1750
1578
|
var Iterators$1 = iterators;
|
|
1751
1579
|
|
|
1752
|
-
var ITERATOR$
|
|
1753
|
-
var ArrayPrototype
|
|
1580
|
+
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
|
1581
|
+
var ArrayPrototype = Array.prototype;
|
|
1754
1582
|
|
|
1755
1583
|
// check on default Array iterator
|
|
1756
1584
|
var isArrayIteratorMethod$1 = function (it) {
|
|
1757
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype
|
|
1585
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
|
|
1586
|
+
};
|
|
1587
|
+
|
|
1588
|
+
var wellKnownSymbol$2 = wellKnownSymbol$8;
|
|
1589
|
+
|
|
1590
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
1591
|
+
var test = {};
|
|
1592
|
+
|
|
1593
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
1594
|
+
|
|
1595
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
1596
|
+
|
|
1597
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1598
|
+
var isCallable = isCallable$e;
|
|
1599
|
+
var classofRaw = classofRaw$2;
|
|
1600
|
+
var wellKnownSymbol$1 = wellKnownSymbol$8;
|
|
1601
|
+
|
|
1602
|
+
var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
|
|
1603
|
+
var $Object = Object;
|
|
1604
|
+
|
|
1605
|
+
// ES3 wrong here
|
|
1606
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
1607
|
+
|
|
1608
|
+
// fallback for IE11 Script Access Denied error
|
|
1609
|
+
var tryGet = function (it, key) {
|
|
1610
|
+
try {
|
|
1611
|
+
return it[key];
|
|
1612
|
+
} catch (error) { /* empty */ }
|
|
1613
|
+
};
|
|
1614
|
+
|
|
1615
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
1616
|
+
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1617
|
+
var O, tag, result;
|
|
1618
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1619
|
+
// @@toStringTag case
|
|
1620
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1621
|
+
// builtinTag case
|
|
1622
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1623
|
+
// ES3 arguments fallback
|
|
1624
|
+
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1758
1625
|
};
|
|
1759
1626
|
|
|
1760
|
-
var classof
|
|
1627
|
+
var classof = classof$1;
|
|
1761
1628
|
var getMethod = getMethod$4;
|
|
1762
|
-
var isNullOrUndefined
|
|
1629
|
+
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1763
1630
|
var Iterators = iterators;
|
|
1764
|
-
var wellKnownSymbol
|
|
1631
|
+
var wellKnownSymbol = wellKnownSymbol$8;
|
|
1765
1632
|
|
|
1766
|
-
var ITERATOR
|
|
1633
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1767
1634
|
|
|
1768
1635
|
var getIteratorMethod$3 = function (it) {
|
|
1769
|
-
if (!isNullOrUndefined
|
|
1636
|
+
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
|
1770
1637
|
|| getMethod(it, '@@iterator')
|
|
1771
|
-
|| Iterators[classof
|
|
1638
|
+
|| Iterators[classof(it)];
|
|
1772
1639
|
};
|
|
1773
1640
|
|
|
1774
|
-
var call$
|
|
1775
|
-
var aCallable$
|
|
1776
|
-
var anObject$
|
|
1777
|
-
var tryToString$
|
|
1641
|
+
var call$4 = functionCall;
|
|
1642
|
+
var aCallable$3 = aCallable$7;
|
|
1643
|
+
var anObject$5 = anObject$e;
|
|
1644
|
+
var tryToString$1 = tryToString$3;
|
|
1778
1645
|
var getIteratorMethod$2 = getIteratorMethod$3;
|
|
1779
1646
|
|
|
1780
|
-
var $TypeError$
|
|
1647
|
+
var $TypeError$1 = TypeError;
|
|
1781
1648
|
|
|
1782
1649
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1783
1650
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
|
|
1784
|
-
if (aCallable$
|
|
1785
|
-
throw new $TypeError$
|
|
1651
|
+
if (aCallable$3(iteratorMethod)) return anObject$5(call$4(iteratorMethod, argument));
|
|
1652
|
+
throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
|
|
1786
1653
|
};
|
|
1787
1654
|
|
|
1788
|
-
var bind
|
|
1789
|
-
var call$
|
|
1790
|
-
var anObject$
|
|
1791
|
-
var tryToString
|
|
1655
|
+
var bind = functionBindContext;
|
|
1656
|
+
var call$3 = functionCall;
|
|
1657
|
+
var anObject$4 = anObject$e;
|
|
1658
|
+
var tryToString = tryToString$3;
|
|
1792
1659
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1793
|
-
var lengthOfArrayLike
|
|
1794
|
-
var isPrototypeOf
|
|
1660
|
+
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
1661
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
1795
1662
|
var getIterator = getIterator$1;
|
|
1796
1663
|
var getIteratorMethod$1 = getIteratorMethod$3;
|
|
1797
1664
|
var iteratorClose$1 = iteratorClose$4;
|
|
1798
1665
|
|
|
1799
|
-
var $TypeError
|
|
1666
|
+
var $TypeError = TypeError;
|
|
1800
1667
|
|
|
1801
1668
|
var Result = function (stopped, result) {
|
|
1802
1669
|
this.stopped = stopped;
|
|
@@ -1805,13 +1672,13 @@ var Result = function (stopped, result) {
|
|
|
1805
1672
|
|
|
1806
1673
|
var ResultPrototype = Result.prototype;
|
|
1807
1674
|
|
|
1808
|
-
var iterate$
|
|
1675
|
+
var iterate$1 = function (iterable, unboundFunction, options) {
|
|
1809
1676
|
var that = options && options.that;
|
|
1810
1677
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1811
1678
|
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1812
1679
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1813
1680
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1814
|
-
var fn = bind
|
|
1681
|
+
var fn = bind(unboundFunction, that);
|
|
1815
1682
|
var iterator, iterFn, index, length, result, next, step;
|
|
1816
1683
|
|
|
1817
1684
|
var stop = function (condition) {
|
|
@@ -1821,7 +1688,7 @@ var iterate$3 = function (iterable, unboundFunction, options) {
|
|
|
1821
1688
|
|
|
1822
1689
|
var callFn = function (value) {
|
|
1823
1690
|
if (AS_ENTRIES) {
|
|
1824
|
-
anObject$
|
|
1691
|
+
anObject$4(value);
|
|
1825
1692
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1826
1693
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1827
1694
|
};
|
|
@@ -1832,58 +1699,58 @@ var iterate$3 = function (iterable, unboundFunction, options) {
|
|
|
1832
1699
|
iterator = iterable;
|
|
1833
1700
|
} else {
|
|
1834
1701
|
iterFn = getIteratorMethod$1(iterable);
|
|
1835
|
-
if (!iterFn) throw new $TypeError
|
|
1702
|
+
if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
|
|
1836
1703
|
// optimisation for array iterators
|
|
1837
1704
|
if (isArrayIteratorMethod(iterFn)) {
|
|
1838
|
-
for (index = 0, length = lengthOfArrayLike
|
|
1705
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1839
1706
|
result = callFn(iterable[index]);
|
|
1840
|
-
if (result && isPrototypeOf
|
|
1707
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1841
1708
|
} return new Result(false);
|
|
1842
1709
|
}
|
|
1843
1710
|
iterator = getIterator(iterable, iterFn);
|
|
1844
1711
|
}
|
|
1845
1712
|
|
|
1846
1713
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1847
|
-
while (!(step = call$
|
|
1714
|
+
while (!(step = call$3(next, iterator)).done) {
|
|
1848
1715
|
try {
|
|
1849
1716
|
result = callFn(step.value);
|
|
1850
1717
|
} catch (error) {
|
|
1851
1718
|
iteratorClose$1(iterator, 'throw', error);
|
|
1852
1719
|
}
|
|
1853
|
-
if (typeof result == 'object' && result && isPrototypeOf
|
|
1720
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1854
1721
|
} return new Result(false);
|
|
1855
1722
|
};
|
|
1856
1723
|
|
|
1857
|
-
var $$
|
|
1858
|
-
var iterate
|
|
1859
|
-
var aCallable$
|
|
1860
|
-
var anObject$
|
|
1724
|
+
var $$2 = _export;
|
|
1725
|
+
var iterate = iterate$1;
|
|
1726
|
+
var aCallable$2 = aCallable$7;
|
|
1727
|
+
var anObject$3 = anObject$e;
|
|
1861
1728
|
var getIteratorDirect$3 = getIteratorDirect$5;
|
|
1862
1729
|
|
|
1863
1730
|
// `Iterator.prototype.forEach` method
|
|
1864
1731
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1865
|
-
$$
|
|
1732
|
+
$$2({ target: 'Iterator', proto: true, real: true }, {
|
|
1866
1733
|
forEach: function forEach(fn) {
|
|
1867
|
-
anObject$
|
|
1868
|
-
aCallable$
|
|
1734
|
+
anObject$3(this);
|
|
1735
|
+
aCallable$2(fn);
|
|
1869
1736
|
var record = getIteratorDirect$3(this);
|
|
1870
1737
|
var counter = 0;
|
|
1871
|
-
iterate
|
|
1738
|
+
iterate(record, function (value) {
|
|
1872
1739
|
fn(value, counter++);
|
|
1873
1740
|
}, { IS_RECORD: true });
|
|
1874
1741
|
}
|
|
1875
1742
|
});
|
|
1876
1743
|
|
|
1877
|
-
var call$
|
|
1878
|
-
var aCallable$
|
|
1879
|
-
var anObject$
|
|
1744
|
+
var call$2 = functionCall;
|
|
1745
|
+
var aCallable$1 = aCallable$7;
|
|
1746
|
+
var anObject$2 = anObject$e;
|
|
1880
1747
|
var getIteratorDirect$2 = getIteratorDirect$5;
|
|
1881
1748
|
var createIteratorProxy$1 = iteratorCreateProxy;
|
|
1882
1749
|
var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
|
|
1883
1750
|
|
|
1884
1751
|
var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
1885
1752
|
var iterator = this.iterator;
|
|
1886
|
-
var result = anObject$
|
|
1753
|
+
var result = anObject$2(call$2(this.next, iterator));
|
|
1887
1754
|
var done = this.done = !!result.done;
|
|
1888
1755
|
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
|
1889
1756
|
});
|
|
@@ -1891,20 +1758,20 @@ var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
|
1891
1758
|
// `Iterator.prototype.map` method
|
|
1892
1759
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1893
1760
|
var iteratorMap = function map(mapper) {
|
|
1894
|
-
anObject$
|
|
1895
|
-
aCallable$
|
|
1761
|
+
anObject$2(this);
|
|
1762
|
+
aCallable$1(mapper);
|
|
1896
1763
|
return new IteratorProxy$1(getIteratorDirect$2(this), {
|
|
1897
1764
|
mapper: mapper
|
|
1898
1765
|
});
|
|
1899
1766
|
};
|
|
1900
1767
|
|
|
1901
|
-
var $$
|
|
1768
|
+
var $$1 = _export;
|
|
1902
1769
|
var map = iteratorMap;
|
|
1903
1770
|
var IS_PURE$1 = isPure;
|
|
1904
1771
|
|
|
1905
1772
|
// `Iterator.prototype.map` method
|
|
1906
1773
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1907
|
-
$$
|
|
1774
|
+
$$1({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
1908
1775
|
map: map
|
|
1909
1776
|
});
|
|
1910
1777
|
|
|
@@ -1916,22 +1783,22 @@ $$9({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
|
1916
1783
|
* @returns
|
|
1917
1784
|
*/
|
|
1918
1785
|
function zohoFetchPageFactory(fetch$1, defaults) {
|
|
1919
|
-
return fetch.fetchPageFactory(
|
|
1786
|
+
return fetch.fetchPageFactory({
|
|
1787
|
+
...defaults,
|
|
1920
1788
|
fetch: fetch$1,
|
|
1921
1789
|
readFetchPageResultInfo: function (result) {
|
|
1922
|
-
var _result$info$more_rec, _result$info;
|
|
1923
1790
|
return {
|
|
1924
|
-
hasNext:
|
|
1791
|
+
hasNext: result.info?.more_records ?? false // if no info is returned, assume something wrong and there are no more records
|
|
1925
1792
|
};
|
|
1926
1793
|
},
|
|
1927
1794
|
buildInputForNextPage: function (pageResult, input, options) {
|
|
1928
|
-
|
|
1929
|
-
|
|
1795
|
+
return {
|
|
1796
|
+
...input,
|
|
1930
1797
|
page: util.getNextPageNumber(pageResult),
|
|
1931
|
-
per_page:
|
|
1932
|
-
}
|
|
1798
|
+
per_page: options.maxItemsPerPage ?? input.per_page
|
|
1799
|
+
};
|
|
1933
1800
|
}
|
|
1934
|
-
})
|
|
1801
|
+
});
|
|
1935
1802
|
}
|
|
1936
1803
|
|
|
1937
1804
|
const ZOHO_RECRUIT_SERVICE_NAME = 'recruit';
|
|
@@ -1946,192 +1813,26 @@ function zohoRecruitConfigApiUrl(input) {
|
|
|
1946
1813
|
}
|
|
1947
1814
|
}
|
|
1948
1815
|
|
|
1949
|
-
var
|
|
1950
|
-
var
|
|
1951
|
-
var
|
|
1952
|
-
var
|
|
1953
|
-
|
|
1954
|
-
// `FlattenIntoArray` abstract operation
|
|
1955
|
-
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
|
|
1956
|
-
var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
|
|
1957
|
-
var targetIndex = start;
|
|
1958
|
-
var sourceIndex = 0;
|
|
1959
|
-
var mapFn = mapper ? bind$3(mapper, thisArg) : false;
|
|
1960
|
-
var element, elementLen;
|
|
1961
|
-
|
|
1962
|
-
while (sourceIndex < sourceLen) {
|
|
1963
|
-
if (sourceIndex in source) {
|
|
1964
|
-
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
|
|
1965
|
-
|
|
1966
|
-
if (depth > 0 && isArray$1(element)) {
|
|
1967
|
-
elementLen = lengthOfArrayLike$1(element);
|
|
1968
|
-
targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
|
|
1969
|
-
} else {
|
|
1970
|
-
doesNotExceedSafeInteger(targetIndex + 1);
|
|
1971
|
-
target[targetIndex] = element;
|
|
1972
|
-
}
|
|
1816
|
+
var call$1 = functionCall;
|
|
1817
|
+
var anObject$1 = anObject$e;
|
|
1818
|
+
var getIteratorDirect$1 = getIteratorDirect$5;
|
|
1819
|
+
var getIteratorMethod = getIteratorMethod$3;
|
|
1973
1820
|
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
return targetIndex;
|
|
1821
|
+
var getIteratorFlattenable$1 = function (obj, stringHandling) {
|
|
1822
|
+
if (!stringHandling || typeof obj !== 'string') anObject$1(obj);
|
|
1823
|
+
var method = getIteratorMethod(obj);
|
|
1824
|
+
return getIteratorDirect$1(anObject$1(method !== undefined ? call$1(method, obj) : obj));
|
|
1979
1825
|
};
|
|
1980
1826
|
|
|
1981
|
-
var
|
|
1982
|
-
|
|
1983
|
-
var
|
|
1984
|
-
var
|
|
1985
|
-
var
|
|
1986
|
-
var
|
|
1987
|
-
var
|
|
1988
|
-
var
|
|
1989
|
-
|
|
1990
|
-
var noop = function () { /* empty */ };
|
|
1991
|
-
var construct = getBuiltIn$4('Reflect', 'construct');
|
|
1992
|
-
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1993
|
-
var exec = uncurryThis$3(constructorRegExp.exec);
|
|
1994
|
-
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1995
|
-
|
|
1996
|
-
var isConstructorModern = function isConstructor(argument) {
|
|
1997
|
-
if (!isCallable$5(argument)) return false;
|
|
1998
|
-
try {
|
|
1999
|
-
construct(noop, [], argument);
|
|
2000
|
-
return true;
|
|
2001
|
-
} catch (error) {
|
|
2002
|
-
return false;
|
|
2003
|
-
}
|
|
2004
|
-
};
|
|
2005
|
-
|
|
2006
|
-
var isConstructorLegacy = function isConstructor(argument) {
|
|
2007
|
-
if (!isCallable$5(argument)) return false;
|
|
2008
|
-
switch (classof$1(argument)) {
|
|
2009
|
-
case 'AsyncFunction':
|
|
2010
|
-
case 'GeneratorFunction':
|
|
2011
|
-
case 'AsyncGeneratorFunction': return false;
|
|
2012
|
-
}
|
|
2013
|
-
try {
|
|
2014
|
-
// we can't check .prototype since constructors produced by .bind haven't it
|
|
2015
|
-
// `Function#toString` throws on some built-it function in some legacy engines
|
|
2016
|
-
// (for example, `DOMQuad` and similar in FF41-)
|
|
2017
|
-
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
2018
|
-
} catch (error) {
|
|
2019
|
-
return true;
|
|
2020
|
-
}
|
|
2021
|
-
};
|
|
2022
|
-
|
|
2023
|
-
isConstructorLegacy.sham = true;
|
|
2024
|
-
|
|
2025
|
-
// `IsConstructor` abstract operation
|
|
2026
|
-
// https://tc39.es/ecma262/#sec-isconstructor
|
|
2027
|
-
var isConstructor$2 = !construct || fails$2(function () {
|
|
2028
|
-
var called;
|
|
2029
|
-
return isConstructorModern(isConstructorModern.call)
|
|
2030
|
-
|| !isConstructorModern(Object)
|
|
2031
|
-
|| !isConstructorModern(function () { called = true; })
|
|
2032
|
-
|| called;
|
|
2033
|
-
}) ? isConstructorLegacy : isConstructorModern;
|
|
2034
|
-
|
|
2035
|
-
var isArray = isArray$3;
|
|
2036
|
-
var isConstructor$1 = isConstructor$2;
|
|
2037
|
-
var isObject$6 = isObject$d;
|
|
2038
|
-
var wellKnownSymbol$6 = wellKnownSymbol$f;
|
|
2039
|
-
|
|
2040
|
-
var SPECIES$3 = wellKnownSymbol$6('species');
|
|
2041
|
-
var $Array = Array;
|
|
2042
|
-
|
|
2043
|
-
// a part of `ArraySpeciesCreate` abstract operation
|
|
2044
|
-
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
2045
|
-
var arraySpeciesConstructor$1 = function (originalArray) {
|
|
2046
|
-
var C;
|
|
2047
|
-
if (isArray(originalArray)) {
|
|
2048
|
-
C = originalArray.constructor;
|
|
2049
|
-
// cross-realm fallback
|
|
2050
|
-
if (isConstructor$1(C) && (C === $Array || isArray(C.prototype))) C = undefined;
|
|
2051
|
-
else if (isObject$6(C)) {
|
|
2052
|
-
C = C[SPECIES$3];
|
|
2053
|
-
if (C === null) C = undefined;
|
|
2054
|
-
}
|
|
2055
|
-
} return C === undefined ? $Array : C;
|
|
2056
|
-
};
|
|
2057
|
-
|
|
2058
|
-
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
2059
|
-
|
|
2060
|
-
// `ArraySpeciesCreate` abstract operation
|
|
2061
|
-
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
2062
|
-
var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
2063
|
-
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
2064
|
-
};
|
|
2065
|
-
|
|
2066
|
-
var $$8 = _export;
|
|
2067
|
-
var flattenIntoArray = flattenIntoArray_1;
|
|
2068
|
-
var aCallable$6 = aCallable$d;
|
|
2069
|
-
var toObject = toObject$5;
|
|
2070
|
-
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
2071
|
-
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
2072
|
-
|
|
2073
|
-
// `Array.prototype.flatMap` method
|
|
2074
|
-
// https://tc39.es/ecma262/#sec-array.prototype.flatmap
|
|
2075
|
-
$$8({ target: 'Array', proto: true }, {
|
|
2076
|
-
flatMap: function flatMap(callbackfn /* , thisArg */) {
|
|
2077
|
-
var O = toObject(this);
|
|
2078
|
-
var sourceLen = lengthOfArrayLike(O);
|
|
2079
|
-
var A;
|
|
2080
|
-
aCallable$6(callbackfn);
|
|
2081
|
-
A = arraySpeciesCreate(O, 0);
|
|
2082
|
-
A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
2083
|
-
return A;
|
|
2084
|
-
}
|
|
2085
|
-
});
|
|
2086
|
-
|
|
2087
|
-
var wellKnownSymbol$5 = wellKnownSymbol$f;
|
|
2088
|
-
var create = objectCreate;
|
|
2089
|
-
var defineProperty$2 = objectDefineProperty.f;
|
|
2090
|
-
|
|
2091
|
-
var UNSCOPABLES = wellKnownSymbol$5('unscopables');
|
|
2092
|
-
var ArrayPrototype = Array.prototype;
|
|
2093
|
-
|
|
2094
|
-
// Array.prototype[@@unscopables]
|
|
2095
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2096
|
-
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
2097
|
-
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
2098
|
-
configurable: true,
|
|
2099
|
-
value: create(null)
|
|
2100
|
-
});
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
// add a key to Array.prototype[@@unscopables]
|
|
2104
|
-
var addToUnscopables$1 = function (key) {
|
|
2105
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
2106
|
-
};
|
|
2107
|
-
|
|
2108
|
-
// this method was added to unscopables after implementation
|
|
2109
|
-
// in popular engines, so it's moved to a separate module
|
|
2110
|
-
var addToUnscopables = addToUnscopables$1;
|
|
2111
|
-
|
|
2112
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2113
|
-
addToUnscopables('flatMap');
|
|
2114
|
-
|
|
2115
|
-
var call$5 = functionCall;
|
|
2116
|
-
var anObject$3 = anObject$i;
|
|
2117
|
-
var getIteratorDirect$1 = getIteratorDirect$5;
|
|
2118
|
-
var getIteratorMethod = getIteratorMethod$3;
|
|
2119
|
-
|
|
2120
|
-
var getIteratorFlattenable$1 = function (obj, stringHandling) {
|
|
2121
|
-
if (!stringHandling || typeof obj !== 'string') anObject$3(obj);
|
|
2122
|
-
var method = getIteratorMethod(obj);
|
|
2123
|
-
return getIteratorDirect$1(anObject$3(method !== undefined ? call$5(method, obj) : obj));
|
|
2124
|
-
};
|
|
2125
|
-
|
|
2126
|
-
var $$7 = _export;
|
|
2127
|
-
var call$4 = functionCall;
|
|
2128
|
-
var aCallable$5 = aCallable$d;
|
|
2129
|
-
var anObject$2 = anObject$i;
|
|
2130
|
-
var getIteratorDirect = getIteratorDirect$5;
|
|
2131
|
-
var getIteratorFlattenable = getIteratorFlattenable$1;
|
|
2132
|
-
var createIteratorProxy = iteratorCreateProxy;
|
|
2133
|
-
var iteratorClose = iteratorClose$4;
|
|
2134
|
-
var IS_PURE = isPure;
|
|
1827
|
+
var $ = _export;
|
|
1828
|
+
var call = functionCall;
|
|
1829
|
+
var aCallable = aCallable$7;
|
|
1830
|
+
var anObject = anObject$e;
|
|
1831
|
+
var getIteratorDirect = getIteratorDirect$5;
|
|
1832
|
+
var getIteratorFlattenable = getIteratorFlattenable$1;
|
|
1833
|
+
var createIteratorProxy = iteratorCreateProxy;
|
|
1834
|
+
var iteratorClose = iteratorClose$4;
|
|
1835
|
+
var IS_PURE = isPure;
|
|
2135
1836
|
|
|
2136
1837
|
var IteratorProxy = createIteratorProxy(function () {
|
|
2137
1838
|
var iterator = this.iterator;
|
|
@@ -2140,12 +1841,12 @@ var IteratorProxy = createIteratorProxy(function () {
|
|
|
2140
1841
|
|
|
2141
1842
|
while (true) {
|
|
2142
1843
|
if (inner = this.inner) try {
|
|
2143
|
-
result = anObject
|
|
1844
|
+
result = anObject(call(inner.next, inner.iterator));
|
|
2144
1845
|
if (!result.done) return result.value;
|
|
2145
1846
|
this.inner = null;
|
|
2146
1847
|
} catch (error) { iteratorClose(iterator, 'throw', error); }
|
|
2147
1848
|
|
|
2148
|
-
result = anObject
|
|
1849
|
+
result = anObject(call(this.next, iterator));
|
|
2149
1850
|
|
|
2150
1851
|
if (this.done = !!result.done) return;
|
|
2151
1852
|
|
|
@@ -2157,10 +1858,10 @@ var IteratorProxy = createIteratorProxy(function () {
|
|
|
2157
1858
|
|
|
2158
1859
|
// `Iterator.prototype.flatMap` method
|
|
2159
1860
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
2160
|
-
|
|
1861
|
+
$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
2161
1862
|
flatMap: function flatMap(mapper) {
|
|
2162
|
-
anObject
|
|
2163
|
-
aCallable
|
|
1863
|
+
anObject(this);
|
|
1864
|
+
aCallable(mapper);
|
|
2164
1865
|
return new IteratorProxy(getIteratorDirect(this), {
|
|
2165
1866
|
mapper: mapper,
|
|
2166
1867
|
inner: null
|
|
@@ -2254,958 +1955,6 @@ function zohoRecruitSearchRecordsCriteriaEntryToCriteriaString(entry) {
|
|
|
2254
1955
|
return `(${entry.field}:${entry.filter}:${escapedValue})`;
|
|
2255
1956
|
}
|
|
2256
1957
|
|
|
2257
|
-
var global$8 = global$j;
|
|
2258
|
-
var classof = classofRaw$2;
|
|
2259
|
-
|
|
2260
|
-
var engineIsNode = classof(global$8.process) === 'process';
|
|
2261
|
-
|
|
2262
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
2263
|
-
var aCallable$4 = aCallable$d;
|
|
2264
|
-
|
|
2265
|
-
var functionUncurryThisAccessor = function (object, key, method) {
|
|
2266
|
-
try {
|
|
2267
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2268
|
-
return uncurryThis$2(aCallable$4(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
2269
|
-
} catch (error) { /* empty */ }
|
|
2270
|
-
};
|
|
2271
|
-
|
|
2272
|
-
var isObject$5 = isObject$d;
|
|
2273
|
-
|
|
2274
|
-
var isPossiblePrototype$1 = function (argument) {
|
|
2275
|
-
return isObject$5(argument) || argument === null;
|
|
2276
|
-
};
|
|
2277
|
-
|
|
2278
|
-
var isPossiblePrototype = isPossiblePrototype$1;
|
|
2279
|
-
|
|
2280
|
-
var $String = String;
|
|
2281
|
-
var $TypeError$3 = TypeError;
|
|
2282
|
-
|
|
2283
|
-
var aPossiblePrototype$1 = function (argument) {
|
|
2284
|
-
if (isPossiblePrototype(argument)) return argument;
|
|
2285
|
-
throw new $TypeError$3("Can't set " + $String(argument) + ' as a prototype');
|
|
2286
|
-
};
|
|
2287
|
-
|
|
2288
|
-
/* eslint-disable no-proto -- safe */
|
|
2289
|
-
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
2290
|
-
var isObject$4 = isObject$d;
|
|
2291
|
-
var requireObjectCoercible = requireObjectCoercible$3;
|
|
2292
|
-
var aPossiblePrototype = aPossiblePrototype$1;
|
|
2293
|
-
|
|
2294
|
-
// `Object.setPrototypeOf` method
|
|
2295
|
-
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
2296
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
2297
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
2298
|
-
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
2299
|
-
var CORRECT_SETTER = false;
|
|
2300
|
-
var test = {};
|
|
2301
|
-
var setter;
|
|
2302
|
-
try {
|
|
2303
|
-
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
2304
|
-
setter(test, []);
|
|
2305
|
-
CORRECT_SETTER = test instanceof Array;
|
|
2306
|
-
} catch (error) { /* empty */ }
|
|
2307
|
-
return function setPrototypeOf(O, proto) {
|
|
2308
|
-
requireObjectCoercible(O);
|
|
2309
|
-
aPossiblePrototype(proto);
|
|
2310
|
-
if (!isObject$4(O)) return O;
|
|
2311
|
-
if (CORRECT_SETTER) setter(O, proto);
|
|
2312
|
-
else O.__proto__ = proto;
|
|
2313
|
-
return O;
|
|
2314
|
-
};
|
|
2315
|
-
}() : undefined);
|
|
2316
|
-
|
|
2317
|
-
var defineProperty$1 = objectDefineProperty.f;
|
|
2318
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
2319
|
-
var wellKnownSymbol$4 = wellKnownSymbol$f;
|
|
2320
|
-
|
|
2321
|
-
var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
|
|
2322
|
-
|
|
2323
|
-
var setToStringTag$1 = function (target, TAG, STATIC) {
|
|
2324
|
-
if (target && !STATIC) target = target.prototype;
|
|
2325
|
-
if (target && !hasOwn$2(target, TO_STRING_TAG)) {
|
|
2326
|
-
defineProperty$1(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
2327
|
-
}
|
|
2328
|
-
};
|
|
2329
|
-
|
|
2330
|
-
var getBuiltIn$3 = getBuiltIn$8;
|
|
2331
|
-
var defineBuiltInAccessor = defineBuiltInAccessor$2;
|
|
2332
|
-
var wellKnownSymbol$3 = wellKnownSymbol$f;
|
|
2333
|
-
var DESCRIPTORS$2 = descriptors;
|
|
2334
|
-
|
|
2335
|
-
var SPECIES$2 = wellKnownSymbol$3('species');
|
|
2336
|
-
|
|
2337
|
-
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
2338
|
-
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
2339
|
-
|
|
2340
|
-
if (DESCRIPTORS$2 && Constructor && !Constructor[SPECIES$2]) {
|
|
2341
|
-
defineBuiltInAccessor(Constructor, SPECIES$2, {
|
|
2342
|
-
configurable: true,
|
|
2343
|
-
get: function () { return this; }
|
|
2344
|
-
});
|
|
2345
|
-
}
|
|
2346
|
-
};
|
|
2347
|
-
|
|
2348
|
-
var isConstructor = isConstructor$2;
|
|
2349
|
-
var tryToString = tryToString$4;
|
|
2350
|
-
|
|
2351
|
-
var $TypeError$2 = TypeError;
|
|
2352
|
-
|
|
2353
|
-
// `Assert: IsConstructor(argument) is true`
|
|
2354
|
-
var aConstructor$1 = function (argument) {
|
|
2355
|
-
if (isConstructor(argument)) return argument;
|
|
2356
|
-
throw new $TypeError$2(tryToString(argument) + ' is not a constructor');
|
|
2357
|
-
};
|
|
2358
|
-
|
|
2359
|
-
var anObject$1 = anObject$i;
|
|
2360
|
-
var aConstructor = aConstructor$1;
|
|
2361
|
-
var isNullOrUndefined = isNullOrUndefined$4;
|
|
2362
|
-
var wellKnownSymbol$2 = wellKnownSymbol$f;
|
|
2363
|
-
|
|
2364
|
-
var SPECIES$1 = wellKnownSymbol$2('species');
|
|
2365
|
-
|
|
2366
|
-
// `SpeciesConstructor` abstract operation
|
|
2367
|
-
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
2368
|
-
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
2369
|
-
var C = anObject$1(O).constructor;
|
|
2370
|
-
var S;
|
|
2371
|
-
return C === undefined || isNullOrUndefined(S = anObject$1(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
2372
|
-
};
|
|
2373
|
-
|
|
2374
|
-
var NATIVE_BIND = functionBindNative;
|
|
2375
|
-
|
|
2376
|
-
var FunctionPrototype = Function.prototype;
|
|
2377
|
-
var apply$2 = FunctionPrototype.apply;
|
|
2378
|
-
var call$3 = FunctionPrototype.call;
|
|
2379
|
-
|
|
2380
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
2381
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$2) : function () {
|
|
2382
|
-
return call$3.apply(apply$2, arguments);
|
|
2383
|
-
});
|
|
2384
|
-
|
|
2385
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
2386
|
-
|
|
2387
|
-
var arraySlice$1 = uncurryThis$1([].slice);
|
|
2388
|
-
|
|
2389
|
-
var $TypeError$1 = TypeError;
|
|
2390
|
-
|
|
2391
|
-
var validateArgumentsLength$1 = function (passed, required) {
|
|
2392
|
-
if (passed < required) throw new $TypeError$1('Not enough arguments');
|
|
2393
|
-
return passed;
|
|
2394
|
-
};
|
|
2395
|
-
|
|
2396
|
-
var userAgent$2 = engineUserAgent;
|
|
2397
|
-
|
|
2398
|
-
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2399
|
-
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
2400
|
-
|
|
2401
|
-
var global$7 = global$j;
|
|
2402
|
-
var apply$1 = functionApply;
|
|
2403
|
-
var bind$2 = functionBindContext;
|
|
2404
|
-
var isCallable$4 = isCallable$k;
|
|
2405
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
2406
|
-
var fails$1 = fails$h;
|
|
2407
|
-
var html = html$2;
|
|
2408
|
-
var arraySlice = arraySlice$1;
|
|
2409
|
-
var createElement = documentCreateElement$1;
|
|
2410
|
-
var validateArgumentsLength = validateArgumentsLength$1;
|
|
2411
|
-
var IS_IOS$1 = engineIsIos;
|
|
2412
|
-
var IS_NODE$3 = engineIsNode;
|
|
2413
|
-
|
|
2414
|
-
var set = global$7.setImmediate;
|
|
2415
|
-
var clear = global$7.clearImmediate;
|
|
2416
|
-
var process$2 = global$7.process;
|
|
2417
|
-
var Dispatch = global$7.Dispatch;
|
|
2418
|
-
var Function$1 = global$7.Function;
|
|
2419
|
-
var MessageChannel = global$7.MessageChannel;
|
|
2420
|
-
var String$1 = global$7.String;
|
|
2421
|
-
var counter = 0;
|
|
2422
|
-
var queue$2 = {};
|
|
2423
|
-
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2424
|
-
var $location, defer, channel, port;
|
|
2425
|
-
|
|
2426
|
-
fails$1(function () {
|
|
2427
|
-
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2428
|
-
$location = global$7.location;
|
|
2429
|
-
});
|
|
2430
|
-
|
|
2431
|
-
var run = function (id) {
|
|
2432
|
-
if (hasOwn$1(queue$2, id)) {
|
|
2433
|
-
var fn = queue$2[id];
|
|
2434
|
-
delete queue$2[id];
|
|
2435
|
-
fn();
|
|
2436
|
-
}
|
|
2437
|
-
};
|
|
2438
|
-
|
|
2439
|
-
var runner = function (id) {
|
|
2440
|
-
return function () {
|
|
2441
|
-
run(id);
|
|
2442
|
-
};
|
|
2443
|
-
};
|
|
2444
|
-
|
|
2445
|
-
var eventListener = function (event) {
|
|
2446
|
-
run(event.data);
|
|
2447
|
-
};
|
|
2448
|
-
|
|
2449
|
-
var globalPostMessageDefer = function (id) {
|
|
2450
|
-
// old engines have not location.origin
|
|
2451
|
-
global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
2452
|
-
};
|
|
2453
|
-
|
|
2454
|
-
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
2455
|
-
if (!set || !clear) {
|
|
2456
|
-
set = function setImmediate(handler) {
|
|
2457
|
-
validateArgumentsLength(arguments.length, 1);
|
|
2458
|
-
var fn = isCallable$4(handler) ? handler : Function$1(handler);
|
|
2459
|
-
var args = arraySlice(arguments, 1);
|
|
2460
|
-
queue$2[++counter] = function () {
|
|
2461
|
-
apply$1(fn, undefined, args);
|
|
2462
|
-
};
|
|
2463
|
-
defer(counter);
|
|
2464
|
-
return counter;
|
|
2465
|
-
};
|
|
2466
|
-
clear = function clearImmediate(id) {
|
|
2467
|
-
delete queue$2[id];
|
|
2468
|
-
};
|
|
2469
|
-
// Node.js 0.8-
|
|
2470
|
-
if (IS_NODE$3) {
|
|
2471
|
-
defer = function (id) {
|
|
2472
|
-
process$2.nextTick(runner(id));
|
|
2473
|
-
};
|
|
2474
|
-
// Sphere (JS game engine) Dispatch API
|
|
2475
|
-
} else if (Dispatch && Dispatch.now) {
|
|
2476
|
-
defer = function (id) {
|
|
2477
|
-
Dispatch.now(runner(id));
|
|
2478
|
-
};
|
|
2479
|
-
// Browsers with MessageChannel, includes WebWorkers
|
|
2480
|
-
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
2481
|
-
} else if (MessageChannel && !IS_IOS$1) {
|
|
2482
|
-
channel = new MessageChannel();
|
|
2483
|
-
port = channel.port2;
|
|
2484
|
-
channel.port1.onmessage = eventListener;
|
|
2485
|
-
defer = bind$2(port.postMessage, port);
|
|
2486
|
-
// Browsers with postMessage, skip WebWorkers
|
|
2487
|
-
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2488
|
-
} else if (
|
|
2489
|
-
global$7.addEventListener &&
|
|
2490
|
-
isCallable$4(global$7.postMessage) &&
|
|
2491
|
-
!global$7.importScripts &&
|
|
2492
|
-
$location && $location.protocol !== 'file:' &&
|
|
2493
|
-
!fails$1(globalPostMessageDefer)
|
|
2494
|
-
) {
|
|
2495
|
-
defer = globalPostMessageDefer;
|
|
2496
|
-
global$7.addEventListener('message', eventListener, false);
|
|
2497
|
-
// IE8-
|
|
2498
|
-
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2499
|
-
defer = function (id) {
|
|
2500
|
-
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
2501
|
-
html.removeChild(this);
|
|
2502
|
-
run(id);
|
|
2503
|
-
};
|
|
2504
|
-
};
|
|
2505
|
-
// Rest old browsers
|
|
2506
|
-
} else {
|
|
2507
|
-
defer = function (id) {
|
|
2508
|
-
setTimeout(runner(id), 0);
|
|
2509
|
-
};
|
|
2510
|
-
}
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
var task$1 = {
|
|
2514
|
-
set: set,
|
|
2515
|
-
clear: clear
|
|
2516
|
-
};
|
|
2517
|
-
|
|
2518
|
-
var global$6 = global$j;
|
|
2519
|
-
var DESCRIPTORS$1 = descriptors;
|
|
2520
|
-
|
|
2521
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2522
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2523
|
-
|
|
2524
|
-
// Avoid NodeJS experimental warning
|
|
2525
|
-
var safeGetBuiltIn$1 = function (name) {
|
|
2526
|
-
if (!DESCRIPTORS$1) return global$6[name];
|
|
2527
|
-
var descriptor = getOwnPropertyDescriptor(global$6, name);
|
|
2528
|
-
return descriptor && descriptor.value;
|
|
2529
|
-
};
|
|
2530
|
-
|
|
2531
|
-
var Queue$2 = function () {
|
|
2532
|
-
this.head = null;
|
|
2533
|
-
this.tail = null;
|
|
2534
|
-
};
|
|
2535
|
-
|
|
2536
|
-
Queue$2.prototype = {
|
|
2537
|
-
add: function (item) {
|
|
2538
|
-
var entry = { item: item, next: null };
|
|
2539
|
-
var tail = this.tail;
|
|
2540
|
-
if (tail) tail.next = entry;
|
|
2541
|
-
else this.head = entry;
|
|
2542
|
-
this.tail = entry;
|
|
2543
|
-
},
|
|
2544
|
-
get: function () {
|
|
2545
|
-
var entry = this.head;
|
|
2546
|
-
if (entry) {
|
|
2547
|
-
var next = this.head = entry.next;
|
|
2548
|
-
if (next === null) this.tail = null;
|
|
2549
|
-
return entry.item;
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
};
|
|
2553
|
-
|
|
2554
|
-
var queue$1 = Queue$2;
|
|
2555
|
-
|
|
2556
|
-
var userAgent$1 = engineUserAgent;
|
|
2557
|
-
|
|
2558
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
|
|
2559
|
-
|
|
2560
|
-
var userAgent = engineUserAgent;
|
|
2561
|
-
|
|
2562
|
-
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2563
|
-
|
|
2564
|
-
var global$5 = global$j;
|
|
2565
|
-
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
2566
|
-
var bind$1 = functionBindContext;
|
|
2567
|
-
var macrotask = task$1.set;
|
|
2568
|
-
var Queue$1 = queue$1;
|
|
2569
|
-
var IS_IOS = engineIsIos;
|
|
2570
|
-
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
2571
|
-
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
2572
|
-
var IS_NODE$2 = engineIsNode;
|
|
2573
|
-
|
|
2574
|
-
var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
|
|
2575
|
-
var document$2 = global$5.document;
|
|
2576
|
-
var process$1 = global$5.process;
|
|
2577
|
-
var Promise$1 = global$5.Promise;
|
|
2578
|
-
var microtask$1 = safeGetBuiltIn('queueMicrotask');
|
|
2579
|
-
var notify$1, toggle, node, promise, then;
|
|
2580
|
-
|
|
2581
|
-
// modern engines have queueMicrotask method
|
|
2582
|
-
if (!microtask$1) {
|
|
2583
|
-
var queue = new Queue$1();
|
|
2584
|
-
|
|
2585
|
-
var flush = function () {
|
|
2586
|
-
var parent, fn;
|
|
2587
|
-
if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
|
|
2588
|
-
while (fn = queue.get()) try {
|
|
2589
|
-
fn();
|
|
2590
|
-
} catch (error) {
|
|
2591
|
-
if (queue.head) notify$1();
|
|
2592
|
-
throw error;
|
|
2593
|
-
}
|
|
2594
|
-
if (parent) parent.enter();
|
|
2595
|
-
};
|
|
2596
|
-
|
|
2597
|
-
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
2598
|
-
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
2599
|
-
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
2600
|
-
toggle = true;
|
|
2601
|
-
node = document$2.createTextNode('');
|
|
2602
|
-
new MutationObserver(flush).observe(node, { characterData: true });
|
|
2603
|
-
notify$1 = function () {
|
|
2604
|
-
node.data = toggle = !toggle;
|
|
2605
|
-
};
|
|
2606
|
-
// environments with maybe non-completely correct, but existent Promise
|
|
2607
|
-
} else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
|
|
2608
|
-
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
2609
|
-
promise = Promise$1.resolve(undefined);
|
|
2610
|
-
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
2611
|
-
promise.constructor = Promise$1;
|
|
2612
|
-
then = bind$1(promise.then, promise);
|
|
2613
|
-
notify$1 = function () {
|
|
2614
|
-
then(flush);
|
|
2615
|
-
};
|
|
2616
|
-
// Node.js without promises
|
|
2617
|
-
} else if (IS_NODE$2) {
|
|
2618
|
-
notify$1 = function () {
|
|
2619
|
-
process$1.nextTick(flush);
|
|
2620
|
-
};
|
|
2621
|
-
// for other environments - macrotask based on:
|
|
2622
|
-
// - setImmediate
|
|
2623
|
-
// - MessageChannel
|
|
2624
|
-
// - window.postMessage
|
|
2625
|
-
// - onreadystatechange
|
|
2626
|
-
// - setTimeout
|
|
2627
|
-
} else {
|
|
2628
|
-
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
2629
|
-
macrotask = bind$1(macrotask, global$5);
|
|
2630
|
-
notify$1 = function () {
|
|
2631
|
-
macrotask(flush);
|
|
2632
|
-
};
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2635
|
-
microtask$1 = function (fn) {
|
|
2636
|
-
if (!queue.head) notify$1();
|
|
2637
|
-
queue.add(fn);
|
|
2638
|
-
};
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
var microtask_1 = microtask$1;
|
|
2642
|
-
|
|
2643
|
-
var hostReportErrors$1 = function (a, b) {
|
|
2644
|
-
try {
|
|
2645
|
-
// eslint-disable-next-line no-console -- safe
|
|
2646
|
-
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
2647
|
-
} catch (error) { /* empty */ }
|
|
2648
|
-
};
|
|
2649
|
-
|
|
2650
|
-
var perform$3 = function (exec) {
|
|
2651
|
-
try {
|
|
2652
|
-
return { error: false, value: exec() };
|
|
2653
|
-
} catch (error) {
|
|
2654
|
-
return { error: true, value: error };
|
|
2655
|
-
}
|
|
2656
|
-
};
|
|
2657
|
-
|
|
2658
|
-
var global$4 = global$j;
|
|
2659
|
-
|
|
2660
|
-
var promiseNativeConstructor = global$4.Promise;
|
|
2661
|
-
|
|
2662
|
-
/* global Deno -- Deno case */
|
|
2663
|
-
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
2664
|
-
|
|
2665
|
-
var IS_DENO$1 = engineIsDeno;
|
|
2666
|
-
var IS_NODE$1 = engineIsNode;
|
|
2667
|
-
|
|
2668
|
-
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
2669
|
-
&& typeof window == 'object'
|
|
2670
|
-
&& typeof document == 'object';
|
|
2671
|
-
|
|
2672
|
-
var global$3 = global$j;
|
|
2673
|
-
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
2674
|
-
var isCallable$3 = isCallable$k;
|
|
2675
|
-
var isForced = isForced_1;
|
|
2676
|
-
var inspectSource = inspectSource$3;
|
|
2677
|
-
var wellKnownSymbol$1 = wellKnownSymbol$f;
|
|
2678
|
-
var IS_BROWSER = engineIsBrowser;
|
|
2679
|
-
var IS_DENO = engineIsDeno;
|
|
2680
|
-
var V8_VERSION = engineV8Version;
|
|
2681
|
-
|
|
2682
|
-
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
2683
|
-
var SPECIES = wellKnownSymbol$1('species');
|
|
2684
|
-
var SUBCLASSING = false;
|
|
2685
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$3.PromiseRejectionEvent);
|
|
2686
|
-
|
|
2687
|
-
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
2688
|
-
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
2689
|
-
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
|
|
2690
|
-
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
2691
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
2692
|
-
// We can't detect it synchronously, so just check versions
|
|
2693
|
-
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
2694
|
-
// We can't use @@species feature detection in V8 since it causes
|
|
2695
|
-
// deoptimization and performance degradation
|
|
2696
|
-
// https://github.com/zloirock/core-js/issues/679
|
|
2697
|
-
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
2698
|
-
// Detect correctness of subclassing with @@species support
|
|
2699
|
-
var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
|
|
2700
|
-
var FakePromise = function (exec) {
|
|
2701
|
-
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
2702
|
-
};
|
|
2703
|
-
var constructor = promise.constructor = {};
|
|
2704
|
-
constructor[SPECIES] = FakePromise;
|
|
2705
|
-
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
2706
|
-
if (!SUBCLASSING) return true;
|
|
2707
|
-
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
2708
|
-
} return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
2709
|
-
});
|
|
2710
|
-
|
|
2711
|
-
var promiseConstructorDetection = {
|
|
2712
|
-
CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
|
|
2713
|
-
REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
|
|
2714
|
-
SUBCLASSING: SUBCLASSING
|
|
2715
|
-
};
|
|
2716
|
-
|
|
2717
|
-
var newPromiseCapability$2 = {};
|
|
2718
|
-
|
|
2719
|
-
var aCallable$3 = aCallable$d;
|
|
2720
|
-
|
|
2721
|
-
var $TypeError = TypeError;
|
|
2722
|
-
|
|
2723
|
-
var PromiseCapability = function (C) {
|
|
2724
|
-
var resolve, reject;
|
|
2725
|
-
this.promise = new C(function ($$resolve, $$reject) {
|
|
2726
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor');
|
|
2727
|
-
resolve = $$resolve;
|
|
2728
|
-
reject = $$reject;
|
|
2729
|
-
});
|
|
2730
|
-
this.resolve = aCallable$3(resolve);
|
|
2731
|
-
this.reject = aCallable$3(reject);
|
|
2732
|
-
};
|
|
2733
|
-
|
|
2734
|
-
// `NewPromiseCapability` abstract operation
|
|
2735
|
-
// https://tc39.es/ecma262/#sec-newpromisecapability
|
|
2736
|
-
newPromiseCapability$2.f = function (C) {
|
|
2737
|
-
return new PromiseCapability(C);
|
|
2738
|
-
};
|
|
2739
|
-
|
|
2740
|
-
var $$6 = _export;
|
|
2741
|
-
var IS_NODE = engineIsNode;
|
|
2742
|
-
var global$2 = global$j;
|
|
2743
|
-
var call$2 = functionCall;
|
|
2744
|
-
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
2745
|
-
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
2746
|
-
var setToStringTag = setToStringTag$1;
|
|
2747
|
-
var setSpecies = setSpecies$1;
|
|
2748
|
-
var aCallable$2 = aCallable$d;
|
|
2749
|
-
var isCallable$2 = isCallable$k;
|
|
2750
|
-
var isObject$3 = isObject$d;
|
|
2751
|
-
var anInstance = anInstance$2;
|
|
2752
|
-
var speciesConstructor = speciesConstructor$1;
|
|
2753
|
-
var task = task$1.set;
|
|
2754
|
-
var microtask = microtask_1;
|
|
2755
|
-
var hostReportErrors = hostReportErrors$1;
|
|
2756
|
-
var perform$2 = perform$3;
|
|
2757
|
-
var Queue = queue$1;
|
|
2758
|
-
var InternalStateModule = internalState;
|
|
2759
|
-
var NativePromiseConstructor$2 = promiseNativeConstructor;
|
|
2760
|
-
var PromiseConstructorDetection = promiseConstructorDetection;
|
|
2761
|
-
var newPromiseCapabilityModule$3 = newPromiseCapability$2;
|
|
2762
|
-
|
|
2763
|
-
var PROMISE = 'Promise';
|
|
2764
|
-
var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
|
|
2765
|
-
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
|
|
2766
|
-
var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
|
|
2767
|
-
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
2768
|
-
var setInternalState = InternalStateModule.set;
|
|
2769
|
-
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
2770
|
-
var PromiseConstructor = NativePromiseConstructor$2;
|
|
2771
|
-
var PromisePrototype = NativePromisePrototype$1;
|
|
2772
|
-
var TypeError$1 = global$2.TypeError;
|
|
2773
|
-
var document$1 = global$2.document;
|
|
2774
|
-
var process = global$2.process;
|
|
2775
|
-
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
2776
|
-
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
2777
|
-
|
|
2778
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
|
|
2779
|
-
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
2780
|
-
var REJECTION_HANDLED = 'rejectionhandled';
|
|
2781
|
-
var PENDING = 0;
|
|
2782
|
-
var FULFILLED = 1;
|
|
2783
|
-
var REJECTED = 2;
|
|
2784
|
-
var HANDLED = 1;
|
|
2785
|
-
var UNHANDLED = 2;
|
|
2786
|
-
|
|
2787
|
-
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
2788
|
-
|
|
2789
|
-
// helpers
|
|
2790
|
-
var isThenable = function (it) {
|
|
2791
|
-
var then;
|
|
2792
|
-
return isObject$3(it) && isCallable$2(then = it.then) ? then : false;
|
|
2793
|
-
};
|
|
2794
|
-
|
|
2795
|
-
var callReaction = function (reaction, state) {
|
|
2796
|
-
var value = state.value;
|
|
2797
|
-
var ok = state.state === FULFILLED;
|
|
2798
|
-
var handler = ok ? reaction.ok : reaction.fail;
|
|
2799
|
-
var resolve = reaction.resolve;
|
|
2800
|
-
var reject = reaction.reject;
|
|
2801
|
-
var domain = reaction.domain;
|
|
2802
|
-
var result, then, exited;
|
|
2803
|
-
try {
|
|
2804
|
-
if (handler) {
|
|
2805
|
-
if (!ok) {
|
|
2806
|
-
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
2807
|
-
state.rejection = HANDLED;
|
|
2808
|
-
}
|
|
2809
|
-
if (handler === true) result = value;
|
|
2810
|
-
else {
|
|
2811
|
-
if (domain) domain.enter();
|
|
2812
|
-
result = handler(value); // can throw
|
|
2813
|
-
if (domain) {
|
|
2814
|
-
domain.exit();
|
|
2815
|
-
exited = true;
|
|
2816
|
-
}
|
|
2817
|
-
}
|
|
2818
|
-
if (result === reaction.promise) {
|
|
2819
|
-
reject(new TypeError$1('Promise-chain cycle'));
|
|
2820
|
-
} else if (then = isThenable(result)) {
|
|
2821
|
-
call$2(then, result, resolve, reject);
|
|
2822
|
-
} else resolve(result);
|
|
2823
|
-
} else reject(value);
|
|
2824
|
-
} catch (error) {
|
|
2825
|
-
if (domain && !exited) domain.exit();
|
|
2826
|
-
reject(error);
|
|
2827
|
-
}
|
|
2828
|
-
};
|
|
2829
|
-
|
|
2830
|
-
var notify = function (state, isReject) {
|
|
2831
|
-
if (state.notified) return;
|
|
2832
|
-
state.notified = true;
|
|
2833
|
-
microtask(function () {
|
|
2834
|
-
var reactions = state.reactions;
|
|
2835
|
-
var reaction;
|
|
2836
|
-
while (reaction = reactions.get()) {
|
|
2837
|
-
callReaction(reaction, state);
|
|
2838
|
-
}
|
|
2839
|
-
state.notified = false;
|
|
2840
|
-
if (isReject && !state.rejection) onUnhandled(state);
|
|
2841
|
-
});
|
|
2842
|
-
};
|
|
2843
|
-
|
|
2844
|
-
var dispatchEvent = function (name, promise, reason) {
|
|
2845
|
-
var event, handler;
|
|
2846
|
-
if (DISPATCH_EVENT) {
|
|
2847
|
-
event = document$1.createEvent('Event');
|
|
2848
|
-
event.promise = promise;
|
|
2849
|
-
event.reason = reason;
|
|
2850
|
-
event.initEvent(name, false, true);
|
|
2851
|
-
global$2.dispatchEvent(event);
|
|
2852
|
-
} else event = { promise: promise, reason: reason };
|
|
2853
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
|
|
2854
|
-
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
2855
|
-
};
|
|
2856
|
-
|
|
2857
|
-
var onUnhandled = function (state) {
|
|
2858
|
-
call$2(task, global$2, function () {
|
|
2859
|
-
var promise = state.facade;
|
|
2860
|
-
var value = state.value;
|
|
2861
|
-
var IS_UNHANDLED = isUnhandled(state);
|
|
2862
|
-
var result;
|
|
2863
|
-
if (IS_UNHANDLED) {
|
|
2864
|
-
result = perform$2(function () {
|
|
2865
|
-
if (IS_NODE) {
|
|
2866
|
-
process.emit('unhandledRejection', value, promise);
|
|
2867
|
-
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
2868
|
-
});
|
|
2869
|
-
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
2870
|
-
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
2871
|
-
if (result.error) throw result.value;
|
|
2872
|
-
}
|
|
2873
|
-
});
|
|
2874
|
-
};
|
|
2875
|
-
|
|
2876
|
-
var isUnhandled = function (state) {
|
|
2877
|
-
return state.rejection !== HANDLED && !state.parent;
|
|
2878
|
-
};
|
|
2879
|
-
|
|
2880
|
-
var onHandleUnhandled = function (state) {
|
|
2881
|
-
call$2(task, global$2, function () {
|
|
2882
|
-
var promise = state.facade;
|
|
2883
|
-
if (IS_NODE) {
|
|
2884
|
-
process.emit('rejectionHandled', promise);
|
|
2885
|
-
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
2886
|
-
});
|
|
2887
|
-
};
|
|
2888
|
-
|
|
2889
|
-
var bind = function (fn, state, unwrap) {
|
|
2890
|
-
return function (value) {
|
|
2891
|
-
fn(state, value, unwrap);
|
|
2892
|
-
};
|
|
2893
|
-
};
|
|
2894
|
-
|
|
2895
|
-
var internalReject = function (state, value, unwrap) {
|
|
2896
|
-
if (state.done) return;
|
|
2897
|
-
state.done = true;
|
|
2898
|
-
if (unwrap) state = unwrap;
|
|
2899
|
-
state.value = value;
|
|
2900
|
-
state.state = REJECTED;
|
|
2901
|
-
notify(state, true);
|
|
2902
|
-
};
|
|
2903
|
-
|
|
2904
|
-
var internalResolve = function (state, value, unwrap) {
|
|
2905
|
-
if (state.done) return;
|
|
2906
|
-
state.done = true;
|
|
2907
|
-
if (unwrap) state = unwrap;
|
|
2908
|
-
try {
|
|
2909
|
-
if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
|
|
2910
|
-
var then = isThenable(value);
|
|
2911
|
-
if (then) {
|
|
2912
|
-
microtask(function () {
|
|
2913
|
-
var wrapper = { done: false };
|
|
2914
|
-
try {
|
|
2915
|
-
call$2(then, value,
|
|
2916
|
-
bind(internalResolve, wrapper, state),
|
|
2917
|
-
bind(internalReject, wrapper, state)
|
|
2918
|
-
);
|
|
2919
|
-
} catch (error) {
|
|
2920
|
-
internalReject(wrapper, error, state);
|
|
2921
|
-
}
|
|
2922
|
-
});
|
|
2923
|
-
} else {
|
|
2924
|
-
state.value = value;
|
|
2925
|
-
state.state = FULFILLED;
|
|
2926
|
-
notify(state, false);
|
|
2927
|
-
}
|
|
2928
|
-
} catch (error) {
|
|
2929
|
-
internalReject({ done: false }, error, state);
|
|
2930
|
-
}
|
|
2931
|
-
};
|
|
2932
|
-
|
|
2933
|
-
// constructor polyfill
|
|
2934
|
-
if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
2935
|
-
// 25.4.3.1 Promise(executor)
|
|
2936
|
-
PromiseConstructor = function Promise(executor) {
|
|
2937
|
-
anInstance(this, PromisePrototype);
|
|
2938
|
-
aCallable$2(executor);
|
|
2939
|
-
call$2(Internal, this);
|
|
2940
|
-
var state = getInternalPromiseState(this);
|
|
2941
|
-
try {
|
|
2942
|
-
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
2943
|
-
} catch (error) {
|
|
2944
|
-
internalReject(state, error);
|
|
2945
|
-
}
|
|
2946
|
-
};
|
|
2947
|
-
|
|
2948
|
-
PromisePrototype = PromiseConstructor.prototype;
|
|
2949
|
-
|
|
2950
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2951
|
-
Internal = function Promise(executor) {
|
|
2952
|
-
setInternalState(this, {
|
|
2953
|
-
type: PROMISE,
|
|
2954
|
-
done: false,
|
|
2955
|
-
notified: false,
|
|
2956
|
-
parent: false,
|
|
2957
|
-
reactions: new Queue(),
|
|
2958
|
-
rejection: false,
|
|
2959
|
-
state: PENDING,
|
|
2960
|
-
value: undefined
|
|
2961
|
-
});
|
|
2962
|
-
};
|
|
2963
|
-
|
|
2964
|
-
// `Promise.prototype.then` method
|
|
2965
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
2966
|
-
Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
2967
|
-
var state = getInternalPromiseState(this);
|
|
2968
|
-
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
2969
|
-
state.parent = true;
|
|
2970
|
-
reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
|
|
2971
|
-
reaction.fail = isCallable$2(onRejected) && onRejected;
|
|
2972
|
-
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
2973
|
-
if (state.state === PENDING) state.reactions.add(reaction);
|
|
2974
|
-
else microtask(function () {
|
|
2975
|
-
callReaction(reaction, state);
|
|
2976
|
-
});
|
|
2977
|
-
return reaction.promise;
|
|
2978
|
-
});
|
|
2979
|
-
|
|
2980
|
-
OwnPromiseCapability = function () {
|
|
2981
|
-
var promise = new Internal();
|
|
2982
|
-
var state = getInternalPromiseState(promise);
|
|
2983
|
-
this.promise = promise;
|
|
2984
|
-
this.resolve = bind(internalResolve, state);
|
|
2985
|
-
this.reject = bind(internalReject, state);
|
|
2986
|
-
};
|
|
2987
|
-
|
|
2988
|
-
newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
|
|
2989
|
-
return C === PromiseConstructor || C === PromiseWrapper
|
|
2990
|
-
? new OwnPromiseCapability(C)
|
|
2991
|
-
: newGenericPromiseCapability(C);
|
|
2992
|
-
};
|
|
2993
|
-
|
|
2994
|
-
if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
2995
|
-
nativeThen = NativePromisePrototype$1.then;
|
|
2996
|
-
|
|
2997
|
-
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
2998
|
-
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
2999
|
-
defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
3000
|
-
var that = this;
|
|
3001
|
-
return new PromiseConstructor(function (resolve, reject) {
|
|
3002
|
-
call$2(nativeThen, that, resolve, reject);
|
|
3003
|
-
}).then(onFulfilled, onRejected);
|
|
3004
|
-
// https://github.com/zloirock/core-js/issues/640
|
|
3005
|
-
}, { unsafe: true });
|
|
3006
|
-
}
|
|
3007
|
-
|
|
3008
|
-
// make `.constructor === Promise` work for native promise-based APIs
|
|
3009
|
-
try {
|
|
3010
|
-
delete NativePromisePrototype$1.constructor;
|
|
3011
|
-
} catch (error) { /* empty */ }
|
|
3012
|
-
|
|
3013
|
-
// make `instanceof Promise` work for native promise-based APIs
|
|
3014
|
-
if (setPrototypeOf$2) {
|
|
3015
|
-
setPrototypeOf$2(NativePromisePrototype$1, PromisePrototype);
|
|
3016
|
-
}
|
|
3017
|
-
}
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
|
-
$$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
3021
|
-
Promise: PromiseConstructor
|
|
3022
|
-
});
|
|
3023
|
-
|
|
3024
|
-
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
3025
|
-
setSpecies(PROMISE);
|
|
3026
|
-
|
|
3027
|
-
var wellKnownSymbol = wellKnownSymbol$f;
|
|
3028
|
-
|
|
3029
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
|
3030
|
-
var SAFE_CLOSING = false;
|
|
3031
|
-
|
|
3032
|
-
try {
|
|
3033
|
-
var called = 0;
|
|
3034
|
-
var iteratorWithReturn = {
|
|
3035
|
-
next: function () {
|
|
3036
|
-
return { done: !!called++ };
|
|
3037
|
-
},
|
|
3038
|
-
'return': function () {
|
|
3039
|
-
SAFE_CLOSING = true;
|
|
3040
|
-
}
|
|
3041
|
-
};
|
|
3042
|
-
iteratorWithReturn[ITERATOR] = function () {
|
|
3043
|
-
return this;
|
|
3044
|
-
};
|
|
3045
|
-
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
3046
|
-
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
3047
|
-
} catch (error) { /* empty */ }
|
|
3048
|
-
|
|
3049
|
-
var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
3050
|
-
try {
|
|
3051
|
-
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
3052
|
-
} catch (error) { return false; } // workaround of old WebKit + `eval` bug
|
|
3053
|
-
var ITERATION_SUPPORT = false;
|
|
3054
|
-
try {
|
|
3055
|
-
var object = {};
|
|
3056
|
-
object[ITERATOR] = function () {
|
|
3057
|
-
return {
|
|
3058
|
-
next: function () {
|
|
3059
|
-
return { done: ITERATION_SUPPORT = true };
|
|
3060
|
-
}
|
|
3061
|
-
};
|
|
3062
|
-
};
|
|
3063
|
-
exec(object);
|
|
3064
|
-
} catch (error) { /* empty */ }
|
|
3065
|
-
return ITERATION_SUPPORT;
|
|
3066
|
-
};
|
|
3067
|
-
|
|
3068
|
-
var NativePromiseConstructor$1 = promiseNativeConstructor;
|
|
3069
|
-
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
3070
|
-
var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
|
|
3071
|
-
|
|
3072
|
-
var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
|
|
3073
|
-
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
3074
|
-
});
|
|
3075
|
-
|
|
3076
|
-
var $$5 = _export;
|
|
3077
|
-
var call$1 = functionCall;
|
|
3078
|
-
var aCallable$1 = aCallable$d;
|
|
3079
|
-
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
3080
|
-
var perform$1 = perform$3;
|
|
3081
|
-
var iterate$1 = iterate$3;
|
|
3082
|
-
var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
3083
|
-
|
|
3084
|
-
// `Promise.all` method
|
|
3085
|
-
// https://tc39.es/ecma262/#sec-promise.all
|
|
3086
|
-
$$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
3087
|
-
all: function all(iterable) {
|
|
3088
|
-
var C = this;
|
|
3089
|
-
var capability = newPromiseCapabilityModule$2.f(C);
|
|
3090
|
-
var resolve = capability.resolve;
|
|
3091
|
-
var reject = capability.reject;
|
|
3092
|
-
var result = perform$1(function () {
|
|
3093
|
-
var $promiseResolve = aCallable$1(C.resolve);
|
|
3094
|
-
var values = [];
|
|
3095
|
-
var counter = 0;
|
|
3096
|
-
var remaining = 1;
|
|
3097
|
-
iterate$1(iterable, function (promise) {
|
|
3098
|
-
var index = counter++;
|
|
3099
|
-
var alreadyCalled = false;
|
|
3100
|
-
remaining++;
|
|
3101
|
-
call$1($promiseResolve, C, promise).then(function (value) {
|
|
3102
|
-
if (alreadyCalled) return;
|
|
3103
|
-
alreadyCalled = true;
|
|
3104
|
-
values[index] = value;
|
|
3105
|
-
--remaining || resolve(values);
|
|
3106
|
-
}, reject);
|
|
3107
|
-
});
|
|
3108
|
-
--remaining || resolve(values);
|
|
3109
|
-
});
|
|
3110
|
-
if (result.error) reject(result.value);
|
|
3111
|
-
return capability.promise;
|
|
3112
|
-
}
|
|
3113
|
-
});
|
|
3114
|
-
|
|
3115
|
-
var $$4 = _export;
|
|
3116
|
-
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
3117
|
-
var NativePromiseConstructor = promiseNativeConstructor;
|
|
3118
|
-
var getBuiltIn$2 = getBuiltIn$8;
|
|
3119
|
-
var isCallable$1 = isCallable$k;
|
|
3120
|
-
var defineBuiltIn = defineBuiltIn$6;
|
|
3121
|
-
|
|
3122
|
-
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
3123
|
-
|
|
3124
|
-
// `Promise.prototype.catch` method
|
|
3125
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
3126
|
-
$$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
3127
|
-
'catch': function (onRejected) {
|
|
3128
|
-
return this.then(undefined, onRejected);
|
|
3129
|
-
}
|
|
3130
|
-
});
|
|
3131
|
-
|
|
3132
|
-
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
3133
|
-
if (isCallable$1(NativePromiseConstructor)) {
|
|
3134
|
-
var method = getBuiltIn$2('Promise').prototype['catch'];
|
|
3135
|
-
if (NativePromisePrototype['catch'] !== method) {
|
|
3136
|
-
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
3139
|
-
|
|
3140
|
-
var $$3 = _export;
|
|
3141
|
-
var call = functionCall;
|
|
3142
|
-
var aCallable = aCallable$d;
|
|
3143
|
-
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
3144
|
-
var perform = perform$3;
|
|
3145
|
-
var iterate = iterate$3;
|
|
3146
|
-
var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
3147
|
-
|
|
3148
|
-
// `Promise.race` method
|
|
3149
|
-
// https://tc39.es/ecma262/#sec-promise.race
|
|
3150
|
-
$$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
3151
|
-
race: function race(iterable) {
|
|
3152
|
-
var C = this;
|
|
3153
|
-
var capability = newPromiseCapabilityModule$1.f(C);
|
|
3154
|
-
var reject = capability.reject;
|
|
3155
|
-
var result = perform(function () {
|
|
3156
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
3157
|
-
iterate(iterable, function (promise) {
|
|
3158
|
-
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
3159
|
-
});
|
|
3160
|
-
});
|
|
3161
|
-
if (result.error) reject(result.value);
|
|
3162
|
-
return capability.promise;
|
|
3163
|
-
}
|
|
3164
|
-
});
|
|
3165
|
-
|
|
3166
|
-
var $$2 = _export;
|
|
3167
|
-
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
3168
|
-
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
3169
|
-
|
|
3170
|
-
// `Promise.reject` method
|
|
3171
|
-
// https://tc39.es/ecma262/#sec-promise.reject
|
|
3172
|
-
$$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
3173
|
-
reject: function reject(r) {
|
|
3174
|
-
var capability = newPromiseCapabilityModule.f(this);
|
|
3175
|
-
var capabilityReject = capability.reject;
|
|
3176
|
-
capabilityReject(r);
|
|
3177
|
-
return capability.promise;
|
|
3178
|
-
}
|
|
3179
|
-
});
|
|
3180
|
-
|
|
3181
|
-
var anObject = anObject$i;
|
|
3182
|
-
var isObject$2 = isObject$d;
|
|
3183
|
-
var newPromiseCapability = newPromiseCapability$2;
|
|
3184
|
-
|
|
3185
|
-
var promiseResolve$1 = function (C, x) {
|
|
3186
|
-
anObject(C);
|
|
3187
|
-
if (isObject$2(x) && x.constructor === C) return x;
|
|
3188
|
-
var promiseCapability = newPromiseCapability.f(C);
|
|
3189
|
-
var resolve = promiseCapability.resolve;
|
|
3190
|
-
resolve(x);
|
|
3191
|
-
return promiseCapability.promise;
|
|
3192
|
-
};
|
|
3193
|
-
|
|
3194
|
-
var $$1 = _export;
|
|
3195
|
-
var getBuiltIn$1 = getBuiltIn$8;
|
|
3196
|
-
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
3197
|
-
var promiseResolve = promiseResolve$1;
|
|
3198
|
-
|
|
3199
|
-
getBuiltIn$1('Promise');
|
|
3200
|
-
|
|
3201
|
-
// `Promise.resolve` method
|
|
3202
|
-
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
3203
|
-
$$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
3204
|
-
resolve: function resolve(x) {
|
|
3205
|
-
return promiseResolve(this, x);
|
|
3206
|
-
}
|
|
3207
|
-
});
|
|
3208
|
-
|
|
3209
1958
|
/**
|
|
3210
1959
|
* A code used in some cases to denote success.
|
|
3211
1960
|
*/
|
|
@@ -3301,7 +2050,7 @@ function handleZohoErrorFetchFactory(parseZohoError, defaultLogError) {
|
|
|
3301
2050
|
*/
|
|
3302
2051
|
function interceptZohoErrorResponseFactory(parseZohoServerErrorResponseData) {
|
|
3303
2052
|
return (json, response) => {
|
|
3304
|
-
const error = json
|
|
2053
|
+
const error = json?.error;
|
|
3305
2054
|
if (error != null) {
|
|
3306
2055
|
const responseError = new fetch.FetchResponseError(response);
|
|
3307
2056
|
if (responseError) {
|
|
@@ -3435,8 +2184,7 @@ function parseZohoServerErrorResponseData(errorResponseData, responseError) {
|
|
|
3435
2184
|
* @returns
|
|
3436
2185
|
*/
|
|
3437
2186
|
function tryFindZohoServerErrorData(errorResponseData, responseError) {
|
|
3438
|
-
|
|
3439
|
-
const error = (_errorResponseData$er = errorResponseData.error) != null ? _errorResponseData$er : !responseError.response.ok ? errorResponseData : undefined;
|
|
2187
|
+
const error = errorResponseData.error ?? (!responseError.response.ok ? errorResponseData : undefined);
|
|
3440
2188
|
return error;
|
|
3441
2189
|
}
|
|
3442
2190
|
|
|
@@ -3486,8 +2234,7 @@ function zohoRecruitRecordCrudError(error) {
|
|
|
3486
2234
|
}
|
|
3487
2235
|
function assertRecordDataArrayResultHasContent(moduleName, recordId) {
|
|
3488
2236
|
return x => {
|
|
3489
|
-
|
|
3490
|
-
if (x == null || !((_x$data = x.data) != null && _x$data.length)) {
|
|
2237
|
+
if (x == null || !x.data?.length) {
|
|
3491
2238
|
throw new ZohoRecruitRecordNoContentError(moduleName, recordId);
|
|
3492
2239
|
} else {
|
|
3493
2240
|
return x;
|
|
@@ -3614,7 +2361,9 @@ function getRecords(context) {
|
|
|
3614
2361
|
*/
|
|
3615
2362
|
function searchRecords(context) {
|
|
3616
2363
|
function searchRecordsUrlSearchParams(input) {
|
|
3617
|
-
const baseInput =
|
|
2364
|
+
const baseInput = {
|
|
2365
|
+
...input
|
|
2366
|
+
};
|
|
3618
2367
|
delete baseInput.criteria;
|
|
3619
2368
|
if (input.criteria != null) {
|
|
3620
2369
|
const criteriaString = zohoRecruitSearchRecordsCriteriaString(input.criteria);
|
|
@@ -3623,7 +2372,7 @@ function searchRecords(context) {
|
|
|
3623
2372
|
const urlParams = zohoRecruitUrlSearchParamsMinusModule(baseInput);
|
|
3624
2373
|
return urlParams;
|
|
3625
2374
|
}
|
|
3626
|
-
return input => context.fetchJson(`/v2/${input.module}/search?${searchRecordsUrlSearchParams(input).toString()}`, zohoRecruitApiFetchJsonInput('GET')).then(x => x
|
|
2375
|
+
return input => context.fetchJson(`/v2/${input.module}/search?${searchRecordsUrlSearchParams(input).toString()}`, zohoRecruitApiFetchJsonInput('GET')).then(x => x ?? {
|
|
3627
2376
|
data: [],
|
|
3628
2377
|
info: {
|
|
3629
2378
|
more_records: false
|
|
@@ -3662,7 +2411,8 @@ function createNotesForRecord(context) {
|
|
|
3662
2411
|
notes
|
|
3663
2412
|
} = input;
|
|
3664
2413
|
const createNotesRequest = {
|
|
3665
|
-
data: util.asArray(notes).map(x =>
|
|
2414
|
+
data: util.asArray(notes).map(x => ({
|
|
2415
|
+
...x,
|
|
3666
2416
|
se_module,
|
|
3667
2417
|
Parent_Id
|
|
3668
2418
|
}))
|
|
@@ -3724,7 +2474,7 @@ const zohoRecruitUrlSearchParams = fetch.makeUrlSearchParams;
|
|
|
3724
2474
|
function zohoRecruitApiFetchJsonInput(method, body) {
|
|
3725
2475
|
const result = {
|
|
3726
2476
|
method,
|
|
3727
|
-
body: body
|
|
2477
|
+
body: body ?? undefined
|
|
3728
2478
|
};
|
|
3729
2479
|
return result;
|
|
3730
2480
|
}
|
|
@@ -3752,215 +2502,6 @@ function zohoRecruitMultiRecordResult(input, results) {
|
|
|
3752
2502
|
return result;
|
|
3753
2503
|
}
|
|
3754
2504
|
|
|
3755
|
-
var defineProperty = objectDefineProperty.f;
|
|
3756
|
-
|
|
3757
|
-
var proxyAccessor$1 = function (Target, Source, key) {
|
|
3758
|
-
key in Target || defineProperty(Target, key, {
|
|
3759
|
-
configurable: true,
|
|
3760
|
-
get: function () { return Source[key]; },
|
|
3761
|
-
set: function (it) { Source[key] = it; }
|
|
3762
|
-
});
|
|
3763
|
-
};
|
|
3764
|
-
|
|
3765
|
-
var isCallable = isCallable$k;
|
|
3766
|
-
var isObject$1 = isObject$d;
|
|
3767
|
-
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
3768
|
-
|
|
3769
|
-
// makes subclassing work correct for wrapped built-ins
|
|
3770
|
-
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
3771
|
-
var NewTarget, NewTargetPrototype;
|
|
3772
|
-
if (
|
|
3773
|
-
// it can work only with native `setPrototypeOf`
|
|
3774
|
-
setPrototypeOf$1 &&
|
|
3775
|
-
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
3776
|
-
isCallable(NewTarget = dummy.constructor) &&
|
|
3777
|
-
NewTarget !== Wrapper &&
|
|
3778
|
-
isObject$1(NewTargetPrototype = NewTarget.prototype) &&
|
|
3779
|
-
NewTargetPrototype !== Wrapper.prototype
|
|
3780
|
-
) setPrototypeOf$1($this, NewTargetPrototype);
|
|
3781
|
-
return $this;
|
|
3782
|
-
};
|
|
3783
|
-
|
|
3784
|
-
var toString = toString$1;
|
|
3785
|
-
|
|
3786
|
-
var normalizeStringArgument$1 = function (argument, $default) {
|
|
3787
|
-
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
|
3788
|
-
};
|
|
3789
|
-
|
|
3790
|
-
var isObject = isObject$d;
|
|
3791
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
|
|
3792
|
-
|
|
3793
|
-
// `InstallErrorCause` abstract operation
|
|
3794
|
-
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
3795
|
-
var installErrorCause$1 = function (O, options) {
|
|
3796
|
-
if (isObject(options) && 'cause' in options) {
|
|
3797
|
-
createNonEnumerableProperty$2(O, 'cause', options.cause);
|
|
3798
|
-
}
|
|
3799
|
-
};
|
|
3800
|
-
|
|
3801
|
-
var uncurryThis = functionUncurryThis;
|
|
3802
|
-
|
|
3803
|
-
var $Error = Error;
|
|
3804
|
-
var replace = uncurryThis(''.replace);
|
|
3805
|
-
|
|
3806
|
-
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
3807
|
-
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
3808
|
-
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
3809
|
-
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
3810
|
-
|
|
3811
|
-
var errorStackClear = function (stack, dropEntries) {
|
|
3812
|
-
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
3813
|
-
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
3814
|
-
} return stack;
|
|
3815
|
-
};
|
|
3816
|
-
|
|
3817
|
-
var fails = fails$h;
|
|
3818
|
-
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
3819
|
-
|
|
3820
|
-
var errorStackInstallable = !fails(function () {
|
|
3821
|
-
var error = new Error('a');
|
|
3822
|
-
if (!('stack' in error)) return true;
|
|
3823
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3824
|
-
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
3825
|
-
return error.stack !== 7;
|
|
3826
|
-
});
|
|
3827
|
-
|
|
3828
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
|
|
3829
|
-
var clearErrorStack = errorStackClear;
|
|
3830
|
-
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
3831
|
-
|
|
3832
|
-
// non-standard V8
|
|
3833
|
-
var captureStackTrace = Error.captureStackTrace;
|
|
3834
|
-
|
|
3835
|
-
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
3836
|
-
if (ERROR_STACK_INSTALLABLE) {
|
|
3837
|
-
if (captureStackTrace) captureStackTrace(error, C);
|
|
3838
|
-
else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
3839
|
-
}
|
|
3840
|
-
};
|
|
3841
|
-
|
|
3842
|
-
var getBuiltIn = getBuiltIn$8;
|
|
3843
|
-
var hasOwn = hasOwnProperty_1;
|
|
3844
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$6;
|
|
3845
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
3846
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
3847
|
-
var copyConstructorProperties = copyConstructorProperties$2;
|
|
3848
|
-
var proxyAccessor = proxyAccessor$1;
|
|
3849
|
-
var inheritIfRequired = inheritIfRequired$1;
|
|
3850
|
-
var normalizeStringArgument = normalizeStringArgument$1;
|
|
3851
|
-
var installErrorCause = installErrorCause$1;
|
|
3852
|
-
var installErrorStack = errorStackInstall;
|
|
3853
|
-
var DESCRIPTORS = descriptors;
|
|
3854
|
-
|
|
3855
|
-
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
3856
|
-
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
3857
|
-
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
3858
|
-
var path = FULL_NAME.split('.');
|
|
3859
|
-
var ERROR_NAME = path[path.length - 1];
|
|
3860
|
-
var OriginalError = getBuiltIn.apply(null, path);
|
|
3861
|
-
|
|
3862
|
-
if (!OriginalError) return;
|
|
3863
|
-
|
|
3864
|
-
var OriginalErrorPrototype = OriginalError.prototype;
|
|
3865
|
-
|
|
3866
|
-
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
3867
|
-
if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
3868
|
-
|
|
3869
|
-
if (!FORCED) return OriginalError;
|
|
3870
|
-
|
|
3871
|
-
var BaseError = getBuiltIn('Error');
|
|
3872
|
-
|
|
3873
|
-
var WrappedError = wrapper(function (a, b) {
|
|
3874
|
-
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
3875
|
-
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
3876
|
-
if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
|
|
3877
|
-
installErrorStack(result, WrappedError, result.stack, 2);
|
|
3878
|
-
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
3879
|
-
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
3880
|
-
return result;
|
|
3881
|
-
});
|
|
3882
|
-
|
|
3883
|
-
WrappedError.prototype = OriginalErrorPrototype;
|
|
3884
|
-
|
|
3885
|
-
if (ERROR_NAME !== 'Error') {
|
|
3886
|
-
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
3887
|
-
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
3888
|
-
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
3889
|
-
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
3890
|
-
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
3891
|
-
}
|
|
3892
|
-
|
|
3893
|
-
copyConstructorProperties(WrappedError, OriginalError);
|
|
3894
|
-
|
|
3895
|
-
try {
|
|
3896
|
-
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
3897
|
-
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
3898
|
-
createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
3899
|
-
}
|
|
3900
|
-
OriginalErrorPrototype.constructor = WrappedError;
|
|
3901
|
-
} catch (error) { /* empty */ }
|
|
3902
|
-
|
|
3903
|
-
return WrappedError;
|
|
3904
|
-
};
|
|
3905
|
-
|
|
3906
|
-
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
3907
|
-
var $ = _export;
|
|
3908
|
-
var global$1 = global$j;
|
|
3909
|
-
var apply = functionApply;
|
|
3910
|
-
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
3911
|
-
|
|
3912
|
-
var WEB_ASSEMBLY = 'WebAssembly';
|
|
3913
|
-
var WebAssembly = global$1[WEB_ASSEMBLY];
|
|
3914
|
-
|
|
3915
|
-
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
3916
|
-
var FORCED = new Error('e', { cause: 7 }).cause !== 7;
|
|
3917
|
-
|
|
3918
|
-
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3919
|
-
var O = {};
|
|
3920
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
3921
|
-
$({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
3922
|
-
};
|
|
3923
|
-
|
|
3924
|
-
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3925
|
-
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
3926
|
-
var O = {};
|
|
3927
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
3928
|
-
$({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
3929
|
-
}
|
|
3930
|
-
};
|
|
3931
|
-
|
|
3932
|
-
// https://tc39.es/ecma262/#sec-nativeerror
|
|
3933
|
-
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
3934
|
-
return function Error(message) { return apply(init, this, arguments); };
|
|
3935
|
-
});
|
|
3936
|
-
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
3937
|
-
return function EvalError(message) { return apply(init, this, arguments); };
|
|
3938
|
-
});
|
|
3939
|
-
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
3940
|
-
return function RangeError(message) { return apply(init, this, arguments); };
|
|
3941
|
-
});
|
|
3942
|
-
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
3943
|
-
return function ReferenceError(message) { return apply(init, this, arguments); };
|
|
3944
|
-
});
|
|
3945
|
-
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
3946
|
-
return function SyntaxError(message) { return apply(init, this, arguments); };
|
|
3947
|
-
});
|
|
3948
|
-
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
3949
|
-
return function TypeError(message) { return apply(init, this, arguments); };
|
|
3950
|
-
});
|
|
3951
|
-
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
3952
|
-
return function URIError(message) { return apply(init, this, arguments); };
|
|
3953
|
-
});
|
|
3954
|
-
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
3955
|
-
return function CompileError(message) { return apply(init, this, arguments); };
|
|
3956
|
-
});
|
|
3957
|
-
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
3958
|
-
return function LinkError(message) { return apply(init, this, arguments); };
|
|
3959
|
-
});
|
|
3960
|
-
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
3961
|
-
return function RuntimeError(message) { return apply(init, this, arguments); };
|
|
3962
|
-
});
|
|
3963
|
-
|
|
3964
2505
|
/**
|
|
3965
2506
|
* Error in the following cases:
|
|
3966
2507
|
* - the refresh token string is invalid
|
|
@@ -4022,7 +2563,7 @@ const handleZohoAccountsErrorFetch = handleZohoErrorFetchFactory(parseZohoAccoun
|
|
|
4022
2563
|
function zohoAccessTokenStringFactory(zohoAccessTokenFactory) {
|
|
4023
2564
|
return async () => {
|
|
4024
2565
|
const token = await zohoAccessTokenFactory();
|
|
4025
|
-
if (!
|
|
2566
|
+
if (!token?.accessToken) {
|
|
4026
2567
|
throw new ZohoAccountsAuthFailureError();
|
|
4027
2568
|
}
|
|
4028
2569
|
return token.accessToken;
|
|
@@ -4033,10 +2574,9 @@ const DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION = headers => {
|
|
|
4033
2574
|
console.warn(`zohoRateLimitedFetchHandler(): Too many requests made. The limit is ${headers.limit} requests per reset period. Will be reset at ${headers.resetAt}.`);
|
|
4034
2575
|
};
|
|
4035
2576
|
function zohoRateLimitedFetchHandler(config) {
|
|
4036
|
-
|
|
4037
|
-
const
|
|
4038
|
-
const
|
|
4039
|
-
const defaultResetPeriod = (_config$resetPeriod = config == null ? void 0 : config.resetPeriod) != null ? _config$resetPeriod : DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD;
|
|
2577
|
+
const onTooManyRequests = config?.onTooManyRequests !== false ? config?.onTooManyRequests ?? DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION : undefined;
|
|
2578
|
+
const defaultLimit = config?.maxRateLimit ?? DEFAULT_ZOHO_API_RATE_LIMIT;
|
|
2579
|
+
const defaultResetPeriod = config?.resetPeriod ?? DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD;
|
|
4040
2580
|
function configForLimit(limit, resetAt) {
|
|
4041
2581
|
return {
|
|
4042
2582
|
limit: defaultLimit,
|
|
@@ -4076,7 +2616,7 @@ function zohoRateLimitedFetchHandler(config) {
|
|
|
4076
2616
|
if (response.status === ZOHO_TOO_MANY_REQUESTS_HTTP_STATUS_CODE) {
|
|
4077
2617
|
shouldRetry = true;
|
|
4078
2618
|
try {
|
|
4079
|
-
onTooManyRequests
|
|
2619
|
+
onTooManyRequests?.(headerDetails, response, fetchResponseError);
|
|
4080
2620
|
} catch (e) {}
|
|
4081
2621
|
}
|
|
4082
2622
|
}
|
|
@@ -4128,9 +2668,10 @@ function zohoRecruitFactory(factoryConfig) {
|
|
|
4128
2668
|
const recruitContext = {
|
|
4129
2669
|
fetch: fetch$1,
|
|
4130
2670
|
fetchJson,
|
|
4131
|
-
config:
|
|
2671
|
+
config: {
|
|
2672
|
+
...config,
|
|
4132
2673
|
apiUrl
|
|
4133
|
-
}
|
|
2674
|
+
},
|
|
4134
2675
|
zohoRateLimiter: fetchHandler._rateLimiter
|
|
4135
2676
|
};
|
|
4136
2677
|
const zohoRecruit = {
|
|
@@ -4146,10 +2687,7 @@ function zohoRecruitFactory(factoryConfig) {
|
|
|
4146
2687
|
* @returns
|
|
4147
2688
|
*/
|
|
4148
2689
|
function accessToken(context) {
|
|
4149
|
-
return input => {
|
|
4150
|
-
var _input$client$clientI, _input$client, _input$client$clientS, _input$client2, _input$refreshToken;
|
|
4151
|
-
return context.fetchJson(`/oauth/v2/token?grant_type=refresh_token&client_id=${(_input$client$clientI = input == null || (_input$client = input.client) == null ? void 0 : _input$client.clientId) != null ? _input$client$clientI : context.config.clientId}&client_secret=${(_input$client$clientS = input == null || (_input$client2 = input.client) == null ? void 0 : _input$client2.clientSecret) != null ? _input$client$clientS : context.config.clientSecret}&refresh_token=${(_input$refreshToken = input == null ? void 0 : input.refreshToken) != null ? _input$refreshToken : context.config.refreshToken}`, zohoAccountsApiFetchJsonInput('POST'));
|
|
4152
|
-
};
|
|
2690
|
+
return input => context.fetchJson(`/oauth/v2/token?grant_type=refresh_token&client_id=${input?.client?.clientId ?? context.config.clientId}&client_secret=${input?.client?.clientSecret ?? context.config.clientSecret}&refresh_token=${input?.refreshToken ?? context.config.refreshToken}`, zohoAccountsApiFetchJsonInput('POST'));
|
|
4153
2691
|
}
|
|
4154
2692
|
function zohoAccountsApiFetchJsonInput(method, body) {
|
|
4155
2693
|
const result = {
|
|
@@ -4192,7 +2730,6 @@ function zohoAccountsFactory(factoryConfig) {
|
|
|
4192
2730
|
})
|
|
4193
2731
|
} = factoryConfig;
|
|
4194
2732
|
return config => {
|
|
4195
|
-
var _config$apiUrl;
|
|
4196
2733
|
if (!config.refreshToken) {
|
|
4197
2734
|
throw new Error('ZohoAccountsConfig missing refreshToken.');
|
|
4198
2735
|
} else if (!config.clientId) {
|
|
@@ -4200,7 +2737,7 @@ function zohoAccountsFactory(factoryConfig) {
|
|
|
4200
2737
|
} else if (!config.clientSecret) {
|
|
4201
2738
|
throw new Error('ZohoAccountsConfig missing clientSecret.');
|
|
4202
2739
|
}
|
|
4203
|
-
const apiUrl = zohoAccountsConfigApiUrl(
|
|
2740
|
+
const apiUrl = zohoAccountsConfigApiUrl(config.apiUrl ?? 'us');
|
|
4204
2741
|
const baseFetch = fetchFactory({
|
|
4205
2742
|
apiUrl
|
|
4206
2743
|
});
|
|
@@ -4235,9 +2772,10 @@ function zohoAccountsFactory(factoryConfig) {
|
|
|
4235
2772
|
fetch: fetch$1,
|
|
4236
2773
|
fetchJson,
|
|
4237
2774
|
loadAccessToken,
|
|
4238
|
-
config:
|
|
2775
|
+
config: {
|
|
2776
|
+
...config,
|
|
4239
2777
|
apiUrl
|
|
4240
|
-
}
|
|
2778
|
+
}
|
|
4241
2779
|
};
|
|
4242
2780
|
const zohoAccounts = {
|
|
4243
2781
|
accountsContext
|
|
@@ -4257,7 +2795,7 @@ function zohoAccountsZohoAccessTokenFactory(config) {
|
|
|
4257
2795
|
accessTokenCache,
|
|
4258
2796
|
tokenExpirationBuffer: inputTokenExpirationBuffer
|
|
4259
2797
|
} = config;
|
|
4260
|
-
const tokenExpirationBuffer = inputTokenExpirationBuffer
|
|
2798
|
+
const tokenExpirationBuffer = inputTokenExpirationBuffer ?? util.MS_IN_MINUTE;
|
|
4261
2799
|
/**
|
|
4262
2800
|
* Caches the token internally here until it expires.
|
|
4263
2801
|
*/
|
|
@@ -4265,7 +2803,7 @@ function zohoAccountsZohoAccessTokenFactory(config) {
|
|
|
4265
2803
|
return async () => {
|
|
4266
2804
|
// load from cache
|
|
4267
2805
|
if (!currentToken) {
|
|
4268
|
-
const cachedToken = await
|
|
2806
|
+
const cachedToken = await accessTokenCache?.loadCachedToken();
|
|
4269
2807
|
if (cachedToken) {
|
|
4270
2808
|
currentToken = cachedToken;
|
|
4271
2809
|
}
|
|
@@ -4287,7 +2825,7 @@ function zohoAccountsZohoAccessTokenFactory(config) {
|
|
|
4287
2825
|
}
|
|
4288
2826
|
if (currentToken) {
|
|
4289
2827
|
try {
|
|
4290
|
-
await
|
|
2828
|
+
await accessTokenCache?.updateCachedToken(currentToken);
|
|
4291
2829
|
} catch (e) {
|
|
4292
2830
|
// do nothing
|
|
4293
2831
|
}
|