1 | module.exports =
|
2 | (function(modules) {
|
3 |
|
4 | var installedModules = {};
|
5 |
|
6 |
|
7 | function __webpack_require__(moduleId) {
|
8 |
|
9 |
|
10 | if(installedModules[moduleId]) {
|
11 | return installedModules[moduleId].exports;
|
12 | }
|
13 |
|
14 | var module = installedModules[moduleId] = {
|
15 | i: moduleId,
|
16 | l: false,
|
17 | exports: {}
|
18 | };
|
19 |
|
20 |
|
21 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
22 |
|
23 |
|
24 | module.l = true;
|
25 |
|
26 |
|
27 | return module.exports;
|
28 | }
|
29 |
|
30 |
|
31 |
|
32 | __webpack_require__.m = modules;
|
33 |
|
34 |
|
35 | __webpack_require__.c = installedModules;
|
36 |
|
37 |
|
38 | __webpack_require__.d = function(exports, name, getter) {
|
39 | if(!__webpack_require__.o(exports, name)) {
|
40 | Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
41 | }
|
42 | };
|
43 |
|
44 |
|
45 | __webpack_require__.r = function(exports) {
|
46 | if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
47 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
48 | }
|
49 | Object.defineProperty(exports, '__esModule', { value: true });
|
50 | };
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | __webpack_require__.t = function(value, mode) {
|
58 | if(mode & 1) value = __webpack_require__(value);
|
59 | if(mode & 8) return value;
|
60 | if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
61 | var ns = Object.create(null);
|
62 | __webpack_require__.r(ns);
|
63 | Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
64 | if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
65 | return ns;
|
66 | };
|
67 |
|
68 |
|
69 | __webpack_require__.n = function(module) {
|
70 | var getter = module && module.__esModule ?
|
71 | function getDefault() { return module['default']; } :
|
72 | function getModuleExports() { return module; };
|
73 | __webpack_require__.d(getter, 'a', getter);
|
74 | return getter;
|
75 | };
|
76 |
|
77 |
|
78 | __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
79 |
|
80 |
|
81 | __webpack_require__.p = "";
|
82 |
|
83 |
|
84 |
|
85 | return __webpack_require__(__webpack_require__.s = "fb15");
|
86 | })
|
87 |
|
88 | ({
|
89 |
|
90 | "00ee":
|
91 | (function(module, exports, __webpack_require__) {
|
92 |
|
93 | var wellKnownSymbol = __webpack_require__("b622");
|
94 |
|
95 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
96 | var test = {};
|
97 |
|
98 | test[TO_STRING_TAG] = 'z';
|
99 |
|
100 | module.exports = String(test) === '[object z]';
|
101 |
|
102 |
|
103 | }),
|
104 |
|
105 | "0366":
|
106 | (function(module, exports, __webpack_require__) {
|
107 |
|
108 | var aFunction = __webpack_require__("1c0b");
|
109 |
|
110 |
|
111 | module.exports = function (fn, that, length) {
|
112 | aFunction(fn);
|
113 | if (that === undefined) return fn;
|
114 | switch (length) {
|
115 | case 0: return function () {
|
116 | return fn.call(that);
|
117 | };
|
118 | case 1: return function (a) {
|
119 | return fn.call(that, a);
|
120 | };
|
121 | case 2: return function (a, b) {
|
122 | return fn.call(that, a, b);
|
123 | };
|
124 | case 3: return function (a, b, c) {
|
125 | return fn.call(that, a, b, c);
|
126 | };
|
127 | }
|
128 | return function (/* ...args */) {
|
129 | return fn.apply(that, arguments);
|
130 | };
|
131 | };
|
132 |
|
133 |
|
134 | }),
|
135 |
|
136 | "0538":
|
137 | (function(module, exports, __webpack_require__) {
|
138 |
|
139 | "use strict";
|
140 |
|
141 | var aFunction = __webpack_require__("1c0b");
|
142 | var isObject = __webpack_require__("861d");
|
143 |
|
144 | var slice = [].slice;
|
145 | var factories = {};
|
146 |
|
147 | var construct = function (C, argsLength, args) {
|
148 | if (!(argsLength in factories)) {
|
149 | for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
|
150 |
|
151 | factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');
|
152 | } return factories[argsLength](C, args);
|
153 | };
|
154 |
|
155 |
|
156 |
|
157 | module.exports = Function.bind || function bind(that /* , ...args */) {
|
158 | var fn = aFunction(this);
|
159 | var partArgs = slice.call(arguments, 1);
|
160 | var boundFunction = function bound(/* args... */) {
|
161 | var args = partArgs.concat(slice.call(arguments));
|
162 | return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);
|
163 | };
|
164 | if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;
|
165 | return boundFunction;
|
166 | };
|
167 |
|
168 |
|
169 | }),
|
170 |
|
171 | "057f":
|
172 | (function(module, exports, __webpack_require__) {
|
173 |
|
174 |
|
175 | var toIndexedObject = __webpack_require__("fc6a");
|
176 | var $getOwnPropertyNames = __webpack_require__("241c").f;
|
177 |
|
178 | var toString = {}.toString;
|
179 |
|
180 | var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
181 | ? Object.getOwnPropertyNames(window) : [];
|
182 |
|
183 | var getWindowNames = function (it) {
|
184 | try {
|
185 | return $getOwnPropertyNames(it);
|
186 | } catch (error) {
|
187 | return windowNames.slice();
|
188 | }
|
189 | };
|
190 |
|
191 |
|
192 | module.exports.f = function getOwnPropertyNames(it) {
|
193 | return windowNames && toString.call(it) == '[object Window]'
|
194 | ? getWindowNames(it)
|
195 | : $getOwnPropertyNames(toIndexedObject(it));
|
196 | };
|
197 |
|
198 |
|
199 | }),
|
200 |
|
201 | "06cf":
|
202 | (function(module, exports, __webpack_require__) {
|
203 |
|
204 | var DESCRIPTORS = __webpack_require__("83ab");
|
205 | var propertyIsEnumerableModule = __webpack_require__("d1e7");
|
206 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
207 | var toIndexedObject = __webpack_require__("fc6a");
|
208 | var toPrimitive = __webpack_require__("c04e");
|
209 | var has = __webpack_require__("5135");
|
210 | var IE8_DOM_DEFINE = __webpack_require__("0cfb");
|
211 |
|
212 |
|
213 | var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
214 |
|
215 |
|
216 |
|
217 | exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
218 | O = toIndexedObject(O);
|
219 | P = toPrimitive(P, true);
|
220 | if (IE8_DOM_DEFINE) try {
|
221 | return $getOwnPropertyDescriptor(O, P);
|
222 | } catch (error) { }
|
223 | if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
|
224 | };
|
225 |
|
226 |
|
227 | }),
|
228 |
|
229 | "0cb2":
|
230 | (function(module, exports, __webpack_require__) {
|
231 |
|
232 | var toObject = __webpack_require__("7b0b");
|
233 |
|
234 | var floor = Math.floor;
|
235 | var replace = ''.replace;
|
236 | var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
237 | var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
238 |
|
239 |
|
240 | module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
|
241 | var tailPos = position + matched.length;
|
242 | var m = captures.length;
|
243 | var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
244 | if (namedCaptures !== undefined) {
|
245 | namedCaptures = toObject(namedCaptures);
|
246 | symbols = SUBSTITUTION_SYMBOLS;
|
247 | }
|
248 | return replace.call(replacement, symbols, function (match, ch) {
|
249 | var capture;
|
250 | switch (ch.charAt(0)) {
|
251 | case '$': return '$';
|
252 | case '&': return matched;
|
253 | case '`': return str.slice(0, position);
|
254 | case "'": return str.slice(tailPos);
|
255 | case '<':
|
256 | capture = namedCaptures[ch.slice(1, -1)];
|
257 | break;
|
258 | default:
|
259 | var n = +ch;
|
260 | if (n === 0) return match;
|
261 | if (n > m) {
|
262 | var f = floor(n / 10);
|
263 | if (f === 0) return match;
|
264 | if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
265 | return match;
|
266 | }
|
267 | capture = captures[n - 1];
|
268 | }
|
269 | return capture === undefined ? '' : capture;
|
270 | });
|
271 | };
|
272 |
|
273 |
|
274 | }),
|
275 |
|
276 | "0cfb":
|
277 | (function(module, exports, __webpack_require__) {
|
278 |
|
279 | var DESCRIPTORS = __webpack_require__("83ab");
|
280 | var fails = __webpack_require__("d039");
|
281 | var createElement = __webpack_require__("cc12");
|
282 |
|
283 |
|
284 | module.exports = !DESCRIPTORS && !fails(function () {
|
285 |
|
286 | return Object.defineProperty(createElement('div'), 'a', {
|
287 | get: function () { return 7; }
|
288 | }).a != 7;
|
289 | });
|
290 |
|
291 |
|
292 | }),
|
293 |
|
294 | "1276":
|
295 | (function(module, exports, __webpack_require__) {
|
296 |
|
297 | "use strict";
|
298 |
|
299 | var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
300 | var isRegExp = __webpack_require__("44e7");
|
301 | var anObject = __webpack_require__("825a");
|
302 | var requireObjectCoercible = __webpack_require__("1d80");
|
303 | var speciesConstructor = __webpack_require__("4840");
|
304 | var advanceStringIndex = __webpack_require__("8aa5");
|
305 | var toLength = __webpack_require__("50c4");
|
306 | var callRegExpExec = __webpack_require__("14c3");
|
307 | var regexpExec = __webpack_require__("9263");
|
308 | var stickyHelpers = __webpack_require__("9f7f");
|
309 |
|
310 | var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
311 | var arrayPush = [].push;
|
312 | var min = Math.min;
|
313 | var MAX_UINT32 = 0xFFFFFFFF;
|
314 |
|
315 |
|
316 | fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
317 | var internalSplit;
|
318 | if (
|
319 | 'abbc'.split(/(b)*/)[1] == 'c' ||
|
320 |
|
321 | 'test'.split(/(?:)/, -1).length != 4 ||
|
322 | 'ab'.split(/(?:ab)*/).length != 2 ||
|
323 | '.'.split(/(.?)(.?)/).length != 4 ||
|
324 |
|
325 | '.'.split(/()()/).length > 1 ||
|
326 | ''.split(/.?/).length
|
327 | ) {
|
328 |
|
329 | internalSplit = function (separator, limit) {
|
330 | var string = String(requireObjectCoercible(this));
|
331 | var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
332 | if (lim === 0) return [];
|
333 | if (separator === undefined) return [string];
|
334 |
|
335 | if (!isRegExp(separator)) {
|
336 | return nativeSplit.call(string, separator, lim);
|
337 | }
|
338 | var output = [];
|
339 | var flags = (separator.ignoreCase ? 'i' : '') +
|
340 | (separator.multiline ? 'm' : '') +
|
341 | (separator.unicode ? 'u' : '') +
|
342 | (separator.sticky ? 'y' : '');
|
343 | var lastLastIndex = 0;
|
344 |
|
345 | var separatorCopy = new RegExp(separator.source, flags + 'g');
|
346 | var match, lastIndex, lastLength;
|
347 | while (match = regexpExec.call(separatorCopy, string)) {
|
348 | lastIndex = separatorCopy.lastIndex;
|
349 | if (lastIndex > lastLastIndex) {
|
350 | output.push(string.slice(lastLastIndex, match.index));
|
351 | if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
352 | lastLength = match[0].length;
|
353 | lastLastIndex = lastIndex;
|
354 | if (output.length >= lim) break;
|
355 | }
|
356 | if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++;
|
357 | }
|
358 | if (lastLastIndex === string.length) {
|
359 | if (lastLength || !separatorCopy.test('')) output.push('');
|
360 | } else output.push(string.slice(lastLastIndex));
|
361 | return output.length > lim ? output.slice(0, lim) : output;
|
362 | };
|
363 |
|
364 | } else if ('0'.split(undefined, 0).length) {
|
365 | internalSplit = function (separator, limit) {
|
366 | return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
367 | };
|
368 | } else internalSplit = nativeSplit;
|
369 |
|
370 | return [
|
371 |
|
372 |
|
373 | function split(separator, limit) {
|
374 | var O = requireObjectCoercible(this);
|
375 | var splitter = separator == undefined ? undefined : separator[SPLIT];
|
376 | return splitter !== undefined
|
377 | ? splitter.call(separator, O, limit)
|
378 | : internalSplit.call(String(O), separator, limit);
|
379 | },
|
380 |
|
381 |
|
382 |
|
383 |
|
384 |
|
385 | function (regexp, limit) {
|
386 | var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
|
387 | if (res.done) return res.value;
|
388 |
|
389 | var rx = anObject(regexp);
|
390 | var S = String(this);
|
391 | var C = speciesConstructor(rx, RegExp);
|
392 |
|
393 | var unicodeMatching = rx.unicode;
|
394 | var flags = (rx.ignoreCase ? 'i' : '') +
|
395 | (rx.multiline ? 'm' : '') +
|
396 | (rx.unicode ? 'u' : '') +
|
397 | (UNSUPPORTED_Y ? 'g' : 'y');
|
398 |
|
399 |
|
400 |
|
401 | var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
402 | var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
403 | if (lim === 0) return [];
|
404 | if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
405 | var p = 0;
|
406 | var q = 0;
|
407 | var A = [];
|
408 | while (q < S.length) {
|
409 | splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
410 | var z = callRegExpExec(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
|
411 | var e;
|
412 | if (
|
413 | z === null ||
|
414 | (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
415 | ) {
|
416 | q = advanceStringIndex(S, q, unicodeMatching);
|
417 | } else {
|
418 | A.push(S.slice(p, q));
|
419 | if (A.length === lim) return A;
|
420 | for (var i = 1; i <= z.length - 1; i++) {
|
421 | A.push(z[i]);
|
422 | if (A.length === lim) return A;
|
423 | }
|
424 | q = p = e;
|
425 | }
|
426 | }
|
427 | A.push(S.slice(p));
|
428 | return A;
|
429 | }
|
430 | ];
|
431 | }, UNSUPPORTED_Y);
|
432 |
|
433 |
|
434 | }),
|
435 |
|
436 | "14c3":
|
437 | (function(module, exports, __webpack_require__) {
|
438 |
|
439 | var classof = __webpack_require__("c6b6");
|
440 | var regexpExec = __webpack_require__("9263");
|
441 |
|
442 |
|
443 |
|
444 | module.exports = function (R, S) {
|
445 | var exec = R.exec;
|
446 | if (typeof exec === 'function') {
|
447 | var result = exec.call(R, S);
|
448 | if (typeof result !== 'object') {
|
449 | throw TypeError('RegExp exec method returned something other than an Object or null');
|
450 | }
|
451 | return result;
|
452 | }
|
453 |
|
454 | if (classof(R) !== 'RegExp') {
|
455 | throw TypeError('RegExp#exec called on incompatible receiver');
|
456 | }
|
457 |
|
458 | return regexpExec.call(R, S);
|
459 | };
|
460 |
|
461 |
|
462 |
|
463 | }),
|
464 |
|
465 | "159b":
|
466 | (function(module, exports, __webpack_require__) {
|
467 |
|
468 | var global = __webpack_require__("da84");
|
469 | var DOMIterables = __webpack_require__("fdbc");
|
470 | var forEach = __webpack_require__("17c2");
|
471 | var createNonEnumerableProperty = __webpack_require__("9112");
|
472 |
|
473 | for (var COLLECTION_NAME in DOMIterables) {
|
474 | var Collection = global[COLLECTION_NAME];
|
475 | var CollectionPrototype = Collection && Collection.prototype;
|
476 |
|
477 | if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
|
478 | createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
|
479 | } catch (error) {
|
480 | CollectionPrototype.forEach = forEach;
|
481 | }
|
482 | }
|
483 |
|
484 |
|
485 | }),
|
486 |
|
487 | "17c2":
|
488 | (function(module, exports, __webpack_require__) {
|
489 |
|
490 | "use strict";
|
491 |
|
492 | var $forEach = __webpack_require__("b727").forEach;
|
493 | var arrayMethodIsStrict = __webpack_require__("a640");
|
494 |
|
495 | var STRICT_METHOD = arrayMethodIsStrict('forEach');
|
496 |
|
497 |
|
498 |
|
499 | module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
500 | return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
501 |
|
502 | } : [].forEach;
|
503 |
|
504 |
|
505 | }),
|
506 |
|
507 | "19aa":
|
508 | (function(module, exports) {
|
509 |
|
510 | module.exports = function (it, Constructor, name) {
|
511 | if (!(it instanceof Constructor)) {
|
512 | throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
513 | } return it;
|
514 | };
|
515 |
|
516 |
|
517 | }),
|
518 |
|
519 | "1be4":
|
520 | (function(module, exports, __webpack_require__) {
|
521 |
|
522 | var getBuiltIn = __webpack_require__("d066");
|
523 |
|
524 | module.exports = getBuiltIn('document', 'documentElement');
|
525 |
|
526 |
|
527 | }),
|
528 |
|
529 | "1c0b":
|
530 | (function(module, exports) {
|
531 |
|
532 | module.exports = function (it) {
|
533 | if (typeof it != 'function') {
|
534 | throw TypeError(String(it) + ' is not a function');
|
535 | } return it;
|
536 | };
|
537 |
|
538 |
|
539 | }),
|
540 |
|
541 | "1c7e":
|
542 | (function(module, exports, __webpack_require__) {
|
543 |
|
544 | var wellKnownSymbol = __webpack_require__("b622");
|
545 |
|
546 | var ITERATOR = wellKnownSymbol('iterator');
|
547 | var SAFE_CLOSING = false;
|
548 |
|
549 | try {
|
550 | var called = 0;
|
551 | var iteratorWithReturn = {
|
552 | next: function () {
|
553 | return { done: !!called++ };
|
554 | },
|
555 | 'return': function () {
|
556 | SAFE_CLOSING = true;
|
557 | }
|
558 | };
|
559 | iteratorWithReturn[ITERATOR] = function () {
|
560 | return this;
|
561 | };
|
562 |
|
563 | Array.from(iteratorWithReturn, function () { throw 2; });
|
564 | } catch (error) { }
|
565 |
|
566 | module.exports = function (exec, SKIP_CLOSING) {
|
567 | if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
568 | var ITERATION_SUPPORT = false;
|
569 | try {
|
570 | var object = {};
|
571 | object[ITERATOR] = function () {
|
572 | return {
|
573 | next: function () {
|
574 | return { done: ITERATION_SUPPORT = true };
|
575 | }
|
576 | };
|
577 | };
|
578 | exec(object);
|
579 | } catch (error) { }
|
580 | return ITERATION_SUPPORT;
|
581 | };
|
582 |
|
583 |
|
584 | }),
|
585 |
|
586 | "1cdc":
|
587 | (function(module, exports, __webpack_require__) {
|
588 |
|
589 | var userAgent = __webpack_require__("342f");
|
590 |
|
591 | module.exports = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
592 |
|
593 |
|
594 | }),
|
595 |
|
596 | "1d80":
|
597 | (function(module, exports) {
|
598 |
|
599 |
|
600 |
|
601 | module.exports = function (it) {
|
602 | if (it == undefined) throw TypeError("Can't call method on " + it);
|
603 | return it;
|
604 | };
|
605 |
|
606 |
|
607 | }),
|
608 |
|
609 | "1dde":
|
610 | (function(module, exports, __webpack_require__) {
|
611 |
|
612 | var fails = __webpack_require__("d039");
|
613 | var wellKnownSymbol = __webpack_require__("b622");
|
614 | var V8_VERSION = __webpack_require__("2d00");
|
615 |
|
616 | var SPECIES = wellKnownSymbol('species');
|
617 |
|
618 | module.exports = function (METHOD_NAME) {
|
619 |
|
620 |
|
621 |
|
622 | return V8_VERSION >= 51 || !fails(function () {
|
623 | var array = [];
|
624 | var constructor = array.constructor = {};
|
625 | constructor[SPECIES] = function () {
|
626 | return { foo: 1 };
|
627 | };
|
628 | return array[METHOD_NAME](Boolean).foo !== 1;
|
629 | });
|
630 | };
|
631 |
|
632 |
|
633 | }),
|
634 |
|
635 | "2266":
|
636 | (function(module, exports, __webpack_require__) {
|
637 |
|
638 | var anObject = __webpack_require__("825a");
|
639 | var isArrayIteratorMethod = __webpack_require__("e95a");
|
640 | var toLength = __webpack_require__("50c4");
|
641 | var bind = __webpack_require__("0366");
|
642 | var getIteratorMethod = __webpack_require__("35a1");
|
643 | var iteratorClose = __webpack_require__("2a62");
|
644 |
|
645 | var Result = function (stopped, result) {
|
646 | this.stopped = stopped;
|
647 | this.result = result;
|
648 | };
|
649 |
|
650 | module.exports = function (iterable, unboundFunction, options) {
|
651 | var that = options && options.that;
|
652 | var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
653 | var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
654 | var INTERRUPTED = !!(options && options.INTERRUPTED);
|
655 | var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
|
656 | var iterator, iterFn, index, length, result, next, step;
|
657 |
|
658 | var stop = function (condition) {
|
659 | if (iterator) iteratorClose(iterator);
|
660 | return new Result(true, condition);
|
661 | };
|
662 |
|
663 | var callFn = function (value) {
|
664 | if (AS_ENTRIES) {
|
665 | anObject(value);
|
666 | return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
667 | } return INTERRUPTED ? fn(value, stop) : fn(value);
|
668 | };
|
669 |
|
670 | if (IS_ITERATOR) {
|
671 | iterator = iterable;
|
672 | } else {
|
673 | iterFn = getIteratorMethod(iterable);
|
674 | if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
|
675 |
|
676 | if (isArrayIteratorMethod(iterFn)) {
|
677 | for (index = 0, length = toLength(iterable.length); length > index; index++) {
|
678 | result = callFn(iterable[index]);
|
679 | if (result && result instanceof Result) return result;
|
680 | } return new Result(false);
|
681 | }
|
682 | iterator = iterFn.call(iterable);
|
683 | }
|
684 |
|
685 | next = iterator.next;
|
686 | while (!(step = next.call(iterator)).done) {
|
687 | try {
|
688 | result = callFn(step.value);
|
689 | } catch (error) {
|
690 | iteratorClose(iterator);
|
691 | throw error;
|
692 | }
|
693 | if (typeof result == 'object' && result && result instanceof Result) return result;
|
694 | } return new Result(false);
|
695 | };
|
696 |
|
697 |
|
698 | }),
|
699 |
|
700 | "23cb":
|
701 | (function(module, exports, __webpack_require__) {
|
702 |
|
703 | var toInteger = __webpack_require__("a691");
|
704 |
|
705 | var max = Math.max;
|
706 | var min = Math.min;
|
707 |
|
708 |
|
709 |
|
710 |
|
711 | module.exports = function (index, length) {
|
712 | var integer = toInteger(index);
|
713 | return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
714 | };
|
715 |
|
716 |
|
717 | }),
|
718 |
|
719 | "23e7":
|
720 | (function(module, exports, __webpack_require__) {
|
721 |
|
722 | var global = __webpack_require__("da84");
|
723 | var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
724 | var createNonEnumerableProperty = __webpack_require__("9112");
|
725 | var redefine = __webpack_require__("6eeb");
|
726 | var setGlobal = __webpack_require__("ce4e");
|
727 | var copyConstructorProperties = __webpack_require__("e893");
|
728 | var isForced = __webpack_require__("94ca");
|
729 |
|
730 |
|
731 |
|
732 |
|
733 |
|
734 |
|
735 |
|
736 |
|
737 |
|
738 |
|
739 |
|
740 |
|
741 |
|
742 |
|
743 |
|
744 | module.exports = function (options, source) {
|
745 | var TARGET = options.target;
|
746 | var GLOBAL = options.global;
|
747 | var STATIC = options.stat;
|
748 | var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
749 | if (GLOBAL) {
|
750 | target = global;
|
751 | } else if (STATIC) {
|
752 | target = global[TARGET] || setGlobal(TARGET, {});
|
753 | } else {
|
754 | target = (global[TARGET] || {}).prototype;
|
755 | }
|
756 | if (target) for (key in source) {
|
757 | sourceProperty = source[key];
|
758 | if (options.noTargetGet) {
|
759 | descriptor = getOwnPropertyDescriptor(target, key);
|
760 | targetProperty = descriptor && descriptor.value;
|
761 | } else targetProperty = target[key];
|
762 | FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
763 |
|
764 | if (!FORCED && targetProperty !== undefined) {
|
765 | if (typeof sourceProperty === typeof targetProperty) continue;
|
766 | copyConstructorProperties(sourceProperty, targetProperty);
|
767 | }
|
768 |
|
769 | if (options.sham || (targetProperty && targetProperty.sham)) {
|
770 | createNonEnumerableProperty(sourceProperty, 'sham', true);
|
771 | }
|
772 |
|
773 | redefine(target, key, sourceProperty, options);
|
774 | }
|
775 | };
|
776 |
|
777 |
|
778 | }),
|
779 |
|
780 | "241c":
|
781 | (function(module, exports, __webpack_require__) {
|
782 |
|
783 | var internalObjectKeys = __webpack_require__("ca84");
|
784 | var enumBugKeys = __webpack_require__("7839");
|
785 |
|
786 | var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
787 |
|
788 |
|
789 |
|
790 |
|
791 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
792 | return internalObjectKeys(O, hiddenKeys);
|
793 | };
|
794 |
|
795 |
|
796 | }),
|
797 |
|
798 | "25f0":
|
799 | (function(module, exports, __webpack_require__) {
|
800 |
|
801 | "use strict";
|
802 |
|
803 | var redefine = __webpack_require__("6eeb");
|
804 | var anObject = __webpack_require__("825a");
|
805 | var fails = __webpack_require__("d039");
|
806 | var flags = __webpack_require__("ad6d");
|
807 |
|
808 | var TO_STRING = 'toString';
|
809 | var RegExpPrototype = RegExp.prototype;
|
810 | var nativeToString = RegExpPrototype[TO_STRING];
|
811 |
|
812 | var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
813 |
|
814 | var INCORRECT_NAME = nativeToString.name != TO_STRING;
|
815 |
|
816 |
|
817 |
|
818 | if (NOT_GENERIC || INCORRECT_NAME) {
|
819 | redefine(RegExp.prototype, TO_STRING, function toString() {
|
820 | var R = anObject(this);
|
821 | var p = String(R.source);
|
822 | var rf = R.flags;
|
823 | var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
|
824 | return '/' + p + '/' + f;
|
825 | }, { unsafe: true });
|
826 | }
|
827 |
|
828 |
|
829 | }),
|
830 |
|
831 | "2626":
|
832 | (function(module, exports, __webpack_require__) {
|
833 |
|
834 | "use strict";
|
835 |
|
836 | var getBuiltIn = __webpack_require__("d066");
|
837 | var definePropertyModule = __webpack_require__("9bf2");
|
838 | var wellKnownSymbol = __webpack_require__("b622");
|
839 | var DESCRIPTORS = __webpack_require__("83ab");
|
840 |
|
841 | var SPECIES = wellKnownSymbol('species');
|
842 |
|
843 | module.exports = function (CONSTRUCTOR_NAME) {
|
844 | var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
845 | var defineProperty = definePropertyModule.f;
|
846 |
|
847 | if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
848 | defineProperty(Constructor, SPECIES, {
|
849 | configurable: true,
|
850 | get: function () { return this; }
|
851 | });
|
852 | }
|
853 | };
|
854 |
|
855 |
|
856 | }),
|
857 |
|
858 | "2a62":
|
859 | (function(module, exports, __webpack_require__) {
|
860 |
|
861 | var anObject = __webpack_require__("825a");
|
862 |
|
863 | module.exports = function (iterator) {
|
864 | var returnMethod = iterator['return'];
|
865 | if (returnMethod !== undefined) {
|
866 | return anObject(returnMethod.call(iterator)).value;
|
867 | }
|
868 | };
|
869 |
|
870 |
|
871 | }),
|
872 |
|
873 | "2cf4":
|
874 | (function(module, exports, __webpack_require__) {
|
875 |
|
876 | var global = __webpack_require__("da84");
|
877 | var fails = __webpack_require__("d039");
|
878 | var bind = __webpack_require__("0366");
|
879 | var html = __webpack_require__("1be4");
|
880 | var createElement = __webpack_require__("cc12");
|
881 | var IS_IOS = __webpack_require__("1cdc");
|
882 | var IS_NODE = __webpack_require__("605d");
|
883 |
|
884 | var location = global.location;
|
885 | var set = global.setImmediate;
|
886 | var clear = global.clearImmediate;
|
887 | var process = global.process;
|
888 | var MessageChannel = global.MessageChannel;
|
889 | var Dispatch = global.Dispatch;
|
890 | var counter = 0;
|
891 | var queue = {};
|
892 | var ONREADYSTATECHANGE = 'onreadystatechange';
|
893 | var defer, channel, port;
|
894 |
|
895 | var run = function (id) {
|
896 |
|
897 | if (queue.hasOwnProperty(id)) {
|
898 | var fn = queue[id];
|
899 | delete queue[id];
|
900 | fn();
|
901 | }
|
902 | };
|
903 |
|
904 | var runner = function (id) {
|
905 | return function () {
|
906 | run(id);
|
907 | };
|
908 | };
|
909 |
|
910 | var listener = function (event) {
|
911 | run(event.data);
|
912 | };
|
913 |
|
914 | var post = function (id) {
|
915 |
|
916 | global.postMessage(id + '', location.protocol + '//' + location.host);
|
917 | };
|
918 |
|
919 |
|
920 | if (!set || !clear) {
|
921 | set = function setImmediate(fn) {
|
922 | var args = [];
|
923 | var i = 1;
|
924 | while (arguments.length > i) args.push(arguments[i++]);
|
925 | queue[++counter] = function () {
|
926 |
|
927 | (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
928 | };
|
929 | defer(counter);
|
930 | return counter;
|
931 | };
|
932 | clear = function clearImmediate(id) {
|
933 | delete queue[id];
|
934 | };
|
935 |
|
936 | if (IS_NODE) {
|
937 | defer = function (id) {
|
938 | process.nextTick(runner(id));
|
939 | };
|
940 |
|
941 | } else if (Dispatch && Dispatch.now) {
|
942 | defer = function (id) {
|
943 | Dispatch.now(runner(id));
|
944 | };
|
945 |
|
946 |
|
947 | } else if (MessageChannel && !IS_IOS) {
|
948 | channel = new MessageChannel();
|
949 | port = channel.port2;
|
950 | channel.port1.onmessage = listener;
|
951 | defer = bind(port.postMessage, port, 1);
|
952 |
|
953 |
|
954 | } else if (
|
955 | global.addEventListener &&
|
956 | typeof postMessage == 'function' &&
|
957 | !global.importScripts &&
|
958 | location && location.protocol !== 'file:' &&
|
959 | !fails(post)
|
960 | ) {
|
961 | defer = post;
|
962 | global.addEventListener('message', listener, false);
|
963 |
|
964 | } else if (ONREADYSTATECHANGE in createElement('script')) {
|
965 | defer = function (id) {
|
966 | html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
967 | html.removeChild(this);
|
968 | run(id);
|
969 | };
|
970 | };
|
971 |
|
972 | } else {
|
973 | defer = function (id) {
|
974 | setTimeout(runner(id), 0);
|
975 | };
|
976 | }
|
977 | }
|
978 |
|
979 | module.exports = {
|
980 | set: set,
|
981 | clear: clear
|
982 | };
|
983 |
|
984 |
|
985 | /***/ }),
|
986 |
|
987 | /***/ "2d00":
|
988 | /***/ (function(module, exports, __webpack_require__) {
|
989 |
|
990 | var global = __webpack_require__("da84");
|
991 | var userAgent = __webpack_require__("342f");
|
992 |
|
993 | var process = global.process;
|
994 | var versions = process && process.versions;
|
995 | var v8 = versions && versions.v8;
|
996 | var match, version;
|
997 |
|
998 | if (v8) {
|
999 | match = v8.split('.');
|
1000 | version = match[0] + match[1];
|
1001 | } else if (userAgent) {
|
1002 | match = userAgent.match(/Edge\/(\d+)/);
|
1003 | if (!match || match[1] >= 74) {
|
1004 | match = userAgent.match(/Chrome\/(\d+)/);
|
1005 | if (match) version = match[1];
|
1006 | }
|
1007 | }
|
1008 |
|
1009 | module.exports = version && +version;
|
1010 |
|
1011 |
|
1012 | }),
|
1013 |
|
1014 | "3410":
|
1015 | (function(module, exports, __webpack_require__) {
|
1016 |
|
1017 | var $ = __webpack_require__("23e7");
|
1018 | var fails = __webpack_require__("d039");
|
1019 | var toObject = __webpack_require__("7b0b");
|
1020 | var nativeGetPrototypeOf = __webpack_require__("e163");
|
1021 | var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
|
1022 |
|
1023 | var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });
|
1024 |
|
1025 |
|
1026 |
|
1027 | $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
|
1028 | getPrototypeOf: function getPrototypeOf(it) {
|
1029 | return nativeGetPrototypeOf(toObject(it));
|
1030 | }
|
1031 | });
|
1032 |
|
1033 |
|
1034 |
|
1035 | }),
|
1036 |
|
1037 | "342f":
|
1038 | (function(module, exports, __webpack_require__) {
|
1039 |
|
1040 | var getBuiltIn = __webpack_require__("d066");
|
1041 |
|
1042 | module.exports = getBuiltIn('navigator', 'userAgent') || '';
|
1043 |
|
1044 |
|
1045 | }),
|
1046 |
|
1047 | "35a1":
|
1048 | (function(module, exports, __webpack_require__) {
|
1049 |
|
1050 | var classof = __webpack_require__("f5df");
|
1051 | var Iterators = __webpack_require__("3f8c");
|
1052 | var wellKnownSymbol = __webpack_require__("b622");
|
1053 |
|
1054 | var ITERATOR = wellKnownSymbol('iterator');
|
1055 |
|
1056 | module.exports = function (it) {
|
1057 | if (it != undefined) return it[ITERATOR]
|
1058 | || it['@@iterator']
|
1059 | || Iterators[classof(it)];
|
1060 | };
|
1061 |
|
1062 |
|
1063 | }),
|
1064 |
|
1065 | "37e8":
|
1066 | (function(module, exports, __webpack_require__) {
|
1067 |
|
1068 | var DESCRIPTORS = __webpack_require__("83ab");
|
1069 | var definePropertyModule = __webpack_require__("9bf2");
|
1070 | var anObject = __webpack_require__("825a");
|
1071 | var objectKeys = __webpack_require__("df75");
|
1072 |
|
1073 |
|
1074 |
|
1075 |
|
1076 | module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
|
1077 | anObject(O);
|
1078 | var keys = objectKeys(Properties);
|
1079 | var length = keys.length;
|
1080 | var index = 0;
|
1081 | var key;
|
1082 | while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
|
1083 | return O;
|
1084 | };
|
1085 |
|
1086 |
|
1087 | }),
|
1088 |
|
1089 | "3bbe":
|
1090 | (function(module, exports, __webpack_require__) {
|
1091 |
|
1092 | var isObject = __webpack_require__("861d");
|
1093 |
|
1094 | module.exports = function (it) {
|
1095 | if (!isObject(it) && it !== null) {
|
1096 | throw TypeError("Can't set " + String(it) + ' as a prototype');
|
1097 | } return it;
|
1098 | };
|
1099 |
|
1100 |
|
1101 | }),
|
1102 |
|
1103 | "3ca3":
|
1104 | (function(module, exports, __webpack_require__) {
|
1105 |
|
1106 | "use strict";
|
1107 |
|
1108 | var charAt = __webpack_require__("6547").charAt;
|
1109 | var InternalStateModule = __webpack_require__("69f3");
|
1110 | var defineIterator = __webpack_require__("7dd0");
|
1111 |
|
1112 | var STRING_ITERATOR = 'String Iterator';
|
1113 | var setInternalState = InternalStateModule.set;
|
1114 | var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
|
1115 |
|
1116 |
|
1117 |
|
1118 | defineIterator(String, 'String', function (iterated) {
|
1119 | setInternalState(this, {
|
1120 | type: STRING_ITERATOR,
|
1121 | string: String(iterated),
|
1122 | index: 0
|
1123 | });
|
1124 |
|
1125 |
|
1126 | }, function next() {
|
1127 | var state = getInternalState(this);
|
1128 | var string = state.string;
|
1129 | var index = state.index;
|
1130 | var point;
|
1131 | if (index >= string.length) return { value: undefined, done: true };
|
1132 | point = charAt(string, index);
|
1133 | state.index += point.length;
|
1134 | return { value: point, done: false };
|
1135 | });
|
1136 |
|
1137 |
|
1138 | }),
|
1139 |
|
1140 | "3f8c":
|
1141 | (function(module, exports) {
|
1142 |
|
1143 | module.exports = {};
|
1144 |
|
1145 |
|
1146 | }),
|
1147 |
|
1148 | "428f":
|
1149 | (function(module, exports, __webpack_require__) {
|
1150 |
|
1151 | var global = __webpack_require__("da84");
|
1152 |
|
1153 | module.exports = global;
|
1154 |
|
1155 |
|
1156 | }),
|
1157 |
|
1158 | "44ad":
|
1159 | (function(module, exports, __webpack_require__) {
|
1160 |
|
1161 | var fails = __webpack_require__("d039");
|
1162 | var classof = __webpack_require__("c6b6");
|
1163 |
|
1164 | var split = ''.split;
|
1165 |
|
1166 |
|
1167 | module.exports = fails(function () {
|
1168 |
|
1169 |
|
1170 | return !Object('z').propertyIsEnumerable(0);
|
1171 | }) ? function (it) {
|
1172 | return classof(it) == 'String' ? split.call(it, '') : Object(it);
|
1173 | } : Object;
|
1174 |
|
1175 |
|
1176 | }),
|
1177 |
|
1178 | "44d2":
|
1179 | (function(module, exports, __webpack_require__) {
|
1180 |
|
1181 | var wellKnownSymbol = __webpack_require__("b622");
|
1182 | var create = __webpack_require__("7c73");
|
1183 | var definePropertyModule = __webpack_require__("9bf2");
|
1184 |
|
1185 | var UNSCOPABLES = wellKnownSymbol('unscopables');
|
1186 | var ArrayPrototype = Array.prototype;
|
1187 |
|
1188 |
|
1189 |
|
1190 | if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
1191 | definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
1192 | configurable: true,
|
1193 | value: create(null)
|
1194 | });
|
1195 | }
|
1196 |
|
1197 |
|
1198 | module.exports = function (key) {
|
1199 | ArrayPrototype[UNSCOPABLES][key] = true;
|
1200 | };
|
1201 |
|
1202 |
|
1203 | }),
|
1204 |
|
1205 | "44de":
|
1206 | (function(module, exports, __webpack_require__) {
|
1207 |
|
1208 | var global = __webpack_require__("da84");
|
1209 |
|
1210 | module.exports = function (a, b) {
|
1211 | var console = global.console;
|
1212 | if (console && console.error) {
|
1213 | arguments.length === 1 ? console.error(a) : console.error(a, b);
|
1214 | }
|
1215 | };
|
1216 |
|
1217 |
|
1218 | }),
|
1219 |
|
1220 | "44e7":
|
1221 | (function(module, exports, __webpack_require__) {
|
1222 |
|
1223 | var isObject = __webpack_require__("861d");
|
1224 | var classof = __webpack_require__("c6b6");
|
1225 | var wellKnownSymbol = __webpack_require__("b622");
|
1226 |
|
1227 | var MATCH = wellKnownSymbol('match');
|
1228 |
|
1229 |
|
1230 |
|
1231 | module.exports = function (it) {
|
1232 | var isRegExp;
|
1233 | return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
1234 | };
|
1235 |
|
1236 |
|
1237 | }),
|
1238 |
|
1239 | "466d":
|
1240 | (function(module, exports, __webpack_require__) {
|
1241 |
|
1242 | "use strict";
|
1243 |
|
1244 | var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
1245 | var anObject = __webpack_require__("825a");
|
1246 | var toLength = __webpack_require__("50c4");
|
1247 | var requireObjectCoercible = __webpack_require__("1d80");
|
1248 | var advanceStringIndex = __webpack_require__("8aa5");
|
1249 | var regExpExec = __webpack_require__("14c3");
|
1250 |
|
1251 |
|
1252 | fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
|
1253 | return [
|
1254 |
|
1255 |
|
1256 | function match(regexp) {
|
1257 | var O = requireObjectCoercible(this);
|
1258 | var matcher = regexp == undefined ? undefined : regexp[MATCH];
|
1259 | return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
|
1260 | },
|
1261 |
|
1262 |
|
1263 | function (regexp) {
|
1264 | var res = maybeCallNative(nativeMatch, regexp, this);
|
1265 | if (res.done) return res.value;
|
1266 |
|
1267 | var rx = anObject(regexp);
|
1268 | var S = String(this);
|
1269 |
|
1270 | if (!rx.global) return regExpExec(rx, S);
|
1271 |
|
1272 | var fullUnicode = rx.unicode;
|
1273 | rx.lastIndex = 0;
|
1274 | var A = [];
|
1275 | var n = 0;
|
1276 | var result;
|
1277 | while ((result = regExpExec(rx, S)) !== null) {
|
1278 | var matchStr = String(result[0]);
|
1279 | A[n] = matchStr;
|
1280 | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1281 | n++;
|
1282 | }
|
1283 | return n === 0 ? null : A;
|
1284 | }
|
1285 | ];
|
1286 | });
|
1287 |
|
1288 |
|
1289 | }),
|
1290 |
|
1291 | "4840":
|
1292 | (function(module, exports, __webpack_require__) {
|
1293 |
|
1294 | var anObject = __webpack_require__("825a");
|
1295 | var aFunction = __webpack_require__("1c0b");
|
1296 | var wellKnownSymbol = __webpack_require__("b622");
|
1297 |
|
1298 | var SPECIES = wellKnownSymbol('species');
|
1299 |
|
1300 |
|
1301 |
|
1302 | module.exports = function (O, defaultConstructor) {
|
1303 | var C = anObject(O).constructor;
|
1304 | var S;
|
1305 | return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
|
1306 | };
|
1307 |
|
1308 |
|
1309 | }),
|
1310 |
|
1311 | "4930":
|
1312 | (function(module, exports, __webpack_require__) {
|
1313 |
|
1314 | var IS_NODE = __webpack_require__("605d");
|
1315 | var V8_VERSION = __webpack_require__("2d00");
|
1316 | var fails = __webpack_require__("d039");
|
1317 |
|
1318 |
|
1319 | module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
1320 |
|
1321 | return !Symbol.sham &&
|
1322 |
|
1323 |
|
1324 | (IS_NODE ? V8_VERSION === 38 : V8_VERSION > 37 && V8_VERSION < 41);
|
1325 | });
|
1326 |
|
1327 |
|
1328 | }),
|
1329 |
|
1330 | "4ae1":
|
1331 | (function(module, exports, __webpack_require__) {
|
1332 |
|
1333 | var $ = __webpack_require__("23e7");
|
1334 | var getBuiltIn = __webpack_require__("d066");
|
1335 | var aFunction = __webpack_require__("1c0b");
|
1336 | var anObject = __webpack_require__("825a");
|
1337 | var isObject = __webpack_require__("861d");
|
1338 | var create = __webpack_require__("7c73");
|
1339 | var bind = __webpack_require__("0538");
|
1340 | var fails = __webpack_require__("d039");
|
1341 |
|
1342 | var nativeConstruct = getBuiltIn('Reflect', 'construct');
|
1343 |
|
1344 |
|
1345 |
|
1346 |
|
1347 |
|
1348 | var NEW_TARGET_BUG = fails(function () {
|
1349 | function F() { }
|
1350 | return !(nativeConstruct(function () { }, [], F) instanceof F);
|
1351 | });
|
1352 | var ARGS_BUG = !fails(function () {
|
1353 | nativeConstruct(function () { });
|
1354 | });
|
1355 | var FORCED = NEW_TARGET_BUG || ARGS_BUG;
|
1356 |
|
1357 | $({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
|
1358 | construct: function construct(Target, args /* , newTarget */) {
|
1359 | aFunction(Target);
|
1360 | anObject(args);
|
1361 | var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
|
1362 | if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
|
1363 | if (Target == newTarget) {
|
1364 |
|
1365 | switch (args.length) {
|
1366 | case 0: return new Target();
|
1367 | case 1: return new Target(args[0]);
|
1368 | case 2: return new Target(args[0], args[1]);
|
1369 | case 3: return new Target(args[0], args[1], args[2]);
|
1370 | case 4: return new Target(args[0], args[1], args[2], args[3]);
|
1371 | }
|
1372 |
|
1373 | var $args = [null];
|
1374 | $args.push.apply($args, args);
|
1375 | return new (bind.apply(Target, $args))();
|
1376 | }
|
1377 |
|
1378 | var proto = newTarget.prototype;
|
1379 | var instance = create(isObject(proto) ? proto : Object.prototype);
|
1380 | var result = Function.apply.call(Target, instance, args);
|
1381 | return isObject(result) ? result : instance;
|
1382 | }
|
1383 | });
|
1384 |
|
1385 |
|
1386 | }),
|
1387 |
|
1388 | "4d64":
|
1389 | (function(module, exports, __webpack_require__) {
|
1390 |
|
1391 | var toIndexedObject = __webpack_require__("fc6a");
|
1392 | var toLength = __webpack_require__("50c4");
|
1393 | var toAbsoluteIndex = __webpack_require__("23cb");
|
1394 |
|
1395 |
|
1396 | var createMethod = function (IS_INCLUDES) {
|
1397 | return function ($this, el, fromIndex) {
|
1398 | var O = toIndexedObject($this);
|
1399 | var length = toLength(O.length);
|
1400 | var index = toAbsoluteIndex(fromIndex, length);
|
1401 | var value;
|
1402 |
|
1403 |
|
1404 | if (IS_INCLUDES && el != el) while (length > index) {
|
1405 | value = O[index++];
|
1406 |
|
1407 | if (value != value) return true;
|
1408 |
|
1409 | } else for (;length > index; index++) {
|
1410 | if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
1411 | } return !IS_INCLUDES && -1;
|
1412 | };
|
1413 | };
|
1414 |
|
1415 | module.exports = {
|
1416 |
|
1417 |
|
1418 | includes: createMethod(true),
|
1419 |
|
1420 |
|
1421 | indexOf: createMethod(false)
|
1422 | };
|
1423 |
|
1424 |
|
1425 | }),
|
1426 |
|
1427 | "4de4":
|
1428 | (function(module, exports, __webpack_require__) {
|
1429 |
|
1430 | "use strict";
|
1431 |
|
1432 | var $ = __webpack_require__("23e7");
|
1433 | var $filter = __webpack_require__("b727").filter;
|
1434 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
1435 |
|
1436 | var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
1437 |
|
1438 |
|
1439 |
|
1440 |
|
1441 | $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
1442 | filter: function filter(callbackfn /* , thisArg */) {
|
1443 | return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1444 | }
|
1445 | });
|
1446 |
|
1447 |
|
1448 | }),
|
1449 |
|
1450 | "4df4":
|
1451 | (function(module, exports, __webpack_require__) {
|
1452 |
|
1453 | "use strict";
|
1454 |
|
1455 | var bind = __webpack_require__("0366");
|
1456 | var toObject = __webpack_require__("7b0b");
|
1457 | var callWithSafeIterationClosing = __webpack_require__("9bdd");
|
1458 | var isArrayIteratorMethod = __webpack_require__("e95a");
|
1459 | var toLength = __webpack_require__("50c4");
|
1460 | var createProperty = __webpack_require__("8418");
|
1461 | var getIteratorMethod = __webpack_require__("35a1");
|
1462 |
|
1463 |
|
1464 |
|
1465 | module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
|
1466 | var O = toObject(arrayLike);
|
1467 | var C = typeof this == 'function' ? this : Array;
|
1468 | var argumentsLength = arguments.length;
|
1469 | var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
1470 | var mapping = mapfn !== undefined;
|
1471 | var iteratorMethod = getIteratorMethod(O);
|
1472 | var index = 0;
|
1473 | var length, result, step, iterator, next, value;
|
1474 | if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
|
1475 |
|
1476 | if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
|
1477 | iterator = iteratorMethod.call(O);
|
1478 | next = iterator.next;
|
1479 | result = new C();
|
1480 | for (;!(step = next.call(iterator)).done; index++) {
|
1481 | value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
1482 | createProperty(result, index, value);
|
1483 | }
|
1484 | } else {
|
1485 | length = toLength(O.length);
|
1486 | result = new C(length);
|
1487 | for (;length > index; index++) {
|
1488 | value = mapping ? mapfn(O[index], index) : O[index];
|
1489 | createProperty(result, index, value);
|
1490 | }
|
1491 | }
|
1492 | result.length = index;
|
1493 | return result;
|
1494 | };
|
1495 |
|
1496 |
|
1497 | }),
|
1498 |
|
1499 | "50c4":
|
1500 | (function(module, exports, __webpack_require__) {
|
1501 |
|
1502 | var toInteger = __webpack_require__("a691");
|
1503 |
|
1504 | var min = Math.min;
|
1505 |
|
1506 |
|
1507 |
|
1508 | module.exports = function (argument) {
|
1509 | return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0;
|
1510 | };
|
1511 |
|
1512 |
|
1513 | }),
|
1514 |
|
1515 | "5135":
|
1516 | (function(module, exports) {
|
1517 |
|
1518 | var hasOwnProperty = {}.hasOwnProperty;
|
1519 |
|
1520 | module.exports = function (it, key) {
|
1521 | return hasOwnProperty.call(it, key);
|
1522 | };
|
1523 |
|
1524 |
|
1525 | }),
|
1526 |
|
1527 | "5319":
|
1528 | (function(module, exports, __webpack_require__) {
|
1529 |
|
1530 | "use strict";
|
1531 |
|
1532 | var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
1533 | var anObject = __webpack_require__("825a");
|
1534 | var toLength = __webpack_require__("50c4");
|
1535 | var toInteger = __webpack_require__("a691");
|
1536 | var requireObjectCoercible = __webpack_require__("1d80");
|
1537 | var advanceStringIndex = __webpack_require__("8aa5");
|
1538 | var getSubstitution = __webpack_require__("0cb2");
|
1539 | var regExpExec = __webpack_require__("14c3");
|
1540 |
|
1541 | var max = Math.max;
|
1542 | var min = Math.min;
|
1543 |
|
1544 | var maybeToString = function (it) {
|
1545 | return it === undefined ? it : String(it);
|
1546 | };
|
1547 |
|
1548 |
|
1549 | fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
1550 | var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
1551 | var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
1552 | var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
1553 |
|
1554 | return [
|
1555 |
|
1556 |
|
1557 | function replace(searchValue, replaceValue) {
|
1558 | var O = requireObjectCoercible(this);
|
1559 | var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
|
1560 | return replacer !== undefined
|
1561 | ? replacer.call(searchValue, O, replaceValue)
|
1562 | : nativeReplace.call(String(O), searchValue, replaceValue);
|
1563 | },
|
1564 |
|
1565 |
|
1566 | function (regexp, replaceValue) {
|
1567 | if (
|
1568 | (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
|
1569 | (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
|
1570 | ) {
|
1571 | var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
1572 | if (res.done) return res.value;
|
1573 | }
|
1574 |
|
1575 | var rx = anObject(regexp);
|
1576 | var S = String(this);
|
1577 |
|
1578 | var functionalReplace = typeof replaceValue === 'function';
|
1579 | if (!functionalReplace) replaceValue = String(replaceValue);
|
1580 |
|
1581 | var global = rx.global;
|
1582 | if (global) {
|
1583 | var fullUnicode = rx.unicode;
|
1584 | rx.lastIndex = 0;
|
1585 | }
|
1586 | var results = [];
|
1587 | while (true) {
|
1588 | var result = regExpExec(rx, S);
|
1589 | if (result === null) break;
|
1590 |
|
1591 | results.push(result);
|
1592 | if (!global) break;
|
1593 |
|
1594 | var matchStr = String(result[0]);
|
1595 | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1596 | }
|
1597 |
|
1598 | var accumulatedResult = '';
|
1599 | var nextSourcePosition = 0;
|
1600 | for (var i = 0; i < results.length; i++) {
|
1601 | result = results[i];
|
1602 |
|
1603 | var matched = String(result[0]);
|
1604 | var position = max(min(toInteger(result.index), S.length), 0);
|
1605 | var captures = [];
|
1606 |
|
1607 |
|
1608 |
|
1609 |
|
1610 |
|
1611 | for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
1612 | var namedCaptures = result.groups;
|
1613 | if (functionalReplace) {
|
1614 | var replacerArgs = [matched].concat(captures, position, S);
|
1615 | if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
1616 | var replacement = String(replaceValue.apply(undefined, replacerArgs));
|
1617 | } else {
|
1618 | replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
1619 | }
|
1620 | if (position >= nextSourcePosition) {
|
1621 | accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
1622 | nextSourcePosition = position + matched.length;
|
1623 | }
|
1624 | }
|
1625 | return accumulatedResult + S.slice(nextSourcePosition);
|
1626 | }
|
1627 | ];
|
1628 | });
|
1629 |
|
1630 |
|
1631 | }),
|
1632 |
|
1633 | "5692":
|
1634 | (function(module, exports, __webpack_require__) {
|
1635 |
|
1636 | var IS_PURE = __webpack_require__("c430");
|
1637 | var store = __webpack_require__("c6cd");
|
1638 |
|
1639 | (module.exports = function (key, value) {
|
1640 | return store[key] || (store[key] = value !== undefined ? value : {});
|
1641 | })('versions', []).push({
|
1642 | version: '3.10.1',
|
1643 | mode: IS_PURE ? 'pure' : 'global',
|
1644 | copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
1645 | });
|
1646 |
|
1647 |
|
1648 | }),
|
1649 |
|
1650 | "56ef":
|
1651 | (function(module, exports, __webpack_require__) {
|
1652 |
|
1653 | var getBuiltIn = __webpack_require__("d066");
|
1654 | var getOwnPropertyNamesModule = __webpack_require__("241c");
|
1655 | var getOwnPropertySymbolsModule = __webpack_require__("7418");
|
1656 | var anObject = __webpack_require__("825a");
|
1657 |
|
1658 |
|
1659 | module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
1660 | var keys = getOwnPropertyNamesModule.f(anObject(it));
|
1661 | var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
1662 | return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
1663 | };
|
1664 |
|
1665 |
|
1666 | }),
|
1667 |
|
1668 | "5c6c":
|
1669 | (function(module, exports) {
|
1670 |
|
1671 | module.exports = function (bitmap, value) {
|
1672 | return {
|
1673 | enumerable: !(bitmap & 1),
|
1674 | configurable: !(bitmap & 2),
|
1675 | writable: !(bitmap & 4),
|
1676 | value: value
|
1677 | };
|
1678 | };
|
1679 |
|
1680 |
|
1681 | }),
|
1682 |
|
1683 | "605d":
|
1684 | (function(module, exports, __webpack_require__) {
|
1685 |
|
1686 | var classof = __webpack_require__("c6b6");
|
1687 | var global = __webpack_require__("da84");
|
1688 |
|
1689 | module.exports = classof(global.process) == 'process';
|
1690 |
|
1691 |
|
1692 | }),
|
1693 |
|
1694 | "6547":
|
1695 | (function(module, exports, __webpack_require__) {
|
1696 |
|
1697 | var toInteger = __webpack_require__("a691");
|
1698 | var requireObjectCoercible = __webpack_require__("1d80");
|
1699 |
|
1700 |
|
1701 | var createMethod = function (CONVERT_TO_STRING) {
|
1702 | return function ($this, pos) {
|
1703 | var S = String(requireObjectCoercible($this));
|
1704 | var position = toInteger(pos);
|
1705 | var size = S.length;
|
1706 | var first, second;
|
1707 | if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
1708 | first = S.charCodeAt(position);
|
1709 | return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
1710 | || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
1711 | ? CONVERT_TO_STRING ? S.charAt(position) : first
|
1712 | : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
1713 | };
|
1714 | };
|
1715 |
|
1716 | module.exports = {
|
1717 |
|
1718 |
|
1719 | codeAt: createMethod(false),
|
1720 |
|
1721 |
|
1722 | charAt: createMethod(true)
|
1723 | };
|
1724 |
|
1725 |
|
1726 | }),
|
1727 |
|
1728 | "65f0":
|
1729 | (function(module, exports, __webpack_require__) {
|
1730 |
|
1731 | var isObject = __webpack_require__("861d");
|
1732 | var isArray = __webpack_require__("e8b5");
|
1733 | var wellKnownSymbol = __webpack_require__("b622");
|
1734 |
|
1735 | var SPECIES = wellKnownSymbol('species');
|
1736 |
|
1737 |
|
1738 |
|
1739 | module.exports = function (originalArray, length) {
|
1740 | var C;
|
1741 | if (isArray(originalArray)) {
|
1742 | C = originalArray.constructor;
|
1743 |
|
1744 | if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
|
1745 | else if (isObject(C)) {
|
1746 | C = C[SPECIES];
|
1747 | if (C === null) C = undefined;
|
1748 | }
|
1749 | } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
|
1750 | };
|
1751 |
|
1752 |
|
1753 | }),
|
1754 |
|
1755 | "69f3":
|
1756 | (function(module, exports, __webpack_require__) {
|
1757 |
|
1758 | var NATIVE_WEAK_MAP = __webpack_require__("7f9a");
|
1759 | var global = __webpack_require__("da84");
|
1760 | var isObject = __webpack_require__("861d");
|
1761 | var createNonEnumerableProperty = __webpack_require__("9112");
|
1762 | var objectHas = __webpack_require__("5135");
|
1763 | var shared = __webpack_require__("c6cd");
|
1764 | var sharedKey = __webpack_require__("f772");
|
1765 | var hiddenKeys = __webpack_require__("d012");
|
1766 |
|
1767 | var WeakMap = global.WeakMap;
|
1768 | var set, get, has;
|
1769 |
|
1770 | var enforce = function (it) {
|
1771 | return has(it) ? get(it) : set(it, {});
|
1772 | };
|
1773 |
|
1774 | var getterFor = function (TYPE) {
|
1775 | return function (it) {
|
1776 | var state;
|
1777 | if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
1778 | throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
1779 | } return state;
|
1780 | };
|
1781 | };
|
1782 |
|
1783 | if (NATIVE_WEAK_MAP) {
|
1784 | var store = shared.state || (shared.state = new WeakMap());
|
1785 | var wmget = store.get;
|
1786 | var wmhas = store.has;
|
1787 | var wmset = store.set;
|
1788 | set = function (it, metadata) {
|
1789 | metadata.facade = it;
|
1790 | wmset.call(store, it, metadata);
|
1791 | return metadata;
|
1792 | };
|
1793 | get = function (it) {
|
1794 | return wmget.call(store, it) || {};
|
1795 | };
|
1796 | has = function (it) {
|
1797 | return wmhas.call(store, it);
|
1798 | };
|
1799 | } else {
|
1800 | var STATE = sharedKey('state');
|
1801 | hiddenKeys[STATE] = true;
|
1802 | set = function (it, metadata) {
|
1803 | metadata.facade = it;
|
1804 | createNonEnumerableProperty(it, STATE, metadata);
|
1805 | return metadata;
|
1806 | };
|
1807 | get = function (it) {
|
1808 | return objectHas(it, STATE) ? it[STATE] : {};
|
1809 | };
|
1810 | has = function (it) {
|
1811 | return objectHas(it, STATE);
|
1812 | };
|
1813 | }
|
1814 |
|
1815 | module.exports = {
|
1816 | set: set,
|
1817 | get: get,
|
1818 | has: has,
|
1819 | enforce: enforce,
|
1820 | getterFor: getterFor
|
1821 | };
|
1822 |
|
1823 |
|
1824 | /***/ }),
|
1825 |
|
1826 | /***/ "6eeb":
|
1827 | /***/ (function(module, exports, __webpack_require__) {
|
1828 |
|
1829 | var global = __webpack_require__("da84");
|
1830 | var createNonEnumerableProperty = __webpack_require__("9112");
|
1831 | var has = __webpack_require__("5135");
|
1832 | var setGlobal = __webpack_require__("ce4e");
|
1833 | var inspectSource = __webpack_require__("8925");
|
1834 | var InternalStateModule = __webpack_require__("69f3");
|
1835 |
|
1836 | var getInternalState = InternalStateModule.get;
|
1837 | var enforceInternalState = InternalStateModule.enforce;
|
1838 | var TEMPLATE = String(String).split('String');
|
1839 |
|
1840 | (module.exports = function (O, key, value, options) {
|
1841 | var unsafe = options ? !!options.unsafe : false;
|
1842 | var simple = options ? !!options.enumerable : false;
|
1843 | var noTargetGet = options ? !!options.noTargetGet : false;
|
1844 | var state;
|
1845 | if (typeof value == 'function') {
|
1846 | if (typeof key == 'string' && !has(value, 'name')) {
|
1847 | createNonEnumerableProperty(value, 'name', key);
|
1848 | }
|
1849 | state = enforceInternalState(value);
|
1850 | if (!state.source) {
|
1851 | state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
1852 | }
|
1853 | }
|
1854 | if (O === global) {
|
1855 | if (simple) O[key] = value;
|
1856 | else setGlobal(key, value);
|
1857 | return;
|
1858 | } else if (!unsafe) {
|
1859 | delete O[key];
|
1860 | } else if (!noTargetGet && O[key]) {
|
1861 | simple = true;
|
1862 | }
|
1863 | if (simple) O[key] = value;
|
1864 | else createNonEnumerableProperty(O, key, value);
|
1865 |
|
1866 | })(Function.prototype, 'toString', function toString() {
|
1867 | return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
1868 | });
|
1869 |
|
1870 |
|
1871 | }),
|
1872 |
|
1873 | "7037":
|
1874 | (function(module, exports, __webpack_require__) {
|
1875 |
|
1876 | __webpack_require__("a4d3");
|
1877 |
|
1878 | __webpack_require__("e01a");
|
1879 |
|
1880 | __webpack_require__("d3b7");
|
1881 |
|
1882 | __webpack_require__("d28b");
|
1883 |
|
1884 | __webpack_require__("e260");
|
1885 |
|
1886 | __webpack_require__("3ca3");
|
1887 |
|
1888 | __webpack_require__("ddb0");
|
1889 |
|
1890 | function _typeof(obj) {
|
1891 | "@babel/helpers - typeof";
|
1892 |
|
1893 | if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
1894 | module.exports = _typeof = function _typeof(obj) {
|
1895 | return typeof obj;
|
1896 | };
|
1897 |
|
1898 | module.exports["default"] = module.exports, module.exports.__esModule = true;
|
1899 | } else {
|
1900 | module.exports = _typeof = function _typeof(obj) {
|
1901 | return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
1902 | };
|
1903 |
|
1904 | module.exports["default"] = module.exports, module.exports.__esModule = true;
|
1905 | }
|
1906 |
|
1907 | return _typeof(obj);
|
1908 | }
|
1909 |
|
1910 | module.exports = _typeof;
|
1911 | module.exports["default"] = module.exports, module.exports.__esModule = true;
|
1912 |
|
1913 | }),
|
1914 |
|
1915 | "7418":
|
1916 | (function(module, exports) {
|
1917 |
|
1918 |
|
1919 | exports.f = Object.getOwnPropertySymbols;
|
1920 |
|
1921 |
|
1922 | }),
|
1923 |
|
1924 | "746f":
|
1925 | (function(module, exports, __webpack_require__) {
|
1926 |
|
1927 | var path = __webpack_require__("428f");
|
1928 | var has = __webpack_require__("5135");
|
1929 | var wrappedWellKnownSymbolModule = __webpack_require__("e538");
|
1930 | var defineProperty = __webpack_require__("9bf2").f;
|
1931 |
|
1932 | module.exports = function (NAME) {
|
1933 | var Symbol = path.Symbol || (path.Symbol = {});
|
1934 | if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
|
1935 | value: wrappedWellKnownSymbolModule.f(NAME)
|
1936 | });
|
1937 | };
|
1938 |
|
1939 |
|
1940 | }),
|
1941 |
|
1942 | "7839":
|
1943 | (function(module, exports) {
|
1944 |
|
1945 |
|
1946 | module.exports = [
|
1947 | 'constructor',
|
1948 | 'hasOwnProperty',
|
1949 | 'isPrototypeOf',
|
1950 | 'propertyIsEnumerable',
|
1951 | 'toLocaleString',
|
1952 | 'toString',
|
1953 | 'valueOf'
|
1954 | ];
|
1955 |
|
1956 |
|
1957 | }),
|
1958 |
|
1959 | "7b0b":
|
1960 | (function(module, exports, __webpack_require__) {
|
1961 |
|
1962 | var requireObjectCoercible = __webpack_require__("1d80");
|
1963 |
|
1964 |
|
1965 |
|
1966 | module.exports = function (argument) {
|
1967 | return Object(requireObjectCoercible(argument));
|
1968 | };
|
1969 |
|
1970 |
|
1971 | }),
|
1972 |
|
1973 | "7c73":
|
1974 | (function(module, exports, __webpack_require__) {
|
1975 |
|
1976 | var anObject = __webpack_require__("825a");
|
1977 | var defineProperties = __webpack_require__("37e8");
|
1978 | var enumBugKeys = __webpack_require__("7839");
|
1979 | var hiddenKeys = __webpack_require__("d012");
|
1980 | var html = __webpack_require__("1be4");
|
1981 | var documentCreateElement = __webpack_require__("cc12");
|
1982 | var sharedKey = __webpack_require__("f772");
|
1983 |
|
1984 | var GT = '>';
|
1985 | var LT = '<';
|
1986 | var PROTOTYPE = 'prototype';
|
1987 | var SCRIPT = 'script';
|
1988 | var IE_PROTO = sharedKey('IE_PROTO');
|
1989 |
|
1990 | var EmptyConstructor = function () { };
|
1991 |
|
1992 | var scriptTag = function (content) {
|
1993 | return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1994 | };
|
1995 |
|
1996 |
|
1997 | var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1998 | activeXDocument.write(scriptTag(''));
|
1999 | activeXDocument.close();
|
2000 | var temp = activeXDocument.parentWindow.Object;
|
2001 | activeXDocument = null;
|
2002 | return temp;
|
2003 | };
|
2004 |
|
2005 |
|
2006 | var NullProtoObjectViaIFrame = function () {
|
2007 |
|
2008 | var iframe = documentCreateElement('iframe');
|
2009 | var JS = 'java' + SCRIPT + ':';
|
2010 | var iframeDocument;
|
2011 | iframe.style.display = 'none';
|
2012 | html.appendChild(iframe);
|
2013 |
|
2014 | iframe.src = String(JS);
|
2015 | iframeDocument = iframe.contentWindow.document;
|
2016 | iframeDocument.open();
|
2017 | iframeDocument.write(scriptTag('document.F=Object'));
|
2018 | iframeDocument.close();
|
2019 | return iframeDocument.F;
|
2020 | };
|
2021 |
|
2022 |
|
2023 |
|
2024 |
|
2025 |
|
2026 |
|
2027 | var activeXDocument;
|
2028 | var NullProtoObject = function () {
|
2029 | try {
|
2030 |
|
2031 | activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
2032 | } catch (error) { }
|
2033 | NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
2034 | var length = enumBugKeys.length;
|
2035 | while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
2036 | return NullProtoObject();
|
2037 | };
|
2038 |
|
2039 | hiddenKeys[IE_PROTO] = true;
|
2040 |
|
2041 |
|
2042 |
|
2043 | module.exports = Object.create || function create(O, Properties) {
|
2044 | var result;
|
2045 | if (O !== null) {
|
2046 | EmptyConstructor[PROTOTYPE] = anObject(O);
|
2047 | result = new EmptyConstructor();
|
2048 | EmptyConstructor[PROTOTYPE] = null;
|
2049 |
|
2050 | result[IE_PROTO] = O;
|
2051 | } else result = NullProtoObject();
|
2052 | return Properties === undefined ? result : defineProperties(result, Properties);
|
2053 | };
|
2054 |
|
2055 |
|
2056 | }),
|
2057 |
|
2058 | "7db0":
|
2059 | (function(module, exports, __webpack_require__) {
|
2060 |
|
2061 | "use strict";
|
2062 |
|
2063 | var $ = __webpack_require__("23e7");
|
2064 | var $find = __webpack_require__("b727").find;
|
2065 | var addToUnscopables = __webpack_require__("44d2");
|
2066 |
|
2067 | var FIND = 'find';
|
2068 | var SKIPS_HOLES = true;
|
2069 |
|
2070 |
|
2071 | if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
2072 |
|
2073 |
|
2074 |
|
2075 | $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
2076 | find: function find(callbackfn /* , that = undefined */) {
|
2077 | return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
2078 | }
|
2079 | });
|
2080 |
|
2081 |
|
2082 | addToUnscopables(FIND);
|
2083 |
|
2084 |
|
2085 | }),
|
2086 |
|
2087 | "7dd0":
|
2088 | (function(module, exports, __webpack_require__) {
|
2089 |
|
2090 | "use strict";
|
2091 |
|
2092 | var $ = __webpack_require__("23e7");
|
2093 | var createIteratorConstructor = __webpack_require__("9ed3");
|
2094 | var getPrototypeOf = __webpack_require__("e163");
|
2095 | var setPrototypeOf = __webpack_require__("d2bb");
|
2096 | var setToStringTag = __webpack_require__("d44e");
|
2097 | var createNonEnumerableProperty = __webpack_require__("9112");
|
2098 | var redefine = __webpack_require__("6eeb");
|
2099 | var wellKnownSymbol = __webpack_require__("b622");
|
2100 | var IS_PURE = __webpack_require__("c430");
|
2101 | var Iterators = __webpack_require__("3f8c");
|
2102 | var IteratorsCore = __webpack_require__("ae93");
|
2103 |
|
2104 | var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
2105 | var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
2106 | var ITERATOR = wellKnownSymbol('iterator');
|
2107 | var KEYS = 'keys';
|
2108 | var VALUES = 'values';
|
2109 | var ENTRIES = 'entries';
|
2110 |
|
2111 | var returnThis = function () { return this; };
|
2112 |
|
2113 | module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
2114 | createIteratorConstructor(IteratorConstructor, NAME, next);
|
2115 |
|
2116 | var getIterationMethod = function (KIND) {
|
2117 | if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
2118 | if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
2119 | switch (KIND) {
|
2120 | case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
2121 | case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
2122 | case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
2123 | } return function () { return new IteratorConstructor(this); };
|
2124 | };
|
2125 |
|
2126 | var TO_STRING_TAG = NAME + ' Iterator';
|
2127 | var INCORRECT_VALUES_NAME = false;
|
2128 | var IterablePrototype = Iterable.prototype;
|
2129 | var nativeIterator = IterablePrototype[ITERATOR]
|
2130 | || IterablePrototype['@@iterator']
|
2131 | || DEFAULT && IterablePrototype[DEFAULT];
|
2132 | var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
2133 | var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
2134 | var CurrentIteratorPrototype, methods, KEY;
|
2135 |
|
2136 |
|
2137 | if (anyNativeIterator) {
|
2138 | CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
2139 | if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
2140 | if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
2141 | if (setPrototypeOf) {
|
2142 | setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
2143 | } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {
|
2144 | createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
|
2145 | }
|
2146 | }
|
2147 |
|
2148 | setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
|
2149 | if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
|
2150 | }
|
2151 | }
|
2152 |
|
2153 |
|
2154 | if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
2155 | INCORRECT_VALUES_NAME = true;
|
2156 | defaultIterator = function values() { return nativeIterator.call(this); };
|
2157 | }
|
2158 |
|
2159 |
|
2160 | if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
|
2161 | createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
|
2162 | }
|
2163 | Iterators[NAME] = defaultIterator;
|
2164 |
|
2165 |
|
2166 | if (DEFAULT) {
|
2167 | methods = {
|
2168 | values: getIterationMethod(VALUES),
|
2169 | keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
2170 | entries: getIterationMethod(ENTRIES)
|
2171 | };
|
2172 | if (FORCED) for (KEY in methods) {
|
2173 | if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
2174 | redefine(IterablePrototype, KEY, methods[KEY]);
|
2175 | }
|
2176 | } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
2177 | }
|
2178 |
|
2179 | return methods;
|
2180 | };
|
2181 |
|
2182 |
|
2183 | }),
|
2184 |
|
2185 | "7f9a":
|
2186 | (function(module, exports, __webpack_require__) {
|
2187 |
|
2188 | var global = __webpack_require__("da84");
|
2189 | var inspectSource = __webpack_require__("8925");
|
2190 |
|
2191 | var WeakMap = global.WeakMap;
|
2192 |
|
2193 | module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
|
2194 |
|
2195 |
|
2196 | }),
|
2197 |
|
2198 | "825a":
|
2199 | (function(module, exports, __webpack_require__) {
|
2200 |
|
2201 | var isObject = __webpack_require__("861d");
|
2202 |
|
2203 | module.exports = function (it) {
|
2204 | if (!isObject(it)) {
|
2205 | throw TypeError(String(it) + ' is not an object');
|
2206 | } return it;
|
2207 | };
|
2208 |
|
2209 |
|
2210 | }),
|
2211 |
|
2212 | "83ab":
|
2213 | (function(module, exports, __webpack_require__) {
|
2214 |
|
2215 | var fails = __webpack_require__("d039");
|
2216 |
|
2217 |
|
2218 | module.exports = !fails(function () {
|
2219 |
|
2220 | return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
2221 | });
|
2222 |
|
2223 |
|
2224 | }),
|
2225 |
|
2226 | "8418":
|
2227 | (function(module, exports, __webpack_require__) {
|
2228 |
|
2229 | "use strict";
|
2230 |
|
2231 | var toPrimitive = __webpack_require__("c04e");
|
2232 | var definePropertyModule = __webpack_require__("9bf2");
|
2233 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
2234 |
|
2235 | module.exports = function (object, key, value) {
|
2236 | var propertyKey = toPrimitive(key);
|
2237 | if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
2238 | else object[propertyKey] = value;
|
2239 | };
|
2240 |
|
2241 |
|
2242 | }),
|
2243 |
|
2244 | "861d":
|
2245 | (function(module, exports) {
|
2246 |
|
2247 | module.exports = function (it) {
|
2248 | return typeof it === 'object' ? it !== null : typeof it === 'function';
|
2249 | };
|
2250 |
|
2251 |
|
2252 | }),
|
2253 |
|
2254 | "8875":
|
2255 | (function(module, exports, __webpack_require__) {
|
2256 |
|
2257 | var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
2258 |
|
2259 |
|
2260 |
|
2261 |
|
2262 |
|
2263 | (function (root, factory) {
|
2264 | if (true) {
|
2265 | !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
2266 | __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
2267 | (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
2268 | __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
2269 | } else {}
|
2270 | }(typeof self !== 'undefined' ? self : this, function () {
|
2271 | function getCurrentScript () {
|
2272 | var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
|
2273 |
|
2274 | if (!descriptor && 'currentScript' in document && document.currentScript) {
|
2275 | return document.currentScript
|
2276 | }
|
2277 |
|
2278 |
|
2279 | if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
|
2280 | return document.currentScript
|
2281 | }
|
2282 |
|
2283 |
|
2284 |
|
2285 | try {
|
2286 | throw new Error();
|
2287 | }
|
2288 | catch (err) {
|
2289 |
|
2290 | var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
|
2291 | ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
|
2292 | stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
|
2293 | scriptLocation = (stackDetails && stackDetails[1]) || false,
|
2294 | line = (stackDetails && stackDetails[2]) || false,
|
2295 | currentLocation = document.location.href.replace(document.location.hash, ''),
|
2296 | pageSource,
|
2297 | inlineScriptSourceRegExp,
|
2298 | inlineScriptSource,
|
2299 | scripts = document.getElementsByTagName('script');
|
2300 |
|
2301 | if (scriptLocation === currentLocation) {
|
2302 | pageSource = document.documentElement.outerHTML;
|
2303 | inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
|
2304 | inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
|
2305 | }
|
2306 |
|
2307 | for (var i = 0; i < scripts.length; i++) {
|
2308 |
|
2309 | if (scripts[i].readyState === 'interactive') {
|
2310 | return scripts[i];
|
2311 | }
|
2312 |
|
2313 |
|
2314 | if (scripts[i].src === scriptLocation) {
|
2315 | return scripts[i];
|
2316 | }
|
2317 |
|
2318 |
|
2319 | if (
|
2320 | scriptLocation === currentLocation &&
|
2321 | scripts[i].innerHTML &&
|
2322 | scripts[i].innerHTML.trim() === inlineScriptSource
|
2323 | ) {
|
2324 | return scripts[i];
|
2325 | }
|
2326 | }
|
2327 |
|
2328 |
|
2329 | return null;
|
2330 | }
|
2331 | };
|
2332 |
|
2333 | return getCurrentScript
|
2334 | }));
|
2335 |
|
2336 |
|
2337 | }),
|
2338 |
|
2339 | "8925":
|
2340 | (function(module, exports, __webpack_require__) {
|
2341 |
|
2342 | var store = __webpack_require__("c6cd");
|
2343 |
|
2344 | var functionToString = Function.toString;
|
2345 |
|
2346 |
|
2347 | if (typeof store.inspectSource != 'function') {
|
2348 | store.inspectSource = function (it) {
|
2349 | return functionToString.call(it);
|
2350 | };
|
2351 | }
|
2352 |
|
2353 | module.exports = store.inspectSource;
|
2354 |
|
2355 |
|
2356 | }),
|
2357 |
|
2358 | "8aa5":
|
2359 | (function(module, exports, __webpack_require__) {
|
2360 |
|
2361 | "use strict";
|
2362 |
|
2363 | var charAt = __webpack_require__("6547").charAt;
|
2364 |
|
2365 |
|
2366 |
|
2367 | module.exports = function (S, index, unicode) {
|
2368 | return index + (unicode ? charAt(S, index).length : 1);
|
2369 | };
|
2370 |
|
2371 |
|
2372 | }),
|
2373 |
|
2374 | "8bbf":
|
2375 | (function(module, exports) {
|
2376 |
|
2377 | module.exports = require("vue");
|
2378 |
|
2379 | }),
|
2380 |
|
2381 | "90e3":
|
2382 | (function(module, exports) {
|
2383 |
|
2384 | var id = 0;
|
2385 | var postfix = Math.random();
|
2386 |
|
2387 | module.exports = function (key) {
|
2388 | return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
2389 | };
|
2390 |
|
2391 |
|
2392 | }),
|
2393 |
|
2394 | "9112":
|
2395 | (function(module, exports, __webpack_require__) {
|
2396 |
|
2397 | var DESCRIPTORS = __webpack_require__("83ab");
|
2398 | var definePropertyModule = __webpack_require__("9bf2");
|
2399 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
2400 |
|
2401 | module.exports = DESCRIPTORS ? function (object, key, value) {
|
2402 | return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
2403 | } : function (object, key, value) {
|
2404 | object[key] = value;
|
2405 | return object;
|
2406 | };
|
2407 |
|
2408 |
|
2409 | }),
|
2410 |
|
2411 | "9263":
|
2412 | (function(module, exports, __webpack_require__) {
|
2413 |
|
2414 | "use strict";
|
2415 |
|
2416 | var regexpFlags = __webpack_require__("ad6d");
|
2417 | var stickyHelpers = __webpack_require__("9f7f");
|
2418 | var shared = __webpack_require__("5692");
|
2419 |
|
2420 | var nativeExec = RegExp.prototype.exec;
|
2421 | var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
2422 |
|
2423 | var patchedExec = nativeExec;
|
2424 |
|
2425 | var UPDATES_LAST_INDEX_WRONG = (function () {
|
2426 | var re1 = /a/;
|
2427 | var re2 = /b*/g;
|
2428 | nativeExec.call(re1, 'a');
|
2429 | nativeExec.call(re2, 'a');
|
2430 | return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
2431 | })();
|
2432 |
|
2433 | var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
|
2434 |
|
2435 |
|
2436 |
|
2437 | var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
2438 |
|
2439 | var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
|
2440 |
|
2441 | if (PATCH) {
|
2442 | patchedExec = function exec(str) {
|
2443 | var re = this;
|
2444 | var lastIndex, reCopy, match, i;
|
2445 | var sticky = UNSUPPORTED_Y && re.sticky;
|
2446 | var flags = regexpFlags.call(re);
|
2447 | var source = re.source;
|
2448 | var charsAdded = 0;
|
2449 | var strCopy = str;
|
2450 |
|
2451 | if (sticky) {
|
2452 | flags = flags.replace('y', '');
|
2453 | if (flags.indexOf('g') === -1) {
|
2454 | flags += 'g';
|
2455 | }
|
2456 |
|
2457 | strCopy = String(str).slice(re.lastIndex);
|
2458 |
|
2459 | if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
|
2460 | source = '(?: ' + source + ')';
|
2461 | strCopy = ' ' + strCopy;
|
2462 | charsAdded++;
|
2463 | }
|
2464 |
|
2465 |
|
2466 | reCopy = new RegExp('^(?:' + source + ')', flags);
|
2467 | }
|
2468 |
|
2469 | if (NPCG_INCLUDED) {
|
2470 | reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
2471 | }
|
2472 | if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
2473 |
|
2474 | match = nativeExec.call(sticky ? reCopy : re, strCopy);
|
2475 |
|
2476 | if (sticky) {
|
2477 | if (match) {
|
2478 | match.input = match.input.slice(charsAdded);
|
2479 | match[0] = match[0].slice(charsAdded);
|
2480 | match.index = re.lastIndex;
|
2481 | re.lastIndex += match[0].length;
|
2482 | } else re.lastIndex = 0;
|
2483 | } else if (UPDATES_LAST_INDEX_WRONG && match) {
|
2484 | re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
2485 | }
|
2486 | if (NPCG_INCLUDED && match && match.length > 1) {
|
2487 |
|
2488 |
|
2489 | nativeReplace.call(match[0], reCopy, function () {
|
2490 | for (i = 1; i < arguments.length - 2; i++) {
|
2491 | if (arguments[i] === undefined) match[i] = undefined;
|
2492 | }
|
2493 | });
|
2494 | }
|
2495 |
|
2496 | return match;
|
2497 | };
|
2498 | }
|
2499 |
|
2500 | module.exports = patchedExec;
|
2501 |
|
2502 |
|
2503 | }),
|
2504 |
|
2505 | "94ca":
|
2506 | (function(module, exports, __webpack_require__) {
|
2507 |
|
2508 | var fails = __webpack_require__("d039");
|
2509 |
|
2510 | var replacement = /#|\.prototype\./;
|
2511 |
|
2512 | var isForced = function (feature, detection) {
|
2513 | var value = data[normalize(feature)];
|
2514 | return value == POLYFILL ? true
|
2515 | : value == NATIVE ? false
|
2516 | : typeof detection == 'function' ? fails(detection)
|
2517 | : !!detection;
|
2518 | };
|
2519 |
|
2520 | var normalize = isForced.normalize = function (string) {
|
2521 | return String(string).replace(replacement, '.').toLowerCase();
|
2522 | };
|
2523 |
|
2524 | var data = isForced.data = {};
|
2525 | var NATIVE = isForced.NATIVE = 'N';
|
2526 | var POLYFILL = isForced.POLYFILL = 'P';
|
2527 |
|
2528 | module.exports = isForced;
|
2529 |
|
2530 |
|
2531 | }),
|
2532 |
|
2533 | "99af":
|
2534 | (function(module, exports, __webpack_require__) {
|
2535 |
|
2536 | "use strict";
|
2537 |
|
2538 | var $ = __webpack_require__("23e7");
|
2539 | var fails = __webpack_require__("d039");
|
2540 | var isArray = __webpack_require__("e8b5");
|
2541 | var isObject = __webpack_require__("861d");
|
2542 | var toObject = __webpack_require__("7b0b");
|
2543 | var toLength = __webpack_require__("50c4");
|
2544 | var createProperty = __webpack_require__("8418");
|
2545 | var arraySpeciesCreate = __webpack_require__("65f0");
|
2546 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
2547 | var wellKnownSymbol = __webpack_require__("b622");
|
2548 | var V8_VERSION = __webpack_require__("2d00");
|
2549 |
|
2550 | var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
2551 | var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
2552 | var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
2553 |
|
2554 |
|
2555 |
|
2556 |
|
2557 | var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
|
2558 | var array = [];
|
2559 | array[IS_CONCAT_SPREADABLE] = false;
|
2560 | return array.concat()[0] !== array;
|
2561 | });
|
2562 |
|
2563 | var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
2564 |
|
2565 | var isConcatSpreadable = function (O) {
|
2566 | if (!isObject(O)) return false;
|
2567 | var spreadable = O[IS_CONCAT_SPREADABLE];
|
2568 | return spreadable !== undefined ? !!spreadable : isArray(O);
|
2569 | };
|
2570 |
|
2571 | var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
2572 |
|
2573 |
|
2574 |
|
2575 |
|
2576 | $({ target: 'Array', proto: true, forced: FORCED }, {
|
2577 |
|
2578 | concat: function concat(arg) {
|
2579 | var O = toObject(this);
|
2580 | var A = arraySpeciesCreate(O, 0);
|
2581 | var n = 0;
|
2582 | var i, k, length, len, E;
|
2583 | for (i = -1, length = arguments.length; i < length; i++) {
|
2584 | E = i === -1 ? O : arguments[i];
|
2585 | if (isConcatSpreadable(E)) {
|
2586 | len = toLength(E.length);
|
2587 | if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
2588 | for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
2589 | } else {
|
2590 | if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
2591 | createProperty(A, n++, E);
|
2592 | }
|
2593 | }
|
2594 | A.length = n;
|
2595 | return A;
|
2596 | }
|
2597 | });
|
2598 |
|
2599 |
|
2600 | }),
|
2601 |
|
2602 | "9bdd":
|
2603 | (function(module, exports, __webpack_require__) {
|
2604 |
|
2605 | var anObject = __webpack_require__("825a");
|
2606 | var iteratorClose = __webpack_require__("2a62");
|
2607 |
|
2608 |
|
2609 | module.exports = function (iterator, fn, value, ENTRIES) {
|
2610 | try {
|
2611 | return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
2612 |
|
2613 | } catch (error) {
|
2614 | iteratorClose(iterator);
|
2615 | throw error;
|
2616 | }
|
2617 | };
|
2618 |
|
2619 |
|
2620 | }),
|
2621 |
|
2622 | "9bf2":
|
2623 | (function(module, exports, __webpack_require__) {
|
2624 |
|
2625 | var DESCRIPTORS = __webpack_require__("83ab");
|
2626 | var IE8_DOM_DEFINE = __webpack_require__("0cfb");
|
2627 | var anObject = __webpack_require__("825a");
|
2628 | var toPrimitive = __webpack_require__("c04e");
|
2629 |
|
2630 |
|
2631 | var $defineProperty = Object.defineProperty;
|
2632 |
|
2633 |
|
2634 |
|
2635 | exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {
|
2636 | anObject(O);
|
2637 | P = toPrimitive(P, true);
|
2638 | anObject(Attributes);
|
2639 | if (IE8_DOM_DEFINE) try {
|
2640 | return $defineProperty(O, P, Attributes);
|
2641 | } catch (error) { }
|
2642 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
2643 | if ('value' in Attributes) O[P] = Attributes.value;
|
2644 | return O;
|
2645 | };
|
2646 |
|
2647 |
|
2648 | }),
|
2649 |
|
2650 | "9ed3":
|
2651 | (function(module, exports, __webpack_require__) {
|
2652 |
|
2653 | "use strict";
|
2654 |
|
2655 | var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype;
|
2656 | var create = __webpack_require__("7c73");
|
2657 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
2658 | var setToStringTag = __webpack_require__("d44e");
|
2659 | var Iterators = __webpack_require__("3f8c");
|
2660 |
|
2661 | var returnThis = function () { return this; };
|
2662 |
|
2663 | module.exports = function (IteratorConstructor, NAME, next) {
|
2664 | var TO_STRING_TAG = NAME + ' Iterator';
|
2665 | IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
|
2666 | setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
|
2667 | Iterators[TO_STRING_TAG] = returnThis;
|
2668 | return IteratorConstructor;
|
2669 | };
|
2670 |
|
2671 |
|
2672 | }),
|
2673 |
|
2674 | "9f7f":
|
2675 | (function(module, exports, __webpack_require__) {
|
2676 |
|
2677 | "use strict";
|
2678 |
|
2679 |
|
2680 | var fails = __webpack_require__("d039");
|
2681 |
|
2682 |
|
2683 |
|
2684 | function RE(s, f) {
|
2685 | return RegExp(s, f);
|
2686 | }
|
2687 |
|
2688 | exports.UNSUPPORTED_Y = fails(function () {
|
2689 |
|
2690 | var re = RE('a', 'y');
|
2691 | re.lastIndex = 2;
|
2692 | return re.exec('abcd') != null;
|
2693 | });
|
2694 |
|
2695 | exports.BROKEN_CARET = fails(function () {
|
2696 |
|
2697 | var re = RE('^r', 'gy');
|
2698 | re.lastIndex = 2;
|
2699 | return re.exec('str') != null;
|
2700 | });
|
2701 |
|
2702 |
|
2703 | }),
|
2704 |
|
2705 | "a434":
|
2706 | (function(module, exports, __webpack_require__) {
|
2707 |
|
2708 | "use strict";
|
2709 |
|
2710 | var $ = __webpack_require__("23e7");
|
2711 | var toAbsoluteIndex = __webpack_require__("23cb");
|
2712 | var toInteger = __webpack_require__("a691");
|
2713 | var toLength = __webpack_require__("50c4");
|
2714 | var toObject = __webpack_require__("7b0b");
|
2715 | var arraySpeciesCreate = __webpack_require__("65f0");
|
2716 | var createProperty = __webpack_require__("8418");
|
2717 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
2718 |
|
2719 | var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
|
2720 |
|
2721 | var max = Math.max;
|
2722 | var min = Math.min;
|
2723 | var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
2724 | var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
|
2725 |
|
2726 |
|
2727 |
|
2728 |
|
2729 | $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
2730 | splice: function splice(start, deleteCount /* , ...items */) {
|
2731 | var O = toObject(this);
|
2732 | var len = toLength(O.length);
|
2733 | var actualStart = toAbsoluteIndex(start, len);
|
2734 | var argumentsLength = arguments.length;
|
2735 | var insertCount, actualDeleteCount, A, k, from, to;
|
2736 | if (argumentsLength === 0) {
|
2737 | insertCount = actualDeleteCount = 0;
|
2738 | } else if (argumentsLength === 1) {
|
2739 | insertCount = 0;
|
2740 | actualDeleteCount = len - actualStart;
|
2741 | } else {
|
2742 | insertCount = argumentsLength - 2;
|
2743 | actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
|
2744 | }
|
2745 | if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
|
2746 | throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
|
2747 | }
|
2748 | A = arraySpeciesCreate(O, actualDeleteCount);
|
2749 | for (k = 0; k < actualDeleteCount; k++) {
|
2750 | from = actualStart + k;
|
2751 | if (from in O) createProperty(A, k, O[from]);
|
2752 | }
|
2753 | A.length = actualDeleteCount;
|
2754 | if (insertCount < actualDeleteCount) {
|
2755 | for (k = actualStart; k < len - actualDeleteCount; k++) {
|
2756 | from = k + actualDeleteCount;
|
2757 | to = k + insertCount;
|
2758 | if (from in O) O[to] = O[from];
|
2759 | else delete O[to];
|
2760 | }
|
2761 | for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
|
2762 | } else if (insertCount > actualDeleteCount) {
|
2763 | for (k = len - actualDeleteCount; k > actualStart; k--) {
|
2764 | from = k + actualDeleteCount - 1;
|
2765 | to = k + insertCount - 1;
|
2766 | if (from in O) O[to] = O[from];
|
2767 | else delete O[to];
|
2768 | }
|
2769 | }
|
2770 | for (k = 0; k < insertCount; k++) {
|
2771 | O[k + actualStart] = arguments[k + 2];
|
2772 | }
|
2773 | O.length = len - actualDeleteCount + insertCount;
|
2774 | return A;
|
2775 | }
|
2776 | });
|
2777 |
|
2778 |
|
2779 | }),
|
2780 |
|
2781 | "a4b4":
|
2782 | (function(module, exports, __webpack_require__) {
|
2783 |
|
2784 | var userAgent = __webpack_require__("342f");
|
2785 |
|
2786 | module.exports = /web0s(?!.*chrome)/i.test(userAgent);
|
2787 |
|
2788 |
|
2789 | }),
|
2790 |
|
2791 | "a4d3":
|
2792 | (function(module, exports, __webpack_require__) {
|
2793 |
|
2794 | "use strict";
|
2795 |
|
2796 | var $ = __webpack_require__("23e7");
|
2797 | var global = __webpack_require__("da84");
|
2798 | var getBuiltIn = __webpack_require__("d066");
|
2799 | var IS_PURE = __webpack_require__("c430");
|
2800 | var DESCRIPTORS = __webpack_require__("83ab");
|
2801 | var NATIVE_SYMBOL = __webpack_require__("4930");
|
2802 | var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
|
2803 | var fails = __webpack_require__("d039");
|
2804 | var has = __webpack_require__("5135");
|
2805 | var isArray = __webpack_require__("e8b5");
|
2806 | var isObject = __webpack_require__("861d");
|
2807 | var anObject = __webpack_require__("825a");
|
2808 | var toObject = __webpack_require__("7b0b");
|
2809 | var toIndexedObject = __webpack_require__("fc6a");
|
2810 | var toPrimitive = __webpack_require__("c04e");
|
2811 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
2812 | var nativeObjectCreate = __webpack_require__("7c73");
|
2813 | var objectKeys = __webpack_require__("df75");
|
2814 | var getOwnPropertyNamesModule = __webpack_require__("241c");
|
2815 | var getOwnPropertyNamesExternal = __webpack_require__("057f");
|
2816 | var getOwnPropertySymbolsModule = __webpack_require__("7418");
|
2817 | var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
|
2818 | var definePropertyModule = __webpack_require__("9bf2");
|
2819 | var propertyIsEnumerableModule = __webpack_require__("d1e7");
|
2820 | var createNonEnumerableProperty = __webpack_require__("9112");
|
2821 | var redefine = __webpack_require__("6eeb");
|
2822 | var shared = __webpack_require__("5692");
|
2823 | var sharedKey = __webpack_require__("f772");
|
2824 | var hiddenKeys = __webpack_require__("d012");
|
2825 | var uid = __webpack_require__("90e3");
|
2826 | var wellKnownSymbol = __webpack_require__("b622");
|
2827 | var wrappedWellKnownSymbolModule = __webpack_require__("e538");
|
2828 | var defineWellKnownSymbol = __webpack_require__("746f");
|
2829 | var setToStringTag = __webpack_require__("d44e");
|
2830 | var InternalStateModule = __webpack_require__("69f3");
|
2831 | var $forEach = __webpack_require__("b727").forEach;
|
2832 |
|
2833 | var HIDDEN = sharedKey('hidden');
|
2834 | var SYMBOL = 'Symbol';
|
2835 | var PROTOTYPE = 'prototype';
|
2836 | var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
2837 | var setInternalState = InternalStateModule.set;
|
2838 | var getInternalState = InternalStateModule.getterFor(SYMBOL);
|
2839 | var ObjectPrototype = Object[PROTOTYPE];
|
2840 | var $Symbol = global.Symbol;
|
2841 | var $stringify = getBuiltIn('JSON', 'stringify');
|
2842 | var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
2843 | var nativeDefineProperty = definePropertyModule.f;
|
2844 | var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
|
2845 | var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
|
2846 | var AllSymbols = shared('symbols');
|
2847 | var ObjectPrototypeSymbols = shared('op-symbols');
|
2848 | var StringToSymbolRegistry = shared('string-to-symbol-registry');
|
2849 | var SymbolToStringRegistry = shared('symbol-to-string-registry');
|
2850 | var WellKnownSymbolsStore = shared('wks');
|
2851 | var QObject = global.QObject;
|
2852 |
|
2853 | var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
2854 |
|
2855 |
|
2856 | var setSymbolDescriptor = DESCRIPTORS && fails(function () {
|
2857 | return nativeObjectCreate(nativeDefineProperty({}, 'a', {
|
2858 | get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
|
2859 | })).a != 7;
|
2860 | }) ? function (O, P, Attributes) {
|
2861 | var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
|
2862 | if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
|
2863 | nativeDefineProperty(O, P, Attributes);
|
2864 | if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
|
2865 | nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
|
2866 | }
|
2867 | } : nativeDefineProperty;
|
2868 |
|
2869 | var wrap = function (tag, description) {
|
2870 | var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
|
2871 | setInternalState(symbol, {
|
2872 | type: SYMBOL,
|
2873 | tag: tag,
|
2874 | description: description
|
2875 | });
|
2876 | if (!DESCRIPTORS) symbol.description = description;
|
2877 | return symbol;
|
2878 | };
|
2879 |
|
2880 | var isSymbol = USE_SYMBOL_AS_UID ? function (it) {
|
2881 | return typeof it == 'symbol';
|
2882 | } : function (it) {
|
2883 | return Object(it) instanceof $Symbol;
|
2884 | };
|
2885 |
|
2886 | var $defineProperty = function defineProperty(O, P, Attributes) {
|
2887 | if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
2888 | anObject(O);
|
2889 | var key = toPrimitive(P, true);
|
2890 | anObject(Attributes);
|
2891 | if (has(AllSymbols, key)) {
|
2892 | if (!Attributes.enumerable) {
|
2893 | if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
|
2894 | O[HIDDEN][key] = true;
|
2895 | } else {
|
2896 | if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
2897 | Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
|
2898 | } return setSymbolDescriptor(O, key, Attributes);
|
2899 | } return nativeDefineProperty(O, key, Attributes);
|
2900 | };
|
2901 |
|
2902 | var $defineProperties = function defineProperties(O, Properties) {
|
2903 | anObject(O);
|
2904 | var properties = toIndexedObject(Properties);
|
2905 | var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
|
2906 | $forEach(keys, function (key) {
|
2907 | if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
|
2908 | });
|
2909 | return O;
|
2910 | };
|
2911 |
|
2912 | var $create = function create(O, Properties) {
|
2913 | return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
|
2914 | };
|
2915 |
|
2916 | var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
2917 | var P = toPrimitive(V, true);
|
2918 | var enumerable = nativePropertyIsEnumerable.call(this, P);
|
2919 | if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
|
2920 | return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
2921 | };
|
2922 |
|
2923 | var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
2924 | var it = toIndexedObject(O);
|
2925 | var key = toPrimitive(P, true);
|
2926 | if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
|
2927 | var descriptor = nativeGetOwnPropertyDescriptor(it, key);
|
2928 | if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
|
2929 | descriptor.enumerable = true;
|
2930 | }
|
2931 | return descriptor;
|
2932 | };
|
2933 |
|
2934 | var $getOwnPropertyNames = function getOwnPropertyNames(O) {
|
2935 | var names = nativeGetOwnPropertyNames(toIndexedObject(O));
|
2936 | var result = [];
|
2937 | $forEach(names, function (key) {
|
2938 | if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
|
2939 | });
|
2940 | return result;
|
2941 | };
|
2942 |
|
2943 | var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
|
2944 | var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
|
2945 | var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
|
2946 | var result = [];
|
2947 | $forEach(names, function (key) {
|
2948 | if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
|
2949 | result.push(AllSymbols[key]);
|
2950 | }
|
2951 | });
|
2952 | return result;
|
2953 | };
|
2954 |
|
2955 |
|
2956 |
|
2957 | if (!NATIVE_SYMBOL) {
|
2958 | $Symbol = function Symbol() {
|
2959 | if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
|
2960 | var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
|
2961 | var tag = uid(description);
|
2962 | var setter = function (value) {
|
2963 | if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
|
2964 | if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
2965 | setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
|
2966 | };
|
2967 | if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
|
2968 | return wrap(tag, description);
|
2969 | };
|
2970 |
|
2971 | redefine($Symbol[PROTOTYPE], 'toString', function toString() {
|
2972 | return getInternalState(this).tag;
|
2973 | });
|
2974 |
|
2975 | redefine($Symbol, 'withoutSetter', function (description) {
|
2976 | return wrap(uid(description), description);
|
2977 | });
|
2978 |
|
2979 | propertyIsEnumerableModule.f = $propertyIsEnumerable;
|
2980 | definePropertyModule.f = $defineProperty;
|
2981 | getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
|
2982 | getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
|
2983 | getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
|
2984 |
|
2985 | wrappedWellKnownSymbolModule.f = function (name) {
|
2986 | return wrap(wellKnownSymbol(name), name);
|
2987 | };
|
2988 |
|
2989 | if (DESCRIPTORS) {
|
2990 |
|
2991 | nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
|
2992 | configurable: true,
|
2993 | get: function description() {
|
2994 | return getInternalState(this).description;
|
2995 | }
|
2996 | });
|
2997 | if (!IS_PURE) {
|
2998 | redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
2999 | }
|
3000 | }
|
3001 | }
|
3002 |
|
3003 | $({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
3004 | Symbol: $Symbol
|
3005 | });
|
3006 |
|
3007 | $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
|
3008 | defineWellKnownSymbol(name);
|
3009 | });
|
3010 |
|
3011 | $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
3012 |
|
3013 |
|
3014 | 'for': function (key) {
|
3015 | var string = String(key);
|
3016 | if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
3017 | var symbol = $Symbol(string);
|
3018 | StringToSymbolRegistry[string] = symbol;
|
3019 | SymbolToStringRegistry[symbol] = string;
|
3020 | return symbol;
|
3021 | },
|
3022 |
|
3023 |
|
3024 | keyFor: function keyFor(sym) {
|
3025 | if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
|
3026 | if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
3027 | },
|
3028 | useSetter: function () { USE_SETTER = true; },
|
3029 | useSimple: function () { USE_SETTER = false; }
|
3030 | });
|
3031 |
|
3032 | $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
|
3033 |
|
3034 |
|
3035 | create: $create,
|
3036 |
|
3037 |
|
3038 | defineProperty: $defineProperty,
|
3039 |
|
3040 |
|
3041 | defineProperties: $defineProperties,
|
3042 |
|
3043 |
|
3044 | getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
3045 | });
|
3046 |
|
3047 | $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
|
3048 |
|
3049 |
|
3050 | getOwnPropertyNames: $getOwnPropertyNames,
|
3051 |
|
3052 |
|
3053 | getOwnPropertySymbols: $getOwnPropertySymbols
|
3054 | });
|
3055 |
|
3056 |
|
3057 |
|
3058 | $({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
|
3059 | getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
3060 | return getOwnPropertySymbolsModule.f(toObject(it));
|
3061 | }
|
3062 | });
|
3063 |
|
3064 |
|
3065 |
|
3066 | if ($stringify) {
|
3067 | var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
|
3068 | var symbol = $Symbol();
|
3069 |
|
3070 | return $stringify([symbol]) != '[null]'
|
3071 |
|
3072 | || $stringify({ a: symbol }) != '{}'
|
3073 |
|
3074 | || $stringify(Object(symbol)) != '{}';
|
3075 | });
|
3076 |
|
3077 | $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
|
3078 |
|
3079 | stringify: function stringify(it, replacer, space) {
|
3080 | var args = [it];
|
3081 | var index = 1;
|
3082 | var $replacer;
|
3083 | while (arguments.length > index) args.push(arguments[index++]);
|
3084 | $replacer = replacer;
|
3085 | if (!isObject(replacer) && it === undefined || isSymbol(it)) return;
|
3086 | if (!isArray(replacer)) replacer = function (key, value) {
|
3087 | if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
3088 | if (!isSymbol(value)) return value;
|
3089 | };
|
3090 | args[1] = replacer;
|
3091 | return $stringify.apply(null, args);
|
3092 | }
|
3093 | });
|
3094 | }
|
3095 |
|
3096 |
|
3097 |
|
3098 | if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
|
3099 | createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
3100 | }
|
3101 |
|
3102 |
|
3103 | setToStringTag($Symbol, SYMBOL);
|
3104 |
|
3105 | hiddenKeys[HIDDEN] = true;
|
3106 |
|
3107 |
|
3108 | }),
|
3109 |
|
3110 | "a630":
|
3111 | (function(module, exports, __webpack_require__) {
|
3112 |
|
3113 | var $ = __webpack_require__("23e7");
|
3114 | var from = __webpack_require__("4df4");
|
3115 | var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
3116 |
|
3117 | var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
3118 |
|
3119 | Array.from(iterable);
|
3120 | });
|
3121 |
|
3122 |
|
3123 |
|
3124 | $({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
3125 | from: from
|
3126 | });
|
3127 |
|
3128 |
|
3129 | }),
|
3130 |
|
3131 | "a640":
|
3132 | (function(module, exports, __webpack_require__) {
|
3133 |
|
3134 | "use strict";
|
3135 |
|
3136 | var fails = __webpack_require__("d039");
|
3137 |
|
3138 | module.exports = function (METHOD_NAME, argument) {
|
3139 | var method = [][METHOD_NAME];
|
3140 | return !!method && fails(function () {
|
3141 |
|
3142 | method.call(null, argument || function () { throw 1; }, 1);
|
3143 | });
|
3144 | };
|
3145 |
|
3146 |
|
3147 | }),
|
3148 |
|
3149 | "a691":
|
3150 | (function(module, exports) {
|
3151 |
|
3152 | var ceil = Math.ceil;
|
3153 | var floor = Math.floor;
|
3154 |
|
3155 |
|
3156 |
|
3157 | module.exports = function (argument) {
|
3158 | return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
|
3159 | };
|
3160 |
|
3161 |
|
3162 | }),
|
3163 |
|
3164 | "ac1f":
|
3165 | (function(module, exports, __webpack_require__) {
|
3166 |
|
3167 | "use strict";
|
3168 |
|
3169 | var $ = __webpack_require__("23e7");
|
3170 | var exec = __webpack_require__("9263");
|
3171 |
|
3172 |
|
3173 |
|
3174 | $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
3175 | exec: exec
|
3176 | });
|
3177 |
|
3178 |
|
3179 | }),
|
3180 |
|
3181 | "ad6d":
|
3182 | (function(module, exports, __webpack_require__) {
|
3183 |
|
3184 | "use strict";
|
3185 |
|
3186 | var anObject = __webpack_require__("825a");
|
3187 |
|
3188 |
|
3189 |
|
3190 | module.exports = function () {
|
3191 | var that = anObject(this);
|
3192 | var result = '';
|
3193 | if (that.global) result += 'g';
|
3194 | if (that.ignoreCase) result += 'i';
|
3195 | if (that.multiline) result += 'm';
|
3196 | if (that.dotAll) result += 's';
|
3197 | if (that.unicode) result += 'u';
|
3198 | if (that.sticky) result += 'y';
|
3199 | return result;
|
3200 | };
|
3201 |
|
3202 |
|
3203 | }),
|
3204 |
|
3205 | "ae93":
|
3206 | (function(module, exports, __webpack_require__) {
|
3207 |
|
3208 | "use strict";
|
3209 |
|
3210 | var fails = __webpack_require__("d039");
|
3211 | var getPrototypeOf = __webpack_require__("e163");
|
3212 | var createNonEnumerableProperty = __webpack_require__("9112");
|
3213 | var has = __webpack_require__("5135");
|
3214 | var wellKnownSymbol = __webpack_require__("b622");
|
3215 | var IS_PURE = __webpack_require__("c430");
|
3216 |
|
3217 | var ITERATOR = wellKnownSymbol('iterator');
|
3218 | var BUGGY_SAFARI_ITERATORS = false;
|
3219 |
|
3220 | var returnThis = function () { return this; };
|
3221 |
|
3222 |
|
3223 |
|
3224 | var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
3225 |
|
3226 |
|
3227 | if ([].keys) {
|
3228 | arrayIterator = [].keys();
|
3229 |
|
3230 | if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
3231 | else {
|
3232 | PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
|
3233 | if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
3234 | }
|
3235 | }
|
3236 |
|
3237 | var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
|
3238 | var test = {};
|
3239 |
|
3240 | return IteratorPrototype[ITERATOR].call(test) !== test;
|
3241 | });
|
3242 |
|
3243 | if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
3244 |
|
3245 |
|
3246 | if ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {
|
3247 | createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
|
3248 | }
|
3249 |
|
3250 | module.exports = {
|
3251 | IteratorPrototype: IteratorPrototype,
|
3252 | BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
3253 | };
|
3254 |
|
3255 |
|
3256 | }),
|
3257 |
|
3258 | "b041":
|
3259 | (function(module, exports, __webpack_require__) {
|
3260 |
|
3261 | "use strict";
|
3262 |
|
3263 | var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
|
3264 | var classof = __webpack_require__("f5df");
|
3265 |
|
3266 |
|
3267 |
|
3268 | module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
|
3269 | return '[object ' + classof(this) + ']';
|
3270 | };
|
3271 |
|
3272 |
|
3273 | }),
|
3274 |
|
3275 | "b0c0":
|
3276 | (function(module, exports, __webpack_require__) {
|
3277 |
|
3278 | var DESCRIPTORS = __webpack_require__("83ab");
|
3279 | var defineProperty = __webpack_require__("9bf2").f;
|
3280 |
|
3281 | var FunctionPrototype = Function.prototype;
|
3282 | var FunctionPrototypeToString = FunctionPrototype.toString;
|
3283 | var nameRE = /^\s*function ([^ (]*)/;
|
3284 | var NAME = 'name';
|
3285 |
|
3286 |
|
3287 |
|
3288 | if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
|
3289 | defineProperty(FunctionPrototype, NAME, {
|
3290 | configurable: true,
|
3291 | get: function () {
|
3292 | try {
|
3293 | return FunctionPrototypeToString.call(this).match(nameRE)[1];
|
3294 | } catch (error) {
|
3295 | return '';
|
3296 | }
|
3297 | }
|
3298 | });
|
3299 | }
|
3300 |
|
3301 |
|
3302 | }),
|
3303 |
|
3304 | "b575":
|
3305 | (function(module, exports, __webpack_require__) {
|
3306 |
|
3307 | var global = __webpack_require__("da84");
|
3308 | var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
3309 | var macrotask = __webpack_require__("2cf4").set;
|
3310 | var IS_IOS = __webpack_require__("1cdc");
|
3311 | var IS_WEBOS_WEBKIT = __webpack_require__("a4b4");
|
3312 | var IS_NODE = __webpack_require__("605d");
|
3313 |
|
3314 | var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
3315 | var document = global.document;
|
3316 | var process = global.process;
|
3317 | var Promise = global.Promise;
|
3318 |
|
3319 | var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
3320 | var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
3321 |
|
3322 | var flush, head, last, notify, toggle, node, promise, then;
|
3323 |
|
3324 |
|
3325 | if (!queueMicrotask) {
|
3326 | flush = function () {
|
3327 | var parent, fn;
|
3328 | if (IS_NODE && (parent = process.domain)) parent.exit();
|
3329 | while (head) {
|
3330 | fn = head.fn;
|
3331 | head = head.next;
|
3332 | try {
|
3333 | fn();
|
3334 | } catch (error) {
|
3335 | if (head) notify();
|
3336 | else last = undefined;
|
3337 | throw error;
|
3338 | }
|
3339 | } last = undefined;
|
3340 | if (parent) parent.enter();
|
3341 | };
|
3342 |
|
3343 |
|
3344 |
|
3345 | if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
|
3346 | toggle = true;
|
3347 | node = document.createTextNode('');
|
3348 | new MutationObserver(flush).observe(node, { characterData: true });
|
3349 | notify = function () {
|
3350 | node.data = toggle = !toggle;
|
3351 | };
|
3352 |
|
3353 | } else if (Promise && Promise.resolve) {
|
3354 |
|
3355 | promise = Promise.resolve(undefined);
|
3356 | then = promise.then;
|
3357 | notify = function () {
|
3358 | then.call(promise, flush);
|
3359 | };
|
3360 |
|
3361 | } else if (IS_NODE) {
|
3362 | notify = function () {
|
3363 | process.nextTick(flush);
|
3364 | };
|
3365 |
|
3366 |
|
3367 |
|
3368 |
|
3369 |
|
3370 |
|
3371 | } else {
|
3372 | notify = function () {
|
3373 |
|
3374 | macrotask.call(global, flush);
|
3375 | };
|
3376 | }
|
3377 | }
|
3378 |
|
3379 | module.exports = queueMicrotask || function (fn) {
|
3380 | var task = { fn: fn, next: undefined };
|
3381 | if (last) last.next = task;
|
3382 | if (!head) {
|
3383 | head = task;
|
3384 | notify();
|
3385 | } last = task;
|
3386 | };
|
3387 |
|
3388 |
|
3389 | }),
|
3390 |
|
3391 | "b622":
|
3392 | (function(module, exports, __webpack_require__) {
|
3393 |
|
3394 | var global = __webpack_require__("da84");
|
3395 | var shared = __webpack_require__("5692");
|
3396 | var has = __webpack_require__("5135");
|
3397 | var uid = __webpack_require__("90e3");
|
3398 | var NATIVE_SYMBOL = __webpack_require__("4930");
|
3399 | var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
|
3400 |
|
3401 | var WellKnownSymbolsStore = shared('wks');
|
3402 | var Symbol = global.Symbol;
|
3403 | var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
|
3404 |
|
3405 | module.exports = function (name) {
|
3406 | if (!has(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
3407 | if (NATIVE_SYMBOL && has(Symbol, name)) {
|
3408 | WellKnownSymbolsStore[name] = Symbol[name];
|
3409 | } else {
|
3410 | WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
3411 | }
|
3412 | } return WellKnownSymbolsStore[name];
|
3413 | };
|
3414 |
|
3415 |
|
3416 | }),
|
3417 |
|
3418 | "b64b":
|
3419 | (function(module, exports, __webpack_require__) {
|
3420 |
|
3421 | var $ = __webpack_require__("23e7");
|
3422 | var toObject = __webpack_require__("7b0b");
|
3423 | var nativeKeys = __webpack_require__("df75");
|
3424 | var fails = __webpack_require__("d039");
|
3425 |
|
3426 | var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
|
3427 |
|
3428 |
|
3429 |
|
3430 | $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
3431 | keys: function keys(it) {
|
3432 | return nativeKeys(toObject(it));
|
3433 | }
|
3434 | });
|
3435 |
|
3436 |
|
3437 | }),
|
3438 |
|
3439 | "b727":
|
3440 | (function(module, exports, __webpack_require__) {
|
3441 |
|
3442 | var bind = __webpack_require__("0366");
|
3443 | var IndexedObject = __webpack_require__("44ad");
|
3444 | var toObject = __webpack_require__("7b0b");
|
3445 | var toLength = __webpack_require__("50c4");
|
3446 | var arraySpeciesCreate = __webpack_require__("65f0");
|
3447 |
|
3448 | var push = [].push;
|
3449 |
|
3450 |
|
3451 | var createMethod = function (TYPE) {
|
3452 | var IS_MAP = TYPE == 1;
|
3453 | var IS_FILTER = TYPE == 2;
|
3454 | var IS_SOME = TYPE == 3;
|
3455 | var IS_EVERY = TYPE == 4;
|
3456 | var IS_FIND_INDEX = TYPE == 6;
|
3457 | var IS_FILTER_OUT = TYPE == 7;
|
3458 | var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
3459 | return function ($this, callbackfn, that, specificCreate) {
|
3460 | var O = toObject($this);
|
3461 | var self = IndexedObject(O);
|
3462 | var boundFunction = bind(callbackfn, that, 3);
|
3463 | var length = toLength(self.length);
|
3464 | var index = 0;
|
3465 | var create = specificCreate || arraySpeciesCreate;
|
3466 | var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
|
3467 | var value, result;
|
3468 | for (;length > index; index++) if (NO_HOLES || index in self) {
|
3469 | value = self[index];
|
3470 | result = boundFunction(value, index, O);
|
3471 | if (TYPE) {
|
3472 | if (IS_MAP) target[index] = result;
|
3473 | else if (result) switch (TYPE) {
|
3474 | case 3: return true;
|
3475 | case 5: return value;
|
3476 | case 6: return index;
|
3477 | case 2: push.call(target, value);
|
3478 | } else switch (TYPE) {
|
3479 | case 4: return false;
|
3480 | case 7: push.call(target, value);
|
3481 | }
|
3482 | }
|
3483 | }
|
3484 | return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
3485 | };
|
3486 | };
|
3487 |
|
3488 | module.exports = {
|
3489 |
|
3490 |
|
3491 | forEach: createMethod(0),
|
3492 |
|
3493 |
|
3494 | map: createMethod(1),
|
3495 |
|
3496 |
|
3497 | filter: createMethod(2),
|
3498 |
|
3499 |
|
3500 | some: createMethod(3),
|
3501 |
|
3502 |
|
3503 | every: createMethod(4),
|
3504 |
|
3505 |
|
3506 | find: createMethod(5),
|
3507 |
|
3508 |
|
3509 | findIndex: createMethod(6),
|
3510 |
|
3511 |
|
3512 | filterOut: createMethod(7)
|
3513 | };
|
3514 |
|
3515 |
|
3516 | }),
|
3517 |
|
3518 | "c04e":
|
3519 | (function(module, exports, __webpack_require__) {
|
3520 |
|
3521 | var isObject = __webpack_require__("861d");
|
3522 |
|
3523 |
|
3524 |
|
3525 |
|
3526 |
|
3527 | module.exports = function (input, PREFERRED_STRING) {
|
3528 | if (!isObject(input)) return input;
|
3529 | var fn, val;
|
3530 | if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
3531 | if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
|
3532 | if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
3533 | throw TypeError("Can't convert object to primitive value");
|
3534 | };
|
3535 |
|
3536 |
|
3537 | }),
|
3538 |
|
3539 | "c430":
|
3540 | (function(module, exports) {
|
3541 |
|
3542 | module.exports = false;
|
3543 |
|
3544 |
|
3545 | }),
|
3546 |
|
3547 | "c6b6":
|
3548 | (function(module, exports) {
|
3549 |
|
3550 | var toString = {}.toString;
|
3551 |
|
3552 | module.exports = function (it) {
|
3553 | return toString.call(it).slice(8, -1);
|
3554 | };
|
3555 |
|
3556 |
|
3557 | }),
|
3558 |
|
3559 | "c6cd":
|
3560 | (function(module, exports, __webpack_require__) {
|
3561 |
|
3562 | var global = __webpack_require__("da84");
|
3563 | var setGlobal = __webpack_require__("ce4e");
|
3564 |
|
3565 | var SHARED = '__core-js_shared__';
|
3566 | var store = global[SHARED] || setGlobal(SHARED, {});
|
3567 |
|
3568 | module.exports = store;
|
3569 |
|
3570 |
|
3571 | }),
|
3572 |
|
3573 | "c8ba":
|
3574 | (function(module, exports) {
|
3575 |
|
3576 | var g;
|
3577 |
|
3578 |
|
3579 | g = (function() {
|
3580 | return this;
|
3581 | })();
|
3582 |
|
3583 | try {
|
3584 |
|
3585 | g = g || new Function("return this")();
|
3586 | } catch (e) {
|
3587 |
|
3588 | if (typeof window === "object") g = window;
|
3589 | }
|
3590 |
|
3591 |
|
3592 |
|
3593 |
|
3594 |
|
3595 | module.exports = g;
|
3596 |
|
3597 |
|
3598 | }),
|
3599 |
|
3600 | "ca84":
|
3601 | (function(module, exports, __webpack_require__) {
|
3602 |
|
3603 | var has = __webpack_require__("5135");
|
3604 | var toIndexedObject = __webpack_require__("fc6a");
|
3605 | var indexOf = __webpack_require__("4d64").indexOf;
|
3606 | var hiddenKeys = __webpack_require__("d012");
|
3607 |
|
3608 | module.exports = function (object, names) {
|
3609 | var O = toIndexedObject(object);
|
3610 | var i = 0;
|
3611 | var result = [];
|
3612 | var key;
|
3613 | for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
|
3614 |
|
3615 | while (names.length > i) if (has(O, key = names[i++])) {
|
3616 | ~indexOf(result, key) || result.push(key);
|
3617 | }
|
3618 | return result;
|
3619 | };
|
3620 |
|
3621 |
|
3622 | }),
|
3623 |
|
3624 | "cc12":
|
3625 | (function(module, exports, __webpack_require__) {
|
3626 |
|
3627 | var global = __webpack_require__("da84");
|
3628 | var isObject = __webpack_require__("861d");
|
3629 |
|
3630 | var document = global.document;
|
3631 |
|
3632 | var EXISTS = isObject(document) && isObject(document.createElement);
|
3633 |
|
3634 | module.exports = function (it) {
|
3635 | return EXISTS ? document.createElement(it) : {};
|
3636 | };
|
3637 |
|
3638 |
|
3639 | }),
|
3640 |
|
3641 | "cdf9":
|
3642 | (function(module, exports, __webpack_require__) {
|
3643 |
|
3644 | var anObject = __webpack_require__("825a");
|
3645 | var isObject = __webpack_require__("861d");
|
3646 | var newPromiseCapability = __webpack_require__("f069");
|
3647 |
|
3648 | module.exports = function (C, x) {
|
3649 | anObject(C);
|
3650 | if (isObject(x) && x.constructor === C) return x;
|
3651 | var promiseCapability = newPromiseCapability.f(C);
|
3652 | var resolve = promiseCapability.resolve;
|
3653 | resolve(x);
|
3654 | return promiseCapability.promise;
|
3655 | };
|
3656 |
|
3657 |
|
3658 | }),
|
3659 |
|
3660 | "ce4e":
|
3661 | (function(module, exports, __webpack_require__) {
|
3662 |
|
3663 | var global = __webpack_require__("da84");
|
3664 | var createNonEnumerableProperty = __webpack_require__("9112");
|
3665 |
|
3666 | module.exports = function (key, value) {
|
3667 | try {
|
3668 | createNonEnumerableProperty(global, key, value);
|
3669 | } catch (error) {
|
3670 | global[key] = value;
|
3671 | } return value;
|
3672 | };
|
3673 |
|
3674 |
|
3675 | }),
|
3676 |
|
3677 | "d012":
|
3678 | (function(module, exports) {
|
3679 |
|
3680 | module.exports = {};
|
3681 |
|
3682 |
|
3683 | }),
|
3684 |
|
3685 | "d039":
|
3686 | (function(module, exports) {
|
3687 |
|
3688 | module.exports = function (exec) {
|
3689 | try {
|
3690 | return !!exec();
|
3691 | } catch (error) {
|
3692 | return true;
|
3693 | }
|
3694 | };
|
3695 |
|
3696 |
|
3697 | }),
|
3698 |
|
3699 | "d066":
|
3700 | (function(module, exports, __webpack_require__) {
|
3701 |
|
3702 | var path = __webpack_require__("428f");
|
3703 | var global = __webpack_require__("da84");
|
3704 |
|
3705 | var aFunction = function (variable) {
|
3706 | return typeof variable == 'function' ? variable : undefined;
|
3707 | };
|
3708 |
|
3709 | module.exports = function (namespace, method) {
|
3710 | return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
|
3711 | : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
|
3712 | };
|
3713 |
|
3714 |
|
3715 | }),
|
3716 |
|
3717 | "d1e7":
|
3718 | (function(module, exports, __webpack_require__) {
|
3719 |
|
3720 | "use strict";
|
3721 |
|
3722 | var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
3723 |
|
3724 | var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
3725 |
|
3726 |
|
3727 | var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
3728 |
|
3729 |
|
3730 |
|
3731 | exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
3732 | var descriptor = getOwnPropertyDescriptor(this, V);
|
3733 | return !!descriptor && descriptor.enumerable;
|
3734 | } : $propertyIsEnumerable;
|
3735 |
|
3736 |
|
3737 | }),
|
3738 |
|
3739 | "d28b":
|
3740 | (function(module, exports, __webpack_require__) {
|
3741 |
|
3742 | var defineWellKnownSymbol = __webpack_require__("746f");
|
3743 |
|
3744 |
|
3745 |
|
3746 | defineWellKnownSymbol('iterator');
|
3747 |
|
3748 |
|
3749 | }),
|
3750 |
|
3751 | "d2bb":
|
3752 | (function(module, exports, __webpack_require__) {
|
3753 |
|
3754 |
|
3755 | var anObject = __webpack_require__("825a");
|
3756 | var aPossiblePrototype = __webpack_require__("3bbe");
|
3757 |
|
3758 |
|
3759 |
|
3760 |
|
3761 |
|
3762 | module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
3763 | var CORRECT_SETTER = false;
|
3764 | var test = {};
|
3765 | var setter;
|
3766 | try {
|
3767 |
|
3768 | setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
3769 | setter.call(test, []);
|
3770 | CORRECT_SETTER = test instanceof Array;
|
3771 | } catch (error) { }
|
3772 | return function setPrototypeOf(O, proto) {
|
3773 | anObject(O);
|
3774 | aPossiblePrototype(proto);
|
3775 | if (CORRECT_SETTER) setter.call(O, proto);
|
3776 | else O.__proto__ = proto;
|
3777 | return O;
|
3778 | };
|
3779 | }() : undefined);
|
3780 |
|
3781 |
|
3782 | }),
|
3783 |
|
3784 | "d3b7":
|
3785 | (function(module, exports, __webpack_require__) {
|
3786 |
|
3787 | var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
|
3788 | var redefine = __webpack_require__("6eeb");
|
3789 | var toString = __webpack_require__("b041");
|
3790 |
|
3791 |
|
3792 |
|
3793 | if (!TO_STRING_TAG_SUPPORT) {
|
3794 | redefine(Object.prototype, 'toString', toString, { unsafe: true });
|
3795 | }
|
3796 |
|
3797 |
|
3798 | }),
|
3799 |
|
3800 | "d44e":
|
3801 | (function(module, exports, __webpack_require__) {
|
3802 |
|
3803 | var defineProperty = __webpack_require__("9bf2").f;
|
3804 | var has = __webpack_require__("5135");
|
3805 | var wellKnownSymbol = __webpack_require__("b622");
|
3806 |
|
3807 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
3808 |
|
3809 | module.exports = function (it, TAG, STATIC) {
|
3810 | if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
3811 | defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
3812 | }
|
3813 | };
|
3814 |
|
3815 |
|
3816 | }),
|
3817 |
|
3818 | "d784":
|
3819 | (function(module, exports, __webpack_require__) {
|
3820 |
|
3821 | "use strict";
|
3822 |
|
3823 |
|
3824 | __webpack_require__("ac1f");
|
3825 | var redefine = __webpack_require__("6eeb");
|
3826 | var fails = __webpack_require__("d039");
|
3827 | var wellKnownSymbol = __webpack_require__("b622");
|
3828 | var createNonEnumerableProperty = __webpack_require__("9112");
|
3829 |
|
3830 | var SPECIES = wellKnownSymbol('species');
|
3831 |
|
3832 | var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
3833 |
|
3834 |
|
3835 |
|
3836 | var re = /./;
|
3837 | re.exec = function () {
|
3838 | var result = [];
|
3839 | result.groups = { a: '7' };
|
3840 | return result;
|
3841 | };
|
3842 | return ''.replace(re, '$<a>') !== '7';
|
3843 | });
|
3844 |
|
3845 |
|
3846 |
|
3847 | var REPLACE_KEEPS_$0 = (function () {
|
3848 |
|
3849 | return 'a'.replace(/./, '$0') === '$0';
|
3850 | })();
|
3851 |
|
3852 | var REPLACE = wellKnownSymbol('replace');
|
3853 |
|
3854 | var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
3855 | if (/./[REPLACE]) {
|
3856 | return /./[REPLACE]('a', '$0') === '';
|
3857 | }
|
3858 | return false;
|
3859 | })();
|
3860 |
|
3861 |
|
3862 |
|
3863 | var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
3864 |
|
3865 | var re = /(?:)/;
|
3866 | var originalExec = re.exec;
|
3867 | re.exec = function () { return originalExec.apply(this, arguments); };
|
3868 | var result = 'ab'.split(re);
|
3869 | return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
3870 | });
|
3871 |
|
3872 | module.exports = function (KEY, length, exec, sham) {
|
3873 | var SYMBOL = wellKnownSymbol(KEY);
|
3874 |
|
3875 | var DELEGATES_TO_SYMBOL = !fails(function () {
|
3876 |
|
3877 | var O = {};
|
3878 | O[SYMBOL] = function () { return 7; };
|
3879 | return ''[KEY](O) != 7;
|
3880 | });
|
3881 |
|
3882 | var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
3883 |
|
3884 | var execCalled = false;
|
3885 | var re = /a/;
|
3886 |
|
3887 | if (KEY === 'split') {
|
3888 |
|
3889 |
|
3890 |
|
3891 | re = {};
|
3892 |
|
3893 |
|
3894 | re.constructor = {};
|
3895 | re.constructor[SPECIES] = function () { return re; };
|
3896 | re.flags = '';
|
3897 | re[SYMBOL] = /./[SYMBOL];
|
3898 | }
|
3899 |
|
3900 | re.exec = function () { execCalled = true; return null; };
|
3901 |
|
3902 | re[SYMBOL]('');
|
3903 | return !execCalled;
|
3904 | });
|
3905 |
|
3906 | if (
|
3907 | !DELEGATES_TO_SYMBOL ||
|
3908 | !DELEGATES_TO_EXEC ||
|
3909 | (KEY === 'replace' && !(
|
3910 | REPLACE_SUPPORTS_NAMED_GROUPS &&
|
3911 | REPLACE_KEEPS_$0 &&
|
3912 | !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
3913 | )) ||
|
3914 | (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
3915 | ) {
|
3916 | var nativeRegExpMethod = /./[SYMBOL];
|
3917 | var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
3918 | if (regexp.exec === RegExp.prototype.exec) {
|
3919 | if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
3920 |
|
3921 |
|
3922 |
|
3923 | return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
3924 | }
|
3925 | return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
3926 | }
|
3927 | return { done: false };
|
3928 | }, {
|
3929 | REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
3930 | REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
3931 | });
|
3932 | var stringMethod = methods[0];
|
3933 | var regexMethod = methods[1];
|
3934 |
|
3935 | redefine(String.prototype, KEY, stringMethod);
|
3936 | redefine(RegExp.prototype, SYMBOL, length == 2
|
3937 |
|
3938 |
|
3939 | ? function (string, arg) { return regexMethod.call(string, this, arg); }
|
3940 |
|
3941 |
|
3942 | : function (string) { return regexMethod.call(string, this); }
|
3943 | );
|
3944 | }
|
3945 |
|
3946 | if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
|
3947 | };
|
3948 |
|
3949 |
|
3950 | }),
|
3951 |
|
3952 | "d81d":
|
3953 | (function(module, exports, __webpack_require__) {
|
3954 |
|
3955 | "use strict";
|
3956 |
|
3957 | var $ = __webpack_require__("23e7");
|
3958 | var $map = __webpack_require__("b727").map;
|
3959 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
3960 |
|
3961 | var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
|
3962 |
|
3963 |
|
3964 |
|
3965 |
|
3966 | $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
3967 | map: function map(callbackfn /* , thisArg */) {
|
3968 | return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
3969 | }
|
3970 | });
|
3971 |
|
3972 |
|
3973 | }),
|
3974 |
|
3975 | "da84":
|
3976 | (function(module, exports, __webpack_require__) {
|
3977 |
|
3978 | (function(global) {var check = function (it) {
|
3979 | return it && it.Math == Math && it;
|
3980 | };
|
3981 |
|
3982 |
|
3983 | module.exports =
|
3984 |
|
3985 | check(typeof globalThis == 'object' && globalThis) ||
|
3986 | check(typeof window == 'object' && window) ||
|
3987 |
|
3988 | check(typeof self == 'object' && self) ||
|
3989 | check(typeof global == 'object' && global) ||
|
3990 |
|
3991 | (function () { return this; })() || Function('return this')();
|
3992 |
|
3993 | }.call(this, __webpack_require__("c8ba")))
|
3994 |
|
3995 | }),
|
3996 |
|
3997 | "dbb4":
|
3998 | (function(module, exports, __webpack_require__) {
|
3999 |
|
4000 | var $ = __webpack_require__("23e7");
|
4001 | var DESCRIPTORS = __webpack_require__("83ab");
|
4002 | var ownKeys = __webpack_require__("56ef");
|
4003 | var toIndexedObject = __webpack_require__("fc6a");
|
4004 | var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
|
4005 | var createProperty = __webpack_require__("8418");
|
4006 |
|
4007 |
|
4008 |
|
4009 | $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
|
4010 | getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
|
4011 | var O = toIndexedObject(object);
|
4012 | var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
4013 | var keys = ownKeys(O);
|
4014 | var result = {};
|
4015 | var index = 0;
|
4016 | var key, descriptor;
|
4017 | while (keys.length > index) {
|
4018 | descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
|
4019 | if (descriptor !== undefined) createProperty(result, key, descriptor);
|
4020 | }
|
4021 | return result;
|
4022 | }
|
4023 | });
|
4024 |
|
4025 |
|
4026 | }),
|
4027 |
|
4028 | "ddb0":
|
4029 | (function(module, exports, __webpack_require__) {
|
4030 |
|
4031 | var global = __webpack_require__("da84");
|
4032 | var DOMIterables = __webpack_require__("fdbc");
|
4033 | var ArrayIteratorMethods = __webpack_require__("e260");
|
4034 | var createNonEnumerableProperty = __webpack_require__("9112");
|
4035 | var wellKnownSymbol = __webpack_require__("b622");
|
4036 |
|
4037 | var ITERATOR = wellKnownSymbol('iterator');
|
4038 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
4039 | var ArrayValues = ArrayIteratorMethods.values;
|
4040 |
|
4041 | for (var COLLECTION_NAME in DOMIterables) {
|
4042 | var Collection = global[COLLECTION_NAME];
|
4043 | var CollectionPrototype = Collection && Collection.prototype;
|
4044 | if (CollectionPrototype) {
|
4045 |
|
4046 | if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
4047 | createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
4048 | } catch (error) {
|
4049 | CollectionPrototype[ITERATOR] = ArrayValues;
|
4050 | }
|
4051 | if (!CollectionPrototype[TO_STRING_TAG]) {
|
4052 | createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
4053 | }
|
4054 | if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
4055 |
|
4056 | if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
4057 | createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
4058 | } catch (error) {
|
4059 | CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
4060 | }
|
4061 | }
|
4062 | }
|
4063 | }
|
4064 |
|
4065 |
|
4066 | }),
|
4067 |
|
4068 | "df75":
|
4069 | (function(module, exports, __webpack_require__) {
|
4070 |
|
4071 | var internalObjectKeys = __webpack_require__("ca84");
|
4072 | var enumBugKeys = __webpack_require__("7839");
|
4073 |
|
4074 |
|
4075 |
|
4076 |
|
4077 | module.exports = Object.keys || function keys(O) {
|
4078 | return internalObjectKeys(O, enumBugKeys);
|
4079 | };
|
4080 |
|
4081 |
|
4082 | }),
|
4083 |
|
4084 | "e01a":
|
4085 | (function(module, exports, __webpack_require__) {
|
4086 |
|
4087 | "use strict";
|
4088 |
|
4089 |
|
4090 |
|
4091 | var $ = __webpack_require__("23e7");
|
4092 | var DESCRIPTORS = __webpack_require__("83ab");
|
4093 | var global = __webpack_require__("da84");
|
4094 | var has = __webpack_require__("5135");
|
4095 | var isObject = __webpack_require__("861d");
|
4096 | var defineProperty = __webpack_require__("9bf2").f;
|
4097 | var copyConstructorProperties = __webpack_require__("e893");
|
4098 |
|
4099 | var NativeSymbol = global.Symbol;
|
4100 |
|
4101 | if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
4102 |
|
4103 | NativeSymbol().description !== undefined
|
4104 | )) {
|
4105 | var EmptyStringDescriptionStore = {};
|
4106 |
|
4107 | var SymbolWrapper = function Symbol() {
|
4108 | var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
4109 | var result = this instanceof SymbolWrapper
|
4110 | ? new NativeSymbol(description)
|
4111 |
|
4112 | : description === undefined ? NativeSymbol() : NativeSymbol(description);
|
4113 | if (description === '') EmptyStringDescriptionStore[result] = true;
|
4114 | return result;
|
4115 | };
|
4116 | copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
4117 | var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
4118 | symbolPrototype.constructor = SymbolWrapper;
|
4119 |
|
4120 | var symbolToString = symbolPrototype.toString;
|
4121 | var native = String(NativeSymbol('test')) == 'Symbol(test)';
|
4122 | var regexp = /^Symbol\((.*)\)[^)]+$/;
|
4123 | defineProperty(symbolPrototype, 'description', {
|
4124 | configurable: true,
|
4125 | get: function description() {
|
4126 | var symbol = isObject(this) ? this.valueOf() : this;
|
4127 | var string = symbolToString.call(symbol);
|
4128 | if (has(EmptyStringDescriptionStore, symbol)) return '';
|
4129 | var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
|
4130 | return desc === '' ? undefined : desc;
|
4131 | }
|
4132 | });
|
4133 |
|
4134 | $({ global: true, forced: true }, {
|
4135 | Symbol: SymbolWrapper
|
4136 | });
|
4137 | }
|
4138 |
|
4139 |
|
4140 | }),
|
4141 |
|
4142 | "e163":
|
4143 | (function(module, exports, __webpack_require__) {
|
4144 |
|
4145 | var has = __webpack_require__("5135");
|
4146 | var toObject = __webpack_require__("7b0b");
|
4147 | var sharedKey = __webpack_require__("f772");
|
4148 | var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
|
4149 |
|
4150 | var IE_PROTO = sharedKey('IE_PROTO');
|
4151 | var ObjectPrototype = Object.prototype;
|
4152 |
|
4153 |
|
4154 |
|
4155 |
|
4156 | module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
|
4157 | O = toObject(O);
|
4158 | if (has(O, IE_PROTO)) return O[IE_PROTO];
|
4159 | if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
4160 | return O.constructor.prototype;
|
4161 | } return O instanceof Object ? ObjectPrototype : null;
|
4162 | };
|
4163 |
|
4164 |
|
4165 | }),
|
4166 |
|
4167 | "e177":
|
4168 | (function(module, exports, __webpack_require__) {
|
4169 |
|
4170 | var fails = __webpack_require__("d039");
|
4171 |
|
4172 | module.exports = !fails(function () {
|
4173 | function F() { }
|
4174 | F.prototype.constructor = null;
|
4175 |
|
4176 | return Object.getPrototypeOf(new F()) !== F.prototype;
|
4177 | });
|
4178 |
|
4179 |
|
4180 | }),
|
4181 |
|
4182 | "e260":
|
4183 | (function(module, exports, __webpack_require__) {
|
4184 |
|
4185 | "use strict";
|
4186 |
|
4187 | var toIndexedObject = __webpack_require__("fc6a");
|
4188 | var addToUnscopables = __webpack_require__("44d2");
|
4189 | var Iterators = __webpack_require__("3f8c");
|
4190 | var InternalStateModule = __webpack_require__("69f3");
|
4191 | var defineIterator = __webpack_require__("7dd0");
|
4192 |
|
4193 | var ARRAY_ITERATOR = 'Array Iterator';
|
4194 | var setInternalState = InternalStateModule.set;
|
4195 | var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
4196 |
|
4197 |
|
4198 |
|
4199 |
|
4200 |
|
4201 |
|
4202 |
|
4203 |
|
4204 |
|
4205 |
|
4206 |
|
4207 | module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
|
4208 | setInternalState(this, {
|
4209 | type: ARRAY_ITERATOR,
|
4210 | target: toIndexedObject(iterated),
|
4211 | index: 0,
|
4212 | kind: kind
|
4213 | });
|
4214 |
|
4215 |
|
4216 | }, function () {
|
4217 | var state = getInternalState(this);
|
4218 | var target = state.target;
|
4219 | var kind = state.kind;
|
4220 | var index = state.index++;
|
4221 | if (!target || index >= target.length) {
|
4222 | state.target = undefined;
|
4223 | return { value: undefined, done: true };
|
4224 | }
|
4225 | if (kind == 'keys') return { value: index, done: false };
|
4226 | if (kind == 'values') return { value: target[index], done: false };
|
4227 | return { value: [index, target[index]], done: false };
|
4228 | }, 'values');
|
4229 |
|
4230 |
|
4231 |
|
4232 |
|
4233 | Iterators.Arguments = Iterators.Array;
|
4234 |
|
4235 |
|
4236 | addToUnscopables('keys');
|
4237 | addToUnscopables('values');
|
4238 | addToUnscopables('entries');
|
4239 |
|
4240 |
|
4241 | }),
|
4242 |
|
4243 | "e2cc":
|
4244 | (function(module, exports, __webpack_require__) {
|
4245 |
|
4246 | var redefine = __webpack_require__("6eeb");
|
4247 |
|
4248 | module.exports = function (target, src, options) {
|
4249 | for (var key in src) redefine(target, key, src[key], options);
|
4250 | return target;
|
4251 | };
|
4252 |
|
4253 |
|
4254 | }),
|
4255 |
|
4256 | "e439":
|
4257 | (function(module, exports, __webpack_require__) {
|
4258 |
|
4259 | var $ = __webpack_require__("23e7");
|
4260 | var fails = __webpack_require__("d039");
|
4261 | var toIndexedObject = __webpack_require__("fc6a");
|
4262 | var nativeGetOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
4263 | var DESCRIPTORS = __webpack_require__("83ab");
|
4264 |
|
4265 | var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
|
4266 | var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
|
4267 |
|
4268 |
|
4269 |
|
4270 | $({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
|
4271 | getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
|
4272 | return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
|
4273 | }
|
4274 | });
|
4275 |
|
4276 |
|
4277 | }),
|
4278 |
|
4279 | "e538":
|
4280 | (function(module, exports, __webpack_require__) {
|
4281 |
|
4282 | var wellKnownSymbol = __webpack_require__("b622");
|
4283 |
|
4284 | exports.f = wellKnownSymbol;
|
4285 |
|
4286 |
|
4287 | }),
|
4288 |
|
4289 | "e667":
|
4290 | (function(module, exports) {
|
4291 |
|
4292 | module.exports = function (exec) {
|
4293 | try {
|
4294 | return { error: false, value: exec() };
|
4295 | } catch (error) {
|
4296 | return { error: true, value: error };
|
4297 | }
|
4298 | };
|
4299 |
|
4300 |
|
4301 | }),
|
4302 |
|
4303 | "e6cf":
|
4304 | (function(module, exports, __webpack_require__) {
|
4305 |
|
4306 | "use strict";
|
4307 |
|
4308 | var $ = __webpack_require__("23e7");
|
4309 | var IS_PURE = __webpack_require__("c430");
|
4310 | var global = __webpack_require__("da84");
|
4311 | var getBuiltIn = __webpack_require__("d066");
|
4312 | var NativePromise = __webpack_require__("fea9");
|
4313 | var redefine = __webpack_require__("6eeb");
|
4314 | var redefineAll = __webpack_require__("e2cc");
|
4315 | var setToStringTag = __webpack_require__("d44e");
|
4316 | var setSpecies = __webpack_require__("2626");
|
4317 | var isObject = __webpack_require__("861d");
|
4318 | var aFunction = __webpack_require__("1c0b");
|
4319 | var anInstance = __webpack_require__("19aa");
|
4320 | var inspectSource = __webpack_require__("8925");
|
4321 | var iterate = __webpack_require__("2266");
|
4322 | var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
4323 | var speciesConstructor = __webpack_require__("4840");
|
4324 | var task = __webpack_require__("2cf4").set;
|
4325 | var microtask = __webpack_require__("b575");
|
4326 | var promiseResolve = __webpack_require__("cdf9");
|
4327 | var hostReportErrors = __webpack_require__("44de");
|
4328 | var newPromiseCapabilityModule = __webpack_require__("f069");
|
4329 | var perform = __webpack_require__("e667");
|
4330 | var InternalStateModule = __webpack_require__("69f3");
|
4331 | var isForced = __webpack_require__("94ca");
|
4332 | var wellKnownSymbol = __webpack_require__("b622");
|
4333 | var IS_NODE = __webpack_require__("605d");
|
4334 | var V8_VERSION = __webpack_require__("2d00");
|
4335 |
|
4336 | var SPECIES = wellKnownSymbol('species');
|
4337 | var PROMISE = 'Promise';
|
4338 | var getInternalState = InternalStateModule.get;
|
4339 | var setInternalState = InternalStateModule.set;
|
4340 | var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
4341 | var PromiseConstructor = NativePromise;
|
4342 | var TypeError = global.TypeError;
|
4343 | var document = global.document;
|
4344 | var process = global.process;
|
4345 | var $fetch = getBuiltIn('fetch');
|
4346 | var newPromiseCapability = newPromiseCapabilityModule.f;
|
4347 | var newGenericPromiseCapability = newPromiseCapability;
|
4348 | var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
4349 | var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
|
4350 | var UNHANDLED_REJECTION = 'unhandledrejection';
|
4351 | var REJECTION_HANDLED = 'rejectionhandled';
|
4352 | var PENDING = 0;
|
4353 | var FULFILLED = 1;
|
4354 | var REJECTED = 2;
|
4355 | var HANDLED = 1;
|
4356 | var UNHANDLED = 2;
|
4357 | var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
4358 |
|
4359 | var FORCED = isForced(PROMISE, function () {
|
4360 | var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
4361 | if (!GLOBAL_CORE_JS_PROMISE) {
|
4362 |
|
4363 |
|
4364 |
|
4365 | if (V8_VERSION === 66) return true;
|
4366 |
|
4367 | if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
|
4368 | }
|
4369 |
|
4370 | if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
4371 |
|
4372 |
|
4373 |
|
4374 | if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
|
4375 |
|
4376 | var promise = PromiseConstructor.resolve(1);
|
4377 | var FakePromise = function (exec) {
|
4378 | exec(function () { }, function () { });
|
4379 | };
|
4380 | var constructor = promise.constructor = {};
|
4381 | constructor[SPECIES] = FakePromise;
|
4382 | return !(promise.then(function () { }) instanceof FakePromise);
|
4383 | });
|
4384 |
|
4385 | var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
4386 | PromiseConstructor.all(iterable)['catch'](function () { });
|
4387 | });
|
4388 |
|
4389 |
|
4390 | var isThenable = function (it) {
|
4391 | var then;
|
4392 | return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
4393 | };
|
4394 |
|
4395 | var notify = function (state, isReject) {
|
4396 | if (state.notified) return;
|
4397 | state.notified = true;
|
4398 | var chain = state.reactions;
|
4399 | microtask(function () {
|
4400 | var value = state.value;
|
4401 | var ok = state.state == FULFILLED;
|
4402 | var index = 0;
|
4403 |
|
4404 | while (chain.length > index) {
|
4405 | var reaction = chain[index++];
|
4406 | var handler = ok ? reaction.ok : reaction.fail;
|
4407 | var resolve = reaction.resolve;
|
4408 | var reject = reaction.reject;
|
4409 | var domain = reaction.domain;
|
4410 | var result, then, exited;
|
4411 | try {
|
4412 | if (handler) {
|
4413 | if (!ok) {
|
4414 | if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
4415 | state.rejection = HANDLED;
|
4416 | }
|
4417 | if (handler === true) result = value;
|
4418 | else {
|
4419 | if (domain) domain.enter();
|
4420 | result = handler(value);
|
4421 | if (domain) {
|
4422 | domain.exit();
|
4423 | exited = true;
|
4424 | }
|
4425 | }
|
4426 | if (result === reaction.promise) {
|
4427 | reject(TypeError('Promise-chain cycle'));
|
4428 | } else if (then = isThenable(result)) {
|
4429 | then.call(result, resolve, reject);
|
4430 | } else resolve(result);
|
4431 | } else reject(value);
|
4432 | } catch (error) {
|
4433 | if (domain && !exited) domain.exit();
|
4434 | reject(error);
|
4435 | }
|
4436 | }
|
4437 | state.reactions = [];
|
4438 | state.notified = false;
|
4439 | if (isReject && !state.rejection) onUnhandled(state);
|
4440 | });
|
4441 | };
|
4442 |
|
4443 | var dispatchEvent = function (name, promise, reason) {
|
4444 | var event, handler;
|
4445 | if (DISPATCH_EVENT) {
|
4446 | event = document.createEvent('Event');
|
4447 | event.promise = promise;
|
4448 | event.reason = reason;
|
4449 | event.initEvent(name, false, true);
|
4450 | global.dispatchEvent(event);
|
4451 | } else event = { promise: promise, reason: reason };
|
4452 | if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
4453 | else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
4454 | };
|
4455 |
|
4456 | var onUnhandled = function (state) {
|
4457 | task.call(global, function () {
|
4458 | var promise = state.facade;
|
4459 | var value = state.value;
|
4460 | var IS_UNHANDLED = isUnhandled(state);
|
4461 | var result;
|
4462 | if (IS_UNHANDLED) {
|
4463 | result = perform(function () {
|
4464 | if (IS_NODE) {
|
4465 | process.emit('unhandledRejection', value, promise);
|
4466 | } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
4467 | });
|
4468 |
|
4469 | state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
4470 | if (result.error) throw result.value;
|
4471 | }
|
4472 | });
|
4473 | };
|
4474 |
|
4475 | var isUnhandled = function (state) {
|
4476 | return state.rejection !== HANDLED && !state.parent;
|
4477 | };
|
4478 |
|
4479 | var onHandleUnhandled = function (state) {
|
4480 | task.call(global, function () {
|
4481 | var promise = state.facade;
|
4482 | if (IS_NODE) {
|
4483 | process.emit('rejectionHandled', promise);
|
4484 | } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
4485 | });
|
4486 | };
|
4487 |
|
4488 | var bind = function (fn, state, unwrap) {
|
4489 | return function (value) {
|
4490 | fn(state, value, unwrap);
|
4491 | };
|
4492 | };
|
4493 |
|
4494 | var internalReject = function (state, value, unwrap) {
|
4495 | if (state.done) return;
|
4496 | state.done = true;
|
4497 | if (unwrap) state = unwrap;
|
4498 | state.value = value;
|
4499 | state.state = REJECTED;
|
4500 | notify(state, true);
|
4501 | };
|
4502 |
|
4503 | var internalResolve = function (state, value, unwrap) {
|
4504 | if (state.done) return;
|
4505 | state.done = true;
|
4506 | if (unwrap) state = unwrap;
|
4507 | try {
|
4508 | if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
4509 | var then = isThenable(value);
|
4510 | if (then) {
|
4511 | microtask(function () {
|
4512 | var wrapper = { done: false };
|
4513 | try {
|
4514 | then.call(value,
|
4515 | bind(internalResolve, wrapper, state),
|
4516 | bind(internalReject, wrapper, state)
|
4517 | );
|
4518 | } catch (error) {
|
4519 | internalReject(wrapper, error, state);
|
4520 | }
|
4521 | });
|
4522 | } else {
|
4523 | state.value = value;
|
4524 | state.state = FULFILLED;
|
4525 | notify(state, false);
|
4526 | }
|
4527 | } catch (error) {
|
4528 | internalReject({ done: false }, error, state);
|
4529 | }
|
4530 | };
|
4531 |
|
4532 |
|
4533 | if (FORCED) {
|
4534 |
|
4535 | PromiseConstructor = function Promise(executor) {
|
4536 | anInstance(this, PromiseConstructor, PROMISE);
|
4537 | aFunction(executor);
|
4538 | Internal.call(this);
|
4539 | var state = getInternalState(this);
|
4540 | try {
|
4541 | executor(bind(internalResolve, state), bind(internalReject, state));
|
4542 | } catch (error) {
|
4543 | internalReject(state, error);
|
4544 | }
|
4545 | };
|
4546 |
|
4547 | Internal = function Promise(executor) {
|
4548 | setInternalState(this, {
|
4549 | type: PROMISE,
|
4550 | done: false,
|
4551 | notified: false,
|
4552 | parent: false,
|
4553 | reactions: [],
|
4554 | rejection: false,
|
4555 | state: PENDING,
|
4556 | value: undefined
|
4557 | });
|
4558 | };
|
4559 | Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
4560 |
|
4561 |
|
4562 | then: function then(onFulfilled, onRejected) {
|
4563 | var state = getInternalPromiseState(this);
|
4564 | var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
4565 | reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
4566 | reaction.fail = typeof onRejected == 'function' && onRejected;
|
4567 | reaction.domain = IS_NODE ? process.domain : undefined;
|
4568 | state.parent = true;
|
4569 | state.reactions.push(reaction);
|
4570 | if (state.state != PENDING) notify(state, false);
|
4571 | return reaction.promise;
|
4572 | },
|
4573 |
|
4574 |
|
4575 | 'catch': function (onRejected) {
|
4576 | return this.then(undefined, onRejected);
|
4577 | }
|
4578 | });
|
4579 | OwnPromiseCapability = function () {
|
4580 | var promise = new Internal();
|
4581 | var state = getInternalState(promise);
|
4582 | this.promise = promise;
|
4583 | this.resolve = bind(internalResolve, state);
|
4584 | this.reject = bind(internalReject, state);
|
4585 | };
|
4586 | newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
4587 | return C === PromiseConstructor || C === PromiseWrapper
|
4588 | ? new OwnPromiseCapability(C)
|
4589 | : newGenericPromiseCapability(C);
|
4590 | };
|
4591 |
|
4592 | if (!IS_PURE && typeof NativePromise == 'function') {
|
4593 | nativeThen = NativePromise.prototype.then;
|
4594 |
|
4595 |
|
4596 | redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
|
4597 | var that = this;
|
4598 | return new PromiseConstructor(function (resolve, reject) {
|
4599 | nativeThen.call(that, resolve, reject);
|
4600 | }).then(onFulfilled, onRejected);
|
4601 |
|
4602 | }, { unsafe: true });
|
4603 |
|
4604 |
|
4605 | if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
4606 |
|
4607 | fetch: function fetch(input /* , init */) {
|
4608 | return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
4609 | }
|
4610 | });
|
4611 | }
|
4612 | }
|
4613 |
|
4614 | $({ global: true, wrap: true, forced: FORCED }, {
|
4615 | Promise: PromiseConstructor
|
4616 | });
|
4617 |
|
4618 | setToStringTag(PromiseConstructor, PROMISE, false, true);
|
4619 | setSpecies(PROMISE);
|
4620 |
|
4621 | PromiseWrapper = getBuiltIn(PROMISE);
|
4622 |
|
4623 |
|
4624 | $({ target: PROMISE, stat: true, forced: FORCED }, {
|
4625 |
|
4626 |
|
4627 | reject: function reject(r) {
|
4628 | var capability = newPromiseCapability(this);
|
4629 | capability.reject.call(undefined, r);
|
4630 | return capability.promise;
|
4631 | }
|
4632 | });
|
4633 |
|
4634 | $({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
4635 |
|
4636 |
|
4637 | resolve: function resolve(x) {
|
4638 | return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
4639 | }
|
4640 | });
|
4641 |
|
4642 | $({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
4643 |
|
4644 |
|
4645 | all: function all(iterable) {
|
4646 | var C = this;
|
4647 | var capability = newPromiseCapability(C);
|
4648 | var resolve = capability.resolve;
|
4649 | var reject = capability.reject;
|
4650 | var result = perform(function () {
|
4651 | var $promiseResolve = aFunction(C.resolve);
|
4652 | var values = [];
|
4653 | var counter = 0;
|
4654 | var remaining = 1;
|
4655 | iterate(iterable, function (promise) {
|
4656 | var index = counter++;
|
4657 | var alreadyCalled = false;
|
4658 | values.push(undefined);
|
4659 | remaining++;
|
4660 | $promiseResolve.call(C, promise).then(function (value) {
|
4661 | if (alreadyCalled) return;
|
4662 | alreadyCalled = true;
|
4663 | values[index] = value;
|
4664 | --remaining || resolve(values);
|
4665 | }, reject);
|
4666 | });
|
4667 | --remaining || resolve(values);
|
4668 | });
|
4669 | if (result.error) reject(result.value);
|
4670 | return capability.promise;
|
4671 | },
|
4672 |
|
4673 |
|
4674 | race: function race(iterable) {
|
4675 | var C = this;
|
4676 | var capability = newPromiseCapability(C);
|
4677 | var reject = capability.reject;
|
4678 | var result = perform(function () {
|
4679 | var $promiseResolve = aFunction(C.resolve);
|
4680 | iterate(iterable, function (promise) {
|
4681 | $promiseResolve.call(C, promise).then(capability.resolve, reject);
|
4682 | });
|
4683 | });
|
4684 | if (result.error) reject(result.value);
|
4685 | return capability.promise;
|
4686 | }
|
4687 | });
|
4688 |
|
4689 |
|
4690 | }),
|
4691 |
|
4692 | "e893":
|
4693 | (function(module, exports, __webpack_require__) {
|
4694 |
|
4695 | var has = __webpack_require__("5135");
|
4696 | var ownKeys = __webpack_require__("56ef");
|
4697 | var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
|
4698 | var definePropertyModule = __webpack_require__("9bf2");
|
4699 |
|
4700 | module.exports = function (target, source) {
|
4701 | var keys = ownKeys(source);
|
4702 | var defineProperty = definePropertyModule.f;
|
4703 | var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
4704 | for (var i = 0; i < keys.length; i++) {
|
4705 | var key = keys[i];
|
4706 | if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
4707 | }
|
4708 | };
|
4709 |
|
4710 |
|
4711 | }),
|
4712 |
|
4713 | "e8b5":
|
4714 | (function(module, exports, __webpack_require__) {
|
4715 |
|
4716 | var classof = __webpack_require__("c6b6");
|
4717 |
|
4718 |
|
4719 |
|
4720 |
|
4721 | module.exports = Array.isArray || function isArray(arg) {
|
4722 | return classof(arg) == 'Array';
|
4723 | };
|
4724 |
|
4725 |
|
4726 | }),
|
4727 |
|
4728 | "e95a":
|
4729 | (function(module, exports, __webpack_require__) {
|
4730 |
|
4731 | var wellKnownSymbol = __webpack_require__("b622");
|
4732 | var Iterators = __webpack_require__("3f8c");
|
4733 |
|
4734 | var ITERATOR = wellKnownSymbol('iterator');
|
4735 | var ArrayPrototype = Array.prototype;
|
4736 |
|
4737 |
|
4738 | module.exports = function (it) {
|
4739 | return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
4740 | };
|
4741 |
|
4742 |
|
4743 | }),
|
4744 |
|
4745 | "f069":
|
4746 | (function(module, exports, __webpack_require__) {
|
4747 |
|
4748 | "use strict";
|
4749 |
|
4750 | var aFunction = __webpack_require__("1c0b");
|
4751 |
|
4752 | var PromiseCapability = function (C) {
|
4753 | var resolve, reject;
|
4754 | this.promise = new C(function ($$resolve, $$reject) {
|
4755 | if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
4756 | resolve = $$resolve;
|
4757 | reject = $$reject;
|
4758 | });
|
4759 | this.resolve = aFunction(resolve);
|
4760 | this.reject = aFunction(reject);
|
4761 | };
|
4762 |
|
4763 |
|
4764 | module.exports.f = function (C) {
|
4765 | return new PromiseCapability(C);
|
4766 | };
|
4767 |
|
4768 |
|
4769 | }),
|
4770 |
|
4771 | "f5df":
|
4772 | (function(module, exports, __webpack_require__) {
|
4773 |
|
4774 | var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
|
4775 | var classofRaw = __webpack_require__("c6b6");
|
4776 | var wellKnownSymbol = __webpack_require__("b622");
|
4777 |
|
4778 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
4779 |
|
4780 | var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
4781 |
|
4782 |
|
4783 | var tryGet = function (it, key) {
|
4784 | try {
|
4785 | return it[key];
|
4786 | } catch (error) { }
|
4787 | };
|
4788 |
|
4789 |
|
4790 | module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
4791 | var O, tag, result;
|
4792 | return it === undefined ? 'Undefined' : it === null ? 'Null'
|
4793 |
|
4794 | : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
|
4795 |
|
4796 | : CORRECT_ARGUMENTS ? classofRaw(O)
|
4797 |
|
4798 | : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
|
4799 | };
|
4800 |
|
4801 |
|
4802 | }),
|
4803 |
|
4804 | "f772":
|
4805 | (function(module, exports, __webpack_require__) {
|
4806 |
|
4807 | var shared = __webpack_require__("5692");
|
4808 | var uid = __webpack_require__("90e3");
|
4809 |
|
4810 | var keys = shared('keys');
|
4811 |
|
4812 | module.exports = function (key) {
|
4813 | return keys[key] || (keys[key] = uid(key));
|
4814 | };
|
4815 |
|
4816 |
|
4817 | }),
|
4818 |
|
4819 | "fb15":
|
4820 | (function(module, __webpack_exports__, __webpack_require__) {
|
4821 |
|
4822 | "use strict";
|
4823 |
|
4824 | __webpack_require__.r(__webpack_exports__);
|
4825 |
|
4826 |
|
4827 |
|
4828 |
|
4829 | if (typeof window !== 'undefined') {
|
4830 | var currentScript = window.document.currentScript
|
4831 | if (true) {
|
4832 | var getCurrentScript = __webpack_require__("8875")
|
4833 | currentScript = getCurrentScript()
|
4834 |
|
4835 |
|
4836 | if (!('currentScript' in document)) {
|
4837 | Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
|
4838 | }
|
4839 | }
|
4840 |
|
4841 | var setPublicPath_src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
4842 | if (setPublicPath_src) {
|
4843 | __webpack_require__.p = setPublicPath_src[1]
|
4844 | }
|
4845 | }
|
4846 |
|
4847 |
|
4848 | var setPublicPath = (null);
|
4849 |
|
4850 |
|
4851 | var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
4852 |
|
4853 |
|
4854 |
|
4855 | var _hoisted_1 = {
|
4856 | ref: "container",
|
4857 | class: "lightgallery-vue"
|
4858 | };
|
4859 | function render(_ctx, _cache, $props, $setup, $data, $options) {
|
4860 | return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", _hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512);
|
4861 | }
|
4862 |
|
4863 |
|
4864 |
|
4865 | var es_object_keys = __webpack_require__("b64b");
|
4866 |
|
4867 |
|
4868 | var es_symbol = __webpack_require__("a4d3");
|
4869 |
|
4870 |
|
4871 | var es_array_filter = __webpack_require__("4de4");
|
4872 |
|
4873 |
|
4874 | var es_object_get_own_property_descriptor = __webpack_require__("e439");
|
4875 |
|
4876 |
|
4877 | var web_dom_collections_for_each = __webpack_require__("159b");
|
4878 |
|
4879 |
|
4880 | var es_object_get_own_property_descriptors = __webpack_require__("dbb4");
|
4881 |
|
4882 |
|
4883 | function _defineProperty(obj, key, value) {
|
4884 | if (key in obj) {
|
4885 | Object.defineProperty(obj, key, {
|
4886 | value: value,
|
4887 | enumerable: true,
|
4888 | configurable: true,
|
4889 | writable: true
|
4890 | });
|
4891 | } else {
|
4892 | obj[key] = value;
|
4893 | }
|
4894 |
|
4895 | return obj;
|
4896 | }
|
4897 |
|
4898 |
|
4899 |
|
4900 |
|
4901 |
|
4902 |
|
4903 |
|
4904 |
|
4905 |
|
4906 | function ownKeys(object, enumerableOnly) {
|
4907 | var keys = Object.keys(object);
|
4908 |
|
4909 | if (Object.getOwnPropertySymbols) {
|
4910 | var symbols = Object.getOwnPropertySymbols(object);
|
4911 | if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
4912 | return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
4913 | });
|
4914 | keys.push.apply(keys, symbols);
|
4915 | }
|
4916 |
|
4917 | return keys;
|
4918 | }
|
4919 |
|
4920 | function _objectSpread2(target) {
|
4921 | for (var i = 1; i < arguments.length; i++) {
|
4922 | var source = arguments[i] != null ? arguments[i] : {};
|
4923 |
|
4924 | if (i % 2) {
|
4925 | ownKeys(Object(source), true).forEach(function (key) {
|
4926 | _defineProperty(target, key, source[key]);
|
4927 | });
|
4928 | } else if (Object.getOwnPropertyDescriptors) {
|
4929 | Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
4930 | } else {
|
4931 | ownKeys(Object(source)).forEach(function (key) {
|
4932 | Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
4933 | });
|
4934 | }
|
4935 | }
|
4936 |
|
4937 | return target;
|
4938 | }
|
4939 |
|
4940 | function _classCallCheck(instance, Constructor) {
|
4941 | if (!(instance instanceof Constructor)) {
|
4942 | throw new TypeError("Cannot call a class as a function");
|
4943 | }
|
4944 | }
|
4945 |
|
4946 | function _defineProperties(target, props) {
|
4947 | for (var i = 0; i < props.length; i++) {
|
4948 | var descriptor = props[i];
|
4949 | descriptor.enumerable = descriptor.enumerable || false;
|
4950 | descriptor.configurable = true;
|
4951 | if ("value" in descriptor) descriptor.writable = true;
|
4952 | Object.defineProperty(target, descriptor.key, descriptor);
|
4953 | }
|
4954 | }
|
4955 |
|
4956 | function _createClass(Constructor, protoProps, staticProps) {
|
4957 | if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
4958 | if (staticProps) _defineProperties(Constructor, staticProps);
|
4959 | return Constructor;
|
4960 | }
|
4961 |
|
4962 | function _setPrototypeOf(o, p) {
|
4963 | _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
4964 | o.__proto__ = p;
|
4965 | return o;
|
4966 | };
|
4967 |
|
4968 | return _setPrototypeOf(o, p);
|
4969 | }
|
4970 |
|
4971 |
|
4972 | function _inherits(subClass, superClass) {
|
4973 | if (typeof superClass !== "function" && superClass !== null) {
|
4974 | throw new TypeError("Super expression must either be null or a function");
|
4975 | }
|
4976 |
|
4977 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
4978 | constructor: {
|
4979 | value: subClass,
|
4980 | writable: true,
|
4981 | configurable: true
|
4982 | }
|
4983 | });
|
4984 | if (superClass) _setPrototypeOf(subClass, superClass);
|
4985 | }
|
4986 |
|
4987 | var es_reflect_construct = __webpack_require__("4ae1");
|
4988 |
|
4989 |
|
4990 | var es_object_get_prototype_of = __webpack_require__("3410");
|
4991 |
|
4992 |
|
4993 |
|
4994 | function _getPrototypeOf(o) {
|
4995 | _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
4996 | return o.__proto__ || Object.getPrototypeOf(o);
|
4997 | };
|
4998 | return _getPrototypeOf(o);
|
4999 | }
|
5000 |
|
5001 |
|
5002 | function _isNativeReflectConstruct() {
|
5003 | if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
5004 | if (Reflect.construct.sham) return false;
|
5005 | if (typeof Proxy === "function") return true;
|
5006 |
|
5007 | try {
|
5008 | Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
5009 | return true;
|
5010 | } catch (e) {
|
5011 | return false;
|
5012 | }
|
5013 | }
|
5014 |
|
5015 | var helpers_typeof = __webpack_require__("7037");
|
5016 | var typeof_default = __webpack_require__.n(helpers_typeof);
|
5017 |
|
5018 |
|
5019 | function _assertThisInitialized(self) {
|
5020 | if (self === void 0) {
|
5021 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
5022 | }
|
5023 |
|
5024 | return self;
|
5025 | }
|
5026 |
|
5027 |
|
5028 |
|
5029 | function _possibleConstructorReturn(self, call) {
|
5030 | if (call && (typeof_default()(call) === "object" || typeof call === "function")) {
|
5031 | return call;
|
5032 | }
|
5033 |
|
5034 | return _assertThisInitialized(self);
|
5035 | }
|
5036 |
|
5037 |
|
5038 |
|
5039 |
|
5040 |
|
5041 | function _createSuper(Derived) {
|
5042 | var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
5043 | return function _createSuperInternal() {
|
5044 | var Super = _getPrototypeOf(Derived),
|
5045 | result;
|
5046 |
|
5047 | if (hasNativeReflectConstruct) {
|
5048 | var NewTarget = _getPrototypeOf(this).constructor;
|
5049 | result = Reflect.construct(Super, arguments, NewTarget);
|
5050 | } else {
|
5051 | result = Super.apply(this, arguments);
|
5052 | }
|
5053 |
|
5054 | return _possibleConstructorReturn(this, result);
|
5055 | };
|
5056 | }
|
5057 |
|
5058 | var es_array_slice = __webpack_require__("fb6a");
|
5059 |
|
5060 |
|
5061 | var es_regexp_exec = __webpack_require__("ac1f");
|
5062 |
|
5063 |
|
5064 | var es_string_split = __webpack_require__("1276");
|
5065 |
|
5066 |
|
5067 |
|
5068 |
|
5069 |
|
5070 |
|
5071 |
|
5072 |
|
5073 |
|
5074 |
|
5075 |
|
5076 |
|
5077 |
|
5078 |
|
5079 |
|
5080 |
|
5081 |
|
5082 |
|
5083 | var extendStatics = function(d, b) {
|
5084 | extendStatics = Object.setPrototypeOf ||
|
5085 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5086 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
5087 | return extendStatics(d, b);
|
5088 | };
|
5089 |
|
5090 | function __extends(d, b) {
|
5091 | extendStatics(d, b);
|
5092 | function __() { this.constructor = d; }
|
5093 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
5094 | }
|
5095 |
|
5096 | var __assign = function() {
|
5097 | __assign = Object.assign || function __assign(t) {
|
5098 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5099 | s = arguments[i];
|
5100 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
5101 | }
|
5102 | return t;
|
5103 | }
|
5104 | return __assign.apply(this, arguments);
|
5105 | }
|
5106 |
|
5107 | function __rest(s, e) {
|
5108 | var t = {};
|
5109 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
5110 | t[p] = s[p];
|
5111 | if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
5112 | for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
5113 | if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
5114 | t[p[i]] = s[p[i]];
|
5115 | }
|
5116 | return t;
|
5117 | }
|
5118 |
|
5119 | function __decorate(decorators, target, key, desc) {
|
5120 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
5121 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5122 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5123 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
5124 | }
|
5125 |
|
5126 | function __param(paramIndex, decorator) {
|
5127 | return function (target, key) { decorator(target, key, paramIndex); }
|
5128 | }
|
5129 |
|
5130 | function __metadata(metadataKey, metadataValue) {
|
5131 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
5132 | }
|
5133 |
|
5134 | function __awaiter(thisArg, _arguments, P, generator) {
|
5135 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
5136 | return new (P || (P = Promise))(function (resolve, reject) {
|
5137 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5138 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
5139 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
5140 | step((generator = generator.apply(thisArg, _arguments || [])).next());
|
5141 | });
|
5142 | }
|
5143 |
|
5144 | function __generator(thisArg, body) {
|
5145 | var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
5146 | return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
5147 | function verb(n) { return function (v) { return step([n, v]); }; }
|
5148 | function step(op) {
|
5149 | if (f) throw new TypeError("Generator is already executing.");
|
5150 | while (_) try {
|
5151 | if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
5152 | if (y = 0, t) op = [op[0] & 2, t.value];
|
5153 | switch (op[0]) {
|
5154 | case 0: case 1: t = op; break;
|
5155 | case 4: _.label++; return { value: op[1], done: false };
|
5156 | case 5: _.label++; y = op[1]; op = [0]; continue;
|
5157 | case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
5158 | default:
|
5159 | if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
5160 | if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
5161 | if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
5162 | if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
5163 | if (t[2]) _.ops.pop();
|
5164 | _.trys.pop(); continue;
|
5165 | }
|
5166 | op = body.call(thisArg, _);
|
5167 | } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
5168 | if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
5169 | }
|
5170 | }
|
5171 |
|
5172 | function __createBinding(o, m, k, k2) {
|
5173 | if (k2 === undefined) k2 = k;
|
5174 | o[k2] = m[k];
|
5175 | }
|
5176 |
|
5177 | function __exportStar(m, exports) {
|
5178 | for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
|
5179 | }
|
5180 |
|
5181 | function __values(o) {
|
5182 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
5183 | if (m) return m.call(o);
|
5184 | if (o && typeof o.length === "number") return {
|
5185 | next: function () {
|
5186 | if (o && i >= o.length) o = void 0;
|
5187 | return { value: o && o[i++], done: !o };
|
5188 | }
|
5189 | };
|
5190 | throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
5191 | }
|
5192 |
|
5193 | function __read(o, n) {
|
5194 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
5195 | if (!m) return o;
|
5196 | var i = m.call(o), r, ar = [], e;
|
5197 | try {
|
5198 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
5199 | }
|
5200 | catch (error) { e = { error: error }; }
|
5201 | finally {
|
5202 | try {
|
5203 | if (r && !r.done && (m = i["return"])) m.call(i);
|
5204 | }
|
5205 | finally { if (e) throw e.error; }
|
5206 | }
|
5207 | return ar;
|
5208 | }
|
5209 |
|
5210 | function __spread() {
|
5211 | for (var ar = [], i = 0; i < arguments.length; i++)
|
5212 | ar = ar.concat(__read(arguments[i]));
|
5213 | return ar;
|
5214 | }
|
5215 |
|
5216 | function __spreadArrays() {
|
5217 | for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
5218 | for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
5219 | for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
5220 | r[k] = a[j];
|
5221 | return r;
|
5222 | };
|
5223 |
|
5224 | function __await(v) {
|
5225 | return this instanceof __await ? (this.v = v, this) : new __await(v);
|
5226 | }
|
5227 |
|
5228 | function __asyncGenerator(thisArg, _arguments, generator) {
|
5229 | if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
5230 | var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
5231 | return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
5232 | function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
5233 | function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
5234 | function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
5235 | function fulfill(value) { resume("next", value); }
|
5236 | function reject(value) { resume("throw", value); }
|
5237 | function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
5238 | }
|
5239 |
|
5240 | function __asyncDelegator(o) {
|
5241 | var i, p;
|
5242 | return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
5243 | function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
5244 | }
|
5245 |
|
5246 | function __asyncValues(o) {
|
5247 | if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
5248 | var m = o[Symbol.asyncIterator], i;
|
5249 | return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
5250 | function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
5251 | function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
5252 | }
|
5253 |
|
5254 | function __makeTemplateObject(cooked, raw) {
|
5255 | if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
5256 | return cooked;
|
5257 | };
|
5258 |
|
5259 | function __importStar(mod) {
|
5260 | if (mod && mod.__esModule) return mod;
|
5261 | var result = {};
|
5262 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
5263 | result.default = mod;
|
5264 | return result;
|
5265 | }
|
5266 |
|
5267 | function __importDefault(mod) {
|
5268 | return (mod && mod.__esModule) ? mod : { default: mod };
|
5269 | }
|
5270 |
|
5271 | function __classPrivateFieldGet(receiver, privateMap) {
|
5272 | if (!privateMap.has(receiver)) {
|
5273 | throw new TypeError("attempted to get private field on non-instance");
|
5274 | }
|
5275 | return privateMap.get(receiver);
|
5276 | }
|
5277 |
|
5278 | function __classPrivateFieldSet(receiver, privateMap, value) {
|
5279 | if (!privateMap.has(receiver)) {
|
5280 | throw new TypeError("attempted to set private field on non-instance");
|
5281 | }
|
5282 | privateMap.set(receiver, value);
|
5283 | return value;
|
5284 | }
|
5285 |
|
5286 |
|
5287 |
|
5288 |
|
5289 |
|
5290 |
|
5291 |
|
5292 |
|
5293 |
|
5294 | function vue_class_component_esm_bundler_classCallCheck(instance, Constructor) {
|
5295 | if (!(instance instanceof Constructor)) {
|
5296 | throw new TypeError("Cannot call a class as a function");
|
5297 | }
|
5298 | }
|
5299 |
|
5300 | function vue_class_component_esm_bundler_defineProperties(target, props) {
|
5301 | for (var i = 0; i < props.length; i++) {
|
5302 | var descriptor = props[i];
|
5303 | descriptor.enumerable = descriptor.enumerable || false;
|
5304 | descriptor.configurable = true;
|
5305 | if ("value" in descriptor) descriptor.writable = true;
|
5306 | Object.defineProperty(target, descriptor.key, descriptor);
|
5307 | }
|
5308 | }
|
5309 |
|
5310 | function vue_class_component_esm_bundler_createClass(Constructor, protoProps, staticProps) {
|
5311 | if (protoProps) vue_class_component_esm_bundler_defineProperties(Constructor.prototype, protoProps);
|
5312 | if (staticProps) vue_class_component_esm_bundler_defineProperties(Constructor, staticProps);
|
5313 | return Constructor;
|
5314 | }
|
5315 |
|
5316 | function vue_class_component_esm_bundler_defineProperty(obj, key, value) {
|
5317 | if (key in obj) {
|
5318 | Object.defineProperty(obj, key, {
|
5319 | value: value,
|
5320 | enumerable: true,
|
5321 | configurable: true,
|
5322 | writable: true
|
5323 | });
|
5324 | } else {
|
5325 | obj[key] = value;
|
5326 | }
|
5327 |
|
5328 | return obj;
|
5329 | }
|
5330 |
|
5331 | function vue_class_component_esm_bundler_ownKeys(object, enumerableOnly) {
|
5332 | var keys = Object.keys(object);
|
5333 |
|
5334 | if (Object.getOwnPropertySymbols) {
|
5335 | var symbols = Object.getOwnPropertySymbols(object);
|
5336 | if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
5337 | return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
5338 | });
|
5339 | keys.push.apply(keys, symbols);
|
5340 | }
|
5341 |
|
5342 | return keys;
|
5343 | }
|
5344 |
|
5345 | function vue_class_component_esm_bundler_objectSpread2(target) {
|
5346 | for (var i = 1; i < arguments.length; i++) {
|
5347 | var source = arguments[i] != null ? arguments[i] : {};
|
5348 |
|
5349 | if (i % 2) {
|
5350 | vue_class_component_esm_bundler_ownKeys(Object(source), true).forEach(function (key) {
|
5351 | vue_class_component_esm_bundler_defineProperty(target, key, source[key]);
|
5352 | });
|
5353 | } else if (Object.getOwnPropertyDescriptors) {
|
5354 | Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
5355 | } else {
|
5356 | vue_class_component_esm_bundler_ownKeys(Object(source)).forEach(function (key) {
|
5357 | Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
5358 | });
|
5359 | }
|
5360 | }
|
5361 |
|
5362 | return target;
|
5363 | }
|
5364 |
|
5365 | function vue_class_component_esm_bundler_inherits(subClass, superClass) {
|
5366 | if (typeof superClass !== "function" && superClass !== null) {
|
5367 | throw new TypeError("Super expression must either be null or a function");
|
5368 | }
|
5369 |
|
5370 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
5371 | constructor: {
|
5372 | value: subClass,
|
5373 | writable: true,
|
5374 | configurable: true
|
5375 | }
|
5376 | });
|
5377 | if (superClass) vue_class_component_esm_bundler_setPrototypeOf(subClass, superClass);
|
5378 | }
|
5379 |
|
5380 | function vue_class_component_esm_bundler_getPrototypeOf(o) {
|
5381 | vue_class_component_esm_bundler_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
5382 | return o.__proto__ || Object.getPrototypeOf(o);
|
5383 | };
|
5384 | return vue_class_component_esm_bundler_getPrototypeOf(o);
|
5385 | }
|
5386 |
|
5387 | function vue_class_component_esm_bundler_setPrototypeOf(o, p) {
|
5388 | vue_class_component_esm_bundler_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
5389 | o.__proto__ = p;
|
5390 | return o;
|
5391 | };
|
5392 |
|
5393 | return vue_class_component_esm_bundler_setPrototypeOf(o, p);
|
5394 | }
|
5395 |
|
5396 | function vue_class_component_esm_bundler_isNativeReflectConstruct() {
|
5397 | if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
5398 | if (Reflect.construct.sham) return false;
|
5399 | if (typeof Proxy === "function") return true;
|
5400 |
|
5401 | try {
|
5402 | Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
5403 | return true;
|
5404 | } catch (e) {
|
5405 | return false;
|
5406 | }
|
5407 | }
|
5408 |
|
5409 | function _construct(Parent, args, Class) {
|
5410 | if (vue_class_component_esm_bundler_isNativeReflectConstruct()) {
|
5411 | _construct = Reflect.construct;
|
5412 | } else {
|
5413 | _construct = function _construct(Parent, args, Class) {
|
5414 | var a = [null];
|
5415 | a.push.apply(a, args);
|
5416 | var Constructor = Function.bind.apply(Parent, a);
|
5417 | var instance = new Constructor();
|
5418 | if (Class) vue_class_component_esm_bundler_setPrototypeOf(instance, Class.prototype);
|
5419 | return instance;
|
5420 | };
|
5421 | }
|
5422 |
|
5423 | return _construct.apply(null, arguments);
|
5424 | }
|
5425 |
|
5426 | function vue_class_component_esm_bundler_assertThisInitialized(self) {
|
5427 | if (self === void 0) {
|
5428 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
5429 | }
|
5430 |
|
5431 | return self;
|
5432 | }
|
5433 |
|
5434 | function vue_class_component_esm_bundler_possibleConstructorReturn(self, call) {
|
5435 | if (call && (typeof call === "object" || typeof call === "function")) {
|
5436 | return call;
|
5437 | }
|
5438 |
|
5439 | return vue_class_component_esm_bundler_assertThisInitialized(self);
|
5440 | }
|
5441 |
|
5442 | function vue_class_component_esm_bundler_createSuper(Derived) {
|
5443 | var hasNativeReflectConstruct = vue_class_component_esm_bundler_isNativeReflectConstruct();
|
5444 |
|
5445 | return function _createSuperInternal() {
|
5446 | var Super = vue_class_component_esm_bundler_getPrototypeOf(Derived),
|
5447 | result;
|
5448 |
|
5449 | if (hasNativeReflectConstruct) {
|
5450 | var NewTarget = vue_class_component_esm_bundler_getPrototypeOf(this).constructor;
|
5451 |
|
5452 | result = Reflect.construct(Super, arguments, NewTarget);
|
5453 | } else {
|
5454 | result = Super.apply(this, arguments);
|
5455 | }
|
5456 |
|
5457 | return vue_class_component_esm_bundler_possibleConstructorReturn(this, result);
|
5458 | };
|
5459 | }
|
5460 |
|
5461 | function _toConsumableArray(arr) {
|
5462 | return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
5463 | }
|
5464 |
|
5465 | function _arrayWithoutHoles(arr) {
|
5466 | if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
5467 | }
|
5468 |
|
5469 | function _iterableToArray(iter) {
|
5470 | if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
5471 | }
|
5472 |
|
5473 | function _unsupportedIterableToArray(o, minLen) {
|
5474 | if (!o) return;
|
5475 | if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
5476 | var n = Object.prototype.toString.call(o).slice(8, -1);
|
5477 | if (n === "Object" && o.constructor) n = o.constructor.name;
|
5478 | if (n === "Map" || n === "Set") return Array.from(o);
|
5479 | if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
5480 | }
|
5481 |
|
5482 | function _arrayLikeToArray(arr, len) {
|
5483 | if (len == null || len > arr.length) len = arr.length;
|
5484 |
|
5485 | for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
5486 |
|
5487 | return arr2;
|
5488 | }
|
5489 |
|
5490 | function _nonIterableSpread() {
|
5491 | throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
5492 | }
|
5493 |
|
5494 | function defineGetter(obj, key, getter) {
|
5495 | Object.defineProperty(obj, key, {
|
5496 | get: getter,
|
5497 | enumerable: false,
|
5498 | configurable: true
|
5499 | });
|
5500 | }
|
5501 |
|
5502 | function defineProxy(proxy, key, target) {
|
5503 | Object.defineProperty(proxy, key, {
|
5504 | get: function get() {
|
5505 | return target[key].value;
|
5506 | },
|
5507 | set: function set(value) {
|
5508 | target[key].value = value;
|
5509 | },
|
5510 | enumerable: true,
|
5511 | configurable: true
|
5512 | });
|
5513 | }
|
5514 |
|
5515 | function getSuper(Ctor) {
|
5516 | var superProto = Object.getPrototypeOf(Ctor.prototype);
|
5517 |
|
5518 | if (!superProto) {
|
5519 | return undefined;
|
5520 | }
|
5521 |
|
5522 | return superProto.constructor;
|
5523 | }
|
5524 |
|
5525 | function getOwn(value, key) {
|
5526 | return value.hasOwnProperty(key) ? value[key] : undefined;
|
5527 | }
|
5528 |
|
5529 | var vue_class_component_esm_bundler_VueImpl = function () {
|
5530 | function VueImpl(props, ctx) {
|
5531 | var _this = this;
|
5532 |
|
5533 | vue_class_component_esm_bundler_classCallCheck(this, VueImpl);
|
5534 |
|
5535 | defineGetter(this, '$props', function () {
|
5536 | return props;
|
5537 | });
|
5538 | defineGetter(this, '$attrs', function () {
|
5539 | return ctx.attrs;
|
5540 | });
|
5541 | defineGetter(this, '$slots', function () {
|
5542 | return ctx.slots;
|
5543 | });
|
5544 | defineGetter(this, '$emit', function () {
|
5545 | return ctx.emit;
|
5546 | });
|
5547 | Object.keys(props).forEach(function (key) {
|
5548 | Object.defineProperty(_this, key, {
|
5549 | enumerable: false,
|
5550 | configurable: true,
|
5551 | writable: true,
|
5552 | value: props[key]
|
5553 | });
|
5554 | });
|
5555 | }
|
5556 |
|
5557 | vue_class_component_esm_bundler_createClass(VueImpl, null, [{
|
5558 | key: "registerHooks",
|
5559 | value: function registerHooks(keys) {
|
5560 | var _this$__h;
|
5561 |
|
5562 | (_this$__h = this.__h).push.apply(_this$__h, _toConsumableArray(keys));
|
5563 | }
|
5564 | }, {
|
5565 | key: "with",
|
5566 | value: function _with(Props) {
|
5567 | var propsMeta = new Props();
|
5568 | var props = {};
|
5569 | Object.keys(propsMeta).forEach(function (key) {
|
5570 | var meta = propsMeta[key];
|
5571 | props[key] = meta !== null && meta !== void 0 ? meta : null;
|
5572 | });
|
5573 |
|
5574 | var PropsMixin = function (_this2) {
|
5575 | vue_class_component_esm_bundler_inherits(PropsMixin, _this2);
|
5576 |
|
5577 | var _super = vue_class_component_esm_bundler_createSuper(PropsMixin);
|
5578 |
|
5579 | function PropsMixin() {
|
5580 | vue_class_component_esm_bundler_classCallCheck(this, PropsMixin);
|
5581 |
|
5582 | return _super.apply(this, arguments);
|
5583 | }
|
5584 |
|
5585 | return PropsMixin;
|
5586 | }(this);
|
5587 |
|
5588 | PropsMixin.__b = {
|
5589 | props: props
|
5590 | };
|
5591 | return PropsMixin;
|
5592 | }
|
5593 | }, {
|
5594 | key: "__vccOpts",
|
5595 | get: function get() {
|
5596 |
|
5597 | if (this === Vue) {
|
5598 | return {};
|
5599 | }
|
5600 |
|
5601 | var Ctor = this;
|
5602 | var cache = getOwn(Ctor, '__c');
|
5603 |
|
5604 | if (cache) {
|
5605 | return cache;
|
5606 | }
|
5607 |
|
5608 |
|
5609 | var options = vue_class_component_esm_bundler_objectSpread2({}, getOwn(Ctor, '__o'));
|
5610 |
|
5611 | Ctor.__c = options;
|
5612 |
|
5613 | var Super = getSuper(Ctor);
|
5614 |
|
5615 | if (Super) {
|
5616 | options["extends"] = Super.__vccOpts;
|
5617 | }
|
5618 |
|
5619 |
|
5620 | var base = getOwn(Ctor, '__b');
|
5621 |
|
5622 | if (base) {
|
5623 | options.mixins = options.mixins || [];
|
5624 | options.mixins.unshift(base);
|
5625 | }
|
5626 |
|
5627 | options.methods = vue_class_component_esm_bundler_objectSpread2({}, options.methods);
|
5628 | options.computed = vue_class_component_esm_bundler_objectSpread2({}, options.computed);
|
5629 | var proto = Ctor.prototype;
|
5630 | Object.getOwnPropertyNames(proto).forEach(function (key) {
|
5631 | if (key === 'constructor') {
|
5632 | return;
|
5633 | }
|
5634 |
|
5635 |
|
5636 | if (Ctor.__h.indexOf(key) > -1) {
|
5637 | options[key] = proto[key];
|
5638 | return;
|
5639 | }
|
5640 |
|
5641 | var descriptor = Object.getOwnPropertyDescriptor(proto, key);
|
5642 |
|
5643 | if (typeof descriptor.value === 'function') {
|
5644 | options.methods[key] = descriptor.value;
|
5645 | return;
|
5646 | }
|
5647 |
|
5648 |
|
5649 | if (descriptor.get || descriptor.set) {
|
5650 | options.computed[key] = {
|
5651 | get: descriptor.get,
|
5652 | set: descriptor.set
|
5653 | };
|
5654 | return;
|
5655 | }
|
5656 | });
|
5657 |
|
5658 | options.setup = function (props, ctx) {
|
5659 | var _promise;
|
5660 |
|
5661 | var data = new Ctor(props, ctx);
|
5662 | var dataKeys = Object.keys(data);
|
5663 | var plainData = {};
|
5664 | var promise = null;
|
5665 |
|
5666 | dataKeys.forEach(function (key) {
|
5667 |
|
5668 |
|
5669 | if (data[key] === undefined || data[key] && data[key].__s) {
|
5670 | return;
|
5671 | }
|
5672 |
|
5673 | plainData[key] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(data[key]);
|
5674 | defineProxy(data, key, plainData);
|
5675 | });
|
5676 |
|
5677 | dataKeys.forEach(function (key) {
|
5678 | if (data[key] && data[key].__s) {
|
5679 | var setupState = data[key].__s();
|
5680 |
|
5681 | if (setupState instanceof Promise) {
|
5682 | if (!promise) {
|
5683 | promise = Promise.resolve(plainData);
|
5684 | }
|
5685 |
|
5686 | promise = promise.then(function () {
|
5687 | return setupState.then(function (value) {
|
5688 | plainData[key] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["proxyRefs"])(value);
|
5689 | return plainData;
|
5690 | });
|
5691 | });
|
5692 | } else {
|
5693 | plainData[key] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["proxyRefs"])(setupState);
|
5694 | }
|
5695 | }
|
5696 | });
|
5697 | return (_promise = promise) !== null && _promise !== void 0 ? _promise : plainData;
|
5698 | };
|
5699 |
|
5700 | var decorators = getOwn(Ctor, '__d');
|
5701 |
|
5702 | if (decorators) {
|
5703 | decorators.forEach(function (fn) {
|
5704 | return fn(options);
|
5705 | });
|
5706 | }
|
5707 |
|
5708 |
|
5709 | var injections = ['render', 'ssrRender', '__file', '__cssModules', '__scopeId', '__hmrId'];
|
5710 | injections.forEach(function (key) {
|
5711 | if (Ctor[key]) {
|
5712 | options[key] = Ctor[key];
|
5713 | }
|
5714 | });
|
5715 | return options;
|
5716 | }
|
5717 | }]);
|
5718 |
|
5719 | return VueImpl;
|
5720 | }();
|
5721 |
|
5722 | vue_class_component_esm_bundler_VueImpl.__h = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUnmount', 'unmounted', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch'];
|
5723 | var Vue = vue_class_component_esm_bundler_VueImpl;
|
5724 |
|
5725 | function Options(options) {
|
5726 | return function (Component) {
|
5727 | Component.__o = options;
|
5728 | return Component;
|
5729 | };
|
5730 | }
|
5731 | function createDecorator(factory) {
|
5732 | return function (target, key, index) {
|
5733 | var Ctor = typeof target === 'function' ? target : target.constructor;
|
5734 |
|
5735 | if (!Ctor.__d) {
|
5736 | Ctor.__d = [];
|
5737 | }
|
5738 |
|
5739 | if (typeof index !== 'number') {
|
5740 | index = undefined;
|
5741 | }
|
5742 |
|
5743 | Ctor.__d.push(function (options) {
|
5744 | return factory(options, key, index);
|
5745 | });
|
5746 | };
|
5747 | }
|
5748 | function mixins() {
|
5749 | for (var _len = arguments.length, Ctors = new Array(_len), _key = 0; _key < _len; _key++) {
|
5750 | Ctors[_key] = arguments[_key];
|
5751 | }
|
5752 |
|
5753 | var _a;
|
5754 |
|
5755 | return _a = function (_Vue) {
|
5756 | vue_class_component_esm_bundler_inherits(MixedVue, _Vue);
|
5757 |
|
5758 | var _super = vue_class_component_esm_bundler_createSuper(MixedVue);
|
5759 |
|
5760 | function MixedVue() {
|
5761 | var _this;
|
5762 |
|
5763 | for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
5764 | args[_key2] = arguments[_key2];
|
5765 | }
|
5766 |
|
5767 | vue_class_component_esm_bundler_classCallCheck(this, MixedVue);
|
5768 |
|
5769 | _this = _super.call.apply(_super, [this].concat(args));
|
5770 | Ctors.forEach(function (Ctor) {
|
5771 | var data = _construct(Ctor, args);
|
5772 |
|
5773 | Object.keys(data).forEach(function (key) {
|
5774 | _this[key] = data[key];
|
5775 | });
|
5776 | });
|
5777 | return _this;
|
5778 | }
|
5779 |
|
5780 | return MixedVue;
|
5781 | }(Vue), _a.__b = {
|
5782 | mixins: Ctors.map(function (Ctor) {
|
5783 | return Ctor.__vccOpts;
|
5784 | })
|
5785 | }, _a;
|
5786 | }
|
5787 | function setup(setupFn) {
|
5788 |
|
5789 |
|
5790 | return {
|
5791 | __s: setupFn
|
5792 | };
|
5793 | }
|
5794 |
|
5795 |
|
5796 | function prop(options) {
|
5797 | return options;
|
5798 | }
|
5799 |
|
5800 |
|
5801 |
|
5802 |
|
5803 | var es_array_concat = __webpack_require__("99af");
|
5804 |
|
5805 |
|
5806 | var es_array_find = __webpack_require__("7db0");
|
5807 |
|
5808 |
|
5809 |
|
5810 |
|
5811 |
|
5812 |
|
5813 |
|
5814 | var lGEvents = {
|
5815 | afterAppendSlide: 'lgAfterAppendSlide',
|
5816 | init: 'lgInit',
|
5817 | hasVideo: 'lgHasVideo',
|
5818 | containerResize: 'lgContainerResize',
|
5819 | updateSlides: 'lgUpdateSlides',
|
5820 | afterAppendSubHtml: 'lgAfterAppendSubHtml',
|
5821 | beforeOpen: 'lgBeforeOpen',
|
5822 | afterOpen: 'lgAfterOpen',
|
5823 | slideItemLoad: 'lgSlideItemLoad',
|
5824 | beforeSlide: 'lgBeforeSlide',
|
5825 | afterSlide: 'lgAfterSlide',
|
5826 | posterClick: 'lgPosterClick',
|
5827 | dragStart: 'lgDragStart',
|
5828 | dragMove: 'lgDragMove',
|
5829 | dragEnd: 'lgDragEnd',
|
5830 | beforeNextSlide: 'lgBeforeNextSlide',
|
5831 | beforePrevSlide: 'lgBeforePrevSlide',
|
5832 | beforeClose: 'lgBeforeClose',
|
5833 | afterClose: 'lgAfterClose',
|
5834 | rotateLeft: 'lgRotateLeft',
|
5835 | rotateRight: 'lgRotateRight',
|
5836 | flipHorizontal: 'lgFlipHorizontal',
|
5837 | flipVertical: 'lgFlipVertical',
|
5838 | autoplay: 'lgAutoplay',
|
5839 | autoplayStart: 'lgAutoplayStart',
|
5840 | autoplayStop: 'lgAutoplayStop'
|
5841 | };
|
5842 |
|
5843 | var lightGalleryCoreSettings = {
|
5844 | mode: 'lg-slide',
|
5845 | easing: 'ease',
|
5846 | speed: 400,
|
5847 | licenseKey: '0000-0000-000-0000',
|
5848 | height: '100%',
|
5849 | width: '100%',
|
5850 | addClass: '',
|
5851 | startClass: 'lg-start-zoom',
|
5852 | backdropDuration: 300,
|
5853 | container: '',
|
5854 | startAnimationDuration: 400,
|
5855 | zoomFromOrigin: true,
|
5856 | hideBarsDelay: 0,
|
5857 | showBarsAfter: 10000,
|
5858 | slideDelay: 0,
|
5859 | supportLegacyBrowser: true,
|
5860 | allowMediaOverlap: false,
|
5861 | videoMaxSize: '1280-720',
|
5862 | loadYouTubePoster: true,
|
5863 | defaultCaptionHeight: 0,
|
5864 | ariaLabelledby: '',
|
5865 | ariaDescribedby: '',
|
5866 | resetScrollPosition: true,
|
5867 | hideScrollbar: false,
|
5868 | closable: true,
|
5869 | swipeToClose: true,
|
5870 | closeOnTap: true,
|
5871 | showCloseIcon: true,
|
5872 | showMaximizeIcon: false,
|
5873 | loop: true,
|
5874 | escKey: true,
|
5875 | keyPress: true,
|
5876 | trapFocus: true,
|
5877 | controls: true,
|
5878 | slideEndAnimation: true,
|
5879 | hideControlOnEnd: false,
|
5880 | mousewheel: false,
|
5881 | getCaptionFromTitleOrAlt: true,
|
5882 | appendSubHtmlTo: '.lg-sub-html',
|
5883 | subHtmlSelectorRelative: false,
|
5884 | preload: 2,
|
5885 | numberOfSlideItemsInDom: 10,
|
5886 | selector: '',
|
5887 | selectWithin: '',
|
5888 | nextHtml: '',
|
5889 | prevHtml: '',
|
5890 | index: 0,
|
5891 | iframeWidth: '100%',
|
5892 | iframeHeight: '100%',
|
5893 | iframeMaxWidth: '100%',
|
5894 | iframeMaxHeight: '100%',
|
5895 | download: true,
|
5896 | counter: true,
|
5897 | appendCounterTo: '.lg-toolbar',
|
5898 | swipeThreshold: 50,
|
5899 | enableSwipe: true,
|
5900 | enableDrag: true,
|
5901 | dynamic: false,
|
5902 | dynamicEl: [],
|
5903 | extraProps: [],
|
5904 | exThumbImage: '',
|
5905 | isMobile: undefined,
|
5906 | mobileSettings: {
|
5907 | controls: false,
|
5908 | showCloseIcon: false,
|
5909 | download: false
|
5910 | },
|
5911 | plugins: [],
|
5912 | strings: {
|
5913 | closeGallery: 'Close gallery',
|
5914 | toggleMaximize: 'Toggle maximize',
|
5915 | previousSlide: 'Previous slide',
|
5916 | nextSlide: 'Next slide',
|
5917 | download: 'Download',
|
5918 | playVideo: 'Play video'
|
5919 | }
|
5920 | };
|
5921 |
|
5922 | function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
5923 | if (len == null || len > arr.length) len = arr.length;
|
5924 |
|
5925 | for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
5926 | arr2[i] = arr[i];
|
5927 | }
|
5928 |
|
5929 | return arr2;
|
5930 | }
|
5931 |
|
5932 |
|
5933 | function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
5934 | if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
5935 | }
|
5936 |
|
5937 | var es_symbol_description = __webpack_require__("e01a");
|
5938 |
|
5939 |
|
5940 | var es_object_to_string = __webpack_require__("d3b7");
|
5941 |
|
5942 |
|
5943 | var es_symbol_iterator = __webpack_require__("d28b");
|
5944 |
|
5945 |
|
5946 | var es_array_iterator = __webpack_require__("e260");
|
5947 |
|
5948 |
|
5949 | var es_string_iterator = __webpack_require__("3ca3");
|
5950 |
|
5951 |
|
5952 | var web_dom_collections_iterator = __webpack_require__("ddb0");
|
5953 |
|
5954 |
|
5955 | var es_array_from = __webpack_require__("a630");
|
5956 |
|
5957 |
|
5958 |
|
5959 |
|
5960 |
|
5961 |
|
5962 |
|
5963 |
|
5964 |
|
5965 |
|
5966 | function iterableToArray_iterableToArray(iter) {
|
5967 | if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
5968 | }
|
5969 |
|
5970 | var es_function_name = __webpack_require__("b0c0");
|
5971 |
|
5972 |
|
5973 |
|
5974 |
|
5975 |
|
5976 |
|
5977 |
|
5978 |
|
5979 | function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
5980 | if (!o) return;
|
5981 | if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
5982 | var n = Object.prototype.toString.call(o).slice(8, -1);
|
5983 | if (n === "Object" && o.constructor) n = o.constructor.name;
|
5984 | if (n === "Map" || n === "Set") return Array.from(o);
|
5985 | if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
5986 | }
|
5987 |
|
5988 | function nonIterableSpread_nonIterableSpread() {
|
5989 | throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
5990 | }
|
5991 |
|
5992 |
|
5993 |
|
5994 |
|
5995 |
|
5996 | function toConsumableArray_toConsumableArray(arr) {
|
5997 | return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
5998 | }
|
5999 |
|
6000 | var es_string_replace = __webpack_require__("5319");
|
6001 |
|
6002 |
|
6003 | var es_array_map = __webpack_require__("d81d");
|
6004 |
|
6005 |
|
6006 | var es_array_splice = __webpack_require__("a434");
|
6007 |
|
6008 |
|
6009 | var es_string_match = __webpack_require__("466d");
|
6010 |
|
6011 |
|
6012 | var es_promise = __webpack_require__("e6cf");
|
6013 |
|
6014 |
|
6015 | var es_regexp_to_string = __webpack_require__("25f0");
|
6016 |
|
6017 |
|
6018 |
|
6019 |
|
6020 |
|
6021 |
|
6022 |
|
6023 |
|
6024 |
|
6025 |
|
6026 |
|
6027 |
|
6028 |
|
6029 |
|
6030 |
|
6031 | function initLgPolyfills() {
|
6032 | (function () {
|
6033 | if (typeof window.CustomEvent === 'function') return false;
|
6034 |
|
6035 | function CustomEvent(event, params) {
|
6036 | params = params || {
|
6037 | bubbles: false,
|
6038 | cancelable: false,
|
6039 | detail: null
|
6040 | };
|
6041 | var evt = document.createEvent('CustomEvent');
|
6042 | evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
|
6043 | return evt;
|
6044 | }
|
6045 |
|
6046 | window.CustomEvent = CustomEvent;
|
6047 | })();
|
6048 |
|
6049 | (function () {
|
6050 | if (!Element.prototype.matches) {
|
6051 | Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
6052 | }
|
6053 | })();
|
6054 | }
|
6055 |
|
6056 | var lgQuery_lgQuery = function () {
|
6057 | function lgQuery(selector) {
|
6058 | _classCallCheck(this, lgQuery);
|
6059 |
|
6060 | this.cssVenderPrefixes = ['TransitionDuration', 'TransitionTimingFunction', 'Transform', 'Transition'];
|
6061 | this.selector = this._getSelector(selector);
|
6062 | this.firstElement = this._getFirstEl();
|
6063 | return this;
|
6064 | }
|
6065 |
|
6066 | _createClass(lgQuery, [{
|
6067 | key: "_getSelector",
|
6068 | value: function _getSelector(selector) {
|
6069 | var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
|
6070 |
|
6071 | if (typeof selector !== 'string') {
|
6072 | return selector;
|
6073 | }
|
6074 |
|
6075 | context = context || document;
|
6076 | var fl = selector.substring(0, 1);
|
6077 |
|
6078 | if (fl === '#') {
|
6079 | return context.querySelector(selector);
|
6080 | } else {
|
6081 | return context.querySelectorAll(selector);
|
6082 | }
|
6083 | }
|
6084 | }, {
|
6085 | key: "_each",
|
6086 | value: function _each(func) {
|
6087 | if (!this.selector) {
|
6088 | return this;
|
6089 | }
|
6090 |
|
6091 | if (this.selector.length !== undefined) {
|
6092 | [].forEach.call(this.selector, func);
|
6093 | } else {
|
6094 | func(this.selector, 0);
|
6095 | }
|
6096 |
|
6097 | return this;
|
6098 | }
|
6099 | }, {
|
6100 | key: "_setCssVendorPrefix",
|
6101 | value: function _setCssVendorPrefix(el, cssProperty, value) {
|
6102 |
|
6103 | var property = cssProperty.replace(/-([a-z])/gi, function (s, group1) {
|
6104 | return group1.toUpperCase();
|
6105 | });
|
6106 |
|
6107 | if (this.cssVenderPrefixes.indexOf(property) !== -1) {
|
6108 | el.style[property.charAt(0).toLowerCase() + property.slice(1)] = value;
|
6109 | el.style['webkit' + property] = value;
|
6110 | el.style['moz' + property] = value;
|
6111 | el.style['ms' + property] = value;
|
6112 | el.style['o' + property] = value;
|
6113 | } else {
|
6114 | el.style[property] = value;
|
6115 | }
|
6116 | }
|
6117 | }, {
|
6118 | key: "_getFirstEl",
|
6119 | value: function _getFirstEl() {
|
6120 | if (this.selector && this.selector.length !== undefined) {
|
6121 | return this.selector[0];
|
6122 | } else {
|
6123 | return this.selector;
|
6124 | }
|
6125 | }
|
6126 | }, {
|
6127 | key: "isEventMatched",
|
6128 | value: function isEventMatched(event, eventName) {
|
6129 | var eventNamespace = eventName.split('.');
|
6130 | return event.split('.').filter(function (e) {
|
6131 | return e;
|
6132 | }).every(function (e) {
|
6133 | return eventNamespace.indexOf(e) !== -1;
|
6134 | });
|
6135 | }
|
6136 | }, {
|
6137 | key: "attr",
|
6138 | value: function attr(_attr, value) {
|
6139 | if (value === undefined) {
|
6140 | if (!this.firstElement) {
|
6141 | return '';
|
6142 | }
|
6143 |
|
6144 | return this.firstElement.getAttribute(_attr);
|
6145 | }
|
6146 |
|
6147 | this._each(function (el) {
|
6148 | el.setAttribute(_attr, value);
|
6149 | });
|
6150 |
|
6151 | return this;
|
6152 | }
|
6153 | }, {
|
6154 | key: "find",
|
6155 | value: function find(selector) {
|
6156 | return $LG(this._getSelector(selector, this.selector));
|
6157 | }
|
6158 | }, {
|
6159 | key: "first",
|
6160 | value: function first() {
|
6161 | if (this.selector && this.selector.length !== undefined) {
|
6162 | return $LG(this.selector[0]);
|
6163 | } else {
|
6164 | return $LG(this.selector);
|
6165 | }
|
6166 | }
|
6167 | }, {
|
6168 | key: "eq",
|
6169 | value: function eq(index) {
|
6170 | return $LG(this.selector[index]);
|
6171 | }
|
6172 | }, {
|
6173 | key: "parent",
|
6174 | value: function parent() {
|
6175 | return $LG(this.selector.parentElement);
|
6176 | }
|
6177 | }, {
|
6178 | key: "get",
|
6179 | value: function get() {
|
6180 | return this._getFirstEl();
|
6181 | }
|
6182 | }, {
|
6183 | key: "removeAttr",
|
6184 | value: function removeAttr(attributes) {
|
6185 | var attrs = attributes.split(' ');
|
6186 |
|
6187 | this._each(function (el) {
|
6188 | attrs.forEach(function (attr) {
|
6189 | return el.removeAttribute(attr);
|
6190 | });
|
6191 | });
|
6192 |
|
6193 | return this;
|
6194 | }
|
6195 | }, {
|
6196 | key: "wrap",
|
6197 | value: function wrap(className) {
|
6198 | if (!this.firstElement) {
|
6199 | return this;
|
6200 | }
|
6201 |
|
6202 | var wrapper = document.createElement('div');
|
6203 | wrapper.className = className;
|
6204 | this.firstElement.parentNode.insertBefore(wrapper, this.firstElement);
|
6205 | this.firstElement.parentNode.removeChild(this.firstElement);
|
6206 | wrapper.appendChild(this.firstElement);
|
6207 | return this;
|
6208 | }
|
6209 | }, {
|
6210 | key: "addClass",
|
6211 | value: function addClass() {
|
6212 | var classNames = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
6213 |
|
6214 | this._each(function (el) {
|
6215 |
|
6216 | classNames.split(' ').forEach(function (className) {
|
6217 | if (className) {
|
6218 | el.classList.add(className);
|
6219 | }
|
6220 | });
|
6221 | });
|
6222 |
|
6223 | return this;
|
6224 | }
|
6225 | }, {
|
6226 | key: "removeClass",
|
6227 | value: function removeClass(classNames) {
|
6228 | this._each(function (el) {
|
6229 |
|
6230 | classNames.split(' ').forEach(function (className) {
|
6231 | if (className) {
|
6232 | el.classList.remove(className);
|
6233 | }
|
6234 | });
|
6235 | });
|
6236 |
|
6237 | return this;
|
6238 | }
|
6239 | }, {
|
6240 | key: "hasClass",
|
6241 | value: function hasClass(className) {
|
6242 | if (!this.firstElement) {
|
6243 | return false;
|
6244 | }
|
6245 |
|
6246 | return this.firstElement.classList.contains(className);
|
6247 | }
|
6248 | }, {
|
6249 | key: "hasAttribute",
|
6250 | value: function hasAttribute(attribute) {
|
6251 | if (!this.firstElement) {
|
6252 | return false;
|
6253 | }
|
6254 |
|
6255 | return this.firstElement.hasAttribute(attribute);
|
6256 | }
|
6257 | }, {
|
6258 | key: "toggleClass",
|
6259 | value: function toggleClass(className) {
|
6260 | if (!this.firstElement) {
|
6261 | return this;
|
6262 | }
|
6263 |
|
6264 | if (this.hasClass(className)) {
|
6265 | this.removeClass(className);
|
6266 | } else {
|
6267 | this.addClass(className);
|
6268 | }
|
6269 |
|
6270 | return this;
|
6271 | }
|
6272 | }, {
|
6273 | key: "css",
|
6274 | value: function css(property, value) {
|
6275 | var _this = this;
|
6276 |
|
6277 | this._each(function (el) {
|
6278 | _this._setCssVendorPrefix(el, property, value);
|
6279 | });
|
6280 |
|
6281 | return this;
|
6282 | }
|
6283 |
|
6284 | }, {
|
6285 | key: "on",
|
6286 | value: function on(events, listener) {
|
6287 | var _this2 = this;
|
6288 |
|
6289 | if (!this.selector) {
|
6290 | return this;
|
6291 | }
|
6292 |
|
6293 | events.split(' ').forEach(function (event) {
|
6294 | if (!Array.isArray(lgQuery.eventListeners[event])) {
|
6295 | lgQuery.eventListeners[event] = [];
|
6296 | }
|
6297 |
|
6298 | lgQuery.eventListeners[event].push(listener);
|
6299 |
|
6300 | _this2.selector.addEventListener(event.split('.')[0], listener);
|
6301 | });
|
6302 | return this;
|
6303 | }
|
6304 |
|
6305 | }, {
|
6306 | key: "once",
|
6307 | value: function once(event, listener) {
|
6308 | var _this3 = this;
|
6309 |
|
6310 | this.on(event, function () {
|
6311 | _this3.off(event);
|
6312 |
|
6313 | listener(event);
|
6314 | });
|
6315 | return this;
|
6316 | }
|
6317 | }, {
|
6318 | key: "off",
|
6319 | value: function off(event) {
|
6320 | var _this4 = this;
|
6321 |
|
6322 | if (!this.selector) {
|
6323 | return this;
|
6324 | }
|
6325 |
|
6326 | Object.keys(lgQuery.eventListeners).forEach(function (eventName) {
|
6327 | if (_this4.isEventMatched(event, eventName)) {
|
6328 | lgQuery.eventListeners[eventName].forEach(function (listener) {
|
6329 | _this4.selector.removeEventListener(eventName.split('.')[0], listener);
|
6330 | });
|
6331 | lgQuery.eventListeners[eventName] = [];
|
6332 | }
|
6333 | });
|
6334 | return this;
|
6335 | }
|
6336 | }, {
|
6337 | key: "trigger",
|
6338 | value: function trigger(event, detail) {
|
6339 | if (!this.firstElement) {
|
6340 | return this;
|
6341 | }
|
6342 |
|
6343 | var customEvent = new CustomEvent(event.split('.')[0], {
|
6344 | detail: detail || null
|
6345 | });
|
6346 | this.firstElement.dispatchEvent(customEvent);
|
6347 | return this;
|
6348 | }
|
6349 |
|
6350 | }, {
|
6351 | key: "load",
|
6352 | value: function load(url) {
|
6353 | var _this5 = this;
|
6354 |
|
6355 | fetch(url).then(function (res) {
|
6356 | return res.text();
|
6357 | }).then(function (html) {
|
6358 | _this5.selector.innerHTML = html;
|
6359 | });
|
6360 | return this;
|
6361 | }
|
6362 | }, {
|
6363 | key: "html",
|
6364 | value: function html(_html) {
|
6365 | if (_html === undefined) {
|
6366 | if (!this.firstElement) {
|
6367 | return '';
|
6368 | }
|
6369 |
|
6370 | return this.firstElement.innerHTML;
|
6371 | }
|
6372 |
|
6373 | this._each(function (el) {
|
6374 | el.innerHTML = _html;
|
6375 | });
|
6376 |
|
6377 | return this;
|
6378 | }
|
6379 | }, {
|
6380 | key: "append",
|
6381 | value: function append(html) {
|
6382 | this._each(function (el) {
|
6383 | if (typeof html === 'string') {
|
6384 | el.insertAdjacentHTML('beforeend', html);
|
6385 | } else {
|
6386 | el.appendChild(html);
|
6387 | }
|
6388 | });
|
6389 |
|
6390 | return this;
|
6391 | }
|
6392 | }, {
|
6393 | key: "prepend",
|
6394 | value: function prepend(html) {
|
6395 | this._each(function (el) {
|
6396 | el.insertAdjacentHTML('afterbegin', html);
|
6397 | });
|
6398 |
|
6399 | return this;
|
6400 | }
|
6401 | }, {
|
6402 | key: "remove",
|
6403 | value: function remove() {
|
6404 | this._each(function (el) {
|
6405 | el.parentNode.removeChild(el);
|
6406 | });
|
6407 |
|
6408 | return this;
|
6409 | }
|
6410 | }, {
|
6411 | key: "empty",
|
6412 | value: function empty() {
|
6413 | this._each(function (el) {
|
6414 | el.innerHTML = '';
|
6415 | });
|
6416 |
|
6417 | return this;
|
6418 | }
|
6419 | }, {
|
6420 | key: "scrollTop",
|
6421 | value: function scrollTop(_scrollTop) {
|
6422 | if (_scrollTop !== undefined) {
|
6423 | document.body.scrollTop = _scrollTop;
|
6424 | document.documentElement.scrollTop = _scrollTop;
|
6425 | return this;
|
6426 | } else {
|
6427 | return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
6428 | }
|
6429 | }
|
6430 | }, {
|
6431 | key: "scrollLeft",
|
6432 | value: function scrollLeft(_scrollLeft) {
|
6433 | if (_scrollLeft !== undefined) {
|
6434 | document.body.scrollLeft = _scrollLeft;
|
6435 | document.documentElement.scrollLeft = _scrollLeft;
|
6436 | return this;
|
6437 | } else {
|
6438 | return window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
|
6439 | }
|
6440 | }
|
6441 | }, {
|
6442 | key: "offset",
|
6443 | value: function offset() {
|
6444 | if (!this.firstElement) {
|
6445 | return {
|
6446 | left: 0,
|
6447 | top: 0
|
6448 | };
|
6449 | }
|
6450 |
|
6451 | var rect = this.firstElement.getBoundingClientRect();
|
6452 | var bodyMarginLeft = $LG('body').style().marginLeft;
|
6453 |
|
6454 | return {
|
6455 | left: rect.left - parseFloat(bodyMarginLeft) + this.scrollLeft(),
|
6456 | top: rect.top + this.scrollTop()
|
6457 | };
|
6458 | }
|
6459 | }, {
|
6460 | key: "style",
|
6461 | value: function style() {
|
6462 | if (!this.firstElement) {
|
6463 | return {};
|
6464 | }
|
6465 |
|
6466 | return this.firstElement.currentStyle || window.getComputedStyle(this.firstElement);
|
6467 | }
|
6468 |
|
6469 | }, {
|
6470 | key: "width",
|
6471 | value: function width() {
|
6472 | var style = this.style();
|
6473 | return this.firstElement.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
|
6474 | }
|
6475 |
|
6476 | }, {
|
6477 | key: "height",
|
6478 | value: function height() {
|
6479 | var style = this.style();
|
6480 | return this.firstElement.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom);
|
6481 | }
|
6482 | }], [{
|
6483 | key: "generateUUID",
|
6484 | value: function generateUUID() {
|
6485 | return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
6486 | var r = Math.random() * 16 | 0,
|
6487 | v = c == 'x' ? r : r & 0x3 | 0x8;
|
6488 | return v.toString(16);
|
6489 | });
|
6490 | }
|
6491 | }]);
|
6492 |
|
6493 | return lgQuery;
|
6494 | }();
|
6495 | lgQuery_lgQuery.eventListeners = {};
|
6496 | function $LG(selector) {
|
6497 | initLgPolyfills();
|
6498 | return new lgQuery_lgQuery(selector);
|
6499 | }
|
6500 |
|
6501 |
|
6502 |
|
6503 |
|
6504 |
|
6505 |
|
6506 |
|
6507 |
|
6508 |
|
6509 |
|
6510 |
|
6511 |
|
6512 |
|
6513 |
|
6514 |
|
6515 |
|
6516 | var defaultDynamicOptions = ['src', 'sources', 'subHtml', 'subHtmlUrl', 'html', 'video', 'poster', 'slideName', 'responsive', 'srcset', 'sizes', 'iframe', 'downloadUrl', 'download', 'width', 'facebookShareUrl', 'tweetText', 'iframeTitle', 'twitterShareUrl', 'pinterestShareUrl', 'pinterestText', 'fbHtml', 'disqusIdentifier', 'disqusUrl'];
|
6517 |
|
6518 | function convertToData(attr) {
|
6519 |
|
6520 | if (attr === 'href') {
|
6521 | return 'src';
|
6522 | }
|
6523 |
|
6524 | attr = attr.replace('data-', '');
|
6525 | attr = attr.charAt(0).toLowerCase() + attr.slice(1);
|
6526 | attr = attr.replace(/-([a-z])/g, function (g) {
|
6527 | return g[1].toUpperCase();
|
6528 | });
|
6529 | return attr;
|
6530 | }
|
6531 | var utils = {
|
6532 | |
6533 |
|
6534 |
|
6535 | getSize: function getSize(el, container) {
|
6536 | var spacing = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
6537 | var defaultLgSize = arguments.length > 3 ? arguments[3] : undefined;
|
6538 | var LGel = $LG(el);
|
6539 | var lgSize = LGel.attr('data-lg-size') || defaultLgSize;
|
6540 |
|
6541 | if (!lgSize) {
|
6542 | return;
|
6543 | }
|
6544 |
|
6545 | var isResponsiveSizes = lgSize.split(',');
|
6546 |
|
6547 | if (isResponsiveSizes[1]) {
|
6548 | var wWidth = window.innerWidth;
|
6549 |
|
6550 | for (var i = 0; i < isResponsiveSizes.length; i++) {
|
6551 | var _size = isResponsiveSizes[i];
|
6552 | var responsiveWidth = parseInt(_size.split('-')[2], 10);
|
6553 |
|
6554 | if (responsiveWidth > wWidth) {
|
6555 | lgSize = _size;
|
6556 | break;
|
6557 | }
|
6558 |
|
6559 |
|
6560 | if (i === isResponsiveSizes.length - 1) {
|
6561 | lgSize = _size;
|
6562 | }
|
6563 | }
|
6564 | }
|
6565 |
|
6566 | var size = lgSize.split('-');
|
6567 | var width = parseInt(size[0], 10);
|
6568 | var height = parseInt(size[1], 10);
|
6569 | var cWidth = container.width();
|
6570 | var cHeight = container.height() - spacing;
|
6571 | var maxWidth = Math.min(cWidth, width);
|
6572 | var maxHeight = Math.min(cHeight, height);
|
6573 | var ratio = Math.min(maxWidth / width, maxHeight / height);
|
6574 | return {
|
6575 | width: width * ratio,
|
6576 | height: height * ratio
|
6577 | };
|
6578 | },
|
6579 |
|
6580 | |
6581 |
|
6582 |
|
6583 |
|
6584 |
|
6585 | getTransform: function getTransform(el, container, top, bottom, imageSize) {
|
6586 | if (!imageSize) {
|
6587 | return;
|
6588 | }
|
6589 |
|
6590 | var LGel = $LG(el).find('img').first();
|
6591 |
|
6592 | if (!LGel.get()) {
|
6593 | return;
|
6594 | }
|
6595 |
|
6596 | var containerRect = container.get().getBoundingClientRect();
|
6597 | var wWidth = containerRect.width;
|
6598 |
|
6599 | var wHeight = container.height() - (top + bottom);
|
6600 | var elWidth = LGel.width();
|
6601 | var elHeight = LGel.height();
|
6602 | var elStyle = LGel.style();
|
6603 | var x = (wWidth - elWidth) / 2 - LGel.offset().left + (parseFloat(elStyle.paddingLeft) || 0) + (parseFloat(elStyle.borderLeft) || 0) + $LG(window).scrollLeft() + containerRect.left;
|
6604 | var y = (wHeight - elHeight) / 2 - LGel.offset().top + (parseFloat(elStyle.paddingTop) || 0) + (parseFloat(elStyle.borderTop) || 0) + $LG(window).scrollTop() + top;
|
6605 | var scX = elWidth / imageSize.width;
|
6606 | var scY = elHeight / imageSize.height;
|
6607 | var transform = 'translate3d(' + (x *= -1) + 'px, ' + (y *= -1) + 'px, 0) scale3d(' + scX + ', ' + scY + ', 1)';
|
6608 | return transform;
|
6609 | },
|
6610 | getIframeMarkup: function getIframeMarkup(iframeWidth, iframeHeight, iframeMaxWidth, iframeMaxHeight, src, iframeTitle) {
|
6611 | var title = iframeTitle ? 'title="' + iframeTitle + '"' : '';
|
6612 | return "<div class=\"lg-video-cont lg-has-iframe\" style=\"width:".concat(iframeWidth, "; max-width:").concat(iframeMaxWidth, "; height: ").concat(iframeHeight, "; max-height:").concat(iframeMaxHeight, "\">\n <iframe class=\"lg-object\" frameborder=\"0\" ").concat(title, " src=\"").concat(src, "\" allowfullscreen=\"true\"></iframe>\n </div>");
|
6613 | },
|
6614 | getImgMarkup: function getImgMarkup(index, src, altAttr, srcset, sizes, sources) {
|
6615 | var srcsetAttr = srcset ? "srcset=\"".concat(srcset, "\"") : '';
|
6616 | var sizesAttr = sizes ? "sizes=\"".concat(sizes, "\"") : '';
|
6617 | var imgMarkup = "<img ".concat(altAttr, " ").concat(srcsetAttr, " ").concat(sizesAttr, " class=\"lg-object lg-image\" data-index=\"").concat(index, "\" src=\"").concat(src, "\" />");
|
6618 | var sourceTag = '';
|
6619 |
|
6620 | if (sources) {
|
6621 | var sourceObj = typeof sources === 'string' ? JSON.parse(sources) : sources;
|
6622 | sourceTag = sourceObj.map(function (source) {
|
6623 | var attrs = '';
|
6624 | Object.keys(source).forEach(function (key) {
|
6625 |
|
6626 | attrs += " ".concat(key, "=\"").concat(source[key], "\"");
|
6627 | });
|
6628 | return "<source ".concat(attrs, "></source>");
|
6629 | });
|
6630 | }
|
6631 |
|
6632 | return "".concat(sourceTag).concat(imgMarkup);
|
6633 | },
|
6634 |
|
6635 | getResponsiveSrc: function getResponsiveSrc(srcItms) {
|
6636 | var rsWidth = [];
|
6637 | var rsSrc = [];
|
6638 | var src = '';
|
6639 |
|
6640 | for (var i = 0; i < srcItms.length; i++) {
|
6641 | var _src = srcItms[i].split(' ');
|
6642 |
|
6643 |
|
6644 | if (_src[0] === '') {
|
6645 | _src.splice(0, 1);
|
6646 | }
|
6647 |
|
6648 | rsSrc.push(_src[0]);
|
6649 | rsWidth.push(_src[1]);
|
6650 | }
|
6651 |
|
6652 | var wWidth = window.innerWidth;
|
6653 |
|
6654 | for (var j = 0; j < rsWidth.length; j++) {
|
6655 | if (parseInt(rsWidth[j], 10) > wWidth) {
|
6656 | src = rsSrc[j];
|
6657 | break;
|
6658 | }
|
6659 | }
|
6660 |
|
6661 | return src;
|
6662 | },
|
6663 | isImageLoaded: function isImageLoaded(img) {
|
6664 | if (!img) return false;
|
6665 |
|
6666 |
|
6667 |
|
6668 | if (!img.complete) {
|
6669 | return false;
|
6670 | }
|
6671 |
|
6672 |
|
6673 |
|
6674 |
|
6675 | if (img.naturalWidth === 0) {
|
6676 | return false;
|
6677 | }
|
6678 |
|
6679 |
|
6680 | return true;
|
6681 | },
|
6682 | getVideoPosterMarkup: function getVideoPosterMarkup(_poster, dummyImg, videoContStyle, playVideoString, _isVideo) {
|
6683 | var videoClass = '';
|
6684 |
|
6685 | if (_isVideo && _isVideo.youtube) {
|
6686 | videoClass = 'lg-has-youtube';
|
6687 | } else if (_isVideo && _isVideo.vimeo) {
|
6688 | videoClass = 'lg-has-vimeo';
|
6689 | } else {
|
6690 | videoClass = 'lg-has-html5';
|
6691 | }
|
6692 |
|
6693 | return "<div class=\"lg-video-cont ".concat(videoClass, "\" style=\"").concat(videoContStyle, "\">\n <div class=\"lg-video-play-button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"xMidYMid\"\n focusable=\"false\"\n aria-labelledby=\"").concat(playVideoString, "\"\n role=\"img\"\n class=\"lg-video-play-icon\"\n >\n <title>").concat(playVideoString, "</title>\n <polygon class=\"lg-video-play-icon-inner\" points=\"1,0 20,10 1,20\"></polygon>\n </svg>\n <svg class=\"lg-video-play-icon-bg\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle></svg>\n <svg class=\"lg-video-play-icon-circle\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle>\n </svg>\n </div>\n ").concat(dummyImg || '', "\n <img class=\"lg-object lg-video-poster\" src=\"").concat(_poster, "\" />\n </div>");
|
6694 | },
|
6695 | getFocusableElements: function getFocusableElements(container) {
|
6696 | var elements = container.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');
|
6697 | var visibleElements = [].filter.call(elements, function (element) {
|
6698 | var style = window.getComputedStyle(element);
|
6699 | return style.display !== 'none' && style.visibility !== 'hidden';
|
6700 | });
|
6701 | return visibleElements;
|
6702 | },
|
6703 |
|
6704 | |
6705 |
|
6706 |
|
6707 |
|
6708 |
|
6709 |
|
6710 |
|
6711 | getDynamicOptions: function getDynamicOptions(items, extraProps, getCaptionFromTitleOrAlt, exThumbImage) {
|
6712 | var dynamicElements = [];
|
6713 | var availableDynamicOptions = [].concat(defaultDynamicOptions, toConsumableArray_toConsumableArray(extraProps));
|
6714 | [].forEach.call(items, function (item) {
|
6715 | var dynamicEl = {};
|
6716 |
|
6717 | for (var i = 0; i < item.attributes.length; i++) {
|
6718 | var attr = item.attributes[i];
|
6719 |
|
6720 | if (attr.specified) {
|
6721 | var dynamicAttr = convertToData(attr.name);
|
6722 | var label = '';
|
6723 |
|
6724 | if (availableDynamicOptions.indexOf(dynamicAttr) > -1) {
|
6725 | label = dynamicAttr;
|
6726 | }
|
6727 |
|
6728 | if (label) {
|
6729 | dynamicEl[label] = attr.value;
|
6730 | }
|
6731 | }
|
6732 | }
|
6733 |
|
6734 | var currentItem = $LG(item);
|
6735 | var alt = currentItem.find('img').first().attr('alt');
|
6736 | var title = currentItem.attr('title');
|
6737 | var thumb = exThumbImage ? currentItem.attr(exThumbImage) : currentItem.find('img').first().attr('src');
|
6738 | dynamicEl.thumb = thumb;
|
6739 |
|
6740 | if (getCaptionFromTitleOrAlt && !dynamicEl.subHtml) {
|
6741 | dynamicEl.subHtml = title || alt || '';
|
6742 | }
|
6743 |
|
6744 | dynamicEl.alt = alt || title || '';
|
6745 | dynamicElements.push(dynamicEl);
|
6746 | });
|
6747 | return dynamicElements;
|
6748 | },
|
6749 | isMobile: function isMobile() {
|
6750 | return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
6751 | },
|
6752 |
|
6753 | |
6754 |
|
6755 |
|
6756 |
|
6757 |
|
6758 |
|
6759 |
|
6760 |
|
6761 | isVideo: function isVideo(src, isHTML5VIdeo, index) {
|
6762 | if (!src) {
|
6763 | if (isHTML5VIdeo) {
|
6764 | return {
|
6765 | html5: true
|
6766 | };
|
6767 | } else {
|
6768 | console.error('lightGallery :- data-src is not provided on slide item ' + (index + 1) + '. Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/');
|
6769 | return;
|
6770 | }
|
6771 | }
|
6772 |
|
6773 | var youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i);
|
6774 | var vimeo = src.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i);
|
6775 | var wistia = src.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);
|
6776 |
|
6777 | if (youtube) {
|
6778 | return {
|
6779 | youtube: youtube
|
6780 | };
|
6781 | } else if (vimeo) {
|
6782 | return {
|
6783 | vimeo: vimeo
|
6784 | };
|
6785 | } else if (wistia) {
|
6786 | return {
|
6787 | wistia: wistia
|
6788 | };
|
6789 | }
|
6790 | }
|
6791 | };
|
6792 | var lg_utils = (utils);
|
6793 |
|
6794 |
|
6795 |
|
6796 |
|
6797 |
|
6798 |
|
6799 |
|
6800 |
|
6801 |
|
6802 |
|
6803 |
|
6804 |
|
6805 |
|
6806 |
|
6807 |
|
6808 |
|
6809 | var lgId = 0;
|
6810 | var lightgallery_LightGallery = function () {
|
6811 | function LightGallery(element, options) {
|
6812 | _classCallCheck(this, LightGallery);
|
6813 |
|
6814 | this.lgOpened = false;
|
6815 | this.index = 0;
|
6816 |
|
6817 | this.plugins = [];
|
6818 |
|
6819 | this.lGalleryOn = false;
|
6820 |
|
6821 | this.lgBusy = false;
|
6822 | this.currentItemsInDom = [];
|
6823 |
|
6824 | this.prevScrollTop = 0;
|
6825 | this.bodyPaddingRight = 0;
|
6826 | this.isDummyImageRemoved = false;
|
6827 | this.dragOrSwipeEnabled = false;
|
6828 | this.mediaContainerPosition = {
|
6829 | top: 0,
|
6830 | bottom: 0
|
6831 | };
|
6832 |
|
6833 | if (!element) {
|
6834 | return this;
|
6835 | }
|
6836 |
|
6837 | lgId++;
|
6838 | this.lgId = lgId;
|
6839 | this.el = element;
|
6840 | this.LGel = $LG(element);
|
6841 | this.generateSettings(options);
|
6842 | this.buildModules();
|
6843 |
|
6844 | if (this.settings.dynamic && this.settings.dynamicEl !== undefined && !Array.isArray(this.settings.dynamicEl)) {
|
6845 | throw 'When using dynamic mode, you must also define dynamicEl as an Array.';
|
6846 | }
|
6847 |
|
6848 | this.galleryItems = this.getItems();
|
6849 | this.normalizeSettings();
|
6850 |
|
6851 | this.init();
|
6852 | this.validateLicense();
|
6853 | return this;
|
6854 | }
|
6855 |
|
6856 | _createClass(LightGallery, [{
|
6857 | key: "generateSettings",
|
6858 | value: function generateSettings(options) {
|
6859 |
|
6860 | this.settings = _objectSpread2(_objectSpread2({}, lightGalleryCoreSettings), options);
|
6861 |
|
6862 | if (this.settings.isMobile && typeof this.settings.isMobile === 'function' ? this.settings.isMobile() : lg_utils.isMobile()) {
|
6863 | var mobileSettings = _objectSpread2(_objectSpread2({}, this.settings.mobileSettings), this.settings.mobileSettings);
|
6864 |
|
6865 | this.settings = _objectSpread2(_objectSpread2({}, this.settings), mobileSettings);
|
6866 | }
|
6867 | }
|
6868 | }, {
|
6869 | key: "normalizeSettings",
|
6870 | value: function normalizeSettings() {
|
6871 | if (this.settings.slideEndAnimation) {
|
6872 | this.settings.hideControlOnEnd = false;
|
6873 | }
|
6874 |
|
6875 | if (!this.settings.closable) {
|
6876 | this.settings.swipeToClose = false;
|
6877 | }
|
6878 |
|
6879 |
|
6880 | this.zoomFromOrigin = this.settings.zoomFromOrigin;
|
6881 |
|
6882 |
|
6883 | if (this.settings.dynamic) {
|
6884 | this.zoomFromOrigin = false;
|
6885 | }
|
6886 |
|
6887 | if (!this.settings.container) {
|
6888 | this.settings.container = document.body;
|
6889 | }
|
6890 |
|
6891 |
|
6892 | this.settings.preload = Math.min(this.settings.preload, this.galleryItems.length);
|
6893 | }
|
6894 | }, {
|
6895 | key: "init",
|
6896 | value: function init() {
|
6897 | var _this = this;
|
6898 |
|
6899 | this.addSlideVideoInfo(this.galleryItems);
|
6900 | this.buildStructure();
|
6901 | this.LGel.trigger(lGEvents.init, {
|
6902 | instance: this
|
6903 | });
|
6904 |
|
6905 | if (this.settings.keyPress) {
|
6906 | this.keyPress();
|
6907 | }
|
6908 |
|
6909 | setTimeout(function () {
|
6910 | _this.enableDrag();
|
6911 |
|
6912 | _this.enableSwipe();
|
6913 |
|
6914 | _this.triggerPosterClick();
|
6915 | }, 50);
|
6916 | this.arrow();
|
6917 |
|
6918 | if (this.settings.mousewheel) {
|
6919 | this.mousewheel();
|
6920 | }
|
6921 |
|
6922 | if (!this.settings.dynamic) {
|
6923 | this.openGalleryOnItemClick();
|
6924 | }
|
6925 | }
|
6926 | }, {
|
6927 | key: "openGalleryOnItemClick",
|
6928 | value: function openGalleryOnItemClick() {
|
6929 | var _this2 = this;
|
6930 |
|
6931 | var _loop2 = function _loop2(index) {
|
6932 | var element = _this2.items[index];
|
6933 | var $element = $LG(element);
|
6934 |
|
6935 |
|
6936 | var uuid = lgQuery_lgQuery.generateUUID();
|
6937 | $element.attr('data-lg-id', uuid).on("click.lgcustom-item-".concat(uuid), function (e) {
|
6938 | e.preventDefault();
|
6939 | var currentItemIndex = _this2.settings.index || index;
|
6940 |
|
6941 | _this2.openGallery(currentItemIndex, element);
|
6942 | });
|
6943 | };
|
6944 |
|
6945 |
|
6946 | for (var index = 0; index < this.items.length; index++) {
|
6947 | _loop2(index);
|
6948 | }
|
6949 | }
|
6950 | |
6951 |
|
6952 |
|
6953 |
|
6954 |
|
6955 |
|
6956 |
|
6957 | }, {
|
6958 | key: "buildModules",
|
6959 | value: function buildModules() {
|
6960 | var _this3 = this;
|
6961 |
|
6962 | this.settings.plugins.forEach(function (plugin) {
|
6963 | _this3.plugins.push(new plugin(_this3, $LG));
|
6964 | });
|
6965 | }
|
6966 | }, {
|
6967 | key: "validateLicense",
|
6968 | value: function validateLicense() {
|
6969 | if (!this.settings.licenseKey) {
|
6970 | console.error('Please provide a valid license key');
|
6971 | } else if (this.settings.licenseKey === '0000-0000-000-0000') {
|
6972 | console.warn("lightGallery: ".concat(this.settings.licenseKey, " license key is not valid for production use"));
|
6973 | }
|
6974 | }
|
6975 | }, {
|
6976 | key: "getSlideItem",
|
6977 | value: function getSlideItem(index) {
|
6978 | return $LG(this.getSlideItemId(index));
|
6979 | }
|
6980 | }, {
|
6981 | key: "getSlideItemId",
|
6982 | value: function getSlideItemId(index) {
|
6983 | return "#lg-item-".concat(this.lgId, "-").concat(index);
|
6984 | }
|
6985 | }, {
|
6986 | key: "getIdName",
|
6987 | value: function getIdName(id) {
|
6988 | return "".concat(id, "-").concat(this.lgId);
|
6989 | }
|
6990 | }, {
|
6991 | key: "getElementById",
|
6992 | value: function getElementById(id) {
|
6993 | return $LG("#".concat(this.getIdName(id)));
|
6994 | }
|
6995 | }, {
|
6996 | key: "manageSingleSlideClassName",
|
6997 | value: function manageSingleSlideClassName() {
|
6998 | if (this.galleryItems.length < 2) {
|
6999 | this.outer.addClass('lg-single-item');
|
7000 | } else {
|
7001 | this.outer.removeClass('lg-single-item');
|
7002 | }
|
7003 | }
|
7004 | }, {
|
7005 | key: "buildStructure",
|
7006 | value: function buildStructure() {
|
7007 | var _this4 = this;
|
7008 |
|
7009 | var container = this.$container && this.$container.get();
|
7010 |
|
7011 | if (container) {
|
7012 | return;
|
7013 | }
|
7014 |
|
7015 | var controls = '';
|
7016 | var subHtmlCont = '';
|
7017 |
|
7018 | if (this.settings.controls) {
|
7019 | controls = "<button type=\"button\" id=\"".concat(this.getIdName('lg-prev'), "\" aria-label=\"").concat(this.settings.strings['previousSlide'], "\" class=\"lg-prev lg-icon\"> ").concat(this.settings.prevHtml, " </button>\n <button type=\"button\" id=\"").concat(this.getIdName('lg-next'), "\" aria-label=\"").concat(this.settings.strings['nextSlide'], "\" class=\"lg-next lg-icon\"> ").concat(this.settings.nextHtml, " </button>");
|
7020 | }
|
7021 |
|
7022 | if (this.settings.appendSubHtmlTo !== '.lg-item') {
|
7023 | subHtmlCont = '<div class="lg-sub-html" role="status" aria-live="polite"></div>';
|
7024 | }
|
7025 |
|
7026 | var addClasses = '';
|
7027 |
|
7028 | if (this.settings.allowMediaOverlap) {
|
7029 |
|
7030 | addClasses += 'lg-media-overlap ';
|
7031 | }
|
7032 |
|
7033 | var ariaLabelledby = this.settings.ariaLabelledby ? 'aria-labelledby="' + this.settings.ariaLabelledby + '"' : '';
|
7034 | var ariaDescribedby = this.settings.ariaDescribedby ? 'aria-describedby="' + this.settings.ariaDescribedby + '"' : '';
|
7035 | var containerClassName = "lg-container ".concat(this.settings.addClass, " ").concat(document.body !== this.settings.container ? 'lg-inline' : '');
|
7036 | var closeIcon = this.settings.closable && this.settings.showCloseIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['closeGallery'], "\" id=\"").concat(this.getIdName('lg-close'), "\" class=\"lg-close lg-icon\"></button>") : '';
|
7037 | var maximizeIcon = this.settings.showMaximizeIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['toggleMaximize'], "\" id=\"").concat(this.getIdName('lg-maximize'), "\" class=\"lg-maximize lg-icon\"></button>") : '';
|
7038 | var template = "\n <div class=\"".concat(containerClassName, "\" id=\"").concat(this.getIdName('lg-container'), "\" tabindex=\"-1\" aria-modal=\"true\" ").concat(ariaLabelledby, " ").concat(ariaDescribedby, " role=\"dialog\"\n >\n <div id=\"").concat(this.getIdName('lg-backdrop'), "\" class=\"lg-backdrop\"></div>\n\n <div id=\"").concat(this.getIdName('lg-outer'), "\" class=\"lg-outer lg-use-css3 lg-css3 lg-hide-items ").concat(addClasses, " \">\n\n <div id=\"").concat(this.getIdName('lg-content'), "\" class=\"lg-content\">\n <div id=\"").concat(this.getIdName('lg-inner'), "\" class=\"lg-inner\">\n </div>\n ").concat(controls, "\n </div>\n <div id=\"").concat(this.getIdName('lg-toolbar'), "\" class=\"lg-toolbar lg-group\">\n ").concat(maximizeIcon, "\n ").concat(closeIcon, "\n </div>\n ").concat(this.settings.appendSubHtmlTo === '.lg-outer' ? subHtmlCont : '', "\n <div id=\"").concat(this.getIdName('lg-components'), "\" class=\"lg-components\">\n ").concat(this.settings.appendSubHtmlTo === '.lg-sub-html' ? subHtmlCont : '', "\n </div>\n </div>\n </div>\n ");
|
7039 | $LG(this.settings.container).append(template);
|
7040 |
|
7041 | if (document.body !== this.settings.container) {
|
7042 | $LG(this.settings.container).css('position', 'relative');
|
7043 | }
|
7044 |
|
7045 | this.outer = this.getElementById('lg-outer');
|
7046 | this.$lgComponents = this.getElementById('lg-components');
|
7047 | this.$backdrop = this.getElementById('lg-backdrop');
|
7048 | this.$container = this.getElementById('lg-container');
|
7049 | this.$inner = this.getElementById('lg-inner');
|
7050 | this.$content = this.getElementById('lg-content');
|
7051 | this.$toolbar = this.getElementById('lg-toolbar');
|
7052 | this.$backdrop.css('transition-duration', this.settings.backdropDuration + 'ms');
|
7053 | var outerClassNames = "".concat(this.settings.mode, " ");
|
7054 | this.manageSingleSlideClassName();
|
7055 |
|
7056 | if (this.settings.enableDrag) {
|
7057 | outerClassNames += 'lg-grab ';
|
7058 | }
|
7059 |
|
7060 | this.outer.addClass(outerClassNames);
|
7061 | this.$inner.css('transition-timing-function', this.settings.easing);
|
7062 | this.$inner.css('transition-duration', this.settings.speed + 'ms');
|
7063 |
|
7064 | if (this.settings.download) {
|
7065 | this.$toolbar.append("<a id=\"".concat(this.getIdName('lg-download'), "\" target=\"_blank\" rel=\"noopener\" aria-label=\"").concat(this.settings.strings['download'], "\" download class=\"lg-download lg-icon\"></a>"));
|
7066 | }
|
7067 |
|
7068 | this.counter();
|
7069 | $LG(window).on("resize.lg.global".concat(this.lgId, " orientationchange.lg.global").concat(this.lgId), function () {
|
7070 | _this4.refreshOnResize();
|
7071 | });
|
7072 | this.hideBars();
|
7073 | this.manageCloseGallery();
|
7074 | this.toggleMaximize();
|
7075 | this.initModules();
|
7076 | }
|
7077 | }, {
|
7078 | key: "refreshOnResize",
|
7079 | value: function refreshOnResize() {
|
7080 | if (this.lgOpened) {
|
7081 | var currentGalleryItem = this.galleryItems[this.index];
|
7082 | var __slideVideoInfo = currentGalleryItem.__slideVideoInfo;
|
7083 | this.mediaContainerPosition = this.getMediaContainerPosition();
|
7084 | var _this$mediaContainerP = this.mediaContainerPosition,
|
7085 | top = _this$mediaContainerP.top,
|
7086 | bottom = _this$mediaContainerP.bottom;
|
7087 | this.currentImageSize = lg_utils.getSize(this.items[this.index], this.outer, top + bottom, __slideVideoInfo && this.settings.videoMaxSize);
|
7088 |
|
7089 | if (__slideVideoInfo) {
|
7090 | this.resizeVideoSlide(this.index, this.currentImageSize);
|
7091 | }
|
7092 |
|
7093 | if (this.zoomFromOrigin && !this.isDummyImageRemoved) {
|
7094 | var imgStyle = this.getDummyImgStyles(this.currentImageSize);
|
7095 | this.outer.find('.lg-current .lg-dummy-img').first().attr('style', imgStyle);
|
7096 | }
|
7097 |
|
7098 | this.LGel.trigger(lGEvents.containerResize);
|
7099 | }
|
7100 | }
|
7101 | }, {
|
7102 | key: "resizeVideoSlide",
|
7103 | value: function resizeVideoSlide(index, imageSize) {
|
7104 | var lgVideoStyle = this.getVideoContStyle(imageSize);
|
7105 | var currentSlide = this.getSlideItem(index);
|
7106 | currentSlide.find('.lg-video-cont').attr('style', lgVideoStyle);
|
7107 | }
|
7108 | |
7109 |
|
7110 |
|
7111 |
|
7112 |
|
7113 |
|
7114 |
|
7115 |
|
7116 |
|
7117 |
|
7118 |
|
7119 |
|
7120 |
|
7121 |
|
7122 |
|
7123 |
|
7124 |
|
7125 |
|
7126 |
|
7127 |
|
7128 |
|
7129 |
|
7130 |
|
7131 |
|
7132 |
|
7133 |
|
7134 |
|
7135 |
|
7136 |
|
7137 |
|
7138 |
|
7139 |
|
7140 |
|
7141 |
|
7142 |
|
7143 |
|
7144 |
|
7145 |
|
7146 |
|
7147 |
|
7148 |
|
7149 |
|
7150 |
|
7151 | }, {
|
7152 | key: "updateSlides",
|
7153 | value: function updateSlides(items, index) {
|
7154 | if (this.index > items.length - 1) {
|
7155 | this.index = items.length - 1;
|
7156 | }
|
7157 |
|
7158 | if (items.length === 1) {
|
7159 | this.index = 0;
|
7160 | }
|
7161 |
|
7162 | if (!items.length) {
|
7163 | this.closeGallery();
|
7164 | return;
|
7165 | }
|
7166 |
|
7167 | var currentSrc = this.galleryItems[index].src;
|
7168 | this.galleryItems = items;
|
7169 | this.updateControls();
|
7170 | this.$inner.empty();
|
7171 | this.currentItemsInDom = [];
|
7172 | var _index = 0;
|
7173 |
|
7174 | this.galleryItems.some(function (galleryItem, itemIndex) {
|
7175 | if (galleryItem.src === currentSrc) {
|
7176 | _index = itemIndex;
|
7177 | return true;
|
7178 | }
|
7179 |
|
7180 | return false;
|
7181 | });
|
7182 | this.currentItemsInDom = this.organizeSlideItems(_index, -1);
|
7183 | this.loadContent(_index, true);
|
7184 | this.getSlideItem(_index).addClass('lg-current');
|
7185 | this.index = _index;
|
7186 | this.updateCurrentCounter(_index);
|
7187 | this.LGel.trigger(lGEvents.updateSlides);
|
7188 | }
|
7189 |
|
7190 | }, {
|
7191 | key: "getItems",
|
7192 | value: function getItems() {
|
7193 |
|
7194 | this.items = [];
|
7195 |
|
7196 | if (!this.settings.dynamic) {
|
7197 | if (this.settings.selector === 'this') {
|
7198 | this.items.push(this.el);
|
7199 | } else if (this.settings.selector) {
|
7200 | if (typeof this.settings.selector === 'string') {
|
7201 | if (this.settings.selectWithin) {
|
7202 | var selectWithin = $LG(this.settings.selectWithin);
|
7203 | this.items = selectWithin.find(this.settings.selector).get();
|
7204 | } else {
|
7205 | this.items = this.el.querySelectorAll(this.settings.selector);
|
7206 | }
|
7207 | } else {
|
7208 | this.items = this.settings.selector;
|
7209 | }
|
7210 | } else {
|
7211 | this.items = this.el.children;
|
7212 | }
|
7213 |
|
7214 | return lg_utils.getDynamicOptions(this.items, this.settings.extraProps, this.settings.getCaptionFromTitleOrAlt, this.settings.exThumbImage);
|
7215 | } else {
|
7216 | return this.settings.dynamicEl || [];
|
7217 | }
|
7218 | }
|
7219 | }, {
|
7220 | key: "shouldHideScrollbar",
|
7221 | value: function shouldHideScrollbar() {
|
7222 | return this.settings.hideScrollbar && document.body === this.settings.container;
|
7223 | }
|
7224 | }, {
|
7225 | key: "hideScrollbar",
|
7226 | value: function hideScrollbar() {
|
7227 | if (!this.shouldHideScrollbar()) {
|
7228 | return;
|
7229 | }
|
7230 |
|
7231 | this.bodyPaddingRight = parseFloat($LG('body').style().paddingRight);
|
7232 | var bodyRect = document.documentElement.getBoundingClientRect();
|
7233 | var scrollbarWidth = window.innerWidth - bodyRect.width;
|
7234 | $LG(document.body).css('padding-right', scrollbarWidth + this.bodyPaddingRight + 'px');
|
7235 | $LG(document.body).addClass('lg-overlay-open');
|
7236 | }
|
7237 | }, {
|
7238 | key: "resetScrollBar",
|
7239 | value: function resetScrollBar() {
|
7240 | if (!this.shouldHideScrollbar()) {
|
7241 | return;
|
7242 | }
|
7243 |
|
7244 | $LG(document.body).css('padding-right', this.bodyPaddingRight + 'px');
|
7245 | $LG(document.body).removeClass('lg-overlay-open');
|
7246 | }
|
7247 | |
7248 |
|
7249 |
|
7250 |
|
7251 |
|
7252 |
|
7253 |
|
7254 |
|
7255 |
|
7256 |
|
7257 |
|
7258 |
|
7259 |
|
7260 |
|
7261 |
|
7262 |
|
7263 |
|
7264 |
|
7265 |
|
7266 |
|
7267 |
|
7268 |
|
7269 |
|
7270 |
|
7271 |
|
7272 |
|
7273 |
|
7274 |
|
7275 |
|
7276 | }, {
|
7277 | key: "openGallery",
|
7278 | value: function openGallery() {
|
7279 | var _this5 = this;
|
7280 |
|
7281 | var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.settings.index;
|
7282 | var element = arguments.length > 1 ? arguments[1] : undefined;
|
7283 |
|
7284 | if (this.lgOpened) return;
|
7285 | this.lgOpened = true;
|
7286 | this.outer.removeClass('lg-hide-items');
|
7287 | this.hideScrollbar();
|
7288 |
|
7289 | this.$container.addClass('lg-show');
|
7290 | var itemsToBeInsertedToDom = this.getItemsToBeInsertedToDom(index, index);
|
7291 | this.currentItemsInDom = itemsToBeInsertedToDom;
|
7292 | var items = '';
|
7293 | itemsToBeInsertedToDom.forEach(function (item) {
|
7294 | items = items + "<div id=\"".concat(item, "\" class=\"lg-item\"></div>");
|
7295 | });
|
7296 | this.$inner.append(items);
|
7297 | this.addHtml(index);
|
7298 | var transform = '';
|
7299 | this.mediaContainerPosition = this.getMediaContainerPosition();
|
7300 | var _this$mediaContainerP2 = this.mediaContainerPosition,
|
7301 | top = _this$mediaContainerP2.top,
|
7302 | bottom = _this$mediaContainerP2.bottom;
|
7303 |
|
7304 | if (!this.settings.allowMediaOverlap) {
|
7305 | this.setMediaContainerPosition(top, bottom);
|
7306 | }
|
7307 |
|
7308 | var __slideVideoInfo = this.galleryItems[index].__slideVideoInfo;
|
7309 |
|
7310 | if (this.zoomFromOrigin && element) {
|
7311 | this.currentImageSize = lg_utils.getSize(element, this.outer, top + bottom, __slideVideoInfo && this.settings.videoMaxSize);
|
7312 | transform = lg_utils.getTransform(element, this.outer, top, bottom, this.currentImageSize);
|
7313 | }
|
7314 |
|
7315 | if (!this.zoomFromOrigin || !transform) {
|
7316 | this.outer.addClass(this.settings.startClass);
|
7317 | this.getSlideItem(index).removeClass('lg-complete');
|
7318 | }
|
7319 |
|
7320 | var timeout = this.settings.zoomFromOrigin ? 100 : this.settings.backdropDuration;
|
7321 | setTimeout(function () {
|
7322 | _this5.outer.addClass('lg-components-open');
|
7323 | }, timeout);
|
7324 | this.index = index;
|
7325 | this.LGel.trigger(lGEvents.beforeOpen);
|
7326 |
|
7327 | this.getSlideItem(index).addClass('lg-current');
|
7328 | this.lGalleryOn = false;
|
7329 |
|
7330 | this.prevScrollTop = $LG(window).scrollTop();
|
7331 | setTimeout(function () {
|
7332 |
|
7333 |
|
7334 | if (_this5.zoomFromOrigin && transform) {
|
7335 | var currentSlide = _this5.getSlideItem(index);
|
7336 |
|
7337 | currentSlide.css('transform', transform);
|
7338 | setTimeout(function () {
|
7339 | currentSlide.addClass('lg-start-progress lg-start-end-progress').css('transition-duration', _this5.settings.startAnimationDuration + 'ms');
|
7340 |
|
7341 | _this5.outer.addClass('lg-zoom-from-image');
|
7342 | });
|
7343 | setTimeout(function () {
|
7344 | currentSlide.css('transform', 'translate3d(0, 0, 0)');
|
7345 | }, 100);
|
7346 | }
|
7347 |
|
7348 | setTimeout(function () {
|
7349 | _this5.$backdrop.addClass('in');
|
7350 |
|
7351 | _this5.$container.addClass('lg-show-in');
|
7352 | }, 10);
|
7353 | setTimeout(function () {
|
7354 | if (_this5.settings.trapFocus && document.body === _this5.settings.container) {
|
7355 | _this5.trapFocus();
|
7356 | }
|
7357 | }, _this5.settings.backdropDuration + 50);
|
7358 |
|
7359 | if (!_this5.zoomFromOrigin || !transform) {
|
7360 | setTimeout(function () {
|
7361 | _this5.outer.addClass('lg-visible');
|
7362 | }, _this5.settings.backdropDuration);
|
7363 | }
|
7364 |
|
7365 |
|
7366 | _this5.slide(index, false, false, false);
|
7367 |
|
7368 | _this5.LGel.trigger(lGEvents.afterOpen);
|
7369 | });
|
7370 |
|
7371 | if (document.body === this.settings.container) {
|
7372 | $LG('html').addClass('lg-on');
|
7373 | }
|
7374 | }
|
7375 | |
7376 |
|
7377 |
|
7378 |
|
7379 |
|
7380 |
|
7381 |
|
7382 | }, {
|
7383 | key: "getMediaContainerPosition",
|
7384 | value: function getMediaContainerPosition() {
|
7385 | if (this.settings.allowMediaOverlap) {
|
7386 | return {
|
7387 | top: 0,
|
7388 | bottom: 0
|
7389 | };
|
7390 | }
|
7391 |
|
7392 | var top = this.$toolbar.get().clientHeight || 0;
|
7393 | var subHtml = this.outer.find('.lg-components .lg-sub-html').get();
|
7394 | var captionHeight = this.settings.defaultCaptionHeight || subHtml && subHtml.clientHeight || 0;
|
7395 | var thumbContainer = this.outer.find('.lg-thumb-outer').get();
|
7396 | var thumbHeight = thumbContainer ? thumbContainer.clientHeight : 0;
|
7397 | var bottom = thumbHeight + captionHeight;
|
7398 | return {
|
7399 | top: top,
|
7400 | bottom: bottom
|
7401 | };
|
7402 | }
|
7403 | }, {
|
7404 | key: "setMediaContainerPosition",
|
7405 | value: function setMediaContainerPosition() {
|
7406 | var top = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
7407 | var bottom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
7408 | this.$content.css('top', top + 'px').css('bottom', bottom + 'px');
|
7409 | }
|
7410 | }, {
|
7411 | key: "hideBars",
|
7412 | value: function hideBars() {
|
7413 | var _this6 = this;
|
7414 |
|
7415 |
|
7416 | setTimeout(function () {
|
7417 | _this6.outer.removeClass('lg-hide-items');
|
7418 |
|
7419 | if (_this6.settings.hideBarsDelay > 0) {
|
7420 | _this6.outer.on('mousemove.lg click.lg touchstart.lg', function () {
|
7421 | _this6.outer.removeClass('lg-hide-items');
|
7422 |
|
7423 | clearTimeout(_this6.hideBarTimeout);
|
7424 |
|
7425 | _this6.hideBarTimeout = setTimeout(function () {
|
7426 | _this6.outer.addClass('lg-hide-items');
|
7427 | }, _this6.settings.hideBarsDelay);
|
7428 | });
|
7429 |
|
7430 | _this6.outer.trigger('mousemove.lg');
|
7431 | }
|
7432 | }, this.settings.showBarsAfter);
|
7433 | }
|
7434 | }, {
|
7435 | key: "initPictureFill",
|
7436 | value: function initPictureFill($img) {
|
7437 | if (this.settings.supportLegacyBrowser) {
|
7438 | try {
|
7439 | picturefill({
|
7440 | elements: [$img.get()]
|
7441 | });
|
7442 | } catch (e) {
|
7443 | console.warn('lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.');
|
7444 | }
|
7445 | }
|
7446 | }
|
7447 | |
7448 |
|
7449 |
|
7450 |
|
7451 |
|
7452 | }, {
|
7453 | key: "counter",
|
7454 | value: function counter() {
|
7455 | if (this.settings.counter) {
|
7456 | var counterHtml = "<div class=\"lg-counter\" role=\"status\" aria-live=\"polite\">\n <span id=\"".concat(this.getIdName('lg-counter-current'), "\" class=\"lg-counter-current\">").concat(this.index + 1, " </span> /\n <span id=\"").concat(this.getIdName('lg-counter-all'), "\" class=\"lg-counter-all\">").concat(this.galleryItems.length, " </span></div>");
|
7457 | this.outer.find(this.settings.appendCounterTo).append(counterHtml);
|
7458 | }
|
7459 | }
|
7460 | |
7461 |
|
7462 |
|
7463 |
|
7464 |
|
7465 | }, {
|
7466 | key: "addHtml",
|
7467 | value: function addHtml(index) {
|
7468 | var subHtml;
|
7469 | var subHtmlUrl;
|
7470 |
|
7471 | if (this.galleryItems[index].subHtmlUrl) {
|
7472 | subHtmlUrl = this.galleryItems[index].subHtmlUrl;
|
7473 | } else {
|
7474 | subHtml = this.galleryItems[index].subHtml;
|
7475 | }
|
7476 |
|
7477 | if (!subHtmlUrl) {
|
7478 | if (subHtml) {
|
7479 |
|
7480 |
|
7481 | var fL = subHtml.substring(0, 1);
|
7482 |
|
7483 | if (fL === '.' || fL === '#') {
|
7484 | if (this.settings.subHtmlSelectorRelative && !this.settings.dynamic) {
|
7485 | subHtml = $LG(this.items).eq(index).find(subHtml).first().html();
|
7486 | } else {
|
7487 | subHtml = $LG(subHtml).first().html();
|
7488 | }
|
7489 | }
|
7490 | } else {
|
7491 | subHtml = '';
|
7492 | }
|
7493 | }
|
7494 |
|
7495 | if (this.settings.appendSubHtmlTo !== '.lg-item') {
|
7496 | if (subHtmlUrl) {
|
7497 | this.outer.find('.lg-sub-html').load(subHtmlUrl);
|
7498 | } else {
|
7499 | this.outer.find('.lg-sub-html').html(subHtml);
|
7500 | }
|
7501 | } else {
|
7502 | var currentSlide = $LG(this.getSlideItemId(index));
|
7503 |
|
7504 | if (subHtmlUrl) {
|
7505 | currentSlide.load(subHtmlUrl);
|
7506 | } else {
|
7507 | currentSlide.append("<div class=\"lg-sub-html\">".concat(subHtml, "</div>"));
|
7508 | }
|
7509 | }
|
7510 |
|
7511 |
|
7512 | if (typeof subHtml !== 'undefined' && subHtml !== null) {
|
7513 | if (subHtml === '') {
|
7514 | this.outer.find(this.settings.appendSubHtmlTo).addClass('lg-empty-html');
|
7515 | } else {
|
7516 | this.outer.find(this.settings.appendSubHtmlTo).removeClass('lg-empty-html');
|
7517 | }
|
7518 | }
|
7519 |
|
7520 | this.LGel.trigger(lGEvents.afterAppendSubHtml, {
|
7521 | index: index
|
7522 | });
|
7523 | }
|
7524 | |
7525 |
|
7526 |
|
7527 |
|
7528 |
|
7529 |
|
7530 | }, {
|
7531 | key: "preload",
|
7532 | value: function preload(index) {
|
7533 | for (var i = 1; i <= this.settings.preload; i++) {
|
7534 | if (i >= this.galleryItems.length - index) {
|
7535 | break;
|
7536 | }
|
7537 |
|
7538 | this.loadContent(index + i, false);
|
7539 | }
|
7540 |
|
7541 | for (var j = 1; j <= this.settings.preload; j++) {
|
7542 | if (index - j < 0) {
|
7543 | break;
|
7544 | }
|
7545 |
|
7546 | this.loadContent(index - j, false);
|
7547 | }
|
7548 | }
|
7549 | }, {
|
7550 | key: "getDummyImgStyles",
|
7551 | value: function getDummyImgStyles(imageSize) {
|
7552 | if (!imageSize) return '';
|
7553 | return "width:".concat(imageSize.width, "px;\n margin-left: -").concat(imageSize.width / 2, "px;\n margin-top: -").concat(imageSize.height / 2, "px;\n height:").concat(imageSize.height, "px");
|
7554 | }
|
7555 | }, {
|
7556 | key: "getVideoContStyle",
|
7557 | value: function getVideoContStyle(imageSize) {
|
7558 | if (!imageSize) return '';
|
7559 | return "width:".concat(imageSize.width, "px;\n height:").concat(imageSize.height, "px");
|
7560 | }
|
7561 | }, {
|
7562 | key: "getDummyImageContent",
|
7563 | value: function getDummyImageContent($currentSlide, index, alt) {
|
7564 | var $currentItem;
|
7565 |
|
7566 | if (!this.settings.dynamic) {
|
7567 | $currentItem = $LG(this.items).eq(index);
|
7568 | }
|
7569 |
|
7570 | if ($currentItem) {
|
7571 | var _dummyImgSrc;
|
7572 |
|
7573 | if (!this.settings.exThumbImage) {
|
7574 | _dummyImgSrc = $currentItem.find('img').first().attr('src');
|
7575 | } else {
|
7576 | _dummyImgSrc = $currentItem.attr(this.settings.exThumbImage);
|
7577 | }
|
7578 |
|
7579 | if (!_dummyImgSrc) return '';
|
7580 | var imgStyle = this.getDummyImgStyles(this.currentImageSize);
|
7581 | var dummyImgContent = "<img ".concat(alt, " style=\"").concat(imgStyle, "\" class=\"lg-dummy-img\" src=\"").concat(_dummyImgSrc, "\" />");
|
7582 | $currentSlide.addClass('lg-first-slide');
|
7583 | this.outer.addClass('lg-first-slide-loading');
|
7584 | return dummyImgContent;
|
7585 | }
|
7586 |
|
7587 | return '';
|
7588 | }
|
7589 | }, {
|
7590 | key: "setImgMarkup",
|
7591 | value: function setImgMarkup(src, $currentSlide, index) {
|
7592 | var currentGalleryItem = this.galleryItems[index];
|
7593 | var alt = currentGalleryItem.alt,
|
7594 | srcset = currentGalleryItem.srcset,
|
7595 | sizes = currentGalleryItem.sizes,
|
7596 | sources = currentGalleryItem.sources;
|
7597 |
|
7598 |
|
7599 | var imgContent = '';
|
7600 | var altAttr = alt ? 'alt="' + alt + '"' : '';
|
7601 |
|
7602 | if (this.isFirstSlideWithZoomAnimation()) {
|
7603 | imgContent = this.getDummyImageContent($currentSlide, index, altAttr);
|
7604 | } else {
|
7605 | imgContent = lg_utils.getImgMarkup(index, src, altAttr, srcset, sizes, sources);
|
7606 | }
|
7607 |
|
7608 | var imgMarkup = "<picture class=\"lg-img-wrap\"> ".concat(imgContent, "</picture>");
|
7609 | $currentSlide.prepend(imgMarkup);
|
7610 | }
|
7611 | }, {
|
7612 | key: "onSlideObjectLoad",
|
7613 | value: function onSlideObjectLoad($slide, isHTML5VideoWithoutPoster, onLoad, onError) {
|
7614 | var mediaObject = $slide.find('.lg-object').first();
|
7615 |
|
7616 | if (lg_utils.isImageLoaded(mediaObject.get()) || isHTML5VideoWithoutPoster) {
|
7617 | onLoad();
|
7618 | } else {
|
7619 | mediaObject.on('load.lg error.lg', function () {
|
7620 | onLoad && onLoad();
|
7621 | });
|
7622 | mediaObject.on('error.lg', function () {
|
7623 | onError && onError();
|
7624 | });
|
7625 | }
|
7626 | }
|
7627 | |
7628 |
|
7629 |
|
7630 |
|
7631 |
|
7632 |
|
7633 |
|
7634 |
|
7635 |
|
7636 | }, {
|
7637 | key: "onLgObjectLoad",
|
7638 | value: function onLgObjectLoad(currentSlide, index, delay, speed, isFirstSlide, isHTML5VideoWithoutPoster) {
|
7639 | var _this7 = this;
|
7640 |
|
7641 | this.onSlideObjectLoad(currentSlide, isHTML5VideoWithoutPoster, function () {
|
7642 | _this7.triggerSlideItemLoad(currentSlide, index, delay, speed, isFirstSlide);
|
7643 | }, function () {
|
7644 | currentSlide.addClass('lg-complete lg-complete_');
|
7645 | currentSlide.html('<span class="lg-error-msg">Oops... Failed to load content...</span>');
|
7646 | });
|
7647 | }
|
7648 | }, {
|
7649 | key: "triggerSlideItemLoad",
|
7650 | value: function triggerSlideItemLoad($currentSlide, index, delay, speed, isFirstSlide) {
|
7651 | var _this8 = this;
|
7652 |
|
7653 | var currentGalleryItem = this.galleryItems[index];
|
7654 |
|
7655 |
|
7656 | var _speed = isFirstSlide && this.getSlideType(currentGalleryItem) === 'video' && !currentGalleryItem.poster ? speed : 0;
|
7657 |
|
7658 | setTimeout(function () {
|
7659 | $currentSlide.addClass('lg-complete lg-complete_');
|
7660 |
|
7661 | _this8.LGel.trigger(lGEvents.slideItemLoad, {
|
7662 | index: index,
|
7663 | delay: delay || 0,
|
7664 | isFirstSlide: isFirstSlide
|
7665 | });
|
7666 | }, _speed);
|
7667 | }
|
7668 | }, {
|
7669 | key: "isFirstSlideWithZoomAnimation",
|
7670 | value: function isFirstSlideWithZoomAnimation() {
|
7671 | return !!(!this.lGalleryOn && this.zoomFromOrigin && this.currentImageSize);
|
7672 | }
|
7673 |
|
7674 | }, {
|
7675 | key: "addSlideVideoInfo",
|
7676 | value: function addSlideVideoInfo(items) {
|
7677 | var _this9 = this;
|
7678 |
|
7679 | items.forEach(function (element, index) {
|
7680 | element.__slideVideoInfo = lg_utils.isVideo(element.src, !!element.video, index);
|
7681 |
|
7682 | if (element.__slideVideoInfo && _this9.settings.loadYouTubePoster && !element.poster && element.__slideVideoInfo.youtube) {
|
7683 | element.poster = "//img.youtube.com/vi/".concat(element.__slideVideoInfo.youtube[1], "/maxresdefault.jpg");
|
7684 | }
|
7685 | });
|
7686 | }
|
7687 | |
7688 |
|
7689 |
|
7690 |
|
7691 |
|
7692 |
|
7693 |
|
7694 | }, {
|
7695 | key: "loadContent",
|
7696 | value: function loadContent(index, rec) {
|
7697 | var _this10 = this;
|
7698 |
|
7699 | var currentGalleryItem = this.galleryItems[index];
|
7700 | var $currentSlide = $LG(this.getSlideItemId(index));
|
7701 | var poster = currentGalleryItem.poster,
|
7702 | srcset = currentGalleryItem.srcset,
|
7703 | sizes = currentGalleryItem.sizes,
|
7704 | sources = currentGalleryItem.sources;
|
7705 | var src = currentGalleryItem.src;
|
7706 | var video = currentGalleryItem.video;
|
7707 |
|
7708 | var _html5Video = video && typeof video === 'string' ? JSON.parse(video) : video;
|
7709 |
|
7710 | if (currentGalleryItem.responsive) {
|
7711 | var srcDyItms = currentGalleryItem.responsive.split(',');
|
7712 | src = lg_utils.getResponsiveSrc(srcDyItms) || src;
|
7713 | }
|
7714 |
|
7715 | var videoInfo = currentGalleryItem.__slideVideoInfo;
|
7716 | var lgVideoStyle = '';
|
7717 | var iframe = !!currentGalleryItem.iframe;
|
7718 | var isFirstSlide = !this.lGalleryOn;
|
7719 |
|
7720 | var delay = 0;
|
7721 |
|
7722 | if (isFirstSlide) {
|
7723 | if (this.zoomFromOrigin && this.currentImageSize) {
|
7724 | delay = this.settings.startAnimationDuration + 10;
|
7725 | } else {
|
7726 | delay = this.settings.backdropDuration + 10;
|
7727 | }
|
7728 | }
|
7729 |
|
7730 | if (!$currentSlide.hasClass('lg-loaded')) {
|
7731 | if (videoInfo) {
|
7732 | var _this$mediaContainerP3 = this.mediaContainerPosition,
|
7733 | top = _this$mediaContainerP3.top,
|
7734 | bottom = _this$mediaContainerP3.bottom;
|
7735 | var videoSize = lg_utils.getSize(this.items[index], this.outer, top + bottom, videoInfo && this.settings.videoMaxSize);
|
7736 | lgVideoStyle = this.getVideoContStyle(videoSize);
|
7737 | }
|
7738 |
|
7739 | if (iframe) {
|
7740 | var markup = lg_utils.getIframeMarkup(this.settings.iframeWidth, this.settings.iframeHeight, this.settings.iframeMaxWidth, this.settings.iframeMaxHeight, src, currentGalleryItem.iframeTitle);
|
7741 | $currentSlide.prepend(markup);
|
7742 | } else if (poster) {
|
7743 | var dummyImg = '';
|
7744 | var hasStartAnimation = isFirstSlide && this.zoomFromOrigin && this.currentImageSize;
|
7745 |
|
7746 | if (hasStartAnimation) {
|
7747 | dummyImg = this.getDummyImageContent($currentSlide, index, '');
|
7748 | }
|
7749 |
|
7750 | var _markup = lg_utils.getVideoPosterMarkup(poster, dummyImg || '', lgVideoStyle, this.settings.strings['playVideo'], videoInfo);
|
7751 |
|
7752 | $currentSlide.prepend(_markup);
|
7753 | } else if (videoInfo) {
|
7754 | var _markup2 = "<div class=\"lg-video-cont \" style=\"".concat(lgVideoStyle, "\"></div>");
|
7755 |
|
7756 | $currentSlide.prepend(_markup2);
|
7757 | } else {
|
7758 | this.setImgMarkup(src, $currentSlide, index);
|
7759 |
|
7760 | if (srcset || sources) {
|
7761 | var $img = $currentSlide.find('.lg-object');
|
7762 | this.initPictureFill($img);
|
7763 | }
|
7764 | }
|
7765 |
|
7766 | if (poster || videoInfo) {
|
7767 | this.LGel.trigger(lGEvents.hasVideo, {
|
7768 | index: index,
|
7769 | src: src,
|
7770 | html5Video: _html5Video,
|
7771 | hasPoster: !!poster
|
7772 | });
|
7773 | }
|
7774 |
|
7775 | this.LGel.trigger(lGEvents.afterAppendSlide, {
|
7776 | index: index
|
7777 | });
|
7778 |
|
7779 | if (this.lGalleryOn && this.settings.appendSubHtmlTo === '.lg-item') {
|
7780 | this.addHtml(index);
|
7781 | }
|
7782 | }
|
7783 |
|
7784 |
|
7785 | var _speed = 0;
|
7786 |
|
7787 |
|
7788 | if (delay && !$LG(document.body).hasClass('lg-from-hash')) {
|
7789 | _speed = delay;
|
7790 | }
|
7791 |
|
7792 |
|
7793 | if (this.isFirstSlideWithZoomAnimation()) {
|
7794 | setTimeout(function () {
|
7795 | $currentSlide.removeClass('lg-start-end-progress lg-start-progress').removeAttr('style');
|
7796 | }, this.settings.startAnimationDuration + 100);
|
7797 |
|
7798 | if (!$currentSlide.hasClass('lg-loaded')) {
|
7799 | setTimeout(function () {
|
7800 | if (_this10.getSlideType(currentGalleryItem) === 'image') {
|
7801 | var alt = currentGalleryItem.alt;
|
7802 | var altAttr = alt ? 'alt="' + alt + '"' : '';
|
7803 | $currentSlide.find('.lg-img-wrap').append(lg_utils.getImgMarkup(index, src, altAttr, srcset, sizes, currentGalleryItem.sources));
|
7804 |
|
7805 | if (srcset || sources) {
|
7806 | var _$img = $currentSlide.find('.lg-object');
|
7807 |
|
7808 | _this10.initPictureFill(_$img);
|
7809 | }
|
7810 | }
|
7811 |
|
7812 | if (_this10.getSlideType(currentGalleryItem) === 'image' || _this10.getSlideType(currentGalleryItem) === 'video' && poster) {
|
7813 | _this10.onLgObjectLoad($currentSlide, index, delay, _speed, true, false);
|
7814 |
|
7815 |
|
7816 | _this10.onSlideObjectLoad($currentSlide, !!(videoInfo && videoInfo.html5 && !poster), function () {
|
7817 | _this10.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
|
7818 | }, function () {
|
7819 | _this10.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
|
7820 | });
|
7821 | }
|
7822 | }, this.settings.startAnimationDuration + 100);
|
7823 | }
|
7824 | }
|
7825 |
|
7826 |
|
7827 | $currentSlide.addClass('lg-loaded');
|
7828 |
|
7829 | if (!this.isFirstSlideWithZoomAnimation() || this.getSlideType(currentGalleryItem) === 'video' && !poster) {
|
7830 | this.onLgObjectLoad($currentSlide, index, delay, _speed, isFirstSlide, !!(videoInfo && videoInfo.html5 && !poster));
|
7831 | }
|
7832 |
|
7833 |
|
7834 | if ((!this.zoomFromOrigin || !this.currentImageSize) && $currentSlide.hasClass('lg-complete_') && !this.lGalleryOn) {
|
7835 | setTimeout(function () {
|
7836 | $currentSlide.addClass('lg-complete');
|
7837 | }, this.settings.backdropDuration);
|
7838 | }
|
7839 |
|
7840 |
|
7841 |
|
7842 | this.lGalleryOn = true;
|
7843 |
|
7844 | if (rec === true) {
|
7845 | if (!$currentSlide.hasClass('lg-complete_')) {
|
7846 | $currentSlide.find('.lg-object').first().on('load.lg error.lg', function () {
|
7847 | _this10.preload(index);
|
7848 | });
|
7849 | } else {
|
7850 | this.preload(index);
|
7851 | }
|
7852 | }
|
7853 | }
|
7854 | |
7855 |
|
7856 |
|
7857 |
|
7858 |
|
7859 |
|
7860 |
|
7861 |
|
7862 | }, {
|
7863 | key: "loadContentOnFirstSlideLoad",
|
7864 | value: function loadContentOnFirstSlideLoad(index, $currentSlide, speed) {
|
7865 | var _this11 = this;
|
7866 |
|
7867 | setTimeout(function () {
|
7868 | $currentSlide.find('.lg-dummy-img').remove();
|
7869 | $currentSlide.removeClass('lg-first-slide');
|
7870 |
|
7871 | _this11.outer.removeClass('lg-first-slide-loading');
|
7872 |
|
7873 | _this11.isDummyImageRemoved = true;
|
7874 |
|
7875 | _this11.preload(index);
|
7876 | }, speed + 300);
|
7877 | }
|
7878 | }, {
|
7879 | key: "getItemsToBeInsertedToDom",
|
7880 | value: function getItemsToBeInsertedToDom(index, prevIndex) {
|
7881 | var _this12 = this;
|
7882 |
|
7883 | var numberOfItems = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
7884 | var itemsToBeInsertedToDom = [];
|
7885 |
|
7886 | var possibleNumberOfItems = Math.max(numberOfItems, 3);
|
7887 | possibleNumberOfItems = Math.min(possibleNumberOfItems, this.galleryItems.length);
|
7888 | var prevIndexItem = "lg-item-".concat(this.lgId, "-").concat(prevIndex);
|
7889 |
|
7890 | if (this.galleryItems.length <= 3) {
|
7891 | this.galleryItems.forEach(function (_element, index) {
|
7892 | itemsToBeInsertedToDom.push("lg-item-".concat(_this12.lgId, "-").concat(index));
|
7893 | });
|
7894 | return itemsToBeInsertedToDom;
|
7895 | }
|
7896 |
|
7897 | if (index < (this.galleryItems.length - 1) / 2) {
|
7898 | for (var idx = index; idx > index - possibleNumberOfItems / 2 && idx >= 0; idx--) {
|
7899 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(idx));
|
7900 | }
|
7901 |
|
7902 | var numberOfExistingItems = itemsToBeInsertedToDom.length;
|
7903 |
|
7904 | for (var _idx = 0; _idx < possibleNumberOfItems - numberOfExistingItems; _idx++) {
|
7905 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(index + _idx + 1));
|
7906 | }
|
7907 | } else {
|
7908 | for (var _idx2 = index; _idx2 <= this.galleryItems.length - 1 && _idx2 < index + possibleNumberOfItems / 2; _idx2++) {
|
7909 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(_idx2));
|
7910 | }
|
7911 |
|
7912 | var _numberOfExistingItems = itemsToBeInsertedToDom.length;
|
7913 |
|
7914 | for (var _idx3 = 0; _idx3 < possibleNumberOfItems - _numberOfExistingItems; _idx3++) {
|
7915 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(index - _idx3 - 1));
|
7916 | }
|
7917 | }
|
7918 |
|
7919 | if (this.settings.loop) {
|
7920 | if (index === this.galleryItems.length - 1) {
|
7921 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-", 0));
|
7922 | } else if (index === 0) {
|
7923 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(this.galleryItems.length - 1));
|
7924 | }
|
7925 | }
|
7926 |
|
7927 | if (itemsToBeInsertedToDom.indexOf(prevIndexItem) === -1) {
|
7928 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(prevIndex));
|
7929 | }
|
7930 |
|
7931 | return itemsToBeInsertedToDom;
|
7932 | }
|
7933 | }, {
|
7934 | key: "organizeSlideItems",
|
7935 | value: function organizeSlideItems(index, prevIndex) {
|
7936 | var _this13 = this;
|
7937 |
|
7938 | var itemsToBeInsertedToDom = this.getItemsToBeInsertedToDom(index, prevIndex, this.settings.numberOfSlideItemsInDom);
|
7939 | itemsToBeInsertedToDom.forEach(function (item) {
|
7940 | if (_this13.currentItemsInDom.indexOf(item) === -1) {
|
7941 | _this13.$inner.append("<div id=\"".concat(item, "\" class=\"lg-item\"></div>"));
|
7942 | }
|
7943 | });
|
7944 | this.currentItemsInDom.forEach(function (item) {
|
7945 | if (itemsToBeInsertedToDom.indexOf(item) === -1) {
|
7946 | $LG("#".concat(item)).remove();
|
7947 | }
|
7948 | });
|
7949 | return itemsToBeInsertedToDom;
|
7950 | }
|
7951 | |
7952 |
|
7953 |
|
7954 |
|
7955 | }, {
|
7956 | key: "getPreviousSlideIndex",
|
7957 | value: function getPreviousSlideIndex() {
|
7958 | var prevIndex = 0;
|
7959 |
|
7960 | try {
|
7961 | var currentItemId = this.outer.find('.lg-current').first().attr('id');
|
7962 | prevIndex = parseInt(currentItemId.split('-')[3]) || 0;
|
7963 | } catch (error) {
|
7964 | prevIndex = 0;
|
7965 | }
|
7966 |
|
7967 | return prevIndex;
|
7968 | }
|
7969 | }, {
|
7970 | key: "setDownloadValue",
|
7971 | value: function setDownloadValue(index) {
|
7972 | if (this.settings.download) {
|
7973 | var currentGalleryItem = this.galleryItems[index];
|
7974 | var hideDownloadBtn = currentGalleryItem.downloadUrl === false || currentGalleryItem.downloadUrl === 'false';
|
7975 |
|
7976 | if (hideDownloadBtn) {
|
7977 | this.outer.addClass('lg-hide-download');
|
7978 | } else {
|
7979 | var $download = this.getElementById('lg-download');
|
7980 | this.outer.removeClass('lg-hide-download');
|
7981 | $download.attr('href', currentGalleryItem.downloadUrl || currentGalleryItem.src);
|
7982 |
|
7983 | if (currentGalleryItem.download) {
|
7984 | $download.attr('download', currentGalleryItem.download);
|
7985 | }
|
7986 | }
|
7987 | }
|
7988 | }
|
7989 | }, {
|
7990 | key: "makeSlideAnimation",
|
7991 | value: function makeSlideAnimation(direction, currentSlideItem, previousSlideItem) {
|
7992 | var _this14 = this;
|
7993 |
|
7994 | if (this.lGalleryOn) {
|
7995 | previousSlideItem.addClass('lg-slide-progress');
|
7996 | }
|
7997 |
|
7998 | setTimeout(function () {
|
7999 |
|
8000 | _this14.outer.addClass('lg-no-trans');
|
8001 |
|
8002 | _this14.outer.find('.lg-item').removeClass('lg-prev-slide lg-next-slide');
|
8003 |
|
8004 | if (direction === 'prev') {
|
8005 |
|
8006 | currentSlideItem.addClass('lg-prev-slide');
|
8007 | previousSlideItem.addClass('lg-next-slide');
|
8008 | } else {
|
8009 |
|
8010 | currentSlideItem.addClass('lg-next-slide');
|
8011 | previousSlideItem.addClass('lg-prev-slide');
|
8012 | }
|
8013 |
|
8014 |
|
8015 | setTimeout(function () {
|
8016 | _this14.outer.find('.lg-item').removeClass('lg-current');
|
8017 |
|
8018 | currentSlideItem.addClass('lg-current');
|
8019 |
|
8020 | _this14.outer.removeClass('lg-no-trans');
|
8021 | }, 50);
|
8022 | }, this.lGalleryOn ? this.settings.slideDelay : 0);
|
8023 | }
|
8024 | |
8025 |
|
8026 |
|
8027 |
|
8028 |
|
8029 |
|
8030 |
|
8031 |
|
8032 |
|
8033 |
|
8034 |
|
8035 |
|
8036 |
|
8037 |
|
8038 | }, {
|
8039 | key: "slide",
|
8040 | value: function slide(index, fromTouch, fromThumb, direction) {
|
8041 | var _this15 = this;
|
8042 |
|
8043 | var prevIndex = this.getPreviousSlideIndex();
|
8044 | this.currentItemsInDom = this.organizeSlideItems(index, prevIndex);
|
8045 |
|
8046 | if (this.lGalleryOn && prevIndex === index) {
|
8047 | return;
|
8048 | }
|
8049 |
|
8050 | var numberOfGalleryItems = this.galleryItems.length;
|
8051 |
|
8052 | if (!this.lgBusy) {
|
8053 | if (this.settings.counter) {
|
8054 | this.updateCurrentCounter(index);
|
8055 | }
|
8056 |
|
8057 | var currentSlideItem = this.getSlideItem(index);
|
8058 | var previousSlideItem = this.getSlideItem(prevIndex);
|
8059 | var currentGalleryItem = this.galleryItems[index];
|
8060 | var videoInfo = currentGalleryItem.__slideVideoInfo;
|
8061 | this.outer.attr('data-lg-slide-type', this.getSlideType(currentGalleryItem));
|
8062 | this.setDownloadValue(index);
|
8063 |
|
8064 | if (videoInfo) {
|
8065 | var _this$mediaContainerP4 = this.mediaContainerPosition,
|
8066 | top = _this$mediaContainerP4.top,
|
8067 | bottom = _this$mediaContainerP4.bottom;
|
8068 | var videoSize = lg_utils.getSize(this.items[index], this.outer, top + bottom, videoInfo && this.settings.videoMaxSize);
|
8069 | this.resizeVideoSlide(index, videoSize);
|
8070 | }
|
8071 |
|
8072 | this.LGel.trigger(lGEvents.beforeSlide, {
|
8073 | prevIndex: prevIndex,
|
8074 | index: index,
|
8075 | fromTouch: !!fromTouch,
|
8076 | fromThumb: !!fromThumb
|
8077 | });
|
8078 | this.lgBusy = true;
|
8079 | clearTimeout(this.hideBarTimeout);
|
8080 | this.arrowDisable(index);
|
8081 |
|
8082 | if (!direction) {
|
8083 | if (index < prevIndex) {
|
8084 | direction = 'prev';
|
8085 | } else if (index > prevIndex) {
|
8086 | direction = 'next';
|
8087 | }
|
8088 | }
|
8089 |
|
8090 | if (!fromTouch) {
|
8091 | this.makeSlideAnimation(direction, currentSlideItem, previousSlideItem);
|
8092 | } else {
|
8093 | this.outer.find('.lg-item').removeClass('lg-prev-slide lg-current lg-next-slide');
|
8094 | var touchPrev;
|
8095 | var touchNext;
|
8096 |
|
8097 | if (numberOfGalleryItems > 2) {
|
8098 | touchPrev = index - 1;
|
8099 | touchNext = index + 1;
|
8100 |
|
8101 | if (index === 0 && prevIndex === numberOfGalleryItems - 1) {
|
8102 |
|
8103 | touchNext = 0;
|
8104 | touchPrev = numberOfGalleryItems - 1;
|
8105 | } else if (index === numberOfGalleryItems - 1 && prevIndex === 0) {
|
8106 |
|
8107 | touchNext = 0;
|
8108 | touchPrev = numberOfGalleryItems - 1;
|
8109 | }
|
8110 | } else {
|
8111 | touchPrev = 0;
|
8112 | touchNext = 1;
|
8113 | }
|
8114 |
|
8115 | if (direction === 'prev') {
|
8116 | this.getSlideItem(touchNext).addClass('lg-next-slide');
|
8117 | } else {
|
8118 | this.getSlideItem(touchPrev).addClass('lg-prev-slide');
|
8119 | }
|
8120 |
|
8121 | currentSlideItem.addClass('lg-current');
|
8122 | }
|
8123 |
|
8124 |
|
8125 | if (!this.lGalleryOn) {
|
8126 | this.loadContent(index, true);
|
8127 | } else {
|
8128 | setTimeout(function () {
|
8129 | _this15.loadContent(index, true);
|
8130 |
|
8131 |
|
8132 | if (_this15.settings.appendSubHtmlTo !== '.lg-item') {
|
8133 | _this15.addHtml(index);
|
8134 | }
|
8135 | }, this.settings.speed + 50 + (fromTouch ? 0 : this.settings.slideDelay));
|
8136 | }
|
8137 |
|
8138 | setTimeout(function () {
|
8139 | _this15.lgBusy = false;
|
8140 | previousSlideItem.removeClass('lg-slide-progress');
|
8141 |
|
8142 | _this15.LGel.trigger(lGEvents.afterSlide, {
|
8143 | prevIndex: prevIndex,
|
8144 | index: index,
|
8145 | fromTouch: fromTouch,
|
8146 | fromThumb: fromThumb
|
8147 | });
|
8148 | }, (this.lGalleryOn ? this.settings.speed + 100 : 100) + (fromTouch ? 0 : this.settings.slideDelay));
|
8149 | }
|
8150 |
|
8151 | this.index = index;
|
8152 | }
|
8153 | }, {
|
8154 | key: "updateCurrentCounter",
|
8155 | value: function updateCurrentCounter(index) {
|
8156 | this.getElementById('lg-counter-current').html(index + 1 + '');
|
8157 | }
|
8158 | }, {
|
8159 | key: "updateCounterTotal",
|
8160 | value: function updateCounterTotal() {
|
8161 | this.getElementById('lg-counter-all').html(this.galleryItems.length + '');
|
8162 | }
|
8163 | }, {
|
8164 | key: "getSlideType",
|
8165 | value: function getSlideType(item) {
|
8166 | if (item.__slideVideoInfo) {
|
8167 | return 'video';
|
8168 | } else if (item.iframe) {
|
8169 | return 'iframe';
|
8170 | } else {
|
8171 | return 'image';
|
8172 | }
|
8173 | }
|
8174 | }, {
|
8175 | key: "touchMove",
|
8176 | value: function touchMove(startCoords, endCoords, e) {
|
8177 | var distanceX = endCoords.pageX - startCoords.pageX;
|
8178 | var distanceY = endCoords.pageY - startCoords.pageY;
|
8179 | var allowSwipe = false;
|
8180 |
|
8181 | if (this.swipeDirection) {
|
8182 | allowSwipe = true;
|
8183 | } else {
|
8184 | if (Math.abs(distanceX) > 15) {
|
8185 | this.swipeDirection = 'horizontal';
|
8186 | allowSwipe = true;
|
8187 | } else if (Math.abs(distanceY) > 15) {
|
8188 | this.swipeDirection = 'vertical';
|
8189 | allowSwipe = true;
|
8190 | }
|
8191 | }
|
8192 |
|
8193 | if (!allowSwipe) {
|
8194 | return;
|
8195 | }
|
8196 |
|
8197 | var $currentSlide = this.getSlideItem(this.index);
|
8198 |
|
8199 | if (this.swipeDirection === 'horizontal') {
|
8200 | e === null || e === void 0 ? void 0 : e.preventDefault();
|
8201 |
|
8202 | this.outer.addClass('lg-dragging');
|
8203 |
|
8204 | this.setTranslate($currentSlide, distanceX, 0);
|
8205 |
|
8206 | var width = $currentSlide.get().offsetWidth;
|
8207 | var slideWidthAmount = width * 15 / 100;
|
8208 | var gutter = slideWidthAmount - Math.abs(distanceX * 10 / 100);
|
8209 | this.setTranslate(this.outer.find('.lg-prev-slide').first(), -width + distanceX - gutter, 0);
|
8210 | this.setTranslate(this.outer.find('.lg-next-slide').first(), width + distanceX + gutter, 0);
|
8211 | } else if (this.swipeDirection === 'vertical') {
|
8212 | if (this.settings.swipeToClose) {
|
8213 | e === null || e === void 0 ? void 0 : e.preventDefault();
|
8214 | this.$container.addClass('lg-dragging-vertical');
|
8215 | var opacity = 1 - Math.abs(distanceY) / window.innerHeight;
|
8216 | this.$backdrop.css('opacity', opacity);
|
8217 | var scale = 1 - Math.abs(distanceY) / (window.innerWidth * 2);
|
8218 | this.setTranslate($currentSlide, 0, distanceY, scale, scale);
|
8219 |
|
8220 | if (Math.abs(distanceY) > 100) {
|
8221 | this.outer.addClass('lg-hide-items').removeClass('lg-components-open');
|
8222 | }
|
8223 | }
|
8224 | }
|
8225 | }
|
8226 | }, {
|
8227 | key: "touchEnd",
|
8228 | value: function touchEnd(endCoords, startCoords, event) {
|
8229 | var _this16 = this;
|
8230 |
|
8231 | var distance;
|
8232 |
|
8233 | if (this.settings.mode !== 'lg-slide') {
|
8234 | this.outer.addClass('lg-slide');
|
8235 | }
|
8236 |
|
8237 |
|
8238 | setTimeout(function () {
|
8239 | _this16.$container.removeClass('lg-dragging-vertical');
|
8240 |
|
8241 | _this16.outer.removeClass('lg-dragging lg-hide-items').addClass('lg-components-open');
|
8242 |
|
8243 | var triggerClick = true;
|
8244 |
|
8245 | if (_this16.swipeDirection === 'horizontal') {
|
8246 | distance = endCoords.pageX - startCoords.pageX;
|
8247 | var distanceAbs = Math.abs(endCoords.pageX - startCoords.pageX);
|
8248 |
|
8249 | if (distance < 0 && distanceAbs > _this16.settings.swipeThreshold) {
|
8250 | _this16.goToNextSlide(true);
|
8251 |
|
8252 | triggerClick = false;
|
8253 | } else if (distance > 0 && distanceAbs > _this16.settings.swipeThreshold) {
|
8254 | _this16.goToPrevSlide(true);
|
8255 |
|
8256 | triggerClick = false;
|
8257 | }
|
8258 | } else if (_this16.swipeDirection === 'vertical') {
|
8259 | distance = Math.abs(endCoords.pageY - startCoords.pageY);
|
8260 |
|
8261 | if (_this16.settings.closable && _this16.settings.swipeToClose && distance > 100) {
|
8262 | _this16.closeGallery();
|
8263 |
|
8264 | return;
|
8265 | } else {
|
8266 | _this16.$backdrop.css('opacity', 1);
|
8267 | }
|
8268 | }
|
8269 |
|
8270 | _this16.outer.find('.lg-item').removeAttr('style');
|
8271 |
|
8272 | if (triggerClick && Math.abs(endCoords.pageX - startCoords.pageX) < 5) {
|
8273 |
|
8274 | var target = $LG(event.target);
|
8275 |
|
8276 | if (_this16.isPosterElement(target)) {
|
8277 | _this16.LGel.trigger(lGEvents.posterClick);
|
8278 | }
|
8279 | }
|
8280 |
|
8281 | _this16.swipeDirection = undefined;
|
8282 | });
|
8283 |
|
8284 | setTimeout(function () {
|
8285 | if (!_this16.outer.hasClass('lg-dragging') && _this16.settings.mode !== 'lg-slide') {
|
8286 | _this16.outer.removeClass('lg-slide');
|
8287 | }
|
8288 | }, this.settings.speed + 100);
|
8289 | }
|
8290 | }, {
|
8291 | key: "enableSwipe",
|
8292 | value: function enableSwipe() {
|
8293 | var _this17 = this;
|
8294 |
|
8295 | var startCoords = {};
|
8296 | var endCoords = {};
|
8297 | var isMoved = false;
|
8298 | var isSwiping = false;
|
8299 |
|
8300 | if (this.settings.enableSwipe) {
|
8301 | this.$inner.on('touchstart.lg', function (e) {
|
8302 | _this17.dragOrSwipeEnabled = true;
|
8303 |
|
8304 | var $item = _this17.getSlideItem(_this17.index);
|
8305 |
|
8306 | if (($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) && !_this17.outer.hasClass('lg-zoomed') && !_this17.lgBusy && e.touches.length === 1) {
|
8307 | isSwiping = true;
|
8308 | _this17.touchAction = 'swipe';
|
8309 |
|
8310 | _this17.manageSwipeClass();
|
8311 |
|
8312 | startCoords = {
|
8313 | pageX: e.touches[0].pageX,
|
8314 | pageY: e.touches[0].pageY
|
8315 | };
|
8316 | }
|
8317 | });
|
8318 | this.$inner.on('touchmove.lg', function (e) {
|
8319 | if (isSwiping && _this17.touchAction === 'swipe' && e.touches.length === 1) {
|
8320 | endCoords = {
|
8321 | pageX: e.touches[0].pageX,
|
8322 | pageY: e.touches[0].pageY
|
8323 | };
|
8324 |
|
8325 | _this17.touchMove(startCoords, endCoords, e);
|
8326 |
|
8327 | isMoved = true;
|
8328 | }
|
8329 | });
|
8330 | this.$inner.on('touchend.lg', function (event) {
|
8331 | if (_this17.touchAction === 'swipe') {
|
8332 | if (isMoved) {
|
8333 | isMoved = false;
|
8334 |
|
8335 | _this17.touchEnd(endCoords, startCoords, event);
|
8336 | } else if (isSwiping) {
|
8337 | var target = $LG(event.target);
|
8338 |
|
8339 | if (_this17.isPosterElement(target)) {
|
8340 | _this17.LGel.trigger(lGEvents.posterClick);
|
8341 | }
|
8342 | }
|
8343 |
|
8344 | _this17.touchAction = undefined;
|
8345 | isSwiping = false;
|
8346 | }
|
8347 | });
|
8348 | }
|
8349 | }
|
8350 | }, {
|
8351 | key: "enableDrag",
|
8352 | value: function enableDrag() {
|
8353 | var _this18 = this;
|
8354 |
|
8355 | var startCoords = {};
|
8356 | var endCoords = {};
|
8357 | var isDraging = false;
|
8358 | var isMoved = false;
|
8359 |
|
8360 | if (this.settings.enableDrag) {
|
8361 | this.outer.on('mousedown.lg', function (e) {
|
8362 | _this18.dragOrSwipeEnabled = true;
|
8363 |
|
8364 | var $item = _this18.getSlideItem(_this18.index);
|
8365 |
|
8366 | if ($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) {
|
8367 | if (!_this18.outer.hasClass('lg-zoomed') && !_this18.lgBusy) {
|
8368 | e.preventDefault();
|
8369 |
|
8370 | if (!_this18.lgBusy) {
|
8371 | _this18.manageSwipeClass();
|
8372 |
|
8373 | startCoords = {
|
8374 | pageX: e.pageX,
|
8375 | pageY: e.pageY
|
8376 | };
|
8377 | isDraging = true;
|
8378 |
|
8379 | _this18.outer.get().scrollLeft += 1;
|
8380 | _this18.outer.get().scrollLeft -= 1;
|
8381 |
|
8382 | _this18.outer.removeClass('lg-grab').addClass('lg-grabbing');
|
8383 |
|
8384 | _this18.LGel.trigger(lGEvents.dragStart);
|
8385 | }
|
8386 | }
|
8387 | }
|
8388 | });
|
8389 | $LG(window).on("mousemove.lg.global".concat(this.lgId), function (e) {
|
8390 | if (isDraging && _this18.lgOpened) {
|
8391 | isMoved = true;
|
8392 | endCoords = {
|
8393 | pageX: e.pageX,
|
8394 | pageY: e.pageY
|
8395 | };
|
8396 |
|
8397 | _this18.touchMove(startCoords, endCoords);
|
8398 |
|
8399 | _this18.LGel.trigger(lGEvents.dragMove);
|
8400 | }
|
8401 | });
|
8402 | $LG(window).on("mouseup.lg.global".concat(this.lgId), function (event) {
|
8403 | if (!_this18.lgOpened) {
|
8404 | return;
|
8405 | }
|
8406 |
|
8407 | var target = $LG(event.target);
|
8408 |
|
8409 | if (isMoved) {
|
8410 | isMoved = false;
|
8411 |
|
8412 | _this18.touchEnd(endCoords, startCoords, event);
|
8413 |
|
8414 | _this18.LGel.trigger(lGEvents.dragEnd);
|
8415 | } else if (_this18.isPosterElement(target)) {
|
8416 | _this18.LGel.trigger(lGEvents.posterClick);
|
8417 | }
|
8418 |
|
8419 |
|
8420 | if (isDraging) {
|
8421 | isDraging = false;
|
8422 |
|
8423 | _this18.outer.removeClass('lg-grabbing').addClass('lg-grab');
|
8424 | }
|
8425 | });
|
8426 | }
|
8427 | }
|
8428 | }, {
|
8429 | key: "triggerPosterClick",
|
8430 | value: function triggerPosterClick() {
|
8431 | var _this19 = this;
|
8432 |
|
8433 | this.$inner.on('click.lg', function (event) {
|
8434 | if (!_this19.dragOrSwipeEnabled && _this19.isPosterElement($LG(event.target))) {
|
8435 | _this19.LGel.trigger(lGEvents.posterClick);
|
8436 | }
|
8437 | });
|
8438 | }
|
8439 | }, {
|
8440 | key: "manageSwipeClass",
|
8441 | value: function manageSwipeClass() {
|
8442 | var _touchNext = this.index + 1;
|
8443 |
|
8444 | var _touchPrev = this.index - 1;
|
8445 |
|
8446 | if (this.settings.loop && this.galleryItems.length > 2) {
|
8447 | if (this.index === 0) {
|
8448 | _touchPrev = this.galleryItems.length - 1;
|
8449 | } else if (this.index === this.galleryItems.length - 1) {
|
8450 | _touchNext = 0;
|
8451 | }
|
8452 | }
|
8453 |
|
8454 | this.outer.find('.lg-item').removeClass('lg-next-slide lg-prev-slide');
|
8455 |
|
8456 | if (_touchPrev > -1) {
|
8457 | this.getSlideItem(_touchPrev).addClass('lg-prev-slide');
|
8458 | }
|
8459 |
|
8460 | this.getSlideItem(_touchNext).addClass('lg-next-slide');
|
8461 | }
|
8462 | |
8463 |
|
8464 |
|
8465 |
|
8466 |
|
8467 |
|
8468 |
|
8469 |
|
8470 |
|
8471 |
|
8472 | }, {
|
8473 | key: "goToNextSlide",
|
8474 | value: function goToNextSlide(fromTouch) {
|
8475 | var _this20 = this;
|
8476 |
|
8477 | var _loop = this.settings.loop;
|
8478 |
|
8479 | if (fromTouch && this.galleryItems.length < 3) {
|
8480 | _loop = false;
|
8481 | }
|
8482 |
|
8483 | if (!this.lgBusy) {
|
8484 | if (this.index + 1 < this.galleryItems.length) {
|
8485 | this.index++;
|
8486 | this.LGel.trigger(lGEvents.beforeNextSlide, {
|
8487 | index: this.index
|
8488 | });
|
8489 | this.slide(this.index, !!fromTouch, false, 'next');
|
8490 | } else {
|
8491 | if (_loop) {
|
8492 | this.index = 0;
|
8493 | this.LGel.trigger(lGEvents.beforeNextSlide, {
|
8494 | index: this.index
|
8495 | });
|
8496 | this.slide(this.index, !!fromTouch, false, 'next');
|
8497 | } else if (this.settings.slideEndAnimation && !fromTouch) {
|
8498 | this.outer.addClass('lg-right-end');
|
8499 | setTimeout(function () {
|
8500 | _this20.outer.removeClass('lg-right-end');
|
8501 | }, 400);
|
8502 | }
|
8503 | }
|
8504 | }
|
8505 | }
|
8506 | |
8507 |
|
8508 |
|
8509 |
|
8510 |
|
8511 |
|
8512 |
|
8513 |
|
8514 |
|
8515 |
|
8516 |
|
8517 | }, {
|
8518 | key: "goToPrevSlide",
|
8519 | value: function goToPrevSlide(fromTouch) {
|
8520 | var _this21 = this;
|
8521 |
|
8522 | var _loop = this.settings.loop;
|
8523 |
|
8524 | if (fromTouch && this.galleryItems.length < 3) {
|
8525 | _loop = false;
|
8526 | }
|
8527 |
|
8528 | if (!this.lgBusy) {
|
8529 | if (this.index > 0) {
|
8530 | this.index--;
|
8531 | this.LGel.trigger(lGEvents.beforePrevSlide, {
|
8532 | index: this.index,
|
8533 | fromTouch: fromTouch
|
8534 | });
|
8535 | this.slide(this.index, !!fromTouch, false, 'prev');
|
8536 | } else {
|
8537 | if (_loop) {
|
8538 | this.index = this.galleryItems.length - 1;
|
8539 | this.LGel.trigger(lGEvents.beforePrevSlide, {
|
8540 | index: this.index,
|
8541 | fromTouch: fromTouch
|
8542 | });
|
8543 | this.slide(this.index, !!fromTouch, false, 'prev');
|
8544 | } else if (this.settings.slideEndAnimation && !fromTouch) {
|
8545 | this.outer.addClass('lg-left-end');
|
8546 | setTimeout(function () {
|
8547 | _this21.outer.removeClass('lg-left-end');
|
8548 | }, 400);
|
8549 | }
|
8550 | }
|
8551 | }
|
8552 | }
|
8553 | }, {
|
8554 | key: "keyPress",
|
8555 | value: function keyPress() {
|
8556 | var _this22 = this;
|
8557 |
|
8558 | $LG(window).on("keydown.lg.global".concat(this.lgId), function (e) {
|
8559 | if (_this22.lgOpened && _this22.settings.escKey === true && e.keyCode === 27) {
|
8560 | e.preventDefault();
|
8561 |
|
8562 | if (_this22.settings.allowMediaOverlap && _this22.outer.hasClass('lg-can-toggle') && _this22.outer.hasClass('lg-components-open')) {
|
8563 | _this22.outer.removeClass('lg-components-open');
|
8564 | } else {
|
8565 | _this22.closeGallery();
|
8566 | }
|
8567 | }
|
8568 |
|
8569 | if (_this22.lgOpened && _this22.galleryItems.length > 1) {
|
8570 | if (e.keyCode === 37) {
|
8571 | e.preventDefault();
|
8572 |
|
8573 | _this22.goToPrevSlide();
|
8574 | }
|
8575 |
|
8576 | if (e.keyCode === 39) {
|
8577 | e.preventDefault();
|
8578 |
|
8579 | _this22.goToNextSlide();
|
8580 | }
|
8581 | }
|
8582 | });
|
8583 | }
|
8584 | }, {
|
8585 | key: "arrow",
|
8586 | value: function arrow() {
|
8587 | var _this23 = this;
|
8588 |
|
8589 | this.getElementById('lg-prev').on('click.lg', function () {
|
8590 | _this23.goToPrevSlide();
|
8591 | });
|
8592 | this.getElementById('lg-next').on('click.lg', function () {
|
8593 | _this23.goToNextSlide();
|
8594 | });
|
8595 | }
|
8596 | }, {
|
8597 | key: "arrowDisable",
|
8598 | value: function arrowDisable(index) {
|
8599 |
|
8600 | if (!this.settings.loop && this.settings.hideControlOnEnd) {
|
8601 | var $prev = this.getElementById('lg-prev');
|
8602 | var $next = this.getElementById('lg-next');
|
8603 |
|
8604 | if (index + 1 === this.galleryItems.length) {
|
8605 | $next.attr('disabled', 'disabled').addClass('disabled');
|
8606 | } else {
|
8607 | $next.removeAttr('disabled').removeClass('disabled');
|
8608 | }
|
8609 |
|
8610 | if (index === 0) {
|
8611 | $prev.attr('disabled', 'disabled').addClass('disabled');
|
8612 | } else {
|
8613 | $prev.removeAttr('disabled').removeClass('disabled');
|
8614 | }
|
8615 | }
|
8616 | }
|
8617 | }, {
|
8618 | key: "setTranslate",
|
8619 | value: function setTranslate($el, xValue, yValue) {
|
8620 | var scaleX = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
8621 | var scaleY = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
8622 | $el.css('transform', 'translate3d(' + xValue + 'px, ' + yValue + 'px, 0px) scale3d(' + scaleX + ', ' + scaleY + ', 1)');
|
8623 | }
|
8624 | }, {
|
8625 | key: "mousewheel",
|
8626 | value: function mousewheel() {
|
8627 | var _this24 = this;
|
8628 |
|
8629 | var lastCall = 0;
|
8630 | this.outer.on('wheel.lg', function (e) {
|
8631 | if (!e.deltaY || _this24.galleryItems.length < 2) {
|
8632 | return;
|
8633 | }
|
8634 |
|
8635 | e.preventDefault();
|
8636 | var now = new Date().getTime();
|
8637 |
|
8638 | if (now - lastCall < 1000) {
|
8639 | return;
|
8640 | }
|
8641 |
|
8642 | lastCall = now;
|
8643 |
|
8644 | if (e.deltaY > 0) {
|
8645 | _this24.goToNextSlide();
|
8646 | } else if (e.deltaY < 0) {
|
8647 | _this24.goToPrevSlide();
|
8648 | }
|
8649 | });
|
8650 | }
|
8651 | }, {
|
8652 | key: "isSlideElement",
|
8653 | value: function isSlideElement(target) {
|
8654 | return target.hasClass('lg-outer') || target.hasClass('lg-item') || target.hasClass('lg-img-wrap');
|
8655 | }
|
8656 | }, {
|
8657 | key: "isPosterElement",
|
8658 | value: function isPosterElement(target) {
|
8659 | var playButton = this.getSlideItem(this.index).find('.lg-video-play-button').get();
|
8660 | return target.hasClass('lg-video-poster') || target.hasClass('lg-video-play-button') || playButton && playButton.contains(target.get());
|
8661 | }
|
8662 | |
8663 |
|
8664 |
|
8665 |
|
8666 |
|
8667 | }, {
|
8668 | key: "toggleMaximize",
|
8669 | value: function toggleMaximize() {
|
8670 | var _this25 = this;
|
8671 |
|
8672 | this.getElementById('lg-maximize').on('click.lg', function () {
|
8673 | _this25.$container.toggleClass('lg-inline');
|
8674 |
|
8675 | _this25.refreshOnResize();
|
8676 | });
|
8677 | }
|
8678 | }, {
|
8679 | key: "invalidateItems",
|
8680 | value: function invalidateItems() {
|
8681 | for (var index = 0; index < this.items.length; index++) {
|
8682 | var element = this.items[index];
|
8683 | var $element = $LG(element);
|
8684 | $element.off("click.lgcustom-item-".concat($element.attr('data-lg-id')));
|
8685 | }
|
8686 | }
|
8687 | }, {
|
8688 | key: "trapFocus",
|
8689 | value: function trapFocus() {
|
8690 | var _this26 = this;
|
8691 |
|
8692 | this.$container.get().focus({
|
8693 | preventScroll: true
|
8694 | });
|
8695 | $LG(window).on("keydown.lg.global".concat(this.lgId), function (e) {
|
8696 | if (!_this26.lgOpened) {
|
8697 | return;
|
8698 | }
|
8699 |
|
8700 | var isTabPressed = e.key === 'Tab' || e.keyCode === 9;
|
8701 |
|
8702 | if (!isTabPressed) {
|
8703 | return;
|
8704 | }
|
8705 |
|
8706 | var focusableEls = lg_utils.getFocusableElements(_this26.$container.get());
|
8707 | var firstFocusableEl = focusableEls[0];
|
8708 | var lastFocusableEl = focusableEls[focusableEls.length - 1];
|
8709 |
|
8710 | if (e.shiftKey) {
|
8711 | if (document.activeElement === firstFocusableEl) {
|
8712 | lastFocusableEl.focus();
|
8713 | e.preventDefault();
|
8714 | }
|
8715 | } else {
|
8716 | if (document.activeElement === lastFocusableEl) {
|
8717 | firstFocusableEl.focus();
|
8718 | e.preventDefault();
|
8719 | }
|
8720 | }
|
8721 | });
|
8722 | }
|
8723 | }, {
|
8724 | key: "manageCloseGallery",
|
8725 | value: function manageCloseGallery() {
|
8726 | var _this27 = this;
|
8727 |
|
8728 | if (!this.settings.closable) return;
|
8729 | var mousedown = false;
|
8730 | this.getElementById('lg-close').on('click.lg', function () {
|
8731 | _this27.closeGallery();
|
8732 | });
|
8733 |
|
8734 | if (this.settings.closeOnTap) {
|
8735 |
|
8736 |
|
8737 | this.outer.on('mousedown.lg', function (e) {
|
8738 | var target = $LG(e.target);
|
8739 |
|
8740 | if (_this27.isSlideElement(target)) {
|
8741 | mousedown = true;
|
8742 | } else {
|
8743 | mousedown = false;
|
8744 | }
|
8745 | });
|
8746 | this.outer.on('mousemove.lg', function () {
|
8747 | mousedown = false;
|
8748 | });
|
8749 | this.outer.on('mouseup.lg', function (e) {
|
8750 | var target = $LG(e.target);
|
8751 |
|
8752 | if (_this27.isSlideElement(target) && mousedown) {
|
8753 | if (!_this27.outer.hasClass('lg-dragging')) {
|
8754 | _this27.closeGallery();
|
8755 | }
|
8756 | }
|
8757 | });
|
8758 | }
|
8759 | }
|
8760 | |
8761 |
|
8762 |
|
8763 |
|
8764 |
|
8765 |
|
8766 |
|
8767 |
|
8768 |
|
8769 |
|
8770 |
|
8771 |
|
8772 | }, {
|
8773 | key: "closeGallery",
|
8774 | value: function closeGallery(force) {
|
8775 | var _this28 = this;
|
8776 |
|
8777 | if (!this.lgOpened || !this.settings.closable && !force) {
|
8778 | return 0;
|
8779 | }
|
8780 |
|
8781 | this.LGel.trigger(lGEvents.beforeClose);
|
8782 |
|
8783 | if (this.settings.resetScrollPosition && !this.settings.hideScrollbar) {
|
8784 | $LG(window).scrollTop(this.prevScrollTop);
|
8785 | }
|
8786 |
|
8787 | var currentItem = this.items[this.index];
|
8788 | var transform;
|
8789 |
|
8790 | if (this.zoomFromOrigin && currentItem) {
|
8791 | var _this$mediaContainerP5 = this.mediaContainerPosition,
|
8792 | top = _this$mediaContainerP5.top,
|
8793 | bottom = _this$mediaContainerP5.bottom;
|
8794 | var _this$galleryItems$th = this.galleryItems[this.index],
|
8795 | __slideVideoInfo = _this$galleryItems$th.__slideVideoInfo,
|
8796 | poster = _this$galleryItems$th.poster;
|
8797 | var imageSize = lg_utils.getSize(currentItem, this.outer, top + bottom, __slideVideoInfo && poster && this.settings.videoMaxSize);
|
8798 | transform = lg_utils.getTransform(currentItem, this.outer, top, bottom, imageSize);
|
8799 | }
|
8800 |
|
8801 | if (this.zoomFromOrigin && transform) {
|
8802 | this.outer.addClass('lg-closing lg-zoom-from-image');
|
8803 | this.getSlideItem(this.index).addClass('lg-start-end-progress').css('transition-duration', this.settings.startAnimationDuration + 'ms').css('transform', transform);
|
8804 | } else {
|
8805 | this.outer.addClass('lg-hide-items');
|
8806 |
|
8807 |
|
8808 | this.outer.removeClass('lg-zoom-from-image');
|
8809 | }
|
8810 |
|
8811 |
|
8812 |
|
8813 |
|
8814 | this.destroyModules();
|
8815 | this.lGalleryOn = false;
|
8816 | this.isDummyImageRemoved = false;
|
8817 | this.zoomFromOrigin = this.settings.zoomFromOrigin;
|
8818 | clearTimeout(this.hideBarTimeout);
|
8819 | this.hideBarTimeout = false;
|
8820 | $LG('html').removeClass('lg-on');
|
8821 | this.outer.removeClass('lg-visible lg-components-open');
|
8822 |
|
8823 | this.$backdrop.removeClass('in').css('opacity', 0);
|
8824 | var removeTimeout = this.zoomFromOrigin && transform ? Math.max(this.settings.startAnimationDuration, this.settings.backdropDuration) : this.settings.backdropDuration;
|
8825 | this.$container.removeClass('lg-show-in');
|
8826 |
|
8827 | setTimeout(function () {
|
8828 | if (_this28.zoomFromOrigin && transform) {
|
8829 | _this28.outer.removeClass('lg-zoom-from-image');
|
8830 | }
|
8831 |
|
8832 | _this28.$container.removeClass('lg-show');
|
8833 |
|
8834 |
|
8835 | _this28.resetScrollBar();
|
8836 |
|
8837 |
|
8838 | _this28.$backdrop.removeAttr('style').css('transition-duration', _this28.settings.backdropDuration + 'ms');
|
8839 |
|
8840 | _this28.outer.removeClass("lg-closing ".concat(_this28.settings.startClass));
|
8841 |
|
8842 | _this28.getSlideItem(_this28.index).removeClass('lg-start-end-progress');
|
8843 |
|
8844 | _this28.$inner.empty();
|
8845 |
|
8846 | if (_this28.lgOpened) {
|
8847 | _this28.LGel.trigger(lGEvents.afterClose, {
|
8848 | instance: _this28
|
8849 | });
|
8850 | }
|
8851 |
|
8852 | if (_this28.$container.get()) {
|
8853 | _this28.$container.get().blur();
|
8854 | }
|
8855 |
|
8856 | _this28.lgOpened = false;
|
8857 | }, removeTimeout + 100);
|
8858 | return removeTimeout + 100;
|
8859 | }
|
8860 | }, {
|
8861 | key: "initModules",
|
8862 | value: function initModules() {
|
8863 | this.plugins.forEach(function (module) {
|
8864 | try {
|
8865 | module.init();
|
8866 | } catch (err) {
|
8867 | console.warn("lightGallery:- make sure lightGallery module is properly initiated");
|
8868 | }
|
8869 | });
|
8870 | }
|
8871 | }, {
|
8872 | key: "destroyModules",
|
8873 | value: function destroyModules(destroy) {
|
8874 | this.plugins.forEach(function (module) {
|
8875 | try {
|
8876 | if (destroy) {
|
8877 | module.destroy();
|
8878 | } else {
|
8879 | module.closeGallery && module.closeGallery();
|
8880 | }
|
8881 | } catch (err) {
|
8882 | console.warn("lightGallery:- make sure lightGallery module is properly destroyed");
|
8883 | }
|
8884 | });
|
8885 | }
|
8886 | |
8887 |
|
8888 |
|
8889 |
|
8890 |
|
8891 |
|
8892 |
|
8893 |
|
8894 |
|
8895 |
|
8896 |
|
8897 |
|
8898 |
|
8899 |
|
8900 |
|
8901 | }, {
|
8902 | key: "refresh",
|
8903 | value: function refresh(galleryItems) {
|
8904 | if (!this.settings.dynamic) {
|
8905 | this.invalidateItems();
|
8906 | }
|
8907 |
|
8908 | if (galleryItems) {
|
8909 | this.galleryItems = galleryItems;
|
8910 | } else {
|
8911 | this.galleryItems = this.getItems();
|
8912 | }
|
8913 |
|
8914 | this.updateControls();
|
8915 | this.openGalleryOnItemClick();
|
8916 | this.LGel.trigger(lGEvents.updateSlides);
|
8917 | }
|
8918 | }, {
|
8919 | key: "updateControls",
|
8920 | value: function updateControls() {
|
8921 | this.addSlideVideoInfo(this.galleryItems);
|
8922 | this.updateCounterTotal();
|
8923 | this.manageSingleSlideClassName();
|
8924 | }
|
8925 | }, {
|
8926 | key: "destroyGallery",
|
8927 | value: function destroyGallery() {
|
8928 | this.destroyModules(true);
|
8929 |
|
8930 | if (!this.settings.dynamic) {
|
8931 | this.invalidateItems();
|
8932 | }
|
8933 |
|
8934 | $LG(window).off(".lg.global".concat(this.lgId));
|
8935 | this.LGel.off('.lg');
|
8936 | this.$container.remove();
|
8937 | }
|
8938 | |
8939 |
|
8940 |
|
8941 |
|
8942 |
|
8943 |
|
8944 |
|
8945 |
|
8946 |
|
8947 |
|
8948 |
|
8949 |
|
8950 |
|
8951 |
|
8952 | }, {
|
8953 | key: "destroy",
|
8954 | value: function destroy() {
|
8955 | var closeTimeout = this.closeGallery(true);
|
8956 |
|
8957 | if (closeTimeout) {
|
8958 | setTimeout(this.destroyGallery.bind(this), closeTimeout);
|
8959 | } else {
|
8960 | this.destroyGallery();
|
8961 | }
|
8962 |
|
8963 | return closeTimeout;
|
8964 | }
|
8965 | }]);
|
8966 |
|
8967 | return LightGallery;
|
8968 | }();
|
8969 |
|
8970 |
|
8971 |
|
8972 | function lightGallery(el, options) {
|
8973 | return new lightgallery_LightGallery(el, options);
|
8974 | }
|
8975 |
|
8976 | var src_0 = (lightGallery);
|
8977 |
|
8978 |
|
8979 |
|
8980 |
|
8981 |
|
8982 |
|
8983 |
|
8984 |
|
8985 |
|
8986 |
|
8987 |
|
8988 |
|
8989 |
|
8990 |
|
8991 |
|
8992 |
|
8993 | var LightGalleryvue_type_script_lang_ts_Lightgallery = function (_Vue) {
|
8994 | _inherits(Lightgallery, _Vue);
|
8995 |
|
8996 | var _super = _createSuper(Lightgallery);
|
8997 |
|
8998 | function Lightgallery() {
|
8999 | _classCallCheck(this, Lightgallery);
|
9000 |
|
9001 | return _super.apply(this, arguments);
|
9002 | }
|
9003 |
|
9004 | _createClass(Lightgallery, [{
|
9005 | key: "mounted",
|
9006 | value: function mounted() {
|
9007 | this.registerEvents.call(this);
|
9008 | this.LG = src_0(this.$refs.container, _objectSpread2({}, this.settings));
|
9009 | }
|
9010 | }, {
|
9011 | key: "unmounted",
|
9012 | value: function unmounted() {
|
9013 | this.LG.destroy();
|
9014 | }
|
9015 |
|
9016 |
|
9017 | }, {
|
9018 | key: "getMethodName",
|
9019 | value: function getMethodName(word) {
|
9020 | return "on".concat(word.charAt(0).toUpperCase() + word.slice(1));
|
9021 | }
|
9022 |
|
9023 |
|
9024 | }, {
|
9025 | key: "registerEvents",
|
9026 | value: function registerEvents() {
|
9027 | var _this = this;
|
9028 |
|
9029 | Object.keys(lGEvents).forEach(function (key) {
|
9030 |
|
9031 | _this.$refs.container.addEventListener(lGEvents[key].split('.')[0], function (event) {
|
9032 | if (_this[_this.getMethodName(key)]) {
|
9033 | _this[_this.getMethodName.call(_this, key)](event.detail);
|
9034 | }
|
9035 | });
|
9036 | });
|
9037 | }
|
9038 | }]);
|
9039 |
|
9040 | return Lightgallery;
|
9041 | }(Vue);
|
9042 |
|
9043 | LightGalleryvue_type_script_lang_ts_Lightgallery = __decorate([Options({
|
9044 | props: {
|
9045 | settings: {
|
9046 | type: Object
|
9047 | },
|
9048 | onAfterAppendSlide: {
|
9049 | type: Function
|
9050 | },
|
9051 | onInit: {
|
9052 | type: Function
|
9053 | },
|
9054 | onHasVideo: {
|
9055 | type: Function
|
9056 | },
|
9057 | onContainerResize: {
|
9058 | type: Function
|
9059 | },
|
9060 | onAfterAppendSubHtml: {
|
9061 | type: Function
|
9062 | },
|
9063 | onBeforeOpen: {
|
9064 | type: Function
|
9065 | },
|
9066 | onAfterOpen: {
|
9067 | type: Function
|
9068 | },
|
9069 | onSlideItemLoad: {
|
9070 | type: Function
|
9071 | },
|
9072 | onBeforeSlide: {
|
9073 | type: Function
|
9074 | },
|
9075 | onAfterSlide: {
|
9076 | type: Function
|
9077 | },
|
9078 | onPosterClick: {
|
9079 | type: Function
|
9080 | },
|
9081 | onDragStart: {
|
9082 | type: Function
|
9083 | },
|
9084 | onDragMove: {
|
9085 | type: Function
|
9086 | },
|
9087 | onDragEnd: {
|
9088 | type: Function
|
9089 | },
|
9090 | onBeforeNextSlide: {
|
9091 | type: Function
|
9092 | },
|
9093 | onBeforePrevSlide: {
|
9094 | type: Function
|
9095 | },
|
9096 | onBeforeClose: {
|
9097 | type: Function
|
9098 | },
|
9099 | onAfterClose: {
|
9100 | type: Function
|
9101 | },
|
9102 | onRotateLeft: {
|
9103 | type: Function
|
9104 | },
|
9105 | onRotateRight: {
|
9106 | type: Function
|
9107 | },
|
9108 | onFlipHorizontal: {
|
9109 | type: Function
|
9110 | },
|
9111 | onFlipVertical: {
|
9112 | type: Function
|
9113 | }
|
9114 | }
|
9115 | })], LightGalleryvue_type_script_lang_ts_Lightgallery);
|
9116 | var LightGalleryvue_type_script_lang_ts = (LightGalleryvue_type_script_lang_ts_Lightgallery);
|
9117 |
|
9118 |
|
9119 |
|
9120 |
|
9121 |
|
9122 |
|
9123 | LightGalleryvue_type_script_lang_ts.render = render
|
9124 |
|
9125 | var components_LightGallery = (LightGalleryvue_type_script_lang_ts);
|
9126 |
|
9127 |
|
9128 |
|
9129 | var entry_lib = __webpack_exports__["default"] = (components_LightGallery);
|
9130 |
|
9131 |
|
9132 |
|
9133 | }),
|
9134 |
|
9135 | "fb6a":
|
9136 | (function(module, exports, __webpack_require__) {
|
9137 |
|
9138 | "use strict";
|
9139 |
|
9140 | var $ = __webpack_require__("23e7");
|
9141 | var isObject = __webpack_require__("861d");
|
9142 | var isArray = __webpack_require__("e8b5");
|
9143 | var toAbsoluteIndex = __webpack_require__("23cb");
|
9144 | var toLength = __webpack_require__("50c4");
|
9145 | var toIndexedObject = __webpack_require__("fc6a");
|
9146 | var createProperty = __webpack_require__("8418");
|
9147 | var wellKnownSymbol = __webpack_require__("b622");
|
9148 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
9149 |
|
9150 | var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
|
9151 |
|
9152 | var SPECIES = wellKnownSymbol('species');
|
9153 | var nativeSlice = [].slice;
|
9154 | var max = Math.max;
|
9155 |
|
9156 |
|
9157 |
|
9158 |
|
9159 | $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
9160 | slice: function slice(start, end) {
|
9161 | var O = toIndexedObject(this);
|
9162 | var length = toLength(O.length);
|
9163 | var k = toAbsoluteIndex(start, length);
|
9164 | var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
9165 |
|
9166 | var Constructor, result, n;
|
9167 | if (isArray(O)) {
|
9168 | Constructor = O.constructor;
|
9169 |
|
9170 | if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
|
9171 | Constructor = undefined;
|
9172 | } else if (isObject(Constructor)) {
|
9173 | Constructor = Constructor[SPECIES];
|
9174 | if (Constructor === null) Constructor = undefined;
|
9175 | }
|
9176 | if (Constructor === Array || Constructor === undefined) {
|
9177 | return nativeSlice.call(O, k, fin);
|
9178 | }
|
9179 | }
|
9180 | result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
|
9181 | for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
9182 | result.length = n;
|
9183 | return result;
|
9184 | }
|
9185 | });
|
9186 |
|
9187 |
|
9188 | }),
|
9189 |
|
9190 | "fc6a":
|
9191 | (function(module, exports, __webpack_require__) {
|
9192 |
|
9193 |
|
9194 | var IndexedObject = __webpack_require__("44ad");
|
9195 | var requireObjectCoercible = __webpack_require__("1d80");
|
9196 |
|
9197 | module.exports = function (it) {
|
9198 | return IndexedObject(requireObjectCoercible(it));
|
9199 | };
|
9200 |
|
9201 |
|
9202 | }),
|
9203 |
|
9204 | "fdbc":
|
9205 | (function(module, exports) {
|
9206 |
|
9207 |
|
9208 |
|
9209 | module.exports = {
|
9210 | CSSRuleList: 0,
|
9211 | CSSStyleDeclaration: 0,
|
9212 | CSSValueList: 0,
|
9213 | ClientRectList: 0,
|
9214 | DOMRectList: 0,
|
9215 | DOMStringList: 0,
|
9216 | DOMTokenList: 1,
|
9217 | DataTransferItemList: 0,
|
9218 | FileList: 0,
|
9219 | HTMLAllCollection: 0,
|
9220 | HTMLCollection: 0,
|
9221 | HTMLFormElement: 0,
|
9222 | HTMLSelectElement: 0,
|
9223 | MediaList: 0,
|
9224 | MimeTypeArray: 0,
|
9225 | NamedNodeMap: 0,
|
9226 | NodeList: 1,
|
9227 | PaintRequestList: 0,
|
9228 | Plugin: 0,
|
9229 | PluginArray: 0,
|
9230 | SVGLengthList: 0,
|
9231 | SVGNumberList: 0,
|
9232 | SVGPathSegList: 0,
|
9233 | SVGPointList: 0,
|
9234 | SVGStringList: 0,
|
9235 | SVGTransformList: 0,
|
9236 | SourceBufferList: 0,
|
9237 | StyleSheetList: 0,
|
9238 | TextTrackCueList: 0,
|
9239 | TextTrackList: 0,
|
9240 | TouchList: 0
|
9241 | };
|
9242 |
|
9243 |
|
9244 | }),
|
9245 |
|
9246 | "fdbf":
|
9247 | (function(module, exports, __webpack_require__) {
|
9248 |
|
9249 |
|
9250 | var NATIVE_SYMBOL = __webpack_require__("4930");
|
9251 |
|
9252 | module.exports = NATIVE_SYMBOL
|
9253 | && !Symbol.sham
|
9254 | && typeof Symbol.iterator == 'symbol';
|
9255 |
|
9256 |
|
9257 | }),
|
9258 |
|
9259 | "fea9":
|
9260 | (function(module, exports, __webpack_require__) {
|
9261 |
|
9262 | var global = __webpack_require__("da84");
|
9263 |
|
9264 | module.exports = global.Promise;
|
9265 |
|
9266 |
|
9267 | })
|
9268 |
|
9269 | })["default"];
|
9270 |
|
\ | No newline at end of file |