@meijie/vue-fireworks 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1808 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["vueFireworks"] = factory();
8
- else
9
- root["vueFireworks"] = factory();
10
- })((typeof self !== 'undefined' ? self : this), function() {
11
- return /******/ (function(modules) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = {};
14
- /******/
15
- /******/ // The require function
16
- /******/ function __webpack_require__(moduleId) {
17
- /******/
18
- /******/ // Check if module is in cache
19
- /******/ if(installedModules[moduleId]) {
20
- /******/ return installedModules[moduleId].exports;
21
- /******/ }
22
- /******/ // Create a new module (and put it into the cache)
23
- /******/ var module = installedModules[moduleId] = {
24
- /******/ i: moduleId,
25
- /******/ l: false,
26
- /******/ exports: {}
27
- /******/ };
28
- /******/
29
- /******/ // Execute the module function
30
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
- /******/
32
- /******/ // Flag the module as loaded
33
- /******/ module.l = true;
34
- /******/
35
- /******/ // Return the exports of the module
36
- /******/ return module.exports;
37
- /******/ }
38
- /******/
39
- /******/
40
- /******/ // expose the modules object (__webpack_modules__)
41
- /******/ __webpack_require__.m = modules;
42
- /******/
43
- /******/ // expose the module cache
44
- /******/ __webpack_require__.c = installedModules;
45
- /******/
46
- /******/ // define getter function for harmony exports
47
- /******/ __webpack_require__.d = function(exports, name, getter) {
48
- /******/ if(!__webpack_require__.o(exports, name)) {
49
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
- /******/ }
51
- /******/ };
52
- /******/
53
- /******/ // define __esModule on exports
54
- /******/ __webpack_require__.r = function(exports) {
55
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
- /******/ }
58
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
- /******/ };
60
- /******/
61
- /******/ // create a fake namespace object
62
- /******/ // mode & 1: value is a module id, require it
63
- /******/ // mode & 2: merge all properties of value into the ns
64
- /******/ // mode & 4: return value when already ns object
65
- /******/ // mode & 8|1: behave like require
66
- /******/ __webpack_require__.t = function(value, mode) {
67
- /******/ if(mode & 1) value = __webpack_require__(value);
68
- /******/ if(mode & 8) return value;
69
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
- /******/ var ns = Object.create(null);
71
- /******/ __webpack_require__.r(ns);
72
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
- /******/ return ns;
75
- /******/ };
76
- /******/
77
- /******/ // getDefaultExport function for compatibility with non-harmony modules
78
- /******/ __webpack_require__.n = function(module) {
79
- /******/ var getter = module && module.__esModule ?
80
- /******/ function getDefault() { return module['default']; } :
81
- /******/ function getModuleExports() { return module; };
82
- /******/ __webpack_require__.d(getter, 'a', getter);
83
- /******/ return getter;
84
- /******/ };
85
- /******/
86
- /******/ // Object.prototype.hasOwnProperty.call
87
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
- /******/
89
- /******/ // __webpack_public_path__
90
- /******/ __webpack_require__.p = "";
91
- /******/
92
- /******/
93
- /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = "fb15");
95
- /******/ })
96
- /************************************************************************/
97
- /******/ ({
98
-
99
- /***/ "0366":
100
- /***/ (function(module, exports, __webpack_require__) {
101
-
102
- var aFunction = __webpack_require__("1c0b");
103
-
104
- // optional / simple context binding
105
- module.exports = function (fn, that, length) {
106
- aFunction(fn);
107
- if (that === undefined) return fn;
108
- switch (length) {
109
- case 0: return function () {
110
- return fn.call(that);
111
- };
112
- case 1: return function (a) {
113
- return fn.call(that, a);
114
- };
115
- case 2: return function (a, b) {
116
- return fn.call(that, a, b);
117
- };
118
- case 3: return function (a, b, c) {
119
- return fn.call(that, a, b, c);
120
- };
121
- }
122
- return function (/* ...args */) {
123
- return fn.apply(that, arguments);
124
- };
125
- };
126
-
127
-
128
- /***/ }),
129
-
130
- /***/ "06cf":
131
- /***/ (function(module, exports, __webpack_require__) {
132
-
133
- var DESCRIPTORS = __webpack_require__("83ab");
134
- var propertyIsEnumerableModule = __webpack_require__("d1e7");
135
- var createPropertyDescriptor = __webpack_require__("5c6c");
136
- var toIndexedObject = __webpack_require__("fc6a");
137
- var toPrimitive = __webpack_require__("c04e");
138
- var has = __webpack_require__("5135");
139
- var IE8_DOM_DEFINE = __webpack_require__("0cfb");
140
-
141
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
142
-
143
- // `Object.getOwnPropertyDescriptor` method
144
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
145
- exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
146
- O = toIndexedObject(O);
147
- P = toPrimitive(P, true);
148
- if (IE8_DOM_DEFINE) try {
149
- return nativeGetOwnPropertyDescriptor(O, P);
150
- } catch (error) { /* empty */ }
151
- if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
152
- };
153
-
154
-
155
- /***/ }),
156
-
157
- /***/ "0cfb":
158
- /***/ (function(module, exports, __webpack_require__) {
159
-
160
- var DESCRIPTORS = __webpack_require__("83ab");
161
- var fails = __webpack_require__("d039");
162
- var createElement = __webpack_require__("cc12");
163
-
164
- // Thank's IE8 for his funny defineProperty
165
- module.exports = !DESCRIPTORS && !fails(function () {
166
- return Object.defineProperty(createElement('div'), 'a', {
167
- get: function () { return 7; }
168
- }).a != 7;
169
- });
170
-
171
-
172
- /***/ }),
173
-
174
- /***/ "1c0b":
175
- /***/ (function(module, exports) {
176
-
177
- module.exports = function (it) {
178
- if (typeof it != 'function') {
179
- throw TypeError(String(it) + ' is not a function');
180
- } return it;
181
- };
182
-
183
-
184
- /***/ }),
185
-
186
- /***/ "1d80":
187
- /***/ (function(module, exports) {
188
-
189
- // `RequireObjectCoercible` abstract operation
190
- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
191
- module.exports = function (it) {
192
- if (it == undefined) throw TypeError("Can't call method on " + it);
193
- return it;
194
- };
195
-
196
-
197
- /***/ }),
198
-
199
- /***/ "1dde":
200
- /***/ (function(module, exports, __webpack_require__) {
201
-
202
- var fails = __webpack_require__("d039");
203
- var wellKnownSymbol = __webpack_require__("b622");
204
- var V8_VERSION = __webpack_require__("2d00");
205
-
206
- var SPECIES = wellKnownSymbol('species');
207
-
208
- module.exports = function (METHOD_NAME) {
209
- // We can't use this feature detection in V8 since it causes
210
- // deoptimization and serious performance degradation
211
- // https://github.com/zloirock/core-js/issues/677
212
- return V8_VERSION >= 51 || !fails(function () {
213
- var array = [];
214
- var constructor = array.constructor = {};
215
- constructor[SPECIES] = function () {
216
- return { foo: 1 };
217
- };
218
- return array[METHOD_NAME](Boolean).foo !== 1;
219
- });
220
- };
221
-
222
-
223
- /***/ }),
224
-
225
- /***/ "23cb":
226
- /***/ (function(module, exports, __webpack_require__) {
227
-
228
- var toInteger = __webpack_require__("a691");
229
-
230
- var max = Math.max;
231
- var min = Math.min;
232
-
233
- // Helper for a popular repeating case of the spec:
234
- // Let integer be ? ToInteger(index).
235
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
236
- module.exports = function (index, length) {
237
- var integer = toInteger(index);
238
- return integer < 0 ? max(integer + length, 0) : min(integer, length);
239
- };
240
-
241
-
242
- /***/ }),
243
-
244
- /***/ "23e7":
245
- /***/ (function(module, exports, __webpack_require__) {
246
-
247
- var global = __webpack_require__("da84");
248
- var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
249
- var createNonEnumerableProperty = __webpack_require__("9112");
250
- var redefine = __webpack_require__("6eeb");
251
- var setGlobal = __webpack_require__("ce4e");
252
- var copyConstructorProperties = __webpack_require__("e893");
253
- var isForced = __webpack_require__("94ca");
254
-
255
- /*
256
- options.target - name of the target object
257
- options.global - target is the global object
258
- options.stat - export as static methods of target
259
- options.proto - export as prototype methods of target
260
- options.real - real prototype method for the `pure` version
261
- options.forced - export even if the native feature is available
262
- options.bind - bind methods to the target, required for the `pure` version
263
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
264
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
265
- options.sham - add a flag to not completely full polyfills
266
- options.enumerable - export as enumerable property
267
- options.noTargetGet - prevent calling a getter on target
268
- */
269
- module.exports = function (options, source) {
270
- var TARGET = options.target;
271
- var GLOBAL = options.global;
272
- var STATIC = options.stat;
273
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
274
- if (GLOBAL) {
275
- target = global;
276
- } else if (STATIC) {
277
- target = global[TARGET] || setGlobal(TARGET, {});
278
- } else {
279
- target = (global[TARGET] || {}).prototype;
280
- }
281
- if (target) for (key in source) {
282
- sourceProperty = source[key];
283
- if (options.noTargetGet) {
284
- descriptor = getOwnPropertyDescriptor(target, key);
285
- targetProperty = descriptor && descriptor.value;
286
- } else targetProperty = target[key];
287
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
288
- // contained in target
289
- if (!FORCED && targetProperty !== undefined) {
290
- if (typeof sourceProperty === typeof targetProperty) continue;
291
- copyConstructorProperties(sourceProperty, targetProperty);
292
- }
293
- // add a flag to not completely full polyfills
294
- if (options.sham || (targetProperty && targetProperty.sham)) {
295
- createNonEnumerableProperty(sourceProperty, 'sham', true);
296
- }
297
- // extend global
298
- redefine(target, key, sourceProperty, options);
299
- }
300
- };
301
-
302
-
303
- /***/ }),
304
-
305
- /***/ "241c":
306
- /***/ (function(module, exports, __webpack_require__) {
307
-
308
- var internalObjectKeys = __webpack_require__("ca84");
309
- var enumBugKeys = __webpack_require__("7839");
310
-
311
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
312
-
313
- // `Object.getOwnPropertyNames` method
314
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
315
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
316
- return internalObjectKeys(O, hiddenKeys);
317
- };
318
-
319
-
320
- /***/ }),
321
-
322
- /***/ "2d00":
323
- /***/ (function(module, exports, __webpack_require__) {
324
-
325
- var global = __webpack_require__("da84");
326
- var userAgent = __webpack_require__("342f");
327
-
328
- var process = global.process;
329
- var versions = process && process.versions;
330
- var v8 = versions && versions.v8;
331
- var match, version;
332
-
333
- if (v8) {
334
- match = v8.split('.');
335
- version = match[0] + match[1];
336
- } else if (userAgent) {
337
- match = userAgent.match(/Edge\/(\d+)/);
338
- if (!match || match[1] >= 74) {
339
- match = userAgent.match(/Chrome\/(\d+)/);
340
- if (match) version = match[1];
341
- }
342
- }
343
-
344
- module.exports = version && +version;
345
-
346
-
347
- /***/ }),
348
-
349
- /***/ "3058":
350
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
351
-
352
- "use strict";
353
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VueFireworks_vue_vue_type_style_index_0_id_ecf11cd6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("99ed");
354
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VueFireworks_vue_vue_type_style_index_0_id_ecf11cd6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VueFireworks_vue_vue_type_style_index_0_id_ecf11cd6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
355
- /* unused harmony reexport * */
356
- /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VueFireworks_vue_vue_type_style_index_0_id_ecf11cd6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
357
-
358
- /***/ }),
359
-
360
- /***/ "342f":
361
- /***/ (function(module, exports, __webpack_require__) {
362
-
363
- var getBuiltIn = __webpack_require__("d066");
364
-
365
- module.exports = getBuiltIn('navigator', 'userAgent') || '';
366
-
367
-
368
- /***/ }),
369
-
370
- /***/ "428f":
371
- /***/ (function(module, exports, __webpack_require__) {
372
-
373
- var global = __webpack_require__("da84");
374
-
375
- module.exports = global;
376
-
377
-
378
- /***/ }),
379
-
380
- /***/ "44ad":
381
- /***/ (function(module, exports, __webpack_require__) {
382
-
383
- var fails = __webpack_require__("d039");
384
- var classof = __webpack_require__("c6b6");
385
-
386
- var split = ''.split;
387
-
388
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
389
- module.exports = fails(function () {
390
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
391
- // eslint-disable-next-line no-prototype-builtins
392
- return !Object('z').propertyIsEnumerable(0);
393
- }) ? function (it) {
394
- return classof(it) == 'String' ? split.call(it, '') : Object(it);
395
- } : Object;
396
-
397
-
398
- /***/ }),
399
-
400
- /***/ "4930":
401
- /***/ (function(module, exports, __webpack_require__) {
402
-
403
- var fails = __webpack_require__("d039");
404
-
405
- module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
406
- // Chrome 38 Symbol has incorrect toString conversion
407
- // eslint-disable-next-line no-undef
408
- return !String(Symbol());
409
- });
410
-
411
-
412
- /***/ }),
413
-
414
- /***/ "4d64":
415
- /***/ (function(module, exports, __webpack_require__) {
416
-
417
- var toIndexedObject = __webpack_require__("fc6a");
418
- var toLength = __webpack_require__("50c4");
419
- var toAbsoluteIndex = __webpack_require__("23cb");
420
-
421
- // `Array.prototype.{ indexOf, includes }` methods implementation
422
- var createMethod = function (IS_INCLUDES) {
423
- return function ($this, el, fromIndex) {
424
- var O = toIndexedObject($this);
425
- var length = toLength(O.length);
426
- var index = toAbsoluteIndex(fromIndex, length);
427
- var value;
428
- // Array#includes uses SameValueZero equality algorithm
429
- // eslint-disable-next-line no-self-compare
430
- if (IS_INCLUDES && el != el) while (length > index) {
431
- value = O[index++];
432
- // eslint-disable-next-line no-self-compare
433
- if (value != value) return true;
434
- // Array#indexOf ignores holes, Array#includes - not
435
- } else for (;length > index; index++) {
436
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
437
- } return !IS_INCLUDES && -1;
438
- };
439
- };
440
-
441
- module.exports = {
442
- // `Array.prototype.includes` method
443
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
444
- includes: createMethod(true),
445
- // `Array.prototype.indexOf` method
446
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
447
- indexOf: createMethod(false)
448
- };
449
-
450
-
451
- /***/ }),
452
-
453
- /***/ "50c4":
454
- /***/ (function(module, exports, __webpack_require__) {
455
-
456
- var toInteger = __webpack_require__("a691");
457
-
458
- var min = Math.min;
459
-
460
- // `ToLength` abstract operation
461
- // https://tc39.github.io/ecma262/#sec-tolength
462
- module.exports = function (argument) {
463
- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
464
- };
465
-
466
-
467
- /***/ }),
468
-
469
- /***/ "5135":
470
- /***/ (function(module, exports) {
471
-
472
- var hasOwnProperty = {}.hasOwnProperty;
473
-
474
- module.exports = function (it, key) {
475
- return hasOwnProperty.call(it, key);
476
- };
477
-
478
-
479
- /***/ }),
480
-
481
- /***/ "5692":
482
- /***/ (function(module, exports, __webpack_require__) {
483
-
484
- var IS_PURE = __webpack_require__("c430");
485
- var store = __webpack_require__("c6cd");
486
-
487
- (module.exports = function (key, value) {
488
- return store[key] || (store[key] = value !== undefined ? value : {});
489
- })('versions', []).push({
490
- version: '3.6.5',
491
- mode: IS_PURE ? 'pure' : 'global',
492
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
493
- });
494
-
495
-
496
- /***/ }),
497
-
498
- /***/ "56ef":
499
- /***/ (function(module, exports, __webpack_require__) {
500
-
501
- var getBuiltIn = __webpack_require__("d066");
502
- var getOwnPropertyNamesModule = __webpack_require__("241c");
503
- var getOwnPropertySymbolsModule = __webpack_require__("7418");
504
- var anObject = __webpack_require__("825a");
505
-
506
- // all object keys, includes non-enumerable and symbols
507
- module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
508
- var keys = getOwnPropertyNamesModule.f(anObject(it));
509
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
510
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
511
- };
512
-
513
-
514
- /***/ }),
515
-
516
- /***/ "5c6c":
517
- /***/ (function(module, exports) {
518
-
519
- module.exports = function (bitmap, value) {
520
- return {
521
- enumerable: !(bitmap & 1),
522
- configurable: !(bitmap & 2),
523
- writable: !(bitmap & 4),
524
- value: value
525
- };
526
- };
527
-
528
-
529
- /***/ }),
530
-
531
- /***/ "65f0":
532
- /***/ (function(module, exports, __webpack_require__) {
533
-
534
- var isObject = __webpack_require__("861d");
535
- var isArray = __webpack_require__("e8b5");
536
- var wellKnownSymbol = __webpack_require__("b622");
537
-
538
- var SPECIES = wellKnownSymbol('species');
539
-
540
- // `ArraySpeciesCreate` abstract operation
541
- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
542
- module.exports = function (originalArray, length) {
543
- var C;
544
- if (isArray(originalArray)) {
545
- C = originalArray.constructor;
546
- // cross-realm fallback
547
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
548
- else if (isObject(C)) {
549
- C = C[SPECIES];
550
- if (C === null) C = undefined;
551
- }
552
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
553
- };
554
-
555
-
556
- /***/ }),
557
-
558
- /***/ "69f3":
559
- /***/ (function(module, exports, __webpack_require__) {
560
-
561
- var NATIVE_WEAK_MAP = __webpack_require__("7f9a");
562
- var global = __webpack_require__("da84");
563
- var isObject = __webpack_require__("861d");
564
- var createNonEnumerableProperty = __webpack_require__("9112");
565
- var objectHas = __webpack_require__("5135");
566
- var sharedKey = __webpack_require__("f772");
567
- var hiddenKeys = __webpack_require__("d012");
568
-
569
- var WeakMap = global.WeakMap;
570
- var set, get, has;
571
-
572
- var enforce = function (it) {
573
- return has(it) ? get(it) : set(it, {});
574
- };
575
-
576
- var getterFor = function (TYPE) {
577
- return function (it) {
578
- var state;
579
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
580
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
581
- } return state;
582
- };
583
- };
584
-
585
- if (NATIVE_WEAK_MAP) {
586
- var store = new WeakMap();
587
- var wmget = store.get;
588
- var wmhas = store.has;
589
- var wmset = store.set;
590
- set = function (it, metadata) {
591
- wmset.call(store, it, metadata);
592
- return metadata;
593
- };
594
- get = function (it) {
595
- return wmget.call(store, it) || {};
596
- };
597
- has = function (it) {
598
- return wmhas.call(store, it);
599
- };
600
- } else {
601
- var STATE = sharedKey('state');
602
- hiddenKeys[STATE] = true;
603
- set = function (it, metadata) {
604
- createNonEnumerableProperty(it, STATE, metadata);
605
- return metadata;
606
- };
607
- get = function (it) {
608
- return objectHas(it, STATE) ? it[STATE] : {};
609
- };
610
- has = function (it) {
611
- return objectHas(it, STATE);
612
- };
613
- }
614
-
615
- module.exports = {
616
- set: set,
617
- get: get,
618
- has: has,
619
- enforce: enforce,
620
- getterFor: getterFor
621
- };
622
-
623
-
624
- /***/ }),
625
-
626
- /***/ "6eeb":
627
- /***/ (function(module, exports, __webpack_require__) {
628
-
629
- var global = __webpack_require__("da84");
630
- var createNonEnumerableProperty = __webpack_require__("9112");
631
- var has = __webpack_require__("5135");
632
- var setGlobal = __webpack_require__("ce4e");
633
- var inspectSource = __webpack_require__("8925");
634
- var InternalStateModule = __webpack_require__("69f3");
635
-
636
- var getInternalState = InternalStateModule.get;
637
- var enforceInternalState = InternalStateModule.enforce;
638
- var TEMPLATE = String(String).split('String');
639
-
640
- (module.exports = function (O, key, value, options) {
641
- var unsafe = options ? !!options.unsafe : false;
642
- var simple = options ? !!options.enumerable : false;
643
- var noTargetGet = options ? !!options.noTargetGet : false;
644
- if (typeof value == 'function') {
645
- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
646
- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
647
- }
648
- if (O === global) {
649
- if (simple) O[key] = value;
650
- else setGlobal(key, value);
651
- return;
652
- } else if (!unsafe) {
653
- delete O[key];
654
- } else if (!noTargetGet && O[key]) {
655
- simple = true;
656
- }
657
- if (simple) O[key] = value;
658
- else createNonEnumerableProperty(O, key, value);
659
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
660
- })(Function.prototype, 'toString', function toString() {
661
- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
662
- });
663
-
664
-
665
- /***/ }),
666
-
667
- /***/ "7418":
668
- /***/ (function(module, exports) {
669
-
670
- exports.f = Object.getOwnPropertySymbols;
671
-
672
-
673
- /***/ }),
674
-
675
- /***/ "7839":
676
- /***/ (function(module, exports) {
677
-
678
- // IE8- don't enum bug keys
679
- module.exports = [
680
- 'constructor',
681
- 'hasOwnProperty',
682
- 'isPrototypeOf',
683
- 'propertyIsEnumerable',
684
- 'toLocaleString',
685
- 'toString',
686
- 'valueOf'
687
- ];
688
-
689
-
690
- /***/ }),
691
-
692
- /***/ "7b0b":
693
- /***/ (function(module, exports, __webpack_require__) {
694
-
695
- var requireObjectCoercible = __webpack_require__("1d80");
696
-
697
- // `ToObject` abstract operation
698
- // https://tc39.github.io/ecma262/#sec-toobject
699
- module.exports = function (argument) {
700
- return Object(requireObjectCoercible(argument));
701
- };
702
-
703
-
704
- /***/ }),
705
-
706
- /***/ "7f9a":
707
- /***/ (function(module, exports, __webpack_require__) {
708
-
709
- var global = __webpack_require__("da84");
710
- var inspectSource = __webpack_require__("8925");
711
-
712
- var WeakMap = global.WeakMap;
713
-
714
- module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
715
-
716
-
717
- /***/ }),
718
-
719
- /***/ "825a":
720
- /***/ (function(module, exports, __webpack_require__) {
721
-
722
- var isObject = __webpack_require__("861d");
723
-
724
- module.exports = function (it) {
725
- if (!isObject(it)) {
726
- throw TypeError(String(it) + ' is not an object');
727
- } return it;
728
- };
729
-
730
-
731
- /***/ }),
732
-
733
- /***/ "83ab":
734
- /***/ (function(module, exports, __webpack_require__) {
735
-
736
- var fails = __webpack_require__("d039");
737
-
738
- // Thank's IE8 for his funny defineProperty
739
- module.exports = !fails(function () {
740
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
741
- });
742
-
743
-
744
- /***/ }),
745
-
746
- /***/ "861d":
747
- /***/ (function(module, exports) {
748
-
749
- module.exports = function (it) {
750
- return typeof it === 'object' ? it !== null : typeof it === 'function';
751
- };
752
-
753
-
754
- /***/ }),
755
-
756
- /***/ "8875":
757
- /***/ (function(module, exports, __webpack_require__) {
758
-
759
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
760
- // MIT license
761
- // source: https://github.com/amiller-gh/currentScript-polyfill
762
-
763
- // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
764
-
765
- (function (root, factory) {
766
- if (true) {
767
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
768
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
769
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
770
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
771
- } else {}
772
- }(typeof self !== 'undefined' ? self : this, function () {
773
- function getCurrentScript () {
774
- var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
775
- // for chrome
776
- if (!descriptor && 'currentScript' in document && document.currentScript) {
777
- return document.currentScript
778
- }
779
-
780
- // for other browsers with native support for currentScript
781
- if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
782
- return document.currentScript
783
- }
784
-
785
- // IE 8-10 support script readyState
786
- // IE 11+ & Firefox support stack trace
787
- try {
788
- throw new Error();
789
- }
790
- catch (err) {
791
- // Find the second match for the "at" string to get file src url from stack.
792
- var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
793
- ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
794
- stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
795
- scriptLocation = (stackDetails && stackDetails[1]) || false,
796
- line = (stackDetails && stackDetails[2]) || false,
797
- currentLocation = document.location.href.replace(document.location.hash, ''),
798
- pageSource,
799
- inlineScriptSourceRegExp,
800
- inlineScriptSource,
801
- scripts = document.getElementsByTagName('script'); // Live NodeList collection
802
-
803
- if (scriptLocation === currentLocation) {
804
- pageSource = document.documentElement.outerHTML;
805
- inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
806
- inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
807
- }
808
-
809
- for (var i = 0; i < scripts.length; i++) {
810
- // If ready state is interactive, return the script tag
811
- if (scripts[i].readyState === 'interactive') {
812
- return scripts[i];
813
- }
814
-
815
- // If src matches, return the script tag
816
- if (scripts[i].src === scriptLocation) {
817
- return scripts[i];
818
- }
819
-
820
- // If inline source matches, return the script tag
821
- if (
822
- scriptLocation === currentLocation &&
823
- scripts[i].innerHTML &&
824
- scripts[i].innerHTML.trim() === inlineScriptSource
825
- ) {
826
- return scripts[i];
827
- }
828
- }
829
-
830
- // If no match, return null
831
- return null;
832
- }
833
- };
834
-
835
- return getCurrentScript
836
- }));
837
-
838
-
839
- /***/ }),
840
-
841
- /***/ "8925":
842
- /***/ (function(module, exports, __webpack_require__) {
843
-
844
- var store = __webpack_require__("c6cd");
845
-
846
- var functionToString = Function.toString;
847
-
848
- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
849
- if (typeof store.inspectSource != 'function') {
850
- store.inspectSource = function (it) {
851
- return functionToString.call(it);
852
- };
853
- }
854
-
855
- module.exports = store.inspectSource;
856
-
857
-
858
- /***/ }),
859
-
860
- /***/ "90e3":
861
- /***/ (function(module, exports) {
862
-
863
- var id = 0;
864
- var postfix = Math.random();
865
-
866
- module.exports = function (key) {
867
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
868
- };
869
-
870
-
871
- /***/ }),
872
-
873
- /***/ "9112":
874
- /***/ (function(module, exports, __webpack_require__) {
875
-
876
- var DESCRIPTORS = __webpack_require__("83ab");
877
- var definePropertyModule = __webpack_require__("9bf2");
878
- var createPropertyDescriptor = __webpack_require__("5c6c");
879
-
880
- module.exports = DESCRIPTORS ? function (object, key, value) {
881
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
882
- } : function (object, key, value) {
883
- object[key] = value;
884
- return object;
885
- };
886
-
887
-
888
- /***/ }),
889
-
890
- /***/ "94ca":
891
- /***/ (function(module, exports, __webpack_require__) {
892
-
893
- var fails = __webpack_require__("d039");
894
-
895
- var replacement = /#|\.prototype\./;
896
-
897
- var isForced = function (feature, detection) {
898
- var value = data[normalize(feature)];
899
- return value == POLYFILL ? true
900
- : value == NATIVE ? false
901
- : typeof detection == 'function' ? fails(detection)
902
- : !!detection;
903
- };
904
-
905
- var normalize = isForced.normalize = function (string) {
906
- return String(string).replace(replacement, '.').toLowerCase();
907
- };
908
-
909
- var data = isForced.data = {};
910
- var NATIVE = isForced.NATIVE = 'N';
911
- var POLYFILL = isForced.POLYFILL = 'P';
912
-
913
- module.exports = isForced;
914
-
915
-
916
- /***/ }),
917
-
918
- /***/ "99ed":
919
- /***/ (function(module, exports, __webpack_require__) {
920
-
921
- // extracted by mini-css-extract-plugin
922
-
923
- /***/ }),
924
-
925
- /***/ "9bf2":
926
- /***/ (function(module, exports, __webpack_require__) {
927
-
928
- var DESCRIPTORS = __webpack_require__("83ab");
929
- var IE8_DOM_DEFINE = __webpack_require__("0cfb");
930
- var anObject = __webpack_require__("825a");
931
- var toPrimitive = __webpack_require__("c04e");
932
-
933
- var nativeDefineProperty = Object.defineProperty;
934
-
935
- // `Object.defineProperty` method
936
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
937
- exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
938
- anObject(O);
939
- P = toPrimitive(P, true);
940
- anObject(Attributes);
941
- if (IE8_DOM_DEFINE) try {
942
- return nativeDefineProperty(O, P, Attributes);
943
- } catch (error) { /* empty */ }
944
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
945
- if ('value' in Attributes) O[P] = Attributes.value;
946
- return O;
947
- };
948
-
949
-
950
- /***/ }),
951
-
952
- /***/ "a691":
953
- /***/ (function(module, exports) {
954
-
955
- var ceil = Math.ceil;
956
- var floor = Math.floor;
957
-
958
- // `ToInteger` abstract operation
959
- // https://tc39.github.io/ecma262/#sec-tointeger
960
- module.exports = function (argument) {
961
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
962
- };
963
-
964
-
965
- /***/ }),
966
-
967
- /***/ "ae40":
968
- /***/ (function(module, exports, __webpack_require__) {
969
-
970
- var DESCRIPTORS = __webpack_require__("83ab");
971
- var fails = __webpack_require__("d039");
972
- var has = __webpack_require__("5135");
973
-
974
- var defineProperty = Object.defineProperty;
975
- var cache = {};
976
-
977
- var thrower = function (it) { throw it; };
978
-
979
- module.exports = function (METHOD_NAME, options) {
980
- if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
981
- if (!options) options = {};
982
- var method = [][METHOD_NAME];
983
- var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
984
- var argument0 = has(options, 0) ? options[0] : thrower;
985
- var argument1 = has(options, 1) ? options[1] : undefined;
986
-
987
- return cache[METHOD_NAME] = !!method && !fails(function () {
988
- if (ACCESSORS && !DESCRIPTORS) return true;
989
- var O = { length: -1 };
990
-
991
- if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
992
- else O[1] = 1;
993
-
994
- method.call(O, argument0, argument1);
995
- });
996
- };
997
-
998
-
999
- /***/ }),
1000
-
1001
- /***/ "b622":
1002
- /***/ (function(module, exports, __webpack_require__) {
1003
-
1004
- var global = __webpack_require__("da84");
1005
- var shared = __webpack_require__("5692");
1006
- var has = __webpack_require__("5135");
1007
- var uid = __webpack_require__("90e3");
1008
- var NATIVE_SYMBOL = __webpack_require__("4930");
1009
- var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
1010
-
1011
- var WellKnownSymbolsStore = shared('wks');
1012
- var Symbol = global.Symbol;
1013
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
1014
-
1015
- module.exports = function (name) {
1016
- if (!has(WellKnownSymbolsStore, name)) {
1017
- if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];
1018
- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
1019
- } return WellKnownSymbolsStore[name];
1020
- };
1021
-
1022
-
1023
- /***/ }),
1024
-
1025
- /***/ "b727":
1026
- /***/ (function(module, exports, __webpack_require__) {
1027
-
1028
- var bind = __webpack_require__("0366");
1029
- var IndexedObject = __webpack_require__("44ad");
1030
- var toObject = __webpack_require__("7b0b");
1031
- var toLength = __webpack_require__("50c4");
1032
- var arraySpeciesCreate = __webpack_require__("65f0");
1033
-
1034
- var push = [].push;
1035
-
1036
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
1037
- var createMethod = function (TYPE) {
1038
- var IS_MAP = TYPE == 1;
1039
- var IS_FILTER = TYPE == 2;
1040
- var IS_SOME = TYPE == 3;
1041
- var IS_EVERY = TYPE == 4;
1042
- var IS_FIND_INDEX = TYPE == 6;
1043
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1044
- return function ($this, callbackfn, that, specificCreate) {
1045
- var O = toObject($this);
1046
- var self = IndexedObject(O);
1047
- var boundFunction = bind(callbackfn, that, 3);
1048
- var length = toLength(self.length);
1049
- var index = 0;
1050
- var create = specificCreate || arraySpeciesCreate;
1051
- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
1052
- var value, result;
1053
- for (;length > index; index++) if (NO_HOLES || index in self) {
1054
- value = self[index];
1055
- result = boundFunction(value, index, O);
1056
- if (TYPE) {
1057
- if (IS_MAP) target[index] = result; // map
1058
- else if (result) switch (TYPE) {
1059
- case 3: return true; // some
1060
- case 5: return value; // find
1061
- case 6: return index; // findIndex
1062
- case 2: push.call(target, value); // filter
1063
- } else if (IS_EVERY) return false; // every
1064
- }
1065
- }
1066
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1067
- };
1068
- };
1069
-
1070
- module.exports = {
1071
- // `Array.prototype.forEach` method
1072
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
1073
- forEach: createMethod(0),
1074
- // `Array.prototype.map` method
1075
- // https://tc39.github.io/ecma262/#sec-array.prototype.map
1076
- map: createMethod(1),
1077
- // `Array.prototype.filter` method
1078
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
1079
- filter: createMethod(2),
1080
- // `Array.prototype.some` method
1081
- // https://tc39.github.io/ecma262/#sec-array.prototype.some
1082
- some: createMethod(3),
1083
- // `Array.prototype.every` method
1084
- // https://tc39.github.io/ecma262/#sec-array.prototype.every
1085
- every: createMethod(4),
1086
- // `Array.prototype.find` method
1087
- // https://tc39.github.io/ecma262/#sec-array.prototype.find
1088
- find: createMethod(5),
1089
- // `Array.prototype.findIndex` method
1090
- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
1091
- findIndex: createMethod(6)
1092
- };
1093
-
1094
-
1095
- /***/ }),
1096
-
1097
- /***/ "c04e":
1098
- /***/ (function(module, exports, __webpack_require__) {
1099
-
1100
- var isObject = __webpack_require__("861d");
1101
-
1102
- // `ToPrimitive` abstract operation
1103
- // https://tc39.github.io/ecma262/#sec-toprimitive
1104
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
1105
- // and the second argument - flag - preferred type is a string
1106
- module.exports = function (input, PREFERRED_STRING) {
1107
- if (!isObject(input)) return input;
1108
- var fn, val;
1109
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
1110
- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
1111
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
1112
- throw TypeError("Can't convert object to primitive value");
1113
- };
1114
-
1115
-
1116
- /***/ }),
1117
-
1118
- /***/ "c430":
1119
- /***/ (function(module, exports) {
1120
-
1121
- module.exports = false;
1122
-
1123
-
1124
- /***/ }),
1125
-
1126
- /***/ "c6b6":
1127
- /***/ (function(module, exports) {
1128
-
1129
- var toString = {}.toString;
1130
-
1131
- module.exports = function (it) {
1132
- return toString.call(it).slice(8, -1);
1133
- };
1134
-
1135
-
1136
- /***/ }),
1137
-
1138
- /***/ "c6cd":
1139
- /***/ (function(module, exports, __webpack_require__) {
1140
-
1141
- var global = __webpack_require__("da84");
1142
- var setGlobal = __webpack_require__("ce4e");
1143
-
1144
- var SHARED = '__core-js_shared__';
1145
- var store = global[SHARED] || setGlobal(SHARED, {});
1146
-
1147
- module.exports = store;
1148
-
1149
-
1150
- /***/ }),
1151
-
1152
- /***/ "c8ba":
1153
- /***/ (function(module, exports) {
1154
-
1155
- var g;
1156
-
1157
- // This works in non-strict mode
1158
- g = (function() {
1159
- return this;
1160
- })();
1161
-
1162
- try {
1163
- // This works if eval is allowed (see CSP)
1164
- g = g || new Function("return this")();
1165
- } catch (e) {
1166
- // This works if the window reference is available
1167
- if (typeof window === "object") g = window;
1168
- }
1169
-
1170
- // g can still be undefined, but nothing to do about it...
1171
- // We return undefined, instead of nothing here, so it's
1172
- // easier to handle this case. if(!global) { ...}
1173
-
1174
- module.exports = g;
1175
-
1176
-
1177
- /***/ }),
1178
-
1179
- /***/ "ca84":
1180
- /***/ (function(module, exports, __webpack_require__) {
1181
-
1182
- var has = __webpack_require__("5135");
1183
- var toIndexedObject = __webpack_require__("fc6a");
1184
- var indexOf = __webpack_require__("4d64").indexOf;
1185
- var hiddenKeys = __webpack_require__("d012");
1186
-
1187
- module.exports = function (object, names) {
1188
- var O = toIndexedObject(object);
1189
- var i = 0;
1190
- var result = [];
1191
- var key;
1192
- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
1193
- // Don't enum bug & hidden keys
1194
- while (names.length > i) if (has(O, key = names[i++])) {
1195
- ~indexOf(result, key) || result.push(key);
1196
- }
1197
- return result;
1198
- };
1199
-
1200
-
1201
- /***/ }),
1202
-
1203
- /***/ "cc12":
1204
- /***/ (function(module, exports, __webpack_require__) {
1205
-
1206
- var global = __webpack_require__("da84");
1207
- var isObject = __webpack_require__("861d");
1208
-
1209
- var document = global.document;
1210
- // typeof document.createElement is 'object' in old IE
1211
- var EXISTS = isObject(document) && isObject(document.createElement);
1212
-
1213
- module.exports = function (it) {
1214
- return EXISTS ? document.createElement(it) : {};
1215
- };
1216
-
1217
-
1218
- /***/ }),
1219
-
1220
- /***/ "ce4e":
1221
- /***/ (function(module, exports, __webpack_require__) {
1222
-
1223
- var global = __webpack_require__("da84");
1224
- var createNonEnumerableProperty = __webpack_require__("9112");
1225
-
1226
- module.exports = function (key, value) {
1227
- try {
1228
- createNonEnumerableProperty(global, key, value);
1229
- } catch (error) {
1230
- global[key] = value;
1231
- } return value;
1232
- };
1233
-
1234
-
1235
- /***/ }),
1236
-
1237
- /***/ "d012":
1238
- /***/ (function(module, exports) {
1239
-
1240
- module.exports = {};
1241
-
1242
-
1243
- /***/ }),
1244
-
1245
- /***/ "d039":
1246
- /***/ (function(module, exports) {
1247
-
1248
- module.exports = function (exec) {
1249
- try {
1250
- return !!exec();
1251
- } catch (error) {
1252
- return true;
1253
- }
1254
- };
1255
-
1256
-
1257
- /***/ }),
1258
-
1259
- /***/ "d066":
1260
- /***/ (function(module, exports, __webpack_require__) {
1261
-
1262
- var path = __webpack_require__("428f");
1263
- var global = __webpack_require__("da84");
1264
-
1265
- var aFunction = function (variable) {
1266
- return typeof variable == 'function' ? variable : undefined;
1267
- };
1268
-
1269
- module.exports = function (namespace, method) {
1270
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
1271
- : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
1272
- };
1273
-
1274
-
1275
- /***/ }),
1276
-
1277
- /***/ "d1e7":
1278
- /***/ (function(module, exports, __webpack_require__) {
1279
-
1280
- "use strict";
1281
-
1282
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
1283
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1284
-
1285
- // Nashorn ~ JDK8 bug
1286
- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
1287
-
1288
- // `Object.prototype.propertyIsEnumerable` method implementation
1289
- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
1290
- exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
1291
- var descriptor = getOwnPropertyDescriptor(this, V);
1292
- return !!descriptor && descriptor.enumerable;
1293
- } : nativePropertyIsEnumerable;
1294
-
1295
-
1296
- /***/ }),
1297
-
1298
- /***/ "d81d":
1299
- /***/ (function(module, exports, __webpack_require__) {
1300
-
1301
- "use strict";
1302
-
1303
- var $ = __webpack_require__("23e7");
1304
- var $map = __webpack_require__("b727").map;
1305
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
1306
- var arrayMethodUsesToLength = __webpack_require__("ae40");
1307
-
1308
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
1309
- // FF49- issue
1310
- var USES_TO_LENGTH = arrayMethodUsesToLength('map');
1311
-
1312
- // `Array.prototype.map` method
1313
- // https://tc39.github.io/ecma262/#sec-array.prototype.map
1314
- // with adding support of @@species
1315
- $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
1316
- map: function map(callbackfn /* , thisArg */) {
1317
- return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1318
- }
1319
- });
1320
-
1321
-
1322
- /***/ }),
1323
-
1324
- /***/ "da84":
1325
- /***/ (function(module, exports, __webpack_require__) {
1326
-
1327
- /* WEBPACK VAR INJECTION */(function(global) {var check = function (it) {
1328
- return it && it.Math == Math && it;
1329
- };
1330
-
1331
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1332
- module.exports =
1333
- // eslint-disable-next-line no-undef
1334
- check(typeof globalThis == 'object' && globalThis) ||
1335
- check(typeof window == 'object' && window) ||
1336
- check(typeof self == 'object' && self) ||
1337
- check(typeof global == 'object' && global) ||
1338
- // eslint-disable-next-line no-new-func
1339
- Function('return this')();
1340
-
1341
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
1342
-
1343
- /***/ }),
1344
-
1345
- /***/ "e893":
1346
- /***/ (function(module, exports, __webpack_require__) {
1347
-
1348
- var has = __webpack_require__("5135");
1349
- var ownKeys = __webpack_require__("56ef");
1350
- var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
1351
- var definePropertyModule = __webpack_require__("9bf2");
1352
-
1353
- module.exports = function (target, source) {
1354
- var keys = ownKeys(source);
1355
- var defineProperty = definePropertyModule.f;
1356
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1357
- for (var i = 0; i < keys.length; i++) {
1358
- var key = keys[i];
1359
- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1360
- }
1361
- };
1362
-
1363
-
1364
- /***/ }),
1365
-
1366
- /***/ "e8b5":
1367
- /***/ (function(module, exports, __webpack_require__) {
1368
-
1369
- var classof = __webpack_require__("c6b6");
1370
-
1371
- // `IsArray` abstract operation
1372
- // https://tc39.github.io/ecma262/#sec-isarray
1373
- module.exports = Array.isArray || function isArray(arg) {
1374
- return classof(arg) == 'Array';
1375
- };
1376
-
1377
-
1378
- /***/ }),
1379
-
1380
- /***/ "f772":
1381
- /***/ (function(module, exports, __webpack_require__) {
1382
-
1383
- var shared = __webpack_require__("5692");
1384
- var uid = __webpack_require__("90e3");
1385
-
1386
- var keys = shared('keys');
1387
-
1388
- module.exports = function (key) {
1389
- return keys[key] || (keys[key] = uid(key));
1390
- };
1391
-
1392
-
1393
- /***/ }),
1394
-
1395
- /***/ "fb15":
1396
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1397
-
1398
- "use strict";
1399
- // ESM COMPAT FLAG
1400
- __webpack_require__.r(__webpack_exports__);
1401
-
1402
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
1403
- // This file is imported into lib/wc client bundles.
1404
-
1405
- if (typeof window !== 'undefined') {
1406
- var currentScript = window.document.currentScript
1407
- if (true) {
1408
- var getCurrentScript = __webpack_require__("8875")
1409
- currentScript = getCurrentScript()
1410
-
1411
- // for backward compatibility, because previously we directly included the polyfill
1412
- if (!('currentScript' in document)) {
1413
- Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
1414
- }
1415
- }
1416
-
1417
- var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
1418
- if (src) {
1419
- __webpack_require__.p = src[1] // eslint-disable-line
1420
- }
1421
- }
1422
-
1423
- // Indicate to webpack that this file can be concatenated
1424
- /* harmony default export */ var setPublicPath = (null);
1425
-
1426
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2477d261-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VueFireworks.vue?vue&type=template&id=ecf11cd6&scoped=true&
1427
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"fireworks-container"},[_c('canvas',{ref:"fireworksCanvas",staticClass:"margin-lr-auto"})])}
1428
- var staticRenderFns = []
1429
-
1430
-
1431
- // CONCATENATED MODULE: ./src/components/VueFireworks.vue?vue&type=template&id=ecf11cd6&scoped=true&
1432
-
1433
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
1434
- var es_array_map = __webpack_require__("d81d");
1435
-
1436
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VueFireworks.vue?vue&type=script&lang=js&
1437
-
1438
- //
1439
- //
1440
- //
1441
- //
1442
- //
1443
- //
1444
- //
1445
- //
1446
- //
1447
- //
1448
- //
1449
- //
1450
- //
1451
- /* harmony default export */ var VueFireworksvue_type_script_lang_js_ = ({
1452
- name: 'Fireworks',
1453
- props: {
1454
- show: {
1455
- // 礼花组件状态,需要.sync修饰符
1456
- type: Boolean,
1457
- default: true
1458
- }
1459
- },
1460
- data: function data() {
1461
- return {
1462
- canvasDom: null,
1463
- // canvas dom对象
1464
- canvasCtx: null,
1465
- // 2d 渲染上下文
1466
- canvasDomWidth: this.getdocumentWidth(),
1467
- canvasDomHeight: this.getdocumentHeight(),
1468
- drawStartHeight: 150,
1469
- // 动画移动起始高度
1470
- fireworksNumber: 60,
1471
- // 渲染的礼花数
1472
- fireworksEndNumber: 0,
1473
- // 已移出屏幕礼花数
1474
- fireworksColor: ['#FF8201', '#2DA6E0', '#FF262B'],
1475
- // 礼花颜色
1476
- fireworksData: [],
1477
- // 保存渲染中每片礼花数据
1478
- positionStartRange: 20 // 礼花起始随机范围
1479
-
1480
- };
1481
- },
1482
- mounted: function mounted() {
1483
- this.initFireworks();
1484
- },
1485
- watch: {
1486
- show: function show(val) {
1487
- var _this = this;
1488
-
1489
- if (val === true && this.canvasCtx) {
1490
- this.setFireworksData();
1491
- this.$nextTick(function () {
1492
- _this.drawFireworks();
1493
- });
1494
- }
1495
- }
1496
- },
1497
- methods: {
1498
- initFireworks: function initFireworks() {
1499
- // 初始化canvas
1500
- this.canvasDom = this.$refs.fireworksCanvas;
1501
-
1502
- if (this.canvasDom.getContext) {
1503
- // 设置canvas全屏
1504
- this.canvasDom.width = this.canvasDomWidth;
1505
- this.canvasDom.height = this.canvasDomHeight; // 获得2d 渲染上下文对象
1506
-
1507
- this.canvasCtx = this.canvasDom.getContext('2d');
1508
- } else {
1509
- // 关闭组件
1510
- this.restFireworks();
1511
- }
1512
- },
1513
- setFireworksData: function setFireworksData() {
1514
- // 生成礼花数据
1515
- for (var i = 0; i < this.fireworksNumber; i++) {
1516
- this.fireworksData.push({
1517
- color: this.randomColor(),
1518
- // 礼花颜色
1519
- speedX: this.randomSpeed('x'),
1520
- speedY: this.randomSpeed('y'),
1521
- positionX: this.randomPositionStart(),
1522
- positionY: this.randomPositionStart(),
1523
- speedCurveY: this.randomNumber(3),
1524
- // y轴速度曲线
1525
- accelerate: this.randomNumber(4) // 加速度
1526
-
1527
- });
1528
- }
1529
- },
1530
- drawFireworks: function drawFireworks() {
1531
- var _this2 = this;
1532
-
1533
- // 绘制礼花函数
1534
- var ctx = this.canvasCtx; // 清除画布
1535
-
1536
- ctx.clearRect(0, 0, this.canvasDomWidth, this.canvasDomHeight); // 保存画布
1537
-
1538
- ctx.save(); // 设置动画起始点
1539
-
1540
- ctx.translate(this.canvasDomWidth / 2, this.drawStartHeight); // 遍历生成礼花
1541
-
1542
- this.fireworksData = this.fireworksData.map(function (item) {
1543
- var color = item.color,
1544
- speedX = item.speedX,
1545
- speedY = item.speedY,
1546
- positionX = item.positionX,
1547
- positionY = item.positionY,
1548
- speedCurveY = item.speedCurveY,
1549
- isMoveEnd = item.isMoveEnd,
1550
- accelerate = item.accelerate;
1551
-
1552
- if (isMoveEnd) {
1553
- // 已经标记移出渲染区域不做处理
1554
- return item;
1555
- } else if (Math.abs(positionX) > Math.abs(_this2.canvasDomWidth / 2) || positionY > _this2.canvasDomHeight - _this2.drawStartHeight) {
1556
- // 超出屏幕item不渲染,标记
1557
- _this2.fireworksEndNumber += 1; // 记录超出屏幕的数量
1558
-
1559
- item.isMoveEnd = true; // 标记
1560
-
1561
- return item;
1562
- }
1563
-
1564
- ctx.fillStyle = color; // 设置颜色
1565
-
1566
- ctx.fillRect(positionX, positionY, 4, 8); // 设置大小位置
1567
- // 计算下一帧移动路径
1568
-
1569
- item.accelerate = accelerate > 0 ? accelerate - 0.05 : 0; // 礼花初始爆炸速度快,然后逐渐减慢
1570
-
1571
- item.speedCurveY = speedCurveY + 0.15; // 模拟向上弹起然后下坠
1572
- // 横向移动距离速度逐渐衰减
1573
-
1574
- if (speedX > 2.5) {
1575
- item.speedX -= 0.01;
1576
- } else if (speedX < -2.5) {
1577
- item.speedX += 0.01;
1578
- }
1579
-
1580
- item.positionX = positionX += speedX + (accelerate * speedX > 0 ? 1 : -1); // y轴有一个初始爆炸加速度,一个自由落体加速度
1581
-
1582
- if (speedY + speedCurveY < 0) accelerate = accelerate * -1; // 初始爆炸加速度
1583
-
1584
- item.positionY = positionY += speedY + speedCurveY + accelerate;
1585
- return item;
1586
- }); // 还原上一次画布
1587
-
1588
- ctx.restore();
1589
-
1590
- if (this.fireworksEndNumber < this.fireworksNumber) {
1591
- // 逐帧渲染
1592
- if (window.requestAnimationFrame) {
1593
- requestAnimationFrame(this.drawFireworks);
1594
- } else {
1595
- setTimeout(function () {
1596
- _this2.drawFireworks();
1597
- }, 16);
1598
- }
1599
- } else {
1600
- // 所有礼花移出屏幕后停止绘制
1601
- ctx.clearRect(0, 0, this.canvasDomWidth, this.canvasDomHeight); // 移除礼花组件
1602
-
1603
- this.restFireworks();
1604
- }
1605
- },
1606
- restFireworks: function restFireworks() {
1607
- // 还原组件
1608
- this.fireworksEndNumber = 0;
1609
- this.fireworksData = [];
1610
- this.$emit('update:show', false);
1611
- },
1612
- getdocumentWidth: function getdocumentWidth() {
1613
- return document.documentElement.clientWidth || document.body.clientWidth;
1614
- },
1615
- getdocumentHeight: function getdocumentHeight() {
1616
- var height = document.documentElement.clientHeight || document.body.clientHeight;
1617
- return parseInt(height * 0.6);
1618
- },
1619
- randomNumber: function randomNumber() {
1620
- var num = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2;
1621
- return Math.floor(Math.random() * num);
1622
- },
1623
- randomColor: function randomColor() {
1624
- // 随机选取颜色
1625
- var num = this.randomNumber(this.fireworksColor.length);
1626
- return this.fireworksColor[num];
1627
- },
1628
- randomPositionStart: function randomPositionStart() {
1629
- // 小范围随机起始位置
1630
- var plusMinus = this.randomNumber() === 0 ? 1 : -1; // 随机正反方向
1631
-
1632
- return Math.floor(this.positionStartRange * Math.random() * plusMinus);
1633
- },
1634
- randomSpeed: function randomSpeed(type) {
1635
- // 随机移动速度
1636
- var threshold = type === 'x' ? 4 : 6;
1637
- var plusMinus = type === 'y' ? -1 : this.randomNumber() === 0 ? -1 : 1; // 随机正反方向
1638
-
1639
- return plusMinus * Math.floor(Math.random() * threshold + 1);
1640
- }
1641
- }
1642
- });
1643
- // CONCATENATED MODULE: ./src/components/VueFireworks.vue?vue&type=script&lang=js&
1644
- /* harmony default export */ var components_VueFireworksvue_type_script_lang_js_ = (VueFireworksvue_type_script_lang_js_);
1645
- // EXTERNAL MODULE: ./src/components/VueFireworks.vue?vue&type=style&index=0&id=ecf11cd6&lang=scss&scoped=true&
1646
- var VueFireworksvue_type_style_index_0_id_ecf11cd6_lang_scss_scoped_true_ = __webpack_require__("3058");
1647
-
1648
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1649
- /* globals __VUE_SSR_CONTEXT__ */
1650
-
1651
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1652
- // This module is a runtime utility for cleaner component module output and will
1653
- // be included in the final webpack user bundle.
1654
-
1655
- function normalizeComponent (
1656
- scriptExports,
1657
- render,
1658
- staticRenderFns,
1659
- functionalTemplate,
1660
- injectStyles,
1661
- scopeId,
1662
- moduleIdentifier, /* server only */
1663
- shadowMode /* vue-cli only */
1664
- ) {
1665
- // Vue.extend constructor export interop
1666
- var options = typeof scriptExports === 'function'
1667
- ? scriptExports.options
1668
- : scriptExports
1669
-
1670
- // render functions
1671
- if (render) {
1672
- options.render = render
1673
- options.staticRenderFns = staticRenderFns
1674
- options._compiled = true
1675
- }
1676
-
1677
- // functional template
1678
- if (functionalTemplate) {
1679
- options.functional = true
1680
- }
1681
-
1682
- // scopedId
1683
- if (scopeId) {
1684
- options._scopeId = 'data-v-' + scopeId
1685
- }
1686
-
1687
- var hook
1688
- if (moduleIdentifier) { // server build
1689
- hook = function (context) {
1690
- // 2.3 injection
1691
- context =
1692
- context || // cached call
1693
- (this.$vnode && this.$vnode.ssrContext) || // stateful
1694
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1695
- // 2.2 with runInNewContext: true
1696
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1697
- context = __VUE_SSR_CONTEXT__
1698
- }
1699
- // inject component styles
1700
- if (injectStyles) {
1701
- injectStyles.call(this, context)
1702
- }
1703
- // register component module identifier for async chunk inferrence
1704
- if (context && context._registeredComponents) {
1705
- context._registeredComponents.add(moduleIdentifier)
1706
- }
1707
- }
1708
- // used by ssr in case component is cached and beforeCreate
1709
- // never gets called
1710
- options._ssrRegister = hook
1711
- } else if (injectStyles) {
1712
- hook = shadowMode
1713
- ? function () {
1714
- injectStyles.call(
1715
- this,
1716
- (options.functional ? this.parent : this).$root.$options.shadowRoot
1717
- )
1718
- }
1719
- : injectStyles
1720
- }
1721
-
1722
- if (hook) {
1723
- if (options.functional) {
1724
- // for template-only hot-reload because in that case the render fn doesn't
1725
- // go through the normalizer
1726
- options._injectStyles = hook
1727
- // register for functional component in vue file
1728
- var originalRender = options.render
1729
- options.render = function renderWithStyleInjection (h, context) {
1730
- hook.call(context)
1731
- return originalRender(h, context)
1732
- }
1733
- } else {
1734
- // inject component registration as beforeCreate hook
1735
- var existing = options.beforeCreate
1736
- options.beforeCreate = existing
1737
- ? [].concat(existing, hook)
1738
- : [hook]
1739
- }
1740
- }
1741
-
1742
- return {
1743
- exports: scriptExports,
1744
- options: options
1745
- }
1746
- }
1747
-
1748
- // CONCATENATED MODULE: ./src/components/VueFireworks.vue
1749
-
1750
-
1751
-
1752
-
1753
-
1754
-
1755
- /* normalize component */
1756
-
1757
- var component = normalizeComponent(
1758
- components_VueFireworksvue_type_script_lang_js_,
1759
- render,
1760
- staticRenderFns,
1761
- false,
1762
- null,
1763
- "ecf11cd6",
1764
- null
1765
-
1766
- )
1767
-
1768
- /* harmony default export */ var VueFireworks = (component.exports);
1769
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
1770
-
1771
-
1772
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (VueFireworks);
1773
-
1774
-
1775
-
1776
- /***/ }),
1777
-
1778
- /***/ "fc6a":
1779
- /***/ (function(module, exports, __webpack_require__) {
1780
-
1781
- // toObject with fallback for non-array-like ES3 strings
1782
- var IndexedObject = __webpack_require__("44ad");
1783
- var requireObjectCoercible = __webpack_require__("1d80");
1784
-
1785
- module.exports = function (it) {
1786
- return IndexedObject(requireObjectCoercible(it));
1787
- };
1788
-
1789
-
1790
- /***/ }),
1791
-
1792
- /***/ "fdbf":
1793
- /***/ (function(module, exports, __webpack_require__) {
1794
-
1795
- var NATIVE_SYMBOL = __webpack_require__("4930");
1796
-
1797
- module.exports = NATIVE_SYMBOL
1798
- // eslint-disable-next-line no-undef
1799
- && !Symbol.sham
1800
- // eslint-disable-next-line no-undef
1801
- && typeof Symbol.iterator == 'symbol';
1802
-
1803
-
1804
- /***/ })
1805
-
1806
- /******/ })["default"];
1807
- });
1808
- //# sourceMappingURL=vueFireworks.umd.js.map