bootstrap-table-vue.js 56 KB

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