vuedraggable.umd.js 70 KB

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