source: src/mapservice-webclient/dist/webclient/polyfills-es2015.js@ 8721817

debian/bullseye
Last change on this file since 8721817 was 2edb5e7, checked in by Joachim Langenbach <joachim.langenbach@…>, 6 years ago

Added build mapservice-webclient

  • Property mode set to 100644
File size: 248.0 KB
Line 
1(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["polyfills"],{
2
3/***/ "+lvF":
4/*!*************************************************************!*\
5 !*** ./node_modules/core-js/modules/_function-to-string.js ***!
6 \*************************************************************/
7/*! no static exports found */
8/***/ (function(module, exports, __webpack_require__) {
9
10module.exports = __webpack_require__(/*! ./_shared */ "VTer")('native-function-to-string', Function.toString);
11
12
13/***/ }),
14
15/***/ "+rLv":
16/*!***********************************************!*\
17 !*** ./node_modules/core-js/modules/_html.js ***!
18 \***********************************************/
19/*! no static exports found */
20/***/ (function(module, exports, __webpack_require__) {
21
22var document = __webpack_require__(/*! ./_global */ "dyZX").document;
23module.exports = document && document.documentElement;
24
25
26/***/ }),
27
28/***/ "0/R4":
29/*!****************************************************!*\
30 !*** ./node_modules/core-js/modules/_is-object.js ***!
31 \****************************************************/
32/*! no static exports found */
33/***/ (function(module, exports) {
34
35module.exports = function (it) {
36 return typeof it === 'object' ? it !== null : typeof it === 'function';
37};
38
39
40/***/ }),
41
42/***/ "0YWM":
43/*!*********************************************************!*\
44 !*** ./node_modules/core-js/modules/es6.reflect.get.js ***!
45 \*********************************************************/
46/*! no static exports found */
47/***/ (function(module, exports, __webpack_require__) {
48
49// 26.1.6 Reflect.get(target, propertyKey [, receiver])
50var gOPD = __webpack_require__(/*! ./_object-gopd */ "EemH");
51var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "OP3Y");
52var has = __webpack_require__(/*! ./_has */ "aagx");
53var $export = __webpack_require__(/*! ./_export */ "XKFU");
54var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
55var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
56
57function get(target, propertyKey /* , receiver */) {
58 var receiver = arguments.length < 3 ? target : arguments[2];
59 var desc, proto;
60 if (anObject(target) === receiver) return target[propertyKey];
61 if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
62 ? desc.value
63 : desc.get !== undefined
64 ? desc.get.call(receiver)
65 : undefined;
66 if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
67}
68
69$export($export.S, 'Reflect', { get: get });
70
71
72/***/ }),
73
74/***/ "1TsA":
75/*!****************************************************!*\
76 !*** ./node_modules/core-js/modules/_iter-step.js ***!
77 \****************************************************/
78/*! no static exports found */
79/***/ (function(module, exports) {
80
81module.exports = function (done, value) {
82 return { value: value, done: !!done };
83};
84
85
86/***/ }),
87
88/***/ 2:
89/*!********************************!*\
90 !*** multi ./src/polyfills.ts ***!
91 \********************************/
92/*! no static exports found */
93/***/ (function(module, exports, __webpack_require__) {
94
95module.exports = __webpack_require__(/*! /home/joachim/gnuboat/src/mapservice-webclient/src/polyfills.ts */"hN/g");
96
97
98/***/ }),
99
100/***/ "2OiF":
101/*!*****************************************************!*\
102 !*** ./node_modules/core-js/modules/_a-function.js ***!
103 \*****************************************************/
104/*! no static exports found */
105/***/ (function(module, exports) {
106
107module.exports = function (it) {
108 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
109 return it;
110};
111
112
113/***/ }),
114
115/***/ "3Lyj":
116/*!*******************************************************!*\
117 !*** ./node_modules/core-js/modules/_redefine-all.js ***!
118 \*******************************************************/
119/*! no static exports found */
120/***/ (function(module, exports, __webpack_require__) {
121
122var redefine = __webpack_require__(/*! ./_redefine */ "KroJ");
123module.exports = function (target, src, safe) {
124 for (var key in src) redefine(target, key, src[key], safe);
125 return target;
126};
127
128
129/***/ }),
130
131/***/ "3xty":
132/*!***********************************************************!*\
133 !*** ./node_modules/core-js/modules/es6.reflect.apply.js ***!
134 \***********************************************************/
135/*! no static exports found */
136/***/ (function(module, exports, __webpack_require__) {
137
138// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
139var $export = __webpack_require__(/*! ./_export */ "XKFU");
140var aFunction = __webpack_require__(/*! ./_a-function */ "2OiF");
141var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
142var rApply = (__webpack_require__(/*! ./_global */ "dyZX").Reflect || {}).apply;
143var fApply = Function.apply;
144// MS Edge argumentsList argument is optional
145$export($export.S + $export.F * !__webpack_require__(/*! ./_fails */ "eeVq")(function () {
146 rApply(function () { /* empty */ });
147}), 'Reflect', {
148 apply: function apply(target, thisArgument, argumentsList) {
149 var T = aFunction(target);
150 var L = anObject(argumentsList);
151 return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L);
152 }
153});
154
155
156/***/ }),
157
158/***/ "45Tv":
159/*!******************************************************************!*\
160 !*** ./node_modules/core-js/modules/es7.reflect.get-metadata.js ***!
161 \******************************************************************/
162/*! no static exports found */
163/***/ (function(module, exports, __webpack_require__) {
164
165var metadata = __webpack_require__(/*! ./_metadata */ "N6cJ");
166var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
167var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "OP3Y");
168var ordinaryHasOwnMetadata = metadata.has;
169var ordinaryGetOwnMetadata = metadata.get;
170var toMetaKey = metadata.key;
171
172var ordinaryGetMetadata = function (MetadataKey, O, P) {
173 var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
174 if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P);
175 var parent = getPrototypeOf(O);
176 return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;
177};
178
179metadata.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {
180 return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
181} });
182
183
184/***/ }),
185
186/***/ "49D4":
187/*!*********************************************************************!*\
188 !*** ./node_modules/core-js/modules/es7.reflect.define-metadata.js ***!
189 \*********************************************************************/
190/*! no static exports found */
191/***/ (function(module, exports, __webpack_require__) {
192
193var metadata = __webpack_require__(/*! ./_metadata */ "N6cJ");
194var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
195var toMetaKey = metadata.key;
196var ordinaryDefineOwnMetadata = metadata.set;
197
198metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) {
199 ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));
200} });
201
202
203/***/ }),
204
205/***/ "4LiD":
206/*!*****************************************************!*\
207 !*** ./node_modules/core-js/modules/_collection.js ***!
208 \*****************************************************/
209/*! no static exports found */
210/***/ (function(module, exports, __webpack_require__) {
211
212"use strict";
213
214var global = __webpack_require__(/*! ./_global */ "dyZX");
215var $export = __webpack_require__(/*! ./_export */ "XKFU");
216var redefine = __webpack_require__(/*! ./_redefine */ "KroJ");
217var redefineAll = __webpack_require__(/*! ./_redefine-all */ "3Lyj");
218var meta = __webpack_require__(/*! ./_meta */ "Z6vF");
219var forOf = __webpack_require__(/*! ./_for-of */ "SlkY");
220var anInstance = __webpack_require__(/*! ./_an-instance */ "9gX7");
221var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
222var fails = __webpack_require__(/*! ./_fails */ "eeVq");
223var $iterDetect = __webpack_require__(/*! ./_iter-detect */ "XMVh");
224var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "fyDq");
225var inheritIfRequired = __webpack_require__(/*! ./_inherit-if-required */ "Xbzi");
226
227module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
228 var Base = global[NAME];
229 var C = Base;
230 var ADDER = IS_MAP ? 'set' : 'add';
231 var proto = C && C.prototype;
232 var O = {};
233 var fixMethod = function (KEY) {
234 var fn = proto[KEY];
235 redefine(proto, KEY,
236 KEY == 'delete' ? function (a) {
237 return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
238 } : KEY == 'has' ? function has(a) {
239 return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
240 } : KEY == 'get' ? function get(a) {
241 return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);
242 } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }
243 : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }
244 );
245 };
246 if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
247 new C().entries().next();
248 }))) {
249 // create collection constructor
250 C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
251 redefineAll(C.prototype, methods);
252 meta.NEED = true;
253 } else {
254 var instance = new C();
255 // early implementations not supports chaining
256 var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
257 // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
258 var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
259 // most early implementations doesn't supports iterables, most modern - not close it correctly
260 var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new
261 // for early implementations -0 and +0 not the same
262 var BUGGY_ZERO = !IS_WEAK && fails(function () {
263 // V8 ~ Chromium 42- fails only with 5+ elements
264 var $instance = new C();
265 var index = 5;
266 while (index--) $instance[ADDER](index, index);
267 return !$instance.has(-0);
268 });
269 if (!ACCEPT_ITERABLES) {
270 C = wrapper(function (target, iterable) {
271 anInstance(target, C, NAME);
272 var that = inheritIfRequired(new Base(), target, C);
273 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
274 return that;
275 });
276 C.prototype = proto;
277 proto.constructor = C;
278 }
279 if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
280 fixMethod('delete');
281 fixMethod('has');
282 IS_MAP && fixMethod('get');
283 }
284 if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
285 // weak collections should not contains .clear method
286 if (IS_WEAK && proto.clear) delete proto.clear;
287 }
288
289 setToStringTag(C, NAME);
290
291 O[NAME] = C;
292 $export($export.G + $export.W + $export.F * (C != Base), O);
293
294 if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
295
296 return C;
297};
298
299
300/***/ }),
301
302/***/ "4R4u":
303/*!********************************************************!*\
304 !*** ./node_modules/core-js/modules/_enum-bug-keys.js ***!
305 \********************************************************/
306/*! no static exports found */
307/***/ (function(module, exports) {
308
309// IE 8- don't enum bug keys
310module.exports = (
311 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
312).split(',');
313
314
315/***/ }),
316
317/***/ "694e":
318/*!*********************************************************************************!*\
319 !*** ./node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js ***!
320 \*********************************************************************************/
321/*! no static exports found */
322/***/ (function(module, exports, __webpack_require__) {
323
324// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
325var gOPD = __webpack_require__(/*! ./_object-gopd */ "EemH");
326var $export = __webpack_require__(/*! ./_export */ "XKFU");
327var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
328
329$export($export.S, 'Reflect', {
330 getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
331 return gOPD.f(anObject(target), propertyKey);
332 }
333});
334
335
336/***/ }),
337
338/***/ "6FMO":
339/*!********************************************************************!*\
340 !*** ./node_modules/core-js/modules/_array-species-constructor.js ***!
341 \********************************************************************/
342/*! no static exports found */
343/***/ (function(module, exports, __webpack_require__) {
344
345var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
346var isArray = __webpack_require__(/*! ./_is-array */ "EWmC");
347var SPECIES = __webpack_require__(/*! ./_wks */ "K0xU")('species');
348
349module.exports = function (original) {
350 var C;
351 if (isArray(original)) {
352 C = original.constructor;
353 // cross-realm fallback
354 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
355 if (isObject(C)) {
356 C = C[SPECIES];
357 if (C === null) C = undefined;
358 }
359 } return C === undefined ? Array : C;
360};
361
362
363/***/ }),
364
365/***/ "7Dlh":
366/*!**********************************************************************!*\
367 !*** ./node_modules/core-js/modules/es7.reflect.has-own-metadata.js ***!
368 \**********************************************************************/
369/*! no static exports found */
370/***/ (function(module, exports, __webpack_require__) {
371
372var metadata = __webpack_require__(/*! ./_metadata */ "N6cJ");
373var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
374var ordinaryHasOwnMetadata = metadata.has;
375var toMetaKey = metadata.key;
376
377metadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {
378 return ordinaryHasOwnMetadata(metadataKey, anObject(target)
379 , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
380} });
381
382
383/***/ }),
384
385/***/ "8MEG":
386/*!***********************************************!*\
387 !*** ./node_modules/core-js/modules/_bind.js ***!
388 \***********************************************/
389/*! no static exports found */
390/***/ (function(module, exports, __webpack_require__) {
391
392"use strict";
393
394var aFunction = __webpack_require__(/*! ./_a-function */ "2OiF");
395var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
396var invoke = __webpack_require__(/*! ./_invoke */ "MfQN");
397var arraySlice = [].slice;
398var factories = {};
399
400var construct = function (F, len, args) {
401 if (!(len in factories)) {
402 for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
403 // eslint-disable-next-line no-new-func
404 factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
405 } return factories[len](F, args);
406};
407
408module.exports = Function.bind || function bind(that /* , ...args */) {
409 var fn = aFunction(this);
410 var partArgs = arraySlice.call(arguments, 1);
411 var bound = function (/* args... */) {
412 var args = partArgs.concat(arraySlice.call(arguments));
413 return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
414 };
415 if (isObject(fn.prototype)) bound.prototype = fn.prototype;
416 return bound;
417};
418
419
420/***/ }),
421
422/***/ "9AAn":
423/*!*************************************************!*\
424 !*** ./node_modules/core-js/modules/es6.map.js ***!
425 \*************************************************/
426/*! no static exports found */
427/***/ (function(module, exports, __webpack_require__) {
428
429"use strict";
430
431var strong = __webpack_require__(/*! ./_collection-strong */ "wmvG");
432var validate = __webpack_require__(/*! ./_validate-collection */ "s5qY");
433var MAP = 'Map';
434
435// 23.1 Map Objects
436module.exports = __webpack_require__(/*! ./_collection */ "4LiD")(MAP, function (get) {
437 return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
438}, {
439 // 23.1.3.6 Map.prototype.get(key)
440 get: function get(key) {
441 var entry = strong.getEntry(validate(this, MAP), key);
442 return entry && entry.v;
443 },
444 // 23.1.3.9 Map.prototype.set(key, value)
445 set: function set(key, value) {
446 return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
447 }
448}, strong, true);
449
450
451/***/ }),
452
453/***/ "9gX7":
454/*!******************************************************!*\
455 !*** ./node_modules/core-js/modules/_an-instance.js ***!
456 \******************************************************/
457/*! no static exports found */
458/***/ (function(module, exports) {
459
460module.exports = function (it, Constructor, name, forbiddenField) {
461 if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
462 throw TypeError(name + ': incorrect invocation!');
463 } return it;
464};
465
466
467/***/ }),
468
469/***/ "9rMk":
470/*!*********************************************************!*\
471 !*** ./node_modules/core-js/modules/es6.reflect.has.js ***!
472 \*********************************************************/
473/*! no static exports found */
474/***/ (function(module, exports, __webpack_require__) {
475
476// 26.1.9 Reflect.has(target, propertyKey)
477var $export = __webpack_require__(/*! ./_export */ "XKFU");
478
479$export($export.S, 'Reflect', {
480 has: function has(target, propertyKey) {
481 return propertyKey in target;
482 }
483});
484
485
486/***/ }),
487
488/***/ "Afnz":
489/*!******************************************************!*\
490 !*** ./node_modules/core-js/modules/_iter-define.js ***!
491 \******************************************************/
492/*! no static exports found */
493/***/ (function(module, exports, __webpack_require__) {
494
495"use strict";
496
497var LIBRARY = __webpack_require__(/*! ./_library */ "LQAc");
498var $export = __webpack_require__(/*! ./_export */ "XKFU");
499var redefine = __webpack_require__(/*! ./_redefine */ "KroJ");
500var hide = __webpack_require__(/*! ./_hide */ "Mukb");
501var Iterators = __webpack_require__(/*! ./_iterators */ "hPIQ");
502var $iterCreate = __webpack_require__(/*! ./_iter-create */ "QaDb");
503var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "fyDq");
504var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "OP3Y");
505var ITERATOR = __webpack_require__(/*! ./_wks */ "K0xU")('iterator');
506var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
507var FF_ITERATOR = '@@iterator';
508var KEYS = 'keys';
509var VALUES = 'values';
510
511var returnThis = function () { return this; };
512
513module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
514 $iterCreate(Constructor, NAME, next);
515 var getMethod = function (kind) {
516 if (!BUGGY && kind in proto) return proto[kind];
517 switch (kind) {
518 case KEYS: return function keys() { return new Constructor(this, kind); };
519 case VALUES: return function values() { return new Constructor(this, kind); };
520 } return function entries() { return new Constructor(this, kind); };
521 };
522 var TAG = NAME + ' Iterator';
523 var DEF_VALUES = DEFAULT == VALUES;
524 var VALUES_BUG = false;
525 var proto = Base.prototype;
526 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
527 var $default = $native || getMethod(DEFAULT);
528 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
529 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
530 var methods, key, IteratorPrototype;
531 // Fix native
532 if ($anyNative) {
533 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
534 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
535 // Set @@toStringTag to native iterators
536 setToStringTag(IteratorPrototype, TAG, true);
537 // fix for some old engines
538 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
539 }
540 }
541 // fix Array#{values, @@iterator}.name in V8 / FF
542 if (DEF_VALUES && $native && $native.name !== VALUES) {
543 VALUES_BUG = true;
544 $default = function values() { return $native.call(this); };
545 }
546 // Define iterator
547 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
548 hide(proto, ITERATOR, $default);
549 }
550 // Plug for library
551 Iterators[NAME] = $default;
552 Iterators[TAG] = returnThis;
553 if (DEFAULT) {
554 methods = {
555 values: DEF_VALUES ? $default : getMethod(VALUES),
556 keys: IS_SET ? $default : getMethod(KEYS),
557 entries: $entries
558 };
559 if (FORCED) for (key in methods) {
560 if (!(key in proto)) redefine(proto, key, methods[key]);
561 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
562 }
563 return methods;
564};
565
566
567/***/ }),
568
569/***/ "BqfV":
570/*!**********************************************************************!*\
571 !*** ./node_modules/core-js/modules/es7.reflect.get-own-metadata.js ***!
572 \**********************************************************************/
573/*! no static exports found */
574/***/ (function(module, exports, __webpack_require__) {
575
576var metadata = __webpack_require__(/*! ./_metadata */ "N6cJ");
577var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
578var ordinaryGetOwnMetadata = metadata.get;
579var toMetaKey = metadata.key;
580
581metadata.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
582 return ordinaryGetOwnMetadata(metadataKey, anObject(target)
583 , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
584} });
585
586
587/***/ }),
588
589/***/ "CkkT":
590/*!********************************************************!*\
591 !*** ./node_modules/core-js/modules/_array-methods.js ***!
592 \********************************************************/
593/*! no static exports found */
594/***/ (function(module, exports, __webpack_require__) {
595
596// 0 -> Array#forEach
597// 1 -> Array#map
598// 2 -> Array#filter
599// 3 -> Array#some
600// 4 -> Array#every
601// 5 -> Array#find
602// 6 -> Array#findIndex
603var ctx = __webpack_require__(/*! ./_ctx */ "m0Pp");
604var IObject = __webpack_require__(/*! ./_iobject */ "Ymqv");
605var toObject = __webpack_require__(/*! ./_to-object */ "S/j/");
606var toLength = __webpack_require__(/*! ./_to-length */ "ne8i");
607var asc = __webpack_require__(/*! ./_array-species-create */ "zRwo");
608module.exports = function (TYPE, $create) {
609 var IS_MAP = TYPE == 1;
610 var IS_FILTER = TYPE == 2;
611 var IS_SOME = TYPE == 3;
612 var IS_EVERY = TYPE == 4;
613 var IS_FIND_INDEX = TYPE == 6;
614 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
615 var create = $create || asc;
616 return function ($this, callbackfn, that) {
617 var O = toObject($this);
618 var self = IObject(O);
619 var f = ctx(callbackfn, that, 3);
620 var length = toLength(self.length);
621 var index = 0;
622 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
623 var val, res;
624 for (;length > index; index++) if (NO_HOLES || index in self) {
625 val = self[index];
626 res = f(val, index, O);
627 if (TYPE) {
628 if (IS_MAP) result[index] = res; // map
629 else if (res) switch (TYPE) {
630 case 3: return true; // some
631 case 5: return val; // find
632 case 6: return index; // findIndex
633 case 2: result.push(val); // filter
634 } else if (IS_EVERY) return false; // every
635 }
636 }
637 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
638 };
639};
640
641
642/***/ }),
643
644/***/ "DVgA":
645/*!******************************************************!*\
646 !*** ./node_modules/core-js/modules/_object-keys.js ***!
647 \******************************************************/
648/*! no static exports found */
649/***/ (function(module, exports, __webpack_require__) {
650
651// 19.1.2.14 / 15.2.3.14 Object.keys(O)
652var $keys = __webpack_require__(/*! ./_object-keys-internal */ "zhAb");
653var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "4R4u");
654
655module.exports = Object.keys || function keys(O) {
656 return $keys(O, enumBugKeys);
657};
658
659
660/***/ }),
661
662/***/ "EK0E":
663/*!******************************************************!*\
664 !*** ./node_modules/core-js/modules/es6.weak-map.js ***!
665 \******************************************************/
666/*! no static exports found */
667/***/ (function(module, exports, __webpack_require__) {
668
669"use strict";
670
671var global = __webpack_require__(/*! ./_global */ "dyZX");
672var each = __webpack_require__(/*! ./_array-methods */ "CkkT")(0);
673var redefine = __webpack_require__(/*! ./_redefine */ "KroJ");
674var meta = __webpack_require__(/*! ./_meta */ "Z6vF");
675var assign = __webpack_require__(/*! ./_object-assign */ "czNK");
676var weak = __webpack_require__(/*! ./_collection-weak */ "ZD67");
677var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
678var validate = __webpack_require__(/*! ./_validate-collection */ "s5qY");
679var NATIVE_WEAK_MAP = __webpack_require__(/*! ./_validate-collection */ "s5qY");
680var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
681var WEAK_MAP = 'WeakMap';
682var getWeak = meta.getWeak;
683var isExtensible = Object.isExtensible;
684var uncaughtFrozenStore = weak.ufstore;
685var InternalMap;
686
687var wrapper = function (get) {
688 return function WeakMap() {
689 return get(this, arguments.length > 0 ? arguments[0] : undefined);
690 };
691};
692
693var methods = {
694 // 23.3.3.3 WeakMap.prototype.get(key)
695 get: function get(key) {
696 if (isObject(key)) {
697 var data = getWeak(key);
698 if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
699 return data ? data[this._i] : undefined;
700 }
701 },
702 // 23.3.3.5 WeakMap.prototype.set(key, value)
703 set: function set(key, value) {
704 return weak.def(validate(this, WEAK_MAP), key, value);
705 }
706};
707
708// 23.3 WeakMap Objects
709var $WeakMap = module.exports = __webpack_require__(/*! ./_collection */ "4LiD")(WEAK_MAP, wrapper, methods, weak, true, true);
710
711// IE11 WeakMap frozen keys fix
712if (NATIVE_WEAK_MAP && IS_IE11) {
713 InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
714 assign(InternalMap.prototype, methods);
715 meta.NEED = true;
716 each(['delete', 'has', 'get', 'set'], function (key) {
717 var proto = $WeakMap.prototype;
718 var method = proto[key];
719 redefine(proto, key, function (a, b) {
720 // store frozen objects on internal weakmap shim
721 if (isObject(a) && !isExtensible(a)) {
722 if (!this._f) this._f = new InternalMap();
723 var result = this._f[key](a, b);
724 return key == 'set' ? this : result;
725 // store all the rest on native weakmap
726 } return method.call(this, a, b);
727 });
728 });
729}
730
731
732/***/ }),
733
734/***/ "EWmC":
735/*!***************************************************!*\
736 !*** ./node_modules/core-js/modules/_is-array.js ***!
737 \***************************************************/
738/*! no static exports found */
739/***/ (function(module, exports, __webpack_require__) {
740
741// 7.2.2 IsArray(argument)
742var cof = __webpack_require__(/*! ./_cof */ "LZWt");
743module.exports = Array.isArray || function isArray(arg) {
744 return cof(arg) == 'Array';
745};
746
747
748/***/ }),
749
750/***/ "EemH":
751/*!******************************************************!*\
752 !*** ./node_modules/core-js/modules/_object-gopd.js ***!
753 \******************************************************/
754/*! no static exports found */
755/***/ (function(module, exports, __webpack_require__) {
756
757var pIE = __webpack_require__(/*! ./_object-pie */ "UqcF");
758var createDesc = __webpack_require__(/*! ./_property-desc */ "RjD/");
759var toIObject = __webpack_require__(/*! ./_to-iobject */ "aCFj");
760var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "apmT");
761var has = __webpack_require__(/*! ./_has */ "aagx");
762var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "xpql");
763var gOPD = Object.getOwnPropertyDescriptor;
764
765exports.f = __webpack_require__(/*! ./_descriptors */ "nh4g") ? gOPD : function getOwnPropertyDescriptor(O, P) {
766 O = toIObject(O);
767 P = toPrimitive(P, true);
768 if (IE8_DOM_DEFINE) try {
769 return gOPD(O, P);
770 } catch (e) { /* empty */ }
771 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
772};
773
774
775/***/ }),
776
777/***/ "FJW5":
778/*!*****************************************************!*\
779 !*** ./node_modules/core-js/modules/_object-dps.js ***!
780 \*****************************************************/
781/*! no static exports found */
782/***/ (function(module, exports, __webpack_require__) {
783
784var dP = __webpack_require__(/*! ./_object-dp */ "hswa");
785var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
786var getKeys = __webpack_require__(/*! ./_object-keys */ "DVgA");
787
788module.exports = __webpack_require__(/*! ./_descriptors */ "nh4g") ? Object.defineProperties : function defineProperties(O, Properties) {
789 anObject(O);
790 var keys = getKeys(Properties);
791 var length = keys.length;
792 var i = 0;
793 var P;
794 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
795 return O;
796};
797
798
799/***/ }),
800
801/***/ "FZcq":
802/*!*********************************************!*\
803 !*** ./node_modules/core-js/es7/reflect.js ***!
804 \*********************************************/
805/*! no static exports found */
806/***/ (function(module, exports, __webpack_require__) {
807
808__webpack_require__(/*! ../modules/es7.reflect.define-metadata */ "49D4");
809__webpack_require__(/*! ../modules/es7.reflect.delete-metadata */ "zq+C");
810__webpack_require__(/*! ../modules/es7.reflect.get-metadata */ "45Tv");
811__webpack_require__(/*! ../modules/es7.reflect.get-metadata-keys */ "uAtd");
812__webpack_require__(/*! ../modules/es7.reflect.get-own-metadata */ "BqfV");
813__webpack_require__(/*! ../modules/es7.reflect.get-own-metadata-keys */ "fN/3");
814__webpack_require__(/*! ../modules/es7.reflect.has-metadata */ "iW+S");
815__webpack_require__(/*! ../modules/es7.reflect.has-own-metadata */ "7Dlh");
816__webpack_require__(/*! ../modules/es7.reflect.metadata */ "Opxb");
817module.exports = __webpack_require__(/*! ../modules/_core */ "g3g5").Reflect;
818
819
820/***/ }),
821
822/***/ "H6hf":
823/*!****************************************************!*\
824 !*** ./node_modules/core-js/modules/_iter-call.js ***!
825 \****************************************************/
826/*! no static exports found */
827/***/ (function(module, exports, __webpack_require__) {
828
829// call something on iterator step with safe closing on error
830var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
831module.exports = function (iterator, fn, value, entries) {
832 try {
833 return entries ? fn(anObject(value)[0], value[1]) : fn(value);
834 // 7.4.6 IteratorClose(iterator, completion)
835 } catch (e) {
836 var ret = iterator['return'];
837 if (ret !== undefined) anObject(ret.call(iterator));
838 throw e;
839 }
840};
841
842
843/***/ }),
844
845/***/ "I5cv":
846/*!***************************************************************!*\
847 !*** ./node_modules/core-js/modules/es6.reflect.construct.js ***!
848 \***************************************************************/
849/*! no static exports found */
850/***/ (function(module, exports, __webpack_require__) {
851
852// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
853var $export = __webpack_require__(/*! ./_export */ "XKFU");
854var create = __webpack_require__(/*! ./_object-create */ "Kuth");
855var aFunction = __webpack_require__(/*! ./_a-function */ "2OiF");
856var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
857var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
858var fails = __webpack_require__(/*! ./_fails */ "eeVq");
859var bind = __webpack_require__(/*! ./_bind */ "8MEG");
860var rConstruct = (__webpack_require__(/*! ./_global */ "dyZX").Reflect || {}).construct;
861
862// MS Edge supports only 2 arguments and argumentsList argument is optional
863// FF Nightly sets third argument as `new.target`, but does not create `this` from it
864var NEW_TARGET_BUG = fails(function () {
865 function F() { /* empty */ }
866 return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
867});
868var ARGS_BUG = !fails(function () {
869 rConstruct(function () { /* empty */ });
870});
871
872$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
873 construct: function construct(Target, args /* , newTarget */) {
874 aFunction(Target);
875 anObject(args);
876 var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
877 if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
878 if (Target == newTarget) {
879 // w/o altered newTarget, optimization for 0-4 arguments
880 switch (args.length) {
881 case 0: return new Target();
882 case 1: return new Target(args[0]);
883 case 2: return new Target(args[0], args[1]);
884 case 3: return new Target(args[0], args[1], args[2]);
885 case 4: return new Target(args[0], args[1], args[2], args[3]);
886 }
887 // w/o altered newTarget, lot of arguments case
888 var $args = [null];
889 $args.push.apply($args, args);
890 return new (bind.apply(Target, $args))();
891 }
892 // with altered newTarget, not support built-in constructors
893 var proto = newTarget.prototype;
894 var instance = create(isObject(proto) ? proto : Object.prototype);
895 var result = Function.apply.call(Target, instance, args);
896 return isObject(result) ? result : instance;
897 }
898});
899
900
901/***/ }),
902
903/***/ "I8a+":
904/*!**************************************************!*\
905 !*** ./node_modules/core-js/modules/_classof.js ***!
906 \**************************************************/
907/*! no static exports found */
908/***/ (function(module, exports, __webpack_require__) {
909
910// getting tag from 19.1.3.6 Object.prototype.toString()
911var cof = __webpack_require__(/*! ./_cof */ "LZWt");
912var TAG = __webpack_require__(/*! ./_wks */ "K0xU")('toStringTag');
913// ES3 wrong here
914var ARG = cof(function () { return arguments; }()) == 'Arguments';
915
916// fallback for IE11 Script Access Denied error
917var tryGet = function (it, key) {
918 try {
919 return it[key];
920 } catch (e) { /* empty */ }
921};
922
923module.exports = function (it) {
924 var O, T, B;
925 return it === undefined ? 'Undefined' : it === null ? 'Null'
926 // @@toStringTag case
927 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
928 // builtinTag case
929 : ARG ? cof(O)
930 // ES3 arguments fallback
931 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
932};
933
934
935/***/ }),
936
937/***/ "IlFx":
938/*!*******************************************************************!*\
939 !*** ./node_modules/core-js/modules/es6.reflect.is-extensible.js ***!
940 \*******************************************************************/
941/*! no static exports found */
942/***/ (function(module, exports, __webpack_require__) {
943
944// 26.1.10 Reflect.isExtensible(target)
945var $export = __webpack_require__(/*! ./_export */ "XKFU");
946var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
947var $isExtensible = Object.isExtensible;
948
949$export($export.S, 'Reflect', {
950 isExtensible: function isExtensible(target) {
951 anObject(target);
952 return $isExtensible ? $isExtensible(target) : true;
953 }
954});
955
956
957/***/ }),
958
959/***/ "Iw71":
960/*!*****************************************************!*\
961 !*** ./node_modules/core-js/modules/_dom-create.js ***!
962 \*****************************************************/
963/*! no static exports found */
964/***/ (function(module, exports, __webpack_require__) {
965
966var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
967var document = __webpack_require__(/*! ./_global */ "dyZX").document;
968// typeof document.createElement is 'object' in old IE
969var is = isObject(document) && isObject(document.createElement);
970module.exports = function (it) {
971 return is ? document.createElement(it) : {};
972};
973
974
975/***/ }),
976
977/***/ "J+6e":
978/*!******************************************************************!*\
979 !*** ./node_modules/core-js/modules/core.get-iterator-method.js ***!
980 \******************************************************************/
981/*! no static exports found */
982/***/ (function(module, exports, __webpack_require__) {
983
984var classof = __webpack_require__(/*! ./_classof */ "I8a+");
985var ITERATOR = __webpack_require__(/*! ./_wks */ "K0xU")('iterator');
986var Iterators = __webpack_require__(/*! ./_iterators */ "hPIQ");
987module.exports = __webpack_require__(/*! ./_core */ "g3g5").getIteratorMethod = function (it) {
988 if (it != undefined) return it[ITERATOR]
989 || it['@@iterator']
990 || Iterators[classof(it)];
991};
992
993
994/***/ }),
995
996/***/ "JiEa":
997/*!******************************************************!*\
998 !*** ./node_modules/core-js/modules/_object-gops.js ***!
999 \******************************************************/
1000/*! no static exports found */
1001/***/ (function(module, exports) {
1002
1003exports.f = Object.getOwnPropertySymbols;
1004
1005
1006/***/ }),
1007
1008/***/ "K0xU":
1009/*!**********************************************!*\
1010 !*** ./node_modules/core-js/modules/_wks.js ***!
1011 \**********************************************/
1012/*! no static exports found */
1013/***/ (function(module, exports, __webpack_require__) {
1014
1015var store = __webpack_require__(/*! ./_shared */ "VTer")('wks');
1016var uid = __webpack_require__(/*! ./_uid */ "ylqs");
1017var Symbol = __webpack_require__(/*! ./_global */ "dyZX").Symbol;
1018var USE_SYMBOL = typeof Symbol == 'function';
1019
1020var $exports = module.exports = function (name) {
1021 return store[name] || (store[name] =
1022 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
1023};
1024
1025$exports.store = store;
1026
1027
1028/***/ }),
1029
1030/***/ "KroJ":
1031/*!***************************************************!*\
1032 !*** ./node_modules/core-js/modules/_redefine.js ***!
1033 \***************************************************/
1034/*! no static exports found */
1035/***/ (function(module, exports, __webpack_require__) {
1036
1037var global = __webpack_require__(/*! ./_global */ "dyZX");
1038var hide = __webpack_require__(/*! ./_hide */ "Mukb");
1039var has = __webpack_require__(/*! ./_has */ "aagx");
1040var SRC = __webpack_require__(/*! ./_uid */ "ylqs")('src');
1041var $toString = __webpack_require__(/*! ./_function-to-string */ "+lvF");
1042var TO_STRING = 'toString';
1043var TPL = ('' + $toString).split(TO_STRING);
1044
1045__webpack_require__(/*! ./_core */ "g3g5").inspectSource = function (it) {
1046 return $toString.call(it);
1047};
1048
1049(module.exports = function (O, key, val, safe) {
1050 var isFunction = typeof val == 'function';
1051 if (isFunction) has(val, 'name') || hide(val, 'name', key);
1052 if (O[key] === val) return;
1053 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
1054 if (O === global) {
1055 O[key] = val;
1056 } else if (!safe) {
1057 delete O[key];
1058 hide(O, key, val);
1059 } else if (O[key]) {
1060 O[key] = val;
1061 } else {
1062 hide(O, key, val);
1063 }
1064// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1065})(Function.prototype, TO_STRING, function toString() {
1066 return typeof this == 'function' && this[SRC] || $toString.call(this);
1067});
1068
1069
1070/***/ }),
1071
1072/***/ "Kuth":
1073/*!********************************************************!*\
1074 !*** ./node_modules/core-js/modules/_object-create.js ***!
1075 \********************************************************/
1076/*! no static exports found */
1077/***/ (function(module, exports, __webpack_require__) {
1078
1079// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
1080var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
1081var dPs = __webpack_require__(/*! ./_object-dps */ "FJW5");
1082var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "4R4u");
1083var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "YTvA")('IE_PROTO');
1084var Empty = function () { /* empty */ };
1085var PROTOTYPE = 'prototype';
1086
1087// Create object with fake `null` prototype: use iframe Object with cleared prototype
1088var createDict = function () {
1089 // Thrash, waste and sodomy: IE GC bug
1090 var iframe = __webpack_require__(/*! ./_dom-create */ "Iw71")('iframe');
1091 var i = enumBugKeys.length;
1092 var lt = '<';
1093 var gt = '>';
1094 var iframeDocument;
1095 iframe.style.display = 'none';
1096 __webpack_require__(/*! ./_html */ "+rLv").appendChild(iframe);
1097 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
1098 // createDict = iframe.contentWindow.Object;
1099 // html.removeChild(iframe);
1100 iframeDocument = iframe.contentWindow.document;
1101 iframeDocument.open();
1102 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
1103 iframeDocument.close();
1104 createDict = iframeDocument.F;
1105 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
1106 return createDict();
1107};
1108
1109module.exports = Object.create || function create(O, Properties) {
1110 var result;
1111 if (O !== null) {
1112 Empty[PROTOTYPE] = anObject(O);
1113 result = new Empty();
1114 Empty[PROTOTYPE] = null;
1115 // add "__proto__" for Object.getPrototypeOf polyfill
1116 result[IE_PROTO] = O;
1117 } else result = createDict();
1118 return Properties === undefined ? result : dPs(result, Properties);
1119};
1120
1121
1122/***/ }),
1123
1124/***/ "LQAc":
1125/*!**************************************************!*\
1126 !*** ./node_modules/core-js/modules/_library.js ***!
1127 \**************************************************/
1128/*! no static exports found */
1129/***/ (function(module, exports) {
1130
1131module.exports = false;
1132
1133
1134/***/ }),
1135
1136/***/ "LTTk":
1137/*!**********************************************************************!*\
1138 !*** ./node_modules/core-js/modules/es6.reflect.get-prototype-of.js ***!
1139 \**********************************************************************/
1140/*! no static exports found */
1141/***/ (function(module, exports, __webpack_require__) {
1142
1143// 26.1.8 Reflect.getPrototypeOf(target)
1144var $export = __webpack_require__(/*! ./_export */ "XKFU");
1145var getProto = __webpack_require__(/*! ./_object-gpo */ "OP3Y");
1146var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
1147
1148$export($export.S, 'Reflect', {
1149 getPrototypeOf: function getPrototypeOf(target) {
1150 return getProto(anObject(target));
1151 }
1152});
1153
1154
1155/***/ }),
1156
1157/***/ "LZWt":
1158/*!**********************************************!*\
1159 !*** ./node_modules/core-js/modules/_cof.js ***!
1160 \**********************************************/
1161/*! no static exports found */
1162/***/ (function(module, exports) {
1163
1164var toString = {}.toString;
1165
1166module.exports = function (it) {
1167 return toString.call(it).slice(8, -1);
1168};
1169
1170
1171/***/ }),
1172
1173/***/ "M6Qj":
1174/*!********************************************************!*\
1175 !*** ./node_modules/core-js/modules/_is-array-iter.js ***!
1176 \********************************************************/
1177/*! no static exports found */
1178/***/ (function(module, exports, __webpack_require__) {
1179
1180// check on default Array iterator
1181var Iterators = __webpack_require__(/*! ./_iterators */ "hPIQ");
1182var ITERATOR = __webpack_require__(/*! ./_wks */ "K0xU")('iterator');
1183var ArrayProto = Array.prototype;
1184
1185module.exports = function (it) {
1186 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
1187};
1188
1189
1190/***/ }),
1191
1192/***/ "MfQN":
1193/*!*************************************************!*\
1194 !*** ./node_modules/core-js/modules/_invoke.js ***!
1195 \*************************************************/
1196/*! no static exports found */
1197/***/ (function(module, exports) {
1198
1199// fast apply, http://jsperf.lnkit.com/fast-apply/5
1200module.exports = function (fn, args, that) {
1201 var un = that === undefined;
1202 switch (args.length) {
1203 case 0: return un ? fn()
1204 : fn.call(that);
1205 case 1: return un ? fn(args[0])
1206 : fn.call(that, args[0]);
1207 case 2: return un ? fn(args[0], args[1])
1208 : fn.call(that, args[0], args[1]);
1209 case 3: return un ? fn(args[0], args[1], args[2])
1210 : fn.call(that, args[0], args[1], args[2]);
1211 case 4: return un ? fn(args[0], args[1], args[2], args[3])
1212 : fn.call(that, args[0], args[1], args[2], args[3]);
1213 } return fn.apply(that, args);
1214};
1215
1216
1217/***/ }),
1218
1219/***/ "Mukb":
1220/*!***********************************************!*\
1221 !*** ./node_modules/core-js/modules/_hide.js ***!
1222 \***********************************************/
1223/*! no static exports found */
1224/***/ (function(module, exports, __webpack_require__) {
1225
1226var dP = __webpack_require__(/*! ./_object-dp */ "hswa");
1227var createDesc = __webpack_require__(/*! ./_property-desc */ "RjD/");
1228module.exports = __webpack_require__(/*! ./_descriptors */ "nh4g") ? function (object, key, value) {
1229 return dP.f(object, key, createDesc(1, value));
1230} : function (object, key, value) {
1231 object[key] = value;
1232 return object;
1233};
1234
1235
1236/***/ }),
1237
1238/***/ "N/DB":
1239/*!*********************************************************!*\
1240 !*** ./node_modules/@angular/localize/fesm2015/init.js ***!
1241 \*********************************************************/
1242/*! no static exports found */
1243/***/ (function(module, exports) {
1244
1245/**
1246 * @license Angular v11.1.2
1247 * (c) 2010-2020 Google LLC. https://angular.io/
1248 * License: MIT
1249 */
1250
1251/**
1252 * @license
1253 * Copyright Google LLC All Rights Reserved.
1254 *
1255 * Use of this source code is governed by an MIT-style license that can be
1256 * found in the LICENSE file at https://angular.io/license
1257 */
1258const __globalThis = typeof globalThis !== 'undefined' && globalThis;
1259const __window = typeof window !== 'undefined' && window;
1260const __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' &&
1261 self instanceof WorkerGlobalScope && self;
1262const __global = typeof global !== 'undefined' && global;
1263// Always use __globalThis if available; this is the spec-defined global variable across all
1264// environments.
1265// Then fallback to __global first; in Node tests both __global and __window may be defined.
1266const _global = __globalThis || __global || __window || __self;
1267
1268/**
1269 * @license
1270 * Copyright Google LLC All Rights Reserved.
1271 *
1272 * Use of this source code is governed by an MIT-style license that can be
1273 * found in the LICENSE file at https://angular.io/license
1274 */
1275/**
1276 * Tag a template literal string for localization.
1277 *
1278 * For example:
1279 *
1280 * ```ts
1281 * $localize `some string to localize`
1282 * ```
1283 *
1284 * **Providing meaning, description and id**
1285 *
1286 * You can optionally specify one or more of `meaning`, `description` and `id` for a localized
1287 * string by pre-pending it with a colon delimited block of the form:
1288 *
1289 * ```ts
1290 * $localize`:meaning|description@@id:source message text`;
1291 *
1292 * $localize`:meaning|:source message text`;
1293 * $localize`:description:source message text`;
1294 * $localize`:@@id:source message text`;
1295 * ```
1296 *
1297 * This format is the same as that used for `i18n` markers in Angular templates. See the
1298 * [Angular 18n guide](guide/i18n#template-translations).
1299 *
1300 * **Naming placeholders**
1301 *
1302 * If the template literal string contains expressions, then the expressions will be automatically
1303 * associated with placeholder names for you.
1304 *
1305 * For example:
1306 *
1307 * ```ts
1308 * $localize `Hi ${name}! There are ${items.length} items.`;
1309 * ```
1310 *
1311 * will generate a message-source of `Hi {$PH}! There are {$PH_1} items`.
1312 *
1313 * The recommended practice is to name the placeholder associated with each expression though.
1314 *
1315 * Do this by providing the placeholder name wrapped in `:` characters directly after the
1316 * expression. These placeholder names are stripped out of the rendered localized string.
1317 *
1318 * For example, to name the `items.length` expression placeholder `itemCount` you write:
1319 *
1320 * ```ts
1321 * $localize `There are ${items.length}:itemCount: items`;
1322 * ```
1323 *
1324 * **Escaping colon markers**
1325 *
1326 * If you need to use a `:` character directly at the start of a tagged string that has no
1327 * metadata block, or directly after a substitution expression that has no name you must escape
1328 * the `:` by preceding it with a backslash:
1329 *
1330 * For example:
1331 *
1332 * ```ts
1333 * // message has a metadata block so no need to escape colon
1334 * $localize `:some description::this message starts with a colon (:)`;
1335 * // no metadata block so the colon must be escaped
1336 * $localize `\:this message starts with a colon (:)`;
1337 * ```
1338 *
1339 * ```ts
1340 * // named substitution so no need to escape colon
1341 * $localize `${label}:label:: ${}`
1342 * // anonymous substitution so colon must be escaped
1343 * $localize `${label}\: ${}`
1344 * ```
1345 *
1346 * **Processing localized strings:**
1347 *
1348 * There are three scenarios:
1349 *
1350 * * **compile-time inlining**: the `$localize` tag is transformed at compile time by a
1351 * transpiler, removing the tag and replacing the template literal string with a translated
1352 * literal string from a collection of translations provided to the transpilation tool.
1353 *
1354 * * **run-time evaluation**: the `$localize` tag is a run-time function that replaces and
1355 * reorders the parts (static strings and expressions) of the template literal string with strings
1356 * from a collection of translations loaded at run-time.
1357 *
1358 * * **pass-through evaluation**: the `$localize` tag is a run-time function that simply evaluates
1359 * the original template literal string without applying any translations to the parts. This
1360 * version is used during development or where there is no need to translate the localized
1361 * template literals.
1362 * @param messageParts a collection of the static parts of the template string.
1363 * @param expressions a collection of the values of each placeholder in the template string.
1364 * @returns the translated string, with the `messageParts` and `expressions` interleaved together.
1365 */
1366const $localize = function (messageParts, ...expressions) {
1367 if ($localize.translate) {
1368 // Don't use array expansion here to avoid the compiler adding `__read()` helper unnecessarily.
1369 const translation = $localize.translate(messageParts, expressions);
1370 messageParts = translation[0];
1371 expressions = translation[1];
1372 }
1373 let message = stripBlock(messageParts[0], messageParts.raw[0]);
1374 for (let i = 1; i < messageParts.length; i++) {
1375 message += expressions[i - 1] + stripBlock(messageParts[i], messageParts.raw[i]);
1376 }
1377 return message;
1378};
1379const BLOCK_MARKER = ':';
1380/**
1381 * Strip a delimited "block" from the start of the `messagePart`, if it is found.
1382 *
1383 * If a marker character (:) actually appears in the content at the start of a tagged string or
1384 * after a substitution expression, where a block has not been provided the character must be
1385 * escaped with a backslash, `\:`. This function checks for this by looking at the `raw`
1386 * messagePart, which should still contain the backslash.
1387 *
1388 * @param messagePart The cooked message part to process.
1389 * @param rawMessagePart The raw message part to check.
1390 * @returns the message part with the placeholder name stripped, if found.
1391 * @throws an error if the block is unterminated
1392 */
1393function stripBlock(messagePart, rawMessagePart) {
1394 return rawMessagePart.charAt(0) === BLOCK_MARKER ?
1395 messagePart.substring(findEndOfBlock(messagePart, rawMessagePart) + 1) :
1396 messagePart;
1397}
1398/**
1399 * Find the end of a "marked block" indicated by the first non-escaped colon.
1400 *
1401 * @param cooked The cooked string (where escaped chars have been processed)
1402 * @param raw The raw string (where escape sequences are still in place)
1403 *
1404 * @returns the index of the end of block marker
1405 * @throws an error if the block is unterminated
1406 */
1407function findEndOfBlock(cooked, raw) {
1408 /***********************************************************************************************
1409 * This function is repeated in `src/utils/messages.ts` and the two should be kept in sync.
1410 * The reason is that this file is marked as having side-effects, and if we import `messages.ts`
1411 * into it, the whole of `src/utils` will be included in this bundle and none of the functions
1412 * will be tree shaken.
1413 ***********************************************************************************************/
1414 for (let cookedIndex = 1, rawIndex = 1; cookedIndex < cooked.length; cookedIndex++, rawIndex++) {
1415 if (raw[rawIndex] === '\\') {
1416 rawIndex++;
1417 }
1418 else if (cooked[cookedIndex] === BLOCK_MARKER) {
1419 return cookedIndex;
1420 }
1421 }
1422 throw new Error(`Unterminated $localize metadata block in "${raw}".`);
1423}
1424
1425/**
1426 * @license
1427 * Copyright Google LLC All Rights Reserved.
1428 *
1429 * Use of this source code is governed by an MIT-style license that can be
1430 * found in the LICENSE file at https://angular.io/license
1431 */
1432
1433/**
1434 * @license
1435 * Copyright Google LLC All Rights Reserved.
1436 *
1437 * Use of this source code is governed by an MIT-style license that can be
1438 * found in the LICENSE file at https://angular.io/license
1439 */
1440// Attach $localize to the global context, as a side-effect of this module.
1441_global.$localize = $localize;
1442//# sourceMappingURL=init.js.map
1443
1444
1445/***/ }),
1446
1447/***/ "N6cJ":
1448/*!***************************************************!*\
1449 !*** ./node_modules/core-js/modules/_metadata.js ***!
1450 \***************************************************/
1451/*! no static exports found */
1452/***/ (function(module, exports, __webpack_require__) {
1453
1454var Map = __webpack_require__(/*! ./es6.map */ "9AAn");
1455var $export = __webpack_require__(/*! ./_export */ "XKFU");
1456var shared = __webpack_require__(/*! ./_shared */ "VTer")('metadata');
1457var store = shared.store || (shared.store = new (__webpack_require__(/*! ./es6.weak-map */ "EK0E"))());
1458
1459var getOrCreateMetadataMap = function (target, targetKey, create) {
1460 var targetMetadata = store.get(target);
1461 if (!targetMetadata) {
1462 if (!create) return undefined;
1463 store.set(target, targetMetadata = new Map());
1464 }
1465 var keyMetadata = targetMetadata.get(targetKey);
1466 if (!keyMetadata) {
1467 if (!create) return undefined;
1468 targetMetadata.set(targetKey, keyMetadata = new Map());
1469 } return keyMetadata;
1470};
1471var ordinaryHasOwnMetadata = function (MetadataKey, O, P) {
1472 var metadataMap = getOrCreateMetadataMap(O, P, false);
1473 return metadataMap === undefined ? false : metadataMap.has(MetadataKey);
1474};
1475var ordinaryGetOwnMetadata = function (MetadataKey, O, P) {
1476 var metadataMap = getOrCreateMetadataMap(O, P, false);
1477 return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);
1478};
1479var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {
1480 getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
1481};
1482var ordinaryOwnMetadataKeys = function (target, targetKey) {
1483 var metadataMap = getOrCreateMetadataMap(target, targetKey, false);
1484 var keys = [];
1485 if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); });
1486 return keys;
1487};
1488var toMetaKey = function (it) {
1489 return it === undefined || typeof it == 'symbol' ? it : String(it);
1490};
1491var exp = function (O) {
1492 $export($export.S, 'Reflect', O);
1493};
1494
1495module.exports = {
1496 store: store,
1497 map: getOrCreateMetadataMap,
1498 has: ordinaryHasOwnMetadata,
1499 get: ordinaryGetOwnMetadata,
1500 set: ordinaryDefineOwnMetadata,
1501 keys: ordinaryOwnMetadataKeys,
1502 key: toMetaKey,
1503 exp: exp
1504};
1505
1506
1507/***/ }),
1508
1509/***/ "OP3Y":
1510/*!*****************************************************!*\
1511 !*** ./node_modules/core-js/modules/_object-gpo.js ***!
1512 \*****************************************************/
1513/*! no static exports found */
1514/***/ (function(module, exports, __webpack_require__) {
1515
1516// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
1517var has = __webpack_require__(/*! ./_has */ "aagx");
1518var toObject = __webpack_require__(/*! ./_to-object */ "S/j/");
1519var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "YTvA")('IE_PROTO');
1520var ObjectProto = Object.prototype;
1521
1522module.exports = Object.getPrototypeOf || function (O) {
1523 O = toObject(O);
1524 if (has(O, IE_PROTO)) return O[IE_PROTO];
1525 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1526 return O.constructor.prototype;
1527 } return O instanceof Object ? ObjectProto : null;
1528};
1529
1530
1531/***/ }),
1532
1533/***/ "Opxb":
1534/*!**************************************************************!*\
1535 !*** ./node_modules/core-js/modules/es7.reflect.metadata.js ***!
1536 \**************************************************************/
1537/*! no static exports found */
1538/***/ (function(module, exports, __webpack_require__) {
1539
1540var $metadata = __webpack_require__(/*! ./_metadata */ "N6cJ");
1541var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
1542var aFunction = __webpack_require__(/*! ./_a-function */ "2OiF");
1543var toMetaKey = $metadata.key;
1544var ordinaryDefineOwnMetadata = $metadata.set;
1545
1546$metadata.exp({ metadata: function metadata(metadataKey, metadataValue) {
1547 return function decorator(target, targetKey) {
1548 ordinaryDefineOwnMetadata(
1549 metadataKey, metadataValue,
1550 (targetKey !== undefined ? anObject : aFunction)(target),
1551 toMetaKey(targetKey)
1552 );
1553 };
1554} });
1555
1556
1557/***/ }),
1558
1559/***/ "Q3ne":
1560/*!**************************************************************!*\
1561 !*** ./node_modules/core-js/modules/_array-from-iterable.js ***!
1562 \**************************************************************/
1563/*! no static exports found */
1564/***/ (function(module, exports, __webpack_require__) {
1565
1566var forOf = __webpack_require__(/*! ./_for-of */ "SlkY");
1567
1568module.exports = function (iter, ITERATOR) {
1569 var result = [];
1570 forOf(iter, false, result.push, result, ITERATOR);
1571 return result;
1572};
1573
1574
1575/***/ }),
1576
1577/***/ "QaDb":
1578/*!******************************************************!*\
1579 !*** ./node_modules/core-js/modules/_iter-create.js ***!
1580 \******************************************************/
1581/*! no static exports found */
1582/***/ (function(module, exports, __webpack_require__) {
1583
1584"use strict";
1585
1586var create = __webpack_require__(/*! ./_object-create */ "Kuth");
1587var descriptor = __webpack_require__(/*! ./_property-desc */ "RjD/");
1588var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "fyDq");
1589var IteratorPrototype = {};
1590
1591// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1592__webpack_require__(/*! ./_hide */ "Mukb")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "K0xU")('iterator'), function () { return this; });
1593
1594module.exports = function (Constructor, NAME, next) {
1595 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
1596 setToStringTag(Constructor, NAME + ' Iterator');
1597};
1598
1599
1600/***/ }),
1601
1602/***/ "RYi7":
1603/*!*****************************************************!*\
1604 !*** ./node_modules/core-js/modules/_to-integer.js ***!
1605 \*****************************************************/
1606/*! no static exports found */
1607/***/ (function(module, exports) {
1608
1609// 7.1.4 ToInteger
1610var ceil = Math.ceil;
1611var floor = Math.floor;
1612module.exports = function (it) {
1613 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
1614};
1615
1616
1617/***/ }),
1618
1619/***/ "RjD/":
1620/*!********************************************************!*\
1621 !*** ./node_modules/core-js/modules/_property-desc.js ***!
1622 \********************************************************/
1623/*! no static exports found */
1624/***/ (function(module, exports) {
1625
1626module.exports = function (bitmap, value) {
1627 return {
1628 enumerable: !(bitmap & 1),
1629 configurable: !(bitmap & 2),
1630 writable: !(bitmap & 4),
1631 value: value
1632 };
1633};
1634
1635
1636/***/ }),
1637
1638/***/ "S/j/":
1639/*!****************************************************!*\
1640 !*** ./node_modules/core-js/modules/_to-object.js ***!
1641 \****************************************************/
1642/*! no static exports found */
1643/***/ (function(module, exports, __webpack_require__) {
1644
1645// 7.1.13 ToObject(argument)
1646var defined = __webpack_require__(/*! ./_defined */ "vhPU");
1647module.exports = function (it) {
1648 return Object(defined(it));
1649};
1650
1651
1652/***/ }),
1653
1654/***/ "SlkY":
1655/*!*************************************************!*\
1656 !*** ./node_modules/core-js/modules/_for-of.js ***!
1657 \*************************************************/
1658/*! no static exports found */
1659/***/ (function(module, exports, __webpack_require__) {
1660
1661var ctx = __webpack_require__(/*! ./_ctx */ "m0Pp");
1662var call = __webpack_require__(/*! ./_iter-call */ "H6hf");
1663var isArrayIter = __webpack_require__(/*! ./_is-array-iter */ "M6Qj");
1664var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
1665var toLength = __webpack_require__(/*! ./_to-length */ "ne8i");
1666var getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ "J+6e");
1667var BREAK = {};
1668var RETURN = {};
1669var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
1670 var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
1671 var f = ctx(fn, that, entries ? 2 : 1);
1672 var index = 0;
1673 var length, step, iterator, result;
1674 if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
1675 // fast case for arrays with default iterator
1676 if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
1677 result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
1678 if (result === BREAK || result === RETURN) return result;
1679 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
1680 result = call(iterator, f, step.value, entries);
1681 if (result === BREAK || result === RETURN) return result;
1682 }
1683};
1684exports.BREAK = BREAK;
1685exports.RETURN = RETURN;
1686
1687
1688/***/ }),
1689
1690/***/ "T39b":
1691/*!*************************************************!*\
1692 !*** ./node_modules/core-js/modules/es6.set.js ***!
1693 \*************************************************/
1694/*! no static exports found */
1695/***/ (function(module, exports, __webpack_require__) {
1696
1697"use strict";
1698
1699var strong = __webpack_require__(/*! ./_collection-strong */ "wmvG");
1700var validate = __webpack_require__(/*! ./_validate-collection */ "s5qY");
1701var SET = 'Set';
1702
1703// 23.2 Set Objects
1704module.exports = __webpack_require__(/*! ./_collection */ "4LiD")(SET, function (get) {
1705 return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
1706}, {
1707 // 23.2.3.1 Set.prototype.add(value)
1708 add: function add(value) {
1709 return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);
1710 }
1711}, strong);
1712
1713
1714/***/ }),
1715
1716/***/ "UqcF":
1717/*!*****************************************************!*\
1718 !*** ./node_modules/core-js/modules/_object-pie.js ***!
1719 \*****************************************************/
1720/*! no static exports found */
1721/***/ (function(module, exports) {
1722
1723exports.f = {}.propertyIsEnumerable;
1724
1725
1726/***/ }),
1727
1728/***/ "VTer":
1729/*!*************************************************!*\
1730 !*** ./node_modules/core-js/modules/_shared.js ***!
1731 \*************************************************/
1732/*! no static exports found */
1733/***/ (function(module, exports, __webpack_require__) {
1734
1735var core = __webpack_require__(/*! ./_core */ "g3g5");
1736var global = __webpack_require__(/*! ./_global */ "dyZX");
1737var SHARED = '__core-js_shared__';
1738var store = global[SHARED] || (global[SHARED] = {});
1739
1740(module.exports = function (key, value) {
1741 return store[key] || (store[key] = value !== undefined ? value : {});
1742})('versions', []).push({
1743 version: core.version,
1744 mode: __webpack_require__(/*! ./_library */ "LQAc") ? 'pure' : 'global',
1745 copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
1746});
1747
1748
1749/***/ }),
1750
1751/***/ "VbrY":
1752/*!*********************************************!*\
1753 !*** ./node_modules/core-js/es6/reflect.js ***!
1754 \*********************************************/
1755/*! no static exports found */
1756/***/ (function(module, exports, __webpack_require__) {
1757
1758__webpack_require__(/*! ../modules/es6.reflect.apply */ "3xty");
1759__webpack_require__(/*! ../modules/es6.reflect.construct */ "I5cv");
1760__webpack_require__(/*! ../modules/es6.reflect.define-property */ "iMoV");
1761__webpack_require__(/*! ../modules/es6.reflect.delete-property */ "uhZd");
1762__webpack_require__(/*! ../modules/es6.reflect.enumerate */ "f/aN");
1763__webpack_require__(/*! ../modules/es6.reflect.get */ "0YWM");
1764__webpack_require__(/*! ../modules/es6.reflect.get-own-property-descriptor */ "694e");
1765__webpack_require__(/*! ../modules/es6.reflect.get-prototype-of */ "LTTk");
1766__webpack_require__(/*! ../modules/es6.reflect.has */ "9rMk");
1767__webpack_require__(/*! ../modules/es6.reflect.is-extensible */ "IlFx");
1768__webpack_require__(/*! ../modules/es6.reflect.own-keys */ "xpiv");
1769__webpack_require__(/*! ../modules/es6.reflect.prevent-extensions */ "oZ/O");
1770__webpack_require__(/*! ../modules/es6.reflect.set */ "klPD");
1771__webpack_require__(/*! ../modules/es6.reflect.set-prototype-of */ "knU9");
1772module.exports = __webpack_require__(/*! ../modules/_core */ "g3g5").Reflect;
1773
1774
1775/***/ }),
1776
1777/***/ "XKFU":
1778/*!*************************************************!*\
1779 !*** ./node_modules/core-js/modules/_export.js ***!
1780 \*************************************************/
1781/*! no static exports found */
1782/***/ (function(module, exports, __webpack_require__) {
1783
1784var global = __webpack_require__(/*! ./_global */ "dyZX");
1785var core = __webpack_require__(/*! ./_core */ "g3g5");
1786var hide = __webpack_require__(/*! ./_hide */ "Mukb");
1787var redefine = __webpack_require__(/*! ./_redefine */ "KroJ");
1788var ctx = __webpack_require__(/*! ./_ctx */ "m0Pp");
1789var PROTOTYPE = 'prototype';
1790
1791var $export = function (type, name, source) {
1792 var IS_FORCED = type & $export.F;
1793 var IS_GLOBAL = type & $export.G;
1794 var IS_STATIC = type & $export.S;
1795 var IS_PROTO = type & $export.P;
1796 var IS_BIND = type & $export.B;
1797 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
1798 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
1799 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
1800 var key, own, out, exp;
1801 if (IS_GLOBAL) source = name;
1802 for (key in source) {
1803 // contains in native
1804 own = !IS_FORCED && target && target[key] !== undefined;
1805 // export native or passed
1806 out = (own ? target : source)[key];
1807 // bind timers to global for call from export context
1808 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
1809 // extend global
1810 if (target) redefine(target, key, out, type & $export.U);
1811 // export
1812 if (exports[key] != out) hide(exports, key, exp);
1813 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
1814 }
1815};
1816global.core = core;
1817// type bitmap
1818$export.F = 1; // forced
1819$export.G = 2; // global
1820$export.S = 4; // static
1821$export.P = 8; // proto
1822$export.B = 16; // bind
1823$export.W = 32; // wrap
1824$export.U = 64; // safe
1825$export.R = 128; // real proto method for `library`
1826module.exports = $export;
1827
1828
1829/***/ }),
1830
1831/***/ "XMVh":
1832/*!******************************************************!*\
1833 !*** ./node_modules/core-js/modules/_iter-detect.js ***!
1834 \******************************************************/
1835/*! no static exports found */
1836/***/ (function(module, exports, __webpack_require__) {
1837
1838var ITERATOR = __webpack_require__(/*! ./_wks */ "K0xU")('iterator');
1839var SAFE_CLOSING = false;
1840
1841try {
1842 var riter = [7][ITERATOR]();
1843 riter['return'] = function () { SAFE_CLOSING = true; };
1844 // eslint-disable-next-line no-throw-literal
1845 Array.from(riter, function () { throw 2; });
1846} catch (e) { /* empty */ }
1847
1848module.exports = function (exec, skipClosing) {
1849 if (!skipClosing && !SAFE_CLOSING) return false;
1850 var safe = false;
1851 try {
1852 var arr = [7];
1853 var iter = arr[ITERATOR]();
1854 iter.next = function () { return { done: safe = true }; };
1855 arr[ITERATOR] = function () { return iter; };
1856 exec(arr);
1857 } catch (e) { /* empty */ }
1858 return safe;
1859};
1860
1861
1862/***/ }),
1863
1864/***/ "Xbzi":
1865/*!**************************************************************!*\
1866 !*** ./node_modules/core-js/modules/_inherit-if-required.js ***!
1867 \**************************************************************/
1868/*! no static exports found */
1869/***/ (function(module, exports, __webpack_require__) {
1870
1871var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
1872var setPrototypeOf = __webpack_require__(/*! ./_set-proto */ "i5dc").set;
1873module.exports = function (that, target, C) {
1874 var S = target.constructor;
1875 var P;
1876 if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
1877 setPrototypeOf(that, P);
1878 } return that;
1879};
1880
1881
1882/***/ }),
1883
1884/***/ "YTvA":
1885/*!*****************************************************!*\
1886 !*** ./node_modules/core-js/modules/_shared-key.js ***!
1887 \*****************************************************/
1888/*! no static exports found */
1889/***/ (function(module, exports, __webpack_require__) {
1890
1891var shared = __webpack_require__(/*! ./_shared */ "VTer")('keys');
1892var uid = __webpack_require__(/*! ./_uid */ "ylqs");
1893module.exports = function (key) {
1894 return shared[key] || (shared[key] = uid(key));
1895};
1896
1897
1898/***/ }),
1899
1900/***/ "Ymqv":
1901/*!**************************************************!*\
1902 !*** ./node_modules/core-js/modules/_iobject.js ***!
1903 \**************************************************/
1904/*! no static exports found */
1905/***/ (function(module, exports, __webpack_require__) {
1906
1907// fallback for non-array-like ES3 and non-enumerable old V8 strings
1908var cof = __webpack_require__(/*! ./_cof */ "LZWt");
1909// eslint-disable-next-line no-prototype-builtins
1910module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
1911 return cof(it) == 'String' ? it.split('') : Object(it);
1912};
1913
1914
1915/***/ }),
1916
1917/***/ "Z6vF":
1918/*!***********************************************!*\
1919 !*** ./node_modules/core-js/modules/_meta.js ***!
1920 \***********************************************/
1921/*! no static exports found */
1922/***/ (function(module, exports, __webpack_require__) {
1923
1924var META = __webpack_require__(/*! ./_uid */ "ylqs")('meta');
1925var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
1926var has = __webpack_require__(/*! ./_has */ "aagx");
1927var setDesc = __webpack_require__(/*! ./_object-dp */ "hswa").f;
1928var id = 0;
1929var isExtensible = Object.isExtensible || function () {
1930 return true;
1931};
1932var FREEZE = !__webpack_require__(/*! ./_fails */ "eeVq")(function () {
1933 return isExtensible(Object.preventExtensions({}));
1934});
1935var setMeta = function (it) {
1936 setDesc(it, META, { value: {
1937 i: 'O' + ++id, // object ID
1938 w: {} // weak collections IDs
1939 } });
1940};
1941var fastKey = function (it, create) {
1942 // return primitive with prefix
1943 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
1944 if (!has(it, META)) {
1945 // can't set metadata to uncaught frozen object
1946 if (!isExtensible(it)) return 'F';
1947 // not necessary to add metadata
1948 if (!create) return 'E';
1949 // add missing metadata
1950 setMeta(it);
1951 // return object ID
1952 } return it[META].i;
1953};
1954var getWeak = function (it, create) {
1955 if (!has(it, META)) {
1956 // can't set metadata to uncaught frozen object
1957 if (!isExtensible(it)) return true;
1958 // not necessary to add metadata
1959 if (!create) return false;
1960 // add missing metadata
1961 setMeta(it);
1962 // return hash weak collections IDs
1963 } return it[META].w;
1964};
1965// add metadata on freeze-family methods calling
1966var onFreeze = function (it) {
1967 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
1968 return it;
1969};
1970var meta = module.exports = {
1971 KEY: META,
1972 NEED: false,
1973 fastKey: fastKey,
1974 getWeak: getWeak,
1975 onFreeze: onFreeze
1976};
1977
1978
1979/***/ }),
1980
1981/***/ "ZD67":
1982/*!**********************************************************!*\
1983 !*** ./node_modules/core-js/modules/_collection-weak.js ***!
1984 \**********************************************************/
1985/*! no static exports found */
1986/***/ (function(module, exports, __webpack_require__) {
1987
1988"use strict";
1989
1990var redefineAll = __webpack_require__(/*! ./_redefine-all */ "3Lyj");
1991var getWeak = __webpack_require__(/*! ./_meta */ "Z6vF").getWeak;
1992var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
1993var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
1994var anInstance = __webpack_require__(/*! ./_an-instance */ "9gX7");
1995var forOf = __webpack_require__(/*! ./_for-of */ "SlkY");
1996var createArrayMethod = __webpack_require__(/*! ./_array-methods */ "CkkT");
1997var $has = __webpack_require__(/*! ./_has */ "aagx");
1998var validate = __webpack_require__(/*! ./_validate-collection */ "s5qY");
1999var arrayFind = createArrayMethod(5);
2000var arrayFindIndex = createArrayMethod(6);
2001var id = 0;
2002
2003// fallback for uncaught frozen keys
2004var uncaughtFrozenStore = function (that) {
2005 return that._l || (that._l = new UncaughtFrozenStore());
2006};
2007var UncaughtFrozenStore = function () {
2008 this.a = [];
2009};
2010var findUncaughtFrozen = function (store, key) {
2011 return arrayFind(store.a, function (it) {
2012 return it[0] === key;
2013 });
2014};
2015UncaughtFrozenStore.prototype = {
2016 get: function (key) {
2017 var entry = findUncaughtFrozen(this, key);
2018 if (entry) return entry[1];
2019 },
2020 has: function (key) {
2021 return !!findUncaughtFrozen(this, key);
2022 },
2023 set: function (key, value) {
2024 var entry = findUncaughtFrozen(this, key);
2025 if (entry) entry[1] = value;
2026 else this.a.push([key, value]);
2027 },
2028 'delete': function (key) {
2029 var index = arrayFindIndex(this.a, function (it) {
2030 return it[0] === key;
2031 });
2032 if (~index) this.a.splice(index, 1);
2033 return !!~index;
2034 }
2035};
2036
2037module.exports = {
2038 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
2039 var C = wrapper(function (that, iterable) {
2040 anInstance(that, C, NAME, '_i');
2041 that._t = NAME; // collection type
2042 that._i = id++; // collection id
2043 that._l = undefined; // leak store for uncaught frozen objects
2044 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
2045 });
2046 redefineAll(C.prototype, {
2047 // 23.3.3.2 WeakMap.prototype.delete(key)
2048 // 23.4.3.3 WeakSet.prototype.delete(value)
2049 'delete': function (key) {
2050 if (!isObject(key)) return false;
2051 var data = getWeak(key);
2052 if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
2053 return data && $has(data, this._i) && delete data[this._i];
2054 },
2055 // 23.3.3.4 WeakMap.prototype.has(key)
2056 // 23.4.3.4 WeakSet.prototype.has(value)
2057 has: function has(key) {
2058 if (!isObject(key)) return false;
2059 var data = getWeak(key);
2060 if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
2061 return data && $has(data, this._i);
2062 }
2063 });
2064 return C;
2065 },
2066 def: function (that, key, value) {
2067 var data = getWeak(anObject(key), true);
2068 if (data === true) uncaughtFrozenStore(that).set(key, value);
2069 else data[that._i] = value;
2070 return that;
2071 },
2072 ufstore: uncaughtFrozenStore
2073};
2074
2075
2076/***/ }),
2077
2078/***/ "aCFj":
2079/*!*****************************************************!*\
2080 !*** ./node_modules/core-js/modules/_to-iobject.js ***!
2081 \*****************************************************/
2082/*! no static exports found */
2083/***/ (function(module, exports, __webpack_require__) {
2084
2085// to indexed object, toObject with fallback for non-array-like ES3 strings
2086var IObject = __webpack_require__(/*! ./_iobject */ "Ymqv");
2087var defined = __webpack_require__(/*! ./_defined */ "vhPU");
2088module.exports = function (it) {
2089 return IObject(defined(it));
2090};
2091
2092
2093/***/ }),
2094
2095/***/ "aagx":
2096/*!**********************************************!*\
2097 !*** ./node_modules/core-js/modules/_has.js ***!
2098 \**********************************************/
2099/*! no static exports found */
2100/***/ (function(module, exports) {
2101
2102var hasOwnProperty = {}.hasOwnProperty;
2103module.exports = function (it, key) {
2104 return hasOwnProperty.call(it, key);
2105};
2106
2107
2108/***/ }),
2109
2110/***/ "apmT":
2111/*!*******************************************************!*\
2112 !*** ./node_modules/core-js/modules/_to-primitive.js ***!
2113 \*******************************************************/
2114/*! no static exports found */
2115/***/ (function(module, exports, __webpack_require__) {
2116
2117// 7.1.1 ToPrimitive(input [, PreferredType])
2118var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
2119// instead of the ES6 spec version, we didn't implement @@toPrimitive case
2120// and the second argument - flag - preferred type is a string
2121module.exports = function (it, S) {
2122 if (!isObject(it)) return it;
2123 var fn, val;
2124 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2125 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
2126 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2127 throw TypeError("Can't convert object to primitive value");
2128};
2129
2130
2131/***/ }),
2132
2133/***/ "czNK":
2134/*!********************************************************!*\
2135 !*** ./node_modules/core-js/modules/_object-assign.js ***!
2136 \********************************************************/
2137/*! no static exports found */
2138/***/ (function(module, exports, __webpack_require__) {
2139
2140"use strict";
2141
2142// 19.1.2.1 Object.assign(target, source, ...)
2143var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "nh4g");
2144var getKeys = __webpack_require__(/*! ./_object-keys */ "DVgA");
2145var gOPS = __webpack_require__(/*! ./_object-gops */ "JiEa");
2146var pIE = __webpack_require__(/*! ./_object-pie */ "UqcF");
2147var toObject = __webpack_require__(/*! ./_to-object */ "S/j/");
2148var IObject = __webpack_require__(/*! ./_iobject */ "Ymqv");
2149var $assign = Object.assign;
2150
2151// should work with symbols and should have deterministic property order (V8 bug)
2152module.exports = !$assign || __webpack_require__(/*! ./_fails */ "eeVq")(function () {
2153 var A = {};
2154 var B = {};
2155 // eslint-disable-next-line no-undef
2156 var S = Symbol();
2157 var K = 'abcdefghijklmnopqrst';
2158 A[S] = 7;
2159 K.split('').forEach(function (k) { B[k] = k; });
2160 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
2161}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
2162 var T = toObject(target);
2163 var aLen = arguments.length;
2164 var index = 1;
2165 var getSymbols = gOPS.f;
2166 var isEnum = pIE.f;
2167 while (aLen > index) {
2168 var S = IObject(arguments[index++]);
2169 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
2170 var length = keys.length;
2171 var j = 0;
2172 var key;
2173 while (length > j) {
2174 key = keys[j++];
2175 if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
2176 }
2177 } return T;
2178} : $assign;
2179
2180
2181/***/ }),
2182
2183/***/ "d/Gc":
2184/*!************************************************************!*\
2185 !*** ./node_modules/core-js/modules/_to-absolute-index.js ***!
2186 \************************************************************/
2187/*! no static exports found */
2188/***/ (function(module, exports, __webpack_require__) {
2189
2190var toInteger = __webpack_require__(/*! ./_to-integer */ "RYi7");
2191var max = Math.max;
2192var min = Math.min;
2193module.exports = function (index, length) {
2194 index = toInteger(index);
2195 return index < 0 ? max(index + length, 0) : min(index, length);
2196};
2197
2198
2199/***/ }),
2200
2201/***/ "dyZX":
2202/*!*************************************************!*\
2203 !*** ./node_modules/core-js/modules/_global.js ***!
2204 \*************************************************/
2205/*! no static exports found */
2206/***/ (function(module, exports) {
2207
2208// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
2209var global = module.exports = typeof window != 'undefined' && window.Math == Math
2210 ? window : typeof self != 'undefined' && self.Math == Math ? self
2211 // eslint-disable-next-line no-new-func
2212 : Function('return this')();
2213if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
2214
2215
2216/***/ }),
2217
2218/***/ "eeVq":
2219/*!************************************************!*\
2220 !*** ./node_modules/core-js/modules/_fails.js ***!
2221 \************************************************/
2222/*! no static exports found */
2223/***/ (function(module, exports) {
2224
2225module.exports = function (exec) {
2226 try {
2227 return !!exec();
2228 } catch (e) {
2229 return true;
2230 }
2231};
2232
2233
2234/***/ }),
2235
2236/***/ "elZq":
2237/*!******************************************************!*\
2238 !*** ./node_modules/core-js/modules/_set-species.js ***!
2239 \******************************************************/
2240/*! no static exports found */
2241/***/ (function(module, exports, __webpack_require__) {
2242
2243"use strict";
2244
2245var global = __webpack_require__(/*! ./_global */ "dyZX");
2246var dP = __webpack_require__(/*! ./_object-dp */ "hswa");
2247var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "nh4g");
2248var SPECIES = __webpack_require__(/*! ./_wks */ "K0xU")('species');
2249
2250module.exports = function (KEY) {
2251 var C = global[KEY];
2252 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
2253 configurable: true,
2254 get: function () { return this; }
2255 });
2256};
2257
2258
2259/***/ }),
2260
2261/***/ "f/aN":
2262/*!***************************************************************!*\
2263 !*** ./node_modules/core-js/modules/es6.reflect.enumerate.js ***!
2264 \***************************************************************/
2265/*! no static exports found */
2266/***/ (function(module, exports, __webpack_require__) {
2267
2268"use strict";
2269
2270// 26.1.5 Reflect.enumerate(target)
2271var $export = __webpack_require__(/*! ./_export */ "XKFU");
2272var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
2273var Enumerate = function (iterated) {
2274 this._t = anObject(iterated); // target
2275 this._i = 0; // next index
2276 var keys = this._k = []; // keys
2277 var key;
2278 for (key in iterated) keys.push(key);
2279};
2280__webpack_require__(/*! ./_iter-create */ "QaDb")(Enumerate, 'Object', function () {
2281 var that = this;
2282 var keys = that._k;
2283 var key;
2284 do {
2285 if (that._i >= keys.length) return { value: undefined, done: true };
2286 } while (!((key = keys[that._i++]) in that._t));
2287 return { value: key, done: false };
2288});
2289
2290$export($export.S, 'Reflect', {
2291 enumerate: function enumerate(target) {
2292 return new Enumerate(target);
2293 }
2294});
2295
2296
2297/***/ }),
2298
2299/***/ "fN/3":
2300/*!***************************************************************************!*\
2301 !*** ./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js ***!
2302 \***************************************************************************/
2303/*! no static exports found */
2304/***/ (function(module, exports, __webpack_require__) {
2305
2306var metadata = __webpack_require__(/*! ./_metadata */ "N6cJ");
2307var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
2308var ordinaryOwnMetadataKeys = metadata.keys;
2309var toMetaKey = metadata.key;
2310
2311metadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
2312 return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
2313} });
2314
2315
2316/***/ }),
2317
2318/***/ "fyDq":
2319/*!************************************************************!*\
2320 !*** ./node_modules/core-js/modules/_set-to-string-tag.js ***!
2321 \************************************************************/
2322/*! no static exports found */
2323/***/ (function(module, exports, __webpack_require__) {
2324
2325var def = __webpack_require__(/*! ./_object-dp */ "hswa").f;
2326var has = __webpack_require__(/*! ./_has */ "aagx");
2327var TAG = __webpack_require__(/*! ./_wks */ "K0xU")('toStringTag');
2328
2329module.exports = function (it, tag, stat) {
2330 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
2331};
2332
2333
2334/***/ }),
2335
2336/***/ "g3g5":
2337/*!***********************************************!*\
2338 !*** ./node_modules/core-js/modules/_core.js ***!
2339 \***********************************************/
2340/*! no static exports found */
2341/***/ (function(module, exports) {
2342
2343var core = module.exports = { version: '2.6.12' };
2344if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
2345
2346
2347/***/ }),
2348
2349/***/ "hN/g":
2350/*!**************************!*\
2351 !*** ./src/polyfills.ts ***!
2352 \**************************/
2353/*! no exports provided */
2354/***/ (function(module, __webpack_exports__, __webpack_require__) {
2355
2356"use strict";
2357__webpack_require__.r(__webpack_exports__);
2358/* harmony import */ var _angular_localize_init__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/localize/init */ "N/DB");
2359/* harmony import */ var _angular_localize_init__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_localize_init__WEBPACK_IMPORTED_MODULE_0__);
2360/* harmony import */ var zone_js_dist_zone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zone.js/dist/zone */ "pDpN");
2361/* harmony import */ var zone_js_dist_zone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(zone_js_dist_zone__WEBPACK_IMPORTED_MODULE_1__);
2362/* harmony import */ var core_js_es6_reflect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/es6/reflect */ "VbrY");
2363/* harmony import */ var core_js_es6_reflect__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_es6_reflect__WEBPACK_IMPORTED_MODULE_2__);
2364/* harmony import */ var core_js_es7_reflect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/es7/reflect */ "FZcq");
2365/* harmony import */ var core_js_es7_reflect__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_es7_reflect__WEBPACK_IMPORTED_MODULE_3__);
2366/***************************************************************************************************
2367 * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
2368 */
2369
2370/**
2371 * This file includes polyfills needed by Angular and is loaded before the app.
2372 * You can add your own extra polyfills to this file.
2373 *
2374 * This file is divided into 2 sections:
2375 * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
2376 * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
2377 * file.
2378 *
2379 * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
2380 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
2381 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
2382 *
2383 * Learn more in https://angular.io/guide/browser-support
2384 */
2385/***************************************************************************************************
2386 * BROWSER POLYFILLS
2387 */
2388/** IE10 and IE11 requires the following for NgClass support on SVG elements */
2389// import 'classlist.js'; // Run `npm install --save classlist.js`.
2390/**
2391 * Web Animations `@angular/platform-browser/animations`
2392 * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
2393 * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
2394 */
2395// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
2396/**
2397 * By default, zone.js will patch all possible macroTask and DomEvents
2398 * user can disable parts of macroTask/DomEvents patch by setting following flags
2399 * because those flags need to be set before `zone.js` being loaded, and webpack
2400 * will put import in the top of bundle, so user need to create a separate file
2401 * in this directory (for example: zone-flags.ts), and put the following flags
2402 * into that file, and then add the following code before importing zone.js.
2403 * import './zone-flags.ts';
2404 *
2405 * The flags allowed in zone-flags.ts are listed here.
2406 *
2407 * The following flags will work for all browsers.
2408 *
2409 * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
2410 * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
2411 * (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
2412 *
2413 * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
2414 * with the following flag, it will bypass `zone.js` patch for IE/Edge
2415 *
2416 * (window as any).__Zone_enable_cross_context_check = true;
2417 *
2418 */
2419/***************************************************************************************************
2420 * Zone JS is required by default for Angular itself.
2421 */
2422 // Included with Angular CLI.
2423/***************************************************************************************************
2424 * APPLICATION IMPORTS
2425 */
2426
2427
2428
2429
2430/***/ }),
2431
2432/***/ "hPIQ":
2433/*!****************************************************!*\
2434 !*** ./node_modules/core-js/modules/_iterators.js ***!
2435 \****************************************************/
2436/*! no static exports found */
2437/***/ (function(module, exports) {
2438
2439module.exports = {};
2440
2441
2442/***/ }),
2443
2444/***/ "hswa":
2445/*!****************************************************!*\
2446 !*** ./node_modules/core-js/modules/_object-dp.js ***!
2447 \****************************************************/
2448/*! no static exports found */
2449/***/ (function(module, exports, __webpack_require__) {
2450
2451var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
2452var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "xpql");
2453var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "apmT");
2454var dP = Object.defineProperty;
2455
2456exports.f = __webpack_require__(/*! ./_descriptors */ "nh4g") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
2457 anObject(O);
2458 P = toPrimitive(P, true);
2459 anObject(Attributes);
2460 if (IE8_DOM_DEFINE) try {
2461 return dP(O, P, Attributes);
2462 } catch (e) { /* empty */ }
2463 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
2464 if ('value' in Attributes) O[P] = Attributes.value;
2465 return O;
2466};
2467
2468
2469/***/ }),
2470
2471/***/ "i5dc":
2472/*!****************************************************!*\
2473 !*** ./node_modules/core-js/modules/_set-proto.js ***!
2474 \****************************************************/
2475/*! no static exports found */
2476/***/ (function(module, exports, __webpack_require__) {
2477
2478// Works with __proto__ only. Old v8 can't work with null proto objects.
2479/* eslint-disable no-proto */
2480var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
2481var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
2482var check = function (O, proto) {
2483 anObject(O);
2484 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
2485};
2486module.exports = {
2487 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
2488 function (test, buggy, set) {
2489 try {
2490 set = __webpack_require__(/*! ./_ctx */ "m0Pp")(Function.call, __webpack_require__(/*! ./_object-gopd */ "EemH").f(Object.prototype, '__proto__').set, 2);
2491 set(test, []);
2492 buggy = !(test instanceof Array);
2493 } catch (e) { buggy = true; }
2494 return function setPrototypeOf(O, proto) {
2495 check(O, proto);
2496 if (buggy) O.__proto__ = proto;
2497 else set(O, proto);
2498 return O;
2499 };
2500 }({}, false) : undefined),
2501 check: check
2502};
2503
2504
2505/***/ }),
2506
2507/***/ "iMoV":
2508/*!*********************************************************************!*\
2509 !*** ./node_modules/core-js/modules/es6.reflect.define-property.js ***!
2510 \*********************************************************************/
2511/*! no static exports found */
2512/***/ (function(module, exports, __webpack_require__) {
2513
2514// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
2515var dP = __webpack_require__(/*! ./_object-dp */ "hswa");
2516var $export = __webpack_require__(/*! ./_export */ "XKFU");
2517var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
2518var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "apmT");
2519
2520// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
2521$export($export.S + $export.F * __webpack_require__(/*! ./_fails */ "eeVq")(function () {
2522 // eslint-disable-next-line no-undef
2523 Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 });
2524}), 'Reflect', {
2525 defineProperty: function defineProperty(target, propertyKey, attributes) {
2526 anObject(target);
2527 propertyKey = toPrimitive(propertyKey, true);
2528 anObject(attributes);
2529 try {
2530 dP.f(target, propertyKey, attributes);
2531 return true;
2532 } catch (e) {
2533 return false;
2534 }
2535 }
2536});
2537
2538
2539/***/ }),
2540
2541/***/ "iW+S":
2542/*!******************************************************************!*\
2543 !*** ./node_modules/core-js/modules/es7.reflect.has-metadata.js ***!
2544 \******************************************************************/
2545/*! no static exports found */
2546/***/ (function(module, exports, __webpack_require__) {
2547
2548var metadata = __webpack_require__(/*! ./_metadata */ "N6cJ");
2549var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
2550var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "OP3Y");
2551var ordinaryHasOwnMetadata = metadata.has;
2552var toMetaKey = metadata.key;
2553
2554var ordinaryHasMetadata = function (MetadataKey, O, P) {
2555 var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
2556 if (hasOwn) return true;
2557 var parent = getPrototypeOf(O);
2558 return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;
2559};
2560
2561metadata.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {
2562 return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
2563} });
2564
2565
2566/***/ }),
2567
2568/***/ "kJMx":
2569/*!******************************************************!*\
2570 !*** ./node_modules/core-js/modules/_object-gopn.js ***!
2571 \******************************************************/
2572/*! no static exports found */
2573/***/ (function(module, exports, __webpack_require__) {
2574
2575// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
2576var $keys = __webpack_require__(/*! ./_object-keys-internal */ "zhAb");
2577var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "4R4u").concat('length', 'prototype');
2578
2579exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
2580 return $keys(O, hiddenKeys);
2581};
2582
2583
2584/***/ }),
2585
2586/***/ "klPD":
2587/*!*********************************************************!*\
2588 !*** ./node_modules/core-js/modules/es6.reflect.set.js ***!
2589 \*********************************************************/
2590/*! no static exports found */
2591/***/ (function(module, exports, __webpack_require__) {
2592
2593// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
2594var dP = __webpack_require__(/*! ./_object-dp */ "hswa");
2595var gOPD = __webpack_require__(/*! ./_object-gopd */ "EemH");
2596var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "OP3Y");
2597var has = __webpack_require__(/*! ./_has */ "aagx");
2598var $export = __webpack_require__(/*! ./_export */ "XKFU");
2599var createDesc = __webpack_require__(/*! ./_property-desc */ "RjD/");
2600var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
2601var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
2602
2603function set(target, propertyKey, V /* , receiver */) {
2604 var receiver = arguments.length < 4 ? target : arguments[3];
2605 var ownDesc = gOPD.f(anObject(target), propertyKey);
2606 var existingDescriptor, proto;
2607 if (!ownDesc) {
2608 if (isObject(proto = getPrototypeOf(target))) {
2609 return set(proto, propertyKey, V, receiver);
2610 }
2611 ownDesc = createDesc(0);
2612 }
2613 if (has(ownDesc, 'value')) {
2614 if (ownDesc.writable === false || !isObject(receiver)) return false;
2615 if (existingDescriptor = gOPD.f(receiver, propertyKey)) {
2616 if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;
2617 existingDescriptor.value = V;
2618 dP.f(receiver, propertyKey, existingDescriptor);
2619 } else dP.f(receiver, propertyKey, createDesc(0, V));
2620 return true;
2621 }
2622 return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
2623}
2624
2625$export($export.S, 'Reflect', { set: set });
2626
2627
2628/***/ }),
2629
2630/***/ "knU9":
2631/*!**********************************************************************!*\
2632 !*** ./node_modules/core-js/modules/es6.reflect.set-prototype-of.js ***!
2633 \**********************************************************************/
2634/*! no static exports found */
2635/***/ (function(module, exports, __webpack_require__) {
2636
2637// 26.1.14 Reflect.setPrototypeOf(target, proto)
2638var $export = __webpack_require__(/*! ./_export */ "XKFU");
2639var setProto = __webpack_require__(/*! ./_set-proto */ "i5dc");
2640
2641if (setProto) $export($export.S, 'Reflect', {
2642 setPrototypeOf: function setPrototypeOf(target, proto) {
2643 setProto.check(target, proto);
2644 try {
2645 setProto.set(target, proto);
2646 return true;
2647 } catch (e) {
2648 return false;
2649 }
2650 }
2651});
2652
2653
2654/***/ }),
2655
2656/***/ "m0Pp":
2657/*!**********************************************!*\
2658 !*** ./node_modules/core-js/modules/_ctx.js ***!
2659 \**********************************************/
2660/*! no static exports found */
2661/***/ (function(module, exports, __webpack_require__) {
2662
2663// optional / simple context binding
2664var aFunction = __webpack_require__(/*! ./_a-function */ "2OiF");
2665module.exports = function (fn, that, length) {
2666 aFunction(fn);
2667 if (that === undefined) return fn;
2668 switch (length) {
2669 case 1: return function (a) {
2670 return fn.call(that, a);
2671 };
2672 case 2: return function (a, b) {
2673 return fn.call(that, a, b);
2674 };
2675 case 3: return function (a, b, c) {
2676 return fn.call(that, a, b, c);
2677 };
2678 }
2679 return function (/* ...args */) {
2680 return fn.apply(that, arguments);
2681 };
2682};
2683
2684
2685/***/ }),
2686
2687/***/ "mQtv":
2688/*!***************************************************!*\
2689 !*** ./node_modules/core-js/modules/_own-keys.js ***!
2690 \***************************************************/
2691/*! no static exports found */
2692/***/ (function(module, exports, __webpack_require__) {
2693
2694// all object keys, includes non-enumerable and symbols
2695var gOPN = __webpack_require__(/*! ./_object-gopn */ "kJMx");
2696var gOPS = __webpack_require__(/*! ./_object-gops */ "JiEa");
2697var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
2698var Reflect = __webpack_require__(/*! ./_global */ "dyZX").Reflect;
2699module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
2700 var keys = gOPN.f(anObject(it));
2701 var getSymbols = gOPS.f;
2702 return getSymbols ? keys.concat(getSymbols(it)) : keys;
2703};
2704
2705
2706/***/ }),
2707
2708/***/ "ne8i":
2709/*!****************************************************!*\
2710 !*** ./node_modules/core-js/modules/_to-length.js ***!
2711 \****************************************************/
2712/*! no static exports found */
2713/***/ (function(module, exports, __webpack_require__) {
2714
2715// 7.1.15 ToLength
2716var toInteger = __webpack_require__(/*! ./_to-integer */ "RYi7");
2717var min = Math.min;
2718module.exports = function (it) {
2719 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
2720};
2721
2722
2723/***/ }),
2724
2725/***/ "nh4g":
2726/*!******************************************************!*\
2727 !*** ./node_modules/core-js/modules/_descriptors.js ***!
2728 \******************************************************/
2729/*! no static exports found */
2730/***/ (function(module, exports, __webpack_require__) {
2731
2732// Thank's IE8 for his funny defineProperty
2733module.exports = !__webpack_require__(/*! ./_fails */ "eeVq")(function () {
2734 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
2735});
2736
2737
2738/***/ }),
2739
2740/***/ "oZ/O":
2741/*!************************************************************************!*\
2742 !*** ./node_modules/core-js/modules/es6.reflect.prevent-extensions.js ***!
2743 \************************************************************************/
2744/*! no static exports found */
2745/***/ (function(module, exports, __webpack_require__) {
2746
2747// 26.1.12 Reflect.preventExtensions(target)
2748var $export = __webpack_require__(/*! ./_export */ "XKFU");
2749var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
2750var $preventExtensions = Object.preventExtensions;
2751
2752$export($export.S, 'Reflect', {
2753 preventExtensions: function preventExtensions(target) {
2754 anObject(target);
2755 try {
2756 if ($preventExtensions) $preventExtensions(target);
2757 return true;
2758 } catch (e) {
2759 return false;
2760 }
2761 }
2762});
2763
2764
2765/***/ }),
2766
2767/***/ "pDpN":
2768/*!*****************************************************!*\
2769 !*** ./node_modules/zone.js/dist/zone-evergreen.js ***!
2770 \*****************************************************/
2771/*! no static exports found */
2772/***/ (function(module, exports, __webpack_require__) {
2773
2774var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
2775* @license Angular v9.1.0-next.4+61.sha-e552591.with-local-changes
2776* (c) 2010-2020 Google LLC. https://angular.io/
2777* License: MIT
2778*/
2779(function (factory) {
2780 true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
2781 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
2782 (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
2783 __WEBPACK_AMD_DEFINE_FACTORY__),
2784 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) :
2785 undefined;
2786}((function () { 'use strict';
2787
2788 /**
2789 * @license
2790 * Copyright Google Inc. All Rights Reserved.
2791 *
2792 * Use of this source code is governed by an MIT-style license that can be
2793 * found in the LICENSE file at https://angular.io/license
2794 */
2795 const Zone$1 = (function (global) {
2796 const performance = global['performance'];
2797 function mark(name) { performance && performance['mark'] && performance['mark'](name); }
2798 function performanceMeasure(name, label) {
2799 performance && performance['measure'] && performance['measure'](name, label);
2800 }
2801 mark('Zone');
2802 // Initialize before it's accessed below.
2803 // __Zone_symbol_prefix global can be used to override the default zone
2804 // symbol prefix with a custom one if needed.
2805 const symbolPrefix = global['__Zone_symbol_prefix'] || '__zone_symbol__';
2806 function __symbol__(name) { return symbolPrefix + name; }
2807 const checkDuplicate = global[__symbol__('forceDuplicateZoneCheck')] === true;
2808 if (global['Zone']) {
2809 // if global['Zone'] already exists (maybe zone.js was already loaded or
2810 // some other lib also registered a global object named Zone), we may need
2811 // to throw an error, but sometimes user may not want this error.
2812 // For example,
2813 // we have two web pages, page1 includes zone.js, page2 doesn't.
2814 // and the 1st time user load page1 and page2, everything work fine,
2815 // but when user load page2 again, error occurs because global['Zone'] already exists.
2816 // so we add a flag to let user choose whether to throw this error or not.
2817 // By default, if existing Zone is from zone.js, we will not throw the error.
2818 if (checkDuplicate || typeof global['Zone'].__symbol__ !== 'function') {
2819 throw new Error('Zone already loaded.');
2820 }
2821 else {
2822 return global['Zone'];
2823 }
2824 }
2825 class Zone {
2826 constructor(parent, zoneSpec) {
2827 this._parent = parent;
2828 this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';
2829 this._properties = zoneSpec && zoneSpec.properties || {};
2830 this._zoneDelegate =
2831 new ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);
2832 }
2833 static assertZonePatched() {
2834 if (global['Promise'] !== patches['ZoneAwarePromise']) {
2835 throw new Error('Zone.js has detected that ZoneAwarePromise `(window|global).Promise` ' +
2836 'has been overwritten.\n' +
2837 'Most likely cause is that a Promise polyfill has been loaded ' +
2838 'after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. ' +
2839 'If you must load one, do so before loading zone.js.)');
2840 }
2841 }
2842 static get root() {
2843 let zone = Zone.current;
2844 while (zone.parent) {
2845 zone = zone.parent;
2846 }
2847 return zone;
2848 }
2849 static get current() { return _currentZoneFrame.zone; }
2850 static get currentTask() { return _currentTask; }
2851 // tslint:disable-next-line:require-internal-with-underscore
2852 static __load_patch(name, fn) {
2853 if (patches.hasOwnProperty(name)) {
2854 if (checkDuplicate) {
2855 throw Error('Already loaded patch: ' + name);
2856 }
2857 }
2858 else if (!global['__Zone_disable_' + name]) {
2859 const perfName = 'Zone:' + name;
2860 mark(perfName);
2861 patches[name] = fn(global, Zone, _api);
2862 performanceMeasure(perfName, perfName);
2863 }
2864 }
2865 get parent() { return this._parent; }
2866 get name() { return this._name; }
2867 get(key) {
2868 const zone = this.getZoneWith(key);
2869 if (zone)
2870 return zone._properties[key];
2871 }
2872 getZoneWith(key) {
2873 let current = this;
2874 while (current) {
2875 if (current._properties.hasOwnProperty(key)) {
2876 return current;
2877 }
2878 current = current._parent;
2879 }
2880 return null;
2881 }
2882 fork(zoneSpec) {
2883 if (!zoneSpec)
2884 throw new Error('ZoneSpec required!');
2885 return this._zoneDelegate.fork(this, zoneSpec);
2886 }
2887 wrap(callback, source) {
2888 if (typeof callback !== 'function') {
2889 throw new Error('Expecting function got: ' + callback);
2890 }
2891 const _callback = this._zoneDelegate.intercept(this, callback, source);
2892 const zone = this;
2893 return function () {
2894 return zone.runGuarded(_callback, this, arguments, source);
2895 };
2896 }
2897 run(callback, applyThis, applyArgs, source) {
2898 _currentZoneFrame = { parent: _currentZoneFrame, zone: this };
2899 try {
2900 return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
2901 }
2902 finally {
2903 _currentZoneFrame = _currentZoneFrame.parent;
2904 }
2905 }
2906 runGuarded(callback, applyThis = null, applyArgs, source) {
2907 _currentZoneFrame = { parent: _currentZoneFrame, zone: this };
2908 try {
2909 try {
2910 return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
2911 }
2912 catch (error) {
2913 if (this._zoneDelegate.handleError(this, error)) {
2914 throw error;
2915 }
2916 }
2917 }
2918 finally {
2919 _currentZoneFrame = _currentZoneFrame.parent;
2920 }
2921 }
2922 runTask(task, applyThis, applyArgs) {
2923 if (task.zone != this) {
2924 throw new Error('A task can only be run in the zone of creation! (Creation: ' +
2925 (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');
2926 }
2927 // https://github.com/angular/zone.js/issues/778, sometimes eventTask
2928 // will run in notScheduled(canceled) state, we should not try to
2929 // run such kind of task but just return
2930 if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) {
2931 return;
2932 }
2933 const reEntryGuard = task.state != running;
2934 reEntryGuard && task._transitionTo(running, scheduled);
2935 task.runCount++;
2936 const previousTask = _currentTask;
2937 _currentTask = task;
2938 _currentZoneFrame = { parent: _currentZoneFrame, zone: this };
2939 try {
2940 if (task.type == macroTask && task.data && !task.data.isPeriodic) {
2941 task.cancelFn = undefined;
2942 }
2943 try {
2944 return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
2945 }
2946 catch (error) {
2947 if (this._zoneDelegate.handleError(this, error)) {
2948 throw error;
2949 }
2950 }
2951 }
2952 finally {
2953 // if the task's state is notScheduled or unknown, then it has already been cancelled
2954 // we should not reset the state to scheduled
2955 if (task.state !== notScheduled && task.state !== unknown) {
2956 if (task.type == eventTask || (task.data && task.data.isPeriodic)) {
2957 reEntryGuard && task._transitionTo(scheduled, running);
2958 }
2959 else {
2960 task.runCount = 0;
2961 this._updateTaskCount(task, -1);
2962 reEntryGuard &&
2963 task._transitionTo(notScheduled, running, notScheduled);
2964 }
2965 }
2966 _currentZoneFrame = _currentZoneFrame.parent;
2967 _currentTask = previousTask;
2968 }
2969 }
2970 scheduleTask(task) {
2971 if (task.zone && task.zone !== this) {
2972 // check if the task was rescheduled, the newZone
2973 // should not be the children of the original zone
2974 let newZone = this;
2975 while (newZone) {
2976 if (newZone === task.zone) {
2977 throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${task.zone.name}`);
2978 }
2979 newZone = newZone.parent;
2980 }
2981 }
2982 task._transitionTo(scheduling, notScheduled);
2983 const zoneDelegates = [];
2984 task._zoneDelegates = zoneDelegates;
2985 task._zone = this;
2986 try {
2987 task = this._zoneDelegate.scheduleTask(this, task);
2988 }
2989 catch (err) {
2990 // should set task's state to unknown when scheduleTask throw error
2991 // because the err may from reschedule, so the fromState maybe notScheduled
2992 task._transitionTo(unknown, scheduling, notScheduled);
2993 // TODO: @JiaLiPassion, should we check the result from handleError?
2994 this._zoneDelegate.handleError(this, err);
2995 throw err;
2996 }
2997 if (task._zoneDelegates === zoneDelegates) {
2998 // we have to check because internally the delegate can reschedule the task.
2999 this._updateTaskCount(task, 1);
3000 }
3001 if (task.state == scheduling) {
3002 task._transitionTo(scheduled, scheduling);
3003 }
3004 return task;
3005 }
3006 scheduleMicroTask(source, callback, data, customSchedule) {
3007 return this.scheduleTask(new ZoneTask(microTask, source, callback, data, customSchedule, undefined));
3008 }
3009 scheduleMacroTask(source, callback, data, customSchedule, customCancel) {
3010 return this.scheduleTask(new ZoneTask(macroTask, source, callback, data, customSchedule, customCancel));
3011 }
3012 scheduleEventTask(source, callback, data, customSchedule, customCancel) {
3013 return this.scheduleTask(new ZoneTask(eventTask, source, callback, data, customSchedule, customCancel));
3014 }
3015 cancelTask(task) {
3016 if (task.zone != this)
3017 throw new Error('A task can only be cancelled in the zone of creation! (Creation: ' +
3018 (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');
3019 task._transitionTo(canceling, scheduled, running);
3020 try {
3021 this._zoneDelegate.cancelTask(this, task);
3022 }
3023 catch (err) {
3024 // if error occurs when cancelTask, transit the state to unknown
3025 task._transitionTo(unknown, canceling);
3026 this._zoneDelegate.handleError(this, err);
3027 throw err;
3028 }
3029 this._updateTaskCount(task, -1);
3030 task._transitionTo(notScheduled, canceling);
3031 task.runCount = 0;
3032 return task;
3033 }
3034 _updateTaskCount(task, count) {
3035 const zoneDelegates = task._zoneDelegates;
3036 if (count == -1) {
3037 task._zoneDelegates = null;
3038 }
3039 for (let i = 0; i < zoneDelegates.length; i++) {
3040 zoneDelegates[i]._updateTaskCount(task.type, count);
3041 }
3042 }
3043 }
3044 // tslint:disable-next-line:require-internal-with-underscore
3045 Zone.__symbol__ = __symbol__;
3046 const DELEGATE_ZS = {
3047 name: '',
3048 onHasTask: (delegate, _, target, hasTaskState) => delegate.hasTask(target, hasTaskState),
3049 onScheduleTask: (delegate, _, target, task) => delegate.scheduleTask(target, task),
3050 onInvokeTask: (delegate, _, target, task, applyThis, applyArgs) => delegate.invokeTask(target, task, applyThis, applyArgs),
3051 onCancelTask: (delegate, _, target, task) => delegate.cancelTask(target, task)
3052 };
3053 class ZoneDelegate {
3054 constructor(zone, parentDelegate, zoneSpec) {
3055 this._taskCounts = { 'microTask': 0, 'macroTask': 0, 'eventTask': 0 };
3056 this.zone = zone;
3057 this._parentDelegate = parentDelegate;
3058 this._forkZS =
3059 zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);
3060 this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);
3061 this._forkCurrZone =
3062 zoneSpec && (zoneSpec.onFork ? this.zone : parentDelegate._forkCurrZone);
3063 this._interceptZS =
3064 zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);
3065 this._interceptDlgt =
3066 zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);
3067 this._interceptCurrZone =
3068 zoneSpec && (zoneSpec.onIntercept ? this.zone : parentDelegate._interceptCurrZone);
3069 this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);
3070 this._invokeDlgt =
3071 zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);
3072 this._invokeCurrZone =
3073 zoneSpec && (zoneSpec.onInvoke ? this.zone : parentDelegate._invokeCurrZone);
3074 this._handleErrorZS =
3075 zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);
3076 this._handleErrorDlgt = zoneSpec &&
3077 (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);
3078 this._handleErrorCurrZone =
3079 zoneSpec && (zoneSpec.onHandleError ? this.zone : parentDelegate._handleErrorCurrZone);
3080 this._scheduleTaskZS =
3081 zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);
3082 this._scheduleTaskDlgt = zoneSpec &&
3083 (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);
3084 this._scheduleTaskCurrZone = zoneSpec &&
3085 (zoneSpec.onScheduleTask ? this.zone : parentDelegate._scheduleTaskCurrZone);
3086 this._invokeTaskZS =
3087 zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);
3088 this._invokeTaskDlgt =
3089 zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);
3090 this._invokeTaskCurrZone =
3091 zoneSpec && (zoneSpec.onInvokeTask ? this.zone : parentDelegate._invokeTaskCurrZone);
3092 this._cancelTaskZS =
3093 zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);
3094 this._cancelTaskDlgt =
3095 zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);
3096 this._cancelTaskCurrZone =
3097 zoneSpec && (zoneSpec.onCancelTask ? this.zone : parentDelegate._cancelTaskCurrZone);
3098 this._hasTaskZS = null;
3099 this._hasTaskDlgt = null;
3100 this._hasTaskDlgtOwner = null;
3101 this._hasTaskCurrZone = null;
3102 const zoneSpecHasTask = zoneSpec && zoneSpec.onHasTask;
3103 const parentHasTask = parentDelegate && parentDelegate._hasTaskZS;
3104 if (zoneSpecHasTask || parentHasTask) {
3105 // If we need to report hasTask, than this ZS needs to do ref counting on tasks. In such
3106 // a case all task related interceptors must go through this ZD. We can't short circuit it.
3107 this._hasTaskZS = zoneSpecHasTask ? zoneSpec : DELEGATE_ZS;
3108 this._hasTaskDlgt = parentDelegate;
3109 this._hasTaskDlgtOwner = this;
3110 this._hasTaskCurrZone = zone;
3111 if (!zoneSpec.onScheduleTask) {
3112 this._scheduleTaskZS = DELEGATE_ZS;
3113 this._scheduleTaskDlgt = parentDelegate;
3114 this._scheduleTaskCurrZone = this.zone;
3115 }
3116 if (!zoneSpec.onInvokeTask) {
3117 this._invokeTaskZS = DELEGATE_ZS;
3118 this._invokeTaskDlgt = parentDelegate;
3119 this._invokeTaskCurrZone = this.zone;
3120 }
3121 if (!zoneSpec.onCancelTask) {
3122 this._cancelTaskZS = DELEGATE_ZS;
3123 this._cancelTaskDlgt = parentDelegate;
3124 this._cancelTaskCurrZone = this.zone;
3125 }
3126 }
3127 }
3128 fork(targetZone, zoneSpec) {
3129 return this._forkZS ?
3130 this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec) :
3131 new Zone(targetZone, zoneSpec);
3132 }
3133 intercept(targetZone, callback, source) {
3134 return this._interceptZS ?
3135 this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, targetZone, callback, source) :
3136 callback;
3137 }
3138 invoke(targetZone, callback, applyThis, applyArgs, source) {
3139 return this._invokeZS ?
3140 this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, targetZone, callback, applyThis, applyArgs, source) :
3141 callback.apply(applyThis, applyArgs);
3142 }
3143 handleError(targetZone, error) {
3144 return this._handleErrorZS ?
3145 this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, targetZone, error) :
3146 true;
3147 }
3148 scheduleTask(targetZone, task) {
3149 let returnTask = task;
3150 if (this._scheduleTaskZS) {
3151 if (this._hasTaskZS) {
3152 returnTask._zoneDelegates.push(this._hasTaskDlgtOwner);
3153 }
3154 // clang-format off
3155 returnTask = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, targetZone, task);
3156 // clang-format on
3157 if (!returnTask)
3158 returnTask = task;
3159 }
3160 else {
3161 if (task.scheduleFn) {
3162 task.scheduleFn(task);
3163 }
3164 else if (task.type == microTask) {
3165 scheduleMicroTask(task);
3166 }
3167 else {
3168 throw new Error('Task is missing scheduleFn.');
3169 }
3170 }
3171 return returnTask;
3172 }
3173 invokeTask(targetZone, task, applyThis, applyArgs) {
3174 return this._invokeTaskZS ?
3175 this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, targetZone, task, applyThis, applyArgs) :
3176 task.callback.apply(applyThis, applyArgs);
3177 }
3178 cancelTask(targetZone, task) {
3179 let value;
3180 if (this._cancelTaskZS) {
3181 value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, targetZone, task);
3182 }
3183 else {
3184 if (!task.cancelFn) {
3185 throw Error('Task is not cancelable');
3186 }
3187 value = task.cancelFn(task);
3188 }
3189 return value;
3190 }
3191 hasTask(targetZone, isEmpty) {
3192 // hasTask should not throw error so other ZoneDelegate
3193 // can still trigger hasTask callback
3194 try {
3195 this._hasTaskZS &&
3196 this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, targetZone, isEmpty);
3197 }
3198 catch (err) {
3199 this.handleError(targetZone, err);
3200 }
3201 }
3202 // tslint:disable-next-line:require-internal-with-underscore
3203 _updateTaskCount(type, count) {
3204 const counts = this._taskCounts;
3205 const prev = counts[type];
3206 const next = counts[type] = prev + count;
3207 if (next < 0) {
3208 throw new Error('More tasks executed then were scheduled.');
3209 }
3210 if (prev == 0 || next == 0) {
3211 const isEmpty = {
3212 microTask: counts['microTask'] > 0,
3213 macroTask: counts['macroTask'] > 0,
3214 eventTask: counts['eventTask'] > 0,
3215 change: type
3216 };
3217 this.hasTask(this.zone, isEmpty);
3218 }
3219 }
3220 }
3221 class ZoneTask {
3222 constructor(type, source, callback, options, scheduleFn, cancelFn) {
3223 // tslint:disable-next-line:require-internal-with-underscore
3224 this._zone = null;
3225 this.runCount = 0;
3226 // tslint:disable-next-line:require-internal-with-underscore
3227 this._zoneDelegates = null;
3228 // tslint:disable-next-line:require-internal-with-underscore
3229 this._state = 'notScheduled';
3230 this.type = type;
3231 this.source = source;
3232 this.data = options;
3233 this.scheduleFn = scheduleFn;
3234 this.cancelFn = cancelFn;
3235 if (!callback) {
3236 throw new Error('callback is not defined');
3237 }
3238 this.callback = callback;
3239 const self = this;
3240 // TODO: @JiaLiPassion options should have interface
3241 if (type === eventTask && options && options.useG) {
3242 this.invoke = ZoneTask.invokeTask;
3243 }
3244 else {
3245 this.invoke = function () {
3246 return ZoneTask.invokeTask.call(global, self, this, arguments);
3247 };
3248 }
3249 }
3250 static invokeTask(task, target, args) {
3251 if (!task) {
3252 task = this;
3253 }
3254 _numberOfNestedTaskFrames++;
3255 try {
3256 task.runCount++;
3257 return task.zone.runTask(task, target, args);
3258 }
3259 finally {
3260 if (_numberOfNestedTaskFrames == 1) {
3261 drainMicroTaskQueue();
3262 }
3263 _numberOfNestedTaskFrames--;
3264 }
3265 }
3266 get zone() { return this._zone; }
3267 get state() { return this._state; }
3268 cancelScheduleRequest() { this._transitionTo(notScheduled, scheduling); }
3269 // tslint:disable-next-line:require-internal-with-underscore
3270 _transitionTo(toState, fromState1, fromState2) {
3271 if (this._state === fromState1 || this._state === fromState2) {
3272 this._state = toState;
3273 if (toState == notScheduled) {
3274 this._zoneDelegates = null;
3275 }
3276 }
3277 else {
3278 throw new Error(`${this.type} '${this.source}': can not transition to '${toState}', expecting state '${fromState1}'${fromState2 ? ' or \'' + fromState2 + '\'' : ''}, was '${this._state}'.`);
3279 }
3280 }
3281 toString() {
3282 if (this.data && typeof this.data.handleId !== 'undefined') {
3283 return this.data.handleId.toString();
3284 }
3285 else {
3286 return Object.prototype.toString.call(this);
3287 }
3288 }
3289 // add toJSON method to prevent cyclic error when
3290 // call JSON.stringify(zoneTask)
3291 toJSON() {
3292 return {
3293 type: this.type,
3294 state: this.state,
3295 source: this.source,
3296 zone: this.zone.name,
3297 runCount: this.runCount
3298 };
3299 }
3300 }
3301 //////////////////////////////////////////////////////
3302 //////////////////////////////////////////////////////
3303 /// MICROTASK QUEUE
3304 //////////////////////////////////////////////////////
3305 //////////////////////////////////////////////////////
3306 const symbolSetTimeout = __symbol__('setTimeout');
3307 const symbolPromise = __symbol__('Promise');
3308 const symbolThen = __symbol__('then');
3309 let _microTaskQueue = [];
3310 let _isDrainingMicrotaskQueue = false;
3311 let nativeMicroTaskQueuePromise;
3312 function scheduleMicroTask(task) {
3313 // if we are not running in any task, and there has not been anything scheduled
3314 // we must bootstrap the initial task creation by manually scheduling the drain
3315 if (_numberOfNestedTaskFrames === 0 && _microTaskQueue.length === 0) {
3316 // We are not running in Task, so we need to kickstart the microtask queue.
3317 if (!nativeMicroTaskQueuePromise) {
3318 if (global[symbolPromise]) {
3319 nativeMicroTaskQueuePromise = global[symbolPromise].resolve(0);
3320 }
3321 }
3322 if (nativeMicroTaskQueuePromise) {
3323 let nativeThen = nativeMicroTaskQueuePromise[symbolThen];
3324 if (!nativeThen) {
3325 // native Promise is not patchable, we need to use `then` directly
3326 // issue 1078
3327 nativeThen = nativeMicroTaskQueuePromise['then'];
3328 }
3329 nativeThen.call(nativeMicroTaskQueuePromise, drainMicroTaskQueue);
3330 }
3331 else {
3332 global[symbolSetTimeout](drainMicroTaskQueue, 0);
3333 }
3334 }
3335 task && _microTaskQueue.push(task);
3336 }
3337 function drainMicroTaskQueue() {
3338 if (!_isDrainingMicrotaskQueue) {
3339 _isDrainingMicrotaskQueue = true;
3340 while (_microTaskQueue.length) {
3341 const queue = _microTaskQueue;
3342 _microTaskQueue = [];
3343 for (let i = 0; i < queue.length; i++) {
3344 const task = queue[i];
3345 try {
3346 task.zone.runTask(task, null, null);
3347 }
3348 catch (error) {
3349 _api.onUnhandledError(error);
3350 }
3351 }
3352 }
3353 _api.microtaskDrainDone();
3354 _isDrainingMicrotaskQueue = false;
3355 }
3356 }
3357 //////////////////////////////////////////////////////
3358 //////////////////////////////////////////////////////
3359 /// BOOTSTRAP
3360 //////////////////////////////////////////////////////
3361 //////////////////////////////////////////////////////
3362 const NO_ZONE = { name: 'NO ZONE' };
3363 const notScheduled = 'notScheduled', scheduling = 'scheduling', scheduled = 'scheduled', running = 'running', canceling = 'canceling', unknown = 'unknown';
3364 const microTask = 'microTask', macroTask = 'macroTask', eventTask = 'eventTask';
3365 const patches = {};
3366 const _api = {
3367 symbol: __symbol__,
3368 currentZoneFrame: () => _currentZoneFrame,
3369 onUnhandledError: noop,
3370 microtaskDrainDone: noop,
3371 scheduleMicroTask: scheduleMicroTask,
3372 showUncaughtError: () => !Zone[__symbol__('ignoreConsoleErrorUncaughtError')],
3373 patchEventTarget: () => [],
3374 patchOnProperties: noop,
3375 patchMethod: () => noop,
3376 bindArguments: () => [],
3377 patchThen: () => noop,
3378 patchMacroTask: () => noop,
3379 setNativePromise: (NativePromise) => {
3380 // sometimes NativePromise.resolve static function
3381 // is not ready yet, (such as core-js/es6.promise)
3382 // so we need to check here.
3383 if (NativePromise && typeof NativePromise.resolve === 'function') {
3384 nativeMicroTaskQueuePromise = NativePromise.resolve(0);
3385 }
3386 },
3387 patchEventPrototype: () => noop,
3388 isIEOrEdge: () => false,
3389 getGlobalObjects: () => undefined,
3390 ObjectDefineProperty: () => noop,
3391 ObjectGetOwnPropertyDescriptor: () => undefined,
3392 ObjectCreate: () => undefined,
3393 ArraySlice: () => [],
3394 patchClass: () => noop,
3395 wrapWithCurrentZone: () => noop,
3396 filterProperties: () => [],
3397 attachOriginToPatched: () => noop,
3398 _redefineProperty: () => noop,
3399 patchCallbacks: () => noop
3400 };
3401 let _currentZoneFrame = { parent: null, zone: new Zone(null, null) };
3402 let _currentTask = null;
3403 let _numberOfNestedTaskFrames = 0;
3404 function noop() { }
3405 performanceMeasure('Zone', 'Zone');
3406 return global['Zone'] = Zone;
3407 })(typeof window !== 'undefined' && window || typeof self !== 'undefined' && self || global);
3408
3409 /**
3410 * @license
3411 * Copyright Google Inc. All Rights Reserved.
3412 *
3413 * Use of this source code is governed by an MIT-style license that can be
3414 * found in the LICENSE file at https://angular.io/license
3415 */
3416 Zone.__load_patch('ZoneAwarePromise', (global, Zone, api) => {
3417 const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3418 const ObjectDefineProperty = Object.defineProperty;
3419 function readableObjectToString(obj) {
3420 if (obj && obj.toString === Object.prototype.toString) {
3421 const className = obj.constructor && obj.constructor.name;
3422 return (className ? className : '') + ': ' + JSON.stringify(obj);
3423 }
3424 return obj ? obj.toString() : Object.prototype.toString.call(obj);
3425 }
3426 const __symbol__ = api.symbol;
3427 const _uncaughtPromiseErrors = [];
3428 const isDisableWrappingUncaughtPromiseRejection = global[__symbol__('DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION')] === true;
3429 const symbolPromise = __symbol__('Promise');
3430 const symbolThen = __symbol__('then');
3431 const creationTrace = '__creationTrace__';
3432 api.onUnhandledError = (e) => {
3433 if (api.showUncaughtError()) {
3434 const rejection = e && e.rejection;
3435 if (rejection) {
3436 console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection, rejection instanceof Error ? rejection.stack : undefined);
3437 }
3438 else {
3439 console.error(e);
3440 }
3441 }
3442 };
3443 api.microtaskDrainDone = () => {
3444 while (_uncaughtPromiseErrors.length) {
3445 const uncaughtPromiseError = _uncaughtPromiseErrors.shift();
3446 try {
3447 uncaughtPromiseError.zone.runGuarded(() => { throw uncaughtPromiseError; });
3448 }
3449 catch (error) {
3450 handleUnhandledRejection(error);
3451 }
3452 }
3453 };
3454 const UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL = __symbol__('unhandledPromiseRejectionHandler');
3455 function handleUnhandledRejection(e) {
3456 api.onUnhandledError(e);
3457 try {
3458 const handler = Zone[UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL];
3459 if (typeof handler === 'function') {
3460 handler.call(this, e);
3461 }
3462 }
3463 catch (err) {
3464 }
3465 }
3466 function isThenable(value) { return value && value.then; }
3467 function forwardResolution(value) { return value; }
3468 function forwardRejection(rejection) { return ZoneAwarePromise.reject(rejection); }
3469 const symbolState = __symbol__('state');
3470 const symbolValue = __symbol__('value');
3471 const symbolFinally = __symbol__('finally');
3472 const symbolParentPromiseValue = __symbol__('parentPromiseValue');
3473 const symbolParentPromiseState = __symbol__('parentPromiseState');
3474 const source = 'Promise.then';
3475 const UNRESOLVED = null;
3476 const RESOLVED = true;
3477 const REJECTED = false;
3478 const REJECTED_NO_CATCH = 0;
3479 function makeResolver(promise, state) {
3480 return (v) => {
3481 try {
3482 resolvePromise(promise, state, v);
3483 }
3484 catch (err) {
3485 resolvePromise(promise, false, err);
3486 }
3487 // Do not return value or you will break the Promise spec.
3488 };
3489 }
3490 const once = function () {
3491 let wasCalled = false;
3492 return function wrapper(wrappedFunction) {
3493 return function () {
3494 if (wasCalled) {
3495 return;
3496 }
3497 wasCalled = true;
3498 wrappedFunction.apply(null, arguments);
3499 };
3500 };
3501 };
3502 const TYPE_ERROR = 'Promise resolved with itself';
3503 const CURRENT_TASK_TRACE_SYMBOL = __symbol__('currentTaskTrace');
3504 // Promise Resolution
3505 function resolvePromise(promise, state, value) {
3506 const onceWrapper = once();
3507 if (promise === value) {
3508 throw new TypeError(TYPE_ERROR);
3509 }
3510 if (promise[symbolState] === UNRESOLVED) {
3511 // should only get value.then once based on promise spec.
3512 let then = null;
3513 try {
3514 if (typeof value === 'object' || typeof value === 'function') {
3515 then = value && value.then;
3516 }
3517 }
3518 catch (err) {
3519 onceWrapper(() => { resolvePromise(promise, false, err); })();
3520 return promise;
3521 }
3522 // if (value instanceof ZoneAwarePromise) {
3523 if (state !== REJECTED && value instanceof ZoneAwarePromise &&
3524 value.hasOwnProperty(symbolState) && value.hasOwnProperty(symbolValue) &&
3525 value[symbolState] !== UNRESOLVED) {
3526 clearRejectedNoCatch(value);
3527 resolvePromise(promise, value[symbolState], value[symbolValue]);
3528 }
3529 else if (state !== REJECTED && typeof then === 'function') {
3530 try {
3531 then.call(value, onceWrapper(makeResolver(promise, state)), onceWrapper(makeResolver(promise, false)));
3532 }
3533 catch (err) {
3534 onceWrapper(() => { resolvePromise(promise, false, err); })();
3535 }
3536 }
3537 else {
3538 promise[symbolState] = state;
3539 const queue = promise[symbolValue];
3540 promise[symbolValue] = value;
3541 if (promise[symbolFinally] === symbolFinally) {
3542 // the promise is generated by Promise.prototype.finally
3543 if (state === RESOLVED) {
3544 // the state is resolved, should ignore the value
3545 // and use parent promise value
3546 promise[symbolState] = promise[symbolParentPromiseState];
3547 promise[symbolValue] = promise[symbolParentPromiseValue];
3548 }
3549 }
3550 // record task information in value when error occurs, so we can
3551 // do some additional work such as render longStackTrace
3552 if (state === REJECTED && value instanceof Error) {
3553 // check if longStackTraceZone is here
3554 const trace = Zone.currentTask && Zone.currentTask.data &&
3555 Zone.currentTask.data[creationTrace];
3556 if (trace) {
3557 // only keep the long stack trace into error when in longStackTraceZone
3558 ObjectDefineProperty(value, CURRENT_TASK_TRACE_SYMBOL, { configurable: true, enumerable: false, writable: true, value: trace });
3559 }
3560 }
3561 for (let i = 0; i < queue.length;) {
3562 scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);
3563 }
3564 if (queue.length == 0 && state == REJECTED) {
3565 promise[symbolState] = REJECTED_NO_CATCH;
3566 let uncaughtPromiseError = value;
3567 if (!isDisableWrappingUncaughtPromiseRejection) {
3568 // If disable wrapping uncaught promise reject
3569 // and the rejected value is an Error object,
3570 // use the value instead of wrapping it.
3571 try {
3572 // Here we throws a new Error to print more readable error log
3573 // and if the value is not an error, zone.js builds an `Error`
3574 // Object here to attach the stack information.
3575 throw new Error('Uncaught (in promise): ' + readableObjectToString(value) +
3576 (value && value.stack ? '\n' + value.stack : ''));
3577 }
3578 catch (err) {
3579 uncaughtPromiseError = err;
3580 }
3581 }
3582 uncaughtPromiseError.rejection = value;
3583 uncaughtPromiseError.promise = promise;
3584 uncaughtPromiseError.zone = Zone.current;
3585 uncaughtPromiseError.task = Zone.currentTask;
3586 _uncaughtPromiseErrors.push(uncaughtPromiseError);
3587 api.scheduleMicroTask(); // to make sure that it is running
3588 }
3589 }
3590 }
3591 // Resolving an already resolved promise is a noop.
3592 return promise;
3593 }
3594 const REJECTION_HANDLED_HANDLER = __symbol__('rejectionHandledHandler');
3595 function clearRejectedNoCatch(promise) {
3596 if (promise[symbolState] === REJECTED_NO_CATCH) {
3597 // if the promise is rejected no catch status
3598 // and queue.length > 0, means there is a error handler
3599 // here to handle the rejected promise, we should trigger
3600 // windows.rejectionhandled eventHandler or nodejs rejectionHandled
3601 // eventHandler
3602 try {
3603 const handler = Zone[REJECTION_HANDLED_HANDLER];
3604 if (handler && typeof handler === 'function') {
3605 handler.call(this, { rejection: promise[symbolValue], promise: promise });
3606 }
3607 }
3608 catch (err) {
3609 }
3610 promise[symbolState] = REJECTED;
3611 for (let i = 0; i < _uncaughtPromiseErrors.length; i++) {
3612 if (promise === _uncaughtPromiseErrors[i].promise) {
3613 _uncaughtPromiseErrors.splice(i, 1);
3614 }
3615 }
3616 }
3617 }
3618 function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {
3619 clearRejectedNoCatch(promise);
3620 const promiseState = promise[symbolState];
3621 const delegate = promiseState ?
3622 (typeof onFulfilled === 'function') ? onFulfilled : forwardResolution :
3623 (typeof onRejected === 'function') ? onRejected : forwardRejection;
3624 zone.scheduleMicroTask(source, () => {
3625 try {
3626 const parentPromiseValue = promise[symbolValue];
3627 const isFinallyPromise = !!chainPromise && symbolFinally === chainPromise[symbolFinally];
3628 if (isFinallyPromise) {
3629 // if the promise is generated from finally call, keep parent promise's state and value
3630 chainPromise[symbolParentPromiseValue] = parentPromiseValue;
3631 chainPromise[symbolParentPromiseState] = promiseState;
3632 }
3633 // should not pass value to finally callback
3634 const value = zone.run(delegate, undefined, isFinallyPromise && delegate !== forwardRejection && delegate !== forwardResolution ?
3635 [] :
3636 [parentPromiseValue]);
3637 resolvePromise(chainPromise, true, value);
3638 }
3639 catch (error) {
3640 // if error occurs, should always return this error
3641 resolvePromise(chainPromise, false, error);
3642 }
3643 }, chainPromise);
3644 }
3645 const ZONE_AWARE_PROMISE_TO_STRING = 'function ZoneAwarePromise() { [native code] }';
3646 const noop = function () { };
3647 class ZoneAwarePromise {
3648 static toString() { return ZONE_AWARE_PROMISE_TO_STRING; }
3649 static resolve(value) {
3650 return resolvePromise(new this(null), RESOLVED, value);
3651 }
3652 static reject(error) {
3653 return resolvePromise(new this(null), REJECTED, error);
3654 }
3655 static race(values) {
3656 let resolve;
3657 let reject;
3658 let promise = new this((res, rej) => {
3659 resolve = res;
3660 reject = rej;
3661 });
3662 function onResolve(value) { resolve(value); }
3663 function onReject(error) { reject(error); }
3664 for (let value of values) {
3665 if (!isThenable(value)) {
3666 value = this.resolve(value);
3667 }
3668 value.then(onResolve, onReject);
3669 }
3670 return promise;
3671 }
3672 static all(values) { return ZoneAwarePromise.allWithCallback(values); }
3673 static allSettled(values) {
3674 const P = this && this.prototype instanceof ZoneAwarePromise ? this : ZoneAwarePromise;
3675 return P.allWithCallback(values, {
3676 thenCallback: (value) => ({ status: 'fulfilled', value }),
3677 errorCallback: (err) => ({ status: 'rejected', reason: err })
3678 });
3679 }
3680 static allWithCallback(values, callback) {
3681 let resolve;
3682 let reject;
3683 let promise = new this((res, rej) => {
3684 resolve = res;
3685 reject = rej;
3686 });
3687 // Start at 2 to prevent prematurely resolving if .then is called immediately.
3688 let unresolvedCount = 2;
3689 let valueIndex = 0;
3690 const resolvedValues = [];
3691 for (let value of values) {
3692 if (!isThenable(value)) {
3693 value = this.resolve(value);
3694 }
3695 const curValueIndex = valueIndex;
3696 try {
3697 value.then((value) => {
3698 resolvedValues[curValueIndex] = callback ? callback.thenCallback(value) : value;
3699 unresolvedCount--;
3700 if (unresolvedCount === 0) {
3701 resolve(resolvedValues);
3702 }
3703 }, (err) => {
3704 if (!callback) {
3705 reject(err);
3706 }
3707 else {
3708 resolvedValues[curValueIndex] = callback.errorCallback(err);
3709 unresolvedCount--;
3710 if (unresolvedCount === 0) {
3711 resolve(resolvedValues);
3712 }
3713 }
3714 });
3715 }
3716 catch (thenErr) {
3717 reject(thenErr);
3718 }
3719 unresolvedCount++;
3720 valueIndex++;
3721 }
3722 // Make the unresolvedCount zero-based again.
3723 unresolvedCount -= 2;
3724 if (unresolvedCount === 0) {
3725 resolve(resolvedValues);
3726 }
3727 return promise;
3728 }
3729 constructor(executor) {
3730 const promise = this;
3731 if (!(promise instanceof ZoneAwarePromise)) {
3732 throw new Error('Must be an instanceof Promise.');
3733 }
3734 promise[symbolState] = UNRESOLVED;
3735 promise[symbolValue] = []; // queue;
3736 try {
3737 executor && executor(makeResolver(promise, RESOLVED), makeResolver(promise, REJECTED));
3738 }
3739 catch (error) {
3740 resolvePromise(promise, false, error);
3741 }
3742 }
3743 get [Symbol.toStringTag]() { return 'Promise'; }
3744 get [Symbol.species]() { return ZoneAwarePromise; }
3745 then(onFulfilled, onRejected) {
3746 let C = this.constructor[Symbol.species];
3747 if (!C || typeof C !== 'function') {
3748 C = this.constructor || ZoneAwarePromise;
3749 }
3750 const chainPromise = new C(noop);
3751 const zone = Zone.current;
3752 if (this[symbolState] == UNRESOLVED) {
3753 this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);
3754 }
3755 else {
3756 scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);
3757 }
3758 return chainPromise;
3759 }
3760 catch(onRejected) {
3761 return this.then(null, onRejected);
3762 }
3763 finally(onFinally) {
3764 let C = this.constructor[Symbol.species];
3765 if (!C || typeof C !== 'function') {
3766 C = ZoneAwarePromise;
3767 }
3768 const chainPromise = new C(noop);
3769 chainPromise[symbolFinally] = symbolFinally;
3770 const zone = Zone.current;
3771 if (this[symbolState] == UNRESOLVED) {
3772 this[symbolValue].push(zone, chainPromise, onFinally, onFinally);
3773 }
3774 else {
3775 scheduleResolveOrReject(this, zone, chainPromise, onFinally, onFinally);
3776 }
3777 return chainPromise;
3778 }
3779 }
3780 // Protect against aggressive optimizers dropping seemingly unused properties.
3781 // E.g. Closure Compiler in advanced mode.
3782 ZoneAwarePromise['resolve'] = ZoneAwarePromise.resolve;
3783 ZoneAwarePromise['reject'] = ZoneAwarePromise.reject;
3784 ZoneAwarePromise['race'] = ZoneAwarePromise.race;
3785 ZoneAwarePromise['all'] = ZoneAwarePromise.all;
3786 const NativePromise = global[symbolPromise] = global['Promise'];
3787 const ZONE_AWARE_PROMISE = Zone.__symbol__('ZoneAwarePromise');
3788 let desc = ObjectGetOwnPropertyDescriptor(global, 'Promise');
3789 if (!desc || desc.configurable) {
3790 desc && delete desc.writable;
3791 desc && delete desc.value;
3792 if (!desc) {
3793 desc = { configurable: true, enumerable: true };
3794 }
3795 desc.get = function () {
3796 // if we already set ZoneAwarePromise, use patched one
3797 // otherwise return native one.
3798 return global[ZONE_AWARE_PROMISE] ? global[ZONE_AWARE_PROMISE] : global[symbolPromise];
3799 };
3800 desc.set = function (NewNativePromise) {
3801 if (NewNativePromise === ZoneAwarePromise) {
3802 // if the NewNativePromise is ZoneAwarePromise
3803 // save to global
3804 global[ZONE_AWARE_PROMISE] = NewNativePromise;
3805 }
3806 else {
3807 // if the NewNativePromise is not ZoneAwarePromise
3808 // for example: after load zone.js, some library just
3809 // set es6-promise to global, if we set it to global
3810 // directly, assertZonePatched will fail and angular
3811 // will not loaded, so we just set the NewNativePromise
3812 // to global[symbolPromise], so the result is just like
3813 // we load ES6 Promise before zone.js
3814 global[symbolPromise] = NewNativePromise;
3815 if (!NewNativePromise.prototype[symbolThen]) {
3816 patchThen(NewNativePromise);
3817 }
3818 api.setNativePromise(NewNativePromise);
3819 }
3820 };
3821 ObjectDefineProperty(global, 'Promise', desc);
3822 }
3823 global['Promise'] = ZoneAwarePromise;
3824 const symbolThenPatched = __symbol__('thenPatched');
3825 function patchThen(Ctor) {
3826 const proto = Ctor.prototype;
3827 const prop = ObjectGetOwnPropertyDescriptor(proto, 'then');
3828 if (prop && (prop.writable === false || !prop.configurable)) {
3829 // check Ctor.prototype.then propertyDescriptor is writable or not
3830 // in meteor env, writable is false, we should ignore such case
3831 return;
3832 }
3833 const originalThen = proto.then;
3834 // Keep a reference to the original method.
3835 proto[symbolThen] = originalThen;
3836 Ctor.prototype.then = function (onResolve, onReject) {
3837 const wrapped = new ZoneAwarePromise((resolve, reject) => { originalThen.call(this, resolve, reject); });
3838 return wrapped.then(onResolve, onReject);
3839 };
3840 Ctor[symbolThenPatched] = true;
3841 }
3842 api.patchThen = patchThen;
3843 function zoneify(fn) {
3844 return function () {
3845 let resultPromise = fn.apply(this, arguments);
3846 if (resultPromise instanceof ZoneAwarePromise) {
3847 return resultPromise;
3848 }
3849 let ctor = resultPromise.constructor;
3850 if (!ctor[symbolThenPatched]) {
3851 patchThen(ctor);
3852 }
3853 return resultPromise;
3854 };
3855 }
3856 if (NativePromise) {
3857 patchThen(NativePromise);
3858 const fetch = global['fetch'];
3859 if (typeof fetch == 'function') {
3860 global[api.symbol('fetch')] = fetch;
3861 global['fetch'] = zoneify(fetch);
3862 }
3863 }
3864 // This is not part of public API, but it is useful for tests, so we expose it.
3865 Promise[Zone.__symbol__('uncaughtPromiseErrors')] = _uncaughtPromiseErrors;
3866 return ZoneAwarePromise;
3867 });
3868
3869 /**
3870 * @license
3871 * Copyright Google Inc. All Rights Reserved.
3872 *
3873 * Use of this source code is governed by an MIT-style license that can be
3874 * found in the LICENSE file at https://angular.io/license
3875 */
3876 /**
3877 * Suppress closure compiler errors about unknown 'Zone' variable
3878 * @fileoverview
3879 * @suppress {undefinedVars,globalThis,missingRequire}
3880 */
3881 /// <reference types="node"/>
3882 // issue #989, to reduce bundle size, use short name
3883 /** Object.getOwnPropertyDescriptor */
3884 const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3885 /** Object.defineProperty */
3886 const ObjectDefineProperty = Object.defineProperty;
3887 /** Object.getPrototypeOf */
3888 const ObjectGetPrototypeOf = Object.getPrototypeOf;
3889 /** Object.create */
3890 const ObjectCreate = Object.create;
3891 /** Array.prototype.slice */
3892 const ArraySlice = Array.prototype.slice;
3893 /** addEventListener string const */
3894 const ADD_EVENT_LISTENER_STR = 'addEventListener';
3895 /** removeEventListener string const */
3896 const REMOVE_EVENT_LISTENER_STR = 'removeEventListener';
3897 /** zoneSymbol addEventListener */
3898 const ZONE_SYMBOL_ADD_EVENT_LISTENER = Zone.__symbol__(ADD_EVENT_LISTENER_STR);
3899 /** zoneSymbol removeEventListener */
3900 const ZONE_SYMBOL_REMOVE_EVENT_LISTENER = Zone.__symbol__(REMOVE_EVENT_LISTENER_STR);
3901 /** true string const */
3902 const TRUE_STR = 'true';
3903 /** false string const */
3904 const FALSE_STR = 'false';
3905 /** Zone symbol prefix string const. */
3906 const ZONE_SYMBOL_PREFIX = Zone.__symbol__('');
3907 function wrapWithCurrentZone(callback, source) {
3908 return Zone.current.wrap(callback, source);
3909 }
3910 function scheduleMacroTaskWithCurrentZone(source, callback, data, customSchedule, customCancel) {
3911 return Zone.current.scheduleMacroTask(source, callback, data, customSchedule, customCancel);
3912 }
3913 const zoneSymbol = Zone.__symbol__;
3914 const isWindowExists = typeof window !== 'undefined';
3915 const internalWindow = isWindowExists ? window : undefined;
3916 const _global = isWindowExists && internalWindow || typeof self === 'object' && self || global;
3917 const REMOVE_ATTRIBUTE = 'removeAttribute';
3918 const NULL_ON_PROP_VALUE = [null];
3919 function bindArguments(args, source) {
3920 for (let i = args.length - 1; i >= 0; i--) {
3921 if (typeof args[i] === 'function') {
3922 args[i] = wrapWithCurrentZone(args[i], source + '_' + i);
3923 }
3924 }
3925 return args;
3926 }
3927 function patchPrototype(prototype, fnNames) {
3928 const source = prototype.constructor['name'];
3929 for (let i = 0; i < fnNames.length; i++) {
3930 const name = fnNames[i];
3931 const delegate = prototype[name];
3932 if (delegate) {
3933 const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, name);
3934 if (!isPropertyWritable(prototypeDesc)) {
3935 continue;
3936 }
3937 prototype[name] = ((delegate) => {
3938 const patched = function () {
3939 return delegate.apply(this, bindArguments(arguments, source + '.' + name));
3940 };
3941 attachOriginToPatched(patched, delegate);
3942 return patched;
3943 })(delegate);
3944 }
3945 }
3946 }
3947 function isPropertyWritable(propertyDesc) {
3948 if (!propertyDesc) {
3949 return true;
3950 }
3951 if (propertyDesc.writable === false) {
3952 return false;
3953 }
3954 return !(typeof propertyDesc.get === 'function' && typeof propertyDesc.set === 'undefined');
3955 }
3956 const isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);
3957 // Make sure to access `process` through `_global` so that WebPack does not accidentally browserify
3958 // this code.
3959 const isNode = (!('nw' in _global) && typeof _global.process !== 'undefined' &&
3960 {}.toString.call(_global.process) === '[object process]');
3961 const isBrowser = !isNode && !isWebWorker && !!(isWindowExists && internalWindow['HTMLElement']);
3962 // we are in electron of nw, so we are both browser and nodejs
3963 // Make sure to access `process` through `_global` so that WebPack does not accidentally browserify
3964 // this code.
3965 const isMix = typeof _global.process !== 'undefined' &&
3966 {}.toString.call(_global.process) === '[object process]' && !isWebWorker &&
3967 !!(isWindowExists && internalWindow['HTMLElement']);
3968 const zoneSymbolEventNames = {};
3969 const wrapFn = function (event) {
3970 // https://github.com/angular/zone.js/issues/911, in IE, sometimes
3971 // event will be undefined, so we need to use window.event
3972 event = event || _global.event;
3973 if (!event) {
3974 return;
3975 }
3976 let eventNameSymbol = zoneSymbolEventNames[event.type];
3977 if (!eventNameSymbol) {
3978 eventNameSymbol = zoneSymbolEventNames[event.type] = zoneSymbol('ON_PROPERTY' + event.type);
3979 }
3980 const target = this || event.target || _global;
3981 const listener = target[eventNameSymbol];
3982 let result;
3983 if (isBrowser && target === internalWindow && event.type === 'error') {
3984 // window.onerror have different signiture
3985 // https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror
3986 // and onerror callback will prevent default when callback return true
3987 const errorEvent = event;
3988 result = listener &&
3989 listener.call(this, errorEvent.message, errorEvent.filename, errorEvent.lineno, errorEvent.colno, errorEvent.error);
3990 if (result === true) {
3991 event.preventDefault();
3992 }
3993 }
3994 else {
3995 result = listener && listener.apply(this, arguments);
3996 if (result != undefined && !result) {
3997 event.preventDefault();
3998 }
3999 }
4000 return result;
4001 };
4002 function patchProperty(obj, prop, prototype) {
4003 let desc = ObjectGetOwnPropertyDescriptor(obj, prop);
4004 if (!desc && prototype) {
4005 // when patch window object, use prototype to check prop exist or not
4006 const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, prop);
4007 if (prototypeDesc) {
4008 desc = { enumerable: true, configurable: true };
4009 }
4010 }
4011 // if the descriptor not exists or is not configurable
4012 // just return
4013 if (!desc || !desc.configurable) {
4014 return;
4015 }
4016 const onPropPatchedSymbol = zoneSymbol('on' + prop + 'patched');
4017 if (obj.hasOwnProperty(onPropPatchedSymbol) && obj[onPropPatchedSymbol]) {
4018 return;
4019 }
4020 // A property descriptor cannot have getter/setter and be writable
4021 // deleting the writable and value properties avoids this error:
4022 //
4023 // TypeError: property descriptors must not specify a value or be writable when a
4024 // getter or setter has been specified
4025 delete desc.writable;
4026 delete desc.value;
4027 const originalDescGet = desc.get;
4028 const originalDescSet = desc.set;
4029 // substr(2) cuz 'onclick' -> 'click', etc
4030 const eventName = prop.substr(2);
4031 let eventNameSymbol = zoneSymbolEventNames[eventName];
4032 if (!eventNameSymbol) {
4033 eventNameSymbol = zoneSymbolEventNames[eventName] = zoneSymbol('ON_PROPERTY' + eventName);
4034 }
4035 desc.set = function (newValue) {
4036 // in some of windows's onproperty callback, this is undefined
4037 // so we need to check it
4038 let target = this;
4039 if (!target && obj === _global) {
4040 target = _global;
4041 }
4042 if (!target) {
4043 return;
4044 }
4045 let previousValue = target[eventNameSymbol];
4046 if (previousValue) {
4047 target.removeEventListener(eventName, wrapFn);
4048 }
4049 // issue #978, when onload handler was added before loading zone.js
4050 // we should remove it with originalDescSet
4051 if (originalDescSet) {
4052 originalDescSet.apply(target, NULL_ON_PROP_VALUE);
4053 }
4054 if (typeof newValue === 'function') {
4055 target[eventNameSymbol] = newValue;
4056 target.addEventListener(eventName, wrapFn, false);
4057 }
4058 else {
4059 target[eventNameSymbol] = null;
4060 }
4061 };
4062 // The getter would return undefined for unassigned properties but the default value of an
4063 // unassigned property is null
4064 desc.get = function () {
4065 // in some of windows's onproperty callback, this is undefined
4066 // so we need to check it
4067 let target = this;
4068 if (!target && obj === _global) {
4069 target = _global;
4070 }
4071 if (!target) {
4072 return null;
4073 }
4074 const listener = target[eventNameSymbol];
4075 if (listener) {
4076 return listener;
4077 }
4078 else if (originalDescGet) {
4079 // result will be null when use inline event attribute,
4080 // such as <button onclick="func();">OK</button>
4081 // because the onclick function is internal raw uncompiled handler
4082 // the onclick will be evaluated when first time event was triggered or
4083 // the property is accessed, https://github.com/angular/zone.js/issues/525
4084 // so we should use original native get to retrieve the handler
4085 let value = originalDescGet && originalDescGet.call(this);
4086 if (value) {
4087 desc.set.call(this, value);
4088 if (typeof target[REMOVE_ATTRIBUTE] === 'function') {
4089 target.removeAttribute(prop);
4090 }
4091 return value;
4092 }
4093 }
4094 return null;
4095 };
4096 ObjectDefineProperty(obj, prop, desc);
4097 obj[onPropPatchedSymbol] = true;
4098 }
4099 function patchOnProperties(obj, properties, prototype) {
4100 if (properties) {
4101 for (let i = 0; i < properties.length; i++) {
4102 patchProperty(obj, 'on' + properties[i], prototype);
4103 }
4104 }
4105 else {
4106 const onProperties = [];
4107 for (const prop in obj) {
4108 if (prop.substr(0, 2) == 'on') {
4109 onProperties.push(prop);
4110 }
4111 }
4112 for (let j = 0; j < onProperties.length; j++) {
4113 patchProperty(obj, onProperties[j], prototype);
4114 }
4115 }
4116 }
4117 const originalInstanceKey = zoneSymbol('originalInstance');
4118 // wrap some native API on `window`
4119 function patchClass(className) {
4120 const OriginalClass = _global[className];
4121 if (!OriginalClass)
4122 return;
4123 // keep original class in global
4124 _global[zoneSymbol(className)] = OriginalClass;
4125 _global[className] = function () {
4126 const a = bindArguments(arguments, className);
4127 switch (a.length) {
4128 case 0:
4129 this[originalInstanceKey] = new OriginalClass();
4130 break;
4131 case 1:
4132 this[originalInstanceKey] = new OriginalClass(a[0]);
4133 break;
4134 case 2:
4135 this[originalInstanceKey] = new OriginalClass(a[0], a[1]);
4136 break;
4137 case 3:
4138 this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);
4139 break;
4140 case 4:
4141 this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);
4142 break;
4143 default:
4144 throw new Error('Arg list too long.');
4145 }
4146 };
4147 // attach original delegate to patched function
4148 attachOriginToPatched(_global[className], OriginalClass);
4149 const instance = new OriginalClass(function () { });
4150 let prop;
4151 for (prop in instance) {
4152 // https://bugs.webkit.org/show_bug.cgi?id=44721
4153 if (className === 'XMLHttpRequest' && prop === 'responseBlob')
4154 continue;
4155 (function (prop) {
4156 if (typeof instance[prop] === 'function') {
4157 _global[className].prototype[prop] = function () {
4158 return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);
4159 };
4160 }
4161 else {
4162 ObjectDefineProperty(_global[className].prototype, prop, {
4163 set: function (fn) {
4164 if (typeof fn === 'function') {
4165 this[originalInstanceKey][prop] = wrapWithCurrentZone(fn, className + '.' + prop);
4166 // keep callback in wrapped function so we can
4167 // use it in Function.prototype.toString to return
4168 // the native one.
4169 attachOriginToPatched(this[originalInstanceKey][prop], fn);
4170 }
4171 else {
4172 this[originalInstanceKey][prop] = fn;
4173 }
4174 },
4175 get: function () { return this[originalInstanceKey][prop]; }
4176 });
4177 }
4178 }(prop));
4179 }
4180 for (prop in OriginalClass) {
4181 if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {
4182 _global[className][prop] = OriginalClass[prop];
4183 }
4184 }
4185 }
4186 function copySymbolProperties(src, dest) {
4187 if (typeof Object.getOwnPropertySymbols !== 'function') {
4188 return;
4189 }
4190 const symbols = Object.getOwnPropertySymbols(src);
4191 symbols.forEach((symbol) => {
4192 const desc = Object.getOwnPropertyDescriptor(src, symbol);
4193 Object.defineProperty(dest, symbol, {
4194 get: function () { return src[symbol]; },
4195 set: function (value) {
4196 if (desc && (!desc.writable || typeof desc.set !== 'function')) {
4197 // if src[symbol] is not writable or not have a setter, just return
4198 return;
4199 }
4200 src[symbol] = value;
4201 },
4202 enumerable: desc ? desc.enumerable : true,
4203 configurable: desc ? desc.configurable : true
4204 });
4205 });
4206 }
4207 let shouldCopySymbolProperties = false;
4208 function patchMethod(target, name, patchFn) {
4209 let proto = target;
4210 while (proto && !proto.hasOwnProperty(name)) {
4211 proto = ObjectGetPrototypeOf(proto);
4212 }
4213 if (!proto && target[name]) {
4214 // somehow we did not find it, but we can see it. This happens on IE for Window properties.
4215 proto = target;
4216 }
4217 const delegateName = zoneSymbol(name);
4218 let delegate = null;
4219 if (proto && !(delegate = proto[delegateName])) {
4220 delegate = proto[delegateName] = proto[name];
4221 // check whether proto[name] is writable
4222 // some property is readonly in safari, such as HtmlCanvasElement.prototype.toBlob
4223 const desc = proto && ObjectGetOwnPropertyDescriptor(proto, name);
4224 if (isPropertyWritable(desc)) {
4225 const patchDelegate = patchFn(delegate, delegateName, name);
4226 proto[name] = function () { return patchDelegate(this, arguments); };
4227 attachOriginToPatched(proto[name], delegate);
4228 if (shouldCopySymbolProperties) {
4229 copySymbolProperties(delegate, proto[name]);
4230 }
4231 }
4232 }
4233 return delegate;
4234 }
4235 // TODO: @JiaLiPassion, support cancel task later if necessary
4236 function patchMacroTask(obj, funcName, metaCreator) {
4237 let setNative = null;
4238 function scheduleTask(task) {
4239 const data = task.data;
4240 data.args[data.cbIdx] = function () { task.invoke.apply(this, arguments); };
4241 setNative.apply(data.target, data.args);
4242 return task;
4243 }
4244 setNative = patchMethod(obj, funcName, (delegate) => function (self, args) {
4245 const meta = metaCreator(self, args);
4246 if (meta.cbIdx >= 0 && typeof args[meta.cbIdx] === 'function') {
4247 return scheduleMacroTaskWithCurrentZone(meta.name, args[meta.cbIdx], meta, scheduleTask);
4248 }
4249 else {
4250 // cause an error by calling it directly.
4251 return delegate.apply(self, args);
4252 }
4253 });
4254 }
4255 function attachOriginToPatched(patched, original) {
4256 patched[zoneSymbol('OriginalDelegate')] = original;
4257 }
4258 let isDetectedIEOrEdge = false;
4259 let ieOrEdge = false;
4260 function isIE() {
4261 try {
4262 const ua = internalWindow.navigator.userAgent;
4263 if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1) {
4264 return true;
4265 }
4266 }
4267 catch (error) {
4268 }
4269 return false;
4270 }
4271 function isIEOrEdge() {
4272 if (isDetectedIEOrEdge) {
4273 return ieOrEdge;
4274 }
4275 isDetectedIEOrEdge = true;
4276 try {
4277 const ua = internalWindow.navigator.userAgent;
4278 if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1 || ua.indexOf('Edge/') !== -1) {
4279 ieOrEdge = true;
4280 }
4281 }
4282 catch (error) {
4283 }
4284 return ieOrEdge;
4285 }
4286
4287 /**
4288 * @license
4289 * Copyright Google Inc. All Rights Reserved.
4290 *
4291 * Use of this source code is governed by an MIT-style license that can be
4292 * found in the LICENSE file at https://angular.io/license
4293 */
4294 // override Function.prototype.toString to make zone.js patched function
4295 // look like native function
4296 Zone.__load_patch('toString', (global) => {
4297 // patch Func.prototype.toString to let them look like native
4298 const originalFunctionToString = Function.prototype.toString;
4299 const ORIGINAL_DELEGATE_SYMBOL = zoneSymbol('OriginalDelegate');
4300 const PROMISE_SYMBOL = zoneSymbol('Promise');
4301 const ERROR_SYMBOL = zoneSymbol('Error');
4302 const newFunctionToString = function toString() {
4303 if (typeof this === 'function') {
4304 const originalDelegate = this[ORIGINAL_DELEGATE_SYMBOL];
4305 if (originalDelegate) {
4306 if (typeof originalDelegate === 'function') {
4307 return originalFunctionToString.call(originalDelegate);
4308 }
4309 else {
4310 return Object.prototype.toString.call(originalDelegate);
4311 }
4312 }
4313 if (this === Promise) {
4314 const nativePromise = global[PROMISE_SYMBOL];
4315 if (nativePromise) {
4316 return originalFunctionToString.call(nativePromise);
4317 }
4318 }
4319 if (this === Error) {
4320 const nativeError = global[ERROR_SYMBOL];
4321 if (nativeError) {
4322 return originalFunctionToString.call(nativeError);
4323 }
4324 }
4325 }
4326 return originalFunctionToString.call(this);
4327 };
4328 newFunctionToString[ORIGINAL_DELEGATE_SYMBOL] = originalFunctionToString;
4329 Function.prototype.toString = newFunctionToString;
4330 // patch Object.prototype.toString to let them look like native
4331 const originalObjectToString = Object.prototype.toString;
4332 const PROMISE_OBJECT_TO_STRING = '[object Promise]';
4333 Object.prototype.toString = function () {
4334 if (this instanceof Promise) {
4335 return PROMISE_OBJECT_TO_STRING;
4336 }
4337 return originalObjectToString.call(this);
4338 };
4339 });
4340
4341 /**
4342 * @license
4343 * Copyright Google Inc. All Rights Reserved.
4344 *
4345 * Use of this source code is governed by an MIT-style license that can be
4346 * found in the LICENSE file at https://angular.io/license
4347 */
4348 let passiveSupported = false;
4349 if (typeof window !== 'undefined') {
4350 try {
4351 const options = Object.defineProperty({}, 'passive', { get: function () { passiveSupported = true; } });
4352 window.addEventListener('test', options, options);
4353 window.removeEventListener('test', options, options);
4354 }
4355 catch (err) {
4356 passiveSupported = false;
4357 }
4358 }
4359 // an identifier to tell ZoneTask do not create a new invoke closure
4360 const OPTIMIZED_ZONE_EVENT_TASK_DATA = {
4361 useG: true
4362 };
4363 const zoneSymbolEventNames$1 = {};
4364 const globalSources = {};
4365 const EVENT_NAME_SYMBOL_REGX = new RegExp('^' + ZONE_SYMBOL_PREFIX + '(\\w+)(true|false)$');
4366 const IMMEDIATE_PROPAGATION_SYMBOL = zoneSymbol('propagationStopped');
4367 function prepareEventNames(eventName, eventNameToString) {
4368 const falseEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + FALSE_STR;
4369 const trueEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + TRUE_STR;
4370 const symbol = ZONE_SYMBOL_PREFIX + falseEventName;
4371 const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;
4372 zoneSymbolEventNames$1[eventName] = {};
4373 zoneSymbolEventNames$1[eventName][FALSE_STR] = symbol;
4374 zoneSymbolEventNames$1[eventName][TRUE_STR] = symbolCapture;
4375 }
4376 function patchEventTarget(_global, apis, patchOptions) {
4377 const ADD_EVENT_LISTENER = (patchOptions && patchOptions.add) || ADD_EVENT_LISTENER_STR;
4378 const REMOVE_EVENT_LISTENER = (patchOptions && patchOptions.rm) || REMOVE_EVENT_LISTENER_STR;
4379 const LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.listeners) || 'eventListeners';
4380 const REMOVE_ALL_LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.rmAll) || 'removeAllListeners';
4381 const zoneSymbolAddEventListener = zoneSymbol(ADD_EVENT_LISTENER);
4382 const ADD_EVENT_LISTENER_SOURCE = '.' + ADD_EVENT_LISTENER + ':';
4383 const PREPEND_EVENT_LISTENER = 'prependListener';
4384 const PREPEND_EVENT_LISTENER_SOURCE = '.' + PREPEND_EVENT_LISTENER + ':';
4385 const invokeTask = function (task, target, event) {
4386 // for better performance, check isRemoved which is set
4387 // by removeEventListener
4388 if (task.isRemoved) {
4389 return;
4390 }
4391 const delegate = task.callback;
4392 if (typeof delegate === 'object' && delegate.handleEvent) {
4393 // create the bind version of handleEvent when invoke
4394 task.callback = (event) => delegate.handleEvent(event);
4395 task.originalDelegate = delegate;
4396 }
4397 // invoke static task.invoke
4398 task.invoke(task, target, [event]);
4399 const options = task.options;
4400 if (options && typeof options === 'object' && options.once) {
4401 // if options.once is true, after invoke once remove listener here
4402 // only browser need to do this, nodejs eventEmitter will cal removeListener
4403 // inside EventEmitter.once
4404 const delegate = task.originalDelegate ? task.originalDelegate : task.callback;
4405 target[REMOVE_EVENT_LISTENER].call(target, event.type, delegate, options);
4406 }
4407 };
4408 // global shared zoneAwareCallback to handle all event callback with capture = false
4409 const globalZoneAwareCallback = function (event) {
4410 // https://github.com/angular/zone.js/issues/911, in IE, sometimes
4411 // event will be undefined, so we need to use window.event
4412 event = event || _global.event;
4413 if (!event) {
4414 return;
4415 }
4416 // event.target is needed for Samsung TV and SourceBuffer
4417 // || global is needed https://github.com/angular/zone.js/issues/190
4418 const target = this || event.target || _global;
4419 const tasks = target[zoneSymbolEventNames$1[event.type][FALSE_STR]];
4420 if (tasks) {
4421 // invoke all tasks which attached to current target with given event.type and capture = false
4422 // for performance concern, if task.length === 1, just invoke
4423 if (tasks.length === 1) {
4424 invokeTask(tasks[0], target, event);
4425 }
4426 else {
4427 // https://github.com/angular/zone.js/issues/836
4428 // copy the tasks array before invoke, to avoid
4429 // the callback will remove itself or other listener
4430 const copyTasks = tasks.slice();
4431 for (let i = 0; i < copyTasks.length; i++) {
4432 if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) {
4433 break;
4434 }
4435 invokeTask(copyTasks[i], target, event);
4436 }
4437 }
4438 }
4439 };
4440 // global shared zoneAwareCallback to handle all event callback with capture = true
4441 const globalZoneAwareCaptureCallback = function (event) {
4442 // https://github.com/angular/zone.js/issues/911, in IE, sometimes
4443 // event will be undefined, so we need to use window.event
4444 event = event || _global.event;
4445 if (!event) {
4446 return;
4447 }
4448 // event.target is needed for Samsung TV and SourceBuffer
4449 // || global is needed https://github.com/angular/zone.js/issues/190
4450 const target = this || event.target || _global;
4451 const tasks = target[zoneSymbolEventNames$1[event.type][TRUE_STR]];
4452 if (tasks) {
4453 // invoke all tasks which attached to current target with given event.type and capture = false
4454 // for performance concern, if task.length === 1, just invoke
4455 if (tasks.length === 1) {
4456 invokeTask(tasks[0], target, event);
4457 }
4458 else {
4459 // https://github.com/angular/zone.js/issues/836
4460 // copy the tasks array before invoke, to avoid
4461 // the callback will remove itself or other listener
4462 const copyTasks = tasks.slice();
4463 for (let i = 0; i < copyTasks.length; i++) {
4464 if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) {
4465 break;
4466 }
4467 invokeTask(copyTasks[i], target, event);
4468 }
4469 }
4470 }
4471 };
4472 function patchEventTargetMethods(obj, patchOptions) {
4473 if (!obj) {
4474 return false;
4475 }
4476 let useGlobalCallback = true;
4477 if (patchOptions && patchOptions.useG !== undefined) {
4478 useGlobalCallback = patchOptions.useG;
4479 }
4480 const validateHandler = patchOptions && patchOptions.vh;
4481 let checkDuplicate = true;
4482 if (patchOptions && patchOptions.chkDup !== undefined) {
4483 checkDuplicate = patchOptions.chkDup;
4484 }
4485 let returnTarget = false;
4486 if (patchOptions && patchOptions.rt !== undefined) {
4487 returnTarget = patchOptions.rt;
4488 }
4489 let proto = obj;
4490 while (proto && !proto.hasOwnProperty(ADD_EVENT_LISTENER)) {
4491 proto = ObjectGetPrototypeOf(proto);
4492 }
4493 if (!proto && obj[ADD_EVENT_LISTENER]) {
4494 // somehow we did not find it, but we can see it. This happens on IE for Window properties.
4495 proto = obj;
4496 }
4497 if (!proto) {
4498 return false;
4499 }
4500 if (proto[zoneSymbolAddEventListener]) {
4501 return false;
4502 }
4503 const eventNameToString = patchOptions && patchOptions.eventNameToString;
4504 // a shared global taskData to pass data for scheduleEventTask
4505 // so we do not need to create a new object just for pass some data
4506 const taskData = {};
4507 const nativeAddEventListener = proto[zoneSymbolAddEventListener] = proto[ADD_EVENT_LISTENER];
4508 const nativeRemoveEventListener = proto[zoneSymbol(REMOVE_EVENT_LISTENER)] =
4509 proto[REMOVE_EVENT_LISTENER];
4510 const nativeListeners = proto[zoneSymbol(LISTENERS_EVENT_LISTENER)] =
4511 proto[LISTENERS_EVENT_LISTENER];
4512 const nativeRemoveAllListeners = proto[zoneSymbol(REMOVE_ALL_LISTENERS_EVENT_LISTENER)] =
4513 proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER];
4514 let nativePrependEventListener;
4515 if (patchOptions && patchOptions.prepend) {
4516 nativePrependEventListener = proto[zoneSymbol(patchOptions.prepend)] =
4517 proto[patchOptions.prepend];
4518 }
4519 /**
4520 * This util function will build an option object with passive option
4521 * to handle all possible input from the user.
4522 */
4523 function buildEventListenerOptions(options, passive) {
4524 if (!passiveSupported && typeof options === 'object' && options) {
4525 // doesn't support passive but user want to pass an object as options.
4526 // this will not work on some old browser, so we just pass a boolean
4527 // as useCapture parameter
4528 return !!options.capture;
4529 }
4530 if (!passiveSupported || !passive) {
4531 return options;
4532 }
4533 if (typeof options === 'boolean') {
4534 return { capture: options, passive: true };
4535 }
4536 if (!options) {
4537 return { passive: true };
4538 }
4539 if (typeof options === 'object' && options.passive !== false) {
4540 return Object.assign(Object.assign({}, options), { passive: true });
4541 }
4542 return options;
4543 }
4544 const customScheduleGlobal = function (task) {
4545 // if there is already a task for the eventName + capture,
4546 // just return, because we use the shared globalZoneAwareCallback here.
4547 if (taskData.isExisting) {
4548 return;
4549 }
4550 return nativeAddEventListener.call(taskData.target, taskData.eventName, taskData.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, taskData.options);
4551 };
4552 const customCancelGlobal = function (task) {
4553 // if task is not marked as isRemoved, this call is directly
4554 // from Zone.prototype.cancelTask, we should remove the task
4555 // from tasksList of target first
4556 if (!task.isRemoved) {
4557 const symbolEventNames = zoneSymbolEventNames$1[task.eventName];
4558 let symbolEventName;
4559 if (symbolEventNames) {
4560 symbolEventName = symbolEventNames[task.capture ? TRUE_STR : FALSE_STR];
4561 }
4562 const existingTasks = symbolEventName && task.target[symbolEventName];
4563 if (existingTasks) {
4564 for (let i = 0; i < existingTasks.length; i++) {
4565 const existingTask = existingTasks[i];
4566 if (existingTask === task) {
4567 existingTasks.splice(i, 1);
4568 // set isRemoved to data for faster invokeTask check
4569 task.isRemoved = true;
4570 if (existingTasks.length === 0) {
4571 // all tasks for the eventName + capture have gone,
4572 // remove globalZoneAwareCallback and remove the task cache from target
4573 task.allRemoved = true;
4574 task.target[symbolEventName] = null;
4575 }
4576 break;
4577 }
4578 }
4579 }
4580 }
4581 // if all tasks for the eventName + capture have gone,
4582 // we will really remove the global event callback,
4583 // if not, return
4584 if (!task.allRemoved) {
4585 return;
4586 }
4587 return nativeRemoveEventListener.call(task.target, task.eventName, task.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, task.options);
4588 };
4589 const customScheduleNonGlobal = function (task) {
4590 return nativeAddEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);
4591 };
4592 const customSchedulePrepend = function (task) {
4593 return nativePrependEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);
4594 };
4595 const customCancelNonGlobal = function (task) {
4596 return nativeRemoveEventListener.call(task.target, task.eventName, task.invoke, task.options);
4597 };
4598 const customSchedule = useGlobalCallback ? customScheduleGlobal : customScheduleNonGlobal;
4599 const customCancel = useGlobalCallback ? customCancelGlobal : customCancelNonGlobal;
4600 const compareTaskCallbackVsDelegate = function (task, delegate) {
4601 const typeOfDelegate = typeof delegate;
4602 return (typeOfDelegate === 'function' && task.callback === delegate) ||
4603 (typeOfDelegate === 'object' && task.originalDelegate === delegate);
4604 };
4605 const compare = (patchOptions && patchOptions.diff) ? patchOptions.diff : compareTaskCallbackVsDelegate;
4606 const blackListedEvents = Zone[zoneSymbol('BLACK_LISTED_EVENTS')];
4607 const passiveEvents = _global[zoneSymbol('PASSIVE_EVENTS')];
4608 const makeAddListener = function (nativeListener, addSource, customScheduleFn, customCancelFn, returnTarget = false, prepend = false) {
4609 return function () {
4610 const target = this || _global;
4611 let eventName = arguments[0];
4612 if (patchOptions && patchOptions.transferEventName) {
4613 eventName = patchOptions.transferEventName(eventName);
4614 }
4615 let delegate = arguments[1];
4616 if (!delegate) {
4617 return nativeListener.apply(this, arguments);
4618 }
4619 if (isNode && eventName === 'uncaughtException') {
4620 // don't patch uncaughtException of nodejs to prevent endless loop
4621 return nativeListener.apply(this, arguments);
4622 }
4623 // don't create the bind delegate function for handleEvent
4624 // case here to improve addEventListener performance
4625 // we will create the bind delegate when invoke
4626 let isHandleEvent = false;
4627 if (typeof delegate !== 'function') {
4628 if (!delegate.handleEvent) {
4629 return nativeListener.apply(this, arguments);
4630 }
4631 isHandleEvent = true;
4632 }
4633 if (validateHandler && !validateHandler(nativeListener, delegate, target, arguments)) {
4634 return;
4635 }
4636 const passive = passiveSupported && !!passiveEvents && passiveEvents.indexOf(eventName) !== -1;
4637 const options = buildEventListenerOptions(arguments[2], passive);
4638 if (blackListedEvents) {
4639 // check black list
4640 for (let i = 0; i < blackListedEvents.length; i++) {
4641 if (eventName === blackListedEvents[i]) {
4642 if (passive) {
4643 return nativeListener.call(target, eventName, delegate, options);
4644 }
4645 else {
4646 return nativeListener.apply(this, arguments);
4647 }
4648 }
4649 }
4650 }
4651 const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;
4652 const once = options && typeof options === 'object' ? options.once : false;
4653 const zone = Zone.current;
4654 let symbolEventNames = zoneSymbolEventNames$1[eventName];
4655 if (!symbolEventNames) {
4656 prepareEventNames(eventName, eventNameToString);
4657 symbolEventNames = zoneSymbolEventNames$1[eventName];
4658 }
4659 const symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];
4660 let existingTasks = target[symbolEventName];
4661 let isExisting = false;
4662 if (existingTasks) {
4663 // already have task registered
4664 isExisting = true;
4665 if (checkDuplicate) {
4666 for (let i = 0; i < existingTasks.length; i++) {
4667 if (compare(existingTasks[i], delegate)) {
4668 // same callback, same capture, same event name, just return
4669 return;
4670 }
4671 }
4672 }
4673 }
4674 else {
4675 existingTasks = target[symbolEventName] = [];
4676 }
4677 let source;
4678 const constructorName = target.constructor['name'];
4679 const targetSource = globalSources[constructorName];
4680 if (targetSource) {
4681 source = targetSource[eventName];
4682 }
4683 if (!source) {
4684 source = constructorName + addSource +
4685 (eventNameToString ? eventNameToString(eventName) : eventName);
4686 }
4687 // do not create a new object as task.data to pass those things
4688 // just use the global shared one
4689 taskData.options = options;
4690 if (once) {
4691 // if addEventListener with once options, we don't pass it to
4692 // native addEventListener, instead we keep the once setting
4693 // and handle ourselves.
4694 taskData.options.once = false;
4695 }
4696 taskData.target = target;
4697 taskData.capture = capture;
4698 taskData.eventName = eventName;
4699 taskData.isExisting = isExisting;
4700 const data = useGlobalCallback ? OPTIMIZED_ZONE_EVENT_TASK_DATA : undefined;
4701 // keep taskData into data to allow onScheduleEventTask to access the task information
4702 if (data) {
4703 data.taskData = taskData;
4704 }
4705 const task = zone.scheduleEventTask(source, delegate, data, customScheduleFn, customCancelFn);
4706 // should clear taskData.target to avoid memory leak
4707 // issue, https://github.com/angular/angular/issues/20442
4708 taskData.target = null;
4709 // need to clear up taskData because it is a global object
4710 if (data) {
4711 data.taskData = null;
4712 }
4713 // have to save those information to task in case
4714 // application may call task.zone.cancelTask() directly
4715 if (once) {
4716 options.once = true;
4717 }
4718 if (!(!passiveSupported && typeof task.options === 'boolean')) {
4719 // if not support passive, and we pass an option object
4720 // to addEventListener, we should save the options to task
4721 task.options = options;
4722 }
4723 task.target = target;
4724 task.capture = capture;
4725 task.eventName = eventName;
4726 if (isHandleEvent) {
4727 // save original delegate for compare to check duplicate
4728 task.originalDelegate = delegate;
4729 }
4730 if (!prepend) {
4731 existingTasks.push(task);
4732 }
4733 else {
4734 existingTasks.unshift(task);
4735 }
4736 if (returnTarget) {
4737 return target;
4738 }
4739 };
4740 };
4741 proto[ADD_EVENT_LISTENER] = makeAddListener(nativeAddEventListener, ADD_EVENT_LISTENER_SOURCE, customSchedule, customCancel, returnTarget);
4742 if (nativePrependEventListener) {
4743 proto[PREPEND_EVENT_LISTENER] = makeAddListener(nativePrependEventListener, PREPEND_EVENT_LISTENER_SOURCE, customSchedulePrepend, customCancel, returnTarget, true);
4744 }
4745 proto[REMOVE_EVENT_LISTENER] = function () {
4746 const target = this || _global;
4747 let eventName = arguments[0];
4748 if (patchOptions && patchOptions.transferEventName) {
4749 eventName = patchOptions.transferEventName(eventName);
4750 }
4751 const options = arguments[2];
4752 const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;
4753 const delegate = arguments[1];
4754 if (!delegate) {
4755 return nativeRemoveEventListener.apply(this, arguments);
4756 }
4757 if (validateHandler &&
4758 !validateHandler(nativeRemoveEventListener, delegate, target, arguments)) {
4759 return;
4760 }
4761 const symbolEventNames = zoneSymbolEventNames$1[eventName];
4762 let symbolEventName;
4763 if (symbolEventNames) {
4764 symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];
4765 }
4766 const existingTasks = symbolEventName && target[symbolEventName];
4767 if (existingTasks) {
4768 for (let i = 0; i < existingTasks.length; i++) {
4769 const existingTask = existingTasks[i];
4770 if (compare(existingTask, delegate)) {
4771 existingTasks.splice(i, 1);
4772 // set isRemoved to data for faster invokeTask check
4773 existingTask.isRemoved = true;
4774 if (existingTasks.length === 0) {
4775 // all tasks for the eventName + capture have gone,
4776 // remove globalZoneAwareCallback and remove the task cache from target
4777 existingTask.allRemoved = true;
4778 target[symbolEventName] = null;
4779 // in the target, we have an event listener which is added by on_property
4780 // such as target.onclick = function() {}, so we need to clear this internal
4781 // property too if all delegates all removed
4782 if (typeof eventName === 'string') {
4783 const onPropertySymbol = ZONE_SYMBOL_PREFIX + 'ON_PROPERTY' + eventName;
4784 target[onPropertySymbol] = null;
4785 }
4786 }
4787 existingTask.zone.cancelTask(existingTask);
4788 if (returnTarget) {
4789 return target;
4790 }
4791 return;
4792 }
4793 }
4794 }
4795 // issue 930, didn't find the event name or callback
4796 // from zone kept existingTasks, the callback maybe
4797 // added outside of zone, we need to call native removeEventListener
4798 // to try to remove it.
4799 return nativeRemoveEventListener.apply(this, arguments);
4800 };
4801 proto[LISTENERS_EVENT_LISTENER] = function () {
4802 const target = this || _global;
4803 let eventName = arguments[0];
4804 if (patchOptions && patchOptions.transferEventName) {
4805 eventName = patchOptions.transferEventName(eventName);
4806 }
4807 const listeners = [];
4808 const tasks = findEventTasks(target, eventNameToString ? eventNameToString(eventName) : eventName);
4809 for (let i = 0; i < tasks.length; i++) {
4810 const task = tasks[i];
4811 let delegate = task.originalDelegate ? task.originalDelegate : task.callback;
4812 listeners.push(delegate);
4813 }
4814 return listeners;
4815 };
4816 proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER] = function () {
4817 const target = this || _global;
4818 let eventName = arguments[0];
4819 if (!eventName) {
4820 const keys = Object.keys(target);
4821 for (let i = 0; i < keys.length; i++) {
4822 const prop = keys[i];
4823 const match = EVENT_NAME_SYMBOL_REGX.exec(prop);
4824 let evtName = match && match[1];
4825 // in nodejs EventEmitter, removeListener event is
4826 // used for monitoring the removeListener call,
4827 // so just keep removeListener eventListener until
4828 // all other eventListeners are removed
4829 if (evtName && evtName !== 'removeListener') {
4830 this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, evtName);
4831 }
4832 }
4833 // remove removeListener listener finally
4834 this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, 'removeListener');
4835 }
4836 else {
4837 if (patchOptions && patchOptions.transferEventName) {
4838 eventName = patchOptions.transferEventName(eventName);
4839 }
4840 const symbolEventNames = zoneSymbolEventNames$1[eventName];
4841 if (symbolEventNames) {
4842 const symbolEventName = symbolEventNames[FALSE_STR];
4843 const symbolCaptureEventName = symbolEventNames[TRUE_STR];
4844 const tasks = target[symbolEventName];
4845 const captureTasks = target[symbolCaptureEventName];
4846 if (tasks) {
4847 const removeTasks = tasks.slice();
4848 for (let i = 0; i < removeTasks.length; i++) {
4849 const task = removeTasks[i];
4850 let delegate = task.originalDelegate ? task.originalDelegate : task.callback;
4851 this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);
4852 }
4853 }
4854 if (captureTasks) {
4855 const removeTasks = captureTasks.slice();
4856 for (let i = 0; i < removeTasks.length; i++) {
4857 const task = removeTasks[i];
4858 let delegate = task.originalDelegate ? task.originalDelegate : task.callback;
4859 this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);
4860 }
4861 }
4862 }
4863 }
4864 if (returnTarget) {
4865 return this;
4866 }
4867 };
4868 // for native toString patch
4869 attachOriginToPatched(proto[ADD_EVENT_LISTENER], nativeAddEventListener);
4870 attachOriginToPatched(proto[REMOVE_EVENT_LISTENER], nativeRemoveEventListener);
4871 if (nativeRemoveAllListeners) {
4872 attachOriginToPatched(proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER], nativeRemoveAllListeners);
4873 }
4874 if (nativeListeners) {
4875 attachOriginToPatched(proto[LISTENERS_EVENT_LISTENER], nativeListeners);
4876 }
4877 return true;
4878 }
4879 let results = [];
4880 for (let i = 0; i < apis.length; i++) {
4881 results[i] = patchEventTargetMethods(apis[i], patchOptions);
4882 }
4883 return results;
4884 }
4885 function findEventTasks(target, eventName) {
4886 if (!eventName) {
4887 const foundTasks = [];
4888 for (let prop in target) {
4889 const match = EVENT_NAME_SYMBOL_REGX.exec(prop);
4890 let evtName = match && match[1];
4891 if (evtName && (!eventName || evtName === eventName)) {
4892 const tasks = target[prop];
4893 if (tasks) {
4894 for (let i = 0; i < tasks.length; i++) {
4895 foundTasks.push(tasks[i]);
4896 }
4897 }
4898 }
4899 }
4900 return foundTasks;
4901 }
4902 let symbolEventName = zoneSymbolEventNames$1[eventName];
4903 if (!symbolEventName) {
4904 prepareEventNames(eventName);
4905 symbolEventName = zoneSymbolEventNames$1[eventName];
4906 }
4907 const captureFalseTasks = target[symbolEventName[FALSE_STR]];
4908 const captureTrueTasks = target[symbolEventName[TRUE_STR]];
4909 if (!captureFalseTasks) {
4910 return captureTrueTasks ? captureTrueTasks.slice() : [];
4911 }
4912 else {
4913 return captureTrueTasks ? captureFalseTasks.concat(captureTrueTasks) :
4914 captureFalseTasks.slice();
4915 }
4916 }
4917 function patchEventPrototype(global, api) {
4918 const Event = global['Event'];
4919 if (Event && Event.prototype) {
4920 api.patchMethod(Event.prototype, 'stopImmediatePropagation', (delegate) => function (self, args) {
4921 self[IMMEDIATE_PROPAGATION_SYMBOL] = true;
4922 // we need to call the native stopImmediatePropagation
4923 // in case in some hybrid application, some part of
4924 // application will be controlled by zone, some are not
4925 delegate && delegate.apply(self, args);
4926 });
4927 }
4928 }
4929
4930 /**
4931 * @license
4932 * Copyright Google Inc. All Rights Reserved.
4933 *
4934 * Use of this source code is governed by an MIT-style license that can be
4935 * found in the LICENSE file at https://angular.io/license
4936 */
4937 function patchCallbacks(api, target, targetName, method, callbacks) {
4938 const symbol = Zone.__symbol__(method);
4939 if (target[symbol]) {
4940 return;
4941 }
4942 const nativeDelegate = target[symbol] = target[method];
4943 target[method] = function (name, opts, options) {
4944 if (opts && opts.prototype) {
4945 callbacks.forEach(function (callback) {
4946 const source = `${targetName}.${method}::` + callback;
4947 const prototype = opts.prototype;
4948 if (prototype.hasOwnProperty(callback)) {
4949 const descriptor = api.ObjectGetOwnPropertyDescriptor(prototype, callback);
4950 if (descriptor && descriptor.value) {
4951 descriptor.value = api.wrapWithCurrentZone(descriptor.value, source);
4952 api._redefineProperty(opts.prototype, callback, descriptor);
4953 }
4954 else if (prototype[callback]) {
4955 prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);
4956 }
4957 }
4958 else if (prototype[callback]) {
4959 prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);
4960 }
4961 });
4962 }
4963 return nativeDelegate.call(target, name, opts, options);
4964 };
4965 api.attachOriginToPatched(target[method], nativeDelegate);
4966 }
4967
4968 /**
4969 * @license
4970 * Copyright Google Inc. All Rights Reserved.
4971 *
4972 * Use of this source code is governed by an MIT-style license that can be
4973 * found in the LICENSE file at https://angular.io/license
4974 */
4975 const globalEventHandlersEventNames = [
4976 'abort',
4977 'animationcancel',
4978 'animationend',
4979 'animationiteration',
4980 'auxclick',
4981 'beforeinput',
4982 'blur',
4983 'cancel',
4984 'canplay',
4985 'canplaythrough',
4986 'change',
4987 'compositionstart',
4988 'compositionupdate',
4989 'compositionend',
4990 'cuechange',
4991 'click',
4992 'close',
4993 'contextmenu',
4994 'curechange',
4995 'dblclick',
4996 'drag',
4997 'dragend',
4998 'dragenter',
4999 'dragexit',
5000 'dragleave',
5001 'dragover',
5002 'drop',
5003 'durationchange',
5004 'emptied',
5005 'ended',
5006 'error',
5007 'focus',
5008 'focusin',
5009 'focusout',
5010 'gotpointercapture',
5011 'input',
5012 'invalid',
5013 'keydown',
5014 'keypress',
5015 'keyup',
5016 'load',
5017 'loadstart',
5018 'loadeddata',
5019 'loadedmetadata',
5020 'lostpointercapture',
5021 'mousedown',
5022 'mouseenter',
5023 'mouseleave',
5024 'mousemove',
5025 'mouseout',
5026 'mouseover',
5027 'mouseup',
5028 'mousewheel',
5029 'orientationchange',
5030 'pause',
5031 'play',
5032 'playing',
5033 'pointercancel',
5034 'pointerdown',
5035 'pointerenter',
5036 'pointerleave',
5037 'pointerlockchange',
5038 'mozpointerlockchange',
5039 'webkitpointerlockerchange',
5040 'pointerlockerror',
5041 'mozpointerlockerror',
5042 'webkitpointerlockerror',
5043 'pointermove',
5044 'pointout',
5045 'pointerover',
5046 'pointerup',
5047 'progress',
5048 'ratechange',
5049 'reset',
5050 'resize',
5051 'scroll',
5052 'seeked',
5053 'seeking',
5054 'select',
5055 'selectionchange',
5056 'selectstart',
5057 'show',
5058 'sort',
5059 'stalled',
5060 'submit',
5061 'suspend',
5062 'timeupdate',
5063 'volumechange',
5064 'touchcancel',
5065 'touchmove',
5066 'touchstart',
5067 'touchend',
5068 'transitioncancel',
5069 'transitionend',
5070 'waiting',
5071 'wheel'
5072 ];
5073 const documentEventNames = [
5074 'afterscriptexecute', 'beforescriptexecute', 'DOMContentLoaded', 'freeze', 'fullscreenchange',
5075 'mozfullscreenchange', 'webkitfullscreenchange', 'msfullscreenchange', 'fullscreenerror',
5076 'mozfullscreenerror', 'webkitfullscreenerror', 'msfullscreenerror', 'readystatechange',
5077 'visibilitychange', 'resume'
5078 ];
5079 const windowEventNames = [
5080 'absolutedeviceorientation',
5081 'afterinput',
5082 'afterprint',
5083 'appinstalled',
5084 'beforeinstallprompt',
5085 'beforeprint',
5086 'beforeunload',
5087 'devicelight',
5088 'devicemotion',
5089 'deviceorientation',
5090 'deviceorientationabsolute',
5091 'deviceproximity',
5092 'hashchange',
5093 'languagechange',
5094 'message',
5095 'mozbeforepaint',
5096 'offline',
5097 'online',
5098 'paint',
5099 'pageshow',
5100 'pagehide',
5101 'popstate',
5102 'rejectionhandled',
5103 'storage',
5104 'unhandledrejection',
5105 'unload',
5106 'userproximity',
5107 'vrdisplayconnected',
5108 'vrdisplaydisconnected',
5109 'vrdisplaypresentchange'
5110 ];
5111 const htmlElementEventNames = [
5112 'beforecopy', 'beforecut', 'beforepaste', 'copy', 'cut', 'paste', 'dragstart', 'loadend',
5113 'animationstart', 'search', 'transitionrun', 'transitionstart', 'webkitanimationend',
5114 'webkitanimationiteration', 'webkitanimationstart', 'webkittransitionend'
5115 ];
5116 const mediaElementEventNames = ['encrypted', 'waitingforkey', 'msneedkey', 'mozinterruptbegin', 'mozinterruptend'];
5117 const ieElementEventNames = [
5118 'activate',
5119 'afterupdate',
5120 'ariarequest',
5121 'beforeactivate',
5122 'beforedeactivate',
5123 'beforeeditfocus',
5124 'beforeupdate',
5125 'cellchange',
5126 'controlselect',
5127 'dataavailable',
5128 'datasetchanged',
5129 'datasetcomplete',
5130 'errorupdate',
5131 'filterchange',
5132 'layoutcomplete',
5133 'losecapture',
5134 'move',
5135 'moveend',
5136 'movestart',
5137 'propertychange',
5138 'resizeend',
5139 'resizestart',
5140 'rowenter',
5141 'rowexit',
5142 'rowsdelete',
5143 'rowsinserted',
5144 'command',
5145 'compassneedscalibration',
5146 'deactivate',
5147 'help',
5148 'mscontentzoom',
5149 'msmanipulationstatechanged',
5150 'msgesturechange',
5151 'msgesturedoubletap',
5152 'msgestureend',
5153 'msgesturehold',
5154 'msgesturestart',
5155 'msgesturetap',
5156 'msgotpointercapture',
5157 'msinertiastart',
5158 'mslostpointercapture',
5159 'mspointercancel',
5160 'mspointerdown',
5161 'mspointerenter',
5162 'mspointerhover',
5163 'mspointerleave',
5164 'mspointermove',
5165 'mspointerout',
5166 'mspointerover',
5167 'mspointerup',
5168 'pointerout',
5169 'mssitemodejumplistitemremoved',
5170 'msthumbnailclick',
5171 'stop',
5172 'storagecommit'
5173 ];
5174 const webglEventNames = ['webglcontextrestored', 'webglcontextlost', 'webglcontextcreationerror'];
5175 const formEventNames = ['autocomplete', 'autocompleteerror'];
5176 const detailEventNames = ['toggle'];
5177 const frameEventNames = ['load'];
5178 const frameSetEventNames = ['blur', 'error', 'focus', 'load', 'resize', 'scroll', 'messageerror'];
5179 const marqueeEventNames = ['bounce', 'finish', 'start'];
5180 const XMLHttpRequestEventNames = [
5181 'loadstart', 'progress', 'abort', 'error', 'load', 'progress', 'timeout', 'loadend',
5182 'readystatechange'
5183 ];
5184 const IDBIndexEventNames = ['upgradeneeded', 'complete', 'abort', 'success', 'error', 'blocked', 'versionchange', 'close'];
5185 const websocketEventNames = ['close', 'error', 'open', 'message'];
5186 const workerEventNames = ['error', 'message'];
5187 const eventNames = globalEventHandlersEventNames.concat(webglEventNames, formEventNames, detailEventNames, documentEventNames, windowEventNames, htmlElementEventNames, ieElementEventNames);
5188 function filterProperties(target, onProperties, ignoreProperties) {
5189 if (!ignoreProperties || ignoreProperties.length === 0) {
5190 return onProperties;
5191 }
5192 const tip = ignoreProperties.filter(ip => ip.target === target);
5193 if (!tip || tip.length === 0) {
5194 return onProperties;
5195 }
5196 const targetIgnoreProperties = tip[0].ignoreProperties;
5197 return onProperties.filter(op => targetIgnoreProperties.indexOf(op) === -1);
5198 }
5199 function patchFilteredProperties(target, onProperties, ignoreProperties, prototype) {
5200 // check whether target is available, sometimes target will be undefined
5201 // because different browser or some 3rd party plugin.
5202 if (!target) {
5203 return;
5204 }
5205 const filteredProperties = filterProperties(target, onProperties, ignoreProperties);
5206 patchOnProperties(target, filteredProperties, prototype);
5207 }
5208 function propertyDescriptorPatch(api, _global) {
5209 if (isNode && !isMix) {
5210 return;
5211 }
5212 if (Zone[api.symbol('patchEvents')]) {
5213 // events are already been patched by legacy patch.
5214 return;
5215 }
5216 const supportsWebSocket = typeof WebSocket !== 'undefined';
5217 const ignoreProperties = _global['__Zone_ignore_on_properties'];
5218 // for browsers that we can patch the descriptor: Chrome & Firefox
5219 if (isBrowser) {
5220 const internalWindow = window;
5221 const ignoreErrorProperties = isIE ? [{ target: internalWindow, ignoreProperties: ['error'] }] : [];
5222 // in IE/Edge, onProp not exist in window object, but in WindowPrototype
5223 // so we need to pass WindowPrototype to check onProp exist or not
5224 patchFilteredProperties(internalWindow, eventNames.concat(['messageerror']), ignoreProperties ? ignoreProperties.concat(ignoreErrorProperties) : ignoreProperties, ObjectGetPrototypeOf(internalWindow));
5225 patchFilteredProperties(Document.prototype, eventNames, ignoreProperties);
5226 if (typeof internalWindow['SVGElement'] !== 'undefined') {
5227 patchFilteredProperties(internalWindow['SVGElement'].prototype, eventNames, ignoreProperties);
5228 }
5229 patchFilteredProperties(Element.prototype, eventNames, ignoreProperties);
5230 patchFilteredProperties(HTMLElement.prototype, eventNames, ignoreProperties);
5231 patchFilteredProperties(HTMLMediaElement.prototype, mediaElementEventNames, ignoreProperties);
5232 patchFilteredProperties(HTMLFrameSetElement.prototype, windowEventNames.concat(frameSetEventNames), ignoreProperties);
5233 patchFilteredProperties(HTMLBodyElement.prototype, windowEventNames.concat(frameSetEventNames), ignoreProperties);
5234 patchFilteredProperties(HTMLFrameElement.prototype, frameEventNames, ignoreProperties);
5235 patchFilteredProperties(HTMLIFrameElement.prototype, frameEventNames, ignoreProperties);
5236 const HTMLMarqueeElement = internalWindow['HTMLMarqueeElement'];
5237 if (HTMLMarqueeElement) {
5238 patchFilteredProperties(HTMLMarqueeElement.prototype, marqueeEventNames, ignoreProperties);
5239 }
5240 const Worker = internalWindow['Worker'];
5241 if (Worker) {
5242 patchFilteredProperties(Worker.prototype, workerEventNames, ignoreProperties);
5243 }
5244 }
5245 const XMLHttpRequest = _global['XMLHttpRequest'];
5246 if (XMLHttpRequest) {
5247 // XMLHttpRequest is not available in ServiceWorker, so we need to check here
5248 patchFilteredProperties(XMLHttpRequest.prototype, XMLHttpRequestEventNames, ignoreProperties);
5249 }
5250 const XMLHttpRequestEventTarget = _global['XMLHttpRequestEventTarget'];
5251 if (XMLHttpRequestEventTarget) {
5252 patchFilteredProperties(XMLHttpRequestEventTarget && XMLHttpRequestEventTarget.prototype, XMLHttpRequestEventNames, ignoreProperties);
5253 }
5254 if (typeof IDBIndex !== 'undefined') {
5255 patchFilteredProperties(IDBIndex.prototype, IDBIndexEventNames, ignoreProperties);
5256 patchFilteredProperties(IDBRequest.prototype, IDBIndexEventNames, ignoreProperties);
5257 patchFilteredProperties(IDBOpenDBRequest.prototype, IDBIndexEventNames, ignoreProperties);
5258 patchFilteredProperties(IDBDatabase.prototype, IDBIndexEventNames, ignoreProperties);
5259 patchFilteredProperties(IDBTransaction.prototype, IDBIndexEventNames, ignoreProperties);
5260 patchFilteredProperties(IDBCursor.prototype, IDBIndexEventNames, ignoreProperties);
5261 }
5262 if (supportsWebSocket) {
5263 patchFilteredProperties(WebSocket.prototype, websocketEventNames, ignoreProperties);
5264 }
5265 }
5266
5267 /**
5268 * @license
5269 * Copyright Google Inc. All Rights Reserved.
5270 *
5271 * Use of this source code is governed by an MIT-style license that can be
5272 * found in the LICENSE file at https://angular.io/license
5273 */
5274 Zone.__load_patch('util', (global, Zone, api) => {
5275 api.patchOnProperties = patchOnProperties;
5276 api.patchMethod = patchMethod;
5277 api.bindArguments = bindArguments;
5278 api.patchMacroTask = patchMacroTask;
5279 // In earlier version of zone.js (<0.9.0), we use env name `__zone_symbol__BLACK_LISTED_EVENTS` to
5280 // define which events will not be patched by `Zone.js`.
5281 // In newer version (>=0.9.0), we change the env name to `__zone_symbol__UNPATCHED_EVENTS` to keep
5282 // the name consistent with angular repo.
5283 // The `__zone_symbol__BLACK_LISTED_EVENTS` is deprecated, but it is still be supported for
5284 // backwards compatibility.
5285 const SYMBOL_BLACK_LISTED_EVENTS = Zone.__symbol__('BLACK_LISTED_EVENTS');
5286 const SYMBOL_UNPATCHED_EVENTS = Zone.__symbol__('UNPATCHED_EVENTS');
5287 if (global[SYMBOL_UNPATCHED_EVENTS]) {
5288 global[SYMBOL_BLACK_LISTED_EVENTS] = global[SYMBOL_UNPATCHED_EVENTS];
5289 }
5290 if (global[SYMBOL_BLACK_LISTED_EVENTS]) {
5291 Zone[SYMBOL_BLACK_LISTED_EVENTS] = Zone[SYMBOL_UNPATCHED_EVENTS] =
5292 global[SYMBOL_BLACK_LISTED_EVENTS];
5293 }
5294 api.patchEventPrototype = patchEventPrototype;
5295 api.patchEventTarget = patchEventTarget;
5296 api.isIEOrEdge = isIEOrEdge;
5297 api.ObjectDefineProperty = ObjectDefineProperty;
5298 api.ObjectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor;
5299 api.ObjectCreate = ObjectCreate;
5300 api.ArraySlice = ArraySlice;
5301 api.patchClass = patchClass;
5302 api.wrapWithCurrentZone = wrapWithCurrentZone;
5303 api.filterProperties = filterProperties;
5304 api.attachOriginToPatched = attachOriginToPatched;
5305 api._redefineProperty = Object.defineProperty;
5306 api.patchCallbacks = patchCallbacks;
5307 api.getGlobalObjects = () => ({ globalSources, zoneSymbolEventNames: zoneSymbolEventNames$1, eventNames, isBrowser, isMix, isNode, TRUE_STR,
5308 FALSE_STR, ZONE_SYMBOL_PREFIX, ADD_EVENT_LISTENER_STR, REMOVE_EVENT_LISTENER_STR });
5309 });
5310
5311 /**
5312 * @license
5313 * Copyright Google Inc. All Rights Reserved.
5314 *
5315 * Use of this source code is governed by an MIT-style license that can be
5316 * found in the LICENSE file at https://angular.io/license
5317 */
5318 const taskSymbol = zoneSymbol('zoneTask');
5319 function patchTimer(window, setName, cancelName, nameSuffix) {
5320 let setNative = null;
5321 let clearNative = null;
5322 setName += nameSuffix;
5323 cancelName += nameSuffix;
5324 const tasksByHandleId = {};
5325 function scheduleTask(task) {
5326 const data = task.data;
5327 function timer() {
5328 try {
5329 task.invoke.apply(this, arguments);
5330 }
5331 finally {
5332 // issue-934, task will be cancelled
5333 // even it is a periodic task such as
5334 // setInterval
5335 if (!(task.data && task.data.isPeriodic)) {
5336 if (typeof data.handleId === 'number') {
5337 // in non-nodejs env, we remove timerId
5338 // from local cache
5339 delete tasksByHandleId[data.handleId];
5340 }
5341 else if (data.handleId) {
5342 // Node returns complex objects as handleIds
5343 // we remove task reference from timer object
5344 data.handleId[taskSymbol] = null;
5345 }
5346 }
5347 }
5348 }
5349 data.args[0] = timer;
5350 data.handleId = setNative.apply(window, data.args);
5351 return task;
5352 }
5353 function clearTask(task) { return clearNative(task.data.handleId); }
5354 setNative =
5355 patchMethod(window, setName, (delegate) => function (self, args) {
5356 if (typeof args[0] === 'function') {
5357 const options = {
5358 isPeriodic: nameSuffix === 'Interval',
5359 delay: (nameSuffix === 'Timeout' || nameSuffix === 'Interval') ? args[1] || 0 :
5360 undefined,
5361 args: args
5362 };
5363 const task = scheduleMacroTaskWithCurrentZone(setName, args[0], options, scheduleTask, clearTask);
5364 if (!task) {
5365 return task;
5366 }
5367 // Node.js must additionally support the ref and unref functions.
5368 const handle = task.data.handleId;
5369 if (typeof handle === 'number') {
5370 // for non nodejs env, we save handleId: task
5371 // mapping in local cache for clearTimeout
5372 tasksByHandleId[handle] = task;
5373 }
5374 else if (handle) {
5375 // for nodejs env, we save task
5376 // reference in timerId Object for clearTimeout
5377 handle[taskSymbol] = task;
5378 }
5379 // check whether handle is null, because some polyfill or browser
5380 // may return undefined from setTimeout/setInterval/setImmediate/requestAnimationFrame
5381 if (handle && handle.ref && handle.unref && typeof handle.ref === 'function' &&
5382 typeof handle.unref === 'function') {
5383 task.ref = handle.ref.bind(handle);
5384 task.unref = handle.unref.bind(handle);
5385 }
5386 if (typeof handle === 'number' || handle) {
5387 return handle;
5388 }
5389 return task;
5390 }
5391 else {
5392 // cause an error by calling it directly.
5393 return delegate.apply(window, args);
5394 }
5395 });
5396 clearNative =
5397 patchMethod(window, cancelName, (delegate) => function (self, args) {
5398 const id = args[0];
5399 let task;
5400 if (typeof id === 'number') {
5401 // non nodejs env.
5402 task = tasksByHandleId[id];
5403 }
5404 else {
5405 // nodejs env.
5406 task = id && id[taskSymbol];
5407 // other environments.
5408 if (!task) {
5409 task = id;
5410 }
5411 }
5412 if (task && typeof task.type === 'string') {
5413 if (task.state !== 'notScheduled' &&
5414 (task.cancelFn && task.data.isPeriodic || task.runCount === 0)) {
5415 if (typeof id === 'number') {
5416 delete tasksByHandleId[id];
5417 }
5418 else if (id) {
5419 id[taskSymbol] = null;
5420 }
5421 // Do not cancel already canceled functions
5422 task.zone.cancelTask(task);
5423 }
5424 }
5425 else {
5426 // cause an error by calling it directly.
5427 delegate.apply(window, args);
5428 }
5429 });
5430 }
5431
5432 /**
5433 * @license
5434 * Copyright Google Inc. All Rights Reserved.
5435 *
5436 * Use of this source code is governed by an MIT-style license that can be
5437 * found in the LICENSE file at https://angular.io/license
5438 */
5439 function patchCustomElements(_global, api) {
5440 const { isBrowser, isMix } = api.getGlobalObjects();
5441 if ((!isBrowser && !isMix) || !_global['customElements'] || !('customElements' in _global)) {
5442 return;
5443 }
5444 const callbacks = ['connectedCallback', 'disconnectedCallback', 'adoptedCallback', 'attributeChangedCallback'];
5445 api.patchCallbacks(api, _global.customElements, 'customElements', 'define', callbacks);
5446 }
5447
5448 /**
5449 * @license
5450 * Copyright Google Inc. All Rights Reserved.
5451 *
5452 * Use of this source code is governed by an MIT-style license that can be
5453 * found in the LICENSE file at https://angular.io/license
5454 */
5455 function eventTargetPatch(_global, api) {
5456 if (Zone[api.symbol('patchEventTarget')]) {
5457 // EventTarget is already patched.
5458 return;
5459 }
5460 const { eventNames, zoneSymbolEventNames, TRUE_STR, FALSE_STR, ZONE_SYMBOL_PREFIX } = api.getGlobalObjects();
5461 // predefine all __zone_symbol__ + eventName + true/false string
5462 for (let i = 0; i < eventNames.length; i++) {
5463 const eventName = eventNames[i];
5464 const falseEventName = eventName + FALSE_STR;
5465 const trueEventName = eventName + TRUE_STR;
5466 const symbol = ZONE_SYMBOL_PREFIX + falseEventName;
5467 const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;
5468 zoneSymbolEventNames[eventName] = {};
5469 zoneSymbolEventNames[eventName][FALSE_STR] = symbol;
5470 zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;
5471 }
5472 const EVENT_TARGET = _global['EventTarget'];
5473 if (!EVENT_TARGET || !EVENT_TARGET.prototype) {
5474 return;
5475 }
5476 api.patchEventTarget(_global, [EVENT_TARGET && EVENT_TARGET.prototype]);
5477 return true;
5478 }
5479 function patchEvent(global, api) {
5480 api.patchEventPrototype(global, api);
5481 }
5482
5483 /**
5484 * @license
5485 * Copyright Google Inc. All Rights Reserved.
5486 *
5487 * Use of this source code is governed by an MIT-style license that can be
5488 * found in the LICENSE file at https://angular.io/license
5489 */
5490 Zone.__load_patch('legacy', (global) => {
5491 const legacyPatch = global[Zone.__symbol__('legacyPatch')];
5492 if (legacyPatch) {
5493 legacyPatch();
5494 }
5495 });
5496 Zone.__load_patch('timers', (global) => {
5497 const set = 'set';
5498 const clear = 'clear';
5499 patchTimer(global, set, clear, 'Timeout');
5500 patchTimer(global, set, clear, 'Interval');
5501 patchTimer(global, set, clear, 'Immediate');
5502 });
5503 Zone.__load_patch('requestAnimationFrame', (global) => {
5504 patchTimer(global, 'request', 'cancel', 'AnimationFrame');
5505 patchTimer(global, 'mozRequest', 'mozCancel', 'AnimationFrame');
5506 patchTimer(global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');
5507 });
5508 Zone.__load_patch('blocking', (global, Zone) => {
5509 const blockingMethods = ['alert', 'prompt', 'confirm'];
5510 for (let i = 0; i < blockingMethods.length; i++) {
5511 const name = blockingMethods[i];
5512 patchMethod(global, name, (delegate, symbol, name) => {
5513 return function (s, args) {
5514 return Zone.current.run(delegate, global, args, name);
5515 };
5516 });
5517 }
5518 });
5519 Zone.__load_patch('EventTarget', (global, Zone, api) => {
5520 patchEvent(global, api);
5521 eventTargetPatch(global, api);
5522 // patch XMLHttpRequestEventTarget's addEventListener/removeEventListener
5523 const XMLHttpRequestEventTarget = global['XMLHttpRequestEventTarget'];
5524 if (XMLHttpRequestEventTarget && XMLHttpRequestEventTarget.prototype) {
5525 api.patchEventTarget(global, [XMLHttpRequestEventTarget.prototype]);
5526 }
5527 patchClass('MutationObserver');
5528 patchClass('WebKitMutationObserver');
5529 patchClass('IntersectionObserver');
5530 patchClass('FileReader');
5531 });
5532 Zone.__load_patch('on_property', (global, Zone, api) => {
5533 propertyDescriptorPatch(api, global);
5534 });
5535 Zone.__load_patch('customElements', (global, Zone, api) => {
5536 patchCustomElements(global, api);
5537 });
5538 Zone.__load_patch('XHR', (global, Zone) => {
5539 // Treat XMLHttpRequest as a macrotask.
5540 patchXHR(global);
5541 const XHR_TASK = zoneSymbol('xhrTask');
5542 const XHR_SYNC = zoneSymbol('xhrSync');
5543 const XHR_LISTENER = zoneSymbol('xhrListener');
5544 const XHR_SCHEDULED = zoneSymbol('xhrScheduled');
5545 const XHR_URL = zoneSymbol('xhrURL');
5546 const XHR_ERROR_BEFORE_SCHEDULED = zoneSymbol('xhrErrorBeforeScheduled');
5547 function patchXHR(window) {
5548 const XMLHttpRequest = window['XMLHttpRequest'];
5549 if (!XMLHttpRequest) {
5550 // XMLHttpRequest is not available in service worker
5551 return;
5552 }
5553 const XMLHttpRequestPrototype = XMLHttpRequest.prototype;
5554 function findPendingTask(target) { return target[XHR_TASK]; }
5555 let oriAddListener = XMLHttpRequestPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];
5556 let oriRemoveListener = XMLHttpRequestPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];
5557 if (!oriAddListener) {
5558 const XMLHttpRequestEventTarget = window['XMLHttpRequestEventTarget'];
5559 if (XMLHttpRequestEventTarget) {
5560 const XMLHttpRequestEventTargetPrototype = XMLHttpRequestEventTarget.prototype;
5561 oriAddListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];
5562 oriRemoveListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];
5563 }
5564 }
5565 const READY_STATE_CHANGE = 'readystatechange';
5566 const SCHEDULED = 'scheduled';
5567 function scheduleTask(task) {
5568 const data = task.data;
5569 const target = data.target;
5570 target[XHR_SCHEDULED] = false;
5571 target[XHR_ERROR_BEFORE_SCHEDULED] = false;
5572 // remove existing event listener
5573 const listener = target[XHR_LISTENER];
5574 if (!oriAddListener) {
5575 oriAddListener = target[ZONE_SYMBOL_ADD_EVENT_LISTENER];
5576 oriRemoveListener = target[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];
5577 }
5578 if (listener) {
5579 oriRemoveListener.call(target, READY_STATE_CHANGE, listener);
5580 }
5581 const newListener = target[XHR_LISTENER] = () => {
5582 if (target.readyState === target.DONE) {
5583 // sometimes on some browsers XMLHttpRequest will fire onreadystatechange with
5584 // readyState=4 multiple times, so we need to check task state here
5585 if (!data.aborted && target[XHR_SCHEDULED] && task.state === SCHEDULED) {
5586 // check whether the xhr has registered onload listener
5587 // if that is the case, the task should invoke after all
5588 // onload listeners finish.
5589 const loadTasks = target[Zone.__symbol__('loadfalse')];
5590 if (loadTasks && loadTasks.length > 0) {
5591 const oriInvoke = task.invoke;
5592 task.invoke = function () {
5593 // need to load the tasks again, because in other
5594 // load listener, they may remove themselves
5595 const loadTasks = target[Zone.__symbol__('loadfalse')];
5596 for (let i = 0; i < loadTasks.length; i++) {
5597 if (loadTasks[i] === task) {
5598 loadTasks.splice(i, 1);
5599 }
5600 }
5601 if (!data.aborted && task.state === SCHEDULED) {
5602 oriInvoke.call(task);
5603 }
5604 };
5605 loadTasks.push(task);
5606 }
5607 else {
5608 task.invoke();
5609 }
5610 }
5611 else if (!data.aborted && target[XHR_SCHEDULED] === false) {
5612 // error occurs when xhr.send()
5613 target[XHR_ERROR_BEFORE_SCHEDULED] = true;
5614 }
5615 }
5616 };
5617 oriAddListener.call(target, READY_STATE_CHANGE, newListener);
5618 const storedTask = target[XHR_TASK];
5619 if (!storedTask) {
5620 target[XHR_TASK] = task;
5621 }
5622 sendNative.apply(target, data.args);
5623 target[XHR_SCHEDULED] = true;
5624 return task;
5625 }
5626 function placeholderCallback() { }
5627 function clearTask(task) {
5628 const data = task.data;
5629 // Note - ideally, we would call data.target.removeEventListener here, but it's too late
5630 // to prevent it from firing. So instead, we store info for the event listener.
5631 data.aborted = true;
5632 return abortNative.apply(data.target, data.args);
5633 }
5634 const openNative = patchMethod(XMLHttpRequestPrototype, 'open', () => function (self, args) {
5635 self[XHR_SYNC] = args[2] == false;
5636 self[XHR_URL] = args[1];
5637 return openNative.apply(self, args);
5638 });
5639 const XMLHTTPREQUEST_SOURCE = 'XMLHttpRequest.send';
5640 const fetchTaskAborting = zoneSymbol('fetchTaskAborting');
5641 const fetchTaskScheduling = zoneSymbol('fetchTaskScheduling');
5642 const sendNative = patchMethod(XMLHttpRequestPrototype, 'send', () => function (self, args) {
5643 if (Zone.current[fetchTaskScheduling] === true) {
5644 // a fetch is scheduling, so we are using xhr to polyfill fetch
5645 // and because we already schedule macroTask for fetch, we should
5646 // not schedule a macroTask for xhr again
5647 return sendNative.apply(self, args);
5648 }
5649 if (self[XHR_SYNC]) {
5650 // if the XHR is sync there is no task to schedule, just execute the code.
5651 return sendNative.apply(self, args);
5652 }
5653 else {
5654 const options = { target: self, url: self[XHR_URL], isPeriodic: false, args: args, aborted: false };
5655 const task = scheduleMacroTaskWithCurrentZone(XMLHTTPREQUEST_SOURCE, placeholderCallback, options, scheduleTask, clearTask);
5656 if (self && self[XHR_ERROR_BEFORE_SCHEDULED] === true && !options.aborted &&
5657 task.state === SCHEDULED) {
5658 // xhr request throw error when send
5659 // we should invoke task instead of leaving a scheduled
5660 // pending macroTask
5661 task.invoke();
5662 }
5663 }
5664 });
5665 const abortNative = patchMethod(XMLHttpRequestPrototype, 'abort', () => function (self, args) {
5666 const task = findPendingTask(self);
5667 if (task && typeof task.type == 'string') {
5668 // If the XHR has already completed, do nothing.
5669 // If the XHR has already been aborted, do nothing.
5670 // Fix #569, call abort multiple times before done will cause
5671 // macroTask task count be negative number
5672 if (task.cancelFn == null || (task.data && task.data.aborted)) {
5673 return;
5674 }
5675 task.zone.cancelTask(task);
5676 }
5677 else if (Zone.current[fetchTaskAborting] === true) {
5678 // the abort is called from fetch polyfill, we need to call native abort of XHR.
5679 return abortNative.apply(self, args);
5680 }
5681 // Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no
5682 // task
5683 // to cancel. Do nothing.
5684 });
5685 }
5686 });
5687 Zone.__load_patch('geolocation', (global) => {
5688 /// GEO_LOCATION
5689 if (global['navigator'] && global['navigator'].geolocation) {
5690 patchPrototype(global['navigator'].geolocation, ['getCurrentPosition', 'watchPosition']);
5691 }
5692 });
5693 Zone.__load_patch('PromiseRejectionEvent', (global, Zone) => {
5694 // handle unhandled promise rejection
5695 function findPromiseRejectionHandler(evtName) {
5696 return function (e) {
5697 const eventTasks = findEventTasks(global, evtName);
5698 eventTasks.forEach(eventTask => {
5699 // windows has added unhandledrejection event listener
5700 // trigger the event listener
5701 const PromiseRejectionEvent = global['PromiseRejectionEvent'];
5702 if (PromiseRejectionEvent) {
5703 const evt = new PromiseRejectionEvent(evtName, { promise: e.promise, reason: e.rejection });
5704 eventTask.invoke(evt);
5705 }
5706 });
5707 };
5708 }
5709 if (global['PromiseRejectionEvent']) {
5710 Zone[zoneSymbol('unhandledPromiseRejectionHandler')] =
5711 findPromiseRejectionHandler('unhandledrejection');
5712 Zone[zoneSymbol('rejectionHandledHandler')] =
5713 findPromiseRejectionHandler('rejectionhandled');
5714 }
5715 });
5716
5717})));
5718
5719
5720/***/ }),
5721
5722/***/ "s5qY":
5723/*!**************************************************************!*\
5724 !*** ./node_modules/core-js/modules/_validate-collection.js ***!
5725 \**************************************************************/
5726/*! no static exports found */
5727/***/ (function(module, exports, __webpack_require__) {
5728
5729var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
5730module.exports = function (it, TYPE) {
5731 if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
5732 return it;
5733};
5734
5735
5736/***/ }),
5737
5738/***/ "uAtd":
5739/*!***********************************************************************!*\
5740 !*** ./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js ***!
5741 \***********************************************************************/
5742/*! no static exports found */
5743/***/ (function(module, exports, __webpack_require__) {
5744
5745var Set = __webpack_require__(/*! ./es6.set */ "T39b");
5746var from = __webpack_require__(/*! ./_array-from-iterable */ "Q3ne");
5747var metadata = __webpack_require__(/*! ./_metadata */ "N6cJ");
5748var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
5749var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "OP3Y");
5750var ordinaryOwnMetadataKeys = metadata.keys;
5751var toMetaKey = metadata.key;
5752
5753var ordinaryMetadataKeys = function (O, P) {
5754 var oKeys = ordinaryOwnMetadataKeys(O, P);
5755 var parent = getPrototypeOf(O);
5756 if (parent === null) return oKeys;
5757 var pKeys = ordinaryMetadataKeys(parent, P);
5758 return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys;
5759};
5760
5761metadata.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {
5762 return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
5763} });
5764
5765
5766/***/ }),
5767
5768/***/ "uhZd":
5769/*!*********************************************************************!*\
5770 !*** ./node_modules/core-js/modules/es6.reflect.delete-property.js ***!
5771 \*********************************************************************/
5772/*! no static exports found */
5773/***/ (function(module, exports, __webpack_require__) {
5774
5775// 26.1.4 Reflect.deleteProperty(target, propertyKey)
5776var $export = __webpack_require__(/*! ./_export */ "XKFU");
5777var gOPD = __webpack_require__(/*! ./_object-gopd */ "EemH").f;
5778var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
5779
5780$export($export.S, 'Reflect', {
5781 deleteProperty: function deleteProperty(target, propertyKey) {
5782 var desc = gOPD(anObject(target), propertyKey);
5783 return desc && !desc.configurable ? false : delete target[propertyKey];
5784 }
5785});
5786
5787
5788/***/ }),
5789
5790/***/ "vhPU":
5791/*!**************************************************!*\
5792 !*** ./node_modules/core-js/modules/_defined.js ***!
5793 \**************************************************/
5794/*! no static exports found */
5795/***/ (function(module, exports) {
5796
5797// 7.2.1 RequireObjectCoercible(argument)
5798module.exports = function (it) {
5799 if (it == undefined) throw TypeError("Can't call method on " + it);
5800 return it;
5801};
5802
5803
5804/***/ }),
5805
5806/***/ "w2a5":
5807/*!*********************************************************!*\
5808 !*** ./node_modules/core-js/modules/_array-includes.js ***!
5809 \*********************************************************/
5810/*! no static exports found */
5811/***/ (function(module, exports, __webpack_require__) {
5812
5813// false -> Array#indexOf
5814// true -> Array#includes
5815var toIObject = __webpack_require__(/*! ./_to-iobject */ "aCFj");
5816var toLength = __webpack_require__(/*! ./_to-length */ "ne8i");
5817var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "d/Gc");
5818module.exports = function (IS_INCLUDES) {
5819 return function ($this, el, fromIndex) {
5820 var O = toIObject($this);
5821 var length = toLength(O.length);
5822 var index = toAbsoluteIndex(fromIndex, length);
5823 var value;
5824 // Array#includes uses SameValueZero equality algorithm
5825 // eslint-disable-next-line no-self-compare
5826 if (IS_INCLUDES && el != el) while (length > index) {
5827 value = O[index++];
5828 // eslint-disable-next-line no-self-compare
5829 if (value != value) return true;
5830 // Array#indexOf ignores holes, Array#includes - not
5831 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
5832 if (O[index] === el) return IS_INCLUDES || index || 0;
5833 } return !IS_INCLUDES && -1;
5834 };
5835};
5836
5837
5838/***/ }),
5839
5840/***/ "wmvG":
5841/*!************************************************************!*\
5842 !*** ./node_modules/core-js/modules/_collection-strong.js ***!
5843 \************************************************************/
5844/*! no static exports found */
5845/***/ (function(module, exports, __webpack_require__) {
5846
5847"use strict";
5848
5849var dP = __webpack_require__(/*! ./_object-dp */ "hswa").f;
5850var create = __webpack_require__(/*! ./_object-create */ "Kuth");
5851var redefineAll = __webpack_require__(/*! ./_redefine-all */ "3Lyj");
5852var ctx = __webpack_require__(/*! ./_ctx */ "m0Pp");
5853var anInstance = __webpack_require__(/*! ./_an-instance */ "9gX7");
5854var forOf = __webpack_require__(/*! ./_for-of */ "SlkY");
5855var $iterDefine = __webpack_require__(/*! ./_iter-define */ "Afnz");
5856var step = __webpack_require__(/*! ./_iter-step */ "1TsA");
5857var setSpecies = __webpack_require__(/*! ./_set-species */ "elZq");
5858var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "nh4g");
5859var fastKey = __webpack_require__(/*! ./_meta */ "Z6vF").fastKey;
5860var validate = __webpack_require__(/*! ./_validate-collection */ "s5qY");
5861var SIZE = DESCRIPTORS ? '_s' : 'size';
5862
5863var getEntry = function (that, key) {
5864 // fast case
5865 var index = fastKey(key);
5866 var entry;
5867 if (index !== 'F') return that._i[index];
5868 // frozen object case
5869 for (entry = that._f; entry; entry = entry.n) {
5870 if (entry.k == key) return entry;
5871 }
5872};
5873
5874module.exports = {
5875 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
5876 var C = wrapper(function (that, iterable) {
5877 anInstance(that, C, NAME, '_i');
5878 that._t = NAME; // collection type
5879 that._i = create(null); // index
5880 that._f = undefined; // first entry
5881 that._l = undefined; // last entry
5882 that[SIZE] = 0; // size
5883 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
5884 });
5885 redefineAll(C.prototype, {
5886 // 23.1.3.1 Map.prototype.clear()
5887 // 23.2.3.2 Set.prototype.clear()
5888 clear: function clear() {
5889 for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
5890 entry.r = true;
5891 if (entry.p) entry.p = entry.p.n = undefined;
5892 delete data[entry.i];
5893 }
5894 that._f = that._l = undefined;
5895 that[SIZE] = 0;
5896 },
5897 // 23.1.3.3 Map.prototype.delete(key)
5898 // 23.2.3.4 Set.prototype.delete(value)
5899 'delete': function (key) {
5900 var that = validate(this, NAME);
5901 var entry = getEntry(that, key);
5902 if (entry) {
5903 var next = entry.n;
5904 var prev = entry.p;
5905 delete that._i[entry.i];
5906 entry.r = true;
5907 if (prev) prev.n = next;
5908 if (next) next.p = prev;
5909 if (that._f == entry) that._f = next;
5910 if (that._l == entry) that._l = prev;
5911 that[SIZE]--;
5912 } return !!entry;
5913 },
5914 // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
5915 // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
5916 forEach: function forEach(callbackfn /* , that = undefined */) {
5917 validate(this, NAME);
5918 var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
5919 var entry;
5920 while (entry = entry ? entry.n : this._f) {
5921 f(entry.v, entry.k, this);
5922 // revert to the last existing entry
5923 while (entry && entry.r) entry = entry.p;
5924 }
5925 },
5926 // 23.1.3.7 Map.prototype.has(key)
5927 // 23.2.3.7 Set.prototype.has(value)
5928 has: function has(key) {
5929 return !!getEntry(validate(this, NAME), key);
5930 }
5931 });
5932 if (DESCRIPTORS) dP(C.prototype, 'size', {
5933 get: function () {
5934 return validate(this, NAME)[SIZE];
5935 }
5936 });
5937 return C;
5938 },
5939 def: function (that, key, value) {
5940 var entry = getEntry(that, key);
5941 var prev, index;
5942 // change existing entry
5943 if (entry) {
5944 entry.v = value;
5945 // create new entry
5946 } else {
5947 that._l = entry = {
5948 i: index = fastKey(key, true), // <- index
5949 k: key, // <- key
5950 v: value, // <- value
5951 p: prev = that._l, // <- previous entry
5952 n: undefined, // <- next entry
5953 r: false // <- removed
5954 };
5955 if (!that._f) that._f = entry;
5956 if (prev) prev.n = entry;
5957 that[SIZE]++;
5958 // add to index
5959 if (index !== 'F') that._i[index] = entry;
5960 } return that;
5961 },
5962 getEntry: getEntry,
5963 setStrong: function (C, NAME, IS_MAP) {
5964 // add .keys, .values, .entries, [@@iterator]
5965 // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
5966 $iterDefine(C, NAME, function (iterated, kind) {
5967 this._t = validate(iterated, NAME); // target
5968 this._k = kind; // kind
5969 this._l = undefined; // previous
5970 }, function () {
5971 var that = this;
5972 var kind = that._k;
5973 var entry = that._l;
5974 // revert to the last existing entry
5975 while (entry && entry.r) entry = entry.p;
5976 // get next entry
5977 if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
5978 // or finish the iteration
5979 that._t = undefined;
5980 return step(1);
5981 }
5982 // return step by kind
5983 if (kind == 'keys') return step(0, entry.k);
5984 if (kind == 'values') return step(0, entry.v);
5985 return step(0, [entry.k, entry.v]);
5986 }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
5987
5988 // add [@@species], 23.1.2.2, 23.2.2.2
5989 setSpecies(NAME);
5990 }
5991};
5992
5993
5994/***/ }),
5995
5996/***/ "xpiv":
5997/*!**************************************************************!*\
5998 !*** ./node_modules/core-js/modules/es6.reflect.own-keys.js ***!
5999 \**************************************************************/
6000/*! no static exports found */
6001/***/ (function(module, exports, __webpack_require__) {
6002
6003// 26.1.11 Reflect.ownKeys(target)
6004var $export = __webpack_require__(/*! ./_export */ "XKFU");
6005
6006$export($export.S, 'Reflect', { ownKeys: __webpack_require__(/*! ./_own-keys */ "mQtv") });
6007
6008
6009/***/ }),
6010
6011/***/ "xpql":
6012/*!*********************************************************!*\
6013 !*** ./node_modules/core-js/modules/_ie8-dom-define.js ***!
6014 \*********************************************************/
6015/*! no static exports found */
6016/***/ (function(module, exports, __webpack_require__) {
6017
6018module.exports = !__webpack_require__(/*! ./_descriptors */ "nh4g") && !__webpack_require__(/*! ./_fails */ "eeVq")(function () {
6019 return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "Iw71")('div'), 'a', { get: function () { return 7; } }).a != 7;
6020});
6021
6022
6023/***/ }),
6024
6025/***/ "y3w9":
6026/*!****************************************************!*\
6027 !*** ./node_modules/core-js/modules/_an-object.js ***!
6028 \****************************************************/
6029/*! no static exports found */
6030/***/ (function(module, exports, __webpack_require__) {
6031
6032var isObject = __webpack_require__(/*! ./_is-object */ "0/R4");
6033module.exports = function (it) {
6034 if (!isObject(it)) throw TypeError(it + ' is not an object!');
6035 return it;
6036};
6037
6038
6039/***/ }),
6040
6041/***/ "ylqs":
6042/*!**********************************************!*\
6043 !*** ./node_modules/core-js/modules/_uid.js ***!
6044 \**********************************************/
6045/*! no static exports found */
6046/***/ (function(module, exports) {
6047
6048var id = 0;
6049var px = Math.random();
6050module.exports = function (key) {
6051 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
6052};
6053
6054
6055/***/ }),
6056
6057/***/ "zRwo":
6058/*!***************************************************************!*\
6059 !*** ./node_modules/core-js/modules/_array-species-create.js ***!
6060 \***************************************************************/
6061/*! no static exports found */
6062/***/ (function(module, exports, __webpack_require__) {
6063
6064// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
6065var speciesConstructor = __webpack_require__(/*! ./_array-species-constructor */ "6FMO");
6066
6067module.exports = function (original, length) {
6068 return new (speciesConstructor(original))(length);
6069};
6070
6071
6072/***/ }),
6073
6074/***/ "zhAb":
6075/*!***************************************************************!*\
6076 !*** ./node_modules/core-js/modules/_object-keys-internal.js ***!
6077 \***************************************************************/
6078/*! no static exports found */
6079/***/ (function(module, exports, __webpack_require__) {
6080
6081var has = __webpack_require__(/*! ./_has */ "aagx");
6082var toIObject = __webpack_require__(/*! ./_to-iobject */ "aCFj");
6083var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "w2a5")(false);
6084var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "YTvA")('IE_PROTO');
6085
6086module.exports = function (object, names) {
6087 var O = toIObject(object);
6088 var i = 0;
6089 var result = [];
6090 var key;
6091 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
6092 // Don't enum bug & hidden keys
6093 while (names.length > i) if (has(O, key = names[i++])) {
6094 ~arrayIndexOf(result, key) || result.push(key);
6095 }
6096 return result;
6097};
6098
6099
6100/***/ }),
6101
6102/***/ "zq+C":
6103/*!*********************************************************************!*\
6104 !*** ./node_modules/core-js/modules/es7.reflect.delete-metadata.js ***!
6105 \*********************************************************************/
6106/*! no static exports found */
6107/***/ (function(module, exports, __webpack_require__) {
6108
6109var metadata = __webpack_require__(/*! ./_metadata */ "N6cJ");
6110var anObject = __webpack_require__(/*! ./_an-object */ "y3w9");
6111var toMetaKey = metadata.key;
6112var getOrCreateMetadataMap = metadata.map;
6113var store = metadata.store;
6114
6115metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {
6116 var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]);
6117 var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);
6118 if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;
6119 if (metadataMap.size) return true;
6120 var targetMetadata = store.get(target);
6121 targetMetadata['delete'](targetKey);
6122 return !!targetMetadata.size || store['delete'](target);
6123} });
6124
6125
6126/***/ })
6127
6128},[[2,"runtime"]]]);
6129//# sourceMappingURL=polyfills-es2015.js.map
Note: See TracBrowser for help on using the repository browser.