UNPKG

72.2 kBJavaScriptView Raw
1(function webpackUniversalModuleDefinition(root, factory) {
2 if(typeof exports === 'object' && typeof module === 'object')
3 module.exports = factory(require("sortablejs"));
4 else if(typeof define === 'function' && define.amd)
5 define(["sortablejs"], factory);
6 else if(typeof exports === 'object')
7 exports["vuedraggable"] = factory(require("sortablejs"));
8 else
9 root["vuedraggable"] = factory(root["Sortable"]);
10})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE_a352__) {
11return /******/ (function(modules) { // webpackBootstrap
12/******/ // The module cache
13/******/ var installedModules = {};
14/******/
15/******/ // The require function
16/******/ function __webpack_require__(moduleId) {
17/******/
18/******/ // Check if module is in cache
19/******/ if(installedModules[moduleId]) {
20/******/ return installedModules[moduleId].exports;
21/******/ }
22/******/ // Create a new module (and put it into the cache)
23/******/ var module = installedModules[moduleId] = {
24/******/ i: moduleId,
25/******/ l: false,
26/******/ exports: {}
27/******/ };
28/******/
29/******/ // Execute the module function
30/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31/******/
32/******/ // Flag the module as loaded
33/******/ module.l = true;
34/******/
35/******/ // Return the exports of the module
36/******/ return module.exports;
37/******/ }
38/******/
39/******/
40/******/ // expose the modules object (__webpack_modules__)
41/******/ __webpack_require__.m = modules;
42/******/
43/******/ // expose the module cache
44/******/ __webpack_require__.c = installedModules;
45/******/
46/******/ // define getter function for harmony exports
47/******/ __webpack_require__.d = function(exports, name, getter) {
48/******/ if(!__webpack_require__.o(exports, name)) {
49/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50/******/ }
51/******/ };
52/******/
53/******/ // define __esModule on exports
54/******/ __webpack_require__.r = function(exports) {
55/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57/******/ }
58/******/ Object.defineProperty(exports, '__esModule', { value: true });
59/******/ };
60/******/
61/******/ // create a fake namespace object
62/******/ // mode & 1: value is a module id, require it
63/******/ // mode & 2: merge all properties of value into the ns
64/******/ // mode & 4: return value when already ns object
65/******/ // mode & 8|1: behave like require
66/******/ __webpack_require__.t = function(value, mode) {
67/******/ if(mode & 1) value = __webpack_require__(value);
68/******/ if(mode & 8) return value;
69/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70/******/ var ns = Object.create(null);
71/******/ __webpack_require__.r(ns);
72/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74/******/ return ns;
75/******/ };
76/******/
77/******/ // getDefaultExport function for compatibility with non-harmony modules
78/******/ __webpack_require__.n = function(module) {
79/******/ var getter = module && module.__esModule ?
80/******/ function getDefault() { return module['default']; } :
81/******/ function getModuleExports() { return module; };
82/******/ __webpack_require__.d(getter, 'a', getter);
83/******/ return getter;
84/******/ };
85/******/
86/******/ // Object.prototype.hasOwnProperty.call
87/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88/******/
89/******/ // __webpack_public_path__
90/******/ __webpack_require__.p = "";
91/******/
92/******/
93/******/ // Load entry module and return exports
94/******/ return __webpack_require__(__webpack_require__.s = "fb15");
95/******/ })
96/************************************************************************/
97/******/ ({
98
99/***/ "01f9":
100/***/ (function(module, exports, __webpack_require__) {
101
102"use strict";
103
104var LIBRARY = __webpack_require__("2d00");
105var $export = __webpack_require__("5ca1");
106var redefine = __webpack_require__("2aba");
107var hide = __webpack_require__("32e9");
108var Iterators = __webpack_require__("84f2");
109var $iterCreate = __webpack_require__("41a0");
110var setToStringTag = __webpack_require__("7f20");
111var getPrototypeOf = __webpack_require__("38fd");
112var ITERATOR = __webpack_require__("2b4c")('iterator');
113var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
114var FF_ITERATOR = '@@iterator';
115var KEYS = 'keys';
116var VALUES = 'values';
117
118var returnThis = function () { return this; };
119
120module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
121 $iterCreate(Constructor, NAME, next);
122 var getMethod = function (kind) {
123 if (!BUGGY && kind in proto) return proto[kind];
124 switch (kind) {
125 case KEYS: return function keys() { return new Constructor(this, kind); };
126 case VALUES: return function values() { return new Constructor(this, kind); };
127 } return function entries() { return new Constructor(this, kind); };
128 };
129 var TAG = NAME + ' Iterator';
130 var DEF_VALUES = DEFAULT == VALUES;
131 var VALUES_BUG = false;
132 var proto = Base.prototype;
133 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
134 var $default = $native || getMethod(DEFAULT);
135 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
136 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
137 var methods, key, IteratorPrototype;
138 // Fix native
139 if ($anyNative) {
140 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
141 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
142 // Set @@toStringTag to native iterators
143 setToStringTag(IteratorPrototype, TAG, true);
144 // fix for some old engines
145 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
146 }
147 }
148 // fix Array#{values, @@iterator}.name in V8 / FF
149 if (DEF_VALUES && $native && $native.name !== VALUES) {
150 VALUES_BUG = true;
151 $default = function values() { return $native.call(this); };
152 }
153 // Define iterator
154 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
155 hide(proto, ITERATOR, $default);
156 }
157 // Plug for library
158 Iterators[NAME] = $default;
159 Iterators[TAG] = returnThis;
160 if (DEFAULT) {
161 methods = {
162 values: DEF_VALUES ? $default : getMethod(VALUES),
163 keys: IS_SET ? $default : getMethod(KEYS),
164 entries: $entries
165 };
166 if (FORCED) for (key in methods) {
167 if (!(key in proto)) redefine(proto, key, methods[key]);
168 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
169 }
170 return methods;
171};
172
173
174/***/ }),
175
176/***/ "02f4":
177/***/ (function(module, exports, __webpack_require__) {
178
179var toInteger = __webpack_require__("4588");
180var defined = __webpack_require__("be13");
181// true -> String#at
182// false -> String#codePointAt
183module.exports = function (TO_STRING) {
184 return function (that, pos) {
185 var s = String(defined(that));
186 var i = toInteger(pos);
187 var l = s.length;
188 var a, b;
189 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
190 a = s.charCodeAt(i);
191 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
192 ? TO_STRING ? s.charAt(i) : a
193 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
194 };
195};
196
197
198/***/ }),
199
200/***/ "0390":
201/***/ (function(module, exports, __webpack_require__) {
202
203"use strict";
204
205var at = __webpack_require__("02f4")(true);
206
207 // `AdvanceStringIndex` abstract operation
208// https://tc39.github.io/ecma262/#sec-advancestringindex
209module.exports = function (S, index, unicode) {
210 return index + (unicode ? at(S, index).length : 1);
211};
212
213
214/***/ }),
215
216/***/ "0bfb":
217/***/ (function(module, exports, __webpack_require__) {
218
219"use strict";
220
221// 21.2.5.3 get RegExp.prototype.flags
222var anObject = __webpack_require__("cb7c");
223module.exports = function () {
224 var that = anObject(this);
225 var result = '';
226 if (that.global) result += 'g';
227 if (that.ignoreCase) result += 'i';
228 if (that.multiline) result += 'm';
229 if (that.unicode) result += 'u';
230 if (that.sticky) result += 'y';
231 return result;
232};
233
234
235/***/ }),
236
237/***/ "0d58":
238/***/ (function(module, exports, __webpack_require__) {
239
240// 19.1.2.14 / 15.2.3.14 Object.keys(O)
241var $keys = __webpack_require__("ce10");
242var enumBugKeys = __webpack_require__("e11e");
243
244module.exports = Object.keys || function keys(O) {
245 return $keys(O, enumBugKeys);
246};
247
248
249/***/ }),
250
251/***/ "1495":
252/***/ (function(module, exports, __webpack_require__) {
253
254var dP = __webpack_require__("86cc");
255var anObject = __webpack_require__("cb7c");
256var getKeys = __webpack_require__("0d58");
257
258module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
259 anObject(O);
260 var keys = getKeys(Properties);
261 var length = keys.length;
262 var i = 0;
263 var P;
264 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
265 return O;
266};
267
268
269/***/ }),
270
271/***/ "214f":
272/***/ (function(module, exports, __webpack_require__) {
273
274"use strict";
275
276__webpack_require__("b0c5");
277var redefine = __webpack_require__("2aba");
278var hide = __webpack_require__("32e9");
279var fails = __webpack_require__("79e5");
280var defined = __webpack_require__("be13");
281var wks = __webpack_require__("2b4c");
282var regexpExec = __webpack_require__("520a");
283
284var SPECIES = wks('species');
285
286var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
287 // #replace needs built-in support for named groups.
288 // #match works fine because it just return the exec results, even if it has
289 // a "grops" property.
290 var re = /./;
291 re.exec = function () {
292 var result = [];
293 result.groups = { a: '7' };
294 return result;
295 };
296 return ''.replace(re, '$<a>') !== '7';
297});
298
299var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
300 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
301 var re = /(?:)/;
302 var originalExec = re.exec;
303 re.exec = function () { return originalExec.apply(this, arguments); };
304 var result = 'ab'.split(re);
305 return result.length === 2 && result[0] === 'a' && result[1] === 'b';
306})();
307
308module.exports = function (KEY, length, exec) {
309 var SYMBOL = wks(KEY);
310
311 var DELEGATES_TO_SYMBOL = !fails(function () {
312 // String methods call symbol-named RegEp methods
313 var O = {};
314 O[SYMBOL] = function () { return 7; };
315 return ''[KEY](O) != 7;
316 });
317
318 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
319 // Symbol-named RegExp methods call .exec
320 var execCalled = false;
321 var re = /a/;
322 re.exec = function () { execCalled = true; return null; };
323 if (KEY === 'split') {
324 // RegExp[@@split] doesn't call the regex's exec method, but first creates
325 // a new one. We need to return the patched regex when creating the new one.
326 re.constructor = {};
327 re.constructor[SPECIES] = function () { return re; };
328 }
329 re[SYMBOL]('');
330 return !execCalled;
331 }) : undefined;
332
333 if (
334 !DELEGATES_TO_SYMBOL ||
335 !DELEGATES_TO_EXEC ||
336 (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
337 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
338 ) {
339 var nativeRegExpMethod = /./[SYMBOL];
340 var fns = exec(
341 defined,
342 SYMBOL,
343 ''[KEY],
344 function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
345 if (regexp.exec === regexpExec) {
346 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
347 // The native String method already delegates to @@method (this
348 // polyfilled function), leasing to infinite recursion.
349 // We avoid it by directly calling the native @@method method.
350 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
351 }
352 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
353 }
354 return { done: false };
355 }
356 );
357 var strfn = fns[0];
358 var rxfn = fns[1];
359
360 redefine(String.prototype, KEY, strfn);
361 hide(RegExp.prototype, SYMBOL, length == 2
362 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
363 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
364 ? function (string, arg) { return rxfn.call(string, this, arg); }
365 // 21.2.5.6 RegExp.prototype[@@match](string)
366 // 21.2.5.9 RegExp.prototype[@@search](string)
367 : function (string) { return rxfn.call(string, this); }
368 );
369 }
370};
371
372
373/***/ }),
374
375/***/ "230e":
376/***/ (function(module, exports, __webpack_require__) {
377
378var isObject = __webpack_require__("d3f4");
379var document = __webpack_require__("7726").document;
380// typeof document.createElement is 'object' in old IE
381var is = isObject(document) && isObject(document.createElement);
382module.exports = function (it) {
383 return is ? document.createElement(it) : {};
384};
385
386
387/***/ }),
388
389/***/ "23c6":
390/***/ (function(module, exports, __webpack_require__) {
391
392// getting tag from 19.1.3.6 Object.prototype.toString()
393var cof = __webpack_require__("2d95");
394var TAG = __webpack_require__("2b4c")('toStringTag');
395// ES3 wrong here
396var ARG = cof(function () { return arguments; }()) == 'Arguments';
397
398// fallback for IE11 Script Access Denied error
399var tryGet = function (it, key) {
400 try {
401 return it[key];
402 } catch (e) { /* empty */ }
403};
404
405module.exports = function (it) {
406 var O, T, B;
407 return it === undefined ? 'Undefined' : it === null ? 'Null'
408 // @@toStringTag case
409 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
410 // builtinTag case
411 : ARG ? cof(O)
412 // ES3 arguments fallback
413 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
414};
415
416
417/***/ }),
418
419/***/ "2621":
420/***/ (function(module, exports) {
421
422exports.f = Object.getOwnPropertySymbols;
423
424
425/***/ }),
426
427/***/ "2aba":
428/***/ (function(module, exports, __webpack_require__) {
429
430var global = __webpack_require__("7726");
431var hide = __webpack_require__("32e9");
432var has = __webpack_require__("69a8");
433var SRC = __webpack_require__("ca5a")('src');
434var $toString = __webpack_require__("fa5b");
435var TO_STRING = 'toString';
436var TPL = ('' + $toString).split(TO_STRING);
437
438__webpack_require__("8378").inspectSource = function (it) {
439 return $toString.call(it);
440};
441
442(module.exports = function (O, key, val, safe) {
443 var isFunction = typeof val == 'function';
444 if (isFunction) has(val, 'name') || hide(val, 'name', key);
445 if (O[key] === val) return;
446 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
447 if (O === global) {
448 O[key] = val;
449 } else if (!safe) {
450 delete O[key];
451 hide(O, key, val);
452 } else if (O[key]) {
453 O[key] = val;
454 } else {
455 hide(O, key, val);
456 }
457// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
458})(Function.prototype, TO_STRING, function toString() {
459 return typeof this == 'function' && this[SRC] || $toString.call(this);
460});
461
462
463/***/ }),
464
465/***/ "2aeb":
466/***/ (function(module, exports, __webpack_require__) {
467
468// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
469var anObject = __webpack_require__("cb7c");
470var dPs = __webpack_require__("1495");
471var enumBugKeys = __webpack_require__("e11e");
472var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
473var Empty = function () { /* empty */ };
474var PROTOTYPE = 'prototype';
475
476// Create object with fake `null` prototype: use iframe Object with cleared prototype
477var createDict = function () {
478 // Thrash, waste and sodomy: IE GC bug
479 var iframe = __webpack_require__("230e")('iframe');
480 var i = enumBugKeys.length;
481 var lt = '<';
482 var gt = '>';
483 var iframeDocument;
484 iframe.style.display = 'none';
485 __webpack_require__("fab2").appendChild(iframe);
486 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
487 // createDict = iframe.contentWindow.Object;
488 // html.removeChild(iframe);
489 iframeDocument = iframe.contentWindow.document;
490 iframeDocument.open();
491 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
492 iframeDocument.close();
493 createDict = iframeDocument.F;
494 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
495 return createDict();
496};
497
498module.exports = Object.create || function create(O, Properties) {
499 var result;
500 if (O !== null) {
501 Empty[PROTOTYPE] = anObject(O);
502 result = new Empty();
503 Empty[PROTOTYPE] = null;
504 // add "__proto__" for Object.getPrototypeOf polyfill
505 result[IE_PROTO] = O;
506 } else result = createDict();
507 return Properties === undefined ? result : dPs(result, Properties);
508};
509
510
511/***/ }),
512
513/***/ "2b4c":
514/***/ (function(module, exports, __webpack_require__) {
515
516var store = __webpack_require__("5537")('wks');
517var uid = __webpack_require__("ca5a");
518var Symbol = __webpack_require__("7726").Symbol;
519var USE_SYMBOL = typeof Symbol == 'function';
520
521var $exports = module.exports = function (name) {
522 return store[name] || (store[name] =
523 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
524};
525
526$exports.store = store;
527
528
529/***/ }),
530
531/***/ "2d00":
532/***/ (function(module, exports) {
533
534module.exports = false;
535
536
537/***/ }),
538
539/***/ "2d95":
540/***/ (function(module, exports) {
541
542var toString = {}.toString;
543
544module.exports = function (it) {
545 return toString.call(it).slice(8, -1);
546};
547
548
549/***/ }),
550
551/***/ "2fdb":
552/***/ (function(module, exports, __webpack_require__) {
553
554"use strict";
555// 21.1.3.7 String.prototype.includes(searchString, position = 0)
556
557var $export = __webpack_require__("5ca1");
558var context = __webpack_require__("d2c8");
559var INCLUDES = 'includes';
560
561$export($export.P + $export.F * __webpack_require__("5147")(INCLUDES), 'String', {
562 includes: function includes(searchString /* , position = 0 */) {
563 return !!~context(this, searchString, INCLUDES)
564 .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
565 }
566});
567
568
569/***/ }),
570
571/***/ "32e9":
572/***/ (function(module, exports, __webpack_require__) {
573
574var dP = __webpack_require__("86cc");
575var createDesc = __webpack_require__("4630");
576module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
577 return dP.f(object, key, createDesc(1, value));
578} : function (object, key, value) {
579 object[key] = value;
580 return object;
581};
582
583
584/***/ }),
585
586/***/ "38fd":
587/***/ (function(module, exports, __webpack_require__) {
588
589// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
590var has = __webpack_require__("69a8");
591var toObject = __webpack_require__("4bf8");
592var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
593var ObjectProto = Object.prototype;
594
595module.exports = Object.getPrototypeOf || function (O) {
596 O = toObject(O);
597 if (has(O, IE_PROTO)) return O[IE_PROTO];
598 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
599 return O.constructor.prototype;
600 } return O instanceof Object ? ObjectProto : null;
601};
602
603
604/***/ }),
605
606/***/ "41a0":
607/***/ (function(module, exports, __webpack_require__) {
608
609"use strict";
610
611var create = __webpack_require__("2aeb");
612var descriptor = __webpack_require__("4630");
613var setToStringTag = __webpack_require__("7f20");
614var IteratorPrototype = {};
615
616// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
617__webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; });
618
619module.exports = function (Constructor, NAME, next) {
620 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
621 setToStringTag(Constructor, NAME + ' Iterator');
622};
623
624
625/***/ }),
626
627/***/ "456d":
628/***/ (function(module, exports, __webpack_require__) {
629
630// 19.1.2.14 Object.keys(O)
631var toObject = __webpack_require__("4bf8");
632var $keys = __webpack_require__("0d58");
633
634__webpack_require__("5eda")('keys', function () {
635 return function keys(it) {
636 return $keys(toObject(it));
637 };
638});
639
640
641/***/ }),
642
643/***/ "4588":
644/***/ (function(module, exports) {
645
646// 7.1.4 ToInteger
647var ceil = Math.ceil;
648var floor = Math.floor;
649module.exports = function (it) {
650 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
651};
652
653
654/***/ }),
655
656/***/ "4630":
657/***/ (function(module, exports) {
658
659module.exports = function (bitmap, value) {
660 return {
661 enumerable: !(bitmap & 1),
662 configurable: !(bitmap & 2),
663 writable: !(bitmap & 4),
664 value: value
665 };
666};
667
668
669/***/ }),
670
671/***/ "4bf8":
672/***/ (function(module, exports, __webpack_require__) {
673
674// 7.1.13 ToObject(argument)
675var defined = __webpack_require__("be13");
676module.exports = function (it) {
677 return Object(defined(it));
678};
679
680
681/***/ }),
682
683/***/ "5147":
684/***/ (function(module, exports, __webpack_require__) {
685
686var MATCH = __webpack_require__("2b4c")('match');
687module.exports = function (KEY) {
688 var re = /./;
689 try {
690 '/./'[KEY](re);
691 } catch (e) {
692 try {
693 re[MATCH] = false;
694 return !'/./'[KEY](re);
695 } catch (f) { /* empty */ }
696 } return true;
697};
698
699
700/***/ }),
701
702/***/ "520a":
703/***/ (function(module, exports, __webpack_require__) {
704
705"use strict";
706
707
708var regexpFlags = __webpack_require__("0bfb");
709
710var nativeExec = RegExp.prototype.exec;
711// This always refers to the native implementation, because the
712// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
713// which loads this file before patching the method.
714var nativeReplace = String.prototype.replace;
715
716var patchedExec = nativeExec;
717
718var LAST_INDEX = 'lastIndex';
719
720var UPDATES_LAST_INDEX_WRONG = (function () {
721 var re1 = /a/,
722 re2 = /b*/g;
723 nativeExec.call(re1, 'a');
724 nativeExec.call(re2, 'a');
725 return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
726})();
727
728// nonparticipating capturing group, copied from es5-shim's String#split patch.
729var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
730
731var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
732
733if (PATCH) {
734 patchedExec = function exec(str) {
735 var re = this;
736 var lastIndex, reCopy, match, i;
737
738 if (NPCG_INCLUDED) {
739 reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
740 }
741 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
742
743 match = nativeExec.call(re, str);
744
745 if (UPDATES_LAST_INDEX_WRONG && match) {
746 re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
747 }
748 if (NPCG_INCLUDED && match && match.length > 1) {
749 // Fix browsers whose `exec` methods don't consistently return `undefined`
750 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
751 // eslint-disable-next-line no-loop-func
752 nativeReplace.call(match[0], reCopy, function () {
753 for (i = 1; i < arguments.length - 2; i++) {
754 if (arguments[i] === undefined) match[i] = undefined;
755 }
756 });
757 }
758
759 return match;
760 };
761}
762
763module.exports = patchedExec;
764
765
766/***/ }),
767
768/***/ "52a7":
769/***/ (function(module, exports) {
770
771exports.f = {}.propertyIsEnumerable;
772
773
774/***/ }),
775
776/***/ "5537":
777/***/ (function(module, exports, __webpack_require__) {
778
779var core = __webpack_require__("8378");
780var global = __webpack_require__("7726");
781var SHARED = '__core-js_shared__';
782var store = global[SHARED] || (global[SHARED] = {});
783
784(module.exports = function (key, value) {
785 return store[key] || (store[key] = value !== undefined ? value : {});
786})('versions', []).push({
787 version: core.version,
788 mode: __webpack_require__("2d00") ? 'pure' : 'global',
789 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
790});
791
792
793/***/ }),
794
795/***/ "5ca1":
796/***/ (function(module, exports, __webpack_require__) {
797
798var global = __webpack_require__("7726");
799var core = __webpack_require__("8378");
800var hide = __webpack_require__("32e9");
801var redefine = __webpack_require__("2aba");
802var ctx = __webpack_require__("9b43");
803var PROTOTYPE = 'prototype';
804
805var $export = function (type, name, source) {
806 var IS_FORCED = type & $export.F;
807 var IS_GLOBAL = type & $export.G;
808 var IS_STATIC = type & $export.S;
809 var IS_PROTO = type & $export.P;
810 var IS_BIND = type & $export.B;
811 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
812 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
813 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
814 var key, own, out, exp;
815 if (IS_GLOBAL) source = name;
816 for (key in source) {
817 // contains in native
818 own = !IS_FORCED && target && target[key] !== undefined;
819 // export native or passed
820 out = (own ? target : source)[key];
821 // bind timers to global for call from export context
822 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
823 // extend global
824 if (target) redefine(target, key, out, type & $export.U);
825 // export
826 if (exports[key] != out) hide(exports, key, exp);
827 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
828 }
829};
830global.core = core;
831// type bitmap
832$export.F = 1; // forced
833$export.G = 2; // global
834$export.S = 4; // static
835$export.P = 8; // proto
836$export.B = 16; // bind
837$export.W = 32; // wrap
838$export.U = 64; // safe
839$export.R = 128; // real proto method for `library`
840module.exports = $export;
841
842
843/***/ }),
844
845/***/ "5eda":
846/***/ (function(module, exports, __webpack_require__) {
847
848// most Object methods by ES6 should accept primitives
849var $export = __webpack_require__("5ca1");
850var core = __webpack_require__("8378");
851var fails = __webpack_require__("79e5");
852module.exports = function (KEY, exec) {
853 var fn = (core.Object || {})[KEY] || Object[KEY];
854 var exp = {};
855 exp[KEY] = exec(fn);
856 $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
857};
858
859
860/***/ }),
861
862/***/ "5f1b":
863/***/ (function(module, exports, __webpack_require__) {
864
865"use strict";
866
867
868var classof = __webpack_require__("23c6");
869var builtinExec = RegExp.prototype.exec;
870
871 // `RegExpExec` abstract operation
872// https://tc39.github.io/ecma262/#sec-regexpexec
873module.exports = function (R, S) {
874 var exec = R.exec;
875 if (typeof exec === 'function') {
876 var result = exec.call(R, S);
877 if (typeof result !== 'object') {
878 throw new TypeError('RegExp exec method returned something other than an Object or null');
879 }
880 return result;
881 }
882 if (classof(R) !== 'RegExp') {
883 throw new TypeError('RegExp#exec called on incompatible receiver');
884 }
885 return builtinExec.call(R, S);
886};
887
888
889/***/ }),
890
891/***/ "613b":
892/***/ (function(module, exports, __webpack_require__) {
893
894var shared = __webpack_require__("5537")('keys');
895var uid = __webpack_require__("ca5a");
896module.exports = function (key) {
897 return shared[key] || (shared[key] = uid(key));
898};
899
900
901/***/ }),
902
903/***/ "626a":
904/***/ (function(module, exports, __webpack_require__) {
905
906// fallback for non-array-like ES3 and non-enumerable old V8 strings
907var cof = __webpack_require__("2d95");
908// eslint-disable-next-line no-prototype-builtins
909module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
910 return cof(it) == 'String' ? it.split('') : Object(it);
911};
912
913
914/***/ }),
915
916/***/ "6762":
917/***/ (function(module, exports, __webpack_require__) {
918
919"use strict";
920
921// https://github.com/tc39/Array.prototype.includes
922var $export = __webpack_require__("5ca1");
923var $includes = __webpack_require__("c366")(true);
924
925$export($export.P, 'Array', {
926 includes: function includes(el /* , fromIndex = 0 */) {
927 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
928 }
929});
930
931__webpack_require__("9c6c")('includes');
932
933
934/***/ }),
935
936/***/ "6821":
937/***/ (function(module, exports, __webpack_require__) {
938
939// to indexed object, toObject with fallback for non-array-like ES3 strings
940var IObject = __webpack_require__("626a");
941var defined = __webpack_require__("be13");
942module.exports = function (it) {
943 return IObject(defined(it));
944};
945
946
947/***/ }),
948
949/***/ "69a8":
950/***/ (function(module, exports) {
951
952var hasOwnProperty = {}.hasOwnProperty;
953module.exports = function (it, key) {
954 return hasOwnProperty.call(it, key);
955};
956
957
958/***/ }),
959
960/***/ "6a99":
961/***/ (function(module, exports, __webpack_require__) {
962
963// 7.1.1 ToPrimitive(input [, PreferredType])
964var isObject = __webpack_require__("d3f4");
965// instead of the ES6 spec version, we didn't implement @@toPrimitive case
966// and the second argument - flag - preferred type is a string
967module.exports = function (it, S) {
968 if (!isObject(it)) return it;
969 var fn, val;
970 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
971 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
972 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
973 throw TypeError("Can't convert object to primitive value");
974};
975
976
977/***/ }),
978
979/***/ "7333":
980/***/ (function(module, exports, __webpack_require__) {
981
982"use strict";
983
984// 19.1.2.1 Object.assign(target, source, ...)
985var getKeys = __webpack_require__("0d58");
986var gOPS = __webpack_require__("2621");
987var pIE = __webpack_require__("52a7");
988var toObject = __webpack_require__("4bf8");
989var IObject = __webpack_require__("626a");
990var $assign = Object.assign;
991
992// should work with symbols and should have deterministic property order (V8 bug)
993module.exports = !$assign || __webpack_require__("79e5")(function () {
994 var A = {};
995 var B = {};
996 // eslint-disable-next-line no-undef
997 var S = Symbol();
998 var K = 'abcdefghijklmnopqrst';
999 A[S] = 7;
1000 K.split('').forEach(function (k) { B[k] = k; });
1001 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
1002}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
1003 var T = toObject(target);
1004 var aLen = arguments.length;
1005 var index = 1;
1006 var getSymbols = gOPS.f;
1007 var isEnum = pIE.f;
1008 while (aLen > index) {
1009 var S = IObject(arguments[index++]);
1010 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
1011 var length = keys.length;
1012 var j = 0;
1013 var key;
1014 while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
1015 } return T;
1016} : $assign;
1017
1018
1019/***/ }),
1020
1021/***/ "7726":
1022/***/ (function(module, exports) {
1023
1024// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1025var global = module.exports = typeof window != 'undefined' && window.Math == Math
1026 ? window : typeof self != 'undefined' && self.Math == Math ? self
1027 // eslint-disable-next-line no-new-func
1028 : Function('return this')();
1029if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
1030
1031
1032/***/ }),
1033
1034/***/ "77f1":
1035/***/ (function(module, exports, __webpack_require__) {
1036
1037var toInteger = __webpack_require__("4588");
1038var max = Math.max;
1039var min = Math.min;
1040module.exports = function (index, length) {
1041 index = toInteger(index);
1042 return index < 0 ? max(index + length, 0) : min(index, length);
1043};
1044
1045
1046/***/ }),
1047
1048/***/ "79e5":
1049/***/ (function(module, exports) {
1050
1051module.exports = function (exec) {
1052 try {
1053 return !!exec();
1054 } catch (e) {
1055 return true;
1056 }
1057};
1058
1059
1060/***/ }),
1061
1062/***/ "7f20":
1063/***/ (function(module, exports, __webpack_require__) {
1064
1065var def = __webpack_require__("86cc").f;
1066var has = __webpack_require__("69a8");
1067var TAG = __webpack_require__("2b4c")('toStringTag');
1068
1069module.exports = function (it, tag, stat) {
1070 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
1071};
1072
1073
1074/***/ }),
1075
1076/***/ "8378":
1077/***/ (function(module, exports) {
1078
1079var core = module.exports = { version: '2.6.5' };
1080if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
1081
1082
1083/***/ }),
1084
1085/***/ "84f2":
1086/***/ (function(module, exports) {
1087
1088module.exports = {};
1089
1090
1091/***/ }),
1092
1093/***/ "86cc":
1094/***/ (function(module, exports, __webpack_require__) {
1095
1096var anObject = __webpack_require__("cb7c");
1097var IE8_DOM_DEFINE = __webpack_require__("c69a");
1098var toPrimitive = __webpack_require__("6a99");
1099var dP = Object.defineProperty;
1100
1101exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
1102 anObject(O);
1103 P = toPrimitive(P, true);
1104 anObject(Attributes);
1105 if (IE8_DOM_DEFINE) try {
1106 return dP(O, P, Attributes);
1107 } catch (e) { /* empty */ }
1108 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
1109 if ('value' in Attributes) O[P] = Attributes.value;
1110 return O;
1111};
1112
1113
1114/***/ }),
1115
1116/***/ "9b43":
1117/***/ (function(module, exports, __webpack_require__) {
1118
1119// optional / simple context binding
1120var aFunction = __webpack_require__("d8e8");
1121module.exports = function (fn, that, length) {
1122 aFunction(fn);
1123 if (that === undefined) return fn;
1124 switch (length) {
1125 case 1: return function (a) {
1126 return fn.call(that, a);
1127 };
1128 case 2: return function (a, b) {
1129 return fn.call(that, a, b);
1130 };
1131 case 3: return function (a, b, c) {
1132 return fn.call(that, a, b, c);
1133 };
1134 }
1135 return function (/* ...args */) {
1136 return fn.apply(that, arguments);
1137 };
1138};
1139
1140
1141/***/ }),
1142
1143/***/ "9c6c":
1144/***/ (function(module, exports, __webpack_require__) {
1145
1146// 22.1.3.31 Array.prototype[@@unscopables]
1147var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
1148var ArrayProto = Array.prototype;
1149if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
1150module.exports = function (key) {
1151 ArrayProto[UNSCOPABLES][key] = true;
1152};
1153
1154
1155/***/ }),
1156
1157/***/ "9def":
1158/***/ (function(module, exports, __webpack_require__) {
1159
1160// 7.1.15 ToLength
1161var toInteger = __webpack_require__("4588");
1162var min = Math.min;
1163module.exports = function (it) {
1164 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
1165};
1166
1167
1168/***/ }),
1169
1170/***/ "9e1e":
1171/***/ (function(module, exports, __webpack_require__) {
1172
1173// Thank's IE8 for his funny defineProperty
1174module.exports = !__webpack_require__("79e5")(function () {
1175 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
1176});
1177
1178
1179/***/ }),
1180
1181/***/ "a352":
1182/***/ (function(module, exports) {
1183
1184module.exports = __WEBPACK_EXTERNAL_MODULE_a352__;
1185
1186/***/ }),
1187
1188/***/ "a481":
1189/***/ (function(module, exports, __webpack_require__) {
1190
1191"use strict";
1192
1193
1194var anObject = __webpack_require__("cb7c");
1195var toObject = __webpack_require__("4bf8");
1196var toLength = __webpack_require__("9def");
1197var toInteger = __webpack_require__("4588");
1198var advanceStringIndex = __webpack_require__("0390");
1199var regExpExec = __webpack_require__("5f1b");
1200var max = Math.max;
1201var min = Math.min;
1202var floor = Math.floor;
1203var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
1204var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
1205
1206var maybeToString = function (it) {
1207 return it === undefined ? it : String(it);
1208};
1209
1210// @@replace logic
1211__webpack_require__("214f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
1212 return [
1213 // `String.prototype.replace` method
1214 // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1215 function replace(searchValue, replaceValue) {
1216 var O = defined(this);
1217 var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
1218 return fn !== undefined
1219 ? fn.call(searchValue, O, replaceValue)
1220 : $replace.call(String(O), searchValue, replaceValue);
1221 },
1222 // `RegExp.prototype[@@replace]` method
1223 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1224 function (regexp, replaceValue) {
1225 var res = maybeCallNative($replace, regexp, this, replaceValue);
1226 if (res.done) return res.value;
1227
1228 var rx = anObject(regexp);
1229 var S = String(this);
1230 var functionalReplace = typeof replaceValue === 'function';
1231 if (!functionalReplace) replaceValue = String(replaceValue);
1232 var global = rx.global;
1233 if (global) {
1234 var fullUnicode = rx.unicode;
1235 rx.lastIndex = 0;
1236 }
1237 var results = [];
1238 while (true) {
1239 var result = regExpExec(rx, S);
1240 if (result === null) break;
1241 results.push(result);
1242 if (!global) break;
1243 var matchStr = String(result[0]);
1244 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1245 }
1246 var accumulatedResult = '';
1247 var nextSourcePosition = 0;
1248 for (var i = 0; i < results.length; i++) {
1249 result = results[i];
1250 var matched = String(result[0]);
1251 var position = max(min(toInteger(result.index), S.length), 0);
1252 var captures = [];
1253 // NOTE: This is equivalent to
1254 // captures = result.slice(1).map(maybeToString)
1255 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1256 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1257 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1258 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1259 var namedCaptures = result.groups;
1260 if (functionalReplace) {
1261 var replacerArgs = [matched].concat(captures, position, S);
1262 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1263 var replacement = String(replaceValue.apply(undefined, replacerArgs));
1264 } else {
1265 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1266 }
1267 if (position >= nextSourcePosition) {
1268 accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1269 nextSourcePosition = position + matched.length;
1270 }
1271 }
1272 return accumulatedResult + S.slice(nextSourcePosition);
1273 }
1274 ];
1275
1276 // https://tc39.github.io/ecma262/#sec-getsubstitution
1277 function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1278 var tailPos = position + matched.length;
1279 var m = captures.length;
1280 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1281 if (namedCaptures !== undefined) {
1282 namedCaptures = toObject(namedCaptures);
1283 symbols = SUBSTITUTION_SYMBOLS;
1284 }
1285 return $replace.call(replacement, symbols, function (match, ch) {
1286 var capture;
1287 switch (ch.charAt(0)) {
1288 case '$': return '$';
1289 case '&': return matched;
1290 case '`': return str.slice(0, position);
1291 case "'": return str.slice(tailPos);
1292 case '<':
1293 capture = namedCaptures[ch.slice(1, -1)];
1294 break;
1295 default: // \d\d?
1296 var n = +ch;
1297 if (n === 0) return match;
1298 if (n > m) {
1299 var f = floor(n / 10);
1300 if (f === 0) return match;
1301 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1302 return match;
1303 }
1304 capture = captures[n - 1];
1305 }
1306 return capture === undefined ? '' : capture;
1307 });
1308 }
1309});
1310
1311
1312/***/ }),
1313
1314/***/ "aae3":
1315/***/ (function(module, exports, __webpack_require__) {
1316
1317// 7.2.8 IsRegExp(argument)
1318var isObject = __webpack_require__("d3f4");
1319var cof = __webpack_require__("2d95");
1320var MATCH = __webpack_require__("2b4c")('match');
1321module.exports = function (it) {
1322 var isRegExp;
1323 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
1324};
1325
1326
1327/***/ }),
1328
1329/***/ "ac6a":
1330/***/ (function(module, exports, __webpack_require__) {
1331
1332var $iterators = __webpack_require__("cadf");
1333var getKeys = __webpack_require__("0d58");
1334var redefine = __webpack_require__("2aba");
1335var global = __webpack_require__("7726");
1336var hide = __webpack_require__("32e9");
1337var Iterators = __webpack_require__("84f2");
1338var wks = __webpack_require__("2b4c");
1339var ITERATOR = wks('iterator');
1340var TO_STRING_TAG = wks('toStringTag');
1341var ArrayValues = Iterators.Array;
1342
1343var DOMIterables = {
1344 CSSRuleList: true, // TODO: Not spec compliant, should be false.
1345 CSSStyleDeclaration: false,
1346 CSSValueList: false,
1347 ClientRectList: false,
1348 DOMRectList: false,
1349 DOMStringList: false,
1350 DOMTokenList: true,
1351 DataTransferItemList: false,
1352 FileList: false,
1353 HTMLAllCollection: false,
1354 HTMLCollection: false,
1355 HTMLFormElement: false,
1356 HTMLSelectElement: false,
1357 MediaList: true, // TODO: Not spec compliant, should be false.
1358 MimeTypeArray: false,
1359 NamedNodeMap: false,
1360 NodeList: true,
1361 PaintRequestList: false,
1362 Plugin: false,
1363 PluginArray: false,
1364 SVGLengthList: false,
1365 SVGNumberList: false,
1366 SVGPathSegList: false,
1367 SVGPointList: false,
1368 SVGStringList: false,
1369 SVGTransformList: false,
1370 SourceBufferList: false,
1371 StyleSheetList: true, // TODO: Not spec compliant, should be false.
1372 TextTrackCueList: false,
1373 TextTrackList: false,
1374 TouchList: false
1375};
1376
1377for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
1378 var NAME = collections[i];
1379 var explicit = DOMIterables[NAME];
1380 var Collection = global[NAME];
1381 var proto = Collection && Collection.prototype;
1382 var key;
1383 if (proto) {
1384 if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
1385 if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
1386 Iterators[NAME] = ArrayValues;
1387 if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
1388 }
1389}
1390
1391
1392/***/ }),
1393
1394/***/ "b0c5":
1395/***/ (function(module, exports, __webpack_require__) {
1396
1397"use strict";
1398
1399var regexpExec = __webpack_require__("520a");
1400__webpack_require__("5ca1")({
1401 target: 'RegExp',
1402 proto: true,
1403 forced: regexpExec !== /./.exec
1404}, {
1405 exec: regexpExec
1406});
1407
1408
1409/***/ }),
1410
1411/***/ "be13":
1412/***/ (function(module, exports) {
1413
1414// 7.2.1 RequireObjectCoercible(argument)
1415module.exports = function (it) {
1416 if (it == undefined) throw TypeError("Can't call method on " + it);
1417 return it;
1418};
1419
1420
1421/***/ }),
1422
1423/***/ "c366":
1424/***/ (function(module, exports, __webpack_require__) {
1425
1426// false -> Array#indexOf
1427// true -> Array#includes
1428var toIObject = __webpack_require__("6821");
1429var toLength = __webpack_require__("9def");
1430var toAbsoluteIndex = __webpack_require__("77f1");
1431module.exports = function (IS_INCLUDES) {
1432 return function ($this, el, fromIndex) {
1433 var O = toIObject($this);
1434 var length = toLength(O.length);
1435 var index = toAbsoluteIndex(fromIndex, length);
1436 var value;
1437 // Array#includes uses SameValueZero equality algorithm
1438 // eslint-disable-next-line no-self-compare
1439 if (IS_INCLUDES && el != el) while (length > index) {
1440 value = O[index++];
1441 // eslint-disable-next-line no-self-compare
1442 if (value != value) return true;
1443 // Array#indexOf ignores holes, Array#includes - not
1444 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
1445 if (O[index] === el) return IS_INCLUDES || index || 0;
1446 } return !IS_INCLUDES && -1;
1447 };
1448};
1449
1450
1451/***/ }),
1452
1453/***/ "c649":
1454/***/ (function(module, __webpack_exports__, __webpack_require__) {
1455
1456"use strict";
1457/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return insertNodeAt; });
1458/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return camelize; });
1459/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return console; });
1460/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return removeNode; });
1461/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a481");
1462/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__);
1463
1464
1465function getConsole() {
1466 if (typeof window !== "undefined") {
1467 return window.console;
1468 }
1469
1470 return global.console;
1471}
1472
1473var console = getConsole();
1474
1475function cached(fn) {
1476 var cache = Object.create(null);
1477 return function cachedFn(str) {
1478 var hit = cache[str];
1479 return hit || (cache[str] = fn(str));
1480 };
1481}
1482
1483var regex = /-(\w)/g;
1484var camelize = cached(function (str) {
1485 return str.replace(regex, function (_, c) {
1486 return c ? c.toUpperCase() : "";
1487 });
1488});
1489
1490function removeNode(node) {
1491 if (node.parentElement !== null) {
1492 node.parentElement.removeChild(node);
1493 }
1494}
1495
1496function insertNodeAt(fatherNode, node, position) {
1497 var refNode = position === 0 ? fatherNode.children[0] : fatherNode.children[position - 1].nextSibling;
1498 fatherNode.insertBefore(node, refNode);
1499}
1500
1501
1502/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
1503
1504/***/ }),
1505
1506/***/ "c69a":
1507/***/ (function(module, exports, __webpack_require__) {
1508
1509module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
1510 return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
1511});
1512
1513
1514/***/ }),
1515
1516/***/ "c8ba":
1517/***/ (function(module, exports) {
1518
1519var g;
1520
1521// This works in non-strict mode
1522g = (function() {
1523 return this;
1524})();
1525
1526try {
1527 // This works if eval is allowed (see CSP)
1528 g = g || new Function("return this")();
1529} catch (e) {
1530 // This works if the window reference is available
1531 if (typeof window === "object") g = window;
1532}
1533
1534// g can still be undefined, but nothing to do about it...
1535// We return undefined, instead of nothing here, so it's
1536// easier to handle this case. if(!global) { ...}
1537
1538module.exports = g;
1539
1540
1541/***/ }),
1542
1543/***/ "ca5a":
1544/***/ (function(module, exports) {
1545
1546var id = 0;
1547var px = Math.random();
1548module.exports = function (key) {
1549 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1550};
1551
1552
1553/***/ }),
1554
1555/***/ "cadf":
1556/***/ (function(module, exports, __webpack_require__) {
1557
1558"use strict";
1559
1560var addToUnscopables = __webpack_require__("9c6c");
1561var step = __webpack_require__("d53b");
1562var Iterators = __webpack_require__("84f2");
1563var toIObject = __webpack_require__("6821");
1564
1565// 22.1.3.4 Array.prototype.entries()
1566// 22.1.3.13 Array.prototype.keys()
1567// 22.1.3.29 Array.prototype.values()
1568// 22.1.3.30 Array.prototype[@@iterator]()
1569module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) {
1570 this._t = toIObject(iterated); // target
1571 this._i = 0; // next index
1572 this._k = kind; // kind
1573// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
1574}, function () {
1575 var O = this._t;
1576 var kind = this._k;
1577 var index = this._i++;
1578 if (!O || index >= O.length) {
1579 this._t = undefined;
1580 return step(1);
1581 }
1582 if (kind == 'keys') return step(0, index);
1583 if (kind == 'values') return step(0, O[index]);
1584 return step(0, [index, O[index]]);
1585}, 'values');
1586
1587// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
1588Iterators.Arguments = Iterators.Array;
1589
1590addToUnscopables('keys');
1591addToUnscopables('values');
1592addToUnscopables('entries');
1593
1594
1595/***/ }),
1596
1597/***/ "cb7c":
1598/***/ (function(module, exports, __webpack_require__) {
1599
1600var isObject = __webpack_require__("d3f4");
1601module.exports = function (it) {
1602 if (!isObject(it)) throw TypeError(it + ' is not an object!');
1603 return it;
1604};
1605
1606
1607/***/ }),
1608
1609/***/ "ce10":
1610/***/ (function(module, exports, __webpack_require__) {
1611
1612var has = __webpack_require__("69a8");
1613var toIObject = __webpack_require__("6821");
1614var arrayIndexOf = __webpack_require__("c366")(false);
1615var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
1616
1617module.exports = function (object, names) {
1618 var O = toIObject(object);
1619 var i = 0;
1620 var result = [];
1621 var key;
1622 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
1623 // Don't enum bug & hidden keys
1624 while (names.length > i) if (has(O, key = names[i++])) {
1625 ~arrayIndexOf(result, key) || result.push(key);
1626 }
1627 return result;
1628};
1629
1630
1631/***/ }),
1632
1633/***/ "d2c8":
1634/***/ (function(module, exports, __webpack_require__) {
1635
1636// helper for String#{startsWith, endsWith, includes}
1637var isRegExp = __webpack_require__("aae3");
1638var defined = __webpack_require__("be13");
1639
1640module.exports = function (that, searchString, NAME) {
1641 if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
1642 return String(defined(that));
1643};
1644
1645
1646/***/ }),
1647
1648/***/ "d3f4":
1649/***/ (function(module, exports) {
1650
1651module.exports = function (it) {
1652 return typeof it === 'object' ? it !== null : typeof it === 'function';
1653};
1654
1655
1656/***/ }),
1657
1658/***/ "d53b":
1659/***/ (function(module, exports) {
1660
1661module.exports = function (done, value) {
1662 return { value: value, done: !!done };
1663};
1664
1665
1666/***/ }),
1667
1668/***/ "d8e8":
1669/***/ (function(module, exports) {
1670
1671module.exports = function (it) {
1672 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1673 return it;
1674};
1675
1676
1677/***/ }),
1678
1679/***/ "e11e":
1680/***/ (function(module, exports) {
1681
1682// IE 8- don't enum bug keys
1683module.exports = (
1684 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
1685).split(',');
1686
1687
1688/***/ }),
1689
1690/***/ "f559":
1691/***/ (function(module, exports, __webpack_require__) {
1692
1693"use strict";
1694// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
1695
1696var $export = __webpack_require__("5ca1");
1697var toLength = __webpack_require__("9def");
1698var context = __webpack_require__("d2c8");
1699var STARTS_WITH = 'startsWith';
1700var $startsWith = ''[STARTS_WITH];
1701
1702$export($export.P + $export.F * __webpack_require__("5147")(STARTS_WITH), 'String', {
1703 startsWith: function startsWith(searchString /* , position = 0 */) {
1704 var that = context(this, searchString, STARTS_WITH);
1705 var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
1706 var search = String(searchString);
1707 return $startsWith
1708 ? $startsWith.call(that, search, index)
1709 : that.slice(index, index + search.length) === search;
1710 }
1711});
1712
1713
1714/***/ }),
1715
1716/***/ "f6fd":
1717/***/ (function(module, exports) {
1718
1719// document.currentScript polyfill by Adam Miller
1720
1721// MIT license
1722
1723(function(document){
1724 var currentScript = "currentScript",
1725 scripts = document.getElementsByTagName('script'); // Live NodeList collection
1726
1727 // If browser needs currentScript polyfill, add get currentScript() to the document object
1728 if (!(currentScript in document)) {
1729 Object.defineProperty(document, currentScript, {
1730 get: function(){
1731
1732 // IE 6-10 supports script readyState
1733 // IE 10+ support stack trace
1734 try { throw new Error(); }
1735 catch (err) {
1736
1737 // Find the second match for the "at" string to get file src url from stack.
1738 // Specifically works with the format of stack traces in IE.
1739 var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
1740
1741 // For all scripts on the page, if src matches or if ready state is interactive, return the script tag
1742 for(i in scripts){
1743 if(scripts[i].src == res || scripts[i].readyState == "interactive"){
1744 return scripts[i];
1745 }
1746 }
1747
1748 // If no match, return null
1749 return null;
1750 }
1751 }
1752 });
1753 }
1754})(document);
1755
1756
1757/***/ }),
1758
1759/***/ "f751":
1760/***/ (function(module, exports, __webpack_require__) {
1761
1762// 19.1.3.1 Object.assign(target, source)
1763var $export = __webpack_require__("5ca1");
1764
1765$export($export.S + $export.F, 'Object', { assign: __webpack_require__("7333") });
1766
1767
1768/***/ }),
1769
1770/***/ "fa5b":
1771/***/ (function(module, exports, __webpack_require__) {
1772
1773module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
1774
1775
1776/***/ }),
1777
1778/***/ "fab2":
1779/***/ (function(module, exports, __webpack_require__) {
1780
1781var document = __webpack_require__("7726").document;
1782module.exports = document && document.documentElement;
1783
1784
1785/***/ }),
1786
1787/***/ "fb15":
1788/***/ (function(module, __webpack_exports__, __webpack_require__) {
1789
1790"use strict";
1791// ESM COMPAT FLAG
1792__webpack_require__.r(__webpack_exports__);
1793
1794// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
1795// This file is imported into lib/wc client bundles.
1796
1797if (typeof window !== 'undefined') {
1798 if (true) {
1799 __webpack_require__("f6fd")
1800 }
1801
1802 var setPublicPath_i
1803 if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
1804 __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line
1805 }
1806}
1807
1808// Indicate to webpack that this file can be concatenated
1809/* harmony default export */ var setPublicPath = (null);
1810
1811// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.assign.js
1812var es6_object_assign = __webpack_require__("f751");
1813
1814// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.starts-with.js
1815var es6_string_starts_with = __webpack_require__("f559");
1816
1817// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
1818var web_dom_iterable = __webpack_require__("ac6a");
1819
1820// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
1821var es6_array_iterator = __webpack_require__("cadf");
1822
1823// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
1824var es6_object_keys = __webpack_require__("456d");
1825
1826// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
1827function _arrayWithHoles(arr) {
1828 if (Array.isArray(arr)) return arr;
1829}
1830// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1831function _iterableToArrayLimit(arr, i) {
1832 if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
1833 var _arr = [];
1834 var _n = true;
1835 var _d = false;
1836 var _e = undefined;
1837
1838 try {
1839 for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
1840 _arr.push(_s.value);
1841
1842 if (i && _arr.length === i) break;
1843 }
1844 } catch (err) {
1845 _d = true;
1846 _e = err;
1847 } finally {
1848 try {
1849 if (!_n && _i["return"] != null) _i["return"]();
1850 } finally {
1851 if (_d) throw _e;
1852 }
1853 }
1854
1855 return _arr;
1856}
1857// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1858function _arrayLikeToArray(arr, len) {
1859 if (len == null || len > arr.length) len = arr.length;
1860
1861 for (var i = 0, arr2 = new Array(len); i < len; i++) {
1862 arr2[i] = arr[i];
1863 }
1864
1865 return arr2;
1866}
1867// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1868
1869function _unsupportedIterableToArray(o, minLen) {
1870 if (!o) return;
1871 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1872 var n = Object.prototype.toString.call(o).slice(8, -1);
1873 if (n === "Object" && o.constructor) n = o.constructor.name;
1874 if (n === "Map" || n === "Set") return Array.from(o);
1875 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1876}
1877// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
1878function _nonIterableRest() {
1879 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1880}
1881// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
1882
1883
1884
1885
1886function _slicedToArray(arr, i) {
1887 return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1888}
1889// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js
1890var es7_array_includes = __webpack_require__("6762");
1891
1892// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js
1893var es6_string_includes = __webpack_require__("2fdb");
1894
1895// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1896
1897function _arrayWithoutHoles(arr) {
1898 if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1899}
1900// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1901function _iterableToArray(iter) {
1902 if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
1903}
1904// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1905function _nonIterableSpread() {
1906 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1907}
1908// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1909
1910
1911
1912
1913function _toConsumableArray(arr) {
1914 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1915}
1916// EXTERNAL MODULE: external {"commonjs":"sortablejs","commonjs2":"sortablejs","amd":"sortablejs","root":"Sortable"}
1917var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_ = __webpack_require__("a352");
1918var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_);
1919
1920// EXTERNAL MODULE: ./src/util/helper.js
1921var helper = __webpack_require__("c649");
1922
1923// CONCATENATED MODULE: ./src/vuedraggable.js
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936function buildAttribute(object, propName, value) {
1937 if (value === undefined) {
1938 return object;
1939 }
1940
1941 object = object || {};
1942 object[propName] = value;
1943 return object;
1944}
1945
1946function computeVmIndex(vnodes, element) {
1947 return vnodes.map(function (elt) {
1948 return elt.elm;
1949 }).indexOf(element);
1950}
1951
1952function _computeIndexes(slots, children, isTransition, footerOffset) {
1953 if (!slots) {
1954 return [];
1955 }
1956
1957 var elmFromNodes = slots.map(function (elt) {
1958 return elt.elm;
1959 });
1960 var footerIndex = children.length - footerOffset;
1961
1962 var rawIndexes = _toConsumableArray(children).map(function (elt, idx) {
1963 return idx >= footerIndex ? elmFromNodes.length : elmFromNodes.indexOf(elt);
1964 });
1965
1966 return isTransition ? rawIndexes.filter(function (ind) {
1967 return ind !== -1;
1968 }) : rawIndexes;
1969}
1970
1971function emit(evtName, evtData) {
1972 var _this = this;
1973
1974 this.$nextTick(function () {
1975 return _this.$emit(evtName.toLowerCase(), evtData);
1976 });
1977}
1978
1979function delegateAndEmit(evtName) {
1980 var _this2 = this;
1981
1982 return function (evtData) {
1983 if (_this2.realList !== null) {
1984 _this2["onDrag" + evtName](evtData);
1985 }
1986
1987 emit.call(_this2, evtName, evtData);
1988 };
1989}
1990
1991function isTransitionName(name) {
1992 return ["transition-group", "TransitionGroup"].includes(name);
1993}
1994
1995function vuedraggable_isTransition(slots) {
1996 if (!slots || slots.length !== 1) {
1997 return false;
1998 }
1999
2000 var _slots = _slicedToArray(slots, 1),
2001 componentOptions = _slots[0].componentOptions;
2002
2003 if (!componentOptions) {
2004 return false;
2005 }
2006
2007 return isTransitionName(componentOptions.tag);
2008}
2009
2010function getSlot(slot, scopedSlot, key) {
2011 return slot[key] || (scopedSlot[key] ? scopedSlot[key]() : undefined);
2012}
2013
2014function computeChildrenAndOffsets(children, slot, scopedSlot) {
2015 var headerOffset = 0;
2016 var footerOffset = 0;
2017 var header = getSlot(slot, scopedSlot, "header");
2018
2019 if (header) {
2020 headerOffset = header.length;
2021 children = children ? [].concat(_toConsumableArray(header), _toConsumableArray(children)) : _toConsumableArray(header);
2022 }
2023
2024 var footer = getSlot(slot, scopedSlot, "footer");
2025
2026 if (footer) {
2027 footerOffset = footer.length;
2028 children = children ? [].concat(_toConsumableArray(children), _toConsumableArray(footer)) : _toConsumableArray(footer);
2029 }
2030
2031 return {
2032 children: children,
2033 headerOffset: headerOffset,
2034 footerOffset: footerOffset
2035 };
2036}
2037
2038function getComponentAttributes($attrs, componentData) {
2039 var attributes = null;
2040
2041 var update = function update(name, value) {
2042 attributes = buildAttribute(attributes, name, value);
2043 };
2044
2045 var attrs = Object.keys($attrs).filter(function (key) {
2046 return key === "id" || key.startsWith("data-");
2047 }).reduce(function (res, key) {
2048 res[key] = $attrs[key];
2049 return res;
2050 }, {});
2051 update("attrs", attrs);
2052
2053 if (!componentData) {
2054 return attributes;
2055 }
2056
2057 var on = componentData.on,
2058 props = componentData.props,
2059 componentDataAttrs = componentData.attrs;
2060 update("on", on);
2061 update("props", props);
2062 Object.assign(attributes.attrs, componentDataAttrs);
2063 return attributes;
2064}
2065
2066var eventsListened = ["Start", "Add", "Remove", "Update", "End"];
2067var eventsToEmit = ["Choose", "Unchoose", "Sort", "Filter", "Clone"];
2068var readonlyProperties = ["Move"].concat(eventsListened, eventsToEmit).map(function (evt) {
2069 return "on" + evt;
2070});
2071var draggingElement = null;
2072var props = {
2073 options: Object,
2074 list: {
2075 type: Array,
2076 required: false,
2077 default: null
2078 },
2079 value: {
2080 type: Array,
2081 required: false,
2082 default: null
2083 },
2084 noTransitionOnDrag: {
2085 type: Boolean,
2086 default: false
2087 },
2088 clone: {
2089 type: Function,
2090 default: function _default(original) {
2091 return original;
2092 }
2093 },
2094 element: {
2095 type: String,
2096 default: "div"
2097 },
2098 tag: {
2099 type: String,
2100 default: null
2101 },
2102 move: {
2103 type: Function,
2104 default: null
2105 },
2106 componentData: {
2107 type: Object,
2108 required: false,
2109 default: null
2110 }
2111};
2112var draggableComponent = {
2113 name: "draggable",
2114 inheritAttrs: false,
2115 props: props,
2116 data: function data() {
2117 return {
2118 transitionMode: false,
2119 noneFunctionalComponentMode: false
2120 };
2121 },
2122 render: function render(h) {
2123 var slots = this.$slots.default;
2124 this.transitionMode = vuedraggable_isTransition(slots);
2125
2126 var _computeChildrenAndOf = computeChildrenAndOffsets(slots, this.$slots, this.$scopedSlots),
2127 children = _computeChildrenAndOf.children,
2128 headerOffset = _computeChildrenAndOf.headerOffset,
2129 footerOffset = _computeChildrenAndOf.footerOffset;
2130
2131 this.headerOffset = headerOffset;
2132 this.footerOffset = footerOffset;
2133 var attributes = getComponentAttributes(this.$attrs, this.componentData);
2134 return h(this.getTag(), attributes, children);
2135 },
2136 created: function created() {
2137 if (this.list !== null && this.value !== null) {
2138 helper["b" /* console */].error("Value and list props are mutually exclusive! Please set one or another.");
2139 }
2140
2141 if (this.element !== "div") {
2142 helper["b" /* console */].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props");
2143 }
2144
2145 if (this.options !== undefined) {
2146 helper["b" /* console */].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props");
2147 }
2148 },
2149 mounted: function mounted() {
2150 var _this3 = this;
2151
2152 this.noneFunctionalComponentMode = this.getTag().toLowerCase() !== this.$el.nodeName.toLowerCase() && !this.getIsFunctional();
2153
2154 if (this.noneFunctionalComponentMode && this.transitionMode) {
2155 throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));
2156 }
2157
2158 var optionsAdded = {};
2159 eventsListened.forEach(function (elt) {
2160 optionsAdded["on" + elt] = delegateAndEmit.call(_this3, elt);
2161 });
2162 eventsToEmit.forEach(function (elt) {
2163 optionsAdded["on" + elt] = emit.bind(_this3, elt);
2164 });
2165 var attributes = Object.keys(this.$attrs).reduce(function (res, key) {
2166 res[Object(helper["a" /* camelize */])(key)] = _this3.$attrs[key];
2167 return res;
2168 }, {});
2169 var options = Object.assign({}, this.options, attributes, optionsAdded, {
2170 onMove: function onMove(evt, originalEvent) {
2171 return _this3.onDragMove(evt, originalEvent);
2172 }
2173 });
2174 !("draggable" in options) && (options.draggable = ">*");
2175 this._sortable = new external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default.a(this.rootContainer, options);
2176 this.computeIndexes();
2177 },
2178 beforeDestroy: function beforeDestroy() {
2179 if (this._sortable !== undefined) this._sortable.destroy();
2180 },
2181 computed: {
2182 rootContainer: function rootContainer() {
2183 return this.transitionMode ? this.$el.children[0] : this.$el;
2184 },
2185 realList: function realList() {
2186 return this.list ? this.list : this.value;
2187 }
2188 },
2189 watch: {
2190 options: {
2191 handler: function handler(newOptionValue) {
2192 this.updateOptions(newOptionValue);
2193 },
2194 deep: true
2195 },
2196 $attrs: {
2197 handler: function handler(newOptionValue) {
2198 this.updateOptions(newOptionValue);
2199 },
2200 deep: true
2201 },
2202 realList: function realList() {
2203 this.computeIndexes();
2204 }
2205 },
2206 methods: {
2207 getIsFunctional: function getIsFunctional() {
2208 var fnOptions = this._vnode.fnOptions;
2209 return fnOptions && fnOptions.functional;
2210 },
2211 getTag: function getTag() {
2212 return this.tag || this.element;
2213 },
2214 updateOptions: function updateOptions(newOptionValue) {
2215 for (var property in newOptionValue) {
2216 var value = Object(helper["a" /* camelize */])(property);
2217
2218 if (readonlyProperties.indexOf(value) === -1) {
2219 this._sortable.option(value, newOptionValue[property]);
2220 }
2221 }
2222 },
2223 getChildrenNodes: function getChildrenNodes() {
2224 if (this.noneFunctionalComponentMode) {
2225 return this.$children[0].$slots.default;
2226 }
2227
2228 var rawNodes = this.$slots.default;
2229 return this.transitionMode ? rawNodes[0].child.$slots.default : rawNodes;
2230 },
2231 computeIndexes: function computeIndexes() {
2232 var _this4 = this;
2233
2234 this.$nextTick(function () {
2235 _this4.visibleIndexes = _computeIndexes(_this4.getChildrenNodes(), _this4.rootContainer.children, _this4.transitionMode, _this4.footerOffset);
2236 });
2237 },
2238 getUnderlyingVm: function getUnderlyingVm(htmlElt) {
2239 var index = computeVmIndex(this.getChildrenNodes() || [], htmlElt);
2240
2241 if (index === -1) {
2242 //Edge case during move callback: related element might be
2243 //an element different from collection
2244 return null;
2245 }
2246
2247 var element = this.realList[index];
2248 return {
2249 index: index,
2250 element: element
2251 };
2252 },
2253 getUnderlyingPotencialDraggableComponent: function getUnderlyingPotencialDraggableComponent(_ref) {
2254 var vue = _ref.__vue__;
2255
2256 if (!vue || !vue.$options || !isTransitionName(vue.$options._componentTag)) {
2257 if (!("realList" in vue) && vue.$children.length === 1 && "realList" in vue.$children[0]) return vue.$children[0];
2258 return vue;
2259 }
2260
2261 return vue.$parent;
2262 },
2263 emitChanges: function emitChanges(evt) {
2264 var _this5 = this;
2265
2266 this.$nextTick(function () {
2267 _this5.$emit("change", evt);
2268 });
2269 },
2270 alterList: function alterList(onList) {
2271 if (this.list) {
2272 onList(this.list);
2273 return;
2274 }
2275
2276 var newList = _toConsumableArray(this.value);
2277
2278 onList(newList);
2279 this.$emit("input", newList);
2280 },
2281 spliceList: function spliceList() {
2282 var _arguments = arguments;
2283
2284 var spliceList = function spliceList(list) {
2285 return list.splice.apply(list, _toConsumableArray(_arguments));
2286 };
2287
2288 this.alterList(spliceList);
2289 },
2290 updatePosition: function updatePosition(oldIndex, newIndex) {
2291 var updatePosition = function updatePosition(list) {
2292 return list.splice(newIndex, 0, list.splice(oldIndex, 1)[0]);
2293 };
2294
2295 this.alterList(updatePosition);
2296 },
2297 getRelatedContextFromMoveEvent: function getRelatedContextFromMoveEvent(_ref2) {
2298 var to = _ref2.to,
2299 related = _ref2.related;
2300 var component = this.getUnderlyingPotencialDraggableComponent(to);
2301
2302 if (!component) {
2303 return {
2304 component: component
2305 };
2306 }
2307
2308 var list = component.realList;
2309 var context = {
2310 list: list,
2311 component: component
2312 };
2313
2314 if (to !== related && list && component.getUnderlyingVm) {
2315 var destination = component.getUnderlyingVm(related);
2316
2317 if (destination) {
2318 return Object.assign(destination, context);
2319 }
2320 }
2321
2322 return context;
2323 },
2324 getVmIndex: function getVmIndex(domIndex) {
2325 var indexes = this.visibleIndexes;
2326 var numberIndexes = indexes.length;
2327 return domIndex > numberIndexes - 1 ? numberIndexes : indexes[domIndex];
2328 },
2329 getComponent: function getComponent() {
2330 return this.$slots.default[0].componentInstance;
2331 },
2332 resetTransitionData: function resetTransitionData(index) {
2333 if (!this.noTransitionOnDrag || !this.transitionMode) {
2334 return;
2335 }
2336
2337 var nodes = this.getChildrenNodes();
2338 nodes[index].data = null;
2339 var transitionContainer = this.getComponent();
2340 transitionContainer.children = [];
2341 transitionContainer.kept = undefined;
2342 },
2343 onDragStart: function onDragStart(evt) {
2344 this.context = this.getUnderlyingVm(evt.item);
2345 evt.item._underlying_vm_ = this.clone(this.context.element);
2346 draggingElement = evt.item;
2347 },
2348 onDragAdd: function onDragAdd(evt) {
2349 var element = evt.item._underlying_vm_;
2350
2351 if (element === undefined) {
2352 return;
2353 }
2354
2355 Object(helper["d" /* removeNode */])(evt.item);
2356 var newIndex = this.getVmIndex(evt.newIndex);
2357 this.spliceList(newIndex, 0, element);
2358 this.computeIndexes();
2359 var added = {
2360 element: element,
2361 newIndex: newIndex
2362 };
2363 this.emitChanges({
2364 added: added
2365 });
2366 },
2367 onDragRemove: function onDragRemove(evt) {
2368 Object(helper["c" /* insertNodeAt */])(this.rootContainer, evt.item, evt.oldIndex);
2369
2370 if (evt.pullMode === "clone") {
2371 Object(helper["d" /* removeNode */])(evt.clone);
2372 return;
2373 }
2374
2375 var oldIndex = this.context.index;
2376 this.spliceList(oldIndex, 1);
2377 var removed = {
2378 element: this.context.element,
2379 oldIndex: oldIndex
2380 };
2381 this.resetTransitionData(oldIndex);
2382 this.emitChanges({
2383 removed: removed
2384 });
2385 },
2386 onDragUpdate: function onDragUpdate(evt) {
2387 Object(helper["d" /* removeNode */])(evt.item);
2388 Object(helper["c" /* insertNodeAt */])(evt.from, evt.item, evt.oldIndex);
2389 var oldIndex = this.context.index;
2390 var newIndex = this.getVmIndex(evt.newIndex);
2391 this.updatePosition(oldIndex, newIndex);
2392 var moved = {
2393 element: this.context.element,
2394 oldIndex: oldIndex,
2395 newIndex: newIndex
2396 };
2397 this.emitChanges({
2398 moved: moved
2399 });
2400 },
2401 updateProperty: function updateProperty(evt, propertyName) {
2402 evt.hasOwnProperty(propertyName) && (evt[propertyName] += this.headerOffset);
2403 },
2404 computeFutureIndex: function computeFutureIndex(relatedContext, evt) {
2405 if (!relatedContext.element) {
2406 return 0;
2407 }
2408
2409 var domChildren = _toConsumableArray(evt.to.children).filter(function (el) {
2410 return el.style["display"] !== "none";
2411 });
2412
2413 var currentDOMIndex = domChildren.indexOf(evt.related);
2414 var currentIndex = relatedContext.component.getVmIndex(currentDOMIndex);
2415 var draggedInList = domChildren.indexOf(draggingElement) !== -1;
2416 return draggedInList || !evt.willInsertAfter ? currentIndex : currentIndex + 1;
2417 },
2418 onDragMove: function onDragMove(evt, originalEvent) {
2419 var onMove = this.move;
2420
2421 if (!onMove || !this.realList) {
2422 return true;
2423 }
2424
2425 var relatedContext = this.getRelatedContextFromMoveEvent(evt);
2426 var draggedContext = this.context;
2427 var futureIndex = this.computeFutureIndex(relatedContext, evt);
2428 Object.assign(draggedContext, {
2429 futureIndex: futureIndex
2430 });
2431 var sendEvt = Object.assign({}, evt, {
2432 relatedContext: relatedContext,
2433 draggedContext: draggedContext
2434 });
2435 return onMove(sendEvt, originalEvent);
2436 },
2437 onDragEnd: function onDragEnd() {
2438 this.computeIndexes();
2439 draggingElement = null;
2440 }
2441 }
2442};
2443
2444if (typeof window !== "undefined" && "Vue" in window) {
2445 window.Vue.component("draggable", draggableComponent);
2446}
2447
2448/* harmony default export */ var vuedraggable = (draggableComponent);
2449// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
2450
2451
2452/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (vuedraggable);
2453
2454
2455
2456/***/ })
2457
2458/******/ })["default"];
2459});
2460//# sourceMappingURL=vuedraggable.umd.js.map
\No newline at end of file