bootstrap-table-vue.esm.js 75 KB

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