@dereekb/zoho 11.1.8 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -4,7 +4,25 @@ import { BaseError } from 'make-error';
4
4
 
5
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
6
 
7
- var fails$c = function (exec) {
7
+ var check = function (it) {
8
+ return it && it.Math === Math && it;
9
+ };
10
+
11
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
+ var global$j =
13
+ // eslint-disable-next-line es/no-global-this -- safe
14
+ check(typeof globalThis == 'object' && globalThis) ||
15
+ check(typeof window == 'object' && window) ||
16
+ // eslint-disable-next-line no-restricted-globals -- safe
17
+ check(typeof self == 'object' && self) ||
18
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
20
+ // eslint-disable-next-line no-new-func -- fallback
21
+ (function () { return this; })() || Function('return this')();
22
+
23
+ var objectGetOwnPropertyDescriptor = {};
24
+
25
+ var fails$h = function (exec) {
8
26
  try {
9
27
  return !!exec();
10
28
  } catch (error) {
@@ -12,17 +30,17 @@ var fails$c = function (exec) {
12
30
  }
13
31
  };
14
32
 
15
- var fails$b = fails$c;
33
+ var fails$g = fails$h;
16
34
 
17
35
  // Detect IE8's incomplete defineProperty implementation
18
- var descriptors = !fails$b(function () {
36
+ var descriptors = !fails$g(function () {
19
37
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
20
38
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
21
39
  });
22
40
 
23
- var fails$a = fails$c;
41
+ var fails$f = fails$h;
24
42
 
25
- var functionBindNative = !fails$a(function () {
43
+ var functionBindNative = !fails$f(function () {
26
44
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
27
45
  var test = (function () { /* empty */ }).bind();
28
46
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -31,71 +49,97 @@ var functionBindNative = !fails$a(function () {
31
49
 
32
50
  var NATIVE_BIND$3 = functionBindNative;
33
51
 
34
- var FunctionPrototype$2 = Function.prototype;
35
- var call$d = FunctionPrototype$2.call;
36
- var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$d, call$d);
52
+ var call$i = Function.prototype.call;
37
53
 
38
- var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
39
- return function () {
40
- return call$d.apply(fn, arguments);
41
- };
54
+ var functionCall = NATIVE_BIND$3 ? call$i.bind(call$i) : function () {
55
+ return call$i.apply(call$i, arguments);
42
56
  };
43
57
 
44
- // we can't use just `it == null` since of `document.all` special case
45
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
46
- var isNullOrUndefined$4 = function (it) {
47
- return it === null || it === undefined;
58
+ var objectPropertyIsEnumerable = {};
59
+
60
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
61
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
62
+ var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
63
+
64
+ // Nashorn ~ JDK8 bug
65
+ var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
66
+
67
+ // `Object.prototype.propertyIsEnumerable` method implementation
68
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
69
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
70
+ var descriptor = getOwnPropertyDescriptor$3(this, V);
71
+ return !!descriptor && descriptor.enumerable;
72
+ } : $propertyIsEnumerable;
73
+
74
+ var createPropertyDescriptor$4 = function (bitmap, value) {
75
+ return {
76
+ enumerable: !(bitmap & 1),
77
+ configurable: !(bitmap & 2),
78
+ writable: !(bitmap & 4),
79
+ value: value
80
+ };
48
81
  };
49
82
 
50
- var isNullOrUndefined$3 = isNullOrUndefined$4;
83
+ var NATIVE_BIND$2 = functionBindNative;
51
84
 
52
- var $TypeError$d = TypeError;
85
+ var FunctionPrototype$2 = Function.prototype;
86
+ var call$h = FunctionPrototype$2.call;
87
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$h, call$h);
53
88
 
54
- // `RequireObjectCoercible` abstract operation
55
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
56
- var requireObjectCoercible$2 = function (it) {
57
- if (isNullOrUndefined$3(it)) throw new $TypeError$d("Can't call method on " + it);
58
- return it;
89
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
90
+ return function () {
91
+ return call$h.apply(fn, arguments);
92
+ };
59
93
  };
60
94
 
61
- var requireObjectCoercible$1 = requireObjectCoercible$2;
95
+ var uncurryThis$f = functionUncurryThis;
62
96
 
63
- var $Object$3 = Object;
97
+ var toString$3 = uncurryThis$f({}.toString);
98
+ var stringSlice$1 = uncurryThis$f(''.slice);
64
99
 
65
- // `ToObject` abstract operation
66
- // https://tc39.es/ecma262/#sec-toobject
67
- var toObject$3 = function (argument) {
68
- return $Object$3(requireObjectCoercible$1(argument));
100
+ var classofRaw$2 = function (it) {
101
+ return stringSlice$1(toString$3(it), 8, -1);
69
102
  };
70
103
 
71
104
  var uncurryThis$e = functionUncurryThis;
72
- var toObject$2 = toObject$3;
105
+ var fails$e = fails$h;
106
+ var classof$6 = classofRaw$2;
73
107
 
74
- var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
108
+ var $Object$4 = Object;
109
+ var split = uncurryThis$e(''.split);
75
110
 
76
- // `HasOwnProperty` abstract operation
77
- // https://tc39.es/ecma262/#sec-hasownproperty
78
- // eslint-disable-next-line es/no-object-hasown -- safe
79
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
80
- return hasOwnProperty(toObject$2(it), key);
111
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
+ var indexedObject = fails$e(function () {
113
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
+ // eslint-disable-next-line no-prototype-builtins -- safe
115
+ return !$Object$4('z').propertyIsEnumerable(0);
116
+ }) ? function (it) {
117
+ return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
118
+ } : $Object$4;
119
+
120
+ // we can't use just `it == null` since of `document.all` special case
121
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
122
+ var isNullOrUndefined$4 = function (it) {
123
+ return it === null || it === undefined;
81
124
  };
82
125
 
83
- var DESCRIPTORS$a = descriptors;
84
- var hasOwn$9 = hasOwnProperty_1;
126
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
85
127
 
86
- var FunctionPrototype$1 = Function.prototype;
87
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
88
- var getDescriptor = DESCRIPTORS$a && Object.getOwnPropertyDescriptor;
128
+ var $TypeError$f = TypeError;
89
129
 
90
- var EXISTS$1 = hasOwn$9(FunctionPrototype$1, 'name');
91
- // additional protection from minified / mangled / dropped function names
92
- var PROPER = EXISTS$1 && (function something() { /* empty */ }).name === 'something';
93
- var CONFIGURABLE$1 = EXISTS$1 && (!DESCRIPTORS$a || (DESCRIPTORS$a && getDescriptor(FunctionPrototype$1, 'name').configurable));
130
+ // `RequireObjectCoercible` abstract operation
131
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
132
+ var requireObjectCoercible$3 = function (it) {
133
+ if (isNullOrUndefined$3(it)) throw new $TypeError$f("Can't call method on " + it);
134
+ return it;
135
+ };
94
136
 
95
- var functionName = {
96
- EXISTS: EXISTS$1,
97
- PROPER: PROPER,
98
- CONFIGURABLE: CONFIGURABLE$1
137
+ // toObject with fallback for non-array-like ES3 strings
138
+ var IndexedObject$1 = indexedObject;
139
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
140
+
141
+ var toIndexedObject$4 = function (it) {
142
+ return IndexedObject$1(requireObjectCoercible$2(it));
99
143
  };
100
144
 
101
145
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
@@ -104,100 +148,27 @@ var documentAll = typeof document == 'object' && document.all;
104
148
  // `IsCallable` abstract operation
105
149
  // https://tc39.es/ecma262/#sec-iscallable
106
150
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
107
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
151
+ var isCallable$k = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
108
152
  return typeof argument == 'function' || argument === documentAll;
109
153
  } : function (argument) {
110
154
  return typeof argument == 'function';
111
155
  };
112
156
 
113
- var objectDefineProperty = {};
114
-
115
- var check = function (it) {
116
- return it && it.Math === Math && it;
117
- };
118
-
119
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
120
- var global$i =
121
- // eslint-disable-next-line es/no-global-this -- safe
122
- check(typeof globalThis == 'object' && globalThis) ||
123
- check(typeof window == 'object' && window) ||
124
- // eslint-disable-next-line no-restricted-globals -- safe
125
- check(typeof self == 'object' && self) ||
126
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
127
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
128
- // eslint-disable-next-line no-new-func -- fallback
129
- (function () { return this; })() || Function('return this')();
130
-
131
- var isCallable$f = isCallable$g;
132
-
133
- var isObject$9 = function (it) {
134
- return typeof it == 'object' ? it !== null : isCallable$f(it);
135
- };
136
-
137
- var global$h = global$i;
138
- var isObject$8 = isObject$9;
139
-
140
- var document$3 = global$h.document;
141
- // typeof document.createElement is 'object' in old IE
142
- var EXISTS = isObject$8(document$3) && isObject$8(document$3.createElement);
143
-
144
- var documentCreateElement$1 = function (it) {
145
- return EXISTS ? document$3.createElement(it) : {};
146
- };
147
-
148
- var DESCRIPTORS$9 = descriptors;
149
- var fails$9 = fails$c;
150
- var createElement$1 = documentCreateElement$1;
151
-
152
- // Thanks to IE8 for its funny defineProperty
153
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$9(function () {
154
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
155
- return Object.defineProperty(createElement$1('div'), 'a', {
156
- get: function () { return 7; }
157
- }).a !== 7;
158
- });
159
-
160
- var DESCRIPTORS$8 = descriptors;
161
- var fails$8 = fails$c;
162
-
163
- // V8 ~ Chrome 36-
164
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
165
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$8(function () {
166
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
167
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
168
- value: 42,
169
- writable: false
170
- }).prototype !== 42;
171
- });
172
-
173
- var isObject$7 = isObject$9;
174
-
175
- var $String$5 = String;
176
- var $TypeError$c = TypeError;
177
-
178
- // `Assert: Type(argument) is Object`
179
- var anObject$c = function (argument) {
180
- if (isObject$7(argument)) return argument;
181
- throw new $TypeError$c($String$5(argument) + ' is not an object');
182
- };
183
-
184
- var NATIVE_BIND$2 = functionBindNative;
185
-
186
- var call$c = Function.prototype.call;
157
+ var isCallable$j = isCallable$k;
187
158
 
188
- var functionCall = NATIVE_BIND$2 ? call$c.bind(call$c) : function () {
189
- return call$c.apply(call$c, arguments);
159
+ var isObject$d = function (it) {
160
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
190
161
  };
191
162
 
192
- var global$g = global$i;
193
- var isCallable$e = isCallable$g;
163
+ var global$i = global$j;
164
+ var isCallable$i = isCallable$k;
194
165
 
195
166
  var aFunction = function (argument) {
196
- return isCallable$e(argument) ? argument : undefined;
167
+ return isCallable$i(argument) ? argument : undefined;
197
168
  };
198
169
 
199
- var getBuiltIn$7 = function (namespace, method) {
200
- return arguments.length < 2 ? aFunction(global$g[namespace]) : global$g[namespace] && global$g[namespace][method];
170
+ var getBuiltIn$8 = function (namespace, method) {
171
+ return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
201
172
  };
202
173
 
203
174
  var uncurryThis$d = functionUncurryThis;
@@ -206,11 +177,11 @@ var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
206
177
 
207
178
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
208
179
 
209
- var global$f = global$i;
180
+ var global$h = global$j;
210
181
  var userAgent$3 = engineUserAgent;
211
182
 
212
- var process$3 = global$f.process;
213
- var Deno$1 = global$f.Deno;
183
+ var process$3 = global$h.process;
184
+ var Deno$1 = global$h.Deno;
214
185
  var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
215
186
  var v8 = versions && versions.v8;
216
187
  var match, version;
@@ -236,19 +207,19 @@ var engineV8Version = version;
236
207
 
237
208
  /* eslint-disable es/no-symbol -- required for testing */
238
209
  var V8_VERSION$1 = engineV8Version;
239
- var fails$7 = fails$c;
240
- var global$e = global$i;
210
+ var fails$d = fails$h;
211
+ var global$g = global$j;
241
212
 
242
- var $String$4 = global$e.String;
213
+ var $String$5 = global$g.String;
243
214
 
244
215
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
245
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
216
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
246
217
  var symbol = Symbol('symbol detection');
247
218
  // Chrome 38 Symbol has incorrect toString conversion
248
219
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
249
220
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
250
221
  // of course, fail.
251
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
222
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
252
223
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
253
224
  !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
254
225
  });
@@ -260,152 +231,178 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
260
231
  && !Symbol.sham
261
232
  && typeof Symbol.iterator == 'symbol';
262
233
 
263
- var getBuiltIn$6 = getBuiltIn$7;
264
- var isCallable$d = isCallable$g;
265
- var isPrototypeOf$3 = objectIsPrototypeOf;
234
+ var getBuiltIn$7 = getBuiltIn$8;
235
+ var isCallable$h = isCallable$k;
236
+ var isPrototypeOf$4 = objectIsPrototypeOf;
266
237
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
267
238
 
268
- var $Object$2 = Object;
239
+ var $Object$3 = Object;
269
240
 
270
241
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
271
242
  return typeof it == 'symbol';
272
243
  } : function (it) {
273
- var $Symbol = getBuiltIn$6('Symbol');
274
- return isCallable$d($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$2(it));
244
+ var $Symbol = getBuiltIn$7('Symbol');
245
+ return isCallable$h($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$3(it));
275
246
  };
276
247
 
277
- var $String$3 = String;
248
+ var $String$4 = String;
278
249
 
279
250
  var tryToString$4 = function (argument) {
280
251
  try {
281
- return $String$3(argument);
252
+ return $String$4(argument);
282
253
  } catch (error) {
283
254
  return 'Object';
284
255
  }
285
256
  };
286
257
 
287
- var isCallable$c = isCallable$g;
258
+ var isCallable$g = isCallable$k;
288
259
  var tryToString$3 = tryToString$4;
289
260
 
290
- var $TypeError$b = TypeError;
261
+ var $TypeError$e = TypeError;
291
262
 
292
263
  // `Assert: IsCallable(argument) is true`
293
- var aCallable$9 = function (argument) {
294
- if (isCallable$c(argument)) return argument;
295
- throw new $TypeError$b(tryToString$3(argument) + ' is not a function');
264
+ var aCallable$d = function (argument) {
265
+ if (isCallable$g(argument)) return argument;
266
+ throw new $TypeError$e(tryToString$3(argument) + ' is not a function');
296
267
  };
297
268
 
298
- var aCallable$8 = aCallable$9;
269
+ var aCallable$c = aCallable$d;
299
270
  var isNullOrUndefined$2 = isNullOrUndefined$4;
300
271
 
301
272
  // `GetMethod` abstract operation
302
273
  // https://tc39.es/ecma262/#sec-getmethod
303
- var getMethod$3 = function (V, P) {
274
+ var getMethod$4 = function (V, P) {
304
275
  var func = V[P];
305
- return isNullOrUndefined$2(func) ? undefined : aCallable$8(func);
276
+ return isNullOrUndefined$2(func) ? undefined : aCallable$c(func);
306
277
  };
307
278
 
308
- var call$b = functionCall;
309
- var isCallable$b = isCallable$g;
310
- var isObject$6 = isObject$9;
279
+ var call$g = functionCall;
280
+ var isCallable$f = isCallable$k;
281
+ var isObject$c = isObject$d;
311
282
 
312
- var $TypeError$a = TypeError;
283
+ var $TypeError$d = TypeError;
313
284
 
314
285
  // `OrdinaryToPrimitive` abstract operation
315
286
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
316
287
  var ordinaryToPrimitive$1 = function (input, pref) {
317
288
  var fn, val;
318
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
319
- if (isCallable$b(fn = input.valueOf) && !isObject$6(val = call$b(fn, input))) return val;
320
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
321
- throw new $TypeError$a("Can't convert object to primitive value");
289
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$c(val = call$g(fn, input))) return val;
290
+ if (isCallable$f(fn = input.valueOf) && !isObject$c(val = call$g(fn, input))) return val;
291
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$c(val = call$g(fn, input))) return val;
292
+ throw new $TypeError$d("Can't convert object to primitive value");
322
293
  };
323
294
 
324
- var shared$3 = {exports: {}};
295
+ var sharedStore = {exports: {}};
325
296
 
326
- var global$d = global$i;
297
+ var isPure = false;
298
+
299
+ var global$f = global$j;
327
300
 
328
301
  // eslint-disable-next-line es/no-object-defineproperty -- safe
329
- var defineProperty$5 = Object.defineProperty;
302
+ var defineProperty$6 = Object.defineProperty;
330
303
 
331
304
  var defineGlobalProperty$3 = function (key, value) {
332
305
  try {
333
- defineProperty$5(global$d, key, { value: value, configurable: true, writable: true });
306
+ defineProperty$6(global$f, key, { value: value, configurable: true, writable: true });
334
307
  } catch (error) {
335
- global$d[key] = value;
308
+ global$f[key] = value;
336
309
  } return value;
337
310
  };
338
311
 
339
- var global$c = global$i;
312
+ var globalThis$1 = global$j;
340
313
  var defineGlobalProperty$2 = defineGlobalProperty$3;
341
314
 
342
315
  var SHARED = '__core-js_shared__';
343
- var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
344
-
345
- var sharedStore = store$3;
346
-
347
- var store$2 = sharedStore;
316
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
348
317
 
349
- (shared$3.exports = function (key, value) {
350
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
351
- })('versions', []).push({
352
- version: '3.35.1',
318
+ (store$3.versions || (store$3.versions = [])).push({
319
+ version: '3.36.1',
353
320
  mode: 'global',
354
321
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
355
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
322
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
356
323
  source: 'https://github.com/zloirock/core-js'
357
324
  });
358
325
 
326
+ var sharedStoreExports = sharedStore.exports;
327
+
328
+ var store$2 = sharedStoreExports;
329
+
330
+ var shared$3 = function (key, value) {
331
+ return store$2[key] || (store$2[key] = value || {});
332
+ };
333
+
334
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
335
+
336
+ var $Object$2 = Object;
337
+
338
+ // `ToObject` abstract operation
339
+ // https://tc39.es/ecma262/#sec-toobject
340
+ var toObject$5 = function (argument) {
341
+ return $Object$2(requireObjectCoercible$1(argument));
342
+ };
343
+
359
344
  var uncurryThis$c = functionUncurryThis;
345
+ var toObject$4 = toObject$5;
346
+
347
+ var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
348
+
349
+ // `HasOwnProperty` abstract operation
350
+ // https://tc39.es/ecma262/#sec-hasownproperty
351
+ // eslint-disable-next-line es/no-object-hasown -- safe
352
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
353
+ return hasOwnProperty(toObject$4(it), key);
354
+ };
355
+
356
+ var uncurryThis$b = functionUncurryThis;
360
357
 
361
358
  var id = 0;
362
359
  var postfix = Math.random();
363
- var toString$2 = uncurryThis$c(1.0.toString);
360
+ var toString$2 = uncurryThis$b(1.0.toString);
364
361
 
365
362
  var uid$2 = function (key) {
366
363
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
367
364
  };
368
365
 
369
- var global$b = global$i;
370
- var shared$2 = shared$3.exports;
371
- var hasOwn$8 = hasOwnProperty_1;
366
+ var global$e = global$j;
367
+ var shared$2 = shared$3;
368
+ var hasOwn$c = hasOwnProperty_1;
372
369
  var uid$1 = uid$2;
373
370
  var NATIVE_SYMBOL = symbolConstructorDetection;
374
371
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
375
372
 
376
- var Symbol$1 = global$b.Symbol;
373
+ var Symbol$1 = global$e.Symbol;
377
374
  var WellKnownSymbolsStore = shared$2('wks');
378
375
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
379
376
 
380
- var wellKnownSymbol$c = function (name) {
381
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
382
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
377
+ var wellKnownSymbol$f = function (name) {
378
+ if (!hasOwn$c(WellKnownSymbolsStore, name)) {
379
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$c(Symbol$1, name)
383
380
  ? Symbol$1[name]
384
381
  : createWellKnownSymbol('Symbol.' + name);
385
382
  } return WellKnownSymbolsStore[name];
386
383
  };
387
384
 
388
- var call$a = functionCall;
389
- var isObject$5 = isObject$9;
385
+ var call$f = functionCall;
386
+ var isObject$b = isObject$d;
390
387
  var isSymbol$1 = isSymbol$2;
391
- var getMethod$2 = getMethod$3;
388
+ var getMethod$3 = getMethod$4;
392
389
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
393
- var wellKnownSymbol$b = wellKnownSymbol$c;
390
+ var wellKnownSymbol$e = wellKnownSymbol$f;
394
391
 
395
- var $TypeError$9 = TypeError;
396
- var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
392
+ var $TypeError$c = TypeError;
393
+ var TO_PRIMITIVE = wellKnownSymbol$e('toPrimitive');
397
394
 
398
395
  // `ToPrimitive` abstract operation
399
396
  // https://tc39.es/ecma262/#sec-toprimitive
400
397
  var toPrimitive$1 = function (input, pref) {
401
- if (!isObject$5(input) || isSymbol$1(input)) return input;
402
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
398
+ if (!isObject$b(input) || isSymbol$1(input)) return input;
399
+ var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
403
400
  var result;
404
401
  if (exoticToPrim) {
405
402
  if (pref === undefined) pref = 'default';
406
- result = call$a(exoticToPrim, input, pref);
407
- if (!isObject$5(result) || isSymbol$1(result)) return result;
408
- throw new $TypeError$9("Can't convert object to primitive value");
403
+ result = call$f(exoticToPrim, input, pref);
404
+ if (!isObject$b(result) || isSymbol$1(result)) return result;
405
+ throw new $TypeError$c("Can't convert object to primitive value");
409
406
  }
410
407
  if (pref === undefined) pref = 'number';
411
408
  return ordinaryToPrimitive(input, pref);
@@ -421,117 +418,198 @@ var toPropertyKey$2 = function (argument) {
421
418
  return isSymbol(key) ? key : key + '';
422
419
  };
423
420
 
424
- var DESCRIPTORS$7 = descriptors;
421
+ var global$d = global$j;
422
+ var isObject$a = isObject$d;
423
+
424
+ var document$3 = global$d.document;
425
+ // typeof document.createElement is 'object' in old IE
426
+ var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
427
+
428
+ var documentCreateElement$1 = function (it) {
429
+ return EXISTS$1 ? document$3.createElement(it) : {};
430
+ };
431
+
432
+ var DESCRIPTORS$e = descriptors;
433
+ var fails$c = fails$h;
434
+ var createElement$1 = documentCreateElement$1;
435
+
436
+ // Thanks to IE8 for its funny defineProperty
437
+ var ie8DomDefine = !DESCRIPTORS$e && !fails$c(function () {
438
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
439
+ return Object.defineProperty(createElement$1('div'), 'a', {
440
+ get: function () { return 7; }
441
+ }).a !== 7;
442
+ });
443
+
444
+ var DESCRIPTORS$d = descriptors;
445
+ var call$e = functionCall;
446
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
447
+ var createPropertyDescriptor$3 = createPropertyDescriptor$4;
448
+ var toIndexedObject$3 = toIndexedObject$4;
449
+ var toPropertyKey$1 = toPropertyKey$2;
450
+ var hasOwn$b = hasOwnProperty_1;
425
451
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
452
+
453
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
454
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
455
+
456
+ // `Object.getOwnPropertyDescriptor` method
457
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
458
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$d ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
459
+ O = toIndexedObject$3(O);
460
+ P = toPropertyKey$1(P);
461
+ if (IE8_DOM_DEFINE$1) try {
462
+ return $getOwnPropertyDescriptor$1(O, P);
463
+ } catch (error) { /* empty */ }
464
+ if (hasOwn$b(O, P)) return createPropertyDescriptor$3(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
465
+ };
466
+
467
+ var objectDefineProperty = {};
468
+
469
+ var DESCRIPTORS$c = descriptors;
470
+ var fails$b = fails$h;
471
+
472
+ // V8 ~ Chrome 36-
473
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
474
+ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$b(function () {
475
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
476
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
477
+ value: 42,
478
+ writable: false
479
+ }).prototype !== 42;
480
+ });
481
+
482
+ var isObject$9 = isObject$d;
483
+
484
+ var $String$3 = String;
485
+ var $TypeError$b = TypeError;
486
+
487
+ // `Assert: Type(argument) is Object`
488
+ var anObject$i = function (argument) {
489
+ if (isObject$9(argument)) return argument;
490
+ throw new $TypeError$b($String$3(argument) + ' is not an object');
491
+ };
492
+
493
+ var DESCRIPTORS$b = descriptors;
494
+ var IE8_DOM_DEFINE = ie8DomDefine;
426
495
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
427
- var anObject$b = anObject$c;
428
- var toPropertyKey$1 = toPropertyKey$2;
496
+ var anObject$h = anObject$i;
497
+ var toPropertyKey = toPropertyKey$2;
429
498
 
430
- var $TypeError$8 = TypeError;
499
+ var $TypeError$a = TypeError;
431
500
  // eslint-disable-next-line es/no-object-defineproperty -- safe
432
501
  var $defineProperty = Object.defineProperty;
433
502
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
434
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
503
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
435
504
  var ENUMERABLE = 'enumerable';
436
- var CONFIGURABLE = 'configurable';
505
+ var CONFIGURABLE$1 = 'configurable';
437
506
  var WRITABLE = 'writable';
438
507
 
439
508
  // `Object.defineProperty` method
440
509
  // https://tc39.es/ecma262/#sec-object.defineproperty
441
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
442
- anObject$b(O);
443
- P = toPropertyKey$1(P);
444
- anObject$b(Attributes);
510
+ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
511
+ anObject$h(O);
512
+ P = toPropertyKey(P);
513
+ anObject$h(Attributes);
445
514
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
446
- var current = $getOwnPropertyDescriptor$1(O, P);
515
+ var current = $getOwnPropertyDescriptor(O, P);
447
516
  if (current && current[WRITABLE]) {
448
517
  O[P] = Attributes.value;
449
518
  Attributes = {
450
- configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
519
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
451
520
  enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
452
521
  writable: false
453
522
  };
454
523
  }
455
524
  } return $defineProperty(O, P, Attributes);
456
525
  } : $defineProperty : function defineProperty(O, P, Attributes) {
457
- anObject$b(O);
458
- P = toPropertyKey$1(P);
459
- anObject$b(Attributes);
460
- if (IE8_DOM_DEFINE$1) try {
526
+ anObject$h(O);
527
+ P = toPropertyKey(P);
528
+ anObject$h(Attributes);
529
+ if (IE8_DOM_DEFINE) try {
461
530
  return $defineProperty(O, P, Attributes);
462
531
  } catch (error) { /* empty */ }
463
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
532
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$a('Accessors not supported');
464
533
  if ('value' in Attributes) O[P] = Attributes.value;
465
534
  return O;
466
535
  };
467
536
 
468
- var makeBuiltIn$3 = {exports: {}};
537
+ var DESCRIPTORS$a = descriptors;
538
+ var definePropertyModule$4 = objectDefineProperty;
539
+ var createPropertyDescriptor$2 = createPropertyDescriptor$4;
469
540
 
470
- var uncurryThis$b = functionUncurryThis;
471
- var isCallable$a = isCallable$g;
472
- var store$1 = sharedStore;
541
+ var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value) {
542
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
543
+ } : function (object, key, value) {
544
+ object[key] = value;
545
+ return object;
546
+ };
473
547
 
474
- var functionToString = uncurryThis$b(Function.toString);
548
+ var makeBuiltIn$3 = {exports: {}};
475
549
 
476
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
477
- if (!isCallable$a(store$1.inspectSource)) {
478
- store$1.inspectSource = function (it) {
479
- return functionToString(it);
480
- };
481
- }
550
+ var DESCRIPTORS$9 = descriptors;
551
+ var hasOwn$a = hasOwnProperty_1;
482
552
 
483
- var inspectSource$3 = store$1.inspectSource;
553
+ var FunctionPrototype$1 = Function.prototype;
554
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
555
+ var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;
484
556
 
485
- var global$a = global$i;
486
- var isCallable$9 = isCallable$g;
557
+ var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
558
+ // additional protection from minified / mangled / dropped function names
559
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
560
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype$1, 'name').configurable));
487
561
 
488
- var WeakMap$1 = global$a.WeakMap;
562
+ var functionName = {
563
+ EXISTS: EXISTS,
564
+ PROPER: PROPER,
565
+ CONFIGURABLE: CONFIGURABLE
566
+ };
489
567
 
490
- var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
568
+ var uncurryThis$a = functionUncurryThis;
569
+ var isCallable$e = isCallable$k;
570
+ var store$1 = sharedStoreExports;
491
571
 
492
- var createPropertyDescriptor$2 = function (bitmap, value) {
493
- return {
494
- enumerable: !(bitmap & 1),
495
- configurable: !(bitmap & 2),
496
- writable: !(bitmap & 4),
497
- value: value
572
+ var functionToString = uncurryThis$a(Function.toString);
573
+
574
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
575
+ if (!isCallable$e(store$1.inspectSource)) {
576
+ store$1.inspectSource = function (it) {
577
+ return functionToString(it);
498
578
  };
499
- };
579
+ }
500
580
 
501
- var DESCRIPTORS$6 = descriptors;
502
- var definePropertyModule$3 = objectDefineProperty;
503
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
581
+ var inspectSource$3 = store$1.inspectSource;
504
582
 
505
- var createNonEnumerableProperty$2 = DESCRIPTORS$6 ? function (object, key, value) {
506
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
507
- } : function (object, key, value) {
508
- object[key] = value;
509
- return object;
510
- };
583
+ var global$c = global$j;
584
+ var isCallable$d = isCallable$k;
585
+
586
+ var WeakMap$1 = global$c.WeakMap;
511
587
 
512
- var shared$1 = shared$3.exports;
588
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
589
+
590
+ var shared$1 = shared$3;
513
591
  var uid = uid$2;
514
592
 
515
593
  var keys = shared$1('keys');
516
594
 
517
- var sharedKey$2 = function (key) {
595
+ var sharedKey$3 = function (key) {
518
596
  return keys[key] || (keys[key] = uid(key));
519
597
  };
520
598
 
521
599
  var hiddenKeys$4 = {};
522
600
 
523
601
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
524
- var global$9 = global$i;
525
- var isObject$4 = isObject$9;
526
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
527
- var hasOwn$7 = hasOwnProperty_1;
528
- var shared = sharedStore;
529
- var sharedKey$1 = sharedKey$2;
602
+ var global$b = global$j;
603
+ var isObject$8 = isObject$d;
604
+ var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
605
+ var hasOwn$9 = hasOwnProperty_1;
606
+ var shared = sharedStoreExports;
607
+ var sharedKey$2 = sharedKey$3;
530
608
  var hiddenKeys$3 = hiddenKeys$4;
531
609
 
532
610
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
533
- var TypeError$2 = global$9.TypeError;
534
- var WeakMap = global$9.WeakMap;
611
+ var TypeError$2 = global$b.TypeError;
612
+ var WeakMap = global$b.WeakMap;
535
613
  var set$1, get, has;
536
614
 
537
615
  var enforce = function (it) {
@@ -541,7 +619,7 @@ var enforce = function (it) {
541
619
  var getterFor = function (TYPE) {
542
620
  return function (it) {
543
621
  var state;
544
- if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
622
+ if (!isObject$8(it) || (state = get(it)).type !== TYPE) {
545
623
  throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
546
624
  } return state;
547
625
  };
@@ -567,19 +645,19 @@ if (NATIVE_WEAK_MAP || shared.state) {
567
645
  return store.has(it);
568
646
  };
569
647
  } else {
570
- var STATE = sharedKey$1('state');
648
+ var STATE = sharedKey$2('state');
571
649
  hiddenKeys$3[STATE] = true;
572
650
  set$1 = function (it, metadata) {
573
- if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
651
+ if (hasOwn$9(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
574
652
  metadata.facade = it;
575
- createNonEnumerableProperty$1(it, STATE, metadata);
653
+ createNonEnumerableProperty$5(it, STATE, metadata);
576
654
  return metadata;
577
655
  };
578
656
  get = function (it) {
579
- return hasOwn$7(it, STATE) ? it[STATE] : {};
657
+ return hasOwn$9(it, STATE) ? it[STATE] : {};
580
658
  };
581
659
  has = function (it) {
582
- return hasOwn$7(it, STATE);
660
+ return hasOwn$9(it, STATE);
583
661
  };
584
662
  }
585
663
 
@@ -591,51 +669,51 @@ var internalState = {
591
669
  getterFor: getterFor
592
670
  };
593
671
 
594
- var uncurryThis$a = functionUncurryThis;
595
- var fails$6 = fails$c;
596
- var isCallable$8 = isCallable$g;
597
- var hasOwn$6 = hasOwnProperty_1;
598
- var DESCRIPTORS$5 = descriptors;
672
+ var uncurryThis$9 = functionUncurryThis;
673
+ var fails$a = fails$h;
674
+ var isCallable$c = isCallable$k;
675
+ var hasOwn$8 = hasOwnProperty_1;
676
+ var DESCRIPTORS$8 = descriptors;
599
677
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
600
678
  var inspectSource$2 = inspectSource$3;
601
- var InternalStateModule$1 = internalState;
679
+ var InternalStateModule$2 = internalState;
602
680
 
603
- var enforceInternalState = InternalStateModule$1.enforce;
604
- var getInternalState = InternalStateModule$1.get;
681
+ var enforceInternalState = InternalStateModule$2.enforce;
682
+ var getInternalState = InternalStateModule$2.get;
605
683
  var $String$2 = String;
606
684
  // eslint-disable-next-line es/no-object-defineproperty -- safe
607
- var defineProperty$4 = Object.defineProperty;
608
- var stringSlice$1 = uncurryThis$a(''.slice);
609
- var replace = uncurryThis$a(''.replace);
610
- var join = uncurryThis$a([].join);
685
+ var defineProperty$5 = Object.defineProperty;
686
+ var stringSlice = uncurryThis$9(''.slice);
687
+ var replace$1 = uncurryThis$9(''.replace);
688
+ var join = uncurryThis$9([].join);
611
689
 
612
- var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$6(function () {
613
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
690
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$a(function () {
691
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
614
692
  });
615
693
 
616
694
  var TEMPLATE = String(String).split('String');
617
695
 
618
696
  var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
619
- if (stringSlice$1($String$2(name), 0, 7) === 'Symbol(') {
620
- name = '[' + replace($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
697
+ if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
698
+ name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
621
699
  }
622
700
  if (options && options.getter) name = 'get ' + name;
623
701
  if (options && options.setter) name = 'set ' + name;
624
- if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
625
- if (DESCRIPTORS$5) defineProperty$4(value, 'name', { value: name, configurable: true });
702
+ if (!hasOwn$8(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
703
+ if (DESCRIPTORS$8) defineProperty$5(value, 'name', { value: name, configurable: true });
626
704
  else value.name = name;
627
705
  }
628
- if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
629
- defineProperty$4(value, 'length', { value: options.arity });
706
+ if (CONFIGURABLE_LENGTH && options && hasOwn$8(options, 'arity') && value.length !== options.arity) {
707
+ defineProperty$5(value, 'length', { value: options.arity });
630
708
  }
631
709
  try {
632
- if (options && hasOwn$6(options, 'constructor') && options.constructor) {
633
- if (DESCRIPTORS$5) defineProperty$4(value, 'prototype', { writable: false });
710
+ if (options && hasOwn$8(options, 'constructor') && options.constructor) {
711
+ if (DESCRIPTORS$8) defineProperty$5(value, 'prototype', { writable: false });
634
712
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
635
713
  } else if (value.prototype) value.prototype = undefined;
636
714
  } catch (error) { /* empty */ }
637
715
  var state = enforceInternalState(value);
638
- if (!hasOwn$6(state, 'source')) {
716
+ if (!hasOwn$8(state, 'source')) {
639
717
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
640
718
  } return value;
641
719
  };
@@ -643,19 +721,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
643
721
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
644
722
  // eslint-disable-next-line no-extend-native -- required
645
723
  Function.prototype.toString = makeBuiltIn$2(function toString() {
646
- return isCallable$8(this) && getInternalState(this).source || inspectSource$2(this);
724
+ return isCallable$c(this) && getInternalState(this).source || inspectSource$2(this);
647
725
  }, 'toString');
648
726
 
649
- var isCallable$7 = isCallable$g;
650
- var definePropertyModule$2 = objectDefineProperty;
651
- var makeBuiltIn$1 = makeBuiltIn$3.exports;
727
+ var makeBuiltInExports = makeBuiltIn$3.exports;
728
+
729
+ var isCallable$b = isCallable$k;
730
+ var definePropertyModule$3 = objectDefineProperty;
731
+ var makeBuiltIn$1 = makeBuiltInExports;
652
732
  var defineGlobalProperty$1 = defineGlobalProperty$3;
653
733
 
654
- var defineBuiltIn$4 = function (O, key, value, options) {
734
+ var defineBuiltIn$6 = function (O, key, value, options) {
655
735
  if (!options) options = {};
656
736
  var simple = options.enumerable;
657
737
  var name = options.name !== undefined ? options.name : key;
658
- if (isCallable$7(value)) makeBuiltIn$1(value, name, options);
738
+ if (isCallable$b(value)) makeBuiltIn$1(value, name, options);
659
739
  if (options.global) {
660
740
  if (simple) O[key] = value;
661
741
  else defineGlobalProperty$1(key, value);
@@ -665,7 +745,7 @@ var defineBuiltIn$4 = function (O, key, value, options) {
665
745
  else if (O[key]) simple = true;
666
746
  } catch (error) { /* empty */ }
667
747
  if (simple) O[key] = value;
668
- else definePropertyModule$2.f(O, key, {
748
+ else definePropertyModule$3.f(O, key, {
669
749
  value: value,
670
750
  enumerable: false,
671
751
  configurable: !options.nonConfigurable,
@@ -674,185 +754,6 @@ var defineBuiltIn$4 = function (O, key, value, options) {
674
754
  } return O;
675
755
  };
676
756
 
677
- var wellKnownSymbol$a = wellKnownSymbol$c;
678
-
679
- var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
680
- var test = {};
681
-
682
- test[TO_STRING_TAG$2] = 'z';
683
-
684
- var toStringTagSupport = String(test) === '[object z]';
685
-
686
- var uncurryThis$9 = functionUncurryThis;
687
-
688
- var toString$1 = uncurryThis$9({}.toString);
689
- var stringSlice = uncurryThis$9(''.slice);
690
-
691
- var classofRaw$2 = function (it) {
692
- return stringSlice(toString$1(it), 8, -1);
693
- };
694
-
695
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
696
- var isCallable$6 = isCallable$g;
697
- var classofRaw$1 = classofRaw$2;
698
- var wellKnownSymbol$9 = wellKnownSymbol$c;
699
-
700
- var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
701
- var $Object$1 = Object;
702
-
703
- // ES3 wrong here
704
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
705
-
706
- // fallback for IE11 Script Access Denied error
707
- var tryGet = function (it, key) {
708
- try {
709
- return it[key];
710
- } catch (error) { /* empty */ }
711
- };
712
-
713
- // getting tag from ES6+ `Object.prototype.toString`
714
- var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
715
- var O, tag, result;
716
- return it === undefined ? 'Undefined' : it === null ? 'Null'
717
- // @@toStringTag case
718
- : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
719
- // builtinTag case
720
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
721
- // ES3 arguments fallback
722
- : (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
723
- };
724
-
725
- var classof$5 = classof$6;
726
-
727
- var $String$1 = String;
728
-
729
- var toString = function (argument) {
730
- if (classof$5(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
731
- return $String$1(argument);
732
- };
733
-
734
- var anObject$a = anObject$c;
735
-
736
- // `RegExp.prototype.flags` getter implementation
737
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
738
- var regexpFlags = function () {
739
- var that = anObject$a(this);
740
- var result = '';
741
- if (that.hasIndices) result += 'd';
742
- if (that.global) result += 'g';
743
- if (that.ignoreCase) result += 'i';
744
- if (that.multiline) result += 'm';
745
- if (that.dotAll) result += 's';
746
- if (that.unicode) result += 'u';
747
- if (that.unicodeSets) result += 'v';
748
- if (that.sticky) result += 'y';
749
- return result;
750
- };
751
-
752
- var call$9 = functionCall;
753
- var hasOwn$5 = hasOwnProperty_1;
754
- var isPrototypeOf$2 = objectIsPrototypeOf;
755
- var regExpFlags = regexpFlags;
756
-
757
- var RegExpPrototype$1 = RegExp.prototype;
758
-
759
- var regexpGetFlags = function (R) {
760
- var flags = R.flags;
761
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$5(R, 'flags') && isPrototypeOf$2(RegExpPrototype$1, R)
762
- ? call$9(regExpFlags, R) : flags;
763
- };
764
-
765
- var PROPER_FUNCTION_NAME = functionName.PROPER;
766
- var defineBuiltIn$3 = defineBuiltIn$4;
767
- var anObject$9 = anObject$c;
768
- var $toString = toString;
769
- var fails$5 = fails$c;
770
- var getRegExpFlags = regexpGetFlags;
771
-
772
- var TO_STRING = 'toString';
773
- var RegExpPrototype = RegExp.prototype;
774
- var nativeToString = RegExpPrototype[TO_STRING];
775
-
776
- var NOT_GENERIC = fails$5(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
777
- // FF44- RegExp#toString has a wrong name
778
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
779
-
780
- // `RegExp.prototype.toString` method
781
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
782
- if (NOT_GENERIC || INCORRECT_NAME) {
783
- defineBuiltIn$3(RegExpPrototype, TO_STRING, function toString() {
784
- var R = anObject$9(this);
785
- var pattern = $toString(R.source);
786
- var flags = $toString(getRegExpFlags(R));
787
- return '/' + pattern + '/' + flags;
788
- }, { unsafe: true });
789
- }
790
-
791
- var objectGetOwnPropertyDescriptor = {};
792
-
793
- var objectPropertyIsEnumerable = {};
794
-
795
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
796
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
797
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
798
-
799
- // Nashorn ~ JDK8 bug
800
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
801
-
802
- // `Object.prototype.propertyIsEnumerable` method implementation
803
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
804
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
805
- var descriptor = getOwnPropertyDescriptor$2(this, V);
806
- return !!descriptor && descriptor.enumerable;
807
- } : $propertyIsEnumerable;
808
-
809
- var uncurryThis$8 = functionUncurryThis;
810
- var fails$4 = fails$c;
811
- var classof$4 = classofRaw$2;
812
-
813
- var $Object = Object;
814
- var split = uncurryThis$8(''.split);
815
-
816
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
817
- var indexedObject = fails$4(function () {
818
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
819
- // eslint-disable-next-line no-prototype-builtins -- safe
820
- return !$Object('z').propertyIsEnumerable(0);
821
- }) ? function (it) {
822
- return classof$4(it) === 'String' ? split(it, '') : $Object(it);
823
- } : $Object;
824
-
825
- // toObject with fallback for non-array-like ES3 strings
826
- var IndexedObject$1 = indexedObject;
827
- var requireObjectCoercible = requireObjectCoercible$2;
828
-
829
- var toIndexedObject$4 = function (it) {
830
- return IndexedObject$1(requireObjectCoercible(it));
831
- };
832
-
833
- var DESCRIPTORS$4 = descriptors;
834
- var call$8 = functionCall;
835
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
836
- var createPropertyDescriptor = createPropertyDescriptor$2;
837
- var toIndexedObject$3 = toIndexedObject$4;
838
- var toPropertyKey = toPropertyKey$2;
839
- var hasOwn$4 = hasOwnProperty_1;
840
- var IE8_DOM_DEFINE = ie8DomDefine;
841
-
842
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
843
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
844
-
845
- // `Object.getOwnPropertyDescriptor` method
846
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
847
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
848
- O = toIndexedObject$3(O);
849
- P = toPropertyKey(P);
850
- if (IE8_DOM_DEFINE) try {
851
- return $getOwnPropertyDescriptor(O, P);
852
- } catch (error) { /* empty */ }
853
- if (hasOwn$4(O, P)) return createPropertyDescriptor(!call$8(propertyIsEnumerableModule$1.f, O, P), O[P]);
854
- };
855
-
856
757
  var objectGetOwnPropertyNames = {};
857
758
 
858
759
  var ceil = Math.ceil;
@@ -904,19 +805,20 @@ var toLength = toLength$1;
904
805
 
905
806
  // `LengthOfArrayLike` abstract operation
906
807
  // https://tc39.es/ecma262/#sec-lengthofarraylike
907
- var lengthOfArrayLike$4 = function (obj) {
808
+ var lengthOfArrayLike$5 = function (obj) {
908
809
  return toLength(obj.length);
909
810
  };
910
811
 
911
812
  var toIndexedObject$2 = toIndexedObject$4;
912
813
  var toAbsoluteIndex = toAbsoluteIndex$1;
913
- var lengthOfArrayLike$3 = lengthOfArrayLike$4;
814
+ var lengthOfArrayLike$4 = lengthOfArrayLike$5;
914
815
 
915
816
  // `Array.prototype.{ indexOf, includes }` methods implementation
916
817
  var createMethod = function (IS_INCLUDES) {
917
818
  return function ($this, el, fromIndex) {
918
819
  var O = toIndexedObject$2($this);
919
- var length = lengthOfArrayLike$3(O);
820
+ var length = lengthOfArrayLike$4(O);
821
+ if (length === 0) return !IS_INCLUDES && -1;
920
822
  var index = toAbsoluteIndex(fromIndex, length);
921
823
  var value;
922
824
  // Array#includes uses SameValueZero equality algorithm
@@ -941,22 +843,22 @@ var arrayIncludes = {
941
843
  indexOf: createMethod(false)
942
844
  };
943
845
 
944
- var uncurryThis$7 = functionUncurryThis;
945
- var hasOwn$3 = hasOwnProperty_1;
846
+ var uncurryThis$8 = functionUncurryThis;
847
+ var hasOwn$7 = hasOwnProperty_1;
946
848
  var toIndexedObject$1 = toIndexedObject$4;
947
849
  var indexOf = arrayIncludes.indexOf;
948
850
  var hiddenKeys$2 = hiddenKeys$4;
949
851
 
950
- var push = uncurryThis$7([].push);
852
+ var push = uncurryThis$8([].push);
951
853
 
952
854
  var objectKeysInternal = function (object, names) {
953
855
  var O = toIndexedObject$1(object);
954
856
  var i = 0;
955
857
  var result = [];
956
858
  var key;
957
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
859
+ for (key in O) !hasOwn$7(hiddenKeys$2, key) && hasOwn$7(O, key) && push(result, key);
958
860
  // Don't enum bug & hidden keys
959
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
861
+ while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
960
862
  ~indexOf(result, key) || push(result, key);
961
863
  }
962
864
  return result;
@@ -990,40 +892,40 @@ var objectGetOwnPropertySymbols = {};
990
892
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
991
893
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
992
894
 
993
- var getBuiltIn$5 = getBuiltIn$7;
994
- var uncurryThis$6 = functionUncurryThis;
895
+ var getBuiltIn$6 = getBuiltIn$8;
896
+ var uncurryThis$7 = functionUncurryThis;
995
897
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
996
898
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
997
- var anObject$8 = anObject$c;
899
+ var anObject$g = anObject$i;
998
900
 
999
- var concat$1 = uncurryThis$6([].concat);
901
+ var concat$1 = uncurryThis$7([].concat);
1000
902
 
1001
903
  // all object keys, includes non-enumerable and symbols
1002
- var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
1003
- var keys = getOwnPropertyNamesModule.f(anObject$8(it));
904
+ var ownKeys$1 = getBuiltIn$6('Reflect', 'ownKeys') || function ownKeys(it) {
905
+ var keys = getOwnPropertyNamesModule.f(anObject$g(it));
1004
906
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1005
907
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1006
908
  };
1007
909
 
1008
- var hasOwn$2 = hasOwnProperty_1;
910
+ var hasOwn$6 = hasOwnProperty_1;
1009
911
  var ownKeys = ownKeys$1;
1010
912
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1011
- var definePropertyModule$1 = objectDefineProperty;
913
+ var definePropertyModule$2 = objectDefineProperty;
1012
914
 
1013
- var copyConstructorProperties$1 = function (target, source, exceptions) {
915
+ var copyConstructorProperties$2 = function (target, source, exceptions) {
1014
916
  var keys = ownKeys(source);
1015
- var defineProperty = definePropertyModule$1.f;
917
+ var defineProperty = definePropertyModule$2.f;
1016
918
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1017
919
  for (var i = 0; i < keys.length; i++) {
1018
920
  var key = keys[i];
1019
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
921
+ if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) {
1020
922
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1021
923
  }
1022
924
  }
1023
925
  };
1024
926
 
1025
- var fails$3 = fails$c;
1026
- var isCallable$5 = isCallable$g;
927
+ var fails$9 = fails$h;
928
+ var isCallable$a = isCallable$k;
1027
929
 
1028
930
  var replacement = /#|\.prototype\./;
1029
931
 
@@ -1031,7 +933,7 @@ var isForced$2 = function (feature, detection) {
1031
933
  var value = data[normalize(feature)];
1032
934
  return value === POLYFILL ? true
1033
935
  : value === NATIVE ? false
1034
- : isCallable$5(detection) ? fails$3(detection)
936
+ : isCallable$a(detection) ? fails$9(detection)
1035
937
  : !!detection;
1036
938
  };
1037
939
 
@@ -1045,12 +947,12 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
1045
947
 
1046
948
  var isForced_1 = isForced$2;
1047
949
 
1048
- var global$8 = global$i;
1049
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1050
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
1051
- var defineBuiltIn$2 = defineBuiltIn$4;
950
+ var global$a = global$j;
951
+ var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
952
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
953
+ var defineBuiltIn$5 = defineBuiltIn$6;
1052
954
  var defineGlobalProperty = defineGlobalProperty$3;
1053
- var copyConstructorProperties = copyConstructorProperties$1;
955
+ var copyConstructorProperties$1 = copyConstructorProperties$2;
1054
956
  var isForced$1 = isForced_1;
1055
957
 
1056
958
  /*
@@ -1074,32 +976,118 @@ var _export = function (options, source) {
1074
976
  var STATIC = options.stat;
1075
977
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1076
978
  if (GLOBAL) {
1077
- target = global$8;
979
+ target = global$a;
1078
980
  } else if (STATIC) {
1079
- target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
981
+ target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
1080
982
  } else {
1081
- target = global$8[TARGET] && global$8[TARGET].prototype;
983
+ target = global$a[TARGET] && global$a[TARGET].prototype;
1082
984
  }
1083
985
  if (target) for (key in source) {
1084
986
  sourceProperty = source[key];
1085
987
  if (options.dontCallGetSet) {
1086
- descriptor = getOwnPropertyDescriptor$1(target, key);
988
+ descriptor = getOwnPropertyDescriptor$2(target, key);
1087
989
  targetProperty = descriptor && descriptor.value;
1088
990
  } else targetProperty = target[key];
1089
991
  FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1090
992
  // contained in target
1091
993
  if (!FORCED && targetProperty !== undefined) {
1092
994
  if (typeof sourceProperty == typeof targetProperty) continue;
1093
- copyConstructorProperties(sourceProperty, targetProperty);
995
+ copyConstructorProperties$1(sourceProperty, targetProperty);
1094
996
  }
1095
997
  // add a flag to not completely full polyfills
1096
998
  if (options.sham || (targetProperty && targetProperty.sham)) {
1097
- createNonEnumerableProperty(sourceProperty, 'sham', true);
999
+ createNonEnumerableProperty$4(sourceProperty, 'sham', true);
1098
1000
  }
1099
- defineBuiltIn$2(target, key, sourceProperty, options);
1001
+ defineBuiltIn$5(target, key, sourceProperty, options);
1002
+ }
1003
+ };
1004
+
1005
+ var classof$5 = classofRaw$2;
1006
+
1007
+ // `IsArray` abstract operation
1008
+ // https://tc39.es/ecma262/#sec-isarray
1009
+ // eslint-disable-next-line es/no-array-isarray -- safe
1010
+ var isArray$3 = Array.isArray || function isArray(argument) {
1011
+ return classof$5(argument) === 'Array';
1012
+ };
1013
+
1014
+ var DESCRIPTORS$7 = descriptors;
1015
+ var isArray$2 = isArray$3;
1016
+
1017
+ var $TypeError$9 = TypeError;
1018
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1019
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
1020
+
1021
+ // Safari < 13 does not throw an error in this case
1022
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$7 && !function () {
1023
+ // makes no sense without proper strict mode support
1024
+ if (this !== undefined) return true;
1025
+ try {
1026
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1027
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
1028
+ } catch (error) {
1029
+ return error instanceof TypeError;
1030
+ }
1031
+ }();
1032
+
1033
+ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1034
+ if (isArray$2(O) && !getOwnPropertyDescriptor$1(O, 'length').writable) {
1035
+ throw new $TypeError$9('Cannot set read only .length');
1036
+ } return O.length = length;
1037
+ } : function (O, length) {
1038
+ return O.length = length;
1039
+ };
1040
+
1041
+ var $TypeError$8 = TypeError;
1042
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1043
+
1044
+ var doesNotExceedSafeInteger$2 = function (it) {
1045
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$8('Maximum allowed index exceeded');
1046
+ return it;
1047
+ };
1048
+
1049
+ var $$e = _export;
1050
+ var toObject$3 = toObject$5;
1051
+ var lengthOfArrayLike$3 = lengthOfArrayLike$5;
1052
+ var setArrayLength = arraySetLength;
1053
+ var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
1054
+ var fails$8 = fails$h;
1055
+
1056
+ var INCORRECT_TO_LENGTH = fails$8(function () {
1057
+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1058
+ });
1059
+
1060
+ // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
1061
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1062
+ var properErrorOnNonWritableLength = function () {
1063
+ try {
1064
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1065
+ Object.defineProperty([], 'length', { writable: false }).push();
1066
+ } catch (error) {
1067
+ return error instanceof TypeError;
1100
1068
  }
1101
1069
  };
1102
1070
 
1071
+ var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1072
+
1073
+ // `Array.prototype.push` method
1074
+ // https://tc39.es/ecma262/#sec-array.prototype.push
1075
+ $$e({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
1076
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1077
+ push: function push(item) {
1078
+ var O = toObject$3(this);
1079
+ var len = lengthOfArrayLike$3(O);
1080
+ var argCount = arguments.length;
1081
+ doesNotExceedSafeInteger$1(len + argCount);
1082
+ for (var i = 0; i < argCount; i++) {
1083
+ O[len] = arguments[i];
1084
+ len++;
1085
+ }
1086
+ setArrayLength(O, len);
1087
+ return len;
1088
+ }
1089
+ });
1090
+
1103
1091
  var internalObjectKeys = objectKeysInternal;
1104
1092
  var enumBugKeys$1 = enumBugKeys$3;
1105
1093
 
@@ -1110,30 +1098,30 @@ var objectKeys$2 = Object.keys || function keys(O) {
1110
1098
  return internalObjectKeys(O, enumBugKeys$1);
1111
1099
  };
1112
1100
 
1113
- var DESCRIPTORS$3 = descriptors;
1114
- var uncurryThis$5 = functionUncurryThis;
1115
- var call$7 = functionCall;
1116
- var fails$2 = fails$c;
1101
+ var DESCRIPTORS$6 = descriptors;
1102
+ var uncurryThis$6 = functionUncurryThis;
1103
+ var call$d = functionCall;
1104
+ var fails$7 = fails$h;
1117
1105
  var objectKeys$1 = objectKeys$2;
1118
1106
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1119
1107
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1120
- var toObject$1 = toObject$3;
1108
+ var toObject$2 = toObject$5;
1121
1109
  var IndexedObject = indexedObject;
1122
1110
 
1123
1111
  // eslint-disable-next-line es/no-object-assign -- safe
1124
1112
  var $assign = Object.assign;
1125
1113
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1126
- var defineProperty$3 = Object.defineProperty;
1127
- var concat = uncurryThis$5([].concat);
1114
+ var defineProperty$4 = Object.defineProperty;
1115
+ var concat = uncurryThis$6([].concat);
1128
1116
 
1129
1117
  // `Object.assign` method
1130
1118
  // https://tc39.es/ecma262/#sec-object.assign
1131
- var objectAssign = !$assign || fails$2(function () {
1119
+ var objectAssign = !$assign || fails$7(function () {
1132
1120
  // should have correct order of operations (Edge bug)
1133
- if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1121
+ if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
1134
1122
  enumerable: true,
1135
1123
  get: function () {
1136
- defineProperty$3(this, 'b', {
1124
+ defineProperty$4(this, 'b', {
1137
1125
  value: 3,
1138
1126
  enumerable: false
1139
1127
  });
@@ -1149,7 +1137,7 @@ var objectAssign = !$assign || fails$2(function () {
1149
1137
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1150
1138
  return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1151
1139
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1152
- var T = toObject$1(target);
1140
+ var T = toObject$2(target);
1153
1141
  var argumentsLength = arguments.length;
1154
1142
  var index = 1;
1155
1143
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
@@ -1162,271 +1150,198 @@ var objectAssign = !$assign || fails$2(function () {
1162
1150
  var key;
1163
1151
  while (length > j) {
1164
1152
  key = keys[j++];
1165
- if (!DESCRIPTORS$3 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
1153
+ if (!DESCRIPTORS$6 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
1166
1154
  }
1167
1155
  } return T;
1168
1156
  } : $assign;
1169
1157
 
1170
- var $$7 = _export;
1158
+ var $$d = _export;
1171
1159
  var assign = objectAssign;
1172
1160
 
1173
1161
  // `Object.assign` method
1174
1162
  // https://tc39.es/ecma262/#sec-object.assign
1175
1163
  // eslint-disable-next-line es/no-object-assign -- required for testing
1176
- $$7({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1164
+ $$d({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1177
1165
  assign: assign
1178
1166
  });
1179
1167
 
1180
- /**
1181
- * Base page filter
1182
- */
1168
+ var wellKnownSymbol$d = wellKnownSymbol$f;
1183
1169
 
1184
- /**
1185
- * Page result that contains an array of data and page information.
1186
- */
1170
+ var TO_STRING_TAG$4 = wellKnownSymbol$d('toStringTag');
1171
+ var test = {};
1187
1172
 
1188
- /**
1189
- * Page information within a ZohoPageResult
1190
- */
1173
+ test[TO_STRING_TAG$4] = 'z';
1191
1174
 
1192
- /**
1193
- * Reference to a ZohoPageResultInfo value
1194
- */
1175
+ var toStringTagSupport = String(test) === '[object z]';
1195
1176
 
1196
- // MARK: Page Factory
1177
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1178
+ var isCallable$9 = isCallable$k;
1179
+ var classofRaw$1 = classofRaw$2;
1180
+ var wellKnownSymbol$c = wellKnownSymbol$f;
1197
1181
 
1198
- /**
1199
- * Creates a FetchPageFactory using the input ZohoFetchPageFetchFunction.
1200
- *
1201
- * @param fetch
1202
- * @param defaults
1203
- * @returns
1204
- */
1205
- function zohoFetchPageFactory(fetch, defaults) {
1206
- return fetchPageFactory(Object.assign({}, defaults, {
1207
- fetch,
1208
- readFetchPageResultInfo: function (result) {
1209
- var _result$info$more_rec, _result$info;
1210
- return {
1211
- hasNext: (_result$info$more_rec = (_result$info = result.info) == null ? void 0 : _result$info.more_records) != null ? _result$info$more_rec : false // if no info is returned, assume something wrong and there are no more records
1212
- };
1213
- },
1214
-
1215
- buildInputForNextPage: function (pageResult, input, options) {
1216
- var _options$maxItemsPerP;
1217
- return Object.assign({}, input, {
1218
- page: getNextPageNumber(pageResult),
1219
- per_page: (_options$maxItemsPerP = options.maxItemsPerPage) != null ? _options$maxItemsPerP : input.per_page
1220
- });
1221
- }
1222
- }));
1223
- }
1224
-
1225
- const ZOHO_RECRUIT_SERVICE_NAME = 'recruit';
1226
- function zohoRecruitConfigApiUrl(input) {
1227
- switch (input) {
1228
- case 'sandbox':
1229
- return 'https://recruitsandbox.zoho.com/recruit';
1230
- case 'production':
1231
- return 'https://recruit.zoho.com/recruit';
1232
- default:
1233
- return input;
1234
- }
1235
- }
1182
+ var TO_STRING_TAG$3 = wellKnownSymbol$c('toStringTag');
1183
+ var $Object$1 = Object;
1236
1184
 
1237
- var classof$3 = classofRaw$2;
1185
+ // ES3 wrong here
1186
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1238
1187
 
1239
- // `IsArray` abstract operation
1240
- // https://tc39.es/ecma262/#sec-isarray
1241
- // eslint-disable-next-line es/no-array-isarray -- safe
1242
- var isArray$2 = Array.isArray || function isArray(argument) {
1243
- return classof$3(argument) === 'Array';
1188
+ // fallback for IE11 Script Access Denied error
1189
+ var tryGet = function (it, key) {
1190
+ try {
1191
+ return it[key];
1192
+ } catch (error) { /* empty */ }
1244
1193
  };
1245
1194
 
1246
- var $TypeError$7 = TypeError;
1247
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1248
-
1249
- var doesNotExceedSafeInteger$1 = function (it) {
1250
- if (it > MAX_SAFE_INTEGER) throw $TypeError$7('Maximum allowed index exceeded');
1251
- return it;
1195
+ // getting tag from ES6+ `Object.prototype.toString`
1196
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1197
+ var O, tag, result;
1198
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1199
+ // @@toStringTag case
1200
+ : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$3)) == 'string' ? tag
1201
+ // builtinTag case
1202
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1203
+ // ES3 arguments fallback
1204
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
1252
1205
  };
1253
1206
 
1254
- var classofRaw = classofRaw$2;
1255
- var uncurryThis$4 = functionUncurryThis;
1207
+ var classof$3 = classof$4;
1256
1208
 
1257
- var functionUncurryThisClause = function (fn) {
1258
- // Nashorn bug:
1259
- // https://github.com/zloirock/core-js/issues/1128
1260
- // https://github.com/zloirock/core-js/issues/1130
1261
- if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
1262
- };
1209
+ var $String$1 = String;
1263
1210
 
1264
- var uncurryThis$3 = functionUncurryThisClause;
1265
- var aCallable$7 = aCallable$9;
1266
- var NATIVE_BIND$1 = functionBindNative;
1211
+ var toString$1 = function (argument) {
1212
+ if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1213
+ return $String$1(argument);
1214
+ };
1267
1215
 
1268
- var bind$5 = uncurryThis$3(uncurryThis$3.bind);
1216
+ var anObject$f = anObject$i;
1269
1217
 
1270
- // optional / simple context binding
1271
- var functionBindContext = function (fn, that) {
1272
- aCallable$7(fn);
1273
- return that === undefined ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function (/* ...args */) {
1274
- return fn.apply(that, arguments);
1275
- };
1218
+ // `RegExp.prototype.flags` getter implementation
1219
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1220
+ var regexpFlags = function () {
1221
+ var that = anObject$f(this);
1222
+ var result = '';
1223
+ if (that.hasIndices) result += 'd';
1224
+ if (that.global) result += 'g';
1225
+ if (that.ignoreCase) result += 'i';
1226
+ if (that.multiline) result += 'm';
1227
+ if (that.dotAll) result += 's';
1228
+ if (that.unicode) result += 'u';
1229
+ if (that.unicodeSets) result += 'v';
1230
+ if (that.sticky) result += 'y';
1231
+ return result;
1276
1232
  };
1277
1233
 
1278
- var isArray$1 = isArray$2;
1279
- var lengthOfArrayLike$2 = lengthOfArrayLike$4;
1280
- var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1281
- var bind$4 = functionBindContext;
1234
+ var call$c = functionCall;
1235
+ var hasOwn$5 = hasOwnProperty_1;
1236
+ var isPrototypeOf$3 = objectIsPrototypeOf;
1237
+ var regExpFlags = regexpFlags;
1282
1238
 
1283
- // `FlattenIntoArray` abstract operation
1284
- // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
1285
- var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
1286
- var targetIndex = start;
1287
- var sourceIndex = 0;
1288
- var mapFn = mapper ? bind$4(mapper, thisArg) : false;
1289
- var element, elementLen;
1239
+ var RegExpPrototype$1 = RegExp.prototype;
1290
1240
 
1291
- while (sourceIndex < sourceLen) {
1292
- if (sourceIndex in source) {
1293
- element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
1241
+ var regexpGetFlags = function (R) {
1242
+ var flags = R.flags;
1243
+ return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$5(R, 'flags') && isPrototypeOf$3(RegExpPrototype$1, R)
1244
+ ? call$c(regExpFlags, R) : flags;
1245
+ };
1294
1246
 
1295
- if (depth > 0 && isArray$1(element)) {
1296
- elementLen = lengthOfArrayLike$2(element);
1297
- targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
1298
- } else {
1299
- doesNotExceedSafeInteger(targetIndex + 1);
1300
- target[targetIndex] = element;
1301
- }
1247
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
1248
+ var defineBuiltIn$4 = defineBuiltIn$6;
1249
+ var anObject$e = anObject$i;
1250
+ var $toString = toString$1;
1251
+ var fails$6 = fails$h;
1252
+ var getRegExpFlags = regexpGetFlags;
1302
1253
 
1303
- targetIndex++;
1304
- }
1305
- sourceIndex++;
1306
- }
1307
- return targetIndex;
1308
- };
1254
+ var TO_STRING = 'toString';
1255
+ var RegExpPrototype = RegExp.prototype;
1256
+ var nativeToString = RegExpPrototype[TO_STRING];
1309
1257
 
1310
- var flattenIntoArray_1 = flattenIntoArray$1;
1258
+ var NOT_GENERIC = fails$6(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
1259
+ // FF44- RegExp#toString has a wrong name
1260
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
1311
1261
 
1312
- var uncurryThis$2 = functionUncurryThis;
1313
- var fails$1 = fails$c;
1314
- var isCallable$4 = isCallable$g;
1315
- var classof$2 = classof$6;
1316
- var getBuiltIn$4 = getBuiltIn$7;
1317
- var inspectSource$1 = inspectSource$3;
1262
+ // `RegExp.prototype.toString` method
1263
+ // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1264
+ if (NOT_GENERIC || INCORRECT_NAME) {
1265
+ defineBuiltIn$4(RegExpPrototype, TO_STRING, function toString() {
1266
+ var R = anObject$e(this);
1267
+ var pattern = $toString(R.source);
1268
+ var flags = $toString(getRegExpFlags(R));
1269
+ return '/' + pattern + '/' + flags;
1270
+ }, { unsafe: true });
1271
+ }
1318
1272
 
1319
- var noop = function () { /* empty */ };
1320
- var construct = getBuiltIn$4('Reflect', 'construct');
1321
- var constructorRegExp = /^\s*(?:class|function)\b/;
1322
- var exec = uncurryThis$2(constructorRegExp.exec);
1323
- var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1273
+ var isPrototypeOf$2 = objectIsPrototypeOf;
1324
1274
 
1325
- var isConstructorModern = function isConstructor(argument) {
1326
- if (!isCallable$4(argument)) return false;
1327
- try {
1328
- construct(noop, [], argument);
1329
- return true;
1330
- } catch (error) {
1331
- return false;
1332
- }
1333
- };
1275
+ var $TypeError$7 = TypeError;
1334
1276
 
1335
- var isConstructorLegacy = function isConstructor(argument) {
1336
- if (!isCallable$4(argument)) return false;
1337
- switch (classof$2(argument)) {
1338
- case 'AsyncFunction':
1339
- case 'GeneratorFunction':
1340
- case 'AsyncGeneratorFunction': return false;
1341
- }
1342
- try {
1343
- // we can't check .prototype since constructors produced by .bind haven't it
1344
- // `Function#toString` throws on some built-it function in some legacy engines
1345
- // (for example, `DOMQuad` and similar in FF41-)
1346
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1347
- } catch (error) {
1348
- return true;
1349
- }
1277
+ var anInstance$2 = function (it, Prototype) {
1278
+ if (isPrototypeOf$2(Prototype, it)) return it;
1279
+ throw new $TypeError$7('Incorrect invocation');
1350
1280
  };
1351
1281
 
1352
- isConstructorLegacy.sham = true;
1353
-
1354
- // `IsConstructor` abstract operation
1355
- // https://tc39.es/ecma262/#sec-isconstructor
1356
- var isConstructor$2 = !construct || fails$1(function () {
1357
- var called;
1358
- return isConstructorModern(isConstructorModern.call)
1359
- || !isConstructorModern(Object)
1360
- || !isConstructorModern(function () { called = true; })
1361
- || called;
1362
- }) ? isConstructorLegacy : isConstructorModern;
1282
+ var fails$5 = fails$h;
1363
1283
 
1364
- var isArray = isArray$2;
1365
- var isConstructor$1 = isConstructor$2;
1366
- var isObject$3 = isObject$9;
1367
- var wellKnownSymbol$8 = wellKnownSymbol$c;
1284
+ var correctPrototypeGetter = !fails$5(function () {
1285
+ function F() { /* empty */ }
1286
+ F.prototype.constructor = null;
1287
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1288
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1289
+ });
1368
1290
 
1369
- var SPECIES$3 = wellKnownSymbol$8('species');
1370
- var $Array = Array;
1291
+ var hasOwn$4 = hasOwnProperty_1;
1292
+ var isCallable$8 = isCallable$k;
1293
+ var toObject$1 = toObject$5;
1294
+ var sharedKey$1 = sharedKey$3;
1295
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1371
1296
 
1372
- // a part of `ArraySpeciesCreate` abstract operation
1373
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
1374
- var arraySpeciesConstructor$1 = function (originalArray) {
1375
- var C;
1376
- if (isArray(originalArray)) {
1377
- C = originalArray.constructor;
1378
- // cross-realm fallback
1379
- if (isConstructor$1(C) && (C === $Array || isArray(C.prototype))) C = undefined;
1380
- else if (isObject$3(C)) {
1381
- C = C[SPECIES$3];
1382
- if (C === null) C = undefined;
1383
- }
1384
- } return C === undefined ? $Array : C;
1297
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1298
+ var $Object = Object;
1299
+ var ObjectPrototype = $Object.prototype;
1300
+
1301
+ // `Object.getPrototypeOf` method
1302
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1303
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1304
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1305
+ var object = toObject$1(O);
1306
+ if (hasOwn$4(object, IE_PROTO$1)) return object[IE_PROTO$1];
1307
+ var constructor = object.constructor;
1308
+ if (isCallable$8(constructor) && object instanceof constructor) {
1309
+ return constructor.prototype;
1310
+ } return object instanceof $Object ? ObjectPrototype : null;
1385
1311
  };
1386
1312
 
1387
- var arraySpeciesConstructor = arraySpeciesConstructor$1;
1313
+ var makeBuiltIn = makeBuiltInExports;
1314
+ var defineProperty$3 = objectDefineProperty;
1388
1315
 
1389
- // `ArraySpeciesCreate` abstract operation
1390
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
1391
- var arraySpeciesCreate$1 = function (originalArray, length) {
1392
- return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1316
+ var defineBuiltInAccessor$2 = function (target, name, descriptor) {
1317
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1318
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1319
+ return defineProperty$3.f(target, name, descriptor);
1393
1320
  };
1394
1321
 
1395
- var $$6 = _export;
1396
- var flattenIntoArray = flattenIntoArray_1;
1397
- var aCallable$6 = aCallable$9;
1398
- var toObject = toObject$3;
1399
- var lengthOfArrayLike$1 = lengthOfArrayLike$4;
1400
- var arraySpeciesCreate = arraySpeciesCreate$1;
1322
+ var DESCRIPTORS$5 = descriptors;
1323
+ var definePropertyModule$1 = objectDefineProperty;
1324
+ var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1401
1325
 
1402
- // `Array.prototype.flatMap` method
1403
- // https://tc39.es/ecma262/#sec-array.prototype.flatmap
1404
- $$6({ target: 'Array', proto: true }, {
1405
- flatMap: function flatMap(callbackfn /* , thisArg */) {
1406
- var O = toObject(this);
1407
- var sourceLen = lengthOfArrayLike$1(O);
1408
- var A;
1409
- aCallable$6(callbackfn);
1410
- A = arraySpeciesCreate(O, 0);
1411
- A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1412
- return A;
1413
- }
1414
- });
1326
+ var createProperty$1 = function (object, key, value) {
1327
+ if (DESCRIPTORS$5) definePropertyModule$1.f(object, key, createPropertyDescriptor$1(0, value));
1328
+ else object[key] = value;
1329
+ };
1415
1330
 
1416
1331
  var objectDefineProperties = {};
1417
1332
 
1418
- var DESCRIPTORS$2 = descriptors;
1333
+ var DESCRIPTORS$4 = descriptors;
1419
1334
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1420
1335
  var definePropertyModule = objectDefineProperty;
1421
- var anObject$7 = anObject$c;
1336
+ var anObject$d = anObject$i;
1422
1337
  var toIndexedObject = toIndexedObject$4;
1423
1338
  var objectKeys = objectKeys$2;
1424
1339
 
1425
1340
  // `Object.defineProperties` method
1426
1341
  // https://tc39.es/ecma262/#sec-object.defineproperties
1427
1342
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1428
- objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1429
- anObject$7(O);
1343
+ objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1344
+ anObject$d(O);
1430
1345
  var props = toIndexedObject(Properties);
1431
1346
  var keys = objectKeys(Properties);
1432
1347
  var length = keys.length;
@@ -1436,18 +1351,18 @@ objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1436
1351
  return O;
1437
1352
  };
1438
1353
 
1439
- var getBuiltIn$3 = getBuiltIn$7;
1354
+ var getBuiltIn$5 = getBuiltIn$8;
1440
1355
 
1441
- var html$2 = getBuiltIn$3('document', 'documentElement');
1356
+ var html$2 = getBuiltIn$5('document', 'documentElement');
1442
1357
 
1443
1358
  /* global ActiveXObject -- old IE, WSH */
1444
- var anObject$6 = anObject$c;
1359
+ var anObject$c = anObject$i;
1445
1360
  var definePropertiesModule = objectDefineProperties;
1446
1361
  var enumBugKeys = enumBugKeys$3;
1447
1362
  var hiddenKeys = hiddenKeys$4;
1448
1363
  var html$1 = html$2;
1449
1364
  var documentCreateElement = documentCreateElement$1;
1450
- var sharedKey = sharedKey$2;
1365
+ var sharedKey = sharedKey$3;
1451
1366
 
1452
1367
  var GT = '>';
1453
1368
  var LT = '<';
@@ -1515,7 +1430,7 @@ hiddenKeys[IE_PROTO] = true;
1515
1430
  var objectCreate = Object.create || function create(O, Properties) {
1516
1431
  var result;
1517
1432
  if (O !== null) {
1518
- EmptyConstructor[PROTOTYPE] = anObject$6(O);
1433
+ EmptyConstructor[PROTOTYPE] = anObject$c(O);
1519
1434
  result = new EmptyConstructor();
1520
1435
  EmptyConstructor[PROTOTYPE] = null;
1521
1436
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1524,17 +1439,660 @@ var objectCreate = Object.create || function create(O, Properties) {
1524
1439
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1525
1440
  };
1526
1441
 
1527
- var wellKnownSymbol$7 = wellKnownSymbol$c;
1442
+ var fails$4 = fails$h;
1443
+ var isCallable$7 = isCallable$k;
1444
+ var isObject$7 = isObject$d;
1445
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1446
+ var defineBuiltIn$3 = defineBuiltIn$6;
1447
+ var wellKnownSymbol$b = wellKnownSymbol$f;
1448
+
1449
+ var ITERATOR$4 = wellKnownSymbol$b('iterator');
1450
+ var BUGGY_SAFARI_ITERATORS = false;
1451
+
1452
+ // `%IteratorPrototype%` object
1453
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1454
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1455
+
1456
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1457
+ if ([].keys) {
1458
+ arrayIterator = [].keys();
1459
+ // Safari 8 has buggy iterators w/o `next`
1460
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1461
+ else {
1462
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1463
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1464
+ }
1465
+ }
1466
+
1467
+ var NEW_ITERATOR_PROTOTYPE = !isObject$7(IteratorPrototype$2) || fails$4(function () {
1468
+ var test = {};
1469
+ // FF44- legacy iterators case
1470
+ return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
1471
+ });
1472
+
1473
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1474
+
1475
+ // `%IteratorPrototype%[@@iterator]()` method
1476
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1477
+ if (!isCallable$7(IteratorPrototype$2[ITERATOR$4])) {
1478
+ defineBuiltIn$3(IteratorPrototype$2, ITERATOR$4, function () {
1479
+ return this;
1480
+ });
1481
+ }
1482
+
1483
+ var iteratorsCore = {
1484
+ IteratorPrototype: IteratorPrototype$2,
1485
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1486
+ };
1487
+
1488
+ var $$c = _export;
1489
+ var global$9 = global$j;
1490
+ var anInstance$1 = anInstance$2;
1491
+ var anObject$b = anObject$i;
1492
+ var isCallable$6 = isCallable$k;
1493
+ var getPrototypeOf = objectGetPrototypeOf;
1494
+ var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
1495
+ var createProperty = createProperty$1;
1496
+ var fails$3 = fails$h;
1497
+ var hasOwn$3 = hasOwnProperty_1;
1498
+ var wellKnownSymbol$a = wellKnownSymbol$f;
1499
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1500
+ var DESCRIPTORS$3 = descriptors;
1501
+
1502
+ var CONSTRUCTOR = 'constructor';
1503
+ var ITERATOR$3 = 'Iterator';
1504
+ var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
1505
+
1506
+ var $TypeError$6 = TypeError;
1507
+ var NativeIterator = global$9[ITERATOR$3];
1508
+
1509
+ // FF56- have non-standard global helper `Iterator`
1510
+ var FORCED$1 = !isCallable$6(NativeIterator)
1511
+ || NativeIterator.prototype !== IteratorPrototype$1
1512
+ // FF44- non-standard `Iterator` passes previous tests
1513
+ || !fails$3(function () { NativeIterator({}); });
1514
+
1515
+ var IteratorConstructor = function Iterator() {
1516
+ anInstance$1(this, IteratorPrototype$1);
1517
+ if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$6('Abstract class Iterator not directly constructable');
1518
+ };
1519
+
1520
+ var defineIteratorPrototypeAccessor = function (key, value) {
1521
+ if (DESCRIPTORS$3) {
1522
+ defineBuiltInAccessor$1(IteratorPrototype$1, key, {
1523
+ configurable: true,
1524
+ get: function () {
1525
+ return value;
1526
+ },
1527
+ set: function (replacement) {
1528
+ anObject$b(this);
1529
+ if (this === IteratorPrototype$1) throw new $TypeError$6("You can't redefine this property");
1530
+ if (hasOwn$3(this, key)) this[key] = replacement;
1531
+ else createProperty(this, key, replacement);
1532
+ }
1533
+ });
1534
+ } else IteratorPrototype$1[key] = value;
1535
+ };
1536
+
1537
+ if (!hasOwn$3(IteratorPrototype$1, TO_STRING_TAG$2)) defineIteratorPrototypeAccessor(TO_STRING_TAG$2, ITERATOR$3);
1538
+
1539
+ if (FORCED$1 || !hasOwn$3(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1540
+ defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1541
+ }
1542
+
1543
+ IteratorConstructor.prototype = IteratorPrototype$1;
1544
+
1545
+ // `Iterator` constructor
1546
+ // https://github.com/tc39/proposal-iterator-helpers
1547
+ $$c({ global: true, constructor: true, forced: FORCED$1 }, {
1548
+ Iterator: IteratorConstructor
1549
+ });
1550
+
1551
+ // `GetIteratorDirect(obj)` abstract operation
1552
+ // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
1553
+ var getIteratorDirect$5 = function (obj) {
1554
+ return {
1555
+ iterator: obj,
1556
+ next: obj.next,
1557
+ done: false
1558
+ };
1559
+ };
1560
+
1561
+ var defineBuiltIn$2 = defineBuiltIn$6;
1562
+
1563
+ var defineBuiltIns$1 = function (target, src, options) {
1564
+ for (var key in src) defineBuiltIn$2(target, key, src[key], options);
1565
+ return target;
1566
+ };
1567
+
1568
+ // `CreateIterResultObject` abstract operation
1569
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1570
+ var createIterResultObject$1 = function (value, done) {
1571
+ return { value: value, done: done };
1572
+ };
1573
+
1574
+ var call$b = functionCall;
1575
+ var anObject$a = anObject$i;
1576
+ var getMethod$2 = getMethod$4;
1577
+
1578
+ var iteratorClose$4 = function (iterator, kind, value) {
1579
+ var innerResult, innerError;
1580
+ anObject$a(iterator);
1581
+ try {
1582
+ innerResult = getMethod$2(iterator, 'return');
1583
+ if (!innerResult) {
1584
+ if (kind === 'throw') throw value;
1585
+ return value;
1586
+ }
1587
+ innerResult = call$b(innerResult, iterator);
1588
+ } catch (error) {
1589
+ innerError = true;
1590
+ innerResult = error;
1591
+ }
1592
+ if (kind === 'throw') throw value;
1593
+ if (innerError) throw innerResult;
1594
+ anObject$a(innerResult);
1595
+ return value;
1596
+ };
1597
+
1598
+ var call$a = functionCall;
1599
+ var create$1 = objectCreate;
1600
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
1601
+ var defineBuiltIns = defineBuiltIns$1;
1602
+ var wellKnownSymbol$9 = wellKnownSymbol$f;
1603
+ var InternalStateModule$1 = internalState;
1604
+ var getMethod$1 = getMethod$4;
1605
+ var IteratorPrototype = iteratorsCore.IteratorPrototype;
1606
+ var createIterResultObject = createIterResultObject$1;
1607
+ var iteratorClose$3 = iteratorClose$4;
1608
+
1609
+ var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
1610
+ var ITERATOR_HELPER = 'IteratorHelper';
1611
+ var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1612
+ var setInternalState$1 = InternalStateModule$1.set;
1613
+
1614
+ var createIteratorProxyPrototype = function (IS_ITERATOR) {
1615
+ var getInternalState = InternalStateModule$1.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1616
+
1617
+ return defineBuiltIns(create$1(IteratorPrototype), {
1618
+ next: function next() {
1619
+ var state = getInternalState(this);
1620
+ // for simplification:
1621
+ // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
1622
+ // for `%IteratorHelperPrototype%.next` - just a value
1623
+ if (IS_ITERATOR) return state.nextHandler();
1624
+ try {
1625
+ var result = state.done ? undefined : state.nextHandler();
1626
+ return createIterResultObject(result, state.done);
1627
+ } catch (error) {
1628
+ state.done = true;
1629
+ throw error;
1630
+ }
1631
+ },
1632
+ 'return': function () {
1633
+ var state = getInternalState(this);
1634
+ var iterator = state.iterator;
1635
+ state.done = true;
1636
+ if (IS_ITERATOR) {
1637
+ var returnMethod = getMethod$1(iterator, 'return');
1638
+ return returnMethod ? call$a(returnMethod, iterator) : createIterResultObject(undefined, true);
1639
+ }
1640
+ if (state.inner) try {
1641
+ iteratorClose$3(state.inner.iterator, 'normal');
1642
+ } catch (error) {
1643
+ return iteratorClose$3(iterator, 'throw', error);
1644
+ }
1645
+ iteratorClose$3(iterator, 'normal');
1646
+ return createIterResultObject(undefined, true);
1647
+ }
1648
+ });
1649
+ };
1650
+
1651
+ var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
1652
+ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1653
+
1654
+ createNonEnumerableProperty$3(IteratorHelperPrototype, TO_STRING_TAG$1, 'Iterator Helper');
1655
+
1656
+ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
1657
+ var IteratorProxy = function Iterator(record, state) {
1658
+ if (state) {
1659
+ state.iterator = record.iterator;
1660
+ state.next = record.next;
1661
+ } else state = record;
1662
+ state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
1663
+ state.nextHandler = nextHandler;
1664
+ state.counter = 0;
1665
+ state.done = false;
1666
+ setInternalState$1(this, state);
1667
+ };
1668
+
1669
+ IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
1670
+
1671
+ return IteratorProxy;
1672
+ };
1673
+
1674
+ var anObject$9 = anObject$i;
1675
+ var iteratorClose$2 = iteratorClose$4;
1676
+
1677
+ // call something on iterator step with safe closing on error
1678
+ var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
1679
+ try {
1680
+ return ENTRIES ? fn(anObject$9(value)[0], value[1]) : fn(value);
1681
+ } catch (error) {
1682
+ iteratorClose$2(iterator, 'throw', error);
1683
+ }
1684
+ };
1685
+
1686
+ var $$b = _export;
1687
+ var call$9 = functionCall;
1688
+ var aCallable$b = aCallable$d;
1689
+ var anObject$8 = anObject$i;
1690
+ var getIteratorDirect$4 = getIteratorDirect$5;
1691
+ var createIteratorProxy$2 = iteratorCreateProxy;
1692
+ var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
1693
+ var IS_PURE$2 = isPure;
1694
+
1695
+ var IteratorProxy$2 = createIteratorProxy$2(function () {
1696
+ var iterator = this.iterator;
1697
+ var predicate = this.predicate;
1698
+ var next = this.next;
1699
+ var result, done, value;
1700
+ while (true) {
1701
+ result = anObject$8(call$9(next, iterator));
1702
+ done = this.done = !!result.done;
1703
+ if (done) return;
1704
+ value = result.value;
1705
+ if (callWithSafeIterationClosing$1(iterator, predicate, [value, this.counter++], true)) return value;
1706
+ }
1707
+ });
1708
+
1709
+ // `Iterator.prototype.filter` method
1710
+ // https://github.com/tc39/proposal-iterator-helpers
1711
+ $$b({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
1712
+ filter: function filter(predicate) {
1713
+ anObject$8(this);
1714
+ aCallable$b(predicate);
1715
+ return new IteratorProxy$2(getIteratorDirect$4(this), {
1716
+ predicate: predicate
1717
+ });
1718
+ }
1719
+ });
1720
+
1721
+ var classofRaw = classofRaw$2;
1722
+ var uncurryThis$5 = functionUncurryThis;
1723
+
1724
+ var functionUncurryThisClause = function (fn) {
1725
+ // Nashorn bug:
1726
+ // https://github.com/zloirock/core-js/issues/1128
1727
+ // https://github.com/zloirock/core-js/issues/1130
1728
+ if (classofRaw(fn) === 'Function') return uncurryThis$5(fn);
1729
+ };
1730
+
1731
+ var uncurryThis$4 = functionUncurryThisClause;
1732
+ var aCallable$a = aCallable$d;
1733
+ var NATIVE_BIND$1 = functionBindNative;
1734
+
1735
+ var bind$5 = uncurryThis$4(uncurryThis$4.bind);
1736
+
1737
+ // optional / simple context binding
1738
+ var functionBindContext = function (fn, that) {
1739
+ aCallable$a(fn);
1740
+ return that === undefined ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function (/* ...args */) {
1741
+ return fn.apply(that, arguments);
1742
+ };
1743
+ };
1744
+
1745
+ var iterators = {};
1746
+
1747
+ var wellKnownSymbol$8 = wellKnownSymbol$f;
1748
+ var Iterators$1 = iterators;
1749
+
1750
+ var ITERATOR$2 = wellKnownSymbol$8('iterator');
1751
+ var ArrayPrototype$1 = Array.prototype;
1752
+
1753
+ // check on default Array iterator
1754
+ var isArrayIteratorMethod$1 = function (it) {
1755
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype$1[ITERATOR$2] === it);
1756
+ };
1757
+
1758
+ var classof$2 = classof$4;
1759
+ var getMethod = getMethod$4;
1760
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
1761
+ var Iterators = iterators;
1762
+ var wellKnownSymbol$7 = wellKnownSymbol$f;
1763
+
1764
+ var ITERATOR$1 = wellKnownSymbol$7('iterator');
1765
+
1766
+ var getIteratorMethod$3 = function (it) {
1767
+ if (!isNullOrUndefined$1(it)) return getMethod(it, ITERATOR$1)
1768
+ || getMethod(it, '@@iterator')
1769
+ || Iterators[classof$2(it)];
1770
+ };
1771
+
1772
+ var call$8 = functionCall;
1773
+ var aCallable$9 = aCallable$d;
1774
+ var anObject$7 = anObject$i;
1775
+ var tryToString$2 = tryToString$4;
1776
+ var getIteratorMethod$2 = getIteratorMethod$3;
1777
+
1778
+ var $TypeError$5 = TypeError;
1779
+
1780
+ var getIterator$1 = function (argument, usingIterator) {
1781
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
1782
+ if (aCallable$9(iteratorMethod)) return anObject$7(call$8(iteratorMethod, argument));
1783
+ throw new $TypeError$5(tryToString$2(argument) + ' is not iterable');
1784
+ };
1785
+
1786
+ var bind$4 = functionBindContext;
1787
+ var call$7 = functionCall;
1788
+ var anObject$6 = anObject$i;
1789
+ var tryToString$1 = tryToString$4;
1790
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1791
+ var lengthOfArrayLike$2 = lengthOfArrayLike$5;
1792
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1793
+ var getIterator = getIterator$1;
1794
+ var getIteratorMethod$1 = getIteratorMethod$3;
1795
+ var iteratorClose$1 = iteratorClose$4;
1796
+
1797
+ var $TypeError$4 = TypeError;
1798
+
1799
+ var Result = function (stopped, result) {
1800
+ this.stopped = stopped;
1801
+ this.result = result;
1802
+ };
1803
+
1804
+ var ResultPrototype = Result.prototype;
1805
+
1806
+ var iterate$3 = function (iterable, unboundFunction, options) {
1807
+ var that = options && options.that;
1808
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1809
+ var IS_RECORD = !!(options && options.IS_RECORD);
1810
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1811
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1812
+ var fn = bind$4(unboundFunction, that);
1813
+ var iterator, iterFn, index, length, result, next, step;
1814
+
1815
+ var stop = function (condition) {
1816
+ if (iterator) iteratorClose$1(iterator, 'normal', condition);
1817
+ return new Result(true, condition);
1818
+ };
1819
+
1820
+ var callFn = function (value) {
1821
+ if (AS_ENTRIES) {
1822
+ anObject$6(value);
1823
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1824
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
1825
+ };
1826
+
1827
+ if (IS_RECORD) {
1828
+ iterator = iterable.iterator;
1829
+ } else if (IS_ITERATOR) {
1830
+ iterator = iterable;
1831
+ } else {
1832
+ iterFn = getIteratorMethod$1(iterable);
1833
+ if (!iterFn) throw new $TypeError$4(tryToString$1(iterable) + ' is not iterable');
1834
+ // optimisation for array iterators
1835
+ if (isArrayIteratorMethod(iterFn)) {
1836
+ for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
1837
+ result = callFn(iterable[index]);
1838
+ if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
1839
+ } return new Result(false);
1840
+ }
1841
+ iterator = getIterator(iterable, iterFn);
1842
+ }
1843
+
1844
+ next = IS_RECORD ? iterable.next : iterator.next;
1845
+ while (!(step = call$7(next, iterator)).done) {
1846
+ try {
1847
+ result = callFn(step.value);
1848
+ } catch (error) {
1849
+ iteratorClose$1(iterator, 'throw', error);
1850
+ }
1851
+ if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
1852
+ } return new Result(false);
1853
+ };
1854
+
1855
+ var $$a = _export;
1856
+ var iterate$2 = iterate$3;
1857
+ var aCallable$8 = aCallable$d;
1858
+ var anObject$5 = anObject$i;
1859
+ var getIteratorDirect$3 = getIteratorDirect$5;
1860
+
1861
+ // `Iterator.prototype.forEach` method
1862
+ // https://github.com/tc39/proposal-iterator-helpers
1863
+ $$a({ target: 'Iterator', proto: true, real: true }, {
1864
+ forEach: function forEach(fn) {
1865
+ anObject$5(this);
1866
+ aCallable$8(fn);
1867
+ var record = getIteratorDirect$3(this);
1868
+ var counter = 0;
1869
+ iterate$2(record, function (value) {
1870
+ fn(value, counter++);
1871
+ }, { IS_RECORD: true });
1872
+ }
1873
+ });
1874
+
1875
+ var call$6 = functionCall;
1876
+ var aCallable$7 = aCallable$d;
1877
+ var anObject$4 = anObject$i;
1878
+ var getIteratorDirect$2 = getIteratorDirect$5;
1879
+ var createIteratorProxy$1 = iteratorCreateProxy;
1880
+ var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
1881
+
1882
+ var IteratorProxy$1 = createIteratorProxy$1(function () {
1883
+ var iterator = this.iterator;
1884
+ var result = anObject$4(call$6(this.next, iterator));
1885
+ var done = this.done = !!result.done;
1886
+ if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
1887
+ });
1888
+
1889
+ // `Iterator.prototype.map` method
1890
+ // https://github.com/tc39/proposal-iterator-helpers
1891
+ var iteratorMap = function map(mapper) {
1892
+ anObject$4(this);
1893
+ aCallable$7(mapper);
1894
+ return new IteratorProxy$1(getIteratorDirect$2(this), {
1895
+ mapper: mapper
1896
+ });
1897
+ };
1898
+
1899
+ var $$9 = _export;
1900
+ var map = iteratorMap;
1901
+ var IS_PURE$1 = isPure;
1902
+
1903
+ // `Iterator.prototype.map` method
1904
+ // https://github.com/tc39/proposal-iterator-helpers
1905
+ $$9({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
1906
+ map: map
1907
+ });
1908
+
1909
+ /**
1910
+ * Creates a FetchPageFactory using the input ZohoFetchPageFetchFunction.
1911
+ *
1912
+ * @param fetch
1913
+ * @param defaults
1914
+ * @returns
1915
+ */
1916
+ function zohoFetchPageFactory(fetch, defaults) {
1917
+ return fetchPageFactory(Object.assign({}, defaults, {
1918
+ fetch,
1919
+ readFetchPageResultInfo: function (result) {
1920
+ var _result$info$more_rec, _result$info;
1921
+ return {
1922
+ hasNext: (_result$info$more_rec = (_result$info = result.info) == null ? void 0 : _result$info.more_records) != null ? _result$info$more_rec : false // if no info is returned, assume something wrong and there are no more records
1923
+ };
1924
+ },
1925
+ buildInputForNextPage: function (pageResult, input, options) {
1926
+ var _options$maxItemsPerP;
1927
+ return Object.assign({}, input, {
1928
+ page: getNextPageNumber(pageResult),
1929
+ per_page: (_options$maxItemsPerP = options.maxItemsPerPage) != null ? _options$maxItemsPerP : input.per_page
1930
+ });
1931
+ }
1932
+ }));
1933
+ }
1934
+
1935
+ const ZOHO_RECRUIT_SERVICE_NAME = 'recruit';
1936
+ function zohoRecruitConfigApiUrl(input) {
1937
+ switch (input) {
1938
+ case 'sandbox':
1939
+ return 'https://recruitsandbox.zoho.com/recruit';
1940
+ case 'production':
1941
+ return 'https://recruit.zoho.com/recruit';
1942
+ default:
1943
+ return input;
1944
+ }
1945
+ }
1946
+
1947
+ var isArray$1 = isArray$3;
1948
+ var lengthOfArrayLike$1 = lengthOfArrayLike$5;
1949
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
1950
+ var bind$3 = functionBindContext;
1951
+
1952
+ // `FlattenIntoArray` abstract operation
1953
+ // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
1954
+ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
1955
+ var targetIndex = start;
1956
+ var sourceIndex = 0;
1957
+ var mapFn = mapper ? bind$3(mapper, thisArg) : false;
1958
+ var element, elementLen;
1959
+
1960
+ while (sourceIndex < sourceLen) {
1961
+ if (sourceIndex in source) {
1962
+ element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
1963
+
1964
+ if (depth > 0 && isArray$1(element)) {
1965
+ elementLen = lengthOfArrayLike$1(element);
1966
+ targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
1967
+ } else {
1968
+ doesNotExceedSafeInteger(targetIndex + 1);
1969
+ target[targetIndex] = element;
1970
+ }
1971
+
1972
+ targetIndex++;
1973
+ }
1974
+ sourceIndex++;
1975
+ }
1976
+ return targetIndex;
1977
+ };
1978
+
1979
+ var flattenIntoArray_1 = flattenIntoArray$1;
1980
+
1981
+ var uncurryThis$3 = functionUncurryThis;
1982
+ var fails$2 = fails$h;
1983
+ var isCallable$5 = isCallable$k;
1984
+ var classof$1 = classof$4;
1985
+ var getBuiltIn$4 = getBuiltIn$8;
1986
+ var inspectSource$1 = inspectSource$3;
1987
+
1988
+ var noop = function () { /* empty */ };
1989
+ var construct = getBuiltIn$4('Reflect', 'construct');
1990
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1991
+ var exec = uncurryThis$3(constructorRegExp.exec);
1992
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1993
+
1994
+ var isConstructorModern = function isConstructor(argument) {
1995
+ if (!isCallable$5(argument)) return false;
1996
+ try {
1997
+ construct(noop, [], argument);
1998
+ return true;
1999
+ } catch (error) {
2000
+ return false;
2001
+ }
2002
+ };
2003
+
2004
+ var isConstructorLegacy = function isConstructor(argument) {
2005
+ if (!isCallable$5(argument)) return false;
2006
+ switch (classof$1(argument)) {
2007
+ case 'AsyncFunction':
2008
+ case 'GeneratorFunction':
2009
+ case 'AsyncGeneratorFunction': return false;
2010
+ }
2011
+ try {
2012
+ // we can't check .prototype since constructors produced by .bind haven't it
2013
+ // `Function#toString` throws on some built-it function in some legacy engines
2014
+ // (for example, `DOMQuad` and similar in FF41-)
2015
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
2016
+ } catch (error) {
2017
+ return true;
2018
+ }
2019
+ };
2020
+
2021
+ isConstructorLegacy.sham = true;
2022
+
2023
+ // `IsConstructor` abstract operation
2024
+ // https://tc39.es/ecma262/#sec-isconstructor
2025
+ var isConstructor$2 = !construct || fails$2(function () {
2026
+ var called;
2027
+ return isConstructorModern(isConstructorModern.call)
2028
+ || !isConstructorModern(Object)
2029
+ || !isConstructorModern(function () { called = true; })
2030
+ || called;
2031
+ }) ? isConstructorLegacy : isConstructorModern;
2032
+
2033
+ var isArray = isArray$3;
2034
+ var isConstructor$1 = isConstructor$2;
2035
+ var isObject$6 = isObject$d;
2036
+ var wellKnownSymbol$6 = wellKnownSymbol$f;
2037
+
2038
+ var SPECIES$3 = wellKnownSymbol$6('species');
2039
+ var $Array = Array;
2040
+
2041
+ // a part of `ArraySpeciesCreate` abstract operation
2042
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
2043
+ var arraySpeciesConstructor$1 = function (originalArray) {
2044
+ var C;
2045
+ if (isArray(originalArray)) {
2046
+ C = originalArray.constructor;
2047
+ // cross-realm fallback
2048
+ if (isConstructor$1(C) && (C === $Array || isArray(C.prototype))) C = undefined;
2049
+ else if (isObject$6(C)) {
2050
+ C = C[SPECIES$3];
2051
+ if (C === null) C = undefined;
2052
+ }
2053
+ } return C === undefined ? $Array : C;
2054
+ };
2055
+
2056
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
2057
+
2058
+ // `ArraySpeciesCreate` abstract operation
2059
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
2060
+ var arraySpeciesCreate$1 = function (originalArray, length) {
2061
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2062
+ };
2063
+
2064
+ var $$8 = _export;
2065
+ var flattenIntoArray = flattenIntoArray_1;
2066
+ var aCallable$6 = aCallable$d;
2067
+ var toObject = toObject$5;
2068
+ var lengthOfArrayLike = lengthOfArrayLike$5;
2069
+ var arraySpeciesCreate = arraySpeciesCreate$1;
2070
+
2071
+ // `Array.prototype.flatMap` method
2072
+ // https://tc39.es/ecma262/#sec-array.prototype.flatmap
2073
+ $$8({ target: 'Array', proto: true }, {
2074
+ flatMap: function flatMap(callbackfn /* , thisArg */) {
2075
+ var O = toObject(this);
2076
+ var sourceLen = lengthOfArrayLike(O);
2077
+ var A;
2078
+ aCallable$6(callbackfn);
2079
+ A = arraySpeciesCreate(O, 0);
2080
+ A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2081
+ return A;
2082
+ }
2083
+ });
2084
+
2085
+ var wellKnownSymbol$5 = wellKnownSymbol$f;
1528
2086
  var create = objectCreate;
1529
2087
  var defineProperty$2 = objectDefineProperty.f;
1530
2088
 
1531
- var UNSCOPABLES = wellKnownSymbol$7('unscopables');
1532
- var ArrayPrototype$1 = Array.prototype;
2089
+ var UNSCOPABLES = wellKnownSymbol$5('unscopables');
2090
+ var ArrayPrototype = Array.prototype;
1533
2091
 
1534
2092
  // Array.prototype[@@unscopables]
1535
2093
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1536
- if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1537
- defineProperty$2(ArrayPrototype$1, UNSCOPABLES, {
2094
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
2095
+ defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1538
2096
  configurable: true,
1539
2097
  value: create(null)
1540
2098
  });
@@ -1542,7 +2100,7 @@ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1542
2100
 
1543
2101
  // add a key to Array.prototype[@@unscopables]
1544
2102
  var addToUnscopables$1 = function (key) {
1545
- ArrayPrototype$1[UNSCOPABLES][key] = true;
2103
+ ArrayPrototype[UNSCOPABLES][key] = true;
1546
2104
  };
1547
2105
 
1548
2106
  // this method was added to unscopables after implementation
@@ -1552,108 +2110,70 @@ var addToUnscopables = addToUnscopables$1;
1552
2110
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1553
2111
  addToUnscopables('flatMap');
1554
2112
 
1555
- // MARK: Data Types
1556
- /**
1557
- * Zoho Recruit module name.
1558
- *
1559
- * Example "Candidates"
1560
- */
1561
-
1562
- /**
1563
- * Candidates module name
1564
- */
1565
- const ZOHO_RECRUIT_CANDIDATES_MODULE = 'Candidates';
1566
-
1567
- /**
1568
- * Contains a reference to a module.
1569
- */
1570
-
1571
- /**
1572
- * The API name of a function that is accessible via the Recruit REST API
1573
- */
1574
-
1575
- /**
1576
- * An identifier in Zoho Recruit.
1577
- */
1578
-
1579
- /**
1580
- * Zoho Recruit record id
1581
- *
1582
- * Example "576214000000569001"
1583
- */
1584
-
1585
- /**
1586
- * Zoho Recruit type id
1587
- *
1588
- * Example "576214000000820595"
1589
- */
1590
-
1591
- /**
1592
- * Zoho Recruit user identifier.
1593
- *
1594
- * Users can be found in the Users and Controls section in settings.
1595
- */
1596
-
1597
- /**
1598
- * Zoho Recruit custom view id
1599
- */
1600
-
1601
- /**
1602
- * Zoho Recruit territory id
1603
- */
1604
-
1605
- /**
1606
- * The name of a field on a record.
1607
- */
1608
-
1609
- /**
1610
- * Comma separated list of field names
1611
- */
1612
-
1613
- /**
1614
- * Reference pair of a Zoho Recruit user name and id
1615
- */
1616
-
1617
- /**
1618
- * Zoho Recruit only allows URLs that can be resolved via the internet (I.E. uses a normal tdl)
1619
- *
1620
- * The following are considered invalid:
1621
- * - localhost:8080
1622
- * - ht://dereekb.com
1623
- */
2113
+ var call$5 = functionCall;
2114
+ var anObject$3 = anObject$i;
2115
+ var getIteratorDirect$1 = getIteratorDirect$5;
2116
+ var getIteratorMethod = getIteratorMethod$3;
2117
+
2118
+ var getIteratorFlattenable$1 = function (obj, stringHandling) {
2119
+ if (!stringHandling || typeof obj !== 'string') anObject$3(obj);
2120
+ var method = getIteratorMethod(obj);
2121
+ return getIteratorDirect$1(anObject$3(method !== undefined ? call$5(method, obj) : obj));
2122
+ };
1624
2123
 
1625
- /**
1626
- * Update details returned by the server for a created/updated object.
1627
- */
2124
+ var $$7 = _export;
2125
+ var call$4 = functionCall;
2126
+ var aCallable$5 = aCallable$d;
2127
+ var anObject$2 = anObject$i;
2128
+ var getIteratorDirect = getIteratorDirect$5;
2129
+ var getIteratorFlattenable = getIteratorFlattenable$1;
2130
+ var createIteratorProxy = iteratorCreateProxy;
2131
+ var iteratorClose = iteratorClose$4;
2132
+ var IS_PURE = isPure;
2133
+
2134
+ var IteratorProxy = createIteratorProxy(function () {
2135
+ var iterator = this.iterator;
2136
+ var mapper = this.mapper;
2137
+ var result, inner;
2138
+
2139
+ while (true) {
2140
+ if (inner = this.inner) try {
2141
+ result = anObject$2(call$4(inner.next, inner.iterator));
2142
+ if (!result.done) return result.value;
2143
+ this.inner = null;
2144
+ } catch (error) { iteratorClose(iterator, 'throw', error); }
2145
+
2146
+ result = anObject$2(call$4(this.next, iterator));
2147
+
2148
+ if (this.done = !!result.done) return;
1628
2149
 
1629
- // MARK: Zoho Recruit Record
1630
- /**
1631
- * Base Zoho Recruit field data type.
1632
- */
2150
+ try {
2151
+ this.inner = getIteratorFlattenable(mapper(result.value, this.counter++), false);
2152
+ } catch (error) { iteratorClose(iterator, 'throw', error); }
2153
+ }
2154
+ });
1633
2155
 
1634
- /**
1635
- * A ZohoRecruit record containing the corresponding record's id.
1636
- */
2156
+ // `Iterator.prototype.flatMap` method
2157
+ // https://github.com/tc39/proposal-iterator-helpers
2158
+ $$7({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
2159
+ flatMap: function flatMap(mapper) {
2160
+ anObject$2(this);
2161
+ aCallable$5(mapper);
2162
+ return new IteratorProxy(getIteratorDirect(this), {
2163
+ mapper: mapper,
2164
+ inner: null
2165
+ });
2166
+ }
2167
+ });
1637
2168
 
1638
2169
  /**
1639
- * A ZohoRecruit record containing record details.
2170
+ * Candidates module name
1640
2171
  */
1641
-
2172
+ const ZOHO_RECRUIT_CANDIDATES_MODULE = 'Candidates';
1642
2173
  /**
1643
2174
  * Returns true if it is a valid ZohoRecruitValidUrl.
1644
2175
  */
1645
2176
  const isZohoRecruitValidUrl = isStandardInternetAccessibleWebsiteUrl;
1646
-
1647
- /**
1648
- * Update details returned by the server for an updated record.
1649
- *
1650
- * @deprecated use ZohoRecruitChangeObjectDetails instead.
1651
- */
1652
-
1653
- /**
1654
- * Encoded criteria string.
1655
- */
1656
-
1657
2177
  /**
1658
2178
  * Creates a ZohoRecruitSearchRecordsCriteriaString from a ZohoRecruitSearchRecordsCriteriaTree.
1659
2179
  *
@@ -1700,7 +2220,6 @@ function zohoRecruitSearchRecordsCriteriaStringForTree(tree) {
1700
2220
  function mergeStringValues(values, type) {
1701
2221
  return values.length > 1 ? `(${values.join(type)})` : values[0]; // wrap in and values
1702
2222
  }
1703
-
1704
2223
  function mergeValues(values, type) {
1705
2224
  const allStrings = filterMaybeArrayValues(values.map(convertToString)).flatMap(asArray);
1706
2225
  return mergeStringValues(allStrings, type);
@@ -1712,13 +2231,6 @@ function zohoRecruitSearchRecordsCriteriaStringForTree(tree) {
1712
2231
  }
1713
2232
  return result;
1714
2233
  }
1715
-
1716
- /**
1717
- * Tree items
1718
- *
1719
- * If both AND and OR values are provided at the root tree, then the will be merged together with AND.
1720
- */
1721
-
1722
2234
  /**
1723
2235
  * Escape used for ZohoRecruitSearchRecordsCriteriaString
1724
2236
  */
@@ -1729,7 +2241,6 @@ const escapeZohoFieldValueForCriteriaString = escapeStringCharactersFunction({
1729
2241
  escapeTargets: ['(', ')', ','],
1730
2242
  escapeCharacter: char => `\\${char}`
1731
2243
  });
1732
-
1733
2244
  /**
1734
2245
  * Converts the input entry to a ZohoRecruitSearchRecordsCriteriaString. Properly escapes any parenthesis or commas.
1735
2246
  *
@@ -1741,49 +2252,41 @@ function zohoRecruitSearchRecordsCriteriaEntryToCriteriaString(entry) {
1741
2252
  return `(${entry.field}:${entry.filter}:${escapedValue})`;
1742
2253
  }
1743
2254
 
1744
- // MARK: Notes
1745
-
1746
- // TODO
1747
-
1748
- // MARK: Compat
1749
- /**
1750
- * @deprecated use NewZohoRecruitNewNoteData instead.
1751
- */
1752
-
1753
- var global$7 = global$i;
1754
- var classof$1 = classofRaw$2;
2255
+ var global$8 = global$j;
2256
+ var classof = classofRaw$2;
1755
2257
 
1756
- var engineIsNode = classof$1(global$7.process) === 'process';
2258
+ var engineIsNode = classof(global$8.process) === 'process';
1757
2259
 
1758
- var uncurryThis$1 = functionUncurryThis;
1759
- var aCallable$5 = aCallable$9;
2260
+ var uncurryThis$2 = functionUncurryThis;
2261
+ var aCallable$4 = aCallable$d;
1760
2262
 
1761
2263
  var functionUncurryThisAccessor = function (object, key, method) {
1762
2264
  try {
1763
2265
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1764
- return uncurryThis$1(aCallable$5(Object.getOwnPropertyDescriptor(object, key)[method]));
2266
+ return uncurryThis$2(aCallable$4(Object.getOwnPropertyDescriptor(object, key)[method]));
1765
2267
  } catch (error) { /* empty */ }
1766
2268
  };
1767
2269
 
1768
- var isObject$2 = isObject$9;
2270
+ var isObject$5 = isObject$d;
1769
2271
 
1770
2272
  var isPossiblePrototype$1 = function (argument) {
1771
- return isObject$2(argument) || argument === null;
2273
+ return isObject$5(argument) || argument === null;
1772
2274
  };
1773
2275
 
1774
2276
  var isPossiblePrototype = isPossiblePrototype$1;
1775
2277
 
1776
2278
  var $String = String;
1777
- var $TypeError$6 = TypeError;
2279
+ var $TypeError$3 = TypeError;
1778
2280
 
1779
2281
  var aPossiblePrototype$1 = function (argument) {
1780
2282
  if (isPossiblePrototype(argument)) return argument;
1781
- throw new $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
2283
+ throw new $TypeError$3("Can't set " + $String(argument) + ' as a prototype');
1782
2284
  };
1783
2285
 
1784
2286
  /* eslint-disable no-proto -- safe */
1785
2287
  var uncurryThisAccessor = functionUncurryThisAccessor;
1786
- var anObject$5 = anObject$c;
2288
+ var isObject$4 = isObject$d;
2289
+ var requireObjectCoercible = requireObjectCoercible$3;
1787
2290
  var aPossiblePrototype = aPossiblePrototype$1;
1788
2291
 
1789
2292
  // `Object.setPrototypeOf` method
@@ -1800,8 +2303,9 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1800
2303
  CORRECT_SETTER = test instanceof Array;
1801
2304
  } catch (error) { /* empty */ }
1802
2305
  return function setPrototypeOf(O, proto) {
1803
- anObject$5(O);
2306
+ requireObjectCoercible(O);
1804
2307
  aPossiblePrototype(proto);
2308
+ if (!isObject$4(O)) return O;
1805
2309
  if (CORRECT_SETTER) setter(O, proto);
1806
2310
  else O.__proto__ = proto;
1807
2311
  return O;
@@ -1809,38 +2313,29 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1809
2313
  }() : undefined);
1810
2314
 
1811
2315
  var defineProperty$1 = objectDefineProperty.f;
1812
- var hasOwn$1 = hasOwnProperty_1;
1813
- var wellKnownSymbol$6 = wellKnownSymbol$c;
2316
+ var hasOwn$2 = hasOwnProperty_1;
2317
+ var wellKnownSymbol$4 = wellKnownSymbol$f;
1814
2318
 
1815
- var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
2319
+ var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
1816
2320
 
1817
2321
  var setToStringTag$1 = function (target, TAG, STATIC) {
1818
2322
  if (target && !STATIC) target = target.prototype;
1819
- if (target && !hasOwn$1(target, TO_STRING_TAG)) {
2323
+ if (target && !hasOwn$2(target, TO_STRING_TAG)) {
1820
2324
  defineProperty$1(target, TO_STRING_TAG, { configurable: true, value: TAG });
1821
2325
  }
1822
2326
  };
1823
2327
 
1824
- var makeBuiltIn = makeBuiltIn$3.exports;
1825
- var defineProperty = objectDefineProperty;
1826
-
1827
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1828
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1829
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1830
- return defineProperty.f(target, name, descriptor);
1831
- };
1832
-
1833
- var getBuiltIn$2 = getBuiltIn$7;
1834
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1835
- var wellKnownSymbol$5 = wellKnownSymbol$c;
1836
- var DESCRIPTORS$1 = descriptors;
2328
+ var getBuiltIn$3 = getBuiltIn$8;
2329
+ var defineBuiltInAccessor = defineBuiltInAccessor$2;
2330
+ var wellKnownSymbol$3 = wellKnownSymbol$f;
2331
+ var DESCRIPTORS$2 = descriptors;
1837
2332
 
1838
- var SPECIES$2 = wellKnownSymbol$5('species');
2333
+ var SPECIES$2 = wellKnownSymbol$3('species');
1839
2334
 
1840
2335
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1841
- var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
2336
+ var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
1842
2337
 
1843
- if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
2338
+ if (DESCRIPTORS$2 && Constructor && !Constructor[SPECIES$2]) {
1844
2339
  defineBuiltInAccessor(Constructor, SPECIES$2, {
1845
2340
  configurable: true,
1846
2341
  get: function () { return this; }
@@ -1848,60 +2343,51 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1848
2343
  }
1849
2344
  };
1850
2345
 
1851
- var isPrototypeOf$1 = objectIsPrototypeOf;
1852
-
1853
- var $TypeError$5 = TypeError;
1854
-
1855
- var anInstance$1 = function (it, Prototype) {
1856
- if (isPrototypeOf$1(Prototype, it)) return it;
1857
- throw new $TypeError$5('Incorrect invocation');
1858
- };
1859
-
1860
2346
  var isConstructor = isConstructor$2;
1861
- var tryToString$2 = tryToString$4;
2347
+ var tryToString = tryToString$4;
1862
2348
 
1863
- var $TypeError$4 = TypeError;
2349
+ var $TypeError$2 = TypeError;
1864
2350
 
1865
2351
  // `Assert: IsConstructor(argument) is true`
1866
2352
  var aConstructor$1 = function (argument) {
1867
2353
  if (isConstructor(argument)) return argument;
1868
- throw new $TypeError$4(tryToString$2(argument) + ' is not a constructor');
2354
+ throw new $TypeError$2(tryToString(argument) + ' is not a constructor');
1869
2355
  };
1870
2356
 
1871
- var anObject$4 = anObject$c;
2357
+ var anObject$1 = anObject$i;
1872
2358
  var aConstructor = aConstructor$1;
1873
- var isNullOrUndefined$1 = isNullOrUndefined$4;
1874
- var wellKnownSymbol$4 = wellKnownSymbol$c;
2359
+ var isNullOrUndefined = isNullOrUndefined$4;
2360
+ var wellKnownSymbol$2 = wellKnownSymbol$f;
1875
2361
 
1876
- var SPECIES$1 = wellKnownSymbol$4('species');
2362
+ var SPECIES$1 = wellKnownSymbol$2('species');
1877
2363
 
1878
2364
  // `SpeciesConstructor` abstract operation
1879
2365
  // https://tc39.es/ecma262/#sec-speciesconstructor
1880
2366
  var speciesConstructor$1 = function (O, defaultConstructor) {
1881
- var C = anObject$4(O).constructor;
2367
+ var C = anObject$1(O).constructor;
1882
2368
  var S;
1883
- return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2369
+ return C === undefined || isNullOrUndefined(S = anObject$1(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1884
2370
  };
1885
2371
 
1886
2372
  var NATIVE_BIND = functionBindNative;
1887
2373
 
1888
2374
  var FunctionPrototype = Function.prototype;
1889
- var apply$1 = FunctionPrototype.apply;
1890
- var call$6 = FunctionPrototype.call;
2375
+ var apply$2 = FunctionPrototype.apply;
2376
+ var call$3 = FunctionPrototype.call;
1891
2377
 
1892
2378
  // eslint-disable-next-line es/no-reflect -- safe
1893
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$6.bind(apply$1) : function () {
1894
- return call$6.apply(apply$1, arguments);
2379
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$2) : function () {
2380
+ return call$3.apply(apply$2, arguments);
1895
2381
  });
1896
2382
 
1897
- var uncurryThis = functionUncurryThis;
2383
+ var uncurryThis$1 = functionUncurryThis;
1898
2384
 
1899
- var arraySlice$1 = uncurryThis([].slice);
2385
+ var arraySlice$1 = uncurryThis$1([].slice);
1900
2386
 
1901
- var $TypeError$3 = TypeError;
2387
+ var $TypeError$1 = TypeError;
1902
2388
 
1903
2389
  var validateArgumentsLength$1 = function (passed, required) {
1904
- if (passed < required) throw new $TypeError$3('Not enough arguments');
2390
+ if (passed < required) throw new $TypeError$1('Not enough arguments');
1905
2391
  return passed;
1906
2392
  };
1907
2393
 
@@ -1910,12 +2396,12 @@ var userAgent$2 = engineUserAgent;
1910
2396
  // eslint-disable-next-line redos/no-vulnerable -- safe
1911
2397
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1912
2398
 
1913
- var global$6 = global$i;
1914
- var apply = functionApply;
1915
- var bind$3 = functionBindContext;
1916
- var isCallable$3 = isCallable$g;
1917
- var hasOwn = hasOwnProperty_1;
1918
- var fails = fails$c;
2399
+ var global$7 = global$j;
2400
+ var apply$1 = functionApply;
2401
+ var bind$2 = functionBindContext;
2402
+ var isCallable$4 = isCallable$k;
2403
+ var hasOwn$1 = hasOwnProperty_1;
2404
+ var fails$1 = fails$h;
1919
2405
  var html = html$2;
1920
2406
  var arraySlice = arraySlice$1;
1921
2407
  var createElement = documentCreateElement$1;
@@ -1923,25 +2409,25 @@ var validateArgumentsLength = validateArgumentsLength$1;
1923
2409
  var IS_IOS$1 = engineIsIos;
1924
2410
  var IS_NODE$3 = engineIsNode;
1925
2411
 
1926
- var set = global$6.setImmediate;
1927
- var clear = global$6.clearImmediate;
1928
- var process$2 = global$6.process;
1929
- var Dispatch = global$6.Dispatch;
1930
- var Function$1 = global$6.Function;
1931
- var MessageChannel = global$6.MessageChannel;
1932
- var String$1 = global$6.String;
2412
+ var set = global$7.setImmediate;
2413
+ var clear = global$7.clearImmediate;
2414
+ var process$2 = global$7.process;
2415
+ var Dispatch = global$7.Dispatch;
2416
+ var Function$1 = global$7.Function;
2417
+ var MessageChannel = global$7.MessageChannel;
2418
+ var String$1 = global$7.String;
1933
2419
  var counter = 0;
1934
2420
  var queue$2 = {};
1935
2421
  var ONREADYSTATECHANGE = 'onreadystatechange';
1936
2422
  var $location, defer, channel, port;
1937
2423
 
1938
- fails(function () {
2424
+ fails$1(function () {
1939
2425
  // Deno throws a ReferenceError on `location` access without `--location` flag
1940
- $location = global$6.location;
2426
+ $location = global$7.location;
1941
2427
  });
1942
2428
 
1943
2429
  var run = function (id) {
1944
- if (hasOwn(queue$2, id)) {
2430
+ if (hasOwn$1(queue$2, id)) {
1945
2431
  var fn = queue$2[id];
1946
2432
  delete queue$2[id];
1947
2433
  fn();
@@ -1960,17 +2446,17 @@ var eventListener = function (event) {
1960
2446
 
1961
2447
  var globalPostMessageDefer = function (id) {
1962
2448
  // old engines have not location.origin
1963
- global$6.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2449
+ global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1964
2450
  };
1965
2451
 
1966
2452
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1967
2453
  if (!set || !clear) {
1968
2454
  set = function setImmediate(handler) {
1969
2455
  validateArgumentsLength(arguments.length, 1);
1970
- var fn = isCallable$3(handler) ? handler : Function$1(handler);
2456
+ var fn = isCallable$4(handler) ? handler : Function$1(handler);
1971
2457
  var args = arraySlice(arguments, 1);
1972
2458
  queue$2[++counter] = function () {
1973
- apply(fn, undefined, args);
2459
+ apply$1(fn, undefined, args);
1974
2460
  };
1975
2461
  defer(counter);
1976
2462
  return counter;
@@ -1994,18 +2480,18 @@ if (!set || !clear) {
1994
2480
  channel = new MessageChannel();
1995
2481
  port = channel.port2;
1996
2482
  channel.port1.onmessage = eventListener;
1997
- defer = bind$3(port.postMessage, port);
2483
+ defer = bind$2(port.postMessage, port);
1998
2484
  // Browsers with postMessage, skip WebWorkers
1999
2485
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2000
2486
  } else if (
2001
- global$6.addEventListener &&
2002
- isCallable$3(global$6.postMessage) &&
2003
- !global$6.importScripts &&
2487
+ global$7.addEventListener &&
2488
+ isCallable$4(global$7.postMessage) &&
2489
+ !global$7.importScripts &&
2004
2490
  $location && $location.protocol !== 'file:' &&
2005
- !fails(globalPostMessageDefer)
2491
+ !fails$1(globalPostMessageDefer)
2006
2492
  ) {
2007
2493
  defer = globalPostMessageDefer;
2008
- global$6.addEventListener('message', eventListener, false);
2494
+ global$7.addEventListener('message', eventListener, false);
2009
2495
  // IE8-
2010
2496
  } else if (ONREADYSTATECHANGE in createElement('script')) {
2011
2497
  defer = function (id) {
@@ -2027,16 +2513,16 @@ var task$1 = {
2027
2513
  clear: clear
2028
2514
  };
2029
2515
 
2030
- var global$5 = global$i;
2031
- var DESCRIPTORS = descriptors;
2516
+ var global$6 = global$j;
2517
+ var DESCRIPTORS$1 = descriptors;
2032
2518
 
2033
2519
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2034
2520
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2035
2521
 
2036
2522
  // Avoid NodeJS experimental warning
2037
2523
  var safeGetBuiltIn$1 = function (name) {
2038
- if (!DESCRIPTORS) return global$5[name];
2039
- var descriptor = getOwnPropertyDescriptor(global$5, name);
2524
+ if (!DESCRIPTORS$1) return global$6[name];
2525
+ var descriptor = getOwnPropertyDescriptor(global$6, name);
2040
2526
  return descriptor && descriptor.value;
2041
2527
  };
2042
2528
 
@@ -2073,9 +2559,9 @@ var userAgent = engineUserAgent;
2073
2559
 
2074
2560
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2075
2561
 
2076
- var global$4 = global$i;
2562
+ var global$5 = global$j;
2077
2563
  var safeGetBuiltIn = safeGetBuiltIn$1;
2078
- var bind$2 = functionBindContext;
2564
+ var bind$1 = functionBindContext;
2079
2565
  var macrotask = task$1.set;
2080
2566
  var Queue$1 = queue$1;
2081
2567
  var IS_IOS = engineIsIos;
@@ -2083,10 +2569,10 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
2083
2569
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2084
2570
  var IS_NODE$2 = engineIsNode;
2085
2571
 
2086
- var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
2087
- var document$2 = global$4.document;
2088
- var process$1 = global$4.process;
2089
- var Promise$1 = global$4.Promise;
2572
+ var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
2573
+ var document$2 = global$5.document;
2574
+ var process$1 = global$5.process;
2575
+ var Promise$1 = global$5.Promise;
2090
2576
  var microtask$1 = safeGetBuiltIn('queueMicrotask');
2091
2577
  var notify$1, toggle, node, promise, then;
2092
2578
 
@@ -2121,7 +2607,7 @@ if (!microtask$1) {
2121
2607
  promise = Promise$1.resolve(undefined);
2122
2608
  // workaround of WebKit ~ iOS Safari 10.1 bug
2123
2609
  promise.constructor = Promise$1;
2124
- then = bind$2(promise.then, promise);
2610
+ then = bind$1(promise.then, promise);
2125
2611
  notify$1 = function () {
2126
2612
  then(flush);
2127
2613
  };
@@ -2138,7 +2624,7 @@ if (!microtask$1) {
2138
2624
  // - setTimeout
2139
2625
  } else {
2140
2626
  // `webpack` dev server bug on IE global methods - use bind(fn, global)
2141
- macrotask = bind$2(macrotask, global$4);
2627
+ macrotask = bind$1(macrotask, global$5);
2142
2628
  notify$1 = function () {
2143
2629
  macrotask(flush);
2144
2630
  };
@@ -2167,9 +2653,9 @@ var perform$3 = function (exec) {
2167
2653
  }
2168
2654
  };
2169
2655
 
2170
- var global$3 = global$i;
2656
+ var global$4 = global$j;
2171
2657
 
2172
- var promiseNativeConstructor = global$3.Promise;
2658
+ var promiseNativeConstructor = global$4.Promise;
2173
2659
 
2174
2660
  /* global Deno -- Deno case */
2175
2661
  var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
@@ -2181,20 +2667,20 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2181
2667
  && typeof window == 'object'
2182
2668
  && typeof document == 'object';
2183
2669
 
2184
- var global$2 = global$i;
2670
+ var global$3 = global$j;
2185
2671
  var NativePromiseConstructor$3 = promiseNativeConstructor;
2186
- var isCallable$2 = isCallable$g;
2672
+ var isCallable$3 = isCallable$k;
2187
2673
  var isForced = isForced_1;
2188
2674
  var inspectSource = inspectSource$3;
2189
- var wellKnownSymbol$3 = wellKnownSymbol$c;
2675
+ var wellKnownSymbol$1 = wellKnownSymbol$f;
2190
2676
  var IS_BROWSER = engineIsBrowser;
2191
2677
  var IS_DENO = engineIsDeno;
2192
2678
  var V8_VERSION = engineV8Version;
2193
2679
 
2194
2680
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2195
- var SPECIES = wellKnownSymbol$3('species');
2681
+ var SPECIES = wellKnownSymbol$1('species');
2196
2682
  var SUBCLASSING = false;
2197
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
2683
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$3.PromiseRejectionEvent);
2198
2684
 
2199
2685
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2200
2686
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -2228,19 +2714,19 @@ var promiseConstructorDetection = {
2228
2714
 
2229
2715
  var newPromiseCapability$2 = {};
2230
2716
 
2231
- var aCallable$4 = aCallable$9;
2717
+ var aCallable$3 = aCallable$d;
2232
2718
 
2233
- var $TypeError$2 = TypeError;
2719
+ var $TypeError = TypeError;
2234
2720
 
2235
2721
  var PromiseCapability = function (C) {
2236
2722
  var resolve, reject;
2237
2723
  this.promise = new C(function ($$resolve, $$reject) {
2238
- if (resolve !== undefined || reject !== undefined) throw new $TypeError$2('Bad Promise constructor');
2724
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor');
2239
2725
  resolve = $$resolve;
2240
2726
  reject = $$reject;
2241
2727
  });
2242
- this.resolve = aCallable$4(resolve);
2243
- this.reject = aCallable$4(reject);
2728
+ this.resolve = aCallable$3(resolve);
2729
+ this.reject = aCallable$3(reject);
2244
2730
  };
2245
2731
 
2246
2732
  // `NewPromiseCapability` abstract operation
@@ -2249,18 +2735,18 @@ newPromiseCapability$2.f = function (C) {
2249
2735
  return new PromiseCapability(C);
2250
2736
  };
2251
2737
 
2252
- var $$5 = _export;
2738
+ var $$6 = _export;
2253
2739
  var IS_NODE = engineIsNode;
2254
- var global$1 = global$i;
2255
- var call$5 = functionCall;
2256
- var defineBuiltIn$1 = defineBuiltIn$4;
2257
- var setPrototypeOf = objectSetPrototypeOf;
2740
+ var global$2 = global$j;
2741
+ var call$2 = functionCall;
2742
+ var defineBuiltIn$1 = defineBuiltIn$6;
2743
+ var setPrototypeOf$2 = objectSetPrototypeOf;
2258
2744
  var setToStringTag = setToStringTag$1;
2259
2745
  var setSpecies = setSpecies$1;
2260
- var aCallable$3 = aCallable$9;
2261
- var isCallable$1 = isCallable$g;
2262
- var isObject$1 = isObject$9;
2263
- var anInstance = anInstance$1;
2746
+ var aCallable$2 = aCallable$d;
2747
+ var isCallable$2 = isCallable$k;
2748
+ var isObject$3 = isObject$d;
2749
+ var anInstance = anInstance$2;
2264
2750
  var speciesConstructor = speciesConstructor$1;
2265
2751
  var task = task$1.set;
2266
2752
  var microtask = microtask_1;
@@ -2281,13 +2767,13 @@ var setInternalState = InternalStateModule.set;
2281
2767
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2282
2768
  var PromiseConstructor = NativePromiseConstructor$2;
2283
2769
  var PromisePrototype = NativePromisePrototype$1;
2284
- var TypeError$1 = global$1.TypeError;
2285
- var document$1 = global$1.document;
2286
- var process = global$1.process;
2770
+ var TypeError$1 = global$2.TypeError;
2771
+ var document$1 = global$2.document;
2772
+ var process = global$2.process;
2287
2773
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2288
2774
  var newGenericPromiseCapability = newPromiseCapability$1;
2289
2775
 
2290
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
2776
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
2291
2777
  var UNHANDLED_REJECTION = 'unhandledrejection';
2292
2778
  var REJECTION_HANDLED = 'rejectionhandled';
2293
2779
  var PENDING = 0;
@@ -2301,7 +2787,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2301
2787
  // helpers
2302
2788
  var isThenable = function (it) {
2303
2789
  var then;
2304
- return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
2790
+ return isObject$3(it) && isCallable$2(then = it.then) ? then : false;
2305
2791
  };
2306
2792
 
2307
2793
  var callReaction = function (reaction, state) {
@@ -2330,7 +2816,7 @@ var callReaction = function (reaction, state) {
2330
2816
  if (result === reaction.promise) {
2331
2817
  reject(new TypeError$1('Promise-chain cycle'));
2332
2818
  } else if (then = isThenable(result)) {
2333
- call$5(then, result, resolve, reject);
2819
+ call$2(then, result, resolve, reject);
2334
2820
  } else resolve(result);
2335
2821
  } else reject(value);
2336
2822
  } catch (error) {
@@ -2360,14 +2846,14 @@ var dispatchEvent = function (name, promise, reason) {
2360
2846
  event.promise = promise;
2361
2847
  event.reason = reason;
2362
2848
  event.initEvent(name, false, true);
2363
- global$1.dispatchEvent(event);
2849
+ global$2.dispatchEvent(event);
2364
2850
  } else event = { promise: promise, reason: reason };
2365
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
2851
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
2366
2852
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2367
2853
  };
2368
2854
 
2369
2855
  var onUnhandled = function (state) {
2370
- call$5(task, global$1, function () {
2856
+ call$2(task, global$2, function () {
2371
2857
  var promise = state.facade;
2372
2858
  var value = state.value;
2373
2859
  var IS_UNHANDLED = isUnhandled(state);
@@ -2390,7 +2876,7 @@ var isUnhandled = function (state) {
2390
2876
  };
2391
2877
 
2392
2878
  var onHandleUnhandled = function (state) {
2393
- call$5(task, global$1, function () {
2879
+ call$2(task, global$2, function () {
2394
2880
  var promise = state.facade;
2395
2881
  if (IS_NODE) {
2396
2882
  process.emit('rejectionHandled', promise);
@@ -2398,7 +2884,7 @@ var onHandleUnhandled = function (state) {
2398
2884
  });
2399
2885
  };
2400
2886
 
2401
- var bind$1 = function (fn, state, unwrap) {
2887
+ var bind = function (fn, state, unwrap) {
2402
2888
  return function (value) {
2403
2889
  fn(state, value, unwrap);
2404
2890
  };
@@ -2424,9 +2910,9 @@ var internalResolve = function (state, value, unwrap) {
2424
2910
  microtask(function () {
2425
2911
  var wrapper = { done: false };
2426
2912
  try {
2427
- call$5(then, value,
2428
- bind$1(internalResolve, wrapper, state),
2429
- bind$1(internalReject, wrapper, state)
2913
+ call$2(then, value,
2914
+ bind(internalResolve, wrapper, state),
2915
+ bind(internalReject, wrapper, state)
2430
2916
  );
2431
2917
  } catch (error) {
2432
2918
  internalReject(wrapper, error, state);
@@ -2447,11 +2933,11 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2447
2933
  // 25.4.3.1 Promise(executor)
2448
2934
  PromiseConstructor = function Promise(executor) {
2449
2935
  anInstance(this, PromisePrototype);
2450
- aCallable$3(executor);
2451
- call$5(Internal, this);
2936
+ aCallable$2(executor);
2937
+ call$2(Internal, this);
2452
2938
  var state = getInternalPromiseState(this);
2453
2939
  try {
2454
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
2940
+ executor(bind(internalResolve, state), bind(internalReject, state));
2455
2941
  } catch (error) {
2456
2942
  internalReject(state, error);
2457
2943
  }
@@ -2479,8 +2965,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2479
2965
  var state = getInternalPromiseState(this);
2480
2966
  var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2481
2967
  state.parent = true;
2482
- reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
2483
- reaction.fail = isCallable$1(onRejected) && onRejected;
2968
+ reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
2969
+ reaction.fail = isCallable$2(onRejected) && onRejected;
2484
2970
  reaction.domain = IS_NODE ? process.domain : undefined;
2485
2971
  if (state.state === PENDING) state.reactions.add(reaction);
2486
2972
  else microtask(function () {
@@ -2493,184 +2979,50 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2493
2979
  var promise = new Internal();
2494
2980
  var state = getInternalPromiseState(promise);
2495
2981
  this.promise = promise;
2496
- this.resolve = bind$1(internalResolve, state);
2497
- this.reject = bind$1(internalReject, state);
2498
- };
2499
-
2500
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
2501
- return C === PromiseConstructor || C === PromiseWrapper
2502
- ? new OwnPromiseCapability(C)
2503
- : newGenericPromiseCapability(C);
2504
- };
2505
-
2506
- if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2507
- nativeThen = NativePromisePrototype$1.then;
2508
-
2509
- if (!NATIVE_PROMISE_SUBCLASSING) {
2510
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2511
- defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2512
- var that = this;
2513
- return new PromiseConstructor(function (resolve, reject) {
2514
- call$5(nativeThen, that, resolve, reject);
2515
- }).then(onFulfilled, onRejected);
2516
- // https://github.com/zloirock/core-js/issues/640
2517
- }, { unsafe: true });
2518
- }
2519
-
2520
- // make `.constructor === Promise` work for native promise-based APIs
2521
- try {
2522
- delete NativePromisePrototype$1.constructor;
2523
- } catch (error) { /* empty */ }
2524
-
2525
- // make `instanceof Promise` work for native promise-based APIs
2526
- if (setPrototypeOf) {
2527
- setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
2528
- }
2529
- }
2530
- }
2531
-
2532
- $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2533
- Promise: PromiseConstructor
2534
- });
2535
-
2536
- setToStringTag(PromiseConstructor, PROMISE, false);
2537
- setSpecies(PROMISE);
2538
-
2539
- var iterators = {};
2540
-
2541
- var wellKnownSymbol$2 = wellKnownSymbol$c;
2542
- var Iterators$1 = iterators;
2543
-
2544
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
2545
- var ArrayPrototype = Array.prototype;
2546
-
2547
- // check on default Array iterator
2548
- var isArrayIteratorMethod$1 = function (it) {
2549
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
2550
- };
2551
-
2552
- var classof = classof$6;
2553
- var getMethod$1 = getMethod$3;
2554
- var isNullOrUndefined = isNullOrUndefined$4;
2555
- var Iterators = iterators;
2556
- var wellKnownSymbol$1 = wellKnownSymbol$c;
2557
-
2558
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
2559
-
2560
- var getIteratorMethod$2 = function (it) {
2561
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
2562
- || getMethod$1(it, '@@iterator')
2563
- || Iterators[classof(it)];
2564
- };
2565
-
2566
- var call$4 = functionCall;
2567
- var aCallable$2 = aCallable$9;
2568
- var anObject$3 = anObject$c;
2569
- var tryToString$1 = tryToString$4;
2570
- var getIteratorMethod$1 = getIteratorMethod$2;
2571
-
2572
- var $TypeError$1 = TypeError;
2573
-
2574
- var getIterator$1 = function (argument, usingIterator) {
2575
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2576
- if (aCallable$2(iteratorMethod)) return anObject$3(call$4(iteratorMethod, argument));
2577
- throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
2578
- };
2579
-
2580
- var call$3 = functionCall;
2581
- var anObject$2 = anObject$c;
2582
- var getMethod = getMethod$3;
2583
-
2584
- var iteratorClose$1 = function (iterator, kind, value) {
2585
- var innerResult, innerError;
2586
- anObject$2(iterator);
2587
- try {
2588
- innerResult = getMethod(iterator, 'return');
2589
- if (!innerResult) {
2590
- if (kind === 'throw') throw value;
2591
- return value;
2592
- }
2593
- innerResult = call$3(innerResult, iterator);
2594
- } catch (error) {
2595
- innerError = true;
2596
- innerResult = error;
2597
- }
2598
- if (kind === 'throw') throw value;
2599
- if (innerError) throw innerResult;
2600
- anObject$2(innerResult);
2601
- return value;
2602
- };
2603
-
2604
- var bind = functionBindContext;
2605
- var call$2 = functionCall;
2606
- var anObject$1 = anObject$c;
2607
- var tryToString = tryToString$4;
2608
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
2609
- var lengthOfArrayLike = lengthOfArrayLike$4;
2610
- var isPrototypeOf = objectIsPrototypeOf;
2611
- var getIterator = getIterator$1;
2612
- var getIteratorMethod = getIteratorMethod$2;
2613
- var iteratorClose = iteratorClose$1;
2614
-
2615
- var $TypeError = TypeError;
2616
-
2617
- var Result = function (stopped, result) {
2618
- this.stopped = stopped;
2619
- this.result = result;
2620
- };
2621
-
2622
- var ResultPrototype = Result.prototype;
2623
-
2624
- var iterate$2 = function (iterable, unboundFunction, options) {
2625
- var that = options && options.that;
2626
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2627
- var IS_RECORD = !!(options && options.IS_RECORD);
2628
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2629
- var INTERRUPTED = !!(options && options.INTERRUPTED);
2630
- var fn = bind(unboundFunction, that);
2631
- var iterator, iterFn, index, length, result, next, step;
2632
-
2633
- var stop = function (condition) {
2634
- if (iterator) iteratorClose(iterator, 'normal', condition);
2635
- return new Result(true, condition);
2982
+ this.resolve = bind(internalResolve, state);
2983
+ this.reject = bind(internalReject, state);
2636
2984
  };
2637
2985
 
2638
- var callFn = function (value) {
2639
- if (AS_ENTRIES) {
2640
- anObject$1(value);
2641
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2642
- } return INTERRUPTED ? fn(value, stop) : fn(value);
2986
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
2987
+ return C === PromiseConstructor || C === PromiseWrapper
2988
+ ? new OwnPromiseCapability(C)
2989
+ : newGenericPromiseCapability(C);
2643
2990
  };
2644
2991
 
2645
- if (IS_RECORD) {
2646
- iterator = iterable.iterator;
2647
- } else if (IS_ITERATOR) {
2648
- iterator = iterable;
2649
- } else {
2650
- iterFn = getIteratorMethod(iterable);
2651
- if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
2652
- // optimisation for array iterators
2653
- if (isArrayIteratorMethod(iterFn)) {
2654
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2655
- result = callFn(iterable[index]);
2656
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
2657
- } return new Result(false);
2992
+ if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2993
+ nativeThen = NativePromisePrototype$1.then;
2994
+
2995
+ if (!NATIVE_PROMISE_SUBCLASSING) {
2996
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2997
+ defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2998
+ var that = this;
2999
+ return new PromiseConstructor(function (resolve, reject) {
3000
+ call$2(nativeThen, that, resolve, reject);
3001
+ }).then(onFulfilled, onRejected);
3002
+ // https://github.com/zloirock/core-js/issues/640
3003
+ }, { unsafe: true });
2658
3004
  }
2659
- iterator = getIterator(iterable, iterFn);
2660
- }
2661
3005
 
2662
- next = IS_RECORD ? iterable.next : iterator.next;
2663
- while (!(step = call$2(next, iterator)).done) {
3006
+ // make `.constructor === Promise` work for native promise-based APIs
2664
3007
  try {
2665
- result = callFn(step.value);
2666
- } catch (error) {
2667
- iteratorClose(iterator, 'throw', error);
3008
+ delete NativePromisePrototype$1.constructor;
3009
+ } catch (error) { /* empty */ }
3010
+
3011
+ // make `instanceof Promise` work for native promise-based APIs
3012
+ if (setPrototypeOf$2) {
3013
+ setPrototypeOf$2(NativePromisePrototype$1, PromisePrototype);
2668
3014
  }
2669
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2670
- } return new Result(false);
2671
- };
3015
+ }
3016
+ }
3017
+
3018
+ $$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3019
+ Promise: PromiseConstructor
3020
+ });
2672
3021
 
2673
- var wellKnownSymbol = wellKnownSymbol$c;
3022
+ setToStringTag(PromiseConstructor, PROMISE, false);
3023
+ setSpecies(PROMISE);
3024
+
3025
+ var wellKnownSymbol = wellKnownSymbol$f;
2674
3026
 
2675
3027
  var ITERATOR = wellKnownSymbol('iterator');
2676
3028
  var SAFE_CLOSING = false;
@@ -2719,17 +3071,17 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
2719
3071
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2720
3072
  });
2721
3073
 
2722
- var $$4 = _export;
3074
+ var $$5 = _export;
2723
3075
  var call$1 = functionCall;
2724
- var aCallable$1 = aCallable$9;
3076
+ var aCallable$1 = aCallable$d;
2725
3077
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2726
3078
  var perform$1 = perform$3;
2727
- var iterate$1 = iterate$2;
3079
+ var iterate$1 = iterate$3;
2728
3080
  var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2729
3081
 
2730
3082
  // `Promise.all` method
2731
3083
  // https://tc39.es/ecma262/#sec-promise.all
2732
- $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3084
+ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2733
3085
  all: function all(iterable) {
2734
3086
  var C = this;
2735
3087
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -2758,42 +3110,42 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2758
3110
  }
2759
3111
  });
2760
3112
 
2761
- var $$3 = _export;
3113
+ var $$4 = _export;
2762
3114
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2763
3115
  var NativePromiseConstructor = promiseNativeConstructor;
2764
- var getBuiltIn$1 = getBuiltIn$7;
2765
- var isCallable = isCallable$g;
2766
- var defineBuiltIn = defineBuiltIn$4;
3116
+ var getBuiltIn$2 = getBuiltIn$8;
3117
+ var isCallable$1 = isCallable$k;
3118
+ var defineBuiltIn = defineBuiltIn$6;
2767
3119
 
2768
3120
  var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2769
3121
 
2770
3122
  // `Promise.prototype.catch` method
2771
3123
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
2772
- $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3124
+ $$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2773
3125
  'catch': function (onRejected) {
2774
3126
  return this.then(undefined, onRejected);
2775
3127
  }
2776
3128
  });
2777
3129
 
2778
3130
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2779
- if (isCallable(NativePromiseConstructor)) {
2780
- var method = getBuiltIn$1('Promise').prototype['catch'];
3131
+ if (isCallable$1(NativePromiseConstructor)) {
3132
+ var method = getBuiltIn$2('Promise').prototype['catch'];
2781
3133
  if (NativePromisePrototype['catch'] !== method) {
2782
3134
  defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2783
3135
  }
2784
3136
  }
2785
3137
 
2786
- var $$2 = _export;
3138
+ var $$3 = _export;
2787
3139
  var call = functionCall;
2788
- var aCallable = aCallable$9;
3140
+ var aCallable = aCallable$d;
2789
3141
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2790
3142
  var perform = perform$3;
2791
- var iterate = iterate$2;
3143
+ var iterate = iterate$3;
2792
3144
  var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2793
3145
 
2794
3146
  // `Promise.race` method
2795
3147
  // https://tc39.es/ecma262/#sec-promise.race
2796
- $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3148
+ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2797
3149
  race: function race(iterable) {
2798
3150
  var C = this;
2799
3151
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -2809,13 +3161,13 @@ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2809
3161
  }
2810
3162
  });
2811
3163
 
2812
- var $$1 = _export;
3164
+ var $$2 = _export;
2813
3165
  var newPromiseCapabilityModule = newPromiseCapability$2;
2814
3166
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2815
3167
 
2816
3168
  // `Promise.reject` method
2817
3169
  // https://tc39.es/ecma262/#sec-promise.reject
2818
- $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3170
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2819
3171
  reject: function reject(r) {
2820
3172
  var capability = newPromiseCapabilityModule.f(this);
2821
3173
  var capabilityReject = capability.reject;
@@ -2824,29 +3176,29 @@ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2824
3176
  }
2825
3177
  });
2826
3178
 
2827
- var anObject = anObject$c;
2828
- var isObject = isObject$9;
3179
+ var anObject = anObject$i;
3180
+ var isObject$2 = isObject$d;
2829
3181
  var newPromiseCapability = newPromiseCapability$2;
2830
3182
 
2831
3183
  var promiseResolve$1 = function (C, x) {
2832
3184
  anObject(C);
2833
- if (isObject(x) && x.constructor === C) return x;
3185
+ if (isObject$2(x) && x.constructor === C) return x;
2834
3186
  var promiseCapability = newPromiseCapability.f(C);
2835
3187
  var resolve = promiseCapability.resolve;
2836
3188
  resolve(x);
2837
3189
  return promiseCapability.promise;
2838
3190
  };
2839
3191
 
2840
- var $ = _export;
2841
- var getBuiltIn = getBuiltIn$7;
3192
+ var $$1 = _export;
3193
+ var getBuiltIn$1 = getBuiltIn$8;
2842
3194
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2843
3195
  var promiseResolve = promiseResolve$1;
2844
3196
 
2845
- getBuiltIn('Promise');
3197
+ getBuiltIn$1('Promise');
2846
3198
 
2847
3199
  // `Promise.resolve` method
2848
3200
  // https://tc39.es/ecma262/#sec-promise.resolve
2849
- $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3201
+ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2850
3202
  resolve: function resolve(x) {
2851
3203
  return promiseResolve(this, x);
2852
3204
  }
@@ -2856,17 +3208,6 @@ $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2856
3208
  * A code used in some cases to denote success.
2857
3209
  */
2858
3210
  const ZOHO_SUCCESS_CODE = 'SUCCESS';
2859
-
2860
- /**
2861
- * Zoho Server Error Data
2862
- *
2863
- * Always contains a code and message. Details and status are optional.
2864
- */
2865
-
2866
- /**
2867
- * Contains details and a status
2868
- */
2869
-
2870
3211
  function zohoServerErrorData(error) {
2871
3212
  const errorType = typeof error;
2872
3213
  let errorData;
@@ -2880,7 +3221,6 @@ function zohoServerErrorData(error) {
2880
3221
  }
2881
3222
  return errorData;
2882
3223
  }
2883
-
2884
3224
  /**
2885
3225
  * Zoho Server Error
2886
3226
  */
@@ -2890,16 +3230,18 @@ class ZohoServerError extends BaseError {
2890
3230
  }
2891
3231
  constructor(error) {
2892
3232
  super(error.message);
3233
+ this.error = void 0;
2893
3234
  this.error = error;
2894
3235
  }
2895
3236
  }
2896
-
2897
3237
  /**
2898
3238
  * Zoho Server Error that includes the FetchResponseError
2899
3239
  */
2900
3240
  class ZohoServerFetchResponseError extends ZohoServerError {
2901
3241
  constructor(data, responseError) {
2902
3242
  super(data);
3243
+ this.data = void 0;
3244
+ this.responseError = void 0;
2903
3245
  this.data = data;
2904
3246
  this.responseError = responseError;
2905
3247
  }
@@ -2928,14 +3270,6 @@ function logZohoServerErrorFunction(zohoApiNamePrefix) {
2928
3270
  }
2929
3271
  };
2930
3272
  }
2931
-
2932
- /**
2933
- * Wraps a ConfiguredFetch to support handling errors returned by fetch.
2934
- *
2935
- * @param fetch
2936
- * @returns
2937
- */
2938
-
2939
3273
  /**
2940
3274
  * Wraps a ConfiguredFetch to support handling errors returned by fetch.
2941
3275
  *
@@ -2980,31 +3314,26 @@ function interceptZohoErrorResponseFactory(parseZohoServerErrorResponseData) {
2980
3314
  return json;
2981
3315
  };
2982
3316
  }
2983
-
2984
3317
  // MARK: Parsed Errors
2985
3318
  /**
2986
3319
  * Error in the following (but not limited to) cases:
2987
3320
  * - An extra parameter is provided
2988
3321
  */
2989
3322
  const ZOHO_INTERNAL_ERROR_CODE = 'INTERNAL_ERROR';
2990
-
2991
3323
  /**
2992
3324
  * Error when the Zoho API returns an internal error
2993
3325
  */
2994
3326
  class ZohoInternalError extends ZohoServerFetchResponseError {}
2995
-
2996
3327
  /**
2997
3328
  * Error in the following cases:
2998
3329
  * - Authorization is not properly constructed ("Invalid Ticket Id")
2999
3330
  * - OAuth token is expired ("Invalid OAuthtoken")
3000
3331
  */
3001
3332
  const ZOHO_INVALID_AUTHORIZATION_ERROR_CODE = '4834';
3002
-
3003
3333
  /**
3004
3334
  * Error when the Zoho API returns an invalid authorization error code.
3005
3335
  */
3006
3336
  class ZohoInvalidAuthorizationError extends ZohoServerFetchResponseError {}
3007
-
3008
3337
  /**
3009
3338
  * Error in the following cases:
3010
3339
  * - Search query is invalid
@@ -3015,27 +3344,22 @@ class ZohoInvalidQueryError extends ZohoServerFetchResponseError {
3015
3344
  return this.error.details;
3016
3345
  }
3017
3346
  }
3018
-
3019
3347
  /**
3020
3348
  * Error when a mandatory field is missing.
3021
3349
  */
3022
3350
  const ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE = 'MANDATORY_NOT_FOUND';
3023
-
3024
3351
  /**
3025
3352
  * Error when a duplicate record is found with a matching unique field value.
3026
3353
  */
3027
3354
  const ZOHO_DUPLICATE_DATA_ERROR_CODE = 'DUPLICATE_DATA';
3028
-
3029
3355
  /**
3030
3356
  * Error when some passed data is invalid.
3031
3357
  */
3032
3358
  const ZOHO_INVALID_DATA_ERROR_CODE = 'INVALID_DATA';
3033
-
3034
3359
  /**
3035
3360
  * Error when too many requests are made in a short period of time.
3036
3361
  */
3037
3362
  const ZOHO_TOO_MANY_REQUESTS_ERROR_CODE = 'TOO_MANY_REQUESTS';
3038
-
3039
3363
  /**
3040
3364
  * The status code that Zoho uses to indicates that too many requests have been made in a short period of time.
3041
3365
  */
@@ -3069,7 +3393,6 @@ class ZohoTooManyRequestsError extends ZohoServerFetchResponseError {
3069
3393
  return zohoRateLimitHeaderDetails(this.responseError.response.headers);
3070
3394
  }
3071
3395
  }
3072
-
3073
3396
  /**
3074
3397
  * Function that parses/transforms a ZohoServerErrorResponseData into a general ZohoServerError or other known error type.
3075
3398
  *
@@ -3102,7 +3425,6 @@ function parseZohoServerErrorResponseData(errorResponseData, responseError) {
3102
3425
  }
3103
3426
  return result;
3104
3427
  }
3105
-
3106
3428
  /**
3107
3429
  * Attempts to retrieve an ZohoServerErrorResponseDataError from the input.
3108
3430
  *
@@ -3113,8 +3435,8 @@ function parseZohoServerErrorResponseData(errorResponseData, responseError) {
3113
3435
  * @returns
3114
3436
  */
3115
3437
  function tryFindZohoServerErrorData(errorResponseData, responseError) {
3116
- var _error;
3117
- const error = (_error = errorResponseData.error) != null ? _error : !responseError.response.ok ? errorResponseData : undefined;
3438
+ var _errorResponseData$er;
3439
+ const error = (_errorResponseData$er = errorResponseData.error) != null ? _errorResponseData$er : !responseError.response.ok ? errorResponseData : undefined;
3118
3440
  return error;
3119
3441
  }
3120
3442
 
@@ -3124,6 +3446,8 @@ function tryFindZohoServerErrorData(errorResponseData, responseError) {
3124
3446
  class ZohoRecruitRecordNoContentError extends BaseError {
3125
3447
  constructor(moduleName, recordId) {
3126
3448
  super(`There was no content or matching records for the content. It may not exist.`);
3449
+ this.moduleName = void 0;
3450
+ this.recordId = void 0;
3127
3451
  this.moduleName = moduleName;
3128
3452
  this.recordId = recordId;
3129
3453
  }
@@ -3196,8 +3520,6 @@ function parseZohoRecruitServerErrorResponseData(errorResponseData, responseErro
3196
3520
  const interceptZohoRecruitErrorResponse = interceptZohoErrorResponseFactory(parseZohoRecruitServerErrorResponseData);
3197
3521
  const handleZohoRecruitErrorFetch = handleZohoErrorFetchFactory(parseZohoRecruitError, logZohoRecruitErrorToConsole);
3198
3522
 
3199
- // MARK: Insert/Update/Upsert Response
3200
-
3201
3523
  /**
3202
3524
  * The APIs for Insert, Upsert, and Update have the same structure.
3203
3525
  *
@@ -3227,9 +3549,6 @@ function updateRecordLikeFunction(context, fetchUrlPrefix, fetchMethod) {
3227
3549
  }
3228
3550
  });
3229
3551
  }
3230
-
3231
- // MARK: Insert Record
3232
-
3233
3552
  /**
3234
3553
  * Inserts one or more records into Recruit.
3235
3554
  *
@@ -3241,12 +3560,6 @@ function updateRecordLikeFunction(context, fetchUrlPrefix, fetchMethod) {
3241
3560
  function insertRecord(context) {
3242
3561
  return updateRecordLikeFunction(context, '', 'POST');
3243
3562
  }
3244
-
3245
- // MARK: Upsert Record
3246
- /**
3247
- * Upsert function that can do either an insert or and update ased on the input.
3248
- */
3249
-
3250
3563
  /**
3251
3564
  * Updates or inserts one or more records in Recruit.
3252
3565
  *
@@ -3258,9 +3571,6 @@ function insertRecord(context) {
3258
3571
  function upsertRecord(context) {
3259
3572
  return updateRecordLikeFunction(context, '/upsert', 'POST');
3260
3573
  }
3261
-
3262
- // MARK: Update Record
3263
-
3264
3574
  /**
3265
3575
  * Updates one or more records in Recruit.
3266
3576
  *
@@ -3272,9 +3582,6 @@ function upsertRecord(context) {
3272
3582
  function updateRecord(context) {
3273
3583
  return updateRecordLikeFunction(context, '', 'PUT');
3274
3584
  }
3275
-
3276
- // MARK: Get Record By Id
3277
-
3278
3585
  /**
3279
3586
  * Retrieves a specific record from the given module.
3280
3587
  *
@@ -3286,9 +3593,6 @@ function updateRecord(context) {
3286
3593
  function getRecordById(context) {
3287
3594
  return input => context.fetchJson(`/v2/${input.module}/${input.id}`, zohoRecruitApiFetchJsonInput('GET')).then(assertRecordDataArrayResultHasContent(input.module)).then(x => x.data[0]);
3288
3595
  }
3289
-
3290
- // MARK: Get Records
3291
-
3292
3596
  /**
3293
3597
  * Retrieves records from the given module. Used for paginating across all records.
3294
3598
  *
@@ -3300,14 +3604,6 @@ function getRecordById(context) {
3300
3604
  function getRecords(context) {
3301
3605
  return input => context.fetchJson(`/v2/${input.module}?${zohoRecruitUrlSearchParamsMinusModule(input).toString()}`, zohoRecruitApiFetchJsonInput('GET'));
3302
3606
  }
3303
-
3304
- // MARK: Search Reecords
3305
- /**
3306
- * Configuration for searching records.
3307
- *
3308
- * Only criteria, email, phone, or word will be used at a single time.
3309
- */
3310
-
3311
3607
  /**
3312
3608
  * Searches records from the given module.
3313
3609
  *
@@ -3337,9 +3633,6 @@ function searchRecords(context) {
3337
3633
  function searchRecordsPageFactory(context) {
3338
3634
  return zohoFetchPageFactory(searchRecords(context));
3339
3635
  }
3340
-
3341
- // MARK: Notes
3342
-
3343
3636
  function createNotes(context) {
3344
3637
  return input => context.fetchJson(`/v2/Notes`, zohoRecruitApiFetchJsonInput('POST', {
3345
3638
  data: input.data
@@ -3377,22 +3670,13 @@ function createNotesForRecord(context) {
3377
3670
  return createNotesInstance(createNotesRequest);
3378
3671
  };
3379
3672
  }
3380
-
3381
- // MARK: Function
3382
-
3383
3673
  class ZohoRecruitExecuteRestApiFunctionError extends BaseError {
3384
3674
  constructor(error) {
3385
3675
  super(`An error occured during the execution of the function. Code: ${error.code}, Message: ${error.message}`);
3676
+ this.error = void 0;
3386
3677
  this.error = error;
3387
3678
  }
3388
3679
  }
3389
-
3390
- /**
3391
- * Executes the Zoho Recruit function based on the input.
3392
- *
3393
- * If the function fails execution a ZohoRecruitExecuteRestApiFunctionError will be thrown. Other API errors may still be thrown.
3394
- */
3395
-
3396
3680
  /**
3397
3681
  * Creates a ZohoRecruitExecuteRestApiFunctionFunction
3398
3682
  *
@@ -3422,7 +3706,6 @@ function executeRestApiFunction(context) {
3422
3706
  });
3423
3707
  };
3424
3708
  }
3425
-
3426
3709
  // MARK: Util
3427
3710
  function zohoRecruitUrlSearchParamsMinusModule(...input) {
3428
3711
  return makeUrlSearchParams(input, {
@@ -3434,7 +3717,6 @@ function zohoRecruitUrlSearchParamsMinusIdAndModule(...input) {
3434
3717
  omitKeys: ['id', 'module']
3435
3718
  });
3436
3719
  }
3437
-
3438
3720
  /**
3439
3721
  * @deprecated use makeUrlSearchParams instead.
3440
3722
  */
@@ -3446,11 +3728,6 @@ function zohoRecruitApiFetchJsonInput(method, body) {
3446
3728
  };
3447
3729
  return result;
3448
3730
  }
3449
-
3450
- // MARK: Results
3451
-
3452
- // MARK: Multi-Record Results
3453
-
3454
3731
  function zohoRecruitMultiRecordResult(input, results) {
3455
3732
  const successItems = [];
3456
3733
  const errorItems = [];
@@ -3475,18 +3752,214 @@ function zohoRecruitMultiRecordResult(input, results) {
3475
3752
  return result;
3476
3753
  }
3477
3754
 
3478
- // MARK: COMPAT
3479
- /**
3480
- * @deprecated use ZohoRecruitChangeObjectResponseEntry instead.
3481
- */
3755
+ var defineProperty = objectDefineProperty.f;
3482
3756
 
3483
- /**
3484
- * @deprecated use ZohoRecruitChangeObjectResponseSuccessEntry instead.
3485
- */
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
+ };
3486
3764
 
3487
- /**
3488
- * @deprecated use ZohoRecruitChangeObjectResponseErrorEntry instead.
3489
- */
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
+ });
3490
3963
 
3491
3964
  /**
3492
3965
  * Error in the following cases:
@@ -3500,16 +3973,17 @@ const ZOHO_ACCOUNTS_INVALID_CLIENT_ERROR_CODE = 'invalid_client';
3500
3973
  class ZohoAccountsAccessTokenError extends FetchRequestFactoryError {
3501
3974
  constructor(errorCode) {
3502
3975
  super(`ZohoAccountsAccessTokenError: ${errorCode}`);
3976
+ this.errorCode = void 0;
3503
3977
  this.errorCode = errorCode;
3504
3978
  }
3505
3979
  }
3506
-
3507
3980
  /**
3508
3981
  * Thrown if a valid ZohoAccessToken cannot be retrieved successfully.
3509
3982
  */
3510
3983
  class ZohoAccountsAuthFailureError extends FetchRequestFactoryError {
3511
3984
  constructor(reason) {
3512
3985
  super(`Failed to retrieve proper authentication for the API call. Reason: ${reason}`);
3986
+ this.reason = void 0;
3513
3987
  this.reason = reason;
3514
3988
  }
3515
3989
  }
@@ -3542,52 +4016,6 @@ function parseZohoAccountsServerErrorResponseData(errorResponseData, responseErr
3542
4016
  const interceptZohoAccountsErrorResponse = interceptZohoErrorResponseFactory(parseZohoAccountsServerErrorResponseData);
3543
4017
  const handleZohoAccountsErrorFetch = handleZohoErrorFetchFactory(parseZohoAccountsError, logZohoAccountsErrorToConsole);
3544
4018
 
3545
- /**
3546
- * Arbitrary key used to identify a specific service's access token. Typically coincides with the ZohoApiServiceName.
3547
- *
3548
- * I.E. recruit
3549
- */
3550
-
3551
- /**
3552
- * Access token authorization string generated from a refresh token.
3553
- */
3554
-
3555
- /**
3556
- * Scopes string for a ZohoAccessToken
3557
- *
3558
- * Example: "ZohoRecruit.modules.ALL"
3559
- */
3560
-
3561
- /**
3562
- * Api domain string for a ZohoAccessToken
3563
- *
3564
- * Example: "https://www.zohoapis.com"
3565
- */
3566
-
3567
- /**
3568
- * Zoho account access token.
3569
- */
3570
-
3571
- /**
3572
- * Used for retrieving and storing ZohoAccessToken values.
3573
- */
3574
-
3575
- /**
3576
- * Source for retriving a ZohoAccessToken.
3577
- *
3578
- * Throws an ZohoAccountsAuthRetrievalError error if the token could not be retrieved.
3579
- */
3580
-
3581
- /**
3582
- * A ZohoAccessTokenFactory that always generates a new ZohoAccessToken.
3583
- */
3584
-
3585
- /**
3586
- * Source for retriving a ZohoAccessToken string.
3587
- *
3588
- * Throws an ZohoAccountsAuthRetrievalError error if the token could not be retrieved.
3589
- */
3590
-
3591
4019
  /**
3592
4020
  * Generates a new ZohoAccessTokenStringFactory.
3593
4021
  */
@@ -3601,12 +4029,6 @@ function zohoAccessTokenStringFactory(zohoAccessTokenFactory) {
3601
4029
  };
3602
4030
  }
3603
4031
 
3604
- /**
3605
- * Function to execute when too many requests is reached.
3606
- *
3607
- * Typically used for logging of some sort. Thrown errors are ignored.
3608
- */
3609
-
3610
4032
  const DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION = headers => {
3611
4033
  console.warn(`zohoRateLimitedFetchHandler(): Too many requests made. The limit is ${headers.limit} requests per reset period. Will be reset at ${headers.resetAt}.`);
3612
4034
  };
@@ -3650,7 +4072,6 @@ function zohoRateLimitedFetchHandler(config) {
3650
4072
  rateLimiter.setRemainingLimit(remaining);
3651
4073
  rateLimiter.setNextResetAt(resetAt);
3652
4074
  enabled = true;
3653
-
3654
4075
  // only retry if it's a TOO MANY REQUESTS error
3655
4076
  if (response.status === ZOHO_TOO_MANY_REQUESTS_HTTP_STATUS_CODE) {
3656
4077
  shouldRetry = true;
@@ -3742,15 +4163,6 @@ function zohoAccountsApiFetchJsonInput(method, body) {
3742
4163
  * The Zoho Accounts API URL for the US datacenter.
3743
4164
  */
3744
4165
  const ZOHO_ACCOUNTS_US_API_URL = 'https://accounts.zoho.com';
3745
-
3746
- /**
3747
- * Url for the Zoho Accounts API.
3748
- *
3749
- * You can find a list here of Account URLs here:
3750
- *
3751
- * https://help.zoho.com/portal/en/kb/creator/developer-guide/others/url-patterns/articles/know-your-creator-account-s-base-url
3752
- */
3753
-
3754
4166
  function zohoAccountsConfigApiUrl(input) {
3755
4167
  switch (input) {
3756
4168
  case 'us':
@@ -3760,10 +4172,6 @@ function zohoAccountsConfigApiUrl(input) {
3760
4172
  }
3761
4173
  }
3762
4174
 
3763
- /**
3764
- * Configuration for ZohoAccounts.
3765
- */
3766
-
3767
4175
  function zohoAccountsFactory(factoryConfig) {
3768
4176
  const fetchHandler = zohoRateLimitedFetchHandler();
3769
4177
  const {
@@ -3850,7 +4258,6 @@ function zohoAccountsZohoAccessTokenFactory(config) {
3850
4258
  tokenExpirationBuffer: inputTokenExpirationBuffer
3851
4259
  } = config;
3852
4260
  const tokenExpirationBuffer = inputTokenExpirationBuffer != null ? inputTokenExpirationBuffer : MS_IN_MINUTE;
3853
-
3854
4261
  /**
3855
4262
  * Caches the token internally here until it expires.
3856
4263
  */
@@ -3863,7 +4270,6 @@ function zohoAccountsZohoAccessTokenFactory(config) {
3863
4270
  currentToken = cachedToken;
3864
4271
  }
3865
4272
  }
3866
-
3867
4273
  // check expiration
3868
4274
  if (currentToken != null) {
3869
4275
  const isExpired = new Date().getTime() + tokenExpirationBuffer >= currentToken.expiresAt.getTime();
@@ -3871,7 +4277,6 @@ function zohoAccountsZohoAccessTokenFactory(config) {
3871
4277
  currentToken = null;
3872
4278
  }
3873
4279
  }
3874
-
3875
4280
  // load from source
3876
4281
  if (!currentToken) {
3877
4282
  try {
@@ -3892,27 +4297,9 @@ function zohoAccountsZohoAccessTokenFactory(config) {
3892
4297
  };
3893
4298
  }
3894
4299
 
3895
- // MARK: V1
3896
- /**
3897
- * General Zoho API GET request response sent by the v1 API.
3898
- *
3899
- * @deprecated
3900
- */
3901
-
3902
- /**
3903
- * Similar to the ISO 8601 date-time format, but with milliseconds removed.
3904
- *
3905
- * yyyy-MM-ddTHH:mm:ss±HH:mm
3906
- *
3907
- * Examples:
3908
- * 2019-05-02T11:17:33Z
3909
- * 2019-05-02T11:17:33+00:00
3910
- */
3911
-
3912
4300
  function safeZohoDateTimeString(date) {
3913
4301
  return date != null ? zohoDateTimeString(date) : date;
3914
4302
  }
3915
-
3916
4303
  /**
3917
4304
  * Converts the input date to a Zoho date.
3918
4305
  *