bootstrap-table-vue.js 60 KB

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