bootstrap-table-vue.esm.js 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809
  1. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  2. function createCommonjsModule(fn, module) {
  3. return module = { exports: {} }, fn(module, module.exports), module.exports;
  4. }
  5. var O = 'object';
  6. var check = function (it) {
  7. return it && it.Math == Math && it;
  8. };
  9. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  10. var global_1 =
  11. // eslint-disable-next-line no-undef
  12. check(typeof globalThis == O && globalThis) ||
  13. check(typeof window == O && window) ||
  14. check(typeof self == O && self) ||
  15. check(typeof commonjsGlobal == O && commonjsGlobal) ||
  16. // eslint-disable-next-line no-new-func
  17. Function('return this')();
  18. var fails = function (exec) {
  19. try {
  20. return !!exec();
  21. } catch (error) {
  22. return true;
  23. }
  24. };
  25. // Thank's IE8 for his funny defineProperty
  26. var descriptors = !fails(function () {
  27. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  28. });
  29. var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
  30. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  31. // Nashorn ~ JDK8 bug
  32. var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
  33. // `Object.prototype.propertyIsEnumerable` method implementation
  34. // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
  35. var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  36. var descriptor = getOwnPropertyDescriptor(this, V);
  37. return !!descriptor && descriptor.enumerable;
  38. } : nativePropertyIsEnumerable;
  39. var objectPropertyIsEnumerable = {
  40. f: f
  41. };
  42. var createPropertyDescriptor = function (bitmap, value) {
  43. return {
  44. enumerable: !(bitmap & 1),
  45. configurable: !(bitmap & 2),
  46. writable: !(bitmap & 4),
  47. value: value
  48. };
  49. };
  50. var toString = {}.toString;
  51. var classofRaw = function (it) {
  52. return toString.call(it).slice(8, -1);
  53. };
  54. var split = ''.split;
  55. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  56. var indexedObject = fails(function () {
  57. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  58. // eslint-disable-next-line no-prototype-builtins
  59. return !Object('z').propertyIsEnumerable(0);
  60. }) ? function (it) {
  61. return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
  62. } : Object;
  63. // `RequireObjectCoercible` abstract operation
  64. // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
  65. var requireObjectCoercible = function (it) {
  66. if (it == undefined) throw TypeError("Can't call method on " + it);
  67. return it;
  68. };
  69. // toObject with fallback for non-array-like ES3 strings
  70. var toIndexedObject = function (it) {
  71. return indexedObject(requireObjectCoercible(it));
  72. };
  73. var isObject = function (it) {
  74. return typeof it === 'object' ? it !== null : typeof it === 'function';
  75. };
  76. // `ToPrimitive` abstract operation
  77. // https://tc39.github.io/ecma262/#sec-toprimitive
  78. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  79. // and the second argument - flag - preferred type is a string
  80. var toPrimitive = function (input, PREFERRED_STRING) {
  81. if (!isObject(input)) return input;
  82. var fn, val;
  83. if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  84. if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
  85. if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  86. throw TypeError("Can't convert object to primitive value");
  87. };
  88. var hasOwnProperty = {}.hasOwnProperty;
  89. var has = function (it, key) {
  90. return hasOwnProperty.call(it, key);
  91. };
  92. var document = global_1.document;
  93. // typeof document.createElement is 'object' in old IE
  94. var EXISTS = isObject(document) && isObject(document.createElement);
  95. var documentCreateElement = function (it) {
  96. return EXISTS ? document.createElement(it) : {};
  97. };
  98. // Thank's IE8 for his funny defineProperty
  99. var ie8DomDefine = !descriptors && !fails(function () {
  100. return Object.defineProperty(documentCreateElement('div'), 'a', {
  101. get: function () { return 7; }
  102. }).a != 7;
  103. });
  104. var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  105. // `Object.getOwnPropertyDescriptor` method
  106. // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
  107. var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  108. O = toIndexedObject(O);
  109. P = toPrimitive(P, true);
  110. if (ie8DomDefine) try {
  111. return nativeGetOwnPropertyDescriptor(O, P);
  112. } catch (error) { /* empty */ }
  113. if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
  114. };
  115. var objectGetOwnPropertyDescriptor = {
  116. f: f$1
  117. };
  118. var anObject = function (it) {
  119. if (!isObject(it)) {
  120. throw TypeError(String(it) + ' is not an object');
  121. } return it;
  122. };
  123. var nativeDefineProperty = Object.defineProperty;
  124. // `Object.defineProperty` method
  125. // https://tc39.github.io/ecma262/#sec-object.defineproperty
  126. var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
  127. anObject(O);
  128. P = toPrimitive(P, true);
  129. anObject(Attributes);
  130. if (ie8DomDefine) try {
  131. return nativeDefineProperty(O, P, Attributes);
  132. } catch (error) { /* empty */ }
  133. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
  134. if ('value' in Attributes) O[P] = Attributes.value;
  135. return O;
  136. };
  137. var objectDefineProperty = {
  138. f: f$2
  139. };
  140. var hide = descriptors ? function (object, key, value) {
  141. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  142. } : function (object, key, value) {
  143. object[key] = value;
  144. return object;
  145. };
  146. var setGlobal = function (key, value) {
  147. try {
  148. hide(global_1, key, value);
  149. } catch (error) {
  150. global_1[key] = value;
  151. } return value;
  152. };
  153. var shared = createCommonjsModule(function (module) {
  154. var SHARED = '__core-js_shared__';
  155. var store = global_1[SHARED] || setGlobal(SHARED, {});
  156. (module.exports = function (key, value) {
  157. return store[key] || (store[key] = value !== undefined ? value : {});
  158. })('versions', []).push({
  159. version: '3.1.3',
  160. mode: 'global',
  161. copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
  162. });
  163. });
  164. var functionToString = shared('native-function-to-string', Function.toString);
  165. var WeakMap = global_1.WeakMap;
  166. var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
  167. var id = 0;
  168. var postfix = Math.random();
  169. var uid = function (key) {
  170. return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
  171. };
  172. var keys = shared('keys');
  173. var sharedKey = function (key) {
  174. return keys[key] || (keys[key] = uid(key));
  175. };
  176. var hiddenKeys = {};
  177. var WeakMap$1 = global_1.WeakMap;
  178. var set, get, has$1;
  179. var enforce = function (it) {
  180. return has$1(it) ? get(it) : set(it, {});
  181. };
  182. var getterFor = function (TYPE) {
  183. return function (it) {
  184. var state;
  185. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  186. throw TypeError('Incompatible receiver, ' + TYPE + ' required');
  187. } return state;
  188. };
  189. };
  190. if (nativeWeakMap) {
  191. var store = new WeakMap$1();
  192. var wmget = store.get;
  193. var wmhas = store.has;
  194. var wmset = store.set;
  195. set = function (it, metadata) {
  196. wmset.call(store, it, metadata);
  197. return metadata;
  198. };
  199. get = function (it) {
  200. return wmget.call(store, it) || {};
  201. };
  202. has$1 = function (it) {
  203. return wmhas.call(store, it);
  204. };
  205. } else {
  206. var STATE = sharedKey('state');
  207. hiddenKeys[STATE] = true;
  208. set = function (it, metadata) {
  209. hide(it, STATE, metadata);
  210. return metadata;
  211. };
  212. get = function (it) {
  213. return has(it, STATE) ? it[STATE] : {};
  214. };
  215. has$1 = function (it) {
  216. return has(it, STATE);
  217. };
  218. }
  219. var internalState = {
  220. set: set,
  221. get: get,
  222. has: has$1,
  223. enforce: enforce,
  224. getterFor: getterFor
  225. };
  226. var redefine = createCommonjsModule(function (module) {
  227. var getInternalState = internalState.get;
  228. var enforceInternalState = internalState.enforce;
  229. var TEMPLATE = String(functionToString).split('toString');
  230. shared('inspectSource', function (it) {
  231. return functionToString.call(it);
  232. });
  233. (module.exports = function (O, key, value, options) {
  234. var unsafe = options ? !!options.unsafe : false;
  235. var simple = options ? !!options.enumerable : false;
  236. var noTargetGet = options ? !!options.noTargetGet : false;
  237. if (typeof value == 'function') {
  238. if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
  239. enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
  240. }
  241. if (O === global_1) {
  242. if (simple) O[key] = value;
  243. else setGlobal(key, value);
  244. return;
  245. } else if (!unsafe) {
  246. delete O[key];
  247. } else if (!noTargetGet && O[key]) {
  248. simple = true;
  249. }
  250. if (simple) O[key] = value;
  251. else hide(O, key, value);
  252. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  253. })(Function.prototype, 'toString', function toString() {
  254. return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
  255. });
  256. });
  257. var path = global_1;
  258. var aFunction = function (variable) {
  259. return typeof variable == 'function' ? variable : undefined;
  260. };
  261. var getBuiltIn = function (namespace, method) {
  262. return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
  263. : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
  264. };
  265. var ceil = Math.ceil;
  266. var floor = Math.floor;
  267. // `ToInteger` abstract operation
  268. // https://tc39.github.io/ecma262/#sec-tointeger
  269. var toInteger = function (argument) {
  270. return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
  271. };
  272. var min = Math.min;
  273. // `ToLength` abstract operation
  274. // https://tc39.github.io/ecma262/#sec-tolength
  275. var toLength = function (argument) {
  276. return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  277. };
  278. var max = Math.max;
  279. var min$1 = Math.min;
  280. // Helper for a popular repeating case of the spec:
  281. // Let integer be ? ToInteger(index).
  282. // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
  283. var toAbsoluteIndex = function (index, length) {
  284. var integer = toInteger(index);
  285. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  286. };
  287. // `Array.prototype.{ indexOf, includes }` methods implementation
  288. var createMethod = function (IS_INCLUDES) {
  289. return function ($this, el, fromIndex) {
  290. var O = toIndexedObject($this);
  291. var length = toLength(O.length);
  292. var index = toAbsoluteIndex(fromIndex, length);
  293. var value;
  294. // Array#includes uses SameValueZero equality algorithm
  295. // eslint-disable-next-line no-self-compare
  296. if (IS_INCLUDES && el != el) while (length > index) {
  297. value = O[index++];
  298. // eslint-disable-next-line no-self-compare
  299. if (value != value) return true;
  300. // Array#indexOf ignores holes, Array#includes - not
  301. } else for (;length > index; index++) {
  302. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  303. } return !IS_INCLUDES && -1;
  304. };
  305. };
  306. var arrayIncludes = {
  307. // `Array.prototype.includes` method
  308. // https://tc39.github.io/ecma262/#sec-array.prototype.includes
  309. includes: createMethod(true),
  310. // `Array.prototype.indexOf` method
  311. // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
  312. indexOf: createMethod(false)
  313. };
  314. var indexOf = arrayIncludes.indexOf;
  315. var objectKeysInternal = function (object, names) {
  316. var O = toIndexedObject(object);
  317. var i = 0;
  318. var result = [];
  319. var key;
  320. for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
  321. // Don't enum bug & hidden keys
  322. while (names.length > i) if (has(O, key = names[i++])) {
  323. ~indexOf(result, key) || result.push(key);
  324. }
  325. return result;
  326. };
  327. // IE8- don't enum bug keys
  328. var enumBugKeys = [
  329. 'constructor',
  330. 'hasOwnProperty',
  331. 'isPrototypeOf',
  332. 'propertyIsEnumerable',
  333. 'toLocaleString',
  334. 'toString',
  335. 'valueOf'
  336. ];
  337. var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
  338. // `Object.getOwnPropertyNames` method
  339. // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
  340. var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  341. return objectKeysInternal(O, hiddenKeys$1);
  342. };
  343. var objectGetOwnPropertyNames = {
  344. f: f$3
  345. };
  346. var f$4 = Object.getOwnPropertySymbols;
  347. var objectGetOwnPropertySymbols = {
  348. f: f$4
  349. };
  350. // all object keys, includes non-enumerable and symbols
  351. var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  352. var keys = objectGetOwnPropertyNames.f(anObject(it));
  353. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  354. return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
  355. };
  356. var copyConstructorProperties = function (target, source) {
  357. var keys = ownKeys(source);
  358. var defineProperty = objectDefineProperty.f;
  359. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  360. for (var i = 0; i < keys.length; i++) {
  361. var key = keys[i];
  362. if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  363. }
  364. };
  365. var replacement = /#|\.prototype\./;
  366. var isForced = function (feature, detection) {
  367. var value = data[normalize(feature)];
  368. return value == POLYFILL ? true
  369. : value == NATIVE ? false
  370. : typeof detection == 'function' ? fails(detection)
  371. : !!detection;
  372. };
  373. var normalize = isForced.normalize = function (string) {
  374. return String(string).replace(replacement, '.').toLowerCase();
  375. };
  376. var data = isForced.data = {};
  377. var NATIVE = isForced.NATIVE = 'N';
  378. var POLYFILL = isForced.POLYFILL = 'P';
  379. var isForced_1 = isForced;
  380. var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
  381. /*
  382. options.target - name of the target object
  383. options.global - target is the global object
  384. options.stat - export as static methods of target
  385. options.proto - export as prototype methods of target
  386. options.real - real prototype method for the `pure` version
  387. options.forced - export even if the native feature is available
  388. options.bind - bind methods to the target, required for the `pure` version
  389. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  390. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  391. options.sham - add a flag to not completely full polyfills
  392. options.enumerable - export as enumerable property
  393. options.noTargetGet - prevent calling a getter on target
  394. */
  395. var _export = function (options, source) {
  396. var TARGET = options.target;
  397. var GLOBAL = options.global;
  398. var STATIC = options.stat;
  399. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  400. if (GLOBAL) {
  401. target = global_1;
  402. } else if (STATIC) {
  403. target = global_1[TARGET] || setGlobal(TARGET, {});
  404. } else {
  405. target = (global_1[TARGET] || {}).prototype;
  406. }
  407. if (target) for (key in source) {
  408. sourceProperty = source[key];
  409. if (options.noTargetGet) {
  410. descriptor = getOwnPropertyDescriptor$1(target, key);
  411. targetProperty = descriptor && descriptor.value;
  412. } else targetProperty = target[key];
  413. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  414. // contained in target
  415. if (!FORCED && targetProperty !== undefined) {
  416. if (typeof sourceProperty === typeof targetProperty) continue;
  417. copyConstructorProperties(sourceProperty, targetProperty);
  418. }
  419. // add a flag to not completely full polyfills
  420. if (options.sham || (targetProperty && targetProperty.sham)) {
  421. hide(sourceProperty, 'sham', true);
  422. }
  423. // extend global
  424. redefine(target, key, sourceProperty, options);
  425. }
  426. };
  427. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  428. // Chrome 38 Symbol has incorrect toString conversion
  429. // eslint-disable-next-line no-undef
  430. return !String(Symbol());
  431. });
  432. // `IsArray` abstract operation
  433. // https://tc39.github.io/ecma262/#sec-isarray
  434. var isArray = Array.isArray || function isArray(arg) {
  435. return classofRaw(arg) == 'Array';
  436. };
  437. // `ToObject` abstract operation
  438. // https://tc39.github.io/ecma262/#sec-toobject
  439. var toObject = function (argument) {
  440. return Object(requireObjectCoercible(argument));
  441. };
  442. // `Object.keys` method
  443. // https://tc39.github.io/ecma262/#sec-object.keys
  444. var objectKeys = Object.keys || function keys(O) {
  445. return objectKeysInternal(O, enumBugKeys);
  446. };
  447. // `Object.defineProperties` method
  448. // https://tc39.github.io/ecma262/#sec-object.defineproperties
  449. var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
  450. anObject(O);
  451. var keys = objectKeys(Properties);
  452. var length = keys.length;
  453. var index = 0;
  454. var key;
  455. while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
  456. return O;
  457. };
  458. var html = getBuiltIn('document', 'documentElement');
  459. var IE_PROTO = sharedKey('IE_PROTO');
  460. var PROTOTYPE = 'prototype';
  461. var Empty = function () { /* empty */ };
  462. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  463. var createDict = function () {
  464. // Thrash, waste and sodomy: IE GC bug
  465. var iframe = documentCreateElement('iframe');
  466. var length = enumBugKeys.length;
  467. var lt = '<';
  468. var script = 'script';
  469. var gt = '>';
  470. var js = 'java' + script + ':';
  471. var iframeDocument;
  472. iframe.style.display = 'none';
  473. html.appendChild(iframe);
  474. iframe.src = String(js);
  475. iframeDocument = iframe.contentWindow.document;
  476. iframeDocument.open();
  477. iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
  478. iframeDocument.close();
  479. createDict = iframeDocument.F;
  480. while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
  481. return createDict();
  482. };
  483. // `Object.create` method
  484. // https://tc39.github.io/ecma262/#sec-object.create
  485. var objectCreate = Object.create || function create(O, Properties) {
  486. var result;
  487. if (O !== null) {
  488. Empty[PROTOTYPE] = anObject(O);
  489. result = new Empty();
  490. Empty[PROTOTYPE] = null;
  491. // add "__proto__" for Object.getPrototypeOf polyfill
  492. result[IE_PROTO] = O;
  493. } else result = createDict();
  494. return Properties === undefined ? result : objectDefineProperties(result, Properties);
  495. };
  496. hiddenKeys[IE_PROTO] = true;
  497. var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
  498. var toString$1 = {}.toString;
  499. var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  500. ? Object.getOwnPropertyNames(window) : [];
  501. var getWindowNames = function (it) {
  502. try {
  503. return nativeGetOwnPropertyNames(it);
  504. } catch (error) {
  505. return windowNames.slice();
  506. }
  507. };
  508. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  509. var f$5 = function getOwnPropertyNames(it) {
  510. return windowNames && toString$1.call(it) == '[object Window]'
  511. ? getWindowNames(it)
  512. : nativeGetOwnPropertyNames(toIndexedObject(it));
  513. };
  514. var objectGetOwnPropertyNamesExternal = {
  515. f: f$5
  516. };
  517. var Symbol$1 = global_1.Symbol;
  518. var store$1 = shared('wks');
  519. var wellKnownSymbol = function (name) {
  520. return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
  521. || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
  522. };
  523. var f$6 = wellKnownSymbol;
  524. var wrappedWellKnownSymbol = {
  525. f: f$6
  526. };
  527. var defineProperty = objectDefineProperty.f;
  528. var defineWellKnownSymbol = function (NAME) {
  529. var Symbol = path.Symbol || (path.Symbol = {});
  530. if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
  531. value: wrappedWellKnownSymbol.f(NAME)
  532. });
  533. };
  534. var defineProperty$1 = objectDefineProperty.f;
  535. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  536. var setToStringTag = function (it, TAG, STATIC) {
  537. if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
  538. defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
  539. }
  540. };
  541. var aFunction$1 = function (it) {
  542. if (typeof it != 'function') {
  543. throw TypeError(String(it) + ' is not a function');
  544. } return it;
  545. };
  546. // optional / simple context binding
  547. var bindContext = function (fn, that, length) {
  548. aFunction$1(fn);
  549. if (that === undefined) return fn;
  550. switch (length) {
  551. case 0: return function () {
  552. return fn.call(that);
  553. };
  554. case 1: return function (a) {
  555. return fn.call(that, a);
  556. };
  557. case 2: return function (a, b) {
  558. return fn.call(that, a, b);
  559. };
  560. case 3: return function (a, b, c) {
  561. return fn.call(that, a, b, c);
  562. };
  563. }
  564. return function (/* ...args */) {
  565. return fn.apply(that, arguments);
  566. };
  567. };
  568. var SPECIES = wellKnownSymbol('species');
  569. // `ArraySpeciesCreate` abstract operation
  570. // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
  571. var arraySpeciesCreate = function (originalArray, length) {
  572. var C;
  573. if (isArray(originalArray)) {
  574. C = originalArray.constructor;
  575. // cross-realm fallback
  576. if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
  577. else if (isObject(C)) {
  578. C = C[SPECIES];
  579. if (C === null) C = undefined;
  580. }
  581. } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
  582. };
  583. var push = [].push;
  584. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
  585. var createMethod$1 = function (TYPE) {
  586. var IS_MAP = TYPE == 1;
  587. var IS_FILTER = TYPE == 2;
  588. var IS_SOME = TYPE == 3;
  589. var IS_EVERY = TYPE == 4;
  590. var IS_FIND_INDEX = TYPE == 6;
  591. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  592. return function ($this, callbackfn, that, specificCreate) {
  593. var O = toObject($this);
  594. var self = indexedObject(O);
  595. var boundFunction = bindContext(callbackfn, that, 3);
  596. var length = toLength(self.length);
  597. var index = 0;
  598. var create = specificCreate || arraySpeciesCreate;
  599. var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
  600. var value, result;
  601. for (;length > index; index++) if (NO_HOLES || index in self) {
  602. value = self[index];
  603. result = boundFunction(value, index, O);
  604. if (TYPE) {
  605. if (IS_MAP) target[index] = result; // map
  606. else if (result) switch (TYPE) {
  607. case 3: return true; // some
  608. case 5: return value; // find
  609. case 6: return index; // findIndex
  610. case 2: push.call(target, value); // filter
  611. } else if (IS_EVERY) return false; // every
  612. }
  613. }
  614. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  615. };
  616. };
  617. var arrayIteration = {
  618. // `Array.prototype.forEach` method
  619. // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
  620. forEach: createMethod$1(0),
  621. // `Array.prototype.map` method
  622. // https://tc39.github.io/ecma262/#sec-array.prototype.map
  623. map: createMethod$1(1),
  624. // `Array.prototype.filter` method
  625. // https://tc39.github.io/ecma262/#sec-array.prototype.filter
  626. filter: createMethod$1(2),
  627. // `Array.prototype.some` method
  628. // https://tc39.github.io/ecma262/#sec-array.prototype.some
  629. some: createMethod$1(3),
  630. // `Array.prototype.every` method
  631. // https://tc39.github.io/ecma262/#sec-array.prototype.every
  632. every: createMethod$1(4),
  633. // `Array.prototype.find` method
  634. // https://tc39.github.io/ecma262/#sec-array.prototype.find
  635. find: createMethod$1(5),
  636. // `Array.prototype.findIndex` method
  637. // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
  638. findIndex: createMethod$1(6)
  639. };
  640. var $forEach = arrayIteration.forEach;
  641. var HIDDEN = sharedKey('hidden');
  642. var SYMBOL = 'Symbol';
  643. var PROTOTYPE$1 = 'prototype';
  644. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  645. var setInternalState = internalState.set;
  646. var getInternalState = internalState.getterFor(SYMBOL);
  647. var ObjectPrototype = Object[PROTOTYPE$1];
  648. var $Symbol = global_1.Symbol;
  649. var JSON = global_1.JSON;
  650. var nativeJSONStringify = JSON && JSON.stringify;
  651. var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
  652. var nativeDefineProperty$1 = objectDefineProperty.f;
  653. var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
  654. var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
  655. var AllSymbols = shared('symbols');
  656. var ObjectPrototypeSymbols = shared('op-symbols');
  657. var StringToSymbolRegistry = shared('string-to-symbol-registry');
  658. var SymbolToStringRegistry = shared('symbol-to-string-registry');
  659. var WellKnownSymbolsStore = shared('wks');
  660. var QObject = global_1.QObject;
  661. // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
  662. var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
  663. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  664. var setSymbolDescriptor = descriptors && fails(function () {
  665. return objectCreate(nativeDefineProperty$1({}, 'a', {
  666. get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
  667. })).a != 7;
  668. }) ? function (O, P, Attributes) {
  669. var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
  670. if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
  671. nativeDefineProperty$1(O, P, Attributes);
  672. if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
  673. nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
  674. }
  675. } : nativeDefineProperty$1;
  676. var wrap = function (tag, description) {
  677. var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
  678. setInternalState(symbol, {
  679. type: SYMBOL,
  680. tag: tag,
  681. description: description
  682. });
  683. if (!descriptors) symbol.description = description;
  684. return symbol;
  685. };
  686. var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
  687. return typeof it == 'symbol';
  688. } : function (it) {
  689. return Object(it) instanceof $Symbol;
  690. };
  691. var $defineProperty = function defineProperty(O, P, Attributes) {
  692. if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
  693. anObject(O);
  694. var key = toPrimitive(P, true);
  695. anObject(Attributes);
  696. if (has(AllSymbols, key)) {
  697. if (!Attributes.enumerable) {
  698. if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
  699. O[HIDDEN][key] = true;
  700. } else {
  701. if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
  702. Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
  703. } return setSymbolDescriptor(O, key, Attributes);
  704. } return nativeDefineProperty$1(O, key, Attributes);
  705. };
  706. var $defineProperties = function defineProperties(O, Properties) {
  707. anObject(O);
  708. var properties = toIndexedObject(Properties);
  709. var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
  710. $forEach(keys, function (key) {
  711. if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
  712. });
  713. return O;
  714. };
  715. var $create = function create(O, Properties) {
  716. return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
  717. };
  718. var $propertyIsEnumerable = function propertyIsEnumerable(V) {
  719. var P = toPrimitive(V, true);
  720. var enumerable = nativePropertyIsEnumerable$1.call(this, P);
  721. if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
  722. return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
  723. };
  724. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
  725. var it = toIndexedObject(O);
  726. var key = toPrimitive(P, true);
  727. if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
  728. var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
  729. if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
  730. descriptor.enumerable = true;
  731. }
  732. return descriptor;
  733. };
  734. var $getOwnPropertyNames = function getOwnPropertyNames(O) {
  735. var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
  736. var result = [];
  737. $forEach(names, function (key) {
  738. if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
  739. });
  740. return result;
  741. };
  742. var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
  743. var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
  744. var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
  745. var result = [];
  746. $forEach(names, function (key) {
  747. if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
  748. result.push(AllSymbols[key]);
  749. }
  750. });
  751. return result;
  752. };
  753. // `Symbol` constructor
  754. // https://tc39.github.io/ecma262/#sec-symbol-constructor
  755. if (!nativeSymbol) {
  756. $Symbol = function Symbol() {
  757. if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
  758. var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
  759. var tag = uid(description);
  760. var setter = function (value) {
  761. if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
  762. if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
  763. setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
  764. };
  765. if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
  766. return wrap(tag, description);
  767. };
  768. redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
  769. return getInternalState(this).tag;
  770. });
  771. objectPropertyIsEnumerable.f = $propertyIsEnumerable;
  772. objectDefineProperty.f = $defineProperty;
  773. objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
  774. objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
  775. objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
  776. if (descriptors) {
  777. // https://github.com/tc39/proposal-Symbol-description
  778. nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
  779. configurable: true,
  780. get: function description() {
  781. return getInternalState(this).description;
  782. }
  783. });
  784. {
  785. redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
  786. }
  787. }
  788. wrappedWellKnownSymbol.f = function (name) {
  789. return wrap(wellKnownSymbol(name), name);
  790. };
  791. }
  792. _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
  793. Symbol: $Symbol
  794. });
  795. $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
  796. defineWellKnownSymbol(name);
  797. });
  798. _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
  799. // `Symbol.for` method
  800. // https://tc39.github.io/ecma262/#sec-symbol.for
  801. 'for': function (key) {
  802. var string = String(key);
  803. if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
  804. var symbol = $Symbol(string);
  805. StringToSymbolRegistry[string] = symbol;
  806. SymbolToStringRegistry[symbol] = string;
  807. return symbol;
  808. },
  809. // `Symbol.keyFor` method
  810. // https://tc39.github.io/ecma262/#sec-symbol.keyfor
  811. keyFor: function keyFor(sym) {
  812. if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
  813. if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
  814. },
  815. useSetter: function () { USE_SETTER = true; },
  816. useSimple: function () { USE_SETTER = false; }
  817. });
  818. _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
  819. // `Object.create` method
  820. // https://tc39.github.io/ecma262/#sec-object.create
  821. create: $create,
  822. // `Object.defineProperty` method
  823. // https://tc39.github.io/ecma262/#sec-object.defineproperty
  824. defineProperty: $defineProperty,
  825. // `Object.defineProperties` method
  826. // https://tc39.github.io/ecma262/#sec-object.defineproperties
  827. defineProperties: $defineProperties,
  828. // `Object.getOwnPropertyDescriptor` method
  829. // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
  830. getOwnPropertyDescriptor: $getOwnPropertyDescriptor
  831. });
  832. _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
  833. // `Object.getOwnPropertyNames` method
  834. // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
  835. getOwnPropertyNames: $getOwnPropertyNames,
  836. // `Object.getOwnPropertySymbols` method
  837. // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
  838. getOwnPropertySymbols: $getOwnPropertySymbols
  839. });
  840. // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
  841. // https://bugs.chromium.org/p/v8/issues/detail?id=3443
  842. _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
  843. getOwnPropertySymbols: function getOwnPropertySymbols(it) {
  844. return objectGetOwnPropertySymbols.f(toObject(it));
  845. }
  846. });
  847. // `JSON.stringify` method behavior with symbols
  848. // https://tc39.github.io/ecma262/#sec-json.stringify
  849. JSON && _export({ target: 'JSON', stat: true, forced: !nativeSymbol || fails(function () {
  850. var symbol = $Symbol();
  851. // MS Edge converts symbol values to JSON as {}
  852. return nativeJSONStringify([symbol]) != '[null]'
  853. // WebKit converts symbol values to JSON as null
  854. || nativeJSONStringify({ a: symbol }) != '{}'
  855. // V8 throws on boxed symbols
  856. || nativeJSONStringify(Object(symbol)) != '{}';
  857. }) }, {
  858. stringify: function stringify(it) {
  859. var args = [it];
  860. var index = 1;
  861. var replacer, $replacer;
  862. while (arguments.length > index) args.push(arguments[index++]);
  863. $replacer = replacer = args[1];
  864. if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
  865. if (!isArray(replacer)) replacer = function (key, value) {
  866. if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
  867. if (!isSymbol(value)) return value;
  868. };
  869. args[1] = replacer;
  870. return nativeJSONStringify.apply(JSON, args);
  871. }
  872. });
  873. // `Symbol.prototype[@@toPrimitive]` method
  874. // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
  875. if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
  876. // `Symbol.prototype[@@toStringTag]` property
  877. // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
  878. setToStringTag($Symbol, SYMBOL);
  879. hiddenKeys[HIDDEN] = true;
  880. var defineProperty$2 = objectDefineProperty.f;
  881. var NativeSymbol = global_1.Symbol;
  882. if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
  883. // Safari 12 bug
  884. NativeSymbol().description !== undefined
  885. )) {
  886. var EmptyStringDescriptionStore = {};
  887. // wrap Symbol constructor for correct work with undefined description
  888. var SymbolWrapper = function Symbol() {
  889. var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
  890. var result = this instanceof SymbolWrapper
  891. ? new NativeSymbol(description)
  892. // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
  893. : description === undefined ? NativeSymbol() : NativeSymbol(description);
  894. if (description === '') EmptyStringDescriptionStore[result] = true;
  895. return result;
  896. };
  897. copyConstructorProperties(SymbolWrapper, NativeSymbol);
  898. var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
  899. symbolPrototype.constructor = SymbolWrapper;
  900. var symbolToString = symbolPrototype.toString;
  901. var native = String(NativeSymbol('test')) == 'Symbol(test)';
  902. var regexp = /^Symbol\((.*)\)[^)]+$/;
  903. defineProperty$2(symbolPrototype, 'description', {
  904. configurable: true,
  905. get: function description() {
  906. var symbol = isObject(this) ? this.valueOf() : this;
  907. var string = symbolToString.call(symbol);
  908. if (has(EmptyStringDescriptionStore, symbol)) return '';
  909. var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
  910. return desc === '' ? undefined : desc;
  911. }
  912. });
  913. _export({ global: true, forced: true }, {
  914. Symbol: SymbolWrapper
  915. });
  916. }
  917. // `Symbol.iterator` well-known symbol
  918. // https://tc39.github.io/ecma262/#sec-symbol.iterator
  919. defineWellKnownSymbol('iterator');
  920. var createProperty = function (object, key, value) {
  921. var propertyKey = toPrimitive(key);
  922. if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
  923. else object[propertyKey] = value;
  924. };
  925. var SPECIES$1 = wellKnownSymbol('species');
  926. var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  927. return !fails(function () {
  928. var array = [];
  929. var constructor = array.constructor = {};
  930. constructor[SPECIES$1] = function () {
  931. return { foo: 1 };
  932. };
  933. return array[METHOD_NAME](Boolean).foo !== 1;
  934. });
  935. };
  936. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  937. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
  938. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  939. var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
  940. var array = [];
  941. array[IS_CONCAT_SPREADABLE] = false;
  942. return array.concat()[0] !== array;
  943. });
  944. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  945. var isConcatSpreadable = function (O) {
  946. if (!isObject(O)) return false;
  947. var spreadable = O[IS_CONCAT_SPREADABLE];
  948. return spreadable !== undefined ? !!spreadable : isArray(O);
  949. };
  950. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  951. // `Array.prototype.concat` method
  952. // https://tc39.github.io/ecma262/#sec-array.prototype.concat
  953. // with adding support of @@isConcatSpreadable and @@species
  954. _export({ target: 'Array', proto: true, forced: FORCED }, {
  955. concat: function concat(arg) { // eslint-disable-line no-unused-vars
  956. var O = toObject(this);
  957. var A = arraySpeciesCreate(O, 0);
  958. var n = 0;
  959. var i, k, length, len, E;
  960. for (i = -1, length = arguments.length; i < length; i++) {
  961. E = i === -1 ? O : arguments[i];
  962. if (isConcatSpreadable(E)) {
  963. len = toLength(E.length);
  964. if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  965. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  966. } else {
  967. if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  968. createProperty(A, n++, E);
  969. }
  970. }
  971. A.length = n;
  972. return A;
  973. }
  974. });
  975. var UNSCOPABLES = wellKnownSymbol('unscopables');
  976. var ArrayPrototype = Array.prototype;
  977. // Array.prototype[@@unscopables]
  978. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  979. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  980. hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
  981. }
  982. // add a key to Array.prototype[@@unscopables]
  983. var addToUnscopables = function (key) {
  984. ArrayPrototype[UNSCOPABLES][key] = true;
  985. };
  986. var correctPrototypeGetter = !fails(function () {
  987. function F() { /* empty */ }
  988. F.prototype.constructor = null;
  989. return Object.getPrototypeOf(new F()) !== F.prototype;
  990. });
  991. var IE_PROTO$1 = sharedKey('IE_PROTO');
  992. var ObjectPrototype$1 = Object.prototype;
  993. // `Object.getPrototypeOf` method
  994. // https://tc39.github.io/ecma262/#sec-object.getprototypeof
  995. var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
  996. O = toObject(O);
  997. if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
  998. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  999. return O.constructor.prototype;
  1000. } return O instanceof Object ? ObjectPrototype$1 : null;
  1001. };
  1002. var ITERATOR = wellKnownSymbol('iterator');
  1003. var BUGGY_SAFARI_ITERATORS = false;
  1004. var returnThis = function () { return this; };
  1005. // `%IteratorPrototype%` object
  1006. // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
  1007. var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
  1008. if ([].keys) {
  1009. arrayIterator = [].keys();
  1010. // Safari 8 has buggy iterators w/o `next`
  1011. if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
  1012. else {
  1013. PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
  1014. if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
  1015. }
  1016. }
  1017. if (IteratorPrototype == undefined) IteratorPrototype = {};
  1018. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  1019. if ( !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
  1020. var iteratorsCore = {
  1021. IteratorPrototype: IteratorPrototype,
  1022. BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
  1023. };
  1024. var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
  1025. var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
  1026. var TO_STRING_TAG = NAME + ' Iterator';
  1027. IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
  1028. setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
  1029. return IteratorConstructor;
  1030. };
  1031. var aPossiblePrototype = function (it) {
  1032. if (!isObject(it) && it !== null) {
  1033. throw TypeError("Can't set " + String(it) + ' as a prototype');
  1034. } return it;
  1035. };
  1036. // `Object.setPrototypeOf` method
  1037. // https://tc39.github.io/ecma262/#sec-object.setprototypeof
  1038. // Works with __proto__ only. Old v8 can't work with null proto objects.
  1039. /* eslint-disable no-proto */
  1040. var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
  1041. var CORRECT_SETTER = false;
  1042. var test = {};
  1043. var setter;
  1044. try {
  1045. setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
  1046. setter.call(test, []);
  1047. CORRECT_SETTER = test instanceof Array;
  1048. } catch (error) { /* empty */ }
  1049. return function setPrototypeOf(O, proto) {
  1050. anObject(O);
  1051. aPossiblePrototype(proto);
  1052. if (CORRECT_SETTER) setter.call(O, proto);
  1053. else O.__proto__ = proto;
  1054. return O;
  1055. };
  1056. }() : undefined);
  1057. var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
  1058. var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
  1059. var ITERATOR$1 = wellKnownSymbol('iterator');
  1060. var KEYS = 'keys';
  1061. var VALUES = 'values';
  1062. var ENTRIES = 'entries';
  1063. var returnThis$1 = function () { return this; };
  1064. var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
  1065. createIteratorConstructor(IteratorConstructor, NAME, next);
  1066. var getIterationMethod = function (KIND) {
  1067. if (KIND === DEFAULT && defaultIterator) return defaultIterator;
  1068. if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
  1069. switch (KIND) {
  1070. case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
  1071. case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
  1072. case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
  1073. } return function () { return new IteratorConstructor(this); };
  1074. };
  1075. var TO_STRING_TAG = NAME + ' Iterator';
  1076. var INCORRECT_VALUES_NAME = false;
  1077. var IterablePrototype = Iterable.prototype;
  1078. var nativeIterator = IterablePrototype[ITERATOR$1]
  1079. || IterablePrototype['@@iterator']
  1080. || DEFAULT && IterablePrototype[DEFAULT];
  1081. var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
  1082. var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
  1083. var CurrentIteratorPrototype, methods, KEY;
  1084. // fix native
  1085. if (anyNativeIterator) {
  1086. CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
  1087. if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
  1088. if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
  1089. if (objectSetPrototypeOf) {
  1090. objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
  1091. } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
  1092. hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
  1093. }
  1094. }
  1095. // Set @@toStringTag to native iterators
  1096. setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
  1097. }
  1098. }
  1099. // fix Array#{values, @@iterator}.name in V8 / FF
  1100. if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
  1101. INCORRECT_VALUES_NAME = true;
  1102. defaultIterator = function values() { return nativeIterator.call(this); };
  1103. }
  1104. // define iterator
  1105. if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
  1106. hide(IterablePrototype, ITERATOR$1, defaultIterator);
  1107. }
  1108. // export additional methods
  1109. if (DEFAULT) {
  1110. methods = {
  1111. values: getIterationMethod(VALUES),
  1112. keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
  1113. entries: getIterationMethod(ENTRIES)
  1114. };
  1115. if (FORCED) for (KEY in methods) {
  1116. if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
  1117. redefine(IterablePrototype, KEY, methods[KEY]);
  1118. }
  1119. } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
  1120. }
  1121. return methods;
  1122. };
  1123. var ARRAY_ITERATOR = 'Array Iterator';
  1124. var setInternalState$1 = internalState.set;
  1125. var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
  1126. // `Array.prototype.entries` method
  1127. // https://tc39.github.io/ecma262/#sec-array.prototype.entries
  1128. // `Array.prototype.keys` method
  1129. // https://tc39.github.io/ecma262/#sec-array.prototype.keys
  1130. // `Array.prototype.values` method
  1131. // https://tc39.github.io/ecma262/#sec-array.prototype.values
  1132. // `Array.prototype[@@iterator]` method
  1133. // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
  1134. // `CreateArrayIterator` internal method
  1135. // https://tc39.github.io/ecma262/#sec-createarrayiterator
  1136. var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
  1137. setInternalState$1(this, {
  1138. type: ARRAY_ITERATOR,
  1139. target: toIndexedObject(iterated), // target
  1140. index: 0, // next index
  1141. kind: kind // kind
  1142. });
  1143. // `%ArrayIteratorPrototype%.next` method
  1144. // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
  1145. }, function () {
  1146. var state = getInternalState$1(this);
  1147. var target = state.target;
  1148. var kind = state.kind;
  1149. var index = state.index++;
  1150. if (!target || index >= target.length) {
  1151. state.target = undefined;
  1152. return { value: undefined, done: true };
  1153. }
  1154. if (kind == 'keys') return { value: index, done: false };
  1155. if (kind == 'values') return { value: target[index], done: false };
  1156. return { value: [index, target[index]], done: false };
  1157. }, 'values');
  1158. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  1159. addToUnscopables('keys');
  1160. addToUnscopables('values');
  1161. addToUnscopables('entries');
  1162. var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
  1163. // ES3 wrong here
  1164. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  1165. // fallback for IE11 Script Access Denied error
  1166. var tryGet = function (it, key) {
  1167. try {
  1168. return it[key];
  1169. } catch (error) { /* empty */ }
  1170. };
  1171. // getting tag from ES6+ `Object.prototype.toString`
  1172. var classof = function (it) {
  1173. var O, tag, result;
  1174. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1175. // @@toStringTag case
  1176. : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
  1177. // builtinTag case
  1178. : CORRECT_ARGUMENTS ? classofRaw(O)
  1179. // ES3 arguments fallback
  1180. : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
  1181. };
  1182. var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
  1183. var test = {};
  1184. test[TO_STRING_TAG$2] = 'z';
  1185. // `Object.prototype.toString` method implementation
  1186. // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
  1187. var objectToString = String(test) !== '[object z]' ? function toString() {
  1188. return '[object ' + classof(this) + ']';
  1189. } : test.toString;
  1190. var ObjectPrototype$2 = Object.prototype;
  1191. // `Object.prototype.toString` method
  1192. // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
  1193. if (objectToString !== ObjectPrototype$2.toString) {
  1194. redefine(ObjectPrototype$2, 'toString', objectToString, { unsafe: true });
  1195. }
  1196. // `String.prototype.{ codePointAt, at }` methods implementation
  1197. var createMethod$2 = function (CONVERT_TO_STRING) {
  1198. return function ($this, pos) {
  1199. var S = String(requireObjectCoercible($this));
  1200. var position = toInteger(pos);
  1201. var size = S.length;
  1202. var first, second;
  1203. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1204. first = S.charCodeAt(position);
  1205. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  1206. || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
  1207. ? CONVERT_TO_STRING ? S.charAt(position) : first
  1208. : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  1209. };
  1210. };
  1211. var stringMultibyte = {
  1212. // `String.prototype.codePointAt` method
  1213. // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
  1214. codeAt: createMethod$2(false),
  1215. // `String.prototype.at` method
  1216. // https://github.com/mathiasbynens/String.prototype.at
  1217. charAt: createMethod$2(true)
  1218. };
  1219. var charAt = stringMultibyte.charAt;
  1220. var STRING_ITERATOR = 'String Iterator';
  1221. var setInternalState$2 = internalState.set;
  1222. var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
  1223. // `String.prototype[@@iterator]` method
  1224. // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
  1225. defineIterator(String, 'String', function (iterated) {
  1226. setInternalState$2(this, {
  1227. type: STRING_ITERATOR,
  1228. string: String(iterated),
  1229. index: 0
  1230. });
  1231. // `%StringIteratorPrototype%.next` method
  1232. // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
  1233. }, function next() {
  1234. var state = getInternalState$2(this);
  1235. var string = state.string;
  1236. var index = state.index;
  1237. var point;
  1238. if (index >= string.length) return { value: undefined, done: true };
  1239. point = charAt(string, index);
  1240. state.index += point.length;
  1241. return { value: point, done: false };
  1242. });
  1243. // iterable DOM collections
  1244. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  1245. var domIterables = {
  1246. CSSRuleList: 0,
  1247. CSSStyleDeclaration: 0,
  1248. CSSValueList: 0,
  1249. ClientRectList: 0,
  1250. DOMRectList: 0,
  1251. DOMStringList: 0,
  1252. DOMTokenList: 1,
  1253. DataTransferItemList: 0,
  1254. FileList: 0,
  1255. HTMLAllCollection: 0,
  1256. HTMLCollection: 0,
  1257. HTMLFormElement: 0,
  1258. HTMLSelectElement: 0,
  1259. MediaList: 0,
  1260. MimeTypeArray: 0,
  1261. NamedNodeMap: 0,
  1262. NodeList: 1,
  1263. PaintRequestList: 0,
  1264. Plugin: 0,
  1265. PluginArray: 0,
  1266. SVGLengthList: 0,
  1267. SVGNumberList: 0,
  1268. SVGPathSegList: 0,
  1269. SVGPointList: 0,
  1270. SVGStringList: 0,
  1271. SVGTransformList: 0,
  1272. SourceBufferList: 0,
  1273. StyleSheetList: 0,
  1274. TextTrackCueList: 0,
  1275. TextTrackList: 0,
  1276. TouchList: 0
  1277. };
  1278. var ITERATOR$2 = wellKnownSymbol('iterator');
  1279. var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
  1280. var ArrayValues = es_array_iterator.values;
  1281. for (var COLLECTION_NAME in domIterables) {
  1282. var Collection = global_1[COLLECTION_NAME];
  1283. var CollectionPrototype = Collection && Collection.prototype;
  1284. if (CollectionPrototype) {
  1285. // some Chrome versions have non-configurable methods on DOMTokenList
  1286. if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
  1287. hide(CollectionPrototype, ITERATOR$2, ArrayValues);
  1288. } catch (error) {
  1289. CollectionPrototype[ITERATOR$2] = ArrayValues;
  1290. }
  1291. if (!CollectionPrototype[TO_STRING_TAG$3]) hide(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
  1292. if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
  1293. // some Chrome versions have non-configurable methods on DOMTokenList
  1294. if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
  1295. hide(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
  1296. } catch (error) {
  1297. CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
  1298. }
  1299. }
  1300. }
  1301. }
  1302. function _defineProperty(obj, key, value) {
  1303. if (key in obj) {
  1304. Object.defineProperty(obj, key, {
  1305. value: value,
  1306. enumerable: true,
  1307. configurable: true,
  1308. writable: true
  1309. });
  1310. } else {
  1311. obj[key] = value;
  1312. }
  1313. return obj;
  1314. }
  1315. function _objectSpread(target) {
  1316. for (var i = 1; i < arguments.length; i++) {
  1317. var source = arguments[i] != null ? arguments[i] : {};
  1318. var ownKeys = Object.keys(source);
  1319. if (typeof Object.getOwnPropertySymbols === 'function') {
  1320. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  1321. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  1322. }));
  1323. }
  1324. ownKeys.forEach(function (key) {
  1325. _defineProperty(target, key, source[key]);
  1326. });
  1327. }
  1328. return target;
  1329. }
  1330. function _toConsumableArray(arr) {
  1331. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  1332. }
  1333. function _arrayWithoutHoles(arr) {
  1334. if (Array.isArray(arr)) {
  1335. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  1336. return arr2;
  1337. }
  1338. }
  1339. function _iterableToArray(iter) {
  1340. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  1341. }
  1342. function _nonIterableSpread() {
  1343. throw new TypeError("Invalid attempt to spread non-iterable instance");
  1344. }
  1345. //
  1346. //
  1347. //
  1348. //
  1349. var $ = window.jQuery;
  1350. var deepCopy = function deepCopy(arg) {
  1351. return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
  1352. };
  1353. var script = {
  1354. name: 'BootstrapTable',
  1355. props: {
  1356. columns: {
  1357. type: Array,
  1358. require: true
  1359. },
  1360. data: {
  1361. type: [Array, Object],
  1362. default: function _default() {
  1363. return undefined;
  1364. }
  1365. },
  1366. options: {
  1367. type: Object,
  1368. default: function _default() {
  1369. return {};
  1370. }
  1371. }
  1372. },
  1373. mounted: function mounted() {
  1374. var _this = this;
  1375. this.$table = $(this.$el);
  1376. this.$table.on('all.bs.table', function (e, name, args) {
  1377. _this.$emit.apply(_this, [$.fn.bootstrapTable.events[name]].concat(_toConsumableArray(args)));
  1378. });
  1379. this._initTable();
  1380. },
  1381. methods: _objectSpread({
  1382. _initTable: function _initTable() {
  1383. var options = _objectSpread({}, deepCopy(this.options), {
  1384. columns: deepCopy(this.columns),
  1385. data: deepCopy(this.data)
  1386. });
  1387. if (!this._hasInit) {
  1388. this.$table.bootstrapTable(options);
  1389. this._hasInit = true;
  1390. } else {
  1391. this.refreshOptions(options);
  1392. }
  1393. }
  1394. }, function () {
  1395. var res = {};
  1396. var _iteratorNormalCompletion = true;
  1397. var _didIteratorError = false;
  1398. var _iteratorError = undefined;
  1399. try {
  1400. var _loop = function _loop() {
  1401. var method = _step.value;
  1402. res[method] = function () {
  1403. var _this$$table;
  1404. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1405. args[_key] = arguments[_key];
  1406. }
  1407. return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
  1408. };
  1409. };
  1410. for (var _iterator = $.fn.bootstrapTable.methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  1411. _loop();
  1412. }
  1413. } catch (err) {
  1414. _didIteratorError = true;
  1415. _iteratorError = err;
  1416. } finally {
  1417. try {
  1418. if (!_iteratorNormalCompletion && _iterator.return != null) {
  1419. _iterator.return();
  1420. }
  1421. } finally {
  1422. if (_didIteratorError) {
  1423. throw _iteratorError;
  1424. }
  1425. }
  1426. }
  1427. return res;
  1428. }()),
  1429. watch: {
  1430. options: {
  1431. handler: function handler() {
  1432. this._initTable();
  1433. },
  1434. deep: true
  1435. },
  1436. columns: {
  1437. handler: function handler() {
  1438. this._initTable();
  1439. },
  1440. deep: true
  1441. },
  1442. data: {
  1443. handler: function handler() {
  1444. this.load(deepCopy(this.data));
  1445. },
  1446. deep: true
  1447. }
  1448. }
  1449. };
  1450. function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
  1451. /* server only */
  1452. , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
  1453. if (typeof shadowMode !== 'boolean') {
  1454. createInjectorSSR = createInjector;
  1455. createInjector = shadowMode;
  1456. shadowMode = false;
  1457. } // Vue.extend constructor export interop.
  1458. var options = typeof script === 'function' ? script.options : script; // render functions
  1459. if (template && template.render) {
  1460. options.render = template.render;
  1461. options.staticRenderFns = template.staticRenderFns;
  1462. options._compiled = true; // functional template
  1463. if (isFunctionalTemplate) {
  1464. options.functional = true;
  1465. }
  1466. } // scopedId
  1467. if (scopeId) {
  1468. options._scopeId = scopeId;
  1469. }
  1470. var hook;
  1471. if (moduleIdentifier) {
  1472. // server build
  1473. hook = function hook(context) {
  1474. // 2.3 injection
  1475. context = context || // cached call
  1476. this.$vnode && this.$vnode.ssrContext || // stateful
  1477. this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
  1478. // 2.2 with runInNewContext: true
  1479. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1480. context = __VUE_SSR_CONTEXT__;
  1481. } // inject component styles
  1482. if (style) {
  1483. style.call(this, createInjectorSSR(context));
  1484. } // register component module identifier for async chunk inference
  1485. if (context && context._registeredComponents) {
  1486. context._registeredComponents.add(moduleIdentifier);
  1487. }
  1488. }; // used by ssr in case component is cached and beforeCreate
  1489. // never gets called
  1490. options._ssrRegister = hook;
  1491. } else if (style) {
  1492. hook = shadowMode ? function () {
  1493. style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
  1494. } : function (context) {
  1495. style.call(this, createInjector(context));
  1496. };
  1497. }
  1498. if (hook) {
  1499. if (options.functional) {
  1500. // register for functional component in vue file
  1501. var originalRender = options.render;
  1502. options.render = function renderWithStyleInjection(h, context) {
  1503. hook.call(context);
  1504. return originalRender(h, context);
  1505. };
  1506. } else {
  1507. // inject component registration as beforeCreate hook
  1508. var existing = options.beforeCreate;
  1509. options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
  1510. }
  1511. }
  1512. return script;
  1513. }
  1514. var normalizeComponent_1 = normalizeComponent;
  1515. /* script */
  1516. const __vue_script__ = script;
  1517. /* template */
  1518. var __vue_render__ = function() {
  1519. var _vm = this;
  1520. var _h = _vm.$createElement;
  1521. var _c = _vm._self._c || _h;
  1522. return _c("table")
  1523. };
  1524. var __vue_staticRenderFns__ = [];
  1525. __vue_render__._withStripped = true;
  1526. /* style */
  1527. const __vue_inject_styles__ = undefined;
  1528. /* scoped */
  1529. const __vue_scope_id__ = undefined;
  1530. /* module identifier */
  1531. const __vue_module_identifier__ = undefined;
  1532. /* functional template */
  1533. const __vue_is_functional_template__ = false;
  1534. /* style inject */
  1535. /* style inject SSR */
  1536. var BootstrapTable = normalizeComponent_1(
  1537. { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
  1538. __vue_inject_styles__,
  1539. __vue_script__,
  1540. __vue_scope_id__,
  1541. __vue_is_functional_template__,
  1542. __vue_module_identifier__,
  1543. undefined,
  1544. undefined
  1545. );
  1546. export default BootstrapTable;