@94ai/nf-confirm 3.3.37 → 3.3.38
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/lib/nf-confirm.cjs.js +2493 -25
- package/lib/nf-confirm.esm-bundler.js +2493 -25
- package/package.json +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent, Vue2 } from "vue-demi";
|
|
2
2
|
import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
|
|
3
|
-
|
|
3
|
+
var typeMap = {
|
|
4
4
|
success: "success",
|
|
5
5
|
info: "info",
|
|
6
6
|
warning: "warning",
|
|
7
7
|
error: "error"
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
var _sfc_main = defineComponent({
|
|
10
10
|
name: "nf-confirm",
|
|
11
|
-
data() {
|
|
11
|
+
data: function data() {
|
|
12
12
|
return {
|
|
13
13
|
visible: false,
|
|
14
14
|
width: 400,
|
|
@@ -27,20 +27,21 @@ const _sfc_main = defineComponent({
|
|
|
27
27
|
};
|
|
28
28
|
},
|
|
29
29
|
computed: {
|
|
30
|
-
typeClass() {
|
|
31
|
-
return this.type && typeMap[this.type] ?
|
|
30
|
+
typeClass: function typeClass() {
|
|
31
|
+
return this.type && typeMap[this.type] ? "el-icon-".concat(typeMap[this.type]) : "";
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
methods: {
|
|
35
|
-
close() {
|
|
35
|
+
close: function close() {
|
|
36
|
+
var _this = this;
|
|
36
37
|
this.loading = false;
|
|
37
38
|
this.visible = false;
|
|
38
|
-
this.$nextTick(()
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
this.$nextTick(function() {
|
|
40
|
+
_this.$destroy(true);
|
|
41
|
+
_this.$el.parentNode.removeChild(_this.$el);
|
|
41
42
|
});
|
|
42
43
|
},
|
|
43
|
-
handleCancel() {
|
|
44
|
+
handleCancel: function handleCancel() {
|
|
44
45
|
if (typeof this.onCancel === "function") {
|
|
45
46
|
this.onCancel(this.close);
|
|
46
47
|
} else {
|
|
@@ -48,7 +49,7 @@ const _sfc_main = defineComponent({
|
|
|
48
49
|
this.callback && this.callback("cancel");
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
|
-
handleConfirm() {
|
|
52
|
+
handleConfirm: function handleConfirm() {
|
|
52
53
|
if (typeof this.onConfirm === "function") {
|
|
53
54
|
this.loading = true;
|
|
54
55
|
this.onConfirm(this.close);
|
|
@@ -63,16 +64,16 @@ var _sfc_render = function render() {
|
|
|
63
64
|
var _vm = this, _c = _vm._self._c;
|
|
64
65
|
_vm._self._setupProxy;
|
|
65
66
|
return _c("div", {
|
|
66
|
-
class: ["nf-confirm", _vm.customClass]
|
|
67
|
+
"class": ["nf-confirm", _vm.customClass]
|
|
67
68
|
}, [_c("el-dialog", {
|
|
68
69
|
attrs: {
|
|
69
70
|
"visible": _vm.visible,
|
|
70
71
|
"showClose": false,
|
|
71
|
-
"width":
|
|
72
|
+
"width": "".concat(_vm.width, "px"),
|
|
72
73
|
"close-on-click-modal": false
|
|
73
74
|
},
|
|
74
75
|
on: {
|
|
75
|
-
"update:visible": function($event) {
|
|
76
|
+
"update:visible": function updateVisible($event) {
|
|
76
77
|
_vm.visible = $event;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
@@ -80,7 +81,7 @@ var _sfc_render = function render() {
|
|
|
80
81
|
staticClass: "nf-confirm__wrapper"
|
|
81
82
|
}, [_vm.type || _vm.iconClass ? _c("i", {
|
|
82
83
|
staticClass: "nf-confirm__icon",
|
|
83
|
-
class: [_vm.typeClass, _vm.iconClass]
|
|
84
|
+
"class": [_vm.typeClass, _vm.iconClass]
|
|
84
85
|
}) : _vm._e(), _c("div", {
|
|
85
86
|
staticClass: "nf-confirm__inner"
|
|
86
87
|
}, [_c("h2", {
|
|
@@ -111,6 +112,2470 @@ var _sfc_render = function render() {
|
|
|
111
112
|
var _sfc_staticRenderFns = [];
|
|
112
113
|
var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
|
|
113
114
|
const NfConfirm = __component__.exports;
|
|
115
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
116
|
+
function getDefaultExportFromCjs(x) {
|
|
117
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
118
|
+
}
|
|
119
|
+
var check = function(it) {
|
|
120
|
+
return it && it.Math === Math && it;
|
|
121
|
+
};
|
|
122
|
+
var global$i = (
|
|
123
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
124
|
+
check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
125
|
+
check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
|
|
126
|
+
function() {
|
|
127
|
+
return this;
|
|
128
|
+
}() || commonjsGlobal || Function("return this")()
|
|
129
|
+
);
|
|
130
|
+
var fails$d = function(exec2) {
|
|
131
|
+
try {
|
|
132
|
+
return !!exec2();
|
|
133
|
+
} catch (error) {
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
var fails$c = fails$d;
|
|
138
|
+
var functionBindNative = !fails$c(function() {
|
|
139
|
+
var test2 = (function() {
|
|
140
|
+
}).bind();
|
|
141
|
+
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
142
|
+
});
|
|
143
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
144
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
145
|
+
var apply$2 = FunctionPrototype$2.apply;
|
|
146
|
+
var call$f = FunctionPrototype$2.call;
|
|
147
|
+
var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$3 ? call$f.bind(apply$2) : function() {
|
|
148
|
+
return call$f.apply(apply$2, arguments);
|
|
149
|
+
});
|
|
150
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
151
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
152
|
+
var call$e = FunctionPrototype$1.call;
|
|
153
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$1.bind.bind(call$e, call$e);
|
|
154
|
+
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function(fn) {
|
|
155
|
+
return function() {
|
|
156
|
+
return call$e.apply(fn, arguments);
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
var uncurryThis$f = functionUncurryThis;
|
|
160
|
+
var toString$6 = uncurryThis$f({}.toString);
|
|
161
|
+
var stringSlice$1 = uncurryThis$f("".slice);
|
|
162
|
+
var classofRaw$2 = function(it) {
|
|
163
|
+
return stringSlice$1(toString$6(it), 8, -1);
|
|
164
|
+
};
|
|
165
|
+
var classofRaw$1 = classofRaw$2;
|
|
166
|
+
var uncurryThis$e = functionUncurryThis;
|
|
167
|
+
var functionUncurryThisClause = function(fn) {
|
|
168
|
+
if (classofRaw$1(fn) === "Function")
|
|
169
|
+
return uncurryThis$e(fn);
|
|
170
|
+
};
|
|
171
|
+
var documentAll$2 = typeof document == "object" && document.all;
|
|
172
|
+
var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
|
|
173
|
+
var documentAll_1 = {
|
|
174
|
+
all: documentAll$2,
|
|
175
|
+
IS_HTMLDDA
|
|
176
|
+
};
|
|
177
|
+
var $documentAll$1 = documentAll_1;
|
|
178
|
+
var documentAll$1 = $documentAll$1.all;
|
|
179
|
+
var isCallable$i = $documentAll$1.IS_HTMLDDA ? function(argument) {
|
|
180
|
+
return typeof argument == "function" || argument === documentAll$1;
|
|
181
|
+
} : function(argument) {
|
|
182
|
+
return typeof argument == "function";
|
|
183
|
+
};
|
|
184
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
185
|
+
var fails$b = fails$d;
|
|
186
|
+
var descriptors = !fails$b(function() {
|
|
187
|
+
return Object.defineProperty({}, 1, {
|
|
188
|
+
get: function() {
|
|
189
|
+
return 7;
|
|
190
|
+
}
|
|
191
|
+
})[1] !== 7;
|
|
192
|
+
});
|
|
193
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
194
|
+
var call$d = Function.prototype.call;
|
|
195
|
+
var functionCall = NATIVE_BIND$1 ? call$d.bind(call$d) : function() {
|
|
196
|
+
return call$d.apply(call$d, arguments);
|
|
197
|
+
};
|
|
198
|
+
var objectPropertyIsEnumerable = {};
|
|
199
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
200
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
201
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({
|
|
202
|
+
1: 2
|
|
203
|
+
}, 1);
|
|
204
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
205
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
206
|
+
return !!descriptor && descriptor.enumerable;
|
|
207
|
+
} : $propertyIsEnumerable;
|
|
208
|
+
var createPropertyDescriptor$5 = function(bitmap, value) {
|
|
209
|
+
return {
|
|
210
|
+
enumerable: !(bitmap & 1),
|
|
211
|
+
configurable: !(bitmap & 2),
|
|
212
|
+
writable: !(bitmap & 4),
|
|
213
|
+
value
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
var uncurryThis$d = functionUncurryThis;
|
|
217
|
+
var fails$a = fails$d;
|
|
218
|
+
var classof$7 = classofRaw$2;
|
|
219
|
+
var $Object$4 = Object;
|
|
220
|
+
var split = uncurryThis$d("".split);
|
|
221
|
+
var indexedObject = fails$a(function() {
|
|
222
|
+
return !$Object$4("z").propertyIsEnumerable(0);
|
|
223
|
+
}) ? function(it) {
|
|
224
|
+
return classof$7(it) === "String" ? split(it, "") : $Object$4(it);
|
|
225
|
+
} : $Object$4;
|
|
226
|
+
var isNullOrUndefined$4 = function(it) {
|
|
227
|
+
return it === null || it === void 0;
|
|
228
|
+
};
|
|
229
|
+
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
230
|
+
var $TypeError$c = TypeError;
|
|
231
|
+
var requireObjectCoercible$3 = function(it) {
|
|
232
|
+
if (isNullOrUndefined$3(it))
|
|
233
|
+
throw new $TypeError$c("Can't call method on " + it);
|
|
234
|
+
return it;
|
|
235
|
+
};
|
|
236
|
+
var IndexedObject = indexedObject;
|
|
237
|
+
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
238
|
+
var toIndexedObject$5 = function(it) {
|
|
239
|
+
return IndexedObject(requireObjectCoercible$2(it));
|
|
240
|
+
};
|
|
241
|
+
var isCallable$h = isCallable$i;
|
|
242
|
+
var $documentAll = documentAll_1;
|
|
243
|
+
var documentAll = $documentAll.all;
|
|
244
|
+
var isObject$9 = $documentAll.IS_HTMLDDA ? function(it) {
|
|
245
|
+
return typeof it == "object" ? it !== null : isCallable$h(it) || it === documentAll;
|
|
246
|
+
} : function(it) {
|
|
247
|
+
return typeof it == "object" ? it !== null : isCallable$h(it);
|
|
248
|
+
};
|
|
249
|
+
var path$3 = {};
|
|
250
|
+
var path$2 = path$3;
|
|
251
|
+
var global$h = global$i;
|
|
252
|
+
var isCallable$g = isCallable$i;
|
|
253
|
+
var aFunction = function(variable) {
|
|
254
|
+
return isCallable$g(variable) ? variable : void 0;
|
|
255
|
+
};
|
|
256
|
+
var getBuiltIn$8 = function(namespace, method) {
|
|
257
|
+
return arguments.length < 2 ? aFunction(path$2[namespace]) || aFunction(global$h[namespace]) : path$2[namespace] && path$2[namespace][method] || global$h[namespace] && global$h[namespace][method];
|
|
258
|
+
};
|
|
259
|
+
var uncurryThis$c = functionUncurryThis;
|
|
260
|
+
var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
|
|
261
|
+
var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
|
|
262
|
+
var global$g = global$i;
|
|
263
|
+
var userAgent$3 = engineUserAgent;
|
|
264
|
+
var process$3 = global$g.process;
|
|
265
|
+
var Deno$1 = global$g.Deno;
|
|
266
|
+
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
267
|
+
var v8 = versions && versions.v8;
|
|
268
|
+
var match, version;
|
|
269
|
+
if (v8) {
|
|
270
|
+
match = v8.split(".");
|
|
271
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
272
|
+
}
|
|
273
|
+
if (!version && userAgent$3) {
|
|
274
|
+
match = userAgent$3.match(/Edge\/(\d+)/);
|
|
275
|
+
if (!match || match[1] >= 74) {
|
|
276
|
+
match = userAgent$3.match(/Chrome\/(\d+)/);
|
|
277
|
+
if (match)
|
|
278
|
+
version = +match[1];
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
var engineV8Version = version;
|
|
282
|
+
var V8_VERSION$1 = engineV8Version;
|
|
283
|
+
var fails$9 = fails$d;
|
|
284
|
+
var global$f = global$i;
|
|
285
|
+
var $String$4 = global$f.String;
|
|
286
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function() {
|
|
287
|
+
var symbol = Symbol("symbol detection");
|
|
288
|
+
return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
289
|
+
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
290
|
+
});
|
|
291
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
292
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
293
|
+
var getBuiltIn$7 = getBuiltIn$8;
|
|
294
|
+
var isCallable$f = isCallable$i;
|
|
295
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
296
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
297
|
+
var $Object$3 = Object;
|
|
298
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
|
|
299
|
+
return typeof it == "symbol";
|
|
300
|
+
} : function(it) {
|
|
301
|
+
var $Symbol = getBuiltIn$7("Symbol");
|
|
302
|
+
return isCallable$f($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
|
|
303
|
+
};
|
|
304
|
+
var $String$3 = String;
|
|
305
|
+
var tryToString$4 = function(argument) {
|
|
306
|
+
try {
|
|
307
|
+
return $String$3(argument);
|
|
308
|
+
} catch (error) {
|
|
309
|
+
return "Object";
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
var isCallable$e = isCallable$i;
|
|
313
|
+
var tryToString$3 = tryToString$4;
|
|
314
|
+
var $TypeError$b = TypeError;
|
|
315
|
+
var aCallable$a = function(argument) {
|
|
316
|
+
if (isCallable$e(argument))
|
|
317
|
+
return argument;
|
|
318
|
+
throw new $TypeError$b(tryToString$3(argument) + " is not a function");
|
|
319
|
+
};
|
|
320
|
+
var aCallable$9 = aCallable$a;
|
|
321
|
+
var isNullOrUndefined$2 = isNullOrUndefined$4;
|
|
322
|
+
var getMethod$3 = function(V, P) {
|
|
323
|
+
var func = V[P];
|
|
324
|
+
return isNullOrUndefined$2(func) ? void 0 : aCallable$9(func);
|
|
325
|
+
};
|
|
326
|
+
var call$c = functionCall;
|
|
327
|
+
var isCallable$d = isCallable$i;
|
|
328
|
+
var isObject$8 = isObject$9;
|
|
329
|
+
var $TypeError$a = TypeError;
|
|
330
|
+
var ordinaryToPrimitive$1 = function(input, pref) {
|
|
331
|
+
var fn, val;
|
|
332
|
+
if (pref === "string" && isCallable$d(fn = input.toString) && !isObject$8(val = call$c(fn, input)))
|
|
333
|
+
return val;
|
|
334
|
+
if (isCallable$d(fn = input.valueOf) && !isObject$8(val = call$c(fn, input)))
|
|
335
|
+
return val;
|
|
336
|
+
if (pref !== "string" && isCallable$d(fn = input.toString) && !isObject$8(val = call$c(fn, input)))
|
|
337
|
+
return val;
|
|
338
|
+
throw new $TypeError$a("Can't convert object to primitive value");
|
|
339
|
+
};
|
|
340
|
+
var shared$3 = { exports: {} };
|
|
341
|
+
var isPure = true;
|
|
342
|
+
var global$e = global$i;
|
|
343
|
+
var defineProperty$2 = Object.defineProperty;
|
|
344
|
+
var defineGlobalProperty$1 = function(key, value) {
|
|
345
|
+
try {
|
|
346
|
+
defineProperty$2(global$e, key, {
|
|
347
|
+
value,
|
|
348
|
+
configurable: true,
|
|
349
|
+
writable: true
|
|
350
|
+
});
|
|
351
|
+
} catch (error) {
|
|
352
|
+
global$e[key] = value;
|
|
353
|
+
}
|
|
354
|
+
return value;
|
|
355
|
+
};
|
|
356
|
+
var global$d = global$i;
|
|
357
|
+
var defineGlobalProperty = defineGlobalProperty$1;
|
|
358
|
+
var SHARED = "__core-js_shared__";
|
|
359
|
+
var store$3 = global$d[SHARED] || defineGlobalProperty(SHARED, {});
|
|
360
|
+
var sharedStore = store$3;
|
|
361
|
+
var store$2 = sharedStore;
|
|
362
|
+
(shared$3.exports = function(key, value) {
|
|
363
|
+
return store$2[key] || (store$2[key] = value !== void 0 ? value : {});
|
|
364
|
+
})("versions", []).push({
|
|
365
|
+
version: "3.33.2",
|
|
366
|
+
mode: "pure",
|
|
367
|
+
copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
|
|
368
|
+
license: "https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",
|
|
369
|
+
source: "https://github.com/zloirock/core-js"
|
|
370
|
+
});
|
|
371
|
+
var sharedExports = shared$3.exports;
|
|
372
|
+
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
373
|
+
var $Object$2 = Object;
|
|
374
|
+
var toObject$2 = function(argument) {
|
|
375
|
+
return $Object$2(requireObjectCoercible$1(argument));
|
|
376
|
+
};
|
|
377
|
+
var uncurryThis$b = functionUncurryThis;
|
|
378
|
+
var toObject$1 = toObject$2;
|
|
379
|
+
var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
|
|
380
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
381
|
+
return hasOwnProperty(toObject$1(it), key);
|
|
382
|
+
};
|
|
383
|
+
var uncurryThis$a = functionUncurryThis;
|
|
384
|
+
var id = 0;
|
|
385
|
+
var postfix = Math.random();
|
|
386
|
+
var toString$5 = uncurryThis$a(1 .toString);
|
|
387
|
+
var uid$2 = function(key) {
|
|
388
|
+
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$5(++id + postfix, 36);
|
|
389
|
+
};
|
|
390
|
+
var global$c = global$i;
|
|
391
|
+
var shared$2 = sharedExports;
|
|
392
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
393
|
+
var uid$1 = uid$2;
|
|
394
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
395
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
396
|
+
var Symbol$1 = global$c.Symbol;
|
|
397
|
+
var WellKnownSymbolsStore = shared$2("wks");
|
|
398
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1["for"] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
399
|
+
var wellKnownSymbol$e = function(name) {
|
|
400
|
+
if (!hasOwn$9(WellKnownSymbolsStore, name)) {
|
|
401
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol("Symbol." + name);
|
|
402
|
+
}
|
|
403
|
+
return WellKnownSymbolsStore[name];
|
|
404
|
+
};
|
|
405
|
+
var call$b = functionCall;
|
|
406
|
+
var isObject$7 = isObject$9;
|
|
407
|
+
var isSymbol$1 = isSymbol$2;
|
|
408
|
+
var getMethod$2 = getMethod$3;
|
|
409
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
410
|
+
var wellKnownSymbol$d = wellKnownSymbol$e;
|
|
411
|
+
var $TypeError$9 = TypeError;
|
|
412
|
+
var TO_PRIMITIVE = wellKnownSymbol$d("toPrimitive");
|
|
413
|
+
var toPrimitive$1 = function(input, pref) {
|
|
414
|
+
if (!isObject$7(input) || isSymbol$1(input))
|
|
415
|
+
return input;
|
|
416
|
+
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
417
|
+
var result;
|
|
418
|
+
if (exoticToPrim) {
|
|
419
|
+
if (pref === void 0)
|
|
420
|
+
pref = "default";
|
|
421
|
+
result = call$b(exoticToPrim, input, pref);
|
|
422
|
+
if (!isObject$7(result) || isSymbol$1(result))
|
|
423
|
+
return result;
|
|
424
|
+
throw new $TypeError$9("Can't convert object to primitive value");
|
|
425
|
+
}
|
|
426
|
+
if (pref === void 0)
|
|
427
|
+
pref = "number";
|
|
428
|
+
return ordinaryToPrimitive(input, pref);
|
|
429
|
+
};
|
|
430
|
+
var toPrimitive = toPrimitive$1;
|
|
431
|
+
var isSymbol = isSymbol$2;
|
|
432
|
+
var toPropertyKey$2 = function(argument) {
|
|
433
|
+
var key = toPrimitive(argument, "string");
|
|
434
|
+
return isSymbol(key) ? key : key + "";
|
|
435
|
+
};
|
|
436
|
+
var global$b = global$i;
|
|
437
|
+
var isObject$6 = isObject$9;
|
|
438
|
+
var document$3 = global$b.document;
|
|
439
|
+
var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
|
|
440
|
+
var documentCreateElement$1 = function(it) {
|
|
441
|
+
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
442
|
+
};
|
|
443
|
+
var DESCRIPTORS$7 = descriptors;
|
|
444
|
+
var fails$8 = fails$d;
|
|
445
|
+
var createElement$1 = documentCreateElement$1;
|
|
446
|
+
var ie8DomDefine = !DESCRIPTORS$7 && !fails$8(function() {
|
|
447
|
+
return Object.defineProperty(createElement$1("div"), "a", {
|
|
448
|
+
get: function() {
|
|
449
|
+
return 7;
|
|
450
|
+
}
|
|
451
|
+
}).a !== 7;
|
|
452
|
+
});
|
|
453
|
+
var DESCRIPTORS$6 = descriptors;
|
|
454
|
+
var call$a = functionCall;
|
|
455
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
456
|
+
var createPropertyDescriptor$4 = createPropertyDescriptor$5;
|
|
457
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
458
|
+
var toPropertyKey$1 = toPropertyKey$2;
|
|
459
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
460
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
461
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
462
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
463
|
+
O = toIndexedObject$4(O);
|
|
464
|
+
P = toPropertyKey$1(P);
|
|
465
|
+
if (IE8_DOM_DEFINE$1)
|
|
466
|
+
try {
|
|
467
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
468
|
+
} catch (error) {
|
|
469
|
+
}
|
|
470
|
+
if (hasOwn$8(O, P))
|
|
471
|
+
return createPropertyDescriptor$4(!call$a(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
472
|
+
};
|
|
473
|
+
var fails$7 = fails$d;
|
|
474
|
+
var isCallable$c = isCallable$i;
|
|
475
|
+
var replacement = /#|\.prototype\./;
|
|
476
|
+
var isForced$2 = function(feature, detection) {
|
|
477
|
+
var value = data2[normalize(feature)];
|
|
478
|
+
return value === POLYFILL ? true : value === NATIVE ? false : isCallable$c(detection) ? fails$7(detection) : !!detection;
|
|
479
|
+
};
|
|
480
|
+
var normalize = isForced$2.normalize = function(string) {
|
|
481
|
+
return String(string).replace(replacement, ".").toLowerCase();
|
|
482
|
+
};
|
|
483
|
+
var data2 = isForced$2.data = {};
|
|
484
|
+
var NATIVE = isForced$2.NATIVE = "N";
|
|
485
|
+
var POLYFILL = isForced$2.POLYFILL = "P";
|
|
486
|
+
var isForced_1 = isForced$2;
|
|
487
|
+
var uncurryThis$9 = functionUncurryThisClause;
|
|
488
|
+
var aCallable$8 = aCallable$a;
|
|
489
|
+
var NATIVE_BIND = functionBindNative;
|
|
490
|
+
var bind$5 = uncurryThis$9(uncurryThis$9.bind);
|
|
491
|
+
var functionBindContext = function(fn, that) {
|
|
492
|
+
aCallable$8(fn);
|
|
493
|
+
return that === void 0 ? fn : NATIVE_BIND ? bind$5(fn, that) : function() {
|
|
494
|
+
return fn.apply(that, arguments);
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
var objectDefineProperty = {};
|
|
498
|
+
var DESCRIPTORS$5 = descriptors;
|
|
499
|
+
var fails$6 = fails$d;
|
|
500
|
+
var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$6(function() {
|
|
501
|
+
return Object.defineProperty(function() {
|
|
502
|
+
}, "prototype", {
|
|
503
|
+
value: 42,
|
|
504
|
+
writable: false
|
|
505
|
+
}).prototype !== 42;
|
|
506
|
+
});
|
|
507
|
+
var isObject$5 = isObject$9;
|
|
508
|
+
var $String$2 = String;
|
|
509
|
+
var $TypeError$8 = TypeError;
|
|
510
|
+
var anObject$a = function(argument) {
|
|
511
|
+
if (isObject$5(argument))
|
|
512
|
+
return argument;
|
|
513
|
+
throw new $TypeError$8($String$2(argument) + " is not an object");
|
|
514
|
+
};
|
|
515
|
+
var DESCRIPTORS$4 = descriptors;
|
|
516
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
517
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
518
|
+
var anObject$9 = anObject$a;
|
|
519
|
+
var toPropertyKey = toPropertyKey$2;
|
|
520
|
+
var $TypeError$7 = TypeError;
|
|
521
|
+
var $defineProperty = Object.defineProperty;
|
|
522
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
523
|
+
var ENUMERABLE = "enumerable";
|
|
524
|
+
var CONFIGURABLE$1 = "configurable";
|
|
525
|
+
var WRITABLE = "writable";
|
|
526
|
+
objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
527
|
+
anObject$9(O);
|
|
528
|
+
P = toPropertyKey(P);
|
|
529
|
+
anObject$9(Attributes);
|
|
530
|
+
if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
531
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
532
|
+
if (current && current[WRITABLE]) {
|
|
533
|
+
O[P] = Attributes.value;
|
|
534
|
+
Attributes = {
|
|
535
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
536
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
537
|
+
writable: false
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
return $defineProperty(O, P, Attributes);
|
|
542
|
+
} : $defineProperty : function defineProperty2(O, P, Attributes) {
|
|
543
|
+
anObject$9(O);
|
|
544
|
+
P = toPropertyKey(P);
|
|
545
|
+
anObject$9(Attributes);
|
|
546
|
+
if (IE8_DOM_DEFINE)
|
|
547
|
+
try {
|
|
548
|
+
return $defineProperty(O, P, Attributes);
|
|
549
|
+
} catch (error) {
|
|
550
|
+
}
|
|
551
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
552
|
+
throw new $TypeError$7("Accessors not supported");
|
|
553
|
+
if ("value" in Attributes)
|
|
554
|
+
O[P] = Attributes.value;
|
|
555
|
+
return O;
|
|
556
|
+
};
|
|
557
|
+
var DESCRIPTORS$3 = descriptors;
|
|
558
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
559
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
560
|
+
var createNonEnumerableProperty$8 = DESCRIPTORS$3 ? function(object, key, value) {
|
|
561
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$3(1, value));
|
|
562
|
+
} : function(object, key, value) {
|
|
563
|
+
object[key] = value;
|
|
564
|
+
return object;
|
|
565
|
+
};
|
|
566
|
+
var global$a = global$i;
|
|
567
|
+
var apply$1 = functionApply;
|
|
568
|
+
var uncurryThis$8 = functionUncurryThisClause;
|
|
569
|
+
var isCallable$b = isCallable$i;
|
|
570
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
571
|
+
var isForced$1 = isForced_1;
|
|
572
|
+
var path$1 = path$3;
|
|
573
|
+
var bind$4 = functionBindContext;
|
|
574
|
+
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
575
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
576
|
+
var wrapConstructor = function(NativeConstructor) {
|
|
577
|
+
var Wrapper = function(a, b, c) {
|
|
578
|
+
if (this instanceof Wrapper) {
|
|
579
|
+
switch (arguments.length) {
|
|
580
|
+
case 0:
|
|
581
|
+
return new NativeConstructor();
|
|
582
|
+
case 1:
|
|
583
|
+
return new NativeConstructor(a);
|
|
584
|
+
case 2:
|
|
585
|
+
return new NativeConstructor(a, b);
|
|
586
|
+
}
|
|
587
|
+
return new NativeConstructor(a, b, c);
|
|
588
|
+
}
|
|
589
|
+
return apply$1(NativeConstructor, this, arguments);
|
|
590
|
+
};
|
|
591
|
+
Wrapper.prototype = NativeConstructor.prototype;
|
|
592
|
+
return Wrapper;
|
|
593
|
+
};
|
|
594
|
+
var _export = function(options, source) {
|
|
595
|
+
var TARGET = options.target;
|
|
596
|
+
var GLOBAL = options.global;
|
|
597
|
+
var STATIC = options.stat;
|
|
598
|
+
var PROTO = options.proto;
|
|
599
|
+
var nativeSource = GLOBAL ? global$a : STATIC ? global$a[TARGET] : (global$a[TARGET] || {}).prototype;
|
|
600
|
+
var target = GLOBAL ? path$1 : path$1[TARGET] || createNonEnumerableProperty$7(path$1, TARGET, {})[TARGET];
|
|
601
|
+
var targetPrototype = target.prototype;
|
|
602
|
+
var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
|
|
603
|
+
var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
|
|
604
|
+
for (key in source) {
|
|
605
|
+
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
|
|
606
|
+
USE_NATIVE = !FORCED && nativeSource && hasOwn$7(nativeSource, key);
|
|
607
|
+
targetProperty = target[key];
|
|
608
|
+
if (USE_NATIVE)
|
|
609
|
+
if (options.dontCallGetSet) {
|
|
610
|
+
descriptor = getOwnPropertyDescriptor$1(nativeSource, key);
|
|
611
|
+
nativeProperty = descriptor && descriptor.value;
|
|
612
|
+
} else
|
|
613
|
+
nativeProperty = nativeSource[key];
|
|
614
|
+
sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
|
|
615
|
+
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
|
|
616
|
+
continue;
|
|
617
|
+
if (options.bind && USE_NATIVE)
|
|
618
|
+
resultProperty = bind$4(sourceProperty, global$a);
|
|
619
|
+
else if (options.wrap && USE_NATIVE)
|
|
620
|
+
resultProperty = wrapConstructor(sourceProperty);
|
|
621
|
+
else if (PROTO && isCallable$b(sourceProperty))
|
|
622
|
+
resultProperty = uncurryThis$8(sourceProperty);
|
|
623
|
+
else
|
|
624
|
+
resultProperty = sourceProperty;
|
|
625
|
+
if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
|
|
626
|
+
createNonEnumerableProperty$7(resultProperty, "sham", true);
|
|
627
|
+
}
|
|
628
|
+
createNonEnumerableProperty$7(target, key, resultProperty);
|
|
629
|
+
if (PROTO) {
|
|
630
|
+
VIRTUAL_PROTOTYPE = TARGET + "Prototype";
|
|
631
|
+
if (!hasOwn$7(path$1, VIRTUAL_PROTOTYPE)) {
|
|
632
|
+
createNonEnumerableProperty$7(path$1, VIRTUAL_PROTOTYPE, {});
|
|
633
|
+
}
|
|
634
|
+
createNonEnumerableProperty$7(path$1[VIRTUAL_PROTOTYPE], key, sourceProperty);
|
|
635
|
+
if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {
|
|
636
|
+
createNonEnumerableProperty$7(targetPrototype, key, sourceProperty);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
var shared$1 = sharedExports;
|
|
642
|
+
var uid = uid$2;
|
|
643
|
+
var keys = shared$1("keys");
|
|
644
|
+
var sharedKey$3 = function(key) {
|
|
645
|
+
return keys[key] || (keys[key] = uid(key));
|
|
646
|
+
};
|
|
647
|
+
var fails$5 = fails$d;
|
|
648
|
+
var correctPrototypeGetter = !fails$5(function() {
|
|
649
|
+
function F() {
|
|
650
|
+
}
|
|
651
|
+
F.prototype.constructor = null;
|
|
652
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
653
|
+
});
|
|
654
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
655
|
+
var isCallable$a = isCallable$i;
|
|
656
|
+
var toObject = toObject$2;
|
|
657
|
+
var sharedKey$2 = sharedKey$3;
|
|
658
|
+
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
659
|
+
var IE_PROTO$1 = sharedKey$2("IE_PROTO");
|
|
660
|
+
var $Object$1 = Object;
|
|
661
|
+
var ObjectPrototype = $Object$1.prototype;
|
|
662
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function(O) {
|
|
663
|
+
var object = toObject(O);
|
|
664
|
+
if (hasOwn$6(object, IE_PROTO$1))
|
|
665
|
+
return object[IE_PROTO$1];
|
|
666
|
+
var constructor = object.constructor;
|
|
667
|
+
if (isCallable$a(constructor) && object instanceof constructor) {
|
|
668
|
+
return constructor.prototype;
|
|
669
|
+
}
|
|
670
|
+
return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
671
|
+
};
|
|
672
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
673
|
+
var aCallable$7 = aCallable$a;
|
|
674
|
+
var functionUncurryThisAccessor = function(object, key, method) {
|
|
675
|
+
try {
|
|
676
|
+
return uncurryThis$7(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
677
|
+
} catch (error) {
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
var isCallable$9 = isCallable$i;
|
|
681
|
+
var $String$1 = String;
|
|
682
|
+
var $TypeError$6 = TypeError;
|
|
683
|
+
var aPossiblePrototype$1 = function(argument) {
|
|
684
|
+
if (typeof argument == "object" || isCallable$9(argument))
|
|
685
|
+
return argument;
|
|
686
|
+
throw new $TypeError$6("Can't set " + $String$1(argument) + " as a prototype");
|
|
687
|
+
};
|
|
688
|
+
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
689
|
+
var anObject$8 = anObject$a;
|
|
690
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
|
691
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
692
|
+
var CORRECT_SETTER = false;
|
|
693
|
+
var test2 = {};
|
|
694
|
+
var setter;
|
|
695
|
+
try {
|
|
696
|
+
setter = uncurryThisAccessor(Object.prototype, "__proto__", "set");
|
|
697
|
+
setter(test2, []);
|
|
698
|
+
CORRECT_SETTER = test2 instanceof Array;
|
|
699
|
+
} catch (error) {
|
|
700
|
+
}
|
|
701
|
+
return function setPrototypeOf2(O, proto) {
|
|
702
|
+
anObject$8(O);
|
|
703
|
+
aPossiblePrototype(proto);
|
|
704
|
+
if (CORRECT_SETTER)
|
|
705
|
+
setter(O, proto);
|
|
706
|
+
else
|
|
707
|
+
O.__proto__ = proto;
|
|
708
|
+
return O;
|
|
709
|
+
};
|
|
710
|
+
}() : void 0);
|
|
711
|
+
var objectGetOwnPropertyNames = {};
|
|
712
|
+
var ceil = Math.ceil;
|
|
713
|
+
var floor = Math.floor;
|
|
714
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
715
|
+
var n = +x;
|
|
716
|
+
return (n > 0 ? floor : ceil)(n);
|
|
717
|
+
};
|
|
718
|
+
var trunc2 = mathTrunc;
|
|
719
|
+
var toIntegerOrInfinity$3 = function(argument) {
|
|
720
|
+
var number = +argument;
|
|
721
|
+
return number !== number || number === 0 ? 0 : trunc2(number);
|
|
722
|
+
};
|
|
723
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
|
|
724
|
+
var max = Math.max;
|
|
725
|
+
var min$1 = Math.min;
|
|
726
|
+
var toAbsoluteIndex$1 = function(index, length) {
|
|
727
|
+
var integer = toIntegerOrInfinity$2(index);
|
|
728
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
729
|
+
};
|
|
730
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
|
|
731
|
+
var min = Math.min;
|
|
732
|
+
var toLength$1 = function(argument) {
|
|
733
|
+
return argument > 0 ? min(toIntegerOrInfinity$1(argument), 9007199254740991) : 0;
|
|
734
|
+
};
|
|
735
|
+
var toLength = toLength$1;
|
|
736
|
+
var lengthOfArrayLike$2 = function(obj) {
|
|
737
|
+
return toLength(obj.length);
|
|
738
|
+
};
|
|
739
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
740
|
+
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
741
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
742
|
+
var createMethod$1 = function(IS_INCLUDES) {
|
|
743
|
+
return function($this, el, fromIndex) {
|
|
744
|
+
var O = toIndexedObject$3($this);
|
|
745
|
+
var length = lengthOfArrayLike$1(O);
|
|
746
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
747
|
+
var value;
|
|
748
|
+
if (IS_INCLUDES && el !== el)
|
|
749
|
+
while (length > index) {
|
|
750
|
+
value = O[index++];
|
|
751
|
+
if (value !== value)
|
|
752
|
+
return true;
|
|
753
|
+
}
|
|
754
|
+
else
|
|
755
|
+
for (; length > index; index++) {
|
|
756
|
+
if ((IS_INCLUDES || index in O) && O[index] === el)
|
|
757
|
+
return IS_INCLUDES || index || 0;
|
|
758
|
+
}
|
|
759
|
+
return !IS_INCLUDES && -1;
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
var arrayIncludes = {
|
|
763
|
+
// `Array.prototype.includes` method
|
|
764
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
765
|
+
includes: createMethod$1(true),
|
|
766
|
+
// `Array.prototype.indexOf` method
|
|
767
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
768
|
+
indexOf: createMethod$1(false)
|
|
769
|
+
};
|
|
770
|
+
var hiddenKeys$4 = {};
|
|
771
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
772
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
773
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
774
|
+
var indexOf = arrayIncludes.indexOf;
|
|
775
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
776
|
+
var push$1 = uncurryThis$6([].push);
|
|
777
|
+
var objectKeysInternal = function(object, names) {
|
|
778
|
+
var O = toIndexedObject$2(object);
|
|
779
|
+
var i = 0;
|
|
780
|
+
var result = [];
|
|
781
|
+
var key;
|
|
782
|
+
for (key in O)
|
|
783
|
+
!hasOwn$5(hiddenKeys$3, key) && hasOwn$5(O, key) && push$1(result, key);
|
|
784
|
+
while (names.length > i)
|
|
785
|
+
if (hasOwn$5(O, key = names[i++])) {
|
|
786
|
+
~indexOf(result, key) || push$1(result, key);
|
|
787
|
+
}
|
|
788
|
+
return result;
|
|
789
|
+
};
|
|
790
|
+
var enumBugKeys$3 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
|
|
791
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
792
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
793
|
+
var hiddenKeys$2 = enumBugKeys$2.concat("length", "prototype");
|
|
794
|
+
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
795
|
+
return internalObjectKeys$1(O, hiddenKeys$2);
|
|
796
|
+
};
|
|
797
|
+
var objectGetOwnPropertySymbols = {};
|
|
798
|
+
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
799
|
+
var getBuiltIn$6 = getBuiltIn$8;
|
|
800
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
801
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
802
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
803
|
+
var anObject$7 = anObject$a;
|
|
804
|
+
var concat = uncurryThis$5([].concat);
|
|
805
|
+
var ownKeys$1 = getBuiltIn$6("Reflect", "ownKeys") || function ownKeys(it) {
|
|
806
|
+
var keys3 = getOwnPropertyNamesModule.f(anObject$7(it));
|
|
807
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
808
|
+
return getOwnPropertySymbols ? concat(keys3, getOwnPropertySymbols(it)) : keys3;
|
|
809
|
+
};
|
|
810
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
811
|
+
var ownKeys2 = ownKeys$1;
|
|
812
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
813
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
814
|
+
var copyConstructorProperties$1 = function(target, source, exceptions) {
|
|
815
|
+
var keys3 = ownKeys2(source);
|
|
816
|
+
var defineProperty4 = definePropertyModule$1.f;
|
|
817
|
+
var getOwnPropertyDescriptor3 = getOwnPropertyDescriptorModule.f;
|
|
818
|
+
for (var i = 0; i < keys3.length; i++) {
|
|
819
|
+
var key = keys3[i];
|
|
820
|
+
if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
|
|
821
|
+
defineProperty4(target, key, getOwnPropertyDescriptor3(source, key));
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
var objectDefineProperties = {};
|
|
826
|
+
var internalObjectKeys = objectKeysInternal;
|
|
827
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
828
|
+
var objectKeys$1 = Object.keys || function keys2(O) {
|
|
829
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
830
|
+
};
|
|
831
|
+
var DESCRIPTORS$2 = descriptors;
|
|
832
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
833
|
+
var definePropertyModule = objectDefineProperty;
|
|
834
|
+
var anObject$6 = anObject$a;
|
|
835
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
836
|
+
var objectKeys = objectKeys$1;
|
|
837
|
+
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
838
|
+
anObject$6(O);
|
|
839
|
+
var props = toIndexedObject$1(Properties);
|
|
840
|
+
var keys3 = objectKeys(Properties);
|
|
841
|
+
var length = keys3.length;
|
|
842
|
+
var index = 0;
|
|
843
|
+
var key;
|
|
844
|
+
while (length > index)
|
|
845
|
+
definePropertyModule.f(O, key = keys3[index++], props[key]);
|
|
846
|
+
return O;
|
|
847
|
+
};
|
|
848
|
+
var getBuiltIn$5 = getBuiltIn$8;
|
|
849
|
+
var html$2 = getBuiltIn$5("document", "documentElement");
|
|
850
|
+
var anObject$5 = anObject$a;
|
|
851
|
+
var definePropertiesModule = objectDefineProperties;
|
|
852
|
+
var enumBugKeys = enumBugKeys$3;
|
|
853
|
+
var hiddenKeys$1 = hiddenKeys$4;
|
|
854
|
+
var html$1 = html$2;
|
|
855
|
+
var documentCreateElement = documentCreateElement$1;
|
|
856
|
+
var sharedKey$1 = sharedKey$3;
|
|
857
|
+
var GT = ">";
|
|
858
|
+
var LT = "<";
|
|
859
|
+
var PROTOTYPE = "prototype";
|
|
860
|
+
var SCRIPT = "script";
|
|
861
|
+
var IE_PROTO = sharedKey$1("IE_PROTO");
|
|
862
|
+
var EmptyConstructor = function() {
|
|
863
|
+
};
|
|
864
|
+
var scriptTag = function(content) {
|
|
865
|
+
return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT;
|
|
866
|
+
};
|
|
867
|
+
var NullProtoObjectViaActiveX = function(activeXDocument2) {
|
|
868
|
+
activeXDocument2.write(scriptTag(""));
|
|
869
|
+
activeXDocument2.close();
|
|
870
|
+
var temp = activeXDocument2.parentWindow.Object;
|
|
871
|
+
activeXDocument2 = null;
|
|
872
|
+
return temp;
|
|
873
|
+
};
|
|
874
|
+
var NullProtoObjectViaIFrame = function() {
|
|
875
|
+
var iframe = documentCreateElement("iframe");
|
|
876
|
+
var JS = "java" + SCRIPT + ":";
|
|
877
|
+
var iframeDocument;
|
|
878
|
+
iframe.style.display = "none";
|
|
879
|
+
html$1.appendChild(iframe);
|
|
880
|
+
iframe.src = String(JS);
|
|
881
|
+
iframeDocument = iframe.contentWindow.document;
|
|
882
|
+
iframeDocument.open();
|
|
883
|
+
iframeDocument.write(scriptTag("document.F=Object"));
|
|
884
|
+
iframeDocument.close();
|
|
885
|
+
return iframeDocument.F;
|
|
886
|
+
};
|
|
887
|
+
var activeXDocument;
|
|
888
|
+
var NullProtoObject = function() {
|
|
889
|
+
try {
|
|
890
|
+
activeXDocument = new ActiveXObject("htmlfile");
|
|
891
|
+
} catch (error) {
|
|
892
|
+
}
|
|
893
|
+
NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
|
|
894
|
+
var length = enumBugKeys.length;
|
|
895
|
+
while (length--)
|
|
896
|
+
delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
897
|
+
return NullProtoObject();
|
|
898
|
+
};
|
|
899
|
+
hiddenKeys$1[IE_PROTO] = true;
|
|
900
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
901
|
+
var result;
|
|
902
|
+
if (O !== null) {
|
|
903
|
+
EmptyConstructor[PROTOTYPE] = anObject$5(O);
|
|
904
|
+
result = new EmptyConstructor();
|
|
905
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
906
|
+
result[IE_PROTO] = O;
|
|
907
|
+
} else
|
|
908
|
+
result = NullProtoObject();
|
|
909
|
+
return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);
|
|
910
|
+
};
|
|
911
|
+
var isObject$4 = isObject$9;
|
|
912
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
913
|
+
var installErrorCause$1 = function(O, options) {
|
|
914
|
+
if (isObject$4(options) && "cause" in options) {
|
|
915
|
+
createNonEnumerableProperty$6(O, "cause", options.cause);
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
919
|
+
var $Error$1 = Error;
|
|
920
|
+
var replace = uncurryThis$4("".replace);
|
|
921
|
+
var TEST = function(arg) {
|
|
922
|
+
return String(new $Error$1(arg).stack);
|
|
923
|
+
}("zxcasd");
|
|
924
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
925
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
926
|
+
var errorStackClear = function(stack, dropEntries) {
|
|
927
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == "string" && !$Error$1.prepareStackTrace) {
|
|
928
|
+
while (dropEntries--)
|
|
929
|
+
stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, "");
|
|
930
|
+
}
|
|
931
|
+
return stack;
|
|
932
|
+
};
|
|
933
|
+
var fails$4 = fails$d;
|
|
934
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
935
|
+
var errorStackInstallable = !fails$4(function() {
|
|
936
|
+
var error = new Error("a");
|
|
937
|
+
if (!("stack" in error))
|
|
938
|
+
return true;
|
|
939
|
+
Object.defineProperty(error, "stack", createPropertyDescriptor$2(1, 7));
|
|
940
|
+
return error.stack !== 7;
|
|
941
|
+
});
|
|
942
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
943
|
+
var clearErrorStack = errorStackClear;
|
|
944
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
945
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
946
|
+
var errorStackInstall = function(error, C, stack, dropEntries) {
|
|
947
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
948
|
+
if (captureStackTrace)
|
|
949
|
+
captureStackTrace(error, C);
|
|
950
|
+
else
|
|
951
|
+
createNonEnumerableProperty$5(error, "stack", clearErrorStack(stack, dropEntries));
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
var iterators = {};
|
|
955
|
+
var wellKnownSymbol$c = wellKnownSymbol$e;
|
|
956
|
+
var Iterators$5 = iterators;
|
|
957
|
+
var ITERATOR$4 = wellKnownSymbol$c("iterator");
|
|
958
|
+
var ArrayPrototype = Array.prototype;
|
|
959
|
+
var isArrayIteratorMethod$1 = function(it) {
|
|
960
|
+
return it !== void 0 && (Iterators$5.Array === it || ArrayPrototype[ITERATOR$4] === it);
|
|
961
|
+
};
|
|
962
|
+
var wellKnownSymbol$b = wellKnownSymbol$e;
|
|
963
|
+
var TO_STRING_TAG$4 = wellKnownSymbol$b("toStringTag");
|
|
964
|
+
var test = {};
|
|
965
|
+
test[TO_STRING_TAG$4] = "z";
|
|
966
|
+
var toStringTagSupport = String(test) === "[object z]";
|
|
967
|
+
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
968
|
+
var isCallable$8 = isCallable$i;
|
|
969
|
+
var classofRaw = classofRaw$2;
|
|
970
|
+
var wellKnownSymbol$a = wellKnownSymbol$e;
|
|
971
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$a("toStringTag");
|
|
972
|
+
var $Object = Object;
|
|
973
|
+
var CORRECT_ARGUMENTS = classofRaw(function() {
|
|
974
|
+
return arguments;
|
|
975
|
+
}()) === "Arguments";
|
|
976
|
+
var tryGet = function(it, key) {
|
|
977
|
+
try {
|
|
978
|
+
return it[key];
|
|
979
|
+
} catch (error) {
|
|
980
|
+
}
|
|
981
|
+
};
|
|
982
|
+
var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function(it) {
|
|
983
|
+
var O, tag, result;
|
|
984
|
+
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$3)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === "Object" && isCallable$8(O.callee) ? "Arguments" : result;
|
|
985
|
+
};
|
|
986
|
+
var classof$5 = classof$6;
|
|
987
|
+
var getMethod$1 = getMethod$3;
|
|
988
|
+
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
989
|
+
var Iterators$4 = iterators;
|
|
990
|
+
var wellKnownSymbol$9 = wellKnownSymbol$e;
|
|
991
|
+
var ITERATOR$3 = wellKnownSymbol$9("iterator");
|
|
992
|
+
var getIteratorMethod$2 = function(it) {
|
|
993
|
+
if (!isNullOrUndefined$1(it))
|
|
994
|
+
return getMethod$1(it, ITERATOR$3) || getMethod$1(it, "@@iterator") || Iterators$4[classof$5(it)];
|
|
995
|
+
};
|
|
996
|
+
var call$9 = functionCall;
|
|
997
|
+
var aCallable$6 = aCallable$a;
|
|
998
|
+
var anObject$4 = anObject$a;
|
|
999
|
+
var tryToString$2 = tryToString$4;
|
|
1000
|
+
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1001
|
+
var $TypeError$5 = TypeError;
|
|
1002
|
+
var getIterator$1 = function(argument, usingIterator) {
|
|
1003
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1004
|
+
if (aCallable$6(iteratorMethod))
|
|
1005
|
+
return anObject$4(call$9(iteratorMethod, argument));
|
|
1006
|
+
throw new $TypeError$5(tryToString$2(argument) + " is not iterable");
|
|
1007
|
+
};
|
|
1008
|
+
var call$8 = functionCall;
|
|
1009
|
+
var anObject$3 = anObject$a;
|
|
1010
|
+
var getMethod = getMethod$3;
|
|
1011
|
+
var iteratorClose$1 = function(iterator, kind, value) {
|
|
1012
|
+
var innerResult, innerError;
|
|
1013
|
+
anObject$3(iterator);
|
|
1014
|
+
try {
|
|
1015
|
+
innerResult = getMethod(iterator, "return");
|
|
1016
|
+
if (!innerResult) {
|
|
1017
|
+
if (kind === "throw")
|
|
1018
|
+
throw value;
|
|
1019
|
+
return value;
|
|
1020
|
+
}
|
|
1021
|
+
innerResult = call$8(innerResult, iterator);
|
|
1022
|
+
} catch (error) {
|
|
1023
|
+
innerError = true;
|
|
1024
|
+
innerResult = error;
|
|
1025
|
+
}
|
|
1026
|
+
if (kind === "throw")
|
|
1027
|
+
throw value;
|
|
1028
|
+
if (innerError)
|
|
1029
|
+
throw innerResult;
|
|
1030
|
+
anObject$3(innerResult);
|
|
1031
|
+
return value;
|
|
1032
|
+
};
|
|
1033
|
+
var bind$3 = functionBindContext;
|
|
1034
|
+
var call$7 = functionCall;
|
|
1035
|
+
var anObject$2 = anObject$a;
|
|
1036
|
+
var tryToString$1 = tryToString$4;
|
|
1037
|
+
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1038
|
+
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1039
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1040
|
+
var getIterator = getIterator$1;
|
|
1041
|
+
var getIteratorMethod = getIteratorMethod$2;
|
|
1042
|
+
var iteratorClose = iteratorClose$1;
|
|
1043
|
+
var $TypeError$4 = TypeError;
|
|
1044
|
+
var Result = function(stopped, result) {
|
|
1045
|
+
this.stopped = stopped;
|
|
1046
|
+
this.result = result;
|
|
1047
|
+
};
|
|
1048
|
+
var ResultPrototype = Result.prototype;
|
|
1049
|
+
var iterate$5 = function(iterable, unboundFunction, options) {
|
|
1050
|
+
var that = options && options.that;
|
|
1051
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1052
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1053
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1054
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1055
|
+
var fn = bind$3(unboundFunction, that);
|
|
1056
|
+
var iterator, iterFn, index, length, result, next2, step;
|
|
1057
|
+
var stop = function(condition) {
|
|
1058
|
+
if (iterator)
|
|
1059
|
+
iteratorClose(iterator, "normal", condition);
|
|
1060
|
+
return new Result(true, condition);
|
|
1061
|
+
};
|
|
1062
|
+
var callFn = function(value) {
|
|
1063
|
+
if (AS_ENTRIES) {
|
|
1064
|
+
anObject$2(value);
|
|
1065
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1066
|
+
}
|
|
1067
|
+
return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1068
|
+
};
|
|
1069
|
+
if (IS_RECORD) {
|
|
1070
|
+
iterator = iterable.iterator;
|
|
1071
|
+
} else if (IS_ITERATOR) {
|
|
1072
|
+
iterator = iterable;
|
|
1073
|
+
} else {
|
|
1074
|
+
iterFn = getIteratorMethod(iterable);
|
|
1075
|
+
if (!iterFn)
|
|
1076
|
+
throw new $TypeError$4(tryToString$1(iterable) + " is not iterable");
|
|
1077
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
1078
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1079
|
+
result = callFn(iterable[index]);
|
|
1080
|
+
if (result && isPrototypeOf$2(ResultPrototype, result))
|
|
1081
|
+
return result;
|
|
1082
|
+
}
|
|
1083
|
+
return new Result(false);
|
|
1084
|
+
}
|
|
1085
|
+
iterator = getIterator(iterable, iterFn);
|
|
1086
|
+
}
|
|
1087
|
+
next2 = IS_RECORD ? iterable.next : iterator.next;
|
|
1088
|
+
while (!(step = call$7(next2, iterator)).done) {
|
|
1089
|
+
try {
|
|
1090
|
+
result = callFn(step.value);
|
|
1091
|
+
} catch (error) {
|
|
1092
|
+
iteratorClose(iterator, "throw", error);
|
|
1093
|
+
}
|
|
1094
|
+
if (typeof result == "object" && result && isPrototypeOf$2(ResultPrototype, result))
|
|
1095
|
+
return result;
|
|
1096
|
+
}
|
|
1097
|
+
return new Result(false);
|
|
1098
|
+
};
|
|
1099
|
+
var classof$4 = classof$6;
|
|
1100
|
+
var $String = String;
|
|
1101
|
+
var toString$4 = function(argument) {
|
|
1102
|
+
if (classof$4(argument) === "Symbol")
|
|
1103
|
+
throw new TypeError("Cannot convert a Symbol value to a string");
|
|
1104
|
+
return $String(argument);
|
|
1105
|
+
};
|
|
1106
|
+
var toString$3 = toString$4;
|
|
1107
|
+
var normalizeStringArgument$1 = function(argument, $default) {
|
|
1108
|
+
return argument === void 0 ? arguments.length < 2 ? "" : $default : toString$3(argument);
|
|
1109
|
+
};
|
|
1110
|
+
var $$c = _export;
|
|
1111
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1112
|
+
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
1113
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
1114
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1115
|
+
var create$2 = objectCreate;
|
|
1116
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
1117
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
1118
|
+
var installErrorCause = installErrorCause$1;
|
|
1119
|
+
var installErrorStack = errorStackInstall;
|
|
1120
|
+
var iterate$4 = iterate$5;
|
|
1121
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
1122
|
+
var wellKnownSymbol$8 = wellKnownSymbol$e;
|
|
1123
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$8("toStringTag");
|
|
1124
|
+
var $Error = Error;
|
|
1125
|
+
var push = [].push;
|
|
1126
|
+
var $AggregateError = function AggregateError(errors, message) {
|
|
1127
|
+
var isInstance = isPrototypeOf$1(AggregateErrorPrototype, this);
|
|
1128
|
+
var that;
|
|
1129
|
+
if (setPrototypeOf) {
|
|
1130
|
+
that = setPrototypeOf(new $Error(), isInstance ? getPrototypeOf$2(this) : AggregateErrorPrototype);
|
|
1131
|
+
} else {
|
|
1132
|
+
that = isInstance ? this : create$2(AggregateErrorPrototype);
|
|
1133
|
+
createNonEnumerableProperty$4(that, TO_STRING_TAG$2, "Error");
|
|
1134
|
+
}
|
|
1135
|
+
if (message !== void 0)
|
|
1136
|
+
createNonEnumerableProperty$4(that, "message", normalizeStringArgument(message));
|
|
1137
|
+
installErrorStack(that, $AggregateError, that.stack, 1);
|
|
1138
|
+
if (arguments.length > 2)
|
|
1139
|
+
installErrorCause(that, arguments[2]);
|
|
1140
|
+
var errorsArray = [];
|
|
1141
|
+
iterate$4(errors, push, {
|
|
1142
|
+
that: errorsArray
|
|
1143
|
+
});
|
|
1144
|
+
createNonEnumerableProperty$4(that, "errors", errorsArray);
|
|
1145
|
+
return that;
|
|
1146
|
+
};
|
|
1147
|
+
if (setPrototypeOf)
|
|
1148
|
+
setPrototypeOf($AggregateError, $Error);
|
|
1149
|
+
else
|
|
1150
|
+
copyConstructorProperties($AggregateError, $Error, {
|
|
1151
|
+
name: true
|
|
1152
|
+
});
|
|
1153
|
+
var AggregateErrorPrototype = $AggregateError.prototype = create$2($Error.prototype, {
|
|
1154
|
+
constructor: createPropertyDescriptor$1(1, $AggregateError),
|
|
1155
|
+
message: createPropertyDescriptor$1(1, ""),
|
|
1156
|
+
name: createPropertyDescriptor$1(1, "AggregateError")
|
|
1157
|
+
});
|
|
1158
|
+
$$c({
|
|
1159
|
+
global: true,
|
|
1160
|
+
constructor: true,
|
|
1161
|
+
arity: 2
|
|
1162
|
+
}, {
|
|
1163
|
+
AggregateError: $AggregateError
|
|
1164
|
+
});
|
|
1165
|
+
var global$9 = global$i;
|
|
1166
|
+
var isCallable$7 = isCallable$i;
|
|
1167
|
+
var WeakMap$1 = global$9.WeakMap;
|
|
1168
|
+
var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
1169
|
+
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
1170
|
+
var global$8 = global$i;
|
|
1171
|
+
var isObject$3 = isObject$9;
|
|
1172
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
1173
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1174
|
+
var shared = sharedStore;
|
|
1175
|
+
var sharedKey = sharedKey$3;
|
|
1176
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1177
|
+
var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
|
|
1178
|
+
var TypeError$2 = global$8.TypeError;
|
|
1179
|
+
var WeakMap = global$8.WeakMap;
|
|
1180
|
+
var set$1, get, has;
|
|
1181
|
+
var enforce = function(it) {
|
|
1182
|
+
return has(it) ? get(it) : set$1(it, {});
|
|
1183
|
+
};
|
|
1184
|
+
var getterFor = function(TYPE) {
|
|
1185
|
+
return function(it) {
|
|
1186
|
+
var state;
|
|
1187
|
+
if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
|
|
1188
|
+
throw new TypeError$2("Incompatible receiver, " + TYPE + " required");
|
|
1189
|
+
}
|
|
1190
|
+
return state;
|
|
1191
|
+
};
|
|
1192
|
+
};
|
|
1193
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
1194
|
+
var store$1 = shared.state || (shared.state = new WeakMap());
|
|
1195
|
+
store$1.get = store$1.get;
|
|
1196
|
+
store$1.has = store$1.has;
|
|
1197
|
+
store$1.set = store$1.set;
|
|
1198
|
+
set$1 = function(it, metadata) {
|
|
1199
|
+
if (store$1.has(it))
|
|
1200
|
+
throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
1201
|
+
metadata.facade = it;
|
|
1202
|
+
store$1.set(it, metadata);
|
|
1203
|
+
return metadata;
|
|
1204
|
+
};
|
|
1205
|
+
get = function(it) {
|
|
1206
|
+
return store$1.get(it) || {};
|
|
1207
|
+
};
|
|
1208
|
+
has = function(it) {
|
|
1209
|
+
return store$1.has(it);
|
|
1210
|
+
};
|
|
1211
|
+
} else {
|
|
1212
|
+
var STATE = sharedKey("state");
|
|
1213
|
+
hiddenKeys[STATE] = true;
|
|
1214
|
+
set$1 = function(it, metadata) {
|
|
1215
|
+
if (hasOwn$3(it, STATE))
|
|
1216
|
+
throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
1217
|
+
metadata.facade = it;
|
|
1218
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
1219
|
+
return metadata;
|
|
1220
|
+
};
|
|
1221
|
+
get = function(it) {
|
|
1222
|
+
return hasOwn$3(it, STATE) ? it[STATE] : {};
|
|
1223
|
+
};
|
|
1224
|
+
has = function(it) {
|
|
1225
|
+
return hasOwn$3(it, STATE);
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
var internalState = {
|
|
1229
|
+
set: set$1,
|
|
1230
|
+
get,
|
|
1231
|
+
has,
|
|
1232
|
+
enforce,
|
|
1233
|
+
getterFor
|
|
1234
|
+
};
|
|
1235
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1236
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1237
|
+
var FunctionPrototype = Function.prototype;
|
|
1238
|
+
var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
|
|
1239
|
+
var EXISTS = hasOwn$2(FunctionPrototype, "name");
|
|
1240
|
+
var PROPER = EXISTS && (function something() {
|
|
1241
|
+
}).name === "something";
|
|
1242
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || DESCRIPTORS$1 && getDescriptor(FunctionPrototype, "name").configurable);
|
|
1243
|
+
var functionName = {
|
|
1244
|
+
EXISTS,
|
|
1245
|
+
PROPER,
|
|
1246
|
+
CONFIGURABLE
|
|
1247
|
+
};
|
|
1248
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
1249
|
+
var defineBuiltIn$3 = function(target, key, value, options) {
|
|
1250
|
+
if (options && options.enumerable)
|
|
1251
|
+
target[key] = value;
|
|
1252
|
+
else
|
|
1253
|
+
createNonEnumerableProperty$2(target, key, value);
|
|
1254
|
+
return target;
|
|
1255
|
+
};
|
|
1256
|
+
var fails$3 = fails$d;
|
|
1257
|
+
var isCallable$6 = isCallable$i;
|
|
1258
|
+
var isObject$2 = isObject$9;
|
|
1259
|
+
var create$1 = objectCreate;
|
|
1260
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1261
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
1262
|
+
var wellKnownSymbol$7 = wellKnownSymbol$e;
|
|
1263
|
+
var ITERATOR$2 = wellKnownSymbol$7("iterator");
|
|
1264
|
+
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1265
|
+
var IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1266
|
+
if ([].keys) {
|
|
1267
|
+
arrayIterator = [].keys();
|
|
1268
|
+
if (!("next" in arrayIterator))
|
|
1269
|
+
BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1270
|
+
else {
|
|
1271
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
|
1272
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
|
|
1273
|
+
IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$1) || fails$3(function() {
|
|
1277
|
+
var test2 = {};
|
|
1278
|
+
return IteratorPrototype$1[ITERATOR$2].call(test2) !== test2;
|
|
1279
|
+
});
|
|
1280
|
+
if (NEW_ITERATOR_PROTOTYPE)
|
|
1281
|
+
IteratorPrototype$1 = {};
|
|
1282
|
+
else
|
|
1283
|
+
IteratorPrototype$1 = create$1(IteratorPrototype$1);
|
|
1284
|
+
if (!isCallable$6(IteratorPrototype$1[ITERATOR$2])) {
|
|
1285
|
+
defineBuiltIn$2(IteratorPrototype$1, ITERATOR$2, function() {
|
|
1286
|
+
return this;
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
var iteratorsCore = {
|
|
1290
|
+
IteratorPrototype: IteratorPrototype$1,
|
|
1291
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1292
|
+
};
|
|
1293
|
+
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
1294
|
+
var classof$3 = classof$6;
|
|
1295
|
+
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
1296
|
+
return "[object " + classof$3(this) + "]";
|
|
1297
|
+
};
|
|
1298
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1299
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1300
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
1301
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1302
|
+
var toString$2 = objectToString;
|
|
1303
|
+
var wellKnownSymbol$6 = wellKnownSymbol$e;
|
|
1304
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$6("toStringTag");
|
|
1305
|
+
var setToStringTag$3 = function(it, TAG, STATIC, SET_METHOD) {
|
|
1306
|
+
if (it) {
|
|
1307
|
+
var target = STATIC ? it : it.prototype;
|
|
1308
|
+
if (!hasOwn$1(target, TO_STRING_TAG$1)) {
|
|
1309
|
+
defineProperty$1(target, TO_STRING_TAG$1, {
|
|
1310
|
+
configurable: true,
|
|
1311
|
+
value: TAG
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {
|
|
1315
|
+
createNonEnumerableProperty$1(target, "toString", toString$2);
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
};
|
|
1319
|
+
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
1320
|
+
var create2 = objectCreate;
|
|
1321
|
+
var createPropertyDescriptor = createPropertyDescriptor$5;
|
|
1322
|
+
var setToStringTag$2 = setToStringTag$3;
|
|
1323
|
+
var Iterators$3 = iterators;
|
|
1324
|
+
var returnThis$1 = function() {
|
|
1325
|
+
return this;
|
|
1326
|
+
};
|
|
1327
|
+
var iteratorCreateConstructor = function(IteratorConstructor, NAME, next2, ENUMERABLE_NEXT) {
|
|
1328
|
+
var TO_STRING_TAG2 = NAME + " Iterator";
|
|
1329
|
+
IteratorConstructor.prototype = create2(IteratorPrototype, {
|
|
1330
|
+
next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next2)
|
|
1331
|
+
});
|
|
1332
|
+
setToStringTag$2(IteratorConstructor, TO_STRING_TAG2, false, true);
|
|
1333
|
+
Iterators$3[TO_STRING_TAG2] = returnThis$1;
|
|
1334
|
+
return IteratorConstructor;
|
|
1335
|
+
};
|
|
1336
|
+
var $$b = _export;
|
|
1337
|
+
var call$6 = functionCall;
|
|
1338
|
+
var FunctionName = functionName;
|
|
1339
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1340
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
|
1341
|
+
var setToStringTag$1 = setToStringTag$3;
|
|
1342
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1343
|
+
var wellKnownSymbol$5 = wellKnownSymbol$e;
|
|
1344
|
+
var Iterators$2 = iterators;
|
|
1345
|
+
var IteratorsCore = iteratorsCore;
|
|
1346
|
+
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1347
|
+
FunctionName.CONFIGURABLE;
|
|
1348
|
+
IteratorsCore.IteratorPrototype;
|
|
1349
|
+
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1350
|
+
var ITERATOR$1 = wellKnownSymbol$5("iterator");
|
|
1351
|
+
var KEYS = "keys";
|
|
1352
|
+
var VALUES = "values";
|
|
1353
|
+
var ENTRIES = "entries";
|
|
1354
|
+
var returnThis = function() {
|
|
1355
|
+
return this;
|
|
1356
|
+
};
|
|
1357
|
+
var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next2, DEFAULT, IS_SET, FORCED) {
|
|
1358
|
+
createIteratorConstructor(IteratorConstructor, NAME, next2);
|
|
1359
|
+
var getIterationMethod = function(KIND) {
|
|
1360
|
+
if (KIND === DEFAULT && defaultIterator)
|
|
1361
|
+
return defaultIterator;
|
|
1362
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype)
|
|
1363
|
+
return IterablePrototype[KIND];
|
|
1364
|
+
switch (KIND) {
|
|
1365
|
+
case KEYS:
|
|
1366
|
+
return function keys3() {
|
|
1367
|
+
return new IteratorConstructor(this, KIND);
|
|
1368
|
+
};
|
|
1369
|
+
case VALUES:
|
|
1370
|
+
return function values() {
|
|
1371
|
+
return new IteratorConstructor(this, KIND);
|
|
1372
|
+
};
|
|
1373
|
+
case ENTRIES:
|
|
1374
|
+
return function entries() {
|
|
1375
|
+
return new IteratorConstructor(this, KIND);
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
return function() {
|
|
1379
|
+
return new IteratorConstructor(this);
|
|
1380
|
+
};
|
|
1381
|
+
};
|
|
1382
|
+
var TO_STRING_TAG2 = NAME + " Iterator";
|
|
1383
|
+
var INCORRECT_VALUES_NAME = false;
|
|
1384
|
+
var IterablePrototype = Iterable.prototype;
|
|
1385
|
+
var nativeIterator = IterablePrototype[ITERATOR$1] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT];
|
|
1386
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1387
|
+
var anyNativeIterator = NAME === "Array" ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1388
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
1389
|
+
if (anyNativeIterator) {
|
|
1390
|
+
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1391
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1392
|
+
setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG2, true, true);
|
|
1393
|
+
Iterators$2[TO_STRING_TAG2] = returnThis;
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1397
|
+
{
|
|
1398
|
+
INCORRECT_VALUES_NAME = true;
|
|
1399
|
+
defaultIterator = function values() {
|
|
1400
|
+
return call$6(nativeIterator, this);
|
|
1401
|
+
};
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
if (DEFAULT) {
|
|
1405
|
+
methods = {
|
|
1406
|
+
values: getIterationMethod(VALUES),
|
|
1407
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1408
|
+
entries: getIterationMethod(ENTRIES)
|
|
1409
|
+
};
|
|
1410
|
+
if (FORCED)
|
|
1411
|
+
for (KEY in methods) {
|
|
1412
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1413
|
+
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
else
|
|
1417
|
+
$$b({
|
|
1418
|
+
target: NAME,
|
|
1419
|
+
proto: true,
|
|
1420
|
+
forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME
|
|
1421
|
+
}, methods);
|
|
1422
|
+
}
|
|
1423
|
+
if (FORCED && IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1424
|
+
defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, {
|
|
1425
|
+
name: DEFAULT
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
Iterators$2[NAME] = defaultIterator;
|
|
1429
|
+
return methods;
|
|
1430
|
+
};
|
|
1431
|
+
var createIterResultObject$2 = function(value, done) {
|
|
1432
|
+
return {
|
|
1433
|
+
value,
|
|
1434
|
+
done
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
var toIndexedObject = toIndexedObject$5;
|
|
1438
|
+
var Iterators$1 = iterators;
|
|
1439
|
+
var InternalStateModule$2 = internalState;
|
|
1440
|
+
objectDefineProperty.f;
|
|
1441
|
+
var defineIterator$1 = iteratorDefine;
|
|
1442
|
+
var createIterResultObject$1 = createIterResultObject$2;
|
|
1443
|
+
var ARRAY_ITERATOR = "Array Iterator";
|
|
1444
|
+
var setInternalState$2 = InternalStateModule$2.set;
|
|
1445
|
+
var getInternalState$1 = InternalStateModule$2.getterFor(ARRAY_ITERATOR);
|
|
1446
|
+
defineIterator$1(Array, "Array", function(iterated, kind) {
|
|
1447
|
+
setInternalState$2(this, {
|
|
1448
|
+
type: ARRAY_ITERATOR,
|
|
1449
|
+
target: toIndexedObject(iterated),
|
|
1450
|
+
// target
|
|
1451
|
+
index: 0,
|
|
1452
|
+
// next index
|
|
1453
|
+
kind
|
|
1454
|
+
// kind
|
|
1455
|
+
});
|
|
1456
|
+
}, function() {
|
|
1457
|
+
var state = getInternalState$1(this);
|
|
1458
|
+
var target = state.target;
|
|
1459
|
+
var index = state.index++;
|
|
1460
|
+
if (!target || index >= target.length) {
|
|
1461
|
+
state.target = void 0;
|
|
1462
|
+
return createIterResultObject$1(void 0, true);
|
|
1463
|
+
}
|
|
1464
|
+
switch (state.kind) {
|
|
1465
|
+
case "keys":
|
|
1466
|
+
return createIterResultObject$1(index, false);
|
|
1467
|
+
case "values":
|
|
1468
|
+
return createIterResultObject$1(target[index], false);
|
|
1469
|
+
}
|
|
1470
|
+
return createIterResultObject$1([index, target[index]], false);
|
|
1471
|
+
}, "values");
|
|
1472
|
+
Iterators$1.Arguments = Iterators$1.Array;
|
|
1473
|
+
var global$7 = global$i;
|
|
1474
|
+
var classof$2 = classofRaw$2;
|
|
1475
|
+
var engineIsNode = classof$2(global$7.process) === "process";
|
|
1476
|
+
var defineProperty3 = objectDefineProperty;
|
|
1477
|
+
var defineBuiltInAccessor$1 = function(target, name, descriptor) {
|
|
1478
|
+
return defineProperty3.f(target, name, descriptor);
|
|
1479
|
+
};
|
|
1480
|
+
var getBuiltIn$4 = getBuiltIn$8;
|
|
1481
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1482
|
+
var wellKnownSymbol$4 = wellKnownSymbol$e;
|
|
1483
|
+
var DESCRIPTORS = descriptors;
|
|
1484
|
+
var SPECIES$2 = wellKnownSymbol$4("species");
|
|
1485
|
+
var setSpecies$1 = function(CONSTRUCTOR_NAME) {
|
|
1486
|
+
var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
|
|
1487
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
|
|
1488
|
+
defineBuiltInAccessor(Constructor, SPECIES$2, {
|
|
1489
|
+
configurable: true,
|
|
1490
|
+
get: function() {
|
|
1491
|
+
return this;
|
|
1492
|
+
}
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
};
|
|
1496
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
1497
|
+
var $TypeError$3 = TypeError;
|
|
1498
|
+
var anInstance$1 = function(it, Prototype) {
|
|
1499
|
+
if (isPrototypeOf(Prototype, it))
|
|
1500
|
+
return it;
|
|
1501
|
+
throw new $TypeError$3("Incorrect invocation");
|
|
1502
|
+
};
|
|
1503
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1504
|
+
var isCallable$5 = isCallable$i;
|
|
1505
|
+
var store = sharedStore;
|
|
1506
|
+
var functionToString = uncurryThis$3(Function.toString);
|
|
1507
|
+
if (!isCallable$5(store.inspectSource)) {
|
|
1508
|
+
store.inspectSource = function(it) {
|
|
1509
|
+
return functionToString(it);
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
var inspectSource$2 = store.inspectSource;
|
|
1513
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
1514
|
+
var fails$2 = fails$d;
|
|
1515
|
+
var isCallable$4 = isCallable$i;
|
|
1516
|
+
var classof$1 = classof$6;
|
|
1517
|
+
var getBuiltIn$3 = getBuiltIn$8;
|
|
1518
|
+
var inspectSource$1 = inspectSource$2;
|
|
1519
|
+
var noop = function() {
|
|
1520
|
+
};
|
|
1521
|
+
var empty = [];
|
|
1522
|
+
var construct = getBuiltIn$3("Reflect", "construct");
|
|
1523
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1524
|
+
var exec = uncurryThis$2(constructorRegExp.exec);
|
|
1525
|
+
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1526
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
1527
|
+
if (!isCallable$4(argument))
|
|
1528
|
+
return false;
|
|
1529
|
+
try {
|
|
1530
|
+
construct(noop, empty, argument);
|
|
1531
|
+
return true;
|
|
1532
|
+
} catch (error) {
|
|
1533
|
+
return false;
|
|
1534
|
+
}
|
|
1535
|
+
};
|
|
1536
|
+
var isConstructorLegacy = function isConstructor2(argument) {
|
|
1537
|
+
if (!isCallable$4(argument))
|
|
1538
|
+
return false;
|
|
1539
|
+
switch (classof$1(argument)) {
|
|
1540
|
+
case "AsyncFunction":
|
|
1541
|
+
case "GeneratorFunction":
|
|
1542
|
+
case "AsyncGeneratorFunction":
|
|
1543
|
+
return false;
|
|
1544
|
+
}
|
|
1545
|
+
try {
|
|
1546
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
1547
|
+
} catch (error) {
|
|
1548
|
+
return true;
|
|
1549
|
+
}
|
|
1550
|
+
};
|
|
1551
|
+
isConstructorLegacy.sham = true;
|
|
1552
|
+
var isConstructor$1 = !construct || fails$2(function() {
|
|
1553
|
+
var called;
|
|
1554
|
+
return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
|
|
1555
|
+
called = true;
|
|
1556
|
+
}) || called;
|
|
1557
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
1558
|
+
var isConstructor3 = isConstructor$1;
|
|
1559
|
+
var tryToString = tryToString$4;
|
|
1560
|
+
var $TypeError$2 = TypeError;
|
|
1561
|
+
var aConstructor$1 = function(argument) {
|
|
1562
|
+
if (isConstructor3(argument))
|
|
1563
|
+
return argument;
|
|
1564
|
+
throw new $TypeError$2(tryToString(argument) + " is not a constructor");
|
|
1565
|
+
};
|
|
1566
|
+
var anObject$1 = anObject$a;
|
|
1567
|
+
var aConstructor = aConstructor$1;
|
|
1568
|
+
var isNullOrUndefined = isNullOrUndefined$4;
|
|
1569
|
+
var wellKnownSymbol$3 = wellKnownSymbol$e;
|
|
1570
|
+
var SPECIES$1 = wellKnownSymbol$3("species");
|
|
1571
|
+
var speciesConstructor$2 = function(O, defaultConstructor) {
|
|
1572
|
+
var C = anObject$1(O).constructor;
|
|
1573
|
+
var S;
|
|
1574
|
+
return C === void 0 || isNullOrUndefined(S = anObject$1(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
1575
|
+
};
|
|
1576
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
1577
|
+
var arraySlice$1 = uncurryThis$1([].slice);
|
|
1578
|
+
var $TypeError$1 = TypeError;
|
|
1579
|
+
var validateArgumentsLength$1 = function(passed, required) {
|
|
1580
|
+
if (passed < required)
|
|
1581
|
+
throw new $TypeError$1("Not enough arguments");
|
|
1582
|
+
return passed;
|
|
1583
|
+
};
|
|
1584
|
+
var userAgent$2 = engineUserAgent;
|
|
1585
|
+
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1586
|
+
var global$6 = global$i;
|
|
1587
|
+
var apply = functionApply;
|
|
1588
|
+
var bind$2 = functionBindContext;
|
|
1589
|
+
var isCallable$3 = isCallable$i;
|
|
1590
|
+
var hasOwn2 = hasOwnProperty_1;
|
|
1591
|
+
var fails$1 = fails$d;
|
|
1592
|
+
var html = html$2;
|
|
1593
|
+
var arraySlice = arraySlice$1;
|
|
1594
|
+
var createElement = documentCreateElement$1;
|
|
1595
|
+
var validateArgumentsLength = validateArgumentsLength$1;
|
|
1596
|
+
var IS_IOS$1 = engineIsIos;
|
|
1597
|
+
var IS_NODE$3 = engineIsNode;
|
|
1598
|
+
var set = global$6.setImmediate;
|
|
1599
|
+
var clear = global$6.clearImmediate;
|
|
1600
|
+
var process$2 = global$6.process;
|
|
1601
|
+
var Dispatch = global$6.Dispatch;
|
|
1602
|
+
var Function$1 = global$6.Function;
|
|
1603
|
+
var MessageChannel = global$6.MessageChannel;
|
|
1604
|
+
var String$1 = global$6.String;
|
|
1605
|
+
var counter = 0;
|
|
1606
|
+
var queue$2 = {};
|
|
1607
|
+
var ONREADYSTATECHANGE = "onreadystatechange";
|
|
1608
|
+
var $location, defer, channel, port;
|
|
1609
|
+
fails$1(function() {
|
|
1610
|
+
$location = global$6.location;
|
|
1611
|
+
});
|
|
1612
|
+
var run = function(id2) {
|
|
1613
|
+
if (hasOwn2(queue$2, id2)) {
|
|
1614
|
+
var fn = queue$2[id2];
|
|
1615
|
+
delete queue$2[id2];
|
|
1616
|
+
fn();
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1619
|
+
var runner = function(id2) {
|
|
1620
|
+
return function() {
|
|
1621
|
+
run(id2);
|
|
1622
|
+
};
|
|
1623
|
+
};
|
|
1624
|
+
var eventListener = function(event) {
|
|
1625
|
+
run(event.data);
|
|
1626
|
+
};
|
|
1627
|
+
var globalPostMessageDefer = function(id2) {
|
|
1628
|
+
global$6.postMessage(String$1(id2), $location.protocol + "//" + $location.host);
|
|
1629
|
+
};
|
|
1630
|
+
if (!set || !clear) {
|
|
1631
|
+
set = function setImmediate(handler) {
|
|
1632
|
+
validateArgumentsLength(arguments.length, 1);
|
|
1633
|
+
var fn = isCallable$3(handler) ? handler : Function$1(handler);
|
|
1634
|
+
var args = arraySlice(arguments, 1);
|
|
1635
|
+
queue$2[++counter] = function() {
|
|
1636
|
+
apply(fn, void 0, args);
|
|
1637
|
+
};
|
|
1638
|
+
defer(counter);
|
|
1639
|
+
return counter;
|
|
1640
|
+
};
|
|
1641
|
+
clear = function clearImmediate(id2) {
|
|
1642
|
+
delete queue$2[id2];
|
|
1643
|
+
};
|
|
1644
|
+
if (IS_NODE$3) {
|
|
1645
|
+
defer = function(id2) {
|
|
1646
|
+
process$2.nextTick(runner(id2));
|
|
1647
|
+
};
|
|
1648
|
+
} else if (Dispatch && Dispatch.now) {
|
|
1649
|
+
defer = function(id2) {
|
|
1650
|
+
Dispatch.now(runner(id2));
|
|
1651
|
+
};
|
|
1652
|
+
} else if (MessageChannel && !IS_IOS$1) {
|
|
1653
|
+
channel = new MessageChannel();
|
|
1654
|
+
port = channel.port2;
|
|
1655
|
+
channel.port1.onmessage = eventListener;
|
|
1656
|
+
defer = bind$2(port.postMessage, port);
|
|
1657
|
+
} else if (global$6.addEventListener && isCallable$3(global$6.postMessage) && !global$6.importScripts && $location && $location.protocol !== "file:" && !fails$1(globalPostMessageDefer)) {
|
|
1658
|
+
defer = globalPostMessageDefer;
|
|
1659
|
+
global$6.addEventListener("message", eventListener, false);
|
|
1660
|
+
} else if (ONREADYSTATECHANGE in createElement("script")) {
|
|
1661
|
+
defer = function(id2) {
|
|
1662
|
+
html.appendChild(createElement("script"))[ONREADYSTATECHANGE] = function() {
|
|
1663
|
+
html.removeChild(this);
|
|
1664
|
+
run(id2);
|
|
1665
|
+
};
|
|
1666
|
+
};
|
|
1667
|
+
} else {
|
|
1668
|
+
defer = function(id2) {
|
|
1669
|
+
setTimeout(runner(id2), 0);
|
|
1670
|
+
};
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
var task$1 = {
|
|
1674
|
+
set,
|
|
1675
|
+
clear
|
|
1676
|
+
};
|
|
1677
|
+
var Queue$2 = function() {
|
|
1678
|
+
this.head = null;
|
|
1679
|
+
this.tail = null;
|
|
1680
|
+
};
|
|
1681
|
+
Queue$2.prototype = {
|
|
1682
|
+
add: function(item) {
|
|
1683
|
+
var entry = {
|
|
1684
|
+
item,
|
|
1685
|
+
next: null
|
|
1686
|
+
};
|
|
1687
|
+
var tail = this.tail;
|
|
1688
|
+
if (tail)
|
|
1689
|
+
tail.next = entry;
|
|
1690
|
+
else
|
|
1691
|
+
this.head = entry;
|
|
1692
|
+
this.tail = entry;
|
|
1693
|
+
},
|
|
1694
|
+
get: function() {
|
|
1695
|
+
var entry = this.head;
|
|
1696
|
+
if (entry) {
|
|
1697
|
+
var next2 = this.head = entry.next;
|
|
1698
|
+
if (next2 === null)
|
|
1699
|
+
this.tail = null;
|
|
1700
|
+
return entry.item;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
};
|
|
1704
|
+
var queue$1 = Queue$2;
|
|
1705
|
+
var userAgent$1 = engineUserAgent;
|
|
1706
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != "undefined";
|
|
1707
|
+
var userAgent = engineUserAgent;
|
|
1708
|
+
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
1709
|
+
var global$5 = global$i;
|
|
1710
|
+
var bind$1 = functionBindContext;
|
|
1711
|
+
var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
|
|
1712
|
+
var macrotask = task$1.set;
|
|
1713
|
+
var Queue$1 = queue$1;
|
|
1714
|
+
var IS_IOS = engineIsIos;
|
|
1715
|
+
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
1716
|
+
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
1717
|
+
var IS_NODE$2 = engineIsNode;
|
|
1718
|
+
var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
|
|
1719
|
+
var document$2 = global$5.document;
|
|
1720
|
+
var process$1 = global$5.process;
|
|
1721
|
+
var Promise$1 = global$5.Promise;
|
|
1722
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor2(global$5, "queueMicrotask");
|
|
1723
|
+
var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
1724
|
+
var notify$1, toggle, node, promise$6, then;
|
|
1725
|
+
if (!microtask$1) {
|
|
1726
|
+
var queue = new Queue$1();
|
|
1727
|
+
var flush = function() {
|
|
1728
|
+
var parent2, fn;
|
|
1729
|
+
if (IS_NODE$2 && (parent2 = process$1.domain))
|
|
1730
|
+
parent2.exit();
|
|
1731
|
+
while (fn = queue.get())
|
|
1732
|
+
try {
|
|
1733
|
+
fn();
|
|
1734
|
+
} catch (error) {
|
|
1735
|
+
if (queue.head)
|
|
1736
|
+
notify$1();
|
|
1737
|
+
throw error;
|
|
1738
|
+
}
|
|
1739
|
+
if (parent2)
|
|
1740
|
+
parent2.enter();
|
|
1741
|
+
};
|
|
1742
|
+
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
1743
|
+
toggle = true;
|
|
1744
|
+
node = document$2.createTextNode("");
|
|
1745
|
+
new MutationObserver(flush).observe(node, {
|
|
1746
|
+
characterData: true
|
|
1747
|
+
});
|
|
1748
|
+
notify$1 = function() {
|
|
1749
|
+
node.data = toggle = !toggle;
|
|
1750
|
+
};
|
|
1751
|
+
} else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
|
|
1752
|
+
promise$6 = Promise$1.resolve(void 0);
|
|
1753
|
+
promise$6.constructor = Promise$1;
|
|
1754
|
+
then = bind$1(promise$6.then, promise$6);
|
|
1755
|
+
notify$1 = function() {
|
|
1756
|
+
then(flush);
|
|
1757
|
+
};
|
|
1758
|
+
} else if (IS_NODE$2) {
|
|
1759
|
+
notify$1 = function() {
|
|
1760
|
+
process$1.nextTick(flush);
|
|
1761
|
+
};
|
|
1762
|
+
} else {
|
|
1763
|
+
macrotask = bind$1(macrotask, global$5);
|
|
1764
|
+
notify$1 = function() {
|
|
1765
|
+
macrotask(flush);
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
microtask$1 = function(fn) {
|
|
1769
|
+
if (!queue.head)
|
|
1770
|
+
notify$1();
|
|
1771
|
+
queue.add(fn);
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
var microtask_1 = microtask$1;
|
|
1775
|
+
var hostReportErrors$1 = function(a, b) {
|
|
1776
|
+
try {
|
|
1777
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
1778
|
+
} catch (error) {
|
|
1779
|
+
}
|
|
1780
|
+
};
|
|
1781
|
+
var perform$6 = function(exec2) {
|
|
1782
|
+
try {
|
|
1783
|
+
return {
|
|
1784
|
+
error: false,
|
|
1785
|
+
value: exec2()
|
|
1786
|
+
};
|
|
1787
|
+
} catch (error) {
|
|
1788
|
+
return {
|
|
1789
|
+
error: true,
|
|
1790
|
+
value: error
|
|
1791
|
+
};
|
|
1792
|
+
}
|
|
1793
|
+
};
|
|
1794
|
+
var global$4 = global$i;
|
|
1795
|
+
var promiseNativeConstructor = global$4.Promise;
|
|
1796
|
+
var engineIsDeno = typeof Deno == "object" && Deno && typeof Deno.version == "object";
|
|
1797
|
+
var IS_DENO$1 = engineIsDeno;
|
|
1798
|
+
var IS_NODE$1 = engineIsNode;
|
|
1799
|
+
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1 && typeof window == "object" && typeof document == "object";
|
|
1800
|
+
var global$3 = global$i;
|
|
1801
|
+
var NativePromiseConstructor$5 = promiseNativeConstructor;
|
|
1802
|
+
var isCallable$2 = isCallable$i;
|
|
1803
|
+
var isForced = isForced_1;
|
|
1804
|
+
var inspectSource = inspectSource$2;
|
|
1805
|
+
var wellKnownSymbol$2 = wellKnownSymbol$e;
|
|
1806
|
+
var IS_BROWSER = engineIsBrowser;
|
|
1807
|
+
var IS_DENO = engineIsDeno;
|
|
1808
|
+
var V8_VERSION = engineV8Version;
|
|
1809
|
+
var NativePromisePrototype$2 = NativePromiseConstructor$5 && NativePromiseConstructor$5.prototype;
|
|
1810
|
+
var SPECIES = wellKnownSymbol$2("species");
|
|
1811
|
+
var SUBCLASSING = false;
|
|
1812
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$3.PromiseRejectionEvent);
|
|
1813
|
+
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced("Promise", function() {
|
|
1814
|
+
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$5);
|
|
1815
|
+
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$5);
|
|
1816
|
+
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66)
|
|
1817
|
+
return true;
|
|
1818
|
+
if (!(NativePromisePrototype$2["catch"] && NativePromisePrototype$2["finally"]))
|
|
1819
|
+
return true;
|
|
1820
|
+
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
1821
|
+
var promise2 = new NativePromiseConstructor$5(function(resolve2) {
|
|
1822
|
+
resolve2(1);
|
|
1823
|
+
});
|
|
1824
|
+
var FakePromise = function(exec2) {
|
|
1825
|
+
exec2(function() {
|
|
1826
|
+
}, function() {
|
|
1827
|
+
});
|
|
1828
|
+
};
|
|
1829
|
+
var constructor = promise2.constructor = {};
|
|
1830
|
+
constructor[SPECIES] = FakePromise;
|
|
1831
|
+
SUBCLASSING = promise2.then(function() {
|
|
1832
|
+
}) instanceof FakePromise;
|
|
1833
|
+
if (!SUBCLASSING)
|
|
1834
|
+
return true;
|
|
1835
|
+
}
|
|
1836
|
+
return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
1837
|
+
});
|
|
1838
|
+
var promiseConstructorDetection = {
|
|
1839
|
+
CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
|
|
1840
|
+
REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
|
|
1841
|
+
SUBCLASSING
|
|
1842
|
+
};
|
|
1843
|
+
var newPromiseCapability$2 = {};
|
|
1844
|
+
var aCallable$5 = aCallable$a;
|
|
1845
|
+
var $TypeError = TypeError;
|
|
1846
|
+
var PromiseCapability = function(C) {
|
|
1847
|
+
var resolve2, reject2;
|
|
1848
|
+
this.promise = new C(function($$resolve, $$reject) {
|
|
1849
|
+
if (resolve2 !== void 0 || reject2 !== void 0)
|
|
1850
|
+
throw new $TypeError("Bad Promise constructor");
|
|
1851
|
+
resolve2 = $$resolve;
|
|
1852
|
+
reject2 = $$reject;
|
|
1853
|
+
});
|
|
1854
|
+
this.resolve = aCallable$5(resolve2);
|
|
1855
|
+
this.reject = aCallable$5(reject2);
|
|
1856
|
+
};
|
|
1857
|
+
newPromiseCapability$2.f = function(C) {
|
|
1858
|
+
return new PromiseCapability(C);
|
|
1859
|
+
};
|
|
1860
|
+
var $$a = _export;
|
|
1861
|
+
var IS_NODE = engineIsNode;
|
|
1862
|
+
var global$2 = global$i;
|
|
1863
|
+
var call$5 = functionCall;
|
|
1864
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
1865
|
+
var setToStringTag = setToStringTag$3;
|
|
1866
|
+
var setSpecies = setSpecies$1;
|
|
1867
|
+
var aCallable$4 = aCallable$a;
|
|
1868
|
+
var isCallable$1 = isCallable$i;
|
|
1869
|
+
var isObject$1 = isObject$9;
|
|
1870
|
+
var anInstance = anInstance$1;
|
|
1871
|
+
var speciesConstructor$1 = speciesConstructor$2;
|
|
1872
|
+
var task = task$1.set;
|
|
1873
|
+
var microtask = microtask_1;
|
|
1874
|
+
var hostReportErrors = hostReportErrors$1;
|
|
1875
|
+
var perform$5 = perform$6;
|
|
1876
|
+
var Queue = queue$1;
|
|
1877
|
+
var InternalStateModule$1 = internalState;
|
|
1878
|
+
var NativePromiseConstructor$4 = promiseNativeConstructor;
|
|
1879
|
+
var PromiseConstructorDetection = promiseConstructorDetection;
|
|
1880
|
+
var newPromiseCapabilityModule$7 = newPromiseCapability$2;
|
|
1881
|
+
var PROMISE = "Promise";
|
|
1882
|
+
var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
|
|
1883
|
+
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
|
|
1884
|
+
PromiseConstructorDetection.SUBCLASSING;
|
|
1885
|
+
var getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);
|
|
1886
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
1887
|
+
var NativePromisePrototype$1 = NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;
|
|
1888
|
+
var PromiseConstructor = NativePromiseConstructor$4;
|
|
1889
|
+
var PromisePrototype = NativePromisePrototype$1;
|
|
1890
|
+
var TypeError$1 = global$2.TypeError;
|
|
1891
|
+
var document$1 = global$2.document;
|
|
1892
|
+
var process = global$2.process;
|
|
1893
|
+
var newPromiseCapability$1 = newPromiseCapabilityModule$7.f;
|
|
1894
|
+
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
1895
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
|
|
1896
|
+
var UNHANDLED_REJECTION = "unhandledrejection";
|
|
1897
|
+
var REJECTION_HANDLED = "rejectionhandled";
|
|
1898
|
+
var PENDING = 0;
|
|
1899
|
+
var FULFILLED = 1;
|
|
1900
|
+
var REJECTED = 2;
|
|
1901
|
+
var HANDLED = 1;
|
|
1902
|
+
var UNHANDLED = 2;
|
|
1903
|
+
var Internal, OwnPromiseCapability, PromiseWrapper;
|
|
1904
|
+
var isThenable = function(it) {
|
|
1905
|
+
var then2;
|
|
1906
|
+
return isObject$1(it) && isCallable$1(then2 = it.then) ? then2 : false;
|
|
1907
|
+
};
|
|
1908
|
+
var callReaction = function(reaction, state) {
|
|
1909
|
+
var value = state.value;
|
|
1910
|
+
var ok = state.state === FULFILLED;
|
|
1911
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
1912
|
+
var resolve2 = reaction.resolve;
|
|
1913
|
+
var reject2 = reaction.reject;
|
|
1914
|
+
var domain = reaction.domain;
|
|
1915
|
+
var result, then2, exited;
|
|
1916
|
+
try {
|
|
1917
|
+
if (handler) {
|
|
1918
|
+
if (!ok) {
|
|
1919
|
+
if (state.rejection === UNHANDLED)
|
|
1920
|
+
onHandleUnhandled(state);
|
|
1921
|
+
state.rejection = HANDLED;
|
|
1922
|
+
}
|
|
1923
|
+
if (handler === true)
|
|
1924
|
+
result = value;
|
|
1925
|
+
else {
|
|
1926
|
+
if (domain)
|
|
1927
|
+
domain.enter();
|
|
1928
|
+
result = handler(value);
|
|
1929
|
+
if (domain) {
|
|
1930
|
+
domain.exit();
|
|
1931
|
+
exited = true;
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
if (result === reaction.promise) {
|
|
1935
|
+
reject2(new TypeError$1("Promise-chain cycle"));
|
|
1936
|
+
} else if (then2 = isThenable(result)) {
|
|
1937
|
+
call$5(then2, result, resolve2, reject2);
|
|
1938
|
+
} else
|
|
1939
|
+
resolve2(result);
|
|
1940
|
+
} else
|
|
1941
|
+
reject2(value);
|
|
1942
|
+
} catch (error) {
|
|
1943
|
+
if (domain && !exited)
|
|
1944
|
+
domain.exit();
|
|
1945
|
+
reject2(error);
|
|
1946
|
+
}
|
|
1947
|
+
};
|
|
1948
|
+
var notify = function(state, isReject) {
|
|
1949
|
+
if (state.notified)
|
|
1950
|
+
return;
|
|
1951
|
+
state.notified = true;
|
|
1952
|
+
microtask(function() {
|
|
1953
|
+
var reactions = state.reactions;
|
|
1954
|
+
var reaction;
|
|
1955
|
+
while (reaction = reactions.get()) {
|
|
1956
|
+
callReaction(reaction, state);
|
|
1957
|
+
}
|
|
1958
|
+
state.notified = false;
|
|
1959
|
+
if (isReject && !state.rejection)
|
|
1960
|
+
onUnhandled(state);
|
|
1961
|
+
});
|
|
1962
|
+
};
|
|
1963
|
+
var dispatchEvent = function(name, promise2, reason) {
|
|
1964
|
+
var event, handler;
|
|
1965
|
+
if (DISPATCH_EVENT) {
|
|
1966
|
+
event = document$1.createEvent("Event");
|
|
1967
|
+
event.promise = promise2;
|
|
1968
|
+
event.reason = reason;
|
|
1969
|
+
event.initEvent(name, false, true);
|
|
1970
|
+
global$2.dispatchEvent(event);
|
|
1971
|
+
} else
|
|
1972
|
+
event = {
|
|
1973
|
+
promise: promise2,
|
|
1974
|
+
reason
|
|
1975
|
+
};
|
|
1976
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2["on" + name]))
|
|
1977
|
+
handler(event);
|
|
1978
|
+
else if (name === UNHANDLED_REJECTION)
|
|
1979
|
+
hostReportErrors("Unhandled promise rejection", reason);
|
|
1980
|
+
};
|
|
1981
|
+
var onUnhandled = function(state) {
|
|
1982
|
+
call$5(task, global$2, function() {
|
|
1983
|
+
var promise2 = state.facade;
|
|
1984
|
+
var value = state.value;
|
|
1985
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
1986
|
+
var result;
|
|
1987
|
+
if (IS_UNHANDLED) {
|
|
1988
|
+
result = perform$5(function() {
|
|
1989
|
+
if (IS_NODE) {
|
|
1990
|
+
process.emit("unhandledRejection", value, promise2);
|
|
1991
|
+
} else
|
|
1992
|
+
dispatchEvent(UNHANDLED_REJECTION, promise2, value);
|
|
1993
|
+
});
|
|
1994
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
1995
|
+
if (result.error)
|
|
1996
|
+
throw result.value;
|
|
1997
|
+
}
|
|
1998
|
+
});
|
|
1999
|
+
};
|
|
2000
|
+
var isUnhandled = function(state) {
|
|
2001
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
2002
|
+
};
|
|
2003
|
+
var onHandleUnhandled = function(state) {
|
|
2004
|
+
call$5(task, global$2, function() {
|
|
2005
|
+
var promise2 = state.facade;
|
|
2006
|
+
if (IS_NODE) {
|
|
2007
|
+
process.emit("rejectionHandled", promise2);
|
|
2008
|
+
} else
|
|
2009
|
+
dispatchEvent(REJECTION_HANDLED, promise2, state.value);
|
|
2010
|
+
});
|
|
2011
|
+
};
|
|
2012
|
+
var bind = function(fn, state, unwrap) {
|
|
2013
|
+
return function(value) {
|
|
2014
|
+
fn(state, value, unwrap);
|
|
2015
|
+
};
|
|
2016
|
+
};
|
|
2017
|
+
var internalReject = function(state, value, unwrap) {
|
|
2018
|
+
if (state.done)
|
|
2019
|
+
return;
|
|
2020
|
+
state.done = true;
|
|
2021
|
+
if (unwrap)
|
|
2022
|
+
state = unwrap;
|
|
2023
|
+
state.value = value;
|
|
2024
|
+
state.state = REJECTED;
|
|
2025
|
+
notify(state, true);
|
|
2026
|
+
};
|
|
2027
|
+
var internalResolve = function(state, value, unwrap) {
|
|
2028
|
+
if (state.done)
|
|
2029
|
+
return;
|
|
2030
|
+
state.done = true;
|
|
2031
|
+
if (unwrap)
|
|
2032
|
+
state = unwrap;
|
|
2033
|
+
try {
|
|
2034
|
+
if (state.facade === value)
|
|
2035
|
+
throw new TypeError$1("Promise can't be resolved itself");
|
|
2036
|
+
var then2 = isThenable(value);
|
|
2037
|
+
if (then2) {
|
|
2038
|
+
microtask(function() {
|
|
2039
|
+
var wrapper = {
|
|
2040
|
+
done: false
|
|
2041
|
+
};
|
|
2042
|
+
try {
|
|
2043
|
+
call$5(then2, value, bind(internalResolve, wrapper, state), bind(internalReject, wrapper, state));
|
|
2044
|
+
} catch (error) {
|
|
2045
|
+
internalReject(wrapper, error, state);
|
|
2046
|
+
}
|
|
2047
|
+
});
|
|
2048
|
+
} else {
|
|
2049
|
+
state.value = value;
|
|
2050
|
+
state.state = FULFILLED;
|
|
2051
|
+
notify(state, false);
|
|
2052
|
+
}
|
|
2053
|
+
} catch (error) {
|
|
2054
|
+
internalReject({
|
|
2055
|
+
done: false
|
|
2056
|
+
}, error, state);
|
|
2057
|
+
}
|
|
2058
|
+
};
|
|
2059
|
+
if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
2060
|
+
PromiseConstructor = function Promise2(executor) {
|
|
2061
|
+
anInstance(this, PromisePrototype);
|
|
2062
|
+
aCallable$4(executor);
|
|
2063
|
+
call$5(Internal, this);
|
|
2064
|
+
var state = getInternalPromiseState(this);
|
|
2065
|
+
try {
|
|
2066
|
+
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
2067
|
+
} catch (error) {
|
|
2068
|
+
internalReject(state, error);
|
|
2069
|
+
}
|
|
2070
|
+
};
|
|
2071
|
+
PromisePrototype = PromiseConstructor.prototype;
|
|
2072
|
+
Internal = function Promise2(executor) {
|
|
2073
|
+
setInternalState$1(this, {
|
|
2074
|
+
type: PROMISE,
|
|
2075
|
+
done: false,
|
|
2076
|
+
notified: false,
|
|
2077
|
+
parent: false,
|
|
2078
|
+
reactions: new Queue(),
|
|
2079
|
+
rejection: false,
|
|
2080
|
+
state: PENDING,
|
|
2081
|
+
value: void 0
|
|
2082
|
+
});
|
|
2083
|
+
};
|
|
2084
|
+
Internal.prototype = defineBuiltIn(PromisePrototype, "then", function then2(onFulfilled, onRejected) {
|
|
2085
|
+
var state = getInternalPromiseState(this);
|
|
2086
|
+
var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
|
|
2087
|
+
state.parent = true;
|
|
2088
|
+
reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
|
|
2089
|
+
reaction.fail = isCallable$1(onRejected) && onRejected;
|
|
2090
|
+
reaction.domain = IS_NODE ? process.domain : void 0;
|
|
2091
|
+
if (state.state === PENDING)
|
|
2092
|
+
state.reactions.add(reaction);
|
|
2093
|
+
else
|
|
2094
|
+
microtask(function() {
|
|
2095
|
+
callReaction(reaction, state);
|
|
2096
|
+
});
|
|
2097
|
+
return reaction.promise;
|
|
2098
|
+
});
|
|
2099
|
+
OwnPromiseCapability = function() {
|
|
2100
|
+
var promise2 = new Internal();
|
|
2101
|
+
var state = getInternalPromiseState(promise2);
|
|
2102
|
+
this.promise = promise2;
|
|
2103
|
+
this.resolve = bind(internalResolve, state);
|
|
2104
|
+
this.reject = bind(internalReject, state);
|
|
2105
|
+
};
|
|
2106
|
+
newPromiseCapabilityModule$7.f = newPromiseCapability$1 = function(C) {
|
|
2107
|
+
return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C);
|
|
2108
|
+
};
|
|
2109
|
+
}
|
|
2110
|
+
$$a({
|
|
2111
|
+
global: true,
|
|
2112
|
+
constructor: true,
|
|
2113
|
+
wrap: true,
|
|
2114
|
+
forced: FORCED_PROMISE_CONSTRUCTOR$4
|
|
2115
|
+
}, {
|
|
2116
|
+
Promise: PromiseConstructor
|
|
2117
|
+
});
|
|
2118
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
2119
|
+
setSpecies(PROMISE);
|
|
2120
|
+
var wellKnownSymbol$1 = wellKnownSymbol$e;
|
|
2121
|
+
var ITERATOR = wellKnownSymbol$1("iterator");
|
|
2122
|
+
var SAFE_CLOSING = false;
|
|
2123
|
+
try {
|
|
2124
|
+
var called = 0;
|
|
2125
|
+
var iteratorWithReturn = {
|
|
2126
|
+
next: function() {
|
|
2127
|
+
return {
|
|
2128
|
+
done: !!called++
|
|
2129
|
+
};
|
|
2130
|
+
},
|
|
2131
|
+
"return": function() {
|
|
2132
|
+
SAFE_CLOSING = true;
|
|
2133
|
+
}
|
|
2134
|
+
};
|
|
2135
|
+
iteratorWithReturn[ITERATOR] = function() {
|
|
2136
|
+
return this;
|
|
2137
|
+
};
|
|
2138
|
+
Array.from(iteratorWithReturn, function() {
|
|
2139
|
+
throw 2;
|
|
2140
|
+
});
|
|
2141
|
+
} catch (error) {
|
|
2142
|
+
}
|
|
2143
|
+
var checkCorrectnessOfIteration$1 = function(exec2, SKIP_CLOSING) {
|
|
2144
|
+
try {
|
|
2145
|
+
if (!SKIP_CLOSING && !SAFE_CLOSING)
|
|
2146
|
+
return false;
|
|
2147
|
+
} catch (error) {
|
|
2148
|
+
return false;
|
|
2149
|
+
}
|
|
2150
|
+
var ITERATION_SUPPORT = false;
|
|
2151
|
+
try {
|
|
2152
|
+
var object = {};
|
|
2153
|
+
object[ITERATOR] = function() {
|
|
2154
|
+
return {
|
|
2155
|
+
next: function() {
|
|
2156
|
+
return {
|
|
2157
|
+
done: ITERATION_SUPPORT = true
|
|
2158
|
+
};
|
|
2159
|
+
}
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
2162
|
+
exec2(object);
|
|
2163
|
+
} catch (error) {
|
|
2164
|
+
}
|
|
2165
|
+
return ITERATION_SUPPORT;
|
|
2166
|
+
};
|
|
2167
|
+
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
2168
|
+
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
2169
|
+
var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2170
|
+
var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function(iterable) {
|
|
2171
|
+
NativePromiseConstructor$3.all(iterable).then(void 0, function() {
|
|
2172
|
+
});
|
|
2173
|
+
});
|
|
2174
|
+
var $$9 = _export;
|
|
2175
|
+
var call$4 = functionCall;
|
|
2176
|
+
var aCallable$3 = aCallable$a;
|
|
2177
|
+
var newPromiseCapabilityModule$6 = newPromiseCapability$2;
|
|
2178
|
+
var perform$4 = perform$6;
|
|
2179
|
+
var iterate$3 = iterate$5;
|
|
2180
|
+
var PROMISE_STATICS_INCORRECT_ITERATION$3 = promiseStaticsIncorrectIteration;
|
|
2181
|
+
$$9({
|
|
2182
|
+
target: "Promise",
|
|
2183
|
+
stat: true,
|
|
2184
|
+
forced: PROMISE_STATICS_INCORRECT_ITERATION$3
|
|
2185
|
+
}, {
|
|
2186
|
+
all: function all(iterable) {
|
|
2187
|
+
var C = this;
|
|
2188
|
+
var capability = newPromiseCapabilityModule$6.f(C);
|
|
2189
|
+
var resolve2 = capability.resolve;
|
|
2190
|
+
var reject2 = capability.reject;
|
|
2191
|
+
var result = perform$4(function() {
|
|
2192
|
+
var $promiseResolve = aCallable$3(C.resolve);
|
|
2193
|
+
var values = [];
|
|
2194
|
+
var counter2 = 0;
|
|
2195
|
+
var remaining = 1;
|
|
2196
|
+
iterate$3(iterable, function(promise2) {
|
|
2197
|
+
var index = counter2++;
|
|
2198
|
+
var alreadyCalled = false;
|
|
2199
|
+
remaining++;
|
|
2200
|
+
call$4($promiseResolve, C, promise2).then(function(value) {
|
|
2201
|
+
if (alreadyCalled)
|
|
2202
|
+
return;
|
|
2203
|
+
alreadyCalled = true;
|
|
2204
|
+
values[index] = value;
|
|
2205
|
+
--remaining || resolve2(values);
|
|
2206
|
+
}, reject2);
|
|
2207
|
+
});
|
|
2208
|
+
--remaining || resolve2(values);
|
|
2209
|
+
});
|
|
2210
|
+
if (result.error)
|
|
2211
|
+
reject2(result.value);
|
|
2212
|
+
return capability.promise;
|
|
2213
|
+
}
|
|
2214
|
+
});
|
|
2215
|
+
var $$8 = _export;
|
|
2216
|
+
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2217
|
+
var NativePromiseConstructor$2 = promiseNativeConstructor;
|
|
2218
|
+
NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
2219
|
+
$$8({
|
|
2220
|
+
target: "Promise",
|
|
2221
|
+
proto: true,
|
|
2222
|
+
forced: FORCED_PROMISE_CONSTRUCTOR$2,
|
|
2223
|
+
real: true
|
|
2224
|
+
}, {
|
|
2225
|
+
"catch": function(onRejected) {
|
|
2226
|
+
return this.then(void 0, onRejected);
|
|
2227
|
+
}
|
|
2228
|
+
});
|
|
2229
|
+
var $$7 = _export;
|
|
2230
|
+
var call$3 = functionCall;
|
|
2231
|
+
var aCallable$2 = aCallable$a;
|
|
2232
|
+
var newPromiseCapabilityModule$5 = newPromiseCapability$2;
|
|
2233
|
+
var perform$3 = perform$6;
|
|
2234
|
+
var iterate$2 = iterate$5;
|
|
2235
|
+
var PROMISE_STATICS_INCORRECT_ITERATION$2 = promiseStaticsIncorrectIteration;
|
|
2236
|
+
$$7({
|
|
2237
|
+
target: "Promise",
|
|
2238
|
+
stat: true,
|
|
2239
|
+
forced: PROMISE_STATICS_INCORRECT_ITERATION$2
|
|
2240
|
+
}, {
|
|
2241
|
+
race: function race(iterable) {
|
|
2242
|
+
var C = this;
|
|
2243
|
+
var capability = newPromiseCapabilityModule$5.f(C);
|
|
2244
|
+
var reject2 = capability.reject;
|
|
2245
|
+
var result = perform$3(function() {
|
|
2246
|
+
var $promiseResolve = aCallable$2(C.resolve);
|
|
2247
|
+
iterate$2(iterable, function(promise2) {
|
|
2248
|
+
call$3($promiseResolve, C, promise2).then(capability.resolve, reject2);
|
|
2249
|
+
});
|
|
2250
|
+
});
|
|
2251
|
+
if (result.error)
|
|
2252
|
+
reject2(result.value);
|
|
2253
|
+
return capability.promise;
|
|
2254
|
+
}
|
|
2255
|
+
});
|
|
2256
|
+
var $$6 = _export;
|
|
2257
|
+
var call$2 = functionCall;
|
|
2258
|
+
var newPromiseCapabilityModule$4 = newPromiseCapability$2;
|
|
2259
|
+
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2260
|
+
$$6({
|
|
2261
|
+
target: "Promise",
|
|
2262
|
+
stat: true,
|
|
2263
|
+
forced: FORCED_PROMISE_CONSTRUCTOR$1
|
|
2264
|
+
}, {
|
|
2265
|
+
reject: function reject(r) {
|
|
2266
|
+
var capability = newPromiseCapabilityModule$4.f(this);
|
|
2267
|
+
call$2(capability.reject, void 0, r);
|
|
2268
|
+
return capability.promise;
|
|
2269
|
+
}
|
|
2270
|
+
});
|
|
2271
|
+
var anObject = anObject$a;
|
|
2272
|
+
var isObject = isObject$9;
|
|
2273
|
+
var newPromiseCapability = newPromiseCapability$2;
|
|
2274
|
+
var promiseResolve$2 = function(C, x) {
|
|
2275
|
+
anObject(C);
|
|
2276
|
+
if (isObject(x) && x.constructor === C)
|
|
2277
|
+
return x;
|
|
2278
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
2279
|
+
var resolve2 = promiseCapability.resolve;
|
|
2280
|
+
resolve2(x);
|
|
2281
|
+
return promiseCapability.promise;
|
|
2282
|
+
};
|
|
2283
|
+
var $$5 = _export;
|
|
2284
|
+
var getBuiltIn$2 = getBuiltIn$8;
|
|
2285
|
+
var IS_PURE = isPure;
|
|
2286
|
+
var NativePromiseConstructor$1 = promiseNativeConstructor;
|
|
2287
|
+
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2288
|
+
var promiseResolve$1 = promiseResolve$2;
|
|
2289
|
+
var PromiseConstructorWrapper = getBuiltIn$2("Promise");
|
|
2290
|
+
var CHECK_WRAPPER = !FORCED_PROMISE_CONSTRUCTOR;
|
|
2291
|
+
$$5({
|
|
2292
|
+
target: "Promise",
|
|
2293
|
+
stat: true,
|
|
2294
|
+
forced: IS_PURE
|
|
2295
|
+
}, {
|
|
2296
|
+
resolve: function resolve(x) {
|
|
2297
|
+
return promiseResolve$1(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor$1 : this, x);
|
|
2298
|
+
}
|
|
2299
|
+
});
|
|
2300
|
+
var $$4 = _export;
|
|
2301
|
+
var call$1 = functionCall;
|
|
2302
|
+
var aCallable$1 = aCallable$a;
|
|
2303
|
+
var newPromiseCapabilityModule$3 = newPromiseCapability$2;
|
|
2304
|
+
var perform$2 = perform$6;
|
|
2305
|
+
var iterate$1 = iterate$5;
|
|
2306
|
+
var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
2307
|
+
$$4({
|
|
2308
|
+
target: "Promise",
|
|
2309
|
+
stat: true,
|
|
2310
|
+
forced: PROMISE_STATICS_INCORRECT_ITERATION$1
|
|
2311
|
+
}, {
|
|
2312
|
+
allSettled: function allSettled(iterable) {
|
|
2313
|
+
var C = this;
|
|
2314
|
+
var capability = newPromiseCapabilityModule$3.f(C);
|
|
2315
|
+
var resolve2 = capability.resolve;
|
|
2316
|
+
var reject2 = capability.reject;
|
|
2317
|
+
var result = perform$2(function() {
|
|
2318
|
+
var promiseResolve2 = aCallable$1(C.resolve);
|
|
2319
|
+
var values = [];
|
|
2320
|
+
var counter2 = 0;
|
|
2321
|
+
var remaining = 1;
|
|
2322
|
+
iterate$1(iterable, function(promise2) {
|
|
2323
|
+
var index = counter2++;
|
|
2324
|
+
var alreadyCalled = false;
|
|
2325
|
+
remaining++;
|
|
2326
|
+
call$1(promiseResolve2, C, promise2).then(function(value) {
|
|
2327
|
+
if (alreadyCalled)
|
|
2328
|
+
return;
|
|
2329
|
+
alreadyCalled = true;
|
|
2330
|
+
values[index] = {
|
|
2331
|
+
status: "fulfilled",
|
|
2332
|
+
value
|
|
2333
|
+
};
|
|
2334
|
+
--remaining || resolve2(values);
|
|
2335
|
+
}, function(error) {
|
|
2336
|
+
if (alreadyCalled)
|
|
2337
|
+
return;
|
|
2338
|
+
alreadyCalled = true;
|
|
2339
|
+
values[index] = {
|
|
2340
|
+
status: "rejected",
|
|
2341
|
+
reason: error
|
|
2342
|
+
};
|
|
2343
|
+
--remaining || resolve2(values);
|
|
2344
|
+
});
|
|
2345
|
+
});
|
|
2346
|
+
--remaining || resolve2(values);
|
|
2347
|
+
});
|
|
2348
|
+
if (result.error)
|
|
2349
|
+
reject2(result.value);
|
|
2350
|
+
return capability.promise;
|
|
2351
|
+
}
|
|
2352
|
+
});
|
|
2353
|
+
var $$3 = _export;
|
|
2354
|
+
var call = functionCall;
|
|
2355
|
+
var aCallable = aCallable$a;
|
|
2356
|
+
var getBuiltIn$1 = getBuiltIn$8;
|
|
2357
|
+
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2358
|
+
var perform$1 = perform$6;
|
|
2359
|
+
var iterate = iterate$5;
|
|
2360
|
+
var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
2361
|
+
var PROMISE_ANY_ERROR = "No one promise resolved";
|
|
2362
|
+
$$3({
|
|
2363
|
+
target: "Promise",
|
|
2364
|
+
stat: true,
|
|
2365
|
+
forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
2366
|
+
}, {
|
|
2367
|
+
any: function any(iterable) {
|
|
2368
|
+
var C = this;
|
|
2369
|
+
var AggregateError2 = getBuiltIn$1("AggregateError");
|
|
2370
|
+
var capability = newPromiseCapabilityModule$2.f(C);
|
|
2371
|
+
var resolve2 = capability.resolve;
|
|
2372
|
+
var reject2 = capability.reject;
|
|
2373
|
+
var result = perform$1(function() {
|
|
2374
|
+
var promiseResolve2 = aCallable(C.resolve);
|
|
2375
|
+
var errors = [];
|
|
2376
|
+
var counter2 = 0;
|
|
2377
|
+
var remaining = 1;
|
|
2378
|
+
var alreadyResolved = false;
|
|
2379
|
+
iterate(iterable, function(promise2) {
|
|
2380
|
+
var index = counter2++;
|
|
2381
|
+
var alreadyRejected = false;
|
|
2382
|
+
remaining++;
|
|
2383
|
+
call(promiseResolve2, C, promise2).then(function(value) {
|
|
2384
|
+
if (alreadyRejected || alreadyResolved)
|
|
2385
|
+
return;
|
|
2386
|
+
alreadyResolved = true;
|
|
2387
|
+
resolve2(value);
|
|
2388
|
+
}, function(error) {
|
|
2389
|
+
if (alreadyRejected || alreadyResolved)
|
|
2390
|
+
return;
|
|
2391
|
+
alreadyRejected = true;
|
|
2392
|
+
errors[index] = error;
|
|
2393
|
+
--remaining || reject2(new AggregateError2(errors, PROMISE_ANY_ERROR));
|
|
2394
|
+
});
|
|
2395
|
+
});
|
|
2396
|
+
--remaining || reject2(new AggregateError2(errors, PROMISE_ANY_ERROR));
|
|
2397
|
+
});
|
|
2398
|
+
if (result.error)
|
|
2399
|
+
reject2(result.value);
|
|
2400
|
+
return capability.promise;
|
|
2401
|
+
}
|
|
2402
|
+
});
|
|
2403
|
+
var $$2 = _export;
|
|
2404
|
+
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2405
|
+
var fails = fails$d;
|
|
2406
|
+
var getBuiltIn = getBuiltIn$8;
|
|
2407
|
+
var isCallable = isCallable$i;
|
|
2408
|
+
var speciesConstructor = speciesConstructor$2;
|
|
2409
|
+
var promiseResolve = promiseResolve$2;
|
|
2410
|
+
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2411
|
+
var NON_GENERIC = !!NativePromiseConstructor && fails(function() {
|
|
2412
|
+
NativePromisePrototype["finally"].call({
|
|
2413
|
+
then: function() {
|
|
2414
|
+
}
|
|
2415
|
+
}, function() {
|
|
2416
|
+
});
|
|
2417
|
+
});
|
|
2418
|
+
$$2({
|
|
2419
|
+
target: "Promise",
|
|
2420
|
+
proto: true,
|
|
2421
|
+
real: true,
|
|
2422
|
+
forced: NON_GENERIC
|
|
2423
|
+
}, {
|
|
2424
|
+
"finally": function(onFinally) {
|
|
2425
|
+
var C = speciesConstructor(this, getBuiltIn("Promise"));
|
|
2426
|
+
var isFunction = isCallable(onFinally);
|
|
2427
|
+
return this.then(isFunction ? function(x) {
|
|
2428
|
+
return promiseResolve(C, onFinally()).then(function() {
|
|
2429
|
+
return x;
|
|
2430
|
+
});
|
|
2431
|
+
} : onFinally, isFunction ? function(e) {
|
|
2432
|
+
return promiseResolve(C, onFinally()).then(function() {
|
|
2433
|
+
throw e;
|
|
2434
|
+
});
|
|
2435
|
+
} : onFinally);
|
|
2436
|
+
}
|
|
2437
|
+
});
|
|
2438
|
+
var uncurryThis = functionUncurryThis;
|
|
2439
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
2440
|
+
var toString$1 = toString$4;
|
|
2441
|
+
var requireObjectCoercible = requireObjectCoercible$3;
|
|
2442
|
+
var charAt$1 = uncurryThis("".charAt);
|
|
2443
|
+
var charCodeAt = uncurryThis("".charCodeAt);
|
|
2444
|
+
var stringSlice = uncurryThis("".slice);
|
|
2445
|
+
var createMethod = function(CONVERT_TO_STRING) {
|
|
2446
|
+
return function($this, pos) {
|
|
2447
|
+
var S = toString$1(requireObjectCoercible($this));
|
|
2448
|
+
var position = toIntegerOrInfinity(pos);
|
|
2449
|
+
var size = S.length;
|
|
2450
|
+
var first, second;
|
|
2451
|
+
if (position < 0 || position >= size)
|
|
2452
|
+
return CONVERT_TO_STRING ? "" : void 0;
|
|
2453
|
+
first = charCodeAt(S, position);
|
|
2454
|
+
return first < 55296 || first > 56319 || position + 1 === size || (second = charCodeAt(S, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt$1(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536;
|
|
2455
|
+
};
|
|
2456
|
+
};
|
|
2457
|
+
var stringMultibyte = {
|
|
2458
|
+
// `String.prototype.codePointAt` method
|
|
2459
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
2460
|
+
codeAt: createMethod(false),
|
|
2461
|
+
// `String.prototype.at` method
|
|
2462
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
2463
|
+
charAt: createMethod(true)
|
|
2464
|
+
};
|
|
2465
|
+
var charAt = stringMultibyte.charAt;
|
|
2466
|
+
var toString2 = toString$4;
|
|
2467
|
+
var InternalStateModule = internalState;
|
|
2468
|
+
var defineIterator = iteratorDefine;
|
|
2469
|
+
var createIterResultObject = createIterResultObject$2;
|
|
2470
|
+
var STRING_ITERATOR = "String Iterator";
|
|
2471
|
+
var setInternalState = InternalStateModule.set;
|
|
2472
|
+
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
|
|
2473
|
+
defineIterator(String, "String", function(iterated) {
|
|
2474
|
+
setInternalState(this, {
|
|
2475
|
+
type: STRING_ITERATOR,
|
|
2476
|
+
string: toString2(iterated),
|
|
2477
|
+
index: 0
|
|
2478
|
+
});
|
|
2479
|
+
}, function next() {
|
|
2480
|
+
var state = getInternalState(this);
|
|
2481
|
+
var string = state.string;
|
|
2482
|
+
var index = state.index;
|
|
2483
|
+
var point;
|
|
2484
|
+
if (index >= string.length)
|
|
2485
|
+
return createIterResultObject(void 0, true);
|
|
2486
|
+
point = charAt(string, index);
|
|
2487
|
+
state.index += point.length;
|
|
2488
|
+
return createIterResultObject(point, false);
|
|
2489
|
+
});
|
|
2490
|
+
var path = path$3;
|
|
2491
|
+
var promise$5 = path.Promise;
|
|
2492
|
+
var domIterables = {
|
|
2493
|
+
CSSRuleList: 0,
|
|
2494
|
+
CSSStyleDeclaration: 0,
|
|
2495
|
+
CSSValueList: 0,
|
|
2496
|
+
ClientRectList: 0,
|
|
2497
|
+
DOMRectList: 0,
|
|
2498
|
+
DOMStringList: 0,
|
|
2499
|
+
DOMTokenList: 1,
|
|
2500
|
+
DataTransferItemList: 0,
|
|
2501
|
+
FileList: 0,
|
|
2502
|
+
HTMLAllCollection: 0,
|
|
2503
|
+
HTMLCollection: 0,
|
|
2504
|
+
HTMLFormElement: 0,
|
|
2505
|
+
HTMLSelectElement: 0,
|
|
2506
|
+
MediaList: 0,
|
|
2507
|
+
MimeTypeArray: 0,
|
|
2508
|
+
NamedNodeMap: 0,
|
|
2509
|
+
NodeList: 1,
|
|
2510
|
+
PaintRequestList: 0,
|
|
2511
|
+
Plugin: 0,
|
|
2512
|
+
PluginArray: 0,
|
|
2513
|
+
SVGLengthList: 0,
|
|
2514
|
+
SVGNumberList: 0,
|
|
2515
|
+
SVGPathSegList: 0,
|
|
2516
|
+
SVGPointList: 0,
|
|
2517
|
+
SVGStringList: 0,
|
|
2518
|
+
SVGTransformList: 0,
|
|
2519
|
+
SourceBufferList: 0,
|
|
2520
|
+
StyleSheetList: 0,
|
|
2521
|
+
TextTrackCueList: 0,
|
|
2522
|
+
TextTrackList: 0,
|
|
2523
|
+
TouchList: 0
|
|
2524
|
+
};
|
|
2525
|
+
var DOMIterables = domIterables;
|
|
2526
|
+
var global$1 = global$i;
|
|
2527
|
+
var classof = classof$6;
|
|
2528
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
2529
|
+
var Iterators = iterators;
|
|
2530
|
+
var wellKnownSymbol = wellKnownSymbol$e;
|
|
2531
|
+
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
|
|
2532
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
2533
|
+
var Collection = global$1[COLLECTION_NAME];
|
|
2534
|
+
var CollectionPrototype = Collection && Collection.prototype;
|
|
2535
|
+
if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {
|
|
2536
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
2537
|
+
}
|
|
2538
|
+
Iterators[COLLECTION_NAME] = Iterators.Array;
|
|
2539
|
+
}
|
|
2540
|
+
var parent$2 = promise$5;
|
|
2541
|
+
var promise$4 = parent$2;
|
|
2542
|
+
var $$1 = _export;
|
|
2543
|
+
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2544
|
+
$$1({
|
|
2545
|
+
target: "Promise",
|
|
2546
|
+
stat: true
|
|
2547
|
+
}, {
|
|
2548
|
+
withResolvers: function withResolvers() {
|
|
2549
|
+
var promiseCapability = newPromiseCapabilityModule$1.f(this);
|
|
2550
|
+
return {
|
|
2551
|
+
promise: promiseCapability.promise,
|
|
2552
|
+
resolve: promiseCapability.resolve,
|
|
2553
|
+
reject: promiseCapability.reject
|
|
2554
|
+
};
|
|
2555
|
+
}
|
|
2556
|
+
});
|
|
2557
|
+
var parent$1 = promise$4;
|
|
2558
|
+
var promise$3 = parent$1;
|
|
2559
|
+
var $ = _export;
|
|
2560
|
+
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2561
|
+
var perform = perform$6;
|
|
2562
|
+
$({
|
|
2563
|
+
target: "Promise",
|
|
2564
|
+
stat: true,
|
|
2565
|
+
forced: true
|
|
2566
|
+
}, {
|
|
2567
|
+
"try": function(callbackfn) {
|
|
2568
|
+
var promiseCapability = newPromiseCapabilityModule.f(this);
|
|
2569
|
+
var result = perform(callbackfn);
|
|
2570
|
+
(result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);
|
|
2571
|
+
return promiseCapability.promise;
|
|
2572
|
+
}
|
|
2573
|
+
});
|
|
2574
|
+
var parent = promise$3;
|
|
2575
|
+
var promise$2 = parent;
|
|
2576
|
+
var promise$1 = promise$2;
|
|
2577
|
+
var promise = promise$1;
|
|
2578
|
+
const _Promise = /* @__PURE__ */ getDefaultExportFromCjs(promise);
|
|
114
2579
|
function merge(target) {
|
|
115
2580
|
for (let i = 1, j = arguments.length; i < j; i++) {
|
|
116
2581
|
let source = arguments[i] || {};
|
|
@@ -125,32 +2590,35 @@ function merge(target) {
|
|
|
125
2590
|
}
|
|
126
2591
|
return target;
|
|
127
2592
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
var
|
|
132
|
-
if ((
|
|
2593
|
+
var ConfirmConstructor = Vue2.extend(NfConfirm);
|
|
2594
|
+
var currentMsg = null;
|
|
2595
|
+
var Confirm = function Confirm2(options) {
|
|
2596
|
+
var _Vue2$prototype;
|
|
2597
|
+
if ((_Vue2$prototype = Vue2.prototype) !== null && _Vue2$prototype !== void 0 && _Vue2$prototype.$isServer)
|
|
133
2598
|
return;
|
|
134
2599
|
options = merge({}, options);
|
|
135
|
-
|
|
2600
|
+
var instance = new ConfirmConstructor({
|
|
136
2601
|
data: options
|
|
137
2602
|
});
|
|
138
2603
|
instance.callback = defaultCallBack;
|
|
139
2604
|
instance.$mount();
|
|
140
2605
|
document.body.appendChild(instance.$el);
|
|
141
2606
|
instance.visible = true;
|
|
142
|
-
return new
|
|
143
|
-
currentMsg = {
|
|
2607
|
+
return new _Promise(function(resolve2, reject2) {
|
|
2608
|
+
currentMsg = {
|
|
2609
|
+
resolve: resolve2,
|
|
2610
|
+
reject: reject2
|
|
2611
|
+
};
|
|
144
2612
|
});
|
|
145
2613
|
};
|
|
146
|
-
|
|
2614
|
+
var defaultCallBack = function defaultCallBack2(action, done) {
|
|
147
2615
|
if (action === "confirm") {
|
|
148
2616
|
currentMsg.resolve(done);
|
|
149
2617
|
} else {
|
|
150
2618
|
currentMsg.reject();
|
|
151
2619
|
}
|
|
152
2620
|
};
|
|
153
|
-
NfConfirm.install = (app)
|
|
2621
|
+
NfConfirm.install = function(app) {
|
|
154
2622
|
app.component("nf-confirm", NfConfirm);
|
|
155
2623
|
app.prototype.$openConfirm = Confirm;
|
|
156
2624
|
};
|