bootstrap-table-vue.js 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293
  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 check = function (it) {
  11. return it && it.Math == Math && it;
  12. };
  13. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  14. var global_1 =
  15. // eslint-disable-next-line no-undef
  16. check(typeof globalThis == 'object' && globalThis) ||
  17. check(typeof window == 'object' && window) ||
  18. check(typeof self == 'object' && self) ||
  19. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  20. // eslint-disable-next-line no-new-func
  21. Function('return this')();
  22. var fails = function (exec) {
  23. try {
  24. return !!exec();
  25. } catch (error) {
  26. return true;
  27. }
  28. };
  29. // Thank's IE8 for his funny defineProperty
  30. var descriptors = !fails(function () {
  31. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  32. });
  33. var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
  34. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  35. // Nashorn ~ JDK8 bug
  36. var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
  37. // `Object.prototype.propertyIsEnumerable` method implementation
  38. // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
  39. var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  40. var descriptor = getOwnPropertyDescriptor(this, V);
  41. return !!descriptor && descriptor.enumerable;
  42. } : nativePropertyIsEnumerable;
  43. var objectPropertyIsEnumerable = {
  44. f: f
  45. };
  46. var createPropertyDescriptor = function (bitmap, value) {
  47. return {
  48. enumerable: !(bitmap & 1),
  49. configurable: !(bitmap & 2),
  50. writable: !(bitmap & 4),
  51. value: value
  52. };
  53. };
  54. var toString = {}.toString;
  55. var classofRaw = function (it) {
  56. return toString.call(it).slice(8, -1);
  57. };
  58. var split = ''.split;
  59. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  60. var indexedObject = fails(function () {
  61. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  62. // eslint-disable-next-line no-prototype-builtins
  63. return !Object('z').propertyIsEnumerable(0);
  64. }) ? function (it) {
  65. return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
  66. } : Object;
  67. // `RequireObjectCoercible` abstract operation
  68. // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
  69. var requireObjectCoercible = function (it) {
  70. if (it == undefined) throw TypeError("Can't call method on " + it);
  71. return it;
  72. };
  73. // toObject with fallback for non-array-like ES3 strings
  74. var toIndexedObject = function (it) {
  75. return indexedObject(requireObjectCoercible(it));
  76. };
  77. var isObject = function (it) {
  78. return typeof it === 'object' ? it !== null : typeof it === 'function';
  79. };
  80. // `ToPrimitive` abstract operation
  81. // https://tc39.github.io/ecma262/#sec-toprimitive
  82. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  83. // and the second argument - flag - preferred type is a string
  84. var toPrimitive = function (input, PREFERRED_STRING) {
  85. if (!isObject(input)) return input;
  86. var fn, val;
  87. if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  88. if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
  89. if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  90. throw TypeError("Can't convert object to primitive value");
  91. };
  92. var hasOwnProperty = {}.hasOwnProperty;
  93. var has = function (it, key) {
  94. return hasOwnProperty.call(it, key);
  95. };
  96. var document$1 = global_1.document;
  97. // typeof document.createElement is 'object' in old IE
  98. var EXISTS = isObject(document$1) && isObject(document$1.createElement);
  99. var documentCreateElement = function (it) {
  100. return EXISTS ? document$1.createElement(it) : {};
  101. };
  102. // Thank's IE8 for his funny defineProperty
  103. var ie8DomDefine = !descriptors && !fails(function () {
  104. return Object.defineProperty(documentCreateElement('div'), 'a', {
  105. get: function () { return 7; }
  106. }).a != 7;
  107. });
  108. var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  109. // `Object.getOwnPropertyDescriptor` method
  110. // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
  111. var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  112. O = toIndexedObject(O);
  113. P = toPrimitive(P, true);
  114. if (ie8DomDefine) try {
  115. return nativeGetOwnPropertyDescriptor(O, P);
  116. } catch (error) { /* empty */ }
  117. if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
  118. };
  119. var objectGetOwnPropertyDescriptor = {
  120. f: f$1
  121. };
  122. var anObject = function (it) {
  123. if (!isObject(it)) {
  124. throw TypeError(String(it) + ' is not an object');
  125. } return it;
  126. };
  127. var nativeDefineProperty = Object.defineProperty;
  128. // `Object.defineProperty` method
  129. // https://tc39.github.io/ecma262/#sec-object.defineproperty
  130. var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
  131. anObject(O);
  132. P = toPrimitive(P, true);
  133. anObject(Attributes);
  134. if (ie8DomDefine) try {
  135. return nativeDefineProperty(O, P, Attributes);
  136. } catch (error) { /* empty */ }
  137. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
  138. if ('value' in Attributes) O[P] = Attributes.value;
  139. return O;
  140. };
  141. var objectDefineProperty = {
  142. f: f$2
  143. };
  144. var createNonEnumerableProperty = descriptors ? function (object, key, value) {
  145. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  146. } : function (object, key, value) {
  147. object[key] = value;
  148. return object;
  149. };
  150. var setGlobal = function (key, value) {
  151. try {
  152. createNonEnumerableProperty(global_1, key, value);
  153. } catch (error) {
  154. global_1[key] = value;
  155. } return value;
  156. };
  157. var SHARED = '__core-js_shared__';
  158. var store = global_1[SHARED] || setGlobal(SHARED, {});
  159. var sharedStore = store;
  160. var functionToString = Function.toString;
  161. // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
  162. if (typeof sharedStore.inspectSource != 'function') {
  163. sharedStore.inspectSource = function (it) {
  164. return functionToString.call(it);
  165. };
  166. }
  167. var inspectSource = sharedStore.inspectSource;
  168. var WeakMap = global_1.WeakMap;
  169. var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
  170. var shared = createCommonjsModule(function (module) {
  171. (module.exports = function (key, value) {
  172. return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
  173. })('versions', []).push({
  174. version: '3.6.0',
  175. mode: 'global',
  176. copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
  177. });
  178. });
  179. var id = 0;
  180. var postfix = Math.random();
  181. var uid = function (key) {
  182. return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
  183. };
  184. var keys = shared('keys');
  185. var sharedKey = function (key) {
  186. return keys[key] || (keys[key] = uid(key));
  187. };
  188. var hiddenKeys = {};
  189. var WeakMap$1 = global_1.WeakMap;
  190. var set, get, has$1;
  191. var enforce = function (it) {
  192. return has$1(it) ? get(it) : set(it, {});
  193. };
  194. var getterFor = function (TYPE) {
  195. return function (it) {
  196. var state;
  197. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  198. throw TypeError('Incompatible receiver, ' + TYPE + ' required');
  199. } return state;
  200. };
  201. };
  202. if (nativeWeakMap) {
  203. var store$1 = new WeakMap$1();
  204. var wmget = store$1.get;
  205. var wmhas = store$1.has;
  206. var wmset = store$1.set;
  207. set = function (it, metadata) {
  208. wmset.call(store$1, it, metadata);
  209. return metadata;
  210. };
  211. get = function (it) {
  212. return wmget.call(store$1, it) || {};
  213. };
  214. has$1 = function (it) {
  215. return wmhas.call(store$1, it);
  216. };
  217. } else {
  218. var STATE = sharedKey('state');
  219. hiddenKeys[STATE] = true;
  220. set = function (it, metadata) {
  221. createNonEnumerableProperty(it, STATE, metadata);
  222. return metadata;
  223. };
  224. get = function (it) {
  225. return has(it, STATE) ? it[STATE] : {};
  226. };
  227. has$1 = function (it) {
  228. return has(it, STATE);
  229. };
  230. }
  231. var internalState = {
  232. set: set,
  233. get: get,
  234. has: has$1,
  235. enforce: enforce,
  236. getterFor: getterFor
  237. };
  238. var redefine = createCommonjsModule(function (module) {
  239. var getInternalState = internalState.get;
  240. var enforceInternalState = internalState.enforce;
  241. var TEMPLATE = String(String).split('String');
  242. (module.exports = function (O, key, value, options) {
  243. var unsafe = options ? !!options.unsafe : false;
  244. var simple = options ? !!options.enumerable : false;
  245. var noTargetGet = options ? !!options.noTargetGet : false;
  246. if (typeof value == 'function') {
  247. if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
  248. enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
  249. }
  250. if (O === global_1) {
  251. if (simple) O[key] = value;
  252. else setGlobal(key, value);
  253. return;
  254. } else if (!unsafe) {
  255. delete O[key];
  256. } else if (!noTargetGet && O[key]) {
  257. simple = true;
  258. }
  259. if (simple) O[key] = value;
  260. else createNonEnumerableProperty(O, key, value);
  261. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  262. })(Function.prototype, 'toString', function toString() {
  263. return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
  264. });
  265. });
  266. var path = global_1;
  267. var aFunction = function (variable) {
  268. return typeof variable == 'function' ? variable : undefined;
  269. };
  270. var getBuiltIn = function (namespace, method) {
  271. return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
  272. : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
  273. };
  274. var ceil = Math.ceil;
  275. var floor = Math.floor;
  276. // `ToInteger` abstract operation
  277. // https://tc39.github.io/ecma262/#sec-tointeger
  278. var toInteger = function (argument) {
  279. return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
  280. };
  281. var min = Math.min;
  282. // `ToLength` abstract operation
  283. // https://tc39.github.io/ecma262/#sec-tolength
  284. var toLength = function (argument) {
  285. return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  286. };
  287. var max = Math.max;
  288. var min$1 = Math.min;
  289. // Helper for a popular repeating case of the spec:
  290. // Let integer be ? ToInteger(index).
  291. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  292. var toAbsoluteIndex = function (index, length) {
  293. var integer = toInteger(index);
  294. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  295. };
  296. // `Array.prototype.{ indexOf, includes }` methods implementation
  297. var createMethod = function (IS_INCLUDES) {
  298. return function ($this, el, fromIndex) {
  299. var O = toIndexedObject($this);
  300. var length = toLength(O.length);
  301. var index = toAbsoluteIndex(fromIndex, length);
  302. var value;
  303. // Array#includes uses SameValueZero equality algorithm
  304. // eslint-disable-next-line no-self-compare
  305. if (IS_INCLUDES && el != el) while (length > index) {
  306. value = O[index++];
  307. // eslint-disable-next-line no-self-compare
  308. if (value != value) return true;
  309. // Array#indexOf ignores holes, Array#includes - not
  310. } else for (;length > index; index++) {
  311. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  312. } return !IS_INCLUDES && -1;
  313. };
  314. };
  315. var arrayIncludes = {
  316. // `Array.prototype.includes` method
  317. // https://tc39.github.io/ecma262/#sec-array.prototype.includes
  318. includes: createMethod(true),
  319. // `Array.prototype.indexOf` method
  320. // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
  321. indexOf: createMethod(false)
  322. };
  323. var indexOf = arrayIncludes.indexOf;
  324. var objectKeysInternal = function (object, names) {
  325. var O = toIndexedObject(object);
  326. var i = 0;
  327. var result = [];
  328. var key;
  329. for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
  330. // Don't enum bug & hidden keys
  331. while (names.length > i) if (has(O, key = names[i++])) {
  332. ~indexOf(result, key) || result.push(key);
  333. }
  334. return result;
  335. };
  336. // IE8- don't enum bug keys
  337. var enumBugKeys = [
  338. 'constructor',
  339. 'hasOwnProperty',
  340. 'isPrototypeOf',
  341. 'propertyIsEnumerable',
  342. 'toLocaleString',
  343. 'toString',
  344. 'valueOf'
  345. ];
  346. var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
  347. // `Object.getOwnPropertyNames` method
  348. // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
  349. var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  350. return objectKeysInternal(O, hiddenKeys$1);
  351. };
  352. var objectGetOwnPropertyNames = {
  353. f: f$3
  354. };
  355. var f$4 = Object.getOwnPropertySymbols;
  356. var objectGetOwnPropertySymbols = {
  357. f: f$4
  358. };
  359. // all object keys, includes non-enumerable and symbols
  360. var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  361. var keys = objectGetOwnPropertyNames.f(anObject(it));
  362. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  363. return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
  364. };
  365. var copyConstructorProperties = function (target, source) {
  366. var keys = ownKeys(source);
  367. var defineProperty = objectDefineProperty.f;
  368. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  369. for (var i = 0; i < keys.length; i++) {
  370. var key = keys[i];
  371. if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  372. }
  373. };
  374. var replacement = /#|\.prototype\./;
  375. var isForced = function (feature, detection) {
  376. var value = data[normalize(feature)];
  377. return value == POLYFILL ? true
  378. : value == NATIVE ? false
  379. : typeof detection == 'function' ? fails(detection)
  380. : !!detection;
  381. };
  382. var normalize = isForced.normalize = function (string) {
  383. return String(string).replace(replacement, '.').toLowerCase();
  384. };
  385. var data = isForced.data = {};
  386. var NATIVE = isForced.NATIVE = 'N';
  387. var POLYFILL = isForced.POLYFILL = 'P';
  388. var isForced_1 = isForced;
  389. var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
  390. /*
  391. options.target - name of the target object
  392. options.global - target is the global object
  393. options.stat - export as static methods of target
  394. options.proto - export as prototype methods of target
  395. options.real - real prototype method for the `pure` version
  396. options.forced - export even if the native feature is available
  397. options.bind - bind methods to the target, required for the `pure` version
  398. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  399. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  400. options.sham - add a flag to not completely full polyfills
  401. options.enumerable - export as enumerable property
  402. options.noTargetGet - prevent calling a getter on target
  403. */
  404. var _export = function (options, source) {
  405. var TARGET = options.target;
  406. var GLOBAL = options.global;
  407. var STATIC = options.stat;
  408. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  409. if (GLOBAL) {
  410. target = global_1;
  411. } else if (STATIC) {
  412. target = global_1[TARGET] || setGlobal(TARGET, {});
  413. } else {
  414. target = (global_1[TARGET] || {}).prototype;
  415. }
  416. if (target) for (key in source) {
  417. sourceProperty = source[key];
  418. if (options.noTargetGet) {
  419. descriptor = getOwnPropertyDescriptor$1(target, key);
  420. targetProperty = descriptor && descriptor.value;
  421. } else targetProperty = target[key];
  422. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  423. // contained in target
  424. if (!FORCED && targetProperty !== undefined) {
  425. if (typeof sourceProperty === typeof targetProperty) continue;
  426. copyConstructorProperties(sourceProperty, targetProperty);
  427. }
  428. // add a flag to not completely full polyfills
  429. if (options.sham || (targetProperty && targetProperty.sham)) {
  430. createNonEnumerableProperty(sourceProperty, 'sham', true);
  431. }
  432. // extend global
  433. redefine(target, key, sourceProperty, options);
  434. }
  435. };
  436. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  437. // Chrome 38 Symbol has incorrect toString conversion
  438. // eslint-disable-next-line no-undef
  439. return !String(Symbol());
  440. });
  441. var useSymbolAsUid = nativeSymbol
  442. // eslint-disable-next-line no-undef
  443. && !Symbol.sham
  444. // eslint-disable-next-line no-undef
  445. && typeof Symbol() == 'symbol';
  446. // `IsArray` abstract operation
  447. // https://tc39.github.io/ecma262/#sec-isarray
  448. var isArray = Array.isArray || function isArray(arg) {
  449. return classofRaw(arg) == 'Array';
  450. };
  451. // `ToObject` abstract operation
  452. // https://tc39.github.io/ecma262/#sec-toobject
  453. var toObject = function (argument) {
  454. return Object(requireObjectCoercible(argument));
  455. };
  456. // `Object.keys` method
  457. // https://tc39.github.io/ecma262/#sec-object.keys
  458. var objectKeys = Object.keys || function keys(O) {
  459. return objectKeysInternal(O, enumBugKeys);
  460. };
  461. // `Object.defineProperties` method
  462. // https://tc39.github.io/ecma262/#sec-object.defineproperties
  463. var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
  464. anObject(O);
  465. var keys = objectKeys(Properties);
  466. var length = keys.length;
  467. var index = 0;
  468. var key;
  469. while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
  470. return O;
  471. };
  472. var html = getBuiltIn('document', 'documentElement');
  473. var GT = '>';
  474. var LT = '<';
  475. var PROTOTYPE = 'prototype';
  476. var SCRIPT = 'script';
  477. var IE_PROTO = sharedKey('IE_PROTO');
  478. var EmptyConstructor = function () { /* empty */ };
  479. var scriptTag = function (content) {
  480. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  481. };
  482. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  483. var NullProtoObjectViaActiveX = function (activeXDocument) {
  484. activeXDocument.write(scriptTag(''));
  485. activeXDocument.close();
  486. var temp = activeXDocument.parentWindow.Object;
  487. activeXDocument = null; // avoid memory leak
  488. return temp;
  489. };
  490. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  491. var NullProtoObjectViaIFrame = function () {
  492. // Thrash, waste and sodomy: IE GC bug
  493. var iframe = documentCreateElement('iframe');
  494. var JS = 'java' + SCRIPT + ':';
  495. var iframeDocument;
  496. iframe.style.display = 'none';
  497. html.appendChild(iframe);
  498. // https://github.com/zloirock/core-js/issues/475
  499. iframe.src = String(JS);
  500. iframeDocument = iframe.contentWindow.document;
  501. iframeDocument.open();
  502. iframeDocument.write(scriptTag('document.F=Object'));
  503. iframeDocument.close();
  504. return iframeDocument.F;
  505. };
  506. // Check for document.domain and active x support
  507. // No need to use active x approach when document.domain is not set
  508. // see https://github.com/es-shims/es5-shim/issues/150
  509. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  510. // avoid IE GC bug
  511. var activeXDocument;
  512. var NullProtoObject = function () {
  513. try {
  514. /* global ActiveXObject */
  515. activeXDocument = document.domain && new ActiveXObject('htmlfile');
  516. } catch (error) { /* ignore */ }
  517. NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
  518. var length = enumBugKeys.length;
  519. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  520. return NullProtoObject();
  521. };
  522. hiddenKeys[IE_PROTO] = true;
  523. // `Object.create` method
  524. // https://tc39.github.io/ecma262/#sec-object.create
  525. var objectCreate = Object.create || function create(O, Properties) {
  526. var result;
  527. if (O !== null) {
  528. EmptyConstructor[PROTOTYPE] = anObject(O);
  529. result = new EmptyConstructor();
  530. EmptyConstructor[PROTOTYPE] = null;
  531. // add "__proto__" for Object.getPrototypeOf polyfill
  532. result[IE_PROTO] = O;
  533. } else result = NullProtoObject();
  534. return Properties === undefined ? result : objectDefineProperties(result, Properties);
  535. };
  536. var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
  537. var toString$1 = {}.toString;
  538. var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  539. ? Object.getOwnPropertyNames(window) : [];
  540. var getWindowNames = function (it) {
  541. try {
  542. return nativeGetOwnPropertyNames(it);
  543. } catch (error) {
  544. return windowNames.slice();
  545. }
  546. };
  547. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  548. var f$5 = function getOwnPropertyNames(it) {
  549. return windowNames && toString$1.call(it) == '[object Window]'
  550. ? getWindowNames(it)
  551. : nativeGetOwnPropertyNames(toIndexedObject(it));
  552. };
  553. var objectGetOwnPropertyNamesExternal = {
  554. f: f$5
  555. };
  556. var WellKnownSymbolsStore = shared('wks');
  557. var Symbol$1 = global_1.Symbol;
  558. var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
  559. var wellKnownSymbol = function (name) {
  560. if (!has(WellKnownSymbolsStore, name)) {
  561. if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
  562. else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
  563. } return WellKnownSymbolsStore[name];
  564. };
  565. var f$6 = wellKnownSymbol;
  566. var wrappedWellKnownSymbol = {
  567. f: f$6
  568. };
  569. var defineProperty = objectDefineProperty.f;
  570. var defineWellKnownSymbol = function (NAME) {
  571. var Symbol = path.Symbol || (path.Symbol = {});
  572. if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
  573. value: wrappedWellKnownSymbol.f(NAME)
  574. });
  575. };
  576. var defineProperty$1 = objectDefineProperty.f;
  577. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  578. var setToStringTag = function (it, TAG, STATIC) {
  579. if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
  580. defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
  581. }
  582. };
  583. var aFunction$1 = function (it) {
  584. if (typeof it != 'function') {
  585. throw TypeError(String(it) + ' is not a function');
  586. } return it;
  587. };
  588. // optional / simple context binding
  589. var bindContext = function (fn, that, length) {
  590. aFunction$1(fn);
  591. if (that === undefined) return fn;
  592. switch (length) {
  593. case 0: return function () {
  594. return fn.call(that);
  595. };
  596. case 1: return function (a) {
  597. return fn.call(that, a);
  598. };
  599. case 2: return function (a, b) {
  600. return fn.call(that, a, b);
  601. };
  602. case 3: return function (a, b, c) {
  603. return fn.call(that, a, b, c);
  604. };
  605. }
  606. return function (/* ...args */) {
  607. return fn.apply(that, arguments);
  608. };
  609. };
  610. var SPECIES = wellKnownSymbol('species');
  611. // `ArraySpeciesCreate` abstract operation
  612. // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
  613. var arraySpeciesCreate = function (originalArray, length) {
  614. var C;
  615. if (isArray(originalArray)) {
  616. C = originalArray.constructor;
  617. // cross-realm fallback
  618. if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
  619. else if (isObject(C)) {
  620. C = C[SPECIES];
  621. if (C === null) C = undefined;
  622. }
  623. } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
  624. };
  625. var push = [].push;
  626. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
  627. var createMethod$1 = function (TYPE) {
  628. var IS_MAP = TYPE == 1;
  629. var IS_FILTER = TYPE == 2;
  630. var IS_SOME = TYPE == 3;
  631. var IS_EVERY = TYPE == 4;
  632. var IS_FIND_INDEX = TYPE == 6;
  633. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  634. return function ($this, callbackfn, that, specificCreate) {
  635. var O = toObject($this);
  636. var self = indexedObject(O);
  637. var boundFunction = bindContext(callbackfn, that, 3);
  638. var length = toLength(self.length);
  639. var index = 0;
  640. var create = specificCreate || arraySpeciesCreate;
  641. var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
  642. var value, result;
  643. for (;length > index; index++) if (NO_HOLES || index in self) {
  644. value = self[index];
  645. result = boundFunction(value, index, O);
  646. if (TYPE) {
  647. if (IS_MAP) target[index] = result; // map
  648. else if (result) switch (TYPE) {
  649. case 3: return true; // some
  650. case 5: return value; // find
  651. case 6: return index; // findIndex
  652. case 2: push.call(target, value); // filter
  653. } else if (IS_EVERY) return false; // every
  654. }
  655. }
  656. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  657. };
  658. };
  659. var arrayIteration = {
  660. // `Array.prototype.forEach` method
  661. // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
  662. forEach: createMethod$1(0),
  663. // `Array.prototype.map` method
  664. // https://tc39.github.io/ecma262/#sec-array.prototype.map
  665. map: createMethod$1(1),
  666. // `Array.prototype.filter` method
  667. // https://tc39.github.io/ecma262/#sec-array.prototype.filter
  668. filter: createMethod$1(2),
  669. // `Array.prototype.some` method
  670. // https://tc39.github.io/ecma262/#sec-array.prototype.some
  671. some: createMethod$1(3),
  672. // `Array.prototype.every` method
  673. // https://tc39.github.io/ecma262/#sec-array.prototype.every
  674. every: createMethod$1(4),
  675. // `Array.prototype.find` method
  676. // https://tc39.github.io/ecma262/#sec-array.prototype.find
  677. find: createMethod$1(5),
  678. // `Array.prototype.findIndex` method
  679. // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
  680. findIndex: createMethod$1(6)
  681. };
  682. var $forEach = arrayIteration.forEach;
  683. var HIDDEN = sharedKey('hidden');
  684. var SYMBOL = 'Symbol';
  685. var PROTOTYPE$1 = 'prototype';
  686. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  687. var setInternalState = internalState.set;
  688. var getInternalState = internalState.getterFor(SYMBOL);
  689. var ObjectPrototype = Object[PROTOTYPE$1];
  690. var $Symbol = global_1.Symbol;
  691. var $stringify = getBuiltIn('JSON', 'stringify');
  692. var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
  693. var nativeDefineProperty$1 = objectDefineProperty.f;
  694. var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
  695. var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
  696. var AllSymbols = shared('symbols');
  697. var ObjectPrototypeSymbols = shared('op-symbols');
  698. var StringToSymbolRegistry = shared('string-to-symbol-registry');
  699. var SymbolToStringRegistry = shared('symbol-to-string-registry');
  700. var WellKnownSymbolsStore$1 = shared('wks');
  701. var QObject = global_1.QObject;
  702. // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
  703. var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
  704. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  705. var setSymbolDescriptor = descriptors && fails(function () {
  706. return objectCreate(nativeDefineProperty$1({}, 'a', {
  707. get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
  708. })).a != 7;
  709. }) ? function (O, P, Attributes) {
  710. var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
  711. if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
  712. nativeDefineProperty$1(O, P, Attributes);
  713. if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
  714. nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
  715. }
  716. } : nativeDefineProperty$1;
  717. var wrap = function (tag, description) {
  718. var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
  719. setInternalState(symbol, {
  720. type: SYMBOL,
  721. tag: tag,
  722. description: description
  723. });
  724. if (!descriptors) symbol.description = description;
  725. return symbol;
  726. };
  727. var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
  728. return typeof it == 'symbol';
  729. } : function (it) {
  730. return Object(it) instanceof $Symbol;
  731. };
  732. var $defineProperty = function defineProperty(O, P, Attributes) {
  733. if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
  734. anObject(O);
  735. var key = toPrimitive(P, true);
  736. anObject(Attributes);
  737. if (has(AllSymbols, key)) {
  738. if (!Attributes.enumerable) {
  739. if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
  740. O[HIDDEN][key] = true;
  741. } else {
  742. if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
  743. Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
  744. } return setSymbolDescriptor(O, key, Attributes);
  745. } return nativeDefineProperty$1(O, key, Attributes);
  746. };
  747. var $defineProperties = function defineProperties(O, Properties) {
  748. anObject(O);
  749. var properties = toIndexedObject(Properties);
  750. var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
  751. $forEach(keys, function (key) {
  752. if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
  753. });
  754. return O;
  755. };
  756. var $create = function create(O, Properties) {
  757. return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
  758. };
  759. var $propertyIsEnumerable = function propertyIsEnumerable(V) {
  760. var P = toPrimitive(V, true);
  761. var enumerable = nativePropertyIsEnumerable$1.call(this, P);
  762. if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
  763. return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
  764. };
  765. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
  766. var it = toIndexedObject(O);
  767. var key = toPrimitive(P, true);
  768. if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
  769. var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
  770. if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
  771. descriptor.enumerable = true;
  772. }
  773. return descriptor;
  774. };
  775. var $getOwnPropertyNames = function getOwnPropertyNames(O) {
  776. var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
  777. var result = [];
  778. $forEach(names, function (key) {
  779. if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
  780. });
  781. return result;
  782. };
  783. var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
  784. var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
  785. var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
  786. var result = [];
  787. $forEach(names, function (key) {
  788. if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
  789. result.push(AllSymbols[key]);
  790. }
  791. });
  792. return result;
  793. };
  794. // `Symbol` constructor
  795. // https://tc39.github.io/ecma262/#sec-symbol-constructor
  796. if (!nativeSymbol) {
  797. $Symbol = function Symbol() {
  798. if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
  799. var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
  800. var tag = uid(description);
  801. var setter = function (value) {
  802. if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
  803. if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
  804. setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
  805. };
  806. if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
  807. return wrap(tag, description);
  808. };
  809. redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
  810. return getInternalState(this).tag;
  811. });
  812. objectPropertyIsEnumerable.f = $propertyIsEnumerable;
  813. objectDefineProperty.f = $defineProperty;
  814. objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
  815. objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
  816. objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
  817. if (descriptors) {
  818. // https://github.com/tc39/proposal-Symbol-description
  819. nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
  820. configurable: true,
  821. get: function description() {
  822. return getInternalState(this).description;
  823. }
  824. });
  825. {
  826. redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
  827. }
  828. }
  829. }
  830. if (!useSymbolAsUid) {
  831. wrappedWellKnownSymbol.f = function (name) {
  832. return wrap(wellKnownSymbol(name), name);
  833. };
  834. }
  835. _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
  836. Symbol: $Symbol
  837. });
  838. $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
  839. defineWellKnownSymbol(name);
  840. });
  841. _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
  842. // `Symbol.for` method
  843. // https://tc39.github.io/ecma262/#sec-symbol.for
  844. 'for': function (key) {
  845. var string = String(key);
  846. if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
  847. var symbol = $Symbol(string);
  848. StringToSymbolRegistry[string] = symbol;
  849. SymbolToStringRegistry[symbol] = string;
  850. return symbol;
  851. },
  852. // `Symbol.keyFor` method
  853. // https://tc39.github.io/ecma262/#sec-symbol.keyfor
  854. keyFor: function keyFor(sym) {
  855. if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
  856. if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
  857. },
  858. useSetter: function () { USE_SETTER = true; },
  859. useSimple: function () { USE_SETTER = false; }
  860. });
  861. _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
  862. // `Object.create` method
  863. // https://tc39.github.io/ecma262/#sec-object.create
  864. create: $create,
  865. // `Object.defineProperty` method
  866. // https://tc39.github.io/ecma262/#sec-object.defineproperty
  867. defineProperty: $defineProperty,
  868. // `Object.defineProperties` method
  869. // https://tc39.github.io/ecma262/#sec-object.defineproperties
  870. defineProperties: $defineProperties,
  871. // `Object.getOwnPropertyDescriptor` method
  872. // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
  873. getOwnPropertyDescriptor: $getOwnPropertyDescriptor
  874. });
  875. _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
  876. // `Object.getOwnPropertyNames` method
  877. // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
  878. getOwnPropertyNames: $getOwnPropertyNames,
  879. // `Object.getOwnPropertySymbols` method
  880. // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
  881. getOwnPropertySymbols: $getOwnPropertySymbols
  882. });
  883. // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
  884. // https://bugs.chromium.org/p/v8/issues/detail?id=3443
  885. _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
  886. getOwnPropertySymbols: function getOwnPropertySymbols(it) {
  887. return objectGetOwnPropertySymbols.f(toObject(it));
  888. }
  889. });
  890. // `JSON.stringify` method behavior with symbols
  891. // https://tc39.github.io/ecma262/#sec-json.stringify
  892. if ($stringify) {
  893. var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
  894. var symbol = $Symbol();
  895. // MS Edge converts symbol values to JSON as {}
  896. return $stringify([symbol]) != '[null]'
  897. // WebKit converts symbol values to JSON as null
  898. || $stringify({ a: symbol }) != '{}'
  899. // V8 throws on boxed symbols
  900. || $stringify(Object(symbol)) != '{}';
  901. });
  902. _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
  903. // eslint-disable-next-line no-unused-vars
  904. stringify: function stringify(it, replacer, space) {
  905. var args = [it];
  906. var index = 1;
  907. var $replacer;
  908. while (arguments.length > index) args.push(arguments[index++]);
  909. $replacer = replacer;
  910. if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
  911. if (!isArray(replacer)) replacer = function (key, value) {
  912. if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
  913. if (!isSymbol(value)) return value;
  914. };
  915. args[1] = replacer;
  916. return $stringify.apply(null, args);
  917. }
  918. });
  919. }
  920. // `Symbol.prototype[@@toPrimitive]` method
  921. // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
  922. if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
  923. createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
  924. }
  925. // `Symbol.prototype[@@toStringTag]` property
  926. // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
  927. setToStringTag($Symbol, SYMBOL);
  928. hiddenKeys[HIDDEN] = true;
  929. var defineProperty$2 = objectDefineProperty.f;
  930. var NativeSymbol = global_1.Symbol;
  931. if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
  932. // Safari 12 bug
  933. NativeSymbol().description !== undefined
  934. )) {
  935. var EmptyStringDescriptionStore = {};
  936. // wrap Symbol constructor for correct work with undefined description
  937. var SymbolWrapper = function Symbol() {
  938. var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
  939. var result = this instanceof SymbolWrapper
  940. ? new NativeSymbol(description)
  941. // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
  942. : description === undefined ? NativeSymbol() : NativeSymbol(description);
  943. if (description === '') EmptyStringDescriptionStore[result] = true;
  944. return result;
  945. };
  946. copyConstructorProperties(SymbolWrapper, NativeSymbol);
  947. var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
  948. symbolPrototype.constructor = SymbolWrapper;
  949. var symbolToString = symbolPrototype.toString;
  950. var native = String(NativeSymbol('test')) == 'Symbol(test)';
  951. var regexp = /^Symbol\((.*)\)[^)]+$/;
  952. defineProperty$2(symbolPrototype, 'description', {
  953. configurable: true,
  954. get: function description() {
  955. var symbol = isObject(this) ? this.valueOf() : this;
  956. var string = symbolToString.call(symbol);
  957. if (has(EmptyStringDescriptionStore, symbol)) return '';
  958. var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
  959. return desc === '' ? undefined : desc;
  960. }
  961. });
  962. _export({ global: true, forced: true }, {
  963. Symbol: SymbolWrapper
  964. });
  965. }
  966. // `Symbol.iterator` well-known symbol
  967. // https://tc39.github.io/ecma262/#sec-symbol.iterator
  968. defineWellKnownSymbol('iterator');
  969. var createProperty = function (object, key, value) {
  970. var propertyKey = toPrimitive(key);
  971. if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
  972. else object[propertyKey] = value;
  973. };
  974. var userAgent = getBuiltIn('navigator', 'userAgent') || '';
  975. var process = global_1.process;
  976. var versions = process && process.versions;
  977. var v8 = versions && versions.v8;
  978. var match, version;
  979. if (v8) {
  980. match = v8.split('.');
  981. version = match[0] + match[1];
  982. } else if (userAgent) {
  983. match = userAgent.match(/Edge\/(\d+)/);
  984. if (!match || match[1] >= 74) {
  985. match = userAgent.match(/Chrome\/(\d+)/);
  986. if (match) version = match[1];
  987. }
  988. }
  989. var v8Version = version && +version;
  990. var SPECIES$1 = wellKnownSymbol('species');
  991. var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  992. // We can't use this feature detection in V8 since it causes
  993. // deoptimization and serious performance degradation
  994. // https://github.com/zloirock/core-js/issues/677
  995. return v8Version >= 51 || !fails(function () {
  996. var array = [];
  997. var constructor = array.constructor = {};
  998. constructor[SPECIES$1] = function () {
  999. return { foo: 1 };
  1000. };
  1001. return array[METHOD_NAME](Boolean).foo !== 1;
  1002. });
  1003. };
  1004. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1005. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
  1006. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  1007. // We can't use this feature detection in V8 since it causes
  1008. // deoptimization and serious performance degradation
  1009. // https://github.com/zloirock/core-js/issues/679
  1010. var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
  1011. var array = [];
  1012. array[IS_CONCAT_SPREADABLE] = false;
  1013. return array.concat()[0] !== array;
  1014. });
  1015. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  1016. var isConcatSpreadable = function (O) {
  1017. if (!isObject(O)) return false;
  1018. var spreadable = O[IS_CONCAT_SPREADABLE];
  1019. return spreadable !== undefined ? !!spreadable : isArray(O);
  1020. };
  1021. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1022. // `Array.prototype.concat` method
  1023. // https://tc39.github.io/ecma262/#sec-array.prototype.concat
  1024. // with adding support of @@isConcatSpreadable and @@species
  1025. _export({ target: 'Array', proto: true, forced: FORCED }, {
  1026. concat: function concat(arg) { // eslint-disable-line no-unused-vars
  1027. var O = toObject(this);
  1028. var A = arraySpeciesCreate(O, 0);
  1029. var n = 0;
  1030. var i, k, length, len, E;
  1031. for (i = -1, length = arguments.length; i < length; i++) {
  1032. E = i === -1 ? O : arguments[i];
  1033. if (isConcatSpreadable(E)) {
  1034. len = toLength(E.length);
  1035. if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1036. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1037. } else {
  1038. if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1039. createProperty(A, n++, E);
  1040. }
  1041. }
  1042. A.length = n;
  1043. return A;
  1044. }
  1045. });
  1046. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1047. var ArrayPrototype = Array.prototype;
  1048. // Array.prototype[@@unscopables]
  1049. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  1050. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  1051. objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
  1052. configurable: true,
  1053. value: objectCreate(null)
  1054. });
  1055. }
  1056. // add a key to Array.prototype[@@unscopables]
  1057. var addToUnscopables = function (key) {
  1058. ArrayPrototype[UNSCOPABLES][key] = true;
  1059. };
  1060. var correctPrototypeGetter = !fails(function () {
  1061. function F() { /* empty */ }
  1062. F.prototype.constructor = null;
  1063. return Object.getPrototypeOf(new F()) !== F.prototype;
  1064. });
  1065. var IE_PROTO$1 = sharedKey('IE_PROTO');
  1066. var ObjectPrototype$1 = Object.prototype;
  1067. // `Object.getPrototypeOf` method
  1068. // https://tc39.github.io/ecma262/#sec-object.getprototypeof
  1069. var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
  1070. O = toObject(O);
  1071. if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
  1072. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  1073. return O.constructor.prototype;
  1074. } return O instanceof Object ? ObjectPrototype$1 : null;
  1075. };
  1076. var ITERATOR = wellKnownSymbol('iterator');
  1077. var BUGGY_SAFARI_ITERATORS = false;
  1078. var returnThis = function () { return this; };
  1079. // `%IteratorPrototype%` object
  1080. // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
  1081. var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
  1082. if ([].keys) {
  1083. arrayIterator = [].keys();
  1084. // Safari 8 has buggy iterators w/o `next`
  1085. if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
  1086. else {
  1087. PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
  1088. if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
  1089. }
  1090. }
  1091. if (IteratorPrototype == undefined) IteratorPrototype = {};
  1092. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  1093. if ( !has(IteratorPrototype, ITERATOR)) {
  1094. createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
  1095. }
  1096. var iteratorsCore = {
  1097. IteratorPrototype: IteratorPrototype,
  1098. BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
  1099. };
  1100. var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
  1101. var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
  1102. var TO_STRING_TAG = NAME + ' Iterator';
  1103. IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
  1104. setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
  1105. return IteratorConstructor;
  1106. };
  1107. var aPossiblePrototype = function (it) {
  1108. if (!isObject(it) && it !== null) {
  1109. throw TypeError("Can't set " + String(it) + ' as a prototype');
  1110. } return it;
  1111. };
  1112. // `Object.setPrototypeOf` method
  1113. // https://tc39.github.io/ecma262/#sec-object.setprototypeof
  1114. // Works with __proto__ only. Old v8 can't work with null proto objects.
  1115. /* eslint-disable no-proto */
  1116. var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
  1117. var CORRECT_SETTER = false;
  1118. var test = {};
  1119. var setter;
  1120. try {
  1121. setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
  1122. setter.call(test, []);
  1123. CORRECT_SETTER = test instanceof Array;
  1124. } catch (error) { /* empty */ }
  1125. return function setPrototypeOf(O, proto) {
  1126. anObject(O);
  1127. aPossiblePrototype(proto);
  1128. if (CORRECT_SETTER) setter.call(O, proto);
  1129. else O.__proto__ = proto;
  1130. return O;
  1131. };
  1132. }() : undefined);
  1133. var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
  1134. var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
  1135. var ITERATOR$1 = wellKnownSymbol('iterator');
  1136. var KEYS = 'keys';
  1137. var VALUES = 'values';
  1138. var ENTRIES = 'entries';
  1139. var returnThis$1 = function () { return this; };
  1140. var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
  1141. createIteratorConstructor(IteratorConstructor, NAME, next);
  1142. var getIterationMethod = function (KIND) {
  1143. if (KIND === DEFAULT && defaultIterator) return defaultIterator;
  1144. if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
  1145. switch (KIND) {
  1146. case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
  1147. case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
  1148. case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
  1149. } return function () { return new IteratorConstructor(this); };
  1150. };
  1151. var TO_STRING_TAG = NAME + ' Iterator';
  1152. var INCORRECT_VALUES_NAME = false;
  1153. var IterablePrototype = Iterable.prototype;
  1154. var nativeIterator = IterablePrototype[ITERATOR$1]
  1155. || IterablePrototype['@@iterator']
  1156. || DEFAULT && IterablePrototype[DEFAULT];
  1157. var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
  1158. var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
  1159. var CurrentIteratorPrototype, methods, KEY;
  1160. // fix native
  1161. if (anyNativeIterator) {
  1162. CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
  1163. if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
  1164. if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
  1165. if (objectSetPrototypeOf) {
  1166. objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
  1167. } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
  1168. createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
  1169. }
  1170. }
  1171. // Set @@toStringTag to native iterators
  1172. setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
  1173. }
  1174. }
  1175. // fix Array#{values, @@iterator}.name in V8 / FF
  1176. if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
  1177. INCORRECT_VALUES_NAME = true;
  1178. defaultIterator = function values() { return nativeIterator.call(this); };
  1179. }
  1180. // define iterator
  1181. if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
  1182. createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
  1183. }
  1184. // export additional methods
  1185. if (DEFAULT) {
  1186. methods = {
  1187. values: getIterationMethod(VALUES),
  1188. keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
  1189. entries: getIterationMethod(ENTRIES)
  1190. };
  1191. if (FORCED) for (KEY in methods) {
  1192. if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
  1193. redefine(IterablePrototype, KEY, methods[KEY]);
  1194. }
  1195. } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
  1196. }
  1197. return methods;
  1198. };
  1199. var ARRAY_ITERATOR = 'Array Iterator';
  1200. var setInternalState$1 = internalState.set;
  1201. var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
  1202. // `Array.prototype.entries` method
  1203. // https://tc39.github.io/ecma262/#sec-array.prototype.entries
  1204. // `Array.prototype.keys` method
  1205. // https://tc39.github.io/ecma262/#sec-array.prototype.keys
  1206. // `Array.prototype.values` method
  1207. // https://tc39.github.io/ecma262/#sec-array.prototype.values
  1208. // `Array.prototype[@@iterator]` method
  1209. // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
  1210. // `CreateArrayIterator` internal method
  1211. // https://tc39.github.io/ecma262/#sec-createarrayiterator
  1212. var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
  1213. setInternalState$1(this, {
  1214. type: ARRAY_ITERATOR,
  1215. target: toIndexedObject(iterated), // target
  1216. index: 0, // next index
  1217. kind: kind // kind
  1218. });
  1219. // `%ArrayIteratorPrototype%.next` method
  1220. // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
  1221. }, function () {
  1222. var state = getInternalState$1(this);
  1223. var target = state.target;
  1224. var kind = state.kind;
  1225. var index = state.index++;
  1226. if (!target || index >= target.length) {
  1227. state.target = undefined;
  1228. return { value: undefined, done: true };
  1229. }
  1230. if (kind == 'keys') return { value: index, done: false };
  1231. if (kind == 'values') return { value: target[index], done: false };
  1232. return { value: [index, target[index]], done: false };
  1233. }, 'values');
  1234. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  1235. addToUnscopables('keys');
  1236. addToUnscopables('values');
  1237. addToUnscopables('entries');
  1238. var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
  1239. var test = {};
  1240. test[TO_STRING_TAG$1] = 'z';
  1241. var toStringTagSupport = String(test) === '[object z]';
  1242. var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
  1243. // ES3 wrong here
  1244. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  1245. // fallback for IE11 Script Access Denied error
  1246. var tryGet = function (it, key) {
  1247. try {
  1248. return it[key];
  1249. } catch (error) { /* empty */ }
  1250. };
  1251. // getting tag from ES6+ `Object.prototype.toString`
  1252. var classof = toStringTagSupport ? classofRaw : function (it) {
  1253. var O, tag, result;
  1254. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1255. // @@toStringTag case
  1256. : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
  1257. // builtinTag case
  1258. : CORRECT_ARGUMENTS ? classofRaw(O)
  1259. // ES3 arguments fallback
  1260. : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
  1261. };
  1262. // `Object.prototype.toString` method implementation
  1263. // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
  1264. var objectToString = toStringTagSupport ? {}.toString : function toString() {
  1265. return '[object ' + classof(this) + ']';
  1266. };
  1267. // `Object.prototype.toString` method
  1268. // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
  1269. if (!toStringTagSupport) {
  1270. redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
  1271. }
  1272. // `RegExp.prototype.flags` getter implementation
  1273. // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
  1274. var regexpFlags = function () {
  1275. var that = anObject(this);
  1276. var result = '';
  1277. if (that.global) result += 'g';
  1278. if (that.ignoreCase) result += 'i';
  1279. if (that.multiline) result += 'm';
  1280. if (that.dotAll) result += 's';
  1281. if (that.unicode) result += 'u';
  1282. if (that.sticky) result += 'y';
  1283. return result;
  1284. };
  1285. // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
  1286. // so we use an intermediate function.
  1287. function RE(s, f) {
  1288. return RegExp(s, f);
  1289. }
  1290. var UNSUPPORTED_Y = fails(function () {
  1291. // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  1292. var re = RE('a', 'y');
  1293. re.lastIndex = 2;
  1294. return re.exec('abcd') != null;
  1295. });
  1296. var BROKEN_CARET = fails(function () {
  1297. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  1298. var re = RE('^r', 'gy');
  1299. re.lastIndex = 2;
  1300. return re.exec('str') != null;
  1301. });
  1302. var regexpStickyHelpers = {
  1303. UNSUPPORTED_Y: UNSUPPORTED_Y,
  1304. BROKEN_CARET: BROKEN_CARET
  1305. };
  1306. var nativeExec = RegExp.prototype.exec;
  1307. // This always refers to the native implementation, because the
  1308. // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
  1309. // which loads this file before patching the method.
  1310. var nativeReplace = String.prototype.replace;
  1311. var patchedExec = nativeExec;
  1312. var UPDATES_LAST_INDEX_WRONG = (function () {
  1313. var re1 = /a/;
  1314. var re2 = /b*/g;
  1315. nativeExec.call(re1, 'a');
  1316. nativeExec.call(re2, 'a');
  1317. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  1318. })();
  1319. var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
  1320. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1321. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1322. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
  1323. if (PATCH) {
  1324. patchedExec = function exec(str) {
  1325. var re = this;
  1326. var lastIndex, reCopy, match, i;
  1327. var sticky = UNSUPPORTED_Y$1 && re.sticky;
  1328. var flags = regexpFlags.call(re);
  1329. var source = re.source;
  1330. var charsAdded = 0;
  1331. var strCopy = str;
  1332. if (sticky) {
  1333. flags = flags.replace('y', '');
  1334. if (flags.indexOf('g') === -1) {
  1335. flags += 'g';
  1336. }
  1337. strCopy = String(str).slice(re.lastIndex);
  1338. // Support anchored sticky behavior.
  1339. if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
  1340. source = '(?: ' + source + ')';
  1341. strCopy = ' ' + strCopy;
  1342. charsAdded++;
  1343. }
  1344. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1345. // simulate the 'y' flag.
  1346. reCopy = new RegExp('^(?:' + source + ')', flags);
  1347. }
  1348. if (NPCG_INCLUDED) {
  1349. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1350. }
  1351. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1352. match = nativeExec.call(sticky ? reCopy : re, strCopy);
  1353. if (sticky) {
  1354. if (match) {
  1355. match.input = match.input.slice(charsAdded);
  1356. match[0] = match[0].slice(charsAdded);
  1357. match.index = re.lastIndex;
  1358. re.lastIndex += match[0].length;
  1359. } else re.lastIndex = 0;
  1360. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1361. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1362. }
  1363. if (NPCG_INCLUDED && match && match.length > 1) {
  1364. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1365. // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
  1366. nativeReplace.call(match[0], reCopy, function () {
  1367. for (i = 1; i < arguments.length - 2; i++) {
  1368. if (arguments[i] === undefined) match[i] = undefined;
  1369. }
  1370. });
  1371. }
  1372. return match;
  1373. };
  1374. }
  1375. var regexpExec = patchedExec;
  1376. _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
  1377. exec: regexpExec
  1378. });
  1379. // `String.prototype.{ codePointAt, at }` methods implementation
  1380. var createMethod$2 = function (CONVERT_TO_STRING) {
  1381. return function ($this, pos) {
  1382. var S = String(requireObjectCoercible($this));
  1383. var position = toInteger(pos);
  1384. var size = S.length;
  1385. var first, second;
  1386. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1387. first = S.charCodeAt(position);
  1388. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  1389. || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
  1390. ? CONVERT_TO_STRING ? S.charAt(position) : first
  1391. : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  1392. };
  1393. };
  1394. var stringMultibyte = {
  1395. // `String.prototype.codePointAt` method
  1396. // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
  1397. codeAt: createMethod$2(false),
  1398. // `String.prototype.at` method
  1399. // https://github.com/mathiasbynens/String.prototype.at
  1400. charAt: createMethod$2(true)
  1401. };
  1402. var charAt = stringMultibyte.charAt;
  1403. var STRING_ITERATOR = 'String Iterator';
  1404. var setInternalState$2 = internalState.set;
  1405. var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
  1406. // `String.prototype[@@iterator]` method
  1407. // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
  1408. defineIterator(String, 'String', function (iterated) {
  1409. setInternalState$2(this, {
  1410. type: STRING_ITERATOR,
  1411. string: String(iterated),
  1412. index: 0
  1413. });
  1414. // `%StringIteratorPrototype%.next` method
  1415. // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
  1416. }, function next() {
  1417. var state = getInternalState$2(this);
  1418. var string = state.string;
  1419. var index = state.index;
  1420. var point;
  1421. if (index >= string.length) return { value: undefined, done: true };
  1422. point = charAt(string, index);
  1423. state.index += point.length;
  1424. return { value: point, done: false };
  1425. });
  1426. var SPECIES$2 = wellKnownSymbol('species');
  1427. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  1428. // #replace needs built-in support for named groups.
  1429. // #match works fine because it just return the exec results, even if it has
  1430. // a "grops" property.
  1431. var re = /./;
  1432. re.exec = function () {
  1433. var result = [];
  1434. result.groups = { a: '7' };
  1435. return result;
  1436. };
  1437. return ''.replace(re, '$<a>') !== '7';
  1438. });
  1439. // IE <= 11 replaces $0 with the whole match, as if it was $&
  1440. // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
  1441. var REPLACE_KEEPS_$0 = (function () {
  1442. return 'a'.replace(/./, '$0') === '$0';
  1443. })();
  1444. // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
  1445. // Weex JS has frozen built-in prototypes, so use try / catch wrapper
  1446. var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
  1447. var re = /(?:)/;
  1448. var originalExec = re.exec;
  1449. re.exec = function () { return originalExec.apply(this, arguments); };
  1450. var result = 'ab'.split(re);
  1451. return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
  1452. });
  1453. var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
  1454. var SYMBOL = wellKnownSymbol(KEY);
  1455. var DELEGATES_TO_SYMBOL = !fails(function () {
  1456. // String methods call symbol-named RegEp methods
  1457. var O = {};
  1458. O[SYMBOL] = function () { return 7; };
  1459. return ''[KEY](O) != 7;
  1460. });
  1461. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  1462. // Symbol-named RegExp methods call .exec
  1463. var execCalled = false;
  1464. var re = /a/;
  1465. if (KEY === 'split') {
  1466. // We can't use real regex here since it causes deoptimization
  1467. // and serious performance degradation in V8
  1468. // https://github.com/zloirock/core-js/issues/306
  1469. re = {};
  1470. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1471. // a new one. We need to return the patched regex when creating the new one.
  1472. re.constructor = {};
  1473. re.constructor[SPECIES$2] = function () { return re; };
  1474. re.flags = '';
  1475. re[SYMBOL] = /./[SYMBOL];
  1476. }
  1477. re.exec = function () { execCalled = true; return null; };
  1478. re[SYMBOL]('');
  1479. return !execCalled;
  1480. });
  1481. if (
  1482. !DELEGATES_TO_SYMBOL ||
  1483. !DELEGATES_TO_EXEC ||
  1484. (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
  1485. (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
  1486. ) {
  1487. var nativeRegExpMethod = /./[SYMBOL];
  1488. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  1489. if (regexp.exec === regexpExec) {
  1490. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  1491. // The native String method already delegates to @@method (this
  1492. // polyfilled function), leasing to infinite recursion.
  1493. // We avoid it by directly calling the native @@method method.
  1494. return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
  1495. }
  1496. return { done: true, value: nativeMethod.call(str, regexp, arg2) };
  1497. }
  1498. return { done: false };
  1499. }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
  1500. var stringMethod = methods[0];
  1501. var regexMethod = methods[1];
  1502. redefine(String.prototype, KEY, stringMethod);
  1503. redefine(RegExp.prototype, SYMBOL, length == 2
  1504. // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
  1505. // 21.2.5.11 RegExp.prototype[@@split](string, limit)
  1506. ? function (string, arg) { return regexMethod.call(string, this, arg); }
  1507. // 21.2.5.6 RegExp.prototype[@@match](string)
  1508. // 21.2.5.9 RegExp.prototype[@@search](string)
  1509. : function (string) { return regexMethod.call(string, this); }
  1510. );
  1511. }
  1512. if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
  1513. };
  1514. var charAt$1 = stringMultibyte.charAt;
  1515. // `AdvanceStringIndex` abstract operation
  1516. // https://tc39.github.io/ecma262/#sec-advancestringindex
  1517. var advanceStringIndex = function (S, index, unicode) {
  1518. return index + (unicode ? charAt$1(S, index).length : 1);
  1519. };
  1520. // `RegExpExec` abstract operation
  1521. // https://tc39.github.io/ecma262/#sec-regexpexec
  1522. var regexpExecAbstract = function (R, S) {
  1523. var exec = R.exec;
  1524. if (typeof exec === 'function') {
  1525. var result = exec.call(R, S);
  1526. if (typeof result !== 'object') {
  1527. throw TypeError('RegExp exec method returned something other than an Object or null');
  1528. }
  1529. return result;
  1530. }
  1531. if (classofRaw(R) !== 'RegExp') {
  1532. throw TypeError('RegExp#exec called on incompatible receiver');
  1533. }
  1534. return regexpExec.call(R, S);
  1535. };
  1536. var max$1 = Math.max;
  1537. var min$2 = Math.min;
  1538. var floor$1 = Math.floor;
  1539. var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
  1540. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
  1541. var maybeToString = function (it) {
  1542. return it === undefined ? it : String(it);
  1543. };
  1544. // @@replace logic
  1545. fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
  1546. return [
  1547. // `String.prototype.replace` method
  1548. // https://tc39.github.io/ecma262/#sec-string.prototype.replace
  1549. function replace(searchValue, replaceValue) {
  1550. var O = requireObjectCoercible(this);
  1551. var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
  1552. return replacer !== undefined
  1553. ? replacer.call(searchValue, O, replaceValue)
  1554. : nativeReplace.call(String(O), searchValue, replaceValue);
  1555. },
  1556. // `RegExp.prototype[@@replace]` method
  1557. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
  1558. function (regexp, replaceValue) {
  1559. if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
  1560. var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
  1561. if (res.done) return res.value;
  1562. }
  1563. var rx = anObject(regexp);
  1564. var S = String(this);
  1565. var functionalReplace = typeof replaceValue === 'function';
  1566. if (!functionalReplace) replaceValue = String(replaceValue);
  1567. var global = rx.global;
  1568. if (global) {
  1569. var fullUnicode = rx.unicode;
  1570. rx.lastIndex = 0;
  1571. }
  1572. var results = [];
  1573. while (true) {
  1574. var result = regexpExecAbstract(rx, S);
  1575. if (result === null) break;
  1576. results.push(result);
  1577. if (!global) break;
  1578. var matchStr = String(result[0]);
  1579. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  1580. }
  1581. var accumulatedResult = '';
  1582. var nextSourcePosition = 0;
  1583. for (var i = 0; i < results.length; i++) {
  1584. result = results[i];
  1585. var matched = String(result[0]);
  1586. var position = max$1(min$2(toInteger(result.index), S.length), 0);
  1587. var captures = [];
  1588. // NOTE: This is equivalent to
  1589. // captures = result.slice(1).map(maybeToString)
  1590. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  1591. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  1592. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  1593. for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
  1594. var namedCaptures = result.groups;
  1595. if (functionalReplace) {
  1596. var replacerArgs = [matched].concat(captures, position, S);
  1597. if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
  1598. var replacement = String(replaceValue.apply(undefined, replacerArgs));
  1599. } else {
  1600. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  1601. }
  1602. if (position >= nextSourcePosition) {
  1603. accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
  1604. nextSourcePosition = position + matched.length;
  1605. }
  1606. }
  1607. return accumulatedResult + S.slice(nextSourcePosition);
  1608. }
  1609. ];
  1610. // https://tc39.github.io/ecma262/#sec-getsubstitution
  1611. function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
  1612. var tailPos = position + matched.length;
  1613. var m = captures.length;
  1614. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  1615. if (namedCaptures !== undefined) {
  1616. namedCaptures = toObject(namedCaptures);
  1617. symbols = SUBSTITUTION_SYMBOLS;
  1618. }
  1619. return nativeReplace.call(replacement, symbols, function (match, ch) {
  1620. var capture;
  1621. switch (ch.charAt(0)) {
  1622. case '$': return '$';
  1623. case '&': return matched;
  1624. case '`': return str.slice(0, position);
  1625. case "'": return str.slice(tailPos);
  1626. case '<':
  1627. capture = namedCaptures[ch.slice(1, -1)];
  1628. break;
  1629. default: // \d\d?
  1630. var n = +ch;
  1631. if (n === 0) return match;
  1632. if (n > m) {
  1633. var f = floor$1(n / 10);
  1634. if (f === 0) return match;
  1635. if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
  1636. return match;
  1637. }
  1638. capture = captures[n - 1];
  1639. }
  1640. return capture === undefined ? '' : capture;
  1641. });
  1642. }
  1643. });
  1644. // iterable DOM collections
  1645. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  1646. var domIterables = {
  1647. CSSRuleList: 0,
  1648. CSSStyleDeclaration: 0,
  1649. CSSValueList: 0,
  1650. ClientRectList: 0,
  1651. DOMRectList: 0,
  1652. DOMStringList: 0,
  1653. DOMTokenList: 1,
  1654. DataTransferItemList: 0,
  1655. FileList: 0,
  1656. HTMLAllCollection: 0,
  1657. HTMLCollection: 0,
  1658. HTMLFormElement: 0,
  1659. HTMLSelectElement: 0,
  1660. MediaList: 0,
  1661. MimeTypeArray: 0,
  1662. NamedNodeMap: 0,
  1663. NodeList: 1,
  1664. PaintRequestList: 0,
  1665. Plugin: 0,
  1666. PluginArray: 0,
  1667. SVGLengthList: 0,
  1668. SVGNumberList: 0,
  1669. SVGPathSegList: 0,
  1670. SVGPointList: 0,
  1671. SVGStringList: 0,
  1672. SVGTransformList: 0,
  1673. SourceBufferList: 0,
  1674. StyleSheetList: 0,
  1675. TextTrackCueList: 0,
  1676. TextTrackList: 0,
  1677. TouchList: 0
  1678. };
  1679. var ITERATOR$2 = wellKnownSymbol('iterator');
  1680. var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
  1681. var ArrayValues = es_array_iterator.values;
  1682. for (var COLLECTION_NAME in domIterables) {
  1683. var Collection = global_1[COLLECTION_NAME];
  1684. var CollectionPrototype = Collection && Collection.prototype;
  1685. if (CollectionPrototype) {
  1686. // some Chrome versions have non-configurable methods on DOMTokenList
  1687. if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
  1688. createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
  1689. } catch (error) {
  1690. CollectionPrototype[ITERATOR$2] = ArrayValues;
  1691. }
  1692. if (!CollectionPrototype[TO_STRING_TAG$3]) {
  1693. createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
  1694. }
  1695. if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
  1696. // some Chrome versions have non-configurable methods on DOMTokenList
  1697. if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
  1698. createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
  1699. } catch (error) {
  1700. CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
  1701. }
  1702. }
  1703. }
  1704. }
  1705. function _defineProperty(obj, key, value) {
  1706. if (key in obj) {
  1707. Object.defineProperty(obj, key, {
  1708. value: value,
  1709. enumerable: true,
  1710. configurable: true,
  1711. writable: true
  1712. });
  1713. } else {
  1714. obj[key] = value;
  1715. }
  1716. return obj;
  1717. }
  1718. function ownKeys$1(object, enumerableOnly) {
  1719. var keys = Object.keys(object);
  1720. if (Object.getOwnPropertySymbols) {
  1721. var symbols = Object.getOwnPropertySymbols(object);
  1722. if (enumerableOnly) symbols = symbols.filter(function (sym) {
  1723. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  1724. });
  1725. keys.push.apply(keys, symbols);
  1726. }
  1727. return keys;
  1728. }
  1729. function _objectSpread2(target) {
  1730. for (var i = 1; i < arguments.length; i++) {
  1731. var source = arguments[i] != null ? arguments[i] : {};
  1732. if (i % 2) {
  1733. ownKeys$1(Object(source), true).forEach(function (key) {
  1734. _defineProperty(target, key, source[key]);
  1735. });
  1736. } else if (Object.getOwnPropertyDescriptors) {
  1737. Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
  1738. } else {
  1739. ownKeys$1(Object(source)).forEach(function (key) {
  1740. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  1741. });
  1742. }
  1743. }
  1744. return target;
  1745. }
  1746. function _toConsumableArray(arr) {
  1747. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  1748. }
  1749. function _arrayWithoutHoles(arr) {
  1750. if (Array.isArray(arr)) {
  1751. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  1752. return arr2;
  1753. }
  1754. }
  1755. function _iterableToArray(iter) {
  1756. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  1757. }
  1758. function _nonIterableSpread() {
  1759. throw new TypeError("Invalid attempt to spread non-iterable instance");
  1760. }
  1761. //
  1762. //
  1763. //
  1764. //
  1765. var $ = window.jQuery;
  1766. var deepCopy = function deepCopy(arg) {
  1767. if (arg === undefined) {
  1768. return arg;
  1769. }
  1770. return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
  1771. };
  1772. var script = {
  1773. name: 'BootstrapTable',
  1774. props: {
  1775. columns: {
  1776. type: Array,
  1777. require: true
  1778. },
  1779. data: {
  1780. type: [Array, Object],
  1781. default: function _default() {
  1782. return undefined;
  1783. }
  1784. },
  1785. options: {
  1786. type: Object,
  1787. default: function _default() {
  1788. return {};
  1789. }
  1790. }
  1791. },
  1792. mounted: function mounted() {
  1793. var _this = this;
  1794. this.$table = $(this.$el);
  1795. this.$table.on('all.bs.table', function (e, name, args) {
  1796. var eventName = $.fn.bootstrapTable.events[name];
  1797. eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
  1798. _this.$emit.apply(_this, ['on-all'].concat(_toConsumableArray(args)));
  1799. _this.$emit.apply(_this, [eventName].concat(_toConsumableArray(args)));
  1800. });
  1801. this._initTable();
  1802. },
  1803. methods: _objectSpread2({
  1804. _initTable: function _initTable() {
  1805. var options = _objectSpread2({}, deepCopy(this.options), {
  1806. columns: deepCopy(this.columns),
  1807. data: deepCopy(this.data)
  1808. });
  1809. if (!this._hasInit) {
  1810. this.$table.bootstrapTable(options);
  1811. this._hasInit = true;
  1812. } else {
  1813. this.refreshOptions(options);
  1814. }
  1815. }
  1816. }, function () {
  1817. var res = {};
  1818. var _iteratorNormalCompletion = true;
  1819. var _didIteratorError = false;
  1820. var _iteratorError = undefined;
  1821. try {
  1822. var _loop = function _loop() {
  1823. var method = _step.value;
  1824. res[method] = function () {
  1825. var _this$$table;
  1826. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1827. args[_key] = arguments[_key];
  1828. }
  1829. return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
  1830. };
  1831. };
  1832. for (var _iterator = $.fn.bootstrapTable.methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  1833. _loop();
  1834. }
  1835. } catch (err) {
  1836. _didIteratorError = true;
  1837. _iteratorError = err;
  1838. } finally {
  1839. try {
  1840. if (!_iteratorNormalCompletion && _iterator.return != null) {
  1841. _iterator.return();
  1842. }
  1843. } finally {
  1844. if (_didIteratorError) {
  1845. throw _iteratorError;
  1846. }
  1847. }
  1848. }
  1849. return res;
  1850. }()),
  1851. watch: {
  1852. options: {
  1853. handler: function handler() {
  1854. this._initTable();
  1855. },
  1856. deep: true
  1857. },
  1858. columns: {
  1859. handler: function handler() {
  1860. this._initTable();
  1861. },
  1862. deep: true
  1863. },
  1864. data: {
  1865. handler: function handler() {
  1866. this.load(deepCopy(this.data));
  1867. },
  1868. deep: true
  1869. }
  1870. }
  1871. };
  1872. function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
  1873. if (typeof shadowMode !== 'boolean') {
  1874. createInjectorSSR = createInjector;
  1875. createInjector = shadowMode;
  1876. shadowMode = false;
  1877. }
  1878. // Vue.extend constructor export interop.
  1879. const options = typeof script === 'function' ? script.options : script;
  1880. // render functions
  1881. if (template && template.render) {
  1882. options.render = template.render;
  1883. options.staticRenderFns = template.staticRenderFns;
  1884. options._compiled = true;
  1885. // functional template
  1886. if (isFunctionalTemplate) {
  1887. options.functional = true;
  1888. }
  1889. }
  1890. // scopedId
  1891. if (scopeId) {
  1892. options._scopeId = scopeId;
  1893. }
  1894. let hook;
  1895. if (moduleIdentifier) {
  1896. // server build
  1897. hook = function (context) {
  1898. // 2.3 injection
  1899. context =
  1900. context || // cached call
  1901. (this.$vnode && this.$vnode.ssrContext) || // stateful
  1902. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
  1903. // 2.2 with runInNewContext: true
  1904. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1905. context = __VUE_SSR_CONTEXT__;
  1906. }
  1907. // inject component styles
  1908. if (style) {
  1909. style.call(this, createInjectorSSR(context));
  1910. }
  1911. // register component module identifier for async chunk inference
  1912. if (context && context._registeredComponents) {
  1913. context._registeredComponents.add(moduleIdentifier);
  1914. }
  1915. };
  1916. // used by ssr in case component is cached and beforeCreate
  1917. // never gets called
  1918. options._ssrRegister = hook;
  1919. }
  1920. else if (style) {
  1921. hook = shadowMode
  1922. ? function (context) {
  1923. style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
  1924. }
  1925. : function (context) {
  1926. style.call(this, createInjector(context));
  1927. };
  1928. }
  1929. if (hook) {
  1930. if (options.functional) {
  1931. // register for functional component in vue file
  1932. const originalRender = options.render;
  1933. options.render = function renderWithStyleInjection(h, context) {
  1934. hook.call(context);
  1935. return originalRender(h, context);
  1936. };
  1937. }
  1938. else {
  1939. // inject component registration as beforeCreate hook
  1940. const existing = options.beforeCreate;
  1941. options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
  1942. }
  1943. }
  1944. return script;
  1945. }
  1946. /* script */
  1947. const __vue_script__ = script;
  1948. /* template */
  1949. var __vue_render__ = function() {
  1950. var _vm = this;
  1951. var _h = _vm.$createElement;
  1952. var _c = _vm._self._c || _h;
  1953. return _c("table")
  1954. };
  1955. var __vue_staticRenderFns__ = [];
  1956. __vue_render__._withStripped = true;
  1957. /* style */
  1958. const __vue_inject_styles__ = undefined;
  1959. /* scoped */
  1960. const __vue_scope_id__ = undefined;
  1961. /* module identifier */
  1962. const __vue_module_identifier__ = undefined;
  1963. /* functional template */
  1964. const __vue_is_functional_template__ = false;
  1965. /* style inject */
  1966. /* style inject SSR */
  1967. /* style inject shadow dom */
  1968. const __vue_component__ = /*#__PURE__*/normalizeComponent(
  1969. { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
  1970. __vue_inject_styles__,
  1971. __vue_script__,
  1972. __vue_scope_id__,
  1973. __vue_is_functional_template__,
  1974. __vue_module_identifier__,
  1975. false,
  1976. undefined,
  1977. undefined,
  1978. undefined
  1979. );
  1980. return __vue_component__;
  1981. })));